Skip to content
Snippets Groups Projects
Commit 2716c296 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Better detection of the GSL library.

parent 7ef09863
No related branches found
No related tags found
1 merge request!509Cosmological time integration
...@@ -406,8 +406,13 @@ AC_CHECK_LIB(m,sqrt,,AC_MSG_ERROR(something is wrong with the math library!)) ...@@ -406,8 +406,13 @@ AC_CHECK_LIB(m,sqrt,,AC_MSG_ERROR(something is wrong with the math library!))
# Check for GSL # Check for GSL
have_gsl="no" have_gsl="no"
AC_CHECK_LIB([gslcblas],[cblas_dgemm]) AC_CHECK_LIB([gslcblas], [cblas_dgemm])
AC_CHECK_LIB([gsl],[gsl_integration_qag]) AC_CHECK_LIB([gsl],
[gsl_integration_qag],
[AC_DEFINE([HAVE_LIBGSL], [1], [Define to 1 if you have the `gsl' library (-lgsl).])]
[AX_APPEND_FLAG(-lgsl, LDFLAGS)]
[have_gsl="yes"],
[have_gsl="no"])
# Check for pthreads. # Check for pthreads.
AX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" AX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment