Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e Modified Files: configure.in Log Message: Cleanups, enable compiling everything as if it were C++. =================================================================== RCS file: /cvs/e/e16/e/configure.in,v retrieving revision 1.188 retrieving revision 1.189 diff -u -3 -r1.188 -r1.189 --- configure.in 14 Jan 2007 16:40:40 -0000 1.188 +++ configure.in 17 Jan 2007 01:10:40 -0000 1.189 @@ -268,11 +268,22 @@ fi AM_CONDITIONAL(BUILD_ROOTHACKLIB, test "x$enable_roothacklib" = "xyes") +AC_ARG_ENABLE(gcc-cpp, + [ --enable-gcc-cpp compile everything as if it were C++ @<:@default=no@:>@],, + enable_gcc_cpp=no) +if test "x$enable_gcc_cpp" = "xyes"; then + CC="g++" + CPPFLAGS="-x c++" +fi + AC_ARG_ENABLE(gcc-warnings, [ --enable-gcc-warnings enable GCC compiler warnings @<:@default=no@:>@],, enable_gcc_warnings=no) if test "x$enable_gcc_warnings" = "xyes"; then - CFLAGS="$CFLAGS -W -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Waggregate-return -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings #-Wunreachable-code" + CFLAGS="$CFLAGS -W -Wall -Waggregate-return -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings" + if test "x$enable_gcc_cpp" != "xyes"; then + CFLAGS="$CFLAGS -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes" + fi fi AC_SUBST(E_X_LIBS) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs