This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Test for makeinfo in the build tree, not for its Makefile
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: binutils at sources dot redhat dot com, gdb-patches at sources dot redhat dot com
- Date: 23 Feb 2002 07:06:38 -0300
- Subject: Test for makeinfo in the build tree, not for its Makefile
- Organization: GCC Team, Red Hat
For all programs in the top-level Makefile that we test for, makeinfo
is the only one whose Makefile is tested for, as opposed to the actual
program. I don't see the point of this inconsistency, and it has
actually caused me some problems. While the real problem was the lack
of a dependence on all-texinfo for the project I was playing with,
I can't see any for this discrepancy, so I'm fixing it.
Index: ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* Makefile.in (MAKEINFO): Don't assume makeinfo will be built just
because its Makefile is there; test for the executable instead.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/Makefile.in,v
retrieving revision 1.92
diff -u -p -r1.92 Makefile.in
--- Makefile.in 2002/02/11 22:32:11 1.92
+++ Makefile.in 2002/02/23 10:02:57
@@ -142,7 +142,7 @@ M4 = `if [ -f $$r/m4/m4 ] ; \
# 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 ] ; \
+MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
then echo $$r/texinfo/makeinfo/makeinfo ; \
else if (makeinfo --version \
| egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer