]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
added a --disable-threads ./configure option for pluto
authorMartin Willi <martin@strongswan.org>
Tue, 2 Dec 2008 09:01:57 +0000 (09:01 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 2 Dec 2008 09:01:57 +0000 (09:01 -0000)
configure.in
src/pluto/Makefile.am

index 997d7ace7ae7334ce6f0ae8660997e7011277f60..a251c991253a17b2260c5f538bd64d66880192c9 100644 (file)
@@ -569,6 +569,17 @@ AC_ARG_ENABLE(
        pluto=true
 )
 
+AC_ARG_ENABLE(
+       [threads],
+       AS_HELP_STRING([--disable-threads],[disable the use of threads in pluto. Charon always uses threads. (default is NO).]),
+       [if test x$enableval = xyes; then
+               threads=true
+        else
+               threads=false
+       fi],
+       threads=true
+)
+
 AC_ARG_ENABLE(
        [charon],
        AS_HELP_STRING([--disable-charon],[disable the IKEv2 keying daemon charon. (default is NO).]),
@@ -928,6 +939,7 @@ AM_CONDITIONAL(USE_INTEGRITY_TEST, test x$integrity_test = xtrue)
 AM_CONDITIONAL(USE_SELF_TEST, test x$self_test = xtrue)
 AM_CONDITIONAL(USE_CAPABILITIES, test x$capabilities = xlibcap)
 AM_CONDITIONAL(USE_PLUTO, test x$pluto = xtrue)
+AM_CONDITIONAL(USE_THREADS, test x$threads = xtrue)
 AM_CONDITIONAL(USE_CHARON, test x$charon = xtrue)
 AM_CONDITIONAL(USE_TOOLS, test x$tools = xtrue)
 AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$tools = xtrue)
index 453636f9637952ae6f21f19e2c99c540123770c5..f788bc3d156e207f835c30fe5371da3ed1c1c37a 100644 (file)
@@ -85,7 +85,7 @@ AM_CFLAGS = \
 -DIPSEC_PIDDIR=\"${piddir}\" \
 -DSHARED_SECRETS_FILE=\"${confdir}/ipsec.secrets\" \
 -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES \
--DPLUTO -DKLIPS -DDEBUG -DTHREADS
+-DPLUTO -DKLIPS -DDEBUG
 
 pluto_LDADD = \
 oid.o \
@@ -143,3 +143,6 @@ if USE_CAPABILITIES
   pluto_LDADD += -lcap
 endif
 
+if USE_THREADS
+  AM_CFLAGS += -DTHREADS
+endif