From: Peter van Dijk Date: Wed, 24 Dec 2014 23:02:16 +0000 (+0100) Subject: Revert "(Finally) move sqlite3 to separate checks" as suggested by @rubenk. X-Git-Tag: rec-3.7.0-rc1~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=935be639046a046b9f440be0456bfdb9a8a6d72a;p=pdns Revert "(Finally) move sqlite3 to separate checks" as suggested by @rubenk. This reverts commit 01b94816efbc70f185c94202c6d1c9191cb916f4. --- diff --git a/configure.ac b/configure.ac index d414e7dc5..a67f5c5d9 100644 --- a/configure.ac +++ b/configure.ac @@ -85,7 +85,18 @@ BOOST_SERIALIZATION([mt]) PDNS_ENABLE_UNIT_TESTS -PDNS_WITH_SQLITE3 +dnl Allow user to require SQLite3 +AC_MSG_CHECKING([whether user requires sqlite3]) +AC_ARG_WITH([sqlite3], + [AS_HELP_STRING([--with-sqlite3],[include sqlite3 driver @<:@default=no@:>@])], + [with_sqlite3=$withval], + [with_sqlite3=no] +) +AC_MSG_RESULT([$with_sqlite3]) + +AS_IF([test "x$with_sqlite3" != "xno"], [ + needsqlite3=yes +]) dnl Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T @@ -240,7 +251,6 @@ for a in $modules $dynmodules; do ;; gsqlite3) needsqlite3=yes - PDNS_CHECK_SQLITE3 ;; ldap) PDNS_CHECK_LDAP @@ -270,6 +280,12 @@ AM_CONDITIONAL([ORACLE],[test "x$needoracle" = "xyes"]) AM_CONDITIONAL([LMDB],[test "x$needlmdb" = "xyes"]) AM_CONDITIONAL([SQLITE3], [test "x$needsqlite3" = "xyes"]) +AS_IF([test "x$needsqlite3" = "xyes"], [ + PKG_CHECK_MODULES([SQLITE3], [sqlite3], + [AC_DEFINE([HAVE_SQLITE3], [1], [Define to 1 if you have sqlite3])], + [AC_MSG_ERROR([Could not find libsqlite3])] + ) +]) for a in $modules; do moduledirs="$moduledirs ${a}backend" diff --git a/m4/pdns_check_sqlite3.m4 b/m4/pdns_check_sqlite3.m4 deleted file mode 100644 index e2a5e78dd..000000000 --- a/m4/pdns_check_sqlite3.m4 +++ /dev/null @@ -1,8 +0,0 @@ -AC_DEFUN([PDNS_CHECK_SQLITE3], [ - AS_IF([test "x$needsqlite3" = "xyes"], [ - PKG_CHECK_MODULES([SQLITE3], [sqlite3], - [AC_DEFINE([HAVE_SQLITE3], [1], [Define to 1 if you have sqlite3])], - [AC_MSG_ERROR([Could not find libsqlite3])] - ) - ]) -]) diff --git a/m4/pdns_with_sqlite3.m4 b/m4/pdns_with_sqlite3.m4 deleted file mode 100644 index 952ad101a..000000000 --- a/m4/pdns_with_sqlite3.m4 +++ /dev/null @@ -1,13 +0,0 @@ -AC_DEFUN([PDNS_WITH_SQLITE3], [ - AC_MSG_CHECKING([whether user requires sqlite3]) - AC_ARG_WITH([sqlite3], - [AS_HELP_STRING([--with-sqlite3],[include sqlite3 driver @<:@default=no@:>@])], - [with_sqlite3=$withval], - [with_sqlite3=no] - ) - AC_MSG_RESULT([$with_sqlite3]) - - AS_IF([test "x$with_sqlite3" != "xno"], [ - needsqlite3=yes - ]) -])