From 4756ee429c7e52444f1d8ae4629db9327411e048 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 12 Sep 2007 07:03:30 +0000 Subject: [PATCH] (AC_FUNC_ALLOCA): Throw an error if a system implementation of alloca is not found. --- configure.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.in b/configure.in index c873a290020..306f8441973 100644 --- a/configure.in +++ b/configure.in @@ -2692,6 +2692,13 @@ fi AC_FUNC_ALLOCA +dnl src/alloca.c has been removed. Could also check if $ALLOCA is set? +dnl FIXME is there an autoconf test that does the right thing, without +dnl needing to call A_M_E afterwards? +if test x"$ac_cv_func_alloca_works" != xyes; then + AC_MSG_ERROR( [a system implementation of alloca is required] ) +fi + # fmod, logb, and frexp are found in -lm on most systems. # On HPUX 9.01, -lm does not contain logb, so check for sqrt. AC_CHECK_LIB(m, sqrt) -- 2.39.5