1 |
# getpass.m4 serial 4 |
# getpass.m4 serial 6 |
2 |
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. |
dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc. |
3 |
dnl This file is free software, distributed under the terms of the GNU |
dnl This file is free software; the Free Software Foundation |
4 |
dnl General Public License. As a special exception to the GNU General |
dnl gives unlimited permission to copy and/or distribute it, |
5 |
dnl Public License, this file may be distributed as part of a program |
dnl with or without modifications, as long as this notice is preserved. |
|
dnl that contains a configuration script generated by Autoconf, under |
|
|
dnl the same distribution terms as the rest of that program. |
|
6 |
|
|
7 |
# Provide a getpass() function if the system doesn't have it. |
# Provide a getpass() function if the system doesn't have it. |
8 |
AC_DEFUN([gl_FUNC_GETPASS], |
AC_DEFUN([gl_FUNC_GETPASS], |
9 |
[ |
[ |
10 |
|
AC_LIBSOURCES([getpass.c, getpass.h]) |
11 |
|
|
12 |
AC_REPLACE_FUNCS(getpass) |
AC_REPLACE_FUNCS(getpass) |
13 |
AC_CHECK_DECLS_ONCE(getpass) |
AC_CHECK_DECLS_ONCE(getpass) |
14 |
if test $ac_cv_func_getpass = no; then |
if test $ac_cv_func_getpass = no; then |
20 |
# arbitrary length (not just 8 bytes as on HP-UX). |
# arbitrary length (not just 8 bytes as on HP-UX). |
21 |
AC_DEFUN([gl_FUNC_GETPASS_GNU], |
AC_DEFUN([gl_FUNC_GETPASS_GNU], |
22 |
[ |
[ |
23 |
|
AC_LIBSOURCES([getpass.c, getpass.h]) |
24 |
|
|
25 |
AC_CHECK_DECLS_ONCE(getpass) |
AC_CHECK_DECLS_ONCE(getpass) |
26 |
dnl TODO: Detect when GNU getpass() is already found in glibc. |
dnl TODO: Detect when GNU getpass() is already found in glibc. |
27 |
AC_LIBOBJ(getpass) |
AC_LIBOBJ(getpass) |