configure.ac 18 KB

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