From: Daniel Elstner Date: Mon, 24 Aug 2015 22:17:09 +0000 (+0200) Subject: Build: Fix SR_CHECK_COMPILE_FLAGS X-Git-Tag: libsigrok-0.4.0~401 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2d2240bb99e343379e9648e10d796d107705f06f;p=libsigrok.git Build: Fix SR_CHECK_COMPILE_FLAGS Do not put "no" into the flags if the check fails. --- diff --git a/m4/sigrok.m4 b/m4/sigrok.m4 index 30d87800..e9052585 100644 --- a/m4/sigrok.m4 +++ b/m4/sigrok.m4 @@ -288,7 +288,8 @@ do test "x$sr_ccf_result" = xno || break done CPPFLAGS=$sr_ccf_save_CPPFLAGS -SR_APPEND([$1], [$sr_ccf_result]) +AS_IF([test "x$sr_ccf_result" != xno], + [SR_APPEND([$1], [$sr_ccf_result])]) AC_MSG_RESULT([$sr_ccf_result]) AC_SUBST([$1]) ])