apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r596431 - /apr/apr/branches/1.2.x/configure.in
Date Mon, 19 Nov 2007 20:23:41 GMT
Author: trawick
Date: Mon Nov 19 12:23:40 2007
New Revision: 596431

URL: http://svn.apache.org/viewvc?rev=596431&view=rev
Log:
backport r596126 from trunk:

ignore /dev/*random on z/OS < V1R7

Submitted by: David Jones; heavily modified by trawick


Modified:
    apr/apr/branches/1.2.x/configure.in

Modified: apr/apr/branches/1.2.x/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/configure.in?rev=596431&r1=596430&r2=596431&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/configure.in (original)
+++ apr/apr/branches/1.2.x/configure.in Mon Nov 19 12:23:40 2007
@@ -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
         ;;
@@ -1796,6 +1799,8 @@
 dnl ----------------------------- Checking for /dev/random 
 AC_MSG_CHECKING(for entropy source)
 
+why_no_rand=""
+
 AC_ARG_WITH(egd, 
   [  --with-egd[[=DIR]]        use EGD-compatible socket],
   [ AC_DEFINE(HAVE_EGD, 1, [Define if EGD is supported])
@@ -1833,6 +1838,17 @@
   fi
 
   if test "$rand" = "1"; then
+    case $host in
+      *os390)
+        if test $os_version -lt 1700; then
+          rand="0"
+          why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
+        fi
+        ;;
+    esac
+  fi
+
+  if test "$rand" = "1"; then
     AC_DEFINE_UNQUOTED(DEV_RANDOM, ["$apr_devrandom"], [Define to path of random device])
     AC_MSG_RESULT([$apr_devrandom])
   fi
@@ -1852,7 +1868,7 @@
                 AC_MSG_RESULT(truerand)
                 rand="1"
               else
-                AC_MSG_RESULT(not found)
+                AC_MSG_RESULT(not found$why_no_rand)
                 rand="0"
               fi
             fi



Mime
View raw message