]> git.draconx.ca Git - dxcommon.git/commit
DX_AUTOMAKE_COMPAT: Fix compile with newer Automake.
authorNick Bowler <nbowler@draconx.ca>
Thu, 7 Dec 2023 01:56:24 +0000 (20:56 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 7 Dec 2023 01:56:24 +0000 (20:56 -0500)
commit7029e258114ecffe7a80be495fba50a70e6ab00c
tree299c3dcdeab1f5206f02675d6b5e0e43fc0385e0
parent8c45dd9fec485578a09dbf541d4209dcf77acd5f
DX_AUTOMAKE_COMPAT: Fix compile with newer Automake.

Current versions of Automake's compile script depend on shell functions
which are not supported by ULTRIX 4.5 /bin/sh.

Now ksh does support these and configure does find and use this shell
on ULTRIX, but compile starts with #!/bin/sh so when it is executed
directly, it is run with /bin/sh instead of the shell we want.

This is a bit tricky to work around since Automake updates $CC (if
needed) to refer to the compile script, which is used throughout
the configure run.  So we can't just patch it up whenever, it has
to be done early on.  AC_BEFORE can be used to at least warn if the
patches are ineffective.
configure.ac
m4/am-compat.m4
m4/base.m4
m4/gl-patches.m4