Don't check for Steam/CD installer versions on Windows CE.
[chocolate-doom.git] / configure.in
blob15ef200a7100b2d3158be6c6b8e52d8e063c18b9
1 AC_INIT(Chocolate Doom, 1.2.1, fraggle@gmail.com, chocolate-doom)
3 AC_CONFIG_AUX_DIR(autotools)
5 orig_CFLAGS="$CFLAGS"
7 AC_PROG_CC
8 AC_PROG_RANLIB
9 AC_CHECK_PROG(HAVE_PYTHON, python, true, false)
11 OPT_LEVEL=2
13 # Engine room, we need more speed!
15 AC_ARG_ENABLE(penis-extension, 
16 [  --enable-penis-extension   Enable counterproductive compiler optimisations ],
17 [ OPT_LEVEL=3 ])
19 # If this is gcc, we have some options we'd like to turn on.  Turn on 
20 # optimisation and debugging symbols.
22 if test "$GCC" = "yes"
23 then
24         CFLAGS="-O$OPT_LEVEL -g -Wall $orig_CFLAGS"
27 dnl Search for SDL ...
29 AM_PATH_SDL(1.1.3)
31 # Add the SDL compiler flags to the default compiler flag variables. 
32 # It is important to do this now, before checking for headers and
33 # library functions.  The reason being that on Windows, sdl-config
34 # sets the -mno-cygwin compiler option in order to generate MinGW 
35 # executables.  If we don't do this now, we might end up discovering
36 # header files that are not actually available to us when we come
37 # to compile.
39 CFLAGS="$CFLAGS $SDL_CFLAGS"
40 LDFLAGS="$LDFLAGS $SDL_LIBS"
42 AC_CHECK_LIB(SDL_mixer,Mix_LoadMUS,[
43     SDLMIXER_LIBS="$SDLMIXER_LIBS -lSDL_mixer"
44 ],[
45     echo "*** Could not find SDL_mixer.  Please install it."
46     exit -1
49 AC_CHECK_LIB(SDL_net,SDLNet_UDP_Send,[
50     SDLNET_LIBS="$SDLNET_LIBS -lSDL_net"
51 ],[
52     echo "*** Could not find SDL_net.  Please install it."
53     exit -1
56 AC_CHECK_HEADERS([linux/kd.h dev/isa/spkrio.h dev/speaker/speaker.h])
57 AC_CHECK_FUNCS(mmap sched_setaffinity)
59 # DWF 2008-02-10:  FIXME
60 AC_CHECK_LIB(samplerate, src_new)
62 AC_CHECK_TOOL(WINDRES, windres, )
64 AM_CONDITIONAL(HAVE_WINDRES, test "$WINDRES" != "")
65 AM_CONDITIONAL(HAVE_PYTHON, $HAVE_PYTHON)
67 dnl Automake v1.8.0 is required, please upgrade!
69 AM_INIT_AUTOMAKE([1.8.0])
71 WINDOWS_RC_VERSION=`echo $PACKAGE_VERSION.0 | sed 's/\./, /g' `
73 AM_CONFIG_HEADER(config.h:config.hin)
75 AC_SUBST(WINDOWS_RC_VERSION)
76 AC_SUBST(SDLMIXER_CFLAGS)
77 AC_SUBST(SDLMIXER_LIBS)
79 AC_SUBST(SDLNET_CFLAGS)
80 AC_SUBST(SDLNET_LIBS)
82 AC_SUBST(ac_aux_dir)
84 dnl Shut up the datarootdir warnings.
85 AC_DEFUN([AC_DATAROOTDIR_CHECKED])
87 AC_OUTPUT([
88 Makefile
89 textscreen/Makefile
90 textscreen/examples/Makefile
91 setup/Makefile
92 man/Makefile
93 src/Makefile
94 pcsound/Makefile
95 src/resource.rc
96 src/doom-screensaver.desktop
97 setup/setup-res.rc