configure.ac 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.61])
  4. AC_INIT(bind, 10.0.0, bind10-bugs@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_CC
  11. AC_PROG_RANLIB
  12. # Checks for libraries.
  13. # Checks for header files.
  14. # Checks for typedefs, structures, and compiler characteristics.
  15. AC_HEADER_STDBOOL
  16. AC_TYPE_SIZE_T
  17. #
  18. # Check availablity of boost
  19. #
  20. AC_ARG_WITH(boost,
  21. [ --with-boost=PATH specify a path to the boost if it's not automatically found],
  22. boost_path="$withval", boost_path="no")
  23. if test "$boost_path" != "no"
  24. then
  25. CPPFLAGS="$CPPFLAGS -I$boost_path"
  26. fi
  27. #
  28. # Check availablity of gtest, which might be used for unit tests.
  29. #
  30. AC_ARG_WITH(gtest,
  31. [ --with-gtest=PATH specify a path to Gtest header files (PATH/include) and library (PATH/lib)],
  32. gtest_path="$withval", gtest_path="no")
  33. if test "$gtest_path" != "no"
  34. then
  35. GTEST_INCLUDES="-I${gtest_path}/include"
  36. GTEST_LDFLAGS="-L${gtest_path}/lib"
  37. GTEST_LDADD="-lgtest"
  38. else
  39. GTEST_INCLUDES=
  40. GTEST_LDFLAGS=
  41. GTEST_LDADD=
  42. fi
  43. AM_CONDITIONAL(HAVE_GTEST, test $gtest_path != "no")
  44. AC_SUBST(GTEST_INCLUDES)
  45. AC_SUBST(GTEST_LDFLAGS)
  46. AC_SUBST(GTEST_LDADD)
  47. # Checks for library functions.
  48. AC_CONFIG_FILES([Makefile
  49. src/Makefile
  50. src/bin/Makefile
  51. src/bin/parkinglot/Makefile
  52. src/lib/Makefile
  53. src/lib/dns/Makefile
  54. ])
  55. AC_OUTPUT([src/bin/bind-cfgd/bind-cfgd])
  56. AC_OUTPUT