1 dnl configure.in for linux strongSwan
2 dnl Copyright (C) 2006 Martin Willi
3 dnl Hochschule fuer Technik Rapperswil
5 dnl This program is free software; you can redistribute it and/or modify it
6 dnl under the terms of the GNU General Public License as published by the
7 dnl Free Software Foundation; either version 2 of the License, or (at your
8 dnl option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 dnl This program is distributed in the hope that it will be useful, but
11 dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 dnl ===========================
16 dnl initialize & set some vars
17 dnl ===========================
19 AC_INIT(strongSwan,4.2.12)
20 AM_INIT_AUTOMAKE(tar-ustar)
22 AC_SUBST(confdir, '${sysconfdir}')
25 dnl =================================
26 dnl check --enable-xxx & --with-xxx
27 dnl =================================
31 AS_HELP_STRING([--with-default-pkcs11=lib],[set the default PKCS11 library other than "/usr/lib/opensc-pkcs11.so"]),
32 [AC_DEFINE_UNQUOTED(PKCS11_DEFAULT_LIB, "$withval")],
33 [AC_DEFINE_UNQUOTED(PKCS11_DEFAULT_LIB, "/usr/lib/opensc-pkcs11.so")]
38 AS_HELP_STRING([--with-xauth-module=lib],[set the path to the XAUTH module]),
39 [AC_DEFINE_UNQUOTED(XAUTH_DEFAULT_LIB, "$withval")],
44 AS_HELP_STRING([--with-random-device=dev],[set the device for real random data other than "/dev/random"]),
45 [AC_DEFINE_UNQUOTED(DEV_RANDOM, "$withval")],
46 [AC_DEFINE_UNQUOTED(DEV_RANDOM, "/dev/random")]
50 AS_HELP_STRING([--with-resolv-conf=file],[set the file to store DNS server information other than "sysconfdir/resolv.conf"]),
51 [AC_SUBST(resolv_conf, "$withval")],
52 [AC_SUBST(resolv_conf, "${sysconfdir}/resolv.conf")]
57 AS_HELP_STRING([--with-strongswan-conf=file],[strongswan.conf file other than "sysconfdir/strongswan.conf"]),
58 [AC_SUBST(strongswan_conf, "$withval")],
59 [AC_SUBST(strongswan_conf, "${sysconfdir}/strongswan.conf")]
64 AS_HELP_STRING([--with-urandom-device=dev],[set the device for pseudo random data other than "/dev/urandom"]),
65 [AC_DEFINE_UNQUOTED(DEV_URANDOM, "$withval")],
66 [AC_DEFINE_UNQUOTED(DEV_URANDOM, "/dev/urandom")]
71 AS_HELP_STRING([--with-piddir=dir],[path for PID and UNIX socket files other than "/var/run"]),
72 [AC_SUBST(piddir, "$withval")],
73 [AC_SUBST(piddir, "/var/run")]
78 AS_HELP_STRING([--with-ipsecdir=dir],[installation path for ipsec tools other than "libexecdir/ipsec"]),
79 [AC_SUBST(ipsecdir, "$withval")],
80 [AC_SUBST(ipsecdir, "${libexecdir%/}/ipsec")]
82 AC_SUBST(plugindir, "${ipsecdir%/}/plugins")
86 AS_HELP_STRING([--with-plugindir=dir],[installation path for plugins other than "ipsecdir/plugins"]),
87 [AC_SUBST(plugindir, "$withval")],
88 [AC_SUBST(plugindir, "${ipsecdir%/}/plugins")]
93 AS_HELP_STRING([--with-sim-reader=library.so],[library containing the sim_run_alg()/sim_get_triplet() function for EAP-SIM]),
94 [AC_SUBST(simreader, "$withval")],
95 [AC_SUBST(simreader, "${plugindir%/}/libeapsim-file.so")]
100 AS_HELP_STRING([--with-linux-headers=dir],[use the linux header files in dir instead of the supplied ones in "src/include"]),
101 [AC_SUBST(linuxdir, "$withval")], [AC_SUBST(linuxdir, "\${top_srcdir}/src/include")]
103 AC_SUBST(LINUX_HEADERS)
107 AS_HELP_STRING([--with-routing-table=num],[use routing table for IPsec routes (default: 220)]),
108 [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, $withval) AC_SUBST(IPSEC_ROUTING_TABLE, "$withval")],
109 [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, 220) AC_SUBST(IPSEC_ROUTING_TABLE, "220")]
113 [routing-table-prio],
114 AS_HELP_STRING([--with-routing-table-prio=prio],[priority for IPsec routing table (default: 220)]),
115 [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE_PRIO, $withval) AC_SUBST(IPSEC_ROUTING_TABLE_PRIO, "$withval")],
116 [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE_PRIO, 220) AC_SUBST(IPSEC_ROUTING_TABLE_PRIO, "220")]
120 [uid],,[AC_MSG_ERROR([--with-uid is gone, use --with-user instead!])]
124 [gid],,[AC_MSG_ERROR([--with-gid is gone, use --with-group instead!])]
129 AS_HELP_STRING([--with-user=user],[change user of the daemons to "user" after startup (default is 0).]),
130 [AC_DEFINE_UNQUOTED(IPSEC_USER, "$withval") AC_SUBST(ipsecuser, "$withval")],
131 [AC_SUBST(ipsecuser, "root")]
136 AS_HELP_STRING([--with-group=group],[change group of the daemons to "group" after startup (default is 0).]),
137 [AC_DEFINE_UNQUOTED(IPSEC_GROUP, "$withval") AC_SUBST(ipsecgroup, "$withval")],
138 [AC_SUBST(ipsecgroup, "root")]
141 dnl Will be extended to --with-capabilities=libcap|libcap2
144 AS_HELP_STRING([--with-capabilities=libcap],[capability dropping using libcap. Currenlty only the value "libcap" is supported (default is NO).]),
145 [capabilities="$withval"],
151 AS_HELP_STRING([--enable-curl],[enable CURL fetcher plugin to fetch files via libcurl (default is NO). Requires libcurl.]),
152 [if test x$enableval = xyes; then
159 AS_HELP_STRING([--enable-ldap],[enable LDAP fetching plugin to fetch files via libldap (default is NO). Requires openLDAP.]),
160 [if test x$enableval = xyes; then
167 AS_HELP_STRING([--disable-aes],[disable own AES software implementation plugin. (default is NO).]),
168 [if test x$enableval = xyes; then
178 AS_HELP_STRING([--disable-des],[disable own DES/3DES software implementation plugin. (default is NO).]),
179 [if test x$enableval = xyes; then
189 AS_HELP_STRING([--disable-md5],[disable own MD5 software implementation plugin. (default is NO).]),
190 [if test x$enableval = xyes; then
200 AS_HELP_STRING([--disable-sha1],[disable own SHA1 software implementation plugin. (default is NO).]),
201 [if test x$enableval = xyes; then
211 AS_HELP_STRING([--disable-sha2],[disable own SHA256/SHA384/SHA512 software implementation plugin. (default is NO).]),
212 [if test x$enableval = xyes; then
222 AS_HELP_STRING([--disable-fips-prf],[disable FIPS PRF software implementation plugin. (default is NO).]),
223 [if test x$enableval = xyes; then
233 AS_HELP_STRING([--disable-gmp],[disable own GNU MP (libgmp) based crypto implementation plugin. (default is NO).]),
234 [if test x$enableval = xyes; then
244 AS_HELP_STRING([--disable-random],[disable RNG implementation on top of /dev/(u)random. (default is NO).]),
245 [if test x$enableval = xyes; then
255 AS_HELP_STRING([--disable-x509],[disable own X509 certificate implementation plugin. (default is NO).]),
256 [if test x$enableval = xyes; then
266 AS_HELP_STRING([--disable-pubkey],[disable RAW public key support plugin. (default is NO).]),
267 [if test x$enableval = xyes; then
277 AS_HELP_STRING([--disable-hmac],[disable HMAC crypto implementation plugin. (default is NO).]),
278 [if test x$enableval = xyes; then
288 AS_HELP_STRING([--disable-xcbc],[disable xcbc crypto implementation plugin. (default is NO).]),
289 [if test x$enableval = xyes; then
299 AS_HELP_STRING([--enable-mysql],[enable MySQL database support (default is NO). Requires libmysqlclient_r.]),
300 [if test x$enableval = xyes; then
307 AS_HELP_STRING([--enable-sqlite],[enable SQLite database support (default is NO). Requires libsqlite3.]),
308 [if test x$enableval = xyes; then
315 AS_HELP_STRING([--disable-stroke],[disable charons stroke (pluto compatibility) configuration backend. (default is NO).]),
316 [if test x$enableval = xyes; then
326 AS_HELP_STRING([--enable-medsrv],[enable mediation server web frontend and daemon plugin (default is NO).]),
327 [if test x$enableval = xyes; then
334 AS_HELP_STRING([--enable-medcli],[enable mediation client configuration database plugin (default is NO).]),
335 [if test x$enableval = xyes; then
342 AS_HELP_STRING([--enable-smp],[enable SMP configuration and control interface (default is NO). Requires libxml.]),
343 [if test x$enableval = xyes; then
350 AS_HELP_STRING([--enable-sql],[enable SQL database configuration backend (default is NO).]),
351 [if test x$enableval = xyes; then
358 AS_HELP_STRING([--enable-smartcard],[enable smartcard support (default is NO).]),
359 [if test x$enableval = xyes; then
366 AS_HELP_STRING([--enable-cisco-quirks],[enable support of Cisco VPN client (default is NO).]),
367 [if test x$enableval = xyes; then
374 AS_HELP_STRING([--enable-leak-detective],[enable malloc hooks to find memory leaks (default is NO).]),
375 [if test x$enableval = xyes; then
382 AS_HELP_STRING([--enable-lock-profiler],[enable lock/mutex profiling code (default is NO).]),
383 [if test x$enableval = xyes; then
390 AS_HELP_STRING([--enable-unit-tests],[enable unit tests on IKEv2 daemon startup (default is NO).]),
391 [if test x$enableval = xyes; then
398 AS_HELP_STRING([--enable-load-tests],[enable load testing plugin for IKEv2 daemon (default is NO).]),
399 [if test x$enableval = xyes; then
406 AS_HELP_STRING([--enable-eap-sim],[build SIM authenication module for EAP (default is NO).]),
407 [if test x$enableval = xyes; then
414 AS_HELP_STRING([--enable-eap-sim-file],[build EAP-SIM backend based on a triplet file (default is NO).]),
415 [if test x$enableval = xyes; then
422 AS_HELP_STRING([--enable-eap-identity],[build EAP module providing EAP-Identity helper (default is NO).]),
423 [if test x$enableval = xyes; then
430 AS_HELP_STRING([--enable-eap-md5],[build MD5 (CHAP) authenication module for EAP (default is NO).]),
431 [if test x$enableval = xyes; then
438 AS_HELP_STRING([--enable-eap-gtc],[build PAM based GTC authenication module for EAP (default is NO).]),
439 [if test x$enableval = xyes; then
446 AS_HELP_STRING([--enable-eap-aka],[build AKA authentication module for EAP (default is NO).]),
447 [if test x$enableval = xyes; then
454 AS_HELP_STRING([--disable-kernel-netlink],[disable the netlink kernel interface. (default is NO).]),
455 [if test x$enableval = xyes; then
465 AS_HELP_STRING([--enable-kernel-pfkey],[enable the PF_KEY kernel interface. (default is NO).]),
466 [if test x$enableval = xyes; then
473 AS_HELP_STRING([--enable-kernel-klips],[enable the KLIPS kernel interface. (default is NO).]),
474 [if test x$enableval = xyes; then
481 AS_HELP_STRING([--enable-nat-transport],[enable NAT traversal with IPsec transport mode (default is NO).]),
482 [if test x$enableval = xyes; then
489 AS_HELP_STRING([--disable-vendor-id],[disable the sending of the strongSwan vendor ID (default is NO).]),
490 [if test x$enableval = xyes; then
500 AS_HELP_STRING([--disable-xauth-vid],[disable the sending of the XAUTH vendor ID (default is NO).]),
501 [if test x$enableval = xyes; then
511 AS_HELP_STRING([--enable-dumm],[build the DUMM UML test framework (default is NO).]),
512 [if test x$enableval = xyes; then
519 AS_HELP_STRING([--enable-fast],[build libfast (FastCGI Application Server w/ templates (default is NO).]),
520 [if test x$enableval = xyes; then
527 AS_HELP_STRING([--enable-manager],[build web management console (default is NO).]),
528 [if test x$enableval = xyes; then
536 AS_HELP_STRING([--enable-mediation],[enable IKEv2 Mediation Extension (default is NO).]),
537 [if test x$enableval = xyes; then
544 AS_HELP_STRING([--enable-integrity-test],[enable the integrity test of the crypto library (default is NO).]),
545 [if test x$enableval = xyes; then
552 AS_HELP_STRING([--disable-self-test],[disable the self-test of the crypto library (default is NO).]),
553 [if test x$enableval = xyes; then
563 AS_HELP_STRING([--disable-pluto],[disable the IKEv1 keying daemon pluto. (default is NO).]),
564 [if test x$enableval = xyes; then
574 AS_HELP_STRING([--disable-threads],[disable the use of threads in pluto. Charon always uses threads. (default is NO).]),
575 [if test x$enableval = xyes; then
585 AS_HELP_STRING([--disable-charon],[disable the IKEv2 keying daemon charon. (default is NO).]),
586 [if test x$enableval = xyes; then
596 AS_HELP_STRING([--disable-tools],[disable additional utilities (openac and scepclient). (default is NO).]),
597 [if test x$enableval = xyes; then
607 AS_HELP_STRING([--disable-updown],[disable updown firewall script plugin. (default is NO).]),
608 [if test x$enableval = xyes; then
618 AS_HELP_STRING([--enable-padlock],[enables VIA Padlock crypto plugin. (default is NO).]),
619 [if test x$enableval = xyes; then
628 AS_HELP_STRING([--enable-openssl],[enables the OpenSSL crypto plugin. (default is NO).]),
629 [if test x$enableval = xyes; then
638 AS_HELP_STRING([--enable-agent],[enables the ssh-agent signing plugin. (default is NO).]),
639 [if test x$enableval = xyes; then
648 AS_HELP_STRING([--enable-uci],[enable OpenWRT UCI configuration plugin (default is NO).]),
649 [if test x$enableval = xyes; then
656 AS_HELP_STRING([--enable-nm],[enable NetworkManager plugin (default is NO).]),
657 [if test x$enableval = xyes; then
662 dnl =========================
663 dnl check required programs
664 dnl =========================
671 AC_PATH_PROG([GPERF], [gperf], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
672 AC_PATH_PROG([PERL], [perl], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
674 dnl =========================
675 dnl dependency calculation
676 dnl =========================
678 if test x$pluto = xtrue; then
682 if test x$tools = xtrue; then
686 if test x$smp = xtrue; then
690 if test x$manager = xtrue; then
694 if test x$medsrv = xtrue; then
699 if test x$medcli = xtrue; then
703 dnl ==========================================
704 dnl check required libraries and header files
705 dnl ==========================================
708 AC_CHECK_FUNCS(backtrace)
709 AC_CHECK_FUNCS(dladdr)
711 AC_MSG_CHECKING([for gcc atomic operations])
715 volatile int ref = 1;
716 __sync_fetch_and_add (&ref, 1);
717 __sync_sub_and_fetch (&ref, 1);
718 /* Make sure test fails if operations are not supported */
719 __sync_val_compare_and_swap(&ref, 1, 0);
723 [AC_MSG_RESULT([yes]); AC_DEFINE(HAVE_GCC_ATOMIC_OPERATIONS)],
724 [AC_MSG_RESULT([no])],
725 [AC_MSG_RESULT([no])])
727 if test x$gmp = xtrue; then
728 AC_HAVE_LIBRARY([gmp],[LIBS="$LIBS"],[AC_MSG_ERROR([GNU Multi Precision library gmp not found])])
729 AC_MSG_CHECKING([gmp.h version >= 4.1.4])
733 #if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL) < 414
737 [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([No usable gmp.h found!])]
741 if test x$ldap = xtrue; then
742 AC_HAVE_LIBRARY([ldap],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library ldap not found])])
743 AC_HAVE_LIBRARY([lber],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library lber not found])])
744 AC_CHECK_HEADER([ldap.h],,[AC_MSG_ERROR([LDAP header ldap.h not found!])])
747 if test x$curl = xtrue; then
748 AC_HAVE_LIBRARY([curl],[LIBS="$LIBS"],[AC_MSG_ERROR([CURL library curl not found])])
749 AC_CHECK_HEADER([curl/curl.h],,[AC_MSG_ERROR([CURL header curl/curl.h not found!])])
752 if test x$xml = xtrue; then
753 PKG_CHECK_MODULES(xml, [libxml-2.0])
758 if test x$dumm = xtrue; then
759 PKG_CHECK_MODULES(gtk, [gtk+-2.0 vte])
764 if test x$fast = xtrue; then
765 AC_HAVE_LIBRARY([neo_cgi],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_cgi not found!])])
766 AC_HAVE_LIBRARY([neo_utl],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_utl not found!])])
767 AC_HAVE_LIBRARY([z],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver dependency zlib not found!])])
768 dnl autoconf does not like CamelCase!? How to fix this?
769 dnl AC_CHECK_HEADER([ClearSilver/ClearSilver.h],,[AC_MSG_ERROR([ClearSilver header file ClearSilver/ClearSilver.h not found!])])
771 AC_HAVE_LIBRARY([fcgi],[LIBS="$LIBS"],[AC_MSG_ERROR([FastCGI library fcgi not found!])])
772 AC_CHECK_HEADER([fcgiapp.h],,[AC_MSG_ERROR([FastCGI header file fcgiapp.h not found!])])
775 if test x$mysql = xtrue; then
776 AC_HAVE_LIBRARY([mysqlclient_r],[LIBS="$LIBS"],[AC_MSG_ERROR([MySQL library mysqlclient_r not found])])
777 AC_CHECK_HEADER([mysql/mysql.h],,[AC_MSG_ERROR([MySQL header mysql/mysql.h not found!])])
780 if test x$sqlite = xtrue; then
781 AC_HAVE_LIBRARY([sqlite3],[LIBS="$LIBS"],[AC_MSG_ERROR([SQLite library sqlite3 not found])])
782 AC_CHECK_HEADER([sqlite3.h],,[AC_MSG_ERROR([SQLite header sqlite3.h not found!])])
783 AC_MSG_CHECKING([sqlite3_prepare_v2])
785 [#include <sqlite3.h>],
787 void *test = sqlite3_prepare_v2;
789 [AC_MSG_RESULT([yes])]; AC_DEFINE_UNQUOTED(HAVE_SQLITE3_PREPARE_V2, 1), [AC_MSG_RESULT([no])])
790 AC_MSG_CHECKING([sqlite3.h version >= 3.3.1])
792 [#include <sqlite3.h>],
794 #if SQLITE_VERSION_NUMBER < 3003001
798 [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([SQLite version >= 3.3.1 required!])])
801 if test x$openssl = xtrue; then
802 AC_HAVE_LIBRARY([crypto],[LIBS="$LIBS"],[AC_MSG_ERROR([OpenSSL crypto library not found])])
803 AC_CHECK_HEADER([openssl/evp.h],,[AC_MSG_ERROR([OpenSSL header openssl/evp.h not found!])])
806 if test x$uci = xtrue; then
807 AC_HAVE_LIBRARY([uci],[LIBS="$LIBS"],[AC_MSG_ERROR([UCI library libuci not found])])
808 AC_CHECK_HEADER([uci.h],,[AC_MSG_ERROR([UCI header uci.h not found!])])
811 if test x$nm = xtrue; then
812 PKG_CHECK_MODULES(nm, [NetworkManager libnm_glib_vpn gthread-2.0])
817 if test x$eap_gtc = xtrue; then
818 AC_HAVE_LIBRARY([pam],[LIBS="$LIBS"],[AC_MSG_ERROR([PAM library not found])])
819 AC_CHECK_HEADER([security/pam_appl.h],,[AC_MSG_ERROR([PAM header security/pam_appl.h not found!])])
822 if test x$capabilities = xlibcap; then
823 AC_HAVE_LIBRARY([cap],[LIBS="$LIBS"],[AC_MSG_ERROR([libcap library not found])])
824 AC_CHECK_HEADER([sys/capability.h],,[AC_MSG_ERROR([libcap header sys/capability.h not found!])])
827 dnl ======================================
828 dnl collect all plugins for libstrongswan
829 dnl ======================================
831 libstrongswan_plugins=
833 if test x$curl = xtrue; then
834 libstrongswan_plugins=${libstrongswan_plugins}" curl"
836 if test x$ldap = xtrue; then
837 libstrongswan_plugins=${libstrongswan_plugins}" ldap"
839 if test x$aes = xtrue; then
840 libstrongswan_plugins=${libstrongswan_plugins}" aes"
842 if test x$des = xtrue; then
843 libstrongswan_plugins=${libstrongswan_plugins}" des"
845 if test x$sha1 = xtrue; then
846 libstrongswan_plugins=${libstrongswan_plugins}" sha1"
848 if test x$sha2 = xtrue; then
849 libstrongswan_plugins=${libstrongswan_plugins}" sha2"
851 if test x$md5 = xtrue; then
852 libstrongswan_plugins=${libstrongswan_plugins}" md5"
854 if test x$fips_prf = xtrue; then
855 libstrongswan_plugins=${libstrongswan_plugins}" fips-prf"
857 if test x$random = xtrue; then
858 libstrongswan_plugins=${libstrongswan_plugins}" random"
860 if test x$x509 = xtrue; then
861 libstrongswan_plugins=${libstrongswan_plugins}" x509"
863 if test x$pubkey = xtrue; then
864 libstrongswan_plugins=${libstrongswan_plugins}" pubkey"
866 if test x$xcbc = xtrue; then
867 libstrongswan_plugins=${libstrongswan_plugins}" xcbc"
869 if test x$hmac = xtrue; then
870 libstrongswan_plugins=${libstrongswan_plugins}" hmac"
872 if test x$mysql = xtrue; then
873 libstrongswan_plugins=${libstrongswan_plugins}" mysql"
875 if test x$sqlite = xtrue; then
876 libstrongswan_plugins=${libstrongswan_plugins}" sqlite"
878 if test x$padlock = xtrue; then
879 libstrongswan_plugins=${libstrongswan_plugins}" padlock"
881 if test x$openssl = xtrue; then
882 libstrongswan_plugins=${libstrongswan_plugins}" openssl"
884 if test x$agent = xtrue; then
885 libstrongswan_plugins=${libstrongswan_plugins}" agent"
887 if test x$gmp = xtrue; then
888 libstrongswan_plugins=${libstrongswan_plugins}" gmp"
891 AC_SUBST(libstrongswan_plugins)
893 dnl =========================
894 dnl set Makefile.am vars
895 dnl =========================
897 dnl libstrongswan plugins
898 dnl =====================
899 AM_CONDITIONAL(USE_CURL, test x$curl = xtrue)
900 AM_CONDITIONAL(USE_LDAP, test x$ldap = xtrue)
901 AM_CONDITIONAL(USE_AES, test x$aes = xtrue)
902 AM_CONDITIONAL(USE_DES, test x$des = xtrue)
903 AM_CONDITIONAL(USE_MD5, test x$md5 = xtrue)
904 AM_CONDITIONAL(USE_SHA1, test x$sha1 = xtrue)
905 AM_CONDITIONAL(USE_SHA2, test x$sha2 = xtrue)
906 AM_CONDITIONAL(USE_FIPS_PRF, test x$fips_prf = xtrue)
907 AM_CONDITIONAL(USE_GMP, test x$gmp = xtrue)
908 AM_CONDITIONAL(USE_RANDOM, test x$random = xtrue)
909 AM_CONDITIONAL(USE_X509, test x$x509 = xtrue)
910 AM_CONDITIONAL(USE_PUBKEY, test x$pubkey = xtrue)
911 AM_CONDITIONAL(USE_HMAC, test x$hmac = xtrue)
912 AM_CONDITIONAL(USE_XCBC, test x$xcbc = xtrue)
913 AM_CONDITIONAL(USE_MYSQL, test x$mysql = xtrue)
914 AM_CONDITIONAL(USE_SQLITE, test x$sqlite = xtrue)
915 AM_CONDITIONAL(USE_PADLOCK, test x$padlock = xtrue)
916 AM_CONDITIONAL(USE_OPENSSL, test x$openssl = xtrue)
917 AM_CONDITIONAL(USE_AGENT, test x$agent = xtrue)
921 AM_CONDITIONAL(USE_STROKE, test x$stroke = xtrue)
922 AM_CONDITIONAL(USE_MEDSRV, test x$medsrv = xtrue)
923 AM_CONDITIONAL(USE_MEDCLI, test x$medcli = xtrue)
924 AM_CONDITIONAL(USE_NM, test x$nm = xtrue)
925 AM_CONDITIONAL(USE_UCI, test x$uci = xtrue)
926 AM_CONDITIONAL(USE_SMP, test x$smp = xtrue)
927 AM_CONDITIONAL(USE_SQL, test x$sql = xtrue)
928 AM_CONDITIONAL(USE_UPDOWN, test x$updown = xtrue)
929 AM_CONDITIONAL(USE_UNIT_TESTS, test x$unittest = xtrue)
930 AM_CONDITIONAL(USE_LOAD_TESTS, test x$loadtest = xtrue)
931 AM_CONDITIONAL(USE_EAP_SIM, test x$eap_sim = xtrue)
932 AM_CONDITIONAL(USE_EAP_SIM_FILE, test x$eap_sim_file = xtrue)
933 AM_CONDITIONAL(USE_EAP_IDENTITY, test x$eap_identity = xtrue)
934 AM_CONDITIONAL(USE_EAP_MD5, test x$eap_md5 = xtrue)
935 AM_CONDITIONAL(USE_EAP_GTC, test x$eap_gtc = xtrue)
936 AM_CONDITIONAL(USE_EAP_AKA, test x$eap_aka = xtrue)
937 AM_CONDITIONAL(USE_KERNEL_NETLINK, test x$kernel_netlink = xtrue)
938 AM_CONDITIONAL(USE_KERNEL_PFKEY, test x$kernel_pfkey = xtrue)
939 AM_CONDITIONAL(USE_KERNEL_KLIPS, test x$kernel_klips = xtrue)
943 AM_CONDITIONAL(USE_SMARTCARD, test x$smartcard = xtrue)
944 AM_CONDITIONAL(USE_CISCO_QUIRKS, test x$cisco_quirks = xtrue)
945 AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue)
946 AM_CONDITIONAL(USE_LOCK_PROFILER, test x$lock_profiler = xtrue)
947 AM_CONDITIONAL(USE_NAT_TRANSPORT, test x$nat_transport = xtrue)
948 AM_CONDITIONAL(USE_VENDORID, test x$vendor_id = xtrue)
949 AM_CONDITIONAL(USE_XAUTH_VID, test x$xauth_vid = xtrue)
950 AM_CONDITIONAL(USE_DUMM, test x$dumm = xtrue)
951 AM_CONDITIONAL(USE_FAST, test x$fast = xtrue)
952 AM_CONDITIONAL(USE_MANAGER, test x$manager = xtrue)
953 AM_CONDITIONAL(USE_ME, test x$me = xtrue)
954 AM_CONDITIONAL(USE_INTEGRITY_TEST, test x$integrity_test = xtrue)
955 AM_CONDITIONAL(USE_SELF_TEST, test x$self_test = xtrue)
956 AM_CONDITIONAL(USE_CAPABILITIES, test x$capabilities = xlibcap)
957 AM_CONDITIONAL(USE_PLUTO, test x$pluto = xtrue)
958 AM_CONDITIONAL(USE_THREADS, test x$threads = xtrue)
959 AM_CONDITIONAL(USE_CHARON, test x$charon = xtrue)
960 AM_CONDITIONAL(USE_TOOLS, test x$tools = xtrue)
961 AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$tools = xtrue)
962 AM_CONDITIONAL(USE_FILE_CONFIG, test x$pluto = xtrue -o x$stroke = xtrue)
964 dnl ==============================
965 dnl set global definitions
966 dnl ==============================
968 if test x$me = xtrue; then
971 if test x$capabilities = xlibcap; then
972 AC_DEFINE(CAPABILITIES)
975 dnl ==============================
977 dnl ==============================
983 src/libstrongswan/Makefile
984 src/libstrongswan/plugins/aes/Makefile
985 src/libstrongswan/plugins/des/Makefile
986 src/libstrongswan/plugins/md5/Makefile
987 src/libstrongswan/plugins/sha1/Makefile
988 src/libstrongswan/plugins/sha2/Makefile
989 src/libstrongswan/plugins/fips_prf/Makefile
990 src/libstrongswan/plugins/gmp/Makefile
991 src/libstrongswan/plugins/random/Makefile
992 src/libstrongswan/plugins/hmac/Makefile
993 src/libstrongswan/plugins/xcbc/Makefile
994 src/libstrongswan/plugins/x509/Makefile
995 src/libstrongswan/plugins/pubkey/Makefile
996 src/libstrongswan/plugins/curl/Makefile
997 src/libstrongswan/plugins/ldap/Makefile
998 src/libstrongswan/plugins/mysql/Makefile
999 src/libstrongswan/plugins/sqlite/Makefile
1000 src/libstrongswan/plugins/padlock/Makefile
1001 src/libstrongswan/plugins/openssl/Makefile
1002 src/libstrongswan/plugins/agent/Makefile
1003 src/libstrongswan/fips/Makefile
1004 src/libcrypto/Makefile
1005 src/libfreeswan/Makefile
1009 src/charon/plugins/eap_aka/Makefile
1010 src/charon/plugins/eap_identity/Makefile
1011 src/charon/plugins/eap_md5/Makefile
1012 src/charon/plugins/eap_gtc/Makefile
1013 src/charon/plugins/eap_sim/Makefile
1014 src/charon/plugins/eap_sim_file/Makefile
1015 src/charon/plugins/kernel_netlink/Makefile
1016 src/charon/plugins/kernel_pfkey/Makefile
1017 src/charon/plugins/kernel_klips/Makefile
1018 src/charon/plugins/smp/Makefile
1019 src/charon/plugins/sql/Makefile
1020 src/charon/plugins/medsrv/Makefile
1021 src/charon/plugins/medcli/Makefile
1022 src/charon/plugins/nm/Makefile
1023 src/charon/plugins/uci/Makefile
1024 src/charon/plugins/stroke/Makefile
1025 src/charon/plugins/updown/Makefile
1026 src/charon/plugins/unit_tester/Makefile
1027 src/charon/plugins/load_tester/Makefile
1030 src/starter/Makefile
1031 src/_updown/Makefile
1032 src/_updown_espmark/Makefile
1033 src/_copyright/Makefile
1035 src/scepclient/Makefile
1037 src/libfast/Makefile
1038 src/manager/Makefile