On 09/23/2010 10:34 PM, Ralf Wildenhues wrote:
-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"
@@ -238,7 +238,7 @@ AT_CHECK_CONFIGURE([], [], [stdout])
  # 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], [],

This second instance is a copy-and-paste error, it should be identical to the first line replacement above.

--
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Reply via email to