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