… | |
… | |
24 | AC_PROG_CXX |
24 | AC_PROG_CXX |
25 | AC_PROG_INSTALL |
25 | AC_PROG_INSTALL |
26 | |
26 | |
27 | AC_USE_SYSTEM_EXTENSIONS |
27 | AC_USE_SYSTEM_EXTENSIONS |
28 | AC_LANG(C++) |
28 | AC_LANG(C++) |
29 | |
|
|
30 | if test "$ac_prog_cxx_stdcxx" != cxx11; then |
|
|
31 | AC_MSG_ERROR([the compiler does not support C++11]) |
|
|
32 | fi |
|
|
33 | |
29 | |
34 | LINKER="$CXX" |
30 | LINKER="$CXX" |
35 | dnl check whether we can link with gcc -lsupc++ |
31 | dnl check whether we can link with gcc -lsupc++ |
36 | if test x$GCC = xyes && test x$GXX = xyes; then |
32 | if test x$GCC = xyes && test x$GXX = xyes; then |
37 | dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it |
33 | dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it |