xtitle.c: Shut up warnings about ignoring the return from write(2).
[misc] / configure.ac
index dda3d4e..3642a8a 100644 (file)
@@ -29,6 +29,9 @@ 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
 
 dnl--------------------------------------------------------------------------
 dnl C programming environment.
@@ -57,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])
 
+## Processor type.
+case "$host_cpu" in i?86) x86=yes;; *) x86=no;; esac
+AM_CONDITIONAL([X86], [test $x86 = yes -a $GCC = yes])
+
 dnl--------------------------------------------------------------------------
 dnl Python, Perl and other scripting languages.
 
@@ -70,7 +77,7 @@ AM_CONDITIONAL([HAVE_PYMOD_CDB], [test $HAVE_PYMOD_CDB = yes])
 ## Perl.
 AC_ARG_VAR([PERL], [Path to your favourite Perl binary.])
 AC_PATH_PROGS([PERL], [perl perl5], [false])
-AC_PROG_PERL_VERSION([5.004], [have_perl=yes], [have_perl=no])
+AX_PROG_PERL_VERSION([5.004], [have_perl=yes], [have_perl=no])
 AM_CONDITIONAL([HAVE_PERL], [test $have_perl = yes])
 
 AC_ARG_WITH(