Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
From: Torsten Giebl
Subject: ALLOCA Patch for SDL-1.2
Newsgroups: gmane.comp.lib.sdl
Date: 2006-10-24 00:31:16 GMT

Hello !

As alloca.h is not available on CYGWIN and MinGW32
it should not be checked there or it should be checked
with -mno-cygwin using.

I am a total configure.in newbie, but i found the way
that things are handled in configure.in pretty bad for the
case CYGWIN with MinGW Mode or not.

Maybe this is not possible but i would like to
have a way to detect at the start for example CYGWIN
and then add. ask if configure was called with --enable-cygwin
for example. --enable-cygwin should be optional and disabled
by default as we want to have MinGW Mode by default.

Only if the user wants it he should be able to use it.

Then the whole configure.in would get add. questions
okay the system is CYGWIN with or without MinGW Mode.

The alloca.h thing for example is only
available under CYGWIN ( without MinGW Mode ).

CU
  • Loading branch information
icculus committed Dec 1, 2006
1 parent 0afe7af commit 947d94e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion configure.in
Expand Up @@ -124,7 +124,14 @@ if test x$enable_libc = xyes; then
fi

dnl Checks for library functions.
AC_FUNC_ALLOCA
case "$host" in
*-*-cygwin* | *-*-mingw32*)
;;
*)
AC_FUNC_ALLOCA
;;
esac

AC_FUNC_MEMCMP
if test x$ac_cv_func_memcmp_working = xyes; then
AC_DEFINE(HAVE_MEMCMP)
Expand Down

0 comments on commit 947d94e

Please sign in to comment.