Mercurial > wflogs-daemon
annotate configure.in @ 9:13204eef1a0a
fix missing return statement
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 17 May 2013 12:40:05 -0700 |
parents | 400b1de6e1c6 |
children |
rev | line source |
---|---|
0 | 1 |
2 AC_PREREQ(2.59) | |
2
400b1de6e1c6
allow multiple config contexts
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
3 AC_INIT(wflogs-daemon,1.1,carl@five-ten-sg.com) |
0 | 4 AC_CONFIG_SRCDIR([config.h.in]) |
5 AC_CONFIG_HEADER([config.h]) | |
6 | |
7 AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION) | |
8 | |
9 # Checks for programs. | |
10 AC_PATH_PROGS(BASH, bash) | |
11 if test "x$BASH" = x ; then | |
12 AC_MSG_ERROR([bash required for init script]) | |
13 fi | |
14 AC_PROG_CXX | |
15 AC_PROG_CC | |
16 AC_PROG_CPP | |
17 AC_PROG_AWK | |
18 AC_PROG_INSTALL | |
19 AC_PROG_LN_S | |
20 AC_PROG_LIBTOOL | |
21 AC_PROG_MAKE_SET | |
22 AC_PROG_RANLIB | |
23 | |
24 # Checks for libraries. | |
25 | |
26 # Checks for header files. | |
27 AC_HEADER_SYS_WAIT | |
28 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h regex.h sys/socket.h syslog.h unistd.h]) | |
29 | |
30 # Checks for typedefs, structures, and compiler characteristics. | |
31 AC_HEADER_STDBOOL | |
32 AC_C_CONST | |
33 | |
34 # Checks for library functions. | |
35 AC_FUNC_FORK | |
36 AC_FUNC_GETPGRP | |
37 AC_HEADER_STDC | |
38 AC_FUNC_STAT | |
39 AC_CHECK_FUNCS([daemon gethostbyname inet_ntoa memchr memmove memset regcomp strdup strtol]) | |
40 | |
41 AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec, | |
42 [REGEXLIB=-lregex | |
43 AC_DEFINE(HAVE_REGEXEC,1,[Define to 1 if you have the regexec function.])], | |
44 [AC_MSG_ERROR([No regex library found])])]) | |
45 AC_SUBST(REGEXLIB) | |
46 | |
47 # check for posix threads | |
48 ACX_PTHREAD | |
49 | |
50 AC_CONFIG_FILES([Makefile | |
51 wflogs-daemon.rc | |
52 wflogs-daemon.spec | |
53 html/Makefile | |
54 info/Makefile | |
55 man/Makefile | |
56 src/Makefile | |
57 xml/Makefile | |
58 xml/wflogs-daemon]) | |
59 | |
60 AC_OUTPUT |