From 1c5ec2d0ea7ff973e243f76ca35a1976a145854c Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 20 Jul 2005 00:13:38 +0000 Subject: [PATCH] * aclocal.m4 (AC_LIBRARY_NET): Special-case AIX 5.x due to broken res_ninit(), or more precisely, incorrect size of struct __res_state. ticket: 2902 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17309 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ChangeLog | 6 ++++++ src/aclocal.m4 | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index a54ee67f2..60655e380 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2005-07-19 Tom Yu + + * aclocal.m4 (AC_LIBRARY_NET): Special-case AIX 5.x due to broken + res_ninit(), or more precisely, incorrect size of struct + __res_state. + 2005-07-01 Ken Raeburn * Makefile.in (INSTALLMKDIRS): Add KRB5_DB_MODULE_DIR. diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 78c4ea503..68cd0412d 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -1402,6 +1402,15 @@ AC_DEFUN(AC_LIBRARY_NET, [ # We assume that if libresolv exists we can link against it. # This may get us a gethostby* that doesn't respect nsswitch. AC_CHECK_LIB(resolv, main) + + case $krb5_cv_host in + *-*-aix5*) + # AIX 5 has broken res_ninit due to resolv.h not having the correct + # size of struct __res_state; since we switch off of res_nsearch() + # rather than res_ninit(), pretend res_nsearch() is not available. + krb5_cv_func_res_nsearch=no + ;; + esac _KRB5_AC_CHECK_RES_FUNCS(res_nsearch res_search ns_initparse dnl ns_name_uncompress dn_skipname res_ndestroy) if test $krb5_cv_func_res_nsearch = no \ -- 2.26.2