-AC_ARG_ENABLE([pty],
- AS_HELP_STRING([--disable-pty],
- [disables pty support (default enabled)]),
- [enable_pty=n],[enable_pty=y])
-
-if test "$enable_pty" = y; then
- AC_CHECK_LIB([util], [forkpty], [],
- AC_MSG_ERROR([Need util library (forkpty function) to compile pty support.]))
- CFLAGS="$CFLAGS -DUSE_PTY"
-fi
-