forked from marcomaggi/cre2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
105 lines (80 loc) · 3.04 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# @configure_input@
#
AC_PREREQ([2.68])
MMUX_PKG_VERSIONS([0],[4],[0],[devel.2])
AC_INIT([CRE2],[MMUX_PACKAGE_VERSION],[[email protected]],
[cre2],[http://github.com/marcomaggi/cre2/])
MMUX_INIT
MMUX_LIBTOOL_LIBRARY_VERSIONS([cre2],0,0,0)
AC_REVISION([1.0])
AC_COPYRIGHT([This license is meant to be the "BSD-3-Clause".
Copyright (c) 2012, 2013, 2015, 2016, 2017, 2019, 2020 Marco Maggi <[email protected]>
Copyright (c) 2011 Keegan McAllister
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the author nor the names of his contributors may be used
to endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
])
AC_CONFIG_SRCDIR([src/])
AC_CONFIG_MACRO_DIR([meta/autotools])
AC_CONFIG_AUX_DIR([meta/autotools])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([1.16 foreign subdir-objects])
AM_MAINTAINER_MODE
AM_PROG_AR
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_MKDIR_P
LT_PREREQ([2.4])
LT_INIT
#### basic system inspection
MMUX_CHECK_TARGET_OS
AX_IS_RELEASE([git-directory])
AC_LANG([C])
MMUX_LANG_C99
AC_PROG_CC_C_O
AC_LANG([C++])
AC_PROG_CXX
MMUX_LANG_CXX11
AC_PROG_CXX_C_O
#### external libraries
PKG_PREREQ([0.29])
PKG_INSTALLDIR
AX_PTHREAD
# This defines RE2_LIBS and RE2_CFLAGS. We do not specify version
# requirements for the "re2" pkg-config module because the original
# "re2.pc" file from Google does not specify any version number. (Marco
# Maggi; Apr 30, 2017)
PKG_CHECK_MODULES([RE2],[re2])
# Tested on my system: good. Tested on Travis CI: fails to detect re2.
# Why it does not work? (Marco Maggi; May 6, 2019)
#
# MMUX_CHECK_RE2
AC_CACHE_SAVE
#### finish
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile]
[meta/scripts/cre2.pc])
MMUX_OUTPUT
AC_OUTPUT
### end of file