Modified hash_map and hash_set configuration so that they are not
[oota-llvm.git] / autoconf / m4 / single_cxx_check.m4
1 dnl AC_SINGLE_CXX_CHECK(DEFINEVAR, CACHEVAR, FUNCTION, HEADER, PROGRAM)
2 dnl                     $1,        $2,       $3,       $4,     $5
3 dnl 
4 AC_DEFUN([AC_SINGLE_CXX_CHECK],
5 [AC_CACHE_CHECK([for $3 in $4], [$2],
6  [AC_LANG_PUSH([C++])
7   AC_COMPILE_IFELSE(AC_LANG_SOURCE([$5]),[$2=yes],[$2=no])
8  AC_LANG_POP([C++])])
9  if test "$$2" = "yes"
10  then
11    AC_DEFINE($1, 1, [Define to 1 if your compiler defines $3 in the $4
12                      header file.])
13  fi])
14