From 4b731914f6c70e9c88b4a105787981ab85013947 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 27 Nov 2010 14:23:57 +0100 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ m4/getpass.m4 | 8 +++++++- modules/getpass | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5f32d447ad..b963f3157d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-11-26 Bruno Haible + + 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 iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11. diff --git a/m4/getpass.m4 b/m4/getpass.m4 index cb80a65c52..8072e46442 100644 --- a/m4/getpass.m4 +++ b/m4/getpass.m4 @@ -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 and 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 and 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]) diff --git a/modules/getpass b/modules/getpass index 7dba7e6bb2..161c151273 100644 --- a/modules/getpass +++ b/modules/getpass @@ -7,6 +7,7 @@ lib/getpass.c m4/getpass.m4 Depends-on: +extensions fseeko getline stdbool -- 2.30.2