Allow using things that were deprecated in gtk+-3.22.
[freeciv.git] / m4 / fcdb-sqlite3.m4
blobf9f0a3a70806672506db365442db4dabea0fcf28
1 # Check for Freeciv Authentication using sqlite3
3 # Called without any parameters.
5 AC_DEFUN([FC_FCDB_SQLITE3],
7   if test "x$fcdb_all" = "xyes" || test "x$fcdb_sqlite3" = "xyes" ; then
9     FC_CHECK_SQLITE3(
10     [
11       FCDB_SQLITE3_CFLAGS="$sqlite3_cflags"
12       FCDB_SQLITE3_LIBS="$sqlite3_ldflags"
14       AC_SUBST(FCDB_SQLITE3_CFLAGS)
16       AC_DEFINE([HAVE_FCDB_SQLITE3], [1], [Have Sqlite3 database backend])
17       fcdb_sqlite3=yes
18     ],
19     [
20       if test "x$fcdb_sqlite3" = "xyes" ; then
21         AC_MSG_ERROR([fcdb database sqlite3 not available])
22       fi
23       fcdb_sqlite3=no
24     ])
26   fi
28   AM_CONDITIONAL(FCDB_SQLITE3, test "x$fcdb_sqlite3" = "xyes")