Commit 00a1647f authored by ulrich_y's avatar ulrich_y

minor changes

parent 1c75bde7
......@@ -32,6 +32,7 @@ else
CONF_PREFIX=/usr/
fi
NATIVE=true
DEBUG=false
for arg in "$@" ; do
case "$arg" in
......@@ -47,6 +48,8 @@ for arg in "$@" ; do
HAVE_MCC=true ;;
--mmprefix=*)
CONF_MMPREFIX="${arg#--mmprefix=}" ;;
--generic)
NATIVE=false ;;
--32)
CONF_BITS="-m32" ;;
--64)
......@@ -89,13 +92,13 @@ findlib() {
-L* )
libfolder=${flag/-L/}
if [ -f "$libfolder/lib$1.so" ] ; then
path=`realpath "$libfolder/lib$1.so"`
path=`readlink -f -- "$libfolder/lib$1.so"`
echo $path 1>&3
printf -v "CONF_$2" "%q" "$path"
return 0
fi
if [ -f "$libfolder/lib$1.a" ] ; then
path=`realpath "$libfolder/lib$1.a"`
path=`readlinf -f -- "$libfolder/lib$1.a"`
echo $path 1>&3
printf -v "CONF_$2" "%q" "$path"
return 0
......@@ -142,7 +145,7 @@ case "$1,$2,$3" in
eval addflag FFLAGS -DDEBUG
else
eval addflag FFLAGS -DRELEASE
eval addflag FFLAGS -march=native -mtune=native
$NATIVE && eval addflag FFLAGS -march=native -mtune=native
fi
;;
GNU,Fortran,*)
......@@ -157,7 +160,7 @@ case "$1,$2,$3" in
eval addflag FFLAGS -DDEBUG
else
eval addflag FFLAGS -DRELEASE -O3
eval addflag FFLAGS -march=native -mtune=native
$NATIVE && eval addflag FFLAGS -march=native -mtune=native
fi
;;
ifort*)
......@@ -170,8 +173,8 @@ case "$1,$2,$3" in
eval addflag FFLAGS -g -O0
eval addflag FFLAGS -DDEBUG
else
eval addflag FFLAGS -DRELEASE -O3
eval addflag FFLAGS -xHost -fast
eval addflag FFLAGS -DRELEASE -O3 -fast
$NATIVE && eval addflag FFLAGS -xHost
fi
if HAVE_GINAC ; then
echo "Option --with-ginac is incompatible with ifort, disabling"
......
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