]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgcobol: Fix bootstrap for targets without program_invocation_short_name
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 6 May 2025 08:42:40 +0000 (09:42 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 6 May 2025 13:37:48 +0000 (14:37 +0100)
commit67e79da5a3c0deb93cd6df1557affb6994440357
tree229ec2efef1072670a207ca3f8f57b3c2c8f2610
parentf4fa41cd5ccbcc1a45e68c15bda2461e8d7215b9
libgcobol: Fix bootstrap for targets without program_invocation_short_name

program_invocation_short_name is not widely available, however getprogname()
appears to be a suitable replacement.

Amend the library configuration to look for both. Use program_invocation_short_name
in preference to getprogname() when it is available.  If neither is found fall
back to a constant string.

libgcobol/ChangeLog:

* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Check for program_invocation_short_name and
and getprogname().
* libgcobol.cc (default_exception_handler): When the platform
has program_invocation_short_name, use it otherwise fall
back to using getprogname() or a constant string (if neither
interface is available).

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libgcobol/config.h.in
libgcobol/configure
libgcobol/configure.ac
libgcobol/libgcobol.cc