1 dnl configure.in for netatalk
3 AC_INIT(bin/adv1tov2/adv1tov2.c)
5 NETATALK_VERSION=`cat VERSION`
6 AC_SUBST(NETATALK_VERSION)
8 AM_INIT_AUTOMAKE(netatalk, ${NETATALK_VERSION})
9 AM_CONFIG_HEADER(config.h)
11 dnl Reset locations to proper places
12 AC_PREFIX_DEFAULT(/usr)
14 dnl Checks for programs.
22 dnl *********************************************************************
23 dnl FIXME! FIXME! These should be selectable properly, and should produce
24 dnl the proper flags and defines...
25 dnl *********************************************************************
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:
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:
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)
85 dnl Checks for header files.
89 AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h)
91 dnl Checks for typedefs, structures, and compiler characteristics.
103 dnl Checks for library functions.
105 AC_PROG_GCC_TRADITIONAL
112 AC_CHECK_FUNCS(getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strstr strtoul)
114 dnl --------------------------------------------------------------------------
115 dnl specific configuration comes in here:
116 dnl --------------------------------------------------------------------------
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"
126 AC_ARG_ENABLE(shadow,
127 [ --with-shadow enable shadow password support],
131 AC_ARG_ENABLE(flock-locks,
132 [ --with-flock-locks enable flock locks support],
133 AC_DEFINE(USE_FLOCK_LOCKS)
136 AC_ARG_ENABLE(tcp-wrappers,
137 [ --with-tcp-wrappers enable TCP wrappers support],
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"
149 dnl List of Makefiles to generate
153 bin/adv1tov2/Makefile
155 bin/afppasswd/Makefile
156 bin/getzones/Makefile
157 bin/megatron/Makefile
164 etc/afpd/nls/Makefile
170 include/atalk/Makefile
172 libatalk/adouble/Makefile
173 libatalk/asp/Makefile
174 libatalk/atp/Makefile
175 libatalk/compat/Makefile
176 libatalk/dsi/Makefile
177 libatalk/nbp/Makefile
178 libatalk/netddp/Makefile
179 libatalk/util/Makefile
186 sys/netatalk/Makefile