1 # Check for Freeciv Authentication using postgres
3 # Called without any parameters.
5 AC_DEFUN([FC_FCDB_POSTGRES],
7 if test "x$fcdb_all" = "xyes" || test "x$fcdb_postgres" = "xyes" ; then
11 FCDB_POSTGRES_CFLAGS="$postgresql_cflags"
12 FCDB_POSTGRES_LIBS="$postgresql_ldflags"
14 AC_SUBST(FCDB_POSTGRES_CFLAGS)
16 AC_DEFINE([HAVE_FCDB_POSTGRES], [1], [Have postgres database backend])
20 if test "x$fcdb_postgres" = "xyes" ; then
21 AC_MSG_ERROR([fcdb database postgres not available])
28 AM_CONDITIONAL(FCDB_POSTGRES, test "x$fcdb_postgres" = "xyes")