chiark / gitweb /
configure.ac: Fix the `--with-perlmoddir' help text.
[misc] / configure.ac
index 59f5c94ae1d96e4e211748e568743a74ae235985..572648969ab648e9533123a3f39b6f6999169bab 100644 (file)
@@ -29,6 +29,7 @@ AC_INIT([nsict-utils], AUTO_VERSION, [mdw@distorted.org.uk])
 AC_CONFIG_SRCDIR([shadowfix.in])
 AC_CONFIG_AUX_DIR([config])
 AM_INIT_AUTOMAKE([foreign])
+mdw_SILENT_RULES
 
 AC_CANONICAL_HOST
 
@@ -59,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])
@@ -79,9 +84,8 @@ AC_PATH_PROGS([PERL], [perl perl5], [false])
 AX_PROG_PERL_VERSION([5.004], [have_perl=yes], [have_perl=no])
 AM_CONDITIONAL([HAVE_PERL], [test $have_perl = yes])
 
-AC_ARG_WITH(
-       [perlmoddir],
-       AS_HELP_STRING([--perlmoddir=DIR],
+AC_ARG_WITH([perlmoddir],
+       AS_HELP_STRING([--with-perlmoddir=DIR],
                       [Install Perl modules here.]),
        [perlmoddir=$withval],
        [perlmoddir='${libdir}/site_perl'])