diff options
| author | Alexandra Ellwood <lxs@mit.edu> | 2003-03-18 15:31:35 +0000 |
|---|---|---|
| committer | Alexandra Ellwood <lxs@mit.edu> | 2003-03-18 15:31:35 +0000 |
| commit | fabd1405aec697095d8e02709051ca0c6fa97bc7 (patch) | |
| tree | 243026d3644010ff071ea5db53184d6ed442cd15 /src | |
| parent | 91ac39da6bdfa30fff48bab3965eee6b31ef2e7b (diff) | |
| download | krb5-fabd1405aec697095d8e02709051ca0c6fa97bc7.tar.gz krb5-fabd1405aec697095d8e02709051ca0c6fa97bc7.tar.xz krb5-fabd1405aec697095d8e02709051ca0c6fa97bc7.zip | |
* aclocal.m4: Define KRB5_AC_NEED_BIND_8_COMPAT to check for bind 9 and higher. When bind 9 is present, BIND_8_COMPAT needs to be defined to get bind 8 types
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15289 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/aclocal.m4 | 20 |
2 files changed, 26 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6f18978f5..748197a63 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2003-03-18 Alexandra Ellwood <lxs@mit.edu> + + * aclocal.m4: Define KRB5_AC_NEED_BIND_8_COMPAT to check for bind 9 + and higher. When bind 9 is present, BIND_8_COMPAT needs to be defined to + get bind 8 types. + 2003-03-12 Tom Yu <tlyu@mit.edu> * Makefile.in (AWK): Default to awk, not gawk. User can override diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 3a0895f71..808cd5f50 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -1519,3 +1519,23 @@ AC_SUBST(DB_HEADER_VERSION) AC_SUBST(DB_LIB) ]) dnl +dnl +dnl KRB5_AC_NEED_BIND_8_COMPAT --- check to see if we are on a bind 9 system +dnl +dnl +AC_DEFUN(KRB5_AC_NEED_BIND_8_COMPAT,[ +AC_REQUIRE([AC_PROG_CC])dnl +dnl +dnl On a bind 9 system, we need to define BIND_8_COMPAT +dnl +AC_MSG_CHECKING(for bind 9 or higher) +AC_CACHE_VAL(krb5_cv_need_bind_8_compat,[ +AC_TRY_COMPILE([#include <arpa/nameser.h>], [HEADER hdr;], +krb5_cv_need_bind_8_compat=no, +[AC_TRY_COMPILE([#define BIND_8_COMPAT +#include <arpa/nameser.h>], [HEADER hdr;], +krb5_cv_need_bind_8_compat=yes, krb5_cv_need_bind_8_compat=no)])]) +AC_MSG_RESULT($krb5_cv_need_bind_8_compat) +test $krb5_cv_need_bind_8_compat = yes && AC_DEFINE(BIND_8_COMPAT,1,[Define if OS has bind 9]) +]) +dnl |
