summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1995-02-05 23:45:49 +0000
committerRoland McGrath <roland@redhat.com>1995-02-05 23:45:49 +0000
commitfecd9e661a02e8f1608398220a324aa7032cd0b6 (patch)
tree40f8de665541d306ea6fa4125ba6632f9fa56e12
parent2914c705e59a1fb26c940f9eb6ed868693b53661 (diff)
downloadgunmake-fecd9e661a02e8f1608398220a324aa7032cd0b6.tar.gz
(make_cv_sysconf_open_max): New check for `sysconf (_SC_OPEN_MAX)'.
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 1a58c0b..561a882 100644
--- a/configure.in
+++ b/configure.in
@@ -54,6 +54,17 @@ AC_FUNC_SETVBUF_REVERSED
AC_FUNC_GETLOADAVG
AC_FUNC_STRCOLL
+if test $ac_cv_func_getdtablesize = no; then
+ AC_MSG_CHECKING(for sysconf (_SC_OPEN_MAX))
+ AC_CACHE_VAL(make_cv_sysconf_open_max, [dnl
+ AC_TRY_LINK([#include <unistd.h>], [int max = sysconf (_SC_OPEN_MAX);],
+ [make_cv_sysconf_open_max=yes], [make_cv_sysconf_open_max=no])])
+ if test $make_cv_sysconf_open_max = yes; then
+ AC_DEFINE(HAVE_SYSCONF_OPEN_MAX)
+ fi
+ AC_MSG_RESULT($make_cv_sysconf_open_max)
+fi
+
# Check out the wait reality.
AC_CHECK_HEADERS(sys/wait.h) AC_CHECK_FUNCS(waitpid wait3)
AC_MSG_CHECKING(for union wait)