diff options
author | Jim Blandy <jimb@red-bean.com> | 1997-02-04 21:59:23 +0000 |
---|---|---|
committer | Jim Blandy <jimb@red-bean.com> | 1997-02-04 21:59:23 +0000 |
commit | 48b96f4b0418d2bebeaa5c49a9aa51270ab86415 (patch) | |
tree | 6bc4f24e55990982d55ada31ebb68fa0a4968ddd /libguile/eval.c | |
parent | 03bc4386431ce688ae9e59db6bdbcee421738843 (diff) | |
download | guile-48b96f4b0418d2bebeaa5c49a9aa51270ab86415.tar.gz |
* configure.in: Call AC_FUNC_ALLOCA, to see if we have alloca.
* eval.c: Add necessary CPP cruft to support that.
* configure, Makefile.in: regenerated.
Diffstat (limited to 'libguile/eval.c')
-rw-r--r-- | libguile/eval.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libguile/eval.c b/libguile/eval.c index 44b51768c..d9129dcbc 100644 --- a/libguile/eval.c +++ b/libguile/eval.c @@ -54,6 +54,25 @@ #ifndef DEVAL +/* AIX requires this to be the first thing in the file. The #pragma + directive is indented so pre-ANSI compilers will ignore it, rather + than choke on it. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# if HAVE_ALLOCA_H +# include <alloca.h> +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +#endif + #include <stdio.h> #include "_scm.h" #include "debug.h" |