… | |
… | |
52 | dnl# -------------------------------------------------------------------------- |
52 | dnl# -------------------------------------------------------------------------- |
53 | dnl# Supply default CXXLAGS, if not specified by `CXXLAGS=flags ./configure' |
53 | dnl# Supply default CXXLAGS, if not specified by `CXXLAGS=flags ./configure' |
54 | dnl# |
54 | dnl# |
55 | if test -z "$orig_CXXFLAGS"; then |
55 | if test -z "$orig_CXXFLAGS"; then |
56 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
56 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
57 | CXXFLAGS="-g -O3 -Os -fno-threadsafe-statics -fno-enforce-eh-specs" |
57 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
58 | AC_COMPILE_IFELSE([int i;], [echo didididid], [CXXFLAGS="-g -O3"]) |
58 | AC_COMPILE_IFELSE([int i;], [echo didididid], [CXXFLAGS="-g -O3"]) |
59 | else |
59 | else |
60 | CXXFLAGS="-O" |
60 | CXXFLAGS="-O" |
61 | fi |
61 | fi |
62 | CFLAGS="$CXXFLAGS" |
62 | CFLAGS="$CXXFLAGS" |