Mercurial > syslog2iptables
annotate configure.in @ 72:ea7b7a0d0039
RHEL7 systemd and /var/run on tmpfs
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 09 Feb 2017 12:58:21 -0800 |
parents | 79f310d1bc46 |
children |
rev | line source |
---|---|
1 | 1 |
31 | 2 AC_PREREQ(2.59) |
71
79f310d1bc46
RHEL7 systemd and /var/run on tmpfs
Carl Byington <carl@five-ten-sg.com>
parents:
63
diff
changeset
|
3 AC_INIT(syslog2iptables,1.17,carl@five-ten-sg.com) |
31 | 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. | |
9 | 10 AC_PATH_PROGS(BASH, bash) |
42
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
36
diff
changeset
|
11 if test "x$BASH" = x ; then |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
36
diff
changeset
|
12 AC_MSG_ERROR([bash required for init script]) |
d9ae11033b4b
Add default config to firewall systems that send bounces to non-existant accounts.
Carl Byington <carl@five-ten-sg.com>
parents:
36
diff
changeset
|
13 fi |
31 | 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 | |
55
d237bc6331ad
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
53
diff
changeset
|
20 AC_PROG_LIBTOOL |
31 | 21 AC_PROG_MAKE_SET |
22 AC_PROG_RANLIB | |
1 | 23 |
31 | 24 # Checks for libraries. |
1 | 25 |
31 | 26 # Checks for header files. |
27 AC_HEADER_SYS_WAIT | |
55
d237bc6331ad
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
53
diff
changeset
|
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]) |
31 | 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 | |
44
9e9f09cf411c
Add fixes for Solaris from sm-archive.
Carl Byington <carl@five-ten-sg.com>
parents:
42
diff
changeset
|
39 AC_CHECK_FUNCS([daemon gethostbyname inet_ntoa memchr memmove memset regcomp strdup strtol]) |
31 | 40 |
55
d237bc6331ad
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
53
diff
changeset
|
41 AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec, |
d237bc6331ad
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
53
diff
changeset
|
42 [REGEXLIB=-lregex |
d237bc6331ad
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
53
diff
changeset
|
43 AC_DEFINE(HAVE_REGEXEC,1,[Define to 1 if you have the regexec function.])], |
d237bc6331ad
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
53
diff
changeset
|
44 [AC_MSG_ERROR([No regex library found])])]) |
d237bc6331ad
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
53
diff
changeset
|
45 AC_SUBST(REGEXLIB) |
d237bc6331ad
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
53
diff
changeset
|
46 |
46 | 47 # check for posix threads |
48 ACX_PTHREAD | |
49 | |
31 | 50 AC_CONFIG_FILES([Makefile |
32 | 51 syslog2iptables.rc |
31 | 52 syslog2iptables.spec |
53 html/Makefile | |
54 info/Makefile | |
55 man/Makefile | |
56 src/Makefile | |
57 xml/Makefile | |
58 xml/syslog2iptables]) | |
59 | |
60 AC_OUTPUT |