diff options
author | Eric BĂ©nard <eric@eukrea.com> | 2013-04-25 00:27:25 +0200 |
---|---|---|
committer | Dengke Du <dengke.du@windriver.com> | 2017-07-11 03:20:08 -0400 |
commit | 22037d5fba702d76b5df962bb3c08d1b20b9f27d (patch) | |
tree | 6040915d096a58eb572224a198a9752fa5272d59 | |
parent | 785459d31bca1c4aa940ab62ede659a2d0311ecf (diff) |
configure: add a variable to allow openpty check to be cached
Signed-off-by: Dengke Du <dengke.du@windriver.com>
-rw-r--r-- | configure.ac | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 8be542a..bc10726 100644 --- a/configure.ac +++ b/configure.ac @@ -269,15 +269,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,1,[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], |