diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-06-03 13:48:32 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-06-03 13:49:02 +0200 |
commit | 238433a33afbff18b16b6ff1ab83de11ec9bbbf1 (patch) | |
tree | c5adcc30ff4596e9d54235f349fa0052a9c031d1 /m4/hooks.m4 | |
parent | d2e5ea09e9fed7bd9feff9831cb29fd84d0ad56d (diff) | |
download | gnutls-238433a33afbff18b16b6ff1ab83de11ec9bbbf1.tar.gz |
m4/hooks.m4: use enableval rather than fixed values.
That should resolve issue #108592 at
http://savannah.gnu.org/support/?108592
Diffstat (limited to 'm4/hooks.m4')
-rw-r--r-- | m4/hooks.m4 | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/m4/hooks.m4 b/m4/hooks.m4 index cd3e5b43dc..740a8d5b23 100644 --- a/m4/hooks.m4 +++ b/m4/hooks.m4 @@ -144,7 +144,7 @@ AC_MSG_ERROR([[ AC_ARG_ENABLE(dtls-srtp-support, AS_HELP_STRING([--disable-dtls-srtp-support], [disable support for the DTLS-SRTP extension]), - ac_enable_srtp=no) + ac_enable_srtp=$enableval) if test x$ac_enable_srtp != xno; then AC_MSG_RESULT(no) AC_DEFINE([ENABLE_DTLS_SRTP], 1, [enable DTLS-SRTP support]) @@ -187,7 +187,7 @@ AC_MSG_ERROR([[ AC_ARG_ENABLE(heartbeat-support, AS_HELP_STRING([--disable-heartbeat-support], [disable support for the heartbeat extension]), - ac_enable_heartbeat=$enableval,ac_enable_heartbeat=yes) + ac_enable_heartbeat=$enableval) if test x$ac_enable_heartbeat != xno; then AC_MSG_RESULT(yes) AC_DEFINE([ENABLE_HEARTBEAT], 1, [enable heartbeat support]) @@ -201,7 +201,7 @@ AC_MSG_ERROR([[ AC_ARG_ENABLE(srp-authentication, AS_HELP_STRING([--disable-srp-authentication], [disable the SRP authentication support]), - ac_enable_srp=no) + ac_enable_srp=$enableval) if test x$ac_enable_srp != xno; then AC_MSG_RESULT(no) AC_DEFINE([ENABLE_SRP], 1, [enable SRP authentication]) @@ -216,7 +216,7 @@ AC_MSG_ERROR([[ AC_ARG_ENABLE(psk-authentication, AS_HELP_STRING([--disable-psk-authentication], [disable the PSK authentication support]), - ac_enable_psk=no) + ac_enable_psk=$enableval) if test x$ac_enable_psk != xno; then AC_MSG_RESULT(no) AC_DEFINE([ENABLE_PSK], 1, [enable PSK authentication]) @@ -231,7 +231,7 @@ AC_MSG_ERROR([[ AC_ARG_ENABLE(anon-authentication, AS_HELP_STRING([--disable-anon-authentication], [disable the anonymous authentication support]), - ac_enable_anon=no) + ac_enable_anon=$enableval) if test x$ac_enable_anon != xno; then AC_MSG_RESULT(no) AC_DEFINE([ENABLE_ANON], 1, [enable anonymous authentication]) @@ -274,7 +274,7 @@ AC_MSG_ERROR([[ AC_ARG_ENABLE(openpgp-authentication, AS_HELP_STRING([--disable-openpgp-authentication], [disable the OpenPGP authentication support]), - ac_enable_openpgp=no) + ac_enable_openpgp=$enableval) if test x$ac_enable_openpgp = xno; then AC_MSG_RESULT(yes) ac_full=0 @@ -288,7 +288,7 @@ AC_MSG_ERROR([[ AC_MSG_CHECKING([whether to add cryptodev support]) AC_ARG_ENABLE(cryptodev, AS_HELP_STRING([--enable-cryptodev], [enable cryptodev support]), - enable_cryptodev=yes,enable_cryptodev=no) + enable_cryptodev=$enableval,enable_cryptodev=no) AC_MSG_RESULT($enable_cryptodev) if test "$enable_cryptodev" = "yes"; then @@ -299,7 +299,7 @@ AC_MSG_ERROR([[ AC_ARG_ENABLE(ocsp, AS_HELP_STRING([--disable-ocsp], [disable OCSP support]), - ac_enable_ocsp=no) + ac_enable_ocsp=$enableval,ac_enable_ocsp=yes) if test x$ac_enable_ocsp != xno; then ac_enable_ocsp=yes AC_MSG_RESULT(no) @@ -310,11 +310,12 @@ AC_MSG_ERROR([[ fi AM_CONDITIONAL(ENABLE_OCSP, test "$ac_enable_ocsp" != "no") + AC_MSG_CHECKING([whether to disable session tickets support]) AC_ARG_ENABLE(session-tickets, AS_HELP_STRING([--disable-session-tickets], [disable session tickets support]), - ac_enable_session_tickets=no) + ac_enable_session_tickets=$enableval,ac_enable_session_tickets=yes) if test x$ac_enable_session_tickets != xno; then ac_enable_session_tickets=yes AC_MSG_RESULT(no) |