Permalink
Browse files

make configure.ac more reliable

  • Loading branch information...
1 parent 97dce61 commit d92fbf0e5d59157a2122539dba83c4067b13c75e @jinmei committed Mar 31, 2012
Showing with 5 additions and 4 deletions.
  1. +2 −2 config.h.in
  2. +3 −2 configure.ac
View
@@ -26,8 +26,8 @@
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
-/* Define to 1 if you have the <dns/message.h> header file. */
-#undef HAVE_DNS_MESSAGE_H
+/* Define to 1 if you have the <dns/rrtype.h> header file. */
+#undef HAVE_DNS_RRTYPE_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
View
@@ -27,7 +27,7 @@ if test "$bind10_inc_path" = "no"; then
bind10dirs="/usr/local /usr/pkg /opt /opt/local"
for d in $bind10dirs
do
- if test -f $d/dns/message.h; then
+ if test -f $d/dns/rrtype.h; then
bind10_inc_path=$d
break
fi
@@ -38,7 +38,7 @@ if test "${bind10_inc_path}" ; then
BIND10_INCLUDES="-I${bind10_inc_path}"
CPPFLAGS="$CPPFLAGS $BIND10_INCLUDES"
fi
-AC_CHECK_HEADERS([dns/message.h],,
+AC_CHECK_HEADERS([dns/rrtype.h],,
AC_MSG_ERROR([Missing required BIND 10 header files.]))
CPPFLAGS="$CPPFLAGS_SAVES"
AC_SUBST(BIND10_INCLUDES)
@@ -214,6 +214,7 @@ AC_ARG_WITH([asio-include],
[specify exact directory for ASIO headers]),
[asio_include_path="$withval"])
CPPFLAGS_SAVES="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS $BOOST_INCLUDES"
if test "${asio_include_path}" ; then
ASIO_INCLUDES="-I${asio_include_path}"
CPPFLAGS="$CPPFLAGS $ASIO_INCLUDES"

0 comments on commit d92fbf0

Please sign in to comment.