|
@ -76,12 +76,16 @@ AC_CACHE_CHECK([whether the compiler supports __attribute__((flatten))], cl_cv_h |
|
|
cat > conftest.cc <<EOF |
|
|
cat > conftest.cc <<EOF |
|
|
void f() __attribute__((flatten)); |
|
|
void f() __attribute__((flatten)); |
|
|
EOF |
|
|
EOF |
|
|
AC_TRY_COMMAND(${CXX-g++} $CXXFLAGS -c conftest.cc >/dev/null 2>conftest.out) |
|
|
|
|
|
if grep -i "warning" conftest.out > /dev/null; then |
|
|
|
|
|
|
|
|
if AC_TRY_COMMAND(${CXX-g++} $CXXFLAGS -c conftest.cc >/dev/null 2>conftest.stderr) |
|
|
|
|
|
then |
|
|
|
|
|
if grep -i "warning" conftest.stderr > /dev/null; then |
|
|
cl_cv_have_attr_flatten=no |
|
|
cl_cv_have_attr_flatten=no |
|
|
else |
|
|
else |
|
|
cl_cv_have_attr_flatten=yes |
|
|
cl_cv_have_attr_flatten=yes |
|
|
fi |
|
|
fi |
|
|
|
|
|
else |
|
|
|
|
|
cl_cv_have_attr_flatten=no |
|
|
|
|
|
fi |
|
|
rm -f conftest* |
|
|
rm -f conftest* |
|
|
]) |
|
|
]) |
|
|
if test $cl_cv_have_attr_flatten = yes; then |
|
|
if test $cl_cv_have_attr_flatten = yes; then |
|
|