-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
69 lines (58 loc) · 2.03 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# dmbcs-micro-server A C++ library providing CGI or built-in
# web server functions
#
# Copyright (C) 2018 DM Bespoke Computer Solutions Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU 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
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.69)
AC_INIT([dmbcs-micro-server], [0.4], [http://rdmp.org/dmbcs/contact])
AM_INIT_AUTOMAKE
AM_SILENT_RULES([yes])
AC_CONFIG_SRCDIR([DMBCS/micro-server/query-string.cc])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_LIBTOOL
AC_PROG_CXX
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
# Checks for libraries.
PKG_CHECK_MODULES([CURLPP], [curlpp])
AC_SEARCH_LIBS([gcry_md_open], [gcrypt])
# Configure-time program parameters.
AC_ARG_WITH([mac],
AS_HELP_STRING([--with-mac],
[The secret to create the URL MACs]),
MAC=$withval,
AC_MSG_WARN([using default MAC (use --with-mac to change)])
MAC="theuas.")
AC_SUBST([MAC])
# Checks for header files.
AC_CHECK_HEADERS([netinet/in.h sys/socket.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_CHECK_FUNCS([select socket strtol])
AC_CONFIG_FILES([DMBCS/micro-server/makefile
makefile
dmbcs-micro-server.pc])
AC_OUTPUT