summaryrefslogtreecommitdiff
path: root/lib/make/make.config.rules.in
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-04-14 18:49:49 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-04-14 18:49:49 +0000
commit4c85e576e92f50d39c4bd5aeb9950be80b9e30fc (patch)
tree6ab9297a915b6d6764deaf0d990bd23ff581ce0e /lib/make/make.config.rules.in
parentc881fa9d6f67e59c338d11084f9702fb364257d0 (diff)
Catch the case where a Fortran compiler has been set to "none",
indicating none has been found. Print a legible error message instead of gibberish. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3663 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/make.config.rules.in')
-rw-r--r--lib/make/make.config.rules.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/make/make.config.rules.in b/lib/make/make.config.rules.in
index a8f81c69..b9348754 100644
--- a/lib/make/make.config.rules.in
+++ b/lib/make/make.config.rules.in
@@ -112,7 +112,7 @@ define PREPROCESS_F77
endef
define COMPILE_F77
-current_wd=`$(GET_WD)` ; cd $(SCRATCH_BUILD) ; $(F77) $(F77FLAGS) $(FCOMPILEONLY)$(OPTIONSEP)$$current_wd$(DIRSEP)$@ $$current_wd$(DIRSEP)$(basename $(notdir $<)).f
+if test "$(F77)" = "none" ; then echo "There is no Fortran 77 compiler available. Aborting." ; exit 1 ; fi ; current_wd=`$(GET_WD)` ; cd $(SCRATCH_BUILD) ; $(F77) $(F77FLAGS) $(FCOMPILEONLY)$(OPTIONSEP)$$current_wd$(DIRSEP)$@ $$current_wd$(DIRSEP)$(basename $(notdir $<)).f
endef
define POSTPROCESS_F77
@@ -125,7 +125,7 @@ define PREPROCESS_F
endef
define COMPILE_F
-current_wd=`$(GET_WD)` ; cd $(SCRATCH_BUILD) ; $(F90) $(F90FLAGS) $(FCOMPILEONLY)$(OPTIONSEP)$$current_wd$(DIRSEP)$@ $$current_wd$(DIRSEP)$(basename $(notdir $<)).f
+if test "$(F90)" = "none" ; then echo "There is no Fortran 90 compiler available. Aborting." ; exit 1 ; fi ; current_wd=`$(GET_WD)` ; cd $(SCRATCH_BUILD) ; $(F90) $(F90FLAGS) $(FCOMPILEONLY)$(OPTIONSEP)$$current_wd$(DIRSEP)$@ $$current_wd$(DIRSEP)$(basename $(notdir $<)).f
endef
define POSTPROCESS_F
@@ -138,7 +138,7 @@ define PREPROCESS_F90
endef
define COMPILE_F90
-current_wd=`$(GET_WD)` ; cd $(SCRATCH_BUILD) ; $(F90) $(F90FLAGS) $(FCOMPILEONLY)$(OPTIONSEP)$$current_wd$(DIRSEP)$@ $$current_wd$(DIRSEP)$(basename $(notdir $<)).$(F90_SUFFIX)
+if test "$(F90)" = "none" ; then echo "There is no Fortran 90 compiler available. Aborting." ; exit 1 ; fi ; current_wd=`$(GET_WD)` ; cd $(SCRATCH_BUILD) ; $(F90) $(F90FLAGS) $(FCOMPILEONLY)$(OPTIONSEP)$$current_wd$(DIRSEP)$@ $$current_wd$(DIRSEP)$(basename $(notdir $<)).$(F90_SUFFIX)
endef
define POSTPROCESS_F90