]> git.draconx.ca Git - dxcommon.git/commitdiff
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)
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.


No differences found