[ --disable-worldscore disable worldscore support], ,AC_DEFINE(WORLD_SCORE, 1, [Allow the game to send scores to the score server]))
AC_ARG_ENABLE(chuukei,
[ --enable-chuukei enable internet chuukei support], AC_DEFINE(CHUUKEI, 1, [Chuukei mode]))
-AC_ARG_ENABLE(c99,
-[ --enable-c99 use c99 option for typedef], AC_DEFINE(C99,
- 1, [C99 Compile]))
dnl -fno-strength-reduce prevents a bug in some versions of gcc
if test "$GCC" = yes; then
fi
AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h strings.h sys/file.h sys/ioctl.h sys/time.h termio.h unistd.h)
+AC_CHECK_HEADERS(fcntl.h strings.h sys/file.h sys/ioctl.h sys/time.h termio.h unistd.h stdint.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
/* File: h-type.h */
-#ifdef C99
-#include <stdint.h>
-#endif
-
#ifndef INCLUDED_H_TYPE_H
#define INCLUDED_H_TYPE_H
*/
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
/*** Special 4 letter names for some standard types ***/
/* Signed/Unsigned 16 bit value */
-#ifdef C99
+#ifdef HAVE_STDINT_H
typedef int16_t s16b;
typedef uint16_t u16b;
#else
#endif
/* Signed/Unsigned 32 bit value */
-#ifdef C99
+#ifdef HAVE_STDINT_H
typedef int32_t s32b;
typedef uint32_t u32b;
#else