add optionally libdjbdns

This commit is contained in:
whottgen
2004-10-14 09:07:22 +00:00
parent 8a16d6e8f9
commit d7322c983a
9 changed files with 279 additions and 58 deletions

View File

@ -44,6 +44,37 @@ AC_ARG_WITH(bdb-inc-dir,
esac ]
)
WITHOUT_DJBDNS=0
AC_ARG_WITH(djbdns-lib-dir,
[AC_HELP_STRING(--with-djbdns-lib-dir, [
Directory for Bernstein's djbdns library files])],
[ case "$withval" in
no)
WITHOUT_DJBDNS=1
;;
yes)
;;
*)
LDFLAGS="$LDFLAGS -L$withval -R$withval"
;;
esac ]
)
AC_ARG_WITH(djbdns-inc-dir,
[AC_HELP_STRING(--with-djbdns-inc-dir, [
Directory for Bernstein's djbdns include files])],
[ case "$withval" in
no)
WITHOUT_DJBDNS=1
;;
yes)
;;
*)
CPPFLAGS="$CPPFLAGS -I$withval"
;;
esac ]
)
ENABLE_VERIFY_CACHE=1
dnl AC_ARG_ENABLE(verify-cache,
@ -100,6 +131,9 @@ AC_CHECK_LIB(pthread, pthread_create,
)
)
if test "x$WITHOUT_DJBDNS" = "x0"; then
AC_CHECK_LIB([djbdns], [dns_transmit_start])
fi
AC_CHECK_LIB([resolv], [inet_aton])
AC_CHECK_LIB([socket], [connect])