HP-UX gcc fix; detypo in use64bits.
[p5sagit/p5-mst-13.2.git] / Configure
index 66418e7..ea4abda 100755 (executable)
--- 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 Feb 28 07:08:11 EET 2000 [metaconfig 3.0 PL70]
+# Generated on Tue Feb 29 18:49:00 EET 2000 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.com)
 
 cat >/tmp/c1$$ <<EOF
@@ -418,6 +418,7 @@ d_longlong=''
 longlongsize=''
 d_lseekproto=''
 d_lstat=''
+d_madvise=''
 d_mblen=''
 d_mbstowcs=''
 d_mbtowc=''
@@ -981,10 +982,10 @@ defvoidused=15
 
 : List of libraries we want.
 : If anyone needs -lnet, put it in a hint file.
-libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl'
+libswanted='sfio socket bind inet nsl nm ndbm gdbm dbm db malloc dl'
 libswanted="$libswanted dld ld sun m c cposix posix"
 libswanted="$libswanted ndir dir crypt sec"
-libswanted="$libswanted ucb bsd BSD PW x"
+libswanted="$libswanted ucb bsd BSD PW x iconv"
 : We probably want to search /usr/shlib before most other libraries.
 : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist.
 glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'`
@@ -3740,6 +3741,7 @@ for thislib in $libswanted; do
                xxx=$thisdir/lib${thislib}_s$_a
                $test -f "$xxx" && eval $libscheck
                $test -f "$xxx" && libstyle=static
+               $test -f "$xxx" && thislib=${thislib}_s
            fi
            if test ! -f "$xxx"; then
                xxx=$thisdir/Slib$thislib$_a
@@ -4298,7 +4300,6 @@ case "$uselfs" in
        cat <<EOM >&4
 
 *** Configure -Duselfs is deprecated, using -Duselargefiles instead.
-
 EOM
        uselargefiles="$define"
        ;;
@@ -4418,7 +4419,6 @@ case "$uselonglong" in
        cat <<EOM >&4
 
 *** Configure -Duselonglong is deprecated, using -Duse64bitint instead.
-
 EOM
        use64bitint="$define"
        ;;
@@ -4429,22 +4429,29 @@ case "$use64bits" in
        cat <<EOM >&4
 
 *** Configure -Duse64bits is deprecated, using -Duse64bitint instead.
-
 EOM
        use64bitint="$define"
        ;;
 esac                          
-# Thinko compatibility
+# Thinko compatibilities.
 case "$use64bitints" in
 "$define"|true|[yY]*)
        cat <<EOM >&4
 
 *** There is no Configure -Duse64bitints, using -Duse64bitint instead.
-
 EOM
        use64bitint="$define"
        ;;
 esac                          
+case "$use64bitsall" in
+"$define"|true|[yY]*)
+       cat <<EOM >&4
+
+*** There is no Configure -Duse64bitsall, using -Duse64bitall instead.
+EOM
+       use64bitall="$define"
+       ;;
+esac                          
 
 case "$ccflags" in
 *-DUSE_LONG_LONG*|*-DUSE_64_BIT_INT*|*-DUSE_64_BIT_ALL*) use64bitint="$define";;
@@ -4483,39 +4490,44 @@ esac
 set use64bitint
 eval $setvar
 
-case "$use64bitint" in
-"$define")     case "$longsize" in
-               4)      dflt='n'
-                       cat <<EOM
+cat <<EOM
 
-Since you have chosen 64-bitness you may want to try maximal 64-bitness.
-What you have chosen is minimal 64-bitness which means just enough
-to get 64-bit integers.  The maximal means using as much 64-bitness
-as is possible on the platform.  This in turn means even more binary
-incompatibilities.  On the other hand, your platform may not have
-any more maximal 64-bitness available than what you already have chosen.
+You may also choose to try maximal 64-bitness.  It means using as much
+64-bitness as possible on the platform.  This in turn means even more
+binary incompatibilities.  On the other hand, your platform may not
+have any more 64-bitness available than what you already have chosen.
 
 If this doesn't make any sense to you, just accept the default '$dflt'.
 EOM
-                       rp='Try to use full 64-bit support, if available?'
-                       . ./myread
-                       case "$ans" in
-                       [yY]*) val="$define" ;;
-                       *)     val="$undef"  ;;
-                       esac
-                       ;;
-               8) val="$define" ;;
-               *) val="$undef" ;;
-               esac
-               ;;
-*)     case "$use64bitall" in
-       "$define"|true|[yY]*) val="$define" ;;
-       *) val="$undef" ;;
-       esac
-       ;;
-esac 
+rp='Try to use maximal 64-bit support, if available?'
+case "$use64bitall" in
+"$define"|true|[yY]*) dflt='y' ;;
+*) case "$longsize" in
+   8) dflt='y' ;;
+   *) dflt='n' ;;
+   esac
+   ;;
+esac   
+. ./myread
+case "$ans" in
+[yY]*) val="$define" ;;
+*)     val="$undef"  ;;
+esac
 set use64bitall
 eval $setvar
+case "$use64bitall" in
+"$define")
+       case "$use64bitint" in
+       "$undef")
+               cat <<EOM
+
+Since you have chosen a maximally 64-bit build, I'm also turning on
+the use of 64-bit integers.
+EOM
+               use64bitint="$define" ;;
+       esac
+       ;;
+esac
 
 case "$use64bitint" in
 "$define"|true|[yY]*)
@@ -4527,11 +4539,7 @@ case "$use64bitint" in
                . ./use64bitint.cbu
        fi
        case "$longsize" in
-       4) case "$ccflags" in
-          *-DUSE_64_BIT_INT*) ;;
-          *) ccflags="$ccflags -DUSE_64_BIT_INT";;
-          esac
-          case "$archname64" in
+       4) case "$archname64" in
           '') archname64=64int ;;
           esac
           ;;
@@ -4542,19 +4550,15 @@ esac
 case "$use64bitall" in
 "$define"|true|[yY]*)
 : Look for a hint-file generated 'call-back-unit'.  If the
-: user has specified that a full 64-bit perl is to be built,
+: user has specified that a maximally 64-bit perl is to be built,
 : we may need to set or change some other defaults.
        if $test -f use64bitall.cbu; then
-               echo "Your platform has some specific hints for full 64-bit builds, using them..."
+               echo "Your platform has some specific hints for 64-bit builds, using them..."
                . ./use64bitall.cbu
        fi
        case "$longsize" in
-       4) case "$ccflags" in
-          *-DUSE_64_BIT_ALL*) ;;
-          *) ccflags="$ccflags -DUSE_64_BIT_ALL";;
-          esac
-          case "$archname64" in
-          ''|64) archname64=64all ;;
+       4) case "$archname64" in
+          ''|64int) archname64=64all ;;
           esac
           ;;
        esac
@@ -6183,7 +6187,11 @@ EOM
     case "$lddlflags" in
     '') case "$osname" in
                        beos) dflt='-nostart' ;;
-                       hpux)  dflt='-b +vnocompatwarnings' ;;
+                       hpux) case "$gccversion" in
+                             '') dflt='-b +vnocompatwarnings' ;;
+                             *)  dflt='none' ;;
+                             esac
+                             ;;        
                        linux|irix*)    dflt='-shared' ;;
                        next)  dflt='none' ;;
                        solaris) dflt='-G' ;;
@@ -9590,6 +9598,10 @@ eval $hasproto
 set lstat d_lstat
 eval $inlibc
 
+: see if madvise exists
+set madvise d_madvise
+eval $inlibc
+
 : see if mblen exists
 set mblen d_mblen
 eval $inlibc
@@ -14049,13 +14061,11 @@ cat <<'EOSH' >> Cppsym.try
 echo '}' >> try.c
 EOSH
 cat <<EOSH >> Cppsym.try
-cc="$cc"
-optimize="$optimize"
 ccflags="$ccflags"
-ldflags="$ldflags"
-libs="$libs"
-exe_ext="$exe_ext"
-$cc $optimize $ccflags $ldflags -o try try.c $libs && ./try$exe_ext
+case "$osname-$gccversion" in
+irix-) ccflags="\$ccflags -woff 1178" ;;
+esac
+$cc $optimize \$ccflags $ldflags -o try try.c $libs && ./try$exe_ext
 EOSH
 chmod +x Cppsym.try
 $eunicefix Cppsym.try
@@ -14924,6 +14934,7 @@ d_longdbl='$d_longdbl'
 d_longlong='$d_longlong'
 d_lseekproto='$d_lseekproto'
 d_lstat='$d_lstat'
+d_madvise='$d_madvise'
 d_mblen='$d_mblen'
 d_mbstowcs='$d_mbstowcs'
 d_mbtowc='$d_mbtowc'