]> Savannah Git Hosting - gnulib.git/commit
getprogname: Avoid using HAVE_* macros in *.in.h files.
authorBruno Haible <bruno@clisp.org>
Thu, 13 Apr 2023 19:25:59 +0000 (21:25 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 13 Apr 2023 19:25:59 +0000 (21:25 +0200)
commita194861e540c2e278c716022f4ca4103710d1d8f
tree26c273614ea96099dadae14b1da94a58f1126da7
parentc5a9b3eaf8d48c19bf39fbcc7bf0d930d988efed
getprogname: Avoid using HAVE_* macros in *.in.h files.

* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
HAVE_DECL_PROGRAM_INVOCATION_NAME.
* m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Require gl_STDLIB_H_DEFAULTS
and gl_USE_SYSTEM_EXTENSIONS. Set HAVE_DECL_PROGRAM_INVOCATION_NAME.
* modules/stdlib (Makefile.am): Substitute
HAVE_DECL_PROGRAM_INVOCATION_NAME.
* lib/stdlib.in.h (getprogname): Test HAVE_DECL_PROGRAM_INVOCATION_NAME
as an Autoconf variable.
ChangeLog
lib/stdlib.in.h
m4/getprogname.m4
m4/stdlib_h.m4
modules/stdlib