e6a2505
diff -dur gcl-2.6.8.ORIG/acconfig.h gcl-2.6.8/acconfig.h
4b8f337
--- gcl-2.6.8.ORIG/acconfig.h	2009-02-23 12:39:42.000000000 -0700
4b6dc23
+++ gcl-2.6.8/acconfig.h	2009-08-11 10:55:32.525471470 -0600
e6a2505
@@ -53,11 +53,10 @@
e6a2505
 #undef HAVE_ALLOCA 
e6a2505
 #endif
e6a2505
 
e6a2505
-
e6a2505
 /* define if need alloca.h */
e6a2505
-#undef NEED_ALLOCA_H
e6a2505
+#undef HAVE_ALLOCA_H
e6a2505
 
e6a2505
-#ifdef NEED_ALLOCA_H
e6a2505
+#ifdef HAVE_ALLOCA_H
e6a2505
 #include <alloca.h>
e6a2505
 #endif
e6a2505
 
e6a2505
diff -dur gcl-2.6.8.ORIG/configure gcl-2.6.8/configure
4b6dc23
--- gcl-2.6.8.ORIG/configure	2009-08-11 10:55:12.612470012 -0600
4b6dc23
+++ gcl-2.6.8/configure	2009-08-11 10:55:32.540470956 -0600
e6a2505
@@ -645,6 +645,7 @@
e6a2505
 NIFLAGS
e6a2505
 FINAL_CFLAGS
e6a2505
 BROKEN_O4_OPT
e6a2505
+ALLOCA
e6a2505
 NOTIFY
e6a2505
 TCL_LIBS
e6a2505
 TCL_DL_LIBS
4b6dc23
@@ -14045,10 +14046,12 @@
e6a2505
 
e6a2505
 # alloca
e6a2505
 
e6a2505
-{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
e6a2505
-$as_echo_n "checking for alloca... " >&6; }
e6a2505
-if test "$cross_compiling" = yes; then
e6a2505
-  gcl_ok=no
e6a2505
+# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
e6a2505
+# for constant arguments.  Useless!
e6a2505
+{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
e6a2505
+$as_echo_n "checking for working alloca.h... " >&6; }
e6a2505
+if test "${ac_cv_working_alloca_h+set}" = set; then
e6a2505
+  $as_echo_n "(cached) " >&6
e6a2505
 else
e6a2505
   cat >conftest.$ac_ext <<_ACEOF
e6a2505
 /* confdefs.h.  */
4b6dc23
@@ -14056,16 +14059,17 @@
e6a2505
 cat confdefs.h >>conftest.$ac_ext
e6a2505
 cat >>conftest.$ac_ext <<_ACEOF
e6a2505
 /* end confdefs.h.  */
e6a2505
-
e6a2505
+#include <alloca.h>
e6a2505
 int
e6a2505
 main ()
e6a2505
 {
e6a2505
-exit(alloca(500) != NULL ? 0 : 1);
e6a2505
+char *p = (char *) alloca (2 * sizeof (int));
e6a2505
+			  if (p) return 0;
e6a2505
   ;
e6a2505
   return 0;
e6a2505
 }
e6a2505
 _ACEOF
e6a2505
-rm -f conftest$ac_exeext
e6a2505
+rm -f conftest.$ac_objext conftest$ac_exeext
e6a2505
 if { (ac_try="$ac_link"
e6a2505
 case "(($ac_try" in
e6a2505
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4b6dc23
@@ -14073,44 +14077,141 @@
e6a2505
 esac
e6a2505
 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
e6a2505
 $as_echo "$ac_try_echo") >&5
e6a2505
-  (eval "$ac_link") 2>&5
e6a2505
+  (eval "$ac_link") 2>conftest.er1
e6a2505
   ac_status=$?
e6a2505
+  grep -v '^ *+' conftest.er1 >conftest.err
e6a2505
+  rm -f conftest.er1
e6a2505
+  cat conftest.err >&5
e6a2505
   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e6a2505
-  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
e6a2505
-  { (case "(($ac_try" in
e6a2505
+  (exit $ac_status); } && {
e6a2505
+	 test -z "$ac_c_werror_flag" ||
e6a2505
+	 test ! -s conftest.err
e6a2505
+       } && test -s conftest$ac_exeext && {
e6a2505
+	 test "$cross_compiling" = yes ||
e6a2505
+	 $as_test_x conftest$ac_exeext
e6a2505
+       }; then
e6a2505
+  ac_cv_working_alloca_h=yes
e6a2505
+else
e6a2505
+  $as_echo "$as_me: failed program was:" >&5
e6a2505
+sed 's/^/| /' conftest.$ac_ext >&5
e6a2505
+
e6a2505
+	ac_cv_working_alloca_h=no
e6a2505
+fi
e6a2505
+
e6a2505
+rm -rf conftest.dSYM
e6a2505
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
e6a2505
+      conftest$ac_exeext conftest.$ac_ext
e6a2505
+fi
e6a2505
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
e6a2505
+$as_echo "$ac_cv_working_alloca_h" >&6; }
e6a2505
+if test $ac_cv_working_alloca_h = yes; then
e6a2505
+
e6a2505
+cat >>confdefs.h <<\_ACEOF
e6a2505
+#define HAVE_ALLOCA_H 1
e6a2505
+_ACEOF
e6a2505
+
e6a2505
+fi
e6a2505
+
e6a2505
+{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
e6a2505
+$as_echo_n "checking for alloca... " >&6; }
e6a2505
+if test "${ac_cv_func_alloca_works+set}" = set; then
e6a2505
+  $as_echo_n "(cached) " >&6
e6a2505
+else
e6a2505
+  cat >conftest.$ac_ext <<_ACEOF
e6a2505
+/* confdefs.h.  */
e6a2505
+_ACEOF
e6a2505
+cat confdefs.h >>conftest.$ac_ext
e6a2505
+cat >>conftest.$ac_ext <<_ACEOF
e6a2505
+/* end confdefs.h.  */
e6a2505
+#ifdef __GNUC__
e6a2505
+# define alloca __builtin_alloca
e6a2505
+#else
e6a2505
+# ifdef _MSC_VER
e6a2505
+#  include <malloc.h>
e6a2505
+#  define alloca _alloca
e6a2505
+# else
e6a2505
+#  ifdef HAVE_ALLOCA_H
e6a2505
+#   include <alloca.h>
e6a2505
+#  else
e6a2505
+#   ifdef _AIX
e6a2505
+ #pragma alloca
e6a2505
+#   else
e6a2505
+#    ifndef alloca /* predefined by HP cc +Olibcalls */
e6a2505
+char *alloca ();
e6a2505
+#    endif
e6a2505
+#   endif
e6a2505
+#  endif
e6a2505
+# endif
e6a2505
+#endif
e6a2505
+
e6a2505
+int
e6a2505
+main ()
e6a2505
+{
e6a2505
+char *p = (char *) alloca (1);
e6a2505
+				    if (p) return 0;
e6a2505
+  ;
e6a2505
+  return 0;
e6a2505
+}
e6a2505
+_ACEOF
e6a2505
+rm -f conftest.$ac_objext conftest$ac_exeext
e6a2505
+if { (ac_try="$ac_link"
e6a2505
+case "(($ac_try" in
e6a2505
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
e6a2505
   *) ac_try_echo=$ac_try;;
e6a2505
 esac
e6a2505
 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
e6a2505
 $as_echo "$ac_try_echo") >&5
e6a2505
-  (eval "$ac_try") 2>&5
e6a2505
+  (eval "$ac_link") 2>conftest.er1
e6a2505
   ac_status=$?
e6a2505
+  grep -v '^ *+' conftest.er1 >conftest.err
e6a2505
+  rm -f conftest.er1
e6a2505
+  cat conftest.err >&5
e6a2505
   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e6a2505
-  (exit $ac_status); }; }; then
e6a2505
-  :
e6a2505
+  (exit $ac_status); } && {
e6a2505
+	 test -z "$ac_c_werror_flag" ||
e6a2505
+	 test ! -s conftest.err
e6a2505
+       } && test -s conftest$ac_exeext && {
e6a2505
+	 test "$cross_compiling" = yes ||
e6a2505
+	 $as_test_x conftest$ac_exeext
e6a2505
+       }; then
e6a2505
+  ac_cv_func_alloca_works=yes
e6a2505
 else
e6a2505
-  $as_echo "$as_me: program exited with status $ac_status" >&5
e6a2505
-$as_echo "$as_me: failed program was:" >&5
e6a2505
+  $as_echo "$as_me: failed program was:" >&5
e6a2505
 sed 's/^/| /' conftest.$ac_ext >&5
e6a2505
 
e6a2505
-( exit $ac_status )
e6a2505
-gcl_ok=yes
e6a2505
+	ac_cv_func_alloca_works=no
e6a2505
 fi
e6a2505
+
e6a2505
 rm -rf conftest.dSYM
e6a2505
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6a2505
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
e6a2505
+      conftest$ac_exeext conftest.$ac_ext
e6a2505
 fi
e6a2505
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
e6a2505
+$as_echo "$ac_cv_func_alloca_works" >&6; }
e6a2505
 
e6a2505
+if test $ac_cv_func_alloca_works = yes; then
e6a2505
 
e6a2505
-if test $gcl_ok = yes ; then
e6a2505
-    { $as_echo "$as_me:$LINENO: result: yes" >&5
e6a2505
-$as_echo "yes" >&6; }
e6a2505
-    cat >>confdefs.h <<\_ACEOF
e6a2505
+cat >>confdefs.h <<\_ACEOF
e6a2505
 #define HAVE_ALLOCA 1
e6a2505
 _ACEOF
e6a2505
 
e6a2505
 else
e6a2505
-  if test "$cross_compiling" = yes; then
e6a2505
-  gcl_ok=no
e6a2505
+  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
e6a2505
+# that cause trouble.  Some versions do not even contain alloca or
e6a2505
+# contain a buggy version.  If you still want to use their alloca,
e6a2505
+# use ar to extract alloca.o from them instead of compiling alloca.c.
e6a2505
+
e6a2505
+ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
e6a2505
+
e6a2505
+cat >>confdefs.h <<\_ACEOF
e6a2505
+#define C_ALLOCA 1
e6a2505
+_ACEOF
e6a2505
+
e6a2505
+
e6a2505
+{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
e6a2505
+$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
e6a2505
+if test "${ac_cv_os_cray+set}" = set; then
e6a2505
+  $as_echo_n "(cached) " >&6
e6a2505
 else
e6a2505
   cat >conftest.$ac_ext <<_ACEOF
e6a2505
 /* confdefs.h.  */
4b6dc23
@@ -14118,17 +14219,163 @@
e6a2505
 cat confdefs.h >>conftest.$ac_ext
e6a2505
 cat >>conftest.$ac_ext <<_ACEOF
e6a2505
 /* end confdefs.h.  */
e6a2505
+#if defined CRAY && ! defined CRAY2
e6a2505
+webecray
e6a2505
+#else
e6a2505
+wenotbecray
e6a2505
+#endif
e6a2505
 
e6a2505
-  #include <alloca.h>
e6a2505
+_ACEOF
e6a2505
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6a2505
+  $EGREP "webecray" >/dev/null 2>&1; then
e6a2505
+  ac_cv_os_cray=yes
e6a2505
+else
e6a2505
+  ac_cv_os_cray=no
e6a2505
+fi
e6a2505
+rm -f conftest*
e6a2505
+
e6a2505
+fi
e6a2505
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
e6a2505
+$as_echo "$ac_cv_os_cray" >&6; }
e6a2505
+if test $ac_cv_os_cray = yes; then
e6a2505
+  for ac_func in _getb67 GETB67 getb67; do
e6a2505
+    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
e6a2505
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
e6a2505
+$as_echo_n "checking for $ac_func... " >&6; }
e6a2505
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
e6a2505
+  $as_echo_n "(cached) " >&6
e6a2505
+else
e6a2505
+  cat >conftest.$ac_ext <<_ACEOF
e6a2505
+/* confdefs.h.  */
e6a2505
+_ACEOF
e6a2505
+cat confdefs.h >>conftest.$ac_ext
e6a2505
+cat >>conftest.$ac_ext <<_ACEOF
e6a2505
+/* end confdefs.h.  */
e6a2505
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
e6a2505
+   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
e6a2505
+#define $ac_func innocuous_$ac_func
e6a2505
+
e6a2505
+/* System header to define __stub macros and hopefully few prototypes,
e6a2505
+    which can conflict with char $ac_func (); below.
e6a2505
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
e6a2505
+    <limits.h> exists even on freestanding compilers.  */
e6a2505
+
e6a2505
+#ifdef __STDC__
e6a2505
+# include <limits.h>
e6a2505
+#else
e6a2505
+# include <assert.h>
e6a2505
+#endif
e6a2505
+
e6a2505
+#undef $ac_func
e6a2505
+
e6a2505
+/* Override any GCC internal prototype to avoid an error.
e6a2505
+   Use char because int might match the return type of a GCC
e6a2505
+   builtin and then its argument prototype would still apply.  */
e6a2505
+#ifdef __cplusplus
e6a2505
+extern "C"
e6a2505
+#endif
e6a2505
+char $ac_func ();
e6a2505
+/* The GNU C library defines this for functions which it implements
e6a2505
+    to always fail with ENOSYS.  Some functions are actually named
e6a2505
+    something starting with __ and the normal name is an alias.  */
e6a2505
+#if defined __stub_$ac_func || defined __stub___$ac_func
e6a2505
+choke me
e6a2505
+#endif
e6a2505
 
e6a2505
 int
e6a2505
 main ()
e6a2505
 {
e6a2505
-exit(alloca(500) != NULL ? 0 : 1);
e6a2505
+return $ac_func ();
e6a2505
   ;
e6a2505
   return 0;
e6a2505
 }
e6a2505
 _ACEOF
e6a2505
+rm -f conftest.$ac_objext conftest$ac_exeext
e6a2505
+if { (ac_try="$ac_link"
e6a2505
+case "(($ac_try" in
e6a2505
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
e6a2505
+  *) ac_try_echo=$ac_try;;
e6a2505
+esac
e6a2505
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
e6a2505
+$as_echo "$ac_try_echo") >&5
e6a2505
+  (eval "$ac_link") 2>conftest.er1
e6a2505
+  ac_status=$?
e6a2505
+  grep -v '^ *+' conftest.er1 >conftest.err
e6a2505
+  rm -f conftest.er1
e6a2505
+  cat conftest.err >&5
e6a2505
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e6a2505
+  (exit $ac_status); } && {
e6a2505
+	 test -z "$ac_c_werror_flag" ||
e6a2505
+	 test ! -s conftest.err
e6a2505
+       } && test -s conftest$ac_exeext && {
e6a2505
+	 test "$cross_compiling" = yes ||
e6a2505
+	 $as_test_x conftest$ac_exeext
e6a2505
+       }; then
e6a2505
+  eval "$as_ac_var=yes"
e6a2505
+else
e6a2505
+  $as_echo "$as_me: failed program was:" >&5
e6a2505
+sed 's/^/| /' conftest.$ac_ext >&5
e6a2505
+
e6a2505
+	eval "$as_ac_var=no"
e6a2505
+fi
e6a2505
+
e6a2505
+rm -rf conftest.dSYM
e6a2505
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
e6a2505
+      conftest$ac_exeext conftest.$ac_ext
e6a2505
+fi
e6a2505
+ac_res=`eval 'as_val=${'$as_ac_var'}
e6a2505
+		 $as_echo "$as_val"'`
e6a2505
+	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
e6a2505
+$as_echo "$ac_res" >&6; }
e6a2505
+as_val=`eval 'as_val=${'$as_ac_var'}
e6a2505
+		 $as_echo "$as_val"'`
e6a2505
+   if test "x$as_val" = x""yes; then
e6a2505
+
e6a2505
+cat >>confdefs.h <<_ACEOF
e6a2505
+#define CRAY_STACKSEG_END $ac_func
e6a2505
+_ACEOF
e6a2505
+
e6a2505
+    break
e6a2505
+fi
e6a2505
+
e6a2505
+  done
e6a2505
+fi
e6a2505
+
e6a2505
+{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
e6a2505
+$as_echo_n "checking stack direction for C alloca... " >&6; }
e6a2505
+if test "${ac_cv_c_stack_direction+set}" = set; then
e6a2505
+  $as_echo_n "(cached) " >&6
e6a2505
+else
e6a2505
+  if test "$cross_compiling" = yes; then
e6a2505
+  ac_cv_c_stack_direction=0
e6a2505
+else
e6a2505
+  cat >conftest.$ac_ext <<_ACEOF
e6a2505
+/* confdefs.h.  */
e6a2505
+_ACEOF
e6a2505
+cat confdefs.h >>conftest.$ac_ext
e6a2505
+cat >>conftest.$ac_ext <<_ACEOF
e6a2505
+/* end confdefs.h.  */
e6a2505
+$ac_includes_default
e6a2505
+int
e6a2505
+find_stack_direction ()
e6a2505
+{
e6a2505
+  static char *addr = 0;
e6a2505
+  auto char dummy;
e6a2505
+  if (addr == 0)
e6a2505
+    {
e6a2505
+      addr = &dummy;
e6a2505
+      return find_stack_direction ();
e6a2505
+    }
e6a2505
+  else
e6a2505
+    return (&dummy > addr) ? 1 : -1;
e6a2505
+}
e6a2505
+
e6a2505
+int
e6a2505
+main ()
e6a2505
+{
e6a2505
+  return find_stack_direction () < 0;
e6a2505
+}
e6a2505
+_ACEOF
e6a2505
 rm -f conftest$ac_exeext
e6a2505
 if { (ac_try="$ac_link"
e6a2505
 case "(($ac_try" in
4b6dc23
@@ -14151,43 +14398,30 @@
e6a2505
   ac_status=$?
e6a2505
   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e6a2505
   (exit $ac_status); }; }; then
e6a2505
-  :
e6a2505
+  ac_cv_c_stack_direction=1
e6a2505
 else
e6a2505
   $as_echo "$as_me: program exited with status $ac_status" >&5
e6a2505
 $as_echo "$as_me: failed program was:" >&5
e6a2505
 sed 's/^/| /' conftest.$ac_ext >&5
e6a2505
 
e6a2505
 ( exit $ac_status )
e6a2505
-gcl_ok=yes
e6a2505
+ac_cv_c_stack_direction=-1
e6a2505
 fi
e6a2505
 rm -rf conftest.dSYM
e6a2505
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6a2505
 fi
e6a2505
 
e6a2505
 
e6a2505
- if test $gcl_ok = yes ; then
e6a2505
-    { $as_echo "$as_me:$LINENO: result: yes" >&5
e6a2505
-$as_echo "yes" >&6; }
e6a2505
-    cat >>confdefs.h <<\_ACEOF
e6a2505
-#define HAVE_ALLOCA 1
e6a2505
-_ACEOF
e6a2505
-
e6a2505
-    cat >>confdefs.h <<\_ACEOF
e6a2505
-#define NEED_ALLOCA_H 1
e6a2505
-_ACEOF
e6a2505
-
e6a2505
- fi
e6a2505
 fi
e6a2505
-if test $gcl_ok = no ; then     { $as_echo "$as_me:$LINENO: result: no" >&5
e6a2505
-$as_echo "no" >&6; } ; fi
e6a2505
-
e6a2505
-
e6a2505
-
e6a2505
-
e6a2505
-
e6a2505
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
e6a2505
+$as_echo "$ac_cv_c_stack_direction" >&6; }
e6a2505
 
e6a2505
+cat >>confdefs.h <<_ACEOF
e6a2505
+#define STACK_DIRECTION $ac_cv_c_stack_direction
e6a2505
+_ACEOF
e6a2505
 
e6a2505
 
e6a2505
+fi
e6a2505
 
e6a2505
 
e6a2505
 # dlopen etc
e6a2505
diff -dur gcl-2.6.8.ORIG/configure.in gcl-2.6.8/configure.in
4b6dc23
--- gcl-2.6.8.ORIG/configure.in	2009-08-11 10:55:12.621467749 -0600
4b6dc23
+++ gcl-2.6.8/configure.in	2009-08-11 10:55:32.543471585 -0600
4b8f337
@@ -1869,33 +1869,7 @@
e6a2505
 
e6a2505
 # alloca
e6a2505
 
e6a2505
-AC_MSG_CHECKING([for alloca])
e6a2505
-AC_RUN_IFELSE([AC_LANG_PROGRAM([],[[exit(alloca(500) != NULL ? 0 : 1);]])],
e6a2505
-  ,gcl_ok=yes, gcl_ok=no,gcl_ok=no)
e6a2505
-if test $gcl_ok = yes ; then
e6a2505
-    AC_MSG_RESULT(yes)
e6a2505
-    AC_DEFINE(HAVE_ALLOCA)
e6a2505
-else
e6a2505
-  AC_RUN_IFELSE([AC_LANG_PROGRAM([[
e6a2505
-  #include <alloca.h>
e6a2505
-  ]],[[exit(alloca(500) != NULL ? 0 : 1);]])],
e6a2505
-  ,gcl_ok=yes, gcl_ok=no,gcl_ok=no)
e6a2505
- if test $gcl_ok = yes ; then
e6a2505
-    AC_MSG_RESULT(yes)
e6a2505
-    AC_DEFINE(HAVE_ALLOCA)
e6a2505
-    AC_DEFINE(NEED_ALLOCA_H)
e6a2505
- fi
e6a2505
-fi
e6a2505
-if test $gcl_ok = no ; then     AC_MSG_RESULT(no) ; fi
e6a2505
-
e6a2505
-
e6a2505
-
e6a2505
-
e6a2505
-
e6a2505
-
e6a2505
-
e6a2505
-
e6a2505
-
e6a2505
+AC_FUNC_ALLOCA
e6a2505
 
e6a2505
 # dlopen etc
e6a2505
 # idea make it so you do something dlopen(libX.so,RTLD_GLOBAL)
e6a2505
diff -dur gcl-2.6.8.ORIG/h/gclincl.h.in gcl-2.6.8/h/gclincl.h.in
4b6dc23
--- gcl-2.6.8.ORIG/h/gclincl.h.in	2009-08-11 10:55:12.622464351 -0600
4b6dc23
+++ gcl-2.6.8/h/gclincl.h.in	2009-08-11 10:55:32.545474389 -0600
e6a2505
@@ -54,11 +54,10 @@
e6a2505
 #undef HAVE_ALLOCA 
e6a2505
 #endif
e6a2505
 
e6a2505
-
e6a2505
 /* define if need alloca.h */
e6a2505
-#undef NEED_ALLOCA_H
e6a2505
+#undef HAVE_ALLOCA_H
e6a2505
 
e6a2505
-#ifdef NEED_ALLOCA_H
e6a2505
+#ifdef HAVE_ALLOCA_H
e6a2505
 #include <alloca.h>
e6a2505
 #endif
e6a2505
 
4b8f337
@@ -260,6 +259,21 @@
e6a2505
 #undef HAVE_OBJC_MALLOC_H
4b8f337
 #undef HAVE_OUTPUT_BFD
e6a2505
 
e6a2505
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
e6a2505
+   systems. This function is required for `alloca.c' support on those systems.
e6a2505
+   */
e6a2505
+#undef CRAY_STACKSEG_END
e6a2505
+
e6a2505
+/* Define to 1 if using `alloca.c'. */
e6a2505
+#undef C_ALLOCA
e6a2505
+
e6a2505
+/* Define to 1 if you have `alloca', as a function or macro. */
e6a2505
+#undef HAVE_ALLOCA
e6a2505
+
e6a2505
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
e6a2505
+   */
e6a2505
+#undef HAVE_ALLOCA_H
e6a2505
+
e6a2505
 /* Define to 1 if you have the <asm/sigcontext.h> header file. */
e6a2505
 #undef HAVE_ASM_SIGCONTEXT_H
e6a2505
 
4b6dc23
@@ -347,6 +361,14 @@
e6a2505
 /* The size of `long', as computed by sizeof. */
e6a2505
 #undef SIZEOF_LONG
e6a2505
 
e6a2505
+/* If using the C implementation of alloca, define if you know the
e6a2505
+   direction of stack growth for your system; otherwise it will be
e6a2505
+   automatically deduced at runtime.
e6a2505
+	STACK_DIRECTION > 0 => grows toward higher addresses
e6a2505
+	STACK_DIRECTION < 0 => grows toward lower addresses
e6a2505
+	STACK_DIRECTION = 0 => direction of growth unknown */
e6a2505
+#undef STACK_DIRECTION
e6a2505
+
e6a2505
 /* Define to 1 if you have the ANSI C header files. */
e6a2505
 #undef STDC_HEADERS
e6a2505