From: Thomas D Date: Fri, 13 Feb 2015 12:58:26 +0000 (+0100) Subject: Add check for curl program X-Git-Tag: dnsdist-1.0.0-alpha1~285^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98540f9f0883ecc41d912db3eb8f00816fdbddb6;p=thirdparty%2Fpdns.git Add check for curl program When building "remote" module with unit tests enabled we need the curl program because the remotebacked testsuite uses the curl program. --- diff --git a/configure.ac b/configure.ac index b89e6cac9e..cde58a67d7 100644 --- a/configure.ac +++ b/configure.ac @@ -269,6 +269,10 @@ for a in $modules $dynmodules; do PDNS_CHECK_OPENDBX ;; remote) + AS_IF([test "x$enable_unit_tests" = "xyes"], + [PDNS_CHECK_CURL_PROGRAM] + ) + have_remotebackend=yes ;; tinydns) diff --git a/m4/pdns_check_curl_program.m4 b/m4/pdns_check_curl_program.m4 new file mode 100644 index 0000000000..d6abe1c7d0 --- /dev/null +++ b/m4/pdns_check_curl_program.m4 @@ -0,0 +1,7 @@ +AC_DEFUN([PDNS_CHECK_CURL_PROGRAM], [ + AC_CHECK_PROG([CURL], [curl], [curl], [no]) + + AS_IF([test "x$CURL" = "xno"], [ + AC_MSG_ERROR([curl program is missing, required for running remotebackend unit tests]) + ]) +])