summaryrefslogtreecommitdiff
path: root/lib/make/make.configuration
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-04-09 11:09:51 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-04-09 11:09:51 +0000
commit05d60e2ba32956256756582e95ef2ca9d4e9d851 (patch)
tree6c035f5975263a8fa4abbc275e310c63a180bd1e /lib/make/make.configuration
parent41e53d9f4f39960c1f4ab59d5e960e516f0b6557 (diff)
Check whether thorn names clash with system library names.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3651 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/make.configuration')
-rw-r--r--lib/make/make.configuration16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/make/make.configuration b/lib/make/make.configuration
index 15a407cb..f1f6832f 100644
--- a/lib/make/make.configuration
+++ b/lib/make/make.configuration
@@ -46,11 +46,25 @@ export PERLINTERP = $(shell echo $(PERL) | sed 's,^/cygdrive/\(.\)/,\1:/,' | sed
# Use a phony main target to make sure we print a nice ending message 8-)
.PHONY: main
-main: $(EXEDIR)$(DIRSEP)$(EXE)
+main: checklibs $(EXEDIR)$(DIRSEP)$(EXE)
@echo All done !
@echo $(DIVIDER)
+# Check whether the system libraries clash with the thorn libraries
+.PHONY: checklibs
+
+# Which Cactus libraries have the same name as system libraries?
+CLASHINGLIBS = $(strip $(foreach lib, $(ALLCACTUSLIBS), $(findstring $(lib), $(LIBS))))
+
+checklibs:
+ if test "$(CLASHINGLIBS)x" != "x"; then\
+ echo "The thorn(s) '$(CLASHINGLIBS)' have the same names as sytem libraries.";\
+ echo "This is not possible.";\
+ exit 1;\
+ fi
+
+
# Put this in temporarily to make sure that people with existing
# configurations aren't disturbed