]> git.ipfire.org Git - thirdparty/libtool.git/commit
libtool.m4: Avoid a broken AC_TRY_EVAL macro
authorVincent Lefevre <vincent@vinc17.net>
Tue, 2 Oct 2018 17:25:29 +0000 (20:25 +0300)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Fri, 18 Oct 2024 14:17:12 +0000 (17:17 +0300)
commitf7d11c71dbf23b6a7bc8a273782d3aa3dab08b23
tree1173bd1f20c3749f7ade0fc7035f1352dd47565e
parent549b52175aa038fb8f5284e9b6dca957e391708b
libtool.m4: Avoid a broken AC_TRY_EVAL macro

As said in the Autoconf source, the AC_TRY_EVAL macro is dangerous and
undocumented, and should not be used.
In particular, the one related to nm yields binary data in the config.log
file with dash, where "echo \\1" (echo with the argument \1) produces the
control character ^A instead of the usual \1 with most shells (POSIX says
that the result is implementation-defined). See:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910076
This patch attempts to replace this AC_TRY_EVAL occurrence by code with
similar behavior, but using $ECHO instead of echo in order to avoid the
backslash issue.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21309
m4/libtool.m4