diff --git a/configure.ac b/configure.ac index 768cd4748..04ff1dad1 100644 --- a/configure.ac +++ b/configure.ac @@ -349,10 +349,10 @@ AC_LINK_IFELSE( ) AC_MSG_CHECKING(for __builtin_ctz) -AC_COMPILE_IFELSE( +AC_LINK_IFELSE( [AC_LANG_PROGRAM( [], - [[__builtin_ctz(1); /* Supported in GCC 3.4 or later */]] + [[volatile int test_ctz = __builtin_ctz(1); (void)test_ctz; /* Supported in GCC 3.4 or later */]] )], AC_DEFINE([HAVE_BUILTIN_CTZ], 1, [Define to 1 if the compiler supports '__builtin_ctz' function.]) AC_MSG_RESULT(yes),