typo on h2xs.PL (from Helmut Jarausch)
[p5sagit/p5-mst-13.2.git] / hints / irix_6.sh
index 2c14041..f4bbf32 100644 (file)
@@ -226,6 +226,8 @@ EOM
 esac
 EOCBU
 
+# The -n32 makes off_t to be 8 bytes, so we should have largefileness.
+
 # 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'
@@ -241,9 +243,12 @@ EOM
                exit 1
                ;;
            esac
-           case "$ccflags" in
+           case "$cc $ccflags" in
            *-n32*)
-               ccflags="$ccflags -DUSE_LONG_LONG"
+               case "$ccflags" in
+               *-DUSE_LONG_LONG) ;;
+               *) ccflags="$ccflags -DUSE_LONG_LONG" ;;
+               esac
                archname64="-n32"
                ;;
            esac