summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-04 10:21:35 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-04 10:21:35 +0200
commit458992dc6fa0152dc55d68f3f633c58a05877407 (patch)
treeb8ff11fb8e38c98f8c9ffc800f2a3ab69186d7c9 /configure.ac
parentc1575167f7d813e01fffb26b2b7df9cb22ecbcbc (diff)
downloadexchange-458992dc6fa0152dc55d68f3f633c58a05877407.tar.gz
exchange-458992dc6fa0152dc55d68f3f633c58a05877407.tar.bz2
exchange-458992dc6fa0152dc55d68f3f633c58a05877407.zip
fixes for disting
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac29
1 files changed, 29 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 092b0ce5..939e8f7c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,6 +152,35 @@ AS_IF([test $libgnunetcurl != 1],
*** ]])])
+
+# Check for GNUnet's libgnunetpq.
+libgnunetpq=0
+AC_MSG_CHECKING([for libgnunetpq])
+AC_ARG_WITH(gnunet,
+ [AS_HELP_STRING([--with-gnunet=PFX], [base of GNUnet installation])],
+ [AC_MSG_RESULT([given as $with_gnunet])],
+ [AC_MSG_RESULT(not given)
+ with_gnunet=yes])
+AS_CASE([$with_gnunet],
+ [yes], [],
+ [no], [AC_MSG_ERROR([--with-gnunet is required])],
+ [LDFLAGS="-L$with_gnunet/lib $LDFLAGS"
+ CPPFLAGS="-I$with_gnunet/include $CPPFLAGS"])
+AC_CHECK_HEADERS([gnunet/platform.h gnunet/gnunet_pq_lib.h],
+ [AC_CHECK_LIB([gnunetpq], [GNUNET_PQ_result_spec_string], libgnunetpq=1)],
+ [], [#ifdef HAVE_GNUNET_PLATFORM_H
+ #include <gnunet/platform.h>
+ #endif])
+AS_IF([test $libgnunetpq != 1],
+ [AC_MSG_ERROR([[
+***
+*** You need libgnunetpq to build this program.
+*** Make sure you have Postgres installed while
+*** building GNUnet (and that your GNUnet version
+*** is recent!)
+*** ]])])
+
+
# check for libmicrohttpd
microhttpd=0
AC_MSG_CHECKING([for microhttpd])