|
@@ -92,7 +92,7 @@ AC_CHECK_DECL([__SUNPRO_CC], [SUNCXX="yes"], [SUNCXX="no"])
|
|
AC_CHECK_DECL([__clang__], [CLANGPP="yes"], [CLANGPP="no"])
|
|
AC_CHECK_DECL([__clang__], [CLANGPP="yes"], [CLANGPP="no"])
|
|
AM_CONDITIONAL(USE_CLANGPP, test "X${CLANGPP}" = "Xyes")
|
|
AM_CONDITIONAL(USE_CLANGPP, test "X${CLANGPP}" = "Xyes")
|
|
|
|
|
|
-dnl Determine if weare using GNU sed
|
|
|
|
|
|
+dnl Determine if we are using GNU sed
|
|
GNU_SED=no
|
|
GNU_SED=no
|
|
$SED --version 2> /dev/null | grep GNU > /dev/null 2>&1
|
|
$SED --version 2> /dev/null | grep GNU > /dev/null 2>&1
|
|
if test $? -eq 0; then
|
|
if test $? -eq 0; then
|
|
@@ -106,9 +106,9 @@ fi
|
|
AX_ISC_RPATH
|
|
AX_ISC_RPATH
|
|
|
|
|
|
# Compiler dependent settings: define some mandatory CXXFLAGS here.
|
|
# Compiler dependent settings: define some mandatory CXXFLAGS here.
|
|
-# We also use a separate variable B10_CXXFLAGS. This will (and should) be
|
|
|
|
|
|
+# We also use a separate variable KEA_CXXFLAGS. This will (and should) be
|
|
# used as the default value for each specific AM_CXXFLAGS:
|
|
# used as the default value for each specific AM_CXXFLAGS:
|
|
-# AM_CXXFLAGS = $(B10_CXXFLAGS)
|
|
|
|
|
|
+# AM_CXXFLAGS = $(KEA_CXXFLAGS)
|
|
# AM_CXXFLAGS += ... # add module specific flags
|
|
# AM_CXXFLAGS += ... # add module specific flags
|
|
# We need this so that we can disable some specific compiler warnings per
|
|
# We need this so that we can disable some specific compiler warnings per
|
|
# module basis; since AM_CXXFLAGS are placed before CXXFLAGS, and since
|
|
# module basis; since AM_CXXFLAGS are placed before CXXFLAGS, and since
|
|
@@ -117,23 +117,23 @@ AX_ISC_RPATH
|
|
# "override" the default.
|
|
# "override" the default.
|
|
|
|
|
|
# This may be used to try linker flags.
|
|
# This may be used to try linker flags.
|
|
-AC_DEFUN([BIND10_CXX_TRY_FLAG], [
|
|
|
|
|
|
+AC_DEFUN([KEA_CXX_TRY_FLAG], [
|
|
AC_MSG_CHECKING([whether $CXX supports $1])
|
|
AC_MSG_CHECKING([whether $CXX supports $1])
|
|
|
|
|
|
- bind10_save_CXXFLAGS="$CXXFLAGS"
|
|
|
|
|
|
+ kea_save_CXXFLAGS="$CXXFLAGS"
|
|
CXXFLAGS="$CXXFLAGS $1"
|
|
CXXFLAGS="$CXXFLAGS $1"
|
|
|
|
|
|
AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void){ return 0;}])],
|
|
AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void){ return 0;}])],
|
|
- [bind10_cxx_flag=yes], [bind10_cxx_flag=no])
|
|
|
|
- CXXFLAGS="$bind10_save_CXXFLAGS"
|
|
|
|
|
|
+ [kea_cxx_flag=yes], [kea_cxx_flag=no])
|
|
|
|
+ CXXFLAGS="$kea_save_CXXFLAGS"
|
|
|
|
|
|
- if test "x$bind10_cxx_flag" = "xyes"; then
|
|
|
|
|
|
+ if test "x$kea_cxx_flag" = "xyes"; then
|
|
ifelse([$2], , :, [$2])
|
|
ifelse([$2], , :, [$2])
|
|
else
|
|
else
|
|
ifelse([$3], , :, [$3])
|
|
ifelse([$3], , :, [$3])
|
|
fi
|
|
fi
|
|
|
|
|
|
- AC_MSG_RESULT([$bind10_cxx_flag])
|
|
|
|
|
|
+ AC_MSG_RESULT([$kea_cxx_flag])
|
|
])
|
|
])
|
|
|
|
|
|
CXX_VERSION="unknown"
|
|
CXX_VERSION="unknown"
|
|
@@ -155,22 +155,22 @@ fi
|
|
# on the source code.
|
|
# on the source code.
|
|
if test "$CLANGPP" = "yes"; then
|
|
if test "$CLANGPP" = "yes"; then
|
|
CXX_VERSION=`$CXX --version 2> /dev/null | head -1`
|
|
CXX_VERSION=`$CXX --version 2> /dev/null | head -1`
|
|
-B10_CXXFLAGS="$B10_CXXFLAGS -Qunused-arguments"
|
|
|
|
|
|
+KEA_CXXFLAGS="$KEA_CXXFLAGS -Qunused-arguments"
|
|
fi
|
|
fi
|
|
|
|
|
|
-BIND10_CXX_TRY_FLAG([-Wno-missing-field-initializers],
|
|
|
|
|
|
+KEA_CXX_TRY_FLAG([-Wno-missing-field-initializers],
|
|
[WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG="-Wno-missing-field-initializers"])
|
|
[WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG="-Wno-missing-field-initializers"])
|
|
AC_SUBST(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
|
|
AC_SUBST(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
|
|
|
|
|
|
# gcc specific settings:
|
|
# gcc specific settings:
|
|
if test "X$GXX" = "Xyes"; then
|
|
if test "X$GXX" = "Xyes"; then
|
|
CXX_VERSION=`$CXX --version 2> /dev/null | head -1`
|
|
CXX_VERSION=`$CXX --version 2> /dev/null | head -1`
|
|
-B10_CXXFLAGS="$B10_CXXFLAGS -Wall -Wextra -Wnon-virtual-dtor -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare"
|
|
|
|
|
|
+KEA_CXXFLAGS="$KEA_CXXFLAGS -Wall -Wextra -Wnon-virtual-dtor -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare"
|
|
case "$host" in
|
|
case "$host" in
|
|
*-solaris*)
|
|
*-solaris*)
|
|
MULTITHREADING_FLAG=-pthreads
|
|
MULTITHREADING_FLAG=-pthreads
|
|
# In Solaris, IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT need -Wno-missing-braces
|
|
# In Solaris, IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT need -Wno-missing-braces
|
|
- B10_CXXFLAGS="$B10_CXXFLAGS -Wno-missing-braces"
|
|
|
|
|
|
+ KEA_CXXFLAGS="$KEA_CXXFLAGS -Wno-missing-braces"
|
|
;;
|
|
;;
|
|
*)
|
|
*)
|
|
MULTITHREADING_FLAG=-pthread
|
|
MULTITHREADING_FLAG=-pthread
|
|
@@ -195,7 +195,7 @@ werror_ok=0
|
|
# translation unit. For these versions we have to disable -Werror.
|
|
# translation unit. For these versions we have to disable -Werror.
|
|
if test $with_werror = 1; then
|
|
if test $with_werror = 1; then
|
|
CXXFLAGS_SAVED="$CXXFLAGS"
|
|
CXXFLAGS_SAVED="$CXXFLAGS"
|
|
- CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
|
|
|
|
|
|
+ CXXFLAGS="$CXXFLAGS $KEA_CXXFLAGS -Werror"
|
|
AC_MSG_CHECKING(for in-TU anonymous namespace breakage)
|
|
AC_MSG_CHECKING(for in-TU anonymous namespace breakage)
|
|
# We use struct, not class, here, because some compilers complain about
|
|
# We use struct, not class, here, because some compilers complain about
|
|
# "unused private members", causing a false positive.
|
|
# "unused private members", causing a false positive.
|
|
@@ -203,7 +203,7 @@ if test $with_werror = 1; then
|
|
namespace isc {struct Bar {Foo foo_;};} ],,
|
|
namespace isc {struct Bar {Foo foo_;};} ],,
|
|
[AC_MSG_RESULT(no)
|
|
[AC_MSG_RESULT(no)
|
|
werror_ok=1
|
|
werror_ok=1
|
|
- B10_CXXFLAGS="$B10_CXXFLAGS -Werror"],
|
|
|
|
|
|
+ KEA_CXXFLAGS="$KEA_CXXFLAGS -Werror"],
|
|
[AC_MSG_RESULT(yes)])
|
|
[AC_MSG_RESULT(yes)])
|
|
CXXFLAGS="$CXXFLAGS_SAVED"
|
|
CXXFLAGS="$CXXFLAGS_SAVED"
|
|
fi
|
|
fi
|
|
@@ -224,13 +224,13 @@ if test $enable_static_link = yes -a $enable_static = no; then
|
|
AC_MSG_ERROR([--enable-static-link requires --enable-static])
|
|
AC_MSG_ERROR([--enable-static-link requires --enable-static])
|
|
fi
|
|
fi
|
|
if test $enable_shared = no; then
|
|
if test $enable_shared = no; then
|
|
- AC_MSG_ERROR([BIND 10 requires shared libraries to be built])
|
|
|
|
|
|
+ AC_MSG_ERROR([Kea requires shared libraries to be built])
|
|
fi
|
|
fi
|
|
|
|
|
|
# OS dependent configuration
|
|
# OS dependent configuration
|
|
SET_ENV_LIBRARY_PATH=no
|
|
SET_ENV_LIBRARY_PATH=no
|
|
ENV_LIBRARY_PATH=LD_LIBRARY_PATH
|
|
ENV_LIBRARY_PATH=LD_LIBRARY_PATH
|
|
-bind10_undefined_pthread_behavior=no
|
|
|
|
|
|
+kea_undefined_pthread_behavior=no
|
|
|
|
|
|
case "$host" in
|
|
case "$host" in
|
|
*-solaris*)
|
|
*-solaris*)
|
|
@@ -242,7 +242,7 @@ case "$host" in
|
|
# Destroying locked mutexes, condition variables being waited
|
|
# Destroying locked mutexes, condition variables being waited
|
|
# on, etc. are undefined behavior on Solaris, so we set it as
|
|
# on, etc. are undefined behavior on Solaris, so we set it as
|
|
# such here.
|
|
# such here.
|
|
- bind10_undefined_pthread_behavior=yes
|
|
|
|
|
|
+ kea_undefined_pthread_behavior=yes
|
|
;;
|
|
;;
|
|
*-apple-darwin*)
|
|
*-apple-darwin*)
|
|
# Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use
|
|
# Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use
|
|
@@ -263,7 +263,7 @@ case "$host" in
|
|
#endif
|
|
#endif
|
|
#endif
|
|
#endif
|
|
return 1;
|
|
return 1;
|
|
- }],[bind10_undefined_pthread_behavior=yes],[],[])
|
|
|
|
|
|
+ }],[kea_undefined_pthread_behavior=yes],[],[])
|
|
|
|
|
|
# libtool doesn't work perfectly with Darwin: libtool embeds the
|
|
# libtool doesn't work perfectly with Darwin: libtool embeds the
|
|
# final install path in dynamic libraries and our loadable python
|
|
# final install path in dynamic libraries and our loadable python
|
|
@@ -287,7 +287,7 @@ esac
|
|
AM_CONDITIONAL(SET_ENV_LIBRARY_PATH, test $SET_ENV_LIBRARY_PATH = yes)
|
|
AM_CONDITIONAL(SET_ENV_LIBRARY_PATH, test $SET_ENV_LIBRARY_PATH = yes)
|
|
AC_SUBST(SET_ENV_LIBRARY_PATH)
|
|
AC_SUBST(SET_ENV_LIBRARY_PATH)
|
|
AC_SUBST(ENV_LIBRARY_PATH)
|
|
AC_SUBST(ENV_LIBRARY_PATH)
|
|
-if [ test $bind10_undefined_pthread_behavior = "yes" ]; then
|
|
|
|
|
|
+if [ test $kea_undefined_pthread_behavior = "yes" ]; then
|
|
AC_DEFINE([HAS_UNDEFINED_PTHREAD_BEHAVIOR], [1], [Does this platform have some undefined pthreads behavior?])
|
|
AC_DEFINE([HAS_UNDEFINED_PTHREAD_BEHAVIOR], [1], [Does this platform have some undefined pthreads behavior?])
|
|
fi
|
|
fi
|
|
|
|
|
|
@@ -341,10 +341,10 @@ fi
|
|
|
|
|
|
# produce PIC unless we disable shared libraries. need this for python bindings.
|
|
# produce PIC unless we disable shared libraries. need this for python bindings.
|
|
if test $enable_shared != "no" -a "X$GXX" = "Xyes"; then
|
|
if test $enable_shared != "no" -a "X$GXX" = "Xyes"; then
|
|
- B10_CXXFLAGS="$B10_CXXFLAGS -fPIC"
|
|
|
|
|
|
+ KEA_CXXFLAGS="$KEA_CXXFLAGS -fPIC"
|
|
fi
|
|
fi
|
|
|
|
|
|
-AC_SUBST(B10_CXXFLAGS)
|
|
|
|
|
|
+AC_SUBST(KEA_CXXFLAGS)
|
|
|
|
|
|
# Checks for libraries.
|
|
# Checks for libraries.
|
|
|
|
|
|
@@ -1007,7 +1007,7 @@ LIBS=$LIBS_SAVED
|
|
#
|
|
#
|
|
# Configure Boost header path
|
|
# Configure Boost header path
|
|
#
|
|
#
|
|
-AX_BOOST_FOR_BIND10
|
|
|
|
|
|
+AX_BOOST_FOR_KEA
|
|
# Boost offset_ptr is required in one library and not optional right now, so
|
|
# Boost offset_ptr is required in one library and not optional right now, so
|
|
# we unconditionally fail here if it doesn't work.
|
|
# we unconditionally fail here if it doesn't work.
|
|
if test "$BOOST_OFFSET_PTR_WOULDFAIL" = "yes" -a "$werror_ok" = 1; then
|
|
if test "$BOOST_OFFSET_PTR_WOULDFAIL" = "yes" -a "$werror_ok" = 1; then
|
|
@@ -1518,7 +1518,7 @@ C++ Compiler:
|
|
CPPFLAGS: ${CPPFLAGS}
|
|
CPPFLAGS: ${CPPFLAGS}
|
|
CXXFLAGS: ${CXXFLAGS}
|
|
CXXFLAGS: ${CXXFLAGS}
|
|
LDFLAGS: ${LDFLAGS}
|
|
LDFLAGS: ${LDFLAGS}
|
|
- B10_CXXFLAGS: ${B10_CXXFLAGS}
|
|
|
|
|
|
+ KEA_CXXFLAGS: ${KEA_CXXFLAGS}
|
|
END
|
|
END
|
|
|
|
|
|
if test "$PYTHON" != "no" ; then
|
|
if test "$PYTHON" != "no" ; then
|