diff options
author | Thomas White <taw@physics.org> | 2009-11-12 12:06:06 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2009-11-12 12:06:06 +0100 |
commit | c6b74b77b111c4e45b93ef9f02863dceafe0d047 (patch) | |
tree | d183f53a7e9aa6af3ccfa607eaac19dd3957f602 /configure.ac | |
parent | f09b0fc4da61d107dffc0d45489b769326fd8a08 (diff) |
Sort out libraries and cflags
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 8b746557..1eac1a93 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,13 @@ AC_FUNC_MALLOC AC_TYPE_SIGNAL AC_CHECK_FUNCS([strdup]) -LIBS="$LIBS -lhdf5" +AC_ARG_WITH(hdf5, +[AS_HELP_STRING([--with-hdf5], [specify location of HDF5 library])], +[HDF5_CFLAGS="-I$withval/include" + HDF5_LIBS="-L$withval/lib -lhdf5"], +[]) + +CFLAGS="$CFLAGS $HDF5_CFLAGS" +LIBS="$LIBS $HDF5_LIBS -lm -lgsl -lgslcblas" AC_OUTPUT(Makefile src/Makefile) |