1dnl Process this file with autoconf to produce a configure script.
2dnl Written 1996, 1997, 1998 Bernd Schmidt
3
4dnl If you can use anything from this file, feel free to steal it. I put
5dnl this into the public domain.
6
7dnl There are still many uncaught errors (e.g. --enable-dga on an Amiga)
8dnl I didn't have the nerve to track them all down.
9
10AC_INIT(sysconfig.h.in)
11AC_PREREQ(2.12)
12
13dnl Checks for programs.
14AC_PROG_CC
15
16AC_PROG_CPP
17AC_PROG_MAKE_SET
18
19AC_AIX
20AC_ISC_POSIX
21
22
23AC_PATH_XTRA
24AC_CONFIG_HEADER(sysconfig.h)
25
26AC_HEADER_STDC
27
28dnl @@@ Is <sys/termios.h> the right way or is it <termios.h>?
29AC_CHECK_HEADERS(unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h curses.h)
30AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h getopt.h features.h sys/termios.h)
31AC_CHECK_HEADERS(posix_opt.h sys/ioctl.h sys/ipc.h sys/shm.h sys/stat.h sys/utime.h)
32AC_CHECK_HEADERS(windows.h ddraw.h)
33AC_CHECK_HEADER(be_math.h, HAVE_BEOS=yes, HAVE_BEOS=no)
34AC_CHECK_HEADERS(machine/joystick.h)
35AC_CHECK_HEADERS(devices/ahi.h)
36AC_CHECK_HEADERS(dmedia/audio.h SDL/SDL.h)
37AC_CHECK_HEADERS(libraries/cybergraphics.h cybergraphx/cybergraphics.h)
38
39AC_CHECK_SIZEOF(char, 1)
40AC_CHECK_SIZEOF(short, 2)
41AC_CHECK_SIZEOF(int, 4)
42AC_CHECK_SIZEOF(long, 4)
43AC_CHECK_SIZEOF(long long, 8)
44AC_CHECK_SIZEOF(__int64, 8)
45
46dnl Checks for typedefs, structures, and compiler characteristics.
47AC_C_CONST
48AC_C_INLINE
49if [[ "x$ac_cv_c_inline" = "xno" ]]; then
50  ac_cv_c_inline=
51fi
52AC_TYPE_MODE_T
53AC_TYPE_OFF_T
54AC_TYPE_PID_T
55AC_STRUCT_ST_BLOCKS
56AC_HEADER_TIME
57AC_STRUCT_TM
58
59dnl Checks for library functions.
60AC_PROG_GCC_TRADITIONAL
61AC_FUNC_MEMCMP
62AC_TYPE_SIGNAL
63AC_FUNC_UTIME_NULL
64AC_CHECK_FUNCS(getcwd getopt strdup gettimeofday sigaction mkdir rmdir select strerror strstr)
65AC_CHECK_FUNCS(tcgetattr cfmakeraw readdir_r vprintf vsprintf vfprintf setitimer)
66
67AC_SUBST(ac_cv_c_inline)
68AC_SUBST(WRC)
69AC_SUBST(SET_MAKE)
70
71AC_SUBST(top_srcdir)
72
73AC_OUTPUT(Makefile)
74