Revision 8365,
1.1 KB
checked in by ghudson, 28 years ago
(diff) |
Find out if const is okay.
|
Line | |
---|
1 | AC_REVISION($Revision: 1.2 $) |
---|
2 | |
---|
3 | AC_INIT(newsyslog.c) |
---|
4 | |
---|
5 | ### Checks for programs. |
---|
6 | AC_PROG_CC |
---|
7 | AC_PROG_LN_S |
---|
8 | |
---|
9 | AC_C_CONST |
---|
10 | |
---|
11 | ### Checks for libraries. |
---|
12 | AC_CHECK_LIB(nsl, gethostname) |
---|
13 | |
---|
14 | ### Checks for header files. |
---|
15 | AC_CHECK_HEADERS(string.h) |
---|
16 | |
---|
17 | ### Checks for library functions. |
---|
18 | AC_CHECK_FUNCS(strdup) |
---|
19 | |
---|
20 | ### Deal with options. |
---|
21 | AC_ARG_ENABLE(execvp, |
---|
22 | [ --disable-execvp Disable searching of PATH for executed programs]) |
---|
23 | AC_ARG_ENABLE(explicit-path, |
---|
24 | [ --enable-explicit-path Hardcode path to 'compress' into the binary]) |
---|
25 | |
---|
26 | case "$enable_execvp" in |
---|
27 | no) case "$enable_explicit_path" in |
---|
28 | "") ;; |
---|
29 | yes) ;; |
---|
30 | *) AC_MSG_WARN(--disable-execvp implies --enable-explicit-path) ;; |
---|
31 | esac |
---|
32 | enable_explicit_path=yes |
---|
33 | ;; |
---|
34 | *) AC_DEFINE(USE_EXECVP) ;; |
---|
35 | esac |
---|
36 | case "$enable_explicit_path" in |
---|
37 | yes) AC_PATH_PROG(COMPRESS,compress) |
---|
38 | test -n "${COMPRESS}" || AC_MSG_ERROR(cannot find compress in ${PATH}) |
---|
39 | ;; |
---|
40 | *) COMPRESS=compress ;; |
---|
41 | esac |
---|
42 | |
---|
43 | AC_DEFINE_UNQUOTED(COMPRESS, "${COMPRESS}") |
---|
44 | |
---|
45 | AC_CONFIG_HEADER(config.h) |
---|
46 | AC_OUTPUT(Makefile) |
---|
Note: See
TracBrowser
for help on using the repository browser.