From patchwork Mon Nov 29 10:54:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: configure related issue: syntax error near unexpected token `c++ X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 73411 Message-Id: To: Basile Starynkevitch Cc: gcc@gcc.gnu.org, gcc-patches@gcc.gnu.org, Alexandre Oliva Date: Mon, 29 Nov 2010 11:54:00 +0100 From: Andreas Schwab List-Id: Basile Starynkevitch writes: > % svn diff > Index: configure > =================================================================== > --- configure (revision 167234) > +++ configure (working copy) > @@ -13358,7 +13358,7 @@ > *) ok=no ;; > esac > case ,${enable_languages}, in > - *,c++,*) ;; > + *, c++,*) ;; > *) ok=no ;; > esac > if test $ok = yes; then It's a bug in configure.ac. Installed as obvious. Andreas. 2010-11-29 Andreas Schwab * configure.ac: Move comment to remove extra space in last argument of GCC_TARGET_TOOL. Index: configure.ac =================================================================== --- configure.ac (revision 167236) +++ configure.ac (working copy) @@ -3235,8 +3235,9 @@ GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar]) GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new]) GCC_TARGET_TOOL(cc, CC_FOR_TARGET, CC, [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/]) +dnl see comments for CXX_FOR_TARGET_FLAG_TO_PASS GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX, - [gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs],dnl see comments for CXX_FOR_TARGET_FLAG_TO_PASS + [gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs], c++) GCC_TARGET_TOOL(c++ for libstdc++, RAW_CXX_FOR_TARGET, CXX, [gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs],