summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2013-03-09 20:04:50 +0100
committerH.Merijn Brand <h.m.brand@xs4all.nl>2013-03-09 20:04:50 +0100
commit9d1a8da0e35084d837dfe2fc0bd2964ee8ade5f1 (patch)
tree6c4daa2f468f9aed40ef8674e2647affb127cd54 /Configure
parent20a5039af69d81e9003664af771f2dd5e0446c2b (diff)
downloadperl-9d1a8da0e35084d837dfe2fc0bd2964ee8ade5f1.tar.gz
Add bootstrap_charset/BOOTSTRAP_CHARSET for non-ASCII architectures
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure65
1 files changed, 36 insertions, 29 deletions
diff --git a/Configure b/Configure
index 6823cb737d..6c71218c8d 100755
--- a/Configure
+++ b/Configure
@@ -28,7 +28,7 @@
# See Porting/pumpkin.pod for more information on metaconfig.
#
-# Generated on Fri Feb 15 14:51:06 CET 2013 [metaconfig 3.5 PL0]
+# Generated on Sat Mar 9 17:50:01 CET 2013 [metaconfig 3.5 PL0]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -851,6 +851,7 @@ ld_can_script=''
lddlflags=''
usedl=''
doublesize=''
+bootstrap_charset=''
ebcdic=''
fflushNULL=''
fflushall=''
@@ -19130,6 +19131,39 @@ esac
: set the base revision
baserev=5.0
+: Determine if this is an EBCDIC system
+echo " "
+echo "Determining whether or not we are on an EBCDIC system..." >&4
+$cat >try.c <<'EOM'
+int main()
+{
+ if ('M'==0xd4) return 0;
+ return 1;
+}
+EOM
+
+case "$BOOTSTRAP_CHARSET" in
+ Y|y|define) bootstrap_charset=$define ;;
+ *) bootstrap_charset=$undef ;;
+esac
+
+val=$undef
+set try
+if eval $compile_ok; then
+ if $run ./try; then
+ echo "You seem to speak EBCDIC." >&4
+ val="$define"
+ else
+ echo "Nope, no EBCDIC, probably ASCII or some ISO Latin. Or UTF-8." >&4
+ fi
+else
+ echo "I'm unable to compile the test program." >&4
+ echo "I'll assume ASCII or some ISO Latin. Or UTF8." >&4
+fi
+$rm_try
+set ebcdic
+eval $setvar
+
: length of character in bytes. Is always 1, otherwise it isnt C
: This used to be a test using sizeof
charsize=1
@@ -19527,34 +19561,6 @@ EOCP
esac
done
-: Determine if this is an EBCDIC system
-echo " "
-echo "Determining whether or not we are on an EBCDIC system..." >&4
-$cat >try.c <<'EOM'
-int main()
-{
- if ('M'==0xd4) return 0;
- return 1;
-}
-EOM
-
-val=$undef
-set try
-if eval $compile_ok; then
- if $run ./try; then
- echo "You seem to speak EBCDIC." >&4
- val="$define"
- else
- echo "Nope, no EBCDIC, probably ASCII or some ISO Latin. Or UTF-8." >&4
- fi
-else
- echo "I'm unable to compile the test program." >&4
- echo "I'll assume ASCII or some ISO Latin. Or UTF8." >&4
-fi
-$rm_try
-set ebcdic
-eval $setvar
-
: Check how to flush
echo " "
$cat >&4 <<EOM
@@ -22889,6 +22895,7 @@ bin='$bin'
bin_ELF='$bin_ELF'
binexp='$binexp'
bison='$bison'
+bootstrap_charset='$bootstrap_charset'
byacc='$byacc'
byteorder='$byteorder'
c='$c'