Hello All,
[[this a bug I am encountering while merging the trunk into GCC MELT, but I can reproduce it under trunk only, so I don"t speak of MELT anymore; very probably I have bad versions of required utilities, but I cannot find which]] I have a pristine GCC trunk rev 167234 under /usr/src/Lang/gcc-trunk-bstarynk I want to regenerate its topmost ./configure so I run the following commands under the source tree /usr/src/Lang/gcc-trunk-bstarynk ## clean up every auto* dirt % rm -rf autom4te.cache */autom4te.cache ### version of autogen, and then I run it % autogen --version autogen (GNU AutoGen) - The Automated Program Generator - Ver. 5.10 % autogen Makefile.def ## version of autoconf, and then I run it % autoconf --version autoconf (GNU Autoconf) 2.64 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David J. MacKenzie and Akim Demaille. % autoconf ## go into GCC cd gcc ## version of autoheader, and then run it % autoheader --version autoheader (GNU Autoconf) 2.64 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Roland McGrath and Akim Demaille. % autoheader ## go back to topmost source directory ## ask for differences % 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 ########## And then of course running the regenerated configure fails. checking for the correct version of the gmp/mpfr/mpc libraries... yes checking for version 0.10 (or later revision) of PPL... yes checking for installed CLooG PPL Legacy... PPL Legacy checking for version 0.15.5 (or later revision) of CLooG... yes *** This configuration is not supported in the following subdirectories: gnattools target-libada target-libgfortran target-libffi target-zlib target-libjava target-boehm-gc (Any other directories should still work fine.) checking for default BUILD_CONFIG... bootstrap-debug checking for bison... bison -y checking for bison... bison checking for gm4... no checking for gnum4... no checking for m4... m4 checking for flex... flex checking for flex... flex checking for makeinfo... makeinfo checking for expect... expect checking for runtest... runtest checking for ar... ar checking for as... as checking for dlltool... no checking for ld... ld checking for lipo... no checking for nm... nm checking for ranlib... ranlib checking for strip... strip checking for windres... no checking for windmc... no checking for objcopy... objcopy checking for objdump... objdump checking for cc... cc checking for c++... c++ checking for gcc... gcc checking for gcj... no checking for gfortran... no checking for gccgo... no checking for ar... no checking for ar... ar checking for as... no checking for as... as checking for dlltool... no checking for dlltool... no checking for ld... no checking for ld... ld checking for lipo... no checking for lipo... no checking for nm... no checking for nm... nm checking for objdump... no checking for objdump... objdump checking for ranlib... no checking for ranlib... ranlib checking for strip... no checking for strip... strip checking for windres... no checking for windres... no checking for windmc... no checking for windmc... no checking where to find the target ar... host tool checking where to find the target as... host tool checking where to find the target cc... just compiled checking where to find the target c++... /usr/src/Lang/gcc-trunk-bstarynk/configure: line 13361: syntax error near unexpected token `c++,*' /usr/src/Lang/gcc-trunk-bstarynk/configure: line 13361: ` *, c++,*) ;;' Does anyone have an idea of what I am doing wrong? AFAIK, trunk still requires autoconf 2.64? Or what is the correct procedure to regenerate a correct ./configure ? Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***