This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[applied patch] fix --enable-generated-files-in-srcdir casesyntax
- From: cgd at broadcom dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: 22 Oct 2003 22:37:33 -0700
- Subject: [applied patch] fix --enable-generated-files-in-srcdir casesyntax
i tripped over this when i tried to actually *use*
--enable-generated-files-in-srcdir (on a mips64-linux host, compiling
natively), to work around:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12730
The way you get multiple alternatives in shell case statements is '|'
(not ','). However, following the style of at least one or two other
options that have "yes" or "no" vs. "everything else," I just made it
a wildcard.
Without this patch, parsedir and docobjdir would (did! 8-) remain
empty if --enable-generated-files-in-srcdir was given.
With it, they're set correctly in the presence of that option.
(I wouldn't have time to actually try to fix the problem mentioned in
that bug until... after Thanksgiving. At least with this, i can work
around it...)
cgd
===================================================================
2003-10-22 Chris Demetriou <cgd@broadcom.com>
* configure.in: In --enable-generated-files-in-srcdir option
handling, fix default case handling.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.745
diff -u -p -r1.745 configure.in
--- configure.in 20 Oct 2003 23:45:44 -0000 1.745
+++ configure.in 23 Oct 2003 05:25:31 -0000
@@ -158,7 +158,7 @@ AC_ARG_ENABLE(generated-files-in-srcdir,
[ --enable-generated-files-in-srcdir Put generated files in source dir],
[case ${enableval} in
no) parsedir='$(objdir)'; docobjdir='$(objdir)/doc';;
- yes,*) parsedir='$(srcdir)'; docobjdir='$(srcdir)/doc';;
+ *) parsedir='$(srcdir)'; docobjdir='$(srcdir)/doc';;
esac],
[parsedir='$(objdir)'; docobjdir='$(objdir)/doc';])