From a97808a51b9e15df23307115ca889e01c604c0dc Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 15 Dec 2009 05:54:51 -0800 Subject: Introduce 'hdfsee' --- configure.ac | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e5c8383d..1005c613 100644 --- a/configure.ac +++ b/configure.ac @@ -24,7 +24,13 @@ AC_ARG_WITH(hdf5, HDF5_LIBS="-L$withval/lib -lhdf5"], [HDF5_LIBS="-lhdf5"]) -CFLAGS="$CFLAGS $HDF5_CFLAGS" -LIBS="$LIBS $HDF5_LIBS -lm -lz -lgsl -lgslcblas" +havegtk=false +AM_PATH_GTK_2_0(2.0.0, havegtk=true, +AC_MSG_WARN([GTK not found. hdfsee will not be built.])) -AC_OUTPUT(Makefile src/Makefile) +AM_CONDITIONAL([HAVE_GTK], test x$havegtk = xtrue) + +CFLAGS="$CFLAGS $HDF5_CFLAGS $GTK_CFLAGS" +LIBS="$LIBS $HDF5_LIBS -lm -lz -lgsl -lgslcblas $GTK_LIBS -lgthread-2.0" + +AC_OUTPUT(Makefile src/Makefile data/Makefile) -- cgit v1.2.3