Re: [perl #17605] strange behaviour (difference between perl 5.6 and perl 5.8.0)...
[p5sagit/p5-mst-13.2.git] / hints / aix.sh
index 4ccbc68..2ef55f2 100644 (file)
@@ -209,6 +209,32 @@ esac
 # the required -bE:$installarchlib/CORE/perl.exp is added by
 # libperl.U (Configure) later.
 
+case "$cc" in
+*gcc*) ;;
+cc*|xlc*) # cc should've been set by line 116 or so if empty.
+       if test ! -x /usr/bin/$cc -a -x /usr/vac/bin/$cc; then
+               case ":$PATH:" in
+               *:/usr/vac/bin:*) ;;
+               *) if test ! -x /QOpenSys/usr/bin/$cc; then
+                       # The /QOpenSys/usr/bin/$cc saves us if we are
+                       # building natively in OS/400 PASE.
+                       cat >&4 <<EOF
+
+***
+*** You either implicitly or explicitly specified an IBM C compiler,
+*** but you do not seem to have one in /usr/bin, but you seem to have
+*** the VAC installed in /usr/vac, but you do not have the /usr/vac/bin
+*** in your PATH.  I suggest adding that and retrying Configure.
+***
+EOF
+                       exit 1
+                  fi 
+                  ;;
+               esac
+       fi
+       ;;
+esac
+
 case "$ldlibpthname" in
 '') ldlibpthname=LIBPATH ;;
 esac
@@ -513,4 +539,37 @@ else
        esac
 fi
 
+case "$PASE" in
+define)
+       case "$prefix" in
+       '') prefix=/QOpenSys/perl ;;
+       esac
+       cat >&4 <<EOF
+
+***
+*** You seem to be compiling in AIX for the OS/400 PASE environment.
+*** I'm not going to use the AIX bind, nsl, and possible util libraries, then.
+*** I'm also not going to install perl as /usr/bin/perl.
+*** Perl will be installed under $prefix.
+*** For instructions how to install this build from AIX to PASE,
+*** see the file README.os400.  Accept the "aix" for the question
+*** about "Operating system name".
+***
+EOF
+       set `echo " $libswanted " | sed -e 's@ bind @ @' -e 's@ nsl @ @' -e 's@ util @ @'`
+       shift
+       libswanted="$*"
+       installusrbinperl="$undef"
+
+       # V5R1 doesn't have this (V5R2 does), without knowing
+       # which one we have it's safer to be pessimistic.
+       # Cwd will work fine even without fchdir(), but if
+       # V5R1 tries to use code compiled assuming fchdir(),
+       # lots of grief will issue forth from Cwd.
+       case "$d_fchdir" in
+       '') d_fchdir="$undef" ;;
+       esac
+       ;;
+esac
+
 # EOF