mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
df65679028
It's way obsolete and I doubt we'll ever need it again. I do wonder what to do abut sun, sgi etc.
93 lines
2.7 KiB
Text
93 lines
2.7 KiB
Text
dnl ==================================================================
|
|
dnl Checks for header files.
|
|
dnl ==================================================================
|
|
|
|
AC_HEADER_DIRENT
|
|
AC_HEADER_STDC
|
|
AC_HEADER_MAJOR
|
|
AC_HEADER_SYS_WAIT
|
|
AC_CHECK_HEADERS(
|
|
alloca.h arpa/inet.h asm/io.h assert.h conio.h \
|
|
ctype.h ddraw.h dinput.h direct.h dirent.h dlfcn.h dmedia/audio.h \
|
|
dmedia/cdaudio.h dpmi.h dsound.h errno.h execinfo.h fcntl.h io.h \
|
|
libc.h limits.h linux/cdrom.h linux/joystick.h linux/soundcard.h \
|
|
machine/soundcard.h malloc.h math.h mgraph.h _mingw.h netdb.h \
|
|
netinet/in.h process.h pthread.h pwd.h rpc/types.h setjmp.h signal.h \
|
|
stdarg.h stdio.h stdlib.h string.h strings.h sys/asoundlib.h \
|
|
sys/audioio.h sys/filio.h sys/ioctl.h sys/io.h sys/ipc.h sys/mman.h \
|
|
sys/param.h sys/poll.h sys/shm.h sys/signal.h sys/socket.h \
|
|
sys/soundcard.h sys/stat.h sys/time.h sys/types.h sys/uio.h termios.h \
|
|
time.h unistd.h vgakeyboard.h vgamouse.h windows.h winsock.h
|
|
)
|
|
if test "x$mingw" = xyes; then
|
|
AC_MSG_CHECKING(for fnmatch.h)
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_FNMATCH_H, 1, [Define this if you have fnmatch.h])
|
|
AC_MSG_CHECKING(for tchar.h)
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_TCHAR_H, 1, [Define this if you have tchar.h])
|
|
else
|
|
AC_CHECK_HEADERS(fnmatch.h)
|
|
fi
|
|
|
|
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>]
|
|
[#include <alloca.h>],
|
|
[void *(*foo)(size_t) = alloca;],
|
|
have_alloca_proto=yes
|
|
AC_MSG_RESULT(yes),
|
|
have_alloca_proto=no
|
|
AC_MSG_RESULT(no)
|
|
)
|
|
fi
|
|
|
|
if test "x$have_alloca_proto" = xyes; then
|
|
AC_DEFINE(HAVE_ALLOCA_PROTO)
|
|
fi
|
|
AH_VERBATIM([HAVE_ALLOCA_PROTO],
|
|
[/* Define this if alloca is prototyped */
|
|
#undef HAVE_ALLOCA_PROTO
|
|
#ifndef HAVE_ALLOCA_PROTO
|
|
#ifndef QFASM
|
|
void *alloca (int size);
|
|
#endif
|
|
#endif])
|
|
|
|
AC_MSG_CHECKING(for fnmatch in fnmatch.h)
|
|
AC_TRY_COMPILE(
|
|
[#include "fnmatch.h"],
|
|
[int (*foo)() = fnmatch;],
|
|
AC_DEFINE(HAVE_FNMATCH_PROTO, 1, [Define this if fnmatch is prototyped in fnmatch.h])
|
|
AC_MSG_RESULT(yes),
|
|
AC_MSG_RESULT(no)
|
|
)
|
|
|
|
AC_MSG_CHECKING(for strnlen in string.h)
|
|
AC_TRY_COMPILE(
|
|
[#include "string.h"],
|
|
[int (*foo)() = strnlen;],
|
|
AC_DEFINE(HAVE_STRNLEN_PROTO, 1, [Define this if strnlen is prototyped in string.h])
|
|
AC_MSG_RESULT(yes),
|
|
AC_MSG_RESULT(no)
|
|
)
|
|
|
|
AC_MSG_CHECKING(for strcasestr in string.h)
|
|
AC_TRY_COMPILE(
|
|
[#include "string.h"],
|
|
[int (*foo)() = strcasestr;],
|
|
AC_DEFINE(HAVE_STRCASESTR_PROTO, 1, [Define this if strcasestr is prototyped in string.h])
|
|
AC_MSG_RESULT(yes),
|
|
AC_MSG_RESULT(no)
|
|
)
|