1 dnl Process this file with autoconf to produce a configure script.
4 dnl Set various version strings - taken gratefully from the GTk sources
7 # Edit include/SDL/SDL_version.h and change the version, then:
8 # SDL_MICRO_VERSION += 1;
9 # SDL_INTERFACE_AGE += 1;
10 # SDL_BINARY_AGE += 1;
11 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
12 # if backwards compatibility has been broken,
13 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
20 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
22 AC_SUBST(SDL_MAJOR_VERSION)
23 AC_SUBST(SDL_MINOR_VERSION)
24 AC_SUBST(SDL_MICRO_VERSION)
25 AC_SUBST(SDL_INTERFACE_AGE)
26 AC_SUBST(SDL_BINARY_AGE)
30 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
31 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
32 LT_REVISION=$SDL_INTERFACE_AGE
33 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
40 dnl Setup for automake
41 AM_INIT_AUTOMAKE(SDL, $SDL_VERSION)
43 dnl Detect the canonical host and target build environment
62 # This is stupid, but necessary on some versions of Linux (joysticks)
70 dnl The alpha architecture needs special flags for binary portability
73 if test x$ac_cv_prog_gcc = xyes; then
74 CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
79 dnl Add compiler-specific optimization flags
81 dnl See if the user wants aggressive optimizations of the code
83 [ --enable-debug Disable aggressive optimizations [default=yes]],
85 if test x$enable_debug != xyes; then
86 if test x$ac_cv_prog_gcc = xyes; then
87 CFLAGS="$CFLAGS -fexpensive-optimizations"
88 # Ack! This breaks the MMX YV12 conversion on gcc 2.95.2
89 # CFLAGS="$CFLAGS -fomit-frame-pointer"
93 if test x$ac_cv_prog_gcc = xyes; then
94 CFLAGS="$CFLAGS -march=486"
98 if test x$ac_cv_prog_gcc = xyes; then
99 CFLAGS="$CFLAGS -march=pentium -mcpu=pentiumpro"
103 if test x$ac_cv_prog_gcc != xyes; then
104 CFLAGS="-g3 -fast -arch host"
110 dnl Add verbose warnings by default, and allow ANSI compliance checking
111 AC_ARG_ENABLE(strict-ansi,
112 [ --enable-strict-ansi Enable strict ANSI compliance build [default=no]],
113 , enable_strict_ansi=no)
114 if test x$ac_cv_prog_gcc = xyes; then
115 CFLAGS="$CFLAGS -Wall"
116 if test x$enable_strict_ansi = xyes; then
117 CFLAGS="$CFLAGS -ansi -pedantic -D_XOPEN_SOURCE"
121 dnl Initialize the compiler and linker flags for SDL applications
126 dnl Add the math library for the new gamma correction support
129 *-*-cygwin* | *-*-mingw32*)
142 SYSTEM_LIBS="$SYSTEM_LIBS $MATHLIB"
144 dnl Enable/disable various subsystems of the SDL library
147 [ --enable-audio Enable the audio subsystem [default=yes]],
149 if test x$enable_audio = xyes; then
150 SDL_EXTRADIRS="$SDL_EXTRADIRS audio"
151 SDL_EXTRALIBS="$SDL_EXTRALIBS audio/libaudio.la"
153 CFLAGS="$CFLAGS -DDISABLE_AUDIO"
156 [ --enable-video Enable the video subsystem [default=yes]],
158 if test x$enable_video = xyes; then
159 SDL_EXTRADIRS="$SDL_EXTRADIRS video"
160 SDL_EXTRALIBS="$SDL_EXTRALIBS video/libvideo.la"
162 CFLAGS="$CFLAGS -DDISABLE_VIDEO"
164 AC_ARG_ENABLE(events,
165 [ --enable-events Enable the events subsystem [default=yes]],
167 if test x$enable_video = xyes -a x$enable_events = xyes; then
168 SDL_EXTRADIRS="$SDL_EXTRADIRS events"
169 SDL_EXTRALIBS="$SDL_EXTRALIBS events/libevents.la"
171 CFLAGS="$CFLAGS -DDISABLE_EVENTS"
173 AC_ARG_ENABLE(joystick,
174 [ --enable-joystick Enable the joystick subsystem [default=yes]],
175 , enable_joystick=yes)
176 if test x$enable_joystick = xyes; then
177 SDL_EXTRADIRS="$SDL_EXTRADIRS joystick"
178 SDL_EXTRALIBS="$SDL_EXTRALIBS joystick/libjoystick.la"
180 CFLAGS="$CFLAGS -DDISABLE_JOYSTICK"
183 [ --enable-cdrom Enable the cdrom subsystem [default=yes]],
185 if test x$enable_cdrom = xyes; then
186 SDL_EXTRADIRS="$SDL_EXTRADIRS cdrom"
187 SDL_EXTRALIBS="$SDL_EXTRALIBS cdrom/libcdrom.la"
189 CFLAGS="$CFLAGS -DDISABLE_CDROM"
191 AC_ARG_ENABLE(threads,
192 [ --enable-threads Enable the threading subsystem [default=yes]],
193 , enable_threads=yes)
194 SDL_EXTRADIRS="$SDL_EXTRADIRS thread"
195 SDL_EXTRALIBS="$SDL_EXTRALIBS thread/libthread.la"
196 if test x$enable_threads != xyes; then
197 CFLAGS="$CFLAGS -DDISABLE_THREADS"
198 COPY_ARCH_SRC(src/thread, generic, SDL_systhread.c)
199 COPY_ARCH_SRC(src/thread, generic, SDL_systhread_c.h)
200 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c)
201 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h)
202 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
203 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
204 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
205 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
207 AC_ARG_ENABLE(timers,
208 [ --enable-timers Enable the timer subsystem [default=yes]],
210 if test x$enable_timers = xyes; then
211 SDL_EXTRADIRS="$SDL_EXTRADIRS timer"
212 SDL_EXTRALIBS="$SDL_EXTRALIBS timer/libtimer.la"
214 CFLAGS="$CFLAGS -DDISABLE_TIMERS"
216 AC_ARG_ENABLE(endian,
217 [ --enable-endian Enable the endian subsystem [default=yes]],
219 if test x$enable_endian = xyes; then
220 SDL_EXTRADIRS="$SDL_EXTRADIRS endian"
221 SDL_EXTRALIBS="$SDL_EXTRALIBS endian/libendian.la"
223 CFLAGS="$CFLAGS -DDISABLE_ENDIAN"
226 [ --enable-file Enable the file subsystem [default=yes]],
228 if test x$enable_file = xyes; then
229 SDL_EXTRADIRS="$SDL_EXTRADIRS file"
230 SDL_EXTRALIBS="$SDL_EXTRALIBS file/libfile.la"
232 CFLAGS="$CFLAGS -DDISABLE_FILE"
235 dnl See if the OSS audio interface is supported
239 [ --enable-oss support the OSS audio API [default=yes]],
241 if test x$enable_audio = xyes -a x$enable_oss = xyes; then
242 AC_MSG_CHECKING(for OSS audio support)
246 #include <linux/soundcard.h>
249 #include <machine/soundcard.h>
252 #include <sys/soundcard.h>
255 #include <soundcard.h>
258 #include <sys/soundcard.h>
261 int arg = SNDCTL_DSP_SETFRAGMENT;
265 AC_MSG_RESULT($have_oss)
266 if test x$have_oss = xyes; then
267 CFLAGS="$CFLAGS -DOSS_SUPPORT"
268 AUDIO_SUBDIRS="$AUDIO_SUBDIRS dsp"
269 AUDIO_DRIVERS="$AUDIO_DRIVERS dsp/libaudio_dsp.la"
270 AUDIO_SUBDIRS="$AUDIO_SUBDIRS dma"
271 AUDIO_DRIVERS="$AUDIO_DRIVERS dma/libaudio_dma.la"
276 dnl See if the ALSA audio interface is supported
280 [ --enable-alsa support the ALSA audio API [default=yes]],
282 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
284 AC_CHECK_HEADER(sys/asoundlib.h, have_alsa_hdr=yes)
285 AC_CHECK_LIB(asound, snd_pcm_open, have_alsa_lib=yes)
286 if test x$have_alsa_hdr = xyes -a x$have_alsa_lib = xyes; then
287 CFLAGS="$CFLAGS -DALSA_SUPPORT"
288 SYSTEM_LIBS="$SYSTEM_LIBS -lasound"
289 AUDIO_SUBDIRS="$AUDIO_SUBDIRS alsa"
290 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa/libaudio_alsa.la"
295 dnl Find the ESD includes and libraries
299 [ --enable-esd support the Enlightened Sound Daemon [default=yes]],
301 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
303 CFLAGS="$CFLAGS -DESD_SUPPORT $ESD_CFLAGS"
304 SYSTEM_LIBS="$SYSTEM_LIBS $ESD_LIBS"
305 AUDIO_SUBDIRS="$AUDIO_SUBDIRS esd"
306 AUDIO_DRIVERS="$AUDIO_DRIVERS esd/libaudio_esd.la"
314 [ --enable-arts support the Analog Real Time Synthesizer [default=yes]],
316 if test x$enable_audio = xyes -a x$enable_arts = xyes; then
317 AC_PATH_PROG(ARTSCCONFIG, artsc-config)
318 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; then
319 : # arts isn't installed
321 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
322 ARTSC_LIBS=`$ARTSCCONFIG --libs`
323 AC_MSG_CHECKING(for aRts development environment)
325 save_CFLAGS="$CFLAGS"
326 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
330 arts_stream_t stream;
334 CFLAGS="$save_CFLAGS"
335 AC_MSG_RESULT($audio_arts)
336 if test x$audio_arts = xyes; then
337 CFLAGS="$CFLAGS -DARTSC_SUPPORT $ARTSC_CFLAGS"
338 SYSTEM_LIBS="$SYSTEM_LIBS $ARTSC_LIBS"
339 AUDIO_SUBDIRS="$AUDIO_SUBDIRS arts"
340 AUDIO_DRIVERS="$AUDIO_DRIVERS arts/libaudio_arts.la"
346 dnl See if the NAS audio interface is supported
350 [ --enable-nas support the NAS audio API [default=yes]],
352 if test x$enable_audio = xyes -a x$enable_nas = xyes; then
353 AC_MSG_CHECKING(for NAS audio support)
355 if test -r /usr/X11R6/include/audio/audiolib.h ; then
358 AC_MSG_RESULT($have_nas)
359 if test x$have_nas = xyes; then
360 CFLAGS="$CFLAGS -DNAS_SUPPORT"
361 SYSTEM_LIBS="$SYSTEM_LIBS -laudio -lXt"
362 AUDIO_SUBDIRS="$AUDIO_SUBDIRS nas"
363 AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la"
368 dnl See if we can use x86 assembly blitters
371 dnl Make sure we are running on an x86 platform
380 dnl Check for NASM (for assembly blit routines)
382 [ --enable-nasm use nasm assembly blitters on x86 [default=yes]],
384 if test x$enable_video = xyes -a x$enable_nasm = xyes; then
385 AC_PATH_PROG(NASM, nasm)
386 if test x$NASM = x -o x$NASM = x'"$NASM"'; then
387 : # nasm isn't installed
389 CFLAGS="$CFLAGS -DUSE_ASMBLIT -I$srcdir/hermes"
399 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hermes"
400 SDL_EXTRADIRS="$SDL_EXTRADIRS hermes"
401 SDL_EXTRALIBS="$SDL_EXTRALIBS hermes/libhermes.la"
406 dnl Find the nanox include and library directories
409 AC_ARG_ENABLE(video-nanox,
410 [ --enable-video-nanox use nanox video driver [default=no]],
411 , enable_video_nanox=no)
412 AC_ARG_ENABLE(nanox-debug,
413 [ --enable-nanox-debug print debug messages [default=no]],
414 , enable_nanox_debug=no)
415 AC_ARG_ENABLE(nanox-share-memory,
416 [ --enable-nanox-share-memory use share memory [default=no]],
417 , enable_nanox_share_memory=no)
419 AC_ARG_WITH(nanox_pixel_type,
420 [ --with-nanox-pixel-type=[rgb/0888/888/565/555/332/pal]])
422 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then
423 if test x$enable_nanox_debug = xyes; then
424 CFLAGS="$CFLAGS -DENABLE_NANOX_DEBUG"
427 if test x$enable_nanox_share_memory = xyes; then
428 CFLAGS="$CFLAGS -DNANOX_SHARE_MEMORY"
431 case "$with_nanox_pixel_type" in
432 rgb) CFLAGS="$CFLAGS -DNANOX_PIXEL_RGB" ;;
433 0888) CFLAGS="$CFLAGS -DNANOX_PIXEL_0888" ;;
434 888) CFLAGS="$CFLAGS -DNANOX_PIXEL_888" ;;
435 565) CFLAGS="$CFLAGS -DNANOX_PIXEL_565" ;;
436 555) CFLAGS="$CFLAGS -DNANOX_PIXEL_555" ;;
437 332) CFLAGS="$CFLAGS -DNANOX_PIXEL_332" ;;
438 pal) CFLAGS="$CFLAGS -DNANOX_PIXEL_PAL" ;;
439 *) AC_MSG_ERROR([Invalid nanox_pixel_type]);;
442 CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_NANOX"
443 SYSTEM_LIBS="$SYSTEM_LIBS -lnano-X"
444 VIDEO_SUBDIRS="$VIDEO_SUBDIRS nanox"
445 VIDEO_DRIVERS="$VIDEO_DRIVERS nanox/libvideo_nanox.la"
449 dnl Find the X11 include and library directories
452 AC_ARG_ENABLE(video-x11,
453 [ --enable-video-x11 use X11 video driver [default=yes]],
454 , enable_video_x11=yes)
455 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
458 if test x$have_x = xyes; then
459 CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_X11"
460 if test x$ac_cv_func_shmat != xyes; then
461 CFLAGS="$CFLAGS -DNO_SHARED_MEMORY"
463 SYSTEM_LIBS="$SYSTEM_LIBS $X_LIBS -lX11 -lXext"
464 VIDEO_SUBDIRS="$VIDEO_SUBDIRS x11"
465 VIDEO_DRIVERS="$VIDEO_DRIVERS x11/libvideo_x11.la"
467 AC_ARG_ENABLE(video-x11-vm,
468 [ --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]],
469 , enable_video_x11_vm=yes)
470 if test x$enable_video_x11_vm = xyes; then
471 AC_MSG_CHECKING(for XFree86 VidMode 1.0 support)
474 #include <X11/Xlib.h>
475 #include <X11/extensions/xf86vmode.h>
480 AC_MSG_RESULT($video_x11_vm)
481 if test x$video_x11_vm = xyes; then
482 CFLAGS="$CFLAGS -DXFREE86_VM"
483 # Check for nasty XFree86 4.0/Glide hack
484 AC_ARG_ENABLE(xfree86_glidehack,
485 [ --enable-xfree86-glidehack Alternate vidmode lib for old Glide [default=no]],
486 , enable_xfreeglidehack=no)
487 if test x$enable_xfree86_glidehack = xyes; then
489 LIBS="$LIBS $X_LIBS -lX11 -lXext"
490 if test x$xfree86_glidehack = x; then
491 AC_CHECK_LIB(Xxf86vm, XF40VidModeQueryExtension, xfree86_glidehack=Xxf86vm)
493 if test x$xfree86_glidehack = x; then
494 AC_CHECK_LIB(Xxf86vm40, XF40VidModeQueryExtension, xfree86_glidehack=Xxf86vm40)
498 if test x$xfree86_glidehack != x; then
499 CFLAGS="$CFLAGS -DXFREE86_VM_DYNAMIC_HACK"
500 SYSTEM_LIBS="$SYSTEM_LIBS -l$xfree86_glidehack"
502 SYSTEM_LIBS="$SYSTEM_LIBS -lXxf86vm"
504 AC_MSG_CHECKING(for XFree86 VidMode gamma support)
507 #include <X11/Xlib.h>
508 #include <X11/extensions/xf86vmode.h>
510 XF86VidModeGamma gamma;
512 video_x11_vmgamma=yes
514 AC_MSG_RESULT($video_x11_vmgamma)
515 if test x$video_x11_vmgamma = xyes; then
516 CFLAGS="$CFLAGS -DXFREE86_VMGAMMA"
521 [ --enable-dga allow use of X11 DGA code [default=yes]],
523 AC_ARG_ENABLE(video-x11-dgamouse,
524 [ --enable-video-x11-dgamouse use X11 DGA for mouse events [default=yes]],
525 , enable_video_x11_dgamouse=yes)
526 if test x$enable_dga = xyes; then
527 AC_MSG_CHECKING(for XFree86 DGA 1.0 support)
530 #include <X11/Xlib.h>
531 #include <X11/extensions/xf86dga.h>
536 AC_MSG_RESULT($video_x11_dga)
537 if test x$video_x11_dga = xyes; then
538 CFLAGS="$CFLAGS -DXFREE86_DGAMOUSE"
539 if test x$enable_video_x11_dgamouse = xyes; then
540 CFLAGS="$CFLAGS -DDEFAULT_DGAMOUSE"
542 SYSTEM_LIBS="$SYSTEM_LIBS -lXxf86dga"
545 AC_ARG_ENABLE(video-x11-xv,
546 [ --enable-video-x11-xv use X11 XvImage extension for video [default=yes]],
547 , enable_video_x11_xv=yes)
548 if test x$enable_video_x11_xv = xyes; then
549 AC_MSG_CHECKING(for XFree86 XvImage support)
552 #include <X11/Xlib.h>
555 #include <X11/extensions/XShm.h>
556 #include <X11/extensions/Xvlib.h>
562 AC_MSG_RESULT($video_x11_xv)
563 if test x$video_x11_xv = xyes; then
564 CFLAGS="$CFLAGS -DXFREE86_XV"
565 SYSTEM_LIBS="$SYSTEM_LIBS -lXv"
573 AC_ARG_ENABLE(video-photon,
574 [ --enable-video-photon use QNX Photonvideo driver [default=yes]],
575 , enable_video_photon=yes)
576 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then
577 AC_MSG_CHECKING(for QNX Photon support)
582 #include <photon/Pg.h>
583 #include <photon/PdDirect.h>
585 PgDisplaySettings_t *visual;
589 AC_MSG_RESULT($video_photon)
590 if test x$video_photon = xyes; then
591 CFLAGS="$CFLAGS -DENABLE_PHOTON"
592 SYSTEM_LIBS="$SYSTEM_LIBS -lph"
593 VIDEO_SUBDIRS="$VIDEO_SUBDIRS photon"
594 VIDEO_DRIVERS="$VIDEO_DRIVERS photon/libvideo_photon.la"
599 dnl Find the X11 DGA 2.0 include and library directories
602 AC_ARG_ENABLE(video-dga,
603 [ --enable-video-dga use DGA 2.0 video driver [default=yes]],
604 , enable_video_dga=yes)
605 if test x$video_x11_dga = xyes -a x$enable_video_dga = xyes; then
606 AC_MSG_CHECKING(for XFree86 DGA 2.0 support)
609 #include <X11/Xlib.h>
610 #include <X11/extensions/xf86dga.h>
616 AC_MSG_RESULT($video_x11_dga2)
617 if test x$video_x11_dga2 = xyes; then
618 CFLAGS="$CFLAGS -DENABLE_DGA"
619 VIDEO_SUBDIRS="$VIDEO_SUBDIRS dga"
620 VIDEO_DRIVERS="$VIDEO_DRIVERS dga/libvideo_dga.la"
625 dnl Find the framebuffer console includes
628 AC_ARG_ENABLE(video-fbcon,
629 [ --enable-video-fbcon use framebuffer console video driver [default=yes]],
630 , enable_video_fbcon=yes)
631 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then
632 AC_MSG_CHECKING(for framebuffer console support)
635 #include <linux/fb.h>
636 #include <linux/kd.h>
637 #include <linux/keyboard.h>
642 AC_MSG_RESULT($video_fbcon)
643 if test x$video_fbcon = xyes; then
644 CFLAGS="$CFLAGS -DENABLE_FBCON"
645 VIDEO_SUBDIRS="$VIDEO_SUBDIRS fbcon"
646 VIDEO_DRIVERS="$VIDEO_DRIVERS fbcon/libvideo_fbcon.la"
651 dnl Find the GGI includes
654 AC_ARG_ENABLE(video-ggi,
655 [ --enable-video-ggi use GGI video driver [default=no]],
656 , enable_video_ggi=no)
657 if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then
658 AC_MSG_CHECKING(for GGI support)
667 AC_MSG_RESULT($video_ggi)
668 if test x$video_ggi = xyes; then
669 CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_GGI"
670 SYSTEM_LIBS="$SYSTEM_LIBS -lggi -lgii -lgg"
672 VIDEO_SUBDIRS="$VIDEO_SUBDIRS ggi"
673 VIDEO_DRIVERS="$VIDEO_DRIVERS ggi/libvideo_ggi.la"
678 dnl Find the SVGAlib includes and libraries
681 AC_ARG_ENABLE(video-svga,
682 [ --enable-video-svga use SVGAlib video driver [default=no]],
683 , enable_video_svga=no)
684 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then
685 AC_MSG_CHECKING(for SVGAlib (1.4.0+) support)
689 #include <vgamouse.h>
690 #include <vgakeyboard.h>
692 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) {
698 AC_MSG_RESULT($video_svga)
699 if test x$video_svga = xyes; then
700 CFLAGS="$CFLAGS -DENABLE_SVGALIB"
701 SYSTEM_LIBS="$SYSTEM_LIBS -lvga"
703 VIDEO_SUBDIRS="$VIDEO_SUBDIRS svga"
704 VIDEO_DRIVERS="$VIDEO_DRIVERS svga/libvideo_svga.la"
709 dnl Find the AAlib includes
712 AC_ARG_ENABLE(video-aalib,
713 [ --enable-video-aalib use AAlib video driver [default=no]],
714 , enable_video_aalib=no)
715 if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then
716 AC_MSG_CHECKING(for AAlib support)
724 AC_MSG_RESULT($video_aalib)
725 if test x$video_aalib = xyes; then
726 CFLAGS="$CFLAGS -DENABLE_AALIB"
727 SYSTEM_LIBS="$SYSTEM_LIBS -laa"
729 VIDEO_SUBDIRS="$VIDEO_SUBDIRS aalib"
730 VIDEO_DRIVERS="$VIDEO_DRIVERS aalib/libvideo_aa.la"
735 dnl rcg04172001 Set up the Null video driver.
738 AC_ARG_ENABLE(video-dummy,
739 [ --enable-video-dummy use dummy video driver [default=no]],
740 , enable_video_dummy=no)
741 if test x$enable_video_dummy = xyes; then
742 CFLAGS="$CFLAGS -DENABLE_DUMMYVIDEO"
743 VIDEO_SUBDIRS="$VIDEO_SUBDIRS dummy"
744 VIDEO_DRIVERS="$VIDEO_DRIVERS dummy/libvideo_null.la"
748 dnl Check to see if OpenGL support is desired
749 AC_ARG_ENABLE(video-opengl,
750 [ --enable-video-opengl include OpenGL context creation [default=yes]],
751 , enable_video_opengl=yes)
756 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
757 AC_MSG_CHECKING(for OpenGL (GLX) support)
762 #include <dlfcn.h> /* For loading extensions */
767 AC_MSG_RESULT($video_opengl)
768 if test x$video_opengl = xyes; then
769 CFLAGS="$CFLAGS -DHAVE_OPENGL"
770 AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl")
775 dnl Check for BeOS OpenGL
778 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
779 CFLAGS="$CFLAGS -DHAVE_OPENGL"
780 SYSTEM_LIBS="$SYSTEM_LIBS -lGL"
784 dnl Check for MacOS OpenGL
787 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
788 CFLAGS="$CFLAGS -DHAVE_OPENGL"
791 SDL_LIBS="$SDL_LIBS -framework OpenGL -framework AGL"
796 dnl See if we can use the new unified event interface in Linux 2.4
799 dnl Check for Linux 2.4 unified input event interface support
800 AC_ARG_ENABLE(input-events,
801 [ --enable-input-events use Linux 2.4 unified input interface [default=yes]],
802 , enable_input_events=yes)
803 if test x$enable_input_events = xyes; then
804 AC_MSG_CHECKING(for Linux 2.4 unified input interface)
807 #include <linux/input.h>
810 #error EVIOCGNAME() ioctl not available
815 AC_MSG_RESULT($use_input_events)
816 if test x$use_input_events = xyes; then
817 CFLAGS="$CFLAGS -DUSE_INPUT_EVENTS"
822 dnl See what type of thread model to use on Linux and Solaris
825 dnl Check for pthread support
826 AC_ARG_ENABLE(pthreads,
827 [ --enable-pthreads use POSIX threads for multi-threading [default=yes]],
828 , enable_pthreads=yes)
829 dnl This is used on Linux for glibc binary compatibility (Doh!)
830 AC_ARG_ENABLE(pthread-sem,
831 [ --enable-pthread-sem use pthread semaphores [default=yes]],
832 , enable_pthread_sem=yes)
836 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
840 pthread_cflags="-D_THREAD_SAFE"
841 # causes Carbon.p complaints?
842 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
845 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
846 pthread_lib="-pthread"
849 pthread_cflags="-D_REENTRANT"
850 pthread_lib="-pthread"
853 pthread_cflags="-D_REENTRANT"
854 pthread_lib="-lpthread -lposix4"
857 pthread_cflags="-D_REENTRANT -Kthread"
861 pthread_cflags="-D_SGI_MP_SOURCE"
862 pthread_lib="-lpthread"
865 pthread_cflags="-D_REENTRANT -mthreads"
866 pthread_lib="-lpthread"
873 pthread_cflags="-D_REENTRANT"
874 pthread_lib="-lpthread"
877 LIBS="$LIBS $pthread_lib"
878 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
879 AC_MSG_CHECKING(for pthreads)
885 pthread_attr_init(&type);
889 AC_MSG_RESULT($use_pthreads)
890 if test x$use_pthreads = xyes; then
891 CFLAGS="$CFLAGS $pthread_cflags -DSDL_USE_PTHREADS"
892 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
893 SDL_LIBS="$SDL_LIBS $pthread_lib"
895 # Check to see if recursive mutexes are available
896 AC_MSG_CHECKING(for recursive mutexes)
897 has_recursive_mutexes=no
901 pthread_mutexattr_t attr;
903 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
905 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
908 has_recursive_mutexes=yes
910 # Some systems have broken recursive mutex implementations
913 has_recursive_mutexes=no
916 AC_MSG_RESULT($has_recursive_mutexes)
917 if test x$has_recursive_mutexes != xyes; then
918 CFLAGS="$CFLAGS -DPTHREAD_NO_RECURSIVE_MUTEX"
921 # Check to see if this is broken glibc 2.0 pthreads
924 AC_MSG_CHECKING(for broken glibc 2.0 pthreads)
927 #include <features.h>
928 #if (__GLIBC__ == 2) && (__GLIBC_MINOR__ == 0)
929 #warning Working around a bug in glibc 2.0 pthreads
931 #error pthread implementation okay
932 #endif /* glibc 2.0 */
937 AC_MSG_RESULT($glibc20_pthreads)
943 AC_MSG_CHECKING(whether semun is defined in /usr/include/sys/sem.h)
946 #include <sys/types.h>
953 AC_MSG_RESULT($have_semun)
954 if test x$have_semun = xyes; then
955 CFLAGS="$CFLAGS -DHAVE_SEMUN"
958 # See if we can use clone() on Linux directly
960 if test x$enable_threads = xyes -a x$use_pthreads != xyes; then
966 CFLAGS="$CFLAGS -DFORK_HACK"
970 AM_CONDITIONAL(USE_CLONE, test x$use_clone = xyes)
973 dnl Determine whether the compiler can produce Win32 executables
976 AC_MSG_CHECKING(Win32 compiler)
984 AC_MSG_RESULT($have_win32_gcc)
985 if test x$have_win32_gcc != xyes; then
987 *** Your compiler ($CC) does not produce Win32 executables!
991 dnl See if the user wants to redirect standard output to files
992 AC_ARG_ENABLE(stdio-redirect,
993 [ --enable-stdio-redirect Redirect STDIO to files on Win32 [default=yes]],
994 , enable_stdio_redirect=yes)
995 if test x$enable_stdio_redirect != xyes; then
996 CFLAGS="$CFLAGS -DNO_STDIO_REDIRECT"
1000 dnl Find the DirectX includes and libraries
1003 AC_ARG_ENABLE(directx,
1004 [ --enable-directx use DirectX for Win32 audio/video [default=yes]],
1005 , enable_directx=yes)
1006 if test x$enable_directx = xyes; then
1007 AC_MSG_CHECKING(for DirectX headers and libraries)
1010 #include "src/video/windx5/directx.h"
1015 AC_MSG_RESULT($use_directx)
1017 AM_CONDITIONAL(USE_DIRECTX, test x$use_directx = xyes)
1019 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video/wincommon"
1020 SYSTEM_LIBS="$SYSTEM_LIBS -luser32 -lgdi32 -lwinmm"
1021 VIDEO_SUBDIRS="$VIDEO_SUBDIRS wincommon"
1022 VIDEO_DRIVERS="$VIDEO_DRIVERS wincommon/libvideo_wincommon.la"
1023 # Enable the DIB driver
1024 CFLAGS="$CFLAGS -DENABLE_WINDIB"
1025 VIDEO_SUBDIRS="$VIDEO_SUBDIRS windib"
1026 VIDEO_DRIVERS="$VIDEO_DRIVERS windib/libvideo_windib.la"
1027 # See if we should enable the DirectX driver
1028 if test x$use_directx = xyes; then
1029 CFLAGS="$CFLAGS -DENABLE_DIRECTX"
1030 SYSTEM_LIBS="$SYSTEM_LIBS -ldxguid"
1031 VIDEO_SUBDIRS="$VIDEO_SUBDIRS windx5"
1032 VIDEO_DRIVERS="$VIDEO_DRIVERS windx5/libvideo_windx5.la"
1036 dnl Set up the BWindow video driver on BeOS
1039 CFLAGS="$CFLAGS -DENABLE_BWINDOW"
1040 VIDEO_SUBDIRS="$VIDEO_SUBDIRS bwindow"
1041 VIDEO_DRIVERS="$VIDEO_DRIVERS bwindow/libvideo_bwindow.la"
1044 dnl Set up the Mac toolbox video driver for Mac OS 7-9
1047 VIDEO_SUBDIRS="$VIDEO_SUBDIRS maccommon"
1048 VIDEO_DRIVERS="$VIDEO_DRIVERS maccommon/libvideo_maccommon.la"
1049 VIDEO_SUBDIRS="$VIDEO_SUBDIRS macrom"
1050 VIDEO_DRIVERS="$VIDEO_DRIVERS macrom/libvideo_macrom.la"
1053 dnl Set up the Mac toolbox video driver for Mac OS X
1056 # "MACOSX" is not an official definition, but it's commonly
1057 # accepted as a way to differentiate between what runs on X
1058 # and what runs on older Macs - while in theory "Carbon" defns
1059 # are consistent between the two, in practice Carbon is still
1060 # changing. -sts Aug 2000
1061 mac_autoconf_target_workaround="MAC"
1062 CFLAGS="$CFLAGS -I/System/Library/Frameworks/Carbon.framework/Headers \
1063 -fpascal-strings -DENABLE_TOOLBOX -DMACOSX -DTARGET_API_${mac_autoconf_target_workaround}_CARBON=1 -I\$(top_srcdir)/src/video/maccommon -I\$(top_srcdir)/src/video/macrom -I\$(top_srcdir)/src/video/macdsp"
1064 VIDEO_SUBDIRS="$VIDEO_SUBDIRS maccommon"
1065 VIDEO_DRIVERS="$VIDEO_DRIVERS maccommon/libvideo_maccommon.la"
1066 VIDEO_SUBDIRS="$VIDEO_SUBDIRS macrom"
1067 VIDEO_DRIVERS="$VIDEO_DRIVERS macrom/libvideo_macrom.la"
1070 dnl Set up the kernel statistics library for Solaris
1073 CFLAGS="$CFLAGS -DHAVE_KSTAT"
1074 SYSTEM_LIBS="$SYSTEM_LIBS -lkstat"
1097 # Set up files for the main() stub
1098 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1099 # Set up files for the audio library
1100 # We use the OSS and ALSA API's, not the Sun audio API
1101 #if test x$enable_audio = xyes; then
1102 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1103 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
1105 # Set up files for the joystick library
1106 if test x$enable_joystick = xyes; then
1107 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS linux"
1108 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS linux/libjoystick_linux.la"
1110 # Set up files for the cdrom library
1111 if test x$enable_cdrom = xyes; then
1112 COPY_ARCH_SRC(src/cdrom, linux, SDL_syscdrom.c)
1114 # Set up files for the thread library
1115 if test x$enable_threads = xyes; then
1116 if test x$use_pthreads != xyes; then
1117 COPY_ARCH_SRC(src/thread, linux, clone.S)
1119 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1120 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1121 if test x$use_pthreads = xyes -a x$enable_pthread_sem != xyes; then
1122 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
1124 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1126 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1127 if test x$glibc20_pthreads = xyes; then
1128 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c)
1129 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h)
1130 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
1131 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1133 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1134 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1135 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1136 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1139 # Set up files for the timer library
1140 if test x$enable_timers = xyes; then
1141 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1156 # Set up files for the main() stub
1157 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1158 # Set up files for the joystick library
1159 # (No joystick support yet)
1160 if test x$enable_joystick = xyes; then
1161 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1162 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1164 # Set up files for the cdrom library
1165 # (No cdrom support yet)
1166 if test x$enable_cdrom = xyes; then
1167 COPY_ARCH_SRC(src/cdrom, dummy, SDL_syscdrom.c)
1169 # Set up files for the thread library
1170 if test x$enable_threads = xyes; then
1171 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1172 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1173 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1174 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1175 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
1176 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1177 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1178 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1180 # Set up files for the timer library
1181 if test x$enable_timers = xyes; then
1182 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1199 # Set up files for the main() stub
1200 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1201 # Set up files for the audio library
1202 # We use the OSS and ALSA API's, not the Sun audio API
1203 #if test x$enable_audio = xyes; then
1204 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1205 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
1207 # Set up files for the joystick library
1208 # (No joystick support yet)
1209 if test x$enable_joystick = xyes; then
1210 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1211 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1213 # Set up files for the cdrom library
1214 if test x$enable_cdrom = xyes; then
1215 COPY_ARCH_SRC(src/cdrom, freebsd, SDL_syscdrom.c)
1217 # Set up files for the thread library
1218 if test x$enable_threads = xyes; then
1219 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1220 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1221 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1222 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1223 if test x$use_pthreads = xyes -a x$enable_pthread_sem != xyes; then
1224 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
1226 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1228 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1229 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1230 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1232 # Set up files for the timer library
1233 if test x$enable_timers = xyes; then
1234 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1249 # Set up files for the main() stub
1250 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1251 # Set up files for the audio library
1252 if test x$enable_audio = xyes; then
1253 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1254 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
1256 # Set up files for the joystick library
1257 # (No joystick support yet)
1258 if test x$enable_joystick = xyes; then
1259 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1260 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1262 # Set up files for the cdrom library
1263 if test x$enable_cdrom = xyes; then
1264 COPY_ARCH_SRC(src/cdrom, openbsd, SDL_syscdrom.c)
1266 # Set up files for the thread library
1267 if test x$enable_threads = xyes; then
1268 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1269 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1270 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1271 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1272 if test x$use_pthreads = xyes -a x$enable_pthread_sem != xyes; then
1273 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
1275 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1277 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1278 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1279 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1281 # Set up files for the timer library
1282 if test x$enable_timers = xyes; then
1283 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1285 # NetBSD does not define "unix"
1286 CFLAGS="$CFLAGS -Dunix"
1290 CFLAGS="$CFLAGS -Dunix"
1301 # Set up files for the main() stub
1302 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1303 # Set up files for the audio library
1304 if test x$enable_audio = xyes; then
1305 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1306 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
1308 # Set up files for the joystick library
1309 # (No joystick support yet)
1310 if test x$enable_joystick = xyes; then
1311 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1312 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1314 # Set up files for the cdrom library
1315 if test x$enable_cdrom = xyes; then
1316 COPY_ARCH_SRC(src/cdrom, openbsd, SDL_syscdrom.c)
1318 # Set up files for the thread library
1319 if test x$enable_threads = xyes; then
1320 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1321 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1322 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1323 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1324 if test x$use_pthreads = xyes -a x$enable_pthread_sem != xyes; then
1325 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
1327 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1329 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1330 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1331 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1333 # Set up files for the timer library
1334 if test x$enable_timers = xyes; then
1335 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1351 # Set up files for the main() stub
1352 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1353 # Set up files for the audio library
1354 if test x$enable_audio = xyes; then
1355 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1356 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
1358 # Set up files for the joystick library
1359 # (No joystick support yet)
1360 if test x$enable_joystick = xyes; then
1361 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1362 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1364 # Set up files for the cdrom library
1365 if test x$enable_cdrom = xyes; then
1366 COPY_ARCH_SRC(src/cdrom, dummy, SDL_syscdrom.c)
1368 # Set up files for the thread library
1369 if test x$enable_threads = xyes; then
1370 COPY_ARCH_SRC(src/thread, generic, SDL_systhread.c)
1371 COPY_ARCH_SRC(src/thread, generic, SDL_systhread_c.h)
1372 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c)
1373 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h)
1374 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
1375 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1376 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
1377 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1379 # Set up files for the timer library
1380 if test x$enable_timers = xyes; then
1381 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1386 CFLAGS="$CFLAGS -D__ELF__" # Fix for nasm on Solaris x86
1397 # Set up files for the main() stub
1398 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1399 # Set up files for the audio library
1400 if test x$enable_audio = xyes; then
1401 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1402 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
1404 # Set up files for the joystick library
1405 # (No joystick support yet)
1406 if test x$enable_joystick = xyes; then
1407 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1408 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1410 # Set up files for the cdrom library
1411 if test x$enable_cdrom = xyes; then
1412 COPY_ARCH_SRC(src/cdrom, linux, SDL_syscdrom.c)
1414 # Set up files for the thread library
1415 if test x$enable_threads = xyes; then
1416 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1417 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1418 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1419 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1420 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1421 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1422 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
1423 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1425 # Set up files for the timer library
1426 if test x$enable_timers = xyes; then
1427 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1438 # Set up files for the main() stub
1439 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1440 # Set up files for the audio library
1441 if test x$enable_audio = xyes; then
1442 AUDIO_SUBDIRS="$AUDIO_SUBDIRS dmedia"
1443 AUDIO_DRIVERS="$AUDIO_DRIVERS dmedia/libaudio_dmedia.la"
1444 LIBS="$LIBS -laudio"
1446 # Set up files for the joystick library
1447 # (No joystick support yet)
1448 if test x$enable_joystick = xyes; then
1449 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1450 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1452 # Set up files for the cdrom library
1453 # (No CD-ROM support yet)
1454 if test x$enable_cdrom = xyes; then
1455 COPY_ARCH_SRC(src/cdrom, dummy, SDL_syscdrom.c)
1457 # Set up files for the thread library
1458 if test x$enable_threads = xyes; then
1459 if test x$use_pthreads = xyes; then
1460 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1461 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1462 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1463 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1464 if test x$enable_pthread_sem != xyes; then
1465 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
1467 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1469 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1470 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1471 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1473 COPY_ARCH_SRC(src/thread, irix, SDL_systhread.c)
1474 COPY_ARCH_SRC(src/thread, irix, SDL_systhread_c.h)
1475 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1476 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1477 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1478 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1479 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
1480 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1483 # Set up files for the timer library
1484 if test x$enable_timers = xyes; then
1485 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1497 # Set up files for the main() stub
1498 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1499 # Set up files for the audio library
1500 if test x$enable_audio = xyes; then
1501 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1502 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
1504 # Set up files for the joystick library
1505 # (No joystick support yet)
1506 if test x$enable_joystick = xyes; then
1507 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1508 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1510 # Set up files for the cdrom library
1511 # (No CD-ROM support yet)
1512 if test x$enable_cdrom = xyes; then
1513 COPY_ARCH_SRC(src/cdrom, dummy, SDL_syscdrom.c)
1515 # Set up files for the thread library
1516 if test x$enable_threads = xyes; then
1517 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1518 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1519 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1520 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1521 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1522 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1523 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1524 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1526 # Set up files for the timer library
1527 if test x$enable_timers = xyes; then
1528 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1540 # Set up files for the main() stub
1541 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1542 # Set up files for the audio library
1543 if test x$enable_audio = xyes; then
1544 AUDIO_SUBDIRS="$AUDIO_SUBDIRS paudio"
1545 AUDIO_DRIVERS="$AUDIO_DRIVERS paudio/libaudio_paudio.la"
1547 # Set up files for the joystick library
1548 # (No joystick support yet)
1549 if test x$enable_joystick = xyes; then
1550 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1551 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1553 # Set up files for the cdrom library
1554 if test x$enable_cdrom = xyes; then
1555 COPY_ARCH_SRC(src/cdrom, aix, SDL_syscdrom.c)
1557 # Set up files for the thread library
1558 if test x$enable_threads = xyes; then
1559 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1560 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1561 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1562 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1563 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1564 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1565 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1566 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1568 # Set up files for the timer library
1569 if test x$enable_timers = xyes; then
1570 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1582 # Set up files for the main() stub
1583 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1584 # Set up files for the audio library
1585 if test x$enable_audio = xyes; then
1586 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1587 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
1589 # Set up files for the joystick library
1590 # (No joystick support yet)
1591 if test x$enable_joystick = xyes; then
1592 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1593 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1595 # Set up files for the cdrom library
1596 # (No cdrom support yet)
1597 if test x$enable_cdrom = xyes; then
1598 COPY_ARCH_SRC(src/cdrom, dummy, SDL_syscdrom.c)
1600 # Set up files for the thread library
1601 if test x$enable_threads = xyes; then
1602 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1603 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1604 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1605 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1606 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
1607 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1608 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1609 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1611 # Set up files for the timer library
1612 if test x$enable_timers = xyes; then
1613 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1624 # Set up files for the main() stub
1625 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1626 # Set up files for the audio library
1627 if test x$enable_audio = xyes; then
1628 CFLAGS="$CFLAGS -DALSA_SUPPORT"
1629 SYSTEM_LIBS="$SYSTEM_LIBS -lasound"
1630 AUDIO_SUBDIRS="$AUDIO_SUBDIRS nto"
1631 AUDIO_DRIVERS="$AUDIO_DRIVERS nto/libaudio_nto.la"
1632 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1633 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
1635 # Set up files for the joystick library
1636 if test x$enable_joystick = xyes; then
1637 # (No joystick support yet)
1638 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1639 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1641 # Set up files for the cdrom library
1642 if test x$enable_cdrom = xyes; then
1643 COPY_ARCH_SRC(src/cdrom, qnx, SDL_syscdrom.c)
1645 # Set up files for the thread library
1646 if test x$enable_threads = xyes; then
1647 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1648 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1649 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1650 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1651 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1652 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1653 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1654 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1656 # Set up files for the timer library
1657 if test x$enable_timers = xyes; then
1658 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1661 *-*-cygwin* | *-*-mingw32*)
1663 if test "$build" != "$target"; then # cross-compiling
1664 # Default cross-compile location
1665 ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
1667 # Look for the location of the tools and install there
1668 if [ "$BUILD_PREFIX" != "" ]; then
1669 ac_default_prefix=$BUILD_PREFIX
1676 # Set up files for the main() stub
1677 COPY_ARCH_SRC(src/main, win32, SDL_main.c)
1678 # Set up files for the audio library
1679 if test x$enable_audio = xyes; then
1680 AUDIO_SUBDIRS="$AUDIO_SUBDIRS windib"
1681 AUDIO_DRIVERS="$AUDIO_DRIVERS windib/libaudio_windib.la"
1682 if test x$use_directx = xyes; then
1683 AUDIO_SUBDIRS="$AUDIO_SUBDIRS windx5"
1684 AUDIO_DRIVERS="$AUDIO_DRIVERS windx5/libaudio_windx5.la"
1687 # Set up files for the joystick library
1688 if test x$enable_joystick = xyes; then
1689 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS win32"
1690 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS win32/libjoystick_winmm.la"
1692 # Set up files for the cdrom library
1693 if test x$enable_cdrom = xyes; then
1694 COPY_ARCH_SRC(src/cdrom, win32, SDL_syscdrom.c)
1696 # Set up files for the thread library
1697 if test x$enable_threads = xyes; then
1698 COPY_ARCH_SRC(src/thread, win32, SDL_systhread.c)
1699 COPY_ARCH_SRC(src/thread, win32, SDL_systhread_c.h)
1700 COPY_ARCH_SRC(src/thread, win32, SDL_sysmutex.c)
1701 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h)
1702 COPY_ARCH_SRC(src/thread, win32, SDL_syssem.c)
1703 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1704 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
1705 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1707 # Set up files for the timer library
1708 if test x$enable_timers = xyes; then
1709 COPY_ARCH_SRC(src/timer, win32, SDL_systimer.c)
1711 # The Win32 platform requires special setup
1712 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
1715 CFLAGS="$CFLAGS -I/usr/include/mingw -DWIN32 -Uunix"
1716 SDL_CFLAGS="$SDL_CFLAGS -I/usr/include/mingw -DWIN32 -Uunix"
1717 LIBS="$LIBS -mno-cygwin"
1718 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows -mno-cygwin"
1721 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
1727 ac_default_prefix=/boot/develop/tools/gnupro
1732 # Set up files for the main() stub
1733 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1734 COPY_ARCH_SRC(src/main, beos, SDL_BeApp.cc)
1735 COPY_ARCH_SRC(src/main, beos, SDL_BeApp.h)
1736 # Set up files for the audio library
1737 if test x$enable_audio = xyes; then
1738 AUDIO_SUBDIRS="$AUDIO_SUBDIRS baudio"
1739 AUDIO_DRIVERS="$AUDIO_DRIVERS baudio/libaudio_baudio.la"
1741 # Set up files for the joystick library
1742 if test x$enable_joystick = xyes; then
1743 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS beos"
1744 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS beos/libjoystick_beos.la"
1746 # Set up files for the cdrom library
1747 if test x$enable_cdrom = xyes; then
1748 COPY_ARCH_SRC(src/cdrom, beos, SDL_syscdrom.c)
1750 # Set up files for the thread library
1751 if test x$enable_threads = xyes; then
1752 COPY_ARCH_SRC(src/thread, beos, SDL_systhread.c)
1753 COPY_ARCH_SRC(src/thread, beos, SDL_systhread_c.h)
1754 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c)
1755 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h)
1756 COPY_ARCH_SRC(src/thread, beos, SDL_syssem.c)
1757 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1758 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
1759 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1761 # Set up files for the timer library
1762 if test x$enable_timers = xyes; then
1763 COPY_ARCH_SRC(src/timer, beos, SDL_systimer.c)
1765 # The BeOS platform requires special libraries
1766 SYSTEM_LIBS="$SYSTEM_LIBS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
1769 # This would be used if cross-compiling to MacOS 9. No way to
1770 # use it at present, but Apple is working on a X-to-9 compiler
1771 # for which this case would be handy.
1776 # Set up files for the main() stub
1777 COPY_ARCH_SRC(src/main, macos, SDL_main.c)
1778 # Set up files for the audio library
1779 if test x$enable_audio = xyes; then
1780 AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom"
1781 AUDIO_DRIVERS="$AUDIO_DRIVERS macrom/libaudio_macrom.la"
1783 # Set up files for the joystick library
1784 if test x$enable_joystick = xyes; then
1785 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS macos"
1786 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS macos/libjoystick_macos.la"
1788 # Set up files for the cdrom library
1789 if test x$enable_cdrom = xyes; then
1790 COPY_ARCH_SRC(src/cdrom, macos, SDL_syscdrom.c)
1792 # Set up files for the thread library
1793 if test x$enable_threads = xyes; then
1794 COPY_ARCH_SRC(src/thread, macos, SDL_systhread.c)
1795 COPY_ARCH_SRC(src/thread, macos, SDL_systhread_c.h)
1796 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c)
1797 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h)
1798 COPY_ARCH_SRC(src/thread, macos, SDL_syssem.c)
1799 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1800 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
1801 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1803 # Set up files for the timer library
1804 if test x$enable_timers = xyes; then
1805 COPY_ARCH_SRC(src/timer, macos, SDL_systimer.c)
1807 # The MacOS platform requires special setup
1808 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
1809 SDL_LIBS="-lSDLmain $SDL_LIBS"
1812 # Strictly speaking, we want "Mac OS X", not "Darwin", which is
1813 # just the OS X kernel sans upper layers like Carbon. But
1814 # config.guess comes back with "darwin", so go with the flow.
1820 # Set up files for the main() stub
1821 # COPY_ARCH_SRC(src/main, macos, SDL_main.c)
1822 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1823 # Set up files for the audio library
1824 if test x$enable_audio = xyes; then
1825 AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom"
1826 AUDIO_DRIVERS="$AUDIO_DRIVERS macrom/libaudio_macrom.la"
1828 # Set up files for the joystick library
1829 if test x$enable_joystick = xyes; then
1830 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1831 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1833 # Set up files for the cdrom library
1834 if test x$enable_cdrom = xyes; then
1835 COPY_ARCH_SRC(src/cdrom, dummy, SDL_syscdrom.c)
1837 # Set up files for the thread library
1838 if test x$enable_threads = xyes; then
1839 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1840 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1841 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1842 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1843 if test x$use_pthreads = xyes -a x$enable_pthread_sem != xyes; then
1844 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
1846 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1848 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1849 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
1850 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1852 # Set up files for the timer library
1853 if test x$enable_timers = xyes; then
1854 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1856 # The MacOS X platform requires special setup
1857 SDL_CFLAGS="$SDL_CFLAGS -F/System/Library/Frameworks/Carbon.framework"
1858 SDL_LIBS="$SDL_LIBS -framework Carbon"
1861 AC_MSG_ERROR(Unsupported target: Please add to configure.in)
1866 # Set the conditional variables for this target
1867 AM_CONDITIONAL(TARGET_LINUX, test $ARCH = linux)
1868 AM_CONDITIONAL(TARGET_SOLARIS, test $ARCH = solaris)
1869 AM_CONDITIONAL(TARGET_IRIX, test $ARCH = irix)
1870 AM_CONDITIONAL(TARGET_BSDI, test $ARCH = bsdi)
1871 AM_CONDITIONAL(TARGET_FREEBSD, test $ARCH = freebsd)
1872 AM_CONDITIONAL(TARGET_OPENBSD, test $ARCH = openbsd)
1873 AM_CONDITIONAL(TARGET_AIX, test $ARCH = aix)
1874 AM_CONDITIONAL(TARGET_WIN32, test $ARCH = win32)
1875 AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos)
1876 AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos)
1878 # Set conditional variables for shared and static library selection.
1879 # These are not used in any Makefile.am but in sdl-config.in.
1880 AM_CONDITIONAL([ENABLE_SHARED], [test "$enable_shared" = yes])
1881 AM_CONDITIONAL([ENABLE_STATIC], [test "$enable_static" = yes])
1883 # Set runtime shared library paths as needed
1885 if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then
1886 SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
1889 if test $ARCH = solaris; then
1890 SDL_RLD_FLAGS="-R\${exec_prefix}/lib"
1893 if test $ARCH = openbsd; then
1894 SDL_RLD_FLAGS="-Wl,-R\${exec_prefix}/lib -Wl,-R\${X11BASE}/lib"
1897 dnl Output the video drivers we use
1898 if test x$enable_video = xtrue; then
1899 if test "$VIDEO_SUBDIRS" = ""; then
1900 AC_MSG_ERROR(*** No video drivers are enabled!)
1903 AC_SUBST(AUDIO_SUBDIRS)
1904 AC_SUBST(AUDIO_DRIVERS)
1905 AC_SUBST(VIDEO_SUBDIRS)
1906 AC_SUBST(VIDEO_DRIVERS)
1907 AC_SUBST(JOYSTICK_SUBDIRS)
1908 AC_SUBST(JOYSTICK_DRIVERS)
1909 AC_SUBST(SDL_EXTRADIRS)
1910 AC_SUBST(SDL_EXTRALIBS)
1911 AC_SUBST(SYSTEM_LIBS)
1913 dnl Expand the cflags and libraries needed by apps using SDL
1914 AC_SUBST(SDL_CFLAGS)
1916 AC_SUBST(SDL_RLD_FLAGS)
1918 dnl Expand the libraries needed for static linking
1919 AC_SUBST(SYSTEM_LIBS)
1920 dnl Expand the include directories for building SDL
1921 CFLAGS="$CFLAGS -I\$(top_srcdir)/include"
1922 CFLAGS="$CFLAGS -I\$(top_srcdir)/include/SDL"
1923 CFLAGS="$CFLAGS -I\$(top_srcdir)/src -I\$(top_srcdir)/src/$ARCH"
1924 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/main"
1925 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/audio"
1926 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video"
1927 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/events"
1928 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/joystick"
1929 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/cdrom"
1930 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/thread"
1931 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/timer"
1932 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/endian"
1933 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/file"
1936 # Finally create all the generated files
1937 dnl Important: Any directory that you want to be in the distcheck should
1938 dnl have a file listed here, so that configure generates the
1939 dnl subdirectories on the build target.
1949 src/audio/alsa/Makefile
1950 src/audio/arts/Makefile
1951 src/audio/baudio/Makefile
1952 src/audio/dma/Makefile
1953 src/audio/dmedia/Makefile
1954 src/audio/dsp/Makefile
1955 src/audio/esd/Makefile
1956 src/audio/macrom/Makefile
1957 src/audio/nas/Makefile
1958 src/audio/nto/Makefile
1959 src/audio/paudio/Makefile
1960 src/audio/sun/Makefile
1961 src/audio/ums/Makefile
1962 src/audio/windib/Makefile
1963 src/audio/windx5/Makefile
1965 src/video/cybergfx/Makefile
1966 src/video/x11/Makefile
1967 src/video/dga/Makefile
1968 src/video/nanox/Makefile
1969 src/video/fbcon/Makefile
1970 src/video/ggi/Makefile
1971 src/video/maccommon/Makefile
1972 src/video/macdsp/Makefile
1973 src/video/macrom/Makefile
1974 src/video/svga/Makefile
1975 src/video/aalib/Makefile
1976 src/video/wincommon/Makefile
1977 src/video/windib/Makefile
1978 src/video/windx5/Makefile
1979 src/video/bwindow/Makefile
1980 src/video/photon/Makefile
1981 src/video/dummy/Makefile
1983 src/joystick/Makefile
1984 src/joystick/amigaos/Makefile
1985 src/joystick/beos/Makefile
1986 src/joystick/dummy/Makefile
1987 src/joystick/linux/Makefile
1988 src/joystick/macos/Makefile
1989 src/joystick/win32/Makefile
1998 ], [chmod +x sdl-config])