From d74a1b1b52178c35f0f804c34bc63fe2c0203c1a Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 22 Mar 2011 18:36:57 +0000 Subject: ats and changed configure script...does not work correctly...but at least detects when glpk is NOT installed --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 3d061c905..699a63d3d 100644 --- a/configure.ac +++ b/configure.ac @@ -247,6 +247,17 @@ LIBCURL_CHECK_CONFIG(,7.20.1,,AC_MSG_ERROR([GNUnet requires libcurl >= 7.20.1])) # restore LIBS LIBS=$SAVE_LIBS +# glpk +glpk=0 +AC_CHECK_HEADERS([glpk.h]) +if test "$ac_cv_header_glpk_h" = yes; then +AM_CONDITIONAL(HAVE_GLPK, 1) +AC_DEFINE_UNQUOTED([HAVE_GLPK], test x$glpk = xtrue, [We have GLPK]) +else +AM_CONDITIONAL(HAVE_GLPK, test x$glpk = xtrue) +AC_MSG_WARN([GLPK not installed.]) +fi + # test for kvm and kstat (for CPU stats under BSD/Solaris) AC_CHECK_LIB([kvm],[kvm_open]) AC_CHECK_LIB([kstat],[kstat_open]) @@ -622,6 +633,8 @@ AC_DEFINE_UNQUOTED([HAVE_ESMTP], $esmtp, [We have libesmtp]) # restore LIBS LIBS=$SAVE_LIBS + + # check for gettext AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT_VERSION([0.16.1]) -- cgit v1.2.3