]> arthur.barton.de Git - netatalk.git/blob - configure.in
Major automake/autoconf commit. Not working yet.
[netatalk.git] / configure.in
1 dnl configure.in for netatalk
2
3 AC_INIT(bin/adv1tov2/adv1tov2.c)
4 AM_INIT_AUTOMAKE([netatalk], [1.5])
5
6 dnl Checks for programs.
7 AC_PROG_AWK
8 AC_PROG_CC
9 AC_PROG_INSTALL
10 AC_PROG_LN_S
11 AC_PROG_MAKE_SET
12 AC_PROG_RANLIB
13
14 dnl *********************************************************************
15 dnl FIXME! FIXME! These should be selectable properly, and should produce
16 dnl the proper flags and defines...
17 dnl *********************************************************************
18
19 dnl Checks for libraries.
20 dnl Replace `main' with a function in -labs:
21 AC_CHECK_LIB(abs, main)
22 dnl Replace `main' with a function in -latalk:
23 dnl (internal) AC_CHECK_LIB(atalk, main)
24 dnl Replace `main' with a function in -laudit:
25 AC_CHECK_LIB(audit, main)
26 dnl Replace `main' with a function in -lauth:
27 AC_CHECK_LIB(auth, main)
28 dnl Replace `main' with a function in -lcmd:
29 AC_CHECK_LIB(cmd, main)
30 dnl Replace `main' with a function in -lcom_err:
31 AC_CHECK_LIB(com_err, main)
32 dnl Replace `main' with a function in -lcrack:
33 AC_CHECK_LIB(crack, main)
34 dnl Replace `main' with a function in -lcrypt:
35 AC_CHECK_LIB(crypt, main)
36 dnl Replace `main' with a function in -lcrypto:
37 AC_CHECK_LIB(crypto, main)
38 dnl Replace `main' with a function in -ld:
39 AC_CHECK_LIB(d, main)
40 dnl Replace `main' with a function in -ldb:
41 AC_CHECK_LIB(db, main)
42 dnl Replace `main' with a function in -ldes:
43 AC_CHECK_LIB(des, main)
44 dnl Replace `main' with a function in -ldl:
45 AC_CHECK_LIB(dl, main)
46 dnl Replace `main' with a function in -lkauth:
47 AC_CHECK_LIB(kauth, main)
48 dnl Replace `main' with a function in -lkrb:
49 AC_CHECK_LIB(krb, main)
50 dnl Replace `main' with a function in -llwp:
51 AC_CHECK_LIB(lwp, main)
52 dnl Replace `main' with a function in -ln:
53 AC_CHECK_LIB(n, main)
54 dnl Replace `main' with a function in -lnsl:
55 AC_CHECK_LIB(nsl, main)
56 dnl Replace `main' with a function in -lpam:
57 AC_CHECK_LIB(pam, main)
58 dnl Replace `main' with a function in -lprot:
59 AC_CHECK_LIB(prot, main)
60 dnl Replace `main' with a function in -lresolv:
61 AC_CHECK_LIB(resolv, main)
62 dnl Replace `main' with a function in -lrpcsvc:
63 AC_CHECK_LIB(rpcsvc, main)
64 dnl Replace `main' with a function in -lrx:
65 AC_CHECK_LIB(rx, main)
66 dnl Replace `main' with a function in -lrxkad:
67 AC_CHECK_LIB(rxkad, main)
68 dnl Replace `main' with a function in -lsocket:
69 AC_CHECK_LIB(socket, main)
70 dnl Replace `main' with a function in -lsys:
71 AC_CHECK_LIB(sys, main)
72 dnl Replace `main' with a function in -lubik:
73 AC_CHECK_LIB(ubik, main)
74 dnl Replace `main' with a function in -lwrap:
75 AC_CHECK_LIB(wrap, main)
76
77 dnl Checks for header files.
78 AC_HEADER_DIRENT
79 AC_HEADER_STDC
80 AC_HEADER_SYS_WAIT
81 AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h)
82
83 dnl Checks for typedefs, structures, and compiler characteristics.
84 AC_C_CONST
85 AC_TYPE_UID_T
86 AC_C_INLINE
87 AC_TYPE_MODE_T
88 AC_TYPE_OFF_T
89 AC_TYPE_PID_T
90 AC_TYPE_SIZE_T
91 AC_STRUCT_ST_RDEV
92 AC_HEADER_TIME
93 AC_STRUCT_TM
94
95 dnl Checks for library functions.
96 AC_TYPE_GETGROUPS
97 AC_PROG_GCC_TRADITIONAL
98 AC_FUNC_MEMCMP
99 AC_HEADER_MAJOR
100 AC_FUNC_MMAP
101 AC_TYPE_SIGNAL
102 AC_FUNC_UTIME_NULL
103 AC_FUNC_WAIT3
104 AC_CHECK_FUNCS(getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strstr strtoul)
105
106 dnl --------------------------------------------------------------------------
107 dnl specific configuration comes in here:
108 dnl --------------------------------------------------------------------------
109
110 AC_ARG_ENABLE(shadow,
111         [  --with-shadow           enable shadow password support],
112         AC_DEFINE(SHADOWPW)
113 )
114
115 dnl List of Makefiles to generate
116
117 AC_OUTPUT(libatalk/nbp/Makefile etc/psf/Makefile sys/ultrix/Makefile libatalk/compat/Makefile sys/openbsd/Makefile bin/Makefile man/man4/Makefile etc/atalkd/Makefile etc/Makefile sys/linux/Makefile man/man8/Makefile etc/uams/Makefile etc/afpd/nls/Makefile libatalk/Makefile bin/megatron/Makefile sys/sunos/Makefile bin/psorder/Makefile sys/osx/Makefile bin/aecho/Makefile sys/freebsd/Makefile sys/solaris/Makefile etc/papd/Makefile libatalk/util/Makefile bin/afppasswd/Makefile Makefile libatalk/dsi/Makefile bin/getzones/Makefile libatalk/asp/Makefile libatalk/atp/Makefile man/man1/Makefile man/man3/Makefile man/Makefile bin/adv1tov2/Makefile include/Makefile etc/afpd/Makefile bin/nbp/Makefile bin/pap/Makefile sys/generic/Makefile sys/netbsd/Makefile libatalk/adouble/Makefile libatalk/cnid/Makefile libatalk/netddp/Makefile)