* Makefile.in (MAKEINFO): Use "missing" for makeinfo older than 4.0.
[deliverable/binutils-gdb.git] / Makefile.in
index 0cfeb53dc09a937ef398b29fed859277fb72756c..2b713fa578748f7f87b5b4123cad48c40ac41904 100644 (file)
@@ -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
This page took 0.024084 seconds and 4 git commands to generate.