getpass: Make sure to get system declaration on some platforms.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Nov 2010 13:23:57 +0000 (14:23 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 27 Nov 2010 13:23:57 +0000 (14:23 +0100)
* m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
gl_USE_SYSTEM_EXTENSIONS.
* modules/getpass (Depends-on): Add extensions.

ChangeLog
m4/getpass.m4
modules/getpass

index 5f32d447adcec3bb8bc40612bd62465bae664e1c..b963f3157d2c1c5c146e03f125240a4774b4bbdc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-11-26  Bruno Haible  <bruno@clisp.org>
+
+       getpass: Make sure to get system declaration on some platforms.
+       * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
+       gl_USE_SYSTEM_EXTENSIONS.
+       * modules/getpass (Depends-on): Add extensions.
+
 2010-11-26  Bruno Haible  <bruno@clisp.org>
 
        iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
index cb80a65c528b3d5ea9ff08c13c17c82faaf645c6..8072e4644246253e06dc3990e1d2ea4ca5cf763f 100644 (file)
@@ -1,4 +1,4 @@
-# getpass.m4 serial 11
+# getpass.m4 serial 12
 dnl Copyright (C) 2002-2003, 2005-2006, 2009-2010 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -8,6 +8,9 @@ dnl with or without modifications, as long as this notice is preserved.
 # Provide a getpass() function if the system doesn't have it.
 AC_DEFUN([gl_FUNC_GETPASS],
 [
+  dnl Persuade Solaris <unistd.h> and <stdlib.h> to declare getpass().
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
   AC_REPLACE_FUNCS([getpass])
   AC_CHECK_DECLS_ONCE([getpass])
   if test $ac_cv_func_getpass = no; then
@@ -19,6 +22,9 @@ AC_DEFUN([gl_FUNC_GETPASS],
 # arbitrary length (not just 8 bytes as on HP-UX).
 AC_DEFUN([gl_FUNC_GETPASS_GNU],
 [
+  dnl Persuade Solaris <unistd.h> and <stdlib.h> to declare getpass().
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
   AC_CHECK_DECLS_ONCE([getpass])
   dnl TODO: Detect when GNU getpass() is already found in glibc.
   AC_LIBOBJ([getpass])
index 7dba7e6bb267c3a3297de452e9531b32e0a74768..161c151273d4bd68c78a127bc2c19c310faf79c9 100644 (file)
@@ -7,6 +7,7 @@ lib/getpass.c
 m4/getpass.m4
 
 Depends-on:
+extensions
 fseeko
 getline
 stdbool