On 30 January 2013 17:02, Reuben Thomas <r...@sc3d.org> wrote: > On 30 January 2013 15:25, Reuben Thomas <r...@sc3d.org> 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