Commit 4d1af83a authored by Bruno Haible's avatar Bruno Haible

getpass-gnu: Move AC_LIBOBJ invocations to module description.

* m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
* modules/getpass-gnu (configure.ac): ... to here.
parent 8440aa7f
2011-05-08 Bruno Haible <bruno@clisp.org>
getpass-gnu: Move AC_LIBOBJ invocations to module description.
* m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
* modules/getpass-gnu (configure.ac): ... to here.
2011-05-08 Bruno Haible <bruno@clisp.org>
getpass: Move AC_LIBOBJ invocations to module description.
......@@ -29,13 +29,15 @@ 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
dnl We must choose a different name for our function, since on ELF systems
dnl an unusable getpass() in libc.so would override our getpass() if it is
dnl compiled into a shared library.
AC_DEFINE([getpass], [gnu_getpass],
[Define to a replacement function name for getpass().])
REPLACE_GETPASS=1
if test $REPLACE_GETPASS = 1; then
dnl We must choose a different name for our function, since on ELF systems
dnl an unusable getpass() in libc.so would override our getpass() if it is
dnl compiled into a shared library.
AC_DEFINE([getpass], [gnu_getpass],
[Define to a replacement function name for getpass().])
fi
])
# Prerequisites of lib/getpass.c.
......
......@@ -13,6 +13,10 @@ stdbool
configure.ac:
gl_FUNC_GETPASS_GNU
if test $REPLACE_GETPASS = 1; 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