diff options
author | 2012-08-11 23:12:04 +0300 | |
---|---|---|
committer | 2012-08-11 17:14:44 -0400 | |
commit | 0c5307f3450099969cd5c7914432a46cfdd11cbf (patch) | |
tree | 189e54bb6ca9fcb094abddb975c445e90f9be6ad /configure.ac | |
parent | cc0542dfe17831f7eab6d344202d573e3c6b9a57 (diff) |
Added forkpty() and cfmakeraw() fallback implementations if they don't exist.
Signed-off-by: Timo Sirainen <tss@iki.fi>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3728eee..ca51c62 100644 --- a/configure.ac +++ b/configure.ac @@ -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> |