added --enable-nat-transport and --disable-vendor-id configuration options

This commit is contained in:
Andreas Steffen 2007-04-03 07:58:21 +00:00
parent a0c15611a4
commit 7b0c588a88
1 changed files with 44 additions and 12 deletions

View File

@ -34,7 +34,7 @@ AC_ARG_WITH(
) )
AC_ARG_WITH( AC_ARG_WITH(
[default-xauth], [xauth-module],
AS_HELP_STRING([--with-xauth-module=lib],[set the path to the XAUTH module]), AS_HELP_STRING([--with-xauth-module=lib],[set the path to the XAUTH module]),
[AC_DEFINE_UNQUOTED(XAUTH_DEFAULT_LIB, "$withval")], [AC_DEFINE_UNQUOTED(XAUTH_DEFAULT_LIB, "$withval")],
) )
@ -89,49 +89,81 @@ AC_ARG_WITH(
AC_ARG_ENABLE( AC_ARG_ENABLE(
[http], [http],
AS_HELP_STRING([--enable-http],[enable OCSP and fetching of Certificates and CRLs over HTTP (default is NO). Requires libcurl.]), AS_HELP_STRING([--enable-http],[enable OCSP and fetching of Certificates and CRLs over HTTP (default is NO). Requires libcurl.]),
[if test x$enableval = xyes; then
http=true http=true
AC_DEFINE(LIBCURL) AC_DEFINE(LIBCURL)
fi]
) )
AM_CONDITIONAL(USE_LIBCURL, test x$http = xtrue) AM_CONDITIONAL(USE_LIBCURL, test x$http = xtrue)
AC_ARG_ENABLE( AC_ARG_ENABLE(
[ldap], [ldap],
AS_HELP_STRING([--enable-ldap],[enable fetching of CRLs from LDAP (default is NO). Requires openLDAP.]), AS_HELP_STRING([--enable-ldap],[enable fetching of CRLs from LDAP (default is NO). Requires openLDAP.]),
[if test x$enableval = xyes; then
ldap=true ldap=true
AC_DEFINE(LDAP_VER, 3) AC_DEFINE(LDAP_VER, 3)
fi]
) )
AM_CONDITIONAL(USE_LDAP, test x$ldap = xtrue) AM_CONDITIONAL(USE_LDAP, test x$ldap = xtrue)
AC_ARG_ENABLE( AC_ARG_ENABLE(
[smartcard], [smartcard],
AS_HELP_STRING([--enable-smartcard],[enable smartcard support (default is NO).]), AS_HELP_STRING([--enable-smartcard],[enable smartcard support (default is NO).]),
[if test x$enableval = xyes; then
smartcard=true smartcard=true
AC_DEFINE(SMARTCARD) AC_DEFINE(SMARTCARD)
fi]
) )
AM_CONDITIONAL(USE_SMARTCARD, test x$smartcard = xtrue) AM_CONDITIONAL(USE_SMARTCARD, test x$smartcard = xtrue)
AC_ARG_ENABLE( AC_ARG_ENABLE(
[cisco_quirks], [cisco-quirks],
AS_HELP_STRING([--enable-cisco-quirks],[enable support of Cisco VPN client (default is NO).]), AS_HELP_STRING([--enable-cisco-quirks],[enable support of Cisco VPN client (default is NO).]),
[if test x$enableval = xyes; then
cisco_quirks=true cisco_quirks=true
AC_DEFINE(CISCO_QUIRKS) fi]
) )
AM_CONDITIONAL(USE_CISCO_QUIRKS, test x$cisco_quirks = xtrue) AM_CONDITIONAL(USE_CISCO_QUIRKS, test x$cisco_quirks = xtrue)
AC_ARG_ENABLE( AC_ARG_ENABLE(
[leak-detective], [leak-detective],
AS_HELP_STRING([--enable-leak-detective],[enable malloc hooks to find memory leaks (default is NO).]), AS_HELP_STRING([--enable-leak-detective],[enable malloc hooks to find memory leaks (default is NO).]),
[if test x$enableval = xyes; then
leak_detective=true leak_detective=true
fi]
) )
AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue) AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue)
AC_ARG_ENABLE( AC_ARG_ENABLE(
[eap-sim], [eap-sim],
AS_HELP_STRING([--enable-eap-sim],[build SIM authenication module for EAP (default is NO).]), AS_HELP_STRING([--enable-eap-sim],[build SIM authenication module for EAP (default is NO).]),
[if test x$enableval = xyes; then
eap_sim=true eap_sim=true
fi]
) )
AM_CONDITIONAL(BUILD_EAP_SIM, test x$eap_sim = xtrue) AM_CONDITIONAL(BUILD_EAP_SIM, test x$eap_sim = xtrue)
AC_ARG_ENABLE(
[nat-transport],
AS_HELP_STRING([--enable-nat-transport],[enable NAT traversal with IPsec transport mode (default is NO).]),
[if test x$enableval = xyes; then
nat_transport=true
fi]
)
AM_CONDITIONAL(USE_NAT_TRANSPORT, test x$nat_transport = xtrue)
AC_ARG_ENABLE(
[vendor-id],
AS_HELP_STRING([--disable-vendor-id],[disable the sending of the strongSwan vendor ID (default is NO).]),
[if test x$enableval = xyes; then
vendor_id=true
else
vendor_id=false
fi],
vendor_id=true
)
AM_CONDITIONAL(USE_VENDORID, test x$vendor_id = xtrue)
dnl ========================= dnl =========================
dnl check required programs dnl check required programs
dnl ========================= dnl =========================