From 0806cdda2789ca6394976d1ff3e65dd59bcb8d1b Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 16 Feb 2019 21:55:12 -0700 Subject: [PATCH] Add towupper() and towlower() to Configure-ish files --- Configure | 20 ++++++++++++++++---- Cross/config.sh-arm-linux | 2 ++ Cross/config.sh-arm-linux-n770 | 2 ++ NetWare/config.wc | 2 ++ Porting/config.sh | 2 ++ config_h.SH | 12 ++++++++++++ configure.com | 2 ++ metaconfig.h | 2 ++ plan9/config_sh.sample | 2 ++ symbian/config.sh | 2 ++ uconfig.h | 16 ++++++++++++++-- uconfig.sh | 2 ++ uconfig64.sh | 2 ++ win32/config.ce | 2 ++ win32/config.gc | 2 ++ win32/config.vc | 2 ++ 16 files changed, 68 insertions(+), 6 deletions(-) diff --git a/Configure b/Configure index 209e102..309a334 100755 --- a/Configure +++ b/Configure @@ -904,6 +904,8 @@ clocktype='' d_times='' d_tmpnam_r='' tmpnam_r_proto='' +d_towlower='' +d_towupper='' d_trunc='' d_truncate='' d_truncl='' @@ -17793,6 +17795,14 @@ eval $inlibc 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 + : see if setlocale_r exists set setlocale_r d_setlocale_r eval $inlibc @@ -19348,6 +19358,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 @@ -23226,10 +23240,6 @@ esac set wchar.h i_wchar eval $inhdr -: see if this system has wctype.h -set wctype.h i_wctype -eval $inhdr - : Check extensions echo " " echo "Looking for extensions..." >&4 @@ -24339,6 +24349,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' diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux index a36a36d..2410ca5 100644 --- a/Cross/config.sh-arm-linux +++ b/Cross/config.sh-arm-linux @@ -598,6 +598,8 @@ d_times='define' d_tm_tm_gmtoff='define' d_tm_tm_zone='define' d_tmpnam_r='undef' +d_towlower='undef' +d_towupper='undef' d_trunc='undef' d_truncate='define' d_truncl='define' diff --git a/Cross/config.sh-arm-linux-n770 b/Cross/config.sh-arm-linux-n770 index be839fb..6ad6445 100644 --- a/Cross/config.sh-arm-linux-n770 +++ b/Cross/config.sh-arm-linux-n770 @@ -597,6 +597,8 @@ d_times='define' d_tm_tm_gmtoff='define' d_tm_tm_zone='define' d_tmpnam_r='undef' +d_towlower='undef' +d_towupper='undef' d_trunc='undef' d_truncate='define' d_truncl='define' diff --git a/NetWare/config.wc b/NetWare/config.wc index bfb7a4a..c6b909a 100644 --- a/NetWare/config.wc +++ b/NetWare/config.wc @@ -588,6 +588,8 @@ d_times='undef' d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' +d_towlower='undef' +d_towupper='undef' d_trunc='undef' d_truncate='undef' d_truncl='undef' diff --git a/Porting/config.sh b/Porting/config.sh index e72bb51..6d38469 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -614,6 +614,8 @@ d_times='define' d_tm_tm_gmtoff='define' d_tm_tm_zone='define' d_tmpnam_r='undef' +d_towlower='undef' +d_towupper='undef' d_trunc='define' d_truncate='define' d_truncl='define' diff --git a/config_h.SH b/config_h.SH index 546f301..316c371 100755 --- a/config_h.SH +++ b/config_h.SH @@ -3494,6 +3494,18 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_timegm HAS_TIMEGM /**/ +/* HAS_TOWLOWER: + * This symbol, if defined, indicates that the towlower () routine is + * available to do string concatenation. + */ +#$d_towlower HAS_TOWLOWER /**/ + +/* HAS_TOWUPPER: + * This symbol, if defined, indicates that the towupper () routine is + * available to do string concatenation. + */ +#$d_towupper HAS_TOWUPPER /**/ + /* HAS_TRUNC: * This symbol, if defined, indicates that the trunc routine is * available to round doubles towards zero. diff --git a/configure.com b/configure.com index 37b2b6f..0140c5c 100644 --- a/configure.com +++ b/configure.com @@ -6935,6 +6935,8 @@ $ WC "d_srandom_r='undef'" $ WC "d_strerror_l='undef'" $ WC "d_strerror_r='undef'" $ WC "d_tmpnam_r='undef'" +$ WC "d_towlower='define'" +$ WC "d_towupper='define'" $ WC "d_ttyname_r='" + d_ttyname_r + "'" $ WC "d_uselocale='undef'" $ WC "ctermid_r_proto='0'" diff --git a/metaconfig.h b/metaconfig.h index 1ab73b2..8015862 100644 --- a/metaconfig.h +++ b/metaconfig.h @@ -24,4 +24,6 @@ * HAS_STRTOLD_L * I_WCHAR * I_WCTYPE + * HAS_TOWLOWER + * HAS_TOWUPPER */ diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index 7fdb692..c709967 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -598,6 +598,8 @@ d_times='define' d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' +d_towlower='undef' +d_towupper='undef' d_trunc='undef' d_truncate='undef' d_truncl='undef' diff --git a/symbian/config.sh b/symbian/config.sh index 1f3902b..655847a 100644 --- a/symbian/config.sh +++ b/symbian/config.sh @@ -547,6 +547,8 @@ d_times='define' d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' +d_towlower='undef' +d_towupper='undef' d_trunc='undef' d_truncate='undef' d_truncl='undef' diff --git a/uconfig.h b/uconfig.h index 3f95845..9c0085b 100644 --- a/uconfig.h +++ b/uconfig.h @@ -3459,6 +3459,18 @@ */ /*#define HAS_TIMEGM / **/ +/* HAS_TOWLOWER: + * This symbol, if defined, indicates that the towlower () routine is + * available to do string concatenation. + */ +/*#define HAS_TOWLOWER / **/ + +/* HAS_TOWUPPER: + * This symbol, if defined, indicates that the towupper () routine is + * available to do string concatenation. + */ +/*#define HAS_TOWUPPER / **/ + /* HAS_TRUNC: * This symbol, if defined, indicates that the trunc routine is * available to round doubles towards zero. @@ -5224,6 +5236,6 @@ #endif /* Generated from: - * b0f7abde1e7d51e15bfef0b4f71fa0987c1b1e41ec3cff403b1a32497f08eac9 config_h.SH - * 0b4d3ba29e28741fe7233bb4700224c1ffd68ed01beac57734c273e8736be025 uconfig.sh + * 5ad5aeb4fcee5fe869bed0368fc2430fdf0ad7011927820be7d0e6fa076334c5 config_h.SH + * 2caca0ed689d83f195e6d1887fcf6a1702cceaa595de14be09580f91d06f5d62 uconfig.sh * ex: set ro: */ diff --git a/uconfig.sh b/uconfig.sh index 392276e..3367267 100644 --- a/uconfig.sh +++ b/uconfig.sh @@ -538,6 +538,8 @@ d_times='undef' d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' +d_towlower='undef' +d_towupper='undef' d_trunc='undef' d_truncate='undef' d_truncl='undef' diff --git a/uconfig64.sh b/uconfig64.sh index d8bfbe1..b6d3f82 100644 --- a/uconfig64.sh +++ b/uconfig64.sh @@ -538,6 +538,8 @@ d_times='undef' d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' +d_towlower='undef' +d_towupper='undef' d_trunc='undef' d_truncate='undef' d_truncl='undef' diff --git a/win32/config.ce b/win32/config.ce index c8453a3..8bf862a 100644 --- a/win32/config.ce +++ b/win32/config.ce @@ -586,6 +586,8 @@ d_times='define' d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' +d_towlower='undef' +d_towupper='undef' d_trunc='undef' d_truncate='undef' d_truncl='undef' diff --git a/win32/config.gc b/win32/config.gc index 2768610..d5697e3 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -586,6 +586,8 @@ d_times='define' d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' +d_towlower='undef' +d_towupper='undef' d_trunc='define' d_truncate='undef' d_truncl='define' diff --git a/win32/config.vc b/win32/config.vc index 4c069f7..676f255 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -586,6 +586,8 @@ d_times='define' d_tm_tm_gmtoff='undef' d_tm_tm_zone='undef' d_tmpnam_r='undef' +d_towlower='undef' +d_towupper='undef' d_trunc='undef' d_truncate='undef' d_truncl='undef' -- 1.8.3.1