1 dnl beta tests for openpty support
2 AC_MSG_CHECKING(whether we can use openpty)
5 AC_HELP_STRING([--disable-openpty],[disable openpty (UNIX98 terminals) support [default=enabled]]),
7 if test "$ac_use_openpty" = "yes"; then
13 int main(int argc, char* argv) {
14 int master_fd, slave_fd;
17 result = openpty(&master_fd, &slave_fd, 0, 0, 0);
21 ], [ac_use_openpty="yes"], [ac_use_openpty="no"])
24 if test "$ac_use_openpty" = "yes"; then
25 AC_DEFINE(HAVE_OPENPTY, 1, [Defines whether we can use the openpty() function])
31 dnl Set preprocessor variable of how to get cwd from a process
32 AC_MSG_CHECKING(how cwd can be be found by seperate process)
34 *-*-linux*) cwd_method='proc' ;;
37 AC_MSG_RESULT($cwd_method)
40 proc) AC_DEFINE(HAVE_PROC_CWD, 1, [Defines whether /proc/`pid`/cwd exists]) ;;