1 From f59c5269f92d59a5296cbfeeb682d42095cd88ad Mon Sep 17 00:00:00 2001
2 From: Wenzong Fan <wenzong.fan@windriver.com>
3 Date: Thu, 18 Sep 2014 02:24:07 -0400
4 Subject: [PATCH] gstreamer1.0-plugins-bad: allow to disable libssh2
6 libssh2 is automatically linked to if present, this undetermined
7 dependency may cause build errors like:
9 .../x86_64-poky-linux/4.9.0/ld: cannot find -lssh2
11 libssh2 isn't an oe-core recipe, so allow to disable it from
14 Upstream-Status: Pending
16 Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
18 configure.ac | 23 +++++++++++++++++------
19 1 file changed, 17 insertions(+), 6 deletions(-)
21 diff --git a/configure.ac b/configure.ac
22 index 0e95c5c..12153b4 100644
25 @@ -1901,6 +1901,15 @@ AG_GST_CHECK_FEATURE(CHROMAPRINT, [chromaprint], chromaprint, [
29 +AC_ARG_ENABLE([libssh2],
30 + [ --enable-libssh2 enable LIBSSH2 support @<:@default=auto@:>@],
31 + [case "${enableval}" in
32 + yes) NEED_SSH2=yes ;;
34 + auto) NEED_SSH2=auto ;;
35 + *) AC_MSG_ERROR([bad value ${enableval} for --enable-libssh2]) ;;
36 + esac],[NEED_SSH2=auto])
38 translit(dnm, m, l) AM_CONDITIONAL(USE_CURL, true)
39 AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [
40 PKG_CHECK_MODULES(CURL, libcurl >= 7.21.0, [
41 @@ -1915,12 +1924,14 @@ AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [
45 - PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [
47 - AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available])
51 + if test "x$NEED_SSH2" != "xno"; then
52 + PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [
54 + AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available])
59 AM_CONDITIONAL(USE_SSH2, test "x$HAVE_SSH2" = "xyes")