diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 32eba669..f7eac7e6 100644 --- a/configure.ac +++ b/configure.ac @@ -30,9 +30,14 @@ AC_ARG_WITH(hdf5, [HDF5_LIBS="-lhdf5"]) -PKG_CHECK_MODULES([GSL], [gsl], [], -[ - AC_ERROR([GSL is required]) +AC_ARG_WITH(gsl, +[AS_HELP_STRING([--with-gsl], [specify location of GSL (instead of using pkg-config)])], +[GSL_CFLAGS="-I$withval/include" + GSL_LIBS="-L$withval/lib -lgsl -lgslcblas -lm"], +[PKG_CHECK_MODULES([GSL], [gsl], [], + [ + AC_ERROR([GSL is required]) + ]) ]) |