configure.ac 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  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. # allow building programs with static link. we need to make it selective
  29. # because loadable modules cannot be statically linked.
  30. AC_ARG_ENABLE([static-link],
  31. AC_HELP_STRING([--enable-static-link],
  32. [build programs with static link [[default=no]]]),
  33. [enable_static_link=yes], [enable_static_link=no])
  34. AM_CONDITIONAL(USE_STATIC_LINK, test $enable_static_link = yes)
  35. # OS dependent compiler flags
  36. case "$host" in
  37. *-solaris*)
  38. # Solaris requires special definitions to get some standard libraries
  39. # (e.g. getopt(3)) available with common used header files.
  40. CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
  41. ;;
  42. esac
  43. m4_define([_AM_PYTHON_INTERPRETER_LIST], [python python3 python3.1])
  44. AC_ARG_WITH([pythonpath],
  45. AC_HELP_STRING([--with-pythonpath=PATH],
  46. [specify an absolute path to python executable when automatic version check (incorrectly) fails]),
  47. [python_path="$withval"], [python_path="auto"])
  48. if test "$python_path" = auto; then
  49. AM_PATH_PYTHON([3.1])
  50. else
  51. # Older versions of automake can't handle python3 well. This is an
  52. # in-house workaround for them.
  53. PYTHON=$python_path
  54. AC_SUBST(PYTHON)
  55. PYTHON_PREFIX='${prefix}'
  56. AC_SUBST(PYTHON_PREFIX)
  57. PYTHON_EXEC_PREFIX='$(exec_prefix)'
  58. AC_SUBST(PYTHON_EXEC_PREFIX)
  59. PYTHON_VERSION=[`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`]
  60. if test `echo "$PYTHON_VERSION >= 3.1" | bc` != 1 ; then
  61. AC_MSG_ERROR(["Python version too old: $PYTHON_VERSION, need 3.1 or higher"])
  62. fi
  63. AC_SUBST(PYTHON_VERSION)
  64. PYTHON_PLATFORM=`$PYTHON -c "import sys; print(sys.platform)"`
  65. AC_SUBST(PYTHON_PLATFORM)
  66. pythondir='${prefix}/lib/python'$PYTHON_VERSION'/site-packages'
  67. AC_SUBST(pythondir)
  68. pkgpythondir='${pythondir}/'$PACKAGE
  69. AC_SUBST(pkgpythondir)
  70. pyexecdir='${exec_prefix}/lib/python'$PYTHON_VERSION'/site-packages'
  71. AC_SUBST(pyexecdir)
  72. pkgpyexecdir='${pyexecdir}/'$PACKAGE
  73. AC_SUBST(pkgpyexecdir)
  74. fi
  75. # Check for python development environments
  76. if test -x ${PYTHON}-config; then
  77. PYTHON_INCLUDES=`${PYTHON}-config --includes`
  78. for flag in `${PYTHON}-config --ldflags`; do
  79. # add any '-L..." flags to PYTHON_LDFLAGS
  80. flag=`echo $flag | sed -ne 's/^\(\-L.*\)$/\1/p'`
  81. if test "X${flag}" != X; then
  82. PYTHON_LDFLAGS="$PYTHON_LDFLAGS ${flag}"
  83. fi
  84. done
  85. # on some platforms, ${PYTHON}-config --ldflags doesn't provide a -L
  86. # option while having the library under a non trivial directory.
  87. # as a workaround we try the "lib" sub directory under the common
  88. # prefix for this python.
  89. if test -z "${PYTHON_LDFLAGS}"; then
  90. PYTHON_LDFLAGS="-L`${PYTHON}-config --prefix`/lib"
  91. fi
  92. else
  93. if test "X$PYTHON_INCLUDES" = X -o "X$PYTHON_LDFLAGS" = X; then
  94. 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.])
  95. fi
  96. fi
  97. # Some OSes including NetBSD don't install libpython.so in a well known path.
  98. # To avoid requiring dynamic library path with our python wrapper loadable
  99. # modules, we embed the path to the modules when possible. We do this even
  100. # when the path is known in the common operational environment (e.g. when
  101. # it's stored in a common "hint" file) for simplicity.
  102. if test $rpath_available = yes; then
  103. python_rpath=
  104. for flag in ${PYTHON_LDFLAGS}; do
  105. python_rpath="${python_rpath} `echo $flag | sed -ne 's/^\(\-L\)/-R/p'`"
  106. done
  107. PYTHON_LDFLAGS="${PYTHON_LDFLAGS} ${python_rpath}"
  108. fi
  109. AC_SUBST(PYTHON_INCLUDES)
  110. AC_SUBST(PYTHON_LDFLAGS)
  111. CPPFLAGS_SAVED="$CPPFLAGS"
  112. CPPFLAGS="$CPPFLAGS ${PYTHON_INCLUDES}"
  113. AC_CHECK_HEADERS([Python.h],, AC_MSG_ERROR([Missing Python.h]))
  114. CPPFLAGS="$CPPFLAGS_SAVED"
  115. # Check for python library. Needed for Python-wrapper libraries.
  116. LDFLAGS_SAVED="$LDFLAGS"
  117. LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS"
  118. python_bin="python${PYTHON_VERSION}"
  119. AC_CHECK_LIB($python_bin, main, python_lib=$python_bin, python_lib=no)
  120. if test $python_lib != "no"; then
  121. PYTHON_LIB="-l$python_lib"
  122. fi
  123. AC_SUBST(PYTHON_LIB)
  124. LDFLAGS=$LDFLAGS_SAVED
  125. # TODO: check for _sqlite3.py module
  126. # Compiler dependent settings: define some mandatory CXXFLAGS here.
  127. # We also use a separate variable B10_CXXFLAGS. This will (and should) be
  128. # used as the default value for each specifc AM_CXXFLAGS:
  129. # AM_CXXFLAGS = $(B10_CXXFLAGS)
  130. # AM_CXXFLAGS += ... # add module specific flags
  131. # We need this so that we can disable some specific compiler warnings per
  132. # module basis; since AM_CXXFLAGS are placed before CXXFLAGS, and since
  133. # gcc's -Wno-XXX option must be specified after -Wall or -Wextra, we cannot
  134. # specify the default warning flags in CXXFLAGS and let specific modules
  135. # "override" the default.
  136. CXXFLAGS=-g
  137. werror_ok=0
  138. # SunStudio compiler requires special compiler options for boost
  139. # (http://blogs.sun.com/sga/entry/boost_mini_howto)
  140. if test "$SUNCXX" = "yes"; then
  141. CXXFLAGS="$CXXFLAGS -library=stlport4 -features=tmplife -features=tmplrefstatic"
  142. fi
  143. # gcc specific settings:
  144. if test "X$GXX" = "Xyes"; then
  145. B10_CXXFLAGS="-Wall -Wextra -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare"
  146. UNUSED_PARAM_ATTRIBUTE='__attribute__((unused))'
  147. # Certain versions of gcc (g++) have a bug that incorrectly warns about
  148. # the use of anonymous name spaces even if they're closed in a single
  149. # translation unit. For these versions we have to disable -Werror.
  150. CXXFLAGS_SAVED="$CXXFLAGS"
  151. CXXFLAGS="$CXXFLAGS $B10_CXXFLAGS -Werror"
  152. AC_MSG_CHECKING(for in-TU anonymous namespace breakage)
  153. AC_TRY_COMPILE([namespace { class Foo {}; }
  154. namespace isc {class Bar {Foo foo_;};} ],,
  155. [AC_MSG_RESULT(no)
  156. werror_ok=1
  157. B10_CXXFLAGS="$B10_CXXFLAGS -Werror"],
  158. [AC_MSG_RESULT(yes)])
  159. CXXFLAGS="$CXXFLAGS_SAVED"
  160. fi dnl GXX = yes
  161. AM_CONDITIONAL(GCC_WERROR_OK, test $werror_ok = 1)
  162. AC_DEFINE_UNQUOTED(UNUSED_PARAM, $UNUSED_PARAM_ATTRIBUTE, Define to compiler keyword indicating a function argument is intentionally unused)
  163. # produce PIC unless we disable shared libraries. need this for python bindings.
  164. if test $enable_shared != "no" -a "X$GXX" = "Xyes"; then
  165. B10_CXXFLAGS="$B10_CXXFLAGS -fPIC"
  166. fi
  167. AC_SUBST(B10_CXXFLAGS)
  168. # Checks for libraries.
  169. AC_SEARCH_LIBS(inet_pton, [nsl])
  170. AC_SEARCH_LIBS(recvfrom, [socket])
  171. # Checks for header files.
  172. # Checks for typedefs, structures, and compiler characteristics.
  173. AC_HEADER_STDBOOL
  174. AC_TYPE_SIZE_T
  175. AC_MSG_CHECKING(for sa_len in struct sockaddr)
  176. AC_TRY_COMPILE([
  177. #include <sys/types.h>
  178. #include <sys/socket.h>],
  179. [struct sockaddr sa; sa.sa_len = 0; return (0);],
  180. [AC_MSG_RESULT(yes)
  181. AC_DEFINE(HAVE_SA_LEN, 1, [Define to 1 if sockaddr has a sa_len member, and corresponding sin_len and sun_len])],
  182. AC_MSG_RESULT(no))
  183. AC_ARG_WITH(lcov,
  184. [ --with-lcov[=PROGRAM] enable gtest and coverage target using the specified lcov], lcov="$withval", lcov="no")
  185. AC_ARG_WITH(gtest,
  186. [ --with-gtest=PATH specify a path to gtest header files (PATH/include) and library (PATH/lib)],
  187. gtest_path="$withval", gtest_path="no")
  188. USE_LCOV="no"
  189. if test "$lcov" != "no"; then
  190. # force gtest if not set
  191. if test "$gtest_path" = "no"; then
  192. # AC_MSG_ERROR("lcov needs gtest for test coverage report")
  193. AC_MSG_NOTICE([gtest support is now enabled, because used by coverage tests])
  194. gtest_path="yes"
  195. fi
  196. if test "$lcov" != "yes"; then
  197. LCOV=$lcov
  198. else
  199. AC_PATH_PROG([LCOV], [lcov])
  200. fi
  201. if test -x "${LCOV}"; then
  202. USE_LCOV="yes"
  203. else
  204. AC_MSG_ERROR([Cannot find lcov.])
  205. fi
  206. # is genhtml always in the same directory?
  207. GENHTML=`echo "$LCOV" | sed s/lcov$/genhtml/`
  208. if test ! -x $GENHTML; then
  209. AC_MSG_ERROR([genhtml not found, needed for lcov])
  210. fi
  211. # GCC specific?
  212. CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
  213. LIBS=" $LIBS -lgcov"
  214. AC_SUBST(CPPFLAGS)
  215. AC_SUBST(LIBS)
  216. AC_SUBST(LCOV)
  217. AC_SUBST(GENHTML)
  218. fi
  219. AC_SUBST(USE_LCOV)
  220. AC_ARG_WITH([boost-include],
  221. AC_HELP_STRING([--with-boost-include=PATH],
  222. [specify exact directory for Boost headers]),
  223. [boost_include_path="$withval"])
  224. if test "${boost_include_path}" ; then
  225. BOOST_INCLUDES="-I${boost_include_path}"
  226. CPPFLAGS="$CPPFLAGS $BOOST_INCLUDES"
  227. fi
  228. AC_SUBST(BOOST_INCLUDES)
  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/zonemgr/Makefile
  367. src/bin/zonemgr/tests/Makefile
  368. src/bin/usermgr/Makefile
  369. src/lib/Makefile
  370. src/lib/bench/Makefile
  371. src/lib/bench/example/Makefile
  372. src/lib/bench/tests/Makefile
  373. src/lib/cc/Makefile
  374. src/lib/cc/tests/Makefile
  375. src/lib/python/Makefile
  376. src/lib/python/isc/Makefile
  377. src/lib/python/isc/datasrc/Makefile
  378. src/lib/python/isc/cc/Makefile
  379. src/lib/python/isc/cc/tests/Makefile
  380. src/lib/python/isc/config/Makefile
  381. src/lib/python/isc/config/tests/Makefile
  382. src/lib/python/isc/log/Makefile
  383. src/lib/python/isc/log/tests/Makefile
  384. src/lib/python/isc/notify/Makefile
  385. src/lib/python/isc/notify/tests/Makefile
  386. src/lib/config/Makefile
  387. src/lib/config/tests/Makefile
  388. src/lib/config/testdata/Makefile
  389. src/lib/dns/Makefile
  390. src/lib/dns/tests/Makefile
  391. src/lib/dns/python/Makefile
  392. src/lib/dns/python/tests/Makefile
  393. src/lib/exceptions/Makefile
  394. src/lib/exceptions/tests/Makefile
  395. src/lib/datasrc/Makefile
  396. src/lib/datasrc/tests/Makefile
  397. src/lib/xfr/Makefile
  398. ])
  399. AC_OUTPUT([src/bin/cfgmgr/b10-cfgmgr.py
  400. src/bin/cfgmgr/tests/b10-cfgmgr_test.py
  401. src/bin/cmdctl/cmdctl.py
  402. src/bin/cmdctl/run_b10-cmdctl.sh
  403. src/bin/cmdctl/tests/cmdctl_test
  404. src/bin/cmdctl/cmdctl.spec.pre
  405. src/bin/xfrin/tests/xfrin_test
  406. src/bin/xfrin/xfrin.py
  407. src/bin/xfrin/xfrin.spec.pre
  408. src/bin/xfrin/run_b10-xfrin.sh
  409. src/bin/xfrout/xfrout.py
  410. src/bin/xfrout/xfrout.spec.pre
  411. src/bin/xfrout/tests/xfrout_test
  412. src/bin/xfrout/run_b10-xfrout.sh
  413. src/bin/zonemgr/zonemgr.py
  414. src/bin/zonemgr/zonemgr.spec.pre
  415. src/bin/zonemgr/tests/zonemgr_test
  416. src/bin/zonemgr/run_b10-zonemgr.sh
  417. src/bin/bind10/bind10.py
  418. src/bin/bind10/tests/bind10_test
  419. src/bin/bind10/run_bind10.sh
  420. src/bin/bindctl/run_bindctl.sh
  421. src/bin/bindctl/bindctl-source.py
  422. src/bin/bindctl/tests/bindctl_test
  423. src/bin/loadzone/run_loadzone.sh
  424. src/bin/loadzone/tests/correct/correct_test.sh
  425. src/bin/loadzone/tests/error/error_test.sh
  426. src/bin/loadzone/b10-loadzone.py
  427. src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  428. src/bin/usermgr/b10-cmdctl-usermgr.py
  429. src/bin/msgq/msgq.py
  430. src/bin/msgq/tests/msgq_test
  431. src/bin/msgq/run_msgq.sh
  432. src/bin/auth/auth.spec.pre
  433. src/bin/auth/spec_config.h.pre
  434. src/lib/config/tests/data_def_unittests_config.h
  435. src/lib/python/isc/config/tests/config_test
  436. src/lib/python/isc/cc/tests/cc_test
  437. src/lib/python/isc/log/tests/log_test
  438. src/lib/python/isc/notify/tests/notify_out_test
  439. src/lib/dns/gen-rdatacode.py
  440. src/lib/python/bind10_config.py
  441. src/lib/dns/tests/testdata/gen-wiredata.py
  442. src/lib/cc/session_config.h.pre
  443. src/lib/cc/tests/session_unittests_config.h
  444. ], [
  445. chmod +x src/bin/cmdctl/run_b10-cmdctl.sh
  446. chmod +x src/bin/xfrin/run_b10-xfrin.sh
  447. chmod +x src/bin/xfrout/run_b10-xfrout.sh
  448. chmod +x src/bin/zonemgr/run_b10-zonemgr.sh
  449. chmod +x src/bin/bind10/run_bind10.sh
  450. chmod +x src/bin/cmdctl/tests/cmdctl_test
  451. chmod +x src/bin/xfrin/tests/xfrin_test
  452. chmod +x src/bin/xfrout/tests/xfrout_test
  453. chmod +x src/bin/zonemgr/tests/zonemgr_test
  454. chmod +x src/bin/bindctl/tests/bindctl_test
  455. chmod +x src/bin/bindctl/run_bindctl.sh
  456. chmod +x src/bin/loadzone/run_loadzone.sh
  457. chmod +x src/bin/loadzone/tests/correct/correct_test.sh
  458. chmod +x src/bin/loadzone/tests/error/error_test.sh
  459. chmod +x src/bin/usermgr/run_b10-cmdctl-usermgr.sh
  460. chmod +x src/bin/msgq/run_msgq.sh
  461. chmod +x src/bin/msgq/tests/msgq_test
  462. chmod +x src/lib/dns/gen-rdatacode.py
  463. chmod +x src/lib/dns/tests/testdata/gen-wiredata.py
  464. ])
  465. AC_OUTPUT
  466. dnl Print the results
  467. dnl
  468. cat > config.report << END
  469. BIND 10 source configure results:
  470. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  471. Package:
  472. Name: $PACKAGE_NAME
  473. Version: $PACKAGE_VERSION
  474. Flags:
  475. DEFS: $DEFS
  476. CPPFLAGS: $CPPFLAGS
  477. CFLAGS: $CFLAGS
  478. CXXFLAGS: $CXXFLAGS
  479. B10_CXXFLAGS: $B10_CXXFLAGS
  480. dnl includes too
  481. Python: ${PYTHON_INCLUDES}
  482. ${PYTHON_LDFLAGS}
  483. ${PYTHON_LIB}
  484. SQLite: $SQLITE_CFLAGS
  485. $SQLITE_LIBS
  486. Features:
  487. $enable_features
  488. Developer:
  489. Google Tests: $gtest_path
  490. Code Coverage: $USE_LCOV
  491. Generate Manuals: $enable_man
  492. END
  493. cat config.report
  494. cat <<EOF
  495. Now you can type "make" to build BIND 10
  496. EOF