Skip to content

Latest commit

 

History

History
3185 lines (3037 loc) · 105 KB

configure.in

File metadata and controls

3185 lines (3037 loc) · 105 KB
 
Apr 26, 2001
Apr 26, 2001
1
2
dnl Process this file with autoconf to produce a configure script.
AC_INIT(README)
Feb 7, 2006
Feb 7, 2006
3
AC_CONFIG_HEADER(include/SDL_config.h)
Feb 9, 2006
Feb 9, 2006
4
AC_GNU_SOURCE
Apr 26, 2001
Apr 26, 2001
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dnl Set various version strings - taken gratefully from the GTk sources
#
# Making releases:
# Edit include/SDL/SDL_version.h and change the version, then:
# SDL_MICRO_VERSION += 1;
# SDL_INTERFACE_AGE += 1;
# SDL_BINARY_AGE += 1;
# if any functions have been added, set SDL_INTERFACE_AGE to 0.
# if backwards compatibility has been broken,
# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
#
SDL_MAJOR_VERSION=1
SDL_MINOR_VERSION=2
Jan 4, 2006
Jan 4, 2006
19
20
21
SDL_MICRO_VERSION=10
SDL_INTERFACE_AGE=3
SDL_BINARY_AGE=10
Apr 26, 2001
Apr 26, 2001
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
AC_SUBST(SDL_MAJOR_VERSION)
AC_SUBST(SDL_MINOR_VERSION)
AC_SUBST(SDL_MICRO_VERSION)
AC_SUBST(SDL_INTERFACE_AGE)
AC_SUBST(SDL_BINARY_AGE)
AC_SUBST(SDL_VERSION)
# libtool versioning
LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
LT_REVISION=$SDL_INTERFACE_AGE
LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
dnl Detect the canonical host and target build environment
Dec 7, 2002
Dec 7, 2002
43
AC_CANONICAL_SYSTEM
Feb 9, 2006
Feb 9, 2006
44
45
46
47
48
49
AC_C_BIGENDIAN
if test x$ac_cv_c_bigendian = xyes; then
AC_DEFINE(SDL_BYTEORDER, 4321)
else
AC_DEFINE(SDL_BYTEORDER, 1234)
fi
Apr 26, 2001
Apr 26, 2001
50
Jun 10, 2001
Jun 10, 2001
51
52
53
dnl Setup for automake
AM_INIT_AUTOMAKE(SDL, $SDL_VERSION)
Feb 9, 2006
Feb 9, 2006
54
55
56
dnl Disable autoheader
AUTOHEADER=:
Apr 26, 2001
Apr 26, 2001
57
58
59
60
61
62
dnl Check for tools
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_PROG_MAKE_SET
AC_PROG_CC
Sep 30, 2001
Sep 30, 2001
63
AC_PROG_CXX
Apr 26, 2001
Apr 26, 2001
64
AC_PROG_INSTALL
Dec 18, 2001
Dec 18, 2001
65
66
ASFLAGS=""
AC_SUBST(ASFLAGS)
Aug 17, 2002
Aug 17, 2002
67
68
69
70
CCAS="$CC"
AC_SUBST(CCAS)
CCASFLAGS=""
AC_SUBST(CCASFLAGS)
Aug 9, 2003
Aug 9, 2003
71
AM_CONDITIONAL([am__fastdepOBJC], false)
Apr 26, 2001
Apr 26, 2001
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
dnl The alpha architecture needs special flags for binary portability
case "$target" in
alpha*-*-linux*)
if test x$ac_cv_prog_gcc = xyes; then
CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
fi
;;
esac
dnl Add compiler-specific optimization flags
dnl See if the user wants aggressive optimizations of the code
AC_ARG_ENABLE(debug,
[ --enable-debug Disable aggressive optimizations [default=yes]],
, enable_debug=yes)
if test x$enable_debug != xyes; then
if test x$ac_cv_prog_gcc = xyes; then
CFLAGS="$CFLAGS -fexpensive-optimizations"
# Ack! This breaks the MMX YV12 conversion on gcc 2.95.2
# CFLAGS="$CFLAGS -fomit-frame-pointer"
fi
case "$target" in
i486-*-*)
if test x$ac_cv_prog_gcc = xyes; then
Feb 8, 2004
Feb 8, 2004
97
CFLAGS="$CFLAGS -march=i486"
Apr 26, 2001
Apr 26, 2001
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
fi
;;
i?86-*-*)
if test x$ac_cv_prog_gcc = xyes; then
CFLAGS="$CFLAGS -march=pentium -mcpu=pentiumpro"
fi
;;
*-*-osf*)
if test x$ac_cv_prog_gcc != xyes; then
CFLAGS="-g3 -fast -arch host"
fi
;;
esac
fi
dnl Add verbose warnings by default, and allow ANSI compliance checking
AC_ARG_ENABLE(strict-ansi,
[ --enable-strict-ansi Enable strict ANSI compliance build [default=no]],
, enable_strict_ansi=no)
if test x$ac_cv_prog_gcc = xyes; then
CFLAGS="$CFLAGS -Wall"
if test x$enable_strict_ansi = xyes; then
CFLAGS="$CFLAGS -ansi -pedantic -D_XOPEN_SOURCE"
fi
fi
Feb 7, 2006
Feb 7, 2006
124
125
126
dnl See whether we are allowed to use the system C library
AC_ARG_ENABLE(libc,
[ --enable-libc Use the system C library [default=yes]],
Feb 9, 2006
Feb 9, 2006
127
, AC_DEFINE(HAVE_LIBC))
Feb 7, 2006
Feb 7, 2006
128
Feb 9, 2006
Feb 9, 2006
129
dnl Check for compiler characteristics
Feb 7, 2006
Feb 7, 2006
130
131
AC_C_CONST
AC_C_INLINE
Feb 9, 2006
Feb 9, 2006
132
133
134
135
136
137
138
AC_C_VOLATILE
dnl Check for header files
AC_HEADER_STDC
AC_CHECK_HEADERS(sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h signal.h)
dnl Check for typedefs, structures, etc.
Feb 7, 2006
Feb 7, 2006
139
AC_TYPE_SIZE_T
Feb 9, 2006
Feb 9, 2006
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then
AC_CHECK_TYPE(int64_t)
if test x$ac_cv_type_int64_t = xyes; then
AC_DEFINE(SDL_HAS_64BIT_TYPE)
fi
else
AC_CHECK_SIZEOF(char, 1)
AC_CHECK_SIZEOF(short, 2)
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(long long, 8)
if test x$ac_cv_sizeof_char = x1; then
AC_DEFINE(int8_t, signed char)
AC_DEFINE(uint8_t, unsigned char)
fi
if test x$ac_cv_sizeof_short = x2; then
AC_DEFINE(int16_t, signed short)
AC_DEFINE(uint16_t, unsigned short)
else
if test x$ac_cv_sizeof_int = x2; then
AC_DEFINE(int16_t, signed int)
AC_DEFINE(uint16_t, unsigned int)
fi
fi
if test x$ac_cv_sizeof_int = x4; then
AC_DEFINE(int32_t, signed int)
AC_DEFINE(uint32_t, unsigned int)
else
if test x$ac_cv_sizeof_long = x4; then
AC_DEFINE(int32_t, signed long)
AC_DEFINE(uint32_t, unsigned long)
fi
fi
if test x$ac_cv_sizeof_long = x8; then
AC_DEFINE(int64_t, signed long)
AC_DEFINE(uint64_t, unsigned long)
AC_DEFINE(SDL_HAS_64BIT_TYPE)
else
if test x$ac_cv_sizeof_long_long = x8; then
AC_DEFINE(int64_t, signed long long)
AC_DEFINE(uint64_t, unsigned long long)
AC_DEFINE(SDL_HAS_64BIT_TYPE)
fi
fi
AC_CHECK_TYPE(uintptr_t, unsigned long)
fi
Feb 7, 2006
Feb 7, 2006
186
187
188
dnl Checks for library functions.
AC_FUNC_ALLOCA
Feb 9, 2006
Feb 9, 2006
189
190
191
192
193
194
195
196
197
198
AC_FUNC_MEMCMP
if test x$ac_cv_func_memcmp_working = xyes; then
AC_DEFINE(HAVE_MEMCMP)
fi
AC_FUNC_STRTOD
if test x$ac_cv_func_strtod = xyes; then
AC_DEFINE(HAVE_STRTOD)
fi
AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strcpy strncpy strcat strncat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol _i64toa _ui64toa strtoll atoi atof strcmp strncmp stricmp strcasecmp sscanf snprintf vsnprint)
Feb 7, 2006
Feb 7, 2006
199
Apr 26, 2001
Apr 26, 2001
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
dnl Initialize the compiler and linker flags for SDL applications
SDL_CFLAGS=""
SDL_LIBS="-lSDL"
dnl Add the math library for the new gamma correction support
case "$target" in
*-*-cygwin* | *-*-mingw32*)
MATHLIB=""
;;
*-*-beos*)
MATHLIB=""
;;
*-*-darwin*)
MATHLIB=""
;;
*)
MATHLIB="-lm"
;;
esac
SYSTEM_LIBS="$SYSTEM_LIBS $MATHLIB"
dnl Enable/disable various subsystems of the SDL library
AC_ARG_ENABLE(audio,
[ --enable-audio Enable the audio subsystem [default=yes]],
, enable_audio=yes)
if test x$enable_audio = xyes; then
SDL_EXTRADIRS="$SDL_EXTRADIRS audio"
SDL_EXTRALIBS="$SDL_EXTRALIBS audio/libaudio.la"
else
CFLAGS="$CFLAGS -DDISABLE_AUDIO"
fi
AC_ARG_ENABLE(video,
[ --enable-video Enable the video subsystem [default=yes]],
, enable_video=yes)
if test x$enable_video = xyes; then
SDL_EXTRADIRS="$SDL_EXTRADIRS video"
SDL_EXTRALIBS="$SDL_EXTRALIBS video/libvideo.la"
else
CFLAGS="$CFLAGS -DDISABLE_VIDEO"
fi
AC_ARG_ENABLE(events,
[ --enable-events Enable the events subsystem [default=yes]],
, enable_events=yes)
if test x$enable_video = xyes -a x$enable_events = xyes; then
SDL_EXTRADIRS="$SDL_EXTRADIRS events"
SDL_EXTRALIBS="$SDL_EXTRALIBS events/libevents.la"
else
CFLAGS="$CFLAGS -DDISABLE_EVENTS"
fi
AC_ARG_ENABLE(joystick,
[ --enable-joystick Enable the joystick subsystem [default=yes]],
, enable_joystick=yes)
if test x$enable_joystick = xyes; then
SDL_EXTRADIRS="$SDL_EXTRADIRS joystick"
SDL_EXTRALIBS="$SDL_EXTRALIBS joystick/libjoystick.la"
else
CFLAGS="$CFLAGS -DDISABLE_JOYSTICK"
fi
AC_ARG_ENABLE(cdrom,
[ --enable-cdrom Enable the cdrom subsystem [default=yes]],
, enable_cdrom=yes)
if test x$enable_cdrom = xyes; then
SDL_EXTRADIRS="$SDL_EXTRADIRS cdrom"
SDL_EXTRALIBS="$SDL_EXTRALIBS cdrom/libcdrom.la"
else
CFLAGS="$CFLAGS -DDISABLE_CDROM"
fi
AC_ARG_ENABLE(threads,
[ --enable-threads Enable the threading subsystem [default=yes]],
, enable_threads=yes)
SDL_EXTRADIRS="$SDL_EXTRADIRS thread"
SDL_EXTRALIBS="$SDL_EXTRALIBS thread/libthread.la"
if test x$enable_threads != xyes; then
CFLAGS="$CFLAGS -DDISABLE_THREADS"
COPY_ARCH_SRC(src/thread, generic, SDL_systhread.c)
COPY_ARCH_SRC(src/thread, generic, SDL_systhread_c.h)
COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c)
COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h)
COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
fi
AC_ARG_ENABLE(timers,
[ --enable-timers Enable the timer subsystem [default=yes]],
, enable_timers=yes)
if test x$enable_timers = xyes; then
SDL_EXTRADIRS="$SDL_EXTRADIRS timer"
SDL_EXTRALIBS="$SDL_EXTRALIBS timer/libtimer.la"
else
CFLAGS="$CFLAGS -DDISABLE_TIMERS"
fi
AC_ARG_ENABLE(file,
[ --enable-file Enable the file subsystem [default=yes]],
, enable_file=yes)
if test x$enable_file = xyes; then
SDL_EXTRADIRS="$SDL_EXTRADIRS file"
SDL_EXTRALIBS="$SDL_EXTRALIBS file/libfile.la"
else
CFLAGS="$CFLAGS -DDISABLE_FILE"
fi
Nov 18, 2003
Nov 18, 2003
304
305
306
307
308
309
310
311
312
AC_ARG_ENABLE(cpuinfo,
[ --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]],
, enable_cpuinfo=yes)
if test x$enable_cpuinfo = xyes; then
SDL_EXTRADIRS="$SDL_EXTRADIRS cpuinfo"
SDL_EXTRALIBS="$SDL_EXTRALIBS cpuinfo/libcpuinfo.la"
else
CFLAGS="$CFLAGS -DDISABLE_CPUINFO"
fi
Apr 26, 2001
Apr 26, 2001
313
314
315
316
317
318
319
320
321
322
dnl See if the OSS audio interface is supported
CheckOSS()
{
AC_ARG_ENABLE(oss,
[ --enable-oss support the OSS audio API [default=yes]],
, enable_oss=yes)
if test x$enable_audio = xyes -a x$enable_oss = xyes; then
AC_MSG_CHECKING(for OSS audio support)
have_oss=no
Jul 8, 2001
Jul 8, 2001
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
if test x$have_oss != xyes; then
AC_TRY_COMPILE([
#include <sys/soundcard.h>
],[
int arg = SNDCTL_DSP_SETFRAGMENT;
],[
have_oss=yes
])
fi
if test x$have_oss != xyes; then
AC_TRY_COMPILE([
#include <soundcard.h>
],[
int arg = SNDCTL_DSP_SETFRAGMENT;
],[
have_oss=yes
CFLAGS="$CFLAGS -DOSS_USE_SOUNDCARD_H"
])
fi
Apr 26, 2001
Apr 26, 2001
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
AC_MSG_RESULT($have_oss)
if test x$have_oss = xyes; then
CFLAGS="$CFLAGS -DOSS_SUPPORT"
AUDIO_SUBDIRS="$AUDIO_SUBDIRS dsp"
AUDIO_DRIVERS="$AUDIO_DRIVERS dsp/libaudio_dsp.la"
AUDIO_SUBDIRS="$AUDIO_SUBDIRS dma"
AUDIO_DRIVERS="$AUDIO_DRIVERS dma/libaudio_dma.la"
fi
fi
}
dnl See if the ALSA audio interface is supported
CheckALSA()
{
AC_ARG_ENABLE(alsa,
[ --enable-alsa support the ALSA audio API [default=yes]],
, enable_alsa=yes)
if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
Aug 24, 2004
Aug 24, 2004
360
AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no)
Dec 13, 2004
Dec 13, 2004
361
362
363
364
# Restore all flags from before the ALSA detection runs
CFLAGS="$alsa_save_CFLAGS"
LDFLAGS="$alsa_save_LDFLAGS"
LIBS="$alsa_save_LIBS"
Apr 15, 2002
Apr 15, 2002
365
if test x$have_alsa = xyes; then
Mar 2, 2004
Mar 2, 2004
366
367
368
AC_ARG_ENABLE(alsa-shared,
[ --enable-alsa-shared dynamically load ALSA audio support [default=yes]],
, enable_alsa_shared=yes)
Aug 21, 2004
Aug 21, 2004
369
if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then
Nov 15, 2004
Nov 15, 2004
370
371
372
if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then
ALSA_LIBS="-L/lib $ALSA_LIBS"
elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then
Aug 21, 2004
Aug 21, 2004
373
ALSA_LIBS="-L/usr/lib $ALSA_LIBS"
Nov 15, 2004
Nov 15, 2004
374
elif test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then
Aug 21, 2004
Aug 21, 2004
375
ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS"
Nov 15, 2004
Nov 15, 2004
376
fi
Aug 21, 2004
Aug 21, 2004
377
378
379
380
381
fi
alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'`
alsa_lib=`ls $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
echo "-- $alsa_lib_spec -> $alsa_lib"
Nov 17, 2005
Nov 17, 2005
382
if test x$have_loadso != xyes && \
Mar 2, 2004
Mar 2, 2004
383
test x$enable_alsa_shared = xyes; then
Nov 17, 2005
Nov 17, 2005
384
AC_MSG_ERROR([You must have SDL_LoadObject() support])
Mar 2, 2004
Mar 2, 2004
385
fi
Nov 17, 2005
Nov 17, 2005
386
if test x$have_loadso = xyes && \
Mar 2, 2004
Mar 2, 2004
387
test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
Aug 21, 2004
Aug 21, 2004
388
CFLAGS="$CFLAGS -DALSA_SUPPORT -DALSA_DYNAMIC=\$(alsa_lib) $ALSA_CFLAGS"
Mar 2, 2004
Mar 2, 2004
389
AC_SUBST(alsa_lib)
Aug 21, 2004
Aug 21, 2004
390
391
use_dlvsym=no
Sep 8, 2005
Sep 8, 2005
392
AC_CHECK_LIB(dl, dlvsym, [use_dlvsym=yes])
Aug 21, 2004
Aug 21, 2004
393
394
395
if test x$use_dlvsym = xyes; then
CFLAGS="$CFLAGS -DUSE_DLVSYM"
fi
Mar 2, 2004
Mar 2, 2004
396
else
Aug 21, 2004
Aug 21, 2004
397
398
CFLAGS="$CFLAGS -DALSA_SUPPORT $ALSA_CFLAGS"
SYSTEM_LIBS="$SYSTEM_LIBS $ALSA_LIBS"
Mar 2, 2004
Mar 2, 2004
399
fi
Apr 26, 2001
Apr 26, 2001
400
401
402
403
404
405
AUDIO_SUBDIRS="$AUDIO_SUBDIRS alsa"
AUDIO_DRIVERS="$AUDIO_DRIVERS alsa/libaudio_alsa.la"
fi
fi
}
Aug 9, 2001
Aug 9, 2001
406
407
408
409
410
411
412
413
414
415
416
417
418
dnl Check whether we want to use IRIX 6.5+ native audio or not
CheckDMEDIA()
{
if test x$enable_audio = xyes; then
AC_MSG_CHECKING(for dmedia audio support)
have_dmedia=no
AC_TRY_COMPILE([
#include <dmedia/audio.h>
],[
ALport audio_port;
],[
have_dmedia=yes
])
Aug 21, 2004
Aug 21, 2004
419
AC_MSG_RESULT($have_dmedia)
Aug 9, 2001
Aug 9, 2001
420
421
422
423
424
425
426
427
428
429
# Set up files for the audio library
if test x$have_dmedia = xyes; then
CFLAGS="$CFLAGS -DDMEDIA_SUPPORT"
AUDIO_SUBDIRS="$AUDIO_SUBDIRS dmedia"
AUDIO_DRIVERS="$AUDIO_DRIVERS dmedia/libaudio_dmedia.la"
SYSTEM_LIBS="$SYSTEM_LIBS -laudio"
fi
fi
}
Apr 26, 2001
Apr 26, 2001
430
431
432
433
434
435
436
dnl Find the ESD includes and libraries
CheckESD()
{
AC_ARG_ENABLE(esd,
[ --enable-esd support the Enlightened Sound Daemon [default=yes]],
, enable_esd=yes)
if test x$enable_audio = xyes -a x$enable_esd = xyes; then
Aug 24, 2004
Aug 24, 2004
437
438
AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no)
if test x$have_esd = xyes; then
Mar 6, 2002
Mar 6, 2002
439
AC_ARG_ENABLE(esd-shared,
Aug 9, 2003
Aug 9, 2003
440
441
[ --enable-esd-shared dynamically load ESD audio support [default=yes]],
, enable_esd_shared=yes)
Mar 6, 2002
Mar 6, 2002
442
esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`
Mar 3, 2004
Mar 3, 2004
443
esd_lib=`ls $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
May 19, 2002
May 19, 2002
444
echo "-- $esd_lib_spec -> $esd_lib"
Nov 17, 2005
Nov 17, 2005
445
if test x$have_loadso != xyes && \
Mar 6, 2002
Mar 6, 2002
446
test x$enable_esd_shared = xyes; then
Nov 17, 2005
Nov 17, 2005
447
AC_MSG_ERROR([You must have SDL_LoadObject() support])
Mar 6, 2002
Mar 6, 2002
448
fi
Nov 17, 2005
Nov 17, 2005
449
if test x$have_loadso = xyes && \
Mar 6, 2002
Mar 6, 2002
450
451
test x$enable_esd_shared = xyes && test x$esd_lib != x; then
CFLAGS="$CFLAGS -DESD_SUPPORT -DESD_DYNAMIC=\$(esd_lib) $ESD_CFLAGS"
May 19, 2002
May 19, 2002
452
AC_SUBST(esd_lib)
Mar 6, 2002
Mar 6, 2002
453
454
455
456
else
CFLAGS="$CFLAGS -DESD_SUPPORT $ESD_CFLAGS"
SYSTEM_LIBS="$SYSTEM_LIBS $ESD_LIBS"
fi
Apr 26, 2001
Apr 26, 2001
457
458
AUDIO_SUBDIRS="$AUDIO_SUBDIRS esd"
AUDIO_DRIVERS="$AUDIO_DRIVERS esd/libaudio_esd.la"
Mar 6, 2002
Mar 6, 2002
459
fi
Apr 26, 2001
Apr 26, 2001
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
fi
}
CheckARTSC()
{
AC_ARG_ENABLE(arts,
[ --enable-arts support the Analog Real Time Synthesizer [default=yes]],
, enable_arts=yes)
if test x$enable_audio = xyes -a x$enable_arts = xyes; then
AC_PATH_PROG(ARTSCCONFIG, artsc-config)
if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; then
: # arts isn't installed
else
ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
ARTSC_LIBS=`$ARTSCCONFIG --libs`
Feb 24, 2004
Feb 24, 2004
475
ARTSC_PREFIX=`$ARTSCCONFIG --arts-prefix`
Apr 26, 2001
Apr 26, 2001
476
477
478
479
480
481
482
483
484
485
486
487
488
489
AC_MSG_CHECKING(for aRts development environment)
audio_arts=no
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $ARTSC_CFLAGS"
AC_TRY_COMPILE([
#include <artsc.h>
],[
arts_stream_t stream;
],[
audio_arts=yes
])
CFLAGS="$save_CFLAGS"
AC_MSG_RESULT($audio_arts)
if test x$audio_arts = xyes; then
Mar 6, 2002
Mar 6, 2002
490
AC_ARG_ENABLE(arts-shared,
Aug 9, 2003
Aug 9, 2003
491
492
[ --enable-arts-shared dynamically load aRts audio support [default=yes]],
, enable_arts_shared=yes)
Feb 24, 2004
Feb 24, 2004
493
arts_lib_spec="$ARTSC_PREFIX/lib/libartsc.so.*"
Mar 3, 2004
Mar 3, 2004
494
arts_lib=`ls $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
May 19, 2002
May 19, 2002
495
echo "-- $arts_lib_spec -> $arts_lib"
Nov 17, 2005
Nov 17, 2005
496
if test x$have_loadso != xyes && \
Mar 6, 2002
Mar 6, 2002
497
test x$enable_arts_shared = xyes; then
Nov 17, 2005
Nov 17, 2005
498
AC_MSG_ERROR([You must have SDL_LoadObject() support])
Mar 6, 2002
Mar 6, 2002
499
fi
Nov 17, 2005
Nov 17, 2005
500
if test x$have_loadso = xyes && \
Mar 6, 2002
Mar 6, 2002
501
502
test x$enable_arts_shared = xyes && test x$arts_lib != x; then
CFLAGS="$CFLAGS -DARTSC_SUPPORT -DARTSC_DYNAMIC=\$(arts_lib) $ARTSC_CFLAGS"
May 19, 2002
May 19, 2002
503
AC_SUBST(arts_lib)
Mar 6, 2002
Mar 6, 2002
504
505
506
507
else
CFLAGS="$CFLAGS -DARTSC_SUPPORT $ARTSC_CFLAGS"
SYSTEM_LIBS="$SYSTEM_LIBS $ARTSC_LIBS"
fi
Apr 26, 2001
Apr 26, 2001
508
509
510
511
512
513
514
515
516
517
518
AUDIO_SUBDIRS="$AUDIO_SUBDIRS arts"
AUDIO_DRIVERS="$AUDIO_DRIVERS arts/libaudio_arts.la"
fi
fi
fi
}
dnl See if the NAS audio interface is supported
CheckNAS()
{
AC_ARG_ENABLE(nas,
Jul 16, 2003
Jul 16, 2003
519
[ --enable-nas support the NAS audio API [default=yes]],
May 27, 2001
May 27, 2001
520
, enable_nas=yes)
Apr 26, 2001
Apr 26, 2001
521
if test x$enable_audio = xyes -a x$enable_nas = xyes; then
May 27, 2001
May 27, 2001
522
523
524
525
AC_MSG_CHECKING(for NAS audio support)
have_nas=no
if test -r /usr/X11R6/include/audio/audiolib.h; then
have_nas=yes
Sep 21, 2003
Sep 21, 2003
526
CFLAGS="$CFLAGS -DNAS_SUPPORT -I/usr/X11R6/include/"
May 27, 2001
May 27, 2001
527
528
529
SYSTEM_LIBS="$SYSTEM_LIBS -laudio -lXt"
AUDIO_SUBDIRS="$AUDIO_SUBDIRS nas"
AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la"
Mar 6, 2003
Mar 6, 2003
530
531
532
533
534
535
536
537
538
539
dnl On IRIX, the NAS includes are in a different directory,
dnl and libnas must be explicitly linked in
elif test -r /usr/freeware/include/nas/audiolib.h; then
have_nas=yes
CFLAGS="$CFLAGS -DNAS_SUPPORT"
SYSTEM_LIBS="$SYSTEM_LIBS -lnas -lXt"
AUDIO_SUBDIRS="$AUDIO_SUBDIRS nas"
AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la"
May 27, 2001
May 27, 2001
540
fi
Mar 6, 2003
Mar 6, 2003
541
AC_MSG_RESULT($have_nas)
Apr 26, 2001
Apr 26, 2001
542
543
544
fi
}
Jun 16, 2001
Jun 16, 2001
545
546
547
548
dnl rcg07142001 See if the user wants the disk writer audio driver...
CheckDiskAudio()
{
AC_ARG_ENABLE(diskaudio,
Jul 16, 2003
Jul 16, 2003
549
[ --enable-diskaudio support the disk writer audio driver [default=yes]],
Jul 2, 2001
Jul 2, 2001
550
, enable_diskaudio=yes)
Jun 16, 2001
Jun 16, 2001
551
552
553
554
555
556
557
if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
CFLAGS="$CFLAGS -DDISKAUD_SUPPORT"
AUDIO_SUBDIRS="$AUDIO_SUBDIRS disk"
AUDIO_DRIVERS="$AUDIO_DRIVERS disk/libaudio_disk.la"
fi
}
Jun 10, 2002
Jun 10, 2002
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
dnl Set up the Atari Audio driver
CheckAtariAudio()
{
AC_ARG_ENABLE(mintaudio,
[ --enable-mintaudio support Atari audio driver [default=yes]],
, enable_mintaudio=yes)
if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then
mintaudio=no
AC_CHECK_HEADER(mint/falcon.h, have_mint_falcon_hdr=yes)
if test x$have_mint_falcon_hdr = xyes; then
mintaudio=yes
CFLAGS="$CFLAGS -DMINTAUDIO_SUPPORT"
AUDIO_SUBDIRS="$AUDIO_SUBDIRS mint"
AUDIO_DRIVERS="$AUDIO_DRIVERS mint/libaudio_mintaudio.la"
fi
fi
}
Apr 26, 2001
Apr 26, 2001
576
dnl See if we can use x86 assembly blitters
Oct 23, 2001
Oct 23, 2001
577
# NASM is available from: http://nasm.octium.net/
Apr 26, 2001
Apr 26, 2001
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
CheckNASM()
{
dnl Make sure we are running on an x86 platform
case $target in
i?86*)
;;
*)
# Nope, bail early.
return
;;
esac
dnl Check for NASM (for assembly blit routines)
AC_ARG_ENABLE(nasm,
[ --enable-nasm use nasm assembly blitters on x86 [default=yes]],
, enable_nasm=yes)
if test x$enable_video = xyes -a x$enable_nasm = xyes; then
AC_PATH_PROG(NASM, nasm)
if test x$NASM = x -o x$NASM = x'"$NASM"'; then
: # nasm isn't installed
else
CFLAGS="$CFLAGS -DUSE_ASMBLIT -I$srcdir/hermes"
case $ARCH in
win32)
NASMFLAGS="-f win32"
;;
Apr 18, 2002
Apr 18, 2002
603
604
605
openbsd)
NASMFLAGS="-f aoutb"
;;
Apr 26, 2001
Apr 26, 2001
606
*)
Dec 14, 2003
Dec 14, 2003
607
NASMFLAGS="-f elf"
Apr 26, 2001
Apr 26, 2001
608
609
610
611
612
613
;;
esac
AC_SUBST(NASMFLAGS)
CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hermes"
SDL_EXTRADIRS="$SDL_EXTRADIRS hermes"
SDL_EXTRALIBS="$SDL_EXTRALIBS hermes/libhermes.la"
Nov 18, 2003
Nov 18, 2003
614
use_nasm=yes
May 6, 2004
May 6, 2004
615
616
617
618
619
620
621
622
case "$target" in
# this line is needed for QNX, because it's not defined the __ELF__
*-*-qnx*) CFLAGS="$CFLAGS -D__ELF__"
;;
esac
Apr 26, 2001
Apr 26, 2001
623
624
625
626
fi
fi
}
Sep 8, 2005
Sep 8, 2005
627
628
629
630
631
632
633
634
635
636
637
638
639
640
dnl Do the iPod thing
CheckIPod()
{
AC_ARG_ENABLE(ipod,
[ --enable-ipod configure SDL to work with iPodLinux [default=yes on arm-elf]],
, enable_ipod=yes)
if test x$enable_ipod = xyes; then
CFLAGS="$CFLAGS -DENABLE_IPOD -DIPOD"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS ipod"
VIDEO_DRIVERS="$VIDEO_DRIVERS ipod/libvideo_ipod.la"
fi
}
May 11, 2001
May 11, 2001
641
642
643
dnl Find the nanox include and library directories
CheckNANOX()
{
Mar 5, 2002
Mar 5, 2002
644
645
646
647
648
649
650
651
652
AC_ARG_ENABLE(video-nanox,
[ --enable-video-nanox use nanox video driver [default=no]],
, enable_video_nanox=no)
AC_ARG_ENABLE(nanox-debug,
[ --enable-nanox-debug print debug messages [default=no]],
, enable_nanox_debug=no)
AC_ARG_ENABLE(nanox-share-memory,
[ --enable-nanox-share-memory use share memory [default=no]],
, enable_nanox_share_memory=no)
Aug 25, 2002
Aug 25, 2002
653
654
655
AC_ARG_ENABLE(nanox_direct_fb,
[ --enable-nanox-direct-fb use direct framebuffer access [default=no]],
, enable_nanox_direct_fb=no)
Mar 5, 2002
Mar 5, 2002
656
657
658
659
660
661
662
663
664
665
if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then
if test x$enable_nanox_debug = xyes; then
CFLAGS="$CFLAGS -DENABLE_NANOX_DEBUG"
fi
if test x$enable_nanox_share_memory = xyes; then
CFLAGS="$CFLAGS -DNANOX_SHARE_MEMORY"
fi
Aug 25, 2002
Aug 25, 2002
666
667
668
if test x$enable_nanox_direct_fb = xyes; then
CFLAGS="$CFLAGS -DENABLE_NANOX_DIRECT_FB"
fi
Mar 5, 2002
Mar 5, 2002
669
670
671
672
673
674
CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_NANOX"
SYSTEM_LIBS="$SYSTEM_LIBS -lnano-X"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS nanox"
VIDEO_DRIVERS="$VIDEO_DRIVERS nanox/libvideo_nanox.la"
fi
May 11, 2001
May 11, 2001
675
676
}
Apr 26, 2001
Apr 26, 2001
677
678
679
680
681
682
683
684
685
686
dnl Find the X11 include and library directories
CheckX11()
{
AC_ARG_ENABLE(video-x11,
[ --enable-video-x11 use X11 video driver [default=yes]],
, enable_video_x11=yes)
if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
AC_PATH_X
AC_PATH_XTRA
if test x$have_x = xyes; then
Nov 5, 2005
Nov 5, 2005
687
688
689
690
AC_ARG_ENABLE(x11-shared,
[ --enable-x11-shared dynamically load X11 support [default=yes]],
, enable_x11_shared=yes)
Nov 8, 2005
Nov 8, 2005
691
dnl !!! FIXME: if a platform needs more than this, fill it in!
Nov 17, 2005
Nov 17, 2005
692
693
694
695
696
case "$target" in
*-*-darwin* )
x11_lib='/usr/X11R6/lib/libX11.6.dylib'
x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
;;
Jan 30, 2006
Jan 30, 2006
697
698
699
700
*-*-osf* )
x11_lib='libX11.so'
x11ext_lib='libXext.so'
;;
Nov 17, 2005
Nov 17, 2005
701
702
703
704
705
*)
x11_lib='libX11.so.6'
x11ext_lib='libXext.so.6'
;;
esac
Nov 5, 2005
Nov 5, 2005
706
Nov 17, 2005
Nov 17, 2005
707
if test x$have_loadso != xyes && \
Nov 5, 2005
Nov 5, 2005
708
test x$enable_x11_shared = xyes; then
Nov 17, 2005
Nov 17, 2005
709
AC_MSG_ERROR([You must have SDL_LoadObject() support])
Nov 5, 2005
Nov 5, 2005
710
711
fi
Nov 17, 2005
Nov 17, 2005
712
if test x$have_loadso = xyes && \
Nov 8, 2005
Nov 8, 2005
713
test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
Nov 5, 2005
Nov 5, 2005
714
715
CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_X11 -DXTHREADS -DX11_DYNAMIC=\$(x11_lib) -DX11EXT_DYNAMIC=\$(x11ext_lib) -I$srcdir/include -I$srcdir/src/video"
SYSTEM_LIBS="$SYSTEM_LIBS $X_LIBS"
Nov 17, 2005
Nov 17, 2005
716
717
echo "-- dynamic libX11 -> $x11_lib"
echo "-- dynamic libX11ext -> $x11ext_lib"
Nov 5, 2005
Nov 5, 2005
718
719
720
721
722
723
724
AC_SUBST(x11_lib)
AC_SUBST(x11ext_lib)
else
CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_X11 -DXTHREADS -I$srcdir/include -I$srcdir/src/video"
SYSTEM_LIBS="$SYSTEM_LIBS $X_LIBS -lX11 -lXext"
fi
Apr 26, 2001
Apr 26, 2001
725
726
727
if test x$ac_cv_func_shmat != xyes; then
CFLAGS="$CFLAGS -DNO_SHARED_MEMORY"
fi
Nov 5, 2005
Nov 5, 2005
728
Apr 26, 2001
Apr 26, 2001
729
730
731
VIDEO_SUBDIRS="$VIDEO_SUBDIRS x11"
VIDEO_DRIVERS="$VIDEO_DRIVERS x11/libvideo_x11.la"
May 10, 2001
May 10, 2001
732
733
734
AC_ARG_ENABLE(dga,
[ --enable-dga allow use of X11 DGA code [default=yes]],
, enable_dga=yes)
Jan 31, 2006
Jan 31, 2006
735
736
if test x$enable_dga = xyes; then
VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xxf86dga"
Feb 1, 2006
Feb 1, 2006
737
VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xxf86dga/libXext_Xxf86dga.la"
Jan 31, 2006
Jan 31, 2006
738
739
740
741
742
743
744
745
746
fi
AC_ARG_ENABLE(video-dga,
[ --enable-video-dga use DGA 2.0 video driver [default=yes]],
, enable_video_dga=yes)
if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then
CFLAGS="$CFLAGS -DENABLE_DGA"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS dga"
VIDEO_DRIVERS="$VIDEO_DRIVERS dga/libvideo_dga.la"
fi
Apr 26, 2001
Apr 26, 2001
747
748
749
AC_ARG_ENABLE(video-x11-dgamouse,
[ --enable-video-x11-dgamouse use X11 DGA for mouse events [default=yes]],
, enable_video_x11_dgamouse=yes)
Jan 31, 2006
Jan 31, 2006
750
751
752
753
754
755
756
757
758
if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then
CFLAGS="$CFLAGS -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE"
fi
AC_ARG_ENABLE(video-x11-vm,
[ --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]],
, enable_video_x11_vm=yes)
if test x$enable_video_x11_vm = xyes; then
CFLAGS="$CFLAGS -DXFREE86_VM -DXFREE86_VMGAMMA"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xxf86vm"
Feb 1, 2006
Feb 1, 2006
759
VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xxf86vm/libXext_Xxf86vm.la"
Apr 26, 2001
Apr 26, 2001
760
761
762
763
764
fi
AC_ARG_ENABLE(video-x11-xv,
[ --enable-video-x11-xv use X11 XvImage extension for video [default=yes]],
, enable_video_x11_xv=yes)
if test x$enable_video_x11_xv = xyes; then
Jan 31, 2006
Jan 31, 2006
765
766
CFLAGS="$CFLAGS -DXFREE86_XV"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xv"
Feb 1, 2006
Feb 1, 2006
767
VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xv/libXext_Xv.la"
Apr 26, 2001
Apr 26, 2001
768
fi
Nov 3, 2001
Nov 3, 2001
769
770
771
772
AC_ARG_ENABLE(video-x11-xinerama,
[ --enable-video-x11-xinerama enable X11 Xinerama support [default=yes]],
, enable_video_x11_xinerama=yes)
if test x$enable_video_x11_xinerama = xyes; then
Jan 31, 2006
Jan 31, 2006
773
774
CFLAGS="$CFLAGS -DHAVE_XINERAMA"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xinerama"
Feb 1, 2006
Feb 1, 2006
775
VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xinerama/libXext_Xinerama.la"
Nov 3, 2001
Nov 3, 2001
776
fi
Nov 22, 2001
Nov 22, 2001
777
778
779
780
AC_ARG_ENABLE(video-x11-xme,
[ --enable-video-x11-xme enable Xi Graphics XME for fullscreen [default=yes]],
, enable_video_x11_xme=yes)
if test x$enable_video_x11_xme = xyes; then
Jan 31, 2006
Jan 31, 2006
781
782
783
CFLAGS="$CFLAGS -DHAVE_XIGXME"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/XME"
VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/XME/libXME.la"
Nov 22, 2001
Nov 22, 2001
784
fi
Apr 26, 2001
Apr 26, 2001
785
786
787
fi
fi
}
Feb 14, 2002
Feb 14, 2002
788
Apr 26, 2001
Apr 26, 2001
789
790
791
CheckPHOTON()
{
AC_ARG_ENABLE(video-photon,
Jun 16, 2001
Jun 16, 2001
792
[ --enable-video-photon use QNX Photon video driver [default=yes]],
Apr 26, 2001
Apr 26, 2001
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
, enable_video_photon=yes)
if test x$enable_video = xyes -a x$enable_video_photon = xyes; then
AC_MSG_CHECKING(for QNX Photon support)
video_photon=no
AC_TRY_COMPILE([
#include <Ph.h>
#include <Pt.h>
#include <photon/Pg.h>
#include <photon/PdDirect.h>
],[
PgDisplaySettings_t *visual;
],[
video_photon=yes
])
AC_MSG_RESULT($video_photon)
if test x$video_photon = xyes; then
May 10, 2001
May 10, 2001
809
CFLAGS="$CFLAGS -DENABLE_PHOTON"
Apr 26, 2001
Apr 26, 2001
810
811
812
SYSTEM_LIBS="$SYSTEM_LIBS -lph"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS photon"
VIDEO_DRIVERS="$VIDEO_DRIVERS photon/libvideo_photon.la"
Feb 14, 2002
Feb 14, 2002
813
CheckOpenGLQNX
Apr 26, 2001
Apr 26, 2001
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
fi
fi
}
dnl Find the framebuffer console includes
CheckFBCON()
{
AC_ARG_ENABLE(video-fbcon,
[ --enable-video-fbcon use framebuffer console video driver [default=yes]],
, enable_video_fbcon=yes)
if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then
AC_MSG_CHECKING(for framebuffer console support)
video_fbcon=no
AC_TRY_COMPILE([
#include <linux/fb.h>
#include <linux/kd.h>
#include <linux/keyboard.h>
],[
],[
video_fbcon=yes
])
AC_MSG_RESULT($video_fbcon)
if test x$video_fbcon = xyes; then
CFLAGS="$CFLAGS -DENABLE_FBCON"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS fbcon"
VIDEO_DRIVERS="$VIDEO_DRIVERS fbcon/libvideo_fbcon.la"
fi
fi
}
Sep 4, 2001
Sep 4, 2001
844
845
846
847
dnl Find DirectFB
CheckDirectFB()
{
AC_ARG_ENABLE(video-directfb,
Aug 9, 2003
Aug 9, 2003
848
849
[ --enable-video-directfb use DirectFB video driver [default=no]],
, enable_video_directfb=no)
Sep 4, 2001
Sep 4, 2001
850
851
852
853
854
855
856
857
858
if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
video_directfb=no
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test x$PKG_CONFIG = xno ; then
AC_MSG_WARN([*** pkg-config is required to build the DirectFB video driver.])
else
AC_MSG_CHECKING(for DirectFB support)
Aug 31, 2002
Aug 31, 2002
859
860
if ! $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
AC_MSG_ERROR([*** pkg-config too old; version 0.7 or better required.])
Sep 4, 2001
Sep 4, 2001
861
862
fi
Nov 17, 2002
Nov 17, 2002
863
DIRECTFB_REQUIRED_VERSION=0.9.15
Sep 4, 2001
Sep 4, 2001
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
if $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then
DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
video_directfb=yes
fi
fi
AC_MSG_RESULT($video_directfb)
if test x$video_directfb = xyes; then
CFLAGS="$CFLAGS -DENABLE_DIRECTFB"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS directfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS directfb/libvideo_directfb.la"
AC_SUBST(DIRECTFB_CFLAGS)
AC_SUBST(DIRECTFB_LIBS)
fi
fi
}
Jun 16, 2001
Jun 16, 2001
884
885
886
dnl See if we're running on PlayStation 2 hardware
CheckPS2GS()
{
Jun 16, 2001
Jun 16, 2001
887
888
889
AC_ARG_ENABLE(video-ps2gs,
[ --enable-video-ps2gs use PlayStation 2 GS video driver [default=yes]],
, enable_video_ps2gs=yes)
Jun 16, 2001
Jun 16, 2001
890
if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then
Jun 16, 2001
Jun 16, 2001
891
AC_MSG_CHECKING(for PlayStation 2 GS support)
Jun 16, 2001
Jun 16, 2001
892
893
894
895
896
897
898
899
video_ps2gs=no
AC_TRY_COMPILE([
#include <linux/ps2/dev.h>
#include <linux/ps2/gs.h>
],[
],[
video_ps2gs=yes
])
Jun 16, 2001
Jun 16, 2001
900
AC_MSG_RESULT($video_ps2gs)
Jun 16, 2001
Jun 16, 2001
901
902
903
904
905
906
907
908
if test x$video_ps2gs = xyes; then
CFLAGS="$CFLAGS -DENABLE_PS2GS"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS ps2gs"
VIDEO_DRIVERS="$VIDEO_DRIVERS ps2gs/libvideo_ps2gs.la"
fi
fi
}
Apr 26, 2001
Apr 26, 2001
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
dnl Find the GGI includes
CheckGGI()
{
AC_ARG_ENABLE(video-ggi,
[ --enable-video-ggi use GGI video driver [default=no]],
, enable_video_ggi=no)
if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then
AC_MSG_CHECKING(for GGI support)
video_ggi=no
AC_TRY_COMPILE([
#include <ggi/ggi.h>
#include <ggi/gii.h>
],[
],[
video_ggi=yes
])
AC_MSG_RESULT($video_ggi)
if test x$video_ggi = xyes; then
CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_GGI"
SYSTEM_LIBS="$SYSTEM_LIBS -lggi -lgii -lgg"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS ggi"
VIDEO_DRIVERS="$VIDEO_DRIVERS ggi/libvideo_ggi.la"
fi
fi
}
dnl Find the SVGAlib includes and libraries
CheckSVGA()
{
AC_ARG_ENABLE(video-svga,
[ --enable-video-svga use SVGAlib video driver [default=no]],
, enable_video_svga=no)
if test x$enable_video = xyes -a x$enable_video_svga = xyes; then
AC_MSG_CHECKING(for SVGAlib (1.4.0+) support)
video_svga=no
AC_TRY_COMPILE([
#include <vga.h>
#include <vgamouse.h>
#include <vgakeyboard.h>
],[
if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) {
exit(0);
}
],[
video_svga=yes
])
AC_MSG_RESULT($video_svga)
if test x$video_svga = xyes; then
CFLAGS="$CFLAGS -DENABLE_SVGALIB"
SYSTEM_LIBS="$SYSTEM_LIBS -lvga"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS svga"
VIDEO_DRIVERS="$VIDEO_DRIVERS svga/libvideo_svga.la"
fi
fi
}
Jun 19, 2001
Jun 19, 2001
967
968
969
970
dnl Find the VGL includes and libraries
CheckVGL()
{
AC_ARG_ENABLE(video-vgl,
Jul 16, 2003
Jul 16, 2003
971
[ --enable-video-vgl use VGL video driver [default=no]],
Jun 19, 2001
Jun 19, 2001
972
973
974
975
976
977
978
979
980
981
982
, enable_video_vgl=no)
if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then
AC_MSG_CHECKING(for libVGL support)
video_vgl=no
AC_TRY_COMPILE([
#include <sys/fbio.h>
#include <sys/consio.h>
#include <sys/kbio.h>
#include <vgl.h>
],[
VGLBitmap bitmap;
Aug 9, 2001
Aug 9, 2001
983
exit(bitmap.Bitmap);
Jun 19, 2001
Jun 19, 2001
984
985
986
987
988
989
990
991
992
993
994
995
996
997
],[
video_vgl=yes
])
AC_MSG_RESULT($video_vgl)
if test x$video_vgl = xyes; then
CFLAGS="$CFLAGS -DENABLE_VGL"
SYSTEM_LIBS="$SYSTEM_LIBS -lvgl"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS vgl"
VIDEO_DRIVERS="$VIDEO_DRIVERS vgl/libvideo_vgl.la"
fi
fi
}
Apr 26, 2001
Apr 26, 2001
998
999
1000
dnl Find the AAlib includes
CheckAAlib()
{