Mercurial > sdl-ios-xcode
annotate configure.in @ 1836:703f7268b5b1
DragonFly BSD has an older version of VGL which SDL doesn't support.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 15 May 2006 12:22:58 +0000 |
parents | 037715c96a85 |
children | 2280e314a978 |
rev | line source |
---|---|
0 | 1 dnl Process this file with autoconf to produce a configure script. |
2 AC_INIT(README) | |
1341
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
3 AC_CONFIG_HEADER(include/SDL_config.h) |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
4 AC_GNU_SOURCE |
0 | 5 |
6 dnl Set various version strings - taken gratefully from the GTk sources | |
7 # | |
8 # Making releases: | |
9 # Edit include/SDL/SDL_version.h and change the version, then: | |
10 # SDL_MICRO_VERSION += 1; | |
11 # SDL_INTERFACE_AGE += 1; | |
12 # SDL_BINARY_AGE += 1; | |
13 # if any functions have been added, set SDL_INTERFACE_AGE to 0. | |
14 # if backwards compatibility has been broken, | |
15 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0. | |
16 # | |
17 SDL_MAJOR_VERSION=1 | |
18 SDL_MINOR_VERSION=2 | |
1222
09c1408645df
Bumped the version number for the next release
Sam Lantinga <slouken@libsdl.org>
parents:
1203
diff
changeset
|
19 SDL_MICRO_VERSION=10 |
09c1408645df
Bumped the version number for the next release
Sam Lantinga <slouken@libsdl.org>
parents:
1203
diff
changeset
|
20 SDL_INTERFACE_AGE=3 |
09c1408645df
Bumped the version number for the next release
Sam Lantinga <slouken@libsdl.org>
parents:
1203
diff
changeset
|
21 SDL_BINARY_AGE=10 |
0 | 22 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION |
23 | |
24 AC_SUBST(SDL_MAJOR_VERSION) | |
25 AC_SUBST(SDL_MINOR_VERSION) | |
26 AC_SUBST(SDL_MICRO_VERSION) | |
27 AC_SUBST(SDL_INTERFACE_AGE) | |
28 AC_SUBST(SDL_BINARY_AGE) | |
29 AC_SUBST(SDL_VERSION) | |
30 | |
31 # libtool versioning | |
32 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION | |
33 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE` | |
34 LT_REVISION=$SDL_INTERFACE_AGE | |
35 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE` | |
36 | |
37 AC_SUBST(LT_RELEASE) | |
38 AC_SUBST(LT_CURRENT) | |
39 AC_SUBST(LT_REVISION) | |
40 AC_SUBST(LT_AGE) | |
41 | |
1550 | 42 dnl Detect the canonical build and host environments |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
43 AC_CONFIG_AUX_DIRS($srcdir/build-scripts) |
1550 | 44 AC_CANONICAL_HOST |
1354
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
45 AC_C_BIGENDIAN |
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
46 if test x$ac_cv_c_bigendian = xyes; then |
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
47 AC_DEFINE(SDL_BYTEORDER, 4321) |
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
48 else |
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
49 AC_DEFINE(SDL_BYTEORDER, 1234) |
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
50 fi |
0 | 51 |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
52 dnl Set up the compiler and linker flags |
1571
0160eb7cccee
Add /usr/local to the build paths by default
Sam Lantinga <slouken@libsdl.org>
parents:
1569
diff
changeset
|
53 INCLUDE="-I$srcdir/include" |
1373
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
54 if test x$srcdir != x.; then |
1742
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
55 # Remove SDL_config.h from the source directory, since it's the |
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
56 # default one, and we want to include the one that we generate. |
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
57 if test -f $srcdir/include/SDL_config.h; then |
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
58 rm $srcdir/include/SDL_config.h |
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
59 fi |
1571
0160eb7cccee
Add /usr/local to the build paths by default
Sam Lantinga <slouken@libsdl.org>
parents:
1569
diff
changeset
|
60 INCLUDE="-Iinclude $INCLUDE" |
1373
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
61 fi |
1550 | 62 case "$host" in |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
63 *-*-cygwin*) |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
64 # We build SDL on cygwin without the UNIX emulation layer |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
65 BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
66 BASE_LDFLAGS="-mno-cygwin" |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
67 ;; |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
68 *) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
69 BASE_CFLAGS="-D_GNU_SOURCE=1" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
70 BASE_LDFLAGS="" |
1389
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
71 ;; |
ce65f014190a
Fixed X11 library detection
Sam Lantinga <slouken@libsdl.org>
parents:
1384
diff
changeset
|
72 esac |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
73 BUILD_CFLAGS="$CFLAGS $CPPFLAGS" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
74 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
75 BUILD_LDFLAGS="$LDFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
76 EXTRA_LDFLAGS="$BASE_LDFLAGS" |
1823
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
77 # I can't remember why I added this. I'm sure it'll come to me... |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
78 #for path in /usr/local; do |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
79 # if test -d $path/include; then |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
80 # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include" |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
81 # fi |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
82 # if test -d $path/lib; then |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
83 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib" |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
84 # fi |
d2b0f8b18ab8
Whoops, need a space after dnl to make it meaningful. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1822
diff
changeset
|
85 #done |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
86 SDL_CFLAGS="$BASE_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
87 SDL_LIBS="-lSDL $BASE_LDFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
88 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
89 CFLAGS="$CFLAGS $EXTRA_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
90 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" |
1373
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
91 |
0 | 92 dnl Check for tools |
93 AC_LIBTOOL_WIN32_DLL | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
94 AC_PROG_LIBTOOL |
0 | 95 AC_PROG_CC |
200 | 96 AC_PROG_CXX |
0 | 97 AC_PROG_INSTALL |
1380
d94b080ff6ce
Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
1379
diff
changeset
|
98 AC_PROG_MAKE_SET |
1341
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
99 |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
100 dnl Check for compiler characteristics |
1341
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
101 AC_C_CONST |
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
102 AC_C_INLINE |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
103 AC_C_VOLATILE |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
104 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
105 dnl See whether we are allowed to use the system C library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
106 AC_ARG_ENABLE(libc, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
107 AC_HELP_STRING([--enable-libc], [Use the system C library [[default=yes]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
108 , enable_libc=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
109 if test x$enable_libc = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
110 AC_DEFINE(HAVE_LIBC) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
111 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
112 dnl Check for C library headers |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
113 AC_HEADER_STDC |
1501
73dc5d39bbf8
Added UTF-8 <-> UTF-16 <-> UTF-32 <-> UCS-2 <-> UCS-4 conversion capability
Sam Lantinga <slouken@libsdl.org>
parents:
1477
diff
changeset
|
114 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 math.h iconv.h signal.h) |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
115 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
116 dnl Check for typedefs, structures, etc. |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
117 AC_TYPE_SIZE_T |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
118 if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
119 AC_CHECK_TYPE(int64_t) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
120 if test x$ac_cv_type_int64_t = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
121 AC_DEFINE(SDL_HAS_64BIT_TYPE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
122 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
123 have_inttypes=yes |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
124 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
125 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
126 dnl Checks for library functions. |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
127 AC_FUNC_ALLOCA |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
128 AC_FUNC_MEMCMP |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
129 if test x$ac_cv_func_memcmp_working = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
130 AC_DEFINE(HAVE_MEMCMP) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
131 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
132 AC_FUNC_STRTOD |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
133 if test x$ac_cv_func_strtod = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
134 AC_DEFINE(HAVE_STRTOD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
135 fi |
1512 | 136 AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep) |
1373
04499d3e1b6b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1370
diff
changeset
|
137 |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
138 AC_CHECK_LIB(m, pow, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"]) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
139 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
140 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
141 if test x$have_inttypes != xyes; then |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
142 AC_CHECK_SIZEOF(char, 1) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
143 AC_CHECK_SIZEOF(short, 2) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
144 AC_CHECK_SIZEOF(int, 4) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
145 AC_CHECK_SIZEOF(long, 4) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
146 AC_CHECK_SIZEOF(long long, 8) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
147 if test x$ac_cv_sizeof_char = x1; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
148 AC_DEFINE(int8_t, signed char) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
149 AC_DEFINE(uint8_t, unsigned char) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
150 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
151 if test x$ac_cv_sizeof_short = x2; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
152 AC_DEFINE(int16_t, signed short) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
153 AC_DEFINE(uint16_t, unsigned short) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
154 else |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
155 if test x$ac_cv_sizeof_int = x2; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
156 AC_DEFINE(int16_t, signed int) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
157 AC_DEFINE(uint16_t, unsigned int) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
158 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
159 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
160 if test x$ac_cv_sizeof_int = x4; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
161 AC_DEFINE(int32_t, signed int) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
162 AC_DEFINE(uint32_t, unsigned int) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
163 else |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
164 if test x$ac_cv_sizeof_long = x4; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
165 AC_DEFINE(int32_t, signed long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
166 AC_DEFINE(uint32_t, unsigned long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
167 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
168 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
169 if test x$ac_cv_sizeof_long = x8; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
170 AC_DEFINE(int64_t, signed long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
171 AC_DEFINE(uint64_t, unsigned long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
172 AC_DEFINE(SDL_HAS_64BIT_TYPE) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
173 else |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
174 if test x$ac_cv_sizeof_long_long = x8; then |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
175 AC_DEFINE(int64_t, signed long long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
176 AC_DEFINE(uint64_t, unsigned long long) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
177 AC_DEFINE(SDL_HAS_64BIT_TYPE) |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
178 fi |
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
179 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
180 AC_DEFINE(size_t, unsigned int) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
181 AC_DEFINE(uintptr_t, unsigned long) |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1352
diff
changeset
|
182 fi |
1341
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
183 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
184 # Standard C sources |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
185 SOURCES="$SOURCES $srcdir/src/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
186 SOURCES="$SOURCES $srcdir/src/audio/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
187 SOURCES="$SOURCES $srcdir/src/cdrom/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
188 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
189 SOURCES="$SOURCES $srcdir/src/events/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
190 SOURCES="$SOURCES $srcdir/src/file/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
191 SOURCES="$SOURCES $srcdir/src/joystick/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
192 SOURCES="$SOURCES $srcdir/src/stdlib/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
193 SOURCES="$SOURCES $srcdir/src/thread/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
194 SOURCES="$SOURCES $srcdir/src/timer/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
195 SOURCES="$SOURCES $srcdir/src/video/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
196 |
0 | 197 dnl Enable/disable various subsystems of the SDL library |
198 | |
199 AC_ARG_ENABLE(audio, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
200 AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [[default=yes]]]), |
0 | 201 , enable_audio=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
202 if test x$enable_audio != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
203 AC_DEFINE(SDL_AUDIO_DISABLED) |
0 | 204 fi |
205 AC_ARG_ENABLE(video, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
206 AC_HELP_STRING([--enable-video], [Enable the video subsystem [[default=yes]]]), |
0 | 207 , enable_video=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
208 if test x$enable_video != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
209 AC_DEFINE(SDL_VIDEO_DISABLED) |
0 | 210 fi |
211 AC_ARG_ENABLE(events, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
212 AC_HELP_STRING([--enable-events], [Enable the events subsystem [[default=yes]]]), |
0 | 213 , enable_events=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
214 if test x$enable_events != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
215 AC_DEFINE(SDL_EVENTS_DISABLED) |
0 | 216 fi |
217 AC_ARG_ENABLE(joystick, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
218 AC_HELP_STRING([--enable-joystick], [Enable the joystick subsystem [[default=yes]]]), |
0 | 219 , enable_joystick=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
220 if test x$enable_joystick != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
221 AC_DEFINE(SDL_JOYSTICK_DISABLED) |
0 | 222 fi |
223 AC_ARG_ENABLE(cdrom, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
224 AC_HELP_STRING([--enable-cdrom], [Enable the cdrom subsystem [[default=yes]]]), |
0 | 225 , enable_cdrom=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
226 if test x$enable_cdrom != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
227 AC_DEFINE(SDL_CDROM_DISABLED) |
0 | 228 fi |
229 AC_ARG_ENABLE(threads, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
230 AC_HELP_STRING([--enable-threads], [Enable the threading subsystem [[default=yes]]]), |
0 | 231 , enable_threads=yes) |
232 if test x$enable_threads != xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
233 AC_DEFINE(SDL_THREADS_DISABLED) |
0 | 234 fi |
235 AC_ARG_ENABLE(timers, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
236 AC_HELP_STRING([--enable-timers], [Enable the timer subsystem [[default=yes]]]), |
0 | 237 , enable_timers=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
238 if test x$enable_timers != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
239 AC_DEFINE(SDL_TIMERS_DISABLED) |
0 | 240 fi |
241 AC_ARG_ENABLE(file, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
242 AC_HELP_STRING([--enable-file], [Enable the file subsystem [[default=yes]]]), |
0 | 243 , enable_file=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
244 if test x$enable_file != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
245 AC_DEFINE(SDL_FILE_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
246 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
247 AC_ARG_ENABLE(loadso, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
248 AC_HELP_STRING([--enable-loadso], [Enable the shared object loading subsystem [[default=yes]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
249 , enable_loadso=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
250 if test x$enable_loadso != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
251 AC_DEFINE(SDL_LOADSO_DISABLED) |
0 | 252 fi |
740
e70f80e98f60
Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
253 AC_ARG_ENABLE(cpuinfo, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
254 AC_HELP_STRING([--enable-cpuinfo], [Enable the cpuinfo subsystem [[default=yes]]]), |
740
e70f80e98f60
Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
255 , enable_cpuinfo=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
256 if test x$enable_cpuinfo != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
257 AC_DEFINE(SDL_CPUINFO_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
258 fi |
1402
d910939febfa
Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
1399
diff
changeset
|
259 AC_ARG_ENABLE(assembly, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
260 AC_HELP_STRING([--enable-assembly], [Enable assembly routines [[default=yes]]]), |
1402
d910939febfa
Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
1399
diff
changeset
|
261 , enable_assembly=yes) |
d910939febfa
Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
1399
diff
changeset
|
262 if test x$enable_assembly = xyes; then |
d910939febfa
Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
1399
diff
changeset
|
263 AC_DEFINE(SDL_ASSEMBLY_ROUTINES) |
740
e70f80e98f60
Actually hook the cpuinfo module into the library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
264 fi |
0 | 265 |
266 dnl See if the OSS audio interface is supported | |
267 CheckOSS() | |
268 { | |
269 AC_ARG_ENABLE(oss, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
270 AC_HELP_STRING([--enable-oss], [support the OSS audio API [[default=yes]]]), |
0 | 271 , enable_oss=yes) |
272 if test x$enable_audio = xyes -a x$enable_oss = xyes; then | |
273 AC_MSG_CHECKING(for OSS audio support) | |
274 have_oss=no | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
275 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
|
276 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
277 #include <sys/soundcard.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
278 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
279 int arg = SNDCTL_DSP_SETFRAGMENT; |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
280 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
281 have_oss=yes |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
282 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
283 fi |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
284 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
|
285 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
286 #include <soundcard.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
287 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
288 int arg = SNDCTL_DSP_SETFRAGMENT; |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
289 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
290 have_oss=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
291 AC_DEFINE(SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H) |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
292 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
293 fi |
0 | 294 AC_MSG_RESULT($have_oss) |
295 if test x$have_oss = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
296 AC_DEFINE(SDL_AUDIO_DRIVER_OSS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
297 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
298 SOURCES="$SOURCES $srcdir/src/audio/dma/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
299 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
300 |
1565 | 301 # We may need to link with ossaudio emulation library |
1550 | 302 case "$host" in |
1383 | 303 *-*-openbsd*|*-*-netbsd*) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
304 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";; |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
305 esac |
0 | 306 fi |
307 fi | |
308 } | |
309 | |
310 dnl See if the ALSA audio interface is supported | |
311 CheckALSA() | |
312 { | |
313 AC_ARG_ENABLE(alsa, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
314 AC_HELP_STRING([--enable-alsa], [support the ALSA audio API [[default=yes]]]), |
0 | 315 , enable_alsa=yes) |
316 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then | |
948
ac488ad4ef1d
Don't fail if we don't have ALSA available
Sam Lantinga <slouken@libsdl.org>
parents:
939
diff
changeset
|
317 AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no) |
1009
027688378762
No really, don't link with the ALSA library!
Sam Lantinga <slouken@libsdl.org>
parents:
991
diff
changeset
|
318 # Restore all flags from before the ALSA detection runs |
027688378762
No really, don't link with the ALSA library!
Sam Lantinga <slouken@libsdl.org>
parents:
991
diff
changeset
|
319 CFLAGS="$alsa_save_CFLAGS" |
027688378762
No really, don't link with the ALSA library!
Sam Lantinga <slouken@libsdl.org>
parents:
991
diff
changeset
|
320 LDFLAGS="$alsa_save_LDFLAGS" |
027688378762
No really, don't link with the ALSA library!
Sam Lantinga <slouken@libsdl.org>
parents:
991
diff
changeset
|
321 LIBS="$alsa_save_LIBS" |
354
30935e76acb5
Updated ALSA audio support for ALSA 0.9
Sam Lantinga <slouken@libsdl.org>
parents:
350
diff
changeset
|
322 if test x$have_alsa = xyes; then |
865
92615154bb68
Date: Sun, 29 Feb 2004 15:14:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
856
diff
changeset
|
323 AC_ARG_ENABLE(alsa-shared, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
324 AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [[default=yes]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
325 , enable_alsa_shared=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
326 if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
327 if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
328 ALSA_LIBS="-L/lib $ALSA_LIBS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
329 elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
330 ALSA_LIBS="-L/usr/lib $ALSA_LIBS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
331 elif test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
332 ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
333 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
334 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
335 alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'` |
1606
d91c02552377
ls shouldn't barf if it gets passed a path starting with - (e.g. -lesd)
Sam Lantinga <slouken@libsdl.org>
parents:
1602
diff
changeset
|
336 alsa_lib=`ls -- $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
337 echo "-- $alsa_lib_spec -> $alsa_lib" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
338 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
339 AC_DEFINE(SDL_AUDIO_DRIVER_ALSA) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
340 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
341 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
342 if test x$have_loadso != xyes && \ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
343 test x$enable_alsa_shared = xyes; then |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
344 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ALSA loading]) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
345 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
346 if test x$have_loadso = xyes && \ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
347 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
348 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ALSA_DYNAMIC, "$alsa_lib") |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
349 else |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
350 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
351 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
352 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
353 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
354 fi |
0 | 355 } |
356 | |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
357 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
|
358 CheckDMEDIA() |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
359 { |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
360 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
|
361 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
|
362 have_dmedia=no |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
363 AC_TRY_COMPILE([ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
364 #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
|
365 ],[ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
366 ALport audio_port; |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
367 ],[ |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
368 have_dmedia=yes |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
369 ]) |
935
f8d5ddc7aef1
Audio improvements from Max Horn, including a new CoreAudio driver for MacOSX
Sam Lantinga <slouken@libsdl.org>
parents:
886
diff
changeset
|
370 AC_MSG_RESULT($have_dmedia) |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
371 # 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
|
372 if test x$have_dmedia = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
373 AC_DEFINE(SDL_AUDIO_DRIVER_DMEDIA) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
374 SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
375 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laudio" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
376 have_audio=yes |
148
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
377 fi |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
378 fi |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
379 } |
8758b8d42cd9
Audio subsystem no longer assumes sun audio API on UNIX systems
Sam Lantinga <slouken@libsdl.org>
parents:
144
diff
changeset
|
380 |
1438
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
381 dnl Check whether we want to use Tru64 UNIX native audio or not |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
382 CheckMME() |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
383 { |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
384 dnl Make sure we are running on an Tru64 UNIX |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
385 case $ARCH in |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
386 osf) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
387 ;; |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
388 *) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
389 return |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
390 ;; |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
391 esac |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
392 if test x$enable_audio = xyes; then |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
393 AC_MSG_CHECKING(for MME audio support) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
394 MME_CFLAGS="-I/usr/include/mme" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
395 MME_LIBS="-lmme" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
396 have_mme=no |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
397 save_CFLAGS="$CFLAGS" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
398 CFLAGS="$CFLAGS $MME_CFLAGS" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
399 AC_TRY_COMPILE([ |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
400 #include <mme_api.h> |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
401 ],[ |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
402 HWAVEOUT sound; |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
403 ],[ |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
404 have_mme=yes |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
405 ]) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
406 CFLAGS="$save_CFLAGS" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
407 AC_MSG_RESULT($have_mme) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
408 # Set up files for the audio library |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
409 if test x$have_mme = xyes; then |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
410 AC_DEFINE(SDL_AUDIO_DRIVER_MMEAUDIO) |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
411 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
412 EXTRA_CFLAGS="$EXTRA_CFLAGS $MME_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
413 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MME_LIBS" |
1438
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
414 have_audio=yes |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
415 fi |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
416 fi |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
417 } |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
418 |
0 | 419 dnl Find the ESD includes and libraries |
420 CheckESD() | |
421 { | |
422 AC_ARG_ENABLE(esd, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
423 AC_HELP_STRING([--enable-esd], [support the Enlightened Sound Daemon [[default=yes]]]), |
0 | 424 , enable_esd=yes) |
425 if test x$enable_audio = xyes -a x$enable_esd = xyes; then | |
948
ac488ad4ef1d
Don't fail if we don't have ALSA available
Sam Lantinga <slouken@libsdl.org>
parents:
939
diff
changeset
|
426 AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no) |
ac488ad4ef1d
Don't fail if we don't have ALSA available
Sam Lantinga <slouken@libsdl.org>
parents:
939
diff
changeset
|
427 if test x$have_esd = xyes; then |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
428 AC_ARG_ENABLE(esd-shared, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
429 AC_HELP_STRING([--enable-esd-shared], [dynamically load ESD audio support [[default=yes]]]), |
678
7f691fa4c1c7
Turn dynamic loading of esd and arts on by default
Sam Lantinga <slouken@libsdl.org>
parents:
675
diff
changeset
|
430 , enable_esd_shared=yes) |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
431 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'` |
1606
d91c02552377
ls shouldn't barf if it gets passed a path starting with - (e.g. -lesd)
Sam Lantinga <slouken@libsdl.org>
parents:
1602
diff
changeset
|
432 esd_lib=`ls -- $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
433 echo "-- $esd_lib_spec -> $esd_lib" |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
434 |
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
435 AC_DEFINE(SDL_AUDIO_DRIVER_ESD) |
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
436 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
437 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS" |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
438 if test x$have_loadso != xyes && \ |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
439 test x$enable_esd_shared = xyes; then |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
440 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ESD loading]) |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
441 fi |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
442 if test x$have_loadso = xyes && \ |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
443 test x$enable_esd_shared = xyes && test x$esd_lib != x; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
444 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib") |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
445 else |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
446 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS" |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
447 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
448 have_audio=yes |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
449 fi |
0 | 450 fi |
451 } | |
452 | |
453 CheckARTSC() | |
454 { | |
455 AC_ARG_ENABLE(arts, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
456 AC_HELP_STRING([--enable-arts], [support the Analog Real Time Synthesizer [[default=yes]]]), |
0 | 457 , enable_arts=yes) |
458 if test x$enable_audio = xyes -a x$enable_arts = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
459 AC_PATH_PROG(ARTSCONFIG, artsc-config) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
460 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then |
0 | 461 : # arts isn't installed |
462 else | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
463 ARTS_CFLAGS=`$ARTSCONFIG --cflags` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
464 ARTS_LIBS=`$ARTSCONFIG --libs` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
465 ARTS_PREFIX=`$ARTSCONFIG --arts-prefix` |
0 | 466 AC_MSG_CHECKING(for aRts development environment) |
467 audio_arts=no | |
468 save_CFLAGS="$CFLAGS" | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
469 CFLAGS="$CFLAGS $ARTS_CFLAGS" |
0 | 470 AC_TRY_COMPILE([ |
471 #include <artsc.h> | |
472 ],[ | |
473 arts_stream_t stream; | |
474 ],[ | |
475 audio_arts=yes | |
476 ]) | |
477 CFLAGS="$save_CFLAGS" | |
478 AC_MSG_RESULT($audio_arts) | |
479 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
|
480 AC_ARG_ENABLE(arts-shared, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
481 AC_HELP_STRING([--enable-arts-shared], [dynamically load aRts audio support [[default=yes]]]), |
678
7f691fa4c1c7
Turn dynamic loading of esd and arts on by default
Sam Lantinga <slouken@libsdl.org>
parents:
675
diff
changeset
|
482 , enable_arts_shared=yes) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
483 arts_lib_spec="$ARTS_PREFIX/lib/libartsc.so.*" |
1606
d91c02552377
ls shouldn't barf if it gets passed a path starting with - (e.g. -lesd)
Sam Lantinga <slouken@libsdl.org>
parents:
1602
diff
changeset
|
484 arts_lib=`ls -- $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
485 echo "-- $arts_lib_spec -> $arts_lib" |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
486 |
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
487 AC_DEFINE(SDL_AUDIO_DRIVER_ARTS) |
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
488 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
489 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS" |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
490 if test x$have_loadso != xyes && \ |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
491 test x$enable_arts_shared = xyes; then |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
492 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ARTS loading]) |
296
fab1ddc4d7bf
Removed the API changes to preserve SDL 1.2 stability
Sam Lantinga <slouken@libsdl.org>
parents:
295
diff
changeset
|
493 fi |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
494 if test x$have_loadso = xyes && \ |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
495 test x$enable_arts_shared = xyes && test x$arts_lib != x; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
496 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib") |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
497 else |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
498 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS" |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
499 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
500 have_audio=yes |
0 | 501 fi |
502 fi | |
503 fi | |
504 } | |
505 | |
506 dnl See if the NAS audio interface is supported | |
507 CheckNAS() | |
508 { | |
509 AC_ARG_ENABLE(nas, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
510 AC_HELP_STRING([--enable-nas], [support the NAS audio API [[default=yes]]]), |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
511 , enable_nas=yes) |
0 | 512 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
|
513 AC_MSG_CHECKING(for NAS audio support) |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
514 have_nas=no |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
515 if test -r /usr/X11R6/include/audio/audiolib.h; then |
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
516 have_nas=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
517 NAS_CFLAGS="-I/usr/X11R6/include/" |
1520
5d264facfd03
Add the NAS library directory, since X11 is dynamically loaded now...
Sam Lantinga <slouken@libsdl.org>
parents:
1512
diff
changeset
|
518 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt" |
605
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
519 |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
520 dnl On IRIX, the NAS includes are in a different directory, |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
521 dnl and libnas must be explicitly linked in |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
522 |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
523 elif test -r /usr/freeware/include/nas/audiolib.h; then |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
524 have_nas=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
525 NAS_LIBS="-lnas -lXt" |
41
8de9e8baaecc
*** empty log message ***
Sam Lantinga <slouken@lokigames.com>
parents:
39
diff
changeset
|
526 fi |
605
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
599
diff
changeset
|
527 AC_MSG_RESULT($have_nas) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
528 if test x$have_nas = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
529 AC_DEFINE(SDL_AUDIO_DRIVER_NAS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
530 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
531 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
532 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
533 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
534 fi |
0 | 535 fi |
536 } | |
537 | |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
538 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
|
539 CheckDiskAudio() |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
540 { |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
541 AC_ARG_ENABLE(diskaudio, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
542 AC_HELP_STRING([--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
|
543 , enable_diskaudio=yes) |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
544 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
545 AC_DEFINE(SDL_AUDIO_DRIVER_DISK) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
546 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c" |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
547 fi |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
548 } |
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
549 |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
550 dnl rcg03142006 See if the user wants the dummy audio driver... |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
551 CheckDummyAudio() |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
552 { |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
553 AC_ARG_ENABLE(dummyaudio, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
554 AC_HELP_STRING([--enable-dummyaudio], [support the dummy audio driver [[default=yes]]]), |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
555 , enable_dummyaudio=yes) |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
556 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
557 AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY) |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
558 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c" |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
559 fi |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
560 } |
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
561 |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
562 dnl Set up the Atari Audio driver |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
563 CheckAtariAudio() |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
564 { |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
565 AC_ARG_ENABLE(mintaudio, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
566 AC_HELP_STRING([--enable-mintaudio], [support Atari audio driver [[default=yes]]]), |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
567 , enable_mintaudio=yes) |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
568 if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
569 mintaudio=no |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
570 AC_CHECK_HEADER(mint/falcon.h, have_mint_falcon_hdr=yes) |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
571 if test x$have_mint_falcon_hdr = xyes; then |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
572 mintaudio=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
573 AC_DEFINE(SDL_AUDIO_DRIVER_MINT) |
1364 | 574 SOURCES="$SOURCES $srcdir/src/audio/mint/*.c" |
1477
577b41f7dc1d
Add missing asm source files
Patrice Mandin <patmandin@gmail.com>
parents:
1468
diff
changeset
|
575 SOURCES="$SOURCES $srcdir/src/audio/mint/*.S" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
576 have_audio=yes |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
577 fi |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
578 fi |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
579 } |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
580 |
0 | 581 dnl See if we can use x86 assembly blitters |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
582 # NASM is available from: http://nasm.sourceforge.net |
0 | 583 CheckNASM() |
584 { | |
585 dnl Make sure we are running on an x86 platform | |
1550 | 586 case $host in |
0 | 587 i?86*) |
588 ;; | |
589 *) | |
590 # Nope, bail early. | |
591 return | |
592 ;; | |
593 esac | |
594 dnl Check for NASM (for assembly blit routines) | |
595 AC_ARG_ENABLE(nasm, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
596 AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [[default=yes]]]), |
0 | 597 , enable_nasm=yes) |
1402
d910939febfa
Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
1399
diff
changeset
|
598 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then |
0 | 599 AC_PATH_PROG(NASM, nasm) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
600 if test x$NASM != x -a x$NASM != x'"$NASM"'; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
601 AC_DEFINE(SDL_HERMES_BLITTERS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
602 SOURCES="$SOURCES $srcdir/src/hermes/*.asm" |
1566
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
603 if test x$NASMFLAGS = x; then |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
604 case $ARCH in |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
605 win32) |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
606 NASMFLAGS="-f win32" |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
607 ;; |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
608 openbsd) |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
609 NASMFLAGS="-f aoutb" |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
610 ;; |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
611 *) |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
612 NASMFLAGS="-f elf" |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
613 ;; |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
614 esac |
5bc2a95f9dcf
Allow adding to the INCLUDE path
Sam Lantinga <slouken@libsdl.org>
parents:
1565
diff
changeset
|
615 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
616 AC_SUBST(NASM) |
0 | 617 AC_SUBST(NASMFLAGS) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
618 |
1550 | 619 case "$host" in |
886
05c551e5bc64
Date: Sat, 24 Apr 2004 15:13:32 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
884
diff
changeset
|
620 # this line is needed for QNX, because it's not defined the __ELF__ |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
621 *-*-qnx*) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
622 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";; |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
623 *-*-solaris*) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
624 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";; |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
625 esac |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
626 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
627 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
628 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
629 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
630 dnl Check for altivec instruction support using gas syntax |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
631 CheckAltivec() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
632 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
633 AC_ARG_ENABLE(altivec, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
634 AC_HELP_STRING([--enable-altivec], [use altivec assembly blitters on PPC [[default=yes]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
635 , enable_altivec=yes) |
1402
d910939febfa
Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
1399
diff
changeset
|
636 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_altivec = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
637 have_altivec_h_hdr=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
638 AC_CHECK_HEADER(altivec.h, have_altivec_h_hdr=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
639 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
640 save_CFLAGS="$CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
641 have_gcc_altivec=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
642 AC_MSG_CHECKING(for Altivec with GCC -maltivec option) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
643 altivec_CFLAGS="-maltivec" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
644 CFLAGS="$save_CFLAGS $altivec_CFLAGS" |
886
05c551e5bc64
Date: Sat, 24 Apr 2004 15:13:32 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
884
diff
changeset
|
645 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
646 if test x$have_altivec_h_hdr = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
647 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
648 #include <altivec.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
649 vector unsigned int vzero() { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
650 return vec_splat_u32(0); |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
651 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
652 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
653 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
654 have_gcc_altivec=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
655 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
656 AC_MSG_RESULT($have_gcc_altivec) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
657 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
658 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
659 vector unsigned int vzero() { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
660 return vec_splat_u32(0); |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
661 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
662 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
663 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
664 have_gcc_altivec=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
665 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
666 AC_MSG_RESULT($have_gcc_altivec) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
667 fi |
886
05c551e5bc64
Date: Sat, 24 Apr 2004 15:13:32 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
884
diff
changeset
|
668 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
669 if test x$have_gcc_altivec = xno; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
670 AC_MSG_CHECKING(for Altivec with GCC -faltivec option) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
671 altivec_CFLAGS="-faltivec" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
672 CFLAGS="$save_CFLAGS $altivec_CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
673 if test x$have_altivec_h_hdr = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
674 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
675 #include <altivec.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
676 vector unsigned int vzero() { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
677 return vec_splat_u32(0); |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
678 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
679 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
680 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
681 have_gcc_altivec=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
682 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
683 AC_MSG_RESULT($have_gcc_altivec) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
684 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
685 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
686 vector unsigned int vzero() { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
687 return vec_splat_u32(0); |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
688 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
689 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
690 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
691 have_gcc_altivec=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
692 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
693 AC_MSG_RESULT($have_gcc_altivec) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
694 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
695 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
696 CFLAGS="$save_CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
697 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
698 if test x$have_gcc_altivec = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
699 AC_DEFINE(SDL_ALTIVEC_BLITTERS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
700 if test x$have_altivec_h_hdr = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
701 AC_DEFINE(HAVE_ALTIVEC_H) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
702 fi |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
703 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS" |
0 | 704 fi |
705 fi | |
706 } | |
707 | |
1573
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
708 dnl See if GCC's -fvisibility=hidden is supported (gcc4 and later, usually). |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
709 dnl Details of this flag are here: http://gcc.gnu.org/wiki/Visibility |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
710 CheckVisibilityHidden() |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
711 { |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
712 AC_MSG_CHECKING(for GCC -fvisibility=hidden option) |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
713 have_gcc_fvisibility=no |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
714 |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
715 visibility_CFLAGS="-fvisibility=hidden" |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
716 save_CFLAGS="$CFLAGS" |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
717 CFLAGS="$save_CFLAGS $visibility_CFLAGS" |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
718 AC_TRY_COMPILE([ |
1745
741dc4e89f3a
Only use -fvisibility=hidden if SDL will define some symbols as available. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1742
diff
changeset
|
719 #if !defined(__GNUC__) || __GNUC__ < 4 |
741dc4e89f3a
Only use -fvisibility=hidden if SDL will define some symbols as available. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1742
diff
changeset
|
720 #error SDL only uses visibility attributes in GCC 4 or newer |
741dc4e89f3a
Only use -fvisibility=hidden if SDL will define some symbols as available. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1742
diff
changeset
|
721 #endif |
1573
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
722 ],[ |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
723 ],[ |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
724 have_gcc_fvisibility=yes |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
725 ]) |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
726 AC_MSG_RESULT($have_gcc_fvisibility) |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
727 CFLAGS="$save_CFLAGS" |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
728 |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
729 if test x$have_gcc_fvisibility = xyes; then |
1574
0fd72308659e
Default to use the visibility attribute, on gcc (is this okay?)
Sam Lantinga <slouken@libsdl.org>
parents:
1573
diff
changeset
|
730 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS" |
1573
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
731 fi |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
732 } |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
733 |
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
734 |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
735 dnl Do the iPod thing |
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
736 CheckIPod() |
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
737 { |
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
738 AC_ARG_ENABLE(ipod, |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
739 AC_HELP_STRING([--enable-ipod], [configure SDL to work with iPodLinux [default=yes on arm-elf]]), |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
740 , enable_ipod=yes) |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
741 |
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
742 if test x$enable_ipod = xyes; then |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
743 EXTRA_CFLAGS="$EXTRA_CFLAGS -DIPOD" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
744 AC_DEFINE(SDL_VIDEO_DRIVER_IPOD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
745 SOURCES="$SOURCES $srcdir/src/video/ipod/*.c" |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
746 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
747 } |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
748 |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
749 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
|
750 CheckNANOX() |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
751 { |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
752 AC_ARG_ENABLE(video-nanox, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
753 AC_HELP_STRING([--enable-video-nanox], [use nanox video driver [[default=no]]]), |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
754 , enable_video_nanox=no) |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
755 |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
756 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
757 AC_ARG_ENABLE(nanox-debug, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
758 AC_HELP_STRING([--enable-nanox-debug], [print debug messages [[default=no]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
759 , enable_nanox_debug=no) |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
760 if test x$enable_nanox_debug = xyes; then |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
761 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DEBUG" |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
762 fi |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
763 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
764 AC_ARG_ENABLE(nanox-share-memory, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
765 AC_HELP_STRING([--enable-nanox-share-memory], [use share memory [[default=no]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
766 , enable_nanox_share_memory=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
767 if test x$enable_nanox_share_memory = xyes; then |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
768 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNANOX_SHARE_MEMORY" |
471
26dafefeebb2
Date: Sat, 24 Aug 2002 22:20:01 -0600
Sam Lantinga <slouken@libsdl.org>
parents:
436
diff
changeset
|
769 fi |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
770 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
771 AC_ARG_ENABLE(nanox_direct_fb, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
772 AC_HELP_STRING([--enable-nanox-direct-fb], [use direct framebuffer access [[default=no]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
773 , enable_nanox_direct_fb=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
774 if test x$enable_nanox_direct_fb = xyes; then |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
775 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
776 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
777 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
778 AC_DEFINE(SDL_VIDEO_DRIVER_NANOX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
779 SOURCES="$SOURCES $srcdir/src/video/nanox/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
780 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lnano-X" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
781 have_video=yes |
292
eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Sam Lantinga <slouken@libsdl.org>
parents:
286
diff
changeset
|
782 fi |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
783 } |
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
784 |
0 | 785 dnl Find the X11 include and library directories |
786 CheckX11() | |
787 { | |
788 AC_ARG_ENABLE(video-x11, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
789 AC_HELP_STRING([--enable-video-x11], [use X11 video driver [[default=yes]]]), |
0 | 790 , enable_video_x11=yes) |
791 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then | |
1806
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
792 case "$host" in |
1807 | 793 *-*-darwin*) |
794 # This isn't necessary for X11, but fixes GLX detection | |
1808
3e5029051a6d
Only set Mac OS X default if both parameters are left default
Sam Lantinga <slouken@libsdl.org>
parents:
1807
diff
changeset
|
795 if test "x$x_includes" = xNONE && test "x$x_libraries" = xNONE; then |
1806
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
796 x_includes="/usr/X11R6/include" |
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
797 x_libraries="/usr/X11R6/lib" |
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
798 fi |
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
799 ;; |
8baf6641cd57
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
Sam Lantinga <slouken@libsdl.org>
parents:
1799
diff
changeset
|
800 esac |
0 | 801 AC_PATH_X |
802 AC_PATH_XTRA | |
803 if test x$have_x = xyes; then | |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
804 AC_ARG_ENABLE(x11-shared, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
805 AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [[default=yes]]]), |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
806 , enable_x11_shared=yes) |
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
807 |
1550 | 808 case "$host" in |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
809 *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs... |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
810 x11_lib='/usr/X11R6/lib/libX11.6.dylib' |
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
811 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib' |
1592
802de24df8d9
Lines swapped to match ordering elsewhere
Sam Lantinga <slouken@libsdl.org>
parents:
1589
diff
changeset
|
812 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib' |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
813 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib' |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
814 ;; |
1384
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
815 *-*-osf*) |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
816 x11_lib='libX11.so' |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
817 x11ext_lib='libXext.so' |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
818 ;; |
6fd39b50dd91
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1383
diff
changeset
|
819 *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32 |
1299
2bf9dda618e5
Corrects dynamic X11 code on Tru64 systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
1251
diff
changeset
|
820 x11_lib='libX11.so' |
2bf9dda618e5
Corrects dynamic X11 code on Tru64 systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
1251
diff
changeset
|
821 x11ext_lib='libXext.so' |
2bf9dda618e5
Corrects dynamic X11 code on Tru64 systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
1251
diff
changeset
|
822 ;; |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
823 *) |
1569 | 824 x11_lib_spec=[`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1/'`] |
1571
0160eb7cccee
Add /usr/local to the build paths by default
Sam Lantinga <slouken@libsdl.org>
parents:
1569
diff
changeset
|
825 for path in $x11_lib_path /usr/lib /usr/X11/lib /usr/X11R6/lib; do |
0160eb7cccee
Add /usr/local to the build paths by default
Sam Lantinga <slouken@libsdl.org>
parents:
1569
diff
changeset
|
826 if test "x$x11_lib" = "x"; then |
1606
d91c02552377
ls shouldn't barf if it gets passed a path starting with - (e.g. -lesd)
Sam Lantinga <slouken@libsdl.org>
parents:
1602
diff
changeset
|
827 x11_lib=[`ls -- $path/libX11.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`] |
1834
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
828 if test "x$x11_lib" = "x"; then |
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
829 x11_lib=[`ls -- $path/libX11.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`] |
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
830 fi |
1571
0160eb7cccee
Add /usr/local to the build paths by default
Sam Lantinga <slouken@libsdl.org>
parents:
1569
diff
changeset
|
831 fi |
0160eb7cccee
Add /usr/local to the build paths by default
Sam Lantinga <slouken@libsdl.org>
parents:
1569
diff
changeset
|
832 if test "x$x11ext_lib" = "x"; then |
1606
d91c02552377
ls shouldn't barf if it gets passed a path starting with - (e.g. -lesd)
Sam Lantinga <slouken@libsdl.org>
parents:
1602
diff
changeset
|
833 x11ext_lib=[`ls -- $path/libXext.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`] |
1834
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
834 if test "x$x11ext_lib" = "x"; then |
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
835 x11ext_lib=[`ls -- $path/libXext.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`] |
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
836 fi |
1571
0160eb7cccee
Add /usr/local to the build paths by default
Sam Lantinga <slouken@libsdl.org>
parents:
1569
diff
changeset
|
837 fi |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
838 if test "x$xrender_lib" = "x"; then |
1606
d91c02552377
ls shouldn't barf if it gets passed a path starting with - (e.g. -lesd)
Sam Lantinga <slouken@libsdl.org>
parents:
1602
diff
changeset
|
839 xrender_lib=[`ls -- $path/libXrender.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`] |
1834
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
840 if test "x$xrender_lib" = "x"; then |
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
841 xrender_lib=[`ls -- $path/libXrender.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`] |
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
842 fi |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
843 fi |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
844 if test "x$xrandr_lib" = "x"; then |
1606
d91c02552377
ls shouldn't barf if it gets passed a path starting with - (e.g. -lesd)
Sam Lantinga <slouken@libsdl.org>
parents:
1602
diff
changeset
|
845 xrandr_lib=[`ls -- $path/libXrandr.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`] |
1834
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
846 if test "x$xrandr_lib" = "x"; then |
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
847 xrandr_lib=[`ls -- $path/libXrandr.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`] |
037715c96a85
OpenBSD doesn't ship with X11 library major version symlinks
Sam Lantinga <slouken@libsdl.org>
parents:
1825
diff
changeset
|
848 fi |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
849 fi |
1569 | 850 done |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
851 ;; |
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
852 esac |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
853 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
854 X_CFLAGS="$X_CFLAGS -DXTHREADS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
855 if test x$ac_cv_func_shmat != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
856 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
857 fi |
1799
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1783
diff
changeset
|
858 CFLAGS="$CFLAGS $X_CFLAGS" |
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1783
diff
changeset
|
859 LDFLAGS="$LDFLAGS $X_LIBS" |
1468
fecfef92fc94
Don't put X_LIBS in the linker flags if we're dynamically loading X11
Sam Lantinga <slouken@libsdl.org>
parents:
1467
diff
changeset
|
860 |
fecfef92fc94
Don't put X_LIBS in the linker flags if we're dynamically loading X11
Sam Lantinga <slouken@libsdl.org>
parents:
1467
diff
changeset
|
861 AC_DEFINE(SDL_VIDEO_DRIVER_X11) |
fecfef92fc94
Don't put X_LIBS in the linker flags if we're dynamically loading X11
Sam Lantinga <slouken@libsdl.org>
parents:
1467
diff
changeset
|
862 SOURCES="$SOURCES $srcdir/src/video/x11/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
863 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS" |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
864 if test x$have_loadso != xyes && \ |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
865 test x$enable_x11_shared = xyes; then |
1467
b69f2b0309a0
Removed accidentally copied/pasted script for ALSA detection
Sam Lantinga <slouken@libsdl.org>
parents:
1459
diff
changeset
|
866 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic X11 loading]) |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
867 fi |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
868 if test x$have_loadso = xyes && \ |
1170
bb1a52a8d3d6
Use the right libs in dynamic X11 loading.
Ryan C. Gordon <icculus@icculus.org>
parents:
1168
diff
changeset
|
869 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
870 echo "-- dynamic libX11 -> $x11_lib" |
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
871 echo "-- dynamic libX11ext -> $x11ext_lib" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
872 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib") |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
873 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib") |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
1162
diff
changeset
|
874 else |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
875 enable_x11_shared=no |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
876 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext" |
0 | 877 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
878 have_video=yes |
0 | 879 |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
880 AC_ARG_ENABLE(dga, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
881 AC_HELP_STRING([--enable-dga], [allow use of X11 DGA code [[default=yes]]]), |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
882 , enable_dga=yes) |
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
883 if test x$enable_dga = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
884 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86dga/*.c" |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
885 fi |
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
886 AC_ARG_ENABLE(video-dga, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
887 AC_HELP_STRING([--enable-video-dga], [use DGA 2.0 video driver [[default=yes]]]), |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
888 , enable_video_dga=yes) |
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
889 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
890 AC_DEFINE(SDL_VIDEO_DRIVER_DGA) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
891 SOURCES="$SOURCES $srcdir/src/video/dga/*.c" |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
892 fi |
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
893 AC_ARG_ENABLE(video-x11-dgamouse, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
894 AC_HELP_STRING([--enable-video-x11-dgamouse], [use X11 DGA for mouse events [[default=yes]]]), |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
895 , enable_video_x11_dgamouse=yes) |
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
896 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
897 AC_DEFINE(SDL_VIDEO_DRIVER_X11_DGAMOUSE) |
1307
1c775d9abd2c
We're no longer doing compile checks on the X11 extensions which we include.
Sam Lantinga <slouken@libsdl.org>
parents:
1306
diff
changeset
|
898 fi |
0 | 899 AC_ARG_ENABLE(video-x11-vm, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
900 AC_HELP_STRING([--enable-video-x11-vm], [use X11 VM extension for fullscreen [[default=yes]]]), |
0 | 901 , enable_video_x11_vm=yes) |
902 if test x$enable_video_x11_vm = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
903 AC_DEFINE(SDL_VIDEO_DRIVER_X11_VIDMODE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
904 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c" |
0 | 905 fi |
906 AC_ARG_ENABLE(video-x11-xv, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
907 AC_HELP_STRING([--enable-video-x11-xv], [use X11 XvImage extension for video [[default=yes]]]), |
0 | 908 , enable_video_x11_xv=yes) |
909 if test x$enable_video_x11_xv = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
910 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XV) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
911 SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c" |
0 | 912 fi |
227
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
913 AC_ARG_ENABLE(video-x11-xinerama, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
914 AC_HELP_STRING([--enable-video-x11-xinerama], [enable X11 Xinerama support [[default=yes]]]), |
227
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
915 , enable_video_x11_xinerama=yes) |
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
916 if test x$enable_video_x11_xinerama = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
917 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
918 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c" |
227
24878c14b391
Added X11 Xinerama support - fullscreen starts on screen 0
Sam Lantinga <slouken@libsdl.org>
parents:
222
diff
changeset
|
919 fi |
242
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
920 AC_ARG_ENABLE(video-x11-xme, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
921 AC_HELP_STRING([--enable-video-x11-xme], [enable Xi Graphics XME for fullscreen [[default=yes]]]), |
242
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
922 , enable_video_x11_xme=yes) |
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
923 if test x$enable_video_x11_xme = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
924 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XME) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
925 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c" |
242
4bcb29d3769c
Added support for Xi Graphics XME fullscreen extension
Sam Lantinga <slouken@libsdl.org>
parents:
241
diff
changeset
|
926 fi |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
927 AC_ARG_ENABLE(video-x11-xrandr, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
928 AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]), |
1589
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
929 , enable_video_x11_xrandr=yes) |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
930 if test x$enable_video_x11_xrandr = xyes; then |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
931 definitely_enable_video_x11_xrandr=no |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
932 AC_CHECK_HEADER(X11/extensions/Xrandr.h, |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
933 have_xrandr_h_hdr=yes, |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
934 have_xrandr_h_hdr=no, |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
935 [#include <X11/Xlib.h> |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
936 ]) |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
937 if test x$have_xrandr_h_hdr = xyes; then |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
938 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
939 echo "-- dynamic libXrender -> $xrender_lib" |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
940 echo "-- dynamic libXrandr -> $xrandr_lib" |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
941 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER, "$xrender_lib") |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
942 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib") |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
943 definitely_enable_video_x11_xrandr=yes |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
944 else |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
945 AC_CHECK_LIB(Xrender, XRenderQueryExtension, have_xrender_lib=yes) |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
946 AC_CHECK_LIB(Xrandr, XRRQueryExtension, have_xrandr_lib=yes) |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
947 if test x$have_xrender_lib = xyes && test x$have_xrandr_lib = xyes ; then |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
948 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr -lXrender" |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
949 definitely_enable_video_x11_xrandr=yes |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
950 fi |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
951 fi |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
952 fi |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
953 fi |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
954 if test x$definitely_enable_video_x11_xrandr = xyes; then |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
955 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR) |
34cca785be57
Xrandr support in the X11 target.
Ryan C. Gordon <icculus@icculus.org>
parents:
1588
diff
changeset
|
956 fi |
1783 | 957 AC_ARG_ENABLE(video-x11-dpms, |
958 AC_HELP_STRING([--enable-video-x11-dpms], [enable X11 DPMS extension [[default=yes]]]), | |
959 , enable_video_x11_dpms=yes) | |
960 if test x$enable_video_x11_dpms = xyes; then | |
961 AC_CHECK_HEADER(X11/extensions/dpms.h, | |
962 have_dpms_h_hdr=yes, | |
963 have_dpms_h_hdr=no, | |
964 [#include <X11/Xlib.h> | |
965 ]) | |
966 if test x$have_dpms_h_hdr = xyes; then | |
967 AC_DEFINE(SDL_VIDEO_DRIVER_X11_DPMS) | |
968 fi | |
969 fi | |
0 | 970 fi |
971 fi | |
972 } | |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
973 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
974 dnl Check for QNX photon video driver |
0 | 975 CheckPHOTON() |
976 { | |
977 AC_ARG_ENABLE(video-photon, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
978 AC_HELP_STRING([--enable-video-photon], [use QNX Photon video driver [[default=yes]]]), |
0 | 979 , enable_video_photon=yes) |
980 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then | |
981 AC_MSG_CHECKING(for QNX Photon support) | |
982 video_photon=no | |
983 AC_TRY_COMPILE([ | |
984 #include <Ph.h> | |
985 #include <Pt.h> | |
986 #include <photon/Pg.h> | |
987 #include <photon/PdDirect.h> | |
988 ],[ | |
989 PgDisplaySettings_t *visual; | |
990 ],[ | |
991 video_photon=yes | |
992 ]) | |
993 AC_MSG_RESULT($video_photon) | |
994 if test x$video_photon = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
995 AC_DEFINE(SDL_VIDEO_DRIVER_PHOTON) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
996 SOURCES="$SOURCES $srcdir/src/video/photon/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
997 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lph" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
998 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
999 |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1000 CheckOpenGLQNX |
0 | 1001 fi |
1002 fi | |
1003 } | |
1004 | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1005 dnl Set up the BWindow video driver if enabled |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1006 CheckBWINDOW() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1007 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1008 if test x$enable_video = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1009 AC_DEFINE(SDL_VIDEO_DRIVER_BWINDOW) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1010 SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1011 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1012 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1013 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1014 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1015 dnl Set up the Carbon/QuickDraw video driver for Mac OS X (but not Darwin) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1016 CheckCARBON() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1017 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1018 AC_ARG_ENABLE(video-carbon, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1019 AC_HELP_STRING([--enable-video-carbon], [use Carbon/QuickDraw video driver [[default=no]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1020 , enable_video_carbon=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1021 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1022 AC_MSG_CHECKING(for Carbon framework) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1023 have_carbon=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1024 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1025 #include <Carbon/Carbon.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1026 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1027 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1028 have_carbon=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1029 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1030 AC_MSG_RESULT($have_carbon) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1031 if test x$have_carbon = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1032 AC_DEFINE(SDL_VIDEO_DRIVER_TOOLBOX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1033 SOURCES="$SOURCES $srcdir/src/video/maccommon/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1034 SOURCES="$SOURCES $srcdir/src/video/macrom/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1035 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1036 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1037 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1038 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1039 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1040 dnl Set up the Cocoa/Quartz video driver for Mac OS X (but not Darwin) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1041 CheckCOCOA() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1042 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1043 AC_ARG_ENABLE(video-cocoa, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1044 AC_HELP_STRING([--enable-video-cocoa], [use Cocoa/Quartz video driver [[default=yes]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1045 , enable_video_cocoa=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1046 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1047 save_CFLAGS="$CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1048 dnl work around that we don't have Objective-C support in autoconf |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1049 CFLAGS="$CFLAGS -x objective-c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1050 AC_MSG_CHECKING(for Cocoa framework) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1051 have_cocoa=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1052 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1053 #import <Cocoa/Cocoa.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1054 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1055 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1056 have_cocoa=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1057 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1058 AC_MSG_RESULT($have_cocoa) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1059 CFLAGS="$save_CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1060 if test x$have_cocoa = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1061 AC_DEFINE(SDL_VIDEO_DRIVER_QUARTZ) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1062 SOURCES="$SOURCES $srcdir/src/video/quartz/*.m" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1063 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1064 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1065 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1066 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1067 |
0 | 1068 dnl Find the framebuffer console includes |
1069 CheckFBCON() | |
1070 { | |
1071 AC_ARG_ENABLE(video-fbcon, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1072 AC_HELP_STRING([--enable-video-fbcon], [use framebuffer console video driver [[default=yes]]]), |
0 | 1073 , enable_video_fbcon=yes) |
1074 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then | |
1075 AC_MSG_CHECKING(for framebuffer console support) | |
1076 video_fbcon=no | |
1077 AC_TRY_COMPILE([ | |
1078 #include <linux/fb.h> | |
1079 #include <linux/kd.h> | |
1080 #include <linux/keyboard.h> | |
1081 ],[ | |
1082 ],[ | |
1083 video_fbcon=yes | |
1084 ]) | |
1085 AC_MSG_RESULT($video_fbcon) | |
1086 if test x$video_fbcon = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1087 AC_DEFINE(SDL_VIDEO_DRIVER_FBCON) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1088 SOURCES="$SOURCES $srcdir/src/video/fbcon/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1089 have_video=yes |
0 | 1090 fi |
1091 fi | |
1092 } | |
1093 | |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1094 dnl Find DirectFB |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1095 CheckDirectFB() |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1096 { |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1097 AC_ARG_ENABLE(video-directfb, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1098 AC_HELP_STRING([--enable-video-directfb], [use DirectFB video driver [[default=yes]]]), |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1099 , enable_video_directfb=yes) |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1100 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
|
1101 video_directfb=no |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1102 |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1103 DIRECTFB_REQUIRED_VERSION=0.9.15 |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1104 |
1602
cd97a8e39874
Fixed DirectFB detection
Sam Lantinga <slouken@libsdl.org>
parents:
1601
diff
changeset
|
1105 AC_PATH_PROG(DIRECTFBCONFIG, directfb-config, no) |
cd97a8e39874
Fixed DirectFB detection
Sam Lantinga <slouken@libsdl.org>
parents:
1601
diff
changeset
|
1106 if test x$DIRECTFBCONFIG = xno; then |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1107 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
1602
cd97a8e39874
Fixed DirectFB detection
Sam Lantinga <slouken@libsdl.org>
parents:
1601
diff
changeset
|
1108 AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support) |
cd97a8e39874
Fixed DirectFB detection
Sam Lantinga <slouken@libsdl.org>
parents:
1601
diff
changeset
|
1109 if test x$PKG_CONFIG != xno; then |
cd97a8e39874
Fixed DirectFB detection
Sam Lantinga <slouken@libsdl.org>
parents:
1601
diff
changeset
|
1110 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1111 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1112 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1113 video_directfb=yes |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1114 fi |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1115 fi |
1602
cd97a8e39874
Fixed DirectFB detection
Sam Lantinga <slouken@libsdl.org>
parents:
1601
diff
changeset
|
1116 AC_MSG_RESULT($video_directfb) |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1117 else |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1118 AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support) |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1119 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1120 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1121 set -- `directfb-config --version | sed 's/\./ /g'` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1122 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1123 if test $HAVE_VERSION -ge $NEED_VERSION; then |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1124 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags` |
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1125 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs` |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1126 video_directfb=yes |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1127 fi |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1128 AC_MSG_RESULT($video_directfb) |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1129 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1130 |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1131 if test x$video_directfb = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1132 AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1133 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1134 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1135 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1136 have_video=yes |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1137 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1138 fi |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1139 } |
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
1140 |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1141 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
|
1142 CheckPS2GS() |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1143 { |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
1144 AC_ARG_ENABLE(video-ps2gs, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1145 AC_HELP_STRING([--enable-video-ps2gs], [use PlayStation 2 GS video driver [[default=yes]]]), |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
1146 , enable_video_ps2gs=yes) |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1147 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
|
1148 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
|
1149 video_ps2gs=no |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1150 AC_TRY_COMPILE([ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1151 #include <linux/ps2/dev.h> |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1152 #include <linux/ps2/gs.h> |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1153 ],[ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1154 ],[ |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1155 video_ps2gs=yes |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1156 ]) |
72
4210b3e74800
Fixed the PS2 GS detection
Sam Lantinga <slouken@lokigames.com>
parents:
70
diff
changeset
|
1157 AC_MSG_RESULT($video_ps2gs) |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1158 if test x$video_ps2gs = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1159 AC_DEFINE(SDL_VIDEO_DRIVER_PS2GS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1160 SOURCES="$SOURCES $srcdir/src/video/ps2gs/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1161 have_video=yes |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1162 fi |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1163 fi |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1164 } |
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
1165 |
0 | 1166 dnl Find the GGI includes |
1167 CheckGGI() | |
1168 { | |
1169 AC_ARG_ENABLE(video-ggi, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1170 AC_HELP_STRING([--enable-video-ggi], [use GGI video driver [[default=no]]]), |
0 | 1171 , enable_video_ggi=no) |
1172 if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then | |
1173 AC_MSG_CHECKING(for GGI support) | |
1174 video_ggi=no | |
1175 AC_TRY_COMPILE([ | |
1176 #include <ggi/ggi.h> | |
1177 #include <ggi/gii.h> | |
1178 ],[ | |
1179 ],[ | |
1180 video_ggi=yes | |
1181 ]) | |
1182 AC_MSG_RESULT($video_ggi) | |
1183 if test x$video_ggi = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1184 AC_DEFINE(SDL_VIDEO_DRIVER_GGI) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1185 SOURCES="$SOURCES $srcdir/src/video/ggi/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1186 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lggi -lgii -lgg" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1187 have_video=yes |
0 | 1188 fi |
1189 fi | |
1190 } | |
1191 | |
1192 dnl Find the SVGAlib includes and libraries | |
1193 CheckSVGA() | |
1194 { | |
1195 AC_ARG_ENABLE(video-svga, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1196 AC_HELP_STRING([--enable-video-svga], [use SVGAlib video driver [[default=yes]]]), |
1555 | 1197 , enable_video_svga=yes) |
0 | 1198 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then |
1199 AC_MSG_CHECKING(for SVGAlib (1.4.0+) support) | |
1200 video_svga=no | |
1201 AC_TRY_COMPILE([ | |
1202 #include <vga.h> | |
1203 #include <vgamouse.h> | |
1204 #include <vgakeyboard.h> | |
1205 ],[ | |
1206 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) { | |
1207 exit(0); | |
1208 } | |
1209 ],[ | |
1210 video_svga=yes | |
1211 ]) | |
1212 AC_MSG_RESULT($video_svga) | |
1213 if test x$video_svga = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1214 AC_DEFINE(SDL_VIDEO_DRIVER_SVGALIB) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1215 SOURCES="$SOURCES $srcdir/src/video/svga/*.c" |
1556 | 1216 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1217 have_video=yes |
0 | 1218 fi |
1219 fi | |
1220 } | |
1221 | |
75
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1222 dnl Find the VGL includes and libraries |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1223 CheckVGL() |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1224 { |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1225 AC_ARG_ENABLE(video-vgl, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1226 AC_HELP_STRING([--enable-video-vgl], [use VGL video driver [[default=yes]]]), |
1588
e20dcef5647c
Improved DirectFB install detection
Sam Lantinga <slouken@libsdl.org>
parents:
1574
diff
changeset
|
1227 , enable_video_vgl=yes) |
75
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1228 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
|
1229 AC_MSG_CHECKING(for libVGL support) |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1230 video_vgl=no |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1231 AC_TRY_COMPILE([ |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1232 #include <sys/fbio.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1233 #include <sys/consio.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1234 #include <sys/kbio.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1235 #include <vgl.h> |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1236 ],[ |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1237 VGLBitmap bitmap; |
1836
703f7268b5b1
DragonFly BSD has an older version of VGL which SDL doesn't support.
Sam Lantinga <slouken@libsdl.org>
parents:
1834
diff
changeset
|
1238 bitmap.Type = VIDBUF32; |
703f7268b5b1
DragonFly BSD has an older version of VGL which SDL doesn't support.
Sam Lantinga <slouken@libsdl.org>
parents:
1834
diff
changeset
|
1239 bitmap.PixelBytes = 4; |
144
1cfa4282f2eb
Fixed VGL detection on FreeBSD (thanks David!)
Sam Lantinga <slouken@libsdl.org>
parents:
129
diff
changeset
|
1240 exit(bitmap.Bitmap); |
75
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1241 ],[ |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1242 video_vgl=yes |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1243 ]) |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1244 AC_MSG_RESULT($video_vgl) |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1245 if test x$video_vgl = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1246 AC_DEFINE(SDL_VIDEO_DRIVER_VGL) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1247 SOURCES="$SOURCES $srcdir/src/video/vgl/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1248 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvgl" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1249 have_video=yes |
75
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1250 fi |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1251 fi |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1252 } |
b0ae59d0f3ee
Added patches from FreeBSD ports
Sam Lantinga <slouken@lokigames.com>
parents:
72
diff
changeset
|
1253 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1254 dnl Set up the wscons video driver if enabled |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1255 CheckWscons() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1256 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1257 AC_ARG_ENABLE(video-wscons, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1258 AC_HELP_STRING([--enable-video-wscons], [use wscons video driver [[default=yes]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1259 , enable_video_wscons=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1260 if test x$enable_video = xyes -a x$enable_video_wscons = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1261 AC_MSG_CHECKING(for wscons support) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1262 video_wscons=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1263 AC_TRY_COMPILE([ |
1597 | 1264 #include <sys/time.h> |
1265 #include <dev/wscons/wsconsio.h> | |
1266 #include <dev/wscons/wsdisplay_usl_io.h> | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1267 ],[ |
1597 | 1268 int wsmode = WSDISPLAYIO_MODE_DUMBFB; |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1269 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1270 video_wscons=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1271 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1272 AC_MSG_RESULT($video_wscons) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1273 if test x$video_wscons = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1274 AC_DEFINE(SDL_VIDEO_DRIVER_WSCONS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1275 SOURCES="$SOURCES $srcdir/src/video/wscons/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1276 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1277 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1278 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1279 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1280 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1281 |
0 | 1282 dnl Find the AAlib includes |
1283 CheckAAlib() | |
1284 { | |
1285 AC_ARG_ENABLE(video-aalib, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1286 AC_HELP_STRING([--enable-video-aalib], [use AAlib video driver [[default=no]]]), |
0 | 1287 , enable_video_aalib=no) |
1288 if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then | |
1289 AC_MSG_CHECKING(for AAlib support) | |
1290 video_aalib=no | |
1291 AC_TRY_COMPILE([ | |
1292 #include <aalib.h> | |
1293 ],[ | |
1294 ],[ | |
1295 video_aalib=yes | |
1296 ]) | |
1297 AC_MSG_RESULT($video_aalib) | |
1298 if test x$video_aalib = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1299 AC_DEFINE(SDL_VIDEO_DRIVER_AALIB) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1300 SOURCES="$SOURCES $srcdir/src/video/aalib/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1301 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laa" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1302 have_video=yes |
0 | 1303 fi |
1304 fi | |
1305 } | |
1306 | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1307 dnl Set up the QTopia video driver if enabled |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1308 CheckQtopia() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1309 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1310 AC_ARG_ENABLE(video-qtopia, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1311 AC_HELP_STRING([--enable-video-qtopia], [use Qtopia video driver [[default=no]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1312 , enable_video_qtopia=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1313 if test x$enable_video = xyes -a x$enable_video_qtopia = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1314 AC_MSG_CHECKING(for Qtopia support) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1315 video_qtopia=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1316 QTOPIA_FLAGS="-DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1317 AC_LANG_CPLUSPLUS |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1318 OLD_CXX="$CXXFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1319 CXXFLAGS="$QTOPIA_FLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1320 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1321 #include <qpe/qpeapplication.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1322 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1323 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1324 video_qtopia=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1325 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1326 CXXFLAGS="$OLD_CXX" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1327 AC_MSG_RESULT($video_qtopia) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1328 if test x$video_qtopia = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1329 AC_DEFINE(SDL_VIDEO_DRIVER_QTOPIA) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1330 SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc" |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
1331 SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1332 EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1333 SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1334 SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1335 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1336 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1337 AC_LANG_C |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1338 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1339 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1340 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1341 dnl Set up the PicoGUI video driver if enabled |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1342 CheckPicoGUI() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1343 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1344 AC_ARG_ENABLE(video-picogui, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1345 AC_HELP_STRING([--enable-video-picogui], [use PicoGUI video driver [[default=no]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1346 , enable_video_picogui=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1347 if test x$enable_video = xyes -a x$enable_video_picogui = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1348 AC_MSG_CHECKING(for PicoGUI support) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1349 video_picogui=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1350 AC_TRY_COMPILE([ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1351 #include <picogui.h> |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1352 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1353 ],[ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1354 video_picogui=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1355 ]) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1356 AC_MSG_RESULT($video_picogui) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1357 if test x$video_picogui = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1358 AC_DEFINE(SDL_VIDEO_DRIVER_PICOGUI) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1359 SOURCES="$SOURCES $srcdir/src/video/picogui/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1360 SDL_LIBS="$SDL_LIBS -lpgui" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1361 have_video=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1362 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1363 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1364 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1365 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1366 dnl Set up the Atari Bios keyboard driver |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1367 CheckAtariBiosEvent() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1368 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1369 SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.c" |
1477
577b41f7dc1d
Add missing asm source files
Patrice Mandin <patmandin@gmail.com>
parents:
1468
diff
changeset
|
1370 SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.S" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1371 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1372 |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1373 dnl Set up the Atari Xbios driver |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1374 CheckAtariXbiosVideo() |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1375 { |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1376 AC_ARG_ENABLE(xbios, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1377 AC_HELP_STRING([--enable-video-xbios], [use Atari Xbios video driver [[default=yes]]]), |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1378 , enable_video_xbios=yes) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1379 video_xbios=no |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1380 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
|
1381 video_xbios=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1382 AC_DEFINE(SDL_VIDEO_DRIVER_XBIOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1383 SOURCES="$SOURCES $srcdir/src/video/xbios/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1384 have_video=yes |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1385 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1386 } |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1387 |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1388 dnl Set up the Atari Gem driver |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1389 CheckAtariGemVideo() |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1390 { |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1391 AC_ARG_ENABLE(gem, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1392 AC_HELP_STRING([--enable-video-gem], [use Atari Gem video driver [[default=yes]]]), |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1393 , enable_video_gem=yes) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1394 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
|
1395 video_gem=no |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1396 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
|
1397 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
|
1398 if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then |
1366 | 1399 video_gem=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1400 AC_DEFINE(SDL_VIDEO_DRIVER_GEM) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1401 SOURCES="$SOURCES $srcdir/src/video/gem/*.c" |
1825
f255c6bee184
Use the right variables to set stuff for sdl-config script
Patrice Mandin <patmandin@gmail.com>
parents:
1823
diff
changeset
|
1402 SDL_LIBS="$SDL_LIBS -lgem" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1403 have_video=yes |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1404 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1405 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1406 } |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
1407 |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1408 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
|
1409 CheckDummyVideo() |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1410 { |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1411 AC_ARG_ENABLE(video-dummy, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1412 AC_HELP_STRING([--enable-video-dummy], [use dummy video driver [[default=yes]]]), |
86
13e4c612098d
Dummy audio and video drivers are enabled (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
76
diff
changeset
|
1413 , enable_video_dummy=yes) |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1414 if test x$enable_video_dummy = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1415 AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1416 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1417 have_video=yes |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1418 fi |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1419 } |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
1420 |
0 | 1421 dnl Check to see if OpenGL support is desired |
1422 AC_ARG_ENABLE(video-opengl, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1423 AC_HELP_STRING([--enable-video-opengl], [include OpenGL context creation [[default=yes]]]), |
0 | 1424 , enable_video_opengl=yes) |
1425 | |
1426 dnl Find OpenGL | |
1191
2bd4cec0de63
Seperate glX from HAVE_OPENGL, for platforms that have both an X server and
Ryan C. Gordon <icculus@icculus.org>
parents:
1187
diff
changeset
|
1427 CheckOpenGLX11() |
0 | 1428 { |
1429 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
1430 AC_MSG_CHECKING(for OpenGL (GLX) support) | |
1431 video_opengl=no | |
1432 AC_TRY_COMPILE([ | |
1433 #include <GL/gl.h> | |
1434 #include <GL/glx.h> | |
1435 ],[ | |
1436 ],[ | |
1437 video_opengl=yes | |
1438 ]) | |
1439 AC_MSG_RESULT($video_opengl) | |
1440 if test x$video_opengl = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1441 AC_DEFINE(SDL_VIDEO_OPENGL) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1442 AC_DEFINE(SDL_VIDEO_OPENGL_GLX) |
0 | 1443 fi |
1444 fi | |
1445 } | |
1446 | |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1447 dnl Find QNX RtP OpenGL |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1448 CheckOpenGLQNX() |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1449 { |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1450 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
|
1451 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
|
1452 video_opengl=no |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1453 AC_TRY_COMPILE([ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1454 #include <GL/gl.h> |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1455 ],[ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1456 ],[ |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1457 video_opengl=yes |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1458 ]) |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1459 AC_MSG_RESULT($video_opengl) |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1460 if test x$video_opengl = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1461 AC_DEFINE(SDL_VIDEO_OPENGL) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1462 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" |
279
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1463 fi |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1464 fi |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1465 } |
04351f59b051
Mike Gorchak added some QNX tweaks, including OpenGL support
Sam Lantinga <slouken@libsdl.org>
parents:
278
diff
changeset
|
1466 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1467 dnl Check for Win32 OpenGL |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1468 CheckWIN32GL() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1469 { |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1470 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1471 AC_DEFINE(SDL_VIDEO_OPENGL) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1472 AC_DEFINE(SDL_VIDEO_OPENGL_WGL) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1473 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1474 } |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1475 |
0 | 1476 dnl Check for BeOS OpenGL |
1477 CheckBeGL() | |
1478 { | |
1479 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1480 AC_DEFINE(SDL_VIDEO_OPENGL) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1481 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" |
0 | 1482 fi |
1483 } | |
1484 | |
1485 dnl Check for MacOS OpenGL | |
1486 CheckMacGL() | |
1487 { | |
1488 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1489 AC_DEFINE(SDL_VIDEO_OPENGL) |
1550 | 1490 case "$host" in |
0 | 1491 *-*-darwin*) |
1625 | 1492 if test x$enable_video_cocoa = xyes; then |
1493 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL" | |
1494 fi | |
1495 if test x$enable_video_carbon = xyes; then | |
1496 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL" | |
1497 fi | |
0 | 1498 esac |
1499 fi | |
1500 } | |
1501 | |
978
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1502 dnl Check for Mesa offscreen rendering |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1503 CheckAtariOSMesa() |
978
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1504 { |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1505 if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then |
991
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1506 AC_CHECK_HEADER(GL/osmesa.h, have_osmesa_hdr=yes) |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1507 AC_CHECK_LIB(OSMesa, OSMesaCreateContext, have_osmesa_lib=yes, have_osmesa_lib=no, -lm) |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1508 |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1509 # Static linking to -lOSMesa |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1510 AC_PATH_PROG(OSMESA_CONFIG, osmesa-config, no) |
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1511 if test "x$OSMESA_CONFIG" = "xno" -o "x$enable_atari_ldg" = "xno"; then |
991
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1512 # -lOSMesa is really the static library |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1513 if test "x$have_osmesa_hdr" = "xyes" -a "x$have_osmesa_lib" = "xyes"; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1514 OSMESA_LIBS="-lOSMesa" |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1515 fi |
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1516 else |
991
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1517 # -lOSMesa is a loader for OSMesa.ldg |
989
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1518 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags` |
475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
Patrice Mandin <patmandin@gmail.com>
parents:
978
diff
changeset
|
1519 OSMESA_LIBS=`$OSMESA_CONFIG --libs` |
978
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1520 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1521 AC_DEFINE(SDL_VIDEO_OPENGL) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1522 AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA) |
1825
f255c6bee184
Use the right variables to set stuff for sdl-config script
Patrice Mandin <patmandin@gmail.com>
parents:
1823
diff
changeset
|
1523 SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS" |
f255c6bee184
Use the right variables to set stuff for sdl-config script
Patrice Mandin <patmandin@gmail.com>
parents:
1823
diff
changeset
|
1524 SDL_LIBS="$SDL_LIBS $OSMESA_LIBS" |
991
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1525 |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1526 AC_ARG_ENABLE(osmesa-shared, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1527 AC_HELP_STRING([--enable-osmesa-shared], [dynamically load OSMesa OpenGL support [[default=yes]]]), |
991
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1528 , enable_osmesa_shared=yes) |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1529 if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1530 # Dynamic linking |
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1531 if test "x$have_osmesa_hdr" = "xyes"; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1532 AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA_DYNAMIC) |
991
12b13601a544
Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon.
Patrice Mandin <patmandin@gmail.com>
parents:
989
diff
changeset
|
1533 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1534 fi |
978
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1535 fi |
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1536 } |
3b1ba22f5a28
Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
Patrice Mandin <patmandin@gmail.com>
parents:
973
diff
changeset
|
1537 |
0 | 1538 dnl See if we can use the new unified event interface in Linux 2.4 |
1539 CheckInputEvents() | |
1540 { | |
1541 dnl Check for Linux 2.4 unified input event interface support | |
1542 AC_ARG_ENABLE(input-events, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1543 AC_HELP_STRING([--enable-input-events], [use Linux 2.4 unified input interface [[default=yes]]]), |
211
0cc95f442f3a
If we're looking at the /dev/input event devices, and we found
Sam Lantinga <slouken@libsdl.org>
parents:
200
diff
changeset
|
1544 , enable_input_events=yes) |
0 | 1545 if test x$enable_input_events = xyes; then |
1546 AC_MSG_CHECKING(for Linux 2.4 unified input interface) | |
1547 use_input_events=no | |
1548 AC_TRY_COMPILE([ | |
1549 #include <linux/input.h> | |
1550 ],[ | |
1551 #ifndef EVIOCGNAME | |
1552 #error EVIOCGNAME() ioctl not available | |
1553 #endif | |
1554 ],[ | |
1555 use_input_events=yes | |
1556 ]) | |
1557 AC_MSG_RESULT($use_input_events) | |
1558 if test x$use_input_events = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1559 AC_DEFINE(SDL_INPUT_LINUXEV) |
0 | 1560 fi |
1561 fi | |
1562 } | |
1563 | |
1201
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1564 dnl See if we can use the Touchscreen input library |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1565 CheckTslib() |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1566 { |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1567 AC_ARG_ENABLE(input-tslib, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1568 AC_HELP_STRING([--enable-input-tslib], [use the Touchscreen library for input [[default=yes]]]), |
1201
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1569 , enable_input_tslib=yes) |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1570 if test x$enable_input_tslib = xyes; then |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1571 AC_MSG_CHECKING(for Touchscreen library support) |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1572 enable_input_tslib=no |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1573 AC_TRY_COMPILE([ |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1574 #include "tslib.h" |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1575 ],[ |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1576 ],[ |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1577 enable_input_tslib=yes |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1578 ]) |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1579 AC_MSG_RESULT($enable_input_tslib) |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1580 if test x$enable_input_tslib = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1581 AC_DEFINE(SDL_INPUT_TSLIB) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1582 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts" |
1201
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1583 fi |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1584 fi |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1585 } |
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
1586 |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1587 dnl See if we can use GNU pth library for threads |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1588 CheckPTH() |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1589 { |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1590 dnl Check for pth support |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1591 AC_ARG_ENABLE(pth, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1592 AC_HELP_STRING([--enable-pth], [use GNU pth library for multi-threading [[default=yes]]]), |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1593 , enable_pth=yes) |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1594 if test x$enable_threads = xyes -a x$enable_pth = xyes; then |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1595 AC_PATH_PROG(PTH_CONFIG, pth-config, no) |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1596 if test "$PTH_CONFIG" = "no"; then |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1597 use_pth=no |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1598 else |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1599 use_pth=yes |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1600 fi |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1601 AC_MSG_CHECKING(pth) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1602 AC_MSG_RESULT($use_pth) |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1603 if test "x$use_pth" = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1604 AC_DEFINE(SDL_THREAD_PTH) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1605 SOURCES="$SOURCES $srcdir/src/thread/pth/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1606 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1607 SDL_CFLAGS="$SDL_CFLAGS `$PTH_CONFIG --cflags`" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1608 SDL_LIBS="$SDL_LIBS `$PTH_CONFIG --libs --all`" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1609 have_threads=yes |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1610 fi |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1611 fi |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1612 } |
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1613 |
0 | 1614 dnl See what type of thread model to use on Linux and Solaris |
1615 CheckPTHREAD() | |
1616 { | |
1617 dnl Check for pthread support | |
1618 AC_ARG_ENABLE(pthreads, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1619 AC_HELP_STRING([--enable-pthreads], [use POSIX threads for multi-threading [[default=yes]]]), |
0 | 1620 , enable_pthreads=yes) |
1621 dnl This is used on Linux for glibc binary compatibility (Doh!) | |
1622 AC_ARG_ENABLE(pthread-sem, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1623 AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [[default=yes]]]), |
0 | 1624 , enable_pthread_sem=yes) |
1550 | 1625 case "$host" in |
1820
133d55b02d51
Date: Thu, 11 May 2006 17:09:17 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1813
diff
changeset
|
1626 *-*-linux*|*-*-uclinux*) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1627 pthread_cflags="-D_REENTRANT" |
1324
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1628 pthread_lib="-lpthread" |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1629 ;; |
0 | 1630 *-*-bsdi*) |
1631 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
1632 pthread_lib="" | |
1633 ;; | |
1634 *-*-darwin*) | |
1635 pthread_cflags="-D_THREAD_SAFE" | |
1636 # causes Carbon.p complaints? | |
1637 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" | |
1638 ;; | |
1565 | 1639 *-*-freebsd*|*-*-dragonfly*) |
0 | 1640 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" |
1641 pthread_lib="-pthread" | |
1642 ;; | |
43
8cc154626be9
I found the pthread package for NetBSD
Sam Lantinga <slouken@lokigames.com>
parents:
42
diff
changeset
|
1643 *-*-netbsd*) |
1383 | 1644 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" |
1200
8f418dce02b2
Date: Sun, 11 Dec 2005 20:37:04 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1193
diff
changeset
|
1645 pthread_lib="-L/usr/lib -lpthread" |
43
8cc154626be9
I found the pthread package for NetBSD
Sam Lantinga <slouken@lokigames.com>
parents:
42
diff
changeset
|
1646 ;; |
0 | 1647 *-*-openbsd*) |
1648 pthread_cflags="-D_REENTRANT" | |
1649 pthread_lib="-pthread" | |
1650 ;; | |
1651 *-*-solaris*) | |
1652 pthread_cflags="-D_REENTRANT" | |
1653 pthread_lib="-lpthread -lposix4" | |
1654 ;; | |
1655 *-*-sysv5*) | |
1656 pthread_cflags="-D_REENTRANT -Kthread" | |
1657 pthread_lib="" | |
1658 ;; | |
1659 *-*-irix*) | |
1660 pthread_cflags="-D_SGI_MP_SOURCE" | |
1661 pthread_lib="-lpthread" | |
1662 ;; | |
1663 *-*-aix*) | |
1664 pthread_cflags="-D_REENTRANT -mthreads" | |
1665 pthread_lib="-lpthread" | |
1666 ;; | |
425
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1667 *-*-hpux11*) |
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1668 pthread_cflags="-D_REENTRANT" |
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1669 pthread_lib="-L/usr/lib -lpthread" |
edbbe5775244
Fixed (?) semaphore support on HPUX 11.x ...
Ryan C. Gordon <icculus@icculus.org>
parents:
419
diff
changeset
|
1670 ;; |
0 | 1671 *-*-qnx*) |
1672 pthread_cflags="" | |
1673 pthread_lib="" | |
1674 ;; | |
873
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1675 *-*-osf*) |
1019
e3b3130f3af8
Date: Fri, 31 Dec 2004 04:14:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1009
diff
changeset
|
1676 pthread_cflags="-D_REENTRANT" |
873
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1677 if test x$ac_cv_prog_gcc = xyes; then |
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1678 pthread_lib="-lpthread -lrt" |
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1679 else |
1019
e3b3130f3af8
Date: Fri, 31 Dec 2004 04:14:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1009
diff
changeset
|
1680 pthread_lib="-lpthread -lexc -lrt" |
873
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1681 fi |
89666943c598
Date: Sun, 07 Mar 2004 22:54:11 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
868
diff
changeset
|
1682 ;; |
0 | 1683 *) |
1684 pthread_cflags="-D_REENTRANT" | |
1685 pthread_lib="-lpthread" | |
1686 ;; | |
1687 esac | |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
1688 if test x$enable_threads = xyes -a x$enable_pthreads = xyes -a x$enable_ipod != xyes; then |
415
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1689 # Save the original compiler flags and libraries |
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1690 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" |
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1691 # Add the pthread compiler flags and libraries |
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1692 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" |
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1693 # Check to see if we have pthread support on this system |
0 | 1694 AC_MSG_CHECKING(for pthreads) |
1695 use_pthreads=no | |
1696 AC_TRY_LINK([ | |
1697 #include <pthread.h> | |
1698 ],[ | |
1699 pthread_attr_t type; | |
1700 pthread_attr_init(&type); | |
1701 ],[ | |
1702 use_pthreads=yes | |
1703 ]) | |
1704 AC_MSG_RESULT($use_pthreads) | |
415
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1705 # Restore the compiler flags and libraries |
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1706 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1707 |
415
104f32d04cd1
Fixed building with pthreads and the pth library
Sam Lantinga <slouken@libsdl.org>
parents:
413
diff
changeset
|
1708 # Do futher testing if we have pthread support... |
0 | 1709 if test x$use_pthreads = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1710 AC_DEFINE(SDL_THREAD_PTHREAD) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1711 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1712 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib" |
0 | 1713 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags" |
1714 SDL_LIBS="$SDL_LIBS $pthread_lib" | |
1715 | |
1438
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1716 # Save the original compiler flags and libraries |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1717 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1718 # Add the pthread compiler flags and libraries |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1719 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1720 |
0 | 1721 # Check to see if recursive mutexes are available |
1722 AC_MSG_CHECKING(for recursive mutexes) | |
1723 has_recursive_mutexes=no | |
1324
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1724 if test x$has_recursive_mutexes = xno; then |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1725 AC_TRY_COMPILE([ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1726 #include <pthread.h> |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1727 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1728 pthread_mutexattr_t attr; |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1729 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1730 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1731 has_recursive_mutexes=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1732 AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX) |
1324
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1733 ]) |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1734 fi |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1735 if test x$has_recursive_mutexes = xno; then |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1736 AC_TRY_COMPILE([ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1737 #include <pthread.h> |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1738 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1739 pthread_mutexattr_t attr; |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1740 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1741 ],[ |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1742 has_recursive_mutexes=yes |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1743 AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP) |
1324
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1744 ]) |
42e95163d553
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org>
parents:
1311
diff
changeset
|
1745 fi |
0 | 1746 AC_MSG_RESULT($has_recursive_mutexes) |
1747 | |
94
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1748 # 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
|
1749 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
|
1750 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
|
1751 have_pthread_sem=no |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1752 AC_TRY_COMPILE([ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1753 #include <pthread.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1754 #include <semaphore.h> |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1755 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1756 ],[ |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1757 have_pthread_sem=yes |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1758 ]) |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1759 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
|
1760 fi |
ae6e6b73333f
Cleaned up the OpenBSD port, thanks to Peter Valchev
Sam Lantinga <slouken@lokigames.com>
parents:
86
diff
changeset
|
1761 |
1438
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1762 # Restore the compiler flags and libraries |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1763 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" |
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
1764 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1765 # Basic thread creation functions |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1766 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c" |
0 | 1767 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1768 # Semaphores |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1769 # We can fake these with mutexes and condition variables if necessary |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1770 if test x$have_pthread_sem = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1771 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1772 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1773 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1774 fi |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1775 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1776 # Mutexes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1777 # We can fake these with semaphores if necessary |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1778 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c" |
399
cfcf6bf1640c
Unified the thread detection code for UNIX platforms
Sam Lantinga <slouken@libsdl.org>
parents:
398
diff
changeset
|
1779 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1780 # Condition variables |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1781 # We can fake these with semaphores and mutexes if necessary |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1782 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c" |
185
34d316d5e744
Added support for the GNU Pth thread lib (thanks Mandin!)
Sam Lantinga <slouken@libsdl.org>
parents:
178
diff
changeset
|
1783 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1784 have_threads=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1785 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1786 CheckPTH |
814
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1787 fi |
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1788 fi |
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1789 } |
5a417d2a8603
Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
Sam Lantinga <slouken@libsdl.org>
parents:
807
diff
changeset
|
1790 |
0 | 1791 dnl Determine whether the compiler can produce Win32 executables |
1792 CheckWIN32() | |
1793 { | |
1794 AC_MSG_CHECKING(Win32 compiler) | |
1795 have_win32_gcc=no | |
1796 AC_TRY_COMPILE([ | |
1797 #include <windows.h> | |
1798 ],[ | |
1799 ],[ | |
1800 have_win32_gcc=yes | |
1801 ]) | |
1802 AC_MSG_RESULT($have_win32_gcc) | |
1803 if test x$have_win32_gcc != xyes; then | |
1804 AC_MSG_ERROR([ | |
1805 *** Your compiler ($CC) does not produce Win32 executables! | |
1806 ]) | |
1807 fi | |
1808 | |
1809 dnl See if the user wants to redirect standard output to files | |
1810 AC_ARG_ENABLE(stdio-redirect, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1811 AC_HELP_STRING([--enable-stdio-redirect], [Redirect STDIO to files on Win32 [[default=yes]]]), |
0 | 1812 , enable_stdio_redirect=yes) |
1813 if test x$enable_stdio_redirect != xyes; then | |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1814 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1815 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1816 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1817 if test x$enable_video = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1818 AC_DEFINE(SDL_VIDEO_DRIVER_WINDIB) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1819 SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1820 SOURCES="$SOURCES $srcdir/src/video/windib/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1821 have_video=yes |
0 | 1822 fi |
1823 } | |
1824 | |
1825 dnl Find the DirectX includes and libraries | |
1826 CheckDIRECTX() | |
1827 { | |
1828 AC_ARG_ENABLE(directx, | |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1829 AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [[default=yes]]]), |
0 | 1830 , enable_directx=yes) |
1831 if test x$enable_directx = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1832 have_directx=no |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1833 AC_CHECK_HEADER(ddraw.h, have_ddraw=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1834 AC_CHECK_HEADER(dsound.h, have_dsound=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1835 AC_CHECK_HEADER(dinput.h, use_dinput=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1836 if test x$have_ddraw = xyes -a x$have_dsound = xyes -a x$use_dinput = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1837 have_directx=yes |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
1838 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1839 if test x$enable_video = xyes -a x$have_directx = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1840 AC_DEFINE(SDL_VIDEO_DRIVER_DDRAW) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1841 SOURCES="$SOURCES $srcdir/src/video/windx5/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1842 have_video=yes |
1187 | 1843 fi |
1844 fi | |
1845 } | |
1846 | |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1847 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
|
1848 CheckDLOPEN() |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1849 { |
731
faaa676b20ef
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
724
diff
changeset
|
1850 AC_ARG_ENABLE(sdl-dlopen, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1851 AC_HELP_STRING([--enable-sdl-dlopen], [use dlopen for shared object loading [[default=yes]]]), |
731
faaa676b20ef
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
724
diff
changeset
|
1852 , enable_sdl_dlopen=yes) |
faaa676b20ef
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
724
diff
changeset
|
1853 if test x$enable_sdl_dlopen = xyes; then |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1854 AC_MSG_CHECKING(for dlopen) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1855 have_dlopen=no |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1856 AC_TRY_COMPILE([ |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1857 #include <dlfcn.h> |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1858 ],[ |
1638
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
1859 #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020 |
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
1860 #error Use dlcompat for Mac OS X 10.2 compatibility |
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
1861 #endif |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1862 ],[ |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1863 have_dlopen=yes |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1864 ]) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1865 AC_MSG_RESULT($have_dlopen) |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1866 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1867 if test x$have_dlopen = xyes; then |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1868 AC_CHECK_LIB(c, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS", |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1869 AC_CHECK_LIB(dl, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl", |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
1870 AC_CHECK_LIB(ltdl, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"))) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1871 AC_CHECK_LIB(dl, dlvsym, have_dlvsym=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1872 if test x$have_dlvsym = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1873 AC_DEFINE(HAVE_DLVSYM) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1874 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1875 AC_DEFINE(SDL_LOADSO_DLOPEN) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1876 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1877 have_loadso=yes |
294
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1878 fi |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1879 fi |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1880 } |
d2d48e10f370
Added a new header file: SDL_loadso.h
Sam Lantinga <slouken@libsdl.org>
parents:
292
diff
changeset
|
1881 |
651
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1882 dnl Set up the Atari LDG (shared object loader) |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1883 CheckAtariLdg() |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1884 { |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1885 AC_ARG_ENABLE(atari-ldg, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
1886 AC_HELP_STRING([--enable-atari-ldg], [use Atari LDG for shared object loading [[default=yes]]]), |
651
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1887 , enable_atari_ldg=yes) |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1888 if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1889 AC_CHECK_HEADER(ldg.h, have_ldg_hdr=yes) |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1890 AC_CHECK_LIB(ldg, ldg_open, have_ldg_lib=yes, have_ldg_lib=no, -lgem) |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1891 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1892 AC_DEFINE(SDL_LOADSO_LDG) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1893 SOURCES="$SOURCES $srcdir/src/loadso/mint/*.c" |
1825
f255c6bee184
Use the right variables to set stuff for sdl-config script
Patrice Mandin <patmandin@gmail.com>
parents:
1823
diff
changeset
|
1894 SDL_LIBS="$SDL_LIBS -lldg -lgem" |
1173
e9cf8c1b4590
Split up src/SDL_loadso.c into platform directories.
Ryan C. Gordon <icculus@icculus.org>
parents:
1170
diff
changeset
|
1895 have_loadso=yes |
651
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1896 fi |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1897 fi |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1898 } |
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
1899 |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1900 dnl Check for the usbhid(3) library on *BSD |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1901 CheckUSBHID() |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1902 { |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1903 if test x$enable_joystick = xyes; then |
1565 | 1904 AC_CHECK_LIB(usbhid, hid_init, have_libusbhid=yes) |
1905 if test x$have_libusbhid = xyes; then | |
1906 AC_CHECK_HEADER(usbhid.h, [USB_CFLAGS="-DHAVE_USBHID_H"]) | |
1907 AC_CHECK_HEADER(libusbhid.h, [USB_CFLAGS="-DHAVE_LIBUSBHID_H"]) | |
1908 USB_LIBS="$USB_LIBS -lusbhid" | |
1909 else | |
1910 AC_CHECK_HEADER(usb.h, [USB_CFLAGS="-DHAVE_USB_H"]) | |
1911 AC_CHECK_HEADER(libusb.h, [USB_CFLAGS="-DHAVE_LIBUSB_H"]) | |
1912 AC_CHECK_LIB(usb, hid_init, [USB_LIBS="$USB_LIBS -lusb"]) | |
1913 fi | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1914 |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1915 save_CFLAGS="$CFLAGS" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1916 CFLAGS="$CFLAGS $USB_CFLAGS" |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1917 |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1918 AC_MSG_CHECKING(for usbhid) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1919 have_usbhid=no |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1920 AC_TRY_COMPILE([ |
404
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1921 #include <sys/types.h> |
403
8d431937739d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
402
diff
changeset
|
1922 #if defined(HAVE_USB_H) |
8d431937739d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
402
diff
changeset
|
1923 #include <usb.h> |
8d431937739d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
402
diff
changeset
|
1924 #endif |
1565 | 1925 #ifdef __DragonFly__ |
1926 # include <bus/usb/usb.h> | |
1927 # include <bus/usb/usbhid.h> | |
1928 #else | |
1929 # include <dev/usb/usb.h> | |
1930 # include <dev/usb/usbhid.h> | |
1931 #endif | |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1932 #if defined(HAVE_USBHID_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1933 #include <usbhid.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1934 #elif defined(HAVE_LIBUSB_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1935 #include <libusb.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1936 #elif defined(HAVE_LIBUSBHID_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1937 #include <libusbhid.h> |
404
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1938 #endif |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1939 ],[ |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1940 struct report_desc *repdesc; |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1941 struct usb_ctl_report *repbuf; |
402
7efee6e36f00
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
401
diff
changeset
|
1942 hid_kind_t hidkind; |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1943 ],[ |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1944 have_usbhid=yes |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1945 ]) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1946 AC_MSG_RESULT($have_usbhid) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1947 |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1948 if test x$have_usbhid = xyes; then |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1949 AC_MSG_CHECKING(for ucr_data member of usb_ctl_report) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1950 have_usbhid_ucr_data=no |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1951 AC_TRY_COMPILE([ |
404
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1952 #include <sys/types.h> |
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1953 #if defined(HAVE_USB_H) |
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1954 #include <usb.h> |
cbb346aca05d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
403
diff
changeset
|
1955 #endif |
1565 | 1956 #ifdef __DragonFly__ |
1957 # include <bus/usb/usb.h> | |
1958 # include <bus/usb/usbhid.h> | |
1959 #else | |
1960 # include <dev/usb/usb.h> | |
1961 # include <dev/usb/usbhid.h> | |
1962 #endif | |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1963 #if defined(HAVE_USBHID_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1964 #include <usbhid.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1965 #elif defined(HAVE_LIBUSB_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1966 #include <libusb.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1967 #elif defined(HAVE_LIBUSBHID_H) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1968 #include <libusbhid.h> |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1969 #endif |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1970 ],[ |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1971 struct usb_ctl_report buf; |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1972 if (buf.ucr_data) { } |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1973 ],[ |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1974 have_usbhid_ucr_data=yes |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1975 ]) |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1976 if test x$have_usbhid_ucr_data = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1977 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA" |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1978 fi |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
1979 AC_MSG_RESULT($have_usbhid_ucr_data) |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1980 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1981 AC_MSG_CHECKING(for new usbhid API) |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1982 have_usbhid_new=no |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1983 AC_TRY_COMPILE([ |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1984 #include <sys/types.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1985 #if defined(HAVE_USB_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1986 #include <usb.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1987 #endif |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1988 #include <dev/usb/usb.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1989 #include <dev/usb/usbhid.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1990 #if defined(HAVE_USBHID_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1991 #include <usbhid.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1992 #elif defined(HAVE_LIBUSB_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1993 #include <libusb.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1994 #elif defined(HAVE_LIBUSBHID_H) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1995 #include <libusbhid.h> |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1996 #endif |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1997 ],[ |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
1998 report_desc_t d; |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
1999 hid_start_parse(d, 1, 1); |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2000 ],[ |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2001 have_usbhid_new=yes |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2002 ]) |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2003 if test x$have_usbhid_new = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2004 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW" |
407
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2005 fi |
173909e17b7f
API changes on OpenBSD and FreeBSD...
Sam Lantinga <slouken@libsdl.org>
parents:
404
diff
changeset
|
2006 AC_MSG_RESULT($have_usbhid_new) |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
2007 |
1565 | 2008 AC_MSG_CHECKING(for struct joystick in machine/joystick.h) |
2009 have_machine_joystick=no | |
2010 AC_TRY_COMPILE([ | |
2011 #include <machine/joystick.h> | |
2012 ],[ | |
2013 struct joystick t; | |
2014 ],[ | |
2015 have_machine_joystick=yes | |
2016 ]) | |
2017 if test x$have_machine_joystick = xyes; then | |
2018 AC_DEFINE(SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H) | |
2019 fi | |
2020 AC_MSG_RESULT($have_machine_joystick) | |
2021 | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2022 AC_DEFINE(SDL_JOYSTICK_USBHID) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2023 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2024 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS" |
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2025 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2026 have_joystick=yes |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
2027 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2028 CFLAGS="$save_CFLAGS" |
381
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
2029 fi |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
2030 } |
bc1401311390
Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
Sam Lantinga <slouken@libsdl.org>
parents:
378
diff
changeset
|
2031 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2032 dnl Check for clock_gettime() |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2033 CheckClockGettime() |
795
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
2034 { |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2035 AC_ARG_ENABLE(clock_gettime, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
2036 AC_HELP_STRING([--enable-clock_gettime], [use clock_gettime() instead of gettimeofday() on UNIX [[default=no]]]), |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2037 , enable_clock_gettime=no) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2038 if test x$enable_clock_gettime = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2039 AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=yes) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2040 if test x$have_clock_gettime = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2041 AC_DEFINE(HAVE_CLOCK_GETTIME) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2042 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt" |
1175
867f521591e5
Fixed Altivec support on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1174
diff
changeset
|
2043 fi |
795
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
2044 fi |
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
2045 } |
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
2046 |
1062
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2047 dnl Check for a valid linux/version.h |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2048 CheckLinuxVersion() |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2049 { |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2050 AC_CHECK_HEADER(linux/version.h, have_linux_version_h=yes) |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2051 if test x$have_linux_version_h = xyes; then |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2052 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H" |
1062
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2053 fi |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2054 } |
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2055 |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2056 dnl Check if we want to use RPATH |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2057 CheckRPATH() |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2058 { |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2059 AC_ARG_ENABLE(rpath, |
1637
9ba366b919c7
Date: Fri, 31 Mar 2006 18:28:55 -0500
Sam Lantinga <slouken@libsdl.org>
parents:
1632
diff
changeset
|
2060 AC_HELP_STRING([--enable-rpath], [use an rpath when linking SDL [[default=yes]]]), |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2061 , enable_rpath=yes) |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2062 } |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2063 |
1550 | 2064 dnl Set up the configuration based on the host platform! |
2065 case "$host" in | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2066 arm-*-elf*) # FIXME: Can we get more specific for iPodLinux? |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2067 ARCH=linux |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2068 CheckDummyVideo |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2069 CheckIPod |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2070 # Set up files for the timer library |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
2071 if test x$enable_timers = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2072 AC_DEFINE(SDL_TIMER_UNIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2073 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2074 have_timers=yes |
1140
af8b0f9ac2f4
iPod Linux framebuffer support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1136
diff
changeset
|
2075 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2076 ;; |
1820
133d55b02d51
Date: Thu, 11 May 2006 17:09:17 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1813
diff
changeset
|
2077 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-irix*|*-*-aix*|*-*-osf*) |
1550 | 2078 case "$host" in |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2079 *-*-linux*) ARCH=linux ;; |
1820
133d55b02d51
Date: Thu, 11 May 2006 17:09:17 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1813
diff
changeset
|
2080 *-*-uclinux*) ARCH=linux ;; |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2081 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2082 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2083 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2084 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2085 *-*-bsdi*) ARCH=bsdi ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2086 *-*-freebsd*) ARCH=freebsd ;; |
1565 | 2087 *-*-dragonfly*) ARCH=freebsd ;; |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2088 *-*-netbsd*) ARCH=netbsd ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2089 *-*-openbsd*) ARCH=openbsd ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2090 *-*-sysv5*) ARCH=sysv5 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2091 *-*-solaris*) ARCH=solaris ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2092 *-*-hpux*) ARCH=hpux ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2093 *-*-irix*) ARCH=irix ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2094 *-*-aix*) ARCH=aix ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2095 *-*-osf*) ARCH=osf ;; |
795
275708f2e838
Check for altivec assembly support before trying to use it. :)
Sam Lantinga <slouken@libsdl.org>
parents:
780
diff
changeset
|
2096 esac |
1573
2422ca15ba42
Added support for gcc4's -fvisibility=hidden option.
Ryan C. Gordon <icculus@icculus.org>
parents:
1571
diff
changeset
|
2097 CheckVisibilityHidden |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2098 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2099 CheckDiskAudio |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
2100 CheckDummyAudio |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
2101 CheckDLOPEN |
0 | 2102 CheckNASM |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2103 CheckAltivec |
0 | 2104 CheckOSS |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2105 CheckDMEDIA |
1438
1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
Sam Lantinga <slouken@libsdl.org>
parents:
1402
diff
changeset
|
2106 CheckMME |
0 | 2107 CheckALSA |
2108 CheckARTSC | |
2109 CheckESD | |
2110 CheckNAS | |
2111 CheckX11 | |
30
57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
Sam Lantinga <slouken@lokigames.com>
parents:
21
diff
changeset
|
2112 CheckNANOX |
0 | 2113 CheckFBCON |
167
cb384ef627f6
Added support for DirectFB video on Linux (thanks Denis!)
Sam Lantinga <slouken@libsdl.org>
parents:
166
diff
changeset
|
2114 CheckDirectFB |
70
f590dd383b5d
Added Linux PlayStation 2 Graphics Synthesizer support
Sam Lantinga <slouken@lokigames.com>
parents:
68
diff
changeset
|
2115 CheckPS2GS |
0 | 2116 CheckGGI |
2117 CheckSVGA | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2118 CheckVGL |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2119 CheckWscons |
0 | 2120 CheckAAlib |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
2121 CheckQtopia |
433
706de3956894
Added initial support for PicoGUI (thanks Micah!)
Sam Lantinga <slouken@libsdl.org>
parents:
428
diff
changeset
|
2122 CheckPicoGUI |
1191
2bd4cec0de63
Seperate glX from HAVE_OPENGL, for platforms that have both an X server and
Ryan C. Gordon <icculus@icculus.org>
parents:
1187
diff
changeset
|
2123 CheckOpenGLX11 |
0 | 2124 CheckInputEvents |
1201
718d00094f82
Date: Sat, 10 Dec 2005 18:29:41 +0100
Ryan C. Gordon <icculus@icculus.org>
parents:
1200
diff
changeset
|
2125 CheckTslib |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2126 CheckUSBHID |
0 | 2127 CheckPTHREAD |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2128 CheckClockGettime |
1062
3e637850c02b
Date: Tue, 22 Mar 2005 23:50:20 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
1047
diff
changeset
|
2129 CheckLinuxVersion |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2130 CheckRPATH |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2131 # Set up files for the audio library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2132 if test x$enable_audio = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2133 case $ARCH in |
1565 | 2134 sysv5|solaris|hpux) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2135 AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2136 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2137 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2138 ;; |
1565 | 2139 netbsd|openbsd) |
1567
12b6d331d82a
Good idea, renaming OpenBSD audio to BSD audio.
Sam Lantinga <slouken@libsdl.org>
parents:
1566
diff
changeset
|
2140 AC_DEFINE(SDL_AUDIO_DRIVER_BSD) |
12b6d331d82a
Good idea, renaming OpenBSD audio to BSD audio.
Sam Lantinga <slouken@libsdl.org>
parents:
1566
diff
changeset
|
2141 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2142 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2143 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2144 aix) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2145 AC_DEFINE(SDL_AUDIO_DRIVER_PAUD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2146 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2147 have_audio=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2148 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2149 esac |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
2150 fi |
0 | 2151 # Set up files for the joystick library |
2152 if test x$enable_joystick = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2153 case $ARCH in |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2154 linux) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2155 AC_DEFINE(SDL_JOYSTICK_LINUX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2156 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2157 have_joystick=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2158 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2159 esac |
0 | 2160 fi |
2161 # Set up files for the cdrom library | |
2162 if test x$enable_cdrom = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2163 case $ARCH in |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2164 linux|solaris) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2165 AC_DEFINE(SDL_CDROM_LINUX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2166 SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2167 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2168 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2169 *freebsd*) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2170 AC_DEFINE(SDL_CDROM_FREEBSD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2171 SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2172 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2173 ;; |
1383 | 2174 *openbsd*|*netbsd*) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2175 AC_DEFINE(SDL_CDROM_OPENBSD) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2176 SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2177 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2178 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2179 bsdi) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2180 AC_DEFINE(SDL_CDROM_BSDI) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2181 SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2182 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2183 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2184 aix) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2185 AC_DEFINE(SDL_CDROM_AIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2186 SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2187 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2188 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2189 osf) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2190 AC_DEFINE(SDL_CDROM_OSF) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2191 SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2192 have_cdrom=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2193 ;; |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2194 esac |
0 | 2195 fi |
2196 # Set up files for the thread library | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2197 if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2198 AC_DEFINE(SDL_THREAD_SPROC) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2199 SOURCES="$SOURCES $srcdir/src/thread/irix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2200 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2201 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2202 have_threads=yes |
0 | 2203 fi |
2204 # Set up files for the timer library | |
2205 if test x$enable_timers = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2206 AC_DEFINE(SDL_TIMER_UNIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2207 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2208 have_timers=yes |
0 | 2209 fi |
2210 ;; | |
2211 *-*-qnx*) | |
2212 ARCH=qnx | |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2213 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2214 CheckDiskAudio |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
2215 CheckDummyAudio |
886
05c551e5bc64
Date: Sat, 24 Apr 2004 15:13:32 +0300
Sam Lantinga <slouken@libsdl.org>
parents:
884
diff
changeset
|
2216 # CheckNASM |
371
db0cc6034336
Added David Hedbor's Qtopia patches
Sam Lantinga <slouken@libsdl.org>
parents:
360
diff
changeset
|
2217 CheckDLOPEN |
0 | 2218 CheckNAS |
2219 CheckPHOTON | |
2220 CheckX11 | |
1191
2bd4cec0de63
Seperate glX from HAVE_OPENGL, for platforms that have both an X server and
Ryan C. Gordon <icculus@icculus.org>
parents:
1187
diff
changeset
|
2221 CheckOpenGLX11 |
0 | 2222 CheckPTHREAD |
2223 # Set up files for the audio library | |
2224 if test x$enable_audio = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2225 AC_DEFINE(SDL_AUDIO_DRIVER_QNXNTO) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2226 SOURCES="$SOURCES $srcdir/src/audio/nto/*.c" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2227 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2228 have_audio=yes |
0 | 2229 fi |
2230 # Set up files for the cdrom library | |
2231 if test x$enable_cdrom = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2232 AC_DEFINE(SDL_CDROM_QNX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2233 SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2234 have_cdrom=yes |
0 | 2235 fi |
2236 # Set up files for the timer library | |
2237 if test x$enable_timers = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2238 AC_DEFINE(SDL_TIMER_UNIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2239 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2240 have_timers=yes |
0 | 2241 fi |
2242 ;; | |
2243 *-*-cygwin* | *-*-mingw32*) | |
2244 ARCH=win32 | |
1550 | 2245 if test "$build" != "$host"; then # cross-compiling |
0 | 2246 # Default cross-compile location |
2247 ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc | |
2248 else | |
2249 # Look for the location of the tools and install there | |
750
ce48d14ca5bf
Date: Mon, 24 Nov 2003 20:11:31 +0000
Sam Lantinga <slouken@libsdl.org>
parents:
742
diff
changeset
|
2250 if test "$BUILD_PREFIX" != ""; then |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2251 ac_default_prefix=$BUILD_PREFIX |
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2252 fi |
0 | 2253 fi |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2254 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2255 CheckDiskAudio |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
2256 CheckDummyAudio |
0 | 2257 CheckWIN32 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2258 CheckWIN32GL |
0 | 2259 CheckDIRECTX |
2260 CheckNASM | |
2261 # Set up files for the audio library | |
2262 if test x$enable_audio = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2263 AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2264 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2265 if test x$have_directx = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2266 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2267 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c" |
0 | 2268 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2269 have_audio=yes |
0 | 2270 fi |
2271 # Set up files for the joystick library | |
2272 if test x$enable_joystick = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2273 AC_DEFINE(SDL_JOYSTICK_WINMM) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2274 SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2275 have_joystick=yes |
0 | 2276 fi |
2277 # Set up files for the cdrom library | |
2278 if test x$enable_cdrom = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2279 AC_DEFINE(SDL_CDROM_WIN32) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2280 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2281 have_cdrom=yes |
0 | 2282 fi |
2283 # Set up files for the thread library | |
2284 if test x$enable_threads = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2285 AC_DEFINE(SDL_THREAD_WIN32) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2286 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2287 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2288 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2289 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2290 have_threads=yes |
0 | 2291 fi |
2292 # Set up files for the timer library | |
2293 if test x$enable_timers = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2294 AC_DEFINE(SDL_TIMER_WIN32) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2295 SOURCES="$SOURCES $srcdir/src/timer/win32/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2296 have_timers=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2297 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2298 # Set up files for the shared object loading library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2299 if test x$enable_loadso = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2300 AC_DEFINE(SDL_LOADSO_WIN32) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2301 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2302 have_loadso=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2303 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2304 # Set up the system libraries we need |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2305 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2306 if test x$have_directx = xyes; then |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2307 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid" |
0 | 2308 fi |
2309 # The Win32 platform requires special setup | |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2310 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c" |
0 | 2311 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" |
1363
dc623bb58c9a
Fixed building with cygwin
Sam Lantinga <slouken@libsdl.org>
parents:
1361
diff
changeset
|
2312 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows" |
0 | 2313 ;; |
2314 *-*-beos*) | |
2315 ARCH=beos | |
2316 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
|
2317 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2318 CheckDiskAudio |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
2319 CheckDummyAudio |
0 | 2320 CheckNASM |
2321 CheckBWINDOW | |
2322 CheckBeGL | |
2323 # Set up files for the audio library | |
2324 if test x$enable_audio = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2325 AC_DEFINE(SDL_AUDIO_DRIVER_BAUDIO) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2326 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2327 have_audio=yes |
0 | 2328 fi |
2329 # Set up files for the joystick library | |
2330 if test x$enable_joystick = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2331 AC_DEFINE(SDL_JOYSTICK_BEOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2332 SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2333 have_joystick=yes |
0 | 2334 fi |
2335 # Set up files for the cdrom library | |
2336 if test x$enable_cdrom = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2337 AC_DEFINE(SDL_CDROM_BEOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2338 SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2339 have_cdrom=yes |
0 | 2340 fi |
2341 # Set up files for the thread library | |
2342 if test x$enable_threads = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2343 AC_DEFINE(SDL_THREAD_BEOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2344 SOURCES="$SOURCES $srcdir/src/thread/beos/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2345 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2346 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2347 have_threads=yes |
0 | 2348 fi |
2349 # Set up files for the timer library | |
2350 if test x$enable_timers = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2351 AC_DEFINE(SDL_TIMER_BEOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2352 SOURCES="$SOURCES $srcdir/src/timer/beos/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2353 have_timers=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2354 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2355 # Set up files for the shared object loading library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2356 if test x$enable_loadso = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2357 AC_DEFINE(SDL_LOADSO_BEOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2358 SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2359 have_loadso=yes |
0 | 2360 fi |
1367
e440d5c488c1
Fixes for BeOS and Solaris builds
Sam Lantinga <slouken@libsdl.org>
parents:
1366
diff
changeset
|
2361 # The BeOS platform requires special setup. |
e440d5c488c1
Fixes for BeOS and Solaris builds
Sam Lantinga <slouken@libsdl.org>
parents:
1366
diff
changeset
|
2362 SOURCES="$srcdir/src/main/beos/*.cc $SOURCES" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2363 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding" |
0 | 2364 ;; |
2365 *-*-darwin* ) | |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2366 # This could be either full "Mac OS X", or plain "Darwin" which is |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2367 # just the OS X kernel sans upper layers like Carbon and Cocoa. |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2368 # Next line is broken, and a few files below require Mac OS X (full) |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2369 ARCH=macosx |
1624 | 2370 |
1628 | 2371 # Mac OS X builds with both the Carbon and OSX APIs at the moment |
1638
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
2372 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON" |
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
2373 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX" |
1628 | 2374 |
2375 # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point | |
2376 # is -lm which is not needed under Mac OS X. But for some reasons it | |
2377 # also tends to contain spurious -L switches, which we don't want to | |
2378 # use here or in sdl-config. Hence we reset it. | |
1624 | 2379 EXTRA_LDFLAGS="" |
2380 | |
1742
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
2381 CheckVisibilityHidden |
1
cf2af46e9e2a
Changes since SDL 1.2.0 release
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
2382 CheckDummyVideo |
68
ac6645260d31
Added an audio driver that writes to disk (thanks Ryan!)
Sam Lantinga <slouken@lokigames.com>
parents:
53
diff
changeset
|
2383 CheckDiskAudio |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
2384 CheckDummyAudio |
1638
ebd1aedb1292
Miscellaneous Mac OS X fixes
Sam Lantinga <slouken@libsdl.org>
parents:
1637
diff
changeset
|
2385 CheckDLOPEN |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2386 |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2387 # Set up files for the shared object loading library |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2388 # (this needs to be done before the dynamic X11 check) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2389 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2390 AC_DEFINE(SDL_LOADSO_DLCOMPAT) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2391 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2392 have_loadso=yes |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2393 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1640
diff
changeset
|
2394 |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2395 CheckCOCOA |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2396 CheckCARBON |
1174
8c43aceeed81
Enable dynamic X11 on Mac OS X.
Ryan C. Gordon <icculus@icculus.org>
parents:
1173
diff
changeset
|
2397 CheckX11 |
0 | 2398 CheckMacGL |
1191
2bd4cec0de63
Seperate glX from HAVE_OPENGL, for platforms that have both an X server and
Ryan C. Gordon <icculus@icculus.org>
parents:
1187
diff
changeset
|
2399 CheckOpenGLX11 |
0 | 2400 CheckPTHREAD |
1047
ffaaf7ecf685
Altivec-optimized blitters!
Ryan C. Gordon <icculus@icculus.org>
parents:
1035
diff
changeset
|
2401 CheckAltivec |
1445
0133f0ca5de7
Need this or things might misbuild on G3 Mac OS, I think.
Ryan C. Gordon <icculus@icculus.org>
parents:
1438
diff
changeset
|
2402 |
0133f0ca5de7
Need this or things might misbuild on G3 Mac OS, I think.
Ryan C. Gordon <icculus@icculus.org>
parents:
1438
diff
changeset
|
2403 # Need this or things might misbuild on a G3. |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2404 EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL" |
1445
0133f0ca5de7
Need this or things might misbuild on G3 Mac OS, I think.
Ryan C. Gordon <icculus@icculus.org>
parents:
1438
diff
changeset
|
2405 |
0 | 2406 # Set up files for the audio library |
2407 if test x$enable_audio = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2408 AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2409 SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2410 AC_DEFINE(SDL_AUDIO_DRIVER_SNDMGR) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2411 SOURCES="$SOURCES $srcdir/src/audio/macrom/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2412 have_audio=yes |
0 | 2413 fi |
2414 # Set up files for the joystick library | |
2415 if test x$enable_joystick = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2416 AC_DEFINE(SDL_JOYSTICK_IOKIT) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2417 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c" |
1611 | 2418 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2419 have_joystick=yes |
0 | 2420 fi |
2421 # Set up files for the cdrom library | |
2422 if test x$enable_cdrom = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2423 AC_DEFINE(SDL_CDROM_MACOSX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2424 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2425 have_cdrom=yes |
0 | 2426 fi |
2427 # Set up files for the timer library | |
2428 if test x$enable_timers = xyes; then | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2429 AC_DEFINE(SDL_TIMER_UNIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2430 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2431 have_timers=yes |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2432 fi |
1621 | 2433 # The Mac OS X platform requires special setup. |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2434 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m" |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2435 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" |
387
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2436 SDL_LIBS="-lSDLmain $SDL_LIBS" |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2437 if test x$enable_video_cocoa = xyes; then |
1611 | 2438 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2439 fi |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2440 if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2441 # The Cocoa backend still needs Carbon, and the YUV code QuickTime |
1611 | 2442 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuickTime -Wl,-framework,ApplicationServices" |
2443 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" | |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2444 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2445 # If either the audio or CD driver is used, add the AudioUnit framework |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2446 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then |
1611 | 2447 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2448 fi |
0 | 2449 ;; |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2450 *-*-mint*) |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2451 ARCH=mint |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2452 CheckDummyVideo |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2453 CheckDiskAudio |
1532
30f189cdd82b
Implemented dummy audio driver.
Ryan C. Gordon <icculus@icculus.org>
parents:
1521
diff
changeset
|
2454 CheckDummyAudio |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2455 CheckAtariBiosEvent |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2456 CheckAtariXbiosVideo |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2457 CheckAtariGemVideo |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
2458 CheckAtariAudio |
651
35ff0890ac4e
pmandin: Added Atari LDG shared object loader
Patrice Mandin <patmandin@gmail.com>
parents:
648
diff
changeset
|
2459 CheckAtariLdg |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2460 CheckAtariOSMesa |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2461 CheckPTH |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2462 # Set up files for the audio library |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
2463 if test x$enable_threads = xyes -a x$enable_pth = xyes; then |
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
2464 if test x$enable_audio = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2465 AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2466 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2467 have_audio=yes |
398
d219b0e02f5f
Added Atari audio support (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
387
diff
changeset
|
2468 fi |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2469 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2470 # Set up files for the joystick library |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2471 if test x$enable_joystick = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2472 AC_DEFINE(SDL_JOYSTICK_MINT) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2473 SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2474 have_joystick=yes |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2475 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2476 # Set up files for the cdrom library |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2477 if test x$enable_cdrom = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2478 AC_DEFINE(SDL_CDROM_MINT) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2479 SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2480 have_cdrom=yes |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2481 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2482 # Set up files for the timer library |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2483 if test x$enable_timers = xyes; then |
557
0ce5a68278fd
Updated Atari port for new system headers (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
546
diff
changeset
|
2484 if test x$enable_threads = xyes -a x$enable_pth = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2485 AC_DEFINE(SDL_TIMER_UNIX) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2486 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" |
557
0ce5a68278fd
Updated Atari port for new system headers (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
546
diff
changeset
|
2487 else |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2488 AC_DEFINE(SDL_TIMER_MINT) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2489 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c" |
1477
577b41f7dc1d
Add missing asm source files
Patrice Mandin <patmandin@gmail.com>
parents:
1468
diff
changeset
|
2490 SOURCES="$SOURCES $srcdir/src/timer/mint/*.S" |
557
0ce5a68278fd
Updated Atari port for new system headers (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
546
diff
changeset
|
2491 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2492 have_timers=yes |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2493 fi |
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
279
diff
changeset
|
2494 ;; |
1035
974ba6ae0fa3
Date: Wed, 26 Jan 2005 13:37:09 GMT
Sam Lantinga <slouken@libsdl.org>
parents:
1024
diff
changeset
|
2495 *-riscos) |
687
91400ecf307d
Date: Mon, 11 Aug 2003 22:49:06 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
684
diff
changeset
|
2496 ARCH=riscos |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2497 CheckOSS |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2498 CheckPTHREAD |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2499 # Set up files for the video library |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2500 if test x$enable_video = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2501 AC_DEFINE(SDL_VIDEO_DRIVER_RISCOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2502 SOURCES="$SOURCES $srcdir/src/video/riscos/*.c" |
1459
1e8582152d44
Date: Wed, 01 Mar 2006 10:14:31 +0000
Sam Lantinga <slouken@libsdl.org>
parents:
1456
diff
changeset
|
2503 SOURCES="$SOURCES $srcdir/src/video/riscos/*.S" |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2504 have_video=yes |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2505 fi |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2506 # Set up files for the joystick library |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2507 if test x$enable_joystick = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2508 AC_DEFINE(SDL_JOYSTICK_RISCOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2509 SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2510 have_joystick=yes |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2511 fi |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2512 # Set up files for the timer library |
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2513 if test x$enable_timers = xyes; then |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2514 AC_DEFINE(SDL_TIMER_RISCOS) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2515 SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2516 have_timers=yes |
955
d74fbf56f2f6
Date: Fri, 25 Jun 2004 13:29:15 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
948
diff
changeset
|
2517 fi |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2518 # The RISC OS platform requires special setup. |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2519 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz" |
687
91400ecf307d
Date: Mon, 11 Aug 2003 22:49:06 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
684
diff
changeset
|
2520 ;; |
0 | 2521 *) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2522 AC_MSG_ERROR([ |
1550 | 2523 *** Unsupported host: Please add to configure.in |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2524 ]) |
0 | 2525 ;; |
2526 esac | |
2527 | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2528 # Verify that we have all the platform specific files we need |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2529 if test x$have_joystick != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2530 if test x$enable_joystick = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2531 AC_DEFINE(SDL_JOYSTICK_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2532 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2533 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2534 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2535 if test x$have_cdrom != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2536 if test x$enable_cdrom = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2537 AC_DEFINE(SDL_CDROM_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2538 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2539 SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2540 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2541 if test x$have_threads != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2542 if test x$enable_threads = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2543 AC_DEFINE(SDL_THREADS_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2544 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2545 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2546 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2547 if test x$have_timers != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2548 if test x$enable_timers = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2549 AC_DEFINE(SDL_TIMERS_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2550 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2551 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2552 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2553 if test x$have_loadso != xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2554 if test x$enable_loadso = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2555 AC_DEFINE(SDL_LOADSO_DISABLED) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2556 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2557 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2558 fi |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2559 if test x$SDLMAIN_SOURCES = x; then |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2560 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c" |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2561 fi |
0 | 2562 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2563 OBJECTS=`echo $SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.asm,$(objects)/\1.lo,g'` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2564 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.lo,g'` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2565 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.lo,g'` |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2566 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'` |
1459
1e8582152d44
Date: Wed, 01 Mar 2006 10:14:31 +0000
Sam Lantinga <slouken@libsdl.org>
parents:
1456
diff
changeset
|
2567 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.S,$(objects)/\1.lo,g'` |
0 | 2568 |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2569 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.o,g'` |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2570 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.o,g'` |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2571 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'` |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2572 |
0 | 2573 # Set runtime shared library paths as needed |
2574 | |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2575 if test "x$enable_rpath" = "xyes"; then |
1565 | 2576 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then |
1127
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2577 SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2578 fi |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2579 if test $ARCH = solaris; then |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2580 SDL_RLD_FLAGS="-R\${exec_prefix}/lib" |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2581 fi |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2582 else |
fb8818ee9112
Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
1062
diff
changeset
|
2583 SDL_RLD_FLAGS="" |
0 | 2584 fi |
387
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2585 |
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2586 case "$ARCH" in |
469d5c0da01d
Fixed shared library building on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
382
diff
changeset
|
2587 macosx) |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2588 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then |
1611 | 2589 SDL_LIBS="$SDL_LIBS -Wl,-framework,Cocoa" |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2590 fi |
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2591 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then |
1611 | 2592 SDL_LIBS="$SDL_LIBS -Wl,-framework,Carbon" |
1133
609c060fd2a2
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org>
parents:
1127
diff
changeset
|
2593 fi |
807
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2594 # Evil hack to allow static linking on Mac OS X |
1624 | 2595 SDL_STATIC_LIBS="\${exec_prefix}/lib/libSDLmain.a \${exec_prefix}/lib/libSDL.a $EXTRA_LDFLAGS" |
807
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2596 ;; |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2597 *) |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2598 SDL_STATIC_LIBS="$SDL_LIBS" |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2599 ;; |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2600 esac |
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2601 |
0 | 2602 dnl Expand the cflags and libraries needed by apps using SDL |
2603 AC_SUBST(SDL_CFLAGS) | |
2604 AC_SUBST(SDL_LIBS) | |
807
674df5617bba
Fixed static linking on MacOS X (thanks Max!)
Sam Lantinga <slouken@libsdl.org>
parents:
802
diff
changeset
|
2605 AC_SUBST(SDL_STATIC_LIBS) |
0 | 2606 AC_SUBST(SDL_RLD_FLAGS) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2607 if test x$enable_shared = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2608 ENABLE_SHARED_TRUE= |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2609 ENABLE_SHARED_FALSE="#" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2610 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2611 ENABLE_SHARED_TRUE="#" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2612 ENABLE_SHARED_FALSE= |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2613 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2614 if test x$enable_static = xyes; then |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2615 ENABLE_STATIC_TRUE= |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2616 ENABLE_STATIC_FALSE="#" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2617 else |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2618 ENABLE_STATIC_TRUE="#" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2619 ENABLE_STATIC_FALSE= |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2620 fi |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2621 AC_SUBST(ENABLE_SHARED_TRUE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2622 AC_SUBST(ENABLE_SHARED_FALSE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2623 AC_SUBST(ENABLE_STATIC_TRUE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2624 AC_SUBST(ENABLE_STATIC_FALSE) |
0 | 2625 |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2626 dnl Expand the sources and objects needed to build the library |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2627 AC_SUBST(ac_aux_dir) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2628 AC_SUBST(INCLUDE) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2629 AC_SUBST(SOURCES) |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2630 AC_SUBST(OBJECTS) |
1397
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2631 AC_SUBST(SDLMAIN_SOURCES) |
b189a73aa335
Added rules to build libSDLmain.a
Sam Lantinga <slouken@libsdl.org>
parents:
1396
diff
changeset
|
2632 AC_SUBST(SDLMAIN_OBJECTS) |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2633 AC_SUBST(BUILD_CFLAGS) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2634 AC_SUBST(EXTRA_CFLAGS) |
1393
cd3362657144
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org>
parents:
1389
diff
changeset
|
2635 AC_SUBST(BUILD_LDFLAGS) |
1521
9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Sam Lantinga <slouken@libsdl.org>
parents:
1520
diff
changeset
|
2636 AC_SUBST(EXTRA_LDFLAGS) |
158
4382c38dfbee
Date: Tue, 21 Aug 2001 03:50:01 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
153
diff
changeset
|
2637 |
0 | 2638 AC_OUTPUT([ |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2639 Makefile sdl-config SDL.spec SDL.qpg |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2640 ], [ |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2641 : >build-deps |
1640
5eaab017cc28
Use the MAKE variable when available
Sam Lantinga <slouken@libsdl.org>
parents:
1638
diff
changeset
|
2642 if test x"$MAKE" = x; then MAKE=make; fi; $MAKE depend |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1354
diff
changeset
|
2643 ]) |