bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to test if I've got openpty?


From: Reuben Thomas
Subject: Re: How to test if I've got openpty?
Date: Thu, 31 Jan 2013 13:09:08 +0000

On 30 January 2013 17:02, Reuben Thomas <address@hidden> wrote:
On 30 January 2013 15:25, Reuben Thomas <address@hidden> wrote:
I've included the openpty module in a project, and I see that it doesn't work on all platforms. I assumed that I should test HAVE_OPENPTY to see if I got it, but HAVE_OPENPTY is undefined in my config.h, even though it's set to 1 in config.log. Further, I don't see how HAVE_OPENPTY can be 0, since my glibc/Linux system definitely has openpty.

Possibly the bug is here, in pty.m4:

    if test $gl_cv_func_openpty_const != yes; then
      REPLACE_OPENPTY=1
      AC_DEFINE([HAVE_OPENPTY], [1],
        [Define to 1 if the system has the 'openpty' function.])
    fi

Looks to me as though the "fi" should come immediately after "REPLACE_OPENPTY=1", not at the end of the stanza. Does that seem right?

--
http://rrt.sc3d.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]