diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-29 21:46:03 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-29 21:46:03 +0100 |
commit | 1661086a592eb2050b40efd8e88a78832635e78a (patch) | |
tree | a4dc4c0e1f2d666f8adbc991d2e0b1b9b217785d /configure.ac | |
parent | 08a5ee5ed3416d42c3bda8dde735e6c53dffdf36 (diff) |
-fix ftbfs issues
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 45 |
1 files changed, 36 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index d013ab2e..ed82e0e4 100644 --- a/configure.ac +++ b/configure.ac @@ -50,6 +50,42 @@ AS_IF([test $libgnunetutil != 1], *** ]])]) +# check for libpq (postgresql) +AX_LIB_POSTGRESQL([9.3]) +AS_IF([test ! "$found_postgresql" = "yes"], + [AC_MSG_ERROR([[ +*** +*** You need postgresql / libpq to build this program. +*** ]])]) + + +# Check for Taler's libtalerpq +libtalerpq=0 +AC_MSG_CHECKING([for libtalerpq]) +AC_ARG_WITH(mint, + [AS_HELP_STRING([--with-mint=PFX], [base of Taler MINT installation])], + [AC_MSG_RESULT([given as $with_mint])], + [AC_MSG_RESULT(not given) + with_mint=yes]) +AS_CASE([$with_mint], + [yes], [], + [no], [AC_MSG_ERROR([--with-mint is required])], + [LDFLAGS="-L$with_mint/lib $LDFLAGS" + CPPFLAGS="-I$with_mint/include $CPPFLAGS $POSTGRESQL_CPPFLAGS"]) +AC_CHECK_HEADERS([taler/db_pq.h], + [AC_CHECK_LIB([talerpq], [TALER_DB_exec_prepared], libtalerpq=1)], + [], [#ifdef HAVE_GNUNET_PLATFORM_H + #include <gnunet/platform.h> + #endif]) +AS_IF([test $libtalerpq != 1], + [AC_MSG_ERROR([[ +*** +*** You need libtalerpq to build this program. +*** This library is part of the Taler MINT, available at +*** https://taler.net +*** ]])]) + + # check for libmicrohttpd microhttpd=0 AC_MSG_CHECKING([for microhttpd]) @@ -72,15 +108,6 @@ AS_IF([test $microhttpd = 0], *** ]])]) -# check for libpq (postgresql) -AX_LIB_POSTGRESQL([9.3]) -AS_IF([test ! "$found_postgresql" = "yes"], - [AC_MSG_ERROR([[ -*** -*** You need postgresql / libpq to build this program. -*** ]])]) - - # check for libjansson (Jansson JSON library) jansson=0 AC_MSG_CHECKING([for jansson]) |