* configure.in: If the return type for gethostbyname_r can't be
authorKen Raeburn <raeburn@mit.edu>
Thu, 25 Apr 2002 00:57:31 +0000 (00:57 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 25 Apr 2002 00:57:31 +0000 (00:57 +0000)
determined, just pretend it's not avaliable.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14421 dc483132-0cff-0310-8789-dd5450dbe970

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

index 56ad4e43d65bcef6c8596e094b8b169a4f7f4f6e..76dc404bdebc20d4d49e44be7e9ac7da2204eac2 100644 (file)
@@ -1,5 +1,8 @@
 2002-04-24  Ken Raeburn  <raeburn@mit.edu>
 
+       * configure.in: If the return type for gethostbyname_r can't be
+       determined, just pretend it's not avaliable.
+
        * fake-addrinfo.h (getaddrinfo) [_AIX]: Declare and initialize
        variable "ai".
 
index 6ddfdfe40da6b4875229806e53bdff56b29d7d59..f18527f5b194f12c7a715f0bef7f76243a72012a 100644 (file)
@@ -29,7 +29,8 @@ if test "$ac_cv_func_gethostbyname_r" = yes; then
   AC_MSG_RESULT($krb5_cv_gethostbyname_r_returns_ptr)
 
   if test "$krb5_cv_gethostbyname_r_returns_int" = "$krb5_cv_gethostbyname_r_returns_ptr"; then
-    AC_MSG_ERROR(cannot determine return type of gethostbyname_r)
+    AC_MSG_WARN(cannot determine return type of gethostbyname_r -- disabling)
+    ac_cv_func_gethostbyname_r=no
   fi
   if test "$krb5_cv_gethostbyname_r_returns_int" = yes; then
     AC_DEFINE(GETHOSTBYNAME_R_RETURNS_INT, 1, [Define if gethostbyname_r returns int rather than struct hostent * ])