Changes in / [297:92b193385702:295:7c796c1cf1b0] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r296 r273 22 22 lx_cmdline_cxxflags_set=${CXXFLAGS+set} 23 23 24 dnl Do compilation tests using the C++ compiler.25 AC_LANG([C++])26 27 24 dnl Checks for programs. 28 25 AC_PROG_CXX … … 35 32 AC_CHECK_PROG([gs_found],[gs],[yes],[no]) 36 33 37 dnl Detect Intel compiler.38 AC_MSG_CHECKING([whether we are using the Intel C++ compiler])39 AC_COMPILE_IFELSE([#ifndef __INTEL_COMPILER40 choke me41 #endif], [ICC=[yes]], [ICC=[no]])42 if test x"$ICC" = x"yes"; then43 AC_MSG_RESULT([yes])44 else45 AC_MSG_RESULT([no])46 fi47 48 34 dnl Set custom compiler flags when using g++. 49 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes -a "$ICC" = no; then35 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then 50 36 CXXFLAGS="$CXXFLAGS -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas" 51 37 fi
Note: See TracChangeset
for help on using the changeset viewer.