summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-28 14:12:27 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-28 14:12:27 +0000
commit2765b840fca882ed4632588ab696d917cbd8f128 (patch)
tree9b2a4b5ccf01cbb4c35fdd1508766e6371e8ca6f
parent21c7e20cb06994bee68ab7053ced688d59fb6908 (diff)
downloadperl-2765b840fca882ed4632588ab696d917cbd8f128.tar.gz
Add Configure probes for nl_langinfo() and <langinfo.h>.
Expected not to exist in non-UNIX excepting in VMS, where according to a quick web survey they just might. p4raw-id: //depot/perl@11003
-rwxr-xr-xConfigure14
-rw-r--r--NetWare/config.wc2
-rw-r--r--Porting/Glossary13
-rw-r--r--Porting/config.sh16
-rw-r--r--Porting/config_H17
-rw-r--r--config_h.SH13
-rw-r--r--configure.com6
-rw-r--r--epoc/config.sh2
-rw-r--r--perl.h2
-rw-r--r--uconfig.h7
-rwxr-xr-xuconfig.sh2
-rw-r--r--vos/config.alpha.def2
-rw-r--r--vos/config.alpha.h13
-rw-r--r--vos/config.ga.def2
-rw-r--r--vos/config.ga.h13
-rw-r--r--win32/config.bc2
-rw-r--r--win32/config.gc2
-rw-r--r--win32/config.vc2
18 files changed, 118 insertions, 12 deletions
diff --git a/Configure b/Configure
index fb65acb686..0bf46541ae 100755
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Thu Jun 28 16:56:19 EET DST 2001 [metaconfig 3.0 PL70]
+# Generated on Thu Jun 28 18:02:13 EET DST 2001 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -466,6 +466,7 @@ d_msgsnd=''
d_msync=''
d_munmap=''
d_nice=''
+d_nl_langinfo=''
d_off64_t=''
d_open3=''
d_fpathconf=''
@@ -668,6 +669,7 @@ i_grp=''
i_iconv=''
i_ieeefp=''
i_inttypes=''
+i_langinfo=''
i_libutil=''
i_limits=''
i_locale=''
@@ -10898,6 +10900,14 @@ eval $inlibc
set nice d_nice
eval $inlibc
+: see if this is a langinfo.h system
+set langinfo.h i_langinfo
+eval $inhdr
+
+: see if nl_langinfo exists
+set nl_langinfo d_nl_langinfo
+eval $inlibc
+
: check for length of character
echo " "
case "$charsize" in
@@ -16753,6 +16763,7 @@ d_msync='$d_msync'
d_munmap='$d_munmap'
d_mymalloc='$d_mymalloc'
d_nice='$d_nice'
+d_nl_langinfo='$d_nl_langinfo'
d_nv_preserves_uv='$d_nv_preserves_uv'
d_nv_preserves_uv_bits='$d_nv_preserves_uv_bits'
d_off64_t='$d_off64_t'
@@ -16980,6 +16991,7 @@ i_grp='$i_grp'
i_iconv='$i_iconv'
i_ieeefp='$i_ieeefp'
i_inttypes='$i_inttypes'
+i_langinfo='$i_langinfo'
i_libutil='$i_libutil'
i_limits='$i_limits'
i_locale='$i_locale'
diff --git a/NetWare/config.wc b/NetWare/config.wc
index 29168eadd2..a8455f64a7 100644
--- a/NetWare/config.wc
+++ b/NetWare/config.wc
@@ -233,6 +233,7 @@ d_msync='undef'
d_munmap='undef'
d_mymalloc='undef'
d_nice='undef'
+d_nl_langinfo='undef'
d_nv_preserves_uv='define'
d_off64_t='undef'
d_old_pthread_create_joinable='undef'
@@ -435,6 +436,7 @@ i_grp='undef'
i_iconv='undef'
i_ieeefp='undef'
i_inttypes='undef'
+i_langinfo='undef'
i_limits='define'
i_locale='define'
i_machcthr='undef'
diff --git a/Porting/Glossary b/Porting/Glossary
index 1217b2e4b7..72bde60f3b 100644
--- a/Porting/Glossary
+++ b/Porting/Glossary
@@ -243,8 +243,9 @@ chgrp (Loc.U):
The value is a plain '' and is not useful.
chmod (Loc.U):
- This variable is defined but not used by Configure.
- The value is a plain '' and is not useful.
+ This variable is used internally by Configure to determine the
+ full pathname (if any) of the chmod program. After Configure runs,
+ the value is reset to a plain "chmod" and is not useful.
chown (Loc.U):
This variable is defined but not used by Configure.
@@ -1081,6 +1082,10 @@ d_nice (d_nice.U):
This variable conditionally defines the HAS_NICE symbol, which
indicates to the C program that the nice() routine is available.
+d_nl_langinfo (d_nl_langinfo.U):
+ This variable conditionally defines the HAS_NL_LANGINFO symbol, which
+ indicates to the C program that the nl_langinfo() routine is available.
+
d_nv_preserves_uv (perlxv.U):
This variable indicates whether a variable of type nvtype
can preserve all the bits a variable of type uvtype.
@@ -2164,6 +2169,10 @@ i_inttypes (i_inttypes.U):
This variable conditionally defines the I_INTTYPES symbol,
and indicates whether a C program should include <inttypes.h>.
+i_langinfo (i_langinfo.U):
+ This variable conditionally defines the I_LANGINFO symbol,
+ and indicates whether a C program should include <langinfo.h>.
+
i_libutil (i_libutil.U):
This variable conditionally defines the I_LIBUTIL symbol, and indicates
whether a C program should include <libutil.h>.
diff --git a/Porting/config.sh b/Porting/config.sh
index 0ca0ec88e5..3819d4f791 100644
--- a/Porting/config.sh
+++ b/Porting/config.sh
@@ -8,7 +8,7 @@
# Package name : perl5
# Source directory : .
-# Configuration time: Sat Jun 23 00:03:07 EET DST 2001
+# Configuration time: Thu Jun 28 18:05:29 EET DST 2001
# Configured by : jhi
# Target system : osf1 alpha.hut.fi v4.0 878 alpha
@@ -63,10 +63,10 @@ ccsymbols='__alpha=1 __LANGUAGE_C__=1 __osf__=1 __unix__=1 _LONGLONG=1 _SYSTYPE_
ccversion='V5.6-082'
cf_by='jhi'
cf_email='yourname@yourhost.yourplace.com'
-cf_time='Sat Jun 23 00:03:07 EET DST 2001'
+cf_time='Thu Jun 28 18:05:29 EET DST 2001'
charsize='1'
chgrp=''
-chmod=''
+chmod='chmod'
chown=''
clocktype='clock_t'
comm='comm'
@@ -260,6 +260,7 @@ d_msync='define'
d_munmap='define'
d_mymalloc='undef'
d_nice='define'
+d_nl_langinfo='define'
d_nv_preserves_uv='undef'
d_nv_preserves_uv_bits='53'
d_off64_t='undef'
@@ -487,6 +488,7 @@ i_grp='define'
i_iconv='define'
i_ieeefp='undef'
i_inttypes='undef'
+i_langinfo='define'
i_libutil='undef'
i_limits='define'
i_locale='define'
@@ -668,9 +670,9 @@ pager='/c/bin/less'
passcat='cat /etc/passwd'
patchlevel='7'
path_sep=':'
-perl5='/u/vieraat/vieraat/jhi/Perl/bin/perl'
+perl5='/usr/local/bin/perl'
perl=''
-perl_patchlevel='10824'
+perl_patchlevel='10995'
perladmin='yourname@yourhost.yourplace.com'
perllibs='-lm -liconv -lutil -lpthread -lexc'
perlpath='/opt/perl/bin/perl'
@@ -843,7 +845,7 @@ vi=''
voidflags='15'
xlibpth='/usr/lib/386 /lib/386'
xs_apiversion='5.7.1'
-yacc='/u/vieraat/vieraat/jhi/Perl/bin/byacc'
+yacc='/usr/local/bin/byacc'
yaccflags=''
zcat=''
zip='zip'
@@ -870,7 +872,7 @@ PERL_SUBVERSION=1
PERL_API_REVISION=5
PERL_API_VERSION=5
PERL_API_SUBVERSION=0
-PERL_PATCHLEVEL=10824
+PERL_PATCHLEVEL=10995
PERL_CONFIG_SH=true
# Variables propagated from previous config.sh file.
pp_sys_cflags='ccflags="$ccflags -DNO_EFF_ONLY_OK"'
diff --git a/Porting/config_H b/Porting/config_H
index 2d53499d14..3ae6ca9ecb 100644
--- a/Porting/config_H
+++ b/Porting/config_H
@@ -17,7 +17,7 @@
/*
* Package name : perl5
* Source directory : .
- * Configuration time: Sat Jun 23 00:03:07 EET DST 2001
+ * Configuration time: Thu Jun 28 18:05:29 EET DST 2001
* Configured by : jhi
* Target system : osf1 alpha.hut.fi v4.0 878 alpha
*/
@@ -2937,7 +2937,7 @@
* This macro is to be used to generate uniformly distributed
* random numbers over the range [0., 1.[. You may have to supply
* an 'extern double drand48();' in your program since SunOS 4.1.3
- * doesn't provide you with anything relevant in its headers.
+ * doesn't provide you with anything relevant in it's headers.
* See HAS_DRAND48_PROTO.
*/
/* Rand_seed_t:
@@ -3378,6 +3378,13 @@
*/
/*#define HAS_FLOCK_PROTO / **/
+/* HAS_NL_LANGINFO:
+ * This symbol, if defined, indicates that the nl_langinfo routine is
+ * available to return local data. You will also need <langinfo.h>
+ * and therefore I_LANGINFO.
+ */
+#define HAS_NL_LANGINFO /**/
+
/* HAS_SIGPROCMASK:
* This symbol, if defined, indicates that the sigprocmask
* system call is available to examine or change the signal mask
@@ -3444,4 +3451,10 @@
*/
/*#define HAS_USLEEP_PROTO / **/
+/* I_LANGINFO:
+ * This symbol, if defined, indicates that <langinfo.h> exists and
+ * should be included.
+ */
+#define I_LANGINFO /**/
+
#endif
diff --git a/config_h.SH b/config_h.SH
index 06325c0fac..2cf8168599 100644
--- a/config_h.SH
+++ b/config_h.SH
@@ -3398,6 +3398,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_flockproto HAS_FLOCK_PROTO /**/
+/* HAS_NL_LANGINFO:
+ * This symbol, if defined, indicates that the nl_langinfo routine is
+ * available to return local data. You will also need <langinfo.h>
+ * and therefore I_LANGINFO.
+ */
+#$d_nl_langinfo HAS_NL_LANGINFO /**/
+
/* HAS_SIGPROCMASK:
* This symbol, if defined, indicates that the sigprocmask
* system call is available to examine or change the signal mask
@@ -3464,5 +3471,11 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_usleepproto HAS_USLEEP_PROTO /**/
+/* I_LANGINFO:
+ * This symbol, if defined, indicates that <langinfo.h> exists and
+ * should be included.
+ */
+#$i_langinfo I_LANGINFO /**/
+
#endif
!GROK!THIS!
diff --git a/configure.com b/configure.com
index 3eac5bfa2c..73880ac851 100644
--- a/configure.com
+++ b/configure.com
@@ -4651,7 +4651,9 @@ $ d_strcoll="define"
$ d_strxfrm="define"
$ d_wctomb="define"
$ i_locale="define"
+$ i_langinfo="define"
$ d_locconv="define"
+$ d_nl_langinfo="define"
$ d_setlocale="define"
$ vms_cc_type="decc"
$ ELSE
@@ -4668,7 +4670,9 @@ $ d_strcoll="undef"
$ d_strxfrm="undef"
$ d_wctomb="undef"
$ i_locale="undef"
+$ i_langinfo="undef"
$ d_locconv="undef"
+$ d_nl_langinfo="undef"
$ d_setlocale="undef"
$ ENDIF
$ d_stdio_ptr_lval_sets_cnt="undef"
@@ -5137,6 +5141,7 @@ $ WC "d_msync='undef'"
$ WC "d_munmap='undef'"
$ WC "d_mymalloc='" + d_mymalloc + "'"
$ WC "d_nice='define'"
+$ WC "d_nl_langinfo='" + d_nl_langinfo + "'"
$ WC "d_nv_preserves_uv='" + d_nv_preserves_uv + "'"
$ WC "d_nv_preserves_uv_bits='" + d_nv_preserves_uv_bits + "'"
$ WC "d_off64_t='" + d_off64_t + "'"
@@ -5348,6 +5353,7 @@ $ WC "i_grp='undef'"
$ WC "i_iconv='" + i_iconv +"'"
$ WC "i_ieeefp='undef'"
$ WC "i_inttypes='" + i_inttypes + "'"
+$ WC "i_langinfo='" + i_langinfo + "'"
$ WC "i_libutil='" + i_libutil + "'"
$ WC "i_limits='define'"
$ WC "i_locale='" + i_locale + "'"
diff --git a/epoc/config.sh b/epoc/config.sh
index 857bbb6711..772e30dc89 100644
--- a/epoc/config.sh
+++ b/epoc/config.sh
@@ -250,6 +250,7 @@ d_msync='undef'
d_munmap='undef'
d_mymalloc='undef'
d_nice='undef'
+d_nl_langinfo='undef'
d_off64_t='undef'
d_old_pthread_create_joinable='undef'
d_oldpthreads='undef'
@@ -451,6 +452,7 @@ i_grp='undef'
i_iconv='undef'
i_ieeefp='undef'
i_inttypes='undef'
+i_langinfo='undef'
i_libutil='undef'
i_limits='define'
i_locale='undef'
diff --git a/perl.h b/perl.h
index 705df97949..27393f669e 100644
--- a/perl.h
+++ b/perl.h
@@ -3841,6 +3841,8 @@ extern void moncontrol(int);
USE_REENTRANT_API
+ HAS_NL_LANGINFO
+
so that Configure picks them up. */
#endif /* Include guard */
diff --git a/uconfig.h b/uconfig.h
index 28beb65ea5..62ce1f0dee 100644
--- a/uconfig.h
+++ b/uconfig.h
@@ -3374,6 +3374,13 @@
*/
/*#define HAS_FLOCK_PROTO / **/
+/* HAS_NL_LANGINFO:
+ * This symbol, if defined, indicates that the nl_langinfo routine is
+ * available to return local data. You will also need <langinfo.h>
+ * and therefore I_LANGINFO.
+ */
+/*#define HAS_NL_LANGINFO / **/
+
/* HAS_SIGPROCMASK:
* This symbol, if defined, indicates that the sigprocmask
* system call is available to examine or change the signal mask
diff --git a/uconfig.sh b/uconfig.sh
index c52e4eba49..175b72ebbd 100755
--- a/uconfig.sh
+++ b/uconfig.sh
@@ -191,6 +191,7 @@ d_msync='undef'
d_munmap='undef'
d_mymalloc='undef'
d_nice='undef'
+d_nl_langinfo='undef'
d_nv_preserves_uv='undef'
d_nv_preserves_uv_bits='0'
d_off64_t='undef'
@@ -390,6 +391,7 @@ i_grp='undef'
i_iconv='undef'
i_ieeefp='undef'
i_inttypes='undef'
+i_langinfo='undef'
i_libutil='undef'
i_limits='undef'
i_locale='undef'
diff --git a/vos/config.alpha.def b/vos/config.alpha.def
index 93a9601401..6c4b1746d6 100644
--- a/vos/config.alpha.def
+++ b/vos/config.alpha.def
@@ -170,6 +170,7 @@ $d_msync='undef'
$d_munmap='undef'
$d_mymalloc='undef'
$d_nice='undef'
+$d_nl_langinfo='undef'
$d_nv_preserves_uv='define'
$d_nv_preserves_uv_bits='32'
$d_off64_t='undef'
@@ -348,6 +349,7 @@ $i_grp='define'
$i_iconv='undef'
$i_ieeefp='undef'
$i_inttypes='undef'
+$i_langinfo='undef'
$i_libutil='undef'
$i_limits='define'
$i_locale='define'
diff --git a/vos/config.alpha.h b/vos/config.alpha.h
index e62bec2c3b..7f108eb5d1 100644
--- a/vos/config.alpha.h
+++ b/vos/config.alpha.h
@@ -3374,6 +3374,13 @@
*/
/*#define HAS_FLOCK_PROTO /**/
+/* HAS_NL_LANGINFO:
+ * This symbol, if defined, indicates that the nl_langinfo routine is
+ * available to return local data. You will also need <langinfo.h>
+ * and therefore I_LANGINFO.
+ */
+/*#define HAS_NL_LANGINFO /**/
+
/* HAS_SIGPROCMASK:
* This symbol, if defined, indicates that the sigprocmask
* system call is available to examine or change the signal mask
@@ -3440,4 +3447,10 @@
*/
/*#define HAS_USLEEP_PROTO /**/
+/* I_LANGINFO:
+ * This symbol, if defined, indicates that <langinfo.h> exists and
+ * should be included.
+ */
+/*#define I_LANGINFO /**/
+
#endif
diff --git a/vos/config.ga.def b/vos/config.ga.def
index 8774ae7ad9..8512751095 100644
--- a/vos/config.ga.def
+++ b/vos/config.ga.def
@@ -170,6 +170,7 @@ $d_msync='undef'
$d_munmap='define'
$d_mymalloc='undef'
$d_nice='undef'
+$d_nl_langinfo='undef'
$d_nv_preserves_uv='define'
$d_nv_preserves_uv_bits='32'
$d_off64_t='undef'
@@ -348,6 +349,7 @@ $i_grp='define'
$i_iconv='undef'
$i_ieeefp='undef'
$i_inttypes='undef'
+$i_langinfo='undef'
$i_libutil='undef'
$i_limits='define'
$i_locale='define'
diff --git a/vos/config.ga.h b/vos/config.ga.h
index 7529d70217..80a418a294 100644
--- a/vos/config.ga.h
+++ b/vos/config.ga.h
@@ -3374,6 +3374,13 @@
*/
/*#define HAS_FLOCK_PROTO /**/
+/* HAS_NL_LANGINFO:
+ * This symbol, if defined, indicates that the nl_langinfo routine is
+ * available to return local data. You will also need <langinfo.h>
+ * and therefore I_LANGINFO.
+ */
+/*#define HAS_NL_LANGINFO /**/
+
/* HAS_SIGPROCMASK:
* This symbol, if defined, indicates that the sigprocmask
* system call is available to examine or change the signal mask
@@ -3440,4 +3447,10 @@
*/
/*#define HAS_USLEEP_PROTO /**/
+/* I_LANGINFO:
+ * This symbol, if defined, indicates that <langinfo.h> exists and
+ * should be included.
+ */
+/*#define I_LANGINFO /**/
+
#endif
diff --git a/win32/config.bc b/win32/config.bc
index 86b4d51c85..16598d1234 100644
--- a/win32/config.bc
+++ b/win32/config.bc
@@ -244,6 +244,7 @@ d_msync='undef'
d_munmap='undef'
d_mymalloc='undef'
d_nice='undef'
+d_nl_langinfo='undef'
d_nv_preserves_uv='define'
d_nv_preserves_uv_bits='32'
d_off64_t='undef'
@@ -465,6 +466,7 @@ i_grp='undef'
i_iconv='undef'
i_ieeefp='undef'
i_inttypes='undef'
+i_langinfo='undef'
i_limits='define'
i_locale='define'
i_machcthr='undef'
diff --git a/win32/config.gc b/win32/config.gc
index 463631662f..0bf588d66c 100644
--- a/win32/config.gc
+++ b/win32/config.gc
@@ -244,6 +244,7 @@ d_msync='undef'
d_munmap='undef'
d_mymalloc='undef'
d_nice='undef'
+d_nl_langinfo='undef'
d_nv_preserves_uv='define'
d_nv_preserves_uv_bits='32'
d_off64_t='undef'
@@ -465,6 +466,7 @@ i_grp='undef'
i_iconv='undef'
i_ieeefp='undef'
i_inttypes='undef'
+i_langinfo='undef'
i_limits='define'
i_locale='define'
i_machcthr='undef'
diff --git a/win32/config.vc b/win32/config.vc
index 176aabe718..b5025fba67 100644
--- a/win32/config.vc
+++ b/win32/config.vc
@@ -244,6 +244,7 @@ d_msync='undef'
d_munmap='undef'
d_mymalloc='undef'
d_nice='undef'
+d_nl_langinfo='undef'
d_nv_preserves_uv='define'
d_nv_preserves_uv_bits='32'
d_off64_t='undef'
@@ -465,6 +466,7 @@ i_grp='undef'
i_iconv='undef'
i_ieeefp='undef'
i_inttypes='undef'
+i_langinfo='undef'
i_limits='define'
i_locale='define'
i_machcthr='undef'