diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-11-26 14:20:59 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-11-26 14:20:59 +0100 |
commit | 867f98457bbcd0cdc86fc9f14549da44176277bb (patch) | |
tree | c8f45b854bc7217542a6839d06af0f98e6dcf397 /configure.ac | |
parent | 6d874378f38e78e43f3a42fe764f3adc9e1f3427 (diff) |
revising backenddb-API, towards pluginificiation
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac index b66b8b00..fd7c9981 100644 --- a/configure.ac +++ b/configure.ac @@ -50,14 +50,12 @@ AS_IF([test $libgnunetutil != 1], *** ]])]) -# check for libpq (postgresql) +# test for postgres AX_LIB_POSTGRESQL([9.3]) -AS_IF([test ! "$found_postgresql" = "yes"], - [AC_MSG_ERROR([[ -*** -*** You need postgresql / libpq to build this program. -*** ]])]) - +if test "$found_postgresql" = "yes"; then + postgres=true +fi +AM_CONDITIONAL(HAVE_POSTGRESQL, test x$postgres = xtrue) # Check for Taler's libtalerpq libtalerpq=0 @@ -81,13 +79,7 @@ AC_CHECK_HEADERS([taler/taler_pq_lib.h], [], [#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 -*** ]])]) +AM_CONDITIONAL(HAVE_TALERPQ, test x$libtalerpq = x1) # check for libmicrohttpd |