diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-11-11 17:48:52 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-11-11 17:48:52 +0100 |
commit | ffdb5b52e9a5e09135d8e5c804e67d4c0124f2f0 (patch) | |
tree | d64a040e855bd16da7ac4e64f18ee17d13811334 | |
parent | dee585c8981b7028528ec63efa141dbeb4787d04 (diff) |
test for sufficiently recent libmicrohttpd version
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e93fd7ba3..30196d9fa 100644 --- a/configure.ac +++ b/configure.ac @@ -197,10 +197,11 @@ AS_CASE([$with_microhttpd], CPPFLAGS="-I$with_microhttpd/include $CPPFLAGS"]) AC_CHECK_LIB(microhttpd,MHD_start_daemon, [AC_CHECK_HEADER([microhttpd.h],[microhttpd=1])]) +AC_CHECK_DECL([MHD_DAEMON_INFO_CURRENT_CONNECTIONS],,[microhttpd=0],[[#include <microhttpd.h>]]) AS_IF([test $microhttpd = 0], [AC_MSG_ERROR([[ *** -*** You need libmicrohttpd to build this program. +*** You need libmicrohttpd >= 0.9.39 to build this program. *** ]])]) |