aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure.in
diff options
context:
space:
mode:
authorDonn Terry <donn@interix.com>1999-04-26 00:40:51 +0000
committerJeff Law <law@gcc.gnu.org>1999-04-25 18:40:51 -0600
commit7dd8861714a08b5ab15772d0148d5a92ef75eb32 (patch)
tree14ec38e32af7c78c7fdd8b489305ec0f717c4bec /libiberty/configure.in
parentab40f612254bcfadf24f4eed82aabc17fdb86cd1 (diff)
downloadgcc-7dd8861714a08b5ab15772d0148d5a92ef75eb32.zip
gcc-7dd8861714a08b5ab15772d0148d5a92ef75eb32.tar.gz
gcc-7dd8861714a08b5ab15772d0148d5a92ef75eb32.tar.bz2
configure.in (alloca detection): Handle alloca directly for interix.
* configure.in (alloca detection): Handle alloca directly for interix. * configure: Rebuilt. From-SVN: r26635
Diffstat (limited to 'libiberty/configure.in')
-rw-r--r--libiberty/configure.in23
1 files changed, 22 insertions, 1 deletions
diff --git a/libiberty/configure.in b/libiberty/configure.in
index da33ca9..77eec3b 100644
--- a/libiberty/configure.in
+++ b/libiberty/configure.in
@@ -299,7 +299,28 @@ if test -z "${setobjs}"; then
# tests. This will only work if the compiler works.
AC_PROG_CC_WORKS
AC_REPLACE_FUNCS($funcs)
- AC_FUNC_ALLOCA
+
+ case "${host}" in
+ *-*-interix)
+ # On Interix, it wrongly concludes that the MSVC compiler supports alloca.
+ # (MSVC does on Win32, not on Interix.)
+ # This should be temporary.
+
+ ac_cv_header_alloca_h=no
+ ac_cv_func_alloca_works=no
+ ALLOCA=alloca.o
+ cat >> confdefs.h <<\EOF
+#define C_ALLOCA 1
+EOF
+ cat >> confdefs.h <<EOF
+#define STACK_DIRECTION -1
+EOF
+ ;;
+ *)
+ AC_FUNC_ALLOCA
+ ;;
+ esac
+
AC_FUNC_VFORK
if test $ac_cv_func_vfork_works = no; then
LIBOBJS="$LIBOBJS vfork.o"