aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b3a965e3b..f89f8e185 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,10 +259,13 @@ fi # $build = $target
259glpk=true 259glpk=true
260AC_CHECK_HEADERS(glpk.h, ,[gplk=false]) 260AC_CHECK_HEADERS(glpk.h, ,[gplk=false])
261AC_CHECK_LIB([glpk],[glp_create_prob], , [gplk=false]) 261AC_CHECK_LIB([glpk],[glp_create_prob], , [gplk=false])
262# GLPK must support atm MLP presolving, version >= 4.32
263AC_CHECK_MEMBERS(glp_iocp.presolve, ,[gplk=false],[[#include <glpk.h>]])
262if test $gplk == false 264if test $gplk == false
263then 265then
264 AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue]) 266 AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue])
265 AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk != x$gplk]) 267 AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk != x$gplk])
268 AC_MSG_ERROR([GNUnet requires GLPK >= 4.32])
266else 269else
267 AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue]) 270 AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue])
268 AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk = x$gplk]) 271 AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk = x$gplk])