Index: configure.in
===================================================================
RCS file: /m0xa/cvs/phoenix/2.2.6/srclib/apr/configure.in,v
retrieving revision 1.1.1.1
diff -u -d -b -r1.1.1.1 configure.in
--- configure.in	19 Sep 2007 10:33:37 -0000	1.1.1.1
+++ configure.in	16 Nov 2007 18:22:28 -0000
@@ -511,6 +511,9 @@
     *darwin*)
         os_version=`uname -r | sed -e 's/\(.\)\.\(.\).*/\1\2/'`
         ;;
+    *os390)
+        os_version=`uname -r | sed -e 's/\.//g'`
+        ;;
     *)
         os_version=OS_VERSION_IS_NOT_SET
         ;;
@@ -1778,6 +1781,15 @@
       if test -r $f; then
         apr_devrandom=$f
         rand=1
+        case $host in
+          *os390)
+            AC_MSG_RESULT([DAJ os_version is $os_version])
+            if test $os_version -lt 1700; then
+              rand="0"
+              AC_MSG_RESULT([zOS version $os_version is not usable with APR])
+            fi
+            ;;
+        esac
         break
       fi
     done
