… | |
… | |
48 | fi |
48 | fi |
49 | AC_SUBST(LINKER,[$LINKER]) |
49 | AC_SUBST(LINKER,[$LINKER]) |
50 | |
50 | |
51 | AC_LANG(C++) |
51 | AC_LANG(C++) |
52 | dnl# -------------------------------------------------------------------------- |
52 | dnl# -------------------------------------------------------------------------- |
53 | dnl# Supply default CXXLAGS, if not specified by `CXXLAGS=flags ./configure' |
53 | dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=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([AC_LANG_PROGRAM()], [], [CXXFLAGS="-g -O3"]) |
59 | else |
59 | else |
60 | CXXFLAGS="-O" |
60 | CXXFLAGS="-O" |
61 | fi |
61 | fi |
62 | CFLAGS="$CXXFLAGS" |
62 | CFLAGS="$CXXFLAGS" |
63 | fi |
63 | fi |