+2010-08-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Fix AC_LANG_SOURCE and AC_LANG_PROGRAM tests.
+ * tests/compile.at (AC_LANG_SOURCE example)
+ (AC_LANG_PROGRAM example): Fix broken sed script for
+ extracting the interesting part of the conftest.c file.
+ Fixes test failure on Haiku.
+ * THANKS: Update.
+ Report by Scott McCreary.
+
2010-08-03 Eric Blake <eblake@redhat.com>
docs: mention bash bug with word splitting
Sander Niemeijer niemeijer@science-and-technology.nl
santilĂn listas@gestiong.org
Scott Bambrough scottb@corelcomputer.com
+Scott McCreary scottmc2@gmail.com
Scott Stanton stanton@scriptics.com
Sebastian Freundt hroptatyr@gna.org
Sergey Poznyakoff ?
AT_CHECK_AUTOCONF
AT_CHECK_CONFIGURE([], [], [stdout])
# Taken from autoconf.texi:Generating Sources.
-# Note that the output may contain more than one line matching
+# Note that the output may contain more defines and lines matching
# # 1 "conftest.c"
-# so delete everything until the last one.
-AT_CHECK([sed '1,/# 1 "conftest\.c"/d' stdout], [],
-[[
-#define PACKAGE_NAME "Hello"
+# so delete everything before the interesting output.
+AT_CHECK([sed -n '/#define PACKAGE/,$p' stdout], [],
+[[#define PACKAGE_NAME "Hello"
#define PACKAGE_TARNAME "hello"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "Hello 1.0"
AT_CHECK_AUTOCONF
AT_CHECK_CONFIGURE([], [], [stdout])
# Taken from autoconf.texi:Generating Sources.
-# Note that the output may contain more than one line matching
+# Note that the output may contain more defines and lines matching
# # 1 "conftest.c"
-# so delete everything until the last one.
-AT_CHECK([sed '1,/# 1 "conftest\.c"/d' stdout], [],
-[[
-#define PACKAGE_NAME "Hello"
+# so delete everything before the interesting output.
+AT_CHECK([sed -n '/#define PACKAGE/,$p' stdout], [],
+[[#define PACKAGE_NAME "Hello"
#define PACKAGE_TARNAME "hello"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "Hello 1.0"