Add workaround for Darwin's (Mac OS X's) INT32_MIN
[p5sagit/p5-mst-13.2.git] / hints / solaris_2.sh
index a3de6a2..86a375b 100644 (file)
@@ -1,5 +1,5 @@
 # hints/solaris_2.sh
-# Last modified: Tue Jan  2 10:16:35 2001
+# Last modified: Mon Jan 29 12:52:28 2001
 # Lupe Christoph <lupe@lupe-christoph.de>
 # Based on version by:
 # Andy Dougherty  <doughera@lafayette.edu>
 #  these ought to be harmless.  See below for more details.
 
 # See man vfork.
-usevfork=false
+usevfork=${usevfork:-false}
 
-d_suidsafe=define
+# Solaris has secure SUID scripts
+d_suidsafe=${d_suidsafe:-define}
+
+# Several people reported problems with perl's malloc, especially
+# when use64bitall is defined or when using gcc.
+#     http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2001-01/msg01318.html
+#     http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2001-01/msg00465.html
+usemymalloc=${usemymalloc:-false}
 
 # Avoid all libraries in /usr/ucblib.
 # /lib is just a symlink to /usr/lib
@@ -210,12 +217,6 @@ if echo "$verbose" | grep '^Reading specs from' >/dev/null 2>&1; then
        # Using gcc.
        #
 
-       tmp=`echo "$verbose" | grep '^Reading' |
-               awk '{print $NF}'  | sed 's/specs$/include/'`
-
-       # Determine if the fixed-includes look like they'll work.
-       # Doesn't work anymore for gcc-2.7.2.
-
        # See if as(1) is GNU as(1).  GNU as(1) might not work for this job.
        if echo "$verbose" | grep ' /usr/ccs/bin/as ' >/dev/null 2>&1; then
            :
@@ -313,22 +314,12 @@ END
        # See if ld(1) is GNU ld(1).  GNU ld(1) might not work for this job.
        # ld --version doesn't properly report itself as a GNU tool,
        # as of ld version 2.6, so we need to be more strict. TWP 9/5/96
-       gnu_ld=false
-       case `ld --version < /dev/null 2>&1` in
-       *GNU*|ld\ version\ 2*)
-               gnu_ld=true ;;
-       *) ;;
-       esac
-       if $gnu_ld ; then :
+       # Sun's ld always emits the "Software Generation Utilities" string.
+       if ld -V 2>&1 | grep "ld: Software Generation Utilities" >/dev/null 2>&1; then
+           # Ok, ld is /usr/ccs/bin/ld.
+           :
        else
-               # Try to guess from path
-               case `type ld | awk '{print $NF}'` in
-               *gnu*|*GNU*|*FSF*)
-                       gnu_ld=true ;;
-               esac
-       fi
-       if $gnu_ld ; then
-               cat <<END >&2
+           cat <<END >&2
 
 NOTE: You are apparently using GNU ld(1).  GNU ld(1) might not build Perl.
 You should arrange to use /usr/ccs/bin/ld, perhaps by adding /usr/ccs/bin