From 3e05e934cb3b56ce4c9c9c4625813d31a472daf9 Mon Sep 17 00:00:00 2001 From: djm Date: Thu, 15 May 2003 00:53:49 +0000 Subject: [PATCH] - (djm) Configure glue for DNS support (code doesn't work in portable yet) --- ChangeLog | 1 + acconfig.h | 6 ++++++ configure.ac | 30 ++++++++++++++++++++++++++++-- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8274fc35..ad590016 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ - markus@cvs.openbsd.org 2003/05/14 22:24:42 [clientloop.c session.c ssh.1] allow to send a BREAK to the remote system; ok various + - (djm) Configure glue for DNS support (code doesn't work in portable yet) 20030514 - (djm) Bug #117: Don't lie to PAM about username diff --git a/acconfig.h b/acconfig.h index 874fcb11..a9557a28 100644 --- a/acconfig.h +++ b/acconfig.h @@ -380,6 +380,12 @@ /* Define if cmsg_type is not passed correctly */ #undef BROKEN_CMSG_TYPE +/* Define if DNS support is to be activated */ +#undef DNS + +/* Define if -llwres is to be used */ +#undef LWRES + @BOTTOM@ /* ******************* Shouldn't need to edit below this line ************** */ diff --git a/configure.ac b/configure.ac index c9aaede2..5a42e8ac 100644 --- a/configure.ac +++ b/configure.ac @@ -1804,7 +1804,6 @@ if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then fi SCARD_MSG="no" - # Check whether user wants sectok support AC_ARG_WITH(sectok, [ --with-sectok Enable smartcard support using libsectok], @@ -1854,6 +1853,32 @@ if test x$opensc_config_prefix != x ; then fi fi +# Check whether user wants DNS support +DNS_MSG="no" +AC_ARG_WITH(dns, + [ --with-dns Support for fetching keys from DNS (experimental)], + [ + if test "x$withval" != "xno" ; then + AC_DEFINE(DNS) + DNS_MSG="yes" + fi + ] +) + +LWRES_MSG="" +AC_ARG_WITH(lwres, + [ --with-lwres Use lwres library/headers for DNS support], + [ + if test "x$withval" != "xno" -a "x$DNS_MSG" = "xyes"; then + AC_DEFINE(LWRES) + LWRES_MSG="(using liblwres)" + AC_SEARCH_LIBS(lwres_herror, lwres) + fi + ] +) + + + # Check whether user wants Kerberos 5 support KRB5_MSG="no" AC_ARG_WITH(kerberos5, @@ -2578,7 +2603,8 @@ if test ! -z "$superuser_path" ; then echo " sshd superuser user PATH: $J" fi echo " Manpage format: $MANTYPE" -echo " PAM support: ${PAM_MSG}" +echo " DNS support: $DNS_MSG $LWRES_MSG" +echo " PAM support: $PAM_MSG" echo " KerberosIV support: $KRB4_MSG" echo " KerberosV support: $KRB5_MSG" echo " Smartcard support: $SCARD_MSG" -- 2.45.2