Mercurial > sdl-ios-xcode
annotate configure.in @ 354:30935e76acb5
Updated ALSA audio support for ALSA 0.9
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 15 Apr 2002 07:38:54 +0000 |
parents | 6dd188952b9e |
children | 8c1f8c4d2dd1 |
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 | |
350
6dd188952b9e
Bump the version, so that it isn't forotten later. :)
Sam Lantinga <slouken@libsdl.org>
parents:
329
diff
changeset
|
17 SDL_MICRO_VERSION=5 |
6dd188952b9e
Bump the version, so that it isn't forotten later. :)
Sam Lantinga <slouken@libsdl.org>
parents:
329
diff
changeset
|
18 SDL_INTERFACE_AGE=5 |
6dd188952b9e
Bump the version, so that it isn't forotten later. :)
Sam Lantinga <slouken@libsdl.org>
parents:
329
diff
changeset
|
19 SDL_BINARY_AGE=5 |
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 Detect the canonical host and target build environment | |
41 AC_CANONICAL_HOST | |
42 AC_CANONICAL_TARGET | |
43 | |
51
fba28d77901f
Disabled /dev/event joystick interface by default
Sam Lantinga <slouken@lokigames.com>
parents:
47
diff
changeset
|
44 dnl Setup for automake |
fba28d77901f
Disabled /dev/event joystick interface by default
Sam Lantinga <slouken@lokigames.com>
parents:
47
diff
changeset
|
45 AM_INIT_AUTOMAKE(SDL, $SDL_VERSION) |
fba28d77901f
Disabled /dev/event joystick interface by default
Sam Lantinga <slouken@lokigames.com>
parents:
47
diff
changeset
|
46 |
0 | 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 | |
200 | 55 AC_PROG_CXX |
0 | 56 AC_PROG_INSTALL |
57 AC_FUNC_ALLOCA | |
258
ada53483727a
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
257
diff
changeset
|
58 ASFLAGS="" |
ada53483727a
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
257
diff
changeset
|
59 AC_SUBST(ASFLAGS) |
0 | 60 |
61 dnl The alpha architecture needs special flags for binary portability | |
62 case "$target" in | |
63 alpha*-*-linux*) | |
64 if test x$ac_cv_prog_gcc = xyes; then | |
65 CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall" | |
66 fi | |
67 ;; | |
68 esac | |
69 | |
70 dnl Add compiler-specific optimization flags | |
71 | |
72 dnl See if the user wants aggressive optimizations of the code | |
73 AC_ARG_ENABLE(debug, | |
74 [ --enable-debug Disable aggressive optimizations [default=yes]], | |
75 , enable_debug=yes) | |
76 if test x$enable_debug != xyes; then | |
77 if test x$ac_cv_prog_gcc = xyes; then | |
78 CFLAGS="$CFLAGS -fexpensive-optimizations" | |
79 # Ack! This breaks the MMX YV12 conversion on gcc 2.95.2 | |
80 # CFLAGS="$CFLAGS -fomit-frame-pointer" | |
81 fi | |
82 case "$target" in | |
83 i486-*-*) | |
84 if test x$ac_cv_prog_gcc = xyes; then | |
85 CFLAGS="$CFLAGS -march=486" | |
86 fi | |
87 ;; | |
88 i?86-*-*) | |
89 if test x$ac_cv_prog_gcc = xyes; then | |
90 CFLAGS="$CFLAGS -march=pentium -mcpu=pentiumpro" | |
91 fi | |
92 ;; | |
93 *-*-osf*) | |
94 if test x$ac_cv_prog_gcc != xyes; then | |
95 CFLAGS="-g3 -fast -arch host" | |
96 fi | |
97 ;; | |
98 esac | |
99 fi | |
100 | |
101 dnl Add verbose warnings by default, and allow ANSI compliance checking | |
102 AC_ARG_ENABLE(strict-ansi, | |
103 [ --enable-strict-ansi Enable strict ANSI compliance build [default=no]], | |
104 , enable_strict_ansi=no) | |
105 if test x$ac_cv_prog_gcc = xyes; then | |
106 CFLAGS="$CFLAGS -Wall" | |
107 if test x$enable_strict_ansi = xyes; then | |
108 CFLAGS="$CFLAGS -ansi -pedantic -D_XOPEN_SOURCE" | |
109 fi | |
110 fi | |
111 | |
112 dnl Initialize the compiler and linker flags for SDL applications | |
113 | |
114 SDL_CFLAGS="" | |
115 SDL_LIBS="-lSDL" | |
116 | |
117 dnl Add the math library for the new gamma correction support | |
118 | |
119 case "$target" in | |
120 *-*-cygwin* | *-*-mingw32*) | |
121 MATHLIB="" | |
122 ;; | |
123 *-*-beos*) | |
124 MATHLIB="" | |
125 ;; | |
126 *-*-darwin*) | |
127 MATHLIB="" | |
128 ;; | |
129 *) | |
130 MATHLIB="-lm" | |
131 ;; | |
132 esac | |
133 SYSTEM_LIBS="$SYSTEM_LIBS $MATHLIB" | |
134 | |
135 dnl Enable/disable various subsystems of the SDL library | |
136 | |
137 AC_ARG_ENABLE(audio, | |
138 [ --enable-audio Enable the audio subsystem [default=yes]], | |
139 , enable_audio=yes) | |
140 if test x$enable_audio = xyes; then | |
141 SDL_EXTRADIRS="$SDL_EXTRADIRS audio" | |
142 SDL_EXTRALIBS="$SDL_EXTRALIBS audio/libaudio.la" | |
143 else | |
144 CFLAGS="$CFLAGS -DDISABLE_AUDIO" | |
145 fi | |
146 AC_ARG_ENABLE(video, | |
147 [ --enable-video Enable the video subsystem [default=yes]], | |
148 , enable_video=yes) | |
149 if test x$enable_video = xyes; then | |
150 SDL_EXTRADIRS="$SDL_EXTRADIRS video" | |
151 SDL_EXTRALIBS="$SDL_EXTRALIBS video/libvideo.la" | |
152 else | |
153 CFLAGS="$CFLAGS -DDISABLE_VIDEO" | |
154 fi | |
155 AC_ARG_ENABLE(events, | |
156 [ --enable-events Enable the events subsystem [default=yes]], | |
157 , enable_events=yes) | |
158 if test x$enable_video = xyes -a x$enable_events = xyes; then | |
159 SDL_EXTRADIRS="$SDL_EXTRADIRS events" | |
160 SDL_EXTRALIBS="$SDL_EXTRALIBS events/libevents.la" | |
161 else | |
162 CFLAGS="$CFLAGS -DDISABLE_EVENTS" | |
163 fi | |
164 AC_ARG_ENABLE(joystick, | |
165 [ --enable-joystick Enable the joystick subsystem [default=yes]], | |
166 , enable_joystick=yes) | |
167 if test x$enable_joystick = xyes; then | |
168 SDL_EXTRADIRS="$SDL_EXTRADIRS joystick" | |
169 SDL_EXTRALIBS="$SDL_EXTRALIBS joystick/libjoystick.la" | |
170 else | |
171 CFLAGS="$CFLAGS -DDISABLE_JOYSTICK" | |
172 fi | |
173 AC_ARG_ENABLE(cdrom, | |
174 [ --enable-cdrom Enable the cdrom subsystem [default=yes]], | |
175 , enable_cdrom=yes) | |
176 if test x$enable_cdrom = xyes; then | |
177 SDL_EXTRADIRS="$SDL_EXTRADIRS cdrom" | |
178 SDL_EXTRALIBS="$SDL_EXTRALIBS cdrom/libcdrom.la" | |
179 else | |
180 CFLAGS="$CFLAGS -DDISABLE_CDROM" | |
181 fi | |
182 AC_ARG_ENABLE(threads, | |
183 [ --enable-threads Enable the threading subsystem [default=yes]], | |
184 , enable_threads=yes) | |
185 SDL_EXTRADIRS="$SDL_EXTRADIRS thread" | |
186 SDL_EXTRALIBS="$SDL_EXTRALIBS thread/libthread.la" | |
187 if test x$enable_threads != xyes; then | |
188 CFLAGS="$CFLAGS -DDISABLE_THREADS" | |
189 COPY_ARCH_SRC(src/thread, generic, SDL_systhread.c) | |
190 COPY_ARCH_SRC(src/thread, generic, SDL_systhread_c.h) | |
191 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c) | |
192 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h) | |
193 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) | |
194 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
195 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c) | |
196 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
197 fi | |
198 AC_ARG_ENABLE(timers, | |
199 [ --enable-timers Enable the timer subsystem [default=yes]], | |
200 , enable_timers=yes) | |
201 if test x$enable_timers = xyes; then | |
202 SDL_EXTRADIRS="$SDL_EXTRADIRS timer" | |
203 SDL_EXTRALIBS="$SDL_EXTRALIBS timer/libtimer.la" | |
204 else | |
205 CFLAGS="$CFLAGS -DDISABLE_TIMERS" | |
206 fi | |
207 AC_ARG_ENABLE(endian, | |
208 [ --enable-endian Enable the endian subsystem [default=yes]], | |
209 , enable_endian=yes) | |
210 if test x$enable_endian = xyes; then | |
211 SDL_EXTRADIRS="$SDL_EXTRADIRS endian" | |
212 SDL_EXTRALIBS="$SDL_EXTRALIBS endian/libendian.la" | |
213 else | |
214 CFLAGS="$CFLAGS -DDISABLE_ENDIAN" | |
215 fi | |
216 AC_ARG_ENABLE(file, | |
217 [ --enable-file Enable the file subsystem [default=yes]], | |
218 , enable_file=yes) | |
219 if test x$enable_file = xyes; then | |
220 SDL_EXTRADIRS="$SDL_EXTRADIRS file" | |
221 SDL_EXTRALIBS="$SDL_EXTRALIBS file/libfile.la" | |
222 else | |
223 CFLAGS="$CFLAGS -DDISABLE_FILE" | |
224 fi | |
225 | |
226 dnl See if the OSS audio interface is supported | |
227 CheckOSS() | |
228 { | |
229 AC_ARG_ENABLE(oss, | |
230 [ --enable-oss support the OSS audio API [default=yes]], | |
231 , enable_oss=yes) | |
232 if test x$enable_audio = xyes -a x$enable_oss = xyes; then | |
233 AC_MSG_CHECKING(for OSS audio support) | |
234 have_oss=no | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
235 if test x$have_oss != xyes; then |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
236 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
237 #include <sys/soundcard.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
238 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
239 int arg = SNDCTL_DSP_SETFRAGMENT; |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
240 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
241 have_oss=yes |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
242 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
243 fi |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
244 if test x$have_oss != xyes; then |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
245 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
246 #include <soundcard.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
247 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
248 int arg = SNDCTL_DSP_SETFRAGMENT; |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
249 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
250 have_oss=yes |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
251 CFLAGS="$CFLAGS -DOSS_USE_SOUNDCARD_H" |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
252 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
253 fi |
0 | 254 AC_MSG_RESULT($have_oss) |
255 if test x$have_oss = xyes; then | |
256 CFLAGS="$CFLAGS -DOSS_SUPPORT" | |
257 AUDIO_SUBDIRS="$AUDIO_SUBDIRS dsp" | |
258 AUDIO_DRIVERS="$AUDIO_DRIVERS dsp/libaudio_dsp.la" | |
259 AUDIO_SUBDIRS="$AUDIO_SUBDIRS dma" | |
260 AUDIO_DRIVERS="$AUDIO_DRIVERS dma/libaudio_dma.la" | |
261 fi | |
262 fi | |
263 } | |
264 | |
265 dnl See if the ALSA audio interface is supported | |
266 CheckALSA() | |
267 { | |
268 AC_ARG_ENABLE(alsa, | |
269 [ --enable-alsa support the ALSA audio API [default=yes]], | |
270 , enable_alsa=yes) | |
271 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then | |
354
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
272 AC_MSG_CHECKING(for ALSA audio support) |
0 | 273 have_alsa=no |
354
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
274 AC_TRY_COMPILE([ |
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
275 #include <alsa/asoundlib.h> |
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
276 ],[ |
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
277 #if SND_LIB_VERSION < ((0<<16)|(9<<8)|0) |
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
278 #error Your version of ALSA is too old |
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
279 #endif |
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
280 snd_pcm_t *pcm_handle; |
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
281 ],[ |
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
282 AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes) |
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
283 ]) |
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
284 if test x$have_alsa = xyes; then |
0 | 285 CFLAGS="$CFLAGS -DALSA_SUPPORT" |
286 SYSTEM_LIBS="$SYSTEM_LIBS -lasound" | |
287 AUDIO_SUBDIRS="$AUDIO_SUBDIRS alsa" | |
288 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa/libaudio_alsa.la" | |
354
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
289 else |
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
290 AC_MSG_RESULT($have_alsa) |
0 | 291 fi |
292 fi | |
293 } | |
294 | |
37
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
295 dnl Check whether we want to use OpenBSD native audio or not |
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
296 CheckOPENBSDAUDIO() |
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
297 { |
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
298 AC_ARG_ENABLE(openbsdaudio, |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
299 [ --enable-openbsdaudio OpenBSD native audio support [default=yes]], |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
300 , enable_openbsdaudio=yes) |
37
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
301 if test x$enable_audio = xyes -a x$enable_openbsdaudio = xyes; then |
121
43febd46d49d
Name changed from OBSD to OPENBSD_AUDIO
Sam Lantinga <slouken@libsdl.org>
parents:
94
diff
changeset
|
302 CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT" |
37
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
303 AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd" |
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
304 AUDIO_DRIVERS="$AUDIO_DRIVERS openbsd/libaudio_openbsd.la" |
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
305 fi |
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
306 } |
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
307 |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
308 dnl Check whether we want to use IRIX 6.5+ native audio or not |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
309 CheckDMEDIA() |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
310 { |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
311 if test x$enable_audio = xyes; then |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
312 AC_MSG_CHECKING(for dmedia audio support) |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
313 have_dmedia=no |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
314 AC_TRY_COMPILE([ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
315 #include <dmedia/audio.h> |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
316 ],[ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
317 ALport audio_port; |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
318 ],[ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
319 have_dmedia=yes |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
320 ]) |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
321 # Set up files for the audio library |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
322 if test x$have_dmedia = xyes; then |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
323 CFLAGS="$CFLAGS -DDMEDIA_SUPPORT" |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
324 AUDIO_SUBDIRS="$AUDIO_SUBDIRS dmedia" |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
325 AUDIO_DRIVERS="$AUDIO_DRIVERS dmedia/libaudio_dmedia.la" |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
326 SYSTEM_LIBS="$SYSTEM_LIBS -laudio" |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
327 fi |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
328 fi |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
329 } |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
330 |
0 | 331 dnl Find the ESD includes and libraries |
332 CheckESD() | |
333 { | |
334 AC_ARG_ENABLE(esd, | |
335 [ --enable-esd support the Enlightened Sound Daemon [default=yes]], | |
336 , enable_esd=yes) | |
337 if test x$enable_audio = xyes -a x$enable_esd = xyes; then | |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
338 use_esd=no |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
339 AM_PATH_ESD(0.2.8, use_esd=yes) |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
340 if test x$use_esd = xyes; then |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
341 AC_ARG_ENABLE(esd-shared, |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
342 [ --enable-esd-shared dynamically load ESD audio support [default=no]], |
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
343 , enable_esd_shared=no) |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
344 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'` |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
345 esd_lib=`ls $esd_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
346 echo "-- $esd_lib_spec -> $esd_lib" |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
347 if test x$enable_dlopen != xyes && \ |
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
348 test x$enable_esd_shared = xyes; then |
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
349 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option]) |
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
350 fi |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
351 if test x$enable_dlopen = xyes && \ |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
352 test x$enable_esd_shared = xyes && test x$esd_lib != x; then |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
353 CFLAGS="$CFLAGS -DESD_SUPPORT -DESD_DYNAMIC=\$(esd_lib) $ESD_CFLAGS" |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
354 AC_SUBST(esd_lib) |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
355 else |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
356 CFLAGS="$CFLAGS -DESD_SUPPORT $ESD_CFLAGS" |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
357 SYSTEM_LIBS="$SYSTEM_LIBS $ESD_LIBS" |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
358 fi |
0 | 359 AUDIO_SUBDIRS="$AUDIO_SUBDIRS esd" |
360 AUDIO_DRIVERS="$AUDIO_DRIVERS esd/libaudio_esd.la" | |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
361 fi |
0 | 362 fi |
363 } | |
364 | |
365 CheckARTSC() | |
366 { | |
367 AC_ARG_ENABLE(arts, | |
368 [ --enable-arts support the Analog Real Time Synthesizer [default=yes]], | |
369 , enable_arts=yes) | |
370 if test x$enable_audio = xyes -a x$enable_arts = xyes; then | |
371 AC_PATH_PROG(ARTSCCONFIG, artsc-config) | |
372 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; then | |
373 : # arts isn't installed | |
374 else | |
375 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags` | |
376 ARTSC_LIBS=`$ARTSCCONFIG --libs` | |
377 AC_MSG_CHECKING(for aRts development environment) | |
378 audio_arts=no | |
379 save_CFLAGS="$CFLAGS" | |
380 CFLAGS="$CFLAGS $ARTSC_CFLAGS" | |
381 AC_TRY_COMPILE([ | |
382 #include <artsc.h> | |
383 ],[ | |
384 arts_stream_t stream; | |
385 ],[ | |
386 audio_arts=yes | |
387 ]) | |
388 CFLAGS="$save_CFLAGS" | |
389 AC_MSG_RESULT($audio_arts) | |
390 if test x$audio_arts = xyes; then | |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
391 AC_ARG_ENABLE(arts-shared, |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
392 [ --enable-arts-shared dynamically load aRts audio support [default=no]], |
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
393 , enable_arts_shared=no) |
300
8bdc210ed1de
Fixed dynamic arts support.
Sam Lantinga <slouken@libsdl.org>
parents:
296
diff
changeset
|
394 arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libartsc.so.*/'` |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
395 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
396 echo "-- $arts_lib_spec -> $arts_lib" |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
397 if test x$enable_dlopen != xyes && \ |
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
398 test x$enable_arts_shared = xyes; then |
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
399 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option]) |
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
400 fi |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
401 if test x$enable_dlopen = xyes && \ |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
402 test x$enable_arts_shared = xyes && test x$arts_lib != x; then |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
403 CFLAGS="$CFLAGS -DARTSC_SUPPORT -DARTSC_DYNAMIC=\$(arts_lib) $ARTSC_CFLAGS" |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
404 AC_SUBST(arts_lib) |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
405 else |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
406 CFLAGS="$CFLAGS -DARTSC_SUPPORT $ARTSC_CFLAGS" |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
407 SYSTEM_LIBS="$SYSTEM_LIBS $ARTSC_LIBS" |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
408 fi |
0 | 409 AUDIO_SUBDIRS="$AUDIO_SUBDIRS arts" |
410 AUDIO_DRIVERS="$AUDIO_DRIVERS arts/libaudio_arts.la" | |
411 fi | |
412 fi | |
413 fi | |
414 } | |
415 | |
416 dnl See if the NAS audio interface is supported | |
417 CheckNAS() | |
418 { | |
419 AC_ARG_ENABLE(nas, | |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
420 [ --enable-nas support the NAS audio API [default=yes]], |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
421 , enable_nas=yes) |
0 | 422 if test x$enable_audio = xyes -a x$enable_nas = xyes; then |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
423 AC_MSG_CHECKING(for NAS audio support) |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
424 have_nas=no |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
425 if test -r /usr/X11R6/include/audio/audiolib.h; then |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
426 have_nas=yes |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
427 fi |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
428 AC_MSG_RESULT($have_nas) |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
429 if test x$have_nas = xyes; then |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
430 CFLAGS="$CFLAGS -DNAS_SUPPORT" |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
431 SYSTEM_LIBS="$SYSTEM_LIBS -laudio -lXt" |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
432 AUDIO_SUBDIRS="$AUDIO_SUBDIRS nas" |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
433 AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la" |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
434 fi |
0 | 435 fi |
436 } | |
437 | |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
438 dnl rcg07142001 See if the user wants the disk writer audio driver... |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
439 CheckDiskAudio() |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
440 { |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
441 AC_ARG_ENABLE(diskaudio, |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
442 [ --enable-diskaudio support the disk writer audio driver [default=yes]], |
86
13e4c612098d
Dummy audio and video drivers are enabled (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
76
diff
changeset
|
443 , enable_diskaudio=yes) |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
444 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
445 CFLAGS="$CFLAGS -DDISKAUD_SUPPORT" |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
446 AUDIO_SUBDIRS="$AUDIO_SUBDIRS disk" |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
447 AUDIO_DRIVERS="$AUDIO_DRIVERS disk/libaudio_disk.la" |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
448 fi |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
449 } |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
450 |
0 | 451 dnl See if we can use x86 assembly blitters |
212
5e8f81418e30
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
211
diff
changeset
|
452 # NASM is available from: http://nasm.octium.net/ |
0 | 453 CheckNASM() |
454 { | |
455 dnl Make sure we are running on an x86 platform | |
456 case $target in | |
457 i?86*) | |
458 ;; | |
459 *) | |
460 # Nope, bail early. | |
461 return | |
462 ;; | |
463 esac | |
464 dnl Check for NASM (for assembly blit routines) | |
465 AC_ARG_ENABLE(nasm, | |
466 [ --enable-nasm use nasm assembly blitters on x86 [default=yes]], | |
467 , enable_nasm=yes) | |
468 if test x$enable_video = xyes -a x$enable_nasm = xyes; then | |
469 AC_PATH_PROG(NASM, nasm) | |
470 if test x$NASM = x -o x$NASM = x'"$NASM"'; then | |
471 : # nasm isn't installed | |
472 else | |
473 CFLAGS="$CFLAGS -DUSE_ASMBLIT -I$srcdir/hermes" | |
474 case $ARCH in | |
475 win32) | |
476 NASMFLAGS="-f win32" | |
477 ;; | |
478 *) | |
479 NASMFLAGS="-f elf" | |
480 ;; | |
481 esac | |
482 AC_SUBST(NASMFLAGS) | |
483 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hermes" | |
484 SDL_EXTRADIRS="$SDL_EXTRADIRS hermes" | |
485 SDL_EXTRALIBS="$SDL_EXTRALIBS hermes/libhermes.la" | |
486 fi | |
487 fi | |
488 } | |
489 | |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
490 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
|
491 CheckNANOX() |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
492 { |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
493 AC_ARG_ENABLE(video-nanox, |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
494 [ --enable-video-nanox use nanox video driver [default=no]], |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
495 , enable_video_nanox=no) |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
496 AC_ARG_ENABLE(nanox-debug, |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
497 [ --enable-nanox-debug print debug messages [default=no]], |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
498 , enable_nanox_debug=no) |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
499 AC_ARG_ENABLE(nanox-share-memory, |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
500 [ --enable-nanox-share-memory use share memory [default=no]], |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
501 , enable_nanox_share_memory=no) |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
502 |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
503 AC_ARG_WITH(nanox_pixel_type, |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
504 [ --with-nanox-pixel-type=[rgb/0888/888/565/555/332/pal]]) |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
505 |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
506 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
507 if test x$enable_nanox_debug = xyes; then |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
508 CFLAGS="$CFLAGS -DENABLE_NANOX_DEBUG" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
509 fi |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
510 |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
511 if test x$enable_nanox_share_memory = xyes; then |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
512 CFLAGS="$CFLAGS -DNANOX_SHARE_MEMORY" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
513 fi |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
514 |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
515 case "$with_nanox_pixel_type" in |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
516 rgb) CFLAGS="$CFLAGS -DNANOX_PIXEL_RGB" ;; |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
517 0888) CFLAGS="$CFLAGS -DNANOX_PIXEL_0888" ;; |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
518 888) CFLAGS="$CFLAGS -DNANOX_PIXEL_888" ;; |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
519 565) CFLAGS="$CFLAGS -DNANOX_PIXEL_565" ;; |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
520 555) CFLAGS="$CFLAGS -DNANOX_PIXEL_555" ;; |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
521 332) CFLAGS="$CFLAGS -DNANOX_PIXEL_332" ;; |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
522 pal) CFLAGS="$CFLAGS -DNANOX_PIXEL_PAL" ;; |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
523 *) AC_MSG_ERROR([Invalid nanox_pixel_type]);; |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
524 esac |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
525 |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
526 CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_NANOX" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
527 SYSTEM_LIBS="$SYSTEM_LIBS -lnano-X" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
528 VIDEO_SUBDIRS="$VIDEO_SUBDIRS nanox" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
529 VIDEO_DRIVERS="$VIDEO_DRIVERS nanox/libvideo_nanox.la" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
530 fi |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
531 } |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
532 |
0 | 533 dnl Find the X11 include and library directories |
534 CheckX11() | |
535 { | |
536 AC_ARG_ENABLE(video-x11, | |
537 [ --enable-video-x11 use X11 video driver [default=yes]], | |
538 , enable_video_x11=yes) | |
539 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then | |
540 AC_PATH_X | |
541 AC_PATH_XTRA | |
542 if test x$have_x = xyes; then | |
318
0910a3034576
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
302
diff
changeset
|
543 CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_X11 -Iinclude -Isrc/video" |
0 | 544 if test x$ac_cv_func_shmat != xyes; then |
545 CFLAGS="$CFLAGS -DNO_SHARED_MEMORY" | |
546 fi | |
547 SYSTEM_LIBS="$SYSTEM_LIBS $X_LIBS -lX11 -lXext" | |
548 VIDEO_SUBDIRS="$VIDEO_SUBDIRS x11" | |
549 VIDEO_DRIVERS="$VIDEO_DRIVERS x11/libvideo_x11.la" | |
550 | |
551 AC_ARG_ENABLE(video-x11-vm, | |
552 [ --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]], | |
553 , enable_video_x11_vm=yes) | |
554 if test x$enable_video_x11_vm = xyes; then | |
555 AC_MSG_CHECKING(for XFree86 VidMode 1.0 support) | |
556 video_x11_vm=no | |
557 AC_TRY_COMPILE([ | |
558 #include <X11/Xlib.h> | |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
559 #include <XFree86/extensions/xf86vmode.h> |
0 | 560 ],[ |
561 ],[ | |
562 video_x11_vm=yes | |
563 ]) | |
564 AC_MSG_RESULT($video_x11_vm) | |
565 if test x$video_x11_vm = xyes; then | |
566 CFLAGS="$CFLAGS -DXFREE86_VM" | |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
567 VIDEO_SUBDIRS="$VIDEO_SUBDIRS XFree86/Xxf86vm" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
568 VIDEO_DRIVERS="$VIDEO_DRIVERS XFree86/Xxf86vm/libXFree86_Xxf86vm.la" |
0 | 569 AC_MSG_CHECKING(for XFree86 VidMode gamma support) |
570 video_x11_vmgamma=no | |
571 AC_TRY_COMPILE([ | |
572 #include <X11/Xlib.h> | |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
573 #include <XFree86/extensions/xf86vmode.h> |
0 | 574 ],[ |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
575 SDL_NAME(XF86VidModeGamma) gamma; |
0 | 576 ],[ |
577 video_x11_vmgamma=yes | |
578 ]) | |
579 AC_MSG_RESULT($video_x11_vmgamma) | |
580 if test x$video_x11_vmgamma = xyes; then | |
581 CFLAGS="$CFLAGS -DXFREE86_VMGAMMA" | |
582 fi | |
583 fi | |
584 fi | |
16
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
585 AC_ARG_ENABLE(dga, |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
586 [ --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
|
587 , enable_dga=yes) |
0 | 588 AC_ARG_ENABLE(video-x11-dgamouse, |
589 [ --enable-video-x11-dgamouse use X11 DGA for mouse events [default=yes]], | |
590 , 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
|
591 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
|
592 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
|
593 video_x11_dga=no |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
594 AC_TRY_COMPILE([ |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
595 #include <X11/Xlib.h> |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
596 #include <XFree86/extensions/xf86dga.h> |
16
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
597 ],[ |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
598 ],[ |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
599 video_x11_dga=yes |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
600 ]) |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
601 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
|
602 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
|
603 CFLAGS="$CFLAGS -DXFREE86_DGAMOUSE" |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
604 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
|
605 CFLAGS="$CFLAGS -DDEFAULT_DGAMOUSE" |
735e5a8696d0
Added --disable-dga configure option to disable DGA entirely
Sam Lantinga <slouken@lokigames.com>
parents:
1
diff
changeset
|
606 fi |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
607 VIDEO_SUBDIRS="$VIDEO_SUBDIRS XFree86/Xxf86dga" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
608 VIDEO_DRIVERS="$VIDEO_DRIVERS XFree86/Xxf86dga/libXFree86_Xxf86dga.la" |
0 | 609 fi |
610 fi | |
611 AC_ARG_ENABLE(video-x11-xv, | |
612 [ --enable-video-x11-xv use X11 XvImage extension for video [default=yes]], | |
613 , enable_video_x11_xv=yes) | |
614 if test x$enable_video_x11_xv = xyes; then | |
615 AC_MSG_CHECKING(for XFree86 XvImage support) | |
616 video_x11_xv=no | |
617 AC_TRY_COMPILE([ | |
618 #include <X11/Xlib.h> | |
619 #include <sys/ipc.h> | |
620 #include <sys/shm.h> | |
621 #include <X11/extensions/XShm.h> | |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
622 #include <XFree86/extensions/Xvlib.h> |
0 | 623 ],[ |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
624 SDL_NAME(XvImage) *image; |
0 | 625 ],[ |
626 video_x11_xv=yes | |
627 ]) | |
628 AC_MSG_RESULT($video_x11_xv) | |
629 if test x$video_x11_xv = xyes; then | |
630 CFLAGS="$CFLAGS -DXFREE86_XV" | |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
631 VIDEO_SUBDIRS="$VIDEO_SUBDIRS XFree86/Xv" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
632 VIDEO_DRIVERS="$VIDEO_DRIVERS XFree86/Xv/libXFree86_Xv.la" |
0 | 633 fi |
634 fi | |
227
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
635 AC_ARG_ENABLE(video-x11-xinerama, |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
636 [ --enable-video-x11-xinerama enable X11 Xinerama support [default=yes]], |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
637 , enable_video_x11_xinerama=yes) |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
638 if test x$enable_video_x11_xinerama = xyes; then |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
639 AC_MSG_CHECKING(for X11 Xinerama support) |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
640 video_x11_xinerama=no |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
641 AC_TRY_COMPILE([ |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
642 #include <X11/Xlib.h> |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
643 #include <XFree86/extensions/Xinerama.h> |
227
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
644 ],[ |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
645 SDL_NAME(XineramaScreenInfo) *xinerama; |
227
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
646 ],[ |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
647 video_x11_xinerama=yes |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
648 ]) |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
649 AC_MSG_RESULT($video_x11_xinerama) |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
650 if test x$video_x11_xinerama = xyes; then |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
651 CFLAGS="$CFLAGS -DHAVE_XINERAMA" |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
652 VIDEO_SUBDIRS="$VIDEO_SUBDIRS XFree86/Xinerama" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
653 VIDEO_DRIVERS="$VIDEO_DRIVERS XFree86/Xinerama/libXFree86_Xinerama.la" |
227
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
654 fi |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
655 fi |
242
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
656 AC_ARG_ENABLE(video-x11-xme, |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
657 [ --enable-video-x11-xme enable Xi Graphics XME for fullscreen [default=yes]], |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
658 , enable_video_x11_xme=yes) |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
659 if test x$enable_video_x11_xme = xyes; then |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
660 AC_MSG_CHECKING(for Xi Graphics XiGMiscExtension support) |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
661 video_x11_xme=no |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
662 AC_TRY_COMPILE([ |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
663 #include <X11/Xlib.h> |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
664 #include <X11/extensions/xme.h> |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
665 ],[ |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
666 XiGMiscResolutionInfo *resolutions; |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
667 ],[ |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
668 video_x11_xme=yes |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
669 ]) |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
670 AC_MSG_RESULT($video_x11_xme) |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
671 if test x$video_x11_xme = xyes; then |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
672 CFLAGS="$CFLAGS -DHAVE_XIGXME" |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
673 SYSTEM_LIBS="$SYSTEM_LIBS -lxme" |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
674 fi |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
675 fi |
0 | 676 fi |
677 fi | |
678 } | |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
679 |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
680 dnl Find the X11 DGA 2.0 include and library directories |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
681 CheckDGA() |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
682 { |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
683 AC_ARG_ENABLE(video-dga, |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
684 [ --enable-video-dga use DGA 2.0 video driver [default=yes]], |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
685 , enable_video_dga=yes) |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
686 if test x$video_x11_dga = xyes -a x$enable_video_dga = xyes; then |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
687 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -Isrc/video" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
688 AC_MSG_CHECKING(for XFree86 DGA 2.0 support) |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
689 video_x11_dga2=no |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
690 AC_TRY_COMPILE([ |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
691 #include <X11/Xlib.h> |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
692 #include <XFree86/extensions/xf86dga.h> |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
693 ],[ |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
694 SDL_NAME(XDGAEvent) xevent; |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
695 ],[ |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
696 video_x11_dga2=yes |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
697 ]) |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
698 AC_MSG_RESULT($video_x11_dga2) |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
699 if test x$video_x11_dga2 = xyes; then |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
700 CFLAGS="$CFLAGS -DENABLE_DGA" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
701 VIDEO_SUBDIRS="$VIDEO_SUBDIRS dga" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
702 VIDEO_DRIVERS="$VIDEO_DRIVERS dga/libvideo_dga.la" |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
703 fi |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
704 fi |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
705 } |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
706 |
0 | 707 CheckPHOTON() |
708 { | |
709 AC_ARG_ENABLE(video-photon, | |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
710 [ --enable-video-photon use QNX Photon video driver [default=yes]], |
0 | 711 , enable_video_photon=yes) |
712 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then | |
713 AC_MSG_CHECKING(for QNX Photon support) | |
714 video_photon=no | |
715 AC_TRY_COMPILE([ | |
716 #include <Ph.h> | |
717 #include <Pt.h> | |
718 #include <photon/Pg.h> | |
719 #include <photon/PdDirect.h> | |
720 ],[ | |
721 PgDisplaySettings_t *visual; | |
722 ],[ | |
723 video_photon=yes | |
724 ]) | |
725 AC_MSG_RESULT($video_photon) | |
726 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
|
727 CFLAGS="$CFLAGS -DENABLE_PHOTON" |
0 | 728 SYSTEM_LIBS="$SYSTEM_LIBS -lph" |
729 VIDEO_SUBDIRS="$VIDEO_SUBDIRS photon" | |
730 VIDEO_DRIVERS="$VIDEO_DRIVERS photon/libvideo_photon.la" | |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
731 CheckOpenGLQNX |
0 | 732 fi |
733 fi | |
734 } | |
735 | |
736 dnl Find the framebuffer console includes | |
737 CheckFBCON() | |
738 { | |
739 AC_ARG_ENABLE(video-fbcon, | |
740 [ --enable-video-fbcon use framebuffer console video driver [default=yes]], | |
741 , enable_video_fbcon=yes) | |
742 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then | |
743 AC_MSG_CHECKING(for framebuffer console support) | |
744 video_fbcon=no | |
745 AC_TRY_COMPILE([ | |
746 #include <linux/fb.h> | |
747 #include <linux/kd.h> | |
748 #include <linux/keyboard.h> | |
749 ],[ | |
750 ],[ | |
751 video_fbcon=yes | |
752 ]) | |
753 AC_MSG_RESULT($video_fbcon) | |
754 if test x$video_fbcon = xyes; then | |
755 CFLAGS="$CFLAGS -DENABLE_FBCON" | |
756 VIDEO_SUBDIRS="$VIDEO_SUBDIRS fbcon" | |
757 VIDEO_DRIVERS="$VIDEO_DRIVERS fbcon/libvideo_fbcon.la" | |
758 fi | |
759 fi | |
760 } | |
761 | |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
762 dnl Find DirectFB |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
763 CheckDirectFB() |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
764 { |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
765 AC_ARG_ENABLE(video-directfb, |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
766 [ --enable-video-directfb use DirectFB video driver [default=yes]], |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
767 , enable_video_directfb=yes) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
768 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
769 video_directfb=no |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
770 |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
771 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
772 if test x$PKG_CONFIG = xno ; then |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
773 AC_MSG_WARN([*** pkg-config is required to build the DirectFB video driver.]) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
774 else |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
775 AC_MSG_CHECKING(for DirectFB support) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
776 |
222
0a98dba2c700
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
219
diff
changeset
|
777 if ! $PKG_CONFIG --atleast-pkgconfig-version 0.5 ; then |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
778 AC_MSG_ERROR([*** pkg-config too old; version 0.5 or better required.]) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
779 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
780 |
286
3ea69fd0b095
Updated for DirectFB 0.9.9
Sam Lantinga <slouken@libsdl.org>
parents:
281
diff
changeset
|
781 DIRECTFB_REQUIRED_VERSION=0.9.9 |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
782 |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
783 if $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
784 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
785 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb` |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
786 video_directfb=yes |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
787 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
788 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
789 |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
790 AC_MSG_RESULT($video_directfb) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
791 if test x$video_directfb = xyes; then |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
792 CFLAGS="$CFLAGS -DENABLE_DIRECTFB" |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
793 VIDEO_SUBDIRS="$VIDEO_SUBDIRS directfb" |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
794 VIDEO_DRIVERS="$VIDEO_DRIVERS directfb/libvideo_directfb.la" |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
795 |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
796 AC_SUBST(DIRECTFB_CFLAGS) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
797 AC_SUBST(DIRECTFB_LIBS) |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
798 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
799 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
800 } |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
801 |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
802 dnl See if we're running on PlayStation 2 hardware |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
803 CheckPS2GS() |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
804 { |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
805 AC_ARG_ENABLE(video-ps2gs, |
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
806 [ --enable-video-ps2gs use PlayStation 2 GS video driver [default=yes]], |
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
807 , enable_video_ps2gs=yes) |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
808 if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
809 AC_MSG_CHECKING(for PlayStation 2 GS support) |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
810 video_ps2gs=no |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
811 AC_TRY_COMPILE([ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
812 #include <linux/ps2/dev.h> |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
813 #include <linux/ps2/gs.h> |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
814 ],[ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
815 ],[ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
816 video_ps2gs=yes |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
817 ]) |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
818 AC_MSG_RESULT($video_ps2gs) |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
819 if test x$video_ps2gs = xyes; then |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
820 CFLAGS="$CFLAGS -DENABLE_PS2GS" |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
821 VIDEO_SUBDIRS="$VIDEO_SUBDIRS ps2gs" |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
822 VIDEO_DRIVERS="$VIDEO_DRIVERS ps2gs/libvideo_ps2gs.la" |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
823 fi |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
824 fi |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
825 } |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
826 |
0 | 827 dnl Find the GGI includes |
828 CheckGGI() | |
829 { | |
830 AC_ARG_ENABLE(video-ggi, | |
831 [ --enable-video-ggi use GGI video driver [default=no]], | |
832 , enable_video_ggi=no) | |
833 if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then | |
834 AC_MSG_CHECKING(for GGI support) | |
835 video_ggi=no | |
836 AC_TRY_COMPILE([ | |
837 #include <ggi/ggi.h> | |
838 #include <ggi/gii.h> | |
839 ],[ | |
840 ],[ | |
841 video_ggi=yes | |
842 ]) | |
843 AC_MSG_RESULT($video_ggi) | |
844 if test x$video_ggi = xyes; then | |
845 CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_GGI" | |
846 SYSTEM_LIBS="$SYSTEM_LIBS -lggi -lgii -lgg" | |
847 | |
848 VIDEO_SUBDIRS="$VIDEO_SUBDIRS ggi" | |
849 VIDEO_DRIVERS="$VIDEO_DRIVERS ggi/libvideo_ggi.la" | |
850 fi | |
851 fi | |
852 } | |
853 | |
854 dnl Find the SVGAlib includes and libraries | |
855 CheckSVGA() | |
856 { | |
857 AC_ARG_ENABLE(video-svga, | |
858 [ --enable-video-svga use SVGAlib video driver [default=no]], | |
859 , enable_video_svga=no) | |
860 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then | |
861 AC_MSG_CHECKING(for SVGAlib (1.4.0+) support) | |
862 video_svga=no | |
863 AC_TRY_COMPILE([ | |
864 #include <vga.h> | |
865 #include <vgamouse.h> | |
866 #include <vgakeyboard.h> | |
867 ],[ | |
868 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) { | |
869 exit(0); | |
870 } | |
871 ],[ | |
872 video_svga=yes | |
873 ]) | |
874 AC_MSG_RESULT($video_svga) | |
875 if test x$video_svga = xyes; then | |
876 CFLAGS="$CFLAGS -DENABLE_SVGALIB" | |
877 SYSTEM_LIBS="$SYSTEM_LIBS -lvga" | |
878 | |
879 VIDEO_SUBDIRS="$VIDEO_SUBDIRS svga" | |
880 VIDEO_DRIVERS="$VIDEO_DRIVERS svga/libvideo_svga.la" | |
881 fi | |
882 fi | |
883 } | |
884 | |
75
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
885 dnl Find the VGL includes and libraries |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
886 CheckVGL() |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
887 { |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
888 AC_ARG_ENABLE(video-vgl, |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
889 [ --enable-video-vgl use VGL video driver [default=no]], |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
890 , enable_video_vgl=no) |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
891 if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
892 AC_MSG_CHECKING(for libVGL support) |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
893 video_vgl=no |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
894 AC_TRY_COMPILE([ |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
895 #include <sys/fbio.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
896 #include <sys/consio.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
897 #include <sys/kbio.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
898 #include <vgl.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
899 ],[ |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
900 VGLBitmap bitmap; |
144
1cfa4282f2eb
Fixed VGL detection on FreeBSD (thanks David!)
Sam Lantinga <slouken@libsdl.org>
parents:
129
diff
changeset
|
901 exit(bitmap.Bitmap); |
75
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
902 ],[ |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
903 video_vgl=yes |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
904 ]) |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
905 AC_MSG_RESULT($video_vgl) |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
906 if test x$video_vgl = xyes; then |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
907 CFLAGS="$CFLAGS -DENABLE_VGL" |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
908 SYSTEM_LIBS="$SYSTEM_LIBS -lvgl" |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
909 |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
910 VIDEO_SUBDIRS="$VIDEO_SUBDIRS vgl" |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
911 VIDEO_DRIVERS="$VIDEO_DRIVERS vgl/libvideo_vgl.la" |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
912 fi |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
913 fi |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
914 } |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
915 |
0 | 916 dnl Find the AAlib includes |
917 CheckAAlib() | |
918 { | |
919 AC_ARG_ENABLE(video-aalib, | |
920 [ --enable-video-aalib use AAlib video driver [default=no]], | |
921 , enable_video_aalib=no) | |
922 if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then | |
923 AC_MSG_CHECKING(for AAlib support) | |
924 video_aalib=no | |
925 AC_TRY_COMPILE([ | |
926 #include <aalib.h> | |
927 ],[ | |
928 ],[ | |
929 video_aalib=yes | |
930 ]) | |
931 AC_MSG_RESULT($video_aalib) | |
932 if test x$video_aalib = xyes; then | |
933 CFLAGS="$CFLAGS -DENABLE_AALIB" | |
934 SYSTEM_LIBS="$SYSTEM_LIBS -laa" | |
935 | |
936 VIDEO_SUBDIRS="$VIDEO_SUBDIRS aalib" | |
937 VIDEO_DRIVERS="$VIDEO_DRIVERS aalib/libvideo_aa.la" | |
938 fi | |
939 fi | |
940 } | |
941 | |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
942 dnl Set up the Atari Xbios driver |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
943 CheckAtariXbiosVideo() |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
944 { |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
945 AC_ARG_ENABLE(xbios, |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
946 [ --enable-video-xbios use Atari Xbios video driver [default=yes]], |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
947 , enable_video_xbios=yes) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
948 video_xbios=no |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
949 if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
950 video_xbios=yes |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
951 CFLAGS="$CFLAGS -DENABLE_XBIOS" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
952 VIDEO_SUBDIRS="$VIDEO_SUBDIRS xbios" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
953 VIDEO_DRIVERS="$VIDEO_DRIVERS xbios/libvideo_xbios.la" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
954 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
955 } |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
956 |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
957 dnl Set up the Atari Gem driver |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
958 CheckAtariGemVideo() |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
959 { |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
960 AC_ARG_ENABLE(gem, |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
961 [ --enable-video-gem use Atari Gem video driver [default=yes]], |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
962 , enable_video_gem=yes) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
963 if test x$enable_video = xyes -a x$enable_video_gem = xyes; then |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
964 video_gem=no |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
965 AC_CHECK_HEADER(gem.h, have_gem_hdr=yes) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
966 AC_CHECK_LIB(gem, appl_init, have_gem_lib=yes) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
967 if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
968 video_gem=yes |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
969 CFLAGS="$CFLAGS -DENABLE_GEM" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
970 SYSTEM_LIBS="$SYSTEM_LIBS -lgem" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
971 VIDEO_SUBDIRS="$VIDEO_SUBDIRS gem" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
972 VIDEO_DRIVERS="$VIDEO_DRIVERS gem/libvideo_gem.la" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
973 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
974 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
975 } |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
976 |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
977 dnl Set up the Atari Bios keyboard driver |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
978 CheckAtariBiosEvent() |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
979 { |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
980 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video/ataricommon" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
981 VIDEO_SUBDIRS="$VIDEO_SUBDIRS ataricommon" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
982 VIDEO_DRIVERS="$VIDEO_DRIVERS ataricommon/libvideo_ataricommon.la" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
983 } |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
984 |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
985 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
|
986 CheckDummyVideo() |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
987 { |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
988 AC_ARG_ENABLE(video-dummy, |
86
13e4c612098d
Dummy audio and video drivers are enabled (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
76
diff
changeset
|
989 [ --enable-video-dummy use dummy video driver [default=yes]], |
13e4c612098d
Dummy audio and video drivers are enabled (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
76
diff
changeset
|
990 , enable_video_dummy=yes) |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
991 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
|
992 CFLAGS="$CFLAGS -DENABLE_DUMMYVIDEO" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
993 VIDEO_SUBDIRS="$VIDEO_SUBDIRS dummy" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
994 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
|
995 fi |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
996 } |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
997 |
0 | 998 dnl Check to see if OpenGL support is desired |
999 AC_ARG_ENABLE(video-opengl, | |
1000 [ --enable-video-opengl include OpenGL context creation [default=yes]], | |
1001 , enable_video_opengl=yes) | |
1002 | |
1003 dnl Find OpenGL | |
1004 CheckOpenGL() | |
1005 { | |
1006 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
1007 AC_MSG_CHECKING(for OpenGL (GLX) support) | |
1008 video_opengl=no | |
1009 AC_TRY_COMPILE([ | |
1010 #include <GL/gl.h> | |
1011 #include <GL/glx.h> | |
1012 #include <dlfcn.h> /* For loading extensions */ | |
1013 ],[ | |
1014 ],[ | |
1015 video_opengl=yes | |
1016 ]) | |
1017 AC_MSG_RESULT($video_opengl) | |
1018 if test x$video_opengl = xyes; then | |
1019 CFLAGS="$CFLAGS -DHAVE_OPENGL" | |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
1020 if test x$use_dlopen != xyes; then |
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
1021 AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl") |
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
1022 fi |
0 | 1023 fi |
1024 fi | |
1025 } | |
1026 | |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1027 dnl Find QNX RtP OpenGL |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1028 CheckOpenGLQNX() |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1029 { |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1030 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1031 AC_MSG_CHECKING(for OpenGL (Photon) support) |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1032 video_opengl=no |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1033 AC_TRY_COMPILE([ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1034 #include <GL/gl.h> |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1035 ],[ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1036 ],[ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1037 video_opengl=yes |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1038 ]) |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1039 AC_MSG_RESULT($video_opengl) |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1040 if test x$video_opengl = xyes; then |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1041 CFLAGS="$CFLAGS -DHAVE_OPENGL" |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1042 SYSTEM_LIBS="$SYSTEM_LIBS -lGL" |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1043 fi |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1044 fi |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1045 } |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1046 |
0 | 1047 dnl Check for BeOS OpenGL |
1048 CheckBeGL() | |
1049 { | |
1050 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
1051 CFLAGS="$CFLAGS -DHAVE_OPENGL" | |
1052 SYSTEM_LIBS="$SYSTEM_LIBS -lGL" | |
1053 fi | |
1054 } | |
1055 | |
1056 dnl Check for MacOS OpenGL | |
1057 CheckMacGL() | |
1058 { | |
1059 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
1060 CFLAGS="$CFLAGS -DHAVE_OPENGL" | |
1061 case "$target" in | |
1062 *-*-darwin*) | |
1063 SDL_LIBS="$SDL_LIBS -framework OpenGL -framework AGL" | |
1064 esac | |
1065 fi | |
1066 } | |
1067 | |
1068 dnl See if we can use the new unified event interface in Linux 2.4 | |
1069 CheckInputEvents() | |
1070 { | |
1071 dnl Check for Linux 2.4 unified input event interface support | |
1072 AC_ARG_ENABLE(input-events, | |
211
0cc95f442f3a
If we're looking at the /dev/input event devices, and we found
Sam Lantinga <slouken@libsdl.org>
parents:
200
diff
changeset
|
1073 [ --enable-input-events use Linux 2.4 unified input interface [default=yes]], |
0cc95f442f3a
If we're looking at the /dev/input event devices, and we found
Sam Lantinga <slouken@libsdl.org>
parents:
200
diff
changeset
|
1074 , enable_input_events=yes) |
0 | 1075 if test x$enable_input_events = xyes; then |
1076 AC_MSG_CHECKING(for Linux 2.4 unified input interface) | |
1077 use_input_events=no | |
1078 AC_TRY_COMPILE([ | |
1079 #include <linux/input.h> | |
1080 ],[ | |
1081 #ifndef EVIOCGNAME | |
1082 #error EVIOCGNAME() ioctl not available | |
1083 #endif | |
1084 ],[ | |
1085 use_input_events=yes | |
1086 ]) | |
1087 AC_MSG_RESULT($use_input_events) | |
1088 if test x$use_input_events = xyes; then | |
1089 CFLAGS="$CFLAGS -DUSE_INPUT_EVENTS" | |
1090 fi | |
1091 fi | |
1092 } | |
1093 | |
1094 dnl See what type of thread model to use on Linux and Solaris | |
1095 CheckPTHREAD() | |
1096 { | |
1097 dnl Check for pthread support | |
1098 AC_ARG_ENABLE(pthreads, | |
1099 [ --enable-pthreads use POSIX threads for multi-threading [default=yes]], | |
1100 , enable_pthreads=yes) | |
1101 dnl This is used on Linux for glibc binary compatibility (Doh!) | |
1102 AC_ARG_ENABLE(pthread-sem, | |
86
13e4c612098d
Dummy audio and video drivers are enabled (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
76
diff
changeset
|
1103 [ --enable-pthread-sem use pthread semaphores [default=yes]], |
0 | 1104 , enable_pthread_sem=yes) |
1105 ac_save_libs="$LIBS" | |
1106 case "$target" in | |
1107 *-*-bsdi*) | |
1108 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
1109 pthread_lib="" | |
1110 ;; | |
1111 *-*-darwin*) | |
1112 pthread_cflags="-D_THREAD_SAFE" | |
1113 # causes Carbon.p complaints? | |
1114 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
1115 ;; | |
1116 *-*-freebsd*) | |
1117 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
1118 pthread_lib="-pthread" | |
1119 ;; | |
43
8cc154626be9
I found the pthread package for NetBSD
Sam Lantinga <slouken@lokigames.com>
parents:
42
diff
changeset
|
1120 *-*-netbsd*) |
8cc154626be9
I found the pthread package for NetBSD
Sam Lantinga <slouken@lokigames.com>
parents:
42
diff
changeset
|
1121 pthread_cflags="-I/usr/pkg/include -D_REENTRANT" |
8cc154626be9
I found the pthread package for NetBSD
Sam Lantinga <slouken@lokigames.com>
parents:
42
diff
changeset
|
1122 pthread_lib="-L/usr/pkg/lib -lpthread -lsem" |
8cc154626be9
I found the pthread package for NetBSD
Sam Lantinga <slouken@lokigames.com>
parents:
42
diff
changeset
|
1123 ;; |
0 | 1124 *-*-openbsd*) |
1125 pthread_cflags="-D_REENTRANT" | |
1126 pthread_lib="-pthread" | |
1127 ;; | |
1128 *-*-solaris*) | |
1129 pthread_cflags="-D_REENTRANT" | |
1130 pthread_lib="-lpthread -lposix4" | |
1131 ;; | |
1132 *-*-sysv5*) | |
1133 pthread_cflags="-D_REENTRANT -Kthread" | |
1134 pthread_lib="" | |
1135 ;; | |
1136 *-*-irix*) | |
1137 pthread_cflags="-D_SGI_MP_SOURCE" | |
1138 pthread_lib="-lpthread" | |
1139 ;; | |
1140 *-*-aix*) | |
1141 pthread_cflags="-D_REENTRANT -mthreads" | |
1142 pthread_lib="-lpthread" | |
1143 ;; | |
1144 *-*-qnx*) | |
1145 pthread_cflags="" | |
1146 pthread_lib="" | |
1147 ;; | |
1148 *) | |
1149 pthread_cflags="-D_REENTRANT" | |
1150 pthread_lib="-lpthread" | |
1151 ;; | |
1152 esac | |
1153 LIBS="$LIBS $pthread_lib" | |
1154 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then | |
1155 AC_MSG_CHECKING(for pthreads) | |
1156 use_pthreads=no | |
1157 AC_TRY_LINK([ | |
1158 #include <pthread.h> | |
1159 ],[ | |
1160 pthread_attr_t type; | |
1161 pthread_attr_init(&type); | |
1162 ],[ | |
1163 use_pthreads=yes | |
1164 ]) | |
1165 AC_MSG_RESULT($use_pthreads) | |
1166 if test x$use_pthreads = xyes; then | |
1167 CFLAGS="$CFLAGS $pthread_cflags -DSDL_USE_PTHREADS" | |
1168 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags" | |
1169 SDL_LIBS="$SDL_LIBS $pthread_lib" | |
1170 | |
1171 # Check to see if recursive mutexes are available | |
1172 AC_MSG_CHECKING(for recursive mutexes) | |
1173 has_recursive_mutexes=no | |
1174 AC_TRY_LINK([ | |
1175 #include <pthread.h> | |
1176 ],[ | |
1177 pthread_mutexattr_t attr; | |
1178 #ifdef linux | |
1179 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); | |
1180 #else | |
1181 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
1182 #endif | |
1183 ],[ | |
1184 has_recursive_mutexes=yes | |
1185 ]) | |
1186 # Some systems have broken recursive mutex implementations | |
1187 case "$target" in | |
1188 *-*-solaris*) | |
1189 has_recursive_mutexes=no | |
1190 ;; | |
1191 esac | |
1192 AC_MSG_RESULT($has_recursive_mutexes) | |
1193 if test x$has_recursive_mutexes != xyes; then | |
1194 CFLAGS="$CFLAGS -DPTHREAD_NO_RECURSIVE_MUTEX" | |
1195 fi | |
1196 | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1197 # Check to see if pthread semaphore support is missing |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1198 if test x$enable_pthread_sem = xyes; then |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1199 AC_MSG_CHECKING(for pthread semaphores) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1200 have_pthread_sem=no |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1201 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1202 #include <pthread.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1203 #include <semaphore.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1204 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1205 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1206 have_pthread_sem=yes |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1207 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1208 AC_MSG_RESULT($have_pthread_sem) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1209 fi |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1210 |
0 | 1211 # Check to see if this is broken glibc 2.0 pthreads |
1212 case "$target" in | |
1213 *-*-linux*) | |
1214 AC_MSG_CHECKING(for broken glibc 2.0 pthreads) | |
1215 glibc20_pthreads=no | |
1216 AC_TRY_COMPILE([ | |
1217 #include <features.h> | |
1218 #if (__GLIBC__ == 2) && (__GLIBC_MINOR__ == 0) | |
1219 #warning Working around a bug in glibc 2.0 pthreads | |
1220 #else | |
1221 #error pthread implementation okay | |
1222 #endif /* glibc 2.0 */ | |
1223 ],[ | |
1224 ],[ | |
1225 glibc20_pthreads=yes | |
1226 ]) | |
1227 AC_MSG_RESULT($glibc20_pthreads) | |
1228 esac | |
1229 fi | |
1230 fi | |
1231 LIBS="$ac_save_libs" | |
1232 | |
1233 AC_MSG_CHECKING(whether semun is defined in /usr/include/sys/sem.h) | |
1234 have_semun=no | |
1235 AC_TRY_COMPILE([ | |
1236 #include <sys/types.h> | |
1237 #include <sys/sem.h> | |
1238 ],[ | |
1239 union semun t; | |
1240 ],[ | |
1241 have_semun=yes | |
1242 ]) | |
1243 AC_MSG_RESULT($have_semun) | |
1244 if test x$have_semun = xyes; then | |
1245 CFLAGS="$CFLAGS -DHAVE_SEMUN" | |
1246 fi | |
1247 | |
1248 # See if we can use clone() on Linux directly | |
1249 use_clone=no | |
1250 if test x$enable_threads = xyes -a x$use_pthreads != xyes; then | |
1251 case "$target" in | |
1252 *-*-linux*) | |
1253 use_clone=yes | |
1254 ;; | |
1255 *) | |
1256 CFLAGS="$CFLAGS -DFORK_HACK" | |
1257 ;; | |
1258 esac | |
1259 fi | |
1260 AM_CONDITIONAL(USE_CLONE, test x$use_clone = xyes) | |
1261 } | |
1262 | |
185
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1263 dnl See if we can use GNU pth library for threads |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1264 CheckPTH() |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1265 { |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1266 dnl Check for pth support |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1267 AC_ARG_ENABLE(pth, |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1268 [ --enable-pth use GNU pth library for multi-threading [default=yes]], |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1269 , enable_pth=yes) |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1270 if test x$enable_threads = xyes -a x$enable_pth = xyes; then |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1271 AC_PATH_PROG(PTH_CONFIG, pth-config, no) |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1272 if test "$PTH_CONFIG" = "no"; then |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1273 use_pth=no |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1274 else |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1275 PTH_CFLAGS=`$PTH_CONFIG --cflags` |
321
af42e7c4c860
Fixes for GNU pthreads from Patrice
Sam Lantinga <slouken@libsdl.org>
parents:
318
diff
changeset
|
1276 PTH_LIBS=`$PTH_CONFIG --libs --all` |
185
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1277 SDL_CFLAGS="$SDL_CFLAGS $PTH_CFLAGS" |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1278 SDL_LIBS="$SDL_LIBS $PTH_LIBS" |
329
1d74ddc90cb2
Patrice's fixes for GNU Pthread support
Sam Lantinga <slouken@libsdl.org>
parents:
321
diff
changeset
|
1279 CFLAGS="$CFLAGS -DENABLE_PTH" |
185
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1280 use_pth=yes |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1281 fi |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1282 AC_MSG_CHECKING(pth) |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1283 if test "x$use_pth" = xyes; then |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1284 AC_MSG_RESULT(yes) |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1285 else |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1286 AC_MSG_RESULT(no) |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1287 fi |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1288 fi |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1289 } |
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1290 |
0 | 1291 dnl Determine whether the compiler can produce Win32 executables |
1292 CheckWIN32() | |
1293 { | |
1294 AC_MSG_CHECKING(Win32 compiler) | |
1295 have_win32_gcc=no | |
1296 AC_TRY_COMPILE([ | |
1297 #include <windows.h> | |
1298 ],[ | |
1299 ],[ | |
1300 have_win32_gcc=yes | |
1301 ]) | |
1302 AC_MSG_RESULT($have_win32_gcc) | |
1303 if test x$have_win32_gcc != xyes; then | |
1304 AC_MSG_ERROR([ | |
1305 *** Your compiler ($CC) does not produce Win32 executables! | |
1306 ]) | |
1307 fi | |
1308 | |
1309 dnl See if the user wants to redirect standard output to files | |
1310 AC_ARG_ENABLE(stdio-redirect, | |
1311 [ --enable-stdio-redirect Redirect STDIO to files on Win32 [default=yes]], | |
1312 , enable_stdio_redirect=yes) | |
1313 if test x$enable_stdio_redirect != xyes; then | |
1314 CFLAGS="$CFLAGS -DNO_STDIO_REDIRECT" | |
1315 fi | |
1316 } | |
1317 | |
1318 dnl Find the DirectX includes and libraries | |
1319 CheckDIRECTX() | |
1320 { | |
1321 AC_ARG_ENABLE(directx, | |
1322 [ --enable-directx use DirectX for Win32 audio/video [default=yes]], | |
1323 , enable_directx=yes) | |
1324 if test x$enable_directx = xyes; then | |
1325 AC_MSG_CHECKING(for DirectX headers and libraries) | |
1326 use_directx=no | |
1327 AC_TRY_COMPILE([ | |
1328 #include "src/video/windx5/directx.h" | |
1329 ],[ | |
1330 ],[ | |
1331 use_directx=yes | |
1332 ]) | |
1333 AC_MSG_RESULT($use_directx) | |
1334 fi | |
1335 AM_CONDITIONAL(USE_DIRECTX, test x$use_directx = xyes) | |
1336 | |
1337 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video/wincommon" | |
1338 SYSTEM_LIBS="$SYSTEM_LIBS -luser32 -lgdi32 -lwinmm" | |
1339 VIDEO_SUBDIRS="$VIDEO_SUBDIRS wincommon" | |
1340 VIDEO_DRIVERS="$VIDEO_DRIVERS wincommon/libvideo_wincommon.la" | |
1341 # Enable the DIB driver | |
1342 CFLAGS="$CFLAGS -DENABLE_WINDIB" | |
1343 VIDEO_SUBDIRS="$VIDEO_SUBDIRS windib" | |
1344 VIDEO_DRIVERS="$VIDEO_DRIVERS windib/libvideo_windib.la" | |
1345 # See if we should enable the DirectX driver | |
1346 if test x$use_directx = xyes; then | |
1347 CFLAGS="$CFLAGS -DENABLE_DIRECTX" | |
1348 SYSTEM_LIBS="$SYSTEM_LIBS -ldxguid" | |
1349 VIDEO_SUBDIRS="$VIDEO_SUBDIRS windx5" | |
1350 VIDEO_DRIVERS="$VIDEO_DRIVERS windx5/libvideo_windx5.la" | |
1351 fi | |
1352 } | |
1353 | |
1354 dnl Set up the BWindow video driver on BeOS | |
1355 CheckBWINDOW() | |
1356 { | |
1357 CFLAGS="$CFLAGS -DENABLE_BWINDOW" | |
1358 VIDEO_SUBDIRS="$VIDEO_SUBDIRS bwindow" | |
1359 VIDEO_DRIVERS="$VIDEO_DRIVERS bwindow/libvideo_bwindow.la" | |
1360 } | |
1361 | |
1362 dnl Set up the Mac toolbox video driver for Mac OS 7-9 | |
1363 CheckTOOLBOX() | |
1364 { | |
1365 VIDEO_SUBDIRS="$VIDEO_SUBDIRS maccommon" | |
1366 VIDEO_DRIVERS="$VIDEO_DRIVERS maccommon/libvideo_maccommon.la" | |
1367 VIDEO_SUBDIRS="$VIDEO_SUBDIRS macrom" | |
1368 VIDEO_DRIVERS="$VIDEO_DRIVERS macrom/libvideo_macrom.la" | |
1369 } | |
1370 | |
1371 dnl Set up the Mac toolbox video driver for Mac OS X | |
1372 CheckCARBON() | |
1373 { | |
1374 # "MACOSX" is not an official definition, but it's commonly | |
1375 # accepted as a way to differentiate between what runs on X | |
1376 # and what runs on older Macs - while in theory "Carbon" defns | |
1377 # are consistent between the two, in practice Carbon is still | |
1378 # changing. -sts Aug 2000 | |
1379 mac_autoconf_target_workaround="MAC" | |
1380 CFLAGS="$CFLAGS -I/System/Library/Frameworks/Carbon.framework/Headers \ | |
1381 -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" | |
1382 VIDEO_SUBDIRS="$VIDEO_SUBDIRS maccommon" | |
1383 VIDEO_DRIVERS="$VIDEO_DRIVERS maccommon/libvideo_maccommon.la" | |
1384 VIDEO_SUBDIRS="$VIDEO_SUBDIRS macrom" | |
1385 VIDEO_DRIVERS="$VIDEO_DRIVERS macrom/libvideo_macrom.la" | |
1386 } | |
1387 | |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1388 dnl Set up the Mac toolbox video driver for Mac OS X |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1389 CheckQUARTZ() |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1390 { |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1391 # "MACOSX" is not an official definition, but it's commonly |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1392 # accepted as a way to differentiate between what runs on X |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1393 # and what runs on older Macs - while in theory "Carbon" defns |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1394 # are consistent between the two, in practice Carbon is still |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1395 # changing. -sts Aug 2000 |
166
39877400bd1e
Fixed Solaris nitpicks (thanks Mattias!)
Sam Lantinga <slouken@libsdl.org>
parents:
158
diff
changeset
|
1396 mac_autoconf_target_workaround="MAC" |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1397 CFLAGS="$CFLAGS -I/System/Library/Frameworks/Carbon.framework/Headers \ |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1398 -I/System/Library/Frameworks/Cocoa.framework/Headers -fpascal-strings \ |
166
39877400bd1e
Fixed Solaris nitpicks (thanks Mattias!)
Sam Lantinga <slouken@libsdl.org>
parents:
158
diff
changeset
|
1399 -DENABLE_QUARTZ -DMACOSX -DTARGET_API_${mac_autoconf_target_workaround}_CARBON=1 -I\$(top_srcdir)/src/video/quartz" |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1400 VIDEO_SUBDIRS="$VIDEO_SUBDIRS quartz" |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1401 VIDEO_DRIVERS="$VIDEO_DRIVERS quartz/libvideo_quartz.la" |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1402 } |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
1403 |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1404 dnl Check for the dlfcn.h interface for dynamically loading objects |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1405 CheckDLOPEN() |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1406 { |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1407 AC_ARG_ENABLE(dlopen, |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
1408 [ --enable-dlopen use dlopen for shared object loading [default=no]], |
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
1409 , enable_dlopen=no) |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1410 if test x$enable_dlopen = xyes; then |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1411 AC_MSG_CHECKING(for dlopen) |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1412 use_dlopen=no |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1413 AC_TRY_COMPILE([ |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1414 #include <dlfcn.h> |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1415 ],[ |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1416 ],[ |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1417 use_dlopen=yes |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1418 ]) |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1419 AC_MSG_RESULT($use_dlopen) |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1420 |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1421 if test x$use_dlopen = xyes; then |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1422 CFLAGS="$CFLAGS -DUSE_DLOPEN" |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
1423 AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl") |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1424 fi |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1425 fi |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1426 } |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1427 |
0 | 1428 case "$target" in |
1429 *-*-linux*) | |
1430 ARCH=linux | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1431 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1432 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1433 CheckDLOPEN |
0 | 1434 CheckNASM |
1435 CheckOSS | |
1436 CheckALSA | |
1437 CheckARTSC | |
1438 CheckESD | |
1439 CheckNAS | |
1440 CheckX11 | |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
1441 CheckNANOX |
0 | 1442 CheckDGA |
1443 CheckFBCON | |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1444 CheckDirectFB |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1445 CheckPS2GS |
0 | 1446 CheckGGI |
1447 CheckSVGA | |
1448 CheckAAlib | |
1449 CheckOpenGL | |
1450 CheckInputEvents | |
1451 CheckPTHREAD | |
1452 # Set up files for the main() stub | |
1453 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
1454 # Set up files for the audio library | |
1455 # We use the OSS and ALSA API's, not the Sun audio API | |
1456 #if test x$enable_audio = xyes; then | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1457 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" |
0 | 1458 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1459 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | |
1460 #fi | |
1461 # Set up files for the joystick library | |
1462 if test x$enable_joystick = xyes; then | |
1463 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS linux" | |
1464 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS linux/libjoystick_linux.la" | |
1465 fi | |
1466 # Set up files for the cdrom library | |
1467 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1468 CDROM_SUBDIRS="$CDROM_SUBDIRS linux" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1469 CDROM_DRIVERS="$CDROM_DRIVERS linux/libcdrom_linux.la" |
0 | 1470 fi |
1471 # Set up files for the thread library | |
1472 if test x$enable_threads = xyes; then | |
1473 if test x$use_pthreads != xyes; then | |
1474 COPY_ARCH_SRC(src/thread, linux, clone.S) | |
1475 fi | |
1476 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
1477 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1478 if test x$use_pthreads = xyes -a x$have_pthread_sem != xyes; then |
0 | 1479 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) |
1480 else | |
1481 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1482 fi | |
1483 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
1484 if test x$glibc20_pthreads = xyes; then | |
1485 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c) | |
1486 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h) | |
1487 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c) | |
1488 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
1489 else | |
1490 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
1491 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
1492 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) | |
1493 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
1494 fi | |
1495 fi | |
1496 # Set up files for the timer library | |
1497 if test x$enable_timers = xyes; then | |
1498 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
1499 fi | |
1500 ;; | |
1501 *-*-bsdi*) | |
1502 ARCH=bsdi | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1503 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1504 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1505 CheckDLOPEN |
0 | 1506 CheckNASM |
1507 CheckOSS | |
35
d3bc792e136d
Added detection of Open Sound System on Solaris x86
Sam Lantinga <slouken@lokigames.com>
parents:
30
diff
changeset
|
1508 CheckARTSC |
d3bc792e136d
Added detection of Open Sound System on Solaris x86
Sam Lantinga <slouken@lokigames.com>
parents:
30
diff
changeset
|
1509 CheckESD |
0 | 1510 CheckNAS |
1511 CheckX11 | |
1512 CheckDGA | |
1513 CheckSVGA | |
1514 CheckAAlib | |
1515 CheckOpenGL | |
1516 CheckPTHREAD | |
1517 # Set up files for the main() stub | |
1518 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1519 # Set up files for the audio library |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1520 # We use the OSS and ALSA API's, not the Sun audio API |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1521 #if test x$enable_audio = xyes; then |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1522 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1523 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1524 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1525 #fi |
0 | 1526 # Set up files for the joystick library |
1527 # (No joystick support yet) | |
1528 if test x$enable_joystick = xyes; then | |
1529 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" | |
1530 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" | |
1531 fi | |
1532 # Set up files for the cdrom library | |
1533 if test x$enable_cdrom = xyes; then | |
178
1fc1a101bf23
Added CD-ROM support for BSD/OS (thanks Steven!)
Sam Lantinga <slouken@libsdl.org>
parents:
174
diff
changeset
|
1534 CDROM_SUBDIRS="$CDROM_SUBDIRS bsdi" |
1fc1a101bf23
Added CD-ROM support for BSD/OS (thanks Steven!)
Sam Lantinga <slouken@libsdl.org>
parents:
174
diff
changeset
|
1535 CDROM_DRIVERS="$CDROM_DRIVERS bsdi/libcdrom_bsdi.la" |
0 | 1536 fi |
1537 # Set up files for the thread library | |
1538 if test x$enable_threads = xyes; then | |
1539 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
1540 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
1541 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
1542 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
191
c151cfc43c07
Changed SDLMain to SDL_main for MacOS X stuff
Sam Lantinga <slouken@libsdl.org>
parents:
185
diff
changeset
|
1543 COPY_ARCH_SRC(src/thread, bsdi, SDL_syssem.c) |
0 | 1544 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) |
1545 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) | |
1546 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
1547 fi | |
1548 # Set up files for the timer library | |
1549 if test x$enable_timers = xyes; then | |
1550 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
1551 fi | |
1552 ;; | |
1553 *-*-freebsd*) | |
1554 ARCH=freebsd | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1555 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1556 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1557 CheckDLOPEN |
129
db0bee1c5845
Applied Maxim's patch for VGL detection on FreeBSD
Sam Lantinga <slouken@libsdl.org>
parents:
126
diff
changeset
|
1558 CheckVGL |
0 | 1559 CheckNASM |
1560 CheckOSS | |
1561 CheckARTSC | |
1562 CheckESD | |
1563 CheckNAS | |
1564 CheckX11 | |
1565 CheckDGA | |
1566 CheckSVGA | |
1567 CheckAAlib | |
1568 CheckOpenGL | |
1569 CheckPTHREAD | |
1570 # Set up files for the main() stub | |
1571 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
1572 # Set up files for the audio library | |
1573 # We use the OSS and ALSA API's, not the Sun audio API | |
1574 #if test x$enable_audio = xyes; then | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1575 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" |
0 | 1576 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1577 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | |
1578 #fi | |
1579 # Set up files for the joystick library | |
1580 if test x$enable_joystick = xyes; then | |
278
dcd9f7b50a1c
Added support for joysticks on *BSD (thanks Wilbern!)
Sam Lantinga <slouken@libsdl.org>
parents:
263
diff
changeset
|
1581 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd" |
dcd9f7b50a1c
Added support for joysticks on *BSD (thanks Wilbern!)
Sam Lantinga <slouken@libsdl.org>
parents:
263
diff
changeset
|
1582 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la" |
0 | 1583 fi |
1584 # Set up files for the cdrom library | |
1585 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1586 CDROM_SUBDIRS="$CDROM_SUBDIRS freebsd" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1587 CDROM_DRIVERS="$CDROM_DRIVERS freebsd/libcdrom_freebsd.la" |
0 | 1588 fi |
1589 # Set up files for the thread library | |
1590 if test x$enable_threads = xyes; then | |
1591 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
1592 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
1593 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
1594 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1595 if test x$use_pthreads = xyes -a x$have_pthread_sem != xyes; then |
0 | 1596 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) |
1597 else | |
1598 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1599 fi | |
1600 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
1601 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) | |
1602 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
1603 fi | |
1604 # Set up files for the timer library | |
1605 if test x$enable_timers = xyes; then | |
1606 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
1607 fi | |
1608 ;; | |
1609 *-*-netbsd*) | |
1610 ARCH=netbsd | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1611 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1612 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1613 CheckDLOPEN |
0 | 1614 CheckNASM |
1615 CheckOSS | |
1616 CheckARTSC | |
1617 CheckESD | |
1618 CheckNAS | |
1619 CheckX11 | |
1620 CheckAAlib | |
1621 CheckOpenGL | |
1622 CheckPTHREAD | |
1623 # Set up files for the main() stub | |
1624 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
1625 # Set up files for the audio library | |
1626 if test x$enable_audio = xyes; then | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1627 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" |
0 | 1628 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1629 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | |
1630 fi | |
1631 # Set up files for the joystick library | |
1632 if test x$enable_joystick = xyes; then | |
278
dcd9f7b50a1c
Added support for joysticks on *BSD (thanks Wilbern!)
Sam Lantinga <slouken@libsdl.org>
parents:
263
diff
changeset
|
1633 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd" |
dcd9f7b50a1c
Added support for joysticks on *BSD (thanks Wilbern!)
Sam Lantinga <slouken@libsdl.org>
parents:
263
diff
changeset
|
1634 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la" |
0 | 1635 fi |
1636 # Set up files for the cdrom library | |
1637 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1638 CDROM_SUBDIRS="$CDROM_SUBDIRS openbsd" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1639 CDROM_DRIVERS="$CDROM_DRIVERS openbsd/libcdrom_openbsd.la" |
0 | 1640 fi |
1641 # Set up files for the thread library | |
1642 if test x$enable_threads = xyes; then | |
1643 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
1644 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
1645 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
1646 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1647 if test x$use_pthreads = xyes -a x$have_pthread_sem != xyes; then |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
1648 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
1649 else |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
1650 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
1651 fi |
0 | 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 # NetBSD does not define "unix" | |
43
8cc154626be9
I found the pthread package for NetBSD
Sam Lantinga <slouken@lokigames.com>
parents:
42
diff
changeset
|
1661 CFLAGS="$CFLAGS -Dunix -D_POSIX_THREAD_SYSCALL_SOFT=1" |
0 | 1662 ;; |
1663 *-*-openbsd*) | |
1664 ARCH=openbsd | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1665 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1666 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1667 CheckDLOPEN |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1668 CheckOPENBSDAUDIO |
0 | 1669 CheckNASM |
1670 CheckOSS | |
1671 CheckARTSC | |
1672 CheckESD | |
1673 CheckNAS | |
1674 CheckX11 | |
1675 CheckAAlib | |
1676 CheckOpenGL | |
1677 CheckPTHREAD | |
1678 # Set up files for the main() stub | |
1679 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
1680 # Set up files for the audio library | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1681 # We use the OSS and native API's, not the Sun audio API |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1682 #if test x$enable_audio = xyes; then |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1683 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1684 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1685 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1686 #fi |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1687 # OpenBSD needs linking with ossaudio emulation library |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1688 if test x$have_oss = xyes; then |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1689 SYSTEM_LIBS="$SYSTEM_LIBS -lossaudio" |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1690 fi |
0 | 1691 # Set up files for the joystick library |
1692 if test x$enable_joystick = xyes; then | |
278
dcd9f7b50a1c
Added support for joysticks on *BSD (thanks Wilbern!)
Sam Lantinga <slouken@libsdl.org>
parents:
263
diff
changeset
|
1693 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd" |
dcd9f7b50a1c
Added support for joysticks on *BSD (thanks Wilbern!)
Sam Lantinga <slouken@libsdl.org>
parents:
263
diff
changeset
|
1694 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la" |
0 | 1695 fi |
1696 # Set up files for the cdrom library | |
1697 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1698 CDROM_SUBDIRS="$CDROM_SUBDIRS openbsd" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1699 CDROM_DRIVERS="$CDROM_DRIVERS openbsd/libcdrom_openbsd.la" |
0 | 1700 fi |
1701 # Set up files for the thread library | |
1702 if test x$enable_threads = xyes; then | |
1703 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
1704 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
1705 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
1706 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1707 if test x$use_pthreads = xyes -a x$have_pthread_sem != xyes; then |
0 | 1708 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) |
1709 else | |
1710 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1711 fi | |
1712 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
1713 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) | |
1714 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
1715 fi | |
1716 # Set up files for the timer library | |
1717 if test x$enable_timers = xyes; then | |
1718 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
1719 fi | |
37
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
1720 # OpenBSD does not define "unix" |
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
1721 CFLAGS="$CFLAGS -Dunix" |
0 | 1722 ;; |
1723 *-*-sysv5*) | |
1724 ARCH=sysv5 | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1725 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1726 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1727 CheckDLOPEN |
0 | 1728 CheckNASM |
1729 CheckOSS | |
1730 CheckARTSC | |
1731 CheckESD | |
1732 CheckNAS | |
1733 CheckX11 | |
1734 CheckAAlib | |
1735 CheckOpenGL | |
1736 CheckPTHREAD | |
1737 # Set up files for the main() stub | |
1738 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
1739 # Set up files for the audio library | |
1740 if test x$enable_audio = xyes; then | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1741 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" |
0 | 1742 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1743 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | |
1744 fi | |
1745 # Set up files for the joystick library | |
1746 # (No joystick support yet) | |
1747 if test x$enable_joystick = xyes; then | |
1748 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" | |
1749 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" | |
1750 fi | |
1751 # Set up files for the cdrom library | |
1752 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1753 CDROM_SUBDIRS="$CDROM_SUBDIRS dummy" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1754 CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la" |
0 | 1755 fi |
1756 # Set up files for the thread library | |
1757 if test x$enable_threads = xyes; then | |
1758 COPY_ARCH_SRC(src/thread, generic, SDL_systhread.c) | |
1759 COPY_ARCH_SRC(src/thread, generic, SDL_systhread_c.h) | |
1760 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c) | |
1761 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h) | |
1762 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) | |
1763 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
1764 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c) | |
1765 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
1766 fi | |
1767 # Set up files for the timer library | |
1768 if test x$enable_timers = xyes; then | |
1769 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
1770 fi | |
1771 ;; | |
1772 *-*-solaris*) | |
1773 ARCH=solaris | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1774 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
|
1775 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1776 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1777 CheckDLOPEN |
0 | 1778 CheckNASM |
35
d3bc792e136d
Added detection of Open Sound System on Solaris x86
Sam Lantinga <slouken@lokigames.com>
parents:
30
diff
changeset
|
1779 CheckOSS |
0 | 1780 CheckARTSC |
1781 CheckESD | |
1782 CheckNAS | |
1783 CheckX11 | |
1784 CheckAAlib | |
1785 CheckOpenGL | |
1786 CheckPTHREAD | |
1787 # Set up files for the main() stub | |
1788 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
1789 # Set up files for the audio library | |
1790 if test x$enable_audio = xyes; then | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1791 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" |
0 | 1792 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1793 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | |
1794 fi | |
1795 # Set up files for the joystick library | |
1796 # (No joystick support yet) | |
1797 if test x$enable_joystick = xyes; then | |
1798 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" | |
1799 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" | |
1800 fi | |
1801 # Set up files for the cdrom library | |
1802 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1803 CDROM_SUBDIRS="$CDROM_SUBDIRS linux" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1804 CDROM_DRIVERS="$CDROM_DRIVERS linux/libcdrom_linux.la" |
0 | 1805 fi |
1806 # Set up files for the thread library | |
1807 if test x$enable_threads = xyes; then | |
1808 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
1809 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
1810 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
1811 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
1812 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1813 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
1814 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c) | |
1815 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
1816 fi | |
1817 # Set up files for the timer library | |
1818 if test x$enable_timers = xyes; then | |
1819 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
1820 fi | |
1821 ;; | |
1822 *-*-irix*) | |
1823 ARCH=irix | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1824 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1825 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1826 CheckDLOPEN |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1827 CheckDMEDIA |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1828 CheckESD |
0 | 1829 CheckNAS |
1830 CheckX11 | |
1831 CheckAAlib | |
1832 CheckOpenGL | |
1833 CheckPTHREAD | |
1834 # Set up files for the main() stub | |
1835 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1836 # We use the dmedia audio API, not the Sun audio API |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1837 #if test x$enable_audio = xyes; then |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1838 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1839 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1840 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1841 #fi |
0 | 1842 # Set up files for the joystick library |
1843 # (No joystick support yet) | |
1844 if test x$enable_joystick = xyes; then | |
1845 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" | |
1846 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" | |
1847 fi | |
1848 # Set up files for the cdrom library | |
1849 # (No CD-ROM support yet) | |
1850 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1851 CDROM_SUBDIRS="$CDROM_SUBDIRS dummy" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1852 CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la" |
0 | 1853 fi |
1854 # Set up files for the thread library | |
1855 if test x$enable_threads = xyes; then | |
1856 if test x$use_pthreads = xyes; then | |
1857 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
1858 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
1859 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
1860 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1861 if test x$have_pthread_sem != xyes; then |
0 | 1862 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) |
1863 else | |
1864 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1865 fi | |
1866 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
1867 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) | |
1868 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
1869 else | |
1870 COPY_ARCH_SRC(src/thread, irix, SDL_systhread.c) | |
1871 COPY_ARCH_SRC(src/thread, irix, SDL_systhread_c.h) | |
1872 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
1873 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
1874 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1875 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
1876 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c) | |
1877 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
1878 fi | |
1879 fi | |
1880 # Set up files for the timer library | |
1881 if test x$enable_timers = xyes; then | |
1882 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
1883 fi | |
1884 ;; | |
1885 *-*-hpux*) | |
1886 ARCH=hpux | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1887 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1888 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1889 CheckDLOPEN |
35
d3bc792e136d
Added detection of Open Sound System on Solaris x86
Sam Lantinga <slouken@lokigames.com>
parents:
30
diff
changeset
|
1890 CheckOSS |
0 | 1891 CheckNAS |
1892 CheckX11 | |
1893 CheckGGI | |
1894 CheckAAlib | |
1895 CheckOpenGL | |
1896 CheckPTHREAD | |
1897 # Set up files for the main() stub | |
1898 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
1899 # Set up files for the audio library | |
1900 if test x$enable_audio = xyes; then | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1901 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" |
0 | 1902 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1903 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | |
1904 fi | |
1905 # Set up files for the joystick library | |
1906 # (No joystick support yet) | |
1907 if test x$enable_joystick = xyes; then | |
1908 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" | |
1909 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" | |
1910 fi | |
1911 # Set up files for the cdrom library | |
1912 # (No CD-ROM support yet) | |
1913 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1914 CDROM_SUBDIRS="$CDROM_SUBDIRS dummy" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1915 CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la" |
0 | 1916 fi |
1917 # Set up files for the thread library | |
1918 if test x$enable_threads = xyes; then | |
1919 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
1920 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
1921 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
1922 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
1923 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1924 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
1925 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) | |
1926 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
1927 fi | |
1928 # Set up files for the timer library | |
1929 if test x$enable_timers = xyes; then | |
1930 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
1931 fi | |
1932 ;; | |
1933 *-*-aix*) | |
1934 ARCH=aix | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1935 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1936 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1937 CheckDLOPEN |
35
d3bc792e136d
Added detection of Open Sound System on Solaris x86
Sam Lantinga <slouken@lokigames.com>
parents:
30
diff
changeset
|
1938 CheckOSS |
0 | 1939 CheckNAS |
1940 CheckX11 | |
1941 CheckGGI | |
1942 CheckAAlib | |
1943 CheckOpenGL | |
1944 CheckPTHREAD | |
1945 # Set up files for the main() stub | |
1946 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
1947 # Set up files for the audio library | |
1948 if test x$enable_audio = xyes; then | |
1949 AUDIO_SUBDIRS="$AUDIO_SUBDIRS paudio" | |
1950 AUDIO_DRIVERS="$AUDIO_DRIVERS paudio/libaudio_paudio.la" | |
1951 fi | |
1952 # Set up files for the joystick library | |
1953 # (No joystick support yet) | |
1954 if test x$enable_joystick = xyes; then | |
1955 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" | |
1956 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" | |
1957 fi | |
1958 # Set up files for the cdrom library | |
1959 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1960 CDROM_SUBDIRS="$CDROM_SUBDIRS aix" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
1961 CDROM_DRIVERS="$CDROM_DRIVERS aix/libcdrom_aix.la" |
0 | 1962 fi |
1963 # Set up files for the thread library | |
1964 if test x$enable_threads = xyes; then | |
1965 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
1966 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
1967 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
1968 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
1969 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
1970 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
1971 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) | |
1972 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
1973 fi | |
1974 # Set up files for the timer library | |
1975 if test x$enable_timers = xyes; then | |
1976 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
1977 fi | |
1978 ;; | |
1979 *-*-osf*) | |
1980 ARCH=osf | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1981 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
1982 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1983 CheckDLOPEN |
0 | 1984 CheckNAS |
1985 CheckX11 | |
1986 CheckGGI | |
1987 CheckAAlib | |
1988 CheckOpenGL | |
1989 CheckPTHREAD | |
1990 # Set up files for the main() stub | |
1991 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
1992 # Set up files for the audio library | |
1993 if test x$enable_audio = xyes; then | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
1994 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" |
0 | 1995 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
1996 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" | |
1997 fi | |
1998 # Set up files for the joystick library | |
1999 # (No joystick support yet) | |
2000 if test x$enable_joystick = xyes; then | |
2001 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" | |
2002 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" | |
2003 fi | |
2004 # Set up files for the cdrom library | |
2005 # (No cdrom support yet) | |
2006 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2007 CDROM_SUBDIRS="$CDROM_SUBDIRS dummy" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2008 CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la" |
0 | 2009 fi |
2010 # Set up files for the thread library | |
2011 if test x$enable_threads = xyes; then | |
2012 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
2013 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
2014 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
2015 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
2016 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) | |
2017 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
2018 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) | |
2019 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
2020 fi | |
2021 # Set up files for the timer library | |
2022 if test x$enable_timers = xyes; then | |
2023 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
2024 fi | |
2025 ;; | |
2026 *-*-qnx*) | |
2027 ARCH=qnx | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2028 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2029 CheckDiskAudio |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
2030 CheckDLOPEN |
0 | 2031 CheckNAS |
2032 CheckPHOTON | |
2033 CheckX11 | |
2034 CheckOpenGL | |
2035 CheckPTHREAD | |
2036 # Set up files for the main() stub | |
2037 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
2038 # Set up files for the audio library | |
2039 if test x$enable_audio = xyes; then | |
2040 CFLAGS="$CFLAGS -DALSA_SUPPORT" | |
2041 SYSTEM_LIBS="$SYSTEM_LIBS -lasound" | |
2042 AUDIO_SUBDIRS="$AUDIO_SUBDIRS nto" | |
2043 AUDIO_DRIVERS="$AUDIO_DRIVERS nto/libaudio_nto.la" | |
2044 fi | |
2045 # Set up files for the joystick library | |
2046 if test x$enable_joystick = xyes; then | |
2047 # (No joystick support yet) | |
2048 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" | |
2049 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" | |
2050 fi | |
2051 # Set up files for the cdrom library | |
2052 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2053 CDROM_SUBDIRS="$CDROM_SUBDIRS qnx" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2054 CDROM_DRIVERS="$CDROM_DRIVERS qnx/libcdrom_qnx.la" |
0 | 2055 fi |
2056 # Set up files for the thread library | |
2057 if test x$enable_threads = xyes; then | |
2058 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
2059 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
2060 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
2061 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
2062 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
2063 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
2064 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) | |
2065 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
2066 fi | |
2067 # Set up files for the timer library | |
2068 if test x$enable_timers = xyes; then | |
2069 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
2070 fi | |
2071 ;; | |
2072 *-*-cygwin* | *-*-mingw32*) | |
2073 ARCH=win32 | |
2074 if test "$build" != "$target"; then # cross-compiling | |
2075 # Default cross-compile location | |
2076 ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc | |
2077 else | |
2078 # 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
|
2079 if [ "$BUILD_PREFIX" != "" ]; then |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2080 ac_default_prefix=$BUILD_PREFIX |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2081 fi |
0 | 2082 fi |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2083 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2084 CheckDiskAudio |
0 | 2085 CheckWIN32 |
2086 CheckDIRECTX | |
2087 CheckNASM | |
2088 # Set up files for the main() stub | |
2089 COPY_ARCH_SRC(src/main, win32, SDL_main.c) | |
2090 # Set up files for the audio library | |
2091 if test x$enable_audio = xyes; then | |
2092 AUDIO_SUBDIRS="$AUDIO_SUBDIRS windib" | |
2093 AUDIO_DRIVERS="$AUDIO_DRIVERS windib/libaudio_windib.la" | |
2094 if test x$use_directx = xyes; then | |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
2095 AUDIO_SUBDIRS="$AUDIO_SUBDIRS windx5" |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
2096 AUDIO_DRIVERS="$AUDIO_DRIVERS windx5/libaudio_windx5.la" |
0 | 2097 fi |
2098 fi | |
2099 # Set up files for the joystick library | |
2100 if test x$enable_joystick = xyes; then | |
2101 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS win32" | |
2102 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS win32/libjoystick_winmm.la" | |
2103 fi | |
2104 # Set up files for the cdrom library | |
2105 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2106 CDROM_SUBDIRS="$CDROM_SUBDIRS win32" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2107 CDROM_DRIVERS="$CDROM_DRIVERS win32/libcdrom_win32.la" |
0 | 2108 fi |
2109 # Set up files for the thread library | |
2110 if test x$enable_threads = xyes; then | |
2111 COPY_ARCH_SRC(src/thread, win32, SDL_systhread.c) | |
2112 COPY_ARCH_SRC(src/thread, win32, SDL_systhread_c.h) | |
2113 COPY_ARCH_SRC(src/thread, win32, SDL_sysmutex.c) | |
2114 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h) | |
2115 COPY_ARCH_SRC(src/thread, win32, SDL_syssem.c) | |
2116 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
2117 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c) | |
2118 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
2119 fi | |
2120 # Set up files for the timer library | |
2121 if test x$enable_timers = xyes; then | |
2122 COPY_ARCH_SRC(src/timer, win32, SDL_systimer.c) | |
2123 fi | |
2124 # The Win32 platform requires special setup | |
2125 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
|
2126 case "$target" in |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2127 *-*-cygwin*) |
263
63e391bd7085
Fixed building with Cygwin (thanks Michael)
Sam Lantinga <slouken@libsdl.org>
parents:
261
diff
changeset
|
2128 CFLAGS="$CFLAGS -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin" |
63e391bd7085
Fixed building with Cygwin (thanks Michael)
Sam Lantinga <slouken@libsdl.org>
parents:
261
diff
changeset
|
2129 SDL_CFLAGS="$SDL_CFLAGS -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin" |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2130 LIBS="$LIBS -mno-cygwin" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2131 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
|
2132 ;; |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2133 *-*-mingw32*) |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2134 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows" |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2135 ;; |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2136 esac |
0 | 2137 ;; |
2138 *-*-beos*) | |
2139 ARCH=beos | |
2140 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
|
2141 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2142 CheckDiskAudio |
0 | 2143 CheckNASM |
2144 CheckBWINDOW | |
2145 CheckBeGL | |
2146 # Set up files for the main() stub | |
2147 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | |
2148 COPY_ARCH_SRC(src/main, beos, SDL_BeApp.cc) | |
2149 COPY_ARCH_SRC(src/main, beos, SDL_BeApp.h) | |
2150 # Set up files for the audio library | |
2151 if test x$enable_audio = xyes; then | |
2152 AUDIO_SUBDIRS="$AUDIO_SUBDIRS baudio" | |
2153 AUDIO_DRIVERS="$AUDIO_DRIVERS baudio/libaudio_baudio.la" | |
2154 fi | |
2155 # Set up files for the joystick library | |
2156 if test x$enable_joystick = xyes; then | |
2157 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS beos" | |
2158 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS beos/libjoystick_beos.la" | |
2159 fi | |
2160 # Set up files for the cdrom library | |
2161 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2162 CDROM_SUBDIRS="$CDROM_SUBDIRS beos" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2163 CDROM_DRIVERS="$CDROM_DRIVERS beos/libcdrom_beos.la" |
0 | 2164 fi |
2165 # Set up files for the thread library | |
2166 if test x$enable_threads = xyes; then | |
2167 COPY_ARCH_SRC(src/thread, beos, SDL_systhread.c) | |
2168 COPY_ARCH_SRC(src/thread, beos, SDL_systhread_c.h) | |
2169 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c) | |
2170 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h) | |
2171 COPY_ARCH_SRC(src/thread, beos, SDL_syssem.c) | |
2172 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
2173 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c) | |
2174 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
2175 fi | |
2176 # Set up files for the timer library | |
2177 if test x$enable_timers = xyes; then | |
2178 COPY_ARCH_SRC(src/timer, beos, SDL_systimer.c) | |
2179 fi | |
2180 # The BeOS platform requires special libraries | |
2181 SYSTEM_LIBS="$SYSTEM_LIBS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding" | |
2182 ;; | |
2183 *-*-macos*) | |
2184 # This would be used if cross-compiling to MacOS 9. No way to | |
2185 # use it at present, but Apple is working on a X-to-9 compiler | |
2186 # for which this case would be handy. | |
2187 ARCH=macos | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2188 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2189 CheckDiskAudio |
0 | 2190 CheckTOOLBOX |
2191 CheckMacGL | |
2192 # Set up files for the main() stub | |
2193 COPY_ARCH_SRC(src/main, macos, SDL_main.c) | |
2194 # Set up files for the audio library | |
2195 if test x$enable_audio = xyes; then | |
2196 AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom" | |
2197 AUDIO_DRIVERS="$AUDIO_DRIVERS macrom/libaudio_macrom.la" | |
2198 fi | |
2199 # Set up files for the joystick library | |
2200 if test x$enable_joystick = xyes; then | |
2201 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS macos" | |
2202 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS macos/libjoystick_macos.la" | |
2203 fi | |
2204 # Set up files for the cdrom library | |
2205 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2206 CDROM_SUBDIRS="$CDROM_SUBDIRS macos" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2207 CDROM_DRIVERS="$CDROM_DRIVERS macos/libcdrom_macos.la" |
0 | 2208 fi |
2209 # Set up files for the thread library | |
2210 if test x$enable_threads = xyes; then | |
2211 COPY_ARCH_SRC(src/thread, macos, SDL_systhread.c) | |
2212 COPY_ARCH_SRC(src/thread, macos, SDL_systhread_c.h) | |
2213 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c) | |
2214 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h) | |
2215 COPY_ARCH_SRC(src/thread, macos, SDL_syssem.c) | |
2216 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
2217 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c) | |
2218 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
2219 fi | |
2220 # Set up files for the timer library | |
2221 if test x$enable_timers = xyes; then | |
2222 COPY_ARCH_SRC(src/timer, macos, SDL_systimer.c) | |
2223 fi | |
2224 # The MacOS platform requires special setup | |
2225 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" | |
2226 SDL_LIBS="-lSDLmain $SDL_LIBS" | |
2227 ;; | |
2228 *-*-darwin* ) | |
2229 # Strictly speaking, we want "Mac OS X", not "Darwin", which is | |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2230 # just the OS X kernel sans upper layers like Carbon and Cocoa. |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2231 # But config.guess comes back with "darwin", so go with the flow. |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2232 ARCH=macosx |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2233 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2234 CheckDiskAudio |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2235 CheckQUARTZ |
0 | 2236 CheckMacGL |
2237 CheckPTHREAD | |
2238 # Set up files for the main() stub | |
194
ba9e0fcc2ae2
Oops, back out that SDL_main -> SDLMain conversion
Sam Lantinga <slouken@libsdl.org>
parents:
191
diff
changeset
|
2239 COPY_ARCH_SRC(src/main, macosx, SDLMain.m) |
ba9e0fcc2ae2
Oops, back out that SDL_main -> SDLMain conversion
Sam Lantinga <slouken@libsdl.org>
parents:
191
diff
changeset
|
2240 COPY_ARCH_SRC(src/main, macosx, SDLMain.h) |
0 | 2241 # Set up files for the audio library |
2242 if test x$enable_audio = xyes; then | |
2243 AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom" | |
2244 AUDIO_DRIVERS="$AUDIO_DRIVERS macrom/libaudio_macrom.la" | |
2245 fi | |
2246 # Set up files for the joystick library | |
2247 if test x$enable_joystick = xyes; then | |
172
37e3ca9254c7
Date: Sat, 8 Sep 2001 04:42:23 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
168
diff
changeset
|
2248 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS darwin" |
37e3ca9254c7
Date: Sat, 8 Sep 2001 04:42:23 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
168
diff
changeset
|
2249 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS darwin/libjoystick_darwin.la" |
196
c4c4b221a5e5
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
194
diff
changeset
|
2250 SDL_LIBS="$SDL_LIBS -framework IOKit" |
0 | 2251 fi |
2252 # Set up files for the cdrom library | |
2253 if test x$enable_cdrom = xyes; then | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2254 CDROM_SUBDIRS="$CDROM_SUBDIRS dummy" |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2255 CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la" |
0 | 2256 fi |
2257 # Set up files for the thread library | |
2258 if test x$enable_threads = xyes; then | |
2259 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) | |
2260 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) | |
2261 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) | |
2262 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
2263 if test x$use_pthreads = xyes -a x$have_pthread_sem != xyes; then |
0 | 2264 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) |
2265 else | |
2266 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) | |
2267 fi | |
2268 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) | |
2269 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c) | |
2270 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) | |
2271 fi | |
2272 # Set up files for the timer library | |
2273 if test x$enable_timers = xyes; then | |
2274 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) | |
2275 fi | |
2276 # The MacOS X platform requires special setup | |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2277 SDL_CFLAGS="$SDL_CFLAGS -F/System/Library/Frameworks/Carbon.framework -F/System/Library/Frameworks/Cocoa.framework" |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2278 SDL_LIBS="-lSDLmain $SDL_LIBS -framework Carbon -framework Cocoa" |
0 | 2279 ;; |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2280 *-*-mint*) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2281 ARCH=mint |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2282 CheckDummyVideo |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2283 CheckDiskAudio |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2284 CheckAtariBiosEvent |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2285 CheckAtariXbiosVideo |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2286 CheckAtariGemVideo |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2287 CheckPTH |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2288 # Set up files for the main() stub |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2289 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2290 # Set up files for the audio library |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2291 if test x$enable_audio = xyes; then |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2292 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2293 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2294 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2295 # Set up files for the joystick library |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2296 if test x$enable_joystick = xyes; then |
302
8a86bdf34f0f
Added Atari joystick support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
300
diff
changeset
|
2297 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS mint" |
8a86bdf34f0f
Added Atari joystick support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
300
diff
changeset
|
2298 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS mint/libjoystick_mint.la" |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2299 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2300 # Set up files for the cdrom library |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2301 if test x$enable_cdrom = xyes; then |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2302 CDROM_SUBDIRS="$CDROM_SUBDIRS dummy" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2303 CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2304 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2305 # Set up files for the thread library |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2306 if test x$enable_threads = xyes; then |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2307 if test x$enable_pth = xyes; then |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2308 COPY_ARCH_SRC(src/thread, pth, SDL_systhread.c) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2309 COPY_ARCH_SRC(src/thread, pth, SDL_systhread_c.h) |
329
1d74ddc90cb2
Patrice's fixes for GNU Pthread support
Sam Lantinga <slouken@libsdl.org>
parents:
321
diff
changeset
|
2310 COPY_ARCH_SRC(src/thread, pth, SDL_sysmutex.c) |
1d74ddc90cb2
Patrice's fixes for GNU Pthread support
Sam Lantinga <slouken@libsdl.org>
parents:
321
diff
changeset
|
2311 COPY_ARCH_SRC(src/thread, pth, SDL_sysmutex_c.h) |
1d74ddc90cb2
Patrice's fixes for GNU Pthread support
Sam Lantinga <slouken@libsdl.org>
parents:
321
diff
changeset
|
2312 COPY_ARCH_SRC(src/thread, pth, SDL_syscond.c) |
1d74ddc90cb2
Patrice's fixes for GNU Pthread support
Sam Lantinga <slouken@libsdl.org>
parents:
321
diff
changeset
|
2313 COPY_ARCH_SRC(src/thread, pth, SDL_syscond_c.h) |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2314 else |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2315 COPY_ARCH_SRC(src/thread, generic, SDL_systhread.c) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2316 COPY_ARCH_SRC(src/thread, generic, SDL_systhread_c.h) |
329
1d74ddc90cb2
Patrice's fixes for GNU Pthread support
Sam Lantinga <slouken@libsdl.org>
parents:
321
diff
changeset
|
2317 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c) |
1d74ddc90cb2
Patrice's fixes for GNU Pthread support
Sam Lantinga <slouken@libsdl.org>
parents:
321
diff
changeset
|
2318 COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h) |
1d74ddc90cb2
Patrice's fixes for GNU Pthread support
Sam Lantinga <slouken@libsdl.org>
parents:
321
diff
changeset
|
2319 COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c) |
1d74ddc90cb2
Patrice's fixes for GNU Pthread support
Sam Lantinga <slouken@libsdl.org>
parents:
321
diff
changeset
|
2320 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2321 fi |
329
1d74ddc90cb2
Patrice's fixes for GNU Pthread support
Sam Lantinga <slouken@libsdl.org>
parents:
321
diff
changeset
|
2322 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c) |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2323 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2324 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2325 # Set up files for the timer library |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2326 if test x$enable_timers = xyes; then |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2327 COPY_ARCH_SRC(src/timer, mint, SDL_systimer.c) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2328 COPY_ARCH_SRC(src/timer, mint, SDL_vbltimer.S) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2329 COPY_ARCH_SRC(src/timer, mint, SDL_vbltimer_s.h) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2330 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2331 # MiNT does not define "unix" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2332 CFLAGS="$CFLAGS -Dunix" |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2333 ;; |
0 | 2334 *) |
2335 AC_MSG_ERROR(Unsupported target: Please add to configure.in) | |
2336 ;; | |
2337 esac | |
2338 AC_SUBST(ARCH) | |
2339 | |
2340 # Set the conditional variables for this target | |
2341 AM_CONDITIONAL(TARGET_LINUX, test $ARCH = linux) | |
2342 AM_CONDITIONAL(TARGET_SOLARIS, test $ARCH = solaris) | |
2343 AM_CONDITIONAL(TARGET_IRIX, test $ARCH = irix) | |
2344 AM_CONDITIONAL(TARGET_BSDI, test $ARCH = bsdi) | |
2345 AM_CONDITIONAL(TARGET_FREEBSD, test $ARCH = freebsd) | |
39 | 2346 AM_CONDITIONAL(TARGET_NETBSD, test $ARCH = netbsd) |
0 | 2347 AM_CONDITIONAL(TARGET_OPENBSD, test $ARCH = openbsd) |
2348 AM_CONDITIONAL(TARGET_AIX, test $ARCH = aix) | |
2349 AM_CONDITIONAL(TARGET_WIN32, test $ARCH = win32) | |
2350 AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos) | |
2351 AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos) | |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2352 AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx) |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
2353 AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx) |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2354 AM_CONDITIONAL(TARGET_MINT, test $ARCH = mint) |
0 | 2355 |
2356 # Set conditional variables for shared and static library selection. | |
2357 # These are not used in any Makefile.am but in sdl-config.in. | |
2358 AM_CONDITIONAL([ENABLE_SHARED], [test "$enable_shared" = yes]) | |
2359 AM_CONDITIONAL([ENABLE_STATIC], [test "$enable_static" = yes]) | |
2360 | |
2361 # Set runtime shared library paths as needed | |
2362 | |
2363 if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then | |
2364 SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" | |
2365 fi | |
2366 if test $ARCH = solaris; then | |
2367 SDL_RLD_FLAGS="-R\${exec_prefix}/lib" | |
2368 fi | |
257
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2369 if test $ARCH = openbsd -o $ARCH = bsdi; then |
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2370 SHARED_SYSTEM_LIBS="$SYSTEM_LIBS" |
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2371 else |
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2372 SHARED_SYSTEM_LIBS="" |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2373 fi |
257
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2374 STATIC_SYSTEM_LIBS="$SYSTEM_LIBS" |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2375 |
0 | 2376 dnl Output the video drivers we use |
2377 if test x$enable_video = xtrue; then | |
2378 if test "$VIDEO_SUBDIRS" = ""; then | |
2379 AC_MSG_ERROR(*** No video drivers are enabled!) | |
2380 fi | |
2381 fi | |
2382 AC_SUBST(AUDIO_SUBDIRS) | |
2383 AC_SUBST(AUDIO_DRIVERS) | |
2384 AC_SUBST(VIDEO_SUBDIRS) | |
2385 AC_SUBST(VIDEO_DRIVERS) | |
2386 AC_SUBST(JOYSTICK_SUBDIRS) | |
2387 AC_SUBST(JOYSTICK_DRIVERS) | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2388 AC_SUBST(CDROM_SUBDIRS) |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2389 AC_SUBST(CDROM_DRIVERS) |
0 | 2390 AC_SUBST(SDL_EXTRADIRS) |
2391 AC_SUBST(SDL_EXTRALIBS) | |
2392 | |
2393 dnl Expand the cflags and libraries needed by apps using SDL | |
2394 AC_SUBST(SDL_CFLAGS) | |
2395 AC_SUBST(SDL_LIBS) | |
2396 AC_SUBST(SDL_RLD_FLAGS) | |
2397 | |
257
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2398 dnl Expand the libraries needed for static and dynamic linking |
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2399 AC_SUBST(STATIC_SYSTEM_LIBS) |
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2400 AC_SUBST(SHARED_SYSTEM_LIBS) |
261
1c5f68da5fc2
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
259
diff
changeset
|
2401 AC_SUBST(SYSTEM_LIBS) |
257
9ac9ab945955
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
242
diff
changeset
|
2402 |
0 | 2403 dnl Expand the include directories for building SDL |
2404 CFLAGS="$CFLAGS -I\$(top_srcdir)/include" | |
2405 CFLAGS="$CFLAGS -I\$(top_srcdir)/include/SDL" | |
2406 CFLAGS="$CFLAGS -I\$(top_srcdir)/src -I\$(top_srcdir)/src/$ARCH" | |
2407 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/main" | |
2408 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/audio" | |
2409 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video" | |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
2410 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video/XFree86/extensions" |
0 | 2411 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/events" |
2412 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/joystick" | |
2413 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/cdrom" | |
2414 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/thread" | |
2415 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/timer" | |
2416 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/endian" | |
2417 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/file" | |
2418 CXXFLAGS="$CFLAGS" | |
2419 | |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2420 |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2421 # Check for darwin at the very end and set up the Objective C compiler |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2422 # We do this here so that we get the full CFLAGS into OBJCFLAGS |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2423 case "$target" in |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2424 *-*-darwin*) |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2425 OBJC="cc" |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2426 OBJCFLAGS="$CFLAGS" |
200 | 2427 OBJCDEPMODE="$CCDEPMODE" |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2428 AC_SUBST(OBJC) |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2429 AC_SUBST(OBJCFLAGS) |
200 | 2430 AC_SUBST(OBJCDEPMODE) |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2431 ;; |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2432 esac |
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2433 |
0 | 2434 # Finally create all the generated files |
2435 dnl Important: Any directory that you want to be in the distcheck should | |
2436 dnl have a file listed here, so that configure generates the | |
2437 dnl subdirectories on the build target. | |
2438 AC_OUTPUT([ | |
2439 Makefile | |
2440 docs/Makefile | |
2441 docs/html/Makefile | |
2442 docs/man3/Makefile | |
2443 include/Makefile | |
2444 src/Makefile | |
2445 src/main/Makefile | |
168
e92aa316c517
Added Max's patches for building MacOS X apps on command line
Sam Lantinga <slouken@libsdl.org>
parents:
167
diff
changeset
|
2446 src/main/macosx/Makefile |
172
37e3ca9254c7
Date: Sat, 8 Sep 2001 04:42:23 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
168
diff
changeset
|
2447 src/main/macosx/Info.plist |
0 | 2448 src/audio/Makefile |
2449 src/audio/alsa/Makefile | |
2450 src/audio/arts/Makefile | |
2451 src/audio/baudio/Makefile | |
2452 src/audio/dma/Makefile | |
2453 src/audio/dmedia/Makefile | |
2454 src/audio/dsp/Makefile | |
2455 src/audio/esd/Makefile | |
2456 src/audio/macrom/Makefile | |
2457 src/audio/nas/Makefile | |
2458 src/audio/nto/Makefile | |
37
3ad7157c6cfa
Added native OpenBSD audio driver (thanks vedge!)
Sam Lantinga <slouken@lokigames.com>
parents:
35
diff
changeset
|
2459 src/audio/openbsd/Makefile |
0 | 2460 src/audio/paudio/Makefile |
2461 src/audio/sun/Makefile | |
2462 src/audio/ums/Makefile | |
2463 src/audio/windib/Makefile | |
2464 src/audio/windx5/Makefile | |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2465 src/audio/disk/Makefile |
0 | 2466 src/video/Makefile |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
2467 src/video/XFree86/Makefile |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
2468 src/video/XFree86/extensions/Makefile |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
2469 src/video/XFree86/Xinerama/Makefile |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
2470 src/video/XFree86/Xv/Makefile |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
2471 src/video/XFree86/Xxf86dga/Makefile |
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
2472 src/video/XFree86/Xxf86vm/Makefile |
0 | 2473 src/video/cybergfx/Makefile |
2474 src/video/x11/Makefile | |
2475 src/video/dga/Makefile | |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
2476 src/video/nanox/Makefile |
0 | 2477 src/video/fbcon/Makefile |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
2478 src/video/directfb/Makefile |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
2479 src/video/ps2gs/Makefile |
0 | 2480 src/video/ggi/Makefile |
2481 src/video/maccommon/Makefile | |
2482 src/video/macdsp/Makefile | |
2483 src/video/macrom/Makefile | |
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
43
diff
changeset
|
2484 src/video/quartz/Makefile |
0 | 2485 src/video/svga/Makefile |
75
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
2486 src/video/vgl/Makefile |
0 | 2487 src/video/aalib/Makefile |
2488 src/video/wincommon/Makefile | |
2489 src/video/windib/Makefile | |
2490 src/video/windx5/Makefile | |
2491 src/video/bwindow/Makefile | |
2492 src/video/photon/Makefile | |
174
da9a97f693a8
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
172
diff
changeset
|
2493 src/video/epoc/Makefile |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2494 src/video/dummy/Makefile |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2495 src/video/ataricommon/Makefile |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2496 src/video/xbios/Makefile |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2497 src/video/gem/Makefile |
0 | 2498 src/events/Makefile |
2499 src/joystick/Makefile | |
21
75a95f82bc1f
Updated the Amiga OS port of SDL (thanks Gabriele)
Sam Lantinga <slouken@lokigames.com>
parents:
19
diff
changeset
|
2500 src/joystick/amigaos/Makefile |
0 | 2501 src/joystick/beos/Makefile |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2502 src/joystick/bsd/Makefile |
172
37e3ca9254c7
Date: Sat, 8 Sep 2001 04:42:23 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
168
diff
changeset
|
2503 src/joystick/darwin/Makefile |
0 | 2504 src/joystick/dummy/Makefile |
2505 src/joystick/linux/Makefile | |
2506 src/joystick/macos/Makefile | |
302
8a86bdf34f0f
Added Atari joystick support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
300
diff
changeset
|
2507 src/joystick/mint/Makefile |
0 | 2508 src/joystick/win32/Makefile |
2509 src/cdrom/Makefile | |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2510 src/cdrom/aix/Makefile |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2511 src/cdrom/beos/Makefile |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2512 src/cdrom/dummy/Makefile |
178
1fc1a101bf23
Added CD-ROM support for BSD/OS (thanks Steven!)
Sam Lantinga <slouken@libsdl.org>
parents:
174
diff
changeset
|
2513 src/cdrom/bsdi/Makefile |
153
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2514 src/cdrom/freebsd/Makefile |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2515 src/cdrom/linux/Makefile |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2516 src/cdrom/macos/Makefile |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2517 src/cdrom/openbsd/Makefile |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2518 src/cdrom/qnx/Makefile |
2839f45bdba0
Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
Sam Lantinga <slouken@libsdl.org>
parents:
148
diff
changeset
|
2519 src/cdrom/win32/Makefile |
0 | 2520 src/thread/Makefile |
2521 src/timer/Makefile | |
2522 src/endian/Makefile | |
2523 src/file/Makefile | |
2524 src/hermes/Makefile | |
2525 sdl-config | |
2526 SDL.spec | |
2527 ], [chmod +x sdl-config]) |