dnl Process this file with autoconf to produce a configure script.
dnl
-dnl $Id: configure.in,v 1.165 2008/07/12 19:15:05 mrsam Exp $
+dnl $Id: configure.in,v 1.177 2009/12/25 21:53:37 mrsam Exp $
dnl
-dnl Copyright 1998 - 2008 Double Precision, Inc. See COPYING for
+dnl Copyright 1998 - 2009 Double Precision, Inc. See COPYING for
dnl distribution information.
-AC_PREREQ(2.59)
-AC_INIT(courier-authlib, 0.61.0, [courier-imap@lists.sourceforge.net])
+AC_PREREQ(2.63)
+AC_INIT([courier-authlib],[0.63.0],[courier-users@lists.sourceforge.net])
AC_CONFIG_SRCDIR([courierauth.h])
-AM_CONFIG_HEADER([courier_auth_config.h])
+AC_CONFIG_HEADERS([courier_auth_config.h])
+AC_CONFIG_MACRO_DIR([libltdl/m4])
AM_INIT_AUTOMAKE
>confdefs.h # Kill PACKAGE_ macros
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_SYSCONFTOOL
-AC_LIBLTDL_INSTALLABLE
-AC_LIBTOOL_DLOPEN
-AM_PROG_LIBTOOL
+LT_CONFIG_LTDL_DIR([libltdl])
+LT_INIT(dlopen)
+LTDL_INIT
AC_SUBST(LTDLINCL)
AC_SUBST(LIBLTDL)
AC_PATH_PROGS(PERL, perl5 perl, perl, $LPATH)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
-AC_PID_T
+AC_TYPE_PID_T
AC_TYPE_UID_T
-AC_TYPE_SIGNAL
-
dnl Other checks
AC_CHECK_FUNCS(setsid setlogin)
AC_CHECK_LIB(crypt, crypt, CRYPTLIBS="-lcrypt")
LIBS="$saveLIBS"
AC_CACHE_CHECK([for crypt() prototype],userdb_cv_NEED_CRYPT_PROTOTYPE,
- AC_TRY_COMPILE( [
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#if HAVE_CRYPT_H
#include <crypt.h>
#endif
#endif
int crypt(int, int);
- ], [], userdb_cv_NEED_CRYPT_PROTOTYPE=1,
- userdb_cv_NEED_CRYPT_PROTOTYPE=0 )
+ ]], [[]])],[userdb_cv_NEED_CRYPT_PROTOTYPE=1],[userdb_cv_NEED_CRYPT_PROTOTYPE=0 ])
)
if test "$cmailuser" = ""
then
- AC_TRY_RUN([
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdio.h>
#include <pwd.h>
#include <stdlib.h>
exit (1);
return (1);
}
- ],
- mailuser=`cat conftest.out`,
- AC_MSG_ERROR(Cannot determine mail user, use --with-mailuser.),
- AC_MSG_ERROR(Must use --with-mailuser when cross compiling.))
+ ]])],[mailuser=`cat conftest.out`],[AC_MSG_ERROR(Cannot determine mail user, use --with-mailuser.)],[AC_MSG_ERROR(Must use --with-mailuser when cross compiling.)])
else
mailuser="$cmailuser"
fi
if test "$cmailgroup" = ""
then
- AC_TRY_RUN([
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdio.h>
#include <grp.h>
#include <stdlib.h>
exit (1);
return (1);
}
- ],
-
- mailgroup=`cat conftest.out`,
- AC_MSG_ERROR(Cannot determine mail group, use --with-mailgroup.),
- AC_MSG_ERROR(Must use --with-mailgroup when cross compiling.))
+ ]])],[mailgroup=`cat conftest.out`],[AC_MSG_ERROR(Cannot determine mail group, use --with-mailgroup.)],[AC_MSG_ERROR(Must use --with-mailgroup when cross compiling.)])
else
mailgroup="$cmailgroup"
fi
AC_SUBST(REPOSITORY)
AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/docbook)
-AC_CONFIG_SUBDIRS(libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog)
+AC_CONFIG_SUBDIRS(bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb unicode rfc822 random128 liblock liblog)
AC_CONFIG_FILES(Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit userdb-test-cram-md5.pl)
AC_OUTPUT