mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
configure: Simplify output string related for some conditions.
This commit is contained in:
parent
74612e9474
commit
e71157b3aa
1 changed files with 4 additions and 12 deletions
16
configure.ac
16
configure.ac
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue