configure.ac 38 KB

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