d4189ea0b5ec41abd893e48d1676938712f554cf
[m6w6/libmemcached] / m4 / pandora_check_cxx_standard.m4
1 dnl Copyright (C) 2009 Sun Microsystems
2 dnl This file is free software; Sun Microsystems
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 AC_DEFUN([PANDORA_CHECK_CXX_STANDARD],[
7 AC_REQUIRE([AC_CXX_COMPILE_STDCXX_0X])
8 AS_IF([test "$GCC" = "yes"],
9 [AS_IF([test "$ac_cv_cxx_compile_cxx0x_native" = "yes"],[],
10 [AS_IF([test "$ac_cv_cxx_compile_cxx0x_gxx" = "yes"],
11 [CXXFLAGS="-std=gnu++0x ${CXXFLAGS}"],
12 [CXXFLAGS="-std=gnu++98"])
13 ])
14 ])
15 AC_CXX_HEADER_STDCXX_98
16 ])