summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-03-22 18:36:57 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-03-22 18:36:57 +0000
commitd74a1b1b52178c35f0f804c34bc63fe2c0203c1a (patch)
tree8bc74579832dba84590e504c03324b57c7f85500 /configure.ac
parent2ee43bfc55897916316dbe52e8d294dc48f775e2 (diff)
ats
and changed configure script...does not work correctly...but at least detects when glpk is NOT installed
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
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])