diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-01-08 10:07:33 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-01-08 10:07:33 (GMT) |
commit | fd9a72ad8994fd90cec26ed1ca5f8044719e24e5 (patch) | |
tree | 182cf077a93e06154d8c58024789691a7d2f9b66 /configure.in | |
parent | 0c6e2f16408efa2f8ca79e9679d5f78857fc66d2 (diff) | |
download | cpython-fd9a72ad8994fd90cec26ed1ca5f8044719e24e5.zip cpython-fd9a72ad8994fd90cec26ed1ca5f8044719e24e5.tar.gz cpython-fd9a72ad8994fd90cec26ed1ca5f8044719e24e5.tar.bz2 |
Patch #881820: look for openpty and forkpty also in libbsd.
Will backport.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 67d1903..5bdd903 100644 --- a/configure.in +++ b/configure.in @@ -2273,8 +2273,18 @@ void* p = setgroups, # check for openpty and forkpty -AC_CHECK_FUNCS(openpty,, AC_CHECK_LIB(util,openpty, [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil"])) -AC_CHECK_FUNCS(forkpty,, AC_CHECK_LIB(util,forkpty, [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lutil"])) +AC_CHECK_FUNCS(openpty,, + AC_CHECK_LIB(util,openpty, + [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil"], + AC_CHECK_LIB(bsd,openpty, [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lbsd"]) + ) +) +AC_CHECK_FUNCS(forkpty,, + AC_CHECK_LIB(util,forkpty, + [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lutil"], + AC_CHECK_LIB(bsd,forkpty, [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lbsd"]) + ) +) # check for long file support functions AC_CHECK_FUNCS(fseek64 fseeko fstatvfs ftell64 ftello statvfs) |