-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
50 lines (38 loc) · 1.35 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT([ddosmon], [3.0], [nenolod@systeminplace.net])
AC_CONFIG_SRCDIR([src/stdinc.h])
AC_CONFIG_HEADERS([src/autoconf.h])
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
# Checks for libraries.
AC_CHECK_LIB([pcap], [pcap_open_live])
AC_CHECK_LIB([ssh2], [libssh2_channel_write])
AC_CHECK_LIB([dl], [dlopen])
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/socket.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([dup2 memset socket strcasecmp strchr strdup strerror strrchr getrlimit])
PKG_CHECK_MODULES(MOWGLI, [libmowgli-2 >= 2.0])
PKG_CHECK_MODULES(LIBSSH2, [libssh2])
BUILDSYS_INIT
BUILDSYS_SHARED_LIB
BUILDSYS_TOUCH_DEPS
AC_ARG_WITH([watermark],
AC_HELP_STRING([--with-watermark], [String to use for watermark]),
[watermark=$withval],
[watermark="default"])
AS_IF([test "x$with_watermark" == "xyes"],
[watermark="default"],
[])
AC_DEFINE_UNQUOTED(WATERMARK, ["$watermark"], [Build watermark identifier])
AC_CONFIG_FILES([buildsys.mk extra.mk])
AC_OUTPUT