From e71157b3aa47dea05df6e3caced76fabcdc221f7 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 22 Jan 2019 13:24:35 -0800 Subject: [PATCH] configure: Simplify output string related for some conditions. --- configure.ac | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index d20be3e2c..5dc9e2615 100644 --- a/configure.ac +++ b/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