configure script fails in RHEL/CentOS 8 #887

If gsl is installed the configure script fails because it needs
libgslcblas as well when testing for the library.
This commit is contained in:
Alex Lin 2019-11-01 14:10:13 -05:00
parent 193da84744
commit 057c31ff95
2 changed files with 2 additions and 4 deletions

View File

@ -109,7 +109,7 @@ AC_DEFUN([AX_GSL_HOME],[
[AC_CHECK_HEADER(gsl/gsl_rng.h, [GSL_HOME="/usr"], [GSL_HOME=""])]
)
AS_IF([test "$GSL_HOME" != ""],
[AC_CHECK_LIB(gsl, main, [],AC_MSG_ERROR([could not find libgsl]))]
[AC_CHECK_LIB(gsl, main, [],AC_MSG_ERROR([could not find libgsl]),[-lgslcblas])],
[]
)
AC_SUBST([GSL_HOME])

4
configure vendored
View File

@ -7859,7 +7859,7 @@ if ${ac_cv_lib_gsl_main+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lgsl $LIBS"
LIBS="-lgsl -lgslcblas $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@ -7894,8 +7894,6 @@ else
as_fn_error $? "could not find libgsl" "$LINENO" 5
fi
fi