0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02:00

configure: Simplify output string related for some conditions.

This commit is contained in:
Jason Volk 2019-01-22 13:24:35 -08:00
parent 74612e9474
commit e71157b3aa

View file

@ -202,7 +202,9 @@ AM_CONDITIONAL([ASSERT], [[[[ "$ASSERT" = "1" ]]]])
AM_COND_IF(ASSERT,
[
assert="yes"
], [
assert="no"
CPPDEFINE([NDEBUG])
])
@ -429,6 +431,7 @@ AM_COND_IF([LTO],
AM_COND_IF([OPTIMIZE],
[
optimize="yes"
CXXFLAGS+=" -fweb"
CXXFLAGS+=" -fdata-sections"
CXXFLAGS+=" -ffunction-sections"
@ -447,6 +450,7 @@ AM_COND_IF([OPTIMIZE],
CXXFLAGS+=" -g"
CXXFLAGS+=" -ggdb"
], [
optimize="no"
CXXFLAGS+=" -g"
CXXFLAGS+=" -ggdb"
CXXFLAGS+=" -fvar-tracking"
@ -1473,18 +1477,6 @@ else
debug="no"
fi
if [[ $OPTIMIZE ]]; then
optimize="yes"
else
optimize="no"
fi
if [[ $ASSERT ]]; then
assert="yes"
else
assert="no"
fi
dnl Make it look sexay!
echo