chiark / gitweb /
prlimit: New program for fiddling with resource limits.
[misc] / configure.ac
index 3642a8a487922f32e176a9de0352482558eaaa46..2ee58af647b876dded1e6ac76d1cfdbc2df8eeae 100644 (file)
@@ -60,6 +60,10 @@ PKG_CHECK_MODULES([catacomb], [catacomb >= 2.1.1],
                  [have_catacomb=yes], [have_catacomb=no])
 AM_CONDITIONAL([HAVE_CATACOMB], [test $have_catacomb = yes])
 
+## Functions.
+AC_CHECK_FUNC([prlimit], [have_prlimit=yes], [have_prlimit=no])
+AM_CONDITIONAL([HAVE_PRLIMIT], [test $have_prlimit = yes])
+
 ## Processor type.
 case "$host_cpu" in i?86) x86=yes;; *) x86=no;; esac
 AM_CONDITIONAL([X86], [test $x86 = yes -a $GCC = yes])