-# pty.m4 serial 8
-dnl Copyright (C) 2010 Free Software Foundation, Inc.
+# pty.m4 serial 9
+dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
[
AC_REQUIRE([gl_PTY_LIB])
- AC_CHECK_FUNCS_ONCE([login_tty])
+ gl_saved_libs="$LIBS"
+ LIBS="$LIBS $PTY_LIB"
+ AC_CHECK_FUNCS([login_tty])
+ LIBS="$gl_saved_LIBS"
if test $ac_cv_func_login_tty = no; then
AC_LIBOBJ([login_tty])
fi