Mercurial > sdl-ios-xcode
annotate configure.in @ 34:27cb016592f9
Minor crash bugfix
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Wed, 23 May 2001 00:06:08 +0000 |
parents | 57bf11a5efd7 |
children | d3bc792e136d |
rev | line source |
---|---|
0 | 1 dnl Process this file with autoconf to produce a configure script. |
2 AC_INIT(README) | |
3 | |
4 dnl Set various version strings - taken gratefully from the GTk sources | |
5 # | |
6 # Making releases: | |
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. | |
14 # | |
15 SDL_MAJOR_VERSION=1 | |
16 SDL_MINOR_VERSION=2 | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
17 SDL_MICRO_VERSION=1 |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
18 SDL_INTERFACE_AGE=1 |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
19 SDL_BINARY_AGE=1 |
0 | 20 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION |
21 | |
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) | |
27 AC_SUBST(SDL_VERSION) | |
28 | |
29 # libtool versioning | |
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` | |
34 | |
35 AC_SUBST(LT_RELEASE) | |
36 AC_SUBST(LT_CURRENT) | |
37 AC_SUBST(LT_REVISION) | |
38 AC_SUBST(LT_AGE) | |
39 | |
40 dnl Setup for automake | |
41 AM_INIT_AUTOMAKE(SDL, $SDL_VERSION) | |
42 | |
43 dnl Detect the canonical host and target build environment | |
44 AC_CANONICAL_HOST | |
45 AC_CANONICAL_TARGET | |
46 | |
47 dnl Check for tools | |
48 | |
49 AC_LIBTOOL_WIN32_DLL | |
50 AM_PROG_LIBTOOL | |
51 AC_PROG_MAKE_SET | |
52 AC_PROG_CC | |
53 AC_C_INLINE | |
54 AC_C_CONST | |
55 case "$target" in | |
56 *-*-beos*) | |
57 AC_PROG_CXX | |
58 ;; | |
59 *-*-aix*) | |
60 AC_PROG_CXX | |
61 ;; | |
62 # This is stupid, but necessary on some versions of Linux (joysticks) | |
63 *-*-linux*) | |
64 AC_PROG_CXX | |
65 ;; | |
66 esac | |
67 AC_PROG_INSTALL | |
68 AC_FUNC_ALLOCA | |
69 | |
70 dnl The alpha architecture needs special flags for binary portability | |
71 case "$target" in | |
72 alpha*-*-linux*) | |
73 if test x$ac_cv_prog_gcc = xyes; then | |
74 CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall" | |
75 fi | |
76 ;; | |
77 esac | |
78 | |
79 dnl Add compiler-specific optimization flags | |
80 | |
81 dnl See if the user wants aggressive optimizations of the code | |
82 AC_ARG_ENABLE(debug, | |
83 [ --enable-debug Disable aggressive optimizations [default=yes]], | |
84 , enable_debug=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" | |
90 fi | |
91 case "$target" in | |
92 i486-*-*) | |
93 if test x$ac_cv_prog_gcc = xyes; then | |
94 CFLAGS="$CFLAGS -march=486" | |
95 fi | |
96 ;; | |
97 i?86-*-*) | |
98 if test x$ac_cv_prog_gcc = xyes; then | |
99 CFLAGS="$CFLAGS -march=pentium -mcpu=pentiumpro" | |
100 fi | |
101 ;; | |
102 *-*-osf*) | |
103 if test x$ac_cv_prog_gcc != xyes; then | |
104 CFLAGS="-g3 -fast -arch host" | |
105 fi | |
106 ;; | |
107 esac | |
108 fi | |
109 | |
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" | |
118 fi | |
119 fi | |
120 | |
121 dnl Initialize the compiler and linker flags for SDL applications | |
122 | |
123 SDL_CFLAGS="" | |
124 SDL_LIBS="-lSDL" | |
125 | |
126 dnl Add the math library for the new gamma correction support | |
127 | |
128 case "$target" in | |
129 *-*-cygwin* | *-*-mingw32*) | |
130 MATHLIB="" | |
131 ;; | |
132 *-*-beos*) | |
133 MATHLIB="" | |
134 ;; | |
135 *-*-darwin*) | |
136 MATHLIB="" | |
137 ;; | |
138 *) | |
139 MATHLIB="-lm" | |
140 ;; | |
141 esac | |
142 SYSTEM_LIBS="$SYSTEM_LIBS $MATHLIB" | |
143 | |
144 dnl Enable/disable various subsystems of the SDL library | |
145 | |
146 AC_ARG_ENABLE(audio, | |
147 [ --enable-audio Enable the audio subsystem [default=yes]], | |
148 , enable_audio=yes) | |
149 if test x$enable_audio = xyes; then | |
150 SDL_EXTRADIRS="$SDL_EXTRADIRS audio" | |
151 SDL_EXTRALIBS="$SDL_EXTRALIBS audio/libaudio.la" | |
152 else | |
153 CFLAGS="$CFLAGS -DDISABLE_AUDIO" | |
154 fi | |
155 AC_ARG_ENABLE(video, | |
156 [ --enable-video Enable the video subsystem [default=yes]], | |
157 , enable_video=yes) | |
158 if test x$enable_video = xyes; then | |
159 SDL_EXTRADIRS="$SDL_EXTRADIRS video" | |
160 SDL_EXTRALIBS="$SDL_EXTRALIBS video/libvideo.la" | |
161 else | |
162 CFLAGS="$CFLAGS -DDISABLE_VIDEO" | |
163 fi | |
164 AC_ARG_ENABLE(events, | |
165 [ --enable-events Enable the events subsystem [default=yes]], | |
166 , enable_events=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" | |
170 else | |
171 CFLAGS="$CFLAGS -DDISABLE_EVENTS" | |
172 fi | |
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" | |
179 else | |
180 CFLAGS="$CFLAGS -DDISABLE_JOYSTICK" | |
181 fi | |
182 AC_ARG_ENABLE(cdrom, | |
183 [ --enable-cdrom Enable the cdrom subsystem [default=yes]], | |
184 , enable_cdrom=yes) | |
185 if test x$enable_cdrom = xyes; then | |
186 SDL_EXTRADIRS="$SDL_EXTRADIRS cdrom" | |
187 SDL_EXTRALIBS="$SDL_EXTRALIBS cdrom/libcdrom.la" | |
188 else | |
189 CFLAGS="$CFLAGS -DDISABLE_CDROM" | |
190 fi | |
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) | |
206 fi | |
207 AC_ARG_ENABLE(timers, | |
208 [ --enable-timers Enable the timer subsystem [default=yes]], | |
209 , enable_timers=yes) | |
210 if test x$enable_timers = xyes; then | |
211 SDL_EXTRADIRS="$SDL_EXTRADIRS timer" | |
212 SDL_EXTRALIBS="$SDL_EXTRALIBS timer/libtimer.la" | |
213 else | |
214 CFLAGS="$CFLAGS -DDISABLE_TIMERS" | |
215 fi | |
216 AC_ARG_ENABLE(endian, | |
217 [ --enable-endian Enable the endian subsystem [default=yes]], | |
218 , enable_endian=yes) | |
219 if test x$enable_endian = xyes; then | |
220 SDL_EXTRADIRS="$SDL_EXTRADIRS endian" | |
221 SDL_EXTRALIBS="$SDL_EXTRALIBS endian/libendian.la" | |
222 else | |
223 CFLAGS="$CFLAGS -DDISABLE_ENDIAN" | |
224 fi | |
225 AC_ARG_ENABLE(file, | |
226 [ --enable-file Enable the file subsystem [default=yes]], | |
227 , enable_file=yes) | |
228 if test x$enable_file = xyes; then | |
229 SDL_EXTRADIRS="$SDL_EXTRADIRS file" | |
230 SDL_EXTRALIBS="$SDL_EXTRALIBS file/libfile.la" | |
231 else | |
232 CFLAGS="$CFLAGS -DDISABLE_FILE" | |
233 fi | |
234 | |
235 dnl See if the OSS audio interface is supported | |
236 CheckOSS() | |
237 { | |
238 AC_ARG_ENABLE(oss, | |
239 [ --enable-oss support the OSS audio API [default=yes]], | |
240 , enable_oss=yes) | |
241 if test x$enable_audio = xyes -a x$enable_oss = xyes; then | |
242 AC_MSG_CHECKING(for OSS audio support) | |
243 have_oss=no | |
244 AC_TRY_COMPILE([ | |
245 #ifdef linux | |
246 #include <linux/soundcard.h> | |
247 #endif | |
248 #ifdef __FreeBSD__ | |
249 #include <machine/soundcard.h> | |
250 #endif | |
251 #ifdef __bsdi__ | |
252 #include <sys/soundcard.h> | |
253 #endif | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
254 #ifdef __OpenBSD__ |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
255 #include <soundcard.h> |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
256 #endif |
0 | 257 #ifdef __USLC__ |
258 #include <sys/soundcard.h> | |
259 #endif | |
260 ],[ | |
261 int arg = SNDCTL_DSP_SETFRAGMENT; | |
262 ],[ | |
263 have_oss=yes | |
264 ]) | |
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" | |
272 fi | |
273 fi | |
274 } | |
275 | |
276 dnl See if the ALSA audio interface is supported | |
277 CheckALSA() | |
278 { | |
279 AC_ARG_ENABLE(alsa, | |
280 [ --enable-alsa support the ALSA audio API [default=yes]], | |
281 , enable_alsa=yes) | |
282 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then | |
283 have_alsa=no | |
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" | |
291 fi | |
292 fi | |
293 } | |
294 | |
295 dnl Find the ESD includes and libraries | |
296 CheckESD() | |
297 { | |
298 AC_ARG_ENABLE(esd, | |
299 [ --enable-esd support the Enlightened Sound Daemon [default=yes]], | |
300 , enable_esd=yes) | |
301 if test x$enable_audio = xyes -a x$enable_esd = xyes; then | |
302 AM_PATH_ESD(0.2.8, [ | |
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" | |
307 ]) | |
308 fi | |
309 } | |
310 | |
311 CheckARTSC() | |
312 { | |
313 AC_ARG_ENABLE(arts, | |
314 [ --enable-arts support the Analog Real Time Synthesizer [default=yes]], | |
315 , enable_arts=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 | |
320 else | |
321 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags` | |
322 ARTSC_LIBS=`$ARTSCCONFIG --libs` | |
323 AC_MSG_CHECKING(for aRts development environment) | |
324 audio_arts=no | |
325 save_CFLAGS="$CFLAGS" | |
326 CFLAGS="$CFLAGS $ARTSC_CFLAGS" | |
327 AC_TRY_COMPILE([ | |
328 #include <artsc.h> | |
329 ],[ | |
330 arts_stream_t stream; | |
331 ],[ | |
332 audio_arts=yes | |
333 ]) | |
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" | |
341 fi | |
342 fi | |
343 fi | |
344 } | |
345 | |
346 dnl See if the NAS audio interface is supported | |
347 CheckNAS() | |
348 { | |
349 AC_ARG_ENABLE(nas, | |
16
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
350 [ --enable-nas support the NAS audio API [default=yes]], |
0 | 351 , enable_nas=yes) |
352 if test x$enable_audio = xyes -a x$enable_nas = xyes; then | |
353 AC_MSG_CHECKING(for NAS audio support) | |
354 have_nas=no | |
355 if test -r /usr/X11R6/include/audio/audiolib.h ; then | |
356 have_nas=yes | |
357 fi | |
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" | |
364 fi | |
365 fi | |
366 } | |
367 | |
368 dnl See if we can use x86 assembly blitters | |
369 CheckNASM() | |
370 { | |
371 dnl Make sure we are running on an x86 platform | |
372 case $target in | |
373 i?86*) | |
374 ;; | |
375 *) | |
376 # Nope, bail early. | |
377 return | |
378 ;; | |
379 esac | |
380 dnl Check for NASM (for assembly blit routines) | |
381 AC_ARG_ENABLE(nasm, | |
382 [ --enable-nasm use nasm assembly blitters on x86 [default=yes]], | |
383 , enable_nasm=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 | |
388 else | |
389 CFLAGS="$CFLAGS -DUSE_ASMBLIT -I$srcdir/hermes" | |
390 case $ARCH in | |
391 win32) | |
392 NASMFLAGS="-f win32" | |
393 ;; | |
394 *) | |
395 NASMFLAGS="-f elf" | |
396 ;; | |
397 esac | |
398 AC_SUBST(NASMFLAGS) | |
399 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hermes" | |
400 SDL_EXTRADIRS="$SDL_EXTRADIRS hermes" | |
401 SDL_EXTRALIBS="$SDL_EXTRALIBS hermes/libhermes.la" | |
402 fi | |
403 fi | |
404 } | |
405 | |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
406 dnl Find the nanox include and library directories |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
407 CheckNANOX() |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
408 { |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
409 AC_ARG_ENABLE(video-nanox, |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
410 [ --enable-video-nanox use nanox video driver [default=no]], |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
411 , enable_video_nanox=no) |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
412 AC_ARG_ENABLE(nanox-debug, |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
413 [ --enable-nanox-debug print debug messages [default=no]], |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
414 , enable_nanox_debug=no) |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
415 AC_ARG_ENABLE(nanox-share-memory, |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
416 [ --enable-nanox-share-memory use share memory [default=no]], |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
417 , enable_nanox_share_memory=no) |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
418 |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
419 AC_ARG_WITH(nanox_pixel_type, |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
420 [ --with-nanox-pixel-type=[rgb/0888/888/565/555/332/pal]]) |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
421 |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
422 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
423 if test x$enable_nanox_debug = xyes; then |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
424 CFLAGS="$CFLAGS -DENABLE_NANOX_DEBUG" |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
425 fi |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
426 |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
427 if test x$enable_nanox_share_memory = xyes; then |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
428 CFLAGS="$CFLAGS -DNANOX_SHARE_MEMORY" |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
429 fi |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
430 |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
431 case "$with_nanox_pixel_type" in |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
432 rgb) CFLAGS="$CFLAGS -DNANOX_PIXEL_RGB" ;; |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
433 0888) CFLAGS="$CFLAGS -DNANOX_PIXEL_0888" ;; |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
434 888) CFLAGS="$CFLAGS -DNANOX_PIXEL_888" ;; |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
435 565) CFLAGS="$CFLAGS -DNANOX_PIXEL_565" ;; |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
436 555) CFLAGS="$CFLAGS -DNANOX_PIXEL_555" ;; |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
437 332) CFLAGS="$CFLAGS -DNANOX_PIXEL_332" ;; |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
438 pal) CFLAGS="$CFLAGS -DNANOX_PIXEL_PAL" ;; |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
439 *) AC_MSG_ERROR([Invalid nanox_pixel_type]);; |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
440 esac |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
441 |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
442 CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_NANOX" |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
443 SYSTEM_LIBS="$SYSTEM_LIBS -lnano-X" |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
444 VIDEO_SUBDIRS="$VIDEO_SUBDIRS nanox" |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
445 VIDEO_DRIVERS="$VIDEO_DRIVERS nanox/libvideo_nanox.la" |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
446 fi |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
447 } |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
448 |
0 | 449 dnl Find the X11 include and library directories |
450 CheckX11() | |
451 { | |
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 | |
456 AC_PATH_X | |
457 AC_PATH_XTRA | |
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" | |
462 fi | |
463 SYSTEM_LIBS="$SYSTEM_LIBS $X_LIBS -lX11 -lXext" | |
464 VIDEO_SUBDIRS="$VIDEO_SUBDIRS x11" | |
465 VIDEO_DRIVERS="$VIDEO_DRIVERS x11/libvideo_x11.la" | |
466 | |
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) | |
472 video_x11_vm=no | |
473 AC_TRY_COMPILE([ | |
474 #include <X11/Xlib.h> | |
475 #include <X11/extensions/xf86vmode.h> | |
476 ],[ | |
477 ],[ | |
478 video_x11_vm=yes | |
479 ]) | |
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 | |
488 ac_save_libs="$LIBS" | |
489 LIBS="$LIBS $X_LIBS -lX11 -lXext" | |
490 if test x$xfree86_glidehack = x; then | |
491 AC_CHECK_LIB(Xxf86vm, XF40VidModeQueryExtension, xfree86_glidehack=Xxf86vm) | |
492 fi | |
493 if test x$xfree86_glidehack = x; then | |
494 AC_CHECK_LIB(Xxf86vm40, XF40VidModeQueryExtension, xfree86_glidehack=Xxf86vm40) | |
495 fi | |
496 LIBS="$ac_save_libs" | |
497 fi | |
498 if test x$xfree86_glidehack != x; then | |
499 CFLAGS="$CFLAGS -DXFREE86_VM_DYNAMIC_HACK" | |
500 SYSTEM_LIBS="$SYSTEM_LIBS -l$xfree86_glidehack" | |
501 else | |
502 SYSTEM_LIBS="$SYSTEM_LIBS -lXxf86vm" | |
503 fi | |
504 AC_MSG_CHECKING(for XFree86 VidMode gamma support) | |
505 video_x11_vmgamma=no | |
506 AC_TRY_COMPILE([ | |
507 #include <X11/Xlib.h> | |
508 #include <X11/extensions/xf86vmode.h> | |
509 ],[ | |
510 XF86VidModeGamma gamma; | |
511 ],[ | |
512 video_x11_vmgamma=yes | |
513 ]) | |
514 AC_MSG_RESULT($video_x11_vmgamma) | |
515 if test x$video_x11_vmgamma = xyes; then | |
516 CFLAGS="$CFLAGS -DXFREE86_VMGAMMA" | |
517 fi | |
518 fi | |
519 fi | |
16
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
520 AC_ARG_ENABLE(dga, |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
521 [ --enable-dga allow use of X11 DGA code [default=yes]], |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
522 , enable_dga=yes) |
0 | 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) | |
16
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
526 if test x$enable_dga = xyes; then |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
527 AC_MSG_CHECKING(for XFree86 DGA 1.0 support) |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
528 video_x11_dga=no |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
529 AC_TRY_COMPILE([ |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
530 #include <X11/Xlib.h> |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
531 #include <X11/extensions/xf86dga.h> |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
532 ],[ |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
533 ],[ |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
534 video_x11_dga=yes |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
535 ]) |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
536 AC_MSG_RESULT($video_x11_dga) |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
537 if test x$video_x11_dga = xyes; then |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
538 CFLAGS="$CFLAGS -DXFREE86_DGAMOUSE" |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
539 if test x$enable_video_x11_dgamouse = xyes; then |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
540 CFLAGS="$CFLAGS -DDEFAULT_DGAMOUSE" |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
541 fi |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
542 SYSTEM_LIBS="$SYSTEM_LIBS -lXxf86dga" |
0 | 543 fi |
544 fi | |
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) | |
550 video_x11_xv=no | |
551 AC_TRY_COMPILE([ | |
552 #include <X11/Xlib.h> | |
553 #include <sys/ipc.h> | |
554 #include <sys/shm.h> | |
555 #include <X11/extensions/XShm.h> | |
556 #include <X11/extensions/Xvlib.h> | |
557 ],[ | |
558 XvImage *image; | |
559 ],[ | |
560 video_x11_xv=yes | |
561 ]) | |
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" | |
566 fi | |
567 fi | |
568 fi | |
569 fi | |
570 } | |
571 CheckPHOTON() | |
572 { | |
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) | |
578 video_photon=no | |
579 AC_TRY_COMPILE([ | |
580 #include <Ph.h> | |
581 #include <Pt.h> | |
582 #include <photon/Pg.h> | |
583 #include <photon/PdDirect.h> | |
584 ],[ | |
585 PgDisplaySettings_t *visual; | |
586 ],[ | |
587 video_photon=yes | |
588 ]) | |
589 AC_MSG_RESULT($video_photon) | |
590 if test x$video_photon = xyes; then | |
19
8cc4dbfab9ab
Date: Thu, 19 Apr 2001 08:36:54 +0300
Sam Lantinga <slouken@lokigames.com>
parents:
16
diff
changeset
|
591 CFLAGS="$CFLAGS -DENABLE_PHOTON" |
0 | 592 SYSTEM_LIBS="$SYSTEM_LIBS -lph" |
593 VIDEO_SUBDIRS="$VIDEO_SUBDIRS photon" | |
594 VIDEO_DRIVERS="$VIDEO_DRIVERS photon/libvideo_photon.la" | |
595 fi | |
596 fi | |
597 } | |
598 | |
599 dnl Find the X11 DGA 2.0 include and library directories | |
600 CheckDGA() | |
601 { | |
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) | |
607 video_x11_dga2=no | |
608 AC_TRY_COMPILE([ | |
609 #include <X11/Xlib.h> | |
610 #include <X11/extensions/xf86dga.h> | |
611 ],[ | |
612 XDGAEvent xevent; | |
613 ],[ | |
614 video_x11_dga2=yes | |
615 ]) | |
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" | |
621 fi | |
622 fi | |
623 } | |
624 | |
625 dnl Find the framebuffer console includes | |
626 CheckFBCON() | |
627 { | |
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) | |
633 video_fbcon=no | |
634 AC_TRY_COMPILE([ | |
635 #include <linux/fb.h> | |
636 #include <linux/kd.h> | |
637 #include <linux/keyboard.h> | |
638 ],[ | |
639 ],[ | |
640 video_fbcon=yes | |
641 ]) | |
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" | |
647 fi | |
648 fi | |
649 } | |
650 | |
651 dnl Find the GGI includes | |
652 CheckGGI() | |
653 { | |
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) | |
659 video_ggi=no | |
660 AC_TRY_COMPILE([ | |
661 #include <ggi/ggi.h> | |
662 #include <ggi/gii.h> | |
663 ],[ | |
664 ],[ | |
665 video_ggi=yes | |
666 ]) | |
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" | |
671 | |
672 VIDEO_SUBDIRS="$VIDEO_SUBDIRS ggi" | |
673 VIDEO_DRIVERS="$VIDEO_DRIVERS ggi/libvideo_ggi.la" | |
674 fi | |
675 fi | |
676 } | |
677 | |
678 dnl Find the SVGAlib includes and libraries | |
679 CheckSVGA() | |
680 { | |
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) | |
686 video_svga=no | |
687 AC_TRY_COMPILE([ | |
688 #include <vga.h> | |
689 #include <vgamouse.h> | |
690 #include <vgakeyboard.h> | |
691 ],[ | |
692 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) { | |
693 exit(0); | |
694 } | |
695 ],[ | |
696 video_svga=yes | |
697 ]) | |
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" | |
702 | |
703 VIDEO_SUBDIRS="$VIDEO_SUBDIRS svga" | |
704 VIDEO_DRIVERS="$VIDEO_DRIVERS svga/libvideo_svga.la" | |
705 fi | |
706 fi | |
707 } | |
708 | |
709 dnl Find the AAlib includes | |
710 CheckAAlib() | |
711 { | |
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) | |
717 video_aalib=no | |
718 AC_TRY_COMPILE([ | |
719 #include <aalib.h> | |
720 ],[ | |
721 ],[ | |
722 video_aalib=yes | |
723 ]) | |
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" | |
728 | |
729 VIDEO_SUBDIRS="$VIDEO_SUBDIRS aalib" | |
730 VIDEO_DRIVERS="$VIDEO_DRIVERS aalib/libvideo_aa.la" | |
731 fi | |
732 fi | |
733 } | |
734 | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
735 dnl rcg04172001 Set up the Null video driver. |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
736 CheckDummyVideo() |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
737 { |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
738 AC_ARG_ENABLE(video-dummy, |
16
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
739 [ --enable-video-dummy use dummy video driver [default=no]], |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
740 , enable_video_dummy=no) |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
741 if test x$enable_video_dummy = xyes; then |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
742 CFLAGS="$CFLAGS -DENABLE_DUMMYVIDEO" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
743 VIDEO_SUBDIRS="$VIDEO_SUBDIRS dummy" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
744 VIDEO_DRIVERS="$VIDEO_DRIVERS dummy/libvideo_null.la" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
745 fi |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
746 } |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
747 |
0 | 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) | |
752 | |
753 dnl Find OpenGL | |
754 CheckOpenGL() | |
755 { | |
756 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
757 AC_MSG_CHECKING(for OpenGL (GLX) support) | |
758 video_opengl=no | |
759 AC_TRY_COMPILE([ | |
760 #include <GL/gl.h> | |
761 #include <GL/glx.h> | |
762 #include <dlfcn.h> /* For loading extensions */ | |
763 ],[ | |
764 ],[ | |
765 video_opengl=yes | |
766 ]) | |
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") | |
771 fi | |
772 fi | |
773 } | |
774 | |
775 dnl Check for BeOS OpenGL | |
776 CheckBeGL() | |
777 { | |
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" | |
781 fi | |
782 } | |
783 | |
784 dnl Check for MacOS OpenGL | |
785 CheckMacGL() | |
786 { | |
787 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
788 CFLAGS="$CFLAGS -DHAVE_OPENGL" | |
789 case "$target" in | |
790 *-*-darwin*) | |
791 SDL_LIBS="$SDL_LIBS -framework OpenGL -framework AGL" | |
792 esac | |
793 fi | |
794 } | |
795 | |
796 dnl See if we can use the new unified event interface in Linux 2.4 | |
797 CheckInputEvents() | |
798 { | |
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) | |
805 use_input_events=no | |
806 AC_TRY_COMPILE([ | |
807 #include <linux/input.h> | |
808 ],[ | |
809 #ifndef EVIOCGNAME | |
810 #error EVIOCGNAME() ioctl not available | |
811 #endif | |
812 ],[ | |
813 use_input_events=yes | |
814 ]) | |
815 AC_MSG_RESULT($use_input_events) | |
816 if test x$use_input_events = xyes; then | |
817 CFLAGS="$CFLAGS -DUSE_INPUT_EVENTS" | |
818 fi | |
819 fi | |
820 } | |
821 | |
822 dnl See what type of thread model to use on Linux and Solaris | |
823 CheckPTHREAD() | |
824 { | |
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) | |
833 ac_save_libs="$LIBS" | |
834 case "$target" in | |
835 *-*-bsdi*) | |
836 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
837 pthread_lib="" | |
838 ;; | |
839 *-*-darwin*) | |
840 pthread_cflags="-D_THREAD_SAFE" | |
841 # causes Carbon.p complaints? | |
842 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
843 ;; | |
844 *-*-freebsd*) | |
845 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
846 pthread_lib="-pthread" | |
847 ;; | |
848 *-*-openbsd*) | |
849 pthread_cflags="-D_REENTRANT" | |
850 pthread_lib="-pthread" | |
851 ;; | |
852 *-*-solaris*) | |
853 pthread_cflags="-D_REENTRANT" | |
854 pthread_lib="-lpthread -lposix4" | |
855 ;; | |
856 *-*-sysv5*) | |
857 pthread_cflags="-D_REENTRANT -Kthread" | |
858 pthread_lib="" | |
859 ;; | |
860 *-*-irix*) | |
861 pthread_cflags="-D_SGI_MP_SOURCE" | |
862 pthread_lib="-lpthread" | |
863 ;; | |
864 *-*-aix*) | |
865 pthread_cflags="-D_REENTRANT -mthreads" | |
866 pthread_lib="-lpthread" | |
867 ;; | |
868 *-*-qnx*) | |
869 pthread_cflags="" | |
870 pthread_lib="" | |
871 ;; | |
872 *) | |
873 pthread_cflags="-D_REENTRANT" | |
874 pthread_lib="-lpthread" | |
875 ;; | |
876 esac | |
877 LIBS="$LIBS $pthread_lib" | |
878 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then | |
879 AC_MSG_CHECKING(for pthreads) | |
880 use_pthreads=no | |
881 AC_TRY_LINK([ | |
882 #include <pthread.h> | |
883 ],[ | |
884 pthread_attr_t type; | |
885 pthread_attr_init(&type); | |
886 ],[ | |
887 use_pthreads=yes | |
888 ]) | |
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" | |
894 | |
895 # Check to see if recursive mutexes are available | |
896 AC_MSG_CHECKING(for recursive mutexes) | |
897 has_recursive_mutexes=no | |
898 AC_TRY_LINK([ | |
899 #include <pthread.h> | |
900 ],[ | |
901 pthread_mutexattr_t attr; | |
902 #ifdef linux | |
903 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); | |
904 #else | |
905 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
906 #endif | |
907 ],[ | |
908 has_recursive_mutexes=yes | |
909 ]) | |
910 # Some systems have broken recursive mutex implementations | |
911 case "$target" in | |
912 *-*-solaris*) | |
913 has_recursive_mutexes=no | |
914 ;; | |
915 esac | |
916 AC_MSG_RESULT($has_recursive_mutexes) | |
917 if test x$has_recursive_mutexes != xyes; then | |
918 CFLAGS="$CFLAGS -DPTHREAD_NO_RECURSIVE_MUTEX" | |
919 fi | |
920 | |
921 # Check to see if this is broken glibc 2.0 pthreads | |
922 case "$target" in | |
923 *-*-linux*) | |
924 AC_MSG_CHECKING(for broken glibc 2.0 pthreads) | |
925 glibc20_pthreads=no | |
926 AC_TRY_COMPILE([ | |
927 #include <features.h> | |
928 #if (__GLIBC__ == 2) && (__GLIBC_MINOR__ == 0) | |
929 #warning Working around a bug in glibc 2.0 pthreads | |
930 #else | |
931 #error pthread implementation okay | |
932 #endif /* glibc 2.0 */ | |
933 ],[ | |
934 ],[ | |
935 glibc20_pthreads=yes | |
936 ]) | |
937 AC_MSG_RESULT($glibc20_pthreads) | |
938 esac | |
939 fi | |
940 fi | |
941 LIBS="$ac_save_libs" | |
942 | |
943 AC_MSG_CHECKING(whether semun is defined in /usr/include/sys/sem.h) | |
944 have_semun=no | |
945 AC_TRY_COMPILE([ | |
946 #include <sys/types.h> | |
947 #include <sys/sem.h> | |
948 ],[ | |
949 union semun t; | |
950 ],[ | |
951 have_semun=yes | |
952 ]) | |
953 AC_MSG_RESULT($have_semun) | |
954 if test x$have_semun = xyes; then | |
955 CFLAGS="$CFLAGS -DHAVE_SEMUN" | |
956 fi | |
957 | |
958 # See if we can use clone() on Linux directly | |
959 use_clone=no | |
960 if test x$enable_threads = xyes -a x$use_pthreads != xyes; then | |
961 case "$target" in | |
962 *-*-linux*) | |
963 use_clone=yes | |
964 ;; | |
965 *) | |
966 CFLAGS="$CFLAGS -DFORK_HACK" | |
967 ;; | |
968 esac | |
969 fi | |
970 AM_CONDITIONAL(USE_CLONE, test x$use_clone = xyes) | |
971 } | |
972 | |
973 dnl Determine whether the compiler can produce Win32 executables | |
974 CheckWIN32() | |
975 { | |
976 AC_MSG_CHECKING(Win32 compiler) | |
977 have_win32_gcc=no | |
978 AC_TRY_COMPILE([ | |
979 #include <windows.h> | |
980 ],[ | |
981 ],[ | |
982 have_win32_gcc=yes | |
983 ]) | |
984 AC_MSG_RESULT($have_win32_gcc) | |
985 if test x$have_win32_gcc != xyes; then | |
986 AC_MSG_ERROR([ | |
987 *** Your compiler ($CC) does not produce Win32 executables! | |
988 ]) | |
989 fi | |
990 | |
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" | |
997 fi | |
998 } | |
999 | |
1000 dnl Find the DirectX includes and libraries | |
1001 CheckDIRECTX() | |
1002 { | |
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) | |
1008 use_directx=no | |
1009 AC_TRY_COMPILE([ | |
1010 #include "src/video/windx5/directx.h" | |
1011 ],[ | |
1012 ],[ | |
1013 use_directx=yes | |
1014 ]) | |
1015 AC_MSG_RESULT($use_directx) | |
1016 fi | |
1017 AM_CONDITIONAL(USE_DIRECTX, test x$use_directx = xyes) | |
1018 | |
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" | |
1033 fi | |
1034 } | |
1035 | |
1036 dnl Set up the BWindow video driver on BeOS | |
1037 CheckBWINDOW() | |
1038 { | |
1039 CFLAGS="$CFLAGS -DENABLE_BWINDOW" | |
1040 VIDEO_SUBDIRS="$VIDEO_SUBDIRS bwindow" | |
1041 VIDEO_DRIVERS="$VIDEO_DRIVERS bwindow/libvideo_bwindow.la" | |
1042 } | |
1043 | |
1044 dnl Set up the Mac toolbox video driver for Mac OS 7-9 | |
1045 CheckTOOLBOX() | |
1046 { | |
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" | |
1051 } | |
1052 | |
1053 dnl Set up the Mac toolbox video driver for Mac OS X | |
1054 CheckCARBON() | |
1055 { | |
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" | |
1068 } | |
1069 | |
1070 dnl Set up the kernel statistics library for Solaris | |
1071 CheckKSTAT() | |
1072 { | |
1073 CFLAGS="$CFLAGS -DHAVE_KSTAT" | |
1074 SYSTEM_LIBS="$SYSTEM_LIBS -lkstat" | |
1075 } | |
1076 | |
1077 case "$target" in | |
1078 *-*-linux*) | |
1079 ARCH=linux | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1080 CheckDummyVideo |
0 | 1081 CheckNASM |
1082 CheckOSS | |
1083 CheckALSA | |
1084 CheckARTSC | |
1085 CheckESD | |
1086 CheckNAS | |
1087 CheckX11 | |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
1088 CheckNANOX |
0 | 1089 CheckDGA |
1090 CheckFBCON | |
1091 CheckGGI | |
1092 CheckSVGA | |
1093 CheckAAlib | |
1094 CheckOpenGL | |
1095 CheckInputEvents | |
1096 CheckPTHREAD | |
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" | |
1104 #fi | |
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" | |
1109 fi | |
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) | |
1113 fi | |
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) | |
1118 fi | |
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) | |
1123 else | |
1124 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1125 fi | |
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) | |
1132 else | |
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) | |
1137 fi | |
1138 fi | |
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) | |
1142 fi | |
1143 ;; | |
1144 *-*-bsdi*) | |
1145 ARCH=bsdi | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1146 CheckDummyVideo |
0 | 1147 CheckNASM |
1148 CheckOSS | |
1149 CheckNAS | |
1150 CheckX11 | |
1151 CheckDGA | |
1152 CheckSVGA | |
1153 CheckAAlib | |
1154 CheckOpenGL | |
1155 CheckPTHREAD | |
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" | |
1163 fi | |
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) | |
1168 fi | |
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) | |
1179 fi | |
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) | |
1183 fi | |
1184 ;; | |
1185 *-*-freebsd*) | |
1186 ARCH=freebsd | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1187 CheckDummyVideo |
0 | 1188 CheckNASM |
1189 CheckOSS | |
1190 CheckARTSC | |
1191 CheckESD | |
1192 CheckNAS | |
1193 CheckX11 | |
1194 CheckDGA | |
1195 CheckSVGA | |
1196 CheckAAlib | |
1197 CheckOpenGL | |
1198 CheckPTHREAD | |
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" | |
1206 #fi | |
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" | |
1212 fi | |
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) | |
1216 fi | |
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) | |
1225 else | |
1226 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1227 fi | |
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) | |
1231 fi | |
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) | |
1235 fi | |
1236 ;; | |
1237 *-*-netbsd*) | |
1238 ARCH=netbsd | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1239 CheckDummyVideo |
0 | 1240 CheckNASM |
1241 CheckOSS | |
1242 CheckARTSC | |
1243 CheckESD | |
1244 CheckNAS | |
1245 CheckX11 | |
1246 CheckAAlib | |
1247 CheckOpenGL | |
1248 CheckPTHREAD | |
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" | |
1255 fi | |
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" | |
1261 fi | |
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) | |
1265 fi | |
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) | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1272 if test x$use_pthreads = xyes -a x$enable_pthread_sem != xyes; then |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1273 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1274 else |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1275 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1276 fi |
0 | 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) | |
1280 fi | |
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) | |
1284 fi | |
1285 # NetBSD does not define "unix" | |
1286 CFLAGS="$CFLAGS -Dunix" | |
1287 ;; | |
1288 *-*-openbsd*) | |
1289 ARCH=openbsd | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1290 CFLAGS="$CFLAGS -Dunix" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1291 CheckDummyVideo |
0 | 1292 CheckNASM |
1293 CheckOSS | |
1294 CheckARTSC | |
1295 CheckESD | |
1296 CheckNAS | |
1297 CheckX11 | |
1298 CheckAAlib | |
1299 CheckOpenGL | |
1300 CheckPTHREAD | |
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" | |
1307 fi | |
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" | |
1313 fi | |
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) | |
1317 fi | |
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) | |
1326 else | |
1327 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1328 fi | |
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) | |
1332 fi | |
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) | |
1336 fi | |
1337 ;; | |
1338 *-*-sysv5*) | |
1339 ARCH=sysv5 | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1340 CheckDummyVideo |
0 | 1341 CheckNASM |
1342 CheckOSS | |
1343 CheckARTSC | |
1344 CheckESD | |
1345 CheckNAS | |
1346 CheckX11 | |
1347 CheckAAlib | |
1348 CheckOpenGL | |
1349 CheckPTHREAD | |
1350 CheckKSTAT | |
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" | |
1357 fi | |
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" | |
1363 fi | |
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) | |
1367 fi | |
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) | |
1378 fi | |
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) | |
1382 fi | |
1383 ;; | |
1384 *-*-solaris*) | |
1385 ARCH=solaris | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1386 CFLAGS="$CFLAGS -D__ELF__" # Fix for nasm on Solaris x86 |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1387 CheckDummyVideo |
0 | 1388 CheckNASM |
1389 CheckARTSC | |
1390 CheckESD | |
1391 CheckNAS | |
1392 CheckX11 | |
1393 CheckAAlib | |
1394 CheckOpenGL | |
1395 CheckPTHREAD | |
1396 CheckKSTAT | |
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" | |
1403 fi | |
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" | |
1409 fi | |
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) | |
1413 fi | |
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) | |
1424 fi | |
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) | |
1428 fi | |
1429 ;; | |
1430 *-*-irix*) | |
1431 ARCH=irix | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1432 CheckDummyVideo |
0 | 1433 CheckNAS |
1434 CheckX11 | |
1435 CheckAAlib | |
1436 CheckOpenGL | |
1437 CheckPTHREAD | |
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" | |
1445 fi | |
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" | |
1451 fi | |
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) | |
1456 fi | |
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) | |
1466 else | |
1467 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1468 fi | |
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) | |
1472 else | |
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) | |
1481 fi | |
1482 fi | |
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) | |
1486 fi | |
1487 ;; | |
1488 *-*-hpux*) | |
1489 ARCH=hpux | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1490 CheckDummyVideo |
0 | 1491 CheckNAS |
1492 CheckX11 | |
1493 CheckGGI | |
1494 CheckAAlib | |
1495 CheckOpenGL | |
1496 CheckPTHREAD | |
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" | |
1503 fi | |
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" | |
1509 fi | |
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) | |
1514 fi | |
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) | |
1525 fi | |
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) | |
1529 fi | |
1530 ;; | |
1531 *-*-aix*) | |
1532 ARCH=aix | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1533 CheckDummyVideo |
0 | 1534 CheckNAS |
1535 CheckX11 | |
1536 CheckGGI | |
1537 CheckAAlib | |
1538 CheckOpenGL | |
1539 CheckPTHREAD | |
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" | |
1546 fi | |
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" | |
1552 fi | |
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) | |
1556 fi | |
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) | |
1567 fi | |
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) | |
1571 fi | |
1572 ;; | |
1573 *-*-osf*) | |
1574 ARCH=osf | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1575 CheckDummyVideo |
0 | 1576 CheckNAS |
1577 CheckX11 | |
1578 CheckGGI | |
1579 CheckAAlib | |
1580 CheckOpenGL | |
1581 CheckPTHREAD | |
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" | |
1588 fi | |
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" | |
1594 fi | |
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) | |
1599 fi | |
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) | |
1610 fi | |
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) | |
1614 fi | |
1615 ;; | |
1616 *-*-qnx*) | |
1617 ARCH=qnx | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1618 CheckDummyVideo |
0 | 1619 CheckNAS |
1620 CheckPHOTON | |
1621 CheckX11 | |
1622 CheckOpenGL | |
1623 CheckPTHREAD | |
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" | |
1634 fi | |
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" | |
1640 fi | |
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) | |
1644 fi | |
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) | |
1655 fi | |
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) | |
1659 fi | |
1660 ;; | |
1661 *-*-cygwin* | *-*-mingw32*) | |
1662 ARCH=win32 | |
1663 if test "$build" != "$target"; then # cross-compiling | |
1664 # Default cross-compile location | |
1665 ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc | |
1666 else | |
1667 # Look for the location of the tools and install there | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1668 if [ "$BUILD_PREFIX" != "" ]; then |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1669 ac_default_prefix=$BUILD_PREFIX |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1670 fi |
0 | 1671 fi |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1672 CheckDummyVideo |
0 | 1673 CheckWIN32 |
1674 CheckDIRECTX | |
1675 CheckNASM | |
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" | |
1685 fi | |
1686 fi | |
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" | |
1691 fi | |
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) | |
1695 fi | |
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) | |
1706 fi | |
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) | |
1710 fi | |
1711 # The Win32 platform requires special setup | |
1712 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1713 case "$target" in |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1714 *-*-cygwin*) |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1715 CFLAGS="$CFLAGS -I/usr/include/mingw -DWIN32 -Uunix" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1716 SDL_CFLAGS="$SDL_CFLAGS -I/usr/include/mingw -DWIN32 -Uunix" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1717 LIBS="$LIBS -mno-cygwin" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1718 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows -mno-cygwin" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1719 ;; |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1720 *-*-mingw32*) |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1721 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1722 ;; |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1723 esac |
0 | 1724 ;; |
1725 *-*-beos*) | |
1726 ARCH=beos | |
1727 ac_default_prefix=/boot/develop/tools/gnupro | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1728 CheckDummyVideo |
0 | 1729 CheckNASM |
1730 CheckBWINDOW | |
1731 CheckBeGL | |
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" | |
1740 fi | |
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" | |
1745 fi | |
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) | |
1749 fi | |
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) | |
1760 fi | |
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) | |
1764 fi | |
1765 # The BeOS platform requires special libraries | |
1766 SYSTEM_LIBS="$SYSTEM_LIBS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding" | |
1767 ;; | |
1768 *-*-macos*) | |
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. | |
1772 ARCH=macos | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1773 CheckDummyVideo |
0 | 1774 CheckTOOLBOX |
1775 CheckMacGL | |
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" | |
1782 fi | |
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" | |
1787 fi | |
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) | |
1791 fi | |
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) | |
1802 fi | |
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) | |
1806 fi | |
1807 # The MacOS platform requires special setup | |
1808 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" | |
1809 SDL_LIBS="-lSDLmain $SDL_LIBS" | |
1810 ;; | |
1811 *-*-darwin* ) | |
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. | |
1815 ARCH=macos | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1816 CheckDummyVideo |
0 | 1817 CheckCARBON |
1818 CheckMacGL | |
1819 CheckPTHREAD | |
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" | |
1827 fi | |
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" | |
1832 fi | |
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) | |
1836 fi | |
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) | |
1845 else | |
1846 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1847 fi | |
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) | |
1851 fi | |
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) | |
1855 fi | |
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" | |
1859 ;; | |
1860 *) | |
1861 AC_MSG_ERROR(Unsupported target: Please add to configure.in) | |
1862 ;; | |
1863 esac | |
1864 AC_SUBST(ARCH) | |
1865 | |
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) | |
1877 | |
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]) | |
1882 | |
1883 # Set runtime shared library paths as needed | |
1884 | |
1885 if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then | |
1886 SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" | |
1887 fi | |
1888 | |
1889 if test $ARCH = solaris; then | |
1890 SDL_RLD_FLAGS="-R\${exec_prefix}/lib" | |
1891 fi | |
1892 | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1893 if test $ARCH = openbsd; then |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1894 SDL_RLD_FLAGS="-Wl,-R\${exec_prefix}/lib -Wl,-R\${X11BASE}/lib" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1895 fi |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1896 |
0 | 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!) | |
1901 fi | |
1902 fi | |
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) | |
1912 | |
1913 dnl Expand the cflags and libraries needed by apps using SDL | |
1914 AC_SUBST(SDL_CFLAGS) | |
1915 AC_SUBST(SDL_LIBS) | |
1916 AC_SUBST(SDL_RLD_FLAGS) | |
1917 | |
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" | |
1934 CXXFLAGS="$CFLAGS" | |
1935 | |
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. | |
1940 AC_OUTPUT([ | |
1941 Makefile | |
1942 docs/Makefile | |
1943 docs/html/Makefile | |
1944 docs/man3/Makefile | |
1945 include/Makefile | |
1946 src/Makefile | |
1947 src/main/Makefile | |
1948 src/audio/Makefile | |
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 | |
1964 src/video/Makefile | |
1965 src/video/cybergfx/Makefile | |
1966 src/video/x11/Makefile | |
1967 src/video/dga/Makefile | |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
1968 src/video/nanox/Makefile |
0 | 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 | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1981 src/video/dummy/Makefile |
0 | 1982 src/events/Makefile |
1983 src/joystick/Makefile | |
21
75a95f82bc1f
Updated the Amiga OS port of SDL (thanks Gabriele)
Sam Lantinga <slouken@lokigames.com>
parents:
19
diff
changeset
|
1984 src/joystick/amigaos/Makefile |
0 | 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 | |
1990 src/cdrom/Makefile | |
1991 src/thread/Makefile | |
1992 src/timer/Makefile | |
1993 src/endian/Makefile | |
1994 src/file/Makefile | |
1995 src/hermes/Makefile | |
1996 sdl-config | |
1997 SDL.spec | |
1998 ], [chmod +x sdl-config]) |