summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorchleun.moon <chleun.moon@samsung.com>2017-04-20 02:00:24 (GMT)
committerchleun.moon <chleun.moon@samsung.com>2017-04-20 02:00:58 (GMT)
commit6289f6a099afd889a013f895fca9df34028c2fb7 (patch)
tree1e5f88972bb0a66f0ed1817b7cbb4c49b1a8ff9a /configure.ac
parentd21359e658ca906a560143a81ac1ea6e765e9dd4 (diff)
parent13294d79e3412a68c541fd6a22840bf85521a420 (diff)
downloadconnman-6289f6a099afd889a013f895fca9df34028c2fb7.zip
connman-6289f6a099afd889a013f895fca9df34028c2fb7.tar.gz
connman-6289f6a099afd889a013f895fca9df34028c2fb7.tar.bz2
Merge branch 'ipsec' into tizenrefs/changes/26/126026/1
Change-Id: I2ecaece689f43bb0c03c9c5929274bfe43e346b0 Signed-off-by: cheoleun <chleun.moon@samsung.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac29
1 files changed, 29 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e765625..cd2013f 100755
--- a/configure.ac
+++ b/configure.ac
@@ -107,6 +107,34 @@ fi
AM_CONDITIONAL(OPENVPN, test "${enable_openvpn}" != "no")
AM_CONDITIONAL(OPENVPN_BUILTIN, test "${enable_openvpn}" = "builtin")
+AC_ARG_WITH(ipsec, AC_HELP_STRING([--with-ipsec=PROGRAM],
+ [specify location of ipsec binary]), [path_ipsec=${withval}])
+
+AC_ARG_ENABLE(ipsec,
+ AC_HELP_STRING([--enable-ipsec], [enable ipsec support]),
+ [enable_ipsec=${enableval}], [enable_ipsec="no"])
+if (test "${enable_ipsec}" != "no"); then
+ PKG_CHECK_MODULES(GIO, gio-2.0 >= 2.28, dummy=yes,
+ AC_MSG_ERROR(GIO >= 2.28 is required))
+ AC_SUBST(GIO_CFLAGS)
+ AC_SUBST(GIO_LIBS)
+ PKG_CHECK_MODULES(OPENSSL, openssl, dummy=yes,
+ AC_MSG_ERROR(openssl library is required))
+ AC_SUBST(OPENSSL_CFLAGS)
+ AC_SUBST(OPENSSL_LIBS)
+ if (test -z "${path_ipsec}"); then
+ AC_PATH_PROG(IPSEC, [charon], [/usr/bin/charon], $PATH:/usr/bin)
+ if (test -z "${IPSEC}"); then
+ AC_MSG_ERROR(ipsec binary not found)
+ fi
+ else
+ IPSEC="${path_ipsec}"
+ AC_SUBST(IPSEC)
+ fi
+fi
+AM_CONDITIONAL(IPSEC, test "${enable_ipsec}" != "no")
+AM_CONDITIONAL(IPSEC_BUILTIN, test "${enable_ipsec}" = "builtin")
+
AC_ARG_WITH(vpnc, AC_HELP_STRING([--with-vpnc=PROGRAM],
[specify location of vpnc binary]), [path_vpnc=${withval}])
@@ -402,6 +430,7 @@ fi
AM_CONDITIONAL(VPN, test "${enable_openconnect}" != "no" -o \
"${enable_openvpn}" != "no" -o \
+ "${enable_ipsec}" != "no" -o \
"${enable_vpnc}" != "no" -o \
"${enable_l2tp}" != "no" -o \
"${enable_pptp}" != "no")