The VM/ESA port essentials, based on
[p5sagit/p5-mst-13.2.git] / hints / svr4.sh
index ed1640b..cf6906d 100644 (file)
@@ -23,7 +23,7 @@ libswanted=`echo " $libswanted " | sed -e 's/ malloc / /'` # -e 's/ ucb / /'`
 #   it is needed for ODBM_File and NDBM_File extensions.
 
 if [ -r /usr/ucblib/libucb.a ]; then   # If using BSD-compat. library:
-    d_Gconvert='gcvt'  # Try gcvt() before gconvert().
+    d_Gconvert='gcvt((x),(n),(b))'     # Try gcvt() before gconvert().
     # Use the "native" counterparts, not the BSD emulation stuff:
     d_bcmp='undef' d_bcopy='undef' d_bzero='undef' d_safebcpy='undef'
     d_index='undef' d_killpg='undef' d_getprior='undef' d_setprior='undef'
@@ -70,7 +70,8 @@ fi
 # is probably a reasonable way of detecting UnixWare.  
 # UnixWare has a broken csh.  (This might already be detected above).
 # In Unixware 2.1.1 the fields in FILE* got renamed!
-$ Unixware 1.1 can't cast large floats to 32-bit ints.
+# Unixware 1.1 can't cast large floats to 32-bit ints.
+# Configure can't detect memcpy or memset on Unixware 2 or 7
 #
 #    Leave leading tabs on the next two lines so Configure doesn't 
 #    propagate these variables to config.sh
@@ -88,9 +89,26 @@ if [ "$uw_isuw" = "Release = 4.2MP" ]; then
    case $uw_ver in
    2.1)
        d_csh='undef'
+       d_memcpy='define'
+       d_memset='define'
        ;;
    2.1.*)
        d_csh='undef'
+       d_memcpy='define'
+       d_memset='define'
+       stdio_cnt='((fp)->__cnt)'
+       d_stdio_cnt_lval='define'
+       stdio_ptr='((fp)->__ptr)'
+       d_stdio_ptr_lval='define'
+       ;;
+   esac
+fi
+if [ "$uw_isuw" = "Release = 5" ]; then
+   case $uw_ver in
+   7)
+       d_csh='undef'
+       d_memcpy='define'
+       d_memset='define'
        stdio_cnt='((fp)->__cnt)'
        d_stdio_cnt_lval='define'
        stdio_ptr='((fp)->__ptr)'