Modified configure.in to fix issue with multiple use/meaning of 'prefix' variable

This commit is contained in:
Osei-Kuffuor 2016-02-15 10:57:05 -08:00
parent e26ca6fd3b
commit 778612ae51
2 changed files with 8 additions and 8 deletions

View File

@ -546,8 +546,8 @@ AS_HELP_STRING([--with-blas-lib=LIBS],
[LIBS is space-separated linkable list (enclosed in quotes) of libraries [LIBS is space-separated linkable list (enclosed in quotes) of libraries
needed for BLAS. OK to use -L and -l flags in the list]), needed for BLAS. OK to use -L and -l flags in the list]),
[for blas_lib in $withval; do [for blas_lib in $withval; do
[prefix=${blas_lib:0:2}] [libprefix=${blas_lib:0:2}]
if test $prefix = "-L" if test $libprefix = "-L"
then then
BLASLIBDIRS="$blas_lib $BLASLIBDIRS" BLASLIBDIRS="$blas_lib $BLASLIBDIRS"
else else
@ -588,8 +588,8 @@ AS_HELP_STRING([--with-lapack-lib=LIBS],
[LIBS is space-separated linkable list (enclosed in quotes) of libraries [LIBS is space-separated linkable list (enclosed in quotes) of libraries
needed for LAPACK. OK to use -L and -l flags in the list]), needed for LAPACK. OK to use -L and -l flags in the list]),
[for lapack_lib in $withval; do [for lapack_lib in $withval; do
[prefix=${lapack_lib:0:2}] [libprefix=${lapack_lib:0:2}]
if test $prefix = "-L" if test $libprefix = "-L"
then then
LAPACKLIBDIRS="$lapack_lib $LAPACKLIBDIRS" LAPACKLIBDIRS="$lapack_lib $LAPACKLIBDIRS"
else else

8
src/configure vendored
View File

@ -2901,8 +2901,8 @@ fi
# Check whether --with-blas-lib was given. # Check whether --with-blas-lib was given.
if test "${with_blas_lib+set}" = set; then : if test "${with_blas_lib+set}" = set; then :
withval=$with_blas_lib; for blas_lib in $withval; do withval=$with_blas_lib; for blas_lib in $withval; do
prefix=${blas_lib:0:2} libprefix=${blas_lib:0:2}
if test $prefix = "-L" if test $libprefix = "-L"
then then
BLASLIBDIRS="$blas_lib $BLASLIBDIRS" BLASLIBDIRS="$blas_lib $BLASLIBDIRS"
else else
@ -2942,8 +2942,8 @@ fi
# Check whether --with-lapack-lib was given. # Check whether --with-lapack-lib was given.
if test "${with_lapack_lib+set}" = set; then : if test "${with_lapack_lib+set}" = set; then :
withval=$with_lapack_lib; for lapack_lib in $withval; do withval=$with_lapack_lib; for lapack_lib in $withval; do
prefix=${lapack_lib:0:2} libprefix=${lapack_lib:0:2}
if test $prefix = "-L" if test $libprefix = "-L"
then then
LAPACKLIBDIRS="$lapack_lib $LAPACKLIBDIRS" LAPACKLIBDIRS="$lapack_lib $LAPACKLIBDIRS"
else else