X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/misc/blobdiff_plain/0da5c4d5212167b482558888097cc516e20008bf..ed68d9a61a11bc1ba3f80c1b51c2715906c62f87:/configure.ac diff --git a/configure.ac b/configure.ac index 5726489..97e1c30 100644 --- a/configure.ac +++ b/configure.ac @@ -31,6 +31,16 @@ AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE([foreign]) mdw_SILENT_RULES +AC_ARG_WITH([logdir], + AS_HELP_STRING([--with-logdir=DIR], + [Write log files here.]), + [logdir=$withval], + [logdir=/var/log + for i in /var/log /var/adm; do + if test -d $i; then logdir=$i; break; fi + done]) +AC_SUBST(logdir) + AC_CANONICAL_HOST dnl-------------------------------------------------------------------------- @@ -49,9 +59,6 @@ LIBS=$OLIBS AC_CHECK_LIB([cdb], [cdb_seek], [have_cdb=yes], [have_cdb=no]) AM_CONDITIONAL([HAVE_LIBCDB], [test $have_cdb = yes]) -AC_CHECK_LIB([spamc], [message_filter], [have_spamc=yes], [have_spamc=no]) -AM_CONDITIONAL([HAVE_LIBSPAMC], [test $have_spamc = yes]) - ## Packages. PKG_CHECK_MODULES([mLib], [mLib >= 2.0.4], [have_mLib=yes], [have_mLib=no]) AM_CONDITIONAL([HAVE_MLIB], [test $have_mLib = yes]) @@ -65,7 +72,7 @@ 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 +case "$host_cpu" in i?86 | x86_64) x86=yes;; *) x86=no;; esac AM_CONDITIONAL([X86], [test $x86 = yes -a $GCC = yes]) dnl--------------------------------------------------------------------------