From: Paul Eggert Date: Sat, 5 Feb 2005 06:51:45 +0000 (+0000) Subject: (AT_CMP): Use diff directly on input files rather than copying them. X-Git-Tag: AUTOCONF-2.59c~456 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19ead6fec4e74f5a1fa017d8159d3f879fa0bc9a;p=thirdparty%2Fautoconf.git (AT_CMP): Use diff directly on input files rather than copying them. --- diff --git a/tests/local.at b/tests/local.at index ca429d788..0dc7f641a 100644 --- a/tests/local.at +++ b/tests/local.at @@ -34,12 +34,10 @@ AT_TESTED([autom4te autoconf autoheader autoupdate autoreconf ifnames]) # AT_CMP(FILE-1, FILE-2) # ---------------------- -# Check FILE-1 and FILE-2 for equality, like `cmp FILE-1 FILE-2'. This macro -# clobbers `expout'. +# Check FILE-1 and FILE-2 for equality, like `cmp FILE-1 FILE-2'. m4_define([AT_CMP], [m4_ifval([$2],, [m4_fatal([AT_CMP takes two arguments.])])[]dnl -cp -f "$1" expout -AT_CHECK([cat "$2"], 0, [expout]) +AT_CHECK([$at_diff "$1" "$2"]) ])# AT_CMP @@ -330,7 +328,7 @@ do { $GREP -v \ '^\(ac\|as\)_ ^\(PPID\|RANDOM\|SECONDS\|'\'\\\$\''\)= -^[[^=]]*=$' $act_file +^[[^=]]*=$' $act_file $GREP ^ac_cv $act_file ; } | # Lines that do not look like `foo=bar' are probably latter lines of # multiline values; trim them.