X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fsvr5.sh;h=ff08fcc18589431bf66ac41da64826737ca16c2e;hb=6137113dfd943e6f896f8b9c1a4df2b7d4e355ae;hp=5f772599ebe2a78158b795616ec7a26c53aa08b5;hpb=973abda3de19f81f0355443e0fb0b20961973762;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/svr5.sh b/hints/svr5.sh index 5f77259..ff08fcc 100644 --- a/hints/svr5.sh +++ b/hints/svr5.sh @@ -1,4 +1,4 @@ -# svr5 hints, System V Release 5.x (UnixWare 7) +# svr5 hints, System V Release 5.x (UnixWare 7, OpenUNIX 8) # mods after mail fm Andy Dougherty # Reworked by hops@sco.com Sept/Oct 1999 for UW7.1 platform support # Boyd Gerber, gerberb@zenez.com 1999/09/21 for threads support. @@ -10,8 +10,11 @@ case "$cc" in *gcc*) # "$gccversion" not set yet - vers=`gcc -v 2>&1 | sed -n -e 's@.*version \([^ ][^ ]*\) .*@\1@p'` - case $vers in + if [ "X$gccversion" = "X" ]; then + # Done too late in Configure if hinted + gccversion=`$cc --version | sed 's/.*(GCC) *//'` + fi + case $gccversion in *2.95*) ccflags='-fno-strict-aliasing' # More optimisation provided in gcc-2.95 causes miniperl to segv. @@ -87,20 +90,19 @@ glibpth=`echo " $glibpth " | sed -e 's/ \/shlib / /' -e 's/ \/lib / /'` # Don't use BSD emulation pieces (/usr/ucblib) regardless # these would probably be autonondetected anyway but ... -d_Gconvert='gcvt((x),(n),(b))' # Try gcvt() before gconvert(). +gconvert_preference='gcvt sprintf' # Try gcvt() before gconvert(). d_bcopy='undef' d_bcmp='undef' d_bzero='undef' d_safebcpy='undef' d_index='undef' d_killpg='undef' d_getprior='undef' d_setprior='undef' d_setlinebuf='undef' d_setregid='undef' d_setreuid='undef' # -- in /usr/lib/libc.so.1 - # Broken C-Shell tests (Thanks to Tye McQueen): # The OS-specific checks may be obsoleted by the this generic test. sh_cnt=`sh -c 'echo /*' | wc -c` csh_cnt=`csh -f -c 'glob /*' 2>/dev/null | wc -c` csh_cnt=`expr 1 + $csh_cnt` if [ "$sh_cnt" -ne "$csh_cnt" ]; then - echo "You're csh has a broken 'glob', disabling..." >&2 + echo "Your csh has a broken 'glob', disabling..." >&2 d_csh='undef' fi @@ -113,9 +115,9 @@ fi uw_ver=`uname -v` uw_isuw=`uname -s 2>&1` -if [ "$uw_isuw" = "UnixWare" ]; then +if [ "$uw_isuw" = "UnixWare" -o "$uw_isuw" = "OpenUNIX" ]; then case $uw_ver in - 7.1*) + 8.*|7.1*) d_csh='undef' d_memcpy='define' d_memset='define' @@ -157,8 +159,10 @@ fi # lddlflags : must tell the linker to output a shared library # use shared perl lib if the user doesn't choose otherwise -if test "x$useshrplib" = "x"; then - useshrplib='true' +if test "$uw_isuw" != "OpenUNIX"; then + if test "x$useshrplib" = "x"; then + useshrplib='true' + fi fi case "$cc" in @@ -185,7 +189,7 @@ case "$usethreads" in $define|true|[yY]*) ccflags="$ccflags" shift - libswanted="$*" + libswanted="$libswanted $*" case "$cc" in *gcc*) ccflags="-D_REENTRANT $ccflags -fpic -pthread"