503
503
test $DEBUGLEVEL -ge 5 && CXXFLAGS="$CXXFLAGS -DMEM_DEB"
505
505
dnl oddly, this macro needs to be called once unconditionally, or automake borks up.
506
dnl pick C++11 standard if we can
506
507
AX_CXXFLAGS_GCC_OPTION(-std=c++11)
508
if test -z "`echo $CXXFLAGS | grep "\-std="`"; then
509
dnl maybe it is the future and c++11 is deprecated? C++14 should work, too
510
AX_CXXFLAGS_GCC_OPTION(-std=c++14)
511
if test -z "`echo $CXXFLAGS | grep "\-std="`"; then
512
dnl still nothing? Maybe this one:
513
AX_CXXFLAGS_GCC_OPTION(-std=c++17)
514
if test -z "`echo $CXXFLAGS | grep "\-std="`"; then
515
dnl last call: pre-c++11 standard. Works on mingw, so why not here?
516
AX_CXXFLAGS_GCC_OPTION(-std=c++0x)
522
dnl dnl maybe it is the future and c++11 is deprecated? C++14 should work, too
523
dnl AX_CXXFLAGS_GCC_OPTION(-std=c++14z,[],[],[
524
dnl dnl still nothing? Maybe this one:
525
dnl AX_CXXFLAGS_GCC_OPTION(-std=c++17z,[],[],[
526
dnl dnl last call: pre-c++11 standard. Works on mingw, so why not here?
527
dnl AX_CXXFLAGS_GCC_OPTION(-std=c++0x)
508
533
if test $CODELEVEL -ge 1; then
509
534
CXXFLAGS="$CXXFLAGS -Wall"