* configure.in: Check for struct if_laddrconf, as for struct lifconf
authorKen Raeburn <raeburn@mit.edu>
Fri, 1 Oct 2004 23:43:05 +0000 (23:43 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 1 Oct 2004 23:43:05 +0000 (23:43 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16800 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/configure.in

index d184d93b3dec558389342a61e00d2445dbe32d56..e6c5e03508156f82c712162a3d76214ad0ed51a2 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-01  Ken Raeburn  <raeburn@mit.edu>
+
+       * configure.in: Check for struct if_laddrconf, as for struct
+       lifconf.
+
 2004-09-23  Ken Raeburn  <raeburn@mit.edu>
 
        * configure.in: Use AC_MSG_NOTICE for krb4 messages instead of
index f18ddfa9e4f131108b9b250966f97a5c3a9063a4..071ff55ac6f385a45f768d31d7ec35ae1852b6e1 100644 (file)
@@ -240,6 +240,19 @@ AC_MSG_RESULT($krb5_cv_has_struct_lifconf)
 if test $krb5_cv_has_struct_lifconf = yes; then
     AC_DEFINE(HAVE_STRUCT_LIFCONF,1,[Define if there is a struct lifconf.])
 fi
+dnl HP-UX 11 uses stuct if_laddrconf
+AC_MSG_CHECKING(for struct if_laddrconf)
+AC_CACHE_VAL(krb5_cv_has_struct_if_laddrconf,
+[AC_TRY_COMPILE(
+[#include <sys/socket.h>
+#include <net/if.h>
+#include <net/if6.h>
+],[sizeof (struct if_laddrconf);],
+krb5_cv_has_struct_if_laddrconf=yes,krb5_cv_has_struct_if_laddrconf=no)])
+AC_MSG_RESULT($krb5_cv_has_struct_if_laddrconf)
+if test $krb5_cv_has_struct_if_laddrconf = yes; then
+    AC_DEFINE(HAVE_STRUCT_IF_LADDRCONF,1,[Define if there is a struct if_laddrconf.])
+fi
 dnl
 dnl
 AC_MSG_CHECKING([for h_errno in netdb.h])