PDNS_ENABLE_PKCS11
PDNS_WITH_CRYPTOPP
PDNS_ENABLE_ED25519
-PDNS_ENABLE_REMOTEBACKEND_ZEROMQ
AS_IF([test "x$static" != "xno"], [
LDFLAGS="-all-static $LDFLAGS"
opendbx)
PDNS_CHECK_OPENDBX
;;
+ remote)
+ have_remotebackend=yes
+ ;;
tinydns)
PDNS_CHECK_CDB
;;
esac
done
+PDNS_ENABLE_REMOTEBACKEND_ZEROMQ
+
AM_CONDITIONAL([ORACLE],[test "x$needoracle" = "xyes"])
AM_CONDITIONAL([LDAP],[test "x$needldap" = "xyes"])
AM_CONDITIONAL([REMOTEBACKEND_ZEROMQ],[test "x$enable_remotebackend_zeromq" != "xno"])
AC_SUBST(REMOTEBACKEND_ZEROMQ)
- AS_IF([test "x$enable_remotebackend_zeromq" != "xno"],
- [PKG_CHECK_MODULES([LIBZMQ], [libzmq],
- [
- AC_DEFINE([HAVE_LIBZMQ], [1], [Define to 1 if you have libzmq])
- AC_DEFINE([REMOTEBACKEND_ZEROMQ], [1], [Define to 1 if you have the ZeroMQ connector])
- REMOTEBACKEND_ZEROMQ=yes
- ],
- [AC_MSG_ERROR([Could not find libzmq])]
- )]
+ AS_IF([test "x$enable_remotebackend_zeromq" != "xno"],
+ [
+ AS_IF([test "x$have_remotebackend" == "xyes"],
+ [
+ PKG_CHECK_MODULES([LIBZMQ], [libzmq],
+ [
+ AC_DEFINE([HAVE_LIBZMQ], [1], [Define to 1 if you have libzmq])
+ AC_DEFINE([REMOTEBACKEND_ZEROMQ], [1], [Define to 1 if you have the ZeroMQ connector])
+ REMOTEBACKEND_ZEROMQ=yes
+ ],
+ [AC_MSG_ERROR([Could not find libzmq])]
+ )
- old_CXXFLAGS="$CXXFLAGS"
- old_LDFLAGS="$LDFLAGS"
- CXXFLAGS="$CFLAGS $LIBZMQ_CFLAGS"
- LDFLAGS="$LDFLAGS $LIBZMQ_LIBS"
- AC_CHECK_LIB([zmq], [zmq_msg_send],
- [
- AC_DEFINE([HAVE_ZMQ_MSG_SEND], [1], [Define to 1 if the ZeroMQ 3.x or greater API is available])
- ])
- CXXFLAGS="$old_CXXFLAGS"
- LDFLAGS="$old_LDFLAGS"
+ old_CXXFLAGS="$CXXFLAGS"
+ old_LDFLAGS="$LDFLAGS"
+ CXXFLAGS="$CFLAGS $LIBZMQ_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBZMQ_LIBS"
+ AC_CHECK_LIB([zmq], [zmq_msg_send],
+ [
+ AC_DEFINE([HAVE_ZMQ_MSG_SEND], [1], [Define to 1 if the ZeroMQ 3.x or greater API is available])
+ ]
+ )
+ CXXFLAGS="$old_CXXFLAGS"
+ LDFLAGS="$old_LDFLAGS"
+ ],
+ [AC_MSG_ERROR([remotebackend \"zeromq\" selected but the \"remote\" backend itself is not selected. Please add \"remote\" to your modules or dynmodules list and re-run configure!])]
+ )
+ ]
)
])
-