diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 47 |
1 files changed, 44 insertions, 3 deletions
diff --git a/configure.in b/configure.in index affe47bb81f36..c4ff207b754c3 100644 --- a/configure.in +++ b/configure.in @@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl esyscmd([sed "s/^/# /" COPYRIGHT])dnl AC_DIVERT_POP()dnl -AC_REVISION($Revision: 1.457.26.35 $) +AC_REVISION($Revision: 1.457.26.40 $) AC_INIT(lib/dns/name.c) AC_PREREQ(2.59) @@ -62,6 +62,25 @@ It is available from http://www.isc.org as a separate download.]) esac +AC_ARG_ENABLE(developer, [ --enable-developer enable developer build settings]) +case "$enable_developer" in +yes) + test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes + test "${with_atf+set}" = set || with_atf=yes + test "${enable_filter_aaaa+set}" = set || enable_filter_aaaa=yes + test "${enable_rpz_nsip+set}" = set || enable_rpz_nsip=yes + test "${enable_rpz_nsdname+set}" = set || enable_rpz_nsdname=yes + test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes + case "$host" in + *-darwin*) + test "${enable_exportlib+set}" = set || enable_exportlib=yes + ;; + *-linux*) + test "${enable_exportlib+set}" = set || enable_exportlib=yes + ;; + esac + ;; +esac # # Make very sure that these are the first files processed by # config.status, since we use the processed output as the input for @@ -261,10 +280,18 @@ case "$host" in # as it breaks how the two halves (Basic and Advanced) of the IPv6 # Socket API were designed to be used but we have to live with it. # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. - *-linux*) + *-linux* | *-kfreebsd*-gnu) STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE" CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" ;; + # + # Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use. + # Setting this is sufficient to select the correct behavior for BIND 9. + # + *-darwin*) + STD_CDEFINES="$STD_CDEFINES -D__APPLE_USE_RFC_3542" + CPPFLAGS="$CPPFLAGS -D__APPLE_USE_RFC_3542" + ;; esac AC_HEADER_STDC @@ -337,6 +364,20 @@ AC_TRY_COMPILE([],[long long i = 0; return (0);], AC_SUBST(ISC_PLATFORM_HAVELONGLONG) # +# check for GCC noreturn attribute +# +AC_MSG_CHECKING(for GCC noreturn attribute) +AC_TRY_COMPILE([],[void foo() __attribute__((noreturn));], + [AC_MSG_RESULT(yes) + ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE" + ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"], + [AC_MSG_RESULT(no) + ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE" + ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"]) +AC_SUBST(ISC_PLATFORM_NORETURN_PRE) +AC_SUBST(ISC_PLATFORM_NORETURN_POST) + +# # check if we have lifconf # AC_MSG_CHECKING(for struct lifconf) @@ -477,7 +518,6 @@ AC_SUBST(LWRES_PLATFORM_NEEDSYSSELECTH) # AC_C_BIGENDIAN - # # was --with-openssl specified? # @@ -2978,6 +3018,7 @@ AC_CONFIG_FILES([ lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h + lib/isc/tests/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile |