summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2012-06-26 17:03:26 +0300
committerDavid Sommerseth <davids@redhat.com>2012-06-27 16:49:30 +0200
commit5a57e201223f7265af0a56859b00a594b0d98f5b (patch)
treeb3afc4e2ad75e88f3f0b61e91ac779d71df2fabf
parent0e77af9e2e3c66150fc26760bdee1172d888f911 (diff)
downloadopenvpn-5a57e201223f7265af0a56859b00a594b0d98f5b.tar.gz
openvpn-5a57e201223f7265af0a56859b00a594b0d98f5b.tar.xz
openvpn-5a57e201223f7265af0a56859b00a594b0d98f5b.zip
build: plugins: set defaults based on platform
pam cannot be compiled on OpenBSD and Windows. down-root cannot be compiled on Windows. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Acked-by: Gert Doering <gert@greenie.muc.de> Acked-by: Samuli Seppänen <samuli@openvpn.net> Message-Id: 1340719406-12157-1-git-send-email-alon.barlev@gmail.com URL: http://article.gmane.org/gmane.network.openvpn.devel/6795 Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r--configure.ac19
1 files changed, 15 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index db19d4a..d3d974d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -195,16 +195,27 @@ AC_ARG_ENABLE(
AC_ARG_ENABLE(
[plugin-auth-pam],
- [AS_HELP_STRING([--disable-plugin-auth-pam], [disable auth-pam plugin @<:@default=yes@:>@])],
+ [AS_HELP_STRING([--disable-plugin-auth-pam], [disable auth-pam plugin @<:@default=platform specific@:>@])],
,
- [enable_plugin_auth_pam="yes"]
+ [
+ case "$host" in
+ *-*-openbsd*) enable_plugin_auth_pam="no";;
+ *-mingw*) enable_plugin_auth_pam="no";;
+ *) enable_plugin_auth_pam="yes";;
+ esac
+ ]
)
AC_ARG_ENABLE(
[plugin-down-root],
- [AS_HELP_STRING([--disable-plugin-down-root], [disable down-root plugin @<:@default=yes@:>@])],
+ [AS_HELP_STRING([--disable-plugin-down-root], [disable down-root plugin @<:@default=platform specific@:>@])],
,
- [enable_plugin_down_root="yes"]
+ [
+ case "$host" in
+ *-mingw*) enable_plugin_down_root="no";;
+ *) enable_plugin_down_root="yes";;
+ esac
+ ]
)
AC_ARG_ENABLE(