[lxc-devel] [PATCH] Fix check for openpty
Stéphane Graber
stgraber at ubuntu.com
Sat Jan 12 04:24:12 UTC 2013
On 01/11/2013 11:17 PM, Serge Hallyn wrote:
> 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?)
The AC_CHECK_LIB call is only there to make the subsequent
AC_CHECK_FUNCS call succeed for openpty. That seemed a little weird to
me too, but that's what
http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Generic-Functions.html
says you should do...
>> ---
>> 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
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130111/8767de35/attachment.pgp>
More information about the lxc-devel
mailing list