2013-02-01 10:29:23 +00:00
#
2017-04-28 15:41:57 +00:00
# Copyright (C) 2007-2017 Tobias Brunner
2017-09-13 14:56:45 +00:00
# Copyright (C) 2006-2017 Andreas Steffen
2014-10-18 10:12:17 +00:00
# Copyright (C) 2006-2014 Martin Willi
2016-05-16 08:53:44 +00:00
# HSR Hochschule fuer Technik Rapperswil
2013-02-01 10:29:23 +00:00
#
# 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 2 of the License, or (at your
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
#
# 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.
#
# ============================
# initialize & set some vars
# ============================
2006-05-16 14:24:03 +00:00
2018-06-13 15:07:58 +00:00
AC_INIT([strongSwan],[5.7.0dr2])
2013-11-04 10:59:11 +00:00
AM_INIT_AUTOMAKE(m4_esyscmd([
echo tar-ustar
echo subdir-objects
case `automake --version | head -n 1` in
*" 1.9"*);;
*" 1.10"*);;
*" 1.11"*);;
# don't use parallel test harness in 1.12 and up
*) echo serial-tests;;
esac
]))
2013-04-10 12:01:41 +00:00
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
2009-09-07 07:31:31 +00:00
AC_CONFIG_MACRO_DIR([m4/config])
2012-07-03 14:45:12 +00:00
AC_CONFIG_HEADERS([config.h])
2012-07-04 12:53:21 +00:00
AC_DEFINE([CONFIG_H_INCLUDED], [], [defined if config.h included])
2017-04-28 13:39:01 +00:00
AC_DISABLE_STATIC
2008-04-28 16:43:30 +00:00
PKG_PROG_PKG_CONFIG
2006-05-16 14:24:03 +00:00
2013-09-02 09:26:31 +00:00
m4_include(m4/macros/split-package-version.m4)
SPLIT_PACKAGE_VERSION
2013-02-01 10:29:23 +00:00
# =================================
# check --enable-xxx & --with-xxx
# =================================
2006-05-17 14:21:38 +00:00
2009-09-07 10:07:57 +00:00
m4_include(m4/macros/with.m4)
ARG_WITH_SUBST([random-device], [/dev/random], [set the device to read real random data from])
ARG_WITH_SUBST([urandom-device], [/dev/urandom], [set the device to read pseudo random data from])
ARG_WITH_SUBST([strongswan-conf], [${sysconfdir}/strongswan.conf], [set the strongswan.conf file location])
ARG_WITH_SUBST([resolv-conf], [${sysconfdir}/resolv.conf], [set the file to use in DNS handler plugin])
ARG_WITH_SUBST([piddir], [/var/run], [set path for PID and UNIX socket files])
ARG_WITH_SUBST([ipsecdir], [${libexecdir%/}/ipsec], [set installation path for ipsec tools])
2011-06-08 13:49:15 +00:00
ARG_WITH_SUBST([ipseclibdir], [${libdir%/}/ipsec], [set installation path for ipsec libraries])
ARG_WITH_SUBST([plugindir], [${ipseclibdir%/}/plugins], [set the installation path of plugins])
2011-07-06 19:53:40 +00:00
ARG_WITH_SUBST([imcvdir], [${ipseclibdir%/}/imcvs], [set the installation path of IMC and IMV dynamic librariers])
2012-04-19 14:40:21 +00:00
ARG_WITH_SUBST([nm-ca-dir], [/usr/share/ca-certificates], [directory the NM backend uses to look up trusted root certificates])
2014-02-19 10:09:59 +00:00
ARG_WITH_SUBST([swanctldir], [${sysconfdir}/swanctl], [base directory for swanctl configuration files and credentials])
2009-09-07 10:07:57 +00:00
ARG_WITH_SUBST([linux-headers], [\${top_srcdir}/src/include], [set directory of linux header files to use])
ARG_WITH_SUBST([routing-table], [220], [set routing table to use for IPsec routes])
ARG_WITH_SUBST([routing-table-prio], [220], [set priority for IPsec routing table])
2012-06-19 15:12:53 +00:00
ARG_WITH_SUBST([ipsec-script], [ipsec], [change the name of the ipsec script])
2013-04-16 10:37:04 +00:00
ARG_WITH_SUBST([fips-mode], [0], [set openssl FIPS mode: disabled(0), enabled(1), Suite B enabled(2)])
2017-03-29 09:32:25 +00:00
ARG_WITH_SUBST([libfuzzer], [], [path to libFuzzer.a])
2010-06-15 17:40:44 +00:00
ARG_WITH_SET([capabilities], [no], [set capability dropping library. Currently supported values are "libcap" and "native"])
2010-02-18 16:38:59 +00:00
ARG_WITH_SET([mpz_powm_sec], [yes], [use the more side-channel resistant mpz_powm_sec in libgmp, if available])
2012-07-11 09:16:31 +00:00
ARG_WITH_SET([dev-headers], [no], [install strongSwan development headers to directory.])
2014-03-03 17:18:47 +00:00
ARG_WITH_SET([printf-hooks], [auto], [force the use of a specific printf hook implementation (auto, builtin, glibc, vstr).])
2014-10-08 11:44:44 +00:00
ARG_WITH_SET([rubygemdir], ["gem environment gemdir"], [path to install ruby gems to])
2015-02-25 13:34:27 +00:00
ARG_WITH_SET([pythoneggdir], ["main site-packages directory"], [path to install python eggs to to])
2006-05-17 14:21:38 +00:00
2011-03-28 18:04:00 +00:00
if test -n "$PKG_CONFIG"; then
systemdsystemunitdir_default=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
fi
ARG_WITH_SET([systemdsystemunitdir], [$systemdsystemunitdir_default], [directory for systemd service files])
AC_SUBST(systemdsystemunitdir)
2008-05-08 10:58:04 +00:00
AC_ARG_WITH(
[user],
2009-07-16 08:59:20 +00:00
AS_HELP_STRING([--with-user=user],[change user of the daemons to "user" after startup (default is "root").]),
2012-07-03 14:40:26 +00:00
[AC_DEFINE_UNQUOTED([IPSEC_USER], "$withval", [username to run daemon with])
AC_SUBST(ipsecuser, "$withval")],
2008-05-08 10:58:04 +00:00
[AC_SUBST(ipsecuser, "root")]
)
AC_ARG_WITH(
[group],
2009-07-16 08:59:20 +00:00
AS_HELP_STRING([--with-group=group],[change group of the daemons to "group" after startup (default is "root").]),
2012-07-03 14:40:26 +00:00
[AC_DEFINE_UNQUOTED(IPSEC_GROUP, "$withval", [groupname to run daemon with])
AC_SUBST(ipsecgroup, "$withval")],
2008-05-08 10:58:04 +00:00
[AC_SUBST(ipsecgroup, "root")]
2007-05-07 12:38:46 +00:00
)
2012-02-13 17:04:04 +00:00
AC_ARG_WITH(
[charon-udp-port],
2012-04-20 12:58:02 +00:00
AS_HELP_STRING([--with-charon-udp-port=port],[UDP port used by charon locally (default 500). Set to 0 to allocate randomly.]),
2012-02-13 17:04:04 +00:00
[AC_DEFINE_UNQUOTED(CHARON_UDP_PORT, [$withval], [UDP port used by charon locally])
AC_SUBST(charon_udp_port, [$withval])],
[AC_SUBST(charon_udp_port, 500)]
)
AC_ARG_WITH(
[charon-natt-port],
2012-04-20 12:58:02 +00:00
AS_HELP_STRING([--with-charon-natt-port=port],[UDP port used by charon locally in case a NAT is detected (must be different from charon-udp-port, default 4500). Set to 0 to allocate randomly.]),
2012-02-13 17:04:04 +00:00
[AC_DEFINE_UNQUOTED(CHARON_NATT_PORT, [$withval], [UDP post used by charon locally in case a NAT is detected])
AC_SUBST(charon_natt_port, [$withval])],
[AC_SUBST(charon_natt_port, 4500)]
)
AC_MSG_CHECKING([configured UDP ports ($charon_udp_port, $charon_natt_port)])
2012-04-20 12:58:02 +00:00
if test x$charon_udp_port != x0 -a x$charon_udp_port = x$charon_natt_port; then
2012-02-13 17:04:04 +00:00
AC_MSG_ERROR(the ports have to be different)
else
AC_MSG_RESULT(ok)
fi
2012-06-19 15:12:53 +00:00
# convert script name to uppercase
AC_SUBST(ipsec_script_upper, [`echo -n "$ipsec_script" | tr a-z A-Z`])
2009-09-07 08:34:14 +00:00
m4_include(m4/macros/enable-disable.m4)
2014-02-27 14:37:01 +00:00
# crypto plugins
2009-09-07 08:34:14 +00:00
ARG_DISBL_SET([aes], [disable AES software implementation plugin.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([af-alg], [enable AF_ALG crypto interface to Linux Crypto API.])
2014-10-21 22:19:49 +00:00
ARG_ENABL_SET([bliss], [enable BLISS software implementation plugin.])
2009-09-07 08:34:14 +00:00
ARG_ENABL_SET([blowfish], [enable Blowfish software implementation plugin.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([ccm], [enables the CCM AEAD wrapper crypto plugin.])
2015-04-01 17:17:25 +00:00
ARG_ENABL_SET([chapoly], [enables the ChaCha20/Poly1305 AEAD plugin.])
2014-02-27 14:37:01 +00:00
ARG_DISBL_SET([cmac], [disable CMAC crypto implementation plugin.])
ARG_ENABL_SET([ctr], [enables the Counter Mode wrapper crypto plugin.])
ARG_DISBL_SET([des], [disable DES/3DES software implementation plugin.])
ARG_DISBL_SET([fips-prf], [disable FIPS PRF software implementation plugin.])
ARG_ENABL_SET([gcm], [enables the GCM AEAD wrapper crypto plugin.])
ARG_ENABL_SET([gcrypt], [enables the libgcrypt plugin.])
ARG_DISBL_SET([gmp], [disable GNU MP (libgmp) based crypto implementation plugin.])
2016-09-30 12:39:18 +00:00
ARG_DISBL_SET([curve25519], [disable Curve25519 Diffie-Hellman plugin.])
2014-02-27 14:37:01 +00:00
ARG_DISBL_SET([hmac], [disable HMAC crypto implementation plugin.])
2009-09-07 08:34:14 +00:00
ARG_ENABL_SET([md4], [enable MD4 software implementation plugin.])
ARG_DISBL_SET([md5], [disable MD5 software implementation plugin.])
2016-10-18 09:42:40 +00:00
ARG_ENABL_SET([mgf1], [enable the MGF1 software implementation plugin.])
2016-07-26 09:32:22 +00:00
ARG_ENABL_SET([newhope], [enable New Hope crypto plugin.])
2014-02-27 14:37:01 +00:00
ARG_DISBL_SET([nonce], [disable nonce generation plugin.])
ARG_ENABL_SET([ntru], [enables the NTRU crypto plugin.])
ARG_ENABL_SET([openssl], [enables the OpenSSL crypto plugin.])
ARG_ENABL_SET([padlock], [enables VIA Padlock crypto plugin.])
ARG_DISBL_SET([random], [disable RNG implementation on top of /dev/(u)random.])
ARG_DISBL_SET([rc2], [disable RC2 software implementation plugin.])
ARG_ENABL_SET([rdrand], [enable Intel RDRAND random generator plugin.])
2015-03-25 12:27:39 +00:00
ARG_ENABL_SET([aesni], [enable Intel AES-NI crypto plugin.])
2009-09-07 08:34:14 +00:00
ARG_DISBL_SET([sha1], [disable SHA1 software implementation plugin.])
ARG_DISBL_SET([sha2], [disable SHA256/SHA384/SHA512 software implementation plugin.])
2015-10-28 18:57:14 +00:00
ARG_ENABL_SET([sha3], [enable SHA3_224/SHA3_256/SHA3_384/SHA3_512 software implementation plugin.])
2014-02-27 14:37:01 +00:00
ARG_DISBL_SET([xcbc], [disable xcbc crypto implementation plugin.])
# encoding/decoding plugins
ARG_DISBL_SET([dnskey], [disable DNS RR key decoding plugin.])
ARG_DISBL_SET([pem], [disable PEM decoding plugin.])
ARG_DISBL_SET([pgp], [disable PGP key decoding plugin.])
2009-09-07 08:34:14 +00:00
ARG_DISBL_SET([pkcs1], [disable PKCS1 key decoding plugin.])
2012-11-26 11:06:44 +00:00
ARG_DISBL_SET([pkcs7], [disable PKCS7 container support plugin.])
2012-01-18 18:12:21 +00:00
ARG_DISBL_SET([pkcs8], [disable PKCS8 private key decoding plugin.])
2013-04-12 09:59:01 +00:00
ARG_DISBL_SET([pkcs12], [disable PKCS12 container support plugin.])
2014-02-27 14:37:01 +00:00
ARG_DISBL_SET([pubkey], [disable RAW public key support plugin.])
2013-04-01 13:20:39 +00:00
ARG_DISBL_SET([sshkey], [disable SSH key decoding plugin.])
2014-02-27 14:37:01 +00:00
ARG_DISBL_SET([x509], [disable X509 certificate implementation plugin.])
# fetcher/resolver plugins
ARG_ENABL_SET([curl], [enable CURL fetcher plugin to fetch files via libcurl. Requires libcurl.])
2015-02-11 11:11:04 +00:00
ARG_ENABL_SET([files], [enable simple file:// URI fetcher.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([ldap], [enable LDAP fetching plugin to fetch files via libldap. Requires openLDAP.])
ARG_ENABL_SET([soup], [enable soup fetcher plugin to fetch from HTTP via libsoup. Requires libsoup.])
ARG_ENABL_SET([unbound], [enable UNBOUND resolver plugin to perform DNS queries via libunbound. Requires libldns and libunbound.])
2014-01-30 13:07:53 +00:00
ARG_ENABL_SET([winhttp], [enable WinHTTP based HTTP/HTTPS fetching plugin.])
2014-02-27 14:37:01 +00:00
# database plugins
2009-09-07 08:34:14 +00:00
ARG_ENABL_SET([mysql], [enable MySQL database support. Requires libmysqlclient_r.])
ARG_ENABL_SET([sqlite], [enable SQLite database support. Requires libsqlite3.])
2014-02-27 14:37:01 +00:00
# authentication/credential plugins
ARG_ENABL_SET([addrblock], [enables RFC 3779 address block constraint support.])
2014-02-05 15:59:55 +00:00
ARG_ENABL_SET([acert], [enable X509 attribute certificate checking plugin.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([agent], [enables the ssh-agent signing plugin.])
ARG_DISBL_SET([constraints], [disable advanced X509 constraint checking plugin.])
ARG_ENABL_SET([coupling], [enable IKEv2 plugin to couple peer certificates permanently to authentication.])
ARG_ENABL_SET([dnscert], [enable DNSCERT authentication plugin.])
2010-08-30 14:22:33 +00:00
ARG_ENABL_SET([eap-sim], [enable SIM authentication module for EAP.])
2009-09-07 08:34:14 +00:00
ARG_ENABL_SET([eap-sim-file], [enable EAP-SIM backend based on a triplet file.])
2011-04-04 06:51:50 +00:00
ARG_ENABL_SET([eap-sim-pcsc], [enable EAP-SIM backend based on a smartcard reader. Requires libpcsclite.])
2011-09-26 13:43:38 +00:00
ARG_ENABL_SET([eap-aka], [enable EAP AKA authentication module.])
2017-05-16 15:34:02 +00:00
ARG_ENABL_SET([eap-aka-3gpp], [enable EAP AKA backend implementing 3GPP MILENAGE algorithms in software.])
2011-09-26 13:43:38 +00:00
ARG_ENABL_SET([eap-aka-3gpp2], [enable EAP AKA backend implementing 3GPP2 algorithms in software. Requires libgmp.])
2010-06-02 13:55:58 +00:00
ARG_ENABL_SET([eap-simaka-sql], [enable EAP-SIM/AKA backend based on a triplet/quintuplet SQL database.])
2009-10-28 14:34:05 +00:00
ARG_ENABL_SET([eap-simaka-pseudonym], [enable EAP-SIM/AKA pseudonym storage plugin.])
ARG_ENABL_SET([eap-simaka-reauth], [enable EAP-SIM/AKA reauthentication data storage plugin.])
2009-09-07 08:34:14 +00:00
ARG_ENABL_SET([eap-identity], [enable EAP module providing EAP-Identity helper.])
2010-08-30 14:22:33 +00:00
ARG_ENABL_SET([eap-md5], [enable EAP MD5 (CHAP) authentication module.])
2012-08-11 14:05:05 +00:00
ARG_ENABL_SET([eap-gtc], [enable EAP GTC authentication module.])
2010-08-30 14:22:33 +00:00
ARG_ENABL_SET([eap-mschapv2], [enable EAP MS-CHAPv2 authentication module.])
ARG_ENABL_SET([eap-tls], [enable EAP TLS authentication module.])
ARG_ENABL_SET([eap-ttls], [enable EAP TTLS authentication module.])
2011-04-06 12:42:02 +00:00
ARG_ENABL_SET([eap-peap], [enable EAP PEAP authentication module.])
2010-08-30 13:36:24 +00:00
ARG_ENABL_SET([eap-tnc], [enable EAP TNC trusted network connect module.])
2012-08-23 12:42:23 +00:00
ARG_ENABL_SET([eap-dynamic], [enable dynamic EAP proxy module.])
2010-08-30 14:22:33 +00:00
ARG_ENABL_SET([eap-radius], [enable RADIUS proxy authentication module.])
2014-10-06 09:52:49 +00:00
ARG_ENABL_SET([ext-auth], [enable plugin calling an external authorization script.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([ipseckey], [enable IPSECKEY authentication plugin.])
ARG_ENABL_SET([keychain], [enables OS X Keychain Services credential set.])
ARG_ENABL_SET([pkcs11], [enables the PKCS11 token support plugin.])
2017-02-16 07:39:47 +00:00
ARG_ENABL_SET([tpm], [enables the TPM plugin.])
2014-02-27 14:37:01 +00:00
ARG_DISBL_SET([revocation], [disable X509 CRL/OCSP revocation check plugin.])
ARG_ENABL_SET([whitelist], [enable peer identity whitelisting plugin.])
2012-07-02 10:49:29 +00:00
ARG_DISBL_SET([xauth-generic], [disable generic XAuth backend.])
2011-12-19 19:21:02 +00:00
ARG_ENABL_SET([xauth-eap], [enable XAuth backend using EAP methods to verify passwords.])
2012-08-09 12:39:31 +00:00
ARG_ENABL_SET([xauth-pam], [enable XAuth backend using PAM to verify passwords.])
2013-02-04 17:55:54 +00:00
ARG_ENABL_SET([xauth-noauth], [enable XAuth pseudo-backend that does not actually verify or even request any credentials.])
2014-02-27 14:37:01 +00:00
# kernel interfaces / sockets
2009-09-07 08:34:14 +00:00
ARG_DISBL_SET([kernel-netlink], [disable the netlink kernel interface.])
ARG_ENABL_SET([kernel-pfkey], [enable the PF_KEY kernel interface.])
ARG_ENABL_SET([kernel-pfroute], [enable the PF_ROUTE kernel interface.])
2013-12-12 08:35:36 +00:00
ARG_ENABL_SET([kernel-iph], [enable the Windows IP Helper based networking backend.])
2014-06-27 13:26:53 +00:00
ARG_ENABL_SET([kernel-libipsec],[enable the libipsec kernel interface.])
2013-10-31 13:58:43 +00:00
ARG_ENABL_SET([kernel-wfp], [enable the Windows Filtering Platform IPsec backend.])
2010-02-22 13:56:35 +00:00
ARG_DISBL_SET([socket-default], [disable default socket implementation for charon.])
2010-02-24 09:58:23 +00:00
ARG_ENABL_SET([socket-dynamic], [enable dynamic socket implementation for charon])
2013-10-30 17:01:18 +00:00
ARG_ENABL_SET([socket-win], [enable Winsock2 based socket implementation for charon])
2014-02-27 14:37:01 +00:00
# configuration/control plugins
ARG_DISBL_SET([stroke], [disable charons stroke configuration backend.])
ARG_ENABL_SET([smp], [enable SMP configuration and control interface. Requires libxml.])
ARG_ENABL_SET([sql], [enable SQL database configuration backend.])
ARG_ENABL_SET([uci], [enable OpenWRT UCI configuration plugin.])
2015-12-17 16:48:09 +00:00
ARG_DISBL_SET([vici], [disable strongSwan IKE generic IPC interface plugin.])
2014-02-27 14:37:01 +00:00
# attribute provider/consumer plugins
ARG_ENABL_SET([android-dns], [enable Android specific DNS handler.])
2009-09-07 08:34:14 +00:00
ARG_DISBL_SET([attr], [disable strongswan.conf based configuration attribute plugin.])
2009-10-13 15:02:29 +00:00
ARG_ENABL_SET([attr-sql], [enable SQL based configuration attribute plugin.])
2010-03-22 13:39:33 +00:00
ARG_ENABL_SET([dhcp], [enable DHCP based attribute provider plugin.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([osx-attr], [enable OS X SystemConfiguration attribute handler.])
2016-02-03 16:49:48 +00:00
ARG_ENABL_SET([p-cscf], [enable plugin to request P-CSCF server addresses from an ePDG.])
2009-09-20 17:06:58 +00:00
ARG_DISBL_SET([resolve], [disable resolve DNS handler plugin.])
2012-07-23 15:14:47 +00:00
ARG_ENABL_SET([unity], [enables Cisco Unity extension plugin.])
2014-02-27 14:37:01 +00:00
# TNC modules/plugins
ARG_ENABL_SET([imc-test], [enable IMC test module.])
ARG_ENABL_SET([imv-test], [enable IMV test module.])
ARG_ENABL_SET([imc-scanner], [enable IMC port scanner module.])
ARG_ENABL_SET([imv-scanner], [enable IMV port scanner module.])
ARG_ENABL_SET([imc-os], [enable IMC operating system module.])
ARG_ENABL_SET([imv-os], [enable IMV operating system module.])
ARG_ENABL_SET([imc-attestation],[enable IMC attestation module.])
ARG_ENABL_SET([imv-attestation],[enable IMV attestation module.])
2017-06-10 08:22:01 +00:00
ARG_ENABL_SET([imc-swima], [enable IMC swima module.])
2017-06-10 08:23:28 +00:00
ARG_ENABL_SET([imv-swima], [enable IMV swima module.])
2015-05-21 20:01:32 +00:00
ARG_ENABL_SET([imc-hcd], [enable IMC hcd module.])
ARG_ENABL_SET([imv-hcd], [enable IMV hcd module.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([tnc-ifmap], [enable TNC IF-MAP module. Requires libxml])
ARG_ENABL_SET([tnc-imc], [enable TNC IMC module.])
ARG_ENABL_SET([tnc-imv], [enable TNC IMV module.])
ARG_ENABL_SET([tnc-pdp], [enable TNC policy decision point module.])
ARG_ENABL_SET([tnccs-11], [enable TNCCS 1.1 protocol module. Requires libxml])
ARG_ENABL_SET([tnccs-20], [enable TNCCS 2.0 protocol module.])
ARG_ENABL_SET([tnccs-dynamic], [enable dynamic TNCCS protocol discovery module.])
# misc plugins
2012-02-16 17:17:09 +00:00
ARG_ENABL_SET([android-log], [enable Android specific logger plugin.])
2016-10-12 08:05:10 +00:00
ARG_ENABL_SET([bypass-lan], [enable plugin to install bypass policies for local subnets.])
2011-08-03 13:16:41 +00:00
ARG_ENABL_SET([certexpire], [enable CSV export of expiration dates of used certificates.])
2014-11-14 10:01:45 +00:00
ARG_ENABL_SET([connmark], [enable connmark plugin using conntrack based marks to select return path SA.])
2017-08-24 15:02:37 +00:00
ARG_ENABL_SET([counters], [enable plugin that collects several performance counters.])
2014-12-05 14:50:24 +00:00
ARG_ENABL_SET([forecast], [enable forecast plugin forwarding broadcast/multicast messages.])
2011-02-09 14:04:21 +00:00
ARG_ENABL_SET([duplicheck], [advanced duplicate checking plugin using liveness checks.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([error-notify], [enable error notification plugin.])
ARG_ENABL_SET([farp], [enable ARP faking plugin that responds to ARP requests to peers virtual IP])
ARG_ENABL_SET([ha], [enable high availability cluster plugin.])
ARG_ENABL_SET([led], [enable plugin to control LEDs on IKEv2 activity using the Linux kernel LED subsystem.])
ARG_ENABL_SET([load-tester], [enable load testing plugin for IKEv2 daemon.])
ARG_ENABL_SET([lookip], [enable fast virtual IP lookup and notification plugin.])
2012-02-27 14:41:53 +00:00
ARG_ENABL_SET([radattr], [enable plugin to inject and process custom RADIUS attributes as IKEv2 client.])
2016-09-02 12:06:30 +00:00
ARG_ENABL_SET([save-keys], [enable development/debugging plugin that saves IKE and ESP keys in Wireshark format.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([systime-fix], [enable plugin to handle cert lifetimes with invalid system time gracefully.])
ARG_ENABL_SET([test-vectors], [enable plugin providing crypto test vectors.])
ARG_DISBL_SET([updown], [disable updown firewall script plugin.])
# programs/components
2016-05-16 08:53:44 +00:00
ARG_ENABL_SET([aikgen], [enable AIK generator for TPM 1.2.])
2014-02-27 14:37:01 +00:00
ARG_DISBL_SET([charon], [disable the IKEv1/IKEv2 keying daemon charon.])
ARG_ENABL_SET([cmd], [enable the command line IKE client charon-cmd.])
ARG_ENABL_SET([conftest], [enforce Suite B conformance test framework.])
ARG_ENABL_SET([dumm], [enable the DUMM UML test framework.])
ARG_ENABL_SET([fast], [enable libfast (FastCGI Application Server w/ templates.])
2017-03-08 10:00:22 +00:00
ARG_ENABL_SET([fuzzing], [enable fuzzing scripts (found in directory fuzz).])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([libipsec], [enable user space IPsec implementation.])
ARG_ENABL_SET([manager], [enable web management console (proof of concept).])
ARG_ENABL_SET([medcli], [enable mediation client configuration database plugin.])
ARG_ENABL_SET([medsrv], [enable mediation server web frontend and daemon plugin.])
ARG_ENABL_SET([nm], [enable NetworkManager backend.])
2014-03-04 11:24:52 +00:00
ARG_DISBL_SET([pki], [disable pki certificate utility.])
2014-06-27 13:26:53 +00:00
ARG_DISBL_SET([scepclient], [disable SCEP client tool.])
2014-02-27 14:37:01 +00:00
ARG_DISBL_SET([scripts], [disable additional utilities (found in directory scripts).])
2013-10-29 16:33:33 +00:00
ARG_ENABL_SET([svc], [enable charon Windows service.])
2014-07-17 14:16:23 +00:00
ARG_ENABL_SET([systemd], [enable systemd specific IKE daemon charon-systemd.])
2015-12-17 16:48:09 +00:00
ARG_DISBL_SET([swanctl], [disable swanctl configuration and control tool.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([tkm], [enable Trusted Key Manager support.])
# optional features
2012-07-11 15:37:09 +00:00
ARG_ENABL_SET([bfd-backtraces], [use binutils libbfd to resolve backtraces for memory leaks and segfaults.])
2013-10-14 09:55:12 +00:00
ARG_ENABL_SET([dbghelp-backtraces],[use dbghlp.dll on Windows to create and print backtraces for memory leaks and segfaults.])
2014-02-27 14:37:01 +00:00
ARG_DISBL_SET([ikev1], [disable IKEv1 protocol support in charon.])
ARG_DISBL_SET([ikev2], [disable IKEv2 protocol support in charon.])
ARG_ENABL_SET([integrity-test], [enable integrity testing of libstrongswan and plugins.])
ARG_DISBL_SET([load-warning], [disable the charon plugin load option warning in starter.])
ARG_ENABL_SET([mediation], [enable IKEv2 Mediation Extension.])
2013-04-05 14:26:27 +00:00
ARG_ENABL_SET([unwind-backtraces],[use libunwind to create backtraces for memory leaks and segfaults.])
2015-05-21 09:05:05 +00:00
ARG_ENABL_SET([ruby-gems], [enable build of provided ruby gems.])
ARG_ENABL_SET([ruby-gems-install],[enable installation of provided ruby gems.])
ARG_ENABL_SET([python-eggs], [enable build of provided python eggs.])
ARG_ENABL_SET([python-eggs-install],[enable installation of provided python eggs.])
2015-11-16 19:08:30 +00:00
ARG_ENABL_SET([perl-cpan], [enable build of provided perl CPAN module.])
ARG_ENABL_SET([perl-cpan-install],[enable installation of provided CPAN module.])
2016-06-02 21:01:11 +00:00
ARG_ENABL_SET([tss-trousers], [enable the use of the TrouSerS Trusted Software Stack])
ARG_ENABL_SET([tss-tss2], [enable the use of the TSS 2.0 Trusted Software Stack])
2014-02-27 14:37:01 +00:00
# compile options
2013-03-27 10:03:56 +00:00
ARG_ENABL_SET([coverage], [enable lcov coverage report generation.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([leak-detective], [enable malloc hooks to find memory leaks.])
ARG_ENABL_SET([lock-profiler], [enable lock/mutex profiling code.])
2016-02-12 16:09:47 +00:00
ARG_ENABL_SET([log-thread-ids], [use thread ID, if available, instead of an incremented value starting from 1, to identify threads.])
2014-02-27 14:37:01 +00:00
ARG_ENABL_SET([monolithic], [build monolithic version of libstrongswan that includes all enabled plugins. Similarly, the plugins of charon are assembled in libcharon.])
2009-04-24 03:32:17 +00:00
2013-02-01 10:29:23 +00:00
# ===================================
# option to disable default options
# ===================================
2013-01-31 17:22:25 +00:00
ARG_DISBL_SET([defaults], [disable all default plugins (they can be enabled with their respective --enable options)])
if test x$defaults = xfalse; then
for option in $enabled_by_default; do
eval test x\${${option}_given} = xtrue && continue
2014-02-27 15:28:00 +00:00
eval $option=false
done
fi
# ==============================
# option to enable all options
# ==============================
ARG_ENABL_SET([all], [enable all plugins and features (they can be disabled with their respective --disable options). Mainly for testing.])
if test x$all_given = xtrue; then
for option in $disabled_by_default; do
eval test x\${${option}_given} = xtrue && continue
eval $option=true
2013-01-31 17:22:25 +00:00
done
fi
2013-02-01 10:29:23 +00:00
# ===========================
# set up compiler and flags
# ===========================
2009-04-27 11:34:07 +00:00
if test -z "$CFLAGS"; then
2013-11-25 17:20:13 +00:00
CFLAGS="-g -O2 -Wall -Wno-format -Wno-format-security -Wno-pointer-sign"
2009-04-27 11:34:07 +00:00
fi
2017-06-20 11:52:16 +00:00
AC_SUBST(PLUGIN_CFLAGS)
2009-04-27 11:34:07 +00:00
AC_PROG_CC
2012-05-18 19:19:52 +00:00
AM_PROG_CC_C_O
2009-07-15 14:04:37 +00:00
AC_LIB_PREFIX
2009-04-27 11:34:07 +00:00
AC_C_BIGENDIAN
2013-02-01 10:29:23 +00:00
# =========================
# check required programs
# =========================
2006-05-16 14:24:03 +00:00
2013-02-01 09:55:33 +00:00
LT_INIT
2006-05-16 14:24:03 +00:00
AC_PROG_INSTALL
2009-07-20 19:01:13 +00:00
AC_PROG_EGREP
2009-07-16 12:59:30 +00:00
AC_PROG_AWK
2006-05-16 14:24:03 +00:00
AC_PROG_LEX
AC_PROG_YACC
2014-01-23 15:44:12 +00:00
AM_PATH_PYTHON(,,[:])
2006-05-24 06:36:46 +00:00
AC_PATH_PROG([PERL], [perl], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
2009-07-16 12:59:30 +00:00
AC_PATH_PROG([GPERF], [gperf], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
2013-02-01 10:29:23 +00:00
# because gperf is not needed by end-users we just report it but do not abort on failure
2009-07-16 12:59:30 +00:00
AC_MSG_CHECKING([gperf version >= 3.0.0])
if test -x "$GPERF"; then
if test "`$GPERF --version | $AWK -F' ' '/^GNU gperf/ { print $3 }' | $AWK -F. '{ print $1 }'`" -ge "3"; then
2017-09-18 15:57:05 +00:00
GPERF_OUTPUT="`echo foo | ${GPERF}`"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <string.h>
const char *in_word_set(const char*, size_t); $GPERF_OUTPUT]])],
[GPERF_LEN_TYPE=size_t],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <string.h>
const char *in_word_set(const char*, unsigned); $GPERF_OUTPUT]])],
[GPERF_LEN_TYPE=unsigned],
[AC_MSG_ERROR([unable to determine gperf len type])]
)]
)
2017-09-26 10:23:36 +00:00
AC_SUBST(GPERF_LEN_TYPE)
2009-07-16 12:59:30 +00:00
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
else
AC_MSG_RESULT([not found])
fi
2006-05-16 14:24:03 +00:00
2013-02-01 10:29:23 +00:00
# ========================
# dependency calculation
# ========================
2006-05-16 14:24:03 +00:00
2012-06-25 09:07:49 +00:00
if test x$xauth_generic_given = xfalse -a x$ikev1 = xfalse; then
xauth_generic=false;
fi
2013-06-11 16:43:01 +00:00
if test x$kernel_libipsec = xtrue; then
libipsec=true;
fi
2009-10-08 08:29:43 +00:00
if test x$eap_aka_3gpp2 = xtrue; then
2009-06-16 12:53:16 +00:00
gmp=true;
2009-10-08 08:29:43 +00:00
fi
if test x$eap_aka = xtrue; then
2009-06-16 12:53:16 +00:00
fips_prf=true;
2009-10-19 13:37:36 +00:00
simaka=true;
2009-06-16 12:53:16 +00:00
fi
if test x$eap_sim = xtrue; then
fips_prf=true;
2009-10-19 13:37:36 +00:00
simaka=true;
2009-06-16 12:53:16 +00:00
fi
2011-11-18 18:42:05 +00:00
if test x$eap_radius = xtrue -o x$radattr = xtrue -o x$tnc_pdp = xtrue; then
2012-02-27 14:18:58 +00:00
radius=true;
fi
2018-03-09 13:40:00 +00:00
if test x$tnc_imc = xtrue -o x$tnc_imv = xtrue -o x$tnccs_11 = xtrue -o x$tnccs_20 = xtrue -o x$tnccs_dynamic = xtrue -o x$eap_tnc = xtrue; then
2011-10-31 22:29:49 +00:00
tnc_tnccs=true;
2011-10-20 19:12:29 +00:00
fi
2013-08-19 10:20:57 +00:00
if test x$eap_tls = xtrue -o x$eap_ttls = xtrue -o x$eap_peap = xtrue -o x$tnc_tnccs = xtrue; then
tls=true;
fi
2018-03-01 16:33:49 +00:00
if test x$imc_test = xtrue -o x$imv_test = xtrue -o x$imc_scanner = xtrue -o x$imv_scanner = xtrue -o x$imc_os = xtrue -o x$imv_os = xtrue -o x$imc_attestation = xtrue -o x$imv_attestation = xtrue -o x$imc_swima = xtrue -o x$imv_swima = xtrue -o x$imc_hcd = xtrue -o x$imv_hcd = xtrue; then
2011-05-30 19:30:09 +00:00
imcv=true;
fi
2009-06-16 12:53:16 +00:00
if test x$fips_prf = xtrue; then
2010-03-08 11:40:45 +00:00
if test x$openssl = xfalse; then
sha1=true;
fi
2009-06-16 12:53:16 +00:00
fi
2014-01-29 13:37:32 +00:00
if test x$swanctl = xtrue; then
vici=true
fi
2013-03-31 14:37:30 +00:00
if test x$smp = xtrue -o x$tnccs_11 = xtrue -o x$tnc_ifmap = xtrue; then
2008-03-28 12:44:01 +00:00
xml=true
fi
if test x$manager = xtrue; then
fast=true
fi
2008-05-14 07:26:19 +00:00
if test x$medsrv = xtrue; then
2009-09-23 09:13:27 +00:00
mediation=true
2008-06-11 14:13:24 +00:00
fast=true
2008-05-14 07:26:19 +00:00
fi
if test x$medcli = xtrue; then
2009-09-23 09:13:27 +00:00
mediation=true
2008-05-14 07:26:19 +00:00
fi
2015-05-21 09:05:05 +00:00
if test x$ruby_gems_install = xtrue; then
ruby_gems=true
fi
if test x$python_eggs_install = xtrue; then
python_eggs=true
fi
2015-11-17 12:32:54 +00:00
if test x$perl_cpan_install = xtrue; then
2015-12-14 09:45:48 +00:00
perl_cpan=true
2015-11-17 12:32:54 +00:00
fi
2016-06-24 11:03:15 +00:00
if test x$aikgen = xtrue; then
tss_trousers=true
fi
2017-09-23 14:32:03 +00:00
if test x$gmp = xtrue -o x$ntru = xtrue -o x$bliss = xtrue; then
2016-09-20 20:01:07 +00:00
mgf1=true
fi
2017-08-24 15:02:37 +00:00
if test x$stroke = xtrue; then
counters=true
fi
2013-02-01 10:29:23 +00:00
# ===========================================
# check required libraries and header files
# ===========================================
2009-05-06 11:30:38 +00:00
AC_HEADER_STDBOOL
2009-08-14 11:25:22 +00:00
AC_FUNC_ALLOCA
2012-06-27 16:42:25 +00:00
AC_FUNC_STRERROR_R
2008-03-28 12:44:01 +00:00
2013-02-01 10:29:23 +00:00
# libraries needed on some platforms but not on others
# ------------------------------------------------------
2009-04-30 17:13:45 +00:00
saved_LIBS=$LIBS
2009-08-07 16:30:40 +00:00
2013-02-01 10:29:23 +00:00
# FreeBSD and Mac OS X have dlopen integrated in libc, Linux needs libdl
2009-04-30 17:13:45 +00:00
LIBS=""
AC_SEARCH_LIBS(dlopen, dl, [DLLIB=$LIBS])
AC_SUBST(DLLIB)
2013-02-01 10:29:23 +00:00
# glibc's backtrace() can be replicated on FreeBSD with libexecinfo
2009-08-07 16:30:40 +00:00
LIBS=""
AC_SEARCH_LIBS(backtrace, execinfo, [BTLIB=$LIBS])
AC_CHECK_FUNCS(backtrace)
AC_SUBST(BTLIB)
2013-02-01 10:29:23 +00:00
# OpenSolaris needs libsocket and libnsl for socket()
2009-08-14 12:42:03 +00:00
LIBS=""
AC_SEARCH_LIBS(socket, socket, [SOCKLIB=$LIBS],
[AC_CHECK_LIB(nsl, socket, [SOCKLIB="-lsocket -lnsl"], [], [-lsocket])]
)
AC_SUBST(SOCKLIB)
2013-02-01 10:29:23 +00:00
# Android has pthread_* functions in bionic (libc), others need libpthread
2016-05-18 12:44:19 +00:00
LIBS=$DLLIB
2009-12-10 10:08:01 +00:00
AC_SEARCH_LIBS(pthread_create, pthread, [PTHREADLIB=$LIBS])
AC_SUBST(PTHREADLIB)
2016-07-20 09:01:17 +00:00
# Some architectures require explicit -latomic for __atomic_* operations
# AC_SEARCH_LIBS() does not work when checking built-ins due to conflicting types
2016-06-08 12:46:35 +00:00
LIBS=""
2016-07-20 09:01:17 +00:00
AC_MSG_CHECKING(for library containing __atomic_and_fetch)
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[]], [[int x; __atomic_and_fetch(&x, 1, __ATOMIC_RELAXED);]])],
[AC_MSG_RESULT([none required])],
[LIBS="-latomic";
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[]], [[int x; __atomic_and_fetch(&x, 1, __ATOMIC_RELAXED);]])],
[AC_MSG_RESULT([-latomic]); ATOMICLIB=$LIBS],
[AC_MSG_RESULT([no])])
]
)
2016-06-08 12:46:35 +00:00
AC_SUBST(ATOMICLIB)
2009-08-07 16:30:40 +00:00
LIBS=$saved_LIBS
2013-02-01 10:29:23 +00:00
# ------------------------------------------------------
2009-08-07 16:30:40 +00:00
2009-05-04 11:59:44 +00:00
AC_MSG_CHECKING(for dladdr)
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#define _GNU_SOURCE
#include <dlfcn.h>]],
[[Dl_info* info = 0;
dladdr(0, info);]])],
2012-07-03 14:40:26 +00:00
[AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_DLADDR], [], [have dladdr()])],
2009-05-04 11:59:44 +00:00
[AC_MSG_RESULT([no])]
)
2016-06-16 15:19:10 +00:00
# check if pthread_condattr_setclock(CLOCK_MONOTONIC) is supported
2009-08-31 13:13:48 +00:00
saved_LIBS=$LIBS
2009-12-10 10:08:01 +00:00
LIBS=$PTHREADLIB
2016-06-17 13:04:17 +00:00
AC_MSG_CHECKING([for pthread_condattr_setclock(CLOCK_MONOTONIC)])
AC_RUN_IFELSE(
[AC_LANG_SOURCE(
[[#include <pthread.h>
int main() { pthread_condattr_t attr;
pthread_condattr_init(&attr);
return pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);}]])],
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_CONDATTR_CLOCK_MONOTONIC], [],
[pthread_condattr_setclock supports CLOCK_MONOTONIC])],
[AC_MSG_RESULT([no])],
# Check existence of pthread_condattr_setclock if cross-compiling
[AC_MSG_RESULT([unknown]);
AC_CHECK_FUNCS(pthread_condattr_setclock,
[AC_DEFINE([HAVE_CONDATTR_CLOCK_MONOTONIC], [],
[have pthread_condattr_setclock()])]
)]
)
2013-02-01 10:29:23 +00:00
# check if we actually are able to configure attributes on cond vars
2009-12-08 17:24:40 +00:00
AC_CHECK_FUNCS(pthread_condattr_init)
2013-02-01 10:29:23 +00:00
# instead of pthread_condattr_setclock Android has this function
2009-12-21 16:03:33 +00:00
AC_CHECK_FUNCS(pthread_cond_timedwait_monotonic)
2013-02-01 10:29:23 +00:00
# check if we can cancel threads
2009-12-22 09:51:11 +00:00
AC_CHECK_FUNCS(pthread_cancel)
2013-02-01 10:29:23 +00:00
# check if native rwlocks are available
2009-12-08 13:06:11 +00:00
AC_CHECK_FUNCS(pthread_rwlock_init)
2013-02-01 10:29:23 +00:00
# check if pthread spinlocks are available
2012-12-13 10:22:40 +00:00
AC_CHECK_FUNCS(pthread_spin_init)
2013-02-01 10:29:23 +00:00
# check if we have POSIX semaphore functions, including timed-wait
2012-08-20 14:58:15 +00:00
AC_CHECK_FUNCS(sem_timedwait)
2009-08-31 13:13:48 +00:00
LIBS=$saved_LIBS
2012-01-10 17:31:33 +00:00
AC_CHECK_FUNC(
[gettid],
2012-07-03 14:40:26 +00:00
[AC_DEFINE([HAVE_GETTID], [], [have gettid()])],
2012-01-10 17:31:33 +00:00
[AC_MSG_CHECKING([for SYS_gettid])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#define _GNU_SOURCE
#include <unistd.h>
#include <sys/syscall.h>]],
[[int main() {
return syscall(SYS_gettid);}]])],
2012-07-03 14:40:26 +00:00
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_GETTID], [], [have gettid()])
AC_DEFINE([HAVE_SYS_GETTID], [], [have syscall(SYS_gettid)])],
2012-01-10 17:31:33 +00:00
[AC_MSG_RESULT([no])]
)]
2011-12-16 15:21:01 +00:00
)
2014-01-24 10:58:33 +00:00
AC_CHECK_FUNC(
[qsort_r],
[
AC_DEFINE([HAVE_QSORT_R], [], [have qsort_r()])
# set -Werror so that we get an error for "argument ... has
# incompatible pointer type" warnings
save_CFLAGS="$CFLAGS"
2015-08-04 17:08:30 +00:00
CFLAGS="$CFLAGS -Werror -Wno-unused-parameter"
2014-01-24 10:58:33 +00:00
AC_MSG_CHECKING([for GNU-style qsort_r])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#define _GNU_SOURCE
#include <stdlib.h>
int cmp (const void *a, const void *b, void *x) { return 0; }]],
[[int arr[] = { 0, 1 };
qsort_r(arr, 2, sizeof(int), cmp, arr);]])],
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_QSORT_R_GNU], [], [have GNU-style qsort_r()])],
[
AC_MSG_RESULT([no]);
AC_MSG_CHECKING([for BSD-style qsort_r])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <stdlib.h>
int cmp (void *x, const void *a, const void *b) { return 0; }]],
[[int arr[] = { 0, 1 };
qsort_r(arr, 2, sizeof(int), arr, cmp);]])],
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_QSORT_R_BSD], [], [have BSD-style qsort_r()])],
[AC_MSG_RESULT([no]);
AC_MSG_FAILURE([qsort_r has unknown semantics])])
])
CFLAGS="$save_CFLAGS"
2014-03-03 16:14:26 +00:00
]
2014-01-24 10:58:33 +00:00
)
2013-02-20 09:38:45 +00:00
AC_CHECK_FUNCS(prctl mallinfo getpass closefrom getpwnam_r getgrnam_r getpwuid_r)
2015-11-13 14:46:27 +00:00
AC_CHECK_FUNCS(fmemopen funopen mmap memrchr setlinebuf strptime dirfd sigwaitinfo)
2014-01-08 10:28:49 +00:00
AC_CHECK_FUNC([syslog], [
AC_DEFINE([HAVE_SYSLOG], [], [have syslog(3) and friends])
syslog=true
])
AM_CONDITIONAL(USE_SYSLOG, [test "x$syslog" = xtrue])
2010-07-06 14:26:59 +00:00
2016-08-23 12:27:09 +00:00
AC_CHECK_HEADERS(sys/sockio.h sys/syscall.h sys/param.h glob.h net/if_tun.h)
2009-08-06 08:01:59 +00:00
AC_CHECK_HEADERS(net/pfkeyv2.h netipsec/ipsec.h netinet6/ipsec.h linux/udp.h)
2014-08-11 16:38:20 +00:00
AC_CHECK_HEADERS([netinet/ip6.h linux/fib_rules.h], [], [],
2013-03-27 08:56:48 +00:00
[
#include <sys/types.h>
#include <netinet/in.h>
])
2009-04-30 17:13:45 +00:00
AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [],
[
#include <sys/types.h>
#include <sys/socket.h>
])
AC_CHECK_MEMBERS([struct sadb_x_policy.sadb_x_policy_priority], [], [],
[
#include <sys/types.h>
#ifdef HAVE_NET_PFKEYV2_H
#include <net/pfkeyv2.h>
#else
#include <stdint.h>
#include <linux/pfkeyv2.h>
#endif
])
2006-12-06 13:59:13 +00:00
2009-12-23 10:30:41 +00:00
AC_MSG_CHECKING([for in6addr_any])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>]],
2014-05-08 13:12:06 +00:00
[[struct in6_addr in6 __attribute__((unused));
2013-02-01 09:55:33 +00:00
in6 = in6addr_any;]])],
2012-07-03 14:40:26 +00:00
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_IN6ADDR_ANY], [], [have struct in6_addr in6addr_any])],
2009-12-23 10:30:41 +00:00
[AC_MSG_RESULT([no])]
)
AC_MSG_CHECKING([for in6_pktinfo])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>]],
[[struct in6_pktinfo pi;
if (pi.ipi6_ifindex)
{
return 0;
}]])],
2012-07-03 14:40:26 +00:00
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_IN6_PKTINFO], [], [have struct in6_pktinfo.ipi6_ifindex])],
2009-12-23 10:30:41 +00:00
[AC_MSG_RESULT([no])]
)
2014-10-14 09:40:43 +00:00
AC_MSG_CHECKING([for RTM_IFANNOUNCE])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <sys/socket.h>
#include <net/if.h>
#include <net/route.h>]],
[[return RTM_IFANNOUNCE;]])],
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_RTM_IFANNOUNCE], [], [have PF_ROUTE RTM_IFANNOUNCE defined])],
[AC_MSG_RESULT([no])]
)
2009-05-20 18:15:06 +00:00
AC_MSG_CHECKING([for IPSEC_MODE_BEET])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <sys/types.h>
#ifdef HAVE_NETIPSEC_IPSEC_H
#include <netipsec/ipsec.h>
#elif defined(HAVE_NETINET6_IPSEC_H)
#include <netinet6/ipsec.h>
#else
#include <stdint.h>
#include <linux/ipsec.h>
#endif]],
[[int mode = IPSEC_MODE_BEET;
return mode;]])],
2012-07-03 14:40:26 +00:00
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_IPSEC_MODE_BEET], [], [have IPSEC_MODE_BEET defined])],
2009-05-20 18:15:06 +00:00
[AC_MSG_RESULT([no])]
)
AC_MSG_CHECKING([for IPSEC_DIR_FWD])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <sys/types.h>
#ifdef HAVE_NETIPSEC_IPSEC_H
#include <netipsec/ipsec.h>
#elif defined(HAVE_NETINET6_IPSEC_H)
#include <netinet6/ipsec.h>
#else
#include <stdint.h>
#include <linux/ipsec.h>
#endif]],
[[int dir = IPSEC_DIR_FWD;
return dir;]])],
2012-07-03 14:40:26 +00:00
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_IPSEC_DIR_FWD], [], [have IPSEC_DIR_FWD defined])],
2009-05-20 18:15:06 +00:00
[AC_MSG_RESULT([no])]
)
2011-10-04 16:46:51 +00:00
AC_MSG_CHECKING([for RTA_TABLE])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>]],
[[int rta_type = RTA_TABLE;
return rta_type;]])],
2012-07-03 14:40:26 +00:00
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_RTA_TABLE], [], [have netlink RTA_TABLE defined])],
2011-10-04 16:46:51 +00:00
[AC_MSG_RESULT([no])]
)
2015-03-19 14:58:59 +00:00
AC_MSG_CHECKING([for __int128])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <sys/types.h>]],
[[__int128 x = 0;
return x;]])],
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_INT128], [], [have __int128 type support])],
[AC_MSG_RESULT([no])]
)
2014-04-11 14:07:32 +00:00
AC_MSG_CHECKING([for GCC __sync operations])
AC_RUN_IFELSE([AC_LANG_SOURCE(
[[
int main() {
int ref = 1;
2013-02-01 09:55:33 +00:00
__sync_fetch_and_add (&ref, 1);
__sync_sub_and_fetch (&ref, 1);
__sync_val_compare_and_swap(&ref, 1, 0);
return ref;
}
]])],
[AC_MSG_RESULT([yes]);
2014-04-11 14:07:32 +00:00
AC_DEFINE([HAVE_GCC_SYNC_OPERATIONS], [],
[have GCC __sync_* operations])],
2013-02-01 09:55:33 +00:00
[AC_MSG_RESULT([no])],
[AC_MSG_RESULT([no])]
)
2008-12-02 12:14:32 +00:00
2014-03-03 17:18:47 +00:00
case "$printf_hooks" in
auto|builtin|glibc|vstr)
;;
*)
AC_MSG_NOTICE([invalid printf hook implementation, defaulting to 'auto'])
printf_hooks=auto
;;
esac
if test x$printf_hooks = xauto -o x$printf_hooks = xglibc; then
# check for the new register_printf_specifier function with len argument,
# or the deprecated register_printf_function without
AC_CHECK_FUNC(
[register_printf_specifier],
[AC_DEFINE([HAVE_PRINTF_SPECIFIER], [], [have register_printf_specifier()])],
[AC_CHECK_FUNC(
[register_printf_function],
[AC_DEFINE([HAVE_PRINTF_FUNCTION], [], [have register_printf_function()])],
[
AC_MSG_NOTICE([printf(3) does not support custom format specifiers!])
if test x$printf_hooks = xglibc; then
AC_MSG_ERROR([please select a different printf hook implementation])
else
# fallback to builtin printf hook implementation
printf_hooks=builtin
fi
]
)]
)
fi
2009-04-24 03:32:17 +00:00
2013-10-11 13:26:01 +00:00
AC_MSG_CHECKING([for Windows target])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <windows.h>]],
[[#ifndef WIN32
# error WIN32 undefined
#endif
]])],
2013-10-25 15:28:13 +00:00
[
AC_MSG_RESULT([yes])
windows=true
2017-08-30 10:30:02 +00:00
2013-11-06 10:17:01 +00:00
AC_SUBST(PTHREADLIB, "")
2014-06-03 09:06:50 +00:00
# explicitly disable ms-bitfields, as it breaks __attribute__((packed))
case "$CFLAGS" in
*ms-bitfields*) ;;
*) CFLAGS="$CFLAGS -mno-ms-bitfields" ;;
esac
2013-10-25 15:28:13 +00:00
],
[
AC_MSG_RESULT([no])
2014-06-05 11:08:38 +00:00
# check for clock_gettime() on non-Windows only. Otherwise this
# check might find clock_gettime() in libwinpthread, but we don't want
# to link against it.
saved_LIBS=$LIBS
# FreeBSD has clock_gettime in libc, Linux needs librt
LIBS=""
AC_SEARCH_LIBS(clock_gettime, rt, [RTLIB=$LIBS])
AC_CHECK_FUNCS(clock_gettime)
AC_SUBST(RTLIB)
LIBS=$saved_LIBS
2013-10-25 15:28:13 +00:00
]
2013-10-11 13:26:01 +00:00
)
AM_CONDITIONAL(USE_WINDOWS, [test "x$windows" = xtrue])
2014-01-15 16:01:24 +00:00
AC_MSG_CHECKING([for working __attribute__((packed))])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([], [[
struct test { char a; short b; } __attribute__((packed));
2014-05-08 14:37:48 +00:00
char x[sizeof(struct test) == sizeof(char) + sizeof(short) ? 1 : -1]
__attribute__((unused));
2014-01-15 16:01:24 +00:00
return 0;
]])],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no]); AC_MSG_ERROR([__attribute__((packed)) does not work])]
)
2014-05-08 14:28:50 +00:00
AC_MSG_CHECKING([clang])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[], [[
#ifndef __clang__
# error not using LLVM clang
#endif
]])],
[
AC_MSG_RESULT([yes])
],
[
AC_MSG_RESULT([no])
# GCC, but not MinGW requires -rdynamic for plugins
if test x$windows != xtrue; then
2017-06-20 11:52:16 +00:00
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -rdynamic"
2014-05-08 14:28:50 +00:00
fi
]
)
2015-04-02 13:08:34 +00:00
AC_MSG_CHECKING([x86/x64 target])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[], [[
#if !defined(__i386__) && !defined(__x86_64__)
# error not on x86/x64
#endif
]])],
[
x86x64=true
AC_MSG_RESULT([yes])
],
[AC_MSG_RESULT([no])]
)
AM_CONDITIONAL(USE_X86X64, [test "x$x86x64" = xtrue])
2014-03-03 17:18:47 +00:00
if test x$printf_hooks = xvstr; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([vstr],[vstr_init],[LIBS="$LIBS"],[AC_MSG_ERROR([Vstr string library not found])],[])
2013-11-13 10:29:59 +00:00
AC_DEFINE([USE_VSTR], [], [use Vstr string library for printf hooks])
2013-10-11 09:06:02 +00:00
fi
2014-03-03 17:18:47 +00:00
if test x$printf_hooks = xbuiltin; then
2013-10-11 09:06:02 +00:00
AC_DEFINE([USE_BUILTIN_PRINTF], [], [using builtin printf for printf hooks])
2009-04-24 03:32:17 +00:00
fi
2009-03-12 18:07:32 +00:00
2008-03-28 12:44:01 +00:00
if test x$gmp = xtrue; then
2010-02-18 16:38:59 +00:00
saved_LIBS=$LIBS
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([gmp],[__gmpz_init],[],[AC_MSG_ERROR([GNU Multi Precision library gmp not found])],[])
2010-02-18 16:38:59 +00:00
AC_MSG_CHECKING([mpz_powm_sec])
if test x$mpz_powm_sec = xyes; then
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include "gmp.h"]],
2017-05-31 12:33:43 +00:00
[[void *x __attribute__((unused)); x = mpz_powm_sec;]])],
2012-07-03 14:40:26 +00:00
[AC_MSG_RESULT([yes]);
2017-05-31 12:33:43 +00:00
AC_DEFINE([HAVE_MPZ_POWM_SEC], [], [have mpz_powm_sec()])],
2012-07-03 14:40:26 +00:00
[AC_MSG_RESULT([no])]
2010-02-18 16:38:59 +00:00
)
else
AC_MSG_RESULT([disabled])
fi
LIBS=$saved_LIBS
2008-03-28 12:44:01 +00:00
AC_MSG_CHECKING([gmp.h version >= 4.1.4])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include "gmp.h"]],
[[
#if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL) < 414
#error bad gmp
#endif]])],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no]); AC_MSG_ERROR([No usable gmp.h found!])]
2008-03-28 12:44:01 +00:00
)
2006-05-16 14:24:03 +00:00
fi
2008-03-28 12:44:01 +00:00
if test x$ldap = xtrue; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([ldap],[ldap_init],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library ldap not found])],[])
AC_CHECK_LIB([lber],[ber_free],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library lber not found])],[])
2008-03-28 12:44:01 +00:00
AC_CHECK_HEADER([ldap.h],,[AC_MSG_ERROR([LDAP header ldap.h not found!])])
2006-05-16 14:24:03 +00:00
fi
2008-03-28 12:44:01 +00:00
if test x$curl = xtrue; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([curl],[curl_global_init],[LIBS="$LIBS"],[AC_MSG_ERROR([CURL library curl not found])],[])
2008-03-28 12:44:01 +00:00
AC_CHECK_HEADER([curl/curl.h],,[AC_MSG_ERROR([CURL header curl/curl.h not found!])])
fi
2012-03-27 07:22:14 +00:00
if test x$unbound = xtrue; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([ldns],[ldns_rr_get_type],[LIBS="$LIBS"],[AC_MSG_ERROR([UNBOUND library ldns not found])],[])
2012-03-27 07:22:14 +00:00
AC_CHECK_HEADER([ldns/ldns.h],,[AC_MSG_ERROR([UNBOUND header ldns/ldns.h not found!])])
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([unbound],[ub_ctx_create],[LIBS="$LIBS"],[AC_MSG_ERROR([UNBOUND library libunbound not found])],[])
2012-03-27 07:22:14 +00:00
AC_CHECK_HEADER([unbound.h],,[AC_MSG_ERROR([UNBOUND header unbound.h not found!])])
fi
2011-01-17 12:27:18 +00:00
if test x$soup = xtrue; then
PKG_CHECK_MODULES(soup, [libsoup-2.4])
AC_SUBST(soup_CFLAGS)
AC_SUBST(soup_LIBS)
fi
2008-03-28 12:44:01 +00:00
if test x$xml = xtrue; then
2008-04-28 16:43:30 +00:00
PKG_CHECK_MODULES(xml, [libxml-2.0])
2007-08-08 14:03:55 +00:00
AC_SUBST(xml_CFLAGS)
AC_SUBST(xml_LIBS)
fi
2014-09-12 08:29:29 +00:00
if test x$systemd = xtrue; then
2014-09-15 13:38:06 +00:00
AC_MSG_CHECKING([for systemd system unit directory])
if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
AC_MSG_RESULT([$systemdsystemunitdir])
else
AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
fi
2015-12-18 13:27:57 +00:00
PKG_CHECK_MODULES(systemd, [libsystemd >= 209],
[AC_SUBST(systemd_CFLAGS)
AC_SUBST(systemd_LIBS)],
[PKG_CHECK_MODULES(systemd_daemon, [libsystemd-daemon])
AC_SUBST(systemd_daemon_CFLAGS)
AC_SUBST(systemd_daemon_LIBS)
PKG_CHECK_MODULES(systemd_journal, [libsystemd-journal])
AC_SUBST(systemd_journal_CFLAGS)
AC_SUBST(systemd_journal_LIBS)]
)
2017-10-12 16:40:15 +00:00
saved_LIBS=$LIBS
LIBS="$systemd_LIBS $systemd_daemon_LIBS"
AC_CHECK_FUNCS(sd_listen_fds_with_names)
LIBS=$saved_LIBS
2014-09-12 08:29:29 +00:00
fi
2016-06-02 21:01:11 +00:00
if test x$tss_trousers = xtrue; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([tspi],[Tspi_Context_Create],[LIBS="$LIBS"],[AC_MSG_ERROR([TrouSerS library libtspi not found])],[])
2011-12-18 17:26:38 +00:00
AC_CHECK_HEADER([trousers/tss.h],,[AC_MSG_ERROR([TrouSerS header trousers/tss.h not found!])])
2016-06-02 21:01:11 +00:00
AC_DEFINE([TSS_TROUSERS], [], [use TrouSerS library libtspi])
2011-12-18 17:26:38 +00:00
fi
2016-06-02 21:01:11 +00:00
if test x$tss_tss2 = xtrue; then
2017-07-12 13:22:25 +00:00
PKG_CHECK_MODULES(tss2_tabrmd, [tcti-tabrmd],
[tss2_tabrmd=true; AC_DEFINE([TSS2_TCTI_TABRMD], [], [use TCTI Access Broker and Resource Mamager])],
[tss2_tabrmd=false])
PKG_CHECK_MODULES(tss2_socket, [tcti-socket],
[tss2_socket=true; AC_DEFINE([TSS2_TCTI_SOCKET], [], [use TCTI Sockets])],
[tss2_socket=false])
if test x$tss2_tabrmd = xtrue -o x$tss2_socket = xtrue; then
AC_DEFINE([TSS_TSS2], [], [use TSS 2.0 libraries])
AC_SUBST(tss2_CFLAGS, "$tss2_tabrmd_CFLAGS $tss2_socket_CFLAGS")
AC_SUBST(tss2_LIBS, "$tss2_tabrmd_LIBS $tss2_socket_LIBS")
else
AC_MSG_FAILURE([no TSS2 TCTI library detected])
fi
2016-05-16 08:53:44 +00:00
fi
2016-07-18 14:20:58 +00:00
2018-03-01 16:33:49 +00:00
if test x$imc_swima = xtrue -o $imv_swima = xtrue; then
2014-07-30 14:01:41 +00:00
PKG_CHECK_MODULES(json, [json-c], [],
[PKG_CHECK_MODULES(json, [json])])
AC_SUBST(json_CFLAGS)
AC_SUBST(json_LIBS)
2014-05-26 05:51:44 +00:00
fi
2008-04-28 16:43:30 +00:00
if test x$dumm = xtrue; then
PKG_CHECK_MODULES(gtk, [gtk+-2.0 vte])
AC_SUBST(gtk_CFLAGS)
AC_SUBST(gtk_LIBS)
2009-05-20 12:15:14 +00:00
AC_CHECK_PROGS(RUBY, ruby)
2017-06-07 14:22:11 +00:00
PKG_CHECK_MODULES(ruby, [ruby])
2012-11-08 18:23:05 +00:00
saved_LIBS=$LIBS
2017-06-07 14:22:11 +00:00
LIBS=$ruby_LIBS
2012-11-08 18:24:04 +00:00
AC_CHECK_FUNCS(rb_errinfo)
2012-11-08 18:23:05 +00:00
LIBS=$saved_LIBS
2008-04-28 16:43:30 +00:00
fi
2008-03-28 12:44:01 +00:00
if test x$fast = xtrue; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([neo_utl],[hdf_init],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_utl not found!])],[])
AC_MSG_CHECKING([for -lneo_cgi and dependencies])
2011-09-01 11:23:37 +00:00
saved_CFLAGS=$CFLAGS
saved_LIBS=$LIBS
LIBS="-lneo_cgi -lneo_cs -lneo_utl"
CFLAGS="-I/usr/include/ClearSilver"
2013-02-01 09:55:33 +00:00
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
2016-12-02 09:55:13 +00:00
[[#include <cgi/cgi.h>]],
2013-02-01 09:55:33 +00:00
[[NEOERR *err = cgi_display(NULL, NULL);]])],
2016-12-02 09:55:13 +00:00
[AC_MSG_RESULT([yes])],
[LIBS="$LIBS -lz";
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[#include <cgi/cgi.h>]],
[[NEOERR *err = cgi_display(NULL, NULL);]])],
[AC_MSG_RESULT([yes, zlib required])],
[AC_MSG_ERROR([not found])]
)]
2011-09-01 11:23:37 +00:00
)
2016-12-02 09:55:13 +00:00
clearsilver_LIBS="$LIBS"
2011-09-01 11:23:37 +00:00
AC_SUBST(clearsilver_LIBS)
LIBS=$saved_LIBS
CFLAGS=$saved_CFLAGS
2009-09-07 09:46:16 +00:00
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([fcgi],[FCGX_Init],[LIBS="$LIBS"],[AC_MSG_ERROR([FastCGI library fcgi not found!])],[])
2008-03-28 12:44:01 +00:00
AC_CHECK_HEADER([fcgiapp.h],,[AC_MSG_ERROR([FastCGI header file fcgiapp.h not found!])])
2007-04-27 14:25:08 +00:00
fi
2008-03-28 12:44:01 +00:00
if test x$mysql = xtrue; then
2013-11-22 08:08:09 +00:00
if test "x$windows" = xtrue; then
AC_CHECK_HEADER([mysql.h],,[AC_MSG_ERROR([MySQL header file mysql.h not found!])])
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([mysql],[mysql_database_init],[LIBS="$LIBS"],[AC_MSG_ERROR([MySQL library not found!])],[])
2013-11-22 08:08:09 +00:00
AC_SUBST(MYSQLLIB, -lmysql)
else
AC_PATH_PROG([MYSQLCONFIG], [mysql_config], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
if test x$MYSQLCONFIG = x; then
AC_MSG_ERROR([mysql_config not found!])
fi
AC_SUBST(MYSQLLIB, `$MYSQLCONFIG --libs_r`)
AC_SUBST(MYSQLCFLAG, `$MYSQLCONFIG --cflags`)
2009-09-23 10:45:03 +00:00
fi
2008-03-28 12:44:01 +00:00
fi
2006-05-16 14:24:03 +00:00
2008-05-07 14:41:13 +00:00
if test x$sqlite = xtrue; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([sqlite3],[sqlite3_open],[LIBS="$LIBS"],[AC_MSG_ERROR([SQLite library sqlite3 not found])],[])
2008-03-28 12:44:01 +00:00
AC_CHECK_HEADER([sqlite3.h],,[AC_MSG_ERROR([SQLite header sqlite3.h not found!])])
2008-05-07 14:41:13 +00:00
AC_MSG_CHECKING([sqlite3_prepare_v2])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <sqlite3.h>]],
[[void *test = sqlite3_prepare_v2;]])],
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_SQLITE3_PREPARE_V2], [], [have sqlite3_prepare_v2()])],
[AC_MSG_RESULT([no])]
)
2008-06-30 11:06:18 +00:00
AC_MSG_CHECKING([sqlite3.h version >= 3.3.1])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <sqlite3.h>]],
[[
#if SQLITE_VERSION_NUMBER < 3003001
#error bad sqlite
#endif]])],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no]); AC_MSG_ERROR([SQLite version >= 3.3.1 required!])]
)
2008-03-28 12:44:01 +00:00
fi
2006-05-16 14:24:03 +00:00
2008-04-28 14:25:19 +00:00
if test x$openssl = xtrue; then
2017-08-30 10:30:02 +00:00
if test "x$windows" = xtrue; then
openssl_lib=eay32
AC_CHECK_LIB([$openssl_lib],[EVP_CIPHER_CTX_new],[LIBS="$LIBS"],
[AC_MSG_RESULT([no]);openssl_lib=""],[$DLLIB])
fi
if test -z "$openssl_lib"; then
openssl_lib=crypto
AC_CHECK_LIB([$openssl_lib],[EVP_CIPHER_CTX_new],[LIBS="$LIBS"],
[AC_MSG_ERROR([OpenSSL lib$openssl_lib not found])],[$DLLIB])
fi
AC_SUBST(OPENSSL_LIB, [-l$openssl_lib])
2008-04-28 14:25:19 +00:00
AC_CHECK_HEADER([openssl/evp.h],,[AC_MSG_ERROR([OpenSSL header openssl/evp.h not found!])])
fi
2009-06-04 12:23:39 +00:00
if test x$gcrypt = xtrue; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([gcrypt],[gcry_control],[LIBS="$LIBS"],[AC_MSG_ERROR([gcrypt library not found])],[-lgpg-error])
2009-08-31 11:14:54 +00:00
AC_CHECK_HEADER([gcrypt.h],,[AC_MSG_ERROR([gcrypt header gcrypt.h not found!])])
2009-06-16 12:23:32 +00:00
AC_MSG_CHECKING([gcrypt CAMELLIA cipher])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <gcrypt.h>]],
[[enum gcry_cipher_algos alg = GCRY_CIPHER_CAMELLIA128;]])],
2012-07-03 14:40:26 +00:00
[AC_MSG_RESULT([yes]);
AC_DEFINE([HAVE_GCRY_CIPHER_CAMELLIA], [], [have GCRY_CIPHER_CAMELLIA128])],
2009-06-16 12:23:32 +00:00
[AC_MSG_RESULT([no])]
)
2009-06-04 12:23:39 +00:00
fi
2008-06-17 14:17:51 +00:00
if test x$uci = xtrue; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([uci],[uci_alloc_context],[LIBS="$LIBS"],[AC_MSG_ERROR([UCI library libuci not found])],[])
2008-06-17 14:17:51 +00:00
AC_CHECK_HEADER([uci.h],,[AC_MSG_ERROR([UCI header uci.h not found!])])
fi
2013-03-02 14:57:00 +00:00
if test x$android_dns = xtrue; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([cutils],[property_get],[LIBS="$LIBS"],[AC_MSG_ERROR([Android library libcutils not found])],[])
2010-02-17 09:41:55 +00:00
AC_CHECK_HEADER([cutils/properties.h],,[AC_MSG_ERROR([Android header cutils/properties.h not found!])])
2013-02-01 10:29:23 +00:00
# we have to force the use of libdl here because the autodetection
# above does not work correctly when cross-compiling for android.
2010-02-25 10:03:54 +00:00
DLLIB="-ldl"
AC_SUBST(DLLIB)
2010-02-17 09:41:55 +00:00
fi
2011-04-04 06:51:50 +00:00
if test x$eap_sim_pcsc = xtrue; then
PKG_CHECK_MODULES(pcsclite, [libpcsclite])
AC_SUBST(pcsclite_CFLAGS)
AC_SUBST(pcsclite_LIBS)
fi
2008-07-31 11:16:14 +00:00
if test x$nm = xtrue; then
2017-11-30 12:02:02 +00:00
PKG_CHECK_MODULES(nm, [gthread-2.0 libnm])
2008-07-31 11:16:14 +00:00
AC_SUBST(nm_CFLAGS)
AC_SUBST(nm_LIBS)
fi
2012-08-09 12:39:31 +00:00
if test x$xauth_pam = xtrue; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([pam],[pam_start],[LIBS="$LIBS"],[AC_MSG_ERROR([PAM library not found])],[])
2008-08-21 12:10:07 +00:00
AC_CHECK_HEADER([security/pam_appl.h],,[AC_MSG_ERROR([PAM header security/pam_appl.h not found!])])
fi
2015-02-23 11:11:22 +00:00
if test x$connmark = xtrue -o x$forecast = xtrue; then
PKG_CHECK_MODULES(libiptc, [libiptc])
AC_SUBST(libiptc_CFLAGS)
AC_SUBST(libiptc_LIBS)
fi
2010-06-15 17:40:44 +00:00
if test x$capabilities = xnative; then
AC_MSG_NOTICE([Usage of the native Linux capabilities interface is deprecated, use libcap instead])
2013-02-01 10:29:23 +00:00
# Linux requires the following for capset(), Android does not have it,
# but defines capset() in unistd.h instead.
2010-06-15 17:40:44 +00:00
AC_CHECK_HEADERS([sys/capability.h])
AC_CHECK_FUNC(capset,,[AC_MSG_ERROR([capset() not found!])])
2012-07-03 14:40:26 +00:00
AC_DEFINE([CAPABILITIES_NATIVE], [], [have native linux capset()])
2010-06-15 17:40:44 +00:00
fi
2008-08-29 09:24:14 +00:00
if test x$capabilities = xlibcap; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([cap],[cap_init],[LIBS="$LIBS"],[AC_MSG_ERROR([libcap library not found])],[])
2010-06-15 17:40:44 +00:00
AC_CHECK_HEADER([sys/capability.h],
2012-07-03 14:40:26 +00:00
[AC_DEFINE([HAVE_SYS_CAPABILITY_H], [], [have sys/capability.h])],
2010-06-15 17:40:44 +00:00
[AC_MSG_ERROR([libcap header sys/capability.h not found!])])
2012-07-03 14:40:26 +00:00
AC_DEFINE([CAPABILITIES_LIBCAP], [], [have libpcap library])
2008-08-29 09:24:14 +00:00
fi
2009-06-19 15:50:40 +00:00
if test x$integrity_test = xtrue; then
AC_MSG_CHECKING([for dladdr()])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#define _GNU_SOURCE
#include <dlfcn.h>]],
[[Dl_info info; dladdr(main, &info);]])],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no]);
2009-06-19 15:50:40 +00:00
AC_MSG_ERROR([dladdr() not supported, required by integrity-test!])]
)
AC_MSG_CHECKING([for dl_iterate_phdr()])
2013-02-01 09:55:33 +00:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#define _GNU_SOURCE
#include <link.h>]],
[[dl_iterate_phdr((void*)0, (void*)0);]])],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no]);
2009-06-19 15:50:40 +00:00
AC_MSG_ERROR([dl_iterate_phdr() not supported, required by integrity-test!])]
)
fi
2012-07-11 15:37:09 +00:00
if test x$bfd_backtraces = xtrue; then
2016-12-02 09:55:13 +00:00
AC_CHECK_LIB([bfd],[bfd_init],[LIBS="$LIBS"],[AC_MSG_ERROR([binutils libbfd not found!])],[])
2012-07-11 15:37:09 +00:00
AC_CHECK_HEADER([bfd.h],[AC_DEFINE([HAVE_BFD_H],,[have binutils bfd.h])],
[AC_MSG_ERROR([binutils bfd.h header not found!])])
BFDLIB="-lbfd"
AC_SUBST(BFDLIB)
fi
2013-04-05 14:26:27 +00:00
if test x$unwind_backtraces = xtrue; then
2017-03-22 15:33:27 +00:00
AC_CHECK_LIB([unwind],[unw_backtrace],[LIBS="$LIBS"],[AC_MSG_ERROR([libunwind not found!])],[])
2013-04-05 14:26:27 +00:00
AC_CHECK_HEADER([libunwind.h],[AC_DEFINE([HAVE_LIBUNWIND_H],,[have libunwind.h])],
[AC_MSG_ERROR([libunwind.h header not found!])])
UNWINDLIB="-lunwind"
AC_SUBST(UNWINDLIB)
fi
2012-07-11 09:16:31 +00:00
AM_CONDITIONAL(USE_DEV_HEADERS, [test "x$dev_headers" != xno])
2012-07-12 06:39:54 +00:00
if test x$dev_headers = xyes; then
dev_headers="$includedir/strongswan"
fi
2012-07-11 09:16:31 +00:00
AC_SUBST(dev_headers)
2012-07-03 14:45:12 +00:00
CFLAGS="$CFLAGS -include `pwd`/config.h"
2012-05-18 12:09:24 +00:00
if test x$tkm = xtrue; then
AC_PATH_PROG([GPRBUILD], [gprbuild], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
2013-11-28 08:37:55 +00:00
if test x$GPRBUILD = x; then
AC_MSG_ERROR([gprbuild not found])
fi
2012-05-18 12:09:24 +00:00
fi
2013-03-27 10:03:56 +00:00
if test x$coverage = xtrue; then
AC_PATH_PROG([LCOV], [lcov], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
if test x$LCOV = x; then
AC_MSG_ERROR([lcov not found])
fi
AC_PATH_PROG([GENHTML], [genhtml], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
if test x$GENHTML = x; then
AC_MSG_ERROR([genhtml not found])
fi
COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage"
COVERAGE_LDFLAGS="-fprofile-arcs"
AC_SUBST(COVERAGE_CFLAGS)
AC_SUBST(COVERAGE_LDFLAGS)
2017-06-20 11:52:16 +00:00
PLUGIN_CFLAGS="$PLUGIN_CFLAGS $COVERAGE_CFLAGS"
2013-03-27 10:03:56 +00:00
AC_MSG_NOTICE([coverage enabled, adding "-g -O0" to CFLAGS])
CFLAGS="${CFLAGS} -g -O0"
fi
2017-05-30 14:44:22 +00:00
if test x$fuzzing = xtrue; then
if test x$libfuzzer = x; then
AC_MSG_NOTICE([fuzz targets enabled without libFuzzer, using local driver])
CFLAGS="${CFLAGS} -fsanitize=address"
libfuzzer="libFuzzerLocal.a"
else
# required for libFuzzer
FUZZING_LDFLAGS="-stdlib=libc++ -lstdc++"
AC_SUBST(FUZZING_LDFLAGS)
fi
fi
2014-10-08 11:44:44 +00:00
if test x$ruby_gems = xtrue; then
AC_PATH_PROG([GEM], [gem], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
if test x$GEM = x; then
AC_MSG_ERROR(RubyGems package manager not found)
fi
if test "x$rubygemdir" = "xgem environment gemdir"; then
rubygemdir=$($GEM environment gemdir)
fi
AC_SUBST(RUBYGEMDIR, "$rubygemdir")
fi
2015-05-21 09:05:05 +00:00
AM_CONDITIONAL(RUBY_GEMS_INSTALL, [test "x$ruby_gems_install" = xtrue])
2014-10-08 11:44:44 +00:00
2015-02-25 13:34:27 +00:00
if test x$python_eggs = xtrue; then
2016-05-10 10:09:24 +00:00
PYTHON_PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | $SED 's/dr/dev/'`
AC_SUBST([PYTHON_PACKAGE_VERSION])
2015-05-21 09:05:05 +00:00
if test x$python_eggs_install = xtrue; then
AC_PATH_PROG([EASY_INSTALL], [easy_install], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
if test x$EASY_INSTALL = x; then
AC_MSG_ERROR(Python easy_install not found)
fi
2015-02-25 13:34:27 +00:00
fi
if test "x$pythoneggdir" = "xmain site-packages directory"; then
AC_SUBST(PYTHONEGGINSTALLDIR, "")
else
AC_SUBST(PYTHONEGGINSTALLDIR, "--install-dir $pythoneggdir")
fi
2015-03-11 09:01:40 +00:00
AC_PATH_PROG([PY_TEST], [py.test], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
2015-02-25 13:34:27 +00:00
fi
2015-05-21 09:05:05 +00:00
AM_CONDITIONAL(PYTHON_EGGS_INSTALL, [test "x$python_eggs_install" = xtrue])
2015-02-25 13:34:27 +00:00
2015-11-17 12:32:54 +00:00
AM_CONDITIONAL(PERL_CPAN_INSTALL, [test "x$perl_cpan_install" = xtrue])
2017-04-28 15:41:57 +00:00
AC_CACHE_CHECK(
[if plugin constructors should be resolved statically],
[ss_cv_static_plugin_constructors],
[if test x$monolithic = xtrue -a x$enable_static = xyes; then
ss_cv_static_plugin_constructors=yes
else
ss_cv_static_plugin_constructors="no (enabled for static, monolithic builds)"
fi]
)
if test "x$ss_cv_static_plugin_constructors" = xyes; then
static_plugin_constructors=true
fi
2013-02-01 10:29:23 +00:00
# ===============================================
# collect plugin list for strongSwan components
# ===============================================
2008-05-16 08:52:32 +00:00
2010-08-12 11:03:04 +00:00
m4_include(m4/macros/add-plugin.m4)
2010-08-12 12:37:45 +00:00
# plugin lists for all components
2012-04-19 11:32:51 +00:00
charon_plugins=
2011-10-21 12:07:42 +00:00
starter_plugins=
2010-08-12 12:37:45 +00:00
pool_plugins=
2011-11-24 11:46:14 +00:00
attest_plugins=
2010-08-12 12:37:45 +00:00
scepclient_plugins=
pki_plugins=
scripts_plugins=
2017-03-08 10:00:22 +00:00
fuzz_plugins=
2010-08-12 12:37:45 +00:00
manager_plugins=
medsrv_plugins=
2012-04-19 14:35:44 +00:00
nm_plugins=
2013-03-26 10:26:22 +00:00
cmd_plugins=
2014-05-02 18:10:53 +00:00
aikgen_plugins=
2010-08-12 12:37:45 +00:00
2010-08-12 14:07:24 +00:00
# location specific lists for checksumming,
2017-02-16 07:39:47 +00:00
# for src/libcharon, src/libstrongswan, src/libtnccs and src/libtpmtss
2010-08-12 14:07:24 +00:00
c_plugins=
s_plugins=
2013-08-08 09:02:17 +00:00
t_plugins=
2017-02-16 07:39:47 +00:00
p_plugins=
2010-08-12 14:07:24 +00:00
2014-03-31 09:30:51 +00:00
ADD_PLUGIN([test-vectors], [s charon scepclient pki])
2012-03-27 07:22:14 +00:00
ADD_PLUGIN([unbound], [s charon scripts])
2013-03-26 10:26:22 +00:00
ADD_PLUGIN([ldap], [s charon scepclient scripts nm cmd])
ADD_PLUGIN([pkcs11], [s charon pki nm cmd])
2017-02-16 07:39:47 +00:00
ADD_PLUGIN([tpm], [p charon pki nm cmd])
2015-03-25 12:27:39 +00:00
ADD_PLUGIN([aesni], [s charon scepclient pki scripts medsrv attest nm cmd aikgen])
2014-03-31 09:30:51 +00:00
ADD_PLUGIN([aes], [s charon scepclient pki scripts nm cmd])
ADD_PLUGIN([des], [s charon scepclient pki scripts nm cmd])
ADD_PLUGIN([blowfish], [s charon scepclient pki scripts nm cmd])
ADD_PLUGIN([rc2], [s charon scepclient pki scripts nm cmd])
2017-03-08 10:00:22 +00:00
ADD_PLUGIN([sha2], [s charon scepclient pki scripts medsrv attest nm cmd aikgen fuzz])
ADD_PLUGIN([sha3], [s charon scepclient pki scripts medsrv attest nm cmd aikgen fuzz])
ADD_PLUGIN([sha1], [s charon scepclient pki scripts manager medsrv attest nm cmd aikgen fuzz])
2015-10-22 09:05:31 +00:00
ADD_PLUGIN([md4], [s charon scepclient pki nm cmd])
2014-05-02 18:10:53 +00:00
ADD_PLUGIN([md5], [s charon scepclient pki scripts attest nm cmd aikgen])
2016-09-20 20:01:07 +00:00
ADD_PLUGIN([mgf1], [s charon scepclient pki scripts medsrv attest nm cmd aikgen])
2014-05-02 18:10:53 +00:00
ADD_PLUGIN([rdrand], [s charon scepclient pki scripts medsrv attest nm cmd aikgen])
2015-10-22 09:05:31 +00:00
ADD_PLUGIN([random], [s charon scepclient pki scripts manager medsrv attest nm cmd aikgen])
2014-05-02 18:10:53 +00:00
ADD_PLUGIN([nonce], [s charon nm cmd aikgen])
2017-03-08 10:00:22 +00:00
ADD_PLUGIN([x509], [s charon scepclient pki scripts attest nm cmd aikgen fuzz])
2014-04-04 08:37:59 +00:00
ADD_PLUGIN([revocation], [s charon pki nm cmd])
2013-03-26 10:26:22 +00:00
ADD_PLUGIN([constraints], [s charon nm cmd])
2014-02-05 15:59:55 +00:00
ADD_PLUGIN([acert], [s charon])
2017-06-15 12:36:40 +00:00
ADD_PLUGIN([pubkey], [s charon pki cmd aikgen])
2017-03-08 10:00:22 +00:00
ADD_PLUGIN([pkcs1], [s charon scepclient pki scripts manager medsrv attest nm cmd aikgen fuzz])
2013-04-17 15:13:28 +00:00
ADD_PLUGIN([pkcs7], [s charon scepclient pki scripts nm cmd])
2014-03-31 09:30:51 +00:00
ADD_PLUGIN([pkcs8], [s charon scepclient pki scripts manager medsrv attest nm cmd])
2013-04-12 17:30:03 +00:00
ADD_PLUGIN([pkcs12], [s charon scepclient pki scripts cmd])
2012-05-15 14:59:00 +00:00
ADD_PLUGIN([pgp], [s charon])
2013-08-14 16:22:13 +00:00
ADD_PLUGIN([dnskey], [s charon pki])
2013-08-15 10:43:01 +00:00
ADD_PLUGIN([sshkey], [s charon pki nm cmd])
2013-08-30 15:51:12 +00:00
ADD_PLUGIN([dnscert], [c charon])
2012-06-08 09:26:50 +00:00
ADD_PLUGIN([ipseckey], [c charon])
2017-03-08 10:00:22 +00:00
ADD_PLUGIN([pem], [s charon scepclient pki scripts manager medsrv attest nm cmd aikgen fuzz])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([padlock], [s charon])
2014-05-02 18:10:53 +00:00
ADD_PLUGIN([openssl], [s charon scepclient pki scripts manager medsrv attest nm cmd aikgen])
ADD_PLUGIN([gcrypt], [s charon scepclient pki scripts manager medsrv attest nm cmd aikgen])
ADD_PLUGIN([af-alg], [s charon scepclient pki scripts medsrv attest nm cmd aikgen])
2013-03-26 10:26:22 +00:00
ADD_PLUGIN([fips-prf], [s charon nm cmd])
2017-03-08 10:00:22 +00:00
ADD_PLUGIN([gmp], [s charon scepclient pki scripts manager medsrv attest nm cmd aikgen fuzz])
2017-03-29 15:04:03 +00:00
ADD_PLUGIN([curve25519], [s charon pki scripts nm cmd])
2013-03-26 10:26:22 +00:00
ADD_PLUGIN([agent], [s charon nm cmd])
2013-04-29 09:19:57 +00:00
ADD_PLUGIN([keychain], [s charon cmd])
2015-04-01 17:17:25 +00:00
ADD_PLUGIN([chapoly], [s charon scripts nm cmd])
2013-03-26 10:26:22 +00:00
ADD_PLUGIN([xcbc], [s charon nm cmd])
ADD_PLUGIN([cmac], [s charon nm cmd])
2014-12-05 09:39:03 +00:00
ADD_PLUGIN([hmac], [s charon pki scripts nm cmd])
2013-03-26 10:26:22 +00:00
ADD_PLUGIN([ctr], [s charon scripts nm cmd])
ADD_PLUGIN([ccm], [s charon scripts nm cmd])
ADD_PLUGIN([gcm], [s charon scripts nm cmd])
2013-11-18 20:11:03 +00:00
ADD_PLUGIN([ntru], [s charon scripts nm cmd])
2016-07-26 09:32:22 +00:00
ADD_PLUGIN([newhope], [s charon scripts nm cmd])
2014-10-21 22:19:49 +00:00
ADD_PLUGIN([bliss], [s charon pki scripts nm cmd])
2014-09-24 10:24:13 +00:00
ADD_PLUGIN([curl], [s charon scepclient pki scripts nm cmd])
2015-02-11 11:11:04 +00:00
ADD_PLUGIN([files], [s charon scepclient pki scripts nm cmd])
2014-09-24 10:24:13 +00:00
ADD_PLUGIN([winhttp], [s charon pki scripts])
ADD_PLUGIN([soup], [s charon pki scripts nm cmd])
2015-02-10 15:08:09 +00:00
ADD_PLUGIN([mysql], [s charon pool manager medsrv attest])
ADD_PLUGIN([sqlite], [s charon pool manager medsrv attest])
2014-11-04 13:19:03 +00:00
ADD_PLUGIN([attr], [c charon])
2014-11-04 13:22:20 +00:00
ADD_PLUGIN([attr-sql], [c charon])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([load-tester], [c charon])
2013-06-11 16:43:01 +00:00
ADD_PLUGIN([kernel-libipsec], [c charon cmd])
2013-10-31 13:58:43 +00:00
ADD_PLUGIN([kernel-wfp], [c charon])
2013-12-12 08:35:36 +00:00
ADD_PLUGIN([kernel-iph], [c charon])
2016-02-12 14:21:54 +00:00
ADD_PLUGIN([kernel-pfkey], [c charon starter nm cmd])
ADD_PLUGIN([kernel-pfroute], [c charon starter nm cmd])
ADD_PLUGIN([kernel-netlink], [c charon starter nm cmd])
2014-11-04 13:13:34 +00:00
ADD_PLUGIN([resolve], [c charon cmd])
2016-09-02 12:06:30 +00:00
ADD_PLUGIN([save-keys], [c])
2013-03-26 10:26:22 +00:00
ADD_PLUGIN([socket-default], [c charon nm cmd])
2013-03-26 16:28:40 +00:00
ADD_PLUGIN([socket-dynamic], [c charon cmd])
2013-10-30 17:01:18 +00:00
ADD_PLUGIN([socket-win], [c charon])
2016-10-12 08:05:10 +00:00
ADD_PLUGIN([bypass-lan], [c charon nm cmd])
2014-11-14 10:01:45 +00:00
ADD_PLUGIN([connmark], [c charon])
2014-12-05 14:50:24 +00:00
ADD_PLUGIN([forecast], [c charon])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([farp], [c charon])
ADD_PLUGIN([stroke], [c charon])
2014-01-20 09:59:21 +00:00
ADD_PLUGIN([vici], [c charon])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([smp], [c charon])
ADD_PLUGIN([sql], [c charon])
ADD_PLUGIN([updown], [c charon])
2013-03-26 10:26:22 +00:00
ADD_PLUGIN([eap-identity], [c charon nm cmd])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([eap-sim], [c charon])
ADD_PLUGIN([eap-sim-file], [c charon])
ADD_PLUGIN([eap-sim-pcsc], [c charon])
ADD_PLUGIN([eap-aka], [c charon])
2017-05-16 15:34:02 +00:00
ADD_PLUGIN([eap-aka-3gpp], [c charon])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([eap-aka-3gpp2], [c charon])
ADD_PLUGIN([eap-simaka-sql], [c charon])
ADD_PLUGIN([eap-simaka-pseudonym], [c charon])
ADD_PLUGIN([eap-simaka-reauth], [c charon])
2013-03-26 10:26:22 +00:00
ADD_PLUGIN([eap-md5], [c charon nm cmd])
ADD_PLUGIN([eap-gtc], [c charon nm cmd])
ADD_PLUGIN([eap-mschapv2], [c charon nm cmd])
2012-08-23 12:42:23 +00:00
ADD_PLUGIN([eap-dynamic], [c charon])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([eap-radius], [c charon])
2013-03-26 10:26:22 +00:00
ADD_PLUGIN([eap-tls], [c charon nm cmd])
ADD_PLUGIN([eap-ttls], [c charon nm cmd])
ADD_PLUGIN([eap-peap], [c charon nm cmd])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([eap-tnc], [c charon])
2013-03-26 10:26:22 +00:00
ADD_PLUGIN([xauth-generic], [c charon cmd])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([xauth-eap], [c charon])
2012-08-09 12:39:31 +00:00
ADD_PLUGIN([xauth-pam], [c charon])
2013-02-04 17:55:54 +00:00
ADD_PLUGIN([xauth-noauth], [c charon])
2013-03-31 14:37:30 +00:00
ADD_PLUGIN([tnc-ifmap], [c charon])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([tnc-pdp], [c charon])
2013-08-08 09:02:17 +00:00
ADD_PLUGIN([tnc-imc], [t charon])
2013-08-08 17:43:43 +00:00
ADD_PLUGIN([tnc-imv], [t charon])
2013-08-08 09:02:17 +00:00
ADD_PLUGIN([tnc-tnccs], [t charon])
ADD_PLUGIN([tnccs-20], [t charon])
ADD_PLUGIN([tnccs-11], [t charon])
ADD_PLUGIN([tnccs-dynamic], [t charon])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([medsrv], [c charon])
ADD_PLUGIN([medcli], [c charon])
ADD_PLUGIN([dhcp], [c charon])
2013-05-15 13:56:17 +00:00
ADD_PLUGIN([osx-attr], [c charon cmd])
2016-02-03 16:49:48 +00:00
ADD_PLUGIN([p-cscf], [c charon cmd])
2013-03-02 14:57:00 +00:00
ADD_PLUGIN([android-dns], [c charon])
2012-02-16 17:17:09 +00:00
ADD_PLUGIN([android-log], [c charon])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([ha], [c charon])
ADD_PLUGIN([whitelist], [c charon])
2014-10-06 09:52:49 +00:00
ADD_PLUGIN([ext-auth], [c charon])
2012-10-03 14:25:36 +00:00
ADD_PLUGIN([lookip], [c charon])
2012-11-06 15:46:49 +00:00
ADD_PLUGIN([error-notify], [c charon])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([certexpire], [c charon])
2013-02-19 13:49:38 +00:00
ADD_PLUGIN([systime-fix], [c charon])
2012-04-19 11:32:51 +00:00
ADD_PLUGIN([led], [c charon])
ADD_PLUGIN([duplicheck], [c charon])
ADD_PLUGIN([coupling], [c charon])
ADD_PLUGIN([radattr], [c charon])
ADD_PLUGIN([uci], [c charon])
ADD_PLUGIN([addrblock], [c charon])
2012-07-23 15:14:47 +00:00
ADD_PLUGIN([unity], [c charon])
2017-08-24 15:02:37 +00:00
ADD_PLUGIN([counters], [c charon])
2012-04-19 11:32:51 +00:00
AC_SUBST(charon_plugins)
2011-10-21 12:07:42 +00:00
AC_SUBST(starter_plugins)
2010-08-12 12:37:45 +00:00
AC_SUBST(pool_plugins)
2011-11-24 11:46:14 +00:00
AC_SUBST(attest_plugins)
2010-08-12 12:37:45 +00:00
AC_SUBST(scepclient_plugins)
AC_SUBST(pki_plugins)
AC_SUBST(scripts_plugins)
2017-03-08 10:00:22 +00:00
AC_SUBST(fuzz_plugins)
2010-08-12 12:37:45 +00:00
AC_SUBST(manager_plugins)
AC_SUBST(medsrv_plugins)
2012-04-19 14:35:44 +00:00
AC_SUBST(nm_plugins)
2013-03-26 10:26:22 +00:00
AC_SUBST(cmd_plugins)
2014-05-02 18:10:53 +00:00
AC_SUBST(aikgen_plugins)
2008-05-16 08:52:32 +00:00
2010-08-12 14:07:24 +00:00
AC_SUBST(c_plugins)
2017-02-16 07:39:47 +00:00
AC_SUBST(p_plugins)
2010-08-12 14:07:24 +00:00
AC_SUBST(s_plugins)
2013-08-08 09:02:17 +00:00
AC_SUBST(t_plugins)
2010-08-12 14:07:24 +00:00
2013-02-01 10:29:23 +00:00
# ======================
# set Makefile.am vars
# ======================
2006-05-16 14:24:03 +00:00
2013-02-01 10:29:23 +00:00
# libstrongswan plugins
# -----------------------
2009-06-11 09:09:33 +00:00
AM_CONDITIONAL(USE_TEST_VECTORS, test x$test_vectors = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_CURL, test x$curl = xtrue)
2015-02-11 11:11:04 +00:00
AM_CONDITIONAL(USE_FILES, test x$files = xtrue)
2014-01-30 13:07:53 +00:00
AM_CONDITIONAL(USE_WINHTTP, test x$winhttp = xtrue)
2012-03-27 07:22:14 +00:00
AM_CONDITIONAL(USE_UNBOUND, test x$unbound = xtrue)
2011-01-17 12:27:18 +00:00
AM_CONDITIONAL(USE_SOUP, test x$soup = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_LDAP, test x$ldap = xtrue)
AM_CONDITIONAL(USE_AES, test x$aes = xtrue)
AM_CONDITIONAL(USE_DES, test x$des = xtrue)
2009-05-08 22:04:15 +00:00
AM_CONDITIONAL(USE_BLOWFISH, test x$blowfish = xtrue)
2013-04-10 17:24:09 +00:00
AM_CONDITIONAL(USE_RC2, test x$rc2 = xtrue)
2009-02-19 10:06:58 +00:00
AM_CONDITIONAL(USE_MD4, test x$md4 = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_MD5, test x$md5 = xtrue)
AM_CONDITIONAL(USE_SHA1, test x$sha1 = xtrue)
AM_CONDITIONAL(USE_SHA2, test x$sha2 = xtrue)
2015-10-28 18:57:14 +00:00
AM_CONDITIONAL(USE_SHA3, test x$sha3 = xtrue)
2016-09-20 20:01:07 +00:00
AM_CONDITIONAL(USE_MGF1, test x$mgf1 = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_FIPS_PRF, test x$fips_prf = xtrue)
AM_CONDITIONAL(USE_GMP, test x$gmp = xtrue)
2014-08-08 14:22:56 +00:00
AM_CONDITIONAL(USE_CURVE25519, test x$curve25519 = xtrue)
2013-01-04 13:33:45 +00:00
AM_CONDITIONAL(USE_RDRAND, test x$rdrand = xtrue)
2015-03-25 12:27:39 +00:00
AM_CONDITIONAL(USE_AESNI, test x$aesni = xtrue)
2008-04-15 05:56:35 +00:00
AM_CONDITIONAL(USE_RANDOM, test x$random = xtrue)
2012-05-02 15:49:32 +00:00
AM_CONDITIONAL(USE_NONCE, test x$nonce = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_X509, test x$x509 = xtrue)
2010-07-05 13:26:35 +00:00
AM_CONDITIONAL(USE_REVOCATION, test x$revocation = xtrue)
2010-12-09 09:41:54 +00:00
AM_CONDITIONAL(USE_CONSTRAINTS, test x$constraints = xtrue)
2014-02-05 15:59:55 +00:00
AM_CONDITIONAL(USE_ACERT, test x$acert = xtrue)
2008-05-08 13:16:42 +00:00
AM_CONDITIONAL(USE_PUBKEY, test x$pubkey = xtrue)
2009-08-14 14:48:40 +00:00
AM_CONDITIONAL(USE_PKCS1, test x$pkcs1 = xtrue)
2012-11-26 11:06:44 +00:00
AM_CONDITIONAL(USE_PKCS7, test x$pkcs7 = xtrue)
2012-01-18 18:12:21 +00:00
AM_CONDITIONAL(USE_PKCS8, test x$pkcs8 = xtrue)
2013-04-12 09:59:01 +00:00
AM_CONDITIONAL(USE_PKCS12, test x$pkcs12 = xtrue)
2009-08-17 11:46:04 +00:00
AM_CONDITIONAL(USE_PGP, test x$pgp = xtrue)
2009-08-17 12:45:52 +00:00
AM_CONDITIONAL(USE_DNSKEY, test x$dnskey = xtrue)
2013-04-01 13:20:39 +00:00
AM_CONDITIONAL(USE_SSHKEY, test x$sshkey = xtrue)
2009-08-11 14:24:01 +00:00
AM_CONDITIONAL(USE_PEM, test x$pem = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_HMAC, test x$hmac = xtrue)
2012-04-03 08:40:47 +00:00
AM_CONDITIONAL(USE_CMAC, test x$cmac = xtrue)
2008-04-30 14:26:24 +00:00
AM_CONDITIONAL(USE_XCBC, test x$xcbc = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_MYSQL, test x$mysql = xtrue)
AM_CONDITIONAL(USE_SQLITE, test x$sqlite = xtrue)
2008-05-16 08:52:32 +00:00
AM_CONDITIONAL(USE_PADLOCK, test x$padlock = xtrue)
AM_CONDITIONAL(USE_OPENSSL, test x$openssl = xtrue)
2009-06-04 12:23:39 +00:00
AM_CONDITIONAL(USE_GCRYPT, test x$gcrypt = xtrue)
2008-09-02 11:04:26 +00:00
AM_CONDITIONAL(USE_AGENT, test x$agent = xtrue)
2013-04-29 09:19:57 +00:00
AM_CONDITIONAL(USE_KEYCHAIN, test x$keychain = xtrue)
2010-07-13 15:34:34 +00:00
AM_CONDITIONAL(USE_PKCS11, test x$pkcs11 = xtrue)
2017-02-16 07:39:47 +00:00
AM_CONDITIONAL(USE_TPM, test x$tpm = xtrue)
2015-04-01 17:17:25 +00:00
AM_CONDITIONAL(USE_CHAPOLY, test x$chapoly = xtrue)
2010-08-13 17:39:59 +00:00
AM_CONDITIONAL(USE_CTR, test x$ctr = xtrue)
2010-08-18 18:38:02 +00:00
AM_CONDITIONAL(USE_CCM, test x$ccm = xtrue)
2010-08-19 15:58:30 +00:00
AM_CONDITIONAL(USE_GCM, test x$gcm = xtrue)
2010-11-05 15:15:13 +00:00
AM_CONDITIONAL(USE_AF_ALG, test x$af_alg = xtrue)
2013-11-18 20:11:03 +00:00
AM_CONDITIONAL(USE_NTRU, test x$ntru = xtrue)
2016-07-26 09:32:22 +00:00
AM_CONDITIONAL(USE_NEWHOPE, test x$newhope = xtrue)
2014-10-21 22:19:49 +00:00
AM_CONDITIONAL(USE_BLISS, test x$bliss = xtrue)
2008-05-16 08:52:32 +00:00
2013-02-01 10:29:23 +00:00
# charon plugins
# ----------------
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_STROKE, test x$stroke = xtrue)
2014-01-20 09:59:21 +00:00
AM_CONDITIONAL(USE_VICI, test x$vici = xtrue)
2008-05-08 12:11:30 +00:00
AM_CONDITIONAL(USE_MEDSRV, test x$medsrv = xtrue)
2008-05-14 07:26:19 +00:00
AM_CONDITIONAL(USE_MEDCLI, test x$medcli = xtrue)
2008-06-17 14:17:51 +00:00
AM_CONDITIONAL(USE_UCI, test x$uci = xtrue)
2013-05-15 13:56:17 +00:00
AM_CONDITIONAL(USE_OSX_ATTR, test x$osx_attr = xtrue)
2016-02-03 16:49:48 +00:00
AM_CONDITIONAL(USE_P_CSCF, test x$p_cscf = xtrue)
2013-03-02 14:57:00 +00:00
AM_CONDITIONAL(USE_ANDROID_DNS, test x$android_dns = xtrue)
2012-02-16 17:17:09 +00:00
AM_CONDITIONAL(USE_ANDROID_LOG, test x$android_log = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_SMP, test x$smp = xtrue)
AM_CONDITIONAL(USE_SQL, test x$sql = xtrue)
2013-08-30 15:51:12 +00:00
AM_CONDITIONAL(USE_DNSCERT, test x$dnscert = xtrue)
2012-06-08 09:26:50 +00:00
AM_CONDITIONAL(USE_IPSECKEY, test x$ipseckey = xtrue)
2008-10-16 11:48:18 +00:00
AM_CONDITIONAL(USE_UPDOWN, test x$updown = xtrue)
2010-03-22 13:39:33 +00:00
AM_CONDITIONAL(USE_DHCP, test x$dhcp = xtrue)
2009-10-15 08:34:49 +00:00
AM_CONDITIONAL(USE_LOAD_TESTER, test x$load_tester = xtrue)
2008-10-24 08:06:22 +00:00
AM_CONDITIONAL(USE_HA, test x$ha = xtrue)
2016-02-12 14:21:54 +00:00
AM_CONDITIONAL(USE_KERNEL_NETLINK, test x$kernel_netlink = xtrue)
AM_CONDITIONAL(USE_KERNEL_PFKEY, test x$kernel_pfkey = xtrue)
AM_CONDITIONAL(USE_KERNEL_PFROUTE, test x$kernel_pfroute = xtrue)
2013-06-11 16:43:01 +00:00
AM_CONDITIONAL(USE_KERNEL_LIBIPSEC, test x$kernel_libipsec = xtrue)
2013-10-31 13:58:43 +00:00
AM_CONDITIONAL(USE_KERNEL_WFP, test x$kernel_wfp = xtrue)
2013-12-12 08:35:36 +00:00
AM_CONDITIONAL(USE_KERNEL_IPH, test x$kernel_iph = xtrue)
2011-02-03 12:38:13 +00:00
AM_CONDITIONAL(USE_WHITELIST, test x$whitelist = xtrue)
2014-10-06 09:52:49 +00:00
AM_CONDITIONAL(USE_EXT_AUTH, test x$ext_auth = xtrue)
2012-10-03 14:25:36 +00:00
AM_CONDITIONAL(USE_LOOKIP, test x$lookip = xtrue)
2012-11-06 15:46:49 +00:00
AM_CONDITIONAL(USE_ERROR_NOTIFY, test x$error_notify = xtrue)
2011-08-03 13:16:41 +00:00
AM_CONDITIONAL(USE_CERTEXPIRE, test x$certexpire = xtrue)
2013-02-19 13:49:38 +00:00
AM_CONDITIONAL(USE_SYSTIME_FIX, test x$systime_fix = xtrue)
2010-09-08 09:59:00 +00:00
AM_CONDITIONAL(USE_LED, test x$led = xtrue)
2011-02-09 14:04:21 +00:00
AM_CONDITIONAL(USE_DUPLICHECK, test x$duplicheck = xtrue)
2011-02-21 13:05:21 +00:00
AM_CONDITIONAL(USE_COUPLING, test x$coupling = xtrue)
2012-02-27 14:41:53 +00:00
AM_CONDITIONAL(USE_RADATTR, test x$radattr = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_EAP_SIM, test x$eap_sim = xtrue)
2008-10-10 08:36:01 +00:00
AM_CONDITIONAL(USE_EAP_SIM_FILE, test x$eap_sim_file = xtrue)
2011-04-04 06:51:50 +00:00
AM_CONDITIONAL(USE_EAP_SIM_PCSC, test x$eap_sim_pcsc = xtrue)
2010-06-02 13:55:58 +00:00
AM_CONDITIONAL(USE_EAP_SIMAKA_SQL, test x$eap_simaka_sql = xtrue)
2009-10-28 14:34:05 +00:00
AM_CONDITIONAL(USE_EAP_SIMAKA_PSEUDONYM, test x$eap_simaka_pseudonym = xtrue)
AM_CONDITIONAL(USE_EAP_SIMAKA_REAUTH, test x$eap_simaka_reauth = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_EAP_IDENTITY, test x$eap_identity = xtrue)
AM_CONDITIONAL(USE_EAP_MD5, test x$eap_md5 = xtrue)
2008-08-21 12:10:07 +00:00
AM_CONDITIONAL(USE_EAP_GTC, test x$eap_gtc = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_EAP_AKA, test x$eap_aka = xtrue)
2017-05-16 15:34:02 +00:00
AM_CONDITIONAL(USE_EAP_AKA_3GPP, test x$eap_aka_3gpp = xtrue)
2009-10-08 08:29:43 +00:00
AM_CONDITIONAL(USE_EAP_AKA_3GPP2, test x$eap_aka_3gpp2 = xtrue)
2009-02-18 19:57:15 +00:00
AM_CONDITIONAL(USE_EAP_MSCHAPV2, test x$eap_mschapv2 = xtrue)
2010-01-11 13:21:58 +00:00
AM_CONDITIONAL(USE_EAP_TLS, test x$eap_tls = xtrue)
2010-08-06 05:45:03 +00:00
AM_CONDITIONAL(USE_EAP_TTLS, test x$eap_ttls = xtrue)
2011-04-06 12:42:02 +00:00
AM_CONDITIONAL(USE_EAP_PEAP, test x$eap_peap = xtrue)
2010-08-30 13:36:24 +00:00
AM_CONDITIONAL(USE_EAP_TNC, test x$eap_tnc = xtrue)
2012-08-23 12:42:23 +00:00
AM_CONDITIONAL(USE_EAP_DYNAMIC, test x$eap_dynamic = xtrue)
2009-03-24 10:24:58 +00:00
AM_CONDITIONAL(USE_EAP_RADIUS, test x$eap_radius = xtrue)
2011-12-12 17:26:26 +00:00
AM_CONDITIONAL(USE_XAUTH_GENERIC, test x$xauth_generic = xtrue)
2011-12-19 19:21:02 +00:00
AM_CONDITIONAL(USE_XAUTH_EAP, test x$xauth_eap = xtrue)
2012-08-09 12:39:31 +00:00
AM_CONDITIONAL(USE_XAUTH_PAM, test x$xauth_pam = xtrue)
2013-02-04 17:55:54 +00:00
AM_CONDITIONAL(USE_XAUTH_NOAUTH, test x$xauth_noauth = xtrue)
2013-03-31 14:37:30 +00:00
AM_CONDITIONAL(USE_TNC_IFMAP, test x$tnc_ifmap = xtrue)
2011-11-13 20:56:47 +00:00
AM_CONDITIONAL(USE_TNC_PDP, test x$tnc_pdp = xtrue)
2010-10-07 21:31:23 +00:00
AM_CONDITIONAL(USE_TNC_IMC, test x$tnc_imc = xtrue)
AM_CONDITIONAL(USE_TNC_IMV, test x$tnc_imv = xtrue)
2011-10-31 22:29:49 +00:00
AM_CONDITIONAL(USE_TNC_TNCCS, test x$tnc_tnccs = xtrue)
2010-09-28 21:34:04 +00:00
AM_CONDITIONAL(USE_TNCCS_11, test x$tnccs_11 = xtrue)
2010-10-05 19:15:24 +00:00
AM_CONDITIONAL(USE_TNCCS_20, test x$tnccs_20 = xtrue)
2011-01-30 23:59:01 +00:00
AM_CONDITIONAL(USE_TNCCS_DYNAMIC, test x$tnccs_dynamic = xtrue)
2011-05-30 19:30:09 +00:00
AM_CONDITIONAL(USE_IMC_TEST, test x$imc_test = xtrue)
AM_CONDITIONAL(USE_IMV_TEST, test x$imv_test = xtrue)
2011-07-04 19:40:25 +00:00
AM_CONDITIONAL(USE_IMC_SCANNER, test x$imc_scanner = xtrue)
AM_CONDITIONAL(USE_IMV_SCANNER, test x$imv_scanner = xtrue)
2012-10-09 21:58:17 +00:00
AM_CONDITIONAL(USE_IMC_OS, test x$imc_os = xtrue)
AM_CONDITIONAL(USE_IMV_OS, test x$imv_os = xtrue)
2011-06-20 14:30:23 +00:00
AM_CONDITIONAL(USE_IMC_ATTESTATION, test x$imc_attestation = xtrue)
AM_CONDITIONAL(USE_IMV_ATTESTATION, test x$imv_attestation = xtrue)
2017-06-10 08:22:01 +00:00
AM_CONDITIONAL(USE_IMC_SWIMA, test x$imc_swima = xtrue)
2017-06-10 08:23:28 +00:00
AM_CONDITIONAL(USE_IMV_SWIMA, test x$imv_swima = xtrue)
2015-05-21 20:01:32 +00:00
AM_CONDITIONAL(USE_IMC_HCD, test x$imc_hcd = xtrue)
AM_CONDITIONAL(USE_IMV_HCD, test x$imv_hcd = xtrue)
2016-09-02 12:06:30 +00:00
AM_CONDITIONAL(USE_SAVE_KEYS, test x$save_keys = xtrue)
2010-02-22 13:56:35 +00:00
AM_CONDITIONAL(USE_SOCKET_DEFAULT, test x$socket_default = xtrue)
2010-02-24 09:58:23 +00:00
AM_CONDITIONAL(USE_SOCKET_DYNAMIC, test x$socket_dynamic = xtrue)
2013-10-30 17:01:18 +00:00
AM_CONDITIONAL(USE_SOCKET_WIN, test x$socket_win = xtrue)
2016-10-12 08:05:10 +00:00
AM_CONDITIONAL(USE_BYPASS_LAN, test x$bypass_lan = xtrue)
2014-11-14 10:01:45 +00:00
AM_CONDITIONAL(USE_CONNMARK, test x$connmark = xtrue)
2014-12-05 14:50:24 +00:00
AM_CONDITIONAL(USE_FORECAST, test x$forecast = xtrue)
2010-03-19 11:08:41 +00:00
AM_CONDITIONAL(USE_FARP, test x$farp = xtrue)
2010-07-12 13:57:25 +00:00
AM_CONDITIONAL(USE_ADDRBLOCK, test x$addrblock = xtrue)
2012-07-23 15:14:47 +00:00
AM_CONDITIONAL(USE_UNITY, test x$unity = xtrue)
2014-11-04 13:13:34 +00:00
AM_CONDITIONAL(USE_RESOLVE, test x$resolve = xtrue)
2014-11-04 13:19:03 +00:00
AM_CONDITIONAL(USE_ATTR, test x$attr = xtrue)
2014-11-04 13:22:20 +00:00
AM_CONDITIONAL(USE_ATTR_SQL, test x$attr_sql = xtrue)
2017-08-24 15:02:37 +00:00
AM_CONDITIONAL(USE_COUNTERS, test x$counters = xtrue)
2008-05-16 08:52:32 +00:00
2013-02-01 10:29:23 +00:00
# other options
# ---------------
2008-05-16 08:52:32 +00:00
AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue)
2008-11-05 14:36:57 +00:00
AM_CONDITIONAL(USE_LOCK_PROFILER, test x$lock_profiler = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_DUMM, test x$dumm = xtrue)
AM_CONDITIONAL(USE_FAST, test x$fast = xtrue)
AM_CONDITIONAL(USE_MANAGER, test x$manager = xtrue)
2009-09-23 08:49:38 +00:00
AM_CONDITIONAL(USE_ME, test x$mediation = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_INTEGRITY_TEST, test x$integrity_test = xtrue)
2010-07-15 04:29:26 +00:00
AM_CONDITIONAL(USE_LOAD_WARNING, test x$load_warning = xtrue)
2011-11-09 11:08:40 +00:00
AM_CONDITIONAL(USE_IKEV1, test x$ikev1 = xtrue)
2011-12-19 12:13:45 +00:00
AM_CONDITIONAL(USE_IKEV2, test x$ikev2 = xtrue)
2008-12-02 09:01:57 +00:00
AM_CONDITIONAL(USE_THREADS, test x$threads = xtrue)
2011-10-14 12:34:45 +00:00
AM_CONDITIONAL(USE_ADNS, test x$adns = xtrue)
2008-03-28 12:44:01 +00:00
AM_CONDITIONAL(USE_CHARON, test x$charon = xtrue)
2012-04-19 14:35:44 +00:00
AM_CONDITIONAL(USE_NM, test x$nm = xtrue)
2014-03-04 11:24:52 +00:00
AM_CONDITIONAL(USE_PKI, test x$pki = xtrue)
2014-06-27 13:26:53 +00:00
AM_CONDITIONAL(USE_SCEPCLIENT, test x$scepclient = xtrue)
2009-07-16 08:52:14 +00:00
AM_CONDITIONAL(USE_SCRIPTS, test x$scripts = xtrue)
2017-03-08 10:00:22 +00:00
AM_CONDITIONAL(USE_FUZZING, test x$fuzzing = xtrue)
2010-10-19 12:42:47 +00:00
AM_CONDITIONAL(USE_CONFTEST, test x$conftest = xtrue)
2017-03-06 05:16:10 +00:00
AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$pki = xtrue -o x$scepclient = xtrue -o x$conftest = xtrue -o x$fast = xtrue -o x$imcv = xtrue -o x$nm = xtrue -o x$tkm = xtrue -o x$cmd = xtrue -o x$tls = xtrue -o x$tnc_tnccs = xtrue -o x$aikgen = xtrue -o x$svc = xtrue -o x$systemd = xtrue)
2014-07-17 14:16:23 +00:00
AM_CONDITIONAL(USE_LIBCHARON, test x$charon = xtrue -o x$conftest = xtrue -o x$nm = xtrue -o x$tkm = xtrue -o x$cmd = xtrue -o x$svc = xtrue -o x$systemd = xtrue)
2012-02-22 14:32:37 +00:00
AM_CONDITIONAL(USE_LIBIPSEC, test x$libipsec = xtrue)
2016-07-26 09:32:22 +00:00
AM_CONDITIONAL(USE_LIBNTTFFT, test x$bliss = xtrue -o x$newhope = xtrue)
2012-02-20 07:00:48 +00:00
AM_CONDITIONAL(USE_LIBTNCIF, test x$tnc_tnccs = xtrue -o x$imcv = xtrue)
2011-10-31 22:29:49 +00:00
AM_CONDITIONAL(USE_LIBTNCCS, test x$tnc_tnccs = xtrue)
2013-01-15 16:38:10 +00:00
AM_CONDITIONAL(USE_LIBPTTLS, test x$tnc_tnccs = xtrue)
2017-10-17 12:04:27 +00:00
AM_CONDITIONAL(USE_LIBTPMTSS, test x$tss_trousers = xtrue -o x$tss_tss2 = xtrue -o x$tpm = xtrue -o x$aikgen = xtrue -o x$imcv = xtrue)
2012-05-15 14:59:00 +00:00
AM_CONDITIONAL(USE_FILE_CONFIG, test x$stroke = xtrue)
2014-06-27 13:26:53 +00:00
AM_CONDITIONAL(USE_IPSEC_SCRIPT, test x$stroke = xtrue -o x$scepclient = xtrue -o x$conftest = xtrue)
2010-06-15 17:10:23 +00:00
AM_CONDITIONAL(USE_LIBCAP, test x$capabilities = xlibcap)
2014-03-03 17:18:47 +00:00
AM_CONDITIONAL(USE_VSTR, test x$printf_hooks = xvstr)
AM_CONDITIONAL(USE_BUILTIN_PRINTF, test x$printf_hooks = xbuiltin)
2009-10-19 13:37:36 +00:00
AM_CONDITIONAL(USE_SIMAKA, test x$simaka = xtrue)
2010-08-03 13:17:40 +00:00
AM_CONDITIONAL(USE_TLS, test x$tls = xtrue)
2012-02-27 14:18:58 +00:00
AM_CONDITIONAL(USE_RADIUS, test x$radius = xtrue)
2011-05-30 19:30:09 +00:00
AM_CONDITIONAL(USE_IMCV, test x$imcv = xtrue)
2016-06-24 11:03:15 +00:00
AM_CONDITIONAL(USE_TROUSERS, test x$tss_trousers = xtrue)
AM_CONDITIONAL(USE_TSS2, test x$tss_tss2 = xtrue)
2010-03-01 15:16:55 +00:00
AM_CONDITIONAL(MONOLITHIC, test x$monolithic = xtrue)
2017-04-28 15:41:57 +00:00
AM_CONDITIONAL(STATIC_PLUGIN_CONSTRUCTORS, test x$static_plugin_constructors = xtrue)
2013-04-10 13:36:14 +00:00
AM_CONDITIONAL(USE_SILENT_RULES, test x$enable_silent_rules = xyes)
2013-03-27 10:03:56 +00:00
AM_CONDITIONAL(COVERAGE, test x$coverage = xtrue)
2013-10-14 09:55:12 +00:00
AM_CONDITIONAL(USE_DBGHELP, test x$dbghelp_backtraces = xtrue)
2012-05-18 12:09:24 +00:00
AM_CONDITIONAL(USE_TKM, test x$tkm = xtrue)
2013-03-26 10:26:22 +00:00
AM_CONDITIONAL(USE_CMD, test x$cmd = xtrue)
2014-05-02 18:10:53 +00:00
AM_CONDITIONAL(USE_AIKGEN, test x$aikgen = xtrue)
2014-01-29 13:37:32 +00:00
AM_CONDITIONAL(USE_SWANCTL, test x$swanctl = xtrue)
2013-10-29 16:33:33 +00:00
AM_CONDITIONAL(USE_SVC, test x$svc = xtrue)
2014-07-17 14:16:23 +00:00
AM_CONDITIONAL(USE_SYSTEMD, test x$systemd = xtrue)
AM_CONDITIONAL(USE_LEGACY_SYSTEMD, test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno)
2014-10-08 11:44:44 +00:00
AM_CONDITIONAL(USE_RUBY_GEMS, test x$ruby_gems = xtrue)
2015-02-25 13:34:27 +00:00
AM_CONDITIONAL(USE_PYTHON_EGGS, test x$python_eggs = xtrue)
2015-11-16 19:08:30 +00:00
AM_CONDITIONAL(USE_PERL_CPAN, test x$perl_cpan = xtrue)
2015-03-11 09:01:40 +00:00
AM_CONDITIONAL(USE_PY_TEST, test "x$PY_TEST" != x)
2006-05-16 14:24:03 +00:00
2013-02-01 10:29:23 +00:00
# ========================
# set global definitions
# ========================
2008-03-31 15:01:43 +00:00
2009-09-23 09:13:27 +00:00
if test x$mediation = xtrue; then
2012-07-03 14:40:26 +00:00
AC_DEFINE([ME], [], [mediation extension support])
2008-03-31 15:01:43 +00:00
fi
2010-06-15 17:40:44 +00:00
if test x$capabilities = xlibcap -o x$capabilities = xnative; then
2012-07-03 14:40:26 +00:00
AC_DEFINE([CAPABILITIES], [], [capability dropping support])
2008-08-29 09:24:14 +00:00
fi
2016-02-12 16:09:47 +00:00
if test x$log_thread_ids = xtrue; then
AC_DEFINE([USE_THREAD_IDS], [], [use thread ID for thread identification, if available])
fi
2010-03-01 15:16:55 +00:00
if test x$monolithic = xtrue; then
2012-07-03 14:40:26 +00:00
AC_DEFINE([MONOLITHIC], [], [monolithic build embedding plugins])
2010-03-01 15:16:55 +00:00
fi
2017-04-28 15:41:57 +00:00
if test x$static_plugin_constructors = xtrue; then
AC_DEFINE([STATIC_PLUGIN_CONSTRUCTORS], [], [static plugin constructors])
fi
2011-11-09 11:08:40 +00:00
if test x$ikev1 = xtrue; then
2012-07-03 14:40:26 +00:00
AC_DEFINE([USE_IKEV1], [], [support for IKEv1 protocol])
2011-11-09 11:08:40 +00:00
fi
2011-12-19 12:13:45 +00:00
if test x$ikev2 = xtrue; then
2012-07-03 14:40:26 +00:00
AC_DEFINE([USE_IKEV2], [], [support for IKEv2 protocol])
2011-12-19 12:13:45 +00:00
fi
2017-05-03 16:10:17 +00:00
if test x$fuzzing = xtrue; then
AC_DEFINE([USE_FUZZING], [], [build code for fuzzing])
fi
2018-03-01 16:33:49 +00:00
if test x$imc_swima = xtrue -o x$imv_swima = xtrue; then
2017-06-26 16:07:11 +00:00
AC_DEFINE([USE_JSON], [], [build code for JSON])
fi
2008-03-31 15:01:43 +00:00
2014-02-07 13:46:25 +00:00
# ====================================================
# options for enabled modules (see conf/Makefile.am)
# ====================================================
strongswan_options=
2014-06-27 13:32:19 +00:00
AM_COND_IF([USE_AIKGEN], [strongswan_options=${strongswan_options}" aikgen"])
2014-02-07 13:46:25 +00:00
AM_COND_IF([USE_ATTR_SQL], [strongswan_options=${strongswan_options}" pool"])
AM_COND_IF([USE_CHARON], [strongswan_options=${strongswan_options}" charon charon-logging"])
AM_COND_IF([USE_FILE_CONFIG], [strongswan_options=${strongswan_options}" starter"])
AM_COND_IF([USE_IMV_ATTESTATION], [strongswan_options=${strongswan_options}" attest"])
AM_COND_IF([USE_IMCV], [strongswan_options=${strongswan_options}" imcv"])
2017-11-15 11:18:17 +00:00
AM_COND_IF([USE_IMV_SWIMA], [strongswan_options=${strongswan_options}" sec-updater"])
2014-02-07 13:46:25 +00:00
AM_COND_IF([USE_LIBTNCCS], [strongswan_options=${strongswan_options}" tnc"])
AM_COND_IF([USE_MANAGER], [strongswan_options=${strongswan_options}" manager"])
AM_COND_IF([USE_MEDSRV], [strongswan_options=${strongswan_options}" medsrv"])
2014-06-27 13:26:53 +00:00
AM_COND_IF([USE_SCEPCLIENT], [strongswan_options=${strongswan_options}" scepclient"])
2014-03-04 11:24:52 +00:00
AM_COND_IF([USE_PKI], [strongswan_options=${strongswan_options}" pki"])
2014-06-27 13:47:34 +00:00
AM_COND_IF([USE_SWANCTL], [strongswan_options=${strongswan_options}" swanctl"])
2017-06-29 06:36:50 +00:00
AM_COND_IF([USE_SYSTEMD], [strongswan_options=${strongswan_options}" charon-systemd"])
2014-02-07 13:46:25 +00:00
AC_SUBST(strongswan_options)
2013-02-01 10:29:23 +00:00
# =================
# build Makefiles
# =================
2006-05-16 14:24:03 +00:00
2013-02-01 09:55:33 +00:00
AC_CONFIG_FILES([
2006-05-16 14:24:03 +00:00
Makefile
2014-01-23 13:38:03 +00:00
conf/Makefile
2017-03-08 10:00:22 +00:00
fuzz/Makefile
2010-09-09 11:15:36 +00:00
man/Makefile
2011-03-28 18:04:00 +00:00
init/Makefile
init/systemd/Makefile
2014-09-11 14:23:53 +00:00
init/systemd-swanctl/Makefile
2006-05-16 14:24:03 +00:00
src/Makefile
2007-04-19 08:59:36 +00:00
src/include/Makefile
2006-05-16 14:24:03 +00:00
src/libstrongswan/Makefile
2016-07-24 17:57:54 +00:00
src/libstrongswan/math/libnttfft/Makefile
src/libstrongswan/math/libnttfft/tests/Makefile
2008-03-13 14:14:44 +00:00
src/libstrongswan/plugins/aes/Makefile
2012-04-03 08:40:47 +00:00
src/libstrongswan/plugins/cmac/Makefile
2008-03-13 14:14:44 +00:00
src/libstrongswan/plugins/des/Makefile
2009-05-08 22:04:15 +00:00
src/libstrongswan/plugins/blowfish/Makefile
2013-04-10 17:24:09 +00:00
src/libstrongswan/plugins/rc2/Makefile
2009-02-19 10:06:58 +00:00
src/libstrongswan/plugins/md4/Makefile
2008-03-13 14:14:44 +00:00
src/libstrongswan/plugins/md5/Makefile
src/libstrongswan/plugins/sha1/Makefile
src/libstrongswan/plugins/sha2/Makefile
2015-10-28 18:57:14 +00:00
src/libstrongswan/plugins/sha3/Makefile
2016-09-20 20:01:07 +00:00
src/libstrongswan/plugins/mgf1/Makefile
2008-03-13 14:14:44 +00:00
src/libstrongswan/plugins/fips_prf/Makefile
src/libstrongswan/plugins/gmp/Makefile
2014-08-08 14:22:56 +00:00
src/libstrongswan/plugins/curve25519/Makefile
2013-01-04 13:33:45 +00:00
src/libstrongswan/plugins/rdrand/Makefile
2015-03-25 12:27:39 +00:00
src/libstrongswan/plugins/aesni/Makefile
2008-04-15 05:56:35 +00:00
src/libstrongswan/plugins/random/Makefile
2012-05-02 15:49:32 +00:00
src/libstrongswan/plugins/nonce/Makefile
2008-03-13 14:14:44 +00:00
src/libstrongswan/plugins/hmac/Makefile
2008-04-30 14:26:24 +00:00
src/libstrongswan/plugins/xcbc/Makefile
2008-03-13 14:14:44 +00:00
src/libstrongswan/plugins/x509/Makefile
2010-07-05 13:26:35 +00:00
src/libstrongswan/plugins/revocation/Makefile
2010-12-09 09:41:54 +00:00
src/libstrongswan/plugins/constraints/Makefile
2014-02-05 15:59:55 +00:00
src/libstrongswan/plugins/acert/Makefile
2008-05-08 13:16:42 +00:00
src/libstrongswan/plugins/pubkey/Makefile
2009-08-14 14:48:40 +00:00
src/libstrongswan/plugins/pkcs1/Makefile
2012-11-26 11:06:44 +00:00
src/libstrongswan/plugins/pkcs7/Makefile
2012-01-18 18:12:21 +00:00
src/libstrongswan/plugins/pkcs8/Makefile
2013-04-12 09:59:01 +00:00
src/libstrongswan/plugins/pkcs12/Makefile
2009-08-17 11:46:04 +00:00
src/libstrongswan/plugins/pgp/Makefile
2009-08-17 12:45:52 +00:00
src/libstrongswan/plugins/dnskey/Makefile
2013-04-01 13:20:39 +00:00
src/libstrongswan/plugins/sshkey/Makefile
2009-08-11 14:24:01 +00:00
src/libstrongswan/plugins/pem/Makefile
2008-03-13 14:14:44 +00:00
src/libstrongswan/plugins/curl/Makefile
2015-02-11 11:11:04 +00:00
src/libstrongswan/plugins/files/Makefile
2014-01-30 13:07:53 +00:00
src/libstrongswan/plugins/winhttp/Makefile
2012-03-27 07:22:14 +00:00
src/libstrongswan/plugins/unbound/Makefile
2011-01-17 12:27:18 +00:00
src/libstrongswan/plugins/soup/Makefile
2008-03-13 14:14:44 +00:00
src/libstrongswan/plugins/ldap/Makefile
src/libstrongswan/plugins/mysql/Makefile
src/libstrongswan/plugins/sqlite/Makefile
2008-04-22 08:44:56 +00:00
src/libstrongswan/plugins/padlock/Makefile
2008-04-28 14:25:19 +00:00
src/libstrongswan/plugins/openssl/Makefile
2009-06-04 12:23:39 +00:00
src/libstrongswan/plugins/gcrypt/Makefile
2008-09-02 11:04:26 +00:00
src/libstrongswan/plugins/agent/Makefile
2013-04-29 09:19:57 +00:00
src/libstrongswan/plugins/keychain/Makefile
2010-07-13 15:34:34 +00:00
src/libstrongswan/plugins/pkcs11/Makefile
2015-04-01 17:17:25 +00:00
src/libstrongswan/plugins/chapoly/Makefile
2010-08-13 17:39:59 +00:00
src/libstrongswan/plugins/ctr/Makefile
2010-08-18 18:38:02 +00:00
src/libstrongswan/plugins/ccm/Makefile
2010-08-19 15:58:30 +00:00
src/libstrongswan/plugins/gcm/Makefile
2010-11-05 15:15:13 +00:00
src/libstrongswan/plugins/af_alg/Makefile
2013-11-18 20:11:03 +00:00
src/libstrongswan/plugins/ntru/Makefile
2014-10-21 22:19:49 +00:00
src/libstrongswan/plugins/bliss/Makefile
2014-12-05 15:36:13 +00:00
src/libstrongswan/plugins/bliss/tests/Makefile
2016-07-26 09:32:22 +00:00
src/libstrongswan/plugins/newhope/Makefile
2016-08-09 18:58:00 +00:00
src/libstrongswan/plugins/newhope/tests/Makefile
2009-06-11 09:09:33 +00:00
src/libstrongswan/plugins/test_vectors/Makefile
2013-03-26 09:21:32 +00:00
src/libstrongswan/tests/Makefile
2012-02-22 14:32:37 +00:00
src/libipsec/Makefile
2015-04-27 12:13:58 +00:00
src/libipsec/tests/Makefile
2009-10-19 13:37:36 +00:00
src/libsimaka/Makefile
2010-08-03 13:17:40 +00:00
src/libtls/Makefile
2014-03-24 12:47:03 +00:00
src/libtls/tests/Makefile
2012-02-27 14:18:58 +00:00
src/libradius/Makefile
2011-06-01 14:32:01 +00:00
src/libtncif/Makefile
2011-10-20 19:12:29 +00:00
src/libtnccs/Makefile
2013-08-08 09:02:17 +00:00
src/libtnccs/plugins/tnc_tnccs/Makefile
src/libtnccs/plugins/tnc_imc/Makefile
2013-08-08 17:43:43 +00:00
src/libtnccs/plugins/tnc_imv/Makefile
2013-08-08 09:02:17 +00:00
src/libtnccs/plugins/tnccs_11/Makefile
src/libtnccs/plugins/tnccs_20/Makefile
src/libtnccs/plugins/tnccs_dynamic/Makefile
2013-01-15 16:38:10 +00:00
src/libpttls/Makefile
2011-05-30 19:30:09 +00:00
src/libimcv/Makefile
2011-06-01 06:02:16 +00:00
src/libimcv/plugins/imc_test/Makefile
src/libimcv/plugins/imv_test/Makefile
2011-07-04 19:40:25 +00:00
src/libimcv/plugins/imc_scanner/Makefile
src/libimcv/plugins/imv_scanner/Makefile
2012-10-09 21:58:17 +00:00
src/libimcv/plugins/imc_os/Makefile
src/libimcv/plugins/imv_os/Makefile
2014-08-29 10:18:21 +00:00
src/libimcv/plugins/imc_attestation/Makefile
src/libimcv/plugins/imv_attestation/Makefile
2017-06-10 08:22:01 +00:00
src/libimcv/plugins/imc_swima/Makefile
2017-06-10 08:23:28 +00:00
src/libimcv/plugins/imv_swima/Makefile
2015-05-21 20:01:32 +00:00
src/libimcv/plugins/imc_hcd/Makefile
src/libimcv/plugins/imv_hcd/Makefile
2006-05-16 14:24:03 +00:00
src/charon/Makefile
2012-04-19 14:35:44 +00:00
src/charon-nm/Makefile
2012-05-18 12:09:24 +00:00
src/charon-tkm/Makefile
2013-03-26 10:26:22 +00:00
src/charon-cmd/Makefile
2013-10-29 16:33:33 +00:00
src/charon-svc/Makefile
2014-07-17 14:16:23 +00:00
src/charon-systemd/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/Makefile
src/libcharon/plugins/eap_aka/Makefile
2017-05-16 15:34:02 +00:00
src/libcharon/plugins/eap_aka_3gpp/Makefile
2018-04-23 16:46:30 +00:00
src/libcharon/plugins/eap_aka_3gpp/tests/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/plugins/eap_aka_3gpp2/Makefile
2012-08-23 12:42:23 +00:00
src/libcharon/plugins/eap_dynamic/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/plugins/eap_identity/Makefile
src/libcharon/plugins/eap_md5/Makefile
src/libcharon/plugins/eap_gtc/Makefile
src/libcharon/plugins/eap_sim/Makefile
src/libcharon/plugins/eap_sim_file/Makefile
2011-04-04 06:51:50 +00:00
src/libcharon/plugins/eap_sim_pcsc/Makefile
2010-06-02 13:55:58 +00:00
src/libcharon/plugins/eap_simaka_sql/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/plugins/eap_simaka_pseudonym/Makefile
src/libcharon/plugins/eap_simaka_reauth/Makefile
src/libcharon/plugins/eap_mschapv2/Makefile
2010-01-11 13:21:58 +00:00
src/libcharon/plugins/eap_tls/Makefile
2010-08-06 05:45:03 +00:00
src/libcharon/plugins/eap_ttls/Makefile
2011-04-06 12:42:02 +00:00
src/libcharon/plugins/eap_peap/Makefile
2010-08-30 13:36:24 +00:00
src/libcharon/plugins/eap_tnc/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/plugins/eap_radius/Makefile
2011-12-12 17:26:26 +00:00
src/libcharon/plugins/xauth_generic/Makefile
2011-12-19 19:21:02 +00:00
src/libcharon/plugins/xauth_eap/Makefile
2012-08-09 12:39:31 +00:00
src/libcharon/plugins/xauth_pam/Makefile
2013-02-04 17:55:54 +00:00
src/libcharon/plugins/xauth_noauth/Makefile
2013-03-31 14:37:30 +00:00
src/libcharon/plugins/tnc_ifmap/Makefile
2011-11-13 20:56:47 +00:00
src/libcharon/plugins/tnc_pdp/Makefile
2016-09-02 12:06:30 +00:00
src/libcharon/plugins/save_keys/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/plugins/socket_default/Makefile
src/libcharon/plugins/socket_dynamic/Makefile
2013-10-30 17:01:18 +00:00
src/libcharon/plugins/socket_win/Makefile
2016-10-12 08:05:10 +00:00
src/libcharon/plugins/bypass_lan/Makefile
2014-11-14 10:01:45 +00:00
src/libcharon/plugins/connmark/Makefile
2017-08-24 15:02:37 +00:00
src/libcharon/plugins/counters/Makefile
2014-12-05 14:50:24 +00:00
src/libcharon/plugins/forecast/Makefile
2010-03-19 11:08:41 +00:00
src/libcharon/plugins/farp/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/plugins/smp/Makefile
src/libcharon/plugins/sql/Makefile
2013-08-30 15:51:12 +00:00
src/libcharon/plugins/dnscert/Makefile
2012-06-08 09:26:50 +00:00
src/libcharon/plugins/ipseckey/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/plugins/medsrv/Makefile
src/libcharon/plugins/medcli/Makefile
2010-07-12 13:57:25 +00:00
src/libcharon/plugins/addrblock/Makefile
2012-07-23 15:14:47 +00:00
src/libcharon/plugins/unity/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/plugins/uci/Makefile
2009-09-29 10:56:10 +00:00
src/libcharon/plugins/ha/Makefile
2016-02-12 14:21:54 +00:00
src/libcharon/plugins/kernel_netlink/Makefile
src/libcharon/plugins/kernel_pfkey/Makefile
src/libcharon/plugins/kernel_pfroute/Makefile
2013-06-11 16:43:01 +00:00
src/libcharon/plugins/kernel_libipsec/Makefile
2013-10-31 13:58:43 +00:00
src/libcharon/plugins/kernel_wfp/Makefile
2013-12-12 08:35:36 +00:00
src/libcharon/plugins/kernel_iph/Makefile
2011-02-03 12:38:13 +00:00
src/libcharon/plugins/whitelist/Makefile
2014-10-06 09:52:49 +00:00
src/libcharon/plugins/ext_auth/Makefile
2012-10-03 14:25:36 +00:00
src/libcharon/plugins/lookip/Makefile
2012-11-06 15:46:49 +00:00
src/libcharon/plugins/error_notify/Makefile
2011-08-03 13:16:41 +00:00
src/libcharon/plugins/certexpire/Makefile
2013-02-19 13:49:38 +00:00
src/libcharon/plugins/systime_fix/Makefile
2010-09-08 09:59:00 +00:00
src/libcharon/plugins/led/Makefile
2011-02-09 14:04:21 +00:00
src/libcharon/plugins/duplicheck/Makefile
2011-02-21 13:05:21 +00:00
src/libcharon/plugins/coupling/Makefile
2012-02-27 14:41:53 +00:00
src/libcharon/plugins/radattr/Makefile
2013-05-15 13:56:17 +00:00
src/libcharon/plugins/osx_attr/Makefile
2016-02-03 16:49:48 +00:00
src/libcharon/plugins/p_cscf/Makefile
2013-03-02 14:57:00 +00:00
src/libcharon/plugins/android_dns/Makefile
2012-02-16 17:17:09 +00:00
src/libcharon/plugins/android_log/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/plugins/stroke/Makefile
2014-01-20 09:59:21 +00:00
src/libcharon/plugins/vici/Makefile
2014-10-08 11:46:22 +00:00
src/libcharon/plugins/vici/ruby/Makefile
2015-11-16 19:08:30 +00:00
src/libcharon/plugins/vici/perl/Makefile
2015-02-25 15:04:57 +00:00
src/libcharon/plugins/vici/python/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/plugins/updown/Makefile
2010-03-22 13:39:33 +00:00
src/libcharon/plugins/dhcp/Makefile
2010-03-12 15:56:54 +00:00
src/libcharon/plugins/load_tester/Makefile
2014-11-04 13:13:34 +00:00
src/libcharon/plugins/resolve/Makefile
2014-11-04 13:19:03 +00:00
src/libcharon/plugins/attr/Makefile
2014-11-04 13:22:20 +00:00
src/libcharon/plugins/attr_sql/Makefile
2014-12-12 11:44:32 +00:00
src/libcharon/tests/Makefile
2016-06-02 21:01:11 +00:00
src/libtpmtss/Makefile
2017-02-16 07:39:47 +00:00
src/libtpmtss/plugins/tpm/Makefile
2006-05-16 14:24:03 +00:00
src/stroke/Makefile
src/ipsec/Makefile
src/starter/Makefile
2014-05-20 16:16:48 +00:00
src/starter/tests/Makefile
2006-05-16 14:24:03 +00:00
src/_updown/Makefile
src/_copyright/Makefile
src/scepclient/Makefile
2014-05-02 18:10:53 +00:00
src/aikgen/Makefile
2017-12-12 16:42:08 +00:00
src/tpm_extendpcr/Makefile
2009-08-26 09:22:09 +00:00
src/pki/Makefile
2013-07-31 16:05:10 +00:00
src/pki/man/Makefile
2013-09-05 16:00:48 +00:00
src/pool/Makefile
2007-08-08 14:03:55 +00:00
src/dumm/Makefile
2009-05-20 16:40:27 +00:00
src/dumm/ext/extconf.rb
2008-03-13 14:14:44 +00:00
src/libfast/Makefile
2007-09-13 07:45:04 +00:00
src/manager/Makefile
2008-06-11 14:13:24 +00:00
src/medsrv/Makefile
2009-06-22 10:47:09 +00:00
src/checksum/Makefile
2010-10-19 12:42:47 +00:00
src/conftest/Makefile
2013-08-07 17:41:29 +00:00
src/pt-tls-client/Makefile
2017-07-16 07:52:52 +00:00
src/sw-collector/Makefile
2017-08-25 09:23:20 +00:00
src/sec-updater/Makefile
2014-01-29 13:37:32 +00:00
src/swanctl/Makefile
2008-06-29 13:57:00 +00:00
scripts/Makefile
2007-08-28 06:36:31 +00:00
testing/Makefile
2013-02-01 09:55:33 +00:00
])
2013-07-31 15:30:40 +00:00
# =================
# build man pages
# =================
AC_CONFIG_FILES([
2014-01-29 12:59:34 +00:00
conf/strongswan.conf.5.head
conf/strongswan.conf.5.tail
2013-07-31 15:30:40 +00:00
man/ipsec.conf.5
man/ipsec.secrets.5
src/charon-cmd/charon-cmd.8
2013-09-13 12:52:14 +00:00
src/pki/man/pki.1
2015-08-06 16:04:38 +00:00
src/pki/man/pki---acert.1
src/pki/man/pki---dn.1
2013-09-13 12:52:14 +00:00
src/pki/man/pki---gen.1
src/pki/man/pki---issue.1
src/pki/man/pki---keyid.1
2014-12-05 09:41:07 +00:00
src/pki/man/pki---pkcs12.1
2015-08-06 16:04:38 +00:00
src/pki/man/pki---pkcs7.1
2013-09-13 12:52:14 +00:00
src/pki/man/pki---print.1
src/pki/man/pki---pub.1
src/pki/man/pki---req.1
src/pki/man/pki---self.1
src/pki/man/pki---signcrl.1
src/pki/man/pki---verify.1
2014-04-28 14:57:22 +00:00
src/swanctl/swanctl.8
2014-04-17 17:23:48 +00:00
src/swanctl/swanctl.conf.5.head
src/swanctl/swanctl.conf.5.tail
2017-07-16 07:52:52 +00:00
src/pt-tls-client/pt-tls-client.1
src/sw-collector/sw-collector.8
2017-08-25 09:23:20 +00:00
src/sec-updater/sec-updater.8
2013-07-31 15:30:40 +00:00
])
2013-02-01 09:55:33 +00:00
AC_OUTPUT
2013-02-01 10:57:46 +00:00
# ========================
# report enabled plugins
# ========================
AC_MSG_RESULT([])
AC_MSG_RESULT([ strongSwan will be built with the following plugins])
AC_MSG_RESULT([-----------------------------------------------------])
AC_MSG_RESULT([libstrongswan:$s_plugins])
AC_MSG_RESULT([libcharon: $c_plugins])
2013-08-08 09:02:17 +00:00
AC_MSG_RESULT([libtnccs: $t_plugins])
2017-02-16 07:39:47 +00:00
AC_MSG_RESULT([libtpmtss: $p_plugins])
2013-02-01 10:57:46 +00:00
AC_MSG_RESULT([])