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.14)
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([--enable-md4],[enable MD4 software implementation plugin (default is NO).]),
190 [if test x$enableval = xyes; then
197 AS_HELP_STRING([--disable-md5],[disable own MD5 software implementation plugin. (default is NO).]),
198 [if test x$enableval = xyes; then
208 AS_HELP_STRING([--disable-sha1],[disable own SHA1 software implementation plugin. (default is NO).]),
209 [if test x$enableval = xyes; then
219 AS_HELP_STRING([--disable-sha2],[disable own SHA256/SHA384/SHA512 software implementation plugin. (default is NO).]),
220 [if test x$enableval = xyes; then
230 AS_HELP_STRING([--disable-fips-prf],[disable FIPS PRF software implementation plugin. (default is NO).]),
231 [if test x$enableval = xyes; then
241 AS_HELP_STRING([--disable-gmp],[disable own GNU MP (libgmp) based crypto implementation plugin. (default is NO).]),
242 [if test x$enableval = xyes; then
252 AS_HELP_STRING([--disable-random],[disable RNG implementation on top of /dev/(u)random. (default is NO).]),
253 [if test x$enableval = xyes; then
263 AS_HELP_STRING([--disable-x509],[disable own X509 certificate implementation plugin. (default is NO).]),
264 [if test x$enableval = xyes; then
274 AS_HELP_STRING([--disable-pubkey],[disable RAW public key support plugin. (default is NO).]),
275 [if test x$enableval = xyes; then
285 AS_HELP_STRING([--disable-hmac],[disable HMAC crypto implementation plugin. (default is NO).]),
286 [if test x$enableval = xyes; then
296 AS_HELP_STRING([--disable-xcbc],[disable xcbc crypto implementation plugin. (default is NO).]),
297 [if test x$enableval = xyes; then
307 AS_HELP_STRING([--enable-mysql],[enable MySQL database support (default is NO). Requires libmysqlclient_r.]),
308 [if test x$enableval = xyes; then
315 AS_HELP_STRING([--enable-sqlite],[enable SQLite database support (default is NO). Requires libsqlite3.]),
316 [if test x$enableval = xyes; then
323 AS_HELP_STRING([--disable-stroke],[disable charons stroke (pluto compatibility) configuration backend. (default is NO).]),
324 [if test x$enableval = xyes; then
334 AS_HELP_STRING([--enable-medsrv],[enable mediation server web frontend and daemon plugin (default is NO).]),
335 [if test x$enableval = xyes; then
342 AS_HELP_STRING([--enable-medcli],[enable mediation client configuration database plugin (default is NO).]),
343 [if test x$enableval = xyes; then
350 AS_HELP_STRING([--enable-smp],[enable SMP configuration and control interface (default is NO). Requires libxml.]),
351 [if test x$enableval = xyes; then
358 AS_HELP_STRING([--enable-sql],[enable SQL database configuration backend (default is NO).]),
359 [if test x$enableval = xyes; then
366 AS_HELP_STRING([--enable-smartcard],[enable smartcard support (default is NO).]),
367 [if test x$enableval = xyes; then
374 AS_HELP_STRING([--enable-cisco-quirks],[enable support of Cisco VPN client (default is NO).]),
375 [if test x$enableval = xyes; then
382 AS_HELP_STRING([--enable-leak-detective],[enable malloc hooks to find memory leaks (default is NO).]),
383 [if test x$enableval = xyes; then
390 AS_HELP_STRING([--enable-lock-profiler],[enable lock/mutex profiling code (default is NO).]),
391 [if test x$enableval = xyes; then
398 AS_HELP_STRING([--enable-unit-tests],[enable unit tests on IKEv2 daemon startup (default is NO).]),
399 [if test x$enableval = xyes; then
406 AS_HELP_STRING([--enable-load-tests],[enable load testing plugin for IKEv2 daemon (default is NO).]),
407 [if test x$enableval = xyes; then
414 AS_HELP_STRING([--enable-eap-sim],[build SIM authenication module for EAP (default is NO).]),
415 [if test x$enableval = xyes; then
422 AS_HELP_STRING([--enable-eap-sim-file],[build EAP-SIM backend based on a triplet file (default is NO).]),
423 [if test x$enableval = xyes; then
430 AS_HELP_STRING([--enable-eap-identity],[build EAP module providing EAP-Identity helper (default is NO).]),
431 [if test x$enableval = xyes; then
438 AS_HELP_STRING([--enable-eap-md5],[build MD5 (CHAP) authenication module for EAP (default is NO).]),
439 [if test x$enableval = xyes; then
446 AS_HELP_STRING([--enable-eap-gtc],[build PAM based GTC authenication module for EAP (default is NO).]),
447 [if test x$enableval = xyes; then
454 AS_HELP_STRING([--enable-eap-aka],[build AKA authentication module for EAP (default is NO).]),
455 [if test x$enableval = xyes; then
462 AS_HELP_STRING([--enable-eap-mschapv2],[build MS-CHAPv2 authenication module for EAP (default is NO).]),
463 [if test x$enableval = xyes; then
470 AS_HELP_STRING([--enable-eap-radius],[build RADIUS proxy authenication module for EAP (default is NO).]),
471 [if test x$enableval = xyes; then
478 AS_HELP_STRING([--disable-kernel-netlink],[disable the netlink kernel interface. (default is NO).]),
479 [if test x$enableval = xyes; then
489 AS_HELP_STRING([--enable-kernel-pfkey],[enable the PF_KEY kernel interface. (default is NO).]),
490 [if test x$enableval = xyes; then
497 AS_HELP_STRING([--enable-kernel-klips],[enable the KLIPS kernel interface. (default is NO).]),
498 [if test x$enableval = xyes; then
505 AS_HELP_STRING([--enable-nat-transport],[enable NAT traversal with IPsec transport mode (default is NO).]),
506 [if test x$enableval = xyes; then
513 AS_HELP_STRING([--disable-vendor-id],[disable the sending of the strongSwan vendor ID (default is NO).]),
514 [if test x$enableval = xyes; then
524 AS_HELP_STRING([--disable-xauth-vid],[disable the sending of the XAUTH vendor ID (default is NO).]),
525 [if test x$enableval = xyes; then
535 AS_HELP_STRING([--enable-dumm],[build the DUMM UML test framework (default is NO).]),
536 [if test x$enableval = xyes; then
543 AS_HELP_STRING([--enable-fast],[build libfast (FastCGI Application Server w/ templates (default is NO).]),
544 [if test x$enableval = xyes; then
551 AS_HELP_STRING([--enable-manager],[build web management console (default is NO).]),
552 [if test x$enableval = xyes; then
560 AS_HELP_STRING([--enable-mediation],[enable IKEv2 Mediation Extension (default is NO).]),
561 [if test x$enableval = xyes; then
568 AS_HELP_STRING([--enable-integrity-test],[enable the integrity test of the crypto library (default is NO).]),
569 [if test x$enableval = xyes; then
576 AS_HELP_STRING([--disable-self-test],[disable the self-test of the crypto library (default is NO).]),
577 [if test x$enableval = xyes; then
587 AS_HELP_STRING([--disable-pluto],[disable the IKEv1 keying daemon pluto. (default is NO).]),
588 [if test x$enableval = xyes; then
598 AS_HELP_STRING([--disable-threads],[disable the use of threads in pluto. Charon always uses threads. (default is NO).]),
599 [if test x$enableval = xyes; then
609 AS_HELP_STRING([--disable-charon],[disable the IKEv2 keying daemon charon. (default is NO).]),
610 [if test x$enableval = xyes; then
620 AS_HELP_STRING([--disable-tools],[disable additional utilities (openac and scepclient). (default is NO).]),
621 [if test x$enableval = xyes; then
631 AS_HELP_STRING([--disable-updown],[disable updown firewall script plugin. (default is NO).]),
632 [if test x$enableval = xyes; then
642 AS_HELP_STRING([--enable-padlock],[enables VIA Padlock crypto plugin. (default is NO).]),
643 [if test x$enableval = xyes; then
652 AS_HELP_STRING([--enable-openssl],[enables the OpenSSL crypto plugin. (default is NO).]),
653 [if test x$enableval = xyes; then
662 AS_HELP_STRING([--enable-agent],[enables the ssh-agent signing plugin. (default is NO).]),
663 [if test x$enableval = xyes; then
672 AS_HELP_STRING([--enable-uci],[enable OpenWRT UCI configuration plugin (default is NO).]),
673 [if test x$enableval = xyes; then
680 AS_HELP_STRING([--enable-nm],[enable NetworkManager plugin (default is NO).]),
681 [if test x$enableval = xyes; then
686 dnl =========================
687 dnl check required programs
688 dnl =========================
695 AC_PATH_PROG([GPERF], [gperf], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
696 AC_PATH_PROG([PERL], [perl], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
698 dnl =========================
699 dnl dependency calculation
700 dnl =========================
702 if test x$pluto = xtrue; then
706 if test x$tools = xtrue; then
710 if test x$smp = xtrue; then
714 if test x$manager = xtrue; then
718 if test x$medsrv = xtrue; then
723 if test x$medcli = xtrue; then
727 dnl ==========================================
728 dnl check required libraries and header files
729 dnl ==========================================
732 AC_CHECK_FUNCS(backtrace)
733 AC_CHECK_FUNCS(dladdr)
735 AC_MSG_CHECKING([for gcc atomic operations])
739 volatile int ref = 1;
740 __sync_fetch_and_add (&ref, 1);
741 __sync_sub_and_fetch (&ref, 1);
742 /* Make sure test fails if operations are not supported */
743 __sync_val_compare_and_swap(&ref, 1, 0);
747 [AC_MSG_RESULT([yes]); AC_DEFINE(HAVE_GCC_ATOMIC_OPERATIONS)],
748 [AC_MSG_RESULT([no])],
749 [AC_MSG_RESULT([no])])
752 [register_printf_function],
753 [AC_DEFINE(HAVE_PRINTF_HOOKS)],
755 AC_MSG_NOTICE([printf does not support custom format specifiers!])
756 AC_HAVE_LIBRARY([vstr],[LIBS="$LIBS"]; vstr=true,[AC_MSG_ERROR([Vstr string library not found])])
759 if test x$gmp = xtrue; then
760 AC_HAVE_LIBRARY([gmp],[LIBS="$LIBS"],[AC_MSG_ERROR([GNU Multi Precision library gmp not found])])
761 AC_MSG_CHECKING([gmp.h version >= 4.1.4])
765 #if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL) < 414
769 [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([No usable gmp.h found!])]
773 if test x$ldap = xtrue; then
774 AC_HAVE_LIBRARY([ldap],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library ldap not found])])
775 AC_HAVE_LIBRARY([lber],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library lber not found])])
776 AC_CHECK_HEADER([ldap.h],,[AC_MSG_ERROR([LDAP header ldap.h not found!])])
779 if test x$curl = xtrue; then
780 AC_HAVE_LIBRARY([curl],[LIBS="$LIBS"],[AC_MSG_ERROR([CURL library curl not found])])
781 AC_CHECK_HEADER([curl/curl.h],,[AC_MSG_ERROR([CURL header curl/curl.h not found!])])
784 if test x$xml = xtrue; then
785 PKG_CHECK_MODULES(xml, [libxml-2.0])
790 if test x$dumm = xtrue; then
791 PKG_CHECK_MODULES(gtk, [gtk+-2.0 vte])
796 if test x$fast = xtrue; then
797 AC_HAVE_LIBRARY([neo_cgi],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_cgi not found!])])
798 AC_HAVE_LIBRARY([neo_utl],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_utl not found!])])
799 AC_HAVE_LIBRARY([z],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver dependency zlib not found!])])
800 dnl autoconf does not like CamelCase!? How to fix this?
801 dnl AC_CHECK_HEADER([ClearSilver/ClearSilver.h],,[AC_MSG_ERROR([ClearSilver header file ClearSilver/ClearSilver.h not found!])])
803 AC_HAVE_LIBRARY([fcgi],[LIBS="$LIBS"],[AC_MSG_ERROR([FastCGI library fcgi not found!])])
804 AC_CHECK_HEADER([fcgiapp.h],,[AC_MSG_ERROR([FastCGI header file fcgiapp.h not found!])])
807 if test x$mysql = xtrue; then
808 AC_HAVE_LIBRARY([mysqlclient_r],[LIBS="$LIBS"],[AC_MSG_ERROR([MySQL library mysqlclient_r not found])])
809 AC_CHECK_HEADER([mysql/mysql.h],,[AC_MSG_ERROR([MySQL header mysql/mysql.h not found!])])
812 if test x$sqlite = xtrue; then
813 AC_HAVE_LIBRARY([sqlite3],[LIBS="$LIBS"],[AC_MSG_ERROR([SQLite library sqlite3 not found])])
814 AC_CHECK_HEADER([sqlite3.h],,[AC_MSG_ERROR([SQLite header sqlite3.h not found!])])
815 AC_MSG_CHECKING([sqlite3_prepare_v2])
817 [#include <sqlite3.h>],
819 void *test = sqlite3_prepare_v2;
821 [AC_MSG_RESULT([yes])]; AC_DEFINE_UNQUOTED(HAVE_SQLITE3_PREPARE_V2, 1), [AC_MSG_RESULT([no])])
822 AC_MSG_CHECKING([sqlite3.h version >= 3.3.1])
824 [#include <sqlite3.h>],
826 #if SQLITE_VERSION_NUMBER < 3003001
830 [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([SQLite version >= 3.3.1 required!])])
833 if test x$openssl = xtrue; then
834 AC_HAVE_LIBRARY([crypto],[LIBS="$LIBS"],[AC_MSG_ERROR([OpenSSL crypto library not found])])
835 AC_CHECK_HEADER([openssl/evp.h],,[AC_MSG_ERROR([OpenSSL header openssl/evp.h not found!])])
838 if test x$uci = xtrue; then
839 AC_HAVE_LIBRARY([uci],[LIBS="$LIBS"],[AC_MSG_ERROR([UCI library libuci not found])])
840 AC_CHECK_HEADER([uci.h],,[AC_MSG_ERROR([UCI header uci.h not found!])])
843 if test x$nm = xtrue; then
844 PKG_CHECK_MODULES(nm, [NetworkManager libnm_glib_vpn gthread-2.0])
849 if test x$eap_gtc = xtrue; then
850 AC_HAVE_LIBRARY([pam],[LIBS="$LIBS"],[AC_MSG_ERROR([PAM library not found])])
851 AC_CHECK_HEADER([security/pam_appl.h],,[AC_MSG_ERROR([PAM header security/pam_appl.h not found!])])
854 if test x$capabilities = xlibcap; then
855 AC_HAVE_LIBRARY([cap],[LIBS="$LIBS"],[AC_MSG_ERROR([libcap library not found])])
856 AC_CHECK_HEADER([sys/capability.h],,[AC_MSG_ERROR([libcap header sys/capability.h not found!])])
859 dnl ======================================
860 dnl collect all plugins for libstrongswan
861 dnl ======================================
863 libstrongswan_plugins=
865 if test x$curl = xtrue; then
866 libstrongswan_plugins=${libstrongswan_plugins}" curl"
868 if test x$ldap = xtrue; then
869 libstrongswan_plugins=${libstrongswan_plugins}" ldap"
871 if test x$aes = xtrue; then
872 libstrongswan_plugins=${libstrongswan_plugins}" aes"
874 if test x$des = xtrue; then
875 libstrongswan_plugins=${libstrongswan_plugins}" des"
877 if test x$sha1 = xtrue; then
878 libstrongswan_plugins=${libstrongswan_plugins}" sha1"
880 if test x$sha2 = xtrue; then
881 libstrongswan_plugins=${libstrongswan_plugins}" sha2"
883 if test x$md4 = xtrue; then
884 libstrongswan_plugins=${libstrongswan_plugins}" md4"
886 if test x$md5 = xtrue; then
887 libstrongswan_plugins=${libstrongswan_plugins}" md5"
889 if test x$fips_prf = xtrue; then
890 libstrongswan_plugins=${libstrongswan_plugins}" fips-prf"
892 if test x$random = xtrue; then
893 libstrongswan_plugins=${libstrongswan_plugins}" random"
895 if test x$x509 = xtrue; then
896 libstrongswan_plugins=${libstrongswan_plugins}" x509"
898 if test x$pubkey = xtrue; then
899 libstrongswan_plugins=${libstrongswan_plugins}" pubkey"
901 if test x$xcbc = xtrue; then
902 libstrongswan_plugins=${libstrongswan_plugins}" xcbc"
904 if test x$hmac = xtrue; then
905 libstrongswan_plugins=${libstrongswan_plugins}" hmac"
907 if test x$mysql = xtrue; then
908 libstrongswan_plugins=${libstrongswan_plugins}" mysql"
910 if test x$sqlite = xtrue; then
911 libstrongswan_plugins=${libstrongswan_plugins}" sqlite"
913 if test x$padlock = xtrue; then
914 libstrongswan_plugins=${libstrongswan_plugins}" padlock"
916 if test x$openssl = xtrue; then
917 libstrongswan_plugins=${libstrongswan_plugins}" openssl"
919 if test x$agent = xtrue; then
920 libstrongswan_plugins=${libstrongswan_plugins}" agent"
922 if test x$gmp = xtrue; then
923 libstrongswan_plugins=${libstrongswan_plugins}" gmp"
926 AC_SUBST(libstrongswan_plugins)
928 dnl =========================
929 dnl set Makefile.am vars
930 dnl =========================
932 dnl libstrongswan plugins
933 dnl =====================
934 AM_CONDITIONAL(USE_CURL, test x$curl = xtrue)
935 AM_CONDITIONAL(USE_LDAP, test x$ldap = xtrue)
936 AM_CONDITIONAL(USE_AES, test x$aes = xtrue)
937 AM_CONDITIONAL(USE_DES, test x$des = xtrue)
938 AM_CONDITIONAL(USE_MD4, test x$md4 = xtrue)
939 AM_CONDITIONAL(USE_MD5, test x$md5 = xtrue)
940 AM_CONDITIONAL(USE_SHA1, test x$sha1 = xtrue)
941 AM_CONDITIONAL(USE_SHA2, test x$sha2 = xtrue)
942 AM_CONDITIONAL(USE_FIPS_PRF, test x$fips_prf = xtrue)
943 AM_CONDITIONAL(USE_GMP, test x$gmp = xtrue)
944 AM_CONDITIONAL(USE_RANDOM, test x$random = xtrue)
945 AM_CONDITIONAL(USE_X509, test x$x509 = xtrue)
946 AM_CONDITIONAL(USE_PUBKEY, test x$pubkey = xtrue)
947 AM_CONDITIONAL(USE_HMAC, test x$hmac = xtrue)
948 AM_CONDITIONAL(USE_XCBC, test x$xcbc = xtrue)
949 AM_CONDITIONAL(USE_MYSQL, test x$mysql = xtrue)
950 AM_CONDITIONAL(USE_SQLITE, test x$sqlite = xtrue)
951 AM_CONDITIONAL(USE_PADLOCK, test x$padlock = xtrue)
952 AM_CONDITIONAL(USE_OPENSSL, test x$openssl = xtrue)
953 AM_CONDITIONAL(USE_AGENT, test x$agent = xtrue)
957 AM_CONDITIONAL(USE_STROKE, test x$stroke = xtrue)
958 AM_CONDITIONAL(USE_MEDSRV, test x$medsrv = xtrue)
959 AM_CONDITIONAL(USE_MEDCLI, test x$medcli = xtrue)
960 AM_CONDITIONAL(USE_NM, test x$nm = xtrue)
961 AM_CONDITIONAL(USE_UCI, test x$uci = xtrue)
962 AM_CONDITIONAL(USE_SMP, test x$smp = xtrue)
963 AM_CONDITIONAL(USE_SQL, test x$sql = xtrue)
964 AM_CONDITIONAL(USE_UPDOWN, test x$updown = xtrue)
965 AM_CONDITIONAL(USE_UNIT_TESTS, test x$unittest = xtrue)
966 AM_CONDITIONAL(USE_LOAD_TESTS, test x$loadtest = xtrue)
967 AM_CONDITIONAL(USE_EAP_SIM, test x$eap_sim = xtrue)
968 AM_CONDITIONAL(USE_EAP_SIM_FILE, test x$eap_sim_file = xtrue)
969 AM_CONDITIONAL(USE_EAP_IDENTITY, test x$eap_identity = xtrue)
970 AM_CONDITIONAL(USE_EAP_MD5, test x$eap_md5 = xtrue)
971 AM_CONDITIONAL(USE_EAP_GTC, test x$eap_gtc = xtrue)
972 AM_CONDITIONAL(USE_EAP_AKA, test x$eap_aka = xtrue)
973 AM_CONDITIONAL(USE_EAP_MSCHAPV2, test x$eap_mschapv2 = xtrue)
974 AM_CONDITIONAL(USE_EAP_RADIUS, test x$eap_radius = xtrue)
975 AM_CONDITIONAL(USE_KERNEL_NETLINK, test x$kernel_netlink = xtrue)
976 AM_CONDITIONAL(USE_KERNEL_PFKEY, test x$kernel_pfkey = xtrue)
977 AM_CONDITIONAL(USE_KERNEL_KLIPS, test x$kernel_klips = xtrue)
981 AM_CONDITIONAL(USE_SMARTCARD, test x$smartcard = xtrue)
982 AM_CONDITIONAL(USE_CISCO_QUIRKS, test x$cisco_quirks = xtrue)
983 AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue)
984 AM_CONDITIONAL(USE_LOCK_PROFILER, test x$lock_profiler = xtrue)
985 AM_CONDITIONAL(USE_NAT_TRANSPORT, test x$nat_transport = xtrue)
986 AM_CONDITIONAL(USE_VENDORID, test x$vendor_id = xtrue)
987 AM_CONDITIONAL(USE_XAUTH_VID, test x$xauth_vid = xtrue)
988 AM_CONDITIONAL(USE_DUMM, test x$dumm = xtrue)
989 AM_CONDITIONAL(USE_FAST, test x$fast = xtrue)
990 AM_CONDITIONAL(USE_MANAGER, test x$manager = xtrue)
991 AM_CONDITIONAL(USE_ME, test x$me = xtrue)
992 AM_CONDITIONAL(USE_INTEGRITY_TEST, test x$integrity_test = xtrue)
993 AM_CONDITIONAL(USE_SELF_TEST, test x$self_test = xtrue)
994 AM_CONDITIONAL(USE_CAPABILITIES, test x$capabilities = xlibcap)
995 AM_CONDITIONAL(USE_PLUTO, test x$pluto = xtrue)
996 AM_CONDITIONAL(USE_THREADS, test x$threads = xtrue)
997 AM_CONDITIONAL(USE_CHARON, test x$charon = xtrue)
998 AM_CONDITIONAL(USE_TOOLS, test x$tools = xtrue)
999 AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$tools = xtrue)
1000 AM_CONDITIONAL(USE_FILE_CONFIG, test x$pluto = xtrue -o x$stroke = xtrue)
1001 AM_CONDITIONAL(USE_VSTR, test x$vstr = xtrue)
1003 dnl ==============================
1004 dnl set global definitions
1005 dnl ==============================
1007 if test x$me = xtrue; then
1010 if test x$capabilities = xlibcap; then
1011 AC_DEFINE(CAPABILITIES)
1014 dnl ==============================
1016 dnl ==============================
1021 src/include/Makefile
1022 src/libstrongswan/Makefile
1023 src/libstrongswan/plugins/aes/Makefile
1024 src/libstrongswan/plugins/des/Makefile
1025 src/libstrongswan/plugins/md4/Makefile
1026 src/libstrongswan/plugins/md5/Makefile
1027 src/libstrongswan/plugins/sha1/Makefile
1028 src/libstrongswan/plugins/sha2/Makefile
1029 src/libstrongswan/plugins/fips_prf/Makefile
1030 src/libstrongswan/plugins/gmp/Makefile
1031 src/libstrongswan/plugins/random/Makefile
1032 src/libstrongswan/plugins/hmac/Makefile
1033 src/libstrongswan/plugins/xcbc/Makefile
1034 src/libstrongswan/plugins/x509/Makefile
1035 src/libstrongswan/plugins/pubkey/Makefile
1036 src/libstrongswan/plugins/curl/Makefile
1037 src/libstrongswan/plugins/ldap/Makefile
1038 src/libstrongswan/plugins/mysql/Makefile
1039 src/libstrongswan/plugins/sqlite/Makefile
1040 src/libstrongswan/plugins/padlock/Makefile
1041 src/libstrongswan/plugins/openssl/Makefile
1042 src/libstrongswan/plugins/agent/Makefile
1043 src/libstrongswan/fips/Makefile
1044 src/libcrypto/Makefile
1045 src/libfreeswan/Makefile
1049 src/charon/plugins/eap_aka/Makefile
1050 src/charon/plugins/eap_identity/Makefile
1051 src/charon/plugins/eap_md5/Makefile
1052 src/charon/plugins/eap_gtc/Makefile
1053 src/charon/plugins/eap_sim/Makefile
1054 src/charon/plugins/eap_sim_file/Makefile
1055 src/charon/plugins/eap_mschapv2/Makefile
1056 src/charon/plugins/eap_radius/Makefile
1057 src/charon/plugins/kernel_netlink/Makefile
1058 src/charon/plugins/kernel_pfkey/Makefile
1059 src/charon/plugins/kernel_klips/Makefile
1060 src/charon/plugins/smp/Makefile
1061 src/charon/plugins/sql/Makefile
1062 src/charon/plugins/medsrv/Makefile
1063 src/charon/plugins/medcli/Makefile
1064 src/charon/plugins/nm/Makefile
1065 src/charon/plugins/uci/Makefile
1066 src/charon/plugins/stroke/Makefile
1067 src/charon/plugins/updown/Makefile
1068 src/charon/plugins/unit_tester/Makefile
1069 src/charon/plugins/load_tester/Makefile
1072 src/starter/Makefile
1073 src/_updown/Makefile
1074 src/_updown_espmark/Makefile
1075 src/_copyright/Makefile
1077 src/scepclient/Makefile
1079 src/libfast/Makefile
1080 src/manager/Makefile