Revision 11847,
681 bytes
checked in by ghudson, 26 years ago
(diff) |
Use AC_DEFINE instead of manually setting CPPFLAGS.
Use host os instead of target os (which is for cross-compilers),
and use AC_CANONICAL_HOST.
|
Line | |
---|
1 | dnl Process this file with autoconf to produce a configure script. |
---|
2 | AC_INIT(cleanup.c) |
---|
3 | |
---|
4 | test -z "$lsbindir" && lsbindir='${sbindir}' |
---|
5 | AC_SUBST(lsbindir) |
---|
6 | |
---|
7 | AC_PROG_CC |
---|
8 | AC_PROG_INSTALL |
---|
9 | |
---|
10 | AC_CHECK_FUNCS(getutxent) |
---|
11 | |
---|
12 | AC_CANONICAL_HOST |
---|
13 | case $host_os in |
---|
14 | solaris*) |
---|
15 | AC_DEFINE(SOLARIS) |
---|
16 | AC_CHECK_LIB(elf, nlist) |
---|
17 | AC_CHECK_LIB(kvm, kvm_read) |
---|
18 | ;; |
---|
19 | irix*) |
---|
20 | AC_DEFINE(IRIX) |
---|
21 | ;; |
---|
22 | netbsd*) |
---|
23 | AC_DEFINE(NETBSD) |
---|
24 | AC_CHECK_LIB(kvm, kvm_open) |
---|
25 | ;; |
---|
26 | linux*) |
---|
27 | AC_DEFINE(LINUX) |
---|
28 | ;; |
---|
29 | osf*) |
---|
30 | AC_DEFINE(OSF) |
---|
31 | ;; |
---|
32 | esac |
---|
33 | |
---|
34 | AC_MSG_CHECKING(for /etc/master.passwd) |
---|
35 | if test -f /etc/master.passwd; then |
---|
36 | AC_DEFINE(HAVE_MASTER_PASSWD) |
---|
37 | AC_MSG_RESULT(yes) |
---|
38 | else |
---|
39 | AC_MSG_RESULT(no) |
---|
40 | fi |
---|
41 | |
---|
42 | ATHENA_HESIOD_REQUIRED |
---|
43 | |
---|
44 | AC_OUTPUT(Makefile) |
---|
Note: See
TracBrowser
for help on using the repository browser.