diff options
Diffstat (limited to 'win/configure.in')
-rw-r--r-- | win/configure.in | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/win/configure.in b/win/configure.in index b641255..0b99959 100644 --- a/win/configure.in +++ b/win/configure.in @@ -3,7 +3,7 @@ # generate the file "configure", which is run during Tcl installation # to configure the system for the local environment. # -# RCS: @(#) $Id: configure.in,v 1.62 2003/01/13 07:01:06 mdejong Exp $ +# RCS: @(#) $Id: configure.in,v 1.63 2003/01/24 08:04:28 mdejong Exp $ AC_INIT(../generic/tcl.h) AC_PREREQ(2.13) @@ -194,6 +194,29 @@ if test "$tcl_cv_winnt_ignore_void" = "yes" ; then [Defined when cygwin/mingw ignores VOID define in winnt.h]) fi +# Check to see if malloc.h is missing the alloca function +# declaration. This is known to be a problem with Mingw. + +AC_CACHE_CHECK(for alloca declaration in malloc.h, + tcl_cv_malloc_decl_alloca, +AC_TRY_COMPILE([ +#include <malloc.h> +], +[ + size_t arg = 0; + void* ptr; + ptr = alloca; + ptr = alloca(arg); +], + tcl_cv_malloc_decl_alloca=yes, + tcl_cv_malloc_decl_alloca=no) +) +if test "$tcl_cv_malloc_decl_alloca" = "no" ; then + AC_DEFINE(HAVE_NO_ALLOC_DECL, 1, + [Defined when alloca decl is missing from malloc.h]) +fi + + #-------------------------------------------------------------------- # Determines the correct binary file extension (.o, .obj, .exe etc.) #-------------------------------------------------------------------- |