diff options
author | Thiago Macieira <thiago@kde.org> | 2009-07-25 13:21:01 +0200 |
---|---|---|
committer | Thiago Macieira <thiago@kde.org> | 2009-07-25 13:21:01 +0200 |
commit | 3c99e692c92d7eb91b06aedbd8add8fabff57a44 (patch) | |
tree | 3abd38a5b3ffbe6a473e8525b8300b74d0763085 | |
parent | 24f55fa8cc4fbda3a85874dd5ec1ad14eaf372d8 (diff) |
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.
-rw-r--r-- | configure.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in index f4055867..d79d6559 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]) ]) |