mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
should be better alloca prototype testing
This commit is contained in:
parent
69e7b8a820
commit
1819a96bfb
1 changed files with 11 additions and 11 deletions
22
configure.ac
22
configure.ac
|
@ -311,17 +311,17 @@ AC_TRY_LINK(
|
|||
)
|
||||
AM_CONDITIONAL(BUILD_GETOPT, test "x$BUILD_GETOPT" = "xyes")
|
||||
|
||||
AC_MSG_CHECKING(for alloca in stdlib.h)
|
||||
AC_TRY_COMPILE(
|
||||
[#include <stdlib.h>],
|
||||
[void *(*foo)(size_t) = alloca;],
|
||||
have_alloca_proto=yes
|
||||
AC_MSG_RESULT(yes),
|
||||
have_alloca_proto=no
|
||||
AC_MSG_RESULT(no)
|
||||
)
|
||||
|
||||
if test "x$have_alloca_proto" = no -a "x$ac_cv_header_alloca_h" = yes; then
|
||||
if test "x$ac_cv_header_alloca_h" = no; then
|
||||
AC_MSG_CHECKING(for alloca in stdlib.h)
|
||||
AC_TRY_COMPILE(
|
||||
[#include <stdlib.h>],
|
||||
[void *(*foo)(size_t) = alloca;],
|
||||
have_alloca_proto=yes
|
||||
AC_MSG_RESULT(yes),
|
||||
have_alloca_proto=no
|
||||
AC_MSG_RESULT(no)
|
||||
)
|
||||
else
|
||||
AC_MSG_CHECKING(for alloca in alloca.h)
|
||||
AC_TRY_COMPILE(
|
||||
[#include <stdlib.h>]
|
||||
|
|
Loading…
Reference in a new issue