diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2001-11-06 07:20:20 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2001-11-06 07:20:20 +0000 |
commit | f08fa01da9c9b89d2a338c2d14f5715f772ad592 (patch) | |
tree | d278f9377dd6027bf507fc42481e1215700f56c9 /Makefile.in | |
parent | c8ab4e6d75f72f96c36fce0418de253677c55713 (diff) | |
download | gdb-f08fa01da9c9b89d2a338c2d14f5715f772ad592.zip gdb-f08fa01da9c9b89d2a338c2d14f5715f772ad592.tar.gz gdb-f08fa01da9c9b89d2a338c2d14f5715f772ad592.tar.bz2 |
* Makefile.in (MAKEINFO): Use "missing" for makeinfo older than 4.0.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 0cfeb53..2b713fa 100644 --- a/Makefile.in +++ b/Makefile.in @@ -141,9 +141,13 @@ M4 = `if [ -f $$r/m4/m4 ] ; \ then echo $$r/m4/m4 ; \ else echo ${DEFAULT_M4} ; fi` +# For an installed makeinfo, we require it to be from texinfo 4 or +# higher, else we use the "missing" dummy. MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \ then echo $$r/texinfo/makeinfo/makeinfo ; \ - else echo makeinfo ; fi` + else if (makeinfo --version \ + | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \ + then echo makeinfo; else echo $$s/missing makeinfo; fi; fi` # This just becomes part of the MAKEINFO definition passed down to # sub-makes. It lets flags be given on the command line while still |