Fix handling of CXXFLAGS in configure.ac.
authorStephen Sinclair <radarsat1@gmail.com>
Thu, 18 Feb 2016 16:17:06 +0000 (13:17 -0300)
committerStephen Sinclair <radarsat1@gmail.com>
Thu, 18 Feb 2016 16:21:38 +0000 (13:21 -0300)
commitac3032ecbbadf20c4d3e3237ed6a6c73bf64b587
treeff33687548218abeb90ab1fac0d09ac932142a93
parent155405f0de1b949269e71028f39f4df5a9711a0e
Fix handling of CXXFLAGS in configure.ac.

CXXFLAGS should be set before AC_PROG_CXX.  This patch uses a syntax
allowing it to be overridden during "env CXXFLAGS=... ./configure",
"./configure CXXFLAGS=..." or during "make CXXFLAGS=..."

Keeps previous behaviour of -O3 for normal builds, -g -O0 for debug
builds, and keeps the define __RTAUDIO_DEBUG__, however this is done
using AC_DEFINE.
configure.ac