configure.ac 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.59])
  4. AC_INIT(bind10-devel, 20110809, 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. # Libtool configuration
  11. #
  12. # libtool cannot handle spaces in paths, so exit early if there is one
  13. if [ test `echo $PWD | grep -c ' '` != "0" ]; then
  14. AC_MSG_ERROR([BIND 10 cannot be built in a directory that contains spaces, because of libtool limitations. Please change the directory name, or use a symbolic link that does not contain spaces.])
  15. fi
  16. # On FreeBSD (and probably some others), clang++ does not meet an autoconf
  17. # assumption in identifying libtool configuration regarding shared library:
  18. # the configure script will execute "$CC -shared $CFLAGS/$CXXFLAGS -v" and
  19. # expect the output contains -Lxxx or -Ryyy. This is the case for g++, but
  20. # not for clang++, and, as a result, it will cause various errors in linking
  21. # programs or running them with a shared object (such as some of our python
  22. # scripts).
  23. # To work around this problem we define a temporary variable
  24. # "CXX_LIBTOOL_LDFLAGS". It's expected to be defined as, e.g, "-L/usr/lib"
  25. # to temporarily fake the output so that it will be compatible with that of
  26. # g++.
  27. CFLAGS_SAVED=$CFLAGS
  28. CXXFLAGS_SAVED=$CXXFLAGS
  29. CFLAGS="$CFLAGS $CXX_LIBTOOL_LDFLAGS"
  30. CXXFLAGS="$CXXFLAGS $CXX_LIBTOOL_LDFLAGS"
  31. AC_PROG_LIBTOOL
  32. CFLAGS=$CFLAGS_SAVED
  33. CXXFLAGS=$CXXFLAGS_SAVED
  34. # Use C++ language
  35. AC_LANG([C++])
  36. # Identify the compiler: this check must be after AC_PROG_CXX and AC_LANG.
  37. AM_CONDITIONAL(USE_GXX, test "X${GXX}" = "Xyes")
  38. AC_CHECK_DECL([__SUNPRO_CC], [SUNCXX="yes"], [SUNCXX="no"])
  39. AC_CHECK_DECL([__clang__], [CLANGPP="yes"], [CLANGPP="no"])
  40. AM_CONDITIONAL(USE_CLANGPP, test "X${CLANGPP}" = "Xyes")
  41. # Linker options
  42. # check -R rather than gcc specific -rpath to be as portable as possible.
  43. AC_MSG_CHECKING([whether -R flag is available in linker])
  44. LDFLAGS_SAVED="$LDFLAGS"
  45. LDFLAGS="$LDFLAGS -R/usr/lib"
  46. AC_TRY_LINK([],[],
  47. [ AC_MSG_RESULT(yes)
  48. rpath_available=yes
  49. ],[ AC_MSG_RESULT(no)
  50. rpath_available=no
  51. ])
  52. LDFLAGS=$LDFLAGS_SAVED
  53. # allow building programs with static link. we need to make it selective
  54. # because loadable modules cannot be statically linked.
  55. AC_ARG_ENABLE([static-link],
  56. AC_HELP_STRING([--enable-static-link],
  57. [build programs with static link [[default=no]]]),
  58. [enable_static_link=yes], [enable_static_link=no])
  59. AM_CONDITIONAL(USE_STATIC_LINK, test $enable_static_link = yes)
  60. # Check validity about some libtool options
  61. if test $enable_static_link = yes -a $enable_static = no; then
  62. AC_MSG_ERROR([--enable-static-link requires --enable-static])
  63. fi
  64. if test $enable_shared = no; then
  65. AC_MSG_ERROR([BIND 10 requires shared libraries to be built])
  66. fi
  67. AC_ARG_ENABLE(boost-threads,
  68. AC_HELP_STRING([--enable-boost-threads],
  69. [use boost threads. Currently this only means using its locks instead of dummy locks, in the cache and NSAS]),
  70. use_boost_threads=$enableval, use_boost_threads=no)
  71. # allow configuring without setproctitle.
  72. AC_ARG_ENABLE(setproctitle-check,
  73. AC_HELP_STRING([--disable-setproctitle-check],
  74. [do not check for python setproctitle module (used to give nice names to python processes)]),
  75. setproctitle_check=$enableval, setproctitle_check=yes)
  76. # OS dependent configuration
  77. SET_ENV_LIBRARY_PATH=no
  78. ENV_LIBRARY_PATH=LD_LIBRARY_PATH
  79. case "$host" in
  80. *-solaris*)
  81. # Solaris requires special definitions to get some standard libraries
  82. # (e.g. getopt(3)) available with common used header files.
  83. CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
  84. ;;
  85. *-apple-darwin*)
  86. # libtool doesn't work perfectly with Darwin: libtool embeds the
  87. # final install path in dynamic libraries and our loadable python
  88. # modules always refer to that path even if it's loaded within the
  89. # source tree. This prevents pre-install tests from working.
  90. # To work around this problem we explicitly specify paths to dynamic
  91. # libraries when we use them in the source tree.
  92. SET_ENV_LIBRARY_PATH=yes
  93. ENV_LIBRARY_PATH=DYLD_LIBRARY_PATH
  94. ;;
  95. esac
  96. AM_CONDITIONAL(SET_ENV_LIBRARY_PATH, test $SET_ENV_LIBRARY_PATH = yes)
  97. AC_SUBST(SET_ENV_LIBRARY_PATH)
  98. AC_SUBST(ENV_LIBRARY_PATH)
  99. m4_define([_AM_PYTHON_INTERPRETER_LIST], [python python3 python3.1])
  100. AC_ARG_WITH([pythonpath],
  101. AC_HELP_STRING([--with-pythonpath=PATH],
  102. [specify an absolute path to python executable when automatic version check (incorrectly) fails]),
  103. [python_path="$withval"], [python_path="auto"])
  104. if test "$python_path" = auto; then
  105. AM_PATH_PYTHON([3.1])
  106. else
  107. # Older versions of automake can't handle python3 well. This is an
  108. # in-house workaround for them.
  109. PYTHON=$python_path
  110. AC_SUBST(PYTHON)
  111. PYTHON_PREFIX='${prefix}'
  112. AC_SUBST(PYTHON_PREFIX)
  113. PYTHON_EXEC_PREFIX='$(exec_prefix)'
  114. AC_SUBST(PYTHON_EXEC_PREFIX)
  115. PYTHON_VERSION=[`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`]
  116. if test `echo "$PYTHON_VERSION >= 3.1" | bc` != 1 ; then
  117. AC_MSG_ERROR(["Python version too old: $PYTHON_VERSION, need 3.1 or higher"])
  118. fi
  119. AC_SUBST(PYTHON_VERSION)
  120. PYTHON_PLATFORM=`$PYTHON -c "import sys; print(sys.platform)"`
  121. AC_SUBST(PYTHON_PLATFORM)
  122. pythondir='${prefix}/lib/python'$PYTHON_VERSION'/site-packages'
  123. AC_SUBST(pythondir)
  124. pkgpythondir='${pythondir}/'$PACKAGE
  125. AC_SUBST(pkgpythondir)
  126. pyexecdir='${exec_prefix}/lib/python'$PYTHON_VERSION'/site-packages'
  127. AC_SUBST(pyexecdir)
  128. pkgpyexecdir='${pyexecdir}/'$PACKAGE
  129. AC_SUBST(pkgpyexecdir)
  130. fi
  131. # We need to store the default pyexecdir in a separate variable so that
  132. # we can specify in Makefile.am the install directory of various BIND 10
  133. # python scripts and loadable modules; in Makefile.am we cannot replace
  134. # $(pyexecdir) using itself, e.g, this doesn't work:
  135. # pyexecdir = $(pyexecdir)/isc/some_module
  136. # The separate variable makes this setup possible as follows:
  137. # pyexecdir = $(PYTHON_SITEPKG_DIR)/isc/some_module
  138. PYTHON_SITEPKG_DIR=${pyexecdir}
  139. AC_SUBST(PYTHON_SITEPKG_DIR)
  140. # Check for python development environments
  141. if test -x ${PYTHON}-config; then
  142. PYTHON_INCLUDES=`${PYTHON}-config --includes`
  143. for flag in `${PYTHON}-config --ldflags`; do
  144. # add any '-L..." flags to PYTHON_LDFLAGS
  145. flag=`echo $flag | sed -ne 's/^\(\-L.*\)$/\1/p'`
  146. if test "X${flag}" != X; then
  147. PYTHON_LDFLAGS="$PYTHON_LDFLAGS ${flag}"
  148. fi
  149. done
  150. # on some platforms, ${PYTHON}-config --ldflags doesn't provide a -L
  151. # option while having the library under a non trivial directory.
  152. # as a workaround we try the "lib" sub directory under the common
  153. # prefix for this python.
  154. if test -z "${PYTHON_LDFLAGS}"; then
  155. PYTHON_LDFLAGS="-L`${PYTHON}-config --prefix`/lib"
  156. fi
  157. else
  158. if test "X$PYTHON_INCLUDES" = X -o "X$PYTHON_LDFLAGS" = X; then
  159. 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.])
  160. fi
  161. fi
  162. # Some OSes including NetBSD don't install libpython.so in a well known path.
  163. # To avoid requiring dynamic library path with our python wrapper loadable
  164. # modules, we embed the path to the modules when possible. We do this even
  165. # when the path is known in the common operational environment (e.g. when
  166. # it's stored in a common "hint" file) for simplicity.
  167. if test $rpath_available = yes; then
  168. python_rpath=
  169. for flag in ${PYTHON_LDFLAGS}; do
  170. python_rpath="${python_rpath} `echo $flag | sed -ne 's/^\(\-L\)/-R/p'`"
  171. done
  172. PYTHON_LDFLAGS="${PYTHON_LDFLAGS} ${python_rpath}"
  173. fi
  174. AC_SUBST(PYTHON_INCLUDES)
  175. AC_SUBST(PYTHON_LDFLAGS)
  176. CPPFLAGS_SAVED="$CPPFLAGS"
  177. CPPFLAGS="$CPPFLAGS ${PYTHON_INCLUDES}"
  178. AC_CHECK_HEADERS([Python.h],, AC_MSG_ERROR([Missing Python.h]))
  179. CPPFLAGS="$CPPFLAGS_SAVED"
  180. # Check for python library. Needed for Python-wrapper libraries.
  181. LDFLAGS_SAVED="$LDFLAGS"
  182. LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS"
  183. python_bin="python${PYTHON_VERSION}"
  184. AC_CHECK_LIB($python_bin, main, python_lib=$python_bin, python_lib=no)
  185. if test $python_lib != "no"; then
  186. PYTHON_LIB="-l$python_lib"
  187. fi
  188. AC_SUBST(PYTHON_LIB)
  189. LDFLAGS=$LDFLAGS_SAVED
  190. # Check for the setproctitle module
  191. if test "$setproctitle_check" = "yes" ; then
  192. AC_MSG_CHECKING(for setproctitle module)
  193. if "$PYTHON" -c 'import setproctitle' 2>/dev/null ; then
  194. AC_MSG_RESULT(ok)
  195. else
  196. AC_MSG_RESULT(missing)
  197. AC_MSG_WARN([Missing setproctitle python module.
  198. Use --disable-setproctitle-check to skip this check.
  199. In this case we will continue, but naming of python processes will not work.])
  200. fi
  201. fi
  202. # TODO: check for _sqlite3.py module
  203. # Compiler dependent settings: define some mandatory CXXFLAGS here.
  204. # We also use a separate variable B10_CXXFLAGS. This will (and should) be
  205. # used as the default value for each specific AM_CXXFLAGS:
  206. # AM_CXXFLAGS = $(B10_CXXFLAGS)
  207. # AM_CXXFLAGS += ... # add module specific flags
  208. # We need this so that we can disable some specific compiler warnings per
  209. # module basis; since AM_CXXFLAGS are placed before CXXFLAGS, and since
  210. # gcc's -Wno-XXX option must be specified after -Wall or -Wextra, we cannot
  211. # specify the default warning flags in CXXFLAGS and let specific modules
  212. # "override" the default.
  213. # This may be used to try linker flags.
  214. AC_DEFUN([BIND10_CXX_TRY_FLAG], [
  215. AC_MSG_CHECKING([whether $CXX supports $1])
  216. bind10_save_CXXFLAGS="$CXXFLAGS"
  217. CXXFLAGS="$CXXFLAGS $1"
  218. AC_LINK_IFELSE([int main(void){ return 0;} ],
  219. [bind10_cxx_flag=yes], [bind10_cxx_flag=no])
  220. CXXFLAGS="$bind10_save_CXXFLAGS"
  221. if test "x$bind10_cxx_flag" = "xyes"; then
  222. ifelse([$2], , :, [$2])
  223. else
  224. ifelse([$3], , :, [$3])
  225. fi
  226. AC_MSG_RESULT([$bind10_cxx_flag])
  227. ])
  228. werror_ok=0
  229. # SunStudio compiler requires special compiler options for boost
  230. # (http://blogs.sun.com/sga/entry/boost_mini_howto)
  231. if test "$SUNCXX" = "yes"; then
  232. CXXFLAGS="$CXXFLAGS -library=stlport4 -features=tmplife -features=tmplrefstatic"
  233. MULTITHREADING_FLAG="-mt"
  234. fi
  235. BIND10_CXX_TRY_FLAG(-Wno-missing-field-initializers,
  236. [WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG="-Wno-missing-field-initializers"])
  237. AC_SUBST(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
  238. # gcc specific settings:
  239. if test "X$GXX" = "Xyes"; then
  240. B10_CXXFLAGS="-Wall -Wextra -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare"
  241. case "$host" in
  242. *-solaris*)
  243. MULTITHREADING_FLAG=-pthreads
  244. # In Solaris, IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT need -Wno-missing-braces
  245. B10_CXXFLAGS="$B10_CXXFLAGS -Wno-missing-braces"
  246. ;;
  247. *)
  248. MULTITHREADING_FLAG=-pthread
  249. ;;
  250. esac
  251. # Certain versions of gcc (g++) have a bug that incorrectly warns about
  252. # the use of anonymous name spaces even if they're closed in a single
  253. # translation unit. For these versions we have to disable -Werror.
  254. CXXFLAGS_SAVED="$CXXFLAGS"
  255. CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
  256. AC_MSG_CHECKING(for in-TU anonymous namespace breakage)
  257. AC_TRY_COMPILE([namespace { class Foo {}; }
  258. namespace isc {class Bar {Foo foo_;};} ],,
  259. [AC_MSG_RESULT(no)
  260. werror_ok=1
  261. B10_CXXFLAGS="$B10_CXXFLAGS -Werror"],
  262. [AC_MSG_RESULT(yes)])
  263. CXXFLAGS="$CXXFLAGS_SAVED"
  264. # Python 3.2 has an unused parameter in one of its headers. This
  265. # has been reported, but not fixed as of yet, so we check if we need
  266. # to set -Wno-unused-parameter.
  267. if test $werror_ok = 1; then
  268. CPPFLAGS_SAVED="$CPPFLAGS"
  269. CPPFLAGS=${PYTHON_INCLUDES}
  270. CXXFLAGS_SAVED="$CXXFLAGS"
  271. CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
  272. AC_MSG_CHECKING([whether we need -Wno-unused-parameter for python])
  273. AC_TRY_COMPILE(
  274. [#include <Python.h>],
  275. [],
  276. [AC_MSG_RESULT(no)],
  277. [
  278. CXXFLAGS="$CXXFLAGS -Wno-unused-parameter"
  279. AC_TRY_COMPILE([#include <Python.h>],
  280. [],
  281. [AC_MSG_RESULT(yes)
  282. PYTHON_CXXFLAGS="${PYTHON_CXXFLAGS} -Wno-unused-parameter"
  283. AC_SUBST(PYTHON_CXXFLAGS)
  284. ],
  285. [AC_MSG_ERROR([Can't compile against Python.h])]
  286. )
  287. ]
  288. )
  289. CXXFLAGS="$CXXFLAGS_SAVED"
  290. CPPFLAGS="$CPPFLAGS_SAVED"
  291. fi
  292. fi dnl GXX = yes
  293. AM_CONDITIONAL(GCC_WERROR_OK, test $werror_ok = 1)
  294. # produce PIC unless we disable shared libraries. need this for python bindings.
  295. if test $enable_shared != "no" -a "X$GXX" = "Xyes"; then
  296. B10_CXXFLAGS="$B10_CXXFLAGS -fPIC"
  297. fi
  298. AC_SUBST(B10_CXXFLAGS)
  299. # Checks for libraries.
  300. AC_SEARCH_LIBS(inet_pton, [nsl])
  301. AC_SEARCH_LIBS(recvfrom, [socket])
  302. AC_SEARCH_LIBS(nanosleep, [rt])
  303. # Checks for header files.
  304. # Checks for typedefs, structures, and compiler characteristics.
  305. AC_HEADER_STDBOOL
  306. AC_TYPE_SIZE_T
  307. AC_MSG_CHECKING(for sa_len in struct sockaddr)
  308. AC_TRY_COMPILE([
  309. #include <sys/types.h>
  310. #include <sys/socket.h>],
  311. [struct sockaddr sa; sa.sa_len = 0; return (0);],
  312. [AC_MSG_RESULT(yes)
  313. AC_DEFINE(HAVE_SA_LEN, 1, [Define to 1 if sockaddr has a sa_len member, and corresponding sin_len and sun_len])],
  314. AC_MSG_RESULT(no))
  315. AC_ARG_WITH(pycoverage,
  316. [ --with-pycoverage[=PROGRAM] enable python code coverage using the specified coverage], pycoverage="$withval", pycoverage="no")
  317. if test "$pycoverage" = "no" ; then
  318. # just run the tests normally with python
  319. PYCOVERAGE_RUN="${PYTHON}"
  320. USE_PYCOVERAGE="no"
  321. elif test "$pycoverage" = "yes" ; then
  322. PYCOVERAGE="coverage"
  323. PYCOVERAGE_RUN="${PYCOVERAGE} run --branch --append"
  324. USE_PYCOVERAGE="yes"
  325. else
  326. PYCOVERAGE="$pycoverage"
  327. PYCOVERAGE_RUN="${PYCOVERAGE} run --branch --append"
  328. USE_PYCOVERAGE="yes"
  329. fi
  330. AM_CONDITIONAL(ENABLE_PYTHON_COVERAGE, test x$USE_PYCOVERAGE != xno)
  331. AC_SUBST(PYCOVERAGE)
  332. AC_SUBST(PYCOVERAGE_RUN)
  333. AC_SUBST(USE_PYCOVERAGE)
  334. AC_ARG_WITH(lcov,
  335. [ --with-lcov[=PROGRAM] enable gtest and coverage target using the specified lcov], lcov="$withval", lcov="no")
  336. AC_ARG_WITH(gtest,
  337. [ --with-gtest=PATH specify a path to gtest header files (PATH/include) and library (PATH/lib)],
  338. gtest_path="$withval", gtest_path="no")
  339. USE_LCOV="no"
  340. if test "$lcov" != "no"; then
  341. # force gtest if not set
  342. if test "$gtest_path" = "no"; then
  343. # AC_MSG_ERROR("lcov needs gtest for test coverage report")
  344. AC_MSG_NOTICE([gtest support is now enabled, because used by coverage tests])
  345. gtest_path="yes"
  346. fi
  347. if test "$lcov" != "yes"; then
  348. LCOV=$lcov
  349. else
  350. AC_PATH_PROG([LCOV], [lcov])
  351. fi
  352. if test -x "${LCOV}"; then
  353. USE_LCOV="yes"
  354. else
  355. AC_MSG_ERROR([Cannot find lcov.])
  356. fi
  357. # is genhtml always in the same directory?
  358. GENHTML=`echo "$LCOV" | sed s/lcov$/genhtml/`
  359. if test ! -x $GENHTML; then
  360. AC_MSG_ERROR([genhtml not found, needed for lcov])
  361. fi
  362. # GCC specific?
  363. CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
  364. LIBS=" $LIBS -lgcov"
  365. AC_SUBST(CPPFLAGS)
  366. AC_SUBST(LIBS)
  367. AC_SUBST(LCOV)
  368. AC_SUBST(GENHTML)
  369. fi
  370. AC_SUBST(USE_LCOV)
  371. # Check for Botan
  372. botan_path="yes"
  373. AC_ARG_WITH([botan],
  374. AC_HELP_STRING([--with-botan=PATH],
  375. [specify exact directory of Botan library]),
  376. [botan_path="$withval"])
  377. if test "${botan_path}" == "no" ; then
  378. AC_MSG_ERROR([Need botan for libcryptolink])
  379. fi
  380. if test "${botan_path}" != "yes" ; then
  381. if test -x "${botan_path}/bin/botan-config" ; then
  382. BOTAN_CONFIG="${botan_path}/bin/botan-config"
  383. else
  384. AC_MSG_ERROR([${botan_path}/bin/botan-config not found])
  385. fi
  386. else
  387. AC_PATH_PROG([BOTAN_CONFIG], [botan-config])
  388. fi
  389. if test -x "${BOTAN_CONFIG}" ; then
  390. BOTAN_LDFLAGS=`${BOTAN_CONFIG} --libs`
  391. # We expect botan-config --libs to contain -L<path_to_libbotan>, but
  392. # this is not always the case. As a heuristics workaround we add
  393. # -L`botan-config --prefix/lib` in this case. Same for BOTAN_INCLUDES
  394. # (but using include instead of lib) below.
  395. echo ${BOTAN_LDFLAGS} | grep -- -L > /dev/null || \
  396. BOTAN_LDFLAGS="-L`${BOTAN_CONFIG} --prefix`/lib ${BOTAN_LDFLAGS}"
  397. BOTAN_INCLUDES=`${BOTAN_CONFIG} --cflags`
  398. echo ${BOTAN_INCLUDES} | grep -- -I > /dev/null || \
  399. BOTAN_INCLUDES="-I`${BOTAN_CONFIG} --prefix`/include ${BOTAN_INCLUDES}"
  400. # See python_rpath for some info on why we do this
  401. if test $rpath_available = yes; then
  402. BOTAN_RPATH=
  403. for flag in ${BOTAN_LDFLAGS}; do
  404. BOTAN_RPATH="${BOTAN_RPATH} `echo $flag | sed -ne 's/^\(\-L\)/-R/p'`"
  405. done
  406. AC_SUBST(BOTAN_RPATH)
  407. # According to the libtool manual, it should be sufficient if we
  408. # specify the "-R libdir" in our wrapper library of botan (no other
  409. # programs will need libbotan directly); "libdir" should be added to
  410. # the program's binary image. But we've seen in our build environments
  411. # that (some versions of?) libtool doesn't propagate -R as documented,
  412. # and it caused a linker error at run time. To work around this, we
  413. # also add the rpath to the global LDFLAGS.
  414. LDFLAGS="$BOTAN_RPATH $LDFLAGS"
  415. fi
  416. AC_SUBST(BOTAN_LDFLAGS)
  417. AC_SUBST(BOTAN_INCLUDES)
  418. fi
  419. CPPFLAGS_SAVED=$CPPFLAGS
  420. CPPFLAGS="$BOTAN_INCLUDES $CPPFLAGS"
  421. LDFLAGS_SAVED="$LDFLAGS"
  422. LDFLAGS="$BOTAN_LDFLAGS $LDFLAGS"
  423. AC_CHECK_HEADERS([botan/botan.h],,AC_MSG_ERROR([Missing required header files.]))
  424. AC_LINK_IFELSE(
  425. [AC_LANG_PROGRAM([#include <botan/botan.h>
  426. #include <botan/hash.h>
  427. ],
  428. [using namespace Botan;
  429. LibraryInitializer::initialize();
  430. HashFunction *h = get_hash("MD5");
  431. ])],
  432. [AC_MSG_RESULT([checking for Botan library... yes])],
  433. [AC_MSG_RESULT([checking for Botan library... no])
  434. AC_MSG_ERROR([Needs Botan library 1.8 or higher])]
  435. )
  436. CPPFLAGS=$CPPFLAGS_SAVED
  437. LDFLAGS=$LDFLAGS_SAVED
  438. # Check for log4cplus
  439. log4cplus_path="yes"
  440. AC_ARG_WITH([log4cplus],
  441. AC_HELP_STRING([--with-log4cplus=PATH],
  442. [specify exact directory of log4cplus library and headers]),
  443. [log4cplus_path="$withval"])
  444. if test "${log4cplus_path}" == "no" ; then
  445. AC_MSG_ERROR([Need log4cplus])
  446. elif test "${log4cplus_path}" != "yes" ; then
  447. LOG4CPLUS_INCLUDES="-I${log4cplus_path}/include"
  448. LOG4CPLUS_LDFLAGS="-L${log4cplus_path}/lib"
  449. else
  450. # If not specified, try some common paths.
  451. log4cplusdirs="/usr/local /usr/pkg /opt /opt/local"
  452. for d in $log4cplusdirs
  453. do
  454. if test -f $d/include/log4cplus/logger.h; then
  455. LOG4CPLUS_INCLUDES="-I$d/include"
  456. LOG4CPLUS_LDFLAGS="-L$d/lib"
  457. break
  458. fi
  459. done
  460. fi
  461. LOG4CPLUS_LDFLAGS="$LOG4CPLUS_LDFLAGS -llog4cplus $MULTITHREADING_FLAG"
  462. AC_SUBST(LOG4CPLUS_LDFLAGS)
  463. AC_SUBST(LOG4CPLUS_INCLUDES)
  464. CPPFLAGS_SAVED=$CPPFLAGS
  465. CPPFLAGS="$LOG4CPLUS_INCLUDES $CPPFLAGS"
  466. LDFLAGS_SAVED="$LDFLAGS"
  467. LDFLAGS="$LOG4CPLUS_LDFLAGS $LDFLAGS"
  468. AC_CHECK_HEADERS([log4cplus/logger.h],,AC_MSG_ERROR([Missing required header files.]))
  469. AC_LINK_IFELSE(
  470. [AC_LANG_PROGRAM([#include <log4cplus/logger.h>
  471. ],
  472. [using namespace log4cplus;
  473. Logger logger = Logger::getInstance("main");
  474. ])],
  475. [AC_MSG_RESULT([checking for log4cplus library... yes])],
  476. [AC_MSG_RESULT([checking for log4cplus library... no])
  477. AC_MSG_ERROR([Needs log4cplus library])]
  478. )
  479. CPPFLAGS=$CPPFLAGS_SAVED
  480. LDFLAGS=$LDFLAGS_SAVED
  481. #
  482. # Configure Boost header path
  483. #
  484. # If explicitly specified, use it.
  485. AC_ARG_WITH([boost-include],
  486. AC_HELP_STRING([--with-boost-include=PATH],
  487. [specify exact directory for Boost headers]),
  488. [boost_include_path="$withval"])
  489. # If not specified, try some common paths.
  490. if test -z "$with_boost_include"; then
  491. boostdirs="/usr/local /usr/pkg /opt /opt/local"
  492. for d in $boostdirs
  493. do
  494. if test -f $d/include/boost/shared_ptr.hpp; then
  495. boost_include_path=$d/include
  496. break
  497. fi
  498. done
  499. fi
  500. CPPFLAGS_SAVES="$CPPFLAGS"
  501. if test "${boost_include_path}" ; then
  502. BOOST_INCLUDES="-I${boost_include_path}"
  503. CPPFLAGS="$CPPFLAGS $BOOST_INCLUDES"
  504. fi
  505. AC_CHECK_HEADERS([boost/shared_ptr.hpp boost/foreach.hpp boost/interprocess/sync/interprocess_upgradable_mutex.hpp boost/date_time/posix_time/posix_time_types.hpp boost/bind.hpp boost/function.hpp],,
  506. AC_MSG_ERROR([Missing required header files.]))
  507. CPPFLAGS="$CPPFLAGS_SAVES"
  508. AC_SUBST(BOOST_INCLUDES)
  509. if test "${use_boost_threads}" = "yes" ; then
  510. AC_DEFINE([USE_BOOST_THREADS], [], [Use boost threads])
  511. # Using boost::mutex can result in requiring libboost_thread with older
  512. # versions of Boost. We'd like to avoid relying on a compiled Boost library
  513. # whenever possible, so we need to check for it step by step.
  514. #
  515. # NOTE: another fix of this problem is to simply require newer versions of
  516. # boost. If we choose that solution we should simplify the following tricky
  517. # checks accordingly and all Makefile.am's that refer to NEED_LIBBOOST_THREAD.
  518. AC_MSG_CHECKING(for boost::mutex)
  519. CPPFLAGS_SAVES="$CPPFLAGS"
  520. LIBS_SAVES="$LIBS"
  521. CPPFLAGS="$BOOST_INCLUDES $CPPFLAGS $MULTITHREADING_FLAG"
  522. need_libboost_thread=0
  523. need_sunpro_workaround=0
  524. AC_TRY_LINK([
  525. #include <boost/thread.hpp>
  526. ],[
  527. boost::mutex m;
  528. ],
  529. [ AC_MSG_RESULT(yes (without libboost_thread)) ],
  530. # there is one specific problem with SunStudio 5.10
  531. # where including boost/thread causes a compilation failure
  532. # There is a workaround in boost but it checks the version not being 5.10
  533. # This will probably be fixed in the future, in which case this
  534. # is only a temporary workaround
  535. [ AC_TRY_LINK([
  536. #if defined(__SUNPRO_CC) && __SUNPRO_CC == 0x5100
  537. #undef __SUNPRO_CC
  538. #define __SUNPRO_CC 0x5090
  539. #endif
  540. #include <boost/thread.hpp>
  541. ],[
  542. boost::mutex m;
  543. ],
  544. [ AC_MSG_RESULT(yes (with SUNOS workaround))
  545. need_sunpro_workaround=1 ],
  546. [ LIBS=" $LIBS -lboost_thread"
  547. AC_TRY_LINK([
  548. #include <boost/thread.hpp>
  549. ],[
  550. boost::mutex m;
  551. ],
  552. [ AC_MSG_RESULT(yes (with libboost_thread))
  553. need_libboost_thread=1 ],
  554. [ AC_MSG_RESULT(no)
  555. AC_MSG_ERROR([boost::mutex cannot be linked in this build environment.
  556. Perhaps you are using an older version of Boost that requires libboost_thread for the mutex support, which does not appear to be available.
  557. You may want to check the availability of the library or to upgrade Boost.])
  558. ])])])
  559. CPPFLAGS="$CPPFLAGS_SAVES"
  560. LIBS="$LIBS_SAVES"
  561. AM_CONDITIONAL(NEED_LIBBOOST_THREAD, test $need_libboost_thread = 1)
  562. if test $need_sunpro_workaround = 1; then
  563. AC_DEFINE([NEED_SUNPRO_WORKAROUND], [], [Need boost sunstudio workaround])
  564. fi
  565. else
  566. AM_CONDITIONAL(NEED_LIBBOOST_THREAD, test "${use_boost_threads}" = "yes")
  567. fi
  568. #
  569. # Check availability of gtest, which will be used for unit tests.
  570. #
  571. if test "$gtest_path" != "no"
  572. then
  573. if test "$gtest_path" != "yes"; then
  574. GTEST_PATHS=$gtest_path
  575. if test -x "${gtest_path}/bin/gtest-config" ; then
  576. GTEST_CONFIG="${gtest_path}/bin/gtest-config"
  577. fi
  578. else
  579. AC_PATH_PROG([GTEST_CONFIG], [gtest-config])
  580. fi
  581. if test -x "${GTEST_CONFIG}" ; then :
  582. # using cppflags instead of cxxflags
  583. GTEST_INCLUDES=`${GTEST_CONFIG} --cppflags`
  584. GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
  585. GTEST_LDADD=`${GTEST_CONFIG} --libs`
  586. GTEST_FOUND="true"
  587. else
  588. AC_MSG_WARN([Unable to locate Google Test gtest-config.])
  589. if test -z "${GTEST_PATHS}" ; then
  590. GTEST_PATHS="/usr /usr/local"
  591. fi
  592. GTEST_FOUND="false"
  593. fi
  594. if test "${GTEST_FOUND}" != "true"; then
  595. GTEST_FOUND="false"
  596. for dir in $GTEST_PATHS; do
  597. if test -f "$dir/include/gtest/gtest.h"; then
  598. GTEST_INCLUDES="-I$dir/include"
  599. GTEST_LDFLAGS="-L$dir/lib"
  600. GTEST_LDADD="-lgtest"
  601. GTEST_FOUND="true"
  602. break
  603. fi
  604. done
  605. fi
  606. if test "${GTEST_FOUND}" != "true"; then
  607. AC_MSG_ERROR([Cannot find gtest in: $GTEST_PATHS])
  608. fi
  609. else
  610. GTEST_INCLUDES=
  611. GTEST_LDFLAGS=
  612. GTEST_LDADD=
  613. fi
  614. AM_CONDITIONAL(HAVE_GTEST, test $gtest_path != "no")
  615. AC_SUBST(GTEST_INCLUDES)
  616. AC_SUBST(GTEST_LDFLAGS)
  617. AC_SUBST(GTEST_LDADD)
  618. dnl check for pkg-config itself so we don't try the m4 macro without pkg-config
  619. AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes, no)
  620. if test "x$HAVE_PKG_CONFIG" = "xno" ; then
  621. AC_MSG_ERROR(Please install pkg-config)
  622. fi
  623. PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.3.9, enable_features="$enable_features SQLite3")
  624. # I can't get some of the #include <asio.hpp> right without this
  625. # TODO: find the real cause of asio/boost wanting pthreads
  626. # (this currently only occurs for src/lib/cc/session_unittests)
  627. PTHREAD_LDFLAGS=
  628. AC_CHECK_LIB(pthread, pthread_create,[ PTHREAD_LDFLAGS=-lpthread ], [])
  629. AC_SUBST(PTHREAD_LDFLAGS)
  630. AC_SUBST(MULTITHREADING_FLAG)
  631. #
  632. # ASIO: we extensively use it as the C++ event management module.
  633. #
  634. # Use local ASIO headers from ext
  635. #
  636. CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/ext/asio"
  637. #
  638. # Use our 'coroutine' header from ext
  639. CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/ext/coroutine"
  640. #
  641. # Disable threads: Currently we don't use them.
  642. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_THREADS=1"
  643. #
  644. # kqueue portability: ASIO uses kqueue by default if it's available (it's
  645. # generally available in BSD variants). Unfortunately, some public
  646. # implementation of kqueue forces a conversion from a pointer to an integer,
  647. # which is prohibited in C++ unless reinterpret_cast, C++'s most evil beast
  648. # (and ASIO doesn't use it anyway) is used. This will cause build error for
  649. # some of our C++ files including ASIO header files. The following check
  650. # detects such cases and tells ASIO not to use kqueue if so.
  651. AC_CHECK_FUNC(kqueue, ac_cv_have_kqueue=yes, ac_cv_have_kqueue=no)
  652. if test "X$ac_cv_have_kqueue" = "Xyes"; then
  653. AC_MSG_CHECKING([whether kqueue EV_SET compiles in C++])
  654. AC_TRY_COMPILE([
  655. #include <sys/types.h>
  656. #include <sys/param.h>
  657. #include <sys/event.h>],
  658. [char* udata;
  659. EV_SET(NULL, 0, 0, 0, 0, 0, udata);],
  660. [AC_MSG_RESULT(yes)],
  661. [AC_MSG_RESULT([no, disable kqueue for ASIO])
  662. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_KQUEUE=1"
  663. ])
  664. fi
  665. # /dev/poll issue: ASIO uses /dev/poll by default if it's available (generally
  666. # the case with Solaris). Unfortunately its /dev/poll specific code would
  667. # trigger the gcc's "missing-field-initializers" warning, which would
  668. # subsequently make the build fail with -Werror. Further, older versions of
  669. # gcc don't provide an option to selectively suppress this warning.
  670. # So, for the moment, we simply disable the use of /dev/poll. Unless we
  671. # implement recursive DNS server with randomized ports, we don't need the
  672. # scalability that /dev/poll can provide, so this decision wouldn't affect
  673. # run time performance. Hopefully we can find a better solution or the ASIO
  674. # code will be updated by the time we really need it.
  675. AC_CHECK_HEADERS(sys/devpoll.h, ac_cv_have_devpoll=yes, ac_cv_have_devpoll=no)
  676. if test "X$ac_cv_have_devpoll" = "Xyes" -a "X$GXX" = "Xyes"; then
  677. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_DEV_POLL=1"
  678. fi
  679. #
  680. # Perl is optional; it is used only by some of the system test scripts.
  681. #
  682. AC_PATH_PROGS(PERL, perl5 perl)
  683. AC_SUBST(PERL)
  684. AC_ARG_ENABLE(man, [AC_HELP_STRING([--enable-man],
  685. [regenerate man pages [default=no]])], enable_man=yes, enable_man=no)
  686. AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)
  687. AC_ARG_ENABLE(install-configurations,
  688. [AC_HELP_STRING([--disable-install-configurations],
  689. [do not install configuration])], install_configurations=$enableval, install_configurations=yes)
  690. AM_CONDITIONAL(INSTALL_CONFIGURATIONS, test x$install_configurations = xyes || test x$install_configurations = xtrue)
  691. AC_CONFIG_FILES([Makefile
  692. doc/Makefile
  693. doc/guide/Makefile
  694. src/Makefile
  695. src/bin/Makefile
  696. src/bin/bind10/Makefile
  697. src/bin/bind10/tests/Makefile
  698. src/bin/cmdctl/Makefile
  699. src/bin/cmdctl/tests/Makefile
  700. src/bin/bindctl/Makefile
  701. src/bin/bindctl/tests/Makefile
  702. src/bin/cfgmgr/Makefile
  703. src/bin/cfgmgr/plugins/Makefile
  704. src/bin/cfgmgr/plugins/tests/Makefile
  705. src/bin/cfgmgr/tests/Makefile
  706. src/bin/host/Makefile
  707. src/bin/loadzone/Makefile
  708. src/bin/loadzone/tests/correct/Makefile
  709. src/bin/loadzone/tests/error/Makefile
  710. src/bin/msgq/Makefile
  711. src/bin/msgq/tests/Makefile
  712. src/bin/auth/Makefile
  713. src/bin/auth/tests/Makefile
  714. src/bin/auth/benchmarks/Makefile
  715. src/bin/dhcp6/Makefile
  716. src/bin/dhcp6/tests/Makefile
  717. src/bin/resolver/Makefile
  718. src/bin/resolver/tests/Makefile
  719. src/bin/sockcreator/Makefile
  720. src/bin/sockcreator/tests/Makefile
  721. src/bin/xfrin/Makefile
  722. src/bin/xfrin/tests/Makefile
  723. src/bin/xfrout/Makefile
  724. src/bin/xfrout/tests/Makefile
  725. src/bin/zonemgr/Makefile
  726. src/bin/zonemgr/tests/Makefile
  727. src/bin/stats/Makefile
  728. src/bin/stats/tests/Makefile
  729. src/bin/stats/tests/isc/Makefile
  730. src/bin/stats/tests/isc/cc/Makefile
  731. src/bin/stats/tests/isc/config/Makefile
  732. src/bin/stats/tests/isc/util/Makefile
  733. src/bin/stats/tests/isc/log/Makefile
  734. src/bin/stats/tests/testdata/Makefile
  735. src/bin/stats/tests/http/Makefile
  736. src/bin/usermgr/Makefile
  737. src/bin/tests/Makefile
  738. src/lib/Makefile
  739. src/lib/asiolink/Makefile
  740. src/lib/asiolink/tests/Makefile
  741. src/lib/asiodns/Makefile
  742. src/lib/asiodns/tests/Makefile
  743. src/lib/bench/Makefile
  744. src/lib/bench/example/Makefile
  745. src/lib/bench/tests/Makefile
  746. src/lib/cc/Makefile
  747. src/lib/cc/tests/Makefile
  748. src/lib/python/Makefile
  749. src/lib/python/isc/Makefile
  750. src/lib/python/isc/acl/Makefile
  751. src/lib/python/isc/acl/tests/Makefile
  752. src/lib/python/isc/util/Makefile
  753. src/lib/python/isc/util/tests/Makefile
  754. src/lib/python/isc/datasrc/Makefile
  755. src/lib/python/isc/datasrc/tests/Makefile
  756. src/lib/python/isc/cc/Makefile
  757. src/lib/python/isc/cc/tests/Makefile
  758. src/lib/python/isc/config/Makefile
  759. src/lib/python/isc/config/tests/Makefile
  760. src/lib/python/isc/log/Makefile
  761. src/lib/python/isc/log/tests/Makefile
  762. src/lib/python/isc/net/Makefile
  763. src/lib/python/isc/net/tests/Makefile
  764. src/lib/python/isc/notify/Makefile
  765. src/lib/python/isc/notify/tests/Makefile
  766. src/lib/python/isc/testutils/Makefile
  767. src/lib/python/isc/bind10/Makefile
  768. src/lib/python/isc/bind10/tests/Makefile
  769. src/lib/config/Makefile
  770. src/lib/config/tests/Makefile
  771. src/lib/config/tests/testdata/Makefile
  772. src/lib/cryptolink/Makefile
  773. src/lib/cryptolink/tests/Makefile
  774. src/lib/dns/Makefile
  775. src/lib/dns/tests/Makefile
  776. src/lib/dns/tests/testdata/Makefile
  777. src/lib/dns/python/Makefile
  778. src/lib/dns/python/tests/Makefile
  779. src/lib/dns/benchmarks/Makefile
  780. src/lib/exceptions/Makefile
  781. src/lib/exceptions/tests/Makefile
  782. src/lib/datasrc/Makefile
  783. src/lib/datasrc/tests/Makefile
  784. src/lib/datasrc/tests/testdata/Makefile
  785. src/lib/xfr/Makefile
  786. src/lib/log/Makefile
  787. src/lib/log/compiler/Makefile
  788. src/lib/log/tests/Makefile
  789. src/lib/resolve/Makefile
  790. src/lib/resolve/tests/Makefile
  791. src/lib/testutils/Makefile
  792. src/lib/testutils/testdata/Makefile
  793. src/lib/nsas/Makefile
  794. src/lib/nsas/tests/Makefile
  795. src/lib/cache/Makefile
  796. src/lib/cache/tests/Makefile
  797. src/lib/server_common/Makefile
  798. src/lib/server_common/tests/Makefile
  799. src/lib/util/Makefile
  800. src/lib/util/io/Makefile
  801. src/lib/util/unittests/Makefile
  802. src/lib/util/python/Makefile
  803. src/lib/util/pyunittests/Makefile
  804. src/lib/util/tests/Makefile
  805. src/lib/acl/Makefile
  806. src/lib/acl/tests/Makefile
  807. tests/Makefile
  808. tests/system/Makefile
  809. tests/tools/Makefile
  810. tests/tools/badpacket/Makefile
  811. tests/tools/badpacket/tests/Makefile
  812. ])
  813. AC_OUTPUT([doc/version.ent
  814. src/bin/cfgmgr/b10-cfgmgr.py
  815. src/bin/cfgmgr/tests/b10-cfgmgr_test.py
  816. src/bin/cmdctl/cmdctl.py
  817. src/bin/cmdctl/run_b10-cmdctl.sh
  818. src/bin/cmdctl/tests/cmdctl_test
  819. src/bin/cmdctl/cmdctl.spec.pre
  820. src/bin/xfrin/tests/xfrin_test
  821. src/bin/xfrin/xfrin.py
  822. src/bin/xfrin/run_b10-xfrin.sh
  823. src/bin/xfrout/xfrout.py
  824. src/bin/xfrout/xfrout.spec.pre
  825. src/bin/xfrout/tests/xfrout_test
  826. src/bin/xfrout/tests/xfrout_test.py
  827. src/bin/xfrout/run_b10-xfrout.sh
  828. src/bin/resolver/resolver.spec.pre
  829. src/bin/resolver/spec_config.h.pre
  830. src/bin/zonemgr/zonemgr.py
  831. src/bin/zonemgr/zonemgr.spec.pre
  832. src/bin/zonemgr/tests/zonemgr_test
  833. src/bin/zonemgr/run_b10-zonemgr.sh
  834. src/bin/stats/stats.py
  835. src/bin/stats/stats_httpd.py
  836. src/bin/bind10/bind10_src.py
  837. src/bin/bind10/run_bind10.sh
  838. src/bin/bind10/tests/bind10_test.py
  839. src/bin/bindctl/run_bindctl.sh
  840. src/bin/bindctl/bindctl_main.py
  841. src/bin/bindctl/tests/bindctl_test
  842. src/bin/loadzone/run_loadzone.sh
  843. src/bin/loadzone/tests/correct/correct_test.sh
  844. src/bin/loadzone/tests/error/error_test.sh
  845. src/bin/loadzone/b10-loadzone.py
  846. src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  847. src/bin/usermgr/b10-cmdctl-usermgr.py
  848. src/bin/msgq/msgq.py
  849. src/bin/msgq/tests/msgq_test
  850. src/bin/msgq/run_msgq.sh
  851. src/bin/auth/auth.spec.pre
  852. src/bin/auth/spec_config.h.pre
  853. src/bin/dhcp6/spec_config.h.pre
  854. src/bin/tests/process_rename_test.py
  855. src/lib/config/tests/data_def_unittests_config.h
  856. src/lib/python/isc/config/tests/config_test
  857. src/lib/python/isc/cc/tests/cc_test
  858. src/lib/python/isc/notify/tests/notify_out_test
  859. src/lib/python/isc/log/tests/log_console.py
  860. src/lib/dns/gen-rdatacode.py
  861. src/lib/python/bind10_config.py
  862. src/lib/cc/session_config.h.pre
  863. src/lib/cc/tests/session_unittests_config.h
  864. src/lib/log/tests/console_test.sh
  865. src/lib/log/tests/destination_test.sh
  866. src/lib/log/tests/init_logger_test.sh
  867. src/lib/log/tests/local_file_test.sh
  868. src/lib/log/tests/severity_test.sh
  869. src/lib/log/tests/tempdir.h
  870. src/lib/util/python/mkpywrapper.py
  871. src/lib/util/python/gen_wiredata.py
  872. src/lib/server_common/tests/data_path.h
  873. tests/system/conf.sh
  874. tests/system/glue/setup.sh
  875. tests/system/glue/nsx1/b10-config.db
  876. tests/system/bindctl/nsx1/b10-config.db.template
  877. ], [
  878. chmod +x src/bin/cmdctl/run_b10-cmdctl.sh
  879. chmod +x src/bin/xfrin/run_b10-xfrin.sh
  880. chmod +x src/bin/xfrout/run_b10-xfrout.sh
  881. chmod +x src/bin/zonemgr/run_b10-zonemgr.sh
  882. chmod +x src/bin/bind10/run_bind10.sh
  883. chmod +x src/bin/cmdctl/tests/cmdctl_test
  884. chmod +x src/bin/xfrin/tests/xfrin_test
  885. chmod +x src/bin/xfrout/tests/xfrout_test
  886. chmod +x src/bin/zonemgr/tests/zonemgr_test
  887. chmod +x src/bin/bindctl/tests/bindctl_test
  888. chmod +x src/bin/bindctl/run_bindctl.sh
  889. chmod +x src/bin/loadzone/run_loadzone.sh
  890. chmod +x src/bin/loadzone/tests/correct/correct_test.sh
  891. chmod +x src/bin/loadzone/tests/error/error_test.sh
  892. chmod +x src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  893. chmod +x src/bin/msgq/run_msgq.sh
  894. chmod +x src/bin/msgq/tests/msgq_test
  895. chmod +x src/lib/dns/gen-rdatacode.py
  896. chmod +x src/lib/log/tests/console_test.sh
  897. chmod +x src/lib/log/tests/destination_test.sh
  898. chmod +x src/lib/log/tests/init_logger_test.sh
  899. chmod +x src/lib/log/tests/local_file_test.sh
  900. chmod +x src/lib/log/tests/severity_test.sh
  901. chmod +x src/lib/util/python/mkpywrapper.py
  902. chmod +x src/lib/util/python/gen_wiredata.py
  903. chmod +x src/lib/python/isc/log/tests/log_console.py
  904. chmod +x tests/system/conf.sh
  905. ])
  906. AC_OUTPUT
  907. dnl Print the results
  908. dnl
  909. cat > config.report << END
  910. BIND 10 source configure results:
  911. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  912. Package:
  913. Name: $PACKAGE_NAME
  914. Version: $PACKAGE_VERSION
  915. C++ Compiler: $CXX
  916. Flags:
  917. DEFS: $DEFS
  918. CPPFLAGS: $CPPFLAGS
  919. CXXFLAGS: $CXXFLAGS
  920. LDFLAGS: $LDFLAGS
  921. B10_CXXFLAGS: $B10_CXXFLAGS
  922. dnl includes too
  923. Python: ${PYTHON_INCLUDES}
  924. ${PYTHON_CXXFLAGS}
  925. ${PYTHON_LDFLAGS}
  926. ${PYTHON_LIB}
  927. Boost: ${BOOST_INCLUDES}
  928. Botan: ${BOTAN_INCLUDES}
  929. ${BOTAN_LDFLAGS}
  930. Log4cplus: ${LOG4CPLUS_INCLUDES}
  931. ${LOG4CPLUS_LDFLAGS}
  932. SQLite: $SQLITE_CFLAGS
  933. $SQLITE_LIBS
  934. Features:
  935. $enable_features
  936. Developer:
  937. Google Tests: $gtest_path
  938. C++ Code Coverage: $USE_LCOV
  939. Python Code Coverage: $USE_PYCOVERAGE
  940. Generate Manuals: $enable_man
  941. END
  942. cat config.report
  943. cat <<EOF
  944. Now you can type "make" to build BIND 10
  945. EOF