summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 26a0f225..0f2b97ff 100755
--- a/configure
+++ b/configure
@@ -3721,6 +3721,25 @@ else
printf "no\n"
fi
+printf "Checking for getrlimit ... "
+cat > conftest.c <<!
+#include <sys/resource.h>
+
+int main(void)
+{
+ struct rlimit rl;
+ int res = getrlimit(RLIMIT_STACK, &rl);
+ return 0;
+}
+!
+
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_RLIMIT 1\n" >> config.h
+else
+ printf "no\n"
+fi
+
#
# Dependent variables
#