]> https://gitweb.dealii.org/ - candi.git/commitdiff
Added output for compiler variables CC,CXX,FC,FF and warning printout if they are...
authorUwe Köcher <koecher@hsu-hamburg.de>
Wed, 9 Jul 2014 11:21:53 +0000 (13:21 +0200)
committerUwe Köcher <koecher@hsu-hamburg.de>
Wed, 9 Jul 2014 11:21:53 +0000 (13:21 +0200)
candi.sh

index 257d660fb050ee0c6c13c400fb0170b88941ca14..dbf700c3e9660b19c5baa2868dc630d80dc69671 100755 (executable)
--- a/candi.sh
+++ b/candi.sh
@@ -480,6 +480,33 @@ if [ $# -eq 0 ]; then
         cecho ${GOOD} "$(module list)"
         echo "-------------------------------------------------------------------------------"
     fi
+
+    echo "-------------------------------------------------------------------------------"
+    echo "Compiler Variables:"
+    if [ -n "$CC" ]; then
+        cecho ${WARN} "CC  = $(which $CC)"
+    else
+        cecho ${BAD} "CC  variable not set. Please set it with $ export CC  = <C compiler>"
+    fi
+
+    if [ -n "$CXX" ]; then
+        cecho ${WARN} "CXX = $(which $CXX)"
+    else
+        cecho ${BAD} "CXX variable not set. Please set it with $ export CXX = <C++ compiler>"
+    fi
+
+    if [ -n "$FC" ]; then
+        cecho ${WARN} "FC  = $(which $FC)"
+    else
+        cecho ${BAD} "FC  variable not set. Please set it with $ export FC  = <Fortran 90 compiler>"
+    fi
+
+    if [ -n "$FF" ]; then
+        cecho ${WARN} "FF  = $(which $FF)"
+    else
+        cecho ${BAD} "FF  variable not set. Please set it with $ export FF  = <Fortran 77 compiler>"
+    fi
+    echo "-------------------------------------------------------------------------------"
     
     echo ""
     cecho ${GOOD} "Once ready, hit enter to continue!"

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.