X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fhpux.sh;h=f99168e66c7d1906fb3fd2f67fe56567e058a148;hb=55ec0dff636c2a8ee5225314d7d46f928ab7f6da;hp=f769e5126ab4cd0c8a06aa6fb793781c7b212287;hpb=e5a5d6fc5bfc91354849d01dab4490ad7a3e32fc;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/hpux.sh b/hints/hpux.sh index f769e51..f99168e 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -78,7 +78,7 @@ case `$cc -v 2>&1`"" in ccflags="$cc_cppflags" if [ "X$gccversion" = "X" ]; then # Done too late in Configure if hinted - gccversion=`$cc --version | sed 's/.*(GCC) *//'` + gccversion=`$cc -dumpversion` fi case "$gccversion" in [012]*) # HP-UX and gcc-2.* break UINT32_MAX :-( @@ -157,7 +157,7 @@ case `$cc -v 2>&1`"" in done [ -z "$cc_found" ] && cc_found=`which cc` what $cc_found >&4 - ccversion=`what $cc_found | awk '/Compiler/{print $2}/Itanium/{print $6,$7}'` + ccversion=`what $cc_found | awk '/Compiler/{print $2}/Itanium/{print $6,$7}/for Integrity/{print $6}'` case "$ccflags" in "-Ae "*) ;; *) ccflags="-Ae $cc_cppflags" @@ -188,14 +188,17 @@ toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"' gcc_64native=no case "$ccisgcc" in $define|true|[Yy]) - echo 'int main(){long l;printf("%d\\n",sizeof(l));}'>try.c + echo '#include \nint main(){long l;printf("%d\\n",sizeof(l));}'>try.c $cc -o try $ccflags $ldflags try.c if [ "`try`" = "8" ]; then - cat <&4 + case "$use64bitall" in + $define|true|[Yy]) ;; + *) cat <&4 *** This version of gcc uses 64 bit longs. -Duse64bitall is *** implicitly set to enable continuation EOM + esac use64bitall=$define gcc_64native=yes fi @@ -215,18 +218,6 @@ case "$archname" in # While here, override so=sl auto-detection so='so' ;; - *) - case "$uselongdouble" in - *) ;; - $define|true|[yY]*) - cat <&4 - -*** long doubles are not (yet) supported on HP-UX (any version) -*** Until it does, we cannot continue, aborting. -EOM - exit 1 ;; - esac - ;; esac case "$use64bitint" in @@ -336,6 +327,7 @@ else ## Optimization limits cat >try.c < #include int main () @@ -361,6 +353,7 @@ to at least 0x08000000 (128 Mb) and rebuild your kernel. EOM regexec_cflags='' doop_cflags='' +op_cflags='' fi case "$ccisgcc" in @@ -420,7 +413,8 @@ case "$ccisgcc" in # maint (5.8.8+) and blead (5.9.3+) # -O1/+O1 passed all tests (m)'05 [ 10 Jan 2005 ] optimize="$opt" ;; - *) doop_cflags="optimize=\"$opt\"" ;; + *) doop_cflags="optimize=\"$opt\"" + op_cflags="optimize=\"$opt\"" ;; esac ;; esac @@ -639,8 +633,14 @@ EOM set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` shift libswanted="$*" - fi + # HP-UX 11.X seems to have no easy + # way of detecting these *time_r protos. + d_gmtime_r_proto='define' + gmtime_r_proto='REENTRANT_PROTO_S_TS' + d_localtime_r_proto='define' + localtime_r_proto='REENTRANT_PROTO_S_TS' + fi ;; esac EOCBU