Check for alloca.h.

This commit is contained in:
Steve Checkoway
2007-05-27 07:25:48 +00:00
parent 95e7657039
commit c9f5d9de49
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ AC_CHECK_HEADER(sys/soundcard.h, [AC_DEFINE(HAVE_OSS, 1, [OSS support available]
AC_CHECK_DECL(OSS_GETVERSION, AC_DEFINE([HAVE_OSS_GETVERSION],1,[OSS_GETVERSION is defined]), , [#include <sys/soundcard.h>])
AC_ARG_ENABLE(force-oss, AS_HELP_STRING([--enable-force-oss],[Force OSS]), force_oss=$enableval, force_oss=no)
AC_CHECK_HEADER(stdint.h, , [AC_DEFINE(MISSING_STDINT_H, 1, [stdint.h is missing])])
AC_CHECK_HEADERS([inttypes.h endian.h machine/endian.h])
AC_CHECK_HEADERS([inttypes.h endian.h machine/endian.h alloca.h])
AC_MSG_CHECKING(if cstdlib breaks llabs)
AC_LANG_PUSH(C++)
+4 -2
View File
@@ -5,12 +5,14 @@
#define __C99FEATURES__
#endif
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif
#if !defined(MISSING_STDINT_H) /* need to define int64_t if so */
#include <stdint.h>
#endif
#include <alloca.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif