[lxc-devel] [PATCH] Fix check for openpty

Serge Hallyn serge.hallyn at canonical.com
Sat Jan 12 04:17:53 UTC 2013


Quoting Stéphane Graber (stgraber at ubuntu.com):
> The previous implementation of the openpty check was always returning
> 'no' as openpty is typically defined in util.
> 
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>

But if I read the docs right
(http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Libraries.html)
this will cause HAVE_LIBUTIL to be set...  not HAVE_OPENPTY.

is that what you want?  (or did I misread the docs?)

> ---
>  configure.ac | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configure.ac b/configure.ac
> index dd50701..d1f5ad9 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -227,6 +227,7 @@ AC_CHECK_HEADERS([sys/signalfd.h pty.h sys/capability.h sys/personality.h utmpx.
>  AC_CHECK_FUNCS([setns pivot_root sethostname unshare])
>  
>  # Check for some functions
> +AC_CHECK_LIB(util, openpty)
>  AC_CHECK_FUNCS([openpty hasmntopt setmntent endmntent])
>  AC_CHECK_FUNCS([getline],
>  	AM_CONDITIONAL(HAVE_GETLINE, true)
> -- 
> 1.8.0
> 
> 
> ------------------------------------------------------------------------------
> Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
> much more. Get web development skills now with LearnDevNow -
> 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122812
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel




More information about the lxc-devel mailing list