X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/346712be0b77cf7a59cff19c5b96533d9a780268..86e988be1f8cc30bfe52e03b6c22ad3140e1fb20:/Configure diff --git a/Configure b/Configure index 7df8e67..0edf516 100755 --- a/Configure +++ b/Configure @@ -229,6 +229,7 @@ extensions='' known_extensions='' nonxs_ext='' static_ext='' +uselanginfo='' useopcode='' useposix='' extras='' @@ -371,6 +372,7 @@ cppminus='' cpprun='' cppstdin='' d__fwalk='' +d_accept4='' d_access='' d_accessx='' d_acosh='' @@ -408,7 +410,6 @@ d_clearenv='' d_closedir='' d_void_closedir='' d_cmsghdr_s='' -d_const='' d_copysign='' d_copysignl='' d_cplusplus='' @@ -424,7 +425,6 @@ d_ctermid_r='' ctime_r_proto='' d_ctime_r='' d_cuserid='' -d_dbl_dig='' d_dbminitproto='' d_difftime='' d_dir_dd_fd='' @@ -439,6 +439,7 @@ d_drand48_r='' drand48_r_proto='' d_drand48proto='' d_dup2='' +d_dup3='' d_eaccess='' d_endgrent='' d_endgrent_r='' @@ -666,6 +667,7 @@ d_memrchr='' d_mkdir='' d_mkdtemp='' d_mkfifo='' +d_mkostemp='' d_mkstemp='' d_mkstemps='' d_mktime='' @@ -701,6 +703,7 @@ d_open3='' d_fpathconf='' d_pathconf='' d_pause='' +d_pipe2='' d_pipe='' d_poll='' d_portable='' @@ -759,7 +762,9 @@ d_sethostent_r='' sethostent_r_proto='' d_setitimer='' d_setlinebuf='' +d_has_C_UTF8='' d_setlocale='' +d_setlocale_accepts_any_locale_name='' d_setlocale_r='' setlocale_r_proto='' d_setnent='' @@ -808,6 +813,8 @@ d_signbit='' d_sigprocmask='' d_sigsetjmp='' usesitecustomize='' +d_snprintf='' +d_vsnprintf='' d_sockatmark='' d_sockatmarkproto='' d_ip_mreq='' @@ -830,7 +837,6 @@ sockethdr='' socketlib='' d_socklen_t='' d_socks5_init='' -d_sprintf_returns_strlen='' d_sqrtl='' d_srand48_r='' srand48_r_proto='' @@ -857,11 +863,7 @@ stdio_bufsiz='' stdio_cnt='' stdio_filbuf='' stdio_ptr='' -d_index='' -d_strchr='' d_strcoll='' -d_strerrm='' -d_strerror='' d_sysernlst='' d_syserrlst='' d_strerror_l='' @@ -872,6 +874,7 @@ d_strlcat='' d_strlcpy='' d_strnlen='' d_strtod='' +d_strtod_l='' d_strtol='' d_strtold='' d_strtold_l='' @@ -903,6 +906,8 @@ clocktype='' d_times='' d_tmpnam_r='' tmpnam_r_proto='' +d_towlower='' +d_towupper='' d_trunc='' d_truncate='' d_truncl='' @@ -967,7 +972,6 @@ html3dir='' html3direxp='' installhtml3dir='' i_arpainet='' -i_assert='' i_bfd='' i_crypt='' db_hashtype='' @@ -985,7 +989,6 @@ i_dlfcn='' i_execinfo='' i_fcntl='' i_fenv='' -i_float='' i_fp='' i_fp_class='' i_gdbm='' @@ -995,13 +998,10 @@ i_ieeefp='' i_inttypes='' i_langinfo='' i_libutil='' -i_limits='' i_locale='' i_machcthr='' i_malloc='' i_mallocmalloc='' -i_math='' -i_memory='' i_mntent='' d_gdbm_ndbm_h_uses_prototypes='' d_gdbmndbm_h_uses_prototypes='' @@ -1033,8 +1033,6 @@ i_socks='' i_stdbool='' i_stdint='' i_stdlib='' -i_string='' -strings='' i_sunmath='' i_sysaccess='' i_sysdir='' @@ -1076,9 +1074,9 @@ timeincl='' i_unistd='' i_ustat='' i_utime='' -i_values='' i_vfork='' i_wchar='' +i_wctype='' d_inc_version_list='' inc_version_list='' inc_version_list_init='' @@ -1476,6 +1474,8 @@ perllibs='' useposix=true : set useopcode=false in your hint file to disable the Opcode extension. useopcode=true +: set uselanginfo=false in your hint file to disable the I18N::Langinfo extension. +uselanginfo=true archname64='' ccflags_uselargefiles='' ldflags_uselargefiles='' @@ -3503,6 +3503,9 @@ EOM ;; MiNT) osname=mint ;; + minix) osname=minix + osvers=`$uname -r` + ;; netbsd*) osname=netbsd osvers="$3" ;; @@ -3514,8 +3517,8 @@ EOM ;; nonstop-ux) osname=nonstopux ;; openbsd) osname=openbsd - osvers="$3" - ;; + osvers="$3" + ;; os2) osname=os2 osvers="$4" ;; @@ -5214,7 +5217,7 @@ EOM rp='Try to use long doubles if available?' . ./myread case "$ans" in -y|Y) val="$define" ;; +y|Y) val="$define" ;; *) val="$undef" ;; esac set uselongdouble @@ -5787,7 +5790,7 @@ $cc -o ${mc_file} $optimize $ccflags $ldflags $* ${mc_file}.c $libs > /dev/null compile_ok=' mc_file=$1; shift; -$cc -o ${mc_file} $optimize $ccflags $ldflags $* ${mc_file}.c $libs;' +$cc -o ${mc_file} $optimize $ccflags $ldflags $* ${mc_file}.c $libs > /dev/null 2>&1;' : stub, used only to satisfy other units i_stdlib='define' @@ -6897,10 +6900,6 @@ EOCP esac $rm_try -: see if this is a float.h system -set float.h i_float -eval $inhdr - : check for long doubles echo " " echo "Checking to see if you have long double..." >&4 @@ -6959,13 +6958,10 @@ $echo "Checking the kind of long doubles you have..." >&4 case "$d_longdbl" in define) $cat <try.c -#$i_float I_FLOAT #$i_stdlib I_STDLIB #define LONGDBLSIZE $longdblsize #define DOUBLESIZE $doublesize -#ifdef I_FLOAT #include -#endif #ifdef I_STDLIB #include #endif @@ -7809,7 +7805,6 @@ EOM ;; esac - : determine whether to use malloc wrapping echo " " case "$usemallocwrap" in @@ -8815,7 +8810,7 @@ if "$useshrplib"; then solaris) xxx="-R $shrpdir" ;; - freebsd|mirbsd|netbsd|openbsd|interix|dragonfly|bitrig) + freebsd|minix|mirbsd|netbsd|openbsd|interix|dragonfly|bitrig) xxx="-Wl,-R$shrpdir" ;; bsdos|linux|irix*|dec_osf|gnu*|haiku) @@ -8973,8 +8968,8 @@ if (echo hi >$first) 2>/dev/null; then echo 'You cannot have filenames longer than 14 characters. Sigh.' >&4 val="$undef" else - echo 'You can have filenames longer than 14 characters.'>&4 - val="$define" + echo 'You can have filenames longer than 14 characters.'>&4 + val="$define" fi else $cat <<'EOM' @@ -9219,7 +9214,7 @@ case "$myhostname" in $test -s hosts } || { test "X$hostcat" != "X" && - $hostcat | $sed -n -e "s/[ ]*#.*//; s/\$/ / + $hostcat | $sed -n -e "s/[ ]*#.*//; s/\$/ / /[ ]$myhostname[ . ]/p" > hosts } tmp_re="[ . ]" @@ -9252,7 +9247,7 @@ case "$myhostname" in .) dflt=.`$sed -n -e 's/ / /g' \ -e 's/^domain *\([^ ]*\).*/\1/p' $tans \ -e 1q 2>/dev/null` - ;; + ;; esac fi ;; @@ -9661,7 +9656,6 @@ esac set usefaststdio eval $setvar - : define an is-a-typedef? function typedef='type=$1; var=$2; def=$3; shift; shift; shift; inclist=$@; case "$inclist" in @@ -9824,8 +9818,8 @@ EOM rp='Try to understand large files, if available?' . ./myread case "$ans" in - y|Y) val="$define" ;; - *) val="$undef" ;; + y|Y) val="$define" ;; + *) val="$undef" ;; esac ;; esac @@ -10066,46 +10060,6 @@ esac prefixvar=vendorscript . ./installprefix -: script used to emit important warnings -cat >warn <msg -else - cat >msg -fi -echo "*** WARNING:" >&4 -sed -e 's/^/*** /' &4 -echo "*** " >&4 -cat msg >>config.msg -echo " " >>config.msg -rm -f msg -EOS -chmod +x warn -$eunicefix warn - -: see which of string.h or strings.h is needed -echo " " -strings=`./findhdr string.h` -if $test "$strings" && $test -r "$strings"; then - echo "Using instead of ." >&4 - val="$define" -else - val="$undef" - strings=`./findhdr strings.h` - if $test "$strings" && $test -r "$strings"; then - echo "Using instead of ." >&4 - else - ./warn "No string header found -- You'll surely have problems." - fi -fi -set i_string -eval $setvar -case "$i_string" in -"$undef") strings=`./findhdr strings.h`;; -*) strings=`./findhdr string.h`;; -esac - : see if qgcvt exists set qgcvt d_qgcvt eval $inlibc @@ -10462,12 +10416,7 @@ char *myname = "sprintf"; #ifdef I_STDLIB #include #endif -#$i_string I_STRING -#ifdef I_STRING -# include -#else -# include -#endif +#include int checkit(char *expect, char *got) { @@ -10648,6 +10597,10 @@ $rm_try set fwalk d__fwalk eval $inlibc +: see if accept4 exists +set accept4 d_accept4 +eval $inlibc + : Initialize h_fcntl h_fcntl=false @@ -10791,6 +10744,7 @@ hasproto='varname=$1; func=$2; shift; shift; while $test $# -ge 2; do case "$1" in $define) echo "#include <$2>";; + literal) echo "$2" ;; esac ; shift 2; done > try.c; @@ -10833,16 +10787,15 @@ set $varname; eval $setvar; $rm_try' -: see if we should include time.h, sys/time.h, or both +: see if we should include sys/time.h echo " " +i_time='define' if test "X$timeincl" = X; then - echo "Testing to see if we should include , or both." >&4 + echo "Testing to see if we should include ." >&4 $echo $n "I'm now running the test program...$c" $cat >try.c < -#ifdef I_TIME #include -#endif #ifdef I_SYSTIME #ifdef SYSTIMEKERNEL #define KERNEL @@ -10879,13 +10832,12 @@ EOCP sysselect='' for s_timeval in '-DS_TIMEVAL' ''; do for i_systimek in '' '-DSYSTIMEKERNEL'; do - for i_time in '' '-DI_TIME'; do for i_systime in '-DI_SYSTIME' ''; do case "$flags" in '') $echo $n ".$c" - set try $i_time $i_systime $i_systimek $sysselect $s_timeval $s_timezone + set try $i_systime $i_systimek $sysselect $s_timeval $s_timezone if eval $compile; then - set X $i_time $i_systime $i_systimek $sysselect $s_timeval + set X $i_systime $i_systimek $sysselect $s_timeval shift flags="$*" echo " " @@ -10897,7 +10849,6 @@ EOCP done done done - done timeincl='' echo " " case "$flags" in @@ -10907,12 +10858,6 @@ EOCP *) i_systimek="$undef";; esac case "$flags" in - *I_TIME*) i_time="$define" - timeincl=`./findhdr time.h`" $timeincl" - echo "We'll include ." >&4;; - *) i_time="$undef";; - esac - case "$flags" in *I_SYSTIME*) i_systime="$define" timeincl=`./findhdr sys/time.h`" $timeincl" echo "We'll include ." >&4;; @@ -10987,7 +10932,7 @@ case "$d_asctime_r" in esac case "$asctime_r_proto" in ''|0) d_asctime_r=undef - asctime_r_proto=0 + asctime_r_proto=0 echo "Disabling asctime_r, cannot determine prototype." >&4 ;; * ) case "$asctime_r_proto" in REENTRANT_PROTO*) ;; @@ -11064,8 +11009,15 @@ $cat >attrib.c < #endif +#$i_inttypes I_INTTYPES +#ifdef I_INTTYPES +#include +#endif +#ifndef INTPTR_MAX +#define intptr_t int +#endif int null_printf (char* pat,...) __attribute__((__format__(__printf__,1,2))); -int null_printf (char* pat,...) { return (int)pat; } +int null_printf (char* pat,...) { return (int)(intptr_t)pat; } int main () { exit(null_printf(NULL)); } EOCP if $cc $ccflags -o attrib attrib.c >attrib.out 2>&1 ; then @@ -12107,28 +12059,6 @@ case "$d_cmsghdr_s" in *) echo "No, it doesn't." ;; esac - -: check for const keyword -echo " " -echo 'Checking to see if your C compiler knows about "const"...' >&4 -$cat >const.c <<'EOCP' -typedef struct spug { int drokk; } spug; -int main() -{ - const char *foo; - const spug y = { 0 }; -} -EOCP -if $cc -c $ccflags const.c >/dev/null 2>&1 ; then - val="$define" - echo "Yup, it does." -else - val="$undef" - echo "Nope, it doesn't." -fi -set d_const -eval $setvar - : see if copysign exists set copysign d_copysign eval $inlibc @@ -12204,7 +12134,7 @@ case "$d_crypt_r" in esac case "$crypt_r_proto" in ''|0) d_crypt_r=undef - crypt_r_proto=0 + crypt_r_proto=0 echo "Disabling crypt_r, cannot determine prototype." >&4 ;; * ) case "$crypt_r_proto" in REENTRANT_PROTO*) ;; @@ -12261,7 +12191,7 @@ case "$d_ctermid_r" in esac case "$ctermid_r_proto" in ''|0) d_ctermid_r=undef - ctermid_r_proto=0 + ctermid_r_proto=0 echo "Disabling ctermid_r, cannot determine prototype." >&4 ;; * ) case "$ctermid_r_proto" in REENTRANT_PROTO*) ;; @@ -12314,7 +12244,7 @@ case "$d_ctime_r" in esac case "$ctime_r_proto" in ''|0) d_ctime_r=undef - ctime_r_proto=0 + ctime_r_proto=0 echo "Disabling ctime_r, cannot determine prototype." >&4 ;; * ) case "$ctime_r_proto" in REENTRANT_PROTO*) ;; @@ -12339,37 +12269,6 @@ esac set cuserid d_cuserid eval $inlibc -: see if this is a limits.h system -set limits.h i_limits -eval $inhdr - -: See if number of significant digits in a double precision number is known -echo " " -$cat >dbl_dig.c < -#endif -#ifdef I_FLOAT -#include -#endif -#ifdef DBL_DIG -printf("Contains DBL_DIG"); -#endif -EOM -$cppstdin $cppflags $cppminus < dbl_dig.c >dbl_dig.E 2>/dev/null -if $contains 'DBL_DIG' dbl_dig.E >/dev/null 2>&1; then - echo "DBL_DIG found." >&4 - val="$define" -else - echo "DBL_DIG NOT found." >&4 - val="$undef" -fi -$rm -f dbl_dig.? -set d_dbl_dig -eval $setvar - : see if dbm.h is available : see if dbmclose exists set dbmclose d_dbmclose @@ -12542,14 +12441,10 @@ $cat >dirfd.c < #else #ifdef I_SYS_DIR -#ifdef hp9000s500 -#include /* may be wrong in the future */ -#else #include #endif #endif #endif -#endif int main() { DIR *dirp = opendir("."); if (dirfd(dirp) >= 0) @@ -12717,7 +12612,7 @@ case "$d_drand48_r" in esac case "$drand48_r_proto" in ''|0) d_drand48_r=undef - drand48_r_proto=0 + drand48_r_proto=0 echo "Disabling drand48_r, cannot determine prototype." >&4 ;; * ) case "$drand48_r_proto" in REENTRANT_PROTO*) ;; @@ -12747,6 +12642,34 @@ eval $hasproto set dup2 d_dup2 eval $inlibc +: see if dup3 exists +set dup3 d_dup3 +eval $inlibc + +: see if this is an xlocale.h system +set xlocale.h i_xlocale +eval $inhdr + +: see if newlocale exists +set newlocale d_newlocale +eval $inlibc + +: see if freelocale exists +set freelocale d_freelocale +eval $inlibc + +: see if uselocale exists +set uselocale d_uselocale +eval $inlibc + +: see if duplocale exists +set duplocale d_duplocale +eval $inlibc + +: see if querylocale exists +set querylocale d_querylocale +eval $inlibc + : see if eaccess exists set eaccess d_eaccess eval $inlibc @@ -12804,7 +12727,7 @@ case "$d_endgrent_r" in esac case "$endgrent_r_proto" in ''|0) d_endgrent_r=undef - endgrent_r_proto=0 + endgrent_r_proto=0 echo "Disabling endgrent_r, cannot determine prototype." >&4 ;; * ) case "$endgrent_r_proto" in REENTRANT_PROTO*) ;; @@ -12857,7 +12780,7 @@ case "$d_endhostent_r" in esac case "$endhostent_r_proto" in ''|0) d_endhostent_r=undef - endhostent_r_proto=0 + endhostent_r_proto=0 echo "Disabling endhostent_r, cannot determine prototype." >&4 ;; * ) case "$endhostent_r_proto" in REENTRANT_PROTO*) ;; @@ -12906,7 +12829,7 @@ case "$d_endnetent_r" in esac case "$endnetent_r_proto" in ''|0) d_endnetent_r=undef - endnetent_r_proto=0 + endnetent_r_proto=0 echo "Disabling endnetent_r, cannot determine prototype." >&4 ;; * ) case "$endnetent_r_proto" in REENTRANT_PROTO*) ;; @@ -12955,7 +12878,7 @@ case "$d_endprotoent_r" in esac case "$endprotoent_r_proto" in ''|0) d_endprotoent_r=undef - endprotoent_r_proto=0 + endprotoent_r_proto=0 echo "Disabling endprotoent_r, cannot determine prototype." >&4 ;; * ) case "$endprotoent_r_proto" in REENTRANT_PROTO*) ;; @@ -13092,7 +13015,7 @@ case "$d_endpwent_r" in esac case "$endpwent_r_proto" in ''|0) d_endpwent_r=undef - endpwent_r_proto=0 + endpwent_r_proto=0 echo "Disabling endpwent_r, cannot determine prototype." >&4 ;; * ) case "$endpwent_r_proto" in REENTRANT_PROTO*) ;; @@ -13141,7 +13064,7 @@ case "$d_endservent_r" in esac case "$endservent_r_proto" in ''|0) d_endservent_r=undef - endservent_r_proto=0 + endservent_r_proto=0 echo "Disabling endservent_r, cannot determine prototype." >&4 ;; * ) case "$endservent_r_proto" in REENTRANT_PROTO*) ;; @@ -13361,12 +13284,7 @@ extern int errno; #ifdef I_UNISTD #include #endif -#$i_string I_STRING -#ifdef I_STRING #include -#else -#include -#endif $signal_t blech(int x) { exit(3); } EOCP $cat >> try.c <<'EOCP' @@ -13732,7 +13650,7 @@ int main() { EOP set try if eval $compile && $to try.c; then - case `$run ./try` in + case `$run ./try` in Pass_changed) echo "Increasing ptr in your stdio decreases cnt by the same amount. Good." >&4 d_stdio_ptr_lval_sets_cnt="$define" ;; @@ -13806,8 +13724,6 @@ esac set d_faststdio eval $setvar - - : see if fchdir exists set fchdir d_fchdir eval $inlibc @@ -14033,17 +13949,10 @@ eval $inlibc set fp_class d_fp_class eval $inlibc -: see if this is a math.h system -set math.h i_math -eval $inhdr - : check for fpclassify echo "Checking to see if you have fpclassify..." >&4 $cat >try.c < -#endif int main() { return fpclassify(1.0) == FP_NORMAL ? 0 : 1; } EOCP set try @@ -14108,30 +14017,6 @@ $rm_try set d_fpos64_t eval $setvar -: see if this is an xlocale.h system -set xlocale.h i_xlocale -eval $inhdr - -: see if newlocale exists -set newlocale d_newlocale -eval $inlibc - -: see if freelocale exists -set freelocale d_freelocale -eval $inlibc - -: see if uselocale exists -set uselocale d_uselocale -eval $inlibc - -: see if duplocale exists -set duplocale d_duplocale -eval $inlibc - -: see if querylocale exists -set querylocale d_querylocale -eval $inlibc - : see if frexpl exists set frexpl d_frexpl eval $inlibc @@ -14177,7 +14062,6 @@ eval $inlibc set fstatvfs d_fstatvfs eval $inlibc - : see if fsync exists set fsync d_fsync eval $inlibc @@ -14366,7 +14250,7 @@ case "$d_getgrent_r" in esac case "$getgrent_r_proto" in ''|0) d_getgrent_r=undef - getgrent_r_proto=0 + getgrent_r_proto=0 echo "Disabling getgrent_r, cannot determine prototype." >&4 ;; * ) case "$getgrent_r_proto" in REENTRANT_PROTO*) ;; @@ -14419,7 +14303,7 @@ case "$d_getgrgid_r" in esac case "$getgrgid_r_proto" in ''|0) d_getgrgid_r=undef - getgrgid_r_proto=0 + getgrgid_r_proto=0 echo "Disabling getgrgid_r, cannot determine prototype." >&4 ;; * ) case "$getgrgid_r_proto" in REENTRANT_PROTO*) ;; @@ -14476,7 +14360,7 @@ case "$d_getgrnam_r" in esac case "$getgrnam_r_proto" in ''|0) d_getgrnam_r=undef - getgrnam_r_proto=0 + getgrnam_r_proto=0 echo "Disabling getgrnam_r, cannot determine prototype." >&4 ;; * ) case "$getgrnam_r_proto" in REENTRANT_PROTO*) ;; @@ -14654,7 +14538,7 @@ case "$d_gethostbyaddr_r" in esac case "$gethostbyaddr_r_proto" in ''|0) d_gethostbyaddr_r=undef - gethostbyaddr_r_proto=0 + gethostbyaddr_r_proto=0 echo "Disabling gethostbyaddr_r, cannot determine prototype." >&4 ;; * ) case "$gethostbyaddr_r_proto" in REENTRANT_PROTO*) ;; @@ -14703,7 +14587,7 @@ case "$d_gethostbyname_r" in esac case "$gethostbyname_r_proto" in ''|0) d_gethostbyname_r=undef - gethostbyname_r_proto=0 + gethostbyname_r_proto=0 echo "Disabling gethostbyname_r, cannot determine prototype." >&4 ;; * ) case "$gethostbyname_r_proto" in REENTRANT_PROTO*) ;; @@ -14764,7 +14648,7 @@ case "$d_gethostent_r" in esac case "$gethostent_r_proto" in ''|0) d_gethostent_r=undef - gethostent_r_proto=0 + gethostent_r_proto=0 echo "Disabling gethostent_r, cannot determine prototype." >&4 ;; * ) case "$gethostent_r_proto" in REENTRANT_PROTO*) ;; @@ -14830,7 +14714,7 @@ case "$d_getlogin_r" in esac case "$getlogin_r_proto" in ''|0) d_getlogin_r=undef - getlogin_r_proto=0 + getlogin_r_proto=0 echo "Disabling getlogin_r, cannot determine prototype." >&4 ;; * ) case "$getlogin_r_proto" in REENTRANT_PROTO*) ;; @@ -14923,7 +14807,7 @@ case "$d_getnetbyaddr_r" in esac case "$getnetbyaddr_r_proto" in ''|0) d_getnetbyaddr_r=undef - getnetbyaddr_r_proto=0 + getnetbyaddr_r_proto=0 echo "Disabling getnetbyaddr_r, cannot determine prototype." >&4 ;; * ) case "$getnetbyaddr_r_proto" in REENTRANT_PROTO*) ;; @@ -14976,7 +14860,7 @@ case "$d_getnetbyname_r" in esac case "$getnetbyname_r_proto" in ''|0) d_getnetbyname_r=undef - getnetbyname_r_proto=0 + getnetbyname_r_proto=0 echo "Disabling getnetbyname_r, cannot determine prototype." >&4 ;; * ) case "$getnetbyname_r_proto" in REENTRANT_PROTO*) ;; @@ -15037,7 +14921,7 @@ case "$d_getnetent_r" in esac case "$getnetent_r_proto" in ''|0) d_getnetent_r=undef - getnetent_r_proto=0 + getnetent_r_proto=0 echo "Disabling getnetent_r, cannot determine prototype." >&4 ;; * ) case "$getnetent_r_proto" in REENTRANT_PROTO*) ;; @@ -15125,7 +15009,7 @@ case "$d_getprotobyname_r" in esac case "$getprotobyname_r_proto" in ''|0) d_getprotobyname_r=undef - getprotobyname_r_proto=0 + getprotobyname_r_proto=0 echo "Disabling getprotobyname_r, cannot determine prototype." >&4 ;; * ) case "$getprotobyname_r_proto" in REENTRANT_PROTO*) ;; @@ -15174,7 +15058,7 @@ case "$d_getprotobynumber_r" in esac case "$getprotobynumber_r_proto" in ''|0) d_getprotobynumber_r=undef - getprotobynumber_r_proto=0 + getprotobynumber_r_proto=0 echo "Disabling getprotobynumber_r, cannot determine prototype." >&4 ;; * ) case "$getprotobynumber_r_proto" in REENTRANT_PROTO*) ;; @@ -15227,7 +15111,7 @@ case "$d_getprotoent_r" in esac case "$getprotoent_r_proto" in ''|0) d_getprotoent_r=undef - getprotoent_r_proto=0 + getprotoent_r_proto=0 echo "Disabling getprotoent_r, cannot determine prototype." >&4 ;; * ) case "$getprotoent_r_proto" in REENTRANT_PROTO*) ;; @@ -15301,7 +15185,7 @@ case "$d_getpwent_r" in esac case "$getpwent_r_proto" in ''|0) d_getpwent_r=undef - getpwent_r_proto=0 + getpwent_r_proto=0 echo "Disabling getpwent_r, cannot determine prototype." >&4 ;; * ) case "$getpwent_r_proto" in REENTRANT_PROTO*) ;; @@ -15354,7 +15238,7 @@ case "$d_getpwnam_r" in esac case "$getpwnam_r_proto" in ''|0) d_getpwnam_r=undef - getpwnam_r_proto=0 + getpwnam_r_proto=0 echo "Disabling getpwnam_r, cannot determine prototype." >&4 ;; * ) case "$getpwnam_r_proto" in REENTRANT_PROTO*) ;; @@ -15407,7 +15291,7 @@ case "$d_getpwuid_r" in esac case "$getpwuid_r_proto" in ''|0) d_getpwuid_r=undef - getpwuid_r_proto=0 + getpwuid_r_proto=0 echo "Disabling getpwuid_r, cannot determine prototype." >&4 ;; * ) case "$getpwuid_r_proto" in REENTRANT_PROTO*) ;; @@ -15470,7 +15354,7 @@ case "$d_getservbyname_r" in esac case "$getservbyname_r_proto" in ''|0) d_getservbyname_r=undef - getservbyname_r_proto=0 + getservbyname_r_proto=0 echo "Disabling getservbyname_r, cannot determine prototype." >&4 ;; * ) case "$getservbyname_r_proto" in REENTRANT_PROTO*) ;; @@ -15519,7 +15403,7 @@ case "$d_getservbyport_r" in esac case "$getservbyport_r_proto" in ''|0) d_getservbyport_r=undef - getservbyport_r_proto=0 + getservbyport_r_proto=0 echo "Disabling getservbyport_r, cannot determine prototype." >&4 ;; * ) case "$getservbyport_r_proto" in REENTRANT_PROTO*) ;; @@ -15572,7 +15456,7 @@ case "$d_getservent_r" in esac case "$getservent_r_proto" in ''|0) d_getservent_r=undef - getservent_r_proto=0 + getservent_r_proto=0 echo "Disabling getservent_r, cannot determine prototype." >&4 ;; * ) case "$getservent_r_proto" in REENTRANT_PROTO*) ;; @@ -15630,7 +15514,7 @@ case "$d_getspnam_r" in esac case "$getspnam_r_proto" in ''|0) d_getspnam_r=undef - getspnam_r_proto=0 + getspnam_r_proto=0 echo "Disabling getspnam_r, cannot determine prototype." >&4 ;; * ) case "$getspnam_r_proto" in REENTRANT_PROTO*) ;; @@ -15694,7 +15578,7 @@ case "$d_gmtime_r" in esac case "$gmtime_r_proto" in ''|0) d_gmtime_r=undef - gmtime_r_proto=0 + gmtime_r_proto=0 echo "Disabling gmtime_r, cannot determine prototype." >&4 ;; * ) case "$gmtime_r_proto" in REENTRANT_PROTO*) ;; @@ -15777,39 +15661,6 @@ eval $inlibc set ilogbl d_ilogbl eval $inlibc -: index or strchr -echo " " -if set index val -f; eval $csym; $val; then - if set strchr val -f d_strchr; eval $csym; $val; then - if $contains strchr "$strings" >/dev/null 2>&1 ; then - val="$define" - vali="$undef" - echo "strchr() found." >&4 - else - val="$undef" - vali="$define" - echo "index() found." >&4 - fi - else - val="$undef" - vali="$define" - echo "index() found." >&4 - fi -else - if set strchr val -f d_strchr; eval $csym; $val; then - val="$define" - vali="$undef" - echo "strchr() found." >&4 - else - echo "No index() or strchr() found!" >&4 - val="$undef" - vali="$undef" - fi -fi -set d_strchr; eval $setvar -val="$vali" -set d_index; eval $setvar - : check whether inet_aton exists set inet_aton d_inetaton eval $inlibc @@ -15878,10 +15729,7 @@ $rm -f isblank* : check for isfinite echo "Checking to see if you have isfinite..." >&4 $cat >try.c < -#endif int main() { return isfinite(0.0); } EOCP set try @@ -15903,10 +15751,7 @@ eval $inlibc : check for isinf echo "Checking to see if you have isinf..." >&4 $cat >try.c < -#endif int main() { return isinf(0.0); } EOCP set try @@ -15928,10 +15773,7 @@ eval $inlibc : check for isless echo "Checking to see if you have isless..." >&4 $cat >try.c < -#endif int main() { return isless(0.0); } EOCP set try @@ -15949,10 +15791,7 @@ eval $setvar : check for isnan echo "Checking to see if you have isnan..." >&4 $cat >try.c < -#endif int main() { return isnan(0.0); } EOCP set try @@ -15974,10 +15813,7 @@ eval $inlibc : check for isnormal echo "Checking to see if you have isnormal..." >&4 $cat >try.c < -#endif int main() { return isnormal(0.0); } EOCP set try @@ -16064,14 +15900,8 @@ eval $setvar : See if number of significant digits in a double precision number is known echo " " $cat >ldbl_dig.c < -#endif -#ifdef I_FLOAT #include -#endif #ifdef LDBL_DIG printf("Contains LDBL_DIG"); #endif @@ -16098,11 +15928,9 @@ eval $inlibc : check to see if math.h defines _LIB_VERSION d_libm_lib_version="$undef" -case $i_math in - $define) - echo " " - echo "Checking to see if your libm supports _LIB_VERSION..." >&4 - $cat >try.c <&4 +$cat >try.c < #include int main (int argc, char *argv[]) @@ -16111,18 +15939,15 @@ int main (int argc, char *argv[]) return (0); } /* main */ EOCP - set try - if eval $compile; then - foo=`$run ./try` - echo "Yes, it does ($foo)" >&4 - d_libm_lib_version="$define" - else - echo "No, it does not (probably harmless)" >&4 - fi - $rm_try - ;; - - esac +set try +if eval $compile; then + foo=`$run ./try` + echo "Yes, it does ($foo)" >&4 + d_libm_lib_version="$define" +else + echo "No, it does not (probably harmless)" >&4 + fi +$rm_try : see if link exists set link d_link @@ -16172,7 +15997,7 @@ case "$d_localtime_r" in esac case "$localtime_r_proto" in ''|0) d_localtime_r=undef - localtime_r_proto=0 + localtime_r_proto=0 echo "Disabling localtime_r, cannot determine prototype." >&4 ;; * ) case "$localtime_r_proto" in REENTRANT_PROTO*) ;; @@ -16204,7 +16029,6 @@ REENTRANT_PROTO*) #$i_unistd I_UNISTD #$i_time I_TIME #$i_stdlib I_STDLIB -#$i_string I_STRING #$i_malloc I_MALLOC #ifdef I_SYS_TYPES # include @@ -16218,11 +16042,7 @@ REENTRANT_PROTO*) #ifdef I_STDLIB #include #endif -#ifdef I_STRING -# include -#else -# include -#endif +#include #ifdef I_MALLOC # include #endif @@ -16341,12 +16161,46 @@ set mbtowc d_mbtowc eval $inlibc : see if memmem exists -set memmem d_memmem -eval $inlibc +: We need both a prototype in string.h and the symbol in libc. +echo " " +d_memmem_proto='' +xx1="#$d_gnulibc HAS_GNULIBC" +xx2='#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)' +xx3='# define _GNU_SOURCE' +xx4='#endif' +set d_memmem_proto memmem literal "$xx1" literal "$xx2" literal "$xx3" literal "$xx4" define string.h +eval $hasproto +case "$d_memmem_proto" in + define) # see if memmem exists + set memmem d_memmem + eval $inlibc + ;; + *) val=$undef + set d_memmem + eval $setvar + ;; +esac : see if memrchr exists -set memrchr d_memrchr -eval $inlibc +: We need both a prototype in string.h and the symbol in libc. +echo " " +d_memrchr_proto='' +xx1="#$d_gnulibc HAS_GNULIBC" +xx2='#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)' +xx3='# define _GNU_SOURCE' +xx4='#endif' +set d_memrchr_proto memrchr literal "$xx1" literal "$xx2" literal "$xx3" literal "$xx4" define string.h +eval $hasproto +case "$d_memrchr_proto" in + define) # see if memrchr exists + set memrchr d_memrchr + eval $inlibc + ;; + *) val=$undef + set d_memrchr + eval $setvar + ;; +esac : see if mkdir exists set mkdir d_mkdir @@ -16360,6 +16214,10 @@ eval $inlibc set mkfifo d_mkfifo eval $inlibc +: see if mkostemp exists +set mkostemp d_mkostemp +eval $inlibc + : see if mkstemp exists set mkstemp d_mkstemp eval $inlibc @@ -16372,7 +16230,7 @@ eval $inlibc set mktime d_mktime eval $inlibc -: see if this is a sys/mman.h system +: see if sys/mman.h has to be included set sys/mman.h i_sysmman eval $inhdr @@ -16397,8 +16255,6 @@ END ;; esac - - : see if sqrtl exists set sqrtl d_sqrtl eval $inlibc @@ -16417,7 +16273,7 @@ eval $inlibc : see if prototype for modfl is available echo " " -set d_modflproto modfl $i_math math.h +set d_modflproto modfl define math.h eval $hasproto if $test "$uselongdouble" = "$define"; then @@ -16528,7 +16384,6 @@ case "$d_msghdr_s" in *) echo "No, it doesn't." ;; esac - : see if msync exists set msync d_msync eval $inlibc @@ -16913,12 +16768,7 @@ $cat <try.c #ifdef I_STDLIB #include #endif -#$i_string I_STRING -#ifdef I_STRING -# include -#else -# include -#endif +#include #include #include #ifdef SIGFPE @@ -17108,6 +16958,10 @@ fi set pause d_pause eval $inlibc +: see if pipe2 exists +set pipe2 d_pipe2 +eval $inlibc + : see if poll exists set poll d_poll eval $inlibc @@ -17375,7 +17229,7 @@ case "$d_random_r" in esac case "$random_r_proto" in ''|0) d_random_r=undef - random_r_proto=0 + random_r_proto=0 echo "Disabling random_r, cannot determine prototype." >&4 ;; * ) case "$random_r_proto" in REENTRANT_PROTO*) ;; @@ -17430,7 +17284,7 @@ case "$d_readdir64_r" in esac case "$readdir64_r_proto" in ''|0) d_readdir64_r=undef - readdir64_r_proto=0 + readdir64_r_proto=0 echo "Disabling readdir64_r, cannot determine prototype." >&4 ;; * ) case "$readdir64_r_proto" in REENTRANT_PROTO*) ;; @@ -17475,7 +17329,7 @@ case "$d_readdir_r" in esac case "$readdir_r_proto" in ''|0) d_readdir_r=undef - readdir_r_proto=0 + readdir_r_proto=0 echo "Disabling readdir_r, cannot determine prototype." >&4 ;; * ) case "$readdir_r_proto" in REENTRANT_PROTO*) ;; @@ -17749,21 +17603,31 @@ END extern int errno; #endif int main() { - struct semid_ds arg; - int sem, st; - -#if defined(IPC_PRIVATE) && defined(S_IRWXU) && defined(S_IRWXG) && defined(S_IRWXO) && defined(IPC_CREAT) - sem = semget(IPC_PRIVATE, 1, S_IRWXU|S_IRWXG|S_IRWXO|IPC_CREAT); - if (sem > -1) { -# ifdef IPC_STAT - st = semctl(sem, 0, IPC_STAT, &arg); + union semun +#ifndef HAS_UNION_SEMUN + { + int val; + struct semid_ds *buf; + unsigned short *array; + } +#endif + arg; + struct semid_ds argbuf; + int sem, st; + +#if defined(IPC_PRIVATE) && defined(S_IRWXU) && defined(S_IRWXG) && defined(S_IRWXO) && defined(IPC_CREAT) + sem = semget(IPC_PRIVATE, 1, S_IRWXU|S_IRWXG|S_IRWXO|IPC_CREAT); + if (sem > -1) { + arg.buf = &argbuf; +# ifdef IPC_STAT + st = semctl(sem, 0, IPC_STAT, arg); if (st == 0) printf("semid_ds\n"); else # endif /* IPC_STAT */ printf("semctl IPC_STAT failed: errno = %d\n", errno); # ifdef IPC_RMID - if (semctl(sem, 0, IPC_RMID, &arg) != 0) + if (semctl(sem, 0, IPC_RMID, arg) != 0) # endif /* IPC_RMID */ printf("semctl IPC_RMID failed: errno = %d\n", errno); } else @@ -17847,7 +17711,7 @@ case "$d_setgrent_r" in esac case "$setgrent_r_proto" in ''|0) d_setgrent_r=undef - setgrent_r_proto=0 + setgrent_r_proto=0 echo "Disabling setgrent_r, cannot determine prototype." >&4 ;; * ) case "$setgrent_r_proto" in REENTRANT_PROTO*) ;; @@ -17896,7 +17760,7 @@ case "$d_sethostent_r" in esac case "$sethostent_r_proto" in ''|0) d_sethostent_r=undef - sethostent_r_proto=0 + sethostent_r_proto=0 echo "Disabling sethostent_r, cannot determine prototype." >&4 ;; * ) case "$sethostent_r_proto" in REENTRANT_PROTO*) ;; @@ -17925,14 +17789,188 @@ eval $inlibc set setlinebuf d_setlinebuf eval $inlibc -: see if setlocale exists -set setlocale d_setlocale -eval $inlibc - : see if locale.h is available set locale.h i_locale eval $inhdr +: see if this system has wctype.h +set wctype.h i_wctype +eval $inhdr + +: see if towupper exists +set towupper d_towupper +eval $inlibc + +: check for setlocale function and behavior +$cat <try.c < +#include +#$i_locale I_LOCALE +#ifdef I_LOCALE +# include +#endif +#$i_wctype I_WCTYPE +#ifdef I_WCTYPE +# include +#endif + +int main() { + const char * invalid_name = "\a"; /* This is really invalid! */ + int accepts_any_locale_name = 0; + int has_C_UTF8 = 0; + unsigned char bad_setlocale = 255; + + /* If LC_CTYPE isn't defined the compilation will fail, and locales will be + * disabled. It's hard to imagine an instance where meaningful locale + * handling could be done without LC_CTYPE */ + const char * name = setlocale(LC_CTYPE, "C"); + + if (name == NULL || strcmp(name, "C") != 0) { + exit(bad_setlocale); + } + + name = setlocale(LC_CTYPE, invalid_name); + if (name != NULL) { + + /* Let it pass if it accepts the name but gives back one of the C + * locales */ + if (strcmp(name, "C") != 0 && strcmp(name, "C.UTF-8") != 0) { + accepts_any_locale_name = 1; + } + } + + name = setlocale(LC_CTYPE, "C.UTF-8"); + if (name != NULL) { + unsigned char y_with_diaeresis = ('A' == 193) ? 0xDF : 0xFF; + +#$d_towupper HAS_TOWUPPER +#ifdef HAS_TOWUPPER + + /* We assume that if the machine doesn't have the C99 towupper, it + * doesn't have C.UTF-8, even if we successfully changed locales to + * include it. This seems safer even on platforms that didn't accept + * the really invalid name */ + + if (towupper(y_with_diaeresis) == 0x178) { + has_C_UTF8 = 1; + } + +#endif + + } + +#if 0 + + /* Currently unused code to determine if LC_ALL with disparate values uses + * category = value pairs or positional, and to determine the separator + * between the categories. We could add code so that if the separator were + * > '9', we subtract 10; similarly for 'Z' and 'z', and then just about + * every possible ASCII separator would fit in the 5 bits available in the + * exit code. This would not be true in EBCDIC. And then if LC_ALL is + * positional, we probably would want to know the order of the categories. + * Using a file between the C program and the shell script would really be + * require to do that */ +#ifdef LC_ALL + + unsigned char min_separator = ' ' - 1; + unsigned char separator = min_separator; + int uses_name_value_pair_names = 0; + + name = setlocale(LC_ALL, "C"); + if (name == NULL || strcmp(name, "C") != 0) { + exit(bad_setlocale); + } + + if (has_C_UTF8) { + char * pos; + + name = setlocale(LC_CTYPE, "C.UTF-8"); + if (name == NULL) { + exit(bad_setlocale); + } + name = setlocale(LC_ALL, NULL); + if (name == NULL) { + exit(bad_setlocale); + } + + pos = strstr(name, "LC_CTYPE" "=C.UTF-8"); + if (pos != NULL) { + uses_name_value_pair_names = 1; + if (pos == name) { + separator = name[sizeof("LC_CTYPE=C.UTF-8") - 1]; + } + else { + separator = *(pos - 1); + } + } + else { + pos = strstr(name, "C.UTF-8"); + if (pos == NULL) { + /* bad */ + } + else if (pos == name) { + separator = name[sizeof("C.UTF-8") - 1]; + } + else { + separator = *(pos - 1); + } + } + } + +#endif +#endif + + exit( 0 /* (separator - min_separator) << 3 + | uses_name_value_pair_names << 2 + */ + | has_C_UTF8 << 1 + | accepts_any_locale_name); + +} +EOCP +set try +if eval $compile; then + echo "Your system has setlocale()..." >&4 + $run ./try + case $? in + 0) echo "and it seems sane" >&4 + d_setlocale="$define" + d_setlocale_accepts_any_locale_name="$undef" + d_has_C_UTF8="false" + ;; + 1) echo "and it seems sane, but accepts any locale name as valid" >&4 + d_setlocale="$define" + d_setlocale_accepts_any_locale_name="$define" + d_has_C_UTF8="false" + ;; + 2) echo "and it seems sane" >&4 + d_setlocale="$define" + d_setlocale_accepts_any_locale_name="$undef" + d_has_C_UTF8="true" + ;; + 3) echo "and it seems sane, but accepts any locale name as valid" >&4 + d_setlocale="$define" + d_setlocale_accepts_any_locale_name="$define" + d_has_C_UTF8="true" + ;; + *) echo "but it doesn't seem to work, so we won't use it." >&4 + d_setlocale="$undef" + d_setlocale_accepts_any_locale_name="$undef" + d_has_C_UTF8="false" + ;; + esac +else + echo "your system does not have setlocale()" >&4 + d_setlocale="$undef" + d_setlocale_accepts_any_locale_name="$undef" + d_has_C_UTF8="false" +fi +$rm_try + : see if setlocale_r exists set setlocale_r d_setlocale_r eval $inlibc @@ -17953,7 +17991,7 @@ case "$d_setlocale_r" in esac case "$setlocale_r_proto" in ''|0) d_setlocale_r=undef - setlocale_r_proto=0 + setlocale_r_proto=0 echo "Disabling setlocale_r, cannot determine prototype." >&4 ;; * ) case "$setlocale_r_proto" in REENTRANT_PROTO*) ;; @@ -18002,7 +18040,7 @@ case "$d_setnetent_r" in esac case "$setnetent_r_proto" in ''|0) d_setnetent_r=undef - setnetent_r_proto=0 + setnetent_r_proto=0 echo "Disabling setnetent_r, cannot determine prototype." >&4 ;; * ) case "$setnetent_r_proto" in REENTRANT_PROTO*) ;; @@ -18067,7 +18105,7 @@ case "$d_setprotoent_r" in esac case "$setprotoent_r_proto" in ''|0) d_setprotoent_r=undef - setprotoent_r_proto=0 + setprotoent_r_proto=0 echo "Disabling setprotoent_r, cannot determine prototype." >&4 ;; * ) case "$setprotoent_r_proto" in REENTRANT_PROTO*) ;; @@ -18116,7 +18154,7 @@ case "$d_setpwent_r" in esac case "$setpwent_r_proto" in ''|0) d_setpwent_r=undef - setpwent_r_proto=0 + setpwent_r_proto=0 echo "Disabling setpwent_r, cannot determine prototype." >&4 ;; * ) case "$setpwent_r_proto" in REENTRANT_PROTO*) ;; @@ -18185,7 +18223,7 @@ case "$d_setservent_r" in esac case "$setservent_r_proto" in ''|0) d_setservent_r=undef - setservent_r_proto=0 + setservent_r_proto=0 echo "Disabling setservent_r, cannot determine prototype." >&4 ;; * ) case "$setservent_r_proto" in REENTRANT_PROTO*) ;; @@ -18433,11 +18471,8 @@ eval $inhdr : see if signbit exists $echo $n "Checking to see if you have signbit() available to work on $nvtype... $c" >&4 $cat >try.c < -#endif +#include #ifdef I_SUNMATH /* Solaris special math library */ # include #endif @@ -18524,81 +18559,83 @@ set d_sigsetjmp eval $setvar $rm_try -: see if sockatmark exists -set sockatmark d_sockatmark +: see if snprintf exists +set snprintf d_snprintf eval $inlibc -: see if prototype for sockatmark is available -echo " " -set d_sockatmarkproto sockatmark $d_socket sys/socket.h -eval $hasproto - -: see if socks5_init exists -set socks5_init d_socks5_init +: see if vsnprintf exists +set vsnprintf d_vsnprintf eval $inlibc -: see if sprintf returns the length of the string in the buffer as per ANSI -$echo "Checking whether sprintf returns the length of the string..." >&4 -$cat <try.c +case "$d_snprintf-$d_vsnprintf" in +"$define-$define") + $cat <try.c <<'EOCP' +/* v?snprintf testing logic courtesy of Russ Allbery. + * According to C99: + * - if the buffer is too short it still must be \0-terminated + * - if the buffer is too short the potentially required length + * must be returned and not -1 + * - if the buffer is NULL the potentially required length + * must be returned and not -1 or core dump + */ #include -#$i_stdlib I_STDLIB -#ifdef I_STDLIB -#include -#endif -#$i_string I_STRING -#ifdef I_STRING -# include -#else -# include -#endif -#$i_math I_MATH -#ifdef I_MATH -#include -#endif +#include -char buffer[256]; +char buf[2]; -int check (size_t expect, int test) { - size_t got = strlen(buffer); - if (expect == got) - return 0; +int test (char *format, ...) +{ + va_list args; + int count; - printf("expected %ld, got %ld in test %d '%s'\n", (long) expect, (long) got, - test, buffer); - exit (test); + va_start (args, format); + count = vsnprintf (buf, sizeof buf, format, args); + va_end (args); + return count; } -int main(int argc, char **argv) { - int test = 0; +int main () +{ + return ((test ("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0' + && snprintf (NULL, 0, "%s", "abcd") == 4) ? 0 : 1); +} +EOCP + set try + if eval $compile; then + `$run ./try` + case "$?" in + 0) echo "Your snprintf() and vsnprintf() seem to be working okay." ;; + *) cat <&4 +Your snprintf() and snprintf() don't seem to be working okay. +EOM + d_snprintf="$undef" + d_vsnprintf="$undef" + ;; + esac + else + echo "(I can't seem to compile the test program--assuming they don't)" + d_snprintf="$undef" + d_vsnprintf="$undef" + fi + $rm_try + ;; +esac - check(sprintf(buffer, ""), ++test); - check(sprintf(buffer, "%s %s", "perl", "rules"), ++test); - check(sprintf(buffer, "I like %g", atan2(0,-1)), ++test); +: see if sockatmark exists +set sockatmark d_sockatmark +eval $inlibc - return 0; -} -EOP -set try +: see if prototype for sockatmark is available +echo " " +set d_sockatmarkproto sockatmark $d_socket sys/socket.h +eval $hasproto -if eval $compile; then - xxx="`$run ./try`" - case "$?" in - 0) cat >&4 <&4 <&4 - d_sprintf_returns_strlen="$undef" -fi -$rm_try +: see if socks5_init exists +set socks5_init d_socks5_init +eval $inlibc : see if srand48_r exists set srand48_r d_srand48_r @@ -18620,7 +18657,7 @@ case "$d_srand48_r" in esac case "$srand48_r_proto" in ''|0) d_srand48_r=undef - srand48_r_proto=0 + srand48_r_proto=0 echo "Disabling srand48_r, cannot determine prototype." >&4 ;; * ) case "$srand48_r_proto" in REENTRANT_PROTO*) ;; @@ -18661,7 +18698,7 @@ case "$d_srandom_r" in esac case "$srandom_r_proto" in ''|0) d_srandom_r=undef - srandom_r_proto=0 + srandom_r_proto=0 echo "Disabling srandom_r, cannot determine prototype." >&4 ;; * ) case "$srandom_r_proto" in REENTRANT_PROTO*) ;; @@ -18724,7 +18761,6 @@ case "$d_statfs_s" in *) echo "No, it doesn't." ;; esac - : see if struct statfs knows about f_flags case "$d_statfs_s" in define) @@ -18854,7 +18890,7 @@ $cat >&4 <try.c <try.c < int main() { if (&STDIO_STREAM_ARRAY[fileno(stdin)] == stdin) @@ -18865,7 +18901,7 @@ EOCP do set try -DSTDIO_STREAM_ARRAY=$s if eval $compile; then - case "`$run ./try`" in + case "`$run ./try`" in yes) stdio_stream_array=$s; break ;; esac fi @@ -18889,45 +18925,6 @@ esac set strcoll d_strcoll eval $inlibc -: see if strerror and/or sys_errlist[] exist -echo " " -if test "X$d_strerror" = X -o "X$d_syserrlst" = X; then - if set strerror val -f d_strerror; eval $csym; $val; then - echo 'strerror() found.' >&4 - d_strerror="$define" - d_strerrm='strerror(e)' - if set sys_errlist val -a d_syserrlst; eval $csym; $val; then - echo "(You also have sys_errlist[], so we could roll our own strerror.)" - d_syserrlst="$define" - else - echo "(Since you don't have sys_errlist[], strerror() is welcome.)" - d_syserrlst="$undef" - fi - elif xxx=`./findhdr string.h`; test "$xxx" || xxx=`./findhdr strings.h`; \ - $contains '#[ ]*define.*strerror' "$xxx" >/dev/null 2>&1; then - echo 'strerror() found in string header.' >&4 - d_strerror="$define" - d_strerrm='strerror(e)' - if set sys_errlist val -a d_syserrlst; eval $csym; $val; then - echo "(Most probably, strerror() uses sys_errlist[] for descriptions.)" - d_syserrlst="$define" - else - echo "(You don't appear to have any sys_errlist[], how can this be?)" - d_syserrlst="$undef" - fi - elif set sys_errlist val -a d_syserrlst; eval $csym; $val; then - echo "strerror() not found, but you have sys_errlist[] so we'll use that." >&4 - d_strerror="$undef" - d_syserrlst="$define" - d_strerrm='((e)<0||(e)>=sys_nerr?"unknown":sys_errlist[e])' - else - echo 'strerror() and sys_errlist[] NOT found.' >&4 - d_strerror="$undef" - d_syserrlst="$undef" - d_strerrm='"unknown"' - fi -fi - : see if strerror_l exists set strerror_l d_strerror_l eval $inlibc @@ -18937,7 +18934,7 @@ set strerror_r d_strerror_r eval $inlibc case "$d_strerror_r" in "$define") - hdrs="$i_systypes sys/types.h define stdio.h $i_string string.h" + hdrs="$i_systypes sys/types.h define stdio.h define string.h" case "$d_strerror_r_proto:$usethreads" in ":define") d_strerror_r_proto=define set d_strerror_r_proto strerror_r $hdrs @@ -18960,7 +18957,7 @@ case "$d_strerror_r" in esac case "$strerror_r_proto" in ''|0) d_strerror_r=undef - strerror_r_proto=0 + strerror_r_proto=0 echo "Disabling strerror_r, cannot determine prototype." >&4 ;; * ) case "$strerror_r_proto" in REENTRANT_PROTO*) ;; @@ -18986,12 +18983,46 @@ set strftime d_strftime eval $inlibc : see if strlcat exists -set strlcat d_strlcat -eval $inlibc +: We need both a prototype in string.h and the symbol in libc. +echo " " +d_strlcat_proto='' +xx1="#$d_gnulibc HAS_GNULIBC" +xx2='#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)' +xx3='# define _GNU_SOURCE' +xx4='#endif' +set d_strlcat_proto strlcat literal "$xx1" literal "$xx2" literal "$xx3" literal "$xx4" define string.h +eval $hasproto +case "$d_strlcat_proto" in + define) # see if strlcat exists + set strlcat d_strlcat + eval $inlibc + ;; + *) val=$undef + set d_strlcat + eval $setvar + ;; +esac : see if strlcpy exists -set strlcpy d_strlcpy -eval $inlibc +: We need both a prototype in string.h and the symbol in libc. +echo " " +d_strlcpy_proto='' +xx1="#$d_gnulibc HAS_GNULIBC" +xx2='#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)' +xx3='# define _GNU_SOURCE' +xx4='#endif' +set d_strlcpy_proto strlcpy literal "$xx1" literal "$xx2" literal "$xx3" literal "$xx4" define string.h +eval $hasproto +case "$d_strlcpy_proto" in + define) # see if strlcpy exists + set strlcpy d_strlcpy + eval $inlibc + ;; + *) val=$undef + set d_strlcpy + eval $setvar + ;; +esac : see if strnlen exists set strnlen d_strnlen @@ -19001,6 +19032,10 @@ eval $inlibc set strtod d_strtod eval $inlibc +: see if strtod_l exists +set strtod_l d_strtod_l +eval $inlibc + : see if strtol exists set strtol d_strtol eval $inlibc @@ -19110,7 +19145,7 @@ EOCP check("-1", 18446744073709551615UL, 0); check("-18446744073709551614", 2, 0); check("-18446744073709551615", 1, 0); - check("-18446744073709551616", 18446744073709551615UL, ERANGE); + check("-18446744073709551616", 18446744073709551615UL, ERANGE); check("-18446744073709551617", 18446744073709551615UL, ERANGE); #endif EOCP @@ -19123,7 +19158,7 @@ EOCP check("-1", 4294967295UL, 0); check("-4294967294", 2, 0); check("-4294967295", 1, 0); - check("-4294967296", 4294967295UL, ERANGE); + check("-4294967296", 4294967295UL, ERANGE); check("-4294967297", 4294967295UL, ERANGE); #endif EOCP @@ -19189,7 +19224,7 @@ int main() { check("-1", 18446744073709551615ULL, 0); check("-18446744073709551614", 2LL, 0); check("-18446744073709551615", 1LL, 0); - check("-18446744073709551616", 18446744073709551615ULL, ERANGE); + check("-18446744073709551616", 18446744073709551615ULL, ERANGE); check("-18446744073709551617", 18446744073709551615ULL, ERANGE); #endif if (!bad) @@ -19243,7 +19278,7 @@ int main() { check("-1", 18446744073709551615ULL, 0); check("-18446744073709551614", 2LL, 0); check("-18446744073709551615", 1LL, 0); - check("-18446744073709551616", 18446744073709551615ULL, ERANGE); + check("-18446744073709551616", 18446744073709551615ULL, ERANGE); check("-18446744073709551617", 18446744073709551615ULL, ERANGE); #endif if (!bad) @@ -19289,6 +19324,18 @@ eval $hasproto set sysconf d_sysconf eval $inlibc +: see if sys_errlist[] exists +echo " " +if test "X$d_syserrlst" = X; then + if set sys_errlist val -a d_syserrlst; eval $csym; $val; then + echo "You have sys_errlist[], so we could roll our own strerror." + d_syserrlst="$define" + else + echo "You don't have sys_errlist[], so strerror() is welcome." + d_syserrlst="$undef" + fi +fi + : see if system exists set system d_system eval $inlibc @@ -19320,10 +19367,7 @@ $cat >try.c < #endif -#$i_string I_STRING -#ifdef I_STRING -# include -#endif +#include #$i_langinfo I_LANGINFO #ifdef I_LANGINFO # include @@ -19344,52 +19388,52 @@ thread_start(void * arg) } int main() { - char * main_buffer; - char save_main_buffer[1000]; - pthread_t subthread; - pthread_attr_t attr; - - main_buffer = nl_langinfo_l(CODESET, newlocale(LC_ALL_MASK, "C", 0)); - - /* If too large for our generous allowance, just assume we don't have - * it. */ - if (strlen(main_buffer) >= sizeof(save_main_buffer)) { - exit(1); - } + char * main_buffer; + char save_main_buffer[1000]; + pthread_t subthread; + pthread_attr_t attr; - strcpy(save_main_buffer, main_buffer); + main_buffer = nl_langinfo_l(CODESET, newlocale(LC_ALL_MASK, "C", 0)); - if (pthread_attr_init(&attr) != 0) { - exit(1); - } + /* If too large for our generous allowance, just assume we don't have + * it. */ + if (strlen(main_buffer) >= sizeof(save_main_buffer)) { + exit(1); + } - if (pthread_create(&subthread, &attr, thread_start, NULL) != 0) { - exit(1); - } + strcpy(save_main_buffer, main_buffer); - if (pthread_join(subthread, NULL) != 0) { - exit(1); - } + if (pthread_attr_init(&attr) != 0) { + exit(1); + } + + if (pthread_create(&subthread, &attr, thread_start, NULL) != 0) { + exit(1); + } - exit(! (strcmp(main_buffer, save_main_buffer) == 0)); + if (pthread_join(subthread, NULL) != 0) { + exit(1); + } + + exit(! (strcmp(main_buffer, save_main_buffer) == 0)); } EOCP case "$usethreads" in define) - set try - if eval $compile; then - echo "Your system has nl_langinfo_l()..." >&4 - if $run ./try; then - echo "and it is thread-safe (just as I'd hoped)." >&4 - d_thread_safe_nl_langinfo_l="$define" - echo "$d_thread_safe_nl_langinfo_l" >&4 - else - echo "but it isn't thread-safe, so we won't use it." >&4 - fi - else - echo "your system does not have nl_langinfo_l()" >&4 - fi - ;; + set try + if eval $compile; then + echo "Your system has nl_langinfo_l()..." >&4 + if $run ./try; then + echo "and it is thread-safe (just as I'd hoped)." >&4 + d_thread_safe_nl_langinfo_l="$define" + echo "$d_thread_safe_nl_langinfo_l" >&4 + else + echo "but it isn't thread-safe, so we won't use it." >&4 + fi + else + echo "your system does not have nl_langinfo_l()" >&4 + fi + ;; *) echo "Since threads aren't selected, we won't bother looking for nl_langinfo_l()" >&4 esac if test X"$d_thread_safe_nl_langinfo_l" = X; then @@ -19461,7 +19505,7 @@ case "$d_tmpnam_r" in esac case "$tmpnam_r_proto" in ''|0) d_tmpnam_r=undef - tmpnam_r_proto=0 + tmpnam_r_proto=0 echo "Disabling tmpnam_r, cannot determine prototype." >&4 ;; * ) case "$tmpnam_r_proto" in REENTRANT_PROTO*) ;; @@ -19482,6 +19526,10 @@ case "$d_tmpnam_r" in ;; esac +: see if towlower exists +set towlower d_towlower +eval $inlibc + : see if trunc exists set trunc d_trunc eval $inlibc @@ -19518,7 +19566,7 @@ case "$d_ttyname_r" in esac case "$ttyname_r_proto" in ''|0) d_ttyname_r=undef - ttyname_r_proto=0 + ttyname_r_proto=0 echo "Disabling ttyname_r, cannot determine prototype." >&4 ;; * ) case "$ttyname_r_proto" in REENTRANT_PROTO*) ;; @@ -19799,14 +19847,10 @@ case "$d_closedir" in #include #else #ifdef I_SYS_DIR -#ifdef hp9000s500 -#include /* may be wrong in the future */ -#else #include #endif #endif #endif -#endif int main() { return closedir(opendir(".")); } EOM set try @@ -20042,10 +20086,6 @@ $define) echo " " echo "Checking Berkeley DB version ..." >&4 $cat >try.c < #include #$i_stdlib I_STDLIB @@ -20136,16 +20176,13 @@ define) echo " " echo "Checking return type needed for hash for Berkeley DB ..." >&4 $cat >try.c < #include #ifndef DB_VERSION_MAJOR u_int32_t hash_cb (const void* ptr, size_t size) { + return 0; } HASHINFO info; int main() @@ -20179,16 +20216,13 @@ define) echo " " echo "Checking return type needed for prefix for Berkeley DB ..." >&4 cat >try.c < #include #ifndef DB_VERSION_MAJOR size_t prefix_cb (const DBT *key1, const DBT *key2) { + return 0; } BTREEINFO info; int main() @@ -20255,14 +20289,8 @@ $cat >try.c < -#endif -#ifdef I_STRING -# include -#endif +#include #include /* Note that whether the sign bit is on or off * for NaN depends on the CPU/FPU, and possibly @@ -20451,11 +20479,8 @@ $rm_try : Check the length of the double mantissa $echo "Checking how many mantissa bits your doubles have..." >&4 $cat >try.c < -#endif +#include #ifdef I_SUNMATH # include #endif @@ -20481,11 +20506,8 @@ $rm_try : Check the length of the longdouble mantissa $echo "Checking how many mantissa bits your long doubles have..." >&4 $cat >try.c < -#endif +#include #ifdef I_SUNMATH # include #endif @@ -20746,7 +20768,7 @@ if $test "X$fflushNULL" = X -o "X$fflushall" = X; then fi : check for fflush NULL behavior case "$fflushNULL" in -'') set try -DTRY_FFLUSH_NULL $output +'') set try -DTRY_FFLUSH_NULL $output if eval $compile; then $run ./try 2>/dev/null code="$?" @@ -20880,7 +20902,7 @@ Good, at least fflush(stdin) seems to behave okay when stdin is a pipe. EOM : now check for fflushall behaviour case "$fflushall" in - '') set try -DTRY_FFLUSH_ALL $output + '') set try -DTRY_FFLUSH_ALL $output if eval $compile; then $cat >&4 <&4 fi - : Check if GID is signed echo " " case "$gidtype" in @@ -21050,7 +21071,6 @@ else echo "(I can't compile the test program--guessing unsigned.)" >&4 fi - : Check 64bit sizes echo " " @@ -21073,7 +21093,7 @@ EOCP case "$yyy" in 12345678901) sPRId64='"d"'; sPRIi64='"i"'; sPRIu64='"u"'; - sPRIo64='"o"'; sPRIx64='"x"'; sPRIXU64='"X"'; + sPRIo64='"o"'; sPRIx64='"x"'; sPRIXU64='"X"'; echo "We will use %d." ;; esac @@ -21095,7 +21115,7 @@ EOCP case "$yyy" in 12345678901) sPRId64='"ld"'; sPRIi64='"li"'; sPRIu64='"lu"'; - sPRIo64='"lo"'; sPRIx64='"lx"'; sPRIXU64='"lX"'; + sPRIo64='"lo"'; sPRIx64='"lx"'; sPRIXU64='"lX"'; echo "We will use %ld." ;; esac @@ -21118,7 +21138,7 @@ EOCP case "$yyy" in 12345678901) sPRId64=PRId64; sPRIi64=PRIi64; sPRIu64=PRIu64; - sPRIo64=PRIo64; sPRIx64=PRIx64; sPRIXU64=PRIXU64; + sPRIo64=PRIo64; sPRIx64=PRIx64; sPRIXU64=PRIXU64; echo "We will use the C9X style." ;; esac @@ -21140,7 +21160,7 @@ EOCP case "$yyy" in 12345678901) sPRId64='"Ld"'; sPRIi64='"Li"'; sPRIu64='"Lu"'; - sPRIo64='"Lo"'; sPRIx64='"Lx"'; sPRIXU64='"LX"'; + sPRIo64='"Lo"'; sPRIx64='"Lx"'; sPRIXU64='"LX"'; echo "We will use %Ld." ;; esac @@ -21162,7 +21182,7 @@ EOCP case "$yyy" in 12345678901) sPRId64='"lld"'; sPRIi64='"lli"'; sPRIu64='"llu"'; - sPRIo64='"llo"'; sPRIx64='"llx"'; sPRIXU64='"llX"'; + sPRIo64='"llo"'; sPRIx64='"llx"'; sPRIXU64='"llX"'; echo "We will use the %lld style." ;; esac @@ -21184,7 +21204,7 @@ EOCP case "$yyy" in 12345678901) sPRId64='"qd"'; sPRIi64='"qi"'; sPRIu64='"qu"'; - sPRIo64='"qo"'; sPRIx64='"qx"'; sPRIXU64='"qX"'; + sPRIo64='"qo"'; sPRIx64='"qx"'; sPRIXU64='"qX"'; echo "We will use %qd." ;; esac @@ -21641,25 +21661,15 @@ else fi $rm -f foo* bar* -: see if this is a values.h system -set values.h i_values -eval $inhdr - : Check the max offset that gmtime and localtime accept echo "Checking max offsets that gmtime () accepts" -case $i_values in - define) yyy="#include " ;; - *) yyy="" ;; - esac - case "$sGMTIME_min/$sGMTIME_max" in 0/0|/) $cat >try.c < #include #include -$yyy int i; struct tm *tmp; @@ -21738,7 +21748,6 @@ case "$sLOCALTIME_min/$sLOCALTIME_max" in #include #include #include -$yyy int i; struct tm *tmp; @@ -22207,17 +22216,17 @@ case "$doinit" in yes) echo "Generating a list of signal names and numbers..." >&4 . ./signal_cmd - sig_count=`$awk '/^NSIG/ { printf "%d", $2 }' signal.lst` - sig_name=`$awk 'BEGIN { printf "ZERO " } - !/^NSIG/ { printf "%s ", $1 }' signal.lst` - sig_num=`$awk 'BEGIN { printf "0 " } - !/^NSIG/ { printf "%d ", $2 }' signal.lst` - sig_name_init=`$awk 'BEGIN { printf "\"ZERO\", " } - !/^NSIG/ { printf "\"%s\", ", $1 } - END { printf "0\n" }' signal.lst` - sig_num_init=`$awk 'BEGIN { printf "0, " } - !/^NSIG/ { printf "%d, ", $2} - END { printf "0\n"}' signal.lst` + sig_count=`$awk '/^NSIG/ { printf "%d", $2 }' signal.lst` + sig_name=`$awk 'BEGIN { printf "ZERO " } + !/^NSIG/ { printf "%s ", $1 }' signal.lst` + sig_num=`$awk 'BEGIN { printf "0 " } + !/^NSIG/ { printf "%d ", $2 }' signal.lst` + sig_name_init=`$awk 'BEGIN { printf "\"ZERO\", " } + !/^NSIG/ { printf "\"%s\", ", $1 } + END { printf "0\n" }' signal.lst` + sig_num_init=`$awk 'BEGIN { printf "0, " } + !/^NSIG/ { printf "%d, ", $2} + END { printf "0\n"}' signal.lst` ;; esac echo "The following $sig_count signals are available:" @@ -22276,7 +22285,6 @@ else echo "(I can't compile the test program--guessing $sizesize.)" >&4 fi - : check for socklen_t echo " " echo "Checking to see if you have socklen_t..." >&4 @@ -22549,7 +22557,6 @@ else echo "(I can't compile the test program--guessing unsigned.)" >&4 fi - : Check format string for UID echo " " $echo "Checking the format string to be used for uids..." >&4 @@ -22845,10 +22852,6 @@ case "$yacc" in ;; esac -: see if this is a assert.h system -set assert.h i_assert -eval $inhdr - : see if this is a bfd.h system set bfd.h i_bfd eval $inhdr @@ -22908,30 +22911,6 @@ else i_machcthr="$undef" fi -: see if memory.h is available. -val='' -set memory.h val -eval $inhdr - -: See if it conflicts with string.h -case "$val" in -$define) - case "$strings" in - '') ;; - *) - $cppstdin $cppflags $cppminus < $strings > mem.h - if $contains 'memcpy' mem.h >/dev/null 2>&1; then - echo " " - echo "We won't be including ." - val="$undef" - fi - $rm -f mem.h - ;; - esac -esac -set i_memory -eval $setvar - : see if this is a mntent.h system set mntent.h i_mntent eval $inhdr @@ -22996,7 +22975,7 @@ FAVOR_BSD FILE_OFFSET_BITS FORTIFY_SOURCE FreeBSD GCC_NEW_VARARGS gcos gcx gimpel GLIBC GLIBC_MINOR GNUC GNUC_MINOR GNU_LIBRARY GNU_SOURCE GO32 gould GOULD_PN H3050R H3050RX hbullx20 hcx host_mips hp200 hp300 HP700 hp700 -hp800 hp9000 hp9000s200 hp9000s300 hp9000s400 hp9000s500 +hp800 hp9000 hp9000s200 hp9000s300 hp9000s400 hp9000s700 hp9000s800 hp9k8 hppa hpux HPUX_SOURCE hp_osf i186 i286 i386 i486 i586 i686 i8086 i80960 i860 I960 IA32 IA64 iAPX286 ibm ibm032 ibmesa IBMR2 ibmrt ILP32 ILP64 @@ -23010,7 +22989,7 @@ M68000 m68k m88100 m88k M88KBCS_TARGET MACH machine MachTen MATH_HAS_NO_SIDE_EFFECTS mc300 mc500 mc68000 mc68010 mc68020 mc68030 mc68040 mc68060 mc68k mc68k32 mc700 mc88000 mc88100 merlin mert MiNT mips MIPSEB MIPSEL MIPS_FPSET MIPS_ISA MIPS_SIM -MIPS_SZINT MIPS_SZLONG MIPS_SZPTR MODERN_C motorola mpeix MSDOS +MIPS_SZINT MIPS_SZLONG MIPS_SZPTR MODERN_C motorola MSDOS MTXINU MULTIMAX MVS mvs M_AMD64 M_ARM M_ARMT M_COFF M_I186 M_I286 M_I386 M_I8086 M_I86 M_I86SM M_IA64 M_IX86 M_PPC M_SYS3 M_SYS5 M_SYSIII M_SYSV M_UNIX M_X86 M_XENIX @@ -23095,7 +23074,7 @@ cat <<'EOSH' >> Cppsym.try printf "#ifdef _%s\nprintf(\"_%s=%%s\\n\", STRINGIFY(_%s));\n#endif\n", $1, $1, $1 printf "#ifdef __%s\nprintf(\"__%s=%%s\\n\", STRINGIFY(__%s));\n#endif\n", $1, $1, $1 printf "#ifdef __%s__\nprintf(\"__%s__=%%s\\n\", STRINGIFY(__%s__));\n#endif\n", $1, $1, $1 -}' >> try.c +}' >> try.c echo 'return 0;}' >> try.c EOSH cat <> Cppsym.try @@ -23201,7 +23180,7 @@ fi : add -D_FORTIFY_SOURCE if feasible and not already there case "$gccversion" in -[4567].*) case "$optimize$ccflags" in +[456789].*) case "$optimize$ccflags" in *-O*) case "$ccflags$cppsymbols" in *_FORTIFY_SOURCE=*) # Don't add it again. echo "You seem to have -D_FORTIFY_SOURCE already, not adding it." >&4 @@ -23219,6 +23198,24 @@ case "$gccversion" in ;; esac +: script used to emit important warnings +cat >warn <msg +else + cat >msg +fi +echo "*** WARNING:" >&4 +sed -e 's/^/*** /' &4 +echo "*** " >&4 +cat msg >>config.msg +echo " " >>config.msg +rm -f msg +EOS +chmod +x warn +$eunicefix warn + : see if this is a termio system val="$undef" val2="$undef" @@ -23509,11 +23506,6 @@ for xxx in $xs_extensions ; do $define) avail_ext="$avail_ext $xxx" ;; esac ;; - I18N/Langinfo|i18n_lan) - case "$i_langinfo$d_nl_langinfo" in - $define$define) avail_ext="$avail_ext $xxx" ;; - esac - ;; IPC/SysV|ipc/sysv) : XXX Do we need a useipcsysv variable here case "${d_msg}${d_sem}${d_shm}" in @@ -23567,6 +23559,11 @@ for xxx in $xs_extensions ; do true|$define|y) avail_ext="$avail_ext $xxx" ;; esac ;; + I18N/Langinfo|langinfo) + case "$uselanginfo" in + true|define|y) avail_ext="$avail_ext $xxx" ;; + esac + ;; Sys/Syslog|sys/syslog) case $osname in amigaos) ;; # not really very useful on AmigaOS @@ -24023,6 +24020,7 @@ d_PRIu64='$d_PRIu64' d_PRIx64='$d_PRIx64' d_SCNfldbl='$d_SCNfldbl' d__fwalk='$d__fwalk' +d_accept4='$d_accept4' d_access='$d_access' d_accessx='$d_accessx' d_acosh='$d_acosh' @@ -24063,7 +24061,6 @@ d_class='$d_class' d_clearenv='$d_clearenv' d_closedir='$d_closedir' d_cmsghdr_s='$d_cmsghdr_s' -d_const='$d_const' d_copysign='$d_copysign' d_copysignl='$d_copysignl' d_cplusplus='$d_cplusplus' @@ -24075,7 +24072,6 @@ d_ctermid_r='$d_ctermid_r' d_ctime64='$d_ctime64' d_ctime_r='$d_ctime_r' d_cuserid='$d_cuserid' -d_dbl_dig='$d_dbl_dig' d_dbminitproto='$d_dbminitproto' d_difftime64='$d_difftime64' d_difftime='$d_difftime' @@ -24098,6 +24094,7 @@ d_double_style_vax='$d_double_style_vax' d_drand48_r='$d_drand48_r' d_drand48proto='$d_drand48proto' d_dup2='$d_dup2' +d_dup3='$d_dup3' d_duplocale='$d_duplocale' d_eaccess='$d_eaccess' d_endgrent='$d_endgrent' @@ -24226,13 +24223,13 @@ d_gmtime64='$d_gmtime64' d_gmtime_r='$d_gmtime_r' d_gnulibc='$d_gnulibc' d_grpasswd='$d_grpasswd' +d_has_C_UTF8='$d_has_C_UTF8' d_hasmntopt='$d_hasmntopt' d_htonl='$d_htonl' d_hypot='$d_hypot' d_ilogb='$d_ilogb' d_ilogbl='$d_ilogbl' d_inc_version_list='$d_inc_version_list' -d_index='$d_index' d_inetaton='$d_inetaton' d_inetntop='$d_inetntop' d_inetpton='$d_inetpton' @@ -24303,6 +24300,7 @@ d_memrchr='$d_memrchr' d_mkdir='$d_mkdir' d_mkdtemp='$d_mkdtemp' d_mkfifo='$d_mkfifo' +d_mkostemp='$d_mkostemp' d_mkstemp='$d_mkstemp' d_mkstemps='$d_mkstemps' d_mktime64='$d_mktime64' @@ -24347,6 +24345,7 @@ d_pathconf='$d_pathconf' d_pause='$d_pause' d_perl_otherlibdirs='$d_perl_otherlibdirs' d_phostname='$d_phostname' +d_pipe2='$d_pipe2' d_pipe='$d_pipe' d_poll='$d_poll' d_portable='$d_portable' @@ -24412,6 +24411,7 @@ d_sethostent_r='$d_sethostent_r' d_setitimer='$d_setitimer' d_setlinebuf='$d_setlinebuf' d_setlocale='$d_setlocale' +d_setlocale_accepts_any_locale_name='$d_setlocale_accepts_any_locale_name' d_setlocale_r='$d_setlocale_r' d_setnent='$d_setnent' d_setnetent_r='$d_setnetent_r' @@ -24454,6 +24454,7 @@ d_sigprocmask='$d_sigprocmask' d_sigsetjmp='$d_sigsetjmp' d_sin6_scope_id='$d_sin6_scope_id' d_sitearch='$d_sitearch' +d_snprintf='$d_snprintf' d_sockaddr_in6='$d_sockaddr_in6' d_sockaddr_sa_len='$d_sockaddr_sa_len' d_sockatmark='$d_sockatmark' @@ -24462,7 +24463,6 @@ d_socket='$d_socket' d_socklen_t='$d_socklen_t' d_sockpair='$d_sockpair' d_socks5_init='$d_socks5_init' -d_sprintf_returns_strlen='$d_sprintf_returns_strlen' d_sqrtl='$d_sqrtl' d_srand48_r='$d_srand48_r' d_srandom_r='$d_srandom_r' @@ -24481,10 +24481,7 @@ d_stdio_ptr_lval_sets_cnt='$d_stdio_ptr_lval_sets_cnt' d_stdio_stream_array='$d_stdio_stream_array' d_stdiobase='$d_stdiobase' d_stdstdio='$d_stdstdio' -d_strchr='$d_strchr' d_strcoll='$d_strcoll' -d_strerrm='$d_strerrm' -d_strerror='$d_strerror' d_strerror_l='$d_strerror_l' d_strerror_r='$d_strerror_r' d_strftime='$d_strftime' @@ -24492,6 +24489,7 @@ d_strlcat='$d_strlcat' d_strlcpy='$d_strlcpy' d_strnlen='$d_strnlen' d_strtod='$d_strtod' +d_strtod_l='$d_strtod_l' d_strtol='$d_strtol' d_strtold='$d_strtold' d_strtold_l='$d_strtold_l' @@ -24521,6 +24519,8 @@ d_times='$d_times' d_tm_tm_gmtoff='$d_tm_tm_gmtoff' d_tm_tm_zone='$d_tm_tm_zone' d_tmpnam_r='$d_tmpnam_r' +d_towlower='$d_towlower' +d_towupper='$d_towupper' d_trunc='$d_trunc' d_truncate='$d_truncate' d_truncl='$d_truncl' @@ -24546,6 +24546,7 @@ d_vfork='$d_vfork' d_void_closedir='$d_void_closedir' d_voidsig='$d_voidsig' d_voidtty='$d_voidtty' +d_vsnprintf='$d_vsnprintf' d_wait4='$d_wait4' d_waitpid='$d_waitpid' d_wcscmp='$d_wcscmp' @@ -24659,7 +24660,6 @@ i64type='$i64type' i8size='$i8size' i8type='$i8type' i_arpainet='$i_arpainet' -i_assert='$i_assert' i_bfd='$i_bfd' i_bsdioctl='$i_bsdioctl' i_crypt='$i_crypt' @@ -24670,7 +24670,6 @@ i_dlfcn='$i_dlfcn' i_execinfo='$i_execinfo' i_fcntl='$i_fcntl' i_fenv='$i_fenv' -i_float='$i_float' i_fp='$i_fp' i_fp_class='$i_fp_class' i_gdbm='$i_gdbm' @@ -24681,13 +24680,10 @@ i_ieeefp='$i_ieeefp' i_inttypes='$i_inttypes' i_langinfo='$i_langinfo' i_libutil='$i_libutil' -i_limits='$i_limits' i_locale='$i_locale' i_machcthr='$i_machcthr' i_malloc='$i_malloc' i_mallocmalloc='$i_mallocmalloc' -i_math='$i_math' -i_memory='$i_memory' i_mntent='$i_mntent' i_ndbm='$i_ndbm' i_netdb='$i_netdb' @@ -24706,7 +24702,6 @@ i_socks='$i_socks' i_stdbool='$i_stdbool' i_stdint='$i_stdint' i_stdlib='$i_stdlib' -i_string='$i_string' i_sunmath='$i_sunmath' i_sysaccess='$i_sysaccess' i_sysdir='$i_sysdir' @@ -24743,9 +24738,9 @@ i_time='$i_time' i_unistd='$i_unistd' i_ustat='$i_ustat' i_utime='$i_utime' -i_values='$i_values' i_vfork='$i_vfork' i_wchar='$i_wchar' +i_wctype='$i_wctype' i_xlocale='$i_xlocale' ignore_versioned_solibs='$ignore_versioned_solibs' inc_version_list='$inc_version_list' @@ -25015,7 +25010,6 @@ stdio_filbuf='$stdio_filbuf' stdio_ptr='$stdio_ptr' stdio_stream_array='$stdio_stream_array' strerror_r_proto='$strerror_r_proto' -strings='$strings' submit='$submit' subversion='$subversion' sysman='$sysman' @@ -25067,6 +25061,7 @@ usedtrace='$usedtrace' usefaststdio='$usefaststdio' useithreads='$useithreads' usekernprocpathname='$usekernprocpathname' +uselanginfo='$uselanginfo' uselargefiles='$uselargefiles' uselongdouble='$uselongdouble' usemallocwrap='$usemallocwrap'