Shrinkify Thumb2 r = add sp, imm.
[llvm/avr.git] / autoconf / m4 / single_cxx_check.m4
blob21efa4bed353fbd35383fd48779cfd3c6f20cd02
1 dnl AC_SINGLE_CXX_CHECK(CACHEVAR, FUNCTION, HEADER, PROGRAM)
2 dnl                     $1,       $2,       $3,     $4,     
3 dnl 
4 AC_DEFUN([AC_SINGLE_CXX_CHECK],
5  [AC_CACHE_CHECK([for $2 in $3], [$1],
6   [AC_LANG_PUSH([C++])
7    AC_COMPILE_IFELSE(AC_LANG_PROGRAM([#include $3],[$4]),[$1=yes],[$1=no])
8   AC_LANG_POP([C++])])
9  ])