don't even check for postgres when building for taler, since it breaks the build
authorFlorian Dold <florian.dold@gmail.com>
Thu, 13 Oct 2016 01:51:27 +0000 (01:51 +0000)
committerFlorian Dold <florian.dold@gmail.com>
Thu, 13 Oct 2016 01:51:27 +0000 (01:51 +0000)
configure.ac

index bd230860d46c8de04925b3032e1dbb2cacad8cae..50bc45594b92e319b426d0ecc22afbe678222365 100644 (file)
@@ -796,14 +796,16 @@ AC_SUBST(SQLITE_LDFLAGS)
 
 # test for postgres
 postgres=false
-AX_LIB_POSTGRESQL([])
-if test "$found_postgresql" = "yes"; then
-  CFLAGS="$CFLAGS $POSTGRESQL_CPPFLAGS"
-  CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS"
-  AC_CHECK_HEADERS([libpq-fe.h],
-    postgres=true)
+# even running the check for postgres breaks emscripten ...
+if test "$taler_only" != yes; then
+  AX_LIB_POSTGRESQL([])
+  if test "$found_postgresql" = "yes"; then
+    CFLAGS="$CFLAGS $POSTGRESQL_CPPFLAGS"
+    CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS"
+    AC_CHECK_HEADERS([libpq-fe.h],
+      postgres=true)
+  fi
 fi
-
 AM_CONDITIONAL(HAVE_POSTGRESQL, test x$postgres = xtrue)