dnl -*-autoconf-*-
dnl
-dnl Configuration script for nsict-utils
+dnl Configuration script for distorted-utils
dnl
dnl (c) 2008 Mark Wooding
dnl
dnl Initialization.
mdw_AUTO_VERSION
-AC_INIT([nsict-utils], AUTO_VERSION, [mdw@distorted.org.uk])
+AC_INIT([distorted-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_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--------------------------------------------------------------------------
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])
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--------------------------------------------------------------------------