diff options
Diffstat (limited to 'poky/meta/recipes-core/dropbear/dropbear/0003-configure.patch')
-rw-r--r-- | poky/meta/recipes-core/dropbear/dropbear/0003-configure.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/poky/meta/recipes-core/dropbear/dropbear/0003-configure.patch b/poky/meta/recipes-core/dropbear/dropbear/0003-configure.patch new file mode 100644 index 000000000..8469a50ef --- /dev/null +++ b/poky/meta/recipes-core/dropbear/dropbear/0003-configure.patch @@ -0,0 +1,43 @@ +From 58dd24a80ca0f400d0761afd9ce2b7f684fc9125 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com> +Date: Thu, 25 Apr 2013 00:27:25 +0200 +Subject: [PATCH] configure: add a variable to allow openpty check to be cached + +Upstream-Status: Submitted [ https://github.com/mkj/dropbear/pull/48 ] + +Signed-off-by: Dengke Du <dengke.du@windriver.com> +--- + configure.ac | 11 ++++++++--- + 1 file changed, 8 insertions(+), 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 893b904..245408d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -177,15 +177,20 @@ AC_ARG_ENABLE(openpty, + AC_MSG_NOTICE(Not using openpty) + else + AC_MSG_NOTICE(Using openpty if available) +- AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY,,Have openpty() function)]) ++ AC_SEARCH_LIBS(openpty, util, [dropbear_cv_func_have_openpty=yes]) + fi + ], + [ + AC_MSG_NOTICE(Using openpty if available) +- AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY)]) ++ AC_SEARCH_LIBS(openpty, util, [dropbear_cv_func_have_openpty=yes]) + ] + ) +- ++ ++if test "x$dropbear_cv_func_have_openpty" = "xyes"; then ++ AC_DEFINE(HAVE_OPENPTY,,Have openpty() function) ++ no_ptc_check=yes ++ no_ptmx_check=yes ++fi + + AC_ARG_ENABLE(syslog, + [ --disable-syslog Don't include syslog support], +-- +2.8.1 + |