1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-18 15:13:56 +01:00

fix bug compiling on Linux/gcc-4.9 with wxwidgets 3.0.2

This commit is contained in:
Darrell Walisser
2017-07-28 15:42:16 -04:00
committed by James Crook
parent 5dfff70f5b
commit 651957f8c2
4 changed files with 56 additions and 2 deletions

View File

@@ -139,6 +139,14 @@ dnl Gather wx arguments
WX_CXXFLAGS=$($WX_CONFIG $wxconfigargs --cxxflags)
WX_LIBS=$($WX_CONFIG $wxconfigargs --libs)
dnl Enable C++ 11 support. Use gnu++11 on GCC since wxWidgets uses extensions
if "${CXX}" -v 2>&1 | grep -q '^gcc version'; then
WX_CXXFLAGS="${WX_CXXFLAGS} --std=gnu++11"
else
WX_CXXFLAGS="${WX_CXXFLAGS} --std=c++11"
fi
AC_SUBST([WX_CXXFLAGS])
AC_SUBST([WX_LIBS])