1 # Copyright © 2023 Nick Bowler
3 # Compatibility helper for Autotest test suites. This should be included
4 # before expanding AT_INIT
6 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
7 # This is free software: you are free to do what the fuck you want to.
8 # There is NO WARRANTY, to the extent permitted by law.
10 # Redefine AT_INIT to work around nonportable constructs in current
11 # (as of 2023) Autoconf releases:
13 # - In a shell function, redirections on : are not correctly handled
14 # by Solaris /bin/sh. See the following Autoconf patch for details:
16 # https://lists.gnu.org/archive/html/autoconf-patches/2021-03/msg00000.html
19 m4_bpatsubst(m4_dquote(m4_defn([AT_INIT])),
20 [^\( *\)\(: >"\$at_stdout".*$\)], [\1eval '\2']))