1 dnl Process this file with autoconf to produce a configure script.
3 dnl $Id: configure.in,v 1.165 2008/07/12 19:15:05 mrsam Exp $
5 dnl Copyright 1998 - 2008 Double Precision, Inc. See COPYING for
6 dnl distribution information.
9 AC_INIT(courier-authlib, 0.61.0, [courier-imap@lists.sourceforge.net])
11 AC_CONFIG_SRCDIR([courierauth.h])
12 AM_CONFIG_HEADER([courier_auth_config.h])
15 >confdefs.h # Kill PACKAGE_ macros
17 LPATH="$PATH:/usr/local/bin"
19 dnl Checks for programs.
26 AC_LIBLTDL_INSTALLABLE
31 AC_PATH_PROGS(PERL, perl5 perl, perl, $LPATH)
32 AC_PATH_PROGS(COURIERCONFIG, courier-config, courier-config, $LPATH)
34 if test "$PERL" = "perl"
36 AC_MSG_ERROR(Perl is required)
39 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42 eval "exec_prefix=$exec_prefix"
43 eval "sysconfdir=$sysconfdir"
45 eval "sbindir=$sbindir"
46 eval "localstatedir=$localstatedir"
47 eval "libexecdir=$libexecdir"
49 AC_ARG_WITH(redhat, [], [ redhat=$withval ], [redhat=no])
51 if test "$srcdir" = "."
53 case `./config.guess` in
55 if test "$redhat" = "no"
58 AC_MSG_WARN(=== I think you are trying to run this configure script)
59 AC_MSG_WARN([=== on Red Hat/Fedora. You're doing too much work!])
60 AC_MSG_WARN([=== It's much faster to create installable binary RPMs])
61 AC_MSG_WARN([=== like this: http://www.courier-mta.org/FAQ.html${hash}rpm])
62 AC_MSG_WARN(=== When you do this you may find that RPM will tell you)
63 AC_MSG_WARN([=== to install some other software first, before trying to])
64 AC_MSG_WARN([=== build this one, and even tell you the name of RPMs you])
65 AC_MSG_WARN([=== need to install from the distribution CD. That's much])
66 AC_MSG_WARN([=== easier than trying to figure out the same from some])
67 AC_MSG_WARN([=== cryptic error message.])
69 AC_MSG_WARN([=== Even if you don't intend to use everything you need to])
70 AC_MSG_WARN([=== have in order to build via RPM, you should still do as])
71 AC_MSG_WARN([=== you're told. All the extra stuff (LDAP, SQL, etc...)])
72 AC_MSG_WARN([=== goes into RPM sub-packages, which do not need to be])
73 AC_MSG_WARN([=== installed.])
74 AC_MSG_WARN([=== But, if you insist, you can simply add '--with-redhat'])
75 AC_MSG_WARN(=== parameter to this configure script and not see this)
76 AC_MSG_WARN(=== error message. You should also do this when upgrading)
77 AC_MSG_WARN([=== and you didn't use RPM with the older version.])
78 AC_MSG_ERROR(... in either case you better know what you're doing!)
85 AC_PATH_PROGS(EXPECT, expect, expect, $LPATH)
87 if test "$EXPECT" = "expect"
89 AC_MSG_WARN(-----------------------------------------------------)
90 AC_MSG_WARN(expect not found - will not be able to change passwds)
91 AC_MSG_WARN(in webmail)
92 AC_MSG_WARN(-----------------------------------------------------)
95 AC_DEFINE_UNQUOTED(HAVE_EXPECT, 1, [ Whether expect(1) is installed ])
98 AC_PATH_PROGS(PASSWD, passwd, passwd, $LPATH)
101 if test "$GCC" = "yes"
103 CFLAGS="$CFLAGS -Wall"
106 CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
108 AC_MSG_CHECKING(whether -lm is needed for floor)
109 AC_TRY_LINK_FUNC(floor,
114 AC_ARG_WITH(pkgconfdir,
115 [ --with-pkgconfdir=d Install config files in directory ],
116 [pkgconfdir="$withval"],
117 [pkgconfdir="$sysconfdir/authlib"])
123 AC_CHECK_LIB(socket,socket,result=yes,result=no)
124 if test $result = yes; then
127 AC_CHECK_LIB(socket,socket,result=yes,result=no,-lnsl)
128 if test $result = yes; then
129 NETLIBS = "-lsocket -lnsl"
132 AC_CHECK_LIB(socket,connect,result=yes,result=no)
133 if test $result = yes; then
136 AC_CHECK_LIB(socket,connect,result=yes,result=no,-lnsl)
137 if test $result = yes; then
138 NETLIBS="-lsocket -lnsl"
145 if test $USENSL != yes; then
146 LIBS="$LIBS $NETLIBS"
147 AC_TRY_LINK_FUNC(inet_addr, [ : ],
149 AC_CHECK_LIB(nsl,inet_addr,result=yes,result=no)
150 if test $result = yes; then
151 NETLIBS="$NETLIBS -lnsl"
159 dnl #########################################################################
161 dnl Prepare authuserdb module if userdb library is available
163 dnl #########################################################################
166 AC_ARG_WITH(db, [ --with-db=gdbm Use the GDBM library.
167 --with-db=db Use the libdb.a library.],
168 db="$withval", needs_withdb=1)
178 AC_MSG_ERROR(Invalid --with-db option.)
184 if test "$db" != "db"
186 AC_CHECK_LIB(gdbm, gdbm_open,
187 [ LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS" ])
188 AC_CHECK_FUNC(gdbm_open, [ HAVE_GDBM=y ])
193 if test "$db" != "gdbm"
195 AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
196 [ AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
197 [ AC_CHECK_LIB(db, db_env_create,
198 [ LIBDB=-ldb; LIBS="-ldb $LIBS"]) ]
201 AC_CHECK_FUNC(dbopen, HAVE_BDB=1)
202 AC_CHECK_FUNC(db_open, HAVE_BDB=1)
203 AC_CHECK_FUNC(db_env_create, HAVE_BDB=1)
208 if test "$HAVE_GDBM$HAVE_BDB" = ""
210 AC_MSG_ERROR(Cannot find either the gdbm or the db library.)
216 if test "$HAVE_GDBM" = "y"
220 if test "$needs_withdb" = 1
222 ac_configure_args="$ac_configure_args --with-db=gdbm"
224 dblibrary=gdbmobj/libgdbmobj.la
228 if test "$needs_withdb" = 1
230 ac_configure_args="$ac_configure_args --with-db=db"
232 dblibrary=bdbobj/libbdbobj.la
238 AC_ARG_WITH(authuserdb,
239 [ --without-authuserdb Do not include the authuserdb module ],
240 doauthuserdb="$withval",
242 if test -d ${srcdir}/userdb
247 if test "$doauthuserdb" = "no"
251 AUTHUSERDB="authuserdb"
252 LIBAUTHUSERDB="libauthuserdb.la"
256 AC_ARG_WITH(makedatprog, [ ], [ : ],
258 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
261 cat >dbobj.config <<EOF
273 AC_SUBST(LIBAUTHUSERDB)
275 userdb="$pkgconfdir/userdb"
276 AC_ARG_WITH(userdb, [], [ userdb="$withval" ], [ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"])
278 AC_DEFINE_UNQUOTED(USERDB,"$userdb", [ Location of the userdb database ])
281 dnl Checks for header files.
283 dnl Because autoconf sets macros for C preprocessor where
284 dnl AC_CHECK_HEADERS appears first, the first AC_CHECK_HEADERS
285 dnl must not place in conditional level but top level.
286 dnl This is a dummy AC_CHECK_HEADERS for it.
288 AC_CHECK_HEADERS(stdio.h)
290 dnl #########################################################################
292 dnl Prepare authpam module if libpam is available.
294 dnl #########################################################################
297 [ --without-authpam Do not include the authpam module ],
298 doauthpam="$withval")
300 AC_CHECK_HEADERS(security/pam_appl.h Pam/pam_appl.h)
301 if test "$doauthpam" = "no"
307 AC_CHECK_LIB(dl, dlopen, [ LIBDL="-ldl" ])
310 AC_CHECK_LIB(pam, pam_start,
312 LIBS="-lpam $LIBDL $LIBS"
313 AC_CHECK_FUNCS(pam_setcred)],
322 if test "$HAVE_PAM" = 1
324 LIBAUTHPAM=libauthpam.la
327 AC_ARG_WITH(authpam-libraries,
328 [ --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
329 required for FreeBSD 3.3],
330 authpamcrypt="$withval")
332 AUTHPAMCRYPT="$authpamcrypt"
333 AC_SUBST(AUTHPAMCRYPT)
336 dnl #########################################################################
338 dnl Prepare authldap module if ldap functions are available.
340 dnl #########################################################################
342 AC_ARG_WITH(authldap,
343 [ --without-authldap Do not include the authldap module ],
344 doauthldap="$withval",
347 AC_CHECK_HEADERS(lber.h)
348 AC_CHECK_HEADERS(ldap.h)
349 AC_CHECK_HEADERS(netinet/in.h)
351 if test "$doauthldap" = "no"
356 LIBS="$NETLIBS $LIBS"
359 AC_MSG_CHECKING(whether -lresolv is needed for res_query)
360 AC_LINK_IFELSE(AC_LANG_PROGRAM([
361 #include <sys/types.h>
362 #if HAVE_NETINET_IN_H
363 #include <netinet/in.h>
367 void (*func)()= (void (*)())res_query;
372 LIBS="-lresolv $LIBS"
374 AC_LINK_IFELSE(AC_LANG_PROGRAM([
375 #include <sys/types.h>
376 #if HAVE_NETINET_IN_H
377 #include <netinet/in.h>
381 void (*func)()= (void (*)())res_query;
384 LDAPLIBS="-lresolv $LDAPLIBS"
388 AC_MSG_ERROR(Cannot find function res_query))
391 AC_CHECK_LIB(lber, ber_scanf,
392 [ LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS" ])
393 AC_CHECK_LIB(ldap, ldap_open,
394 [ LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS" ])
395 AC_CHECK_FUNC(ldap_search_st, HAVE_LDAP=1, HAVE_LDAP=0)
396 AC_CHECK_FUNC(ldap_start_tls_s, HAVE_LDAP_TLS=1, HAVE_LDAP_TLS=0)
397 AC_CHECK_FUNC(ldap_result2error, HAVE_LDAP_RESULT2ERROR=1, HAVE_LDAP_RESULT2ERROR=0)
398 AC_CHECK_FUNC(ldap_parse_result, HAVE_LDAP_PARSE_RESULT=1, HAVE_LDAP_PARSE_RESULT=0)
402 AC_ARG_WITH(authldaprc,
403 [ --with-authldaprc=filename Expect to find authldaprc here ],
404 authldaprc="$withval",
405 authldaprc="$pkgconfdir/authldaprc")
409 if test "$HAVE_LDAP" = 1
411 LIBAUTHLDAP="libauthldap.la"
416 AC_SUBST(LIBAUTHLDAP)
418 AM_CONDITIONAL(HAVE_LDAP, test "$HAVE_LDAP" = 1)
419 AC_DEFINE_UNQUOTED(HAVE_LDAP_TLS,$HAVE_LDAP_TLS,
420 [ Whether we have ldap_start_tls_s ])
421 AC_DEFINE_UNQUOTED(HAVE_LDAP_RESULT2ERROR, $HAVE_LDAP_RESULT2ERROR,
422 [ Whether we have ldap_result2error() function ])
423 AC_DEFINE_UNQUOTED(HAVE_LDAP_PARSE_RESULT, $HAVE_LDAP_PARSE_RESULT,
424 [ Whether we have ldap_parse_result() function])
425 dnl #########################################################################
427 dnl Prepare authpwd module
429 dnl #########################################################################
432 [ --without-authpwd Do not include the authpwd module ],
433 doauthpwd="$withval",
435 test "$HAVE_PAM" = 1 && doauthpwd="no"
436 test "$HAVE_LDAP" = 1 && doauthpwd="no"
440 if test "$doauthpwd" = "no"
444 AC_CHECK_FUNCS(endpwent)
446 dnl #########################################################################
448 dnl Prepare authshadow module if shadow functions are available.
450 dnl #########################################################################
452 AC_ARG_WITH(authshadow,
453 [ --without-authshadow Do not include the authshadow module ],
454 doauthshadow="$withval",
456 test "$HAVE_PAM" = 1 && doauthshadow="no"
457 test "$HAVE_LDAP" = 1 && doauthshadow="no")
459 AC_CHECK_HEADERS(shadow.h)
462 AC_CHECK_LIB(shadow, getspent,
463 [ SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS" ])
464 AC_CHECK_FUNCS(endspent getspent)
467 if test "$doauthshadow" = "no"
473 AC_CHECK_LIB(shadow, getspent)
474 AC_CHECK_FUNC(getspent, HAVE_SHADOW=1, HAVE_SHADOW=0)
479 if test "$HAVE_SHADOW" = 1
481 LIBAUTHSHADOW="libauthshadow.la"
484 AC_SUBST(LIBAUTHSHADOW)
487 if test "$HAVE_PWD" = 1
489 LIBAUTHPWD="libauthpwd.la"
493 dnl #########################################################################
495 dnl Prepare authpgsql module
497 dnl #########################################################################
499 AC_ARG_WITH(authpgsqlrc,
500 [ --with-authpgsqlrc=filename Expect to find authpgsql here ],
501 authpgsqlrc="$withval",
502 authpgsqlrc="$pkgconfdir/authpgsqlrc")
503 AC_SUBST(authpgsqlrc)
505 AC_ARG_WITH(authpgsql,
506 [ --without-authpgsql Do not include the authpgsql module ],
507 doauthpgsql="$withval")
509 AC_PATH_PROGS(PG_CONFIG, pg_config, pg_config, $LPATH)
512 AC_ARG_WITH(pgsql-libs,
513 [ --with-pgsql-libs=DIR Look for pgsql libs in this dir ],
514 PGSQL_LIBS="-L$withval $PGSQL_LIBS",
515 if test -x $PG_CONFIG
517 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
520 AC_ARG_WITH(pgsql-includes,
521 [ --with-pgsql-includes=DIR Look for pgsql includes in this dir ],
522 PGSQL_CFLAGS="-I$withval",
523 if test -x $PG_CONFIG
525 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
529 if test "$doauthpgsql" = ""
531 LIBS="$PGSQL_LIBS $LIBS"
532 AC_CHECK_FUNC(PQsetdbLogin,
538 if test "$doauthpgsql" != "yes"
544 LIBS="$PGSQL_LIBS $LIBS"
545 AC_CHECK_FUNC(PQsetdbLogin,
546 AUTHPGSQL="authpgsql"
548 AC_MSG_ERROR([--with-authpgsql specified but no libpq.so]))
551 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
552 LIBAUTHPGSQL="libauthpgsql.la"
556 AC_SUBST(LIBAUTHPGSQL)
557 AM_CONDITIONAL(HAVE_AUTHPGSQL, test "$HAVE_AUTHPGSQL" = 1)
559 dnl #########################################################################
561 dnl Prepare authmysql module
563 dnl #########################################################################
565 AC_ARG_WITH(authmysqlrc,
566 [ --with-authmysqlrc=filename Expect to find authmysql here ],
567 authmysqlrc="$withval",
568 authmysqlrc="$pkgconfdir/authmysqlrc")
569 AC_SUBST(authmysqlrc)
571 AC_ARG_WITH(authmysql,
572 [ --without-authmysql Do not include the authmysql module ],
573 doauthmysql="$withval")
574 AC_ARG_WITH(mysql-libs,
575 [ --with-mysql-libs=DIR Look for mysql libs in this dir ],
576 MYSQL_LIBS="-L$withval -lmysqlclient"
578 AC_ARG_WITH(mysql-includes,
579 [ --with-mysql-includes=DIR Look for mysql includes in this dir ],
580 MYSQL_CFLAGS="-I$withval"
583 AC_PATH_PROGS(MYSQL_CONFIG, mysql_config, mysql_config, $LPATH)
585 if test -x "$MYSQL_CONFIG"
587 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
588 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
590 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
591 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
594 if test "$doauthmysql" = ""
596 LIBS="$MYSQL_LIBS $LIBS"
597 AC_CHECK_FUNC(mysql_connect,
600 AC_CHECK_FUNC(mysql_real_connect,
606 if test "$doauthmysql" != "yes"
612 LIBS="$MYSQL_LIBS $LIBS"
613 AC_CHECK_FUNC(mysql_connect,
614 LIBAUTHMYSQL="libauthmysql.la"
617 AC_CHECK_FUNC(mysql_real_connect,
618 LIBAUTHMYSQL="libauthmysql.la"
621 AC_MSG_ERROR([--with-authmysql specified but no mysqlclient.so])
627 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
629 AC_SUBST(LIBAUTHMYSQL)
631 AM_CONDITIONAL(HAVE_AUTHMYSQL, test "$HAVE_AUTHMYSQL" = 1)
634 dnl #########################################################################
636 dnl Prepare authcustom stub module.
638 dnl #########################################################################
641 AC_ARG_WITH(authcustom,
642 [ --without-authcustom Do not include the authcustom module ],
643 doauthcustom="$withval",
648 if test "$doauthcustom" = "yes"
650 LIBAUTHCUSTOM="libauthcustom.la"
653 AM_CONDITIONAL(HAVE_CUSTOM, test "$AUTHCUSTOM" != "")
654 AC_SUBST(LIBAUTHCUSTOM)
657 dnl #########################################################################
659 dnl Prepare authpipe module.
661 dnl #########################################################################
664 AC_ARG_WITH(pipeprog,
665 [ --with-pipeprog=filename Expect to find the pipe-prog here ],
667 authProg="$pkgconfdir/authProg")
670 AC_ARG_WITH(authpipe,
671 [ --without-authpipe Do not include the authpipe module ],
672 doauthpipe="$withval",
677 if test "$doauthpipe" = "yes"
679 LIBAUTHPIPE="libauthpipe.la"
682 AM_CONDITIONAL(HAVE_PIPE, test "$AUTHPIPE" != "")
683 AC_SUBST(LIBAUTHPIPE)
687 dnl Checks for header files.
690 AC_CHECK_HEADERS(sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h)
692 dnl Checks for typedefs, structures, and compiler characteristics.
699 AC_CHECK_FUNCS(setsid setlogin)
700 AC_CHECK_LIB(crypt, crypt, CRYPTLIBS="-lcrypt")
702 LIBS="$CRYPTLIBS $LIBS"
703 AC_CHECK_FUNC(crypt, AC_DEFINE_UNQUOTED(HAVE_CRYPT, 1,
704 [ Whether we have the crypt() function ]))
706 AC_CACHE_CHECK([for crypt() prototype],userdb_cv_NEED_CRYPT_PROTOTYPE,
717 ], [], userdb_cv_NEED_CRYPT_PROTOTYPE=1,
718 userdb_cv_NEED_CRYPT_PROTOTYPE=0 )
722 AC_DEFINE_UNQUOTED(NEED_CRYPT_PROTOTYPE, $userdb_cv_NEED_CRYPT_PROTOTYPE,
723 [ Whether we must a prototype for crypt()] )
726 dnl #########################################################################
728 dnl Prepare the authdaemon module.
730 dnl #########################################################################
732 AC_ARG_WITH(authdaemonrc,
733 [ --with-authdaemonrc=filename Expect to find authdaemonrc here ],
734 authdaemonrc="$withval",
735 authdaemonrc="$pkgconfdir/authdaemonrc")
736 AC_SUBST(authdaemonrc)
738 AC_ARG_WITH(authdaemonvar,
739 [ --with-authdaemonvar=directory Directory where authdaemon.pid and
740 the listening socket is created],
741 authdaemonvar="$withval",
742 authdaemonvar="$localstatedir/spool/authdaemon")
744 AC_SUBST(authdaemonvar)
748 rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
751 dnl Need to settle on our uid/gids here
756 if test -x "$COURIERCONFIG"
758 $COURIERCONFIG >conftest.out || exit 1
759 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
761 rm -f conftest.out conftest2.out
763 cmailuser="$mailuser"
764 cmailgroup="$mailgroup"
765 result=" (from courier-config)"
768 if test -x "$bindir/courierauthconfig"
770 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
771 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
773 rm -f conftest.out conftest2.out
775 cmailuser="$mailuser"
776 cmailgroup="$mailgroup"
777 result=" (from previous courierauthconfig)"
787 AC_MSG_CHECKING(for mail userid)
789 AC_ARG_WITH(mailuser,[ --with-mailuser=user Specify mail user name (defaults to
790 courier, daemon, admin, bin, or root)],
793 if test "$cmailuser" = ""
800 static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
808 for (i=0; ids $LB i $RB; i++)
809 if (getpwnam(ids $LB i $RB)) break;
811 f=fopen("conftest.out", "w");
812 if (f && ids $LB i $RB)
814 fprintf(f, "%s\n", ids $LB i $RB);
823 mailuser=`cat conftest.out`,
824 AC_MSG_ERROR(Cannot determine mail user, use --with-mailuser.),
825 AC_MSG_ERROR(Must use --with-mailuser when cross compiling.))
827 mailuser="$cmailuser"
829 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser")
831 AC_MSG_RESULT([$mailuser $result])
833 AC_MSG_CHECKING(for mail group id)
835 AC_ARG_WITH(mailgroup, [ --with-mailgroup=group Specify mail group name (defaults to courier,
836 daemon, sys, adm, or root)],
837 mailgroup="$withval",
839 if test "$cmailgroup" = ""
846 static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
853 for (i=0; ids $LB i $RB; i++)
854 if (getgrnam(ids $LB i $RB)) break;
856 f=fopen("conftest.out", "w");
857 if (f && ids $LB i $RB)
859 fprintf(f, "%s\n", ids $LB i $RB);
869 mailgroup=`cat conftest.out`,
870 AC_MSG_ERROR(Cannot determine mail group, use --with-mailgroup.),
871 AC_MSG_ERROR(Must use --with-mailgroup when cross compiling.))
873 mailgroup="$cmailgroup"
875 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
877 AC_MSG_RESULT([$mailgroup $result])
882 AC_ARG_WITH(stdheaderdir,
883 [ --without-stdheaderdir Header files will be installed into a directory
884 not in the compiler's default search path.],
886 if test "$withval" = "no"
888 AC_DEFINE_UNQUOTED(HAVE_NOSTDHEADERDIR, 1,
889 [ Whether header installation directory is nontstandard ])
893 AC_CACHE_CHECK([for socklen_t],
894 authlib_cv_hassocklen_t,
898 #include <sys/types.h>
899 #include <sys/socket.h>
905 authlib_cv_hassocklen_t=yes,
906 authlib_cv_hassocklen_t=no)
911 if test $authlib_cv_hassocklen_t = yes
915 AC_DEFINE_UNQUOTED(socklen_t, int, [ Default definition for socklen_t ])
918 AC_ARG_WITH(repository, [], REPOSITORY="$withval")
921 AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/docbook)
922 AC_CONFIG_SUBDIRS(libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog)
924 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)