+2010-09-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ tests: normalize trailing spaces in gcc -E -dD output.
+ * tests/compile.at (AC_LANG_SOURCE example)
+ (AC_LANG_PROGRAM example): Remove trailing spaces before
+ comparing with expected output. Fixes testsuite failure
+ with GCC 2.95.3 on Haiku.
+ Report by Scott McCreary.
+
2010-09-22 Eric Blake <eblake@redhat.com>
Release Version 2.68.
# Note that the output may contain more defines and lines matching
# # 1 "conftest.c"
# so delete everything before the interesting output.
-AT_CHECK([sed -n '/#define PACKAGE/,$p' stdout], [],
+AT_CHECK([sed -n 's/ *$//; /#define PACKAGE/,$p' stdout], [],
[[#define PACKAGE_NAME "Hello"
#define PACKAGE_TARNAME "hello"
#define PACKAGE_VERSION "1.0"
# Note that the output may contain more defines and lines matching
# # 1 "conftest.c"
# so delete everything before the interesting output.
-AT_CHECK([sed -n '/#define PACKAGE/,$p' stdout], [],
+AT_CHECK([sed -n 's/ *$//; /#define PACKAGE/,$p' stdout], [],
[[#define PACKAGE_NAME "Hello"
#define PACKAGE_TARNAME "hello"
#define PACKAGE_VERSION "1.0"