Commit bb50c528 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

report missing variables explicitely

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 5296
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 66f1b069
......@@ -59,28 +59,32 @@ echo "Environment variables used in TFSoftware Makefiles as found in your"
echo "shell environment or set by ./install.bashrc (not all of them might"
echo "be required for the current package):"
MISSING=0
repvar LOCBINDIR || MISSING=1
repvar LOCLIBDIR || MISSING=1
repvar LOCINCLUDEDIR || MISSING=1
repvar SERVERBINDIR || MISSING=1
repvar SERVERLIBDIR || MISSING=1
repvar CC || MISSING=1
repvar CXX || MISSING=1
repvar FC || MISSING=1
repvar TF_LINK_FORTRAN || MISSING=1
repvar TF_LINK_PGPLOT || MISSING=1
repvar TF_WWWBASEDIR || MISSING=1
repvar TF_BROWSER || MISSING=1
repvar LD_LIBRARY_PATH || MISSING=1
MISSVAR=""
repvar LOCBINDIR || { MISSING=1; MISSVAR="$MISSVAR LOCBINDIR" }
repvar LOCLIBDIR || { MISSING=1; MISSVAR="$MISSVAR LOCLIBDIR" }
repvar LOCINCLUDEDIR || { MISSING=1; MISSVAR="$MISSVAR LOCINCLUDEDIR" }
repvar SERVERBINDIR || { MISSING=1; MISSVAR="$MISSVAR SERVERBINDIR" }
repvar SERVERLIBDIR || { MISSING=1; MISSVAR="$MISSVAR SERVERLIBDIR" }
repvar CC || { MISSING=1; MISSVAR="$MISSVAR CC" }
repvar CXX || { MISSING=1; MISSVAR="$MISSVAR CXX" }
repvar FC || { MISSING=1; MISSVAR="$MISSVAR FC" }
repvar TF_LINK_FORTRAN || { MISSING=1; MISSVAR="$MISSVAR TF_LINK_FORTRAN" }
repvar TF_LINK_PGPLOT || { MISSING=1; MISSVAR="$MISSVAR TF_LINK_PGPLOT" }
repvar TF_WWWBASEDIR || { MISSING=1; MISSVAR="$MISSVAR TF_WWWBASEDIR" }
repvar TF_BROWSER || { MISSING=1; MISSVAR="$MISSVAR TF_BROWSER" }
repvar LD_LIBRARY_PATH || { MISSING=1; MISSVAR="$MISSVAR LD_LIBRARY_PATH" }
if test 0$MISSING -gt 0
then
echo
echo "Some of the expected variables are not set. Please check"
echo "README.compile if in doubt."
echo 'WARNING!'
echo "The following variables are not set:"
echo $MISSVAR | fold -w 70 -s | sed -e "s/^/ /"
echo "Please check README.compile if in doubt."
fi
if test 0$(printenv LD_LIBRARY_PATH | tr ':' '\n' | grep $LOCLIBDIR | wc -l) -lt 1
then
echo
echo 'WARNING!'
echo "$LOCLIBDIR"
echo "is not present in variable LD_LIBRARY_PATH!"
echo "The binary executables being compiled, linked against dynamic"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment