From f479d6e82a0837244e80b86cb24436f0578e6643 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Tue, 15 Jul 2008 22:53:26 +0300 Subject: [PATCH] Explain in config.h.in what a hack _ALLOCA_H is --- configure.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 880c1680..0572e7d7 100644 --- a/configure.in +++ b/configure.in @@ -1410,7 +1410,16 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include if test "$cf_result" = "yes"; then AC_DEFINE([HAVE_ALLOCA]) - AC_DEFINE([_ALLOCA_H], [1], [alloca of tcc]) + AC_DEFINE([_ALLOCA_H], [1], [Define as 1 if you are using Tiny C Compiler + with the GNU C Library, and of glibc would otherwise + override the alloca macro defined in of TCC. + If of glibc sees the _ALLOCA_H macro, it assumes + it has already been included, and does not redefine alloca. + This might not work in future glibc versions though, because + the names of the #include guard macros are not documented. + The incompatibility has been reported to the tinycc-devel + mailing list on 2008-07-14. If a future version of TCC provides + an of its own, this hack won't be needed.]) fi # =================================================================== # A little fine tuning of gcc specific options (continued) -- 2.11.4.GIT