From 085ac6fe449c57fc1d0001c6d624d51bc0b390d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Thu, 27 May 1999 13:49:18 +0200
Subject: [PATCH] Minor change in the poll(2) defaulting code.

Rev: src/configure.in:1.289
---
 src/configure.in | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/src/configure.in b/src/configure.in
index cd2a7bffa9..df24c56f53 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,4 +1,4 @@
-AC_REVISION("$Id: configure.in,v 1.288 1999/05/27 08:22:07 hubbe Exp $")
+AC_REVISION("$Id: configure.in,v 1.289 1999/05/27 11:49:18 grubba Exp $")
 AC_INIT(interpret.c)
 AC_CONFIG_HEADER(machine.h)
 
@@ -273,18 +273,15 @@ AC_ARG_WITH(poll,        [  --with-poll            use poll instead of select],[
       with_poll=yes
     ;;
     AIX)
+      # poll(2) is broken on AIX 4.1 and earlier.
       if test "`uname -r`" -ge 2 -a "`uname -v`" -ge 4 ; then
-        AC_MSG_WARN([Defaulting to --with-poll since the OS is AIX >= 4.2])
         with_poll=yes
-
-      else
-        if test "`uname -v`" -gt 4 ; then
-          AC_MSG_WARN([Defaulting to --with-poll since the OS is AIX >= 4.2])
-          with_poll=yes
-        else
-          :
-        fi
-      fi
+      else if test "`uname -v`" -gt 4 ; then
+        with_poll=yes
+      else :; fi
+      if test "$with_poll" = "yes" ; then
+        AC_MSG_WARN([Defaulting to --with-poll since the OS AIX 4.2 or later.])
+      else :; fi
     ;;
   esac
 ])
-- 
GitLab