From: Ben Elliston Date: Mon, 6 Sep 1999 02:08:58 +0000 (+0000) Subject: 1999-09-06 Ben Elliston X-Git-Tag: trunk-pre-merge-trunk-into-experimental-1999-10-01~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8006eedcad25527cc0d2cee40b5539837f01bee;p=thirdparty%2Fautoconf.git 1999-09-06 Ben Elliston * acspecific.m4 (AC_FUNC_ALLOCA): Rename cache variable to avoid name clashes with AC_CHECK_HEADER(alloca.h). --- diff --git a/ChangeLog b/ChangeLog index 638ba1ef..32e0ccd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-09-06 Ben Elliston + + * acspecific.m4 (AC_FUNC_ALLOCA): Rename cache variable to avoid + name clashes with AC_CHECK_HEADER(alloca.h). + 1999-09-05 Steve Chamberlain * config.sub: Add support for configuring for picoJava (pj). diff --git a/acspecific.m4 b/acspecific.m4 index 53836d40..7b83756c 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -1398,10 +1398,10 @@ AC_DEFUN(AC_FUNC_ALLOCA, [AC_REQUIRE_CPP()dnl Set CPP; we run AC_EGREP_CPP conditionally. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -AC_CACHE_CHECK([for working alloca.h], ac_cv_header_alloca_h, +AC_CACHE_CHECK([for working alloca.h], ac_cv_working_alloca_h, [AC_TRY_LINK([#include ], [char *p = alloca(2 * sizeof(int));], - ac_cv_header_alloca_h=yes, ac_cv_header_alloca_h=no)]) -if test $ac_cv_header_alloca_h = yes; then + ac_cv_working_alloca_h=yes, ac_cv_working_alloca_h=no)]) +if test $ac_cv_working_alloca_h = yes; then AC_DEFINE(HAVE_ALLOCA_H) fi diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 53836d40..7b83756c 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -1398,10 +1398,10 @@ AC_DEFUN(AC_FUNC_ALLOCA, [AC_REQUIRE_CPP()dnl Set CPP; we run AC_EGREP_CPP conditionally. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -AC_CACHE_CHECK([for working alloca.h], ac_cv_header_alloca_h, +AC_CACHE_CHECK([for working alloca.h], ac_cv_working_alloca_h, [AC_TRY_LINK([#include ], [char *p = alloca(2 * sizeof(int));], - ac_cv_header_alloca_h=yes, ac_cv_header_alloca_h=no)]) -if test $ac_cv_header_alloca_h = yes; then + ac_cv_working_alloca_h=yes, ac_cv_working_alloca_h=no)]) +if test $ac_cv_working_alloca_h = yes; then AC_DEFINE(HAVE_ALLOCA_H) fi