]> arthur.barton.de Git - netatalk.git/blob - configure.in
added contrib/macusers/Makefile to list of Makefiles to build
[netatalk.git] / configure.in
1 dnl $Id: configure.in,v 1.74 2001-05-08 13:52:38 rufustfirefly Exp $
2 dnl configure.in for netatalk
3
4 AC_INIT(bin/adv1tov2/adv1tov2.c)
5
6 NETATALK_VERSION=`cat VERSION`
7 AC_SUBST(NETATALK_VERSION)
8
9 AC_CANONICAL_SYSTEM
10 AM_INIT_AUTOMAKE(netatalk, ${NETATALK_VERSION})
11 AM_CONFIG_HEADER(config.h)
12 AM_PROG_LIBTOOL
13
14 dnl Reset locations to proper places
15 AC_PREFIX_DEFAULT(/usr/local)
16
17 dnl Checks for programs.
18 AC_PROG_AWK
19 AC_PROG_CC
20 AC_PROG_INSTALL
21 AC_PROG_LN_S
22 AC_PROG_MAKE_SET
23 AC_PROG_LIBTOOL
24
25 dnl *********************************************************************
26 dnl FIXME! FIXME! These should be selectable properly, and should produce
27 dnl the proper flags and defines...
28 dnl *********************************************************************
29
30 dnl Checks for libraries.
31 dnl Replace `main' with a function in -labs:
32 AC_CHECK_LIB(abs, main)
33 dnl Replace `main' with a function in -laudit:
34 AC_CHECK_LIB(audit, main)
35 dnl Replace `main' with a function in -lauth:
36 AC_CHECK_LIB(auth, main)
37 dnl Replace `main' with a function in -lcmd:
38 AC_CHECK_LIB(cmd, main)
39 dnl Replace `main' with a function in -lcom_err:
40 AC_CHECK_LIB(com_err, main)
41 dnl Replace `main' with a function in -lcrypt:
42 AC_CHECK_LIB(crypt, main)
43 dnl Replace `main' with a function in -ld:
44 AC_CHECK_LIB(d, main)
45 dnl Replace `main' with a function in -ldb:
46 AC_CHECK_LIB(db, main)
47 dnl Replace `main' with a function in -ldl:
48 AC_CHECK_LIB(dl, main)
49 dnl Replace `main' with a function in -lkauth:
50 AC_CHECK_LIB(kauth, main)
51 dnl Replace `main' with a function in -lkrb:
52 AC_CHECK_LIB(krb, main)
53 dnl Replace `main' with a function in -llwp:
54 AC_CHECK_LIB(lwp, main)
55 dnl Replace `main' with a function in -ln:
56 AC_CHECK_LIB(n, main)
57 dnl Replace `main' with a function in -lnsl:
58 AC_CHECK_LIB(nsl, main)
59 dnl Replace `main' with a function in -lprot:
60 AC_CHECK_LIB(prot, main)
61 dnl Replace `main' with a function in -lresolv:
62 AC_CHECK_LIB(resolv, main)
63 dnl Replace `main' with a function in -lrpcsvc:
64 AC_CHECK_LIB(rpcsvc, main)
65 dnl Replace `main' with a function in -lrx:
66 AC_CHECK_LIB(rx, main)
67 dnl Replace `main' with a function in -lrxkad:
68 AC_CHECK_LIB(rxkad, main)
69 dnl Replace `main' with a function in -lsocket:
70 AC_CHECK_LIB(socket, main)
71 dnl Replace `main' with a function in -lsys:
72 AC_CHECK_LIB(sys, main)
73 dnl Replace `main' with a function in -lubik:
74 AC_CHECK_LIB(ubik, main)
75
76 #
77 # Check presence of some functions
78 #
79 # Check for XPG4 access() function
80 # Be sure to test before adding AFS libs in LIBS path as AFS lib
81 # has such a function that works only on AFS filesystems.
82 AC_CHECK_FUNCS(access)
83
84 dnl Checks for header files.
85 AC_HEADER_DIRENT
86 AC_HEADER_STDC
87 AC_HEADER_SYS_WAIT
88 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 mntent.h syslog.h unistd.h termios.h sys/termios.h netdb.h sgtty.h ufs/quota.h mount.h)
89 AC_CHECK_HEADER(sys/cdefs.h,,
90         AC_MSG_RESULT([enabling generic cdefs.h from tree])
91         CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
92 )
93
94 # Allow user to specify flags
95 AC_ARG_WITH(cflags,
96         [  --with-cflags           specify additional flags to pass to compiler],
97         [
98                 if test "x$withval" != "xno" ; then
99                         CFLAGS="$CFLAGS $withval"
100                 fi
101         ]       
102 )
103 AC_ARG_WITH(libs,
104         [  --with-libs             specify additional libraries to link with],
105         [
106                 if test "x$withval" != "xno" ; then
107                         LIBS="$LIBS $withval"
108                 fi
109         ]
110 )
111
112 dnl Checks for typedefs, structures, and compiler characteristics.
113 AC_C_CONST
114 AC_TYPE_UID_T
115 AC_C_INLINE
116 AC_TYPE_MODE_T
117 AC_TYPE_OFF_T
118 AC_TYPE_PID_T
119 AC_TYPE_SIZE_T
120 AC_STRUCT_ST_RDEV
121 AC_HEADER_TIME
122 AC_STRUCT_TM
123
124 dnl Checks for library functions.
125 AC_TYPE_GETGROUPS
126 AC_PROG_GCC_TRADITIONAL
127 AC_FUNC_MEMCMP
128 AC_HEADER_MAJOR
129 AC_FUNC_MMAP
130 AC_TYPE_SIGNAL
131 AC_FUNC_UTIME_NULL
132 AC_FUNC_WAIT3
133 AC_CHECK_FUNCS(getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strstr strtoul setpgrp)
134 AC_FUNC_SETPGRP
135
136 dnl --------------------------------------------------------------------------
137 dnl specific configuration comes in here:
138 dnl --------------------------------------------------------------------------
139
140 AC_DEFINE(ADMIN_GRP, 1)
141
142 AC_ARG_WITH(admin-group,
143         [  --disable-admin-group  disable admin group],
144         if test "$enableval" = "no"; then
145                 AC_DEFINE(ADMIN_GRP, 0)
146                 AC_MSG_RESULT([disabling administrative group support])
147         fi
148  )
149
150 AC_ARG_ENABLE(afs,
151         [  --enable-afs           enable AFS support],
152         if test "$enableval" = "yes"; then
153                 AC_DEFINE(AFS, 1)
154                 AC_MSG_RESULT([enabling AFS support])
155         fi
156 )
157
158 AC_ARG_WITH(auth-printing-dir,
159         [  --with-auth-printing-dir=path
160               path to authenticated printing directory],
161                 cap_dir="$withval"
162                 AC_DEFINE_UNQUOTED(CAPDIR, "$cap_dir")
163                 AC_DEFINE(USE_CAP)
164                 AC_MSG_RESULT([enabling authenticated printing support]),
165 )
166
167 AC_ARG_WITH(config-dir,
168         [  --with-config-dir=path  path to config files [default=$ac_default_prefix/etc]],
169                 config_dir="$withval",
170                 config_dir="${prefix}/etc"
171 )
172
173 AC_ARG_WITH(cracklib,
174         [  --with-cracklib=dict    enable/set location of cracklib dictionary],
175         cracklib="$withval"
176         AC_CHECK_LIB(crack, main,
177                 AC_DEFINE(USE_CRACKLIB) 
178                 LIBS="$LIBS -lcrack"
179                 AC_MSG_RESULT([enabling cracklib support])
180                 if test "$cracklib" = "yes"; then
181                         cracklib="/usr/lib/cracklib_dict"
182                 fi
183                 AC_DEFINE_UNQUOTED(_PATH_CRACKLIB, "$cracklib",
184                         [path to cracklib dictionary])
185                 AC_MSG_RESULT([setting cracklib dictionary to $cracklib]),
186                 AC_MSG_ERROR([cracklib not found!])
187         )
188 )
189
190 AC_ARG_ENABLE(ddp,
191         [  --disable-ddp           disable DDP],
192         if test "$enableval" = "no"; then 
193                 AC_DEFINE(NO_DDP, 1)
194                 AC_MSG_RESULT([disabling DDP])
195         fi
196 )
197
198 AC_ARG_ENABLE(debug,
199         [  --enable-debug          enable debug code],
200         if test "$enableval" != "no"; then
201                 if test "$enableval" = "yes"; then
202                         AC_DEFINE(DEBUG, 1)
203                 else
204                         AC_DEFINE_UNQUOTED(DEBUG, $enableval)
205                 fi 
206                 AC_MSG_RESULT([enabling debugging code])
207         else
208                 AC_DEFINE(DEBUG, 0)
209         fi
210 )
211
212
213 dnl ----------- A NOTE ABOUT DROPKLUDGE
214 dnl The trouble with this fix is that if you know what the file is called, it
215 dnl can be read from the Unix side.  That's okay for most academic institutions
216 dnl since the students don't have telnet access to the Mac servers.  There is
217 dnl currently no one working on further development/fixes of DROPKLUDGE.
218 dnl -----------
219
220 AC_ARG_ENABLE(dropkludge,
221         [  --enable-dropkludge     enable the experimental dropbox fix (INSECURE!) ],
222         if test "$enableval" = "yes"; then 
223                 AC_DEFINE(DROPKLUDGE, 1)
224                 AC_MSG_RESULT([enabling experimental dropbox support])
225         fi
226 )
227
228 AC_ARG_ENABLE(force-uidgid,
229         [  --enable-force-uidgid   allow forcing of uid/gid per volume (BROKEN) ],
230         if test "$enableval" = "yes"; then 
231                 AC_DEFINE(FORCE_UIDGID, 1)
232                 AC_MSG_RESULT([enabling forcing of uid/gid per volume])
233         fi
234 )
235
236 AC_ARG_ENABLE(lastdid,
237         [  --enable-lastdid        enable build without DID dev/inode mapping kludge],
238         if test "$enableval" = "yes"; then 
239                 AC_DEFINE(USE_LASTDID, 1)
240                 AC_MSG_RESULT([enabling build without DID dev/inode mapping kludge])
241         fi
242 )
243
244 msg_dir=""
245 AC_ARG_WITH(message-dir,
246         [  --with-msg-dir=path     path to message files [default=$ac_default_prefix/etc/msg]],
247                 msg_dir="$withval"
248                 if test x"$msg_dir" = "x"; then
249                         msg_dir="${prefix}/etc/msg"
250                 fi
251                 AC_DEFINE_UNQUOTED(SERVERTEXT, "$msg_dir",
252                         [path to message dir [default=$ac_default_prefix/etc/msg]])
253                 SERVERTEXT="$msg_dir"
254                 AC_SUBST(SERVERTEXT)
255 )
256
257 AC_CHECK_LIB(pam, pam_start,
258         AC_DEFINE(USE_PAM, 1)
259         LIBS="$LIBS -lpam"
260         compile_pam=yes
261 )
262 AM_CONDITIONAL(BUILD_PAM, test x$compile_pam = xyes)
263
264 AC_ARG_WITH(pam,
265         [  --with-pam              enable password authentication modules support],
266         if test "x$compile_pam" = "xyes"; then
267                 use_pam_so=yes
268                 AC_MSG_RESULT([enabling pam modules support])
269         else
270                 AC_MSG_RESULT([pam libraries not found. Disabling pam modules support])
271         fi
272 )
273
274 shadowpw=no
275 AC_ARG_WITH(shadow,
276         [  --with-shadow           enable shadow password support],
277         AC_MSG_RESULT([enabling shadow password support])
278         AC_DEFINE(SHADOWPW)
279         shadowpw=yes
280 )
281
282 AC_ARG_ENABLE(shell-check,
283         [  --disable-shell-check   disable checking for a valid shell],
284         if test "$enableval" = "no"; then 
285                 AC_DEFINE(DISABLE_SHELLCHECK, 1)
286                 AC_MSG_RESULT([disabling valid shell check])
287         fi
288 )
289
290 AC_ARG_WITH(flock-locks,
291         [  --with-flock-locks      enable flock locks support],
292         AC_MSG_RESULT([enabling flock locks])
293         AC_DEFINE(USE_FLOCK_LOCKS)
294 )
295
296 AC_ARG_WITH(tcp-wrappers,
297         [  --with-tcp-wrappers     enable TCP wrappers support],
298         AC_CHECK_LIB(wrap, tcpd_warn,
299                 AC_DEFINE(TCPWRAP)
300                 AFPD_LIBS="$AFPD_LIBS -lwrap"
301                 AC_MSG_RESULT([enabling TCP wrappers support])
302         )
303 )
304
305 AC_ARG_ENABLE(redhat,
306         [  --enable-redhat         use redhat-style sysv configuration ],
307         if test "$enableval" = "yes"; then
308                 sysv_style=redhat
309         fi
310         AC_MSG_RESULT([enabling redhat-style sysv support])
311 )
312
313 AC_ARG_ENABLE(suse,
314         [  --enable-suse           use suse-style sysv configuration ],
315         if test "$enableval" = "yes"; then
316                 sysv_style=suse
317         fi
318         AC_MSG_RESULT([enabling suse-style sysv support])
319 )
320
321 AC_ARG_ENABLE(cobalt,
322         [  --enable-cobalt         use cobalt-style sysv configuration ],
323         if test "$enableval" = "yes"; then
324                 sysv_style=cobalt
325         fi
326         AC_MSG_RESULT([enabling cobalt-style sysv support])
327 )
328
329 dnl ----- timelord compilation (disabled by default)
330 compile_timelord=no
331 AC_ARG_ENABLE(timelord,
332         [  --enable-timelord       enable compilation of timelord server],
333         if test "$enableval" = "yes"; then
334                 compile_timelord=yes
335         fi
336         AC_MSG_RESULT([enabling timelord compilation])
337 )
338
339 AC_ARG_WITH(uams-path,
340         [  --with-uams-path=path   path to UAMs [default=$ac_default_prefix/etc/uams]],
341         uams_path="$withval",
342         uams_path="${config_dir}/uams"
343 )
344
345 dnl --------------------------------------------------------------------------
346 dnl FHS stuff has to be done last because it overrides other defaults
347 dnl --------------------------------------------------------------------------
348
349 AC_ARG_ENABLE(fhs,
350         [  --enable-fhs            use Filesystem Hierarchy Standard (FHS) compatibility],
351         if test "$enableval" = "yes"; then
352                 uams_path="/usr/lib/netatalk"
353                 config_dir="/etc/netatalk"
354                 use_pam_so=yes
355                 dnl FIXME: NEED TO HAVE --mandir=/usr/share/man AT SOME POINT...
356                 AC_DEFINE(FHS_COMPATIBILITY)
357         fi
358         AC_MSG_RESULT([enabling Filesystem Hierarchy Standard (FHS) compatibility])
359 )
360
361 dnl --------------------------------------------------------------------------
362 dnl post-FHS substitutions, etc
363 dnl --------------------------------------------------------------------------
364
365 dnl ***** CONFIG_DIR
366 AC_DEFINE_UNQUOTED(CONFIG_DIR, "${config_dir}",
367         [path to config dir [default=$ac_default_prefix/etc]])
368 CONFIG_DIR="${config_dir}"
369 AC_SUBST(CONFIG_DIR)
370 AC_MSG_RESULT([setting configuration files location to $CONFIG_DIR])
371
372 ***** UAMS_PATH
373 AC_DEFINE_UNQUOTED(UAMS_PATH, "${uams_path}",
374         [path to UAMs [default=$ac_default_prefix/etc/uams]])
375 UAMS_PATH="${uams_path}"
376 AC_SUBST(UAMS_PATH)
377
378 dnl --------------------------------------------------------------------------
379 dnl drop in includes for top level directory structures here...
380 dnl --------------------------------------------------------------------------
381 LDFLAGS="$LDFLAGS -L\$(top_srcdir)/libatalk/"
382 CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I\$(top_srcdir)/sys"
383
384 dnl --------------------------------------------------------------------------
385 dnl specific configuration comes in here:
386 dnl --------------------------------------------------------------------------
387
388 dnl ac_cv_target_os is now host_os, ac_cv_target_cpu is now host_cpu
389
390 dnl --------------------- determine operating system from "target"
391 case "$host_os" in
392         *freebsd*)                      this_os=freebsd ;;
393         *linux*)                        this_os=linux ;;
394         *osx*)                          this_os=macosx ;;
395         *netbsd*)                       this_os=netbsd ;;
396         *openbsd*)                      this_os=openbsd ;;
397         *osf*)                          this_os=tru64 ;;
398         *solaris*)                      this_os=solaris ;;
399 esac
400
401 case "$host_cpu" in
402         i386|i486|i586|i686|k7)         this_cpu=x86 ;;
403         alpha)                                          this_cpu=alpha ;;
404         mips)                                           this_cpu=mips ;;
405         powerpc|ppc)                            this_cpu=ppc ;;
406 esac
407
408 dnl --------------------- operating system specific flags (port from sys/*)
409
410 dnl ----- FreeBSD specific -----
411 if test x"$this_os" = "xfreebsd"; then 
412         AC_MSG_RESULT([ * FreeBSD specific configuration])
413         AC_DEFINE(BSD4_4)
414         AC_DEFINE(SENDFILE_FLAVOR_BSD)
415
416         dnl ----- Set -shared flag
417         LDSHAREDFLAGS="-shared"
418 fi
419
420 dnl ----- Linux specific -----
421 if test x"$this_os" = "xlinux"; then 
422         AC_MSG_RESULT([ * Linux specific configuration])
423
424         dnl ----- Set -shared flag
425         LDSHAREDFLAGS="-shared"
426
427         dnl ----- check if we need the quotactl wrapper
428         AC_CHECK_HEADER(sys/quota.h,,
429                 AC_MSG_RESULT([enabling quotactl wrapper])
430                 AC_DEFINE(NEED_QUOTACTL_WRAPPER)
431         )
432
433         dnl ----- as far as I can tell, dbtob always does the wrong thing
434         dnl ----- on every single version of linux I've ever played with.
435         dnl ----- see etc/afpd/quota.c
436         AC_DEFINE(HAVE_BROKEN_DBTOB)
437
438         dnl --- added by Yoshinobu Ishizaki (2001.03.13) ---
439         dnl ----- check if version is newer than 2.2.x
440         changequote(<<,>>)
441         majorvers="`uname -r | sed 's/\([0-9]\)..*/\1/'`"
442         minorvers="`uname -r | sed 's/[0-9]\.\([0-9]\)\..*/\1/'`"
443         if [ $majorvers -ge 2 ]; then
444                 if [ $minorvers -ge 2 ]; then
445                         changequote([,])
446                         AC_MSG_RESULT([ * found Linux 2.2.x or higher])
447                         AC_DEFINE(SENDFILE_FLAVOR_LINUX)
448                 else
449                         AC_MSG_RESULT([ * found Linux 2.0.x ]) 
450                 fi
451         fi
452
453         dnl ----- Linux/alpha specific -----
454         if test x"$this_cpu" = "xalpha"; then 
455                 AC_MSG_RESULT([enabling gcc memcpy bug workaround])
456                 AC_DEFINE(HAVE_GCC_MEMCPY_BUG)
457         fi
458         need_dash_r=no
459 fi
460
461 dnl ----- Mac OSX specific -----
462 if test x"$this_os" = "xmacosx"; then 
463         AC_MSG_RESULT([ * Mac OSX specific configuration])
464         AC_DEFINE(BSD4_4)
465         AC_DEFINE(HAVE_BROKEN_CPP)
466         AC_DEFINE(HAVE_2ARG_DBTOB)
467         AC_DEFINE(NO_DLFCN_H)
468         AC_DEFINE(MACOSX_SERVER)
469
470         dnl ----- Set -shared flag
471         LDSHAREDFLAGS="-shared"
472 fi
473
474 dnl ----- NetBSD specific -----
475 if test x"$this_os" = "xnetbsd"; then 
476         AC_MSG_RESULT([ * NetBSD specific configuration])
477         AC_DEFINE(BSD4_4)
478         AC_DEFINE(DLSYM_PREPEND_UNDERSCORE)
479         CFLAGS="-I\$(top_srcdir)/sys/netbsd -I/usr/include/kerberosIV $CFLAGS"
480         need_dash_r=yes 
481
482         dnl ----- Set -shared flag
483         LDSHAREDFLAGS="-shared"
484
485         dnl ----- NetBSD does not have crypt.h, uses unistd.h -----
486         AC_DEFINE(UAM_DHX, 1)
487         AC_DEFINE(UAM_RNDNUM, 1)
488         compile_dhx=yes
489         compile_ssl=yes
490         AC_DEFINE(NO_CRYPT_H, 1)
491 fi
492
493 dnl ----- OpenBSD specific -----
494 if test x"$this_os" = "xopenbsd"; then 
495         AC_MSG_RESULT([ * OpenBSD specific configuration])
496         AC_DEFINE(BSD4_4)
497         AC_DEFINE(DLSYM_PREPEND_UNDERSCORE)
498
499         dnl ----- Set -shared flag
500         LDSHAREDFLAGS="-Bforcearchive -shared"
501
502         dnl ----- OpenBSD does not have crypt.h, uses unistd.h -----
503         AC_DEFINE(UAM_DHX, 1)
504         AC_DEFINE(UAM_RNDNUM, 1)
505         compile_dhx=yes
506         compile_ssl=yes
507         AC_DEFINE(NO_CRYPT_H, 1)
508 fi
509
510 dnl ----- Solaris specific -----
511 if test x"$this_os" = "xsolaris"; then 
512         AC_MSG_RESULT([ * Solaris specific configuration])
513         AC_DEFINE(__svr4__)
514         AC_DEFINE(_ISOC9X_SOURCE)
515         AC_DEFINE(NO_STRUCT_TM_GMTOFF)
516         AC_DEFINE(SOLARIS)
517         CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
518         need_dash_r=yes
519
520         dnl ----- Set -shared flag
521         LDSHAREDFLAGS="-G"
522
523         AC_MSG_RESULT([enabling Solaris kernel module build])
524         solaris_module=yes
525 fi
526
527 dnl ----- Tru64 specific -----
528 if test x"$this_os" = "xtru64"; then 
529         AC_MSG_RESULT([ * Tru64 specific configuration])
530         AC_DEFINE(NO_DDP)
531         AC_DEFINE(HAVE_64BIT_LONGS)
532         dnl AC_DEFINE(USE_MOUNT_H)
533         AC_DEFINE(USE_OLD_RQUOTA)
534         dnl AC_DEFINE(USE_UFS_QUOTA_H)
535         AC_DEFINE(TRU64)
536         CFLAGS="-I\$(top_srcdir)/sys/tru64 $CFLAGS"
537         LDSHAREDFLAGS="-shared -expect_unresolved \*"
538         need_dash_r=no
539         sysv_style=tru64
540
541         dnl ----- Set -shared flag
542         LDSHAREDFLAGS="-shared"
543 fi
544
545 dnl -- look for openssl  
546 AC_ARG_WITH(ssl-dir,
547         [  --with-ssl-dir=PATH     specify path to openssl installation (must contain
548                           lib and include dirs) ],
549         [
550                 if test "x$withval" != "xno"; then
551                         tryssldir=$withval
552                 fi
553         ]
554 )
555
556 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
557         if test -f "$ssldir/include/openssl/cast.h" ; then
558                 LDFLAGS="$LDFLAGS -L$ssldir/lib -L$ssldir"
559                 CFLAGS="$CFLAGS -I$ssldir/include -I$ssldir/include/openssl"
560                 if test "$need_dash_r" = "yes"; then
561                         LIBS="$LIBS -R$ssldir/lib -R$ssldir"
562                 fi
563
564                 dnl Check for the crypto library:
565                 AC_CHECK_LIB(crypto, main)
566                 dnl LIBS="$LIBS -lcrypto"
567                 dnl Check for "DES" library (for SSLeay, not openssl):
568                 AC_CHECK_LIB(des, main)
569
570                 AC_DEFINE(OPENSSL_DHX,  1)
571                 AC_DEFINE(UAM_DHX,      1)
572                 AC_DEFINE(UAM_RNDNUM,   1)
573                 compile_dhx=yes
574                 compile_ssl=yes
575                 AC_MSG_RESULT([Found ssl and enabling RANDNUM and DHX support "$ssldir"])
576                 break
577         fi
578 done
579
580 dnl --------------------- check for building PGP UAM module
581
582 AC_ARG_ENABLE(pgp-uam,
583         [  --enable-pgp-uam        enable build of PGP UAM module],
584         if test "$enableval" = "yes"; then 
585                 if test "$compile_ssl" = "yes"; then 
586                         AC_DEFINE(UAM_PGP, 1)
587                         compile_pgp=yes
588                         AC_MSG_RESULT([enabling build with PGP UAM module])
589                 fi
590         fi
591 )
592
593 dnl --------------------- last minute substitutions
594
595 AC_SUBST(LIBS)
596 AC_SUBST(AFPD_LIBS)
597 AC_SUBST(PAPD_LIBS)
598
599 AC_SUBST(CFLAGS)
600 AC_SUBST(LDSHAREDFLAGS)
601
602 AM_CONDITIONAL(SOLARIS_MODULE, test x$solaris_module = xyes)
603 AM_CONDITIONAL(COMPILE_TIMELORD, test x$compile_timelord = xyes)
604 AM_CONDITIONAL(USE_DHX, test x$compile_dhx = xyes)
605 AM_CONDITIONAL(USE_KERBEROS, test x$compile_kerberos = xyes)
606 AM_CONDITIONAL(USE_PAM_SO, test x$use_pam_so = xyes)
607 AM_CONDITIONAL(USE_PAM, test x$compile_pam = xyes)
608 AM_CONDITIONAL(USE_PGP, test x$compile_pgp = xyes)
609 AM_CONDITIONAL(USE_COBALT, test x$sysv_style = xcobalt)
610 AM_CONDITIONAL(USE_REDHAT, test x$sysv_style = xredhat)
611 AM_CONDITIONAL(USE_SUSE, test x$sysv_style = xsuse)
612 AM_CONDITIONAL(USE_SHADOWPW, test x$shadowpw = xyes)
613 AM_CONDITIONAL(USE_TRU64, test x$sysv_style = xtru64)
614
615 dnl --------------------- generate files
616
617 AC_OUTPUT([Makefile
618         bin/Makefile
619         bin/adv1tov2/Makefile
620         bin/aecho/Makefile
621         bin/afile/Makefile
622         bin/afppasswd/Makefile
623         bin/getzones/Makefile
624         bin/megatron/Makefile
625         bin/nbp/Makefile
626         bin/pap/Makefile
627         bin/psorder/Makefile
628         config/Makefile
629         contrib/Makefile
630         contrib/macusers/Makefile
631         contrib/nu/Makefile
632         contrib/printing/Makefile
633         contrib/shell_utils/Makefile
634         contrib/timelord/Makefile
635         distrib/Makefile
636         distrib/config/Makefile
637         distrib/config/netatalk-config
638         distrib/initscripts/Makefile
639         distrib/m4/Makefile
640         doc/Makefile
641         etc/Makefile
642         etc/afpd/Makefile
643         etc/afpd/nls/Makefile
644         etc/atalkd/Makefile
645         etc/uams/Makefile
646         etc/uams/uams_krb4/Makefile
647         etc/papd/Makefile
648         etc/psf/Makefile
649         include/Makefile
650         include/atalk/Makefile
651         libatalk/Makefile
652         libatalk/adouble/Makefile
653         libatalk/asp/Makefile
654         libatalk/atp/Makefile
655         libatalk/compat/Makefile
656         libatalk/dsi/Makefile
657         libatalk/nbp/Makefile
658         libatalk/netddp/Makefile
659         libatalk/util/Makefile
660         man/Makefile
661         man/man1/Makefile
662         man/man3/Makefile
663         man/man4/Makefile
664         man/man5/Makefile
665         man/man8/Makefile
666         sys/Makefile
667         sys/netatalk/Makefile
668         ],
669         [chmod a+x distrib/config/netatalk-config contrib/shell_utils/apple_*]
670 )
671