diff options
Diffstat (limited to 'autoconf/ast_gcc_attribute.m4')
-rw-r--r-- | autoconf/ast_gcc_attribute.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/autoconf/ast_gcc_attribute.m4 b/autoconf/ast_gcc_attribute.m4 index 4ade81404..b1972bedf 100644 --- a/autoconf/ast_gcc_attribute.m4 +++ b/autoconf/ast_gcc_attribute.m4 @@ -7,6 +7,7 @@ AC_MSG_CHECKING(for compiler 'attribute $1' support) saved_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Wno-unused -Werror" m4_ifval([$4],$4=0) +ax_cv_have_func_attribute_$1=0 if test "x$2" = "x" then @@ -15,6 +16,7 @@ AC_COMPILE_IFELSE( [])], AC_MSG_RESULT(yes) m4_ifval([$4],$4=1) + ax_cv_have_func_attribute_$1=1 AC_DEFINE_UNQUOTED([HAVE_ATTRIBUTE_$1], 1, [Define to 1 if your GCC C compiler supports the '$1' attribute.]), AC_MSG_RESULT(no) ) @@ -24,6 +26,7 @@ AC_COMPILE_IFELSE( [])], AC_MSG_RESULT(yes) m4_ifval([$4],$4=1) + ax_cv_have_func_attribute_$1=1 AC_DEFINE_UNQUOTED([HAVE_ATTRIBUTE_$1], 1, [Define to 1 if your GCC C compiler supports the '$1' attribute.]), AC_MSG_RESULT(no) ) |