projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[oweals/gnunet.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index b3a965e3b0a2f23d9b923244155726372bb4cae1..3b8b324f50147c2ef4dd3a8a8b87d28977f863ee 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-259,10
+259,13
@@
fi # $build = $target
glpk=true
AC_CHECK_HEADERS(glpk.h, ,[gplk=false])
AC_CHECK_LIB([glpk],[glp_create_prob], , [gplk=false])
glpk=true
AC_CHECK_HEADERS(glpk.h, ,[gplk=false])
AC_CHECK_LIB([glpk],[glp_create_prob], , [gplk=false])
-if test $gplk == false
+# GLPK must support atm MLP presolving, version >= 4.32
+AC_CHECK_MEMBERS(glp_iocp.presolve, ,[gplk=false],[[#include <glpk.h>]])
+if test $gplk = false
then
AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue])
AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk != x$gplk])
then
AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue])
AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk != x$gplk])
+ AC_MSG_WARN([GNUnet requires GLPK >= 4.32])
else
AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue])
AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk = x$gplk])
else
AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue])
AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk = x$gplk])