From: Jarkko Hietaniemi Date: Mon, 31 Jan 2000 20:17:44 +0000 (+0000) Subject: HP-UX (induced) fixes. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b33da6690ef8f2a127faf2175b5e8ae76d52d4f2;p=p5sagit%2Fp5-mst-13.2.git HP-UX (induced) fixes. p4raw-id: //depot/cfgperl@4936 --- diff --git a/Configure b/Configure index e8f39f9..d63edfb 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 Mon Jan 31 21:17:50 EET 2000 [metaconfig 3.0 PL70] +# Generated on Mon Jan 31 22:19:42 EET 2000 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ </dev/null || hostname) 2>&1` +myuname=`$uname -a 2>/dev/null` +$test -z "$myuname" && myuname=`hostname 2>/dev/null` # tr '[A-Z]' '[a-z]' would not work in EBCDIC # because the A-Z/a-z are not consecutive. myuname=`echo $myuname | $sed -e 's/^[^=]*=//' -e 's/\///g' | \ @@ -3675,42 +3676,42 @@ $define) esac for thislib in $libswanted; do - if xxx=`./loc lib$thislib.$so.[0-9]'*' X $libpth`; - $test -f "$xxx" -a "X$ignore_versioned_solibs" = "X"; then - echo "Found -l$thislib (shared)." - case " $dflt " in - *"-l$thislib "*);; - *) dflt="$dflt -l$thislib";; - esac + libname="$thislib" + if xxx=`./loc lib$thislib.$so.[0-9]'*' X $libpth`; $test -f "$xxx"; then + if $test -a "X$ignore_versioned_solibs" = "X"; then + xxx=/ignored/$xxx + else + libstyle=shared + fi elif xxx=`./loc lib$thislib.$so X $libpth` ; $test -f "$xxx"; then - echo "Found -l$thislib (shared)." - case " $dflt " in - *"-l$thislib "*);; - *) dflt="$dflt -l$thislib";; - esac + libstyle=shared elif xxx=`./loc lib$thislib$_a X $libpth`; $test -f "$xxx"; then - echo "Found -l$thislib." - case " $dflt " in - *"-l$thislib "*);; - *) dflt="$dflt -l$thislib";; - esac + libstyle=static elif xxx=`./loc $thislib$_a X $libpth`; $test -f "$xxx"; then - echo "Found -l$thislib." - case " $dflt " in - *"-l$thislib "*);; - *) dflt="$dflt -l$thislib";; - esac + libstyle=static elif xxx=`./loc lib${thislib}_s$_a X $libpth`; $test -f "$xxx"; then - echo "Found -l${thislib}_s." - case " $dflt " in - *"-l$thislib "*);; - *) dflt="$dflt -l${thislib}_s";; - esac + libstyle=static + libname=${thislib}_s elif xxx=`./loc Slib$thislib$_a X $xlibpth`; $test -f "$xxx"; then - echo "Found -l$thislib." + libstyle="static" + fi + if $test -f "$xxx"; then + if test X"$osname" = Xhpux -a -f /lib/pa20_64/libc.sl; then + case "`file $xxx`" in + *LP64*) ;; + *) xxx=/non/64/bit/$xxx ;; + esac + fi + fi + if $test -f "$xxx"; then + case "$libstyle" in + shared) echo "Found -l$libname (shared)." ;; + static) echo "Found -l$libname." ;; + *) echo "Found -l$libname ($libstyle)." ;; + esac case " $dflt " in *"-l$thislib "*);; - *) dflt="$dflt -l$thislib";; + *) dflt="$dflt -l$libname";; esac else echo "No -l$thislib." @@ -12347,7 +12348,7 @@ EOCP fi fi -if $test X"$sPRId64" = X -a X"$i_inttypes.h" = X"$define" -a X"$quadtype" = Xint64_t; then +if $test X"$sPRId64" = X -a X"$i_inttypes" = X"$define" -a X"$quadtype" = Xint64_t; then $cat >try.c <<'EOCP' #include #include diff --git a/hints/hpux.sh b/hints/hpux.sh index b1fa80a..b18f534 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -290,8 +290,43 @@ EOM 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 "$ccflags" in +*+DD64*) # Been here, done this (via uselfs.cbu, most likely.) + ;; +*) case "$use64bits" in +$define|true|[yY]*) + if [ "$xxOsRevMajor" -lt 11 ]; then + cat <&4 +64-bit compilation is not supported on HP-UX $xxOsRevMajor. +You need at least HP-UX 11.0. +Cannot continue, aborting. +EOM + exit 1 + fi + if [ ! -f /lib/pa20_64/libc.sl ]; then + cat <&4 +You do not seem to have the 64-bit libraries in /lib/pa20_64. +Most importantly, I cannot find /lib/pa20_64/libc.sl. +Cannot continue, aborting. +EOM + exit 1 + fi + ccflags="$ccflags +DD64" + ldflags="$ldflags +DD64" + ld=/usr/bin/ld + set `echo " $libswanted " | sed -e 's@ dl @ @'` + libswanted="$*" + glibpth="/lib/pa20_64" + esac + ;; +esac +EOCBU + # Existence of the 64-bit libraries dictating whether to use large files? -# Twisted? You betcha. +# Twisted? Yes, very. test -f /lib/pa20_64/libc.sl || uselargefiles="$undef" # This script UU/uselfs.cbu will get 'called-back' by Configure @@ -337,40 +372,3 @@ $define|true|[yY]*) 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 "$ccflags" in -*+DD64*) # Been here, done this (via uselfs.cbu, most likely.) - ;; -*) case "$use64bits" in -$define|true|[yY]*) - if [ "$xxOsRevMajor" -lt 11 ]; then - cat <&4 -64-bit compilation is not supported on HP-UX $xxOsRevMajor. -You need at least HP-UX 11.0. -Cannot continue, aborting. -EOM - exit 1 - fi - if [ ! -f /lib/pa20_64/libc.sl ]; then - cat <&4 -You do not seem to have the 64-bit libraries in /lib/pa20_64. -Most importantly, I cannot find /lib/pa20_64/libc.sl. -Cannot continue, aborting. -EOM - exit 1 - fi - ccflags="$ccflags +DD64" - ldflags="$ldflags +DD64" - ld=/usr/bin/ld - set `echo " $libswanted " | sed -e 's@ dl @ @'` - libswanted="$*" - glibpth="/lib/pa20_64" - esac - ;; -esac -EOCBU - - -