Added forkpty() and cfmakeraw() fallback implementations if they don't exist.
Signed-off-by: Timo Sirainen <tss@iki.fi>
This commit is contained in:
committed by
Keith Winstein
parent
cc0542dfe1
commit
0c5307f345
+7
-1
@@ -198,7 +198,7 @@ AC_TYPE_UINTPTR_T
|
||||
# Checks for library functions.
|
||||
AC_FUNC_FORK
|
||||
AC_FUNC_MBRTOWC
|
||||
AC_CHECK_FUNCS([gettimeofday setrlimit inet_ntoa iswprint memchr memset nl_langinfo posix_memalign setenv setlocale sigaction socket strchr strdup strncasecmp strtok strerror strtol wcwidth])
|
||||
AC_CHECK_FUNCS([gettimeofday setrlimit inet_ntoa iswprint memchr memset nl_langinfo posix_memalign setenv setlocale sigaction socket strchr strdup strncasecmp strtok strerror strtol wcwidth cfmakeraw])
|
||||
|
||||
AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Define if clock_gettime is available.])])
|
||||
|
||||
@@ -224,6 +224,12 @@ AC_CHECK_DECL([forkpty],
|
||||
, [[#include <sys/types.h>
|
||||
#include <libutil.h>]])
|
||||
|
||||
AC_CHECK_LIB([util], [forkpty], [
|
||||
AC_DEFINE([HAVE_FORKPTY],, [Define if you have forkpty().])
|
||||
LIBUTIL="-lutil"
|
||||
AC_SUBST([LIBUTIL])
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING([whether pipe2(..., O_CLOEXEC) is supported])
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
|
||||
Reference in New Issue
Block a user