1 dnl Process this file with autoconf to produce a configure script.
3 dnl $Id: configure.in,v 1.177 2009/12/25 21:53:37 mrsam Exp $
5 dnl Copyright 1998 - 2009 Double Precision, Inc. See COPYING for
6 dnl distribution information.
9 AC_INIT([courier-authlib],[0.63.0],[courier-users@lists.sourceforge.net])
11 AC_CONFIG_SRCDIR([courierauth.h])
12 AC_CONFIG_HEADERS([courier_auth_config.h])
13 AC_CONFIG_MACRO_DIR([libltdl/m4])
16 >confdefs.h # Kill PACKAGE_ macros
18 LPATH="$PATH:/usr/local/bin"
20 dnl Checks for programs.
27 LT_CONFIG_LTDL_DIR([libltdl])
32 AC_PATH_PROGS(PERL, perl5 perl, perl, $LPATH)
33 AC_PATH_PROGS(COURIERCONFIG, courier-config, courier-config, $LPATH)
35 if test "$PERL" = "perl"
37 AC_MSG_ERROR(Perl is required)
40 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43 eval "exec_prefix=$exec_prefix"
44 eval "sysconfdir=$sysconfdir"
46 eval "sbindir=$sbindir"
47 eval "localstatedir=$localstatedir"
48 eval "libexecdir=$libexecdir"
50 AC_ARG_WITH(redhat, [], [ redhat=$withval ], [redhat=no])
52 if test "$srcdir" = "."
54 case `./config.guess` in
56 if test "$redhat" = "no"
59 AC_MSG_WARN(=== I think you are trying to run this configure script)
60 AC_MSG_WARN([=== on Red Hat/Fedora. You're doing too much work!])
61 AC_MSG_WARN([=== It's much faster to create installable binary RPMs])
62 AC_MSG_WARN([=== like this: http://www.courier-mta.org/FAQ.html${hash}rpm])
63 AC_MSG_WARN(=== When you do this you may find that RPM will tell you)
64 AC_MSG_WARN([=== to install some other software first, before trying to])
65 AC_MSG_WARN([=== build this one, and even tell you the name of RPMs you])
66 AC_MSG_WARN([=== need to install from the distribution CD. That's much])
67 AC_MSG_WARN([=== easier than trying to figure out the same from some])
68 AC_MSG_WARN([=== cryptic error message.])
70 AC_MSG_WARN([=== Even if you don't intend to use everything you need to])
71 AC_MSG_WARN([=== have in order to build via RPM, you should still do as])
72 AC_MSG_WARN([=== you're told. All the extra stuff (LDAP, SQL, etc...)])
73 AC_MSG_WARN([=== goes into RPM sub-packages, which do not need to be])
74 AC_MSG_WARN([=== installed.])
75 AC_MSG_WARN([=== But, if you insist, you can simply add '--with-redhat'])
76 AC_MSG_WARN(=== parameter to this configure script and not see this)
77 AC_MSG_WARN(=== error message. You should also do this when upgrading)
78 AC_MSG_WARN([=== and you didn't use RPM with the older version.])
79 AC_MSG_ERROR(... in either case you better know what you're doing!)
86 AC_PATH_PROGS(EXPECT, expect, expect, $LPATH)
88 if test "$EXPECT" = "expect"
90 AC_MSG_WARN(-----------------------------------------------------)
91 AC_MSG_WARN(expect not found - will not be able to change passwds)
92 AC_MSG_WARN(in webmail)
93 AC_MSG_WARN(-----------------------------------------------------)
96 AC_DEFINE_UNQUOTED(HAVE_EXPECT, 1, [ Whether expect(1) is installed ])
99 AC_PATH_PROGS(PASSWD, passwd, passwd, $LPATH)
102 if test "$GCC" = "yes"
104 CFLAGS="$CFLAGS -Wall"
107 CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
109 AC_MSG_CHECKING(whether -lm is needed for floor)
110 AC_TRY_LINK_FUNC(floor,
115 AC_ARG_WITH(pkgconfdir,
116 [ --with-pkgconfdir=d Install config files in directory ],
117 [pkgconfdir="$withval"],
118 [pkgconfdir="$sysconfdir/authlib"])
124 AC_CHECK_LIB(socket,socket,result=yes,result=no)
125 if test $result = yes; then
128 AC_CHECK_LIB(socket,socket,result=yes,result=no,-lnsl)
129 if test $result = yes; then
130 NETLIBS = "-lsocket -lnsl"
133 AC_CHECK_LIB(socket,connect,result=yes,result=no)
134 if test $result = yes; then
137 AC_CHECK_LIB(socket,connect,result=yes,result=no,-lnsl)
138 if test $result = yes; then
139 NETLIBS="-lsocket -lnsl"
146 if test $USENSL != yes; then
147 LIBS="$LIBS $NETLIBS"
148 AC_TRY_LINK_FUNC(inet_addr, [ : ],
150 AC_CHECK_LIB(nsl,inet_addr,result=yes,result=no)
151 if test $result = yes; then
152 NETLIBS="$NETLIBS -lnsl"
160 dnl #########################################################################
162 dnl Prepare authuserdb module if userdb library is available
164 dnl #########################################################################
167 AC_ARG_WITH(db, [ --with-db=gdbm Use the GDBM library.
168 --with-db=db Use the libdb.a library.],
169 db="$withval", needs_withdb=1)
179 AC_MSG_ERROR(Invalid --with-db option.)
185 if test "$db" != "db"
187 AC_CHECK_LIB(gdbm, gdbm_open,
188 [ LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS" ])
189 AC_CHECK_FUNC(gdbm_open, [ HAVE_GDBM=y ])
194 if test "$db" != "gdbm"
196 AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
197 [ AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
198 [ AC_CHECK_LIB(db, db_env_create,
199 [ LIBDB=-ldb; LIBS="-ldb $LIBS"]) ]
202 AC_CHECK_FUNC(dbopen, HAVE_BDB=1)
203 AC_CHECK_FUNC(db_open, HAVE_BDB=1)
204 AC_CHECK_FUNC(db_env_create, HAVE_BDB=1)
209 if test "$HAVE_GDBM$HAVE_BDB" = ""
211 AC_MSG_ERROR(Cannot find either the gdbm or the db library.)
217 if test "$HAVE_GDBM" = "y"
221 if test "$needs_withdb" = 1
223 ac_configure_args="$ac_configure_args --with-db=gdbm"
225 dblibrary=gdbmobj/libgdbmobj.la
229 if test "$needs_withdb" = 1
231 ac_configure_args="$ac_configure_args --with-db=db"
233 dblibrary=bdbobj/libbdbobj.la
239 AC_ARG_WITH(authuserdb,
240 [ --without-authuserdb Do not include the authuserdb module ],
241 doauthuserdb="$withval",
243 if test -d ${srcdir}/userdb
248 if test "$doauthuserdb" = "no"
252 AUTHUSERDB="authuserdb"
253 LIBAUTHUSERDB="libauthuserdb.la"
257 AC_ARG_WITH(makedatprog, [ ], [ : ],
259 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
262 cat >dbobj.config <<EOF
274 AC_SUBST(LIBAUTHUSERDB)
276 userdb="$pkgconfdir/userdb"
277 AC_ARG_WITH(userdb, [], [ userdb="$withval" ], [ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"])
279 AC_DEFINE_UNQUOTED(USERDB,"$userdb", [ Location of the userdb database ])
282 dnl Checks for header files.
284 dnl Because autoconf sets macros for C preprocessor where
285 dnl AC_CHECK_HEADERS appears first, the first AC_CHECK_HEADERS
286 dnl must not place in conditional level but top level.
287 dnl This is a dummy AC_CHECK_HEADERS for it.
289 AC_CHECK_HEADERS(stdio.h)
291 dnl #########################################################################
293 dnl Prepare authpam module if libpam is available.
295 dnl #########################################################################
298 [ --without-authpam Do not include the authpam module ],
299 doauthpam="$withval")
301 AC_CHECK_HEADERS(security/pam_appl.h Pam/pam_appl.h)
302 if test "$doauthpam" = "no"
308 AC_CHECK_LIB(dl, dlopen, [ LIBDL="-ldl" ])
311 AC_CHECK_LIB(pam, pam_start,
313 LIBS="-lpam $LIBDL $LIBS"
314 AC_CHECK_FUNCS(pam_setcred)],
323 if test "$HAVE_PAM" = 1
325 LIBAUTHPAM=libauthpam.la
328 AC_ARG_WITH(authpam-libraries,
329 [ --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
330 required for FreeBSD 3.3],
331 authpamcrypt="$withval")
333 AUTHPAMCRYPT="$authpamcrypt"
334 AC_SUBST(AUTHPAMCRYPT)
337 dnl #########################################################################
339 dnl Prepare authldap module if ldap functions are available.
341 dnl #########################################################################
343 AC_ARG_WITH(authldap,
344 [ --without-authldap Do not include the authldap module ],
345 doauthldap="$withval",
348 AC_CHECK_HEADERS(lber.h)
349 AC_CHECK_HEADERS(ldap.h)
350 AC_CHECK_HEADERS(netinet/in.h)
352 if test "$doauthldap" = "no"
357 LIBS="$NETLIBS $LIBS"
360 AC_MSG_CHECKING(whether -lresolv is needed for res_query)
361 AC_LINK_IFELSE(AC_LANG_PROGRAM([
362 #include <sys/types.h>
363 #if HAVE_NETINET_IN_H
364 #include <netinet/in.h>
368 void (*func)()= (void (*)())res_query;
373 LIBS="-lresolv $LIBS"
375 AC_LINK_IFELSE(AC_LANG_PROGRAM([
376 #include <sys/types.h>
377 #if HAVE_NETINET_IN_H
378 #include <netinet/in.h>
382 void (*func)()= (void (*)())res_query;
385 LDAPLIBS="-lresolv $LDAPLIBS"
389 AC_MSG_ERROR(Cannot find function res_query))
392 AC_CHECK_LIB(lber, ber_scanf,
393 [ LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS" ])
394 AC_CHECK_LIB(ldap, ldap_open,
395 [ LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS" ])
396 AC_CHECK_FUNC(ldap_search_st, HAVE_LDAP=1, HAVE_LDAP=0)
397 AC_CHECK_FUNC(ldap_start_tls_s, HAVE_LDAP_TLS=1, HAVE_LDAP_TLS=0)
398 AC_CHECK_FUNC(ldap_result2error, HAVE_LDAP_RESULT2ERROR=1, HAVE_LDAP_RESULT2ERROR=0)
399 AC_CHECK_FUNC(ldap_parse_result, HAVE_LDAP_PARSE_RESULT=1, HAVE_LDAP_PARSE_RESULT=0)
403 AC_ARG_WITH(authldaprc,
404 [ --with-authldaprc=filename Expect to find authldaprc here ],
405 authldaprc="$withval",
406 authldaprc="$pkgconfdir/authldaprc")
410 if test "$HAVE_LDAP" = 1
412 LIBAUTHLDAP="libauthldap.la"
417 AC_SUBST(LIBAUTHLDAP)
419 AM_CONDITIONAL(HAVE_LDAP, test "$HAVE_LDAP" = 1)
420 AC_DEFINE_UNQUOTED(HAVE_LDAP_TLS,$HAVE_LDAP_TLS,
421 [ Whether we have ldap_start_tls_s ])
422 AC_DEFINE_UNQUOTED(HAVE_LDAP_RESULT2ERROR, $HAVE_LDAP_RESULT2ERROR,
423 [ Whether we have ldap_result2error() function ])
424 AC_DEFINE_UNQUOTED(HAVE_LDAP_PARSE_RESULT, $HAVE_LDAP_PARSE_RESULT,
425 [ Whether we have ldap_parse_result() function])
426 dnl #########################################################################
428 dnl Prepare authpwd module
430 dnl #########################################################################
433 [ --without-authpwd Do not include the authpwd module ],
434 doauthpwd="$withval",
436 test "$HAVE_PAM" = 1 && doauthpwd="no"
437 test "$HAVE_LDAP" = 1 && doauthpwd="no"
441 if test "$doauthpwd" = "no"
445 AC_CHECK_FUNCS(endpwent)
447 dnl #########################################################################
449 dnl Prepare authshadow module if shadow functions are available.
451 dnl #########################################################################
453 AC_ARG_WITH(authshadow,
454 [ --without-authshadow Do not include the authshadow module ],
455 doauthshadow="$withval",
457 test "$HAVE_PAM" = 1 && doauthshadow="no"
458 test "$HAVE_LDAP" = 1 && doauthshadow="no")
460 AC_CHECK_HEADERS(shadow.h)
463 AC_CHECK_LIB(shadow, getspent,
464 [ SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS" ])
465 AC_CHECK_FUNCS(endspent getspent)
468 if test "$doauthshadow" = "no"
474 AC_CHECK_LIB(shadow, getspent)
475 AC_CHECK_FUNC(getspent, HAVE_SHADOW=1, HAVE_SHADOW=0)
480 if test "$HAVE_SHADOW" = 1
482 LIBAUTHSHADOW="libauthshadow.la"
485 AC_SUBST(LIBAUTHSHADOW)
488 if test "$HAVE_PWD" = 1
490 LIBAUTHPWD="libauthpwd.la"
494 dnl #########################################################################
496 dnl Prepare authpgsql module
498 dnl #########################################################################
500 AC_ARG_WITH(authpgsqlrc,
501 [ --with-authpgsqlrc=filename Expect to find authpgsql here ],
502 authpgsqlrc="$withval",
503 authpgsqlrc="$pkgconfdir/authpgsqlrc")
504 AC_SUBST(authpgsqlrc)
506 AC_ARG_WITH(authpgsql,
507 [ --without-authpgsql Do not include the authpgsql module ],
508 doauthpgsql="$withval")
510 AC_PATH_PROGS(PG_CONFIG, pg_config, pg_config, $LPATH)
513 AC_ARG_WITH(pgsql-libs,
514 [ --with-pgsql-libs=DIR Look for pgsql libs in this dir ],
515 PGSQL_LIBS="-L$withval $PGSQL_LIBS",
516 if test -x $PG_CONFIG
518 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
521 AC_ARG_WITH(pgsql-includes,
522 [ --with-pgsql-includes=DIR Look for pgsql includes in this dir ],
523 PGSQL_CFLAGS="-I$withval",
524 if test -x $PG_CONFIG
526 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
530 if test "$doauthpgsql" = ""
532 LIBS="$PGSQL_LIBS $LIBS"
533 AC_CHECK_FUNC(PQsetdbLogin,
539 if test "$doauthpgsql" != "yes"
545 LIBS="$PGSQL_LIBS $LIBS"
546 AC_CHECK_FUNC(PQsetdbLogin,
547 AUTHPGSQL="authpgsql"
549 AC_MSG_ERROR([--with-authpgsql specified but no libpq.so]))
552 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
553 LIBAUTHPGSQL="libauthpgsql.la"
557 AC_SUBST(LIBAUTHPGSQL)
558 AM_CONDITIONAL(HAVE_AUTHPGSQL, test "$HAVE_AUTHPGSQL" = 1)
560 dnl #########################################################################
562 dnl Prepare authmysql module
564 dnl #########################################################################
566 AC_ARG_WITH(authmysqlrc,
567 [ --with-authmysqlrc=filename Expect to find authmysql here ],
568 authmysqlrc="$withval",
569 authmysqlrc="$pkgconfdir/authmysqlrc")
570 AC_SUBST(authmysqlrc)
572 AC_ARG_WITH(authmysql,
573 [ --without-authmysql Do not include the authmysql module ],
574 doauthmysql="$withval")
575 AC_ARG_WITH(mysql-libs,
576 [ --with-mysql-libs=DIR Look for mysql libs in this dir ],
577 MYSQL_LIBS="-L$withval -lmysqlclient"
579 AC_ARG_WITH(mysql-includes,
580 [ --with-mysql-includes=DIR Look for mysql includes in this dir ],
581 MYSQL_CFLAGS="-I$withval"
584 AC_PATH_PROGS(MYSQL_CONFIG, mysql_config, mysql_config, $LPATH)
586 if test -x "$MYSQL_CONFIG"
588 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
589 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
591 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
592 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
595 if test "$doauthmysql" = ""
597 LIBS="$MYSQL_LIBS $LIBS"
598 AC_CHECK_FUNC(mysql_connect,
601 AC_CHECK_FUNC(mysql_real_connect,
607 if test "$doauthmysql" != "yes"
613 LIBS="$MYSQL_LIBS $LIBS"
614 AC_CHECK_FUNC(mysql_connect,
615 LIBAUTHMYSQL="libauthmysql.la"
618 AC_CHECK_FUNC(mysql_real_connect,
619 LIBAUTHMYSQL="libauthmysql.la"
622 AC_MSG_ERROR([--with-authmysql specified but no mysqlclient.so])
628 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
630 AC_SUBST(LIBAUTHMYSQL)
632 AM_CONDITIONAL(HAVE_AUTHMYSQL, test "$HAVE_AUTHMYSQL" = 1)
635 dnl #########################################################################
637 dnl Prepare authcustom stub module.
639 dnl #########################################################################
642 AC_ARG_WITH(authcustom,
643 [ --without-authcustom Do not include the authcustom module ],
644 doauthcustom="$withval",
649 if test "$doauthcustom" = "yes"
651 LIBAUTHCUSTOM="libauthcustom.la"
654 AM_CONDITIONAL(HAVE_CUSTOM, test "$AUTHCUSTOM" != "")
655 AC_SUBST(LIBAUTHCUSTOM)
658 dnl #########################################################################
660 dnl Prepare authpipe module.
662 dnl #########################################################################
665 AC_ARG_WITH(pipeprog,
666 [ --with-pipeprog=filename Expect to find the pipe-prog here ],
668 authProg="$pkgconfdir/authProg")
671 AC_ARG_WITH(authpipe,
672 [ --without-authpipe Do not include the authpipe module ],
673 doauthpipe="$withval",
678 if test "$doauthpipe" = "yes"
680 LIBAUTHPIPE="libauthpipe.la"
683 AM_CONDITIONAL(HAVE_PIPE, test "$AUTHPIPE" != "")
684 AC_SUBST(LIBAUTHPIPE)
688 dnl Checks for header files.
691 AC_CHECK_HEADERS(sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h)
693 dnl Checks for typedefs, structures, and compiler characteristics.
698 AC_CHECK_FUNCS(setsid setlogin)
699 AC_CHECK_LIB(crypt, crypt, CRYPTLIBS="-lcrypt")
701 LIBS="$CRYPTLIBS $LIBS"
702 AC_CHECK_FUNC(crypt, AC_DEFINE_UNQUOTED(HAVE_CRYPT, 1,
703 [ Whether we have the crypt() function ]))
705 AC_CACHE_CHECK([for crypt() prototype],userdb_cv_NEED_CRYPT_PROTOTYPE,
707 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
716 ]], [[]])],[userdb_cv_NEED_CRYPT_PROTOTYPE=1],[userdb_cv_NEED_CRYPT_PROTOTYPE=0 ])
720 AC_DEFINE_UNQUOTED(NEED_CRYPT_PROTOTYPE, $userdb_cv_NEED_CRYPT_PROTOTYPE,
721 [ Whether we must a prototype for crypt()] )
724 dnl #########################################################################
726 dnl Prepare the authdaemon module.
728 dnl #########################################################################
730 AC_ARG_WITH(authdaemonrc,
731 [ --with-authdaemonrc=filename Expect to find authdaemonrc here ],
732 authdaemonrc="$withval",
733 authdaemonrc="$pkgconfdir/authdaemonrc")
734 AC_SUBST(authdaemonrc)
736 AC_ARG_WITH(authdaemonvar,
737 [ --with-authdaemonvar=directory Directory where authdaemon.pid and
738 the listening socket is created],
739 authdaemonvar="$withval",
740 authdaemonvar="$localstatedir/spool/authdaemon")
742 AC_SUBST(authdaemonvar)
746 rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
749 dnl Need to settle on our uid/gids here
754 if test -x "$COURIERCONFIG"
756 $COURIERCONFIG >conftest.out || exit 1
757 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
759 rm -f conftest.out conftest2.out
761 cmailuser="$mailuser"
762 cmailgroup="$mailgroup"
763 result=" (from courier-config)"
766 if test -x "$bindir/courierauthconfig"
768 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
769 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
771 rm -f conftest.out conftest2.out
773 cmailuser="$mailuser"
774 cmailgroup="$mailgroup"
775 result=" (from previous courierauthconfig)"
785 AC_MSG_CHECKING(for mail userid)
787 AC_ARG_WITH(mailuser,[ --with-mailuser=user Specify mail user name (defaults to
788 courier, daemon, admin, bin, or root)],
791 if test "$cmailuser" = ""
793 AC_RUN_IFELSE([AC_LANG_SOURCE([[
798 static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
806 for (i=0; ids $LB i $RB; i++)
807 if (getpwnam(ids $LB i $RB)) break;
809 f=fopen("conftest.out", "w");
810 if (f && ids $LB i $RB)
812 fprintf(f, "%s\n", ids $LB i $RB);
820 ]])],[mailuser=`cat conftest.out`],[AC_MSG_ERROR(Cannot determine mail user, use --with-mailuser.)],[AC_MSG_ERROR(Must use --with-mailuser when cross compiling.)])
822 mailuser="$cmailuser"
824 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser")
826 AC_MSG_RESULT([$mailuser $result])
828 AC_MSG_CHECKING(for mail group id)
830 AC_ARG_WITH(mailgroup, [ --with-mailgroup=group Specify mail group name (defaults to courier,
831 daemon, sys, adm, or root)],
832 mailgroup="$withval",
834 if test "$cmailgroup" = ""
836 AC_RUN_IFELSE([AC_LANG_SOURCE([[
841 static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
848 for (i=0; ids $LB i $RB; i++)
849 if (getgrnam(ids $LB i $RB)) break;
851 f=fopen("conftest.out", "w");
852 if (f && ids $LB i $RB)
854 fprintf(f, "%s\n", ids $LB i $RB);
862 ]])],[mailgroup=`cat conftest.out`],[AC_MSG_ERROR(Cannot determine mail group, use --with-mailgroup.)],[AC_MSG_ERROR(Must use --with-mailgroup when cross compiling.)])
864 mailgroup="$cmailgroup"
866 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
868 AC_MSG_RESULT([$mailgroup $result])
873 AC_ARG_WITH(stdheaderdir,
874 [ --without-stdheaderdir Header files will be installed into a directory
875 not in the compiler's default search path.],
877 if test "$withval" = "no"
879 AC_DEFINE_UNQUOTED(HAVE_NOSTDHEADERDIR, 1,
880 [ Whether header installation directory is nontstandard ])
884 AC_CACHE_CHECK([for socklen_t],
885 authlib_cv_hassocklen_t,
889 #include <sys/types.h>
890 #include <sys/socket.h>
896 authlib_cv_hassocklen_t=yes,
897 authlib_cv_hassocklen_t=no)
902 if test $authlib_cv_hassocklen_t = yes
906 AC_DEFINE_UNQUOTED(socklen_t, int, [ Default definition for socklen_t ])
909 AC_ARG_WITH(repository, [], REPOSITORY="$withval")
912 AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/docbook)
913 AC_CONFIG_SUBDIRS(bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb unicode rfc822 random128 liblock liblog)
915 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)