diff options
author | Alan Modra <amodra@gmail.com> | 2016-11-21 20:18:41 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-11-21 21:12:37 +1030 |
commit | 2d7f2507d4d26430da7e32e8fc75f045f634fced (patch) | |
tree | c97afd3c5bdbec515911181fdb9e979ef1a88e8a /gas/Makefile.in | |
parent | 081f6b931dbc4a1f27ac003e2f75a389444ce9e9 (diff) | |
download | gdb-2d7f2507d4d26430da7e32e8fc75f045f634fced.zip gdb-2d7f2507d4d26430da7e32e8fc75f045f634fced.tar.gz gdb-2d7f2507d4d26430da7e32e8fc75f045f634fced.tar.bz2 |
Use ACX_PROG_CMP_IGNORE_INITIAL in gas
* configure.ac: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
* Makefile.am (comparison): Rewrite using do_compare.
* configure: Regenerate.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
Diffstat (limited to 'gas/Makefile.in')
-rw-r--r-- | gas/Makefile.in | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/gas/Makefile.in b/gas/Makefile.in index 84f746d..70578ad 100644 --- a/gas/Makefile.in +++ b/gas/Makefile.in @@ -282,6 +282,7 @@ builddir = @builddir@ cgen_cpu_prefix = @cgen_cpu_prefix@ datadir = @datadir@ datarootdir = @datarootdir@ +do_compare = @do_compare@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ @@ -2745,21 +2746,15 @@ stage3: -mv $(STAGESTUFF) stage3 if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi -# This rule is derived from corresponding code in the Makefile.in for gcc. -# The "tail +16c" is to bypass headers which may include timestamps or -# temporary assembly file names. comparison: x=0 ; \ for file in *.@OBJEXT@ ; do \ - tail +16c ./$$file > tmp-foo1; \ - if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \ - if cmp tmp-foo1 tmp-foo2 ; then \ - true ; \ - else \ - echo $$file differs ; \ - x=1 ; \ - fi ; \ - else true; fi ; \ + f1=./$$file; f2=${against}/$$file; \ + $(do_compare) > /dev/null 2>&1; \ + if test $$? -ne 0; then \ + echo $$file differs ; \ + x=1 ; \ + fi ; \ done ; \ exit $$x -rm -f tmp-foo* |