diff options
-rwxr-xr-x | Configure | 30 | ||||
-rw-r--r-- | Cross/config.sh-arm-linux | 1 | ||||
-rw-r--r-- | NetWare/config.wc | 1 | ||||
-rw-r--r-- | Porting/Glossary | 6 | ||||
-rw-r--r-- | Porting/config.sh | 1 | ||||
-rwxr-xr-x | config_h.SH | 7 | ||||
-rw-r--r-- | configure.com | 1 | ||||
-rw-r--r-- | metaconfig.h | 1 | ||||
-rw-r--r-- | plan9/config_sh.sample | 1 | ||||
-rw-r--r-- | symbian/config.sh | 1 | ||||
-rw-r--r-- | uconfig.h | 11 | ||||
-rw-r--r-- | uconfig.sh | 1 | ||||
-rw-r--r-- | uconfig64.sh | 1 | ||||
-rw-r--r-- | win32/config.ce | 1 | ||||
-rw-r--r-- | win32/config.gc | 1 | ||||
-rw-r--r-- | win32/config.vc | 1 |
16 files changed, 64 insertions, 2 deletions
@@ -506,6 +506,7 @@ d_ftello='' d_ftime='' d_gettimeod='' d_futimes='' +d_gai_strerror='' d_Gconvert='' d_getaddrinfo='' d_getcwd='' @@ -14293,6 +14294,34 @@ else fi $rm_try +: look for gai_strerror +echo " " +$cat >try.c <<'EOCP' +#include <sys/types.h> +#include <sys/socket.h> +#include <netdb.h> +int main () +{ + return (gai_strerror (0) ? 0 : 1); + } +EOCP +set try +val="$undef" +if eval $compile; then + `$run ./try` + case "$?" in + 0) echo "A working gai_strerror() found." >&4 + val="$define" ;; + *) echo "gai_strerror() found, but it doesn't work" >&4 + ;; + esac +else + echo "gai_strerror() NOT found." >&4 + fi +set d_gai_strerror +eval $setvar +$rm_try + : see if ndbm.h is available set ndbm.h i_ndbm eval $inhdr @@ -24375,6 +24404,7 @@ d_fsync='$d_fsync' d_ftello='$d_ftello' d_ftime='$d_ftime' d_futimes='$d_futimes' +d_gai_strerror='$d_gai_strerror' d_gdbm_ndbm_h_uses_prototypes='$d_gdbm_ndbm_h_uses_prototypes' d_gdbmndbm_h_uses_prototypes='$d_gdbmndbm_h_uses_prototypes' d_getaddrinfo='$d_getaddrinfo' diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux index 1201a76101..8b3f5c00f9 100644 --- a/Cross/config.sh-arm-linux +++ b/Cross/config.sh-arm-linux @@ -233,6 +233,7 @@ d_fsync='define' d_ftello='define' d_ftime='undef' d_futimes='undef' +d_gai_strerror='undef' d_gdbm_ndbm_h_uses_prototypes='undef' d_gdbmndbm_h_uses_prototypes='undef' d_getaddrinfo='undef' diff --git a/NetWare/config.wc b/NetWare/config.wc index db32f36cdb..d61924e037 100644 --- a/NetWare/config.wc +++ b/NetWare/config.wc @@ -221,6 +221,7 @@ d_fsync='undef' d_ftello='undef' d_ftime='define' d_futimes='undef' +d_gai_strerror='undef' d_gdbm_ndbm_h_uses_prototypes='undef' d_gdbmndbm_h_uses_prototypes='undef' d_getaddrinfo='undef' diff --git a/Porting/Glossary b/Porting/Glossary index 5e7560a312..39a17b85ec 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -983,6 +983,12 @@ d_futimes (d_futimes.U): This variable conditionally defines the HAS_FUTIMES symbol, which indicates to the C program that the futimes() routine is available. +d_gai_strerror (d_gai_strerror.U): + This variable conditionally defines the HAS_GAI_STRERROR symbol + if the gai_strerror() routine is available and can be used to + translate error codes returned by getaddrinfo() into human + readable strings. + d_Gconvert (d_gconvert.U): This variable holds what Gconvert is defined as to convert floating point numbers into strings. By default, Configure diff --git a/Porting/config.sh b/Porting/config.sh index 68e0434078..4f6e6434bf 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -242,6 +242,7 @@ d_fsync='define' d_ftello='define' d_ftime='undef' d_futimes='define' +d_gai_strerror='undef' d_gdbm_ndbm_h_uses_prototypes='undef' d_gdbmndbm_h_uses_prototypes='undef' d_getaddrinfo='define' diff --git a/config_h.SH b/config_h.SH index 5722333a2e..099f92ab02 100755 --- a/config_h.SH +++ b/config_h.SH @@ -2882,6 +2882,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_futimes HAS_FUTIMES /**/ +/* HAS_GAI_STRERROR: + * This symbol, if defined, indicates that the gai_strerror routine + * is available to translate error codes returned by getaddrinfo() + * into human readable strings. + */ +#$d_gai_strerror HAS_GAI_STRERROR /**/ + /* HAS_GETADDRINFO: * This symbol, if defined, indicates that the getaddrinfo() function * is available for use. diff --git a/configure.com b/configure.com index 8a9790266e..1d11fe1228 100644 --- a/configure.com +++ b/configure.com @@ -6869,6 +6869,7 @@ $ WC "d_endprotoent_r='undef'" $ WC "d_endpwent_r='undef'" $ WC "d_endservent_r='undef'" $ WC "d_freelocale='undef'" +$ WC "d_gai_strerror='undef'" $ WC "d_getgrent_r='undef'" $ WC "d_getgrgid_r='" + d_getgrgid_r + "'" $ WC "d_getgrnam_r='" + d_getgrnam_r + "'" diff --git a/metaconfig.h b/metaconfig.h index 98d91c28a3..a5538d8534 100644 --- a/metaconfig.h +++ b/metaconfig.h @@ -20,6 +20,7 @@ * HAS_FEGETROUND * HAS_FPCLASSIFY * HAS_FREELOCALE + * HAS_GAI_STRERROR * HAS_GMTIME64 * HAS_ISFINITEL * HAS_ISINFL diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index ef93b2130b..a89c918e5e 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -233,6 +233,7 @@ d_fsync='define' d_ftello='undef' d_ftime='undef' d_futimes='undef' +d_gai_strerror='undef' d_gdbm_ndbm_h_uses_prototypes='undef' d_gdbmndbm_h_uses_prototypes='undef' d_getaddrinfo='undef' diff --git a/symbian/config.sh b/symbian/config.sh index ee115546b7..b311521b2c 100644 --- a/symbian/config.sh +++ b/symbian/config.sh @@ -178,6 +178,7 @@ d_ftello='undef' d_ftime='undef' d_futimes='undef' d_futimesat='undef' +d_gai_strerror='undef' d_gdbm_ndbm_h_uses_prototypes='undef' d_gdbmndbm_h_uses_prototypes='undef' d_getaddrinfo='undef' @@ -2847,6 +2847,13 @@ */ /*#define HAS_FUTIMES / **/ +/* HAS_GAI_STRERROR: + * This symbol, if defined, indicates that the gai_strerror routine + * is available to translate error codes returned by getaddrinfo() + * into human readable strings. + */ +/*#define HAS_GAI_STRERROR / **/ + /* HAS_GETADDRINFO: * This symbol, if defined, indicates that the getaddrinfo() function * is available for use. @@ -5266,6 +5273,6 @@ #endif /* Generated from: - * cfa085ebfb9eb05bf5e1ba22c5b95092f6706990ceaf36a22d1d69af4e9cc060 config_h.SH - * d9b976f8d350063d614cfaf6dc334c3ca7361603add9f38c49e2fed7c85ca388 uconfig.sh + * 42be1deadbcceadd92a1463d6c11c441bad7c83fe2a4cd1c2ebec7742bb5e8a3 config_h.SH + * 0fca2bf99ac976bba919b593a18bacd059c581dbe6c8638dc0861b1e613b8406 uconfig.sh * ex: set ro: */ diff --git a/uconfig.sh b/uconfig.sh index 63614f8745..edc36db326 100644 --- a/uconfig.sh +++ b/uconfig.sh @@ -171,6 +171,7 @@ d_fsync='undef' d_ftello='undef' d_ftime='undef' d_futimes='undef' +d_gai_strerror='undef' d_gdbm_ndbm_h_uses_prototypes='undef' d_gdbmndbm_h_uses_prototypes='undef' d_getaddrinfo='undef' diff --git a/uconfig64.sh b/uconfig64.sh index 3295998693..df18372a9c 100644 --- a/uconfig64.sh +++ b/uconfig64.sh @@ -172,6 +172,7 @@ d_fsync='undef' d_ftello='undef' d_ftime='undef' d_futimes='undef' +d_gai_strerror='undef' d_gdbm_ndbm_h_uses_prototypes='undef' d_gdbmndbm_h_uses_prototypes='undef' d_getaddrinfo='undef' diff --git a/win32/config.ce b/win32/config.ce index c9a98347ef..8f68ddd890 100644 --- a/win32/config.ce +++ b/win32/config.ce @@ -219,6 +219,7 @@ d_fsync='undef' d_ftello='undef' d_ftime='define' d_futimes='undef' +d_gai_strerror='undef' d_gdbm_ndbm_h_uses_prototypes='undef' d_gdbmndbm_h_uses_prototypes='undef' d_getaddrinfo='undef' diff --git a/win32/config.gc b/win32/config.gc index 0b2a40b64d..69a21a2a18 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -220,6 +220,7 @@ d_fsync='undef' d_ftello='undef' d_ftime='define' d_futimes='undef' +d_gai_strerror='undef' d_gdbm_ndbm_h_uses_prototypes='undef' d_gdbmndbm_h_uses_prototypes='undef' d_getaddrinfo='undef' diff --git a/win32/config.vc b/win32/config.vc index f8c8e0814b..50d2a92605 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -220,6 +220,7 @@ d_fsync='undef' d_ftello='undef' d_ftime='define' d_futimes='undef' +d_gai_strerror='undef' d_gdbm_ndbm_h_uses_prototypes='undef' d_gdbmndbm_h_uses_prototypes='undef' d_getaddrinfo='undef' |