From: Paul Mackerras Date: Mon, 30 Dec 2024 22:45:06 +0000 (+1100) Subject: configure: Make PEAP depend on microsoft extensions (#540) X-Git-Tag: v2.5.2~3 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=0885c4b2663481ebea94e158b17289a7a39a91ca;p=ppp.git configure: Make PEAP depend on microsoft extensions (#540) Since our only PEAP mechanism is MS-CHAP v2, the compile fails if we enable PEAP without MS extensions. Therefore, for now make PEAP depend on MS extensions, so if MS extensions are disabled, PEAP is automatically disabled. Signed-off-by: Paul Mackerras --- diff --git a/configure.ac b/configure.ac index f8f8862..0ae420f 100644 --- a/configure.ac +++ b/configure.ac @@ -130,9 +130,9 @@ AM_COND_IF([PPP_WITH_CBCP], AC_DEFINE([PPP_WITH_CBCP], 1, [Have Callback Protocol support])) # -# Disable Microsoft extensions will remove CHAP and MPPE support +# Disable Microsoft extensions will remove CHAP, MPPE and PEAP support AC_ARG_ENABLE([microsoft-extensions], - AS_HELP_STRING([--disable-microsoft-extensions], [Disable Microsoft CHAP / MPPE extensions])) + AS_HELP_STRING([--disable-microsoft-extensions], [Disable Microsoft CHAP / MPPE / PEAP extensions])) AM_CONDITIONAL(PPP_WITH_CHAPMS, test "x${enable_microsoft_extensions}" != "xno") AM_COND_IF([PPP_WITH_CHAPMS], @@ -193,9 +193,9 @@ AM_CONDITIONAL(PPP_WITH_EAPTLS, test "x${enable_eaptls}" != "xno") # Disable PEAP support AC_ARG_ENABLE([peap], AS_HELP_STRING([--disable-peap], [Disable PEAP authentication support])) -AS_IF([test "x${enable_peap}" != "xno"], +AS_IF([test "x${enable_peap}" != "xno" && test "x${enable_microsoft_extensions}" != "xno"], AC_DEFINE([PPP_WITH_PEAP], 1, [Have PEAP authentication support])) -AM_CONDITIONAL([PPP_WITH_PEAP], test "x${enable_peap}" != "xno") +AM_CONDITIONAL([PPP_WITH_PEAP], test "x${enable_peap}" != "xno" && test "x${enable_microsoft_extensions}" != "xno") # # Disable OpenSSL engine support @@ -359,6 +359,5 @@ Features enabled CBCP.................: ${enable_cbcp:-no} IPV6CP...............: ${enable_ipv6cp:-yes} EAP-TLS..............: ${enable_eaptls:-yes} - PEAP.................: ${enable_peap:-yes} systemd notifications: ${enable_systemd:-no} "