1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-21 00:25:37 +00:00

Explain in config.h.in what a hack _ALLOCA_H is

This commit is contained in:
Kalle Olavi Niemitalo 2008-07-15 22:53:26 +03:00 committed by Kalle Olavi Niemitalo
parent 37ce1ca658
commit f479d6e82a

View File

@ -1410,7 +1410,16 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stddef.h>
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 <alloca.h> of glibc would otherwise
override the alloca macro defined in <stddef.h> of TCC.
If <alloca.h> 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 <alloca.h> of its own, this hack won't be needed.])
fi
# ===================================================================
# A little fine tuning of gcc specific options (continued)