Enforce using C++11 under macOS in configure
There is no reason not to turn it on there, as all compilers/compiler versions supported under this platform support C++11 too.
This commit is contained in:
4
configure
vendored
4
configure
vendored
@@ -15152,6 +15152,10 @@ if test "$CXX" = "g++" -a "$GXX" != "yes"; then
|
|||||||
as_fn_error $? "C++ compiler is needed to build wxWidgets" "$LINENO" 5
|
as_fn_error $? "C++ compiler is needed to build wxWidgets" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$wxUSE_MAC" = 1 -a -z "$wxWITH_CXX"; then
|
||||||
|
wxWITH_CXX=11
|
||||||
|
fi
|
||||||
|
|
||||||
if test -n "$wxWITH_CXX"; then
|
if test -n "$wxWITH_CXX"; then
|
||||||
case "$wxWITH_CXX" in
|
case "$wxWITH_CXX" in
|
||||||
11)
|
11)
|
||||||
|
@@ -1098,6 +1098,13 @@ if test "$CXX" = "g++" -a "$GXX" != "yes"; then
|
|||||||
AC_MSG_ERROR([C++ compiler is needed to build wxWidgets])
|
AC_MSG_ERROR([C++ compiler is needed to build wxWidgets])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl Always use C++11 under macOS, there are no supported compilers not
|
||||||
|
dnl supporting it there, but don't prevent a latest version of C++ from being
|
||||||
|
dnl used.
|
||||||
|
if test "$wxUSE_MAC" = 1 -a -z "$wxWITH_CXX"; then
|
||||||
|
wxWITH_CXX=11
|
||||||
|
fi
|
||||||
|
|
||||||
if test -n "$wxWITH_CXX"; then
|
if test -n "$wxWITH_CXX"; then
|
||||||
dnl AX_CXX_COMPILE_STDCXX requires its VERSION argument to be specified at
|
dnl AX_CXX_COMPILE_STDCXX requires its VERSION argument to be specified at
|
||||||
dnl autoconf, not run, time.
|
dnl autoconf, not run, time.
|
||||||
|
Reference in New Issue
Block a user