From: Ken Raeburn Date: Mon, 18 Dec 2000 08:03:48 +0000 (+0000) Subject: * configure.in: Look for socklen_t, define HAVE_SOCKLEN_T if found X-Git-Tag: krb5-1.3-alpha1~1727 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=635a6166653fba89e62739f84e966c402213ad1d;p=krb5.git * configure.in: Look for socklen_t, define HAVE_SOCKLEN_T if found git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12897 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ChangeLog b/src/lib/krb5/ChangeLog index b63469736..4c7cb002d 100644 --- a/src/lib/krb5/ChangeLog +++ b/src/lib/krb5/ChangeLog @@ -1,3 +1,8 @@ +2000-12-18 Ken Raeburn + + * configure.in: Look for socklen_t, define HAVE_SOCKLEN_T if + found. + 2000-11-01 Ezra Peisach * configure.in: Use AC_C_CONST instead of AC_CONST. diff --git a/src/lib/krb5/configure.in b/src/lib/krb5/configure.in index 32ca0c273..631d4dc24 100644 --- a/src/lib/krb5/configure.in +++ b/src/lib/krb5/configure.in @@ -6,6 +6,21 @@ dnl AC_C_CONST AC_TYPE_UID_T AC_TYPE_OFF_T +dnl +dnl +AC_MSG_CHECKING(for socklen_t) +AC_CACHE_VAL(krb5_cv_has_type_socklen_t, +[AC_TRY_COMPILE( +[#include +#include +],[sizeof (socklen_t);], +krb5_cv_has_type_socklen_t=yes,krb5_cv_has_type_socklen_t=no)]) +AC_MSG_RESULT($krb5_cv_has_type_socklen_t) +if test $krb5_cv_has_type_socklen_t = yes; then + AC_DEFINE(HAVE_SOCKLEN_T) +fi +dnl +dnl HAS_ANSI_VOLATILE AC_HEADER_STDARG AC_CHECK_HEADERS(unistd.h paths.h regex.h regexp.h regexpr.h fcntl.h memory.h ifaddrs.h)