1 dnl $Id: configure.in,v 1.118 2001-10-25 20:37:04 srittau Exp $
2 dnl configure.in for netatalk
5 AC_DEFUN([AM_PATH_SSL], [
9 --with-ssl-dir=PATH specify path to OpenSSL installation (must contain
10 lib and include dirs)],
12 if test "x$withval" != "xno"; then
24 if test "$tryssl" = "yes"; then
25 AC_MSG_CHECKING([for SSL])
26 for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl /usr/local/ssl ; do
27 if test -f "$ssldir/include/openssl/cast.h" ; then
28 SSL_CFLAGS="$SSL_CFLAGS -I$ssldir/include -I$ssldir/include/openssl"
29 SSL_LIBS="$SSL_LIBS -L$ssldir/lib -L$ssldir -lcrypto"
30 if test "$need_dash_r" = "yes"; then
31 SSL_LIBS="$SSL_LIBS -R$ssldir/lib -R$ssldir"
33 AC_MSG_RESULT([$ssldir (enabling RANDNUM and DHX support)])
35 dnl Check for the crypto library:
36 AC_CHECK_LIB(crypto, main)
37 dnl Check for "DES" library (for SSLeay, not openssl):
38 AC_CHECK_LIB(des, main)
40 dnl FIXME: do that temporarily
41 LDFLAGS="$LDFLAGS -L$ssldir/lib -L$ssldir"
42 CFLAGS="$CFLAGS -I$ssldir/include -I$ssldir/include/openssl"
43 if test "$need_dash_r" = "yes"; then
44 LIBS="$LIBS -R$ssldir/lib -R$ssldir"
47 AC_DEFINE(OPENSSL_DHX, 1)
53 if test "x$compile_ssl" = "xno"; then
63 AC_INIT(bin/adv1tov2/adv1tov2.c)
65 NETATALK_VERSION=`cat VERSION`
66 AC_SUBST(NETATALK_VERSION)
69 AM_INIT_AUTOMAKE(netatalk, ${NETATALK_VERSION})
70 AM_CONFIG_HEADER(config.h)
72 dnl Reset locations to proper places
73 AC_PREFIX_DEFAULT(/usr/local)
75 dnl Checks for programs.
84 dnl *********************************************************************
85 dnl FIXME! FIXME! These should be selectable properly, and should produce
86 dnl the proper flags and defines...
87 dnl *********************************************************************
89 dnl Checks for libraries.
90 dnl Replace `main' with a function in -labs:
91 AC_CHECK_LIB(abs, main)
92 dnl Replace `main' with a function in -laudit:
93 AC_CHECK_LIB(audit, main)
94 dnl Replace `main' with a function in -lauth:
95 AC_CHECK_LIB(auth, main)
96 dnl Replace `main' with a function in -lcmd:
97 AC_CHECK_LIB(cmd, main)
98 dnl Replace `main' with a function in -lcom_err:
99 AC_CHECK_LIB(com_err, main)
100 dnl Replace `main' with a function in -lcrypt:
101 AC_CHECK_LIB(crypt, main)
102 dnl Replace `main' with a function in -ld:
103 AC_CHECK_LIB(d, main)
104 dnl Replace `main' with a function in -ldl:
105 AC_CHECK_LIB(dl, main)
106 dnl Replace `main' with a function in -lkauth:
107 AC_CHECK_LIB(kauth, main)
108 dnl Replace `main' with a function in -lkrb:
109 AC_CHECK_LIB(krb, main)
110 dnl Replace `main' with a function in -llwp:
111 AC_CHECK_LIB(lwp, main)
112 dnl Replace `main' with a function in -ln:
113 AC_CHECK_LIB(n, main)
114 dnl Replace `main' with a function in -lnsl:
115 AC_CHECK_LIB(nsl, main)
116 dnl Replace `main' with a function in -lprot:
117 AC_CHECK_LIB(prot, main)
118 dnl Replace `main' with a function in -lresolv:
119 AC_CHECK_LIB(resolv, main)
120 dnl Replace `main' with a function in -lrpcsvc:
121 AC_CHECK_LIB(rpcsvc, main)
122 dnl Replace `main' with a function in -lrx:
123 AC_CHECK_LIB(rx, main)
124 dnl Replace `main' with a function in -lrxkad:
125 AC_CHECK_LIB(rxkad, main)
126 dnl Replace `main' with a function in -lsocket:
127 AC_CHECK_LIB(socket, main)
128 dnl Replace `main' with a function in -lsys:
129 AC_CHECK_LIB(sys, main)
130 dnl Replace `main' with a function in -lubik:
131 AC_CHECK_LIB(ubik, main)
134 # Check presence of some functions
136 # Check for XPG4 access() function
137 # Be sure to test before adding AFS libs in LIBS path as AFS lib
138 # has such a function that works only on AFS filesystems.
139 AC_CHECK_FUNCS(access)
141 dnl Checks for header files.
145 AC_CHECK_HEADERS(fcntl.h limits.h stdint.h strings.h sys/fcntl.h sys/file.h sys/ioctl.h sys/time.h sys/mnttab.h sys/statvfs.h sys/stat.h sys/vfs.h mntent.h syslog.h unistd.h termios.h sys/termios.h netdb.h sgtty.h ufs/quota.h mount.h sys/mount.h statfs.h sys/types.h dlfcn.h errno.h sys/errno.h security/pam_appl.h)
146 AC_CHECK_HEADER(sys/cdefs.h,,
147 AC_MSG_RESULT([enabling generic cdefs.h from tree])
148 CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
151 # Allow user to specify flags
153 [ --with-cflags specify additional flags to pass to compiler],
155 if test "x$withval" != "xno" ; then
156 CFLAGS="$CFLAGS $withval"
161 [ --with-libs specify additional libraries to link with],
163 if test "x$withval" != "xno" ; then
164 LIBS="$LIBS $withval"
169 dnl Checks for typedefs, structures, and compiler characteristics.
181 dnl Checks for library functions.
183 AC_PROG_GCC_TRADITIONAL
190 AC_CHECK_FUNCS(flock getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strstr strtoul setpgrp strchr memcpy)
193 dnl --------------------------------------------------------------------------
194 dnl specific configuration comes in here:
195 dnl --------------------------------------------------------------------------
197 AC_DEFINE(ADMIN_GRP, 1)
199 AC_ARG_WITH(admin-group,
200 [ --disable-admin-group disable admin group],
201 if test "$enableval" = "no"; then
202 AC_DEFINE(ADMIN_GRP, 0)
203 AC_MSG_RESULT([disabling administrative group support])
208 [ --enable-afs enable AFS support],
209 if test "$enableval" = "yes"; then
211 AC_MSG_RESULT([enabling AFS support])
215 AC_ARG_WITH(config-dir,
216 [ --with-config-dir=DIR obsolete - use --with-pkgconfdir],
217 sysconfdir="$withval",
218 if test "x$prefix" = "xNONE"; then
219 sysconfdir="$ac_default_prefix/etc"
221 sysconfdir="${prefix}/etc"
225 AC_ARG_WITH(pkgconfdir,
226 [ --with-pkgconfdir=DIR package specific configuration in DIR
227 [[SYSCONF/netatalk]]],
228 PKGCONFDIR="$withval",
229 PKGCONFDIR="${sysconfdir}/netatalk"
232 AC_ARG_WITH(cracklib,
233 [ --with-cracklib=DICT enable/set location of cracklib dictionary],
234 if test "x$withval" != "xno" ; then
236 AC_CHECK_LIB(crack, main,
237 AC_DEFINE(USE_CRACKLIB)
239 AC_MSG_RESULT([enabling cracklib support])
240 if test "$cracklib" = "yes"; then
241 cracklib="/usr/lib/cracklib_dict"
243 AC_DEFINE_UNQUOTED(_PATH_CRACKLIB, "$cracklib",
244 [path to cracklib dictionary])
245 AC_MSG_RESULT([setting cracklib dictionary to $cracklib]),
246 AC_MSG_ERROR([cracklib not found!])
252 [ --disable-ddp disable DDP],
253 if test "$enableval" = "no"; then
255 AC_MSG_RESULT([disabling DDP])
260 [ --enable-debug enable debug code],
261 if test "$enableval" != "no"; then
262 if test "$enableval" = "yes"; then
265 AC_DEFINE_UNQUOTED(DEBUG, $enableval)
267 AC_MSG_RESULT([enabling debugging code])
274 dnl ----------- A NOTE ABOUT DROPKLUDGE
275 dnl The trouble with this fix is that if you know what the file is called, it
276 dnl can be read from the Unix side. That's okay for most academic institutions
277 dnl since the students don't have telnet access to the Mac servers. There is
278 dnl currently no one working on further development/fixes of DROPKLUDGE.
281 AC_ARG_ENABLE(dropkludge,
282 [ --enable-dropkludge enable the experimental dropbox fix (INSECURE!) ],
283 if test "$enableval" = "yes"; then
284 AC_DEFINE(DROPKLUDGE, 1)
285 AC_MSG_RESULT([enabling experimental dropbox support])
289 AC_ARG_ENABLE(force-uidgid,
290 [ --enable-force-uidgid allow forcing of uid/gid per volume (BROKEN) ],
291 if test "$enableval" = "yes"; then
292 AC_DEFINE(FORCE_UIDGID, 1)
293 AC_MSG_RESULT([enabling forcing of uid/gid per volume])
297 dnl Don't use DB3 unless it's needed
300 dnl Check for CNID DB support
301 AC_ARG_ENABLE(cnid-db,
302 [ --enable-cnid-db use persistent cnid database per volume (EXPERIMENTAL) ],
303 if test "x$enableval" = "xyes"; then
307 dnl Note that we don't AC_DEFINE(CNID_DB, 1) here...
308 dnl we have to check for the library first.
309 dnl AC_MSG_RESULT([db3 check enabled])
313 dnl Check for Berkeley DB3 library
315 [ --with-db3=PATH specify path to Berkeley DB3 installation],
316 if test "x$withval" != "xno"; then
322 for db3dir in "" $trydb3dir "$trydb3dir/include" /usr/local/BerkeleyDB.3.3/include /usr/include/db3 /usr/local/include/db3 ; do
323 if test -f "$db3dir/db.h" ; then
324 db3libdir="`echo $db3dir | sed 's/include\/db3$/lib/'`"
325 db3libdir="`echo $db3libdir | sed 's/include$/lib/'`"
326 LDFLAGS="$LDFLAGS -L$db3libdir"
327 CFLAGS="$CFLAGS -I$db3dir"
329 dnl If we require DB3, die if we don't have it
330 if test "x$db3_required" != "xno"; then
331 AC_CHECK_LIB(db, main,
332 dnl AC_MSG_RESULT([enabling db3 support])
334 dnl -- also enable CNID DB when this is found
335 AC_DEFINE(CNID_DB, 1)
336 AC_MSG_RESULT([using persistent cnid database per volume])
339 AC_MSG_ERROR([Berkeley DB3 library not found!])
346 dnl Die if the library is required, but not found
347 if test "x$db3_required" != "xno"; then
348 if test "x$db3_found" = "xno"; then
350 AC_MSG_ERROR([Berkeley DB3 library not found!])
355 [ --with-did=SCHEME set DID scheme (last,mtab)],
356 if test "x$withval" != "xno" ; then
357 if test "$withval" = "last"; then
358 AC_DEFINE(USE_LASTDID, 1)
359 AC_MSG_RESULT([enabling build without DID dev/inode mapping kludge])
361 if test "$withval" = "mtab"; then
362 AC_DEFINE(DID_MTAB, 1)
363 AC_MSG_RESULT([enabling mtab-based DID creation support])
369 AC_ARG_WITH(message-dir,
370 [ --with-msg-dir=PATH path to message files [[PKGCONF/msg]]],
372 if test x"$msg_dir" = "x"; then
373 msg_dir="${PKGCONFDIR}/msg"
375 AC_DEFINE_UNQUOTED(SERVERTEXT, "$msg_dir",
376 [path to message dir [[PKGCONF/msg]]])
377 SERVERTEXT="$msg_dir"
381 AC_ARG_ENABLE(srvloc,
382 [ --enable-srvloc turn on Server Location Protocol support (EXPERIMENTAL)],
387 dnl Conditional for optional server location protocol support (used by OS X)
388 AM_CONDITIONAL(USE_SRVLOC, test "x$srvloc" != "xno")
389 if test "x$srvloc" != "xno"; then
390 for slpdir in "" $srvloc /usr /usr/local ; do
391 if test -f "$slpdir/include/slp.h" ; then
392 LDFLAGS="$LDFLAGS -L$slpdir/lib -lslp"
393 CFLAGS="$CFLAGS -I$slpdir/include"
394 AC_CHECK_LIB(slp,SLPOpen)
395 AC_CHECK_FUNCS(SLPReg SLPDereg SLPClose)
396 AC_DEFINE(USE_SRVLOC, 1)
403 AC_MSG_CHECKING([whether PAM support should be enabled])
405 [ --with-pam enable PAM support],
406 [PAM_MSG="$withval"],
409 AC_MSG_RESULT($PAM_MSG)
413 if test "x$PAM_MSG" = "xyes"; then
414 if test "x$ac_cv_header_security_pam_appl_h" = "xyes" ; then
416 AC_CHECK_LIB(pam, pam_set_item,
417 [PAPD_LIBS="$PAPD_LIBS -lpam"; AFPD_LIBS="$AFPD_LIBS -lpam"; use_pam_so=yes; compile_pam=yes; AC_DEFINE(USE_PAM)],
418 [use_pam_so=no; compile_pam=no]
426 AC_MSG_CHECKING([whether shadow support should be enabled])
428 [ --with-shadow enable shadow password support],
429 [shadowpw="$withval"],
432 if test "x$shadowpw" = "xyes"; then
435 AC_MSG_RESULT([$shadowpw])
437 AC_ARG_ENABLE(shell-check,
438 [ --disable-shell-check disable checking for a valid shell],
439 if test "$enableval" = "no"; then
440 AC_DEFINE(DISABLE_SHELLCHECK, 1)
441 AC_MSG_RESULT([disabling valid shell check])
445 AC_MSG_CHECKING([whether flock locks should be enabled])
446 AC_ARG_WITH(flock-locks,
447 [ --with-flock-locks enable flock locks support],
448 [flock_locks="$withval"],
451 if test "x$flock_locks" = "xyes"; then
452 AC_DEFINE(USE_FLOCK_LOCKS)
454 AC_MSG_RESULT([$flock_locks])
456 AC_ARG_WITH(tcp-wrappers,
457 [ --with-tcp-wrappers enable TCP wrappers support],
458 AC_CHECK_LIB(wrap, tcpd_warn,
460 AFPD_LIBS="$AFPD_LIBS -lwrap"
461 AC_MSG_RESULT([enabling TCP wrappers support])
465 AC_ARG_ENABLE(redhat,
466 [ --enable-redhat use redhat-style sysv configuration ],
467 if test "$enableval" = "yes"; then
470 AC_MSG_RESULT([enabling redhat-style sysv support])
474 [ --enable-suse use suse-style sysv configuration ],
475 if test "$enableval" = "yes"; then
478 AC_MSG_RESULT([enabling suse-style sysv support])
481 AC_ARG_ENABLE(cobalt,
482 [ --enable-cobalt use cobalt-style sysv configuration ],
483 if test "$enableval" = "yes"; then
486 AC_MSG_RESULT([enabling cobalt-style sysv support])
489 dnl ----- timelord compilation (disabled by default)
490 AC_MSG_CHECKING([whether timelord should be compiled])
492 AC_ARG_ENABLE(timelord,
493 [ --enable-timelord enable compilation of timelord server],
494 [compile_timelord="$enableval"],
495 [compile_timelord="no"]
497 AC_MSG_RESULT([$compile_timelord])
499 AC_ARG_WITH(uams-path,
500 [ --with-uams-path=PATH path to UAMs [[PKGCONF/uams]]],
501 uams_path="$withval",
502 uams_path="${PKGCONFDIR}/uams"
505 dnl --------------------------------------------------------------------------
506 dnl FHS stuff has to be done last because it overrides other defaults
507 dnl --------------------------------------------------------------------------
510 [ --enable-fhs use Filesystem Hierarchy Standard (FHS) compatibility],
511 if test "$enableval" = "yes"; then
512 uams_path="/usr/lib/netatalk"
514 PKGCONFDIR=${sysconfdir}/netatalk
516 dnl FIXME: NEED TO HAVE --mandir=/usr/share/man AT SOME POINT...
517 AC_DEFINE(FHS_COMPATIBILITY)
519 AC_MSG_RESULT([enabling Filesystem Hierarchy Standard (FHS) compatibility])
522 dnl --------------------------------------------------------------------------
523 dnl post-FHS substitutions, etc
524 dnl --------------------------------------------------------------------------
527 AC_DEFINE_UNQUOTED(UAMS_PATH, "${uams_path}",
528 [path to UAMs [default=PKGCONF/uams]])
529 UAMS_PATH="${uams_path}"
532 dnl --------------------------------------------------------------------------
533 dnl drop in includes for top level directory structures here...
534 dnl --------------------------------------------------------------------------
535 LDFLAGS="$LDFLAGS -L\$(top_srcdir)/libatalk/"
536 CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I\$(top_srcdir)/sys"
538 dnl --------------------------------------------------------------------------
539 dnl specific configuration comes in here:
540 dnl --------------------------------------------------------------------------
542 dnl ac_cv_target_os is now host_os, ac_cv_target_cpu is now host_cpu
544 dnl --------------------- determine operating system from "target"
546 *aix*) this_os=aix ;;
547 *freebsd*) this_os=freebsd ;;
548 *hpux11*) this_os=hpux11 ;;
549 *irix*) this_os=irix ;;
550 *linux*) this_os=linux ;;
551 *osx*) this_os=macosx ;;
552 *netbsd*) this_os=netbsd ;;
553 *openbsd*) this_os=openbsd ;;
554 *osf*) this_os=tru64 ;;
555 *solaris*) this_os=solaris ;;
559 i386|i486|i586|i686|k7) this_cpu=x86 ;;
560 alpha) this_cpu=alpha ;;
561 mips) this_cpu=mips ;;
562 powerpc|ppc) this_cpu=ppc ;;
565 dnl --------------------- operating system specific flags (port from sys/*)
567 dnl ----- AIX specific -----
568 if test x"$this_os" = "xaix"; then
569 AC_MSG_RESULT([ * AIX specific configuration])
570 AC_DEFINE(NO_STRUCT_TM_GMTOFF)
572 dnl This is probably a lie; AIX 4.3 supports a 64-bit long
573 dnl compilation environment. It's enough to get things defined
574 dnl right in endian.h provided that long long is supported, though.
575 AC_DEFINE(HAVE_32BIT_LONGS)
578 dnl ----- FreeBSD specific -----
579 if test x"$this_os" = "xfreebsd"; then
580 AC_MSG_RESULT([ * FreeBSD specific configuration])
582 AC_DEFINE(SENDFILE_FLAVOR_BSD)
584 dnl ----- Set -shared flag
585 LDSHAREDFLAGS="-shared"
586 AC_DEFINE(NO_CRYPT_H, 1)
589 dnl ----- HP-UX 11 specific -----
590 if test x"$this_os" = "xhpux11"; then
591 AC_MSG_RESULT([ * HP-UX 11 specific configuration])
593 AC_DEFINE(_ISOC9X_SOURCE)
594 AC_DEFINE(NO_STRUCT_TM_GMTOFF)
597 dnl ----- IRIX specific -----
598 if test x"$this_os" = "xirix"; then
599 AC_MSG_RESULT([ * IRIX specific configuration])
601 AC_DEFINE(NO_STRUCT_TM_GMTOFF)
604 dnl ----- Linux specific -----
605 if test x"$this_os" = "xlinux"; then
606 AC_MSG_RESULT([ * Linux specific configuration])
608 dnl ----- Set -shared flag
609 LDSHAREDFLAGS="-shared"
611 dnl ----- check if we need the quotactl wrapper
612 AC_CHECK_HEADERS(sys/quota.h linux/quota.h)
613 AC_CHECK_FUNC(quotactl,,
614 AC_DEFINE(NEED_QUOTACTL_WRAPPER)
615 AC_MSG_RESULT([enabling quotactl wrapper])
618 dnl ----- as far as I can tell, dbtob always does the wrong thing
619 dnl ----- on every single version of linux I've ever played with.
620 dnl ----- see etc/afpd/quota.c
621 AC_DEFINE(HAVE_BROKEN_DBTOB)
623 dnl --- added by Yoshinobu Ishizaki (2001.03.13) ---
624 dnl ----- check if version is newer than 2.2.x
626 majorvers="`uname -r | sed 's/\([0-9]\)..*/\1/'`"
627 minorvers="`uname -r | sed 's/[0-9]\.\([0-9]\)\..*/\1/'`"
628 if [ $majorvers -ge 2 ]; then
629 if [ $minorvers -ge 2 ]; then
631 AC_MSG_RESULT([ * found Linux 2.2.x or higher])
632 AC_DEFINE(SENDFILE_FLAVOR_LINUX)
634 AC_MSG_RESULT([ * found Linux 2.0.x ])
638 dnl ----- Linux/alpha specific -----
639 if test x"$this_cpu" = "xalpha"; then
640 AC_MSG_RESULT([enabling gcc memcpy bug workaround])
641 AC_DEFINE(HAVE_GCC_MEMCPY_BUG)
646 dnl ----- Mac OSX specific -----
647 if test x"$this_os" = "xmacosx"; then
648 AC_MSG_RESULT([ * Mac OSX specific configuration])
650 AC_DEFINE(HAVE_BROKEN_CPP)
651 AC_DEFINE(HAVE_2ARG_DBTOB)
652 dnl AC_DEFINE(NO_DLFCN_H)
653 AC_DEFINE(MACOSX_SERVER)
655 dnl ----- Set -shared flag
656 LDSHAREDFLAGS="-shared"
659 dnl ----- NetBSD specific -----
660 if test x"$this_os" = "xnetbsd"; then
661 AC_MSG_RESULT([ * NetBSD specific configuration])
663 AC_DEFINE(DLSYM_PREPEND_UNDERSCORE)
664 CFLAGS="-I\$(top_srcdir)/sys/netbsd -I/usr/include/kerberosIV $CFLAGS"
667 dnl ----- Set -shared flag
668 LDSHAREDFLAGS="-shared"
670 dnl ----- NetBSD does not have crypt.h, uses unistd.h -----
671 AC_DEFINE(UAM_DHX, 1)
672 AC_DEFINE(NO_CRYPT_H, 1)
675 dnl ----- OpenBSD specific -----
676 if test x"$this_os" = "xopenbsd"; then
677 AC_MSG_RESULT([ * OpenBSD specific configuration])
679 AC_DEFINE(DLSYM_PREPEND_UNDERSCORE)
681 dnl ----- Set -shared flag
682 LDSHAREDFLAGS="-Bforcearchive -shared"
684 dnl ----- OpenBSD does not have crypt.h, uses unistd.h -----
685 AC_DEFINE(UAM_DHX, 1)
686 AC_DEFINE(NO_CRYPT_H, 1)
689 dnl ----- Solaris specific -----
690 if test x"$this_os" = "xsolaris"; then
691 AC_MSG_RESULT([ * Solaris specific configuration])
693 AC_DEFINE(_ISOC9X_SOURCE)
694 AC_DEFINE(NO_STRUCT_TM_GMTOFF)
696 CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
699 dnl ----- Set -shared flag
702 AC_MSG_RESULT([enabling Solaris kernel module build])
706 dnl ----- Tru64 specific -----
707 if test x"$this_os" = "xtru64"; then
708 AC_MSG_RESULT([ * Tru64 specific configuration])
710 AC_DEFINE(HAVE_64BIT_LONGS)
711 dnl AC_DEFINE(USE_MOUNT_H)
712 AC_DEFINE(USE_OLD_RQUOTA)
713 dnl AC_DEFINE(USE_UFS_QUOTA_H)
715 AC_CHECK_LIB(security,set_auth_parameters)
716 CFLAGS="-I\$(top_srcdir)/sys/tru64 $CFLAGS"
717 LDSHAREDFLAGS="-shared -expect_unresolved \*"
721 dnl ----- Set -shared flag
722 LDSHAREDFLAGS="-shared"
725 dnl -- look for openssl
728 dnl --------------------- check for building PGP UAM module
730 AC_ARG_ENABLE(pgp-uam,
731 [ --enable-pgp-uam enable build of PGP UAM module],
732 if test "$enableval" = "yes"; then
733 if test "$compile_ssl" = "yes"; then
734 AC_DEFINE(UAM_PGP, 1)
736 AC_MSG_RESULT([enabling build with PGP UAM module])
741 dnl --------------------- check for building Kerberos v4 UAM module
743 AC_ARG_ENABLE(krb4-uam,
744 [ --enable-krb4-uam enable build of Kerberos v4 UAM module],
745 if test "$enableval" = "yes"; then
746 AC_DEFINE(UAM_KRB4, 1)
748 AC_MSG_RESULT([enabling build with Kerberos v4 UAM module])
751 dnl --------------------- overwrite the config files . . . or not.
753 AC_MSG_CHECKING([whether configuration files should be overwritten])
754 AC_ARG_ENABLE(overwrite,
755 [ --enable-overwrite overwrite configuration files],
756 [OVERWRITE_CONFIG="${enable_overwrite}"],
757 [OVERWRITE_CONFIG="no"]
759 AC_MSG_RESULT([$OVERWRITE_CONFIG])
761 dnl --------------------- last minute substitutions
767 AC_SUBST(LDSHAREDFLAGS)
769 AC_SUBST(OVERWRITE_CONFIG)
771 AM_CONDITIONAL(SOLARIS_MODULE, test x$solaris_module = xyes)
772 AM_CONDITIONAL(COMPILE_TIMELORD, test x$compile_timelord = xyes)
773 AM_CONDITIONAL(USE_DHX, test x$compile_ssl = xyes)
774 AM_CONDITIONAL(USE_KERBEROS, test x$compile_kerberos = xyes)
775 AM_CONDITIONAL(USE_PAM_SO, test x$use_pam_so = xyes)
776 AM_CONDITIONAL(USE_PAM, test x$compile_pam = xyes)
777 AM_CONDITIONAL(BUILD_PAM, test x$compile_pam = xyes)
778 AM_CONDITIONAL(USE_PGP, test x$compile_pgp = xyes)
779 AM_CONDITIONAL(USE_COBALT, test x$sysv_style = xcobalt)
780 AM_CONDITIONAL(USE_REDHAT, test x$sysv_style = xredhat)
781 AM_CONDITIONAL(USE_SUSE, test x$sysv_style = xsuse)
782 AM_CONDITIONAL(USE_SHADOWPW, test x$shadowpw = xyes)
783 AM_CONDITIONAL(USE_TRU64, test x$sysv_style = xtru64)
785 dnl --------------------- generate files
789 bin/adv1tov2/Makefile
792 bin/afppasswd/Makefile
793 bin/getzones/Makefile
794 bin/megatron/Makefile
800 contrib/macusers/Makefile
802 contrib/printing/Makefile
803 contrib/shell_utils/Makefile
804 contrib/timelord/Makefile
806 distrib/config/Makefile
807 distrib/config/netatalk-config
808 distrib/initscripts/Makefile
813 etc/afpd/nls/Makefile
816 etc/uams/uams_krb4/Makefile
820 include/atalk/Makefile
822 libatalk/adouble/Makefile
823 libatalk/asp/Makefile
824 libatalk/atp/Makefile
825 libatalk/cnid/Makefile
826 libatalk/compat/Makefile
827 libatalk/dsi/Makefile
828 libatalk/nbp/Makefile
829 libatalk/netddp/Makefile
830 libatalk/util/Makefile
839 sys/generic/sys/Makefile
840 sys/netatalk/Makefile
842 sys/netbsd/netatalk/Makefile
847 [chmod a+x distrib/config/netatalk-config contrib/shell_utils/apple_*]