]>
Commit | Line | Data |
---|---|---|
f2c2d395 MW |
1 | dnl configure.in for linux strongSwan |
2 | dnl Copyright (C) 2006 Martin Willi | |
3 | dnl Hochschule fuer Technik Rapperswil | |
4 | dnl | |
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>. | |
9 | dnl | |
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 | |
13 | dnl for more details. | |
14 | ||
15 | dnl =========================== | |
16 | dnl initialize & set some vars | |
17 | dnl =========================== | |
18 | ||
50ae8601 | 19 | AC_INIT(strongSwan,4.2.10) |
5e5f0bd4 | 20 | AM_INIT_AUTOMAKE(tar-ustar) |
f2c2d395 | 21 | AC_C_BIGENDIAN |
f2c2d395 | 22 | AC_SUBST(confdir, '${sysconfdir}') |
a47486b5 | 23 | PKG_PROG_PKG_CONFIG |
f2c2d395 | 24 | |
db26d00e MW |
25 | dnl ================================= |
26 | dnl check --enable-xxx & --with-xxx | |
27 | dnl ================================= | |
28 | ||
db26d00e | 29 | AC_ARG_WITH( |
6b9290ff MW |
30 | [default-pkcs11], |
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")] | |
db26d00e MW |
34 | ) |
35 | ||
195307b5 | 36 | AC_ARG_WITH( |
6b9290ff MW |
37 | [xauth-module], |
38 | AS_HELP_STRING([--with-xauth-module=lib],[set the path to the XAUTH module]), | |
39 | [AC_DEFINE_UNQUOTED(XAUTH_DEFAULT_LIB, "$withval")], | |
195307b5 AS |
40 | ) |
41 | ||
db26d00e | 42 | AC_ARG_WITH( |
6b9290ff MW |
43 | [random-device], |
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")] | |
db26d00e | 47 | ) |
c60c7694 | 48 | AC_ARG_WITH( |
6b9290ff MW |
49 | [resolv-conf], |
50 | AS_HELP_STRING([--with-resolv-conf=file],[set the file to store DNS server information other than "sysconfdir/resolv.conf"]), | |
8cc16c9d AS |
51 | [AC_SUBST(resolv_conf, "$withval")], |
52 | [AC_SUBST(resolv_conf, "${sysconfdir}/resolv.conf")] | |
c60c7694 | 53 | ) |
db26d00e | 54 | |
ff867d06 MW |
55 | AC_ARG_WITH( |
56 | [strongswan-conf], | |
57 | AS_HELP_STRING([--with-strongswan-conf=file],[strongswan.conf file other than "sysconfdir/strongswan.conf"]), | |
8cc16c9d AS |
58 | [AC_SUBST(strongswan_conf, "$withval")], |
59 | [AC_SUBST(strongswan_conf, "${sysconfdir}/strongswan.conf")] | |
ff867d06 MW |
60 | ) |
61 | ||
db26d00e | 62 | AC_ARG_WITH( |
6b9290ff MW |
63 | [urandom-device], |
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")] | |
db26d00e | 67 | ) |
f2c2d395 | 68 | |
dfc14c84 | 69 | AC_ARG_WITH( |
6b9290ff MW |
70 | [piddir], |
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")] | |
dfc14c84 AS |
74 | ) |
75 | ||
f27f6296 | 76 | AC_ARG_WITH( |
6b9290ff MW |
77 | [ipsecdir], |
78 | AS_HELP_STRING([--with-ipsecdir=dir],[installation path for ipsec tools other than "libexecdir/ipsec"]), | |
79 | [AC_SUBST(ipsecdir, "$withval")], | |
c5ebb635 | 80 | [AC_SUBST(ipsecdir, "${libexecdir%/}/ipsec")] |
f27f6296 | 81 | ) |
c5ebb635 | 82 | AC_SUBST(plugindir, "${ipsecdir%/}/plugins") |
f27f6296 MW |
83 | |
84 | AC_ARG_WITH( | |
6b9290ff MW |
85 | [plugindir], |
86 | AS_HELP_STRING([--with-plugindir=dir],[installation path for plugins other than "ipsecdir/plugins"]), | |
87 | [AC_SUBST(plugindir, "$withval")], | |
c5ebb635 | 88 | [AC_SUBST(plugindir, "${ipsecdir%/}/plugins")] |
f27f6296 MW |
89 | ) |
90 | ||
d560c849 | 91 | AC_ARG_WITH( |
6b9290ff MW |
92 | [sim-reader], |
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")], | |
c5ebb635 | 95 | [AC_SUBST(simreader, "${plugindir%/}/libeapsim-file.so")] |
d560c849 MW |
96 | ) |
97 | ||
04a7b6d8 | 98 | AC_ARG_WITH( |
6b9290ff MW |
99 | [linux-headers], |
100 | AS_HELP_STRING([--with-linux-headers=dir],[use the linux header files in dir instead of the supplied ones in "src/include"]), | |
507f26f6 | 101 | [AC_SUBST(linuxdir, "$withval")], [AC_SUBST(linuxdir, "\${top_srcdir}/src/include")] |
04a7b6d8 MW |
102 | ) |
103 | AC_SUBST(LINUX_HEADERS) | |
104 | ||
4e411c83 | 105 | AC_ARG_WITH( |
6b9290ff MW |
106 | [routing-table], |
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")] | |
0739cca9 MW |
110 | ) |
111 | ||
112 | AC_ARG_WITH( | |
6b9290ff MW |
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")] | |
4e411c83 MW |
117 | ) |
118 | ||
6874bf69 | 119 | AC_ARG_WITH( |
25b12c69 | 120 | [uid],,[AC_MSG_ERROR([--with-uid is gone, use --with-user instead!])] |
6874bf69 MW |
121 | ) |
122 | ||
123 | AC_ARG_WITH( | |
25b12c69 MW |
124 | [gid],,[AC_MSG_ERROR([--with-gid is gone, use --with-group instead!])] |
125 | ) | |
126 | ||
127 | AC_ARG_WITH( | |
128 | [user], | |
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")] | |
132 | ) | |
133 | ||
134 | AC_ARG_WITH( | |
135 | [group], | |
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")] | |
6874bf69 MW |
139 | ) |
140 | ||
eb3e2705 MW |
141 | dnl Will be extended to --with-capabilities=libcap|libcap2 |
142 | AC_ARG_WITH( | |
143 | [capabilities], | |
144 | AS_HELP_STRING([--with-capabilities=libcap],[capability dropping using libcap. Currenlty only the value "libcap" is supported (default is NO).]), | |
145 | [capabilities="$withval"], | |
146 | [capabilities=no] | |
147 | ) | |
148 | ||
f2c2d395 | 149 | AC_ARG_ENABLE( |
6b9290ff MW |
150 | [curl], |
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 | |
153 | curl=true | |
154 | fi] | |
f2c2d395 | 155 | ) |
f2c2d395 MW |
156 | |
157 | AC_ARG_ENABLE( | |
6b9290ff MW |
158 | [ldap], |
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 | |
161 | ldap=true | |
162 | fi] | |
f2c2d395 | 163 | ) |
552cc11b MW |
164 | |
165 | AC_ARG_ENABLE( | |
6b9290ff MW |
166 | [aes], |
167 | AS_HELP_STRING([--disable-aes],[disable own AES software implementation plugin. (default is NO).]), | |
168 | [if test x$enableval = xyes; then | |
169 | aes=true | |
170 | else | |
171 | aes=false | |
172 | fi], | |
173 | aes=true | |
552cc11b | 174 | ) |
552cc11b MW |
175 | |
176 | AC_ARG_ENABLE( | |
6b9290ff MW |
177 | [des], |
178 | AS_HELP_STRING([--disable-des],[disable own DES/3DES software implementation plugin. (default is NO).]), | |
179 | [if test x$enableval = xyes; then | |
180 | des=true | |
181 | else | |
182 | des=false | |
183 | fi], | |
184 | des=true | |
552cc11b | 185 | ) |
552cc11b MW |
186 | |
187 | AC_ARG_ENABLE( | |
6b9290ff MW |
188 | [md5], |
189 | AS_HELP_STRING([--disable-md5],[disable own MD5 software implementation plugin. (default is NO).]), | |
190 | [if test x$enableval = xyes; then | |
191 | md5=true | |
192 | else | |
193 | md5=false | |
194 | fi], | |
195 | md5=true | |
552cc11b | 196 | ) |
552cc11b MW |
197 | |
198 | AC_ARG_ENABLE( | |
6b9290ff MW |
199 | [sha1], |
200 | AS_HELP_STRING([--disable-sha1],[disable own SHA1 software implementation plugin. (default is NO).]), | |
201 | [if test x$enableval = xyes; then | |
202 | sha1=true | |
203 | else | |
204 | sha1=false | |
205 | fi], | |
206 | sha1=true | |
552cc11b | 207 | ) |
552cc11b MW |
208 | |
209 | AC_ARG_ENABLE( | |
6b9290ff MW |
210 | [sha2], |
211 | AS_HELP_STRING([--disable-sha2],[disable own SHA256/SHA384/SHA512 software implementation plugin. (default is NO).]), | |
212 | [if test x$enableval = xyes; then | |
213 | sha2=true | |
214 | else | |
215 | sha2=false | |
216 | fi], | |
217 | sha2=true | |
552cc11b | 218 | ) |
552cc11b MW |
219 | |
220 | AC_ARG_ENABLE( | |
6b9290ff MW |
221 | [fips-prf], |
222 | AS_HELP_STRING([--disable-fips-prf],[disable FIPS PRF software implementation plugin. (default is NO).]), | |
223 | [if test x$enableval = xyes; then | |
224 | fips_prf=true | |
225 | else | |
226 | fips_prf=false | |
227 | fi], | |
228 | fips_prf=true | |
552cc11b | 229 | ) |
552cc11b MW |
230 | |
231 | AC_ARG_ENABLE( | |
6b9290ff MW |
232 | [gmp], |
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 | |
235 | gmp=true | |
236 | else | |
237 | gmp=false | |
238 | fi], | |
239 | gmp=true | |
552cc11b | 240 | ) |
552cc11b | 241 | |
6a365f07 MW |
242 | AC_ARG_ENABLE( |
243 | [random], | |
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 | |
246 | random=true | |
247 | else | |
248 | random=false | |
249 | fi], | |
250 | random=true | |
251 | ) | |
252 | ||
552cc11b | 253 | AC_ARG_ENABLE( |
6b9290ff MW |
254 | [x509], |
255 | AS_HELP_STRING([--disable-x509],[disable own X509 certificate implementation plugin. (default is NO).]), | |
256 | [if test x$enableval = xyes; then | |
257 | x509=true | |
258 | else | |
259 | x509=false | |
260 | fi], | |
261 | x509=true | |
552cc11b | 262 | ) |
552cc11b | 263 | |
affd7a90 MW |
264 | AC_ARG_ENABLE( |
265 | [pubkey], | |
266 | AS_HELP_STRING([--disable-pubkey],[disable RAW public key support plugin. (default is NO).]), | |
267 | [if test x$enableval = xyes; then | |
268 | pubkey=true | |
269 | else | |
270 | pubkey=false | |
271 | fi], | |
272 | pubkey=true | |
273 | ) | |
274 | ||
552cc11b | 275 | AC_ARG_ENABLE( |
6b9290ff MW |
276 | [hmac], |
277 | AS_HELP_STRING([--disable-hmac],[disable HMAC crypto implementation plugin. (default is NO).]), | |
278 | [if test x$enableval = xyes; then | |
279 | hmac=true | |
280 | else | |
281 | hmac=false | |
282 | fi], | |
283 | hmac=true | |
552cc11b | 284 | ) |
552cc11b | 285 | |
27d04e05 MW |
286 | AC_ARG_ENABLE( |
287 | [xcbc], | |
288 | AS_HELP_STRING([--disable-xcbc],[disable xcbc crypto implementation plugin. (default is NO).]), | |
289 | [if test x$enableval = xyes; then | |
290 | xcbc=true | |
291 | else | |
292 | xcbc=false | |
293 | fi], | |
294 | xcbc=true | |
295 | ) | |
296 | ||
552cc11b | 297 | AC_ARG_ENABLE( |
6b9290ff MW |
298 | [mysql], |
299 | AS_HELP_STRING([--enable-mysql],[enable MySQL database support (default is NO). Requires libmysqlclient_r.]), | |
300 | [if test x$enableval = xyes; then | |
301 | mysql=true | |
302 | fi] | |
552cc11b | 303 | ) |
552cc11b MW |
304 | |
305 | AC_ARG_ENABLE( | |
6b9290ff MW |
306 | [sqlite], |
307 | AS_HELP_STRING([--enable-sqlite],[enable SQLite database support (default is NO). Requires libsqlite3.]), | |
308 | [if test x$enableval = xyes; then | |
309 | sqlite=true | |
310 | fi] | |
552cc11b | 311 | ) |
f2c2d395 | 312 | |
cbfb2aff | 313 | AC_ARG_ENABLE( |
6b9290ff MW |
314 | [stroke], |
315 | AS_HELP_STRING([--disable-stroke],[disable charons stroke (pluto compatibility) configuration backend. (default is NO).]), | |
316 | [if test x$enableval = xyes; then | |
317 | stroke=true | |
318 | else | |
319 | stroke=false | |
320 | fi], | |
321 | stroke=true | |
cbfb2aff | 322 | ) |
cbfb2aff | 323 | |
552cc11b | 324 | AC_ARG_ENABLE( |
5b7ec6d4 | 325 | [medsrv], |
9529fb68 | 326 | AS_HELP_STRING([--enable-medsrv],[enable mediation server web frontend and daemon plugin (default is NO).]), |
6b9290ff | 327 | [if test x$enableval = xyes; then |
5b7ec6d4 | 328 | medsrv=true |
6b9290ff | 329 | fi] |
552cc11b | 330 | ) |
552cc11b | 331 | |
782db7ed MW |
332 | AC_ARG_ENABLE( |
333 | [medcli], | |
334 | AS_HELP_STRING([--enable-medcli],[enable mediation client configuration database plugin (default is NO).]), | |
335 | [if test x$enableval = xyes; then | |
336 | medcli=true | |
337 | fi] | |
338 | ) | |
339 | ||
a84fb01b | 340 | AC_ARG_ENABLE( |
6b9290ff MW |
341 | [smp], |
342 | AS_HELP_STRING([--enable-smp],[enable SMP configuration and control interface (default is NO). Requires libxml.]), | |
343 | [if test x$enableval = xyes; then | |
344 | smp=true | |
345 | fi] | |
a84fb01b | 346 | ) |
a84fb01b MW |
347 | |
348 | AC_ARG_ENABLE( | |
6b9290ff MW |
349 | [sql], |
350 | AS_HELP_STRING([--enable-sql],[enable SQL database configuration backend (default is NO).]), | |
351 | [if test x$enableval = xyes; then | |
352 | sql=true | |
353 | fi] | |
a84fb01b | 354 | ) |
a84fb01b | 355 | |
8f561d44 | 356 | AC_ARG_ENABLE( |
6b9290ff MW |
357 | [smartcard], |
358 | AS_HELP_STRING([--enable-smartcard],[enable smartcard support (default is NO).]), | |
359 | [if test x$enableval = xyes; then | |
360 | smartcard=true | |
361 | fi] | |
8f561d44 | 362 | ) |
8f561d44 | 363 | |
f2c2d395 | 364 | AC_ARG_ENABLE( |
6b9290ff MW |
365 | [cisco-quirks], |
366 | AS_HELP_STRING([--enable-cisco-quirks],[enable support of Cisco VPN client (default is NO).]), | |
367 | [if test x$enableval = xyes; then | |
368 | cisco_quirks=true | |
369 | fi] | |
f2c2d395 | 370 | ) |
f2c2d395 | 371 | |
2df45a73 | 372 | AC_ARG_ENABLE( |
6b9290ff MW |
373 | [leak-detective], |
374 | AS_HELP_STRING([--enable-leak-detective],[enable malloc hooks to find memory leaks (default is NO).]), | |
375 | [if test x$enableval = xyes; then | |
376 | leak_detective=true | |
377 | fi] | |
2df45a73 | 378 | ) |
2df45a73 | 379 | |
02140125 MW |
380 | AC_ARG_ENABLE( |
381 | [lock-profiler], | |
fc3ef71f | 382 | AS_HELP_STRING([--enable-lock-profiler],[enable lock/mutex profiling code (default is NO).]), |
02140125 MW |
383 | [if test x$enableval = xyes; then |
384 | lock_profiler=true | |
385 | fi] | |
386 | ) | |
387 | ||
f2c2d395 | 388 | AC_ARG_ENABLE( |
6b9290ff MW |
389 | [unit-tests], |
390 | AS_HELP_STRING([--enable-unit-tests],[enable unit tests on IKEv2 daemon startup (default is NO).]), | |
391 | [if test x$enableval = xyes; then | |
392 | unittest=true | |
393 | fi] | |
f2c2d395 | 394 | ) |
f2c2d395 | 395 | |
0fd6e955 MW |
396 | AC_ARG_ENABLE( |
397 | [load-tests], | |
398 | AS_HELP_STRING([--enable-load-tests],[enable load testing plugin for IKEv2 daemon (default is NO).]), | |
399 | [if test x$enableval = xyes; then | |
400 | loadtest=true | |
401 | fi] | |
402 | ) | |
403 | ||
552cc11b | 404 | AC_ARG_ENABLE( |
6b9290ff MW |
405 | [eap-sim], |
406 | AS_HELP_STRING([--enable-eap-sim],[build SIM authenication module for EAP (default is NO).]), | |
407 | [if test x$enableval = xyes; then | |
408 | eap_sim=true | |
409 | fi] | |
552cc11b | 410 | ) |
552cc11b | 411 | |
79a87846 MW |
412 | AC_ARG_ENABLE( |
413 | [eap-sim-file], | |
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 | |
416 | eap_sim_file=true | |
417 | fi] | |
418 | ) | |
419 | ||
b0f24449 | 420 | AC_ARG_ENABLE( |
6b9290ff MW |
421 | [eap-identity], |
422 | AS_HELP_STRING([--enable-eap-identity],[build EAP module providing EAP-Identity helper (default is NO).]), | |
423 | [if test x$enableval = xyes; then | |
424 | eap_identity=true | |
425 | fi] | |
b0f24449 | 426 | ) |
cbfb2aff MW |
427 | |
428 | AC_ARG_ENABLE( | |
6b9290ff MW |
429 | [eap-md5], |
430 | AS_HELP_STRING([--enable-eap-md5],[build MD5 (CHAP) authenication module for EAP (default is NO).]), | |
431 | [if test x$enableval = xyes; then | |
432 | eap_md5=true | |
433 | fi] | |
cbfb2aff | 434 | ) |
26e24676 | 435 | |
1caa265c MW |
436 | AC_ARG_ENABLE( |
437 | [eap-gtc], | |
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 | |
440 | eap_gtc=true | |
441 | fi] | |
442 | ) | |
443 | ||
26e24676 | 444 | AC_ARG_ENABLE( |
6b9290ff MW |
445 | [eap-aka], |
446 | AS_HELP_STRING([--enable-eap-aka],[build AKA authentication module for EAP (default is NO).]), | |
447 | [if test x$enableval = xyes; then | |
448 | eap_aka=true | |
449 | fi] | |
26e24676 | 450 | ) |
b0f24449 | 451 | |
09d7ef26 AS |
452 | AC_ARG_ENABLE( |
453 | [kernel-netlink], | |
454 | AS_HELP_STRING([--disable-kernel-netlink],[disable the netlink kernel interface. (default is NO).]), | |
455 | [if test x$enableval = xyes; then | |
456 | kernel_netlink=true | |
457 | else | |
458 | kernel_netlink=false | |
459 | fi], | |
460 | kernel_netlink=true | |
461 | ) | |
462 | ||
1adaa02b TB |
463 | AC_ARG_ENABLE( |
464 | [kernel-pfkey], | |
465 | AS_HELP_STRING([--enable-kernel-pfkey],[enable the PF_KEY kernel interface. (default is NO).]), | |
466 | [if test x$enableval = xyes; then | |
467 | kernel_pfkey=true | |
468 | fi] | |
469 | ) | |
470 | ||
ea625fab TB |
471 | AC_ARG_ENABLE( |
472 | [kernel-klips], | |
473 | AS_HELP_STRING([--enable-kernel-klips],[enable the KLIPS kernel interface. (default is NO).]), | |
474 | [if test x$enableval = xyes; then | |
475 | kernel_klips=true | |
476 | fi] | |
477 | ) | |
478 | ||
7b0c588a | 479 | AC_ARG_ENABLE( |
6b9290ff MW |
480 | [nat-transport], |
481 | AS_HELP_STRING([--enable-nat-transport],[enable NAT traversal with IPsec transport mode (default is NO).]), | |
482 | [if test x$enableval = xyes; then | |
483 | nat_transport=true | |
484 | fi] | |
7b0c588a | 485 | ) |
7b0c588a AS |
486 | |
487 | AC_ARG_ENABLE( | |
6b9290ff MW |
488 | [vendor-id], |
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 | |
491 | vendor_id=true | |
492 | else | |
493 | vendor_id=false | |
494 | fi], | |
495 | vendor_id=true | |
7b0c588a | 496 | ) |
7b0c588a | 497 | |
0e307360 | 498 | AC_ARG_ENABLE( |
6b9290ff MW |
499 | [xauth-vid], |
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 | |
502 | xauth_vid=true | |
503 | else | |
504 | xauth_vid=false | |
505 | fi], | |
506 | xauth_vid=true | |
0e307360 | 507 | ) |
0e307360 | 508 | |
fd4ded97 | 509 | AC_ARG_ENABLE( |
6b9290ff MW |
510 | [dumm], |
511 | AS_HELP_STRING([--enable-dumm],[build the DUMM UML test framework (default is NO).]), | |
512 | [if test x$enableval = xyes; then | |
513 | dumm=true | |
514 | fi] | |
fd4ded97 | 515 | ) |
fd4ded97 | 516 | |
552cc11b | 517 | AC_ARG_ENABLE( |
6b9290ff MW |
518 | [fast], |
519 | AS_HELP_STRING([--enable-fast],[build libfast (FastCGI Application Server w/ templates (default is NO).]), | |
520 | [if test x$enableval = xyes; then | |
521 | fast=true | |
522 | fi] | |
552cc11b | 523 | ) |
552cc11b | 524 | |
b8c7453a | 525 | AC_ARG_ENABLE( |
6b9290ff MW |
526 | [manager], |
527 | AS_HELP_STRING([--enable-manager],[build web management console (default is NO).]), | |
528 | [if test x$enableval = xyes; then | |
529 | manager=true | |
530 | xml=true | |
531 | fi] | |
b8c7453a | 532 | ) |
b8c7453a | 533 | |
d5cc1758 | 534 | AC_ARG_ENABLE( |
6b9290ff MW |
535 | [mediation], |
536 | AS_HELP_STRING([--enable-mediation],[enable IKEv2 Mediation Extension (default is NO).]), | |
537 | [if test x$enableval = xyes; then | |
538 | me=true | |
539 | fi] | |
d5cc1758 | 540 | ) |
d5cc1758 | 541 | |
9ee1111d | 542 | AC_ARG_ENABLE( |
6b9290ff MW |
543 | [integrity-test], |
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 | |
546 | integrity_test=true | |
547 | fi] | |
9ee1111d | 548 | ) |
9ee1111d AS |
549 | |
550 | AC_ARG_ENABLE( | |
6b9290ff MW |
551 | [self-test], |
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 | |
554 | self_test=true | |
555 | else | |
556 | self_test=false | |
557 | fi], | |
558 | self_test=true | |
9ee1111d | 559 | ) |
9ee1111d | 560 | |
733f336a | 561 | AC_ARG_ENABLE( |
6b9290ff MW |
562 | [pluto], |
563 | AS_HELP_STRING([--disable-pluto],[disable the IKEv1 keying daemon pluto. (default is NO).]), | |
564 | [if test x$enableval = xyes; then | |
565 | pluto=true | |
566 | else | |
567 | pluto=false | |
568 | fi], | |
569 | pluto=true | |
cbfb2aff | 570 | ) |
cbfb2aff MW |
571 | |
572 | AC_ARG_ENABLE( | |
6b9290ff MW |
573 | [charon], |
574 | AS_HELP_STRING([--disable-charon],[disable the IKEv2 keying daemon charon. (default is NO).]), | |
575 | [if test x$enableval = xyes; then | |
576 | charon=true | |
577 | else | |
578 | charon=false | |
579 | fi], | |
580 | charon=true | |
cbfb2aff | 581 | ) |
cbfb2aff MW |
582 | |
583 | AC_ARG_ENABLE( | |
6b9290ff MW |
584 | [tools], |
585 | AS_HELP_STRING([--disable-tools],[disable additional utilities (openac and scepclient). (default is NO).]), | |
586 | [if test x$enableval = xyes; then | |
587 | tools=true | |
588 | else | |
589 | tools=false | |
590 | fi], | |
591 | tools=true | |
733f336a | 592 | ) |
733f336a | 593 | |
1e9c46f1 MW |
594 | AC_ARG_ENABLE( |
595 | [updown], | |
ad3af574 | 596 | AS_HELP_STRING([--disable-updown],[disable updown firewall script plugin. (default is NO).]), |
1e9c46f1 MW |
597 | [if test x$enableval = xyes; then |
598 | updown=true | |
599 | else | |
600 | updown=false | |
601 | fi], | |
602 | updown=true | |
603 | ) | |
604 | ||
36d62fac MW |
605 | AC_ARG_ENABLE( |
606 | [padlock], | |
607 | AS_HELP_STRING([--enable-padlock],[enables VIA Padlock crypto plugin. (default is NO).]), | |
608 | [if test x$enableval = xyes; then | |
609 | padlock=true | |
610 | else | |
611 | padlock=false | |
612 | fi], | |
613 | ) | |
614 | ||
17353034 TB |
615 | AC_ARG_ENABLE( |
616 | [openssl], | |
617 | AS_HELP_STRING([--enable-openssl],[enables the OpenSSL crypto plugin. (default is NO).]), | |
618 | [if test x$enableval = xyes; then | |
619 | openssl=true | |
620 | else | |
621 | openssl=false | |
622 | fi], | |
623 | ) | |
624 | ||
21c95463 MW |
625 | AC_ARG_ENABLE( |
626 | [agent], | |
627 | AS_HELP_STRING([--enable-agent],[enables the ssh-agent signing plugin. (default is NO).]), | |
628 | [if test x$enableval = xyes; then | |
629 | agent=true | |
630 | else | |
631 | agent=false | |
632 | fi], | |
633 | ) | |
634 | ||
61c46386 MW |
635 | AC_ARG_ENABLE( |
636 | [uci], | |
637 | AS_HELP_STRING([--enable-uci],[enable OpenWRT UCI configuration plugin (default is NO).]), | |
638 | [if test x$enableval = xyes; then | |
639 | uci=true | |
640 | fi] | |
641 | ) | |
642 | ||
6dbce9c8 MW |
643 | AC_ARG_ENABLE( |
644 | [nm], | |
645 | AS_HELP_STRING([--enable-nm],[enable NetworkManager plugin (default is NO).]), | |
646 | [if test x$enableval = xyes; then | |
647 | nm=true | |
648 | fi] | |
649 | ) | |
650 | ||
f2c2d395 MW |
651 | dnl ========================= |
652 | dnl check required programs | |
653 | dnl ========================= | |
654 | ||
655 | AC_PROG_INSTALL | |
656 | AC_PROG_LIBTOOL | |
657 | AC_PROG_LEX | |
658 | AC_PROG_YACC | |
4986554f | 659 | AC_PROG_CC() |
298b06c2 MW |
660 | AC_PATH_PROG([GPERF], [gperf], [], [$PATH:/bin:/usr/bin:/usr/local/bin]) |
661 | AC_PATH_PROG([PERL], [perl], [], [$PATH:/bin:/usr/bin:/usr/local/bin]) | |
f2c2d395 | 662 | |
6b9290ff MW |
663 | dnl ========================= |
664 | dnl dependency calculation | |
665 | dnl ========================= | |
f2c2d395 | 666 | |
6b9290ff MW |
667 | if test x$pluto = xtrue; then |
668 | gmp=true; | |
669 | fi | |
670 | ||
671 | if test x$tools = xtrue; then | |
672 | gmp=true; | |
673 | fi | |
552cc11b | 674 | |
6b9290ff MW |
675 | if test x$smp = xtrue; then |
676 | xml=true | |
677 | fi | |
678 | ||
679 | if test x$manager = xtrue; then | |
680 | fast=true | |
681 | fi | |
682 | ||
782db7ed MW |
683 | if test x$medsrv = xtrue; then |
684 | me=true | |
9529fb68 | 685 | fast=true |
782db7ed MW |
686 | fi |
687 | ||
688 | if test x$medcli = xtrue; then | |
689 | me=true | |
690 | fi | |
691 | ||
6b9290ff MW |
692 | dnl ========================================== |
693 | dnl check required libraries and header files | |
694 | dnl ========================================== | |
695 | ||
696 | AC_HAVE_LIBRARY(dl) | |
4986554f | 697 | AC_CHECK_FUNCS(backtrace) |
552cc11b | 698 | AC_CHECK_FUNCS(dladdr) |
e696757c | 699 | |
6b9290ff | 700 | if test x$gmp = xtrue; then |
f8277a83 | 701 | AC_HAVE_LIBRARY([gmp],[LIBS="$LIBS"],[AC_MSG_ERROR([GNU Multi Precision library gmp not found])]) |
6b9290ff MW |
702 | AC_MSG_CHECKING([gmp.h version >= 4.1.4]) |
703 | AC_TRY_COMPILE( | |
704 | [#include "gmp.h"], | |
705 | [ | |
706 | #if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL) < 414 | |
707 | #error bad gmp | |
708 | #endif | |
709 | ], | |
710 | [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([No usable gmp.h found!])] | |
711 | ) | |
f2c2d395 | 712 | fi |
6b9290ff MW |
713 | |
714 | if test x$ldap = xtrue; then | |
715 | AC_HAVE_LIBRARY([ldap],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library ldap not found])]) | |
716 | AC_HAVE_LIBRARY([lber],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library lber not found])]) | |
717 | AC_CHECK_HEADER([ldap.h],,[AC_MSG_ERROR([LDAP header ldap.h not found!])]) | |
f2c2d395 MW |
718 | fi |
719 | ||
6b9290ff MW |
720 | if test x$curl = xtrue; then |
721 | AC_HAVE_LIBRARY([curl],[LIBS="$LIBS"],[AC_MSG_ERROR([CURL library curl not found])]) | |
722 | AC_CHECK_HEADER([curl/curl.h],,[AC_MSG_ERROR([CURL header curl/curl.h not found!])]) | |
723 | fi | |
724 | ||
725 | if test x$xml = xtrue; then | |
a47486b5 | 726 | PKG_CHECK_MODULES(xml, [libxml-2.0]) |
f2d6355e MW |
727 | AC_SUBST(xml_CFLAGS) |
728 | AC_SUBST(xml_LIBS) | |
729 | fi | |
730 | ||
a47486b5 MW |
731 | if test x$dumm = xtrue; then |
732 | PKG_CHECK_MODULES(gtk, [gtk+-2.0 vte]) | |
733 | AC_SUBST(gtk_CFLAGS) | |
734 | AC_SUBST(gtk_LIBS) | |
735 | fi | |
736 | ||
6b9290ff MW |
737 | if test x$fast = xtrue; then |
738 | AC_HAVE_LIBRARY([neo_cgi],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_cgi not found!])]) | |
739 | AC_HAVE_LIBRARY([neo_utl],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_utl not found!])]) | |
740 | AC_HAVE_LIBRARY([z],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver dependency zlib not found!])]) | |
741 | dnl autoconf does not like CamelCase!? How to fix this? | |
742 | dnl AC_CHECK_HEADER([ClearSilver/ClearSilver.h],,[AC_MSG_ERROR([ClearSilver header file ClearSilver/ClearSilver.h not found!])]) | |
743 | ||
744 | AC_HAVE_LIBRARY([fcgi],[LIBS="$LIBS"],[AC_MSG_ERROR([FastCGI library fcgi not found!])]) | |
745 | AC_CHECK_HEADER([fcgiapp.h],,[AC_MSG_ERROR([FastCGI header file fcgiapp.h not found!])]) | |
a84fb01b MW |
746 | fi |
747 | ||
6b9290ff MW |
748 | if test x$mysql = xtrue; then |
749 | AC_HAVE_LIBRARY([mysqlclient_r],[LIBS="$LIBS"],[AC_MSG_ERROR([MySQL library mysqlclient_r not found])]) | |
750 | AC_CHECK_HEADER([mysql/mysql.h],,[AC_MSG_ERROR([MySQL header mysql/mysql.h not found!])]) | |
751 | fi | |
f2c2d395 | 752 | |
f8277a83 | 753 | if test x$sqlite = xtrue; then |
6b9290ff MW |
754 | AC_HAVE_LIBRARY([sqlite3],[LIBS="$LIBS"],[AC_MSG_ERROR([SQLite library sqlite3 not found])]) |
755 | AC_CHECK_HEADER([sqlite3.h],,[AC_MSG_ERROR([SQLite header sqlite3.h not found!])]) | |
f8277a83 MW |
756 | AC_MSG_CHECKING([sqlite3_prepare_v2]) |
757 | AC_TRY_COMPILE( | |
758 | [#include <sqlite3.h>], | |
759 | [ | |
760 | void *test = sqlite3_prepare_v2; | |
761 | ], | |
762 | [AC_MSG_RESULT([yes])]; AC_DEFINE_UNQUOTED(HAVE_SQLITE3_PREPARE_V2, 1), [AC_MSG_RESULT([no])]) | |
7da767f7 MW |
763 | AC_MSG_CHECKING([sqlite3.h version >= 3.3.1]) |
764 | AC_TRY_COMPILE( | |
765 | [#include <sqlite3.h>], | |
766 | [ | |
767 | #if SQLITE_VERSION_NUMBER < 3003001 | |
768 | #error bad sqlite | |
769 | #endif | |
770 | ], | |
771 | [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([SQLite version >= 3.3.1 required!])]) | |
6b9290ff | 772 | fi |
f2c2d395 | 773 | |
17353034 | 774 | if test x$openssl = xtrue; then |
e581a31d | 775 | AC_HAVE_LIBRARY([crypto],[LIBS="$LIBS"],[AC_MSG_ERROR([OpenSSL crypto library not found])]) |
17353034 TB |
776 | AC_CHECK_HEADER([openssl/evp.h],,[AC_MSG_ERROR([OpenSSL header openssl/evp.h not found!])]) |
777 | fi | |
778 | ||
61c46386 MW |
779 | if test x$uci = xtrue; then |
780 | AC_HAVE_LIBRARY([uci],[LIBS="$LIBS"],[AC_MSG_ERROR([UCI library libuci not found])]) | |
781 | AC_CHECK_HEADER([uci.h],,[AC_MSG_ERROR([UCI header uci.h not found!])]) | |
782 | fi | |
783 | ||
6dbce9c8 MW |
784 | if test x$nm = xtrue; then |
785 | PKG_CHECK_MODULES(nm, [NetworkManager libnm_glib_vpn gthread-2.0]) | |
786 | AC_SUBST(nm_CFLAGS) | |
787 | AC_SUBST(nm_LIBS) | |
788 | fi | |
789 | ||
1caa265c MW |
790 | if test x$eap_gtc = xtrue; then |
791 | AC_HAVE_LIBRARY([pam],[LIBS="$LIBS"],[AC_MSG_ERROR([PAM library not found])]) | |
792 | AC_CHECK_HEADER([security/pam_appl.h],,[AC_MSG_ERROR([PAM header security/pam_appl.h not found!])]) | |
793 | fi | |
794 | ||
eb3e2705 MW |
795 | if test x$capabilities = xlibcap; then |
796 | AC_HAVE_LIBRARY([cap],[LIBS="$LIBS"],[AC_MSG_ERROR([libcap library not found])]) | |
797 | AC_CHECK_HEADER([sys/capability.h],,[AC_MSG_ERROR([libcap header sys/capability.h not found!])]) | |
798 | fi | |
799 | ||
1ba62b55 MW |
800 | dnl ====================================== |
801 | dnl collect all plugins for libstrongswan | |
802 | dnl ====================================== | |
803 | ||
804 | libstrongswan_plugins= | |
805 | ||
806 | if test x$curl = xtrue; then | |
29727a44 | 807 | libstrongswan_plugins=${libstrongswan_plugins}" curl" |
1ba62b55 MW |
808 | fi |
809 | if test x$ldap = xtrue; then | |
29727a44 | 810 | libstrongswan_plugins=${libstrongswan_plugins}" ldap" |
1ba62b55 MW |
811 | fi |
812 | if test x$aes = xtrue; then | |
29727a44 | 813 | libstrongswan_plugins=${libstrongswan_plugins}" aes" |
1ba62b55 MW |
814 | fi |
815 | if test x$des = xtrue; then | |
29727a44 | 816 | libstrongswan_plugins=${libstrongswan_plugins}" des" |
1ba62b55 | 817 | fi |
1ba62b55 | 818 | if test x$sha1 = xtrue; then |
29727a44 | 819 | libstrongswan_plugins=${libstrongswan_plugins}" sha1" |
1ba62b55 MW |
820 | fi |
821 | if test x$sha2 = xtrue; then | |
29727a44 | 822 | libstrongswan_plugins=${libstrongswan_plugins}" sha2" |
1ba62b55 | 823 | fi |
e577ad39 MW |
824 | if test x$md5 = xtrue; then |
825 | libstrongswan_plugins=${libstrongswan_plugins}" md5" | |
826 | fi | |
1ba62b55 | 827 | if test x$fips_prf = xtrue; then |
29727a44 | 828 | libstrongswan_plugins=${libstrongswan_plugins}" fips-prf" |
1ba62b55 | 829 | fi |
1ba62b55 | 830 | if test x$random = xtrue; then |
29727a44 | 831 | libstrongswan_plugins=${libstrongswan_plugins}" random" |
1ba62b55 MW |
832 | fi |
833 | if test x$x509 = xtrue; then | |
29727a44 | 834 | libstrongswan_plugins=${libstrongswan_plugins}" x509" |
1ba62b55 MW |
835 | fi |
836 | if test x$pubkey = xtrue; then | |
29727a44 | 837 | libstrongswan_plugins=${libstrongswan_plugins}" pubkey" |
1ba62b55 | 838 | fi |
1ba62b55 | 839 | if test x$xcbc = xtrue; then |
29727a44 | 840 | libstrongswan_plugins=${libstrongswan_plugins}" xcbc" |
1ba62b55 | 841 | fi |
e577ad39 MW |
842 | if test x$hmac = xtrue; then |
843 | libstrongswan_plugins=${libstrongswan_plugins}" hmac" | |
844 | fi | |
1ba62b55 | 845 | if test x$mysql = xtrue; then |
29727a44 | 846 | libstrongswan_plugins=${libstrongswan_plugins}" mysql" |
1ba62b55 MW |
847 | fi |
848 | if test x$sqlite = xtrue; then | |
29727a44 | 849 | libstrongswan_plugins=${libstrongswan_plugins}" sqlite" |
1ba62b55 MW |
850 | fi |
851 | if test x$padlock = xtrue; then | |
29727a44 | 852 | libstrongswan_plugins=${libstrongswan_plugins}" padlock" |
1ba62b55 MW |
853 | fi |
854 | if test x$openssl = xtrue; then | |
29727a44 | 855 | libstrongswan_plugins=${libstrongswan_plugins}" openssl" |
1ba62b55 | 856 | fi |
21c95463 MW |
857 | if test x$agent = xtrue; then |
858 | libstrongswan_plugins=${libstrongswan_plugins}" agent" | |
859 | fi | |
e577ad39 MW |
860 | if test x$gmp = xtrue; then |
861 | libstrongswan_plugins=${libstrongswan_plugins}" gmp" | |
862 | fi | |
1ba62b55 MW |
863 | |
864 | AC_SUBST(libstrongswan_plugins) | |
865 | ||
6b9290ff MW |
866 | dnl ========================= |
867 | dnl set Makefile.am vars | |
868 | dnl ========================= | |
f2c2d395 | 869 | |
1ba62b55 MW |
870 | dnl libstrongswan plugins |
871 | dnl ===================== | |
6b9290ff MW |
872 | AM_CONDITIONAL(USE_CURL, test x$curl = xtrue) |
873 | AM_CONDITIONAL(USE_LDAP, test x$ldap = xtrue) | |
874 | AM_CONDITIONAL(USE_AES, test x$aes = xtrue) | |
875 | AM_CONDITIONAL(USE_DES, test x$des = xtrue) | |
876 | AM_CONDITIONAL(USE_MD5, test x$md5 = xtrue) | |
877 | AM_CONDITIONAL(USE_SHA1, test x$sha1 = xtrue) | |
878 | AM_CONDITIONAL(USE_SHA2, test x$sha2 = xtrue) | |
879 | AM_CONDITIONAL(USE_FIPS_PRF, test x$fips_prf = xtrue) | |
880 | AM_CONDITIONAL(USE_GMP, test x$gmp = xtrue) | |
6a365f07 | 881 | AM_CONDITIONAL(USE_RANDOM, test x$random = xtrue) |
6b9290ff | 882 | AM_CONDITIONAL(USE_X509, test x$x509 = xtrue) |
affd7a90 | 883 | AM_CONDITIONAL(USE_PUBKEY, test x$pubkey = xtrue) |
6b9290ff | 884 | AM_CONDITIONAL(USE_HMAC, test x$hmac = xtrue) |
27d04e05 | 885 | AM_CONDITIONAL(USE_XCBC, test x$xcbc = xtrue) |
6b9290ff MW |
886 | AM_CONDITIONAL(USE_MYSQL, test x$mysql = xtrue) |
887 | AM_CONDITIONAL(USE_SQLITE, test x$sqlite = xtrue) | |
1ba62b55 MW |
888 | AM_CONDITIONAL(USE_PADLOCK, test x$padlock = xtrue) |
889 | AM_CONDITIONAL(USE_OPENSSL, test x$openssl = xtrue) | |
21c95463 | 890 | AM_CONDITIONAL(USE_AGENT, test x$agent = xtrue) |
1ba62b55 MW |
891 | |
892 | dnl charon plugins | |
893 | dnl ============== | |
6b9290ff | 894 | AM_CONDITIONAL(USE_STROKE, test x$stroke = xtrue) |
5b7ec6d4 | 895 | AM_CONDITIONAL(USE_MEDSRV, test x$medsrv = xtrue) |
782db7ed | 896 | AM_CONDITIONAL(USE_MEDCLI, test x$medcli = xtrue) |
6dbce9c8 | 897 | AM_CONDITIONAL(USE_NM, test x$nm = xtrue) |
61c46386 | 898 | AM_CONDITIONAL(USE_UCI, test x$uci = xtrue) |
6b9290ff MW |
899 | AM_CONDITIONAL(USE_SMP, test x$smp = xtrue) |
900 | AM_CONDITIONAL(USE_SQL, test x$sql = xtrue) | |
ad3af574 | 901 | AM_CONDITIONAL(USE_UPDOWN, test x$updown = xtrue) |
6b9290ff | 902 | AM_CONDITIONAL(USE_UNIT_TESTS, test x$unittest = xtrue) |
0fd6e955 | 903 | AM_CONDITIONAL(USE_LOAD_TESTS, test x$loadtest = xtrue) |
6b9290ff | 904 | AM_CONDITIONAL(USE_EAP_SIM, test x$eap_sim = xtrue) |
79a87846 | 905 | AM_CONDITIONAL(USE_EAP_SIM_FILE, test x$eap_sim_file = xtrue) |
6b9290ff MW |
906 | AM_CONDITIONAL(USE_EAP_IDENTITY, test x$eap_identity = xtrue) |
907 | AM_CONDITIONAL(USE_EAP_MD5, test x$eap_md5 = xtrue) | |
1caa265c | 908 | AM_CONDITIONAL(USE_EAP_GTC, test x$eap_gtc = xtrue) |
6b9290ff | 909 | AM_CONDITIONAL(USE_EAP_AKA, test x$eap_aka = xtrue) |
09d7ef26 | 910 | AM_CONDITIONAL(USE_KERNEL_NETLINK, test x$kernel_netlink = xtrue) |
1adaa02b | 911 | AM_CONDITIONAL(USE_KERNEL_PFKEY, test x$kernel_pfkey = xtrue) |
ea625fab | 912 | AM_CONDITIONAL(USE_KERNEL_KLIPS, test x$kernel_klips = xtrue) |
1ba62b55 MW |
913 | |
914 | dnl other options | |
915 | dnl ============= | |
916 | AM_CONDITIONAL(USE_SMARTCARD, test x$smartcard = xtrue) | |
917 | AM_CONDITIONAL(USE_CISCO_QUIRKS, test x$cisco_quirks = xtrue) | |
918 | AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue) | |
02140125 | 919 | AM_CONDITIONAL(USE_LOCK_PROFILER, test x$lock_profiler = xtrue) |
6b9290ff MW |
920 | AM_CONDITIONAL(USE_NAT_TRANSPORT, test x$nat_transport = xtrue) |
921 | AM_CONDITIONAL(USE_VENDORID, test x$vendor_id = xtrue) | |
922 | AM_CONDITIONAL(USE_XAUTH_VID, test x$xauth_vid = xtrue) | |
923 | AM_CONDITIONAL(USE_DUMM, test x$dumm = xtrue) | |
924 | AM_CONDITIONAL(USE_FAST, test x$fast = xtrue) | |
925 | AM_CONDITIONAL(USE_MANAGER, test x$manager = xtrue) | |
926 | AM_CONDITIONAL(USE_ME, test x$me = xtrue) | |
927 | AM_CONDITIONAL(USE_INTEGRITY_TEST, test x$integrity_test = xtrue) | |
928 | AM_CONDITIONAL(USE_SELF_TEST, test x$self_test = xtrue) | |
eb3e2705 | 929 | AM_CONDITIONAL(USE_CAPABILITIES, test x$capabilities = xlibcap) |
6b9290ff MW |
930 | AM_CONDITIONAL(USE_PLUTO, test x$pluto = xtrue) |
931 | AM_CONDITIONAL(USE_CHARON, test x$charon = xtrue) | |
932 | AM_CONDITIONAL(USE_TOOLS, test x$tools = xtrue) | |
6b9290ff MW |
933 | AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$tools = xtrue) |
934 | AM_CONDITIONAL(USE_FILE_CONFIG, test x$pluto = xtrue -o x$stroke = xtrue) | |
f2c2d395 | 935 | |
9e72d3bc MW |
936 | dnl ============================== |
937 | dnl set global definitions | |
938 | dnl ============================== | |
939 | ||
940 | if test x$me = xtrue; then | |
941 | AC_DEFINE(ME) | |
942 | fi | |
eb3e2705 MW |
943 | if test x$capabilities = xlibcap; then |
944 | AC_DEFINE(CAPABILITIES) | |
945 | fi | |
9e72d3bc | 946 | |
f2c2d395 MW |
947 | dnl ============================== |
948 | dnl build Makefiles | |
949 | dnl ============================== | |
950 | ||
951 | AC_OUTPUT( | |
952 | Makefile | |
953 | src/Makefile | |
04a7b6d8 | 954 | src/include/Makefile |
f2c2d395 | 955 | src/libstrongswan/Makefile |
552cc11b MW |
956 | src/libstrongswan/plugins/aes/Makefile |
957 | src/libstrongswan/plugins/des/Makefile | |
958 | src/libstrongswan/plugins/md5/Makefile | |
959 | src/libstrongswan/plugins/sha1/Makefile | |
960 | src/libstrongswan/plugins/sha2/Makefile | |
961 | src/libstrongswan/plugins/fips_prf/Makefile | |
962 | src/libstrongswan/plugins/gmp/Makefile | |
6a365f07 | 963 | src/libstrongswan/plugins/random/Makefile |
552cc11b | 964 | src/libstrongswan/plugins/hmac/Makefile |
27d04e05 | 965 | src/libstrongswan/plugins/xcbc/Makefile |
552cc11b | 966 | src/libstrongswan/plugins/x509/Makefile |
affd7a90 | 967 | src/libstrongswan/plugins/pubkey/Makefile |
552cc11b MW |
968 | src/libstrongswan/plugins/curl/Makefile |
969 | src/libstrongswan/plugins/ldap/Makefile | |
970 | src/libstrongswan/plugins/mysql/Makefile | |
971 | src/libstrongswan/plugins/sqlite/Makefile | |
36d62fac | 972 | src/libstrongswan/plugins/padlock/Makefile |
17353034 | 973 | src/libstrongswan/plugins/openssl/Makefile |
21c95463 | 974 | src/libstrongswan/plugins/agent/Makefile |
af165431 | 975 | src/libstrongswan/fips/Makefile |
f2c2d395 MW |
976 | src/libcrypto/Makefile |
977 | src/libfreeswan/Makefile | |
978 | src/pluto/Makefile | |
979 | src/whack/Makefile | |
980 | src/charon/Makefile | |
552cc11b MW |
981 | src/charon/plugins/eap_aka/Makefile |
982 | src/charon/plugins/eap_identity/Makefile | |
983 | src/charon/plugins/eap_md5/Makefile | |
1caa265c | 984 | src/charon/plugins/eap_gtc/Makefile |
552cc11b | 985 | src/charon/plugins/eap_sim/Makefile |
79a87846 | 986 | src/charon/plugins/eap_sim_file/Makefile |
507f26f6 | 987 | src/charon/plugins/kernel_netlink/Makefile |
1adaa02b | 988 | src/charon/plugins/kernel_pfkey/Makefile |
ea625fab | 989 | src/charon/plugins/kernel_klips/Makefile |
6b9290ff | 990 | src/charon/plugins/smp/Makefile |
552cc11b | 991 | src/charon/plugins/sql/Makefile |
5b7ec6d4 | 992 | src/charon/plugins/medsrv/Makefile |
782db7ed | 993 | src/charon/plugins/medcli/Makefile |
6dbce9c8 | 994 | src/charon/plugins/nm/Makefile |
61c46386 | 995 | src/charon/plugins/uci/Makefile |
552cc11b | 996 | src/charon/plugins/stroke/Makefile |
ad3af574 | 997 | src/charon/plugins/updown/Makefile |
552cc11b | 998 | src/charon/plugins/unit_tester/Makefile |
0fd6e955 | 999 | src/charon/plugins/load_tester/Makefile |
f2c2d395 MW |
1000 | src/stroke/Makefile |
1001 | src/ipsec/Makefile | |
1002 | src/starter/Makefile | |
1003 | src/_updown/Makefile | |
1004 | src/_updown_espmark/Makefile | |
1005 | src/_copyright/Makefile | |
1006 | src/openac/Makefile | |
1007 | src/scepclient/Makefile | |
f2d6355e | 1008 | src/dumm/Makefile |
552cc11b | 1009 | src/libfast/Makefile |
b8c7453a | 1010 | src/manager/Makefile |
9529fb68 | 1011 | src/medsrv/Makefile |
39b7780d | 1012 | scripts/Makefile |
9ee1111d | 1013 | testing/Makefile |
f2c2d395 | 1014 | ) |