Skip to content

Commit

Permalink
ticket: 1724
Browse files Browse the repository at this point in the history
* aclocal.m4 (KRB5_AC_ENABLE_DNS): Drop --enable-dns and --enable-dns-for-kdc
options; turn them on always.


git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15792 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
raeburn committed Aug 26, 2003
1 parent 4944faf commit 6c70126
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 37 deletions.
2 changes: 2 additions & 0 deletions src/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
(CONFIG_RULES): Do the non-useless parts directly here.
(V5_SET_TOPDIR): Work quietly.
(WITH_KRB4): Use AC_MSG_NOTICE.
(KRB5_AC_ENABLE_DNS): Drop --enable-dns and --enable-dns-for-kdc
options; turn them on always.

2003-07-15 Ken Raeburn <raeburn@mit.edu>

Expand Down
42 changes: 5 additions & 37 deletions src/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -1205,51 +1205,19 @@ dnl
dnl KRB5_AC_ENABLE_DNS
dnl
AC_DEFUN(KRB5_AC_ENABLE_DNS, [
AC_MSG_CHECKING(if DNS Kerberos lookup support should be compiled in)
AC_ARG_ENABLE([dns],
[ --enable-dns build in support for Kerberos-related DNS lookups], ,
[enable_dns=default])
AC_ARG_ENABLE([dns-for-kdc],
[ --enable-dns-for-kdc enable DNS lookups of Kerberos KDCs (default=YES)], ,
[case "$enable_dns" in
yes | no) enable_dns_for_kdc=$enable_dns ;;
*) enable_dns_for_kdc=yes ;;
esac])
if test "$enable_dns_for_kdc" = yes; then
AC_DEFINE(KRB5_DNS_LOOKUP_KDC,1,[Define to enable DNS lookups of Kerberos KDCs])
fi
enable_dns=yes
enable_dns_for_kdc=yes
AC_DEFINE(KRB5_DNS_LOOKUP_KDC,1,[Define to enable DNS lookups of Kerberos KDCs])
AC_ARG_ENABLE([dns-for-realm],
[ --enable-dns-for-realm enable DNS lookups of Kerberos realm names], ,
[case "$enable_dns" in
yes | no) enable_dns_for_realm=$enable_dns ;;
*) enable_dns_for_realm=no ;;
esac])
[enable_dns_for_realm=no])
if test "$enable_dns_for_realm" = yes; then
AC_DEFINE(KRB5_DNS_LOOKUP_REALM,1,[Define to enable DNS lookups of Kerberos realm names])
fi
if test "$enable_dns_for_kdc,$enable_dns_for_realm" != no,no
then
# must compile in the support code
if test "$enable_dns" = no ; then
AC_MSG_ERROR(cannot both enable some DNS options and disable DNS support)
fi
enable_dns=yes
fi
if test "$enable_dns" = yes ; then
AC_DEFINE(KRB5_DNS_LOOKUP, 1,[Define for DNS support of locating realms and KDCs])
else
enable_dns=no
fi
AC_DEFINE(KRB5_DNS_LOOKUP, 1,[Define for DNS support of locating realms and KDCs])
AC_MSG_RESULT($enable_dns)
dnl AC_MSG_CHECKING(if DNS should be used to find KDCs by default)
dnl AC_MSG_RESULT($enable_dns_for_kdc)
dnl AC_MSG_CHECKING(if DNS should be used to find realm name by default)
dnl AC_MSG_RESULT($enable_dns_for_realm)
])
dnl
dnl
Expand Down

0 comments on commit 6c70126

Please sign in to comment.