diff options
author | JINMEI Tatuya <jinmei@isc.org> | 2010-10-01 18:31:00 +0200 |
---|---|---|
committer | JINMEI Tatuya <jinmei@isc.org> | 2010-10-01 18:31:00 +0200 |
commit | 3363091b8780422e3bd9573d36a607d827296b02 (patch) | |
tree | 47806ece5c42ec5d344cb1975d7139091f786059 /configure.ac | |
parent | disable threads for ASIO (trac #345) (diff) | |
parent | merged patches in trac #355 (diff) | |
download | kea-3363091b8780422e3bd9573d36a607d827296b02.tar.xz kea-3363091b8780422e3bd9573d36a607d827296b02.zip |
sync with trunk
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac345@3099 e5f2f494-b856-4b98-b285-d166d9295462
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 45 |
1 files changed, 41 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index e52ad1b127..cacab8ec81 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,12 @@ if test $enable_shared = no; then AC_MSG_ERROR([BIND 10 requires shared libraries to be built]) fi +# allow configuring without setproctitle. +AC_ARG_ENABLE(setproctitle-check, +AC_HELP_STRING([--disable-setproctitle-check], + [do not check for python setproctitle module (used to give nice names to python processes)]), + setproctitle_check=$enableval, setproctitle_check=yes) + # OS dependent configuration SET_ENV_LIBRARY_PATH=no ENV_LIBRARY_PATH=LD_LIBRARY_PATH @@ -162,6 +168,18 @@ fi AC_SUBST(PYTHON_LIB) LDFLAGS=$LDFLAGS_SAVED +# Check for the setproctitle module +if test "$setproctitle_check" = "yes" ; then + AC_MSG_CHECKING(for setproctitle module) + if "$PYTHON" -c 'import setproctitle' 2>/dev/null ; then + AC_MSG_RESULT(ok) + else + AC_MSG_RESULT(missing) + AC_MSG_ERROR([Missing setproctitle module. Either install it or provide --disable-setproctitle-check. +In that case we will continue, but naming of python processes will not work.]) + fi +fi + # TODO: check for _sqlite3.py module # Compiler dependent settings: define some mandatory CXXFLAGS here. @@ -277,14 +295,31 @@ if test "$lcov" != "no"; then fi AC_SUBST(USE_LCOV) +# +# Configure Boost header path +# +# If explicitly specified, use it. AC_ARG_WITH([boost-include], AC_HELP_STRING([--with-boost-include=PATH], [specify exact directory for Boost headers]), [boost_include_path="$withval"]) +# If not specified, try some common paths. +if test -z "$with_boost_include"; then + boostdirs="/usr/local /usr/pkg /opt /opt/local" + for d in $boostdirs + do + if test -f $d/include/boost/shared_ptr.hpp; then + boost_include_path=$d/include + break + fi + done +fi if test "${boost_include_path}" ; then BOOST_INCLUDES="-I${boost_include_path}" CPPFLAGS="$CPPFLAGS $BOOST_INCLUDES" fi +AC_CHECK_HEADERS([boost/shared_ptr.hpp boost/foreach.hpp],, + AC_MSG_ERROR([Missing required header files.])) AC_SUBST(BOOST_INCLUDES) # @@ -399,10 +434,6 @@ if test "X$ac_cv_have_devpoll" = "Xyes" -a "X$GXX" = "Xyes"; then CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_DEV_POLL=1" fi -# Check for headers from required devel kits. -AC_CHECK_HEADERS([boost/shared_ptr.hpp boost/foreach.hpp],, - AC_MSG_ERROR([Missing required header files.])) - AC_ARG_ENABLE(man, [AC_HELP_STRING([--enable-man], [regenerate man pages [default=no]])] ,enable_man=yes, enable_man=no) @@ -433,6 +464,7 @@ AC_CONFIG_FILES([Makefile src/bin/msgq/tests/Makefile src/bin/auth/Makefile src/bin/auth/tests/Makefile + src/bin/auth/tests/testdata/Makefile src/bin/auth/benchmarks/Makefile src/bin/xfrin/Makefile src/bin/xfrin/tests/Makefile @@ -441,6 +473,7 @@ AC_CONFIG_FILES([Makefile src/bin/zonemgr/Makefile src/bin/zonemgr/tests/Makefile src/bin/usermgr/Makefile + src/bin/tests/Makefile src/lib/Makefile src/lib/bench/Makefile src/lib/bench/example/Makefile @@ -449,6 +482,8 @@ AC_CONFIG_FILES([Makefile src/lib/cc/tests/Makefile src/lib/python/Makefile src/lib/python/isc/Makefile + src/lib/python/isc/utils/Makefile + src/lib/python/isc/utils/tests/Makefile src/lib/python/isc/datasrc/Makefile src/lib/python/isc/cc/Makefile src/lib/python/isc/cc/tests/Makefile @@ -463,6 +498,7 @@ AC_CONFIG_FILES([Makefile src/lib/config/testdata/Makefile src/lib/dns/Makefile src/lib/dns/tests/Makefile + src/lib/dns/tests/testdata/Makefile src/lib/dns/python/Makefile src/lib/dns/python/tests/Makefile src/lib/exceptions/Makefile @@ -506,6 +542,7 @@ AC_OUTPUT([src/bin/cfgmgr/b10-cfgmgr.py src/bin/msgq/run_msgq.sh src/bin/auth/auth.spec.pre src/bin/auth/spec_config.h.pre + src/bin/tests/process_rename_test.py src/lib/config/tests/data_def_unittests_config.h src/lib/python/isc/config/tests/config_test src/lib/python/isc/cc/tests/cc_test |