Commit 8440aa7f authored by Bruno Haible's avatar Bruno Haible

getpass: Move AC_LIBOBJ invocations to module description.

* m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
gl_PREREQ_GETPASS invocations from here...
* modules/getpass (configure.ac): ... to here.
parent 8b5e506d
2011-05-08 Bruno Haible <bruno@clisp.org>
getpass: Move AC_LIBOBJ invocations to module description.
* m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
gl_PREREQ_GETPASS invocations from here...
* modules/getpass (configure.ac): ... to here.
2011-05-08 Bruno Haible <bruno@clisp.org>
getpagesize: Move AC_LIBOBJ invocations to module description.
# getpass.m4 serial 12
# getpass.m4 serial 13
dnl Copyright (C) 2002-2003, 2005-2006, 2009-2011 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
......@@ -11,10 +11,12 @@ 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_FUNCS([getpass])
AC_CHECK_DECLS_ONCE([getpass])
if test $ac_cv_func_getpass = no; then
gl_PREREQ_GETPASS
if test $ac_cv_func_getpass = yes; then
HAVE_GETPASS=1
else
HAVE_GETPASS=0
fi
])
......
......@@ -15,6 +15,10 @@ strdup-posix
configure.ac:
gl_FUNC_GETPASS
if test $HAVE_GETPASS = 0; then
AC_LIBOBJ([getpass])
gl_PREREQ_GETPASS
fi
Makefile.am:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment