summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2007-11-18 20:15:22 +0000
committerJeff Trawick <trawick@apache.org>2007-11-18 20:15:22 +0000
commit9df87124c53e6b98df14b6b19dc77ae6814c65f0 (patch)
tree9d457581251f2d81666dce8a87805824b39829d3 /configure.in
parent8c388466b88bca6c29174f2d5a736163a81620cc (diff)
downloadapr-9df87124c53e6b98df14b6b19dc77ae6814c65f0.tar.gz
ignore /dev/*random on z/OS < V1R7
Submitted by: David Jones; heavily modified by trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@596126 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 5d2b4173b..89211724e 100644
--- a/configure.in
+++ b/configure.in
@@ -568,6 +568,9 @@ case $host in
*linux*)
os_version=`uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/'`
;;
+ *os390)
+ os_version=`uname -r | sed -e 's/\.//g'`
+ ;;
*)
os_version=OS_VERSION_IS_NOT_SET
;;
@@ -1929,6 +1932,8 @@ fi
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])
@@ -1966,6 +1971,17 @@ if test "$rand" != "1"; then
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
@@ -1985,7 +2001,7 @@ if test "$rand" != "1"; then
AC_MSG_RESULT(truerand)
rand="1"
else
- AC_MSG_RESULT(not found)
+ AC_MSG_RESULT(not found$why_no_rand)
rand="0"
fi
fi