]> granicus.if.org Git - pdns/commitdiff
fix configure issues and disable lua records for el6 and sles
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Mon, 23 Apr 2018 12:59:07 +0000 (14:59 +0200)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Mon, 23 Apr 2018 13:16:39 +0000 (15:16 +0200)
build-scripts/build-auth-rpm
m4/pdns_with_lua_records.m4

index 9344a6c32d02bb7023584b3b2b51faedbddb6665..aacfe0fa8c22bd9f6d2257b98ab66ccfe0eef934 100755 (executable)
@@ -387,7 +387,8 @@ export CPPFLAGS="-DLDAP_DEPRECATED"
        --enable-libsodium \
        --without-protobuf \
        --enable-remotebackend-http \
-       --enable-unit-tests
+       --enable-unit-tests \
+       --disable-lua-records
 
 make %{?_smp_mflags}
 
@@ -987,7 +988,8 @@ export CPPFLAGS="-DLDAP_DEPRECATED"
        --enable-tools \
        --without-protobuf \
        --enable-unit-tests \
-       --enable-systemd
+       --enable-systemd \
+       --disable-lua-records
 
 make %{?_smp_mflags}
 
index d3c85000362ba19a65ea62a8a845d5c8059a2606..c0d537fdb4e48a1f4d0a429f0f0d11ba6ad6f1c2 100644 (file)
@@ -9,7 +9,9 @@ AC_DEFUN([PDNS_WITH_LUA_RECORDS], [
   AC_MSG_RESULT([$enable_lua_records])
 
   AS_IF([test "x$enable_lua_records" != "xno"], [
-    LIBCURL_CHECK_CONFIG("yes", "7.21.3")
+    LIBCURL_CHECK_CONFIG("yes", "7.21.3", [ : ], [
+      AC_MSG_ERROR([libcurl minimum version requirement not met. This is required for LUA records. You can disable it with the --disable-lua-records switch or use --with-libcurl to select another curl installation.])
+    ])
     AC_DEFINE([HAVE_LUA_RECORDS], [1], [Define if enabling LUA records.])
   ])
   AM_CONDITIONAL([HAVE_LUA_RECORDS], [test "x$enable_lua_records" != "xno"])