+2010-09-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ tests: avoid localization failure due to unstable compiler messages.
+ * tests/testsuite.at (LT_AT_NORMALIZE_COMPILER_OUTPUT):
+ Attempt to normalize temporary file names in error messages.
+ Fixes 'localized compiler messages' test failure on Darwin when
+ creating fat (multi-ABI) libraries.
+
2010-09-13 Peter Rosin <peda@lysator.liu.se>
Prefer $NM @file when the toolchain isn't native to $build.
# - distcc process numbers,
# - ccache file location,
# - newline encoding,
-# - location of the libtool script.
+# - location of the libtool script,
+# - error messages involving unstable temporary file names.
m4_define([LT_AT_NORMALIZE_COMPILER_OUTPUT],
[_ltbase=`$ECHO "$LIBTOOL" | sed 's,^.*/,,'`
-[sed "/^distcc\[[0-9]*\]/d; /^$_ltbase: compile/d" < $1 > $1.t]
+[sed "/^distcc\[[0-9]*\]/d
+ /^$_ltbase: compile/d
+ s/\(tmp\/\{1,\}cc\)\([a-zA-Z0-9_]\{1,\}\)/\1-normalized-tmpname/g" < $1 > $1.t]
LT_AT_UNIFY_NL([$1.t], [m4_default([$2], [$1])])[]dnl
])