From 057c31ff95d7ce392e56bde1c73460aebd0f4696 Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Fri, 1 Nov 2019 14:10:13 -0500 Subject: [PATCH] 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. --- autoconf/configure.ac | 2 +- configure | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 72aa8420..e682a675 100755 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -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]) diff --git a/configure b/configure index a3a778a1..e3825806 100755 --- a/configure +++ b/configure @@ -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