configure.ac 36 KB

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