From 1819a96bfbb907259c18e4b3d41eb216af5a7570 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 20 Aug 2006 06:23:54 +0000 Subject: [PATCH] should be better alloca prototype testing --- configure.ac | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index 80b572b70..5e5a2481d 100644 --- a/configure.ac +++ b/configure.ac @@ -311,17 +311,17 @@ AC_TRY_LINK( ) AM_CONDITIONAL(BUILD_GETOPT, test "x$BUILD_GETOPT" = "xyes") -AC_MSG_CHECKING(for alloca in stdlib.h) -AC_TRY_COMPILE( - [#include ], - [void *(*foo)(size_t) = alloca;], - have_alloca_proto=yes - AC_MSG_RESULT(yes), - have_alloca_proto=no - AC_MSG_RESULT(no) -) - -if test "x$have_alloca_proto" = no -a "x$ac_cv_header_alloca_h" = yes; then +if test "x$ac_cv_header_alloca_h" = no; then + AC_MSG_CHECKING(for alloca in stdlib.h) + AC_TRY_COMPILE( + [#include ], + [void *(*foo)(size_t) = alloca;], + have_alloca_proto=yes + AC_MSG_RESULT(yes), + have_alloca_proto=no + AC_MSG_RESULT(no) + ) +else AC_MSG_CHECKING(for alloca in alloca.h) AC_TRY_COMPILE( [#include ]