summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2019-08-26 17:34:45 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2019-08-26 17:34:45 +0200
commitaefd177b047eb548e63ac94c9eb442604175d3bc (patch)
tree77959ae585d8e7b0e51ed08a2bcce5aa9938c163 /configure
parent55f1d8a2697c6641215604ee32181d7ead7b8d85 (diff)
downloadlvm2-aefd177b047eb548e63ac94c9eb442604175d3bc.tar.gz
configure: continue build if prlimit is missing
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure b/configure
index 7bb038a20..6dd7edac3 100755
--- a/configure
+++ b/configure
@@ -6647,7 +6647,7 @@ $as_echo "#define _REENTRANT 1" >>confdefs.h
################################################################################
for ac_func in ftruncate gethostname getpagesize gettimeofday localtime_r \
- memchr memset mkdir mkfifo munmap nl_langinfo prlimit pselect realpath rmdir setenv \
+ memchr memset mkdir mkfifo munmap nl_langinfo pselect realpath rmdir setenv \
setlocale strcasecmp strchr strcspn strdup strerror strncasecmp strndup \
strrchr strspn strstr strtol strtoul uname
do :
@@ -6663,6 +6663,17 @@ else
fi
done
+for ac_func in prlimit
+do :
+ ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
+if test "x$ac_cv_func_prlimit" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_PRLIMIT 1
+_ACEOF
+
+fi
+done
+
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5