AC_CANONICAL_HOST
# Add some default CFLAGS and CXXFLAGS, can be appended to using the environment variables
-CFLAGS="-Wall -g -O2 $CFLAGS"
-CXXFLAGS="-Wall -g -O2 $CXXFLAGS"
+CFLAGS="-g -O2 -Wall -Wextra -Wshadow -Wno-unused-parameter $CFLAGS"
+CXXFLAGS="-g -O2 -Wall -Wextra -Wshadow -Wno-unused-parameter $CXXFLAGS"
AC_PROG_CC
AM_PROG_CC_C_O
PDNS_CHECK_OS
PTHREAD_SET_NAME
-PDNS_WITH_LUA
+PDNS_WITH_LUA([mandatory])
PDNS_CHECK_LUA_HPP
AX_CXX_COMPILE_STDCXX_11
PDNS_FROM_GIT
dnl Checks for library functions.
-AC_CHECK_FUNCS_ONCE([strcasestr localtime_r recvmmsg sched_setscheduler getrandom arc4random])
+dnl the *_r functions are in posix so we can use them unconditionally, but the ext/yahttp code is
+dnl using the defines.
+AC_CHECK_FUNCS_ONCE([strcasestr localtime_r gmtime_r recvmmsg sched_setscheduler getrandom arc4random])
AM_CONDITIONAL([HAVE_RECVMMSG], [test "x$ac_cv_func_recvmmsg" = "xyes"])
godbc)
PDNS_WITH_UNIXODBC
;;
- mydns|gmysql)
+ gmysql)
PDNS_WITH_MYSQL
;;
gpgsql)
PDNS_CHECK_LDAP
needldap=yes
;;
- opendbx)
- PDNS_CHECK_OPENDBX
- ;;
remote)
AS_IF([test "x$enable_unit_tests" = "xyes"],
[PDNS_CHECK_CURL_PROGRAM]
PDNS_CHECK_GEOIP
;;
lua*)
- AS_IF([test "x$with_lua" = "xno"],
- [AC_MSG_ERROR([${a} backend needs lua, run ./configure --with-lua])]
- )
- AS_IF([test "x$LUAPC" = "x"],
- [AC_MSG_ERROR([${a} backend needs lua but we cannot find it])]
- )
+ dnl Lua has been checked above
;;
lmdb)
needlmdb=yes
modules/gsqlite3backend/Makefile
modules/ldapbackend/Makefile
modules/lmdbbackend/Makefile
- modules/luabackend/Makefile
modules/lua2backend/Makefile
- modules/mydnsbackend/Makefile
- modules/opendbxbackend/Makefile
modules/pipebackend/Makefile
modules/randombackend/Makefile
modules/remotebackend/Makefile