diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2010-11-03 12:36:48 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-11-03 12:36:48 +0100 |
commit | 10409fdd1143e43ac2a15777672d2e36655e4bff (patch) | |
tree | c26bd95c3e1677d5743ac34f69ddd088a8eb8bad /configure.ac | |
parent | 4c2ee9da64453d48eb22ddca90d6cc87249eee86 (diff) | |
download | connman-10409fdd1143e43ac2a15777672d2e36655e4bff.tar.gz connman-10409fdd1143e43ac2a15777672d2e36655e4bff.tar.bz2 connman-10409fdd1143e43ac2a15777672d2e36655e4bff.zip |
openvpn: Add OpenVPN support
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 886c7ae2..94211dc0 100644 --- a/configure.ac +++ b/configure.ac @@ -135,6 +135,23 @@ AC_ARG_ENABLE(portal, AM_CONDITIONAL(PORTAL, test "${enable_portal}" != "no") AM_CONDITIONAL(PORTAL_BUILTIN, test "${enable_portal}" = "builtin") +AC_ARG_WITH(openvpn, AC_HELP_STRING([--with-openvpn=PROGRAM], + [specify location of openvpn binary]), [path_openvpn=${withval}]) + +AC_ARG_ENABLE(openvpn, + AC_HELP_STRING([--enable-openvpn], [enable openvpn support]), + [enable_openvpn=${enableval}], [enable_openvpn="no"]) +if (test "${enable_openvpn}" != "no"); then + if (test -z "${path_openvpn}"); then + AC_PATH_PROG(OPENVPN, [openvpn], [], $PATH:/sbin:/usr/sbin) + else + OPENVPN="${path_openvpn}" + AC_SUBST(OPENVPN) + fi +fi +AM_CONDITIONAL(OPENVPN, test "${enable_openvpn}" != "no") +AM_CONDITIONAL(OPENVPN_BUILTIN, test "${enable_openvpn}" = "builtin") + AC_ARG_ENABLE(loopback, AC_HELP_STRING([--enable-loopback], [enable loopback support]), [enable_loopback=${enableval}], [enable_loopback="no"]) |