configure.ac 38 KB

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