From 0806adff55d0a29601b90d94857e00906854f2b7 Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand Date: Mon, 23 Apr 2018 14:59:07 +0200 Subject: [PATCH] fix configure issues and disable lua records for el6 and sles --- build-scripts/build-auth-rpm | 6 ++++-- m4/pdns_with_lua_records.m4 | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build-scripts/build-auth-rpm b/build-scripts/build-auth-rpm index 9344a6c32..aacfe0fa8 100755 --- a/build-scripts/build-auth-rpm +++ b/build-scripts/build-auth-rpm @@ -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} diff --git a/m4/pdns_with_lua_records.m4 b/m4/pdns_with_lua_records.m4 index d3c850003..c0d537fdb 100644 --- a/m4/pdns_with_lua_records.m4 +++ b/m4/pdns_with_lua_records.m4 @@ -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"]) -- 2.40.0