* getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
authorSimon Josefsson <simon@josefsson.org>
Thu, 25 Aug 2005 21:19:07 +0000 (21:19 +0000)
committerSimon Josefsson <simon@josefsson.org>
Thu, 25 Aug 2005 21:19:07 +0000 (21:19 +0000)
__fsetlocking.

m4/ChangeLog
m4/getpass.m4

index 91f133b..8c1ee84 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-24  Simon Josefsson  <jas@extundo.com>
+
+       * getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
+       __fsetlocking.
+
 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
 
        * regex.m4: Add AC_PREREQ(2.50).
index 3816253..3d7d33b 100644 (file)
@@ -35,7 +35,7 @@ AC_DEFUN([gl_FUNC_GETPASS_GNU],
 
 # Prerequisites of lib/getpass.c.
 AC_DEFUN([gl_PREREQ_GETPASS], [
-  AC_CHECK_HEADERS_ONCE(stdio_ext.h)
+  AC_CHECK_HEADERS_ONCE(stdio_ext.h termios.h)
+  AC_CHECK_FUNCS_ONCE(__fsetlocking tcgetattr tcsetattr)
   AC_CHECK_DECLS_ONCE([fflush_unlocked flockfile fputs_unlocked funlockfile putc_unlocked])
-  :
 ])