]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
make dnsdist compilation conditional on having working c++2011
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 17 Jan 2015 22:22:49 +0000 (23:22 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 17 Jan 2015 22:23:31 +0000 (23:23 +0100)
configure.ac
pdns/Makefile.am

index e86b3510b1268736029ab8fe58cc3c2765fbc37f..f48c015c9c5245594ae124a4bf48f11cea931c43 100644 (file)
@@ -22,7 +22,8 @@ PDNS_CHECK_BISON
 PDNS_CHECK_FLEX
 AC_PROG_INSTALL
 AC_PROG_MAKE_SET
-AX_CXX_COMPILE_STDCXX_11(,optional)
+
+
 AC_PROG_CXX
 AS_IF([test "x$CXX" = "xno" || test "x$CXX:x$GXX" = "xg++:x"],
   AC_MSG_ERROR([no C++ compiler found])
@@ -34,6 +35,8 @@ AC_DEFINE([_GNU_SOURCE], [1],
   [Define _GNU_SOURCE so that we get all necessary prototypes]
 )
 
+AX_CXX_COMPILE_STDCXX_11(,optional)
+AM_CONDITIONAL([CXX2011],[test "$HAVE_CXX11" = "1"])
 AC_CC_PIE
 AC_CC_STACK_PROTECTOR
 AC_CC_PARAM_SSP_BUFFER_SIZE([4])
@@ -228,6 +231,7 @@ AC_ARG_ENABLE([tools],
 AC_MSG_RESULT([$enable_tools])
 AM_CONDITIONAL([TOOLS],[test "x$enable_tools" != "xno"])
 
+
 for a in $modules $dynmodules; do
   case "$a" in
     oracle|goracle)
@@ -369,4 +373,5 @@ AC_MSG_NOTICE([BOOST_CPPFLAGS: $BOOST_CPPFLAGS])
 AC_MSG_NOTICE([])
 AC_MSG_NOTICE([SQLite3 support: $with_sqlite3])
 AC_MSG_NOTICE([Lua support: $with_lua])
+AC_MSG_NOTICE([C++2011 support: $HAVE_CXX11])
 AC_MSG_NOTICE([])
index 97de3562fc9e0ba3ed0f757782cc1403e08bbf56..1841beb3705106310a26f6efd7adaf8a69ecf679 100644 (file)
@@ -69,11 +69,15 @@ bin_PROGRAMS += \
        dnsscope \
        dnstcpbench \
        dnswasher \
-       dnsdist \
        notify \
        nproxy \
        nsec3dig \
        saxfr
+       
+if CXX2011
+bin_PROGRAMS += dnsdist
+endif
+
 endif
 
 EXTRA_PROGRAMS = \