-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure.ac
52 lines (47 loc) · 1.69 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
51
52
# dumdumd - packets sent lightning fast to dev null
# Copyright (c) 2017-2024 OARC, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ(2.61)
AC_INIT([dumdumd], [1.4.0], [[email protected]], [dumdumd], [https://github.com/DNS-OARC/dumdumd/issues])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AC_CONFIG_SRCDIR([src/dumdumd.c])
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_CANONICAL_HOST
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_INIT([disable-static])
# Checks for libraries/headers.
AC_CHECK_HEADERS([ev.h])
AC_CHECK_LIB([ev], [ev_now])
AC_CHECK_HEADERS([uv.h])
AC_CHECK_LIB([uv], [uv_now])
AC_CHECK_LIB([event], [event_base_loop])
PKG_CHECK_MODULES([libssl], [libssl])
PKG_CHECK_MODULES([libcrypto], [libcrypto])
PKG_CHECK_MODULES([libnghttp2], [libnghttp2])
AC_CHECK_LIB([ssl], [TLS_method],
[AC_DEFINE([HAVE_TLS_METHOD], [1], [Define to 1 if you have the 'TLS_method' function])])
# Check for OS specific libraries
# case "$host_os" in
# esac
# Output Makefiles
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT