From: Thiago Macieira Date: Sat, 25 Jul 2009 11:21:01 +0000 (+0200) Subject: Fix the configure-check again: must use b. X-Git-Tag: dbus-1.3.0~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c99e692c92d7eb91b06aedbd8add8fabff57a44;p=thirdparty%2Fdbus.git Fix the configure-check again: must use b. Otherwise, when compiling with optimisation, the compiler will detect that b was unused, then use the instructions that i386 supports. --- diff --git a/configure.in b/configure.in index f40558673..d79d65599 100644 --- a/configure.in +++ b/configure.in @@ -355,7 +355,7 @@ fi AC_CACHE_CHECK([whether $CC knows __sync_sub_and_fetch()], dbus_cv_sync_sub_and_fetch, [AC_LINK_IFELSE( - AC_LANG_PROGRAM([], [[int a = 4; int b = __sync_sub_and_fetch(&a, 4);]]), + AC_LANG_PROGRAM([], [[int a = 4; int b = __sync_sub_and_fetch(&a, 4); exit(b); ]]), [dbus_cv_sync_sub_and_fetch=yes], [dbus_cv_sync_sub_and_fetch=no]) ])