#13 incorrect CXXFLAGS test in configure

open
nobody
None
5
2007-09-08
2007-09-08
No

the configure.ac file reads:
if [ -z "$CXXFLAGS" ] ; then
CXXFLAGS="-O2 -Wall -W -fno-strength-reduce"
fi

this is incorrect for two reasons ... one, "[" is a quote character in m4 ... you need to use the standard "test" binary instead

two, testing for empty CXXFLAGS is incorrect, you need to test if CXXFLAGS is set:
if test "${CXXFLAGS+set}" != "set" ; then
CXXFLAGS="-O2 -Wall -W -fno-strength-reduce"
fi

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks