This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: config-ml.in questions.
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: gcc-patches at gcc dot gnu dot org, Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Date: Mon, 26 Nov 2007 19:58:36 +0100
- Subject: Re: config-ml.in questions.
- References: <20071122215635.GE3258@ins.uni-bonn.de>
:ADDPATCH configure:
Hello,
please consider this patch, and if good, apply to GCC and src.
FWIW, I have only tested it as part of Automake's multlib.test
(where it fixes the failure, if the other patch I posted for
the test is applied to Automake as well).
And yes, there were changes in all the copyright years added.
Thanks,
Ralf
2007-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* config-ml.in (multi-clean): Substitute ${Makefile}.
Remove superfluous ${Makefile} in list.
Index: config-ml.in
===================================================================
--- config-ml.in (revision 130431)
+++ config-ml.in (working copy)
@@ -1,8 +1,8 @@
# Configure fragment invoked in the post-target section for subdirs
# wanting multilib support.
#
-# Copyright (C) 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
-# Free Software Foundation, Inc.
+# Copyright (C) 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2007 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -586,8 +586,13 @@
true; \
else \
lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
- for dir in ${Makefile} $(MULTIDIRS); do \
- if [ -f ../$${dir}/$${lib}/${Makefile} ]; then \
+ for dir in : $(MULTIDIRS); do \
+ test $$dir != : || continue; \
+EOF
+cat >>Multi.tem <<EOF
+ if [ -f ../\$\${dir}/\$\${lib}/${Makefile} ]; then \\
+EOF
+cat >>Multi.tem <<\EOF
if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) $(DO)); \
then true; \
else exit 1; \