configure.ac 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.59])
  4. AC_INIT(bind10-examples, 20120817, 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_LANG([C++])
  11. # Checks for BIND 10 headers and libraries
  12. AX_ISC_BIND10
  13. # We use -R, -rpath etc so the resulting program will be more likekly to
  14. # "just work" by default. Embedding a specific library path is a controversial
  15. # practice, though; if you don't like it you can remove the following setting.
  16. if test "x$BIND10_RPATH" != "x"; then
  17. LDFLAGS="$LDFLAGS $BIND10_RPATH"
  18. fi
  19. # For the example host program, we require the BIND 10 DNS library
  20. if test "x$BIND10_DNS_LIB" = "x"; then
  21. AC_MSG_ERROR([unable to find BIND 10 DNS library needed to build 'host'])
  22. fi
  23. # Checks for typedefs, structures, and compiler characteristics.
  24. AC_HEADER_STDBOOL
  25. AC_CONFIG_FILES([Makefile
  26. host/Makefile])
  27. AC_OUTPUT