summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-11-14 17:08:23 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-11-14 17:08:23 +0000
commitbd9b35c97ad661cc06e68f6193733424fc65c9c0 (patch)
tree6b7a1e2bce6634bd3dbdf64d38ee84adbcb624f8 /hints
parent505afebfe64a1941e58b72354808b12b77d682bb (diff)
downloadperl-bd9b35c97ad661cc06e68f6193733424fc65c9c0.tar.gz
The separation of 64-bitness and largefileness continues
(with a setback, see hpux.sh). p4raw-id: //depot/cfgperl@4581
Diffstat (limited to 'hints')
-rw-r--r--hints/aix.sh25
-rw-r--r--hints/hpux.sh42
-rw-r--r--hints/solaris_2.sh25
3 files changed, 67 insertions, 25 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index d905be1d17..56496e535e 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -77,6 +77,8 @@ case "$archname" in
'') archname="$osname" ;;
esac
+cc=${cc:-cc}
+
case "$osvers" in
3*) d_fchmod=undef
ccflags="$ccflags -D_ALL_SOURCE"
@@ -180,7 +182,11 @@ EOM
esac
EOCBU
-# Turn on largefileness, if available.
+# This script UU/uselfs.cbu will get 'called-back' by Configure
+# after it has prompted the user for whether to use large files.
+cat > UU/uselfs.cbu <<'EOCBU'
+case "$uselargefiles" in
+$define|true|[yY]*)
lfcflags="`getconf XBS5_ILP32_OFFBIG_CFLAGS 2>/dev/null`"
lfldflags="`getconf XBS5_ILP32_OFFBIG_LDFLAGS 2>/dev/null`"
# _Somehow_ in AIX 4.3.1.0 the above getconf call manages to
@@ -195,16 +201,19 @@ EOCBU
# the whatever it was that AIX managed to break. --jhi
lfldflags="`echo $lfldflags`"
lflibs="`getconf XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`"
-case "$lfcflags$lfldflags$lflibs" in
-'');;
-*) ccflags="$ccflags $lfcflags"
- ldflags="$ldflags $ldldflags"
- libswanted="$libswanted $lflibs"
- ;;
-esac
+ case "$lfcflags$lfldflags$lflibs" in
+ '');;
+ *) ccflags="$ccflags $lfcflags"
+ ldflags="$ldflags $ldldflags"
+ libswanted="$libswanted $lflibs"
+ ;;
+ esac
lfcflags=''
lfldflags=''
lflibs=''
+ ;;
+esac
+EOCBU
# This script UU/use64bits.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use 64 bits.
diff --git a/hints/hpux.sh b/hints/hpux.sh
index 681a722cb7..66fe7c4606 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -290,25 +290,47 @@ EOM
esac
EOCBU
-# Turn on largefileness if available.
+# This script UU/uselfs.cbu will get 'called-back' by Configure
+# after it has prompted the user for whether to use 64 bits.
+cat > UU/uselfs.cbu <<'EOCBU'
+case "$uselargefiles" in
+$define|true|[yY]*)
lfcflags="`getconf _CS_XBS5_ILP32_OFFBIG_CFLAGS 2>/dev/null`"
lfldflags="`getconf _CS_XBS5_ILP32_OFFBIG_LDFLAGS 2>/dev/null`"
lflibs="`getconf _CS_XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`"
-case "$lfcflags$lfldflags$lflibs" in
-'');;
-*) ccflags="$ccflags $lfcflags"
- ldflags="$ldflags $ldldflags"
- libswanted="$libswanted $lflibs"
- ;;
-esac
+ case "$lfcflags$lfldflags$lflibs" in
+ '');;
+ *) # This sucks. To get the HP-UX strict ANSI mode (-Aa) to
+ # approve of large file offsets, we must turn on the 64-bitness
+ # (+DD64), too. A callback file (a hack) calling another, yuck.
+ case "$use64bits" in
+ $undef|false|[nN]*|'')
+ use64bits="$define"
+ if $test -f use64bits.cbu; then
+ echo "(Large files in HP-UX require also 64-bitness, picking up 64-bit hints...)"
+ . ./use64bits.cbu
+ fi
+ ;;
+ esac
+ ccflags="$ccflags $lfcflags"
+ ldflags="$ldflags $ldldflags"
+ libswanted="$libswanted $lflibs"
+ ;;
+ esac
lfcflags=''
lfldflags=''
lflibs=''
+ ;;
+esac
+EOCBU
# This script UU/use64bits.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use 64 bits.
cat > UU/use64bits.cbu <<'EOCBU'
-case "$use64bits" in
+case "$ccflags" in
+*+DD64*) # Been here, done this (via uselfs.cbu, most likely.)
+ ;;
+*) case "$use64bits" in
$define|true|[yY]*)
if [ "$xxOsRevMajor" -lt 11 ]; then
cat <<EOM >&4
@@ -332,6 +354,8 @@ EOM
set `echo " $libswanted " | sed -e 's@ dl @ @'`
libswanted="$*"
glibpth="/lib/pa20_64"
+ esac
+ ;;
esac
EOCBU
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index 7de55f7292..8c280e3fb7 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -333,20 +333,29 @@ EOM
esac
EOCBU
-# Turn on largefileness if available.
+# This script UU/uselfs.cbu will get 'called-back' by Configure
+# after it has prompted the user for whether to use large files.
+cat > UU/uselfs.cbu <<'EOCBU'
+case "$uselargefiles" in
+$define|true|[yY]*)
lfcflags="`getconf LFS_CFLAGS 2>/dev/null`"
lfldflags="`getconf LFS_LDFLAGS 2>/dev/null`"
lflibs="`getconf LFS_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`"
-case "$lfcflags$lfldflags$lflibs" in
-'');;
-*) ccflags="$ccflags -DUSE_LONG_LONG $lfcflags"
- ldflags="$ldflags $ldldflags"
- libswanted="$libswanted $lflibs"
- ;;
-esac
+ case "$lfcflags$lfldflags$lflibs" in
+ '');;
+ *) uselonglong="$define"
+ echo "(Large files in Solaris require also long longs, using long longs...)"
+ ccflags="$ccflags -DUSE_LONG_LONG $lfcflags"
+ ldflags="$ldflags $ldldflags"
+ libswanted="$libswanted $lflibs"
+ ;;
+ esac
lfcflags=''
lfldflags=''
lflibs=''
+ ;;
+esac
+EOCBU
# This script UU/use64bits.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use 64 bits.