> * Bruno Haible <oe...@pyvfc.bet> [2009-08-08 11:47:01 +0200]: > > Sam Steingold wrote: >> modules which cannot be compiled with c++ (regex, gettimeofday) should depend >> on no-c++ > > This cannot be implemented as you wish. The ability to compile in C mode when > CC="g++" is done through a variable NO_CXX that has to be added to the > compiler > flags. But modifying compiler flags can, in a Makefile.am, only be done on a > per-program or per-library basis, not on a per-compilation-unit basis. > > So, you have to add $(NO_CXX) to the compilation flags for your library > yourself.
fine. my suggestion eliminates two expensive steps: now: import the non-C++ module regenerate all autoconf files try to compile with c++, fail import no-c++ regenerate all autoconf files add NO_CXX to gnulib CFLAGS with my suggestion: import the non-C++ module; no-c++ is automatically included regenerate all autoconf files try to compile with c++, fail add NO_CXX to gnulib CFLAGS import & autoconf regeneration are expensive in both that they take time (and may require Internet access) and require digging around - it is not obvious that no-c++ module exists and does what you want. -- Sam Steingold (http://sds.podval.org/) on Ubuntu 9.04 (jaunty) http://mideasttruth.com http://memri.org http://www.memritv.org http://openvotingconsortium.org http://dhimmi.com http://thereligionofpeace.com The software said it requires Windows 3.1 or better, so I installed Linux.