configure.ac 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.59])
  4. AC_INIT(bind10-devel, 20100701, bind10-dev@isc.org)
  5. AC_CONFIG_SRCDIR(README)
  6. AM_INIT_AUTOMAKE
  7. AC_CONFIG_HEADERS([config.h])
  8. # Checks for programs.
  9. AC_PROG_CXX
  10. AC_PROG_LIBTOOL
  11. # Use C++ language
  12. AC_LANG([C++])
  13. # Identify the compiler: this check must be after AC_PROG_CXX and AC_LANG.
  14. AM_CONDITIONAL(USE_GXX, test "X${GXX}" = "Xyes")
  15. AC_CHECK_DECL([__SUNPRO_CC], [SUNCXX="yes"], [SUNCXX="no"])
  16. # Linker options
  17. # check -R rather than gcc specific -rpath to be as portable as possible.
  18. AC_MSG_CHECKING([whether -R flag is available in linker])
  19. LDFLAGS_SAVED="$LDFLAGS"
  20. LDFLAGS="$LDFLAGS -R/usr/lib"
  21. AC_TRY_LINK([],[],
  22. [ AC_MSG_RESULT(yes)
  23. rpath_available=yes
  24. ],[ AC_MSG_RESULT(no)
  25. rpath_available=no
  26. ])
  27. LDFLAGS=$LDFLAGS_SAVED
  28. # allow building programs with static link. we need to make it selective
  29. # because loadable modules cannot be statically linked.
  30. AC_ARG_ENABLE([static-link],
  31. AC_HELP_STRING([--enable-static-link],
  32. [build programs with static link [[default=no]]]),
  33. [enable_static_link=yes], [enable_static_link=no])
  34. AM_CONDITIONAL(USE_STATIC_LINK, test $enable_static_link = yes)
  35. # Check validity about some libtool options
  36. if test $enable_static_link = yes -a $enable_static = no; then
  37. AC_MSG_ERROR([--enable-static-link requires --enable-static])
  38. fi
  39. if test $enable_shared = no; then
  40. AC_MSG_ERROR([BIND 10 requires shared libraries to be built])
  41. fi
  42. # allow configuring without setproctitle.
  43. AC_ARG_ENABLE(setproctitle-check,
  44. AC_HELP_STRING([--disable-setproctitle-check],
  45. [do not check for python setproctitle module (used to give nice names to python processes)]),
  46. setproctitle_check=$enableval, setproctitle_check=yes)
  47. # OS dependent configuration
  48. SET_ENV_LIBRARY_PATH=no
  49. ENV_LIBRARY_PATH=LD_LIBRARY_PATH
  50. case "$host" in
  51. *-solaris*)
  52. # Solaris requires special definitions to get some standard libraries
  53. # (e.g. getopt(3)) available with common used header files.
  54. CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
  55. ;;
  56. *-apple-darwin*)
  57. # libtool doesn't work pefectly with Darwin: libtool embeds the
  58. # final install path in dynamic libraries and our loadable python
  59. # modules always refer to that path even if it's loaded within the
  60. # source tree. This prevents pre-install tests from working.
  61. # To work around this problem we explicitly specify paths to dynamic
  62. # libraries when we use them in the source tree.
  63. SET_ENV_LIBRARY_PATH=yes
  64. ENV_LIBRARY_PATH=DYLD_LIBRARY_PATH
  65. ;;
  66. esac
  67. AM_CONDITIONAL(SET_ENV_LIBRARY_PATH, test $SET_ENV_LIBRARY_PATH = yes)
  68. AC_SUBST(SET_ENV_LIBRARY_PATH)
  69. AC_SUBST(ENV_LIBRARY_PATH)
  70. m4_define([_AM_PYTHON_INTERPRETER_LIST], [python python3 python3.1])
  71. AC_ARG_WITH([pythonpath],
  72. AC_HELP_STRING([--with-pythonpath=PATH],
  73. [specify an absolute path to python executable when automatic version check (incorrectly) fails]),
  74. [python_path="$withval"], [python_path="auto"])
  75. if test "$python_path" = auto; then
  76. AM_PATH_PYTHON([3.1])
  77. else
  78. # Older versions of automake can't handle python3 well. This is an
  79. # in-house workaround for them.
  80. PYTHON=$python_path
  81. AC_SUBST(PYTHON)
  82. PYTHON_PREFIX='${prefix}'
  83. AC_SUBST(PYTHON_PREFIX)
  84. PYTHON_EXEC_PREFIX='$(exec_prefix)'
  85. AC_SUBST(PYTHON_EXEC_PREFIX)
  86. PYTHON_VERSION=[`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`]
  87. if test `echo "$PYTHON_VERSION >= 3.1" | bc` != 1 ; then
  88. AC_MSG_ERROR(["Python version too old: $PYTHON_VERSION, need 3.1 or higher"])
  89. fi
  90. AC_SUBST(PYTHON_VERSION)
  91. PYTHON_PLATFORM=`$PYTHON -c "import sys; print(sys.platform)"`
  92. AC_SUBST(PYTHON_PLATFORM)
  93. pythondir='${prefix}/lib/python'$PYTHON_VERSION'/site-packages'
  94. AC_SUBST(pythondir)
  95. pkgpythondir='${pythondir}/'$PACKAGE
  96. AC_SUBST(pkgpythondir)
  97. pyexecdir='${exec_prefix}/lib/python'$PYTHON_VERSION'/site-packages'
  98. AC_SUBST(pyexecdir)
  99. pkgpyexecdir='${pyexecdir}/'$PACKAGE
  100. AC_SUBST(pkgpyexecdir)
  101. fi
  102. # Check for python development environments
  103. if test -x ${PYTHON}-config; then
  104. PYTHON_INCLUDES=`${PYTHON}-config --includes`
  105. for flag in `${PYTHON}-config --ldflags`; do
  106. # add any '-L..." flags to PYTHON_LDFLAGS
  107. flag=`echo $flag | sed -ne 's/^\(\-L.*\)$/\1/p'`
  108. if test "X${flag}" != X; then
  109. PYTHON_LDFLAGS="$PYTHON_LDFLAGS ${flag}"
  110. fi
  111. done
  112. # on some platforms, ${PYTHON}-config --ldflags doesn't provide a -L
  113. # option while having the library under a non trivial directory.
  114. # as a workaround we try the "lib" sub directory under the common
  115. # prefix for this python.
  116. if test -z "${PYTHON_LDFLAGS}"; then
  117. PYTHON_LDFLAGS="-L`${PYTHON}-config --prefix`/lib"
  118. fi
  119. else
  120. if test "X$PYTHON_INCLUDES" = X -o "X$PYTHON_LDFLAGS" = X; then
  121. AC_MSG_WARN([${PYTHON}-config does not exist or is not executable, so we could not detect python development environment. Your system may require an additional package (e.g. "python3-dev"). Alternatively, if you are sure you have python headers and libraries, define PYTHON_INCLUDES and PYTHON_LDFLAGS and run this script.])
  122. fi
  123. fi
  124. # Some OSes including NetBSD don't install libpython.so in a well known path.
  125. # To avoid requiring dynamic library path with our python wrapper loadable
  126. # modules, we embed the path to the modules when possible. We do this even
  127. # when the path is known in the common operational environment (e.g. when
  128. # it's stored in a common "hint" file) for simplicity.
  129. if test $rpath_available = yes; then
  130. python_rpath=
  131. for flag in ${PYTHON_LDFLAGS}; do
  132. python_rpath="${python_rpath} `echo $flag | sed -ne 's/^\(\-L\)/-R/p'`"
  133. done
  134. PYTHON_LDFLAGS="${PYTHON_LDFLAGS} ${python_rpath}"
  135. fi
  136. AC_SUBST(PYTHON_INCLUDES)
  137. AC_SUBST(PYTHON_LDFLAGS)
  138. CPPFLAGS_SAVED="$CPPFLAGS"
  139. CPPFLAGS="$CPPFLAGS ${PYTHON_INCLUDES}"
  140. AC_CHECK_HEADERS([Python.h],, AC_MSG_ERROR([Missing Python.h]))
  141. CPPFLAGS="$CPPFLAGS_SAVED"
  142. # Check for python library. Needed for Python-wrapper libraries.
  143. LDFLAGS_SAVED="$LDFLAGS"
  144. LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS"
  145. python_bin="python${PYTHON_VERSION}"
  146. AC_CHECK_LIB($python_bin, main, python_lib=$python_bin, python_lib=no)
  147. if test $python_lib != "no"; then
  148. PYTHON_LIB="-l$python_lib"
  149. fi
  150. AC_SUBST(PYTHON_LIB)
  151. LDFLAGS=$LDFLAGS_SAVED
  152. # Check for the setproctitle module
  153. if test "$setproctitle_check" = "yes" ; then
  154. AC_MSG_CHECKING(for setproctitle module)
  155. if "$PYTHON" -c 'import setproctitle' 2>/dev/null ; then
  156. AC_MSG_RESULT(ok)
  157. else
  158. AC_MSG_RESULT(missing)
  159. AC_MSG_ERROR([Missing setproctitle module. Either install it or provide --disable-setproctitle-check.
  160. In that case we will continue, but naming of python processes will not work.])
  161. fi
  162. fi
  163. # TODO: check for _sqlite3.py module
  164. # Compiler dependent settings: define some mandatory CXXFLAGS here.
  165. # We also use a separate variable B10_CXXFLAGS. This will (and should) be
  166. # used as the default value for each specifc AM_CXXFLAGS:
  167. # AM_CXXFLAGS = $(B10_CXXFLAGS)
  168. # AM_CXXFLAGS += ... # add module specific flags
  169. # We need this so that we can disable some specific compiler warnings per
  170. # module basis; since AM_CXXFLAGS are placed before CXXFLAGS, and since
  171. # gcc's -Wno-XXX option must be specified after -Wall or -Wextra, we cannot
  172. # specify the default warning flags in CXXFLAGS and let specific modules
  173. # "override" the default.
  174. werror_ok=0
  175. # SunStudio compiler requires special compiler options for boost
  176. # (http://blogs.sun.com/sga/entry/boost_mini_howto)
  177. if test "$SUNCXX" = "yes"; then
  178. CXXFLAGS="$CXXFLAGS -library=stlport4 -features=tmplife -features=tmplrefstatic"
  179. fi
  180. # gcc specific settings:
  181. if test "X$GXX" = "Xyes"; then
  182. B10_CXXFLAGS="-Wall -Wextra -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare"
  183. UNUSED_PARAM_ATTRIBUTE='__attribute__((unused))'
  184. # Certain versions of gcc (g++) have a bug that incorrectly warns about
  185. # the use of anonymous name spaces even if they're closed in a single
  186. # translation unit. For these versions we have to disable -Werror.
  187. CXXFLAGS_SAVED="$CXXFLAGS"
  188. CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
  189. AC_MSG_CHECKING(for in-TU anonymous namespace breakage)
  190. AC_TRY_COMPILE([namespace { class Foo {}; }
  191. namespace isc {class Bar {Foo foo_;};} ],,
  192. [AC_MSG_RESULT(no)
  193. werror_ok=1
  194. B10_CXXFLAGS="$B10_CXXFLAGS -Werror"],
  195. [AC_MSG_RESULT(yes)])
  196. CXXFLAGS="$CXXFLAGS_SAVED"
  197. fi dnl GXX = yes
  198. AM_CONDITIONAL(GCC_WERROR_OK, test $werror_ok = 1)
  199. AC_DEFINE_UNQUOTED(UNUSED_PARAM, $UNUSED_PARAM_ATTRIBUTE, Define to compiler keyword indicating a function argument is intentionally unused)
  200. # produce PIC unless we disable shared libraries. need this for python bindings.
  201. if test $enable_shared != "no" -a "X$GXX" = "Xyes"; then
  202. B10_CXXFLAGS="$B10_CXXFLAGS -fPIC"
  203. fi
  204. AC_SUBST(B10_CXXFLAGS)
  205. # Checks for libraries.
  206. AC_SEARCH_LIBS(inet_pton, [nsl])
  207. AC_SEARCH_LIBS(recvfrom, [socket])
  208. # Checks for header files.
  209. # Checks for typedefs, structures, and compiler characteristics.
  210. AC_HEADER_STDBOOL
  211. AC_TYPE_SIZE_T
  212. AC_MSG_CHECKING(for sa_len in struct sockaddr)
  213. AC_TRY_COMPILE([
  214. #include <sys/types.h>
  215. #include <sys/socket.h>],
  216. [struct sockaddr sa; sa.sa_len = 0; return (0);],
  217. [AC_MSG_RESULT(yes)
  218. AC_DEFINE(HAVE_SA_LEN, 1, [Define to 1 if sockaddr has a sa_len member, and corresponding sin_len and sun_len])],
  219. AC_MSG_RESULT(no))
  220. AC_ARG_WITH(pycoverage,
  221. [ --with-pycoverage[=PROGRAM] enable python code coverage using the specified coverage], pycoverage="$withval", pycoverage="no")
  222. if test "$pycoverage" = "no" ; then
  223. # just run the tests normally with python
  224. PYCOVERAGE_RUN="${PYTHON}"
  225. USE_PYCOVERAGE="no"
  226. elif test "$pycoverage" = "yes" ; then
  227. PYCOVERAGE="coverage"
  228. PYCOVERAGE_RUN="${PYCOVERAGE} run --branch --append"
  229. USE_PYCOVERAGE="yes"
  230. else
  231. PYCOVERAGE="$pycoverage"
  232. PYCOVERAGE_RUN="${PYCOVERAGE} run --branch --append"
  233. USE_PYCOVERAGE="yes"
  234. fi
  235. AM_CONDITIONAL(ENABLE_PYTHON_COVERAGE, test x$USE_PYCOVERAGE != xno)
  236. AC_SUBST(PYCOVERAGE)
  237. AC_SUBST(USE_PYCOVERAGE)
  238. AC_ARG_WITH(lcov,
  239. [ --with-lcov[=PROGRAM] enable gtest and coverage target using the specified lcov], lcov="$withval", lcov="no")
  240. AC_ARG_WITH(gtest,
  241. [ --with-gtest=PATH specify a path to gtest header files (PATH/include) and library (PATH/lib)],
  242. gtest_path="$withval", gtest_path="no")
  243. USE_LCOV="no"
  244. if test "$lcov" != "no"; then
  245. # force gtest if not set
  246. if test "$gtest_path" = "no"; then
  247. # AC_MSG_ERROR("lcov needs gtest for test coverage report")
  248. AC_MSG_NOTICE([gtest support is now enabled, because used by coverage tests])
  249. gtest_path="yes"
  250. fi
  251. if test "$lcov" != "yes"; then
  252. LCOV=$lcov
  253. else
  254. AC_PATH_PROG([LCOV], [lcov])
  255. fi
  256. if test -x "${LCOV}"; then
  257. USE_LCOV="yes"
  258. else
  259. AC_MSG_ERROR([Cannot find lcov.])
  260. fi
  261. # is genhtml always in the same directory?
  262. GENHTML=`echo "$LCOV" | sed s/lcov$/genhtml/`
  263. if test ! -x $GENHTML; then
  264. AC_MSG_ERROR([genhtml not found, needed for lcov])
  265. fi
  266. # GCC specific?
  267. CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
  268. LIBS=" $LIBS -lgcov"
  269. AC_SUBST(CPPFLAGS)
  270. AC_SUBST(LIBS)
  271. AC_SUBST(LCOV)
  272. AC_SUBST(GENHTML)
  273. fi
  274. AC_SUBST(USE_LCOV)
  275. #
  276. # Configure Boost header path
  277. #
  278. # If explicitly specified, use it.
  279. AC_ARG_WITH([boost-include],
  280. AC_HELP_STRING([--with-boost-include=PATH],
  281. [specify exact directory for Boost headers]),
  282. [boost_include_path="$withval"])
  283. # If not specified, try some common paths.
  284. if test -z "$with_boost_include"; then
  285. boostdirs="/usr/local /usr/pkg /opt /opt/local"
  286. for d in $boostdirs
  287. do
  288. if test -f $d/include/boost/shared_ptr.hpp; then
  289. boost_include_path=$d/include
  290. break
  291. fi
  292. done
  293. fi
  294. if test "${boost_include_path}" ; then
  295. BOOST_INCLUDES="-I${boost_include_path}"
  296. CPPFLAGS="$CPPFLAGS $BOOST_INCLUDES"
  297. fi
  298. AC_CHECK_HEADERS([boost/shared_ptr.hpp boost/foreach.hpp],,
  299. AC_MSG_ERROR([Missing required header files.]))
  300. AC_SUBST(BOOST_INCLUDES)
  301. #
  302. # Check availability of gtest, which will be used for unit tests.
  303. #
  304. if test "$gtest_path" != "no"
  305. then
  306. if test "$gtest_path" != "yes"; then
  307. GTEST_PATHS=$gtest_path
  308. if test -x "${gtest_path}/bin/gtest-config" ; then
  309. GTEST_CONFIG="${gtest_path}/bin/gtest-config"
  310. fi
  311. else
  312. AC_PATH_PROG([GTEST_CONFIG], [gtest-config])
  313. fi
  314. if test -x "${GTEST_CONFIG}" ; then :
  315. # using cppflags instead of cxxflags
  316. GTEST_INCLUDES=`${GTEST_CONFIG} --cppflags`
  317. GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
  318. GTEST_LDADD=`${GTEST_CONFIG} --libs`
  319. GTEST_FOUND="true"
  320. else
  321. AC_MSG_WARN([Unable to locate Google Test gtest-config.])
  322. if test -z "${GTEST_PATHS}" ; then
  323. GTEST_PATHS="/usr /usr/local"
  324. fi
  325. GTEST_FOUND="false"
  326. fi
  327. if test "${GTEST_FOUND}" != "true"; then
  328. GTEST_FOUND="false"
  329. for dir in $GTEST_PATHS; do
  330. if test -f "$dir/include/gtest/gtest.h"; then
  331. GTEST_INCLUDES="-I$dir/include"
  332. GTEST_LDFLAGS="-L$dir/lib"
  333. GTEST_LDADD="-lgtest"
  334. GTEST_FOUND="true"
  335. break
  336. fi
  337. done
  338. fi
  339. if test "${GTEST_FOUND}" != "true"; then
  340. AC_MSG_ERROR([Cannot find gtest in: $GTEST_PATHS])
  341. fi
  342. else
  343. GTEST_INCLUDES=
  344. GTEST_LDFLAGS=
  345. GTEST_LDADD=
  346. fi
  347. AM_CONDITIONAL(HAVE_GTEST, test $gtest_path != "no")
  348. AC_SUBST(GTEST_INCLUDES)
  349. AC_SUBST(GTEST_LDFLAGS)
  350. AC_SUBST(GTEST_LDADD)
  351. dnl check for pkg-config itself so we don't try the m4 macro without pkg-config
  352. AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes, no)
  353. if test "x$HAVE_PKG_CONFIG" = "xno" ; then
  354. AC_MSG_ERROR(Please install pkg-config)
  355. fi
  356. PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.3.9, enable_features="$enable_features SQLite3")
  357. # I can't get some of the #include <asio.hpp> right without this
  358. # TODO: find the real cause of asio/boost wanting pthreads
  359. # (this currently only occurs for src/lib/cc/session_unittests)
  360. PTHREAD_LDFLAGS=
  361. AC_CHECK_LIB(pthread, pthread_create,[ PTHREAD_LDFLAGS=-lpthread ], [])
  362. AC_SUBST(PTHREAD_LDFLAGS)
  363. #
  364. # ASIO: we extensively use it as the C++ event management module.
  365. #
  366. # Use local ASIO headers from ext
  367. #
  368. CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/ext/asio"
  369. #
  370. # Disable threads: Currently we don't use them.
  371. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_THREADS=1"
  372. #
  373. # kqueue portability: ASIO uses kqueue by default if it's available (it's
  374. # generally available in BSD variants). Unfortunately, some public
  375. # implementation of kqueue forces a conversion from a pointer to an integer,
  376. # which is prohibited in C++ unless reinterpret_cast, C++'s most evil beast
  377. # (and ASIO doesn't use it anyway) is used. This will cause build error for
  378. # some of our C++ files including ASIO header files. The following check
  379. # detects such cases and tells ASIO not to use kqueue if so.
  380. AC_CHECK_FUNC(kqueue, ac_cv_have_kqueue=yes, ac_cv_have_kqueue=no)
  381. if test "X$ac_cv_have_kqueue" = "Xyes"; then
  382. AC_MSG_CHECKING([whether kqueue EV_SET compiles in C++])
  383. AC_TRY_COMPILE([
  384. #include <sys/types.h>
  385. #include <sys/param.h>
  386. #include <sys/event.h>],
  387. [char* udata;
  388. EV_SET(NULL, 0, 0, 0, 0, 0, udata);],
  389. [AC_MSG_RESULT(yes)],
  390. [AC_MSG_RESULT([no, disable kqueue for ASIO])
  391. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_KQUEUE=1"
  392. ])
  393. fi
  394. # /dev/poll issue: ASIO uses /dev/poll by default if it's available (generally
  395. # the case with Solaris). Unfortunately its /dev/poll specific code would
  396. # trigger the gcc's "missing-field-initializers" warning, which would
  397. # subsequently make the build fail with -Werror. Further, older versions of
  398. # gcc don't provide an option to selectively suppress this warning.
  399. # So, for the moment, we simply disable the use of /dev/poll. Unless we
  400. # implement recursive DNS server with randomized ports, we don't need the
  401. # scalability that /dev/poll can provide, so this decision wouldn't affect
  402. # run time performance. Hpefully we can find a better solution or the ASIO
  403. # code will be updated by the time we really need it.
  404. AC_CHECK_HEADERS(sys/devpoll.h, ac_cv_have_devpoll=yes, ac_cv_have_devpoll=no)
  405. if test "X$ac_cv_have_devpoll" = "Xyes" -a "X$GXX" = "Xyes"; then
  406. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_DEV_POLL=1"
  407. fi
  408. AC_ARG_ENABLE(man, [AC_HELP_STRING([--enable-man],
  409. [regenerate man pages [default=no]])] ,enable_man=yes, enable_man=no)
  410. AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)
  411. AC_ARG_ENABLE(install-configurations,
  412. [AC_HELP_STRING([--disable-install-configurations],
  413. [do not install configuration])], install_configurations=$enableval, install_configurations=yes)
  414. AM_CONDITIONAL(INSTALL_CONFIGURATIONS, test x$install_configurations = xyes || test x$install_configurations = xtrue)
  415. AC_CONFIG_FILES([Makefile
  416. src/Makefile
  417. src/bin/Makefile
  418. src/bin/bind10/Makefile
  419. src/bin/bind10/tests/Makefile
  420. src/bin/cmdctl/Makefile
  421. src/bin/cmdctl/tests/Makefile
  422. src/bin/bindctl/Makefile
  423. src/bin/bindctl/tests/Makefile
  424. src/bin/cfgmgr/Makefile
  425. src/bin/cfgmgr/tests/Makefile
  426. src/bin/host/Makefile
  427. src/bin/loadzone/Makefile
  428. src/bin/loadzone/tests/correct/Makefile
  429. src/bin/loadzone/tests/error/Makefile
  430. src/bin/msgq/Makefile
  431. src/bin/msgq/tests/Makefile
  432. src/bin/auth/Makefile
  433. src/bin/auth/tests/Makefile
  434. src/bin/auth/tests/testdata/Makefile
  435. src/bin/auth/benchmarks/Makefile
  436. src/bin/xfrin/Makefile
  437. src/bin/xfrin/tests/Makefile
  438. src/bin/xfrout/Makefile
  439. src/bin/xfrout/tests/Makefile
  440. src/bin/zonemgr/Makefile
  441. src/bin/zonemgr/tests/Makefile
  442. src/bin/usermgr/Makefile
  443. src/bin/tests/Makefile
  444. src/lib/Makefile
  445. src/lib/bench/Makefile
  446. src/lib/bench/example/Makefile
  447. src/lib/bench/tests/Makefile
  448. src/lib/cc/Makefile
  449. src/lib/cc/tests/Makefile
  450. src/lib/python/Makefile
  451. src/lib/python/isc/Makefile
  452. src/lib/python/isc/utils/Makefile
  453. src/lib/python/isc/utils/tests/Makefile
  454. src/lib/python/isc/datasrc/Makefile
  455. src/lib/python/isc/cc/Makefile
  456. src/lib/python/isc/cc/tests/Makefile
  457. src/lib/python/isc/config/Makefile
  458. src/lib/python/isc/config/tests/Makefile
  459. src/lib/python/isc/log/Makefile
  460. src/lib/python/isc/log/tests/Makefile
  461. src/lib/python/isc/notify/Makefile
  462. src/lib/python/isc/notify/tests/Makefile
  463. src/lib/config/Makefile
  464. src/lib/config/tests/Makefile
  465. src/lib/config/tests/testdata/Makefile
  466. src/lib/dns/Makefile
  467. src/lib/dns/tests/Makefile
  468. src/lib/dns/tests/testdata/Makefile
  469. src/lib/dns/python/Makefile
  470. src/lib/dns/python/tests/Makefile
  471. src/lib/exceptions/Makefile
  472. src/lib/exceptions/tests/Makefile
  473. src/lib/datasrc/Makefile
  474. src/lib/datasrc/tests/Makefile
  475. src/lib/xfr/Makefile
  476. ])
  477. AC_OUTPUT([src/bin/cfgmgr/b10-cfgmgr.py
  478. src/bin/cfgmgr/tests/b10-cfgmgr_test.py
  479. src/bin/cmdctl/cmdctl.py
  480. src/bin/cmdctl/run_b10-cmdctl.sh
  481. src/bin/cmdctl/tests/cmdctl_test
  482. src/bin/cmdctl/cmdctl.spec.pre
  483. src/bin/xfrin/tests/xfrin_test
  484. src/bin/xfrin/xfrin.py
  485. src/bin/xfrin/xfrin.spec.pre
  486. src/bin/xfrin/run_b10-xfrin.sh
  487. src/bin/xfrout/xfrout.py
  488. src/bin/xfrout/xfrout.spec.pre
  489. src/bin/xfrout/tests/xfrout_test
  490. src/bin/xfrout/run_b10-xfrout.sh
  491. src/bin/zonemgr/zonemgr.py
  492. src/bin/zonemgr/zonemgr.spec.pre
  493. src/bin/zonemgr/tests/zonemgr_test
  494. src/bin/zonemgr/run_b10-zonemgr.sh
  495. src/bin/bind10/bind10.py
  496. src/bin/bind10/tests/bind10_test
  497. src/bin/bind10/run_bind10.sh
  498. src/bin/bindctl/run_bindctl.sh
  499. src/bin/bindctl/bindctl-source.py
  500. src/bin/bindctl/tests/bindctl_test
  501. src/bin/loadzone/run_loadzone.sh
  502. src/bin/loadzone/tests/correct/correct_test.sh
  503. src/bin/loadzone/tests/error/error_test.sh
  504. src/bin/loadzone/b10-loadzone.py
  505. src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  506. src/bin/usermgr/b10-cmdctl-usermgr.py
  507. src/bin/msgq/msgq.py
  508. src/bin/msgq/tests/msgq_test
  509. src/bin/msgq/run_msgq.sh
  510. src/bin/auth/auth.spec.pre
  511. src/bin/auth/spec_config.h.pre
  512. src/bin/tests/process_rename_test.py
  513. src/lib/config/tests/data_def_unittests_config.h
  514. src/lib/python/isc/config/tests/config_test
  515. src/lib/python/isc/cc/tests/cc_test
  516. src/lib/python/isc/log/tests/log_test
  517. src/lib/python/isc/notify/tests/notify_out_test
  518. src/lib/dns/gen-rdatacode.py
  519. src/lib/python/bind10_config.py
  520. src/lib/dns/tests/testdata/gen-wiredata.py
  521. src/lib/cc/session_config.h.pre
  522. src/lib/cc/tests/session_unittests_config.h
  523. ], [
  524. chmod +x src/bin/cmdctl/run_b10-cmdctl.sh
  525. chmod +x src/bin/xfrin/run_b10-xfrin.sh
  526. chmod +x src/bin/xfrout/run_b10-xfrout.sh
  527. chmod +x src/bin/zonemgr/run_b10-zonemgr.sh
  528. chmod +x src/bin/bind10/run_bind10.sh
  529. chmod +x src/bin/cmdctl/tests/cmdctl_test
  530. chmod +x src/bin/xfrin/tests/xfrin_test
  531. chmod +x src/bin/xfrout/tests/xfrout_test
  532. chmod +x src/bin/zonemgr/tests/zonemgr_test
  533. chmod +x src/bin/bindctl/tests/bindctl_test
  534. chmod +x src/bin/bindctl/run_bindctl.sh
  535. chmod +x src/bin/loadzone/run_loadzone.sh
  536. chmod +x src/bin/loadzone/tests/correct/correct_test.sh
  537. chmod +x src/bin/loadzone/tests/error/error_test.sh
  538. chmod +x src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  539. chmod +x src/bin/msgq/run_msgq.sh
  540. chmod +x src/bin/msgq/tests/msgq_test
  541. chmod +x src/lib/dns/gen-rdatacode.py
  542. chmod +x src/lib/dns/tests/testdata/gen-wiredata.py
  543. ])
  544. AC_OUTPUT
  545. dnl Print the results
  546. dnl
  547. cat > config.report << END
  548. BIND 10 source configure results:
  549. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  550. Package:
  551. Name: $PACKAGE_NAME
  552. Version: $PACKAGE_VERSION
  553. Flags:
  554. DEFS: $DEFS
  555. CPPFLAGS: $CPPFLAGS
  556. CXXFLAGS: $CXXFLAGS
  557. B10_CXXFLAGS: $B10_CXXFLAGS
  558. dnl includes too
  559. Python: ${PYTHON_INCLUDES}
  560. ${PYTHON_LDFLAGS}
  561. ${PYTHON_LIB}
  562. SQLite: $SQLITE_CFLAGS
  563. $SQLITE_LIBS
  564. Features:
  565. $enable_features
  566. Developer:
  567. Google Tests: $gtest_path
  568. C++ Code Coverage: $USE_LCOV
  569. Python Code Coverage: $USE_PYCOVERAGE
  570. Generate Manuals: $enable_man
  571. END
  572. cat config.report
  573. cat <<EOF
  574. Now you can type "make" to build BIND 10
  575. EOF