Home | History | Annotate | Download | only in m4
      1 dnl
      2 dnl AC_SINGLE_CXX_CHECK(CACHEVAR, FUNCTION, HEADER, PROGRAM)
      3 dnl                     $1,       $2,       $3,     $4,
      4 
      5 AC_DEFUN([AC_SINGLE_CXX_CHECK],
      6 [
      7   AC_CACHE_CHECK([for $2 in $3], [$1],
      8   [
      9     AC_LANG_PUSH([C++])
     10     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]][$3], [$4])],
     11                       [$1][[=yes]],
     12                       [$1][[=no]])
     13     AC_LANG_POP([C++])
     14   ])
     15 ])
     16 
     17