diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-09 23:54:10 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-09 23:54:10 +0000 |
commit | 942fa9f9bad04cc75862b72fabc8f4ff617cdafb (patch) | |
tree | 69e953e0646dfbec8015ef57a8c325db635daa03 /m4 | |
parent | 25ef69613afa3d3e727203c74b7c011f87813663 (diff) | |
download | gnulib-942fa9f9bad04cc75862b72fabc8f4ff617cdafb.tar.gz |
Add getpass.h, so it's properly declared.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ChangeLog | 5 | ||||
-rw-r--r-- | m4/getpass.m4 | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog index d85088454e..5b5b3470b8 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -4,6 +4,11 @@ * sha1.m4: Renamed from sha.m4. (gl_SHA1): Renamed from gl_SHA. All uses changed. +2004-08-08 Simon Josefsson <jas@extundo.com> + + * getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): + Check getpass declaration. + 2004-08-06 Paul Eggert <eggert@cs.ucla.edu> More merge from coreutils. diff --git a/m4/getpass.m4 b/m4/getpass.m4 index 4449bc5fb6..0c4d8050f2 100644 --- a/m4/getpass.m4 +++ b/m4/getpass.m4 @@ -1,4 +1,4 @@ -# getpass.m4 serial 3 +# getpass.m4 serial 4 dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General @@ -10,6 +10,7 @@ dnl the same distribution terms as the rest of that program. AC_DEFUN([gl_FUNC_GETPASS], [ AC_REPLACE_FUNCS(getpass) + AC_CHECK_DECLS_ONCE(getpass) if test $ac_cv_func_getpass = no; then gl_PREREQ_GETPASS fi @@ -19,6 +20,7 @@ AC_DEFUN([gl_FUNC_GETPASS], # arbitrary length (not just 8 bytes as on HP-UX). AC_DEFUN([gl_FUNC_GETPASS_GNU], [ + AC_CHECK_DECLS_ONCE(getpass) dnl TODO: Detect when GNU getpass() is already found in glibc. AC_LIBOBJ(getpass) gl_PREREQ_GETPASS |