This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Largefileness in Solaris doesn't require long longs;
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 24 Feb 2000 19:26:33 +0000 (19:26 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 24 Feb 2000 19:26:33 +0000 (19:26 +0000)
use64bits enhancements; introduce usefull64bits.

p4raw-id: //depot/cfgperl@5244

hints/aix.sh
hints/hpux.sh
hints/irix_6.sh
hints/solaris_2.sh

index d78494b..4addec6 100644 (file)
@@ -222,10 +222,6 @@ EOM
                exit 1
                ;;
            esac
-           case "$ccflags" in
-           *-DUSE_64_BITS*) ;;
-           *) ccflags="$ccflags -DUSE_64_BITS" ;;
-           esac
            # When a 64-bit cc becomes available $archname64
            # may need setting so that $archname gets it attached.
            ;;
index 6ba51cf..ad213f2 100644 (file)
@@ -101,15 +101,6 @@ EOM
     ;;
 esac
 
-# Backward compatibility (uselonglong is deprecated).
-case "$uselonglolong" in
-"$define"|true|[yY]*)
-       case "$use64bits" in
-       '') use64bits="$define" ;;
-       esac
-       ;;
-esac                          
-
 # Determine the architecture type of this system.
 # Keep leading tab below -- Configure Black Magic -- RAM, 03/02/97
        xxOsRevMajor=`uname -r | sed -e 's/^[^0-9]*//' | cut -d. -f1`;
index 17a9e00..8dc3cba 100644 (file)
@@ -248,15 +248,6 @@ EOM
                exit 1
                ;;
            esac
-           case "$cc $ccflags" in
-           *-n32*)
-               case "$ccflags" in
-               *-DUSE_64_BITS*) ;;
-               *) ccflags="$ccflags -DUSE_64_BITS" ;;
-               esac
-               archname64="-n32"
-               ;;
-           esac
            ;;
 esac
 EOCBU
index cbc71d8..dc11d82 100644 (file)
@@ -333,33 +333,13 @@ EOM
 esac
 EOCBU
 
-# 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
-       '');;
-       *) use64bits="$define"
-           echo "(Large files in Solaris require also using long longs...)"
-          case "$ccflags" in
-          *-DUSE_64_BITS*) ;;
-          *) ccflags="$ccflags -DUSE_64_BITS" ;;
-          esac
-          ccflags="$ccflags $lfcflags"
-          ldflags="$ldflags $lfldflags"
-          libswanted="$libswanted $lflibs"
-          ;;
-       esac
-       lfcflags=''
-       lfldflags=''
-       lflibs=''
-       ;;
+    ccflags="$ccflags `getconf LFS_CFLAGS 2>/dev/null`"
+    ldflags="$ldflags `getconf LFS_LDFLAGS 2>/dev/null`"
+    libswanted="$libswanted `getconf LFS_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`"
+    ;;
 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.
@@ -375,16 +355,25 @@ EOM
                exit 1
                ;;
            esac
-           case "$ccflags" in
-           *-DUSE_64_BITS*) ;;
-           *) ccflags="$ccflags -DUSE_64_BITS" ;;
-           esac
            # When a 64-bit cc becomes available $archname64
            # may need setting so that $archname gets it attached.
            ;;
 esac
 EOCBU
 
+case "$usefull64bits" in
+$define|true|[yY]*)
+           case "$ccflags" in
+           *-DUSE_FULL_64_BITS*) ;;
+           *) ccflags="$ccflags -DUSE_FULL_64_BITS" ;;
+           esac
+           ccflags="$ccflags `getconf XBS5_LP64_OFF64_CFLAGS`"
+           ldflags="$ccflags `getconf XBS5_LP64_OFF64_LDFLAGS`"
+           lddlflags="$lddlflags -G `getconf XBS5_LP64_OFF64_LDFLAGS`"
+           loclibpth=/usr/lib/sparcv9
+           ;;
+esac
 # This is just a trick to include some useful notes.
 cat > /dev/null <<'End_of_Solaris_Notes'