]> arthur.barton.de Git - netatalk.git/blob - configure.in
The first half of changes necessary for CAP style authenticated printing. These...
[netatalk.git] / configure.in
1 dnl configure.in for netatalk
2
3 AC_INIT(bin/adv1tov2/adv1tov2.c)
4
5 NETATALK_VERSION=`cat VERSION`
6 AC_SUBST(NETATALK_VERSION)
7
8 AM_INIT_AUTOMAKE(netatalk, ${NETATALK_VERSION})
9 AM_CONFIG_HEADER(config.h)
10
11 dnl Checks for programs.
12 AC_PROG_AWK
13 AC_PROG_CC
14 AC_PROG_INSTALL
15 AC_PROG_LN_S
16 AC_PROG_MAKE_SET
17 AC_PROG_LIBTOOL
18
19 dnl *********************************************************************
20 dnl FIXME! FIXME! These should be selectable properly, and should produce
21 dnl the proper flags and defines...
22 dnl *********************************************************************
23
24 dnl Checks for libraries.
25 dnl Replace `main' with a function in -labs:
26 AC_CHECK_LIB(abs, main)
27 dnl Replace `main' with a function in -latalk:
28 dnl (internal) AC_CHECK_LIB(atalk, main)
29 dnl Replace `main' with a function in -laudit:
30 AC_CHECK_LIB(audit, main)
31 dnl Replace `main' with a function in -lauth:
32 AC_CHECK_LIB(auth, main)
33 dnl Replace `main' with a function in -lcmd:
34 AC_CHECK_LIB(cmd, main)
35 dnl Replace `main' with a function in -lcom_err:
36 AC_CHECK_LIB(com_err, main)
37 dnl Replace `main' with a function in -lcrack:
38 AC_CHECK_LIB(crack, main)
39 dnl Replace `main' with a function in -lcrypt:
40 AC_CHECK_LIB(crypt, main)
41 dnl Replace `main' with a function in -lcrypto:
42 AC_CHECK_LIB(crypto, 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 -ldes:
48 AC_CHECK_LIB(des, main)
49 dnl Replace `main' with a function in -ldl:
50 AC_CHECK_LIB(dl, main)
51 dnl Replace `main' with a function in -lkauth:
52 AC_CHECK_LIB(kauth, main)
53 dnl Replace `main' with a function in -lkrb:
54 AC_CHECK_LIB(krb, main)
55 dnl Replace `main' with a function in -llwp:
56 AC_CHECK_LIB(lwp, main)
57 dnl Replace `main' with a function in -ln:
58 AC_CHECK_LIB(n, main)
59 dnl Replace `main' with a function in -lnsl:
60 AC_CHECK_LIB(nsl, main)
61 dnl Replace `main' with a function in -lpam:
62 AC_CHECK_LIB(pam, main)
63 dnl Replace `main' with a function in -lprot:
64 AC_CHECK_LIB(prot, main)
65 dnl Replace `main' with a function in -lresolv:
66 AC_CHECK_LIB(resolv, main)
67 dnl Replace `main' with a function in -lrpcsvc:
68 AC_CHECK_LIB(rpcsvc, main)
69 dnl Replace `main' with a function in -lrx:
70 AC_CHECK_LIB(rx, main)
71 dnl Replace `main' with a function in -lrxkad:
72 AC_CHECK_LIB(rxkad, main)
73 dnl Replace `main' with a function in -lsocket:
74 AC_CHECK_LIB(socket, main)
75 dnl Replace `main' with a function in -lsys:
76 AC_CHECK_LIB(sys, main)
77 dnl Replace `main' with a function in -lubik:
78 AC_CHECK_LIB(ubik, main)
79 dnl Replace `main' with a function in -lwrap:
80 AC_CHECK_LIB(wrap, main)
81
82 dnl Checks for header files.
83 AC_HEADER_DIRENT
84 AC_HEADER_STDC
85 AC_HEADER_SYS_WAIT
86 AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h)
87
88 dnl Checks for typedefs, structures, and compiler characteristics.
89 AC_C_CONST
90 AC_TYPE_UID_T
91 AC_C_INLINE
92 AC_TYPE_MODE_T
93 AC_TYPE_OFF_T
94 AC_TYPE_PID_T
95 AC_TYPE_SIZE_T
96 AC_STRUCT_ST_RDEV
97 AC_HEADER_TIME
98 AC_STRUCT_TM
99
100 dnl Checks for library functions.
101 AC_TYPE_GETGROUPS
102 AC_PROG_GCC_TRADITIONAL
103 AC_FUNC_MEMCMP
104 AC_HEADER_MAJOR
105 AC_FUNC_MMAP
106 AC_TYPE_SIGNAL
107 AC_FUNC_UTIME_NULL
108 AC_FUNC_WAIT3
109 AC_CHECK_FUNCS(getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strstr strtoul)
110
111 dnl --------------------------------------------------------------------------
112 dnl specific configuration comes in here:
113 dnl --------------------------------------------------------------------------
114
115 AC_ARG_ENABLE(shadow,
116         [  --with-shadow           enable shadow password support],
117         AC_DEFINE(SHADOWPW)
118 )
119
120 AC_ARG_ENABLE(tcp-wrappers,
121         [  --with-tcp-wrappers     enable TCP wrappers support],
122         AC_DEFINE(TCPWRAP)
123 )
124
125 dnl List of Makefiles to generate
126
127 AC_OUTPUT([Makefile
128         bin/Makefile
129         bin/adv1tov2/Makefile
130         bin/aecho/Makefile
131         bin/afppasswd/Makefile
132         bin/getzones/Makefile
133         bin/megatron/Makefile
134         bin/nbp/Makefile
135         bin/pap/Makefile
136         bin/psorder/Makefile
137         etc/Makefile
138         etc/afpd/Makefile
139         etc/afpd/nls/Makefile
140         etc/atalkd/Makefile
141         etc/uams/Makefile
142         etc/papd/Makefile
143         etc/psf/Makefile
144         libatalk/Makefile
145         libatalk/adouble/Makefile
146         libatalk/asp/Makefile
147         libatalk/atp/Makefile
148         libatalk/compat/Makefile
149         libatalk/dsi/Makefile
150         libatalk/nbp/Makefile
151         libatalk/netddp/Makefile
152         libatalk/util/Makefile
153         man/Makefile
154         man/man1/Makefile
155         man/man3/Makefile
156         man/man4/Makefile
157         man/man8/Makefile
158 ])
159