autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_PROG_SED cmp->diff patch for DOS


From: Paul Eggert
Subject: AC_PROG_SED cmp->diff patch for DOS
Date: 26 Jan 2004 15:18:58 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

I installed the following obvious little patch:

2004-01-26  Paul Eggert  <address@hidden>
        
        * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
        otherwise "make check" fails because it forbids cmp (I guess
        because cmp treats files as binary on DOS-like systems).

Index: programs.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/programs.m4,v
retrieving revision 1.18
retrieving revision 1.19
diff -p -u -r1.18 -r1.19
--- programs.m4 23 Jan 2004 08:21:51 -0000      1.18
+++ programs.m4 26 Jan 2004 23:16:52 -0000      1.19
@@ -536,7 +536,7 @@ for ac_prog in sed gsed; do
         cp conftest.in conftest.nl
         echo '' >> conftest.nl
         "$ac_sed" -e 's/a$//' < conftest.nl >conftest.out || break
-        cmp conftest.out conftest.nl >/dev/null 2>&1 || break
+        diff conftest.out conftest.nl >/dev/null 2>&1 || break
         ac_count=`expr $ac_count + 1`
         if test $ac_count -gt $ac_max; then
           ac_max=$ac_count




reply via email to

[Prev in Thread] Current Thread [Next in Thread]