else
old_CFLAGS="$CFLAGS"
# Compile unoptimized.
- CFLAGS='-O0 -S'
+ CFLAGS="$CFLAGS -O0 -S"
if AC_TRY_EVAL(ac_compile); then
if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
eval $2=no
])
dnl
-dnl Check whether the target supports ifuncs.
+dnl Check whether the target supports the ifunc attribute.
dnl
AC_DEFUN([LIBAT_CHECK_IFUNC], [
- AC_CACHE_CHECK([whether the target supports funcs], libat_cv_have_ifunc, [
+ AC_CACHE_CHECK([whether the target supports the ifunc attribute],
+ libat_cv_have_ifunc, [
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
AC_TRY_LINK([