include_guard(GLOBAL)
include(UtilityFunctions)

check_compile("Checking whether alloca works" "yes" "no" "
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca (size_t);
#    endif
#   endif
#  endif
# endif
#endif

int main ()
{
	char *p = (char *) alloca (1);
	if (p) return 0;
	return 0;
}"
HAVE_ALLOCA)
