From 70a7656d7f086f8ad9e465c7ee6a9d71eea72e89 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 9 Jun 2000 17:01:05 +0000 Subject: [PATCH] Detect getaddrinfo --- configure | 25 +++++++++++++------------ configure.in | 1 + include/portable.h.in | 3 +++ 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/configure b/configure index 3d9a6b9846..617a80d924 100755 --- a/configure +++ b/configure @@ -15379,6 +15379,7 @@ for ac_func in \ endgrent \ endpwent \ flock \ + getaddrinfo \ getdtablesize \ getgrgid \ gethostname \ @@ -15425,12 +15426,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:15429: checking for $ac_func" >&5 +echo "configure:15430: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -15482,12 +15483,12 @@ done for ac_func in getopt tempnam do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:15486: checking for $ac_func" >&5 +echo "configure:15487: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -15548,13 +15549,13 @@ fi # Check Configuration echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6 -echo "configure:15552: checking declaration of sys_errlist" >&5 +echo "configure:15553: checking declaration of sys_errlist" >&5 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -15567,7 +15568,7 @@ int main() { char *c = (char *) *sys_errlist ; return 0; } EOF -if { (eval echo configure:15571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ol_cv_dcl_sys_errlist=yes ol_cv_have_sys_errlist=yes @@ -15590,20 +15591,20 @@ EOF echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6 -echo "configure:15594: checking existence of sys_errlist" >&5 +echo "configure:15595: checking existence of sys_errlist" >&5 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *c = (char *) *sys_errlist ; return 0; } EOF -if { (eval echo configure:15607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ol_cv_have_sys_errlist=yes else diff --git a/configure.in b/configure.in index 60d2738eee..4e17b510c1 100644 --- a/configure.in +++ b/configure.in @@ -2030,6 +2030,7 @@ AC_CHECK_FUNCS( \ endgrent \ endpwent \ flock \ + getaddrinfo \ getdtablesize \ getgrgid \ gethostname \ diff --git a/include/portable.h.in b/include/portable.h.in index 03d346c282..cbabdee7ed 100644 --- a/include/portable.h.in +++ b/include/portable.h.in @@ -149,6 +149,9 @@ /* Define if you have the flock function. */ #undef HAVE_FLOCK +/* Define if you have the getaddrinfo function. */ +#undef HAVE_GETADDRINFO + /* Define if you have the getdtablesize function. */ #undef HAVE_GETDTABLESIZE -- 2.39.5