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