]> granicus.if.org Git - pdns/commitdiff
Move define to the right place
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 24 Dec 2014 18:06:49 +0000 (19:06 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 24 Dec 2014 18:06:49 +0000 (19:06 +0100)
configure.ac

index 000f601ef114d9b96a5b9db6cd215e253f487eff..5a4ddd19f4868634914f574c2a3755a1271da9a1 100644 (file)
@@ -286,10 +286,9 @@ AM_CONDITIONAL([LMDB],[test "x$needlmdb" = "xyes"])
 AM_CONDITIONAL([SQLITE3], [test "x$needsqlite3" = "xyes"])
 AS_IF([test "x$needsqlite3" = "xyes"], [
   PKG_CHECK_MODULES([SQLITE3], $SQLITE3PC,
-    [HAVE_SQLITE3=yes],
-    [AC_MSG_ERROR([Could not find sqlite3])]
+    [AC_DEFINE([HAVE_SQLITE3], [1], [Define to 1 if you have sqlite3])],
+    [AC_MSG_ERROR([Could not find libsqlite3])]
   )
-  AC_DEFINE([HAVE_SQLITE3],[1],[If we have sqlite3])
 ])
 
 for a in $modules; do