Mercurial > hg > svcore
comparison configure.ac @ 1011:dbb7f0ab011e cxx11
CXX11 (-std=c++11) branch, to test build environments before making any code adaptations
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 15:31:07 +0000 |
parents | a8f3195b0761 |
children | dfc1c7cd8297 cc27f35aa75c |
comparison
equal
deleted
inserted
replaced
1010:36f79bc5c3d7 | 1011:dbb7f0ab011e |
---|---|
23 AC_PROG_CC | 23 AC_PROG_CC |
24 AC_PROG_CXX | 24 AC_PROG_CXX |
25 AC_PROG_INSTALL | 25 AC_PROG_INSTALL |
26 AC_PROG_MKDIR_P | 26 AC_PROG_MKDIR_P |
27 | 27 |
28 # We are daringly making use of C++11 now | |
29 AX_CXX_COMPILE_STDCXX_11(noext) | |
30 | |
28 AC_HEADER_STDC | 31 AC_HEADER_STDC |
29 | 32 |
30 # These are the flags Autoconf guesses for us; we use them later if | 33 # These are the flags Autoconf guesses for us; we use them later if |
31 # the user has set none and we are not using GCC (so lack our own | 34 # the user has set none and we are not using GCC (so lack our own |
32 # preferred flags) | 35 # preferred flags) |
48 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" | 51 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" |
49 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" | 52 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" |
50 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" | 53 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" |
51 | 54 |
52 if test "x$GCC" = "xyes"; then | 55 if test "x$GCC" = "xyes"; then |
53 CXXFLAGS_DEBUG="-Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" | 56 CXXFLAGS_DEBUG="-std=c++11 -Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" |
54 CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe" | 57 CXXFLAGS_RELEASE="-std=c++11 -g0 -O2 -Wall -pipe" |
55 CXXFLAGS_MINIMAL="-g0 -O0" | 58 CXXFLAGS_MINIMAL="-std=c++11 -g0 -O0" |
56 fi | 59 fi |
57 | 60 |
58 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" | 61 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" |
59 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" | 62 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" |
60 | 63 |