author | Ryan C. Gordon <icculus@icculus.org> |
Sun, 13 Mar 2005 09:16:26 +0000 | |
changeset 680 | 413803699662 |
parent 666 | 7ca5dede89f2 |
child 699 | b4bdb3a6f173 |
permissions | -rw-r--r-- |
213 | 1 |
# Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(physfs.c) |
|
3 |
||
4 |
dnl --------------------------------------------------------------------- |
|
5 |
dnl System/version info |
|
6 |
dnl --------------------------------------------------------------------- |
|
7 |
||
8 |
# Making releases: |
|
9 |
# MICRO_VERSION += 1; |
|
10 |
# INTERFACE_AGE += 1; |
|
11 |
# BINARY_AGE += 1; |
|
12 |
# if any functions have been added, set INTERFACE_AGE to 0. |
|
13 |
# if backwards compatibility has been broken, |
|
14 |
# set BINARY_AGE and INTERFACE_AGE to 0. |
|
15 |
||
625
60b5f566a258
Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents:
609
diff
changeset
|
16 |
MAJOR_VERSION=1 |
60b5f566a258
Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents:
609
diff
changeset
|
17 |
MINOR_VERSION=0 |
60b5f566a258
Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents:
609
diff
changeset
|
18 |
MICRO_VERSION=0 |
213 | 19 |
INTERFACE_AGE=0 |
20 |
BINARY_AGE=0 |
|
21 |
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION |
|
22 |
||
23 |
AC_SUBST(MAJOR_VERSION) |
|
24 |
AC_SUBST(MINOR_VERSION) |
|
25 |
AC_SUBST(MICRO_VERSION) |
|
26 |
AC_SUBST(INTERFACE_AGE) |
|
27 |
AC_SUBST(BINARY_AGE) |
|
28 |
AC_SUBST(VERSION) |
|
29 |
||
30 |
# libtool versioning |
|
31 |
LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION |
|
32 |
LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE` |
|
33 |
LT_REVISION=$INTERFACE_AGE |
|
34 |
LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE` |
|
35 |
||
36 |
AC_SUBST(LT_RELEASE) |
|
37 |
AC_SUBST(LT_CURRENT) |
|
38 |
AC_SUBST(LT_REVISION) |
|
39 |
AC_SUBST(LT_AGE) |
|
40 |
||
41 |
dnl Detect the canonical host and target build environment |
|
593
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
42 |
AC_CANONICAL_SYSTEM |
213 | 43 |
|
44 |
dnl Setup for automake |
|
45 |
AM_CONFIG_HEADER(config.h) |
|
46 |
AM_INIT_AUTOMAKE(physfs, $VERSION) |
|
47 |
||
48 |
||
49 |
dnl --------------------------------------------------------------------- |
|
50 |
dnl Compilers and other tools |
|
51 |
dnl --------------------------------------------------------------------- |
|
52 |
||
53 |
AC_PROG_CC |
|
234 | 54 |
AC_PROG_CXX |
213 | 55 |
AC_PROG_INSTALL |
56 |
AC_PROG_LN_S |
|
289
a0bca1a03a54
Can now build shared libraries under BeOS, and probably Cygwin, too.
Ryan C. Gordon <icculus@icculus.org>
parents:
285
diff
changeset
|
57 |
AC_LIBTOOL_WIN32_DLL |
302
b6fe2b615045
Build dance continues.
Ryan C. Gordon <icculus@icculus.org>
parents:
296
diff
changeset
|
58 |
LIBTOOL="libtool" |
b6fe2b615045
Build dance continues.
Ryan C. Gordon <icculus@icculus.org>
parents:
296
diff
changeset
|
59 |
AM_PROG_LIBTOOL |
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
60 |
AC_CHECK_PROG(we_have_sed, sed, yes, no) |
213 | 61 |
|
62 |
dnl --------------------------------------------------------------------- |
|
63 |
dnl Debug mode? |
|
64 |
dnl --------------------------------------------------------------------- |
|
65 |
||
66 |
AC_ARG_ENABLE(debug, |
|
507
e13baf8efaaa
Minor fix; reported default --enable-debug state incorrectly.
Ryan C. Gordon <icculus@icculus.org>
parents:
504
diff
changeset
|
67 |
[ --enable-debug enable debug mode [default=no]], |
461
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
68 |
, enable_debug=no) |
213 | 69 |
if test x$enable_debug = xyes; then |
70 |
if test x$ac_cv_prog_cc_g = xyes; then |
|
459
5fa02060a63f
Hopefully fix broken autoconfs.
Ryan C. Gordon <icculus@icculus.org>
parents:
454
diff
changeset
|
71 |
PHYSFSCFLAGS="-g -O0" |
213 | 72 |
else |
459
5fa02060a63f
Hopefully fix broken autoconfs.
Ryan C. Gordon <icculus@icculus.org>
parents:
454
diff
changeset
|
73 |
PHYSFSCFLAGS="-O0" |
213 | 74 |
fi |
459
5fa02060a63f
Hopefully fix broken autoconfs.
Ryan C. Gordon <icculus@icculus.org>
parents:
454
diff
changeset
|
75 |
PHYSFSCFLAGS="$PHYSFSCFLAGS -Werror -Wall" |
331
822f78a88aba
Now makes newer autoconfs happier.
Ryan C. Gordon <icculus@icculus.org>
parents:
323
diff
changeset
|
76 |
AC_DEFINE([DEBUG], 1, [define if debug build is enabled]) |
822f78a88aba
Now makes newer autoconfs happier.
Ryan C. Gordon <icculus@icculus.org>
parents:
323
diff
changeset
|
77 |
AC_DEFINE([DEBUG_CHATTER], 1, [define if debug chatter is enabled]) |
213 | 78 |
else |
459
5fa02060a63f
Hopefully fix broken autoconfs.
Ryan C. Gordon <icculus@icculus.org>
parents:
454
diff
changeset
|
79 |
PHYSFSCFLAGS="-O2" |
331
822f78a88aba
Now makes newer autoconfs happier.
Ryan C. Gordon <icculus@icculus.org>
parents:
323
diff
changeset
|
80 |
AC_DEFINE([NDEBUG], 1, [define if debug build is disabled]) |
213 | 81 |
fi |
82 |
||
83 |
||
84 |
dnl --------------------------------------------------------------------- |
|
461
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
85 |
dnl Profile sorts, etc? |
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
86 |
dnl --------------------------------------------------------------------- |
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
87 |
|
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
88 |
AC_ARG_ENABLE(profiling, |
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
89 |
[ --enable-profiling do algorithm profiling [default=no]], |
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
90 |
, enable_profiling=no) |
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
91 |
if test x$enable_profiling = xyes; then |
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
92 |
AC_DEFINE([PHYSFS_PROFILING], 1, [define to profile sorting, etc algorithms]) |
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
93 |
fi |
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
94 |
|
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
95 |
|
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
96 |
dnl --------------------------------------------------------------------- |
213 | 97 |
dnl Build test program? |
98 |
dnl --------------------------------------------------------------------- |
|
99 |
||
100 |
AC_ARG_ENABLE(testprog, |
|
101 |
[ --enable-testprog build test program [default=yes]], |
|
461
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
102 |
, enable_testprog=yes) |
213 | 103 |
|
104 |
dnl --------------------------------------------------------------------- |
|
105 |
dnl Checks for libraries. |
|
106 |
dnl --------------------------------------------------------------------- |
|
107 |
||
108 |
require_zlib="no" |
|
109 |
||
110 |
dnl Check for zip archiver inclusion... |
|
111 |
AC_ARG_ENABLE(zip, |
|
112 |
[ --enable-zip enable ZIP support [default=yes]], |
|
461
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
113 |
, enable_zip=yes) |
213 | 114 |
if test x$enable_zip = xyes; then |
331
822f78a88aba
Now makes newer autoconfs happier.
Ryan C. Gordon <icculus@icculus.org>
parents:
323
diff
changeset
|
115 |
AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled]) |
213 | 116 |
require_zlib="yes" |
117 |
fi |
|
118 |
||
119 |
||
453
108de3bb1b6b
Added qpak.c to build systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
444
diff
changeset
|
120 |
dnl Check for grp archiver inclusion... |
213 | 121 |
AC_ARG_ENABLE(grp, |
122 |
[ --enable-grp enable Build Engine GRP support [default=yes]], |
|
461
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
123 |
, enable_grp=yes) |
213 | 124 |
if test x$enable_grp = xyes; then |
331
822f78a88aba
Now makes newer autoconfs happier.
Ryan C. Gordon <icculus@icculus.org>
parents:
323
diff
changeset
|
125 |
AC_DEFINE([PHYSFS_SUPPORTS_GRP], 1, [define if grp support is enabled]) |
213 | 126 |
fi |
127 |
||
609
3a91332776e0
Added Doom WAD support.
Ryan C. Gordon <icculus@icculus.org>
parents:
604
diff
changeset
|
128 |
dnl Check for wad archiver inclusion... |
3a91332776e0
Added Doom WAD support.
Ryan C. Gordon <icculus@icculus.org>
parents:
604
diff
changeset
|
129 |
AC_ARG_ENABLE(wad, |
3a91332776e0
Added Doom WAD support.
Ryan C. Gordon <icculus@icculus.org>
parents:
604
diff
changeset
|
130 |
[ --enable-wad enable Doom WAD support [default=yes]], |
3a91332776e0
Added Doom WAD support.
Ryan C. Gordon <icculus@icculus.org>
parents:
604
diff
changeset
|
131 |
, enable_wad=yes) |
3a91332776e0
Added Doom WAD support.
Ryan C. Gordon <icculus@icculus.org>
parents:
604
diff
changeset
|
132 |
if test x$enable_wad = xyes; then |
3a91332776e0
Added Doom WAD support.
Ryan C. Gordon <icculus@icculus.org>
parents:
604
diff
changeset
|
133 |
AC_DEFINE([PHYSFS_SUPPORTS_WAD], 1, [define if wad support is enabled]) |
3a91332776e0
Added Doom WAD support.
Ryan C. Gordon <icculus@icculus.org>
parents:
604
diff
changeset
|
134 |
fi |
213 | 135 |
|
553
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
136 |
dnl Check for hog archiver inclusion... |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
137 |
AC_ARG_ENABLE(hog, |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
138 |
[ --enable-hog enable Descent I/II HOG support [default=yes]], |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
139 |
, enable_hog=yes) |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
140 |
if test x$enable_hog = xyes; then |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
141 |
AC_DEFINE([PHYSFS_SUPPORTS_HOG], 1, [define if hog support is enabled]) |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
142 |
fi |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
143 |
|
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
144 |
|
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
145 |
dnl Check for mvl archiver inclusion... |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
146 |
AC_ARG_ENABLE(mvl, |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
147 |
[ --enable-mvl enable Descent II MVL support [default=yes]], |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
148 |
, enable_mvl=yes) |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
149 |
if test x$enable_mvl = xyes; then |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
150 |
AC_DEFINE([PHYSFS_SUPPORTS_MVL], 1, [define if mvl support is enabled]) |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
151 |
fi |
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
152 |
|
4338d9c0bbcd
Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents:
527
diff
changeset
|
153 |
|
453
108de3bb1b6b
Added qpak.c to build systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
444
diff
changeset
|
154 |
dnl Check for qpak archiver inclusion... |
108de3bb1b6b
Added qpak.c to build systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
444
diff
changeset
|
155 |
AC_ARG_ENABLE(qpak, |
108de3bb1b6b
Added qpak.c to build systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
444
diff
changeset
|
156 |
[ --enable-qpak enable Quake PAK support [default=yes]], |
461
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
157 |
, enable_qpak=yes) |
453
108de3bb1b6b
Added qpak.c to build systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
444
diff
changeset
|
158 |
if test x$enable_qpak = xyes; then |
108de3bb1b6b
Added qpak.c to build systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
444
diff
changeset
|
159 |
AC_DEFINE([PHYSFS_SUPPORTS_QPAK], 1, [define if qpak support is enabled]) |
108de3bb1b6b
Added qpak.c to build systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
444
diff
changeset
|
160 |
fi |
108de3bb1b6b
Added qpak.c to build systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
444
diff
changeset
|
161 |
|
631
17fdeeaf7b51
Westwood MIX archive support.
Ryan C. Gordon <icculus@icculus.org>
parents:
627
diff
changeset
|
162 |
dnl Check for mix archiver inclusion... |
17fdeeaf7b51
Westwood MIX archive support.
Ryan C. Gordon <icculus@icculus.org>
parents:
627
diff
changeset
|
163 |
AC_ARG_ENABLE(mix, |
17fdeeaf7b51
Westwood MIX archive support.
Ryan C. Gordon <icculus@icculus.org>
parents:
627
diff
changeset
|
164 |
[ --enable-mix enable Westwood MIX support [default=no]], |
17fdeeaf7b51
Westwood MIX archive support.
Ryan C. Gordon <icculus@icculus.org>
parents:
627
diff
changeset
|
165 |
, enable_mix=no) |
17fdeeaf7b51
Westwood MIX archive support.
Ryan C. Gordon <icculus@icculus.org>
parents:
627
diff
changeset
|
166 |
if test x$enable_mix = xyes; then |
17fdeeaf7b51
Westwood MIX archive support.
Ryan C. Gordon <icculus@icculus.org>
parents:
627
diff
changeset
|
167 |
AC_DEFINE([PHYSFS_SUPPORTS_MIX], 1, [define if mix support is enabled]) |
17fdeeaf7b51
Westwood MIX archive support.
Ryan C. Gordon <icculus@icculus.org>
parents:
627
diff
changeset
|
168 |
fi |
17fdeeaf7b51
Westwood MIX archive support.
Ryan C. Gordon <icculus@icculus.org>
parents:
627
diff
changeset
|
169 |
|
17fdeeaf7b51
Westwood MIX archive support.
Ryan C. Gordon <icculus@icculus.org>
parents:
627
diff
changeset
|
170 |
|
461
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
171 |
dnl Check if we should statically link the included zlib... |
213 | 172 |
AC_ARG_ENABLE(internal-zlib, |
173 |
[ --enable-internal-zlib use included zlib [default=only if needed]], |
|
174 |
, enable_internal_zlib=maybe) |
|
175 |
||
176 |
dnl Check for zlib if needed. |
|
177 |
have_external_zlib="no" |
|
178 |
if test x$enable_internal_zlib != xyes; then |
|
179 |
if test x$require_zlib = xyes; then |
|
180 |
AC_CHECK_HEADER(zlib.h, have_zlib_hdr=yes) |
|
181 |
AC_CHECK_LIB(z, zlibVersion, have_zlib_lib=yes) |
|
182 |
if test x$have_zlib_hdr = xyes -a x$have_zlib_lib = xyes; then |
|
183 |
have_external_zlib="yes" |
|
184 |
fi |
|
185 |
fi |
|
186 |
fi |
|
187 |
||
188 |
AC_MSG_CHECKING([what zlib to use]) |
|
189 |
||
190 |
dnl no zlib is needed at all if we aren't supporting ZIP files. |
|
191 |
if test x$require_zlib = xno; then |
|
192 |
enable_internal_zlib="no" |
|
193 |
enable_external_zlib="no" |
|
194 |
AC_MSG_RESULT([no zlib needed]) |
|
195 |
else |
|
196 |
||
197 |
if test x$enable_internal_zlib = xmaybe; then |
|
198 |
if test x$have_external_zlib = xyes; then |
|
199 |
enable_internal_zlib="no" |
|
200 |
enable_external_zlib="yes" |
|
201 |
else |
|
202 |
enable_internal_zlib="yes" |
|
203 |
enable_external_zlib="no" |
|
204 |
fi |
|
205 |
else |
|
206 |
if test x$enable_internal_zlib = xno -a x$have_external_zlib = xyes; then |
|
207 |
enable_internal_zlib="no" |
|
208 |
enable_external_zlib="yes" |
|
209 |
fi |
|
210 |
fi |
|
211 |
||
212 |
if test x$enable_internal_zlib = xyes; then |
|
213 |
AC_MSG_RESULT([internal zlib]) |
|
625
60b5f566a258
Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents:
609
diff
changeset
|
214 |
PHYSFSCFLAGS="$PHYSFSCFLAGS -DZ_PREFIX" |
213 | 215 |
else |
216 |
if test x$enable_external_zlib = xyes; then |
|
217 |
AC_MSG_RESULT([external zlib]) |
|
218 |
LIBS="$LIBS -lz" |
|
219 |
else |
|
220 |
AC_MSG_ERROR([Need zlib, but you disabled our copy and have no system lib]) |
|
221 |
fi |
|
222 |
fi |
|
223 |
fi |
|
224 |
||
225 |
||
226 |
dnl determine if we should include readline support... |
|
227 |
AC_ARG_ENABLE(readline, |
|
228 |
[ --enable-readline use GNU readline in test program [default=yes]], |
|
461
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
229 |
, enable_readline=yes) |
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
230 |
|
213 | 231 |
if test x$enable_readline = xyes; then |
232 |
AC_CHECK_HEADER(readline/readline.h, have_readline_hdr=yes) |
|
218
9415dcace296
readline detection fixes by Edward Rudd.
Ryan C. Gordon <icculus@icculus.org>
parents:
216
diff
changeset
|
233 |
AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lcurses) |
213 | 234 |
AC_CHECK_HEADER(readline/history.h, have_history_hdr=yes) |
218
9415dcace296
readline detection fixes by Edward Rudd.
Ryan C. Gordon <icculus@icculus.org>
parents:
216
diff
changeset
|
235 |
AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lcurses) |
213 | 236 |
if test x$have_readline_hdr = xyes -a x$have_readline_lib = xyes; then |
237 |
if test x$have_history_hdr = xyes -a x$have_history_lib = xyes; then |
|
331
822f78a88aba
Now makes newer autoconfs happier.
Ryan C. Gordon <icculus@icculus.org>
parents:
323
diff
changeset
|
238 |
AC_DEFINE([PHYSFS_HAVE_READLINE], 1, [define if we have readline]) |
604
ea8664e863c2
Make physfs itself not link against readline and ncurses (just
Ryan C. Gordon <icculus@icculus.org>
parents:
602
diff
changeset
|
239 |
have_readline="yes" |
213 | 240 |
fi |
241 |
fi |
|
242 |
fi |
|
243 |
||
382
7c63d65fd179
Made CD-ROM stuff a bit more automatic.
Ryan C. Gordon <icculus@icculus.org>
parents:
381
diff
changeset
|
244 |
dnl !!! FIXME: Not sure how to detect this... |
7c63d65fd179
Made CD-ROM stuff a bit more automatic.
Ryan C. Gordon <icculus@icculus.org>
parents:
381
diff
changeset
|
245 |
dnl check for 64-bit llseek()... |
7c63d65fd179
Made CD-ROM stuff a bit more automatic.
Ryan C. Gordon <icculus@icculus.org>
parents:
381
diff
changeset
|
246 |
dnl AC_CHECK_LIB(c, llseek, have_llseek=yes) |
7c63d65fd179
Made CD-ROM stuff a bit more automatic.
Ryan C. Gordon <icculus@icculus.org>
parents:
381
diff
changeset
|
247 |
if test x$have_llseek = xyes; then |
7c63d65fd179
Made CD-ROM stuff a bit more automatic.
Ryan C. Gordon <icculus@icculus.org>
parents:
381
diff
changeset
|
248 |
AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek]) |
7c63d65fd179
Made CD-ROM stuff a bit more automatic.
Ryan C. Gordon <icculus@icculus.org>
parents:
381
diff
changeset
|
249 |
fi |
7c63d65fd179
Made CD-ROM stuff a bit more automatic.
Ryan C. Gordon <icculus@icculus.org>
parents:
381
diff
changeset
|
250 |
|
384
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
251 |
|
390
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
252 |
dnl determine if we should use the stubbed pthread code. |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
253 |
AC_ARG_ENABLE(pthreads, |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
254 |
[ --enable-pthreads include POSIX threads support [default=yes]], |
461
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
255 |
, enable_pthreads=yes) |
390
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
256 |
if test x$enable_pthreads = xyes; then |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
257 |
AC_CHECK_HEADER(pthread.h, have_pthread_hdr=yes) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
258 |
if test x$have_pthread_hdr != xyes; then |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
259 |
enable_pthreads=no |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
260 |
fi |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
261 |
fi |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
262 |
|
381
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
263 |
dnl determine if we should use the stubbed CD-ROM detection code. |
384
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
264 |
AC_ARG_ENABLE(cdrom, |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
265 |
[ --enable-cdrom include CD-ROM support [default=yes]], |
461
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
266 |
, enable_cdrom=yes) |
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
267 |
|
384
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
268 |
if test x$enable_cdrom = xyes; then |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
269 |
dnl reset this and let header detection reenable... |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
270 |
enable_cdrom=no |
382
7c63d65fd179
Made CD-ROM stuff a bit more automatic.
Ryan C. Gordon <icculus@icculus.org>
parents:
381
diff
changeset
|
271 |
|
384
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
272 |
dnl BSD systems use sys/ucred.h for getting mounted volumes. |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
273 |
dnl Linux and others use mntent.h. |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
274 |
AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes) |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
275 |
if test x$have_ucred_hdr = xyes; then |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
276 |
AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h]) |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
277 |
enable_cdrom=yes |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
278 |
fi |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
279 |
|
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
280 |
AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes) |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
281 |
if test x$have_mntent_hdr = xyes; then |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
282 |
AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h]) |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
283 |
enable_cdrom=yes |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
284 |
fi |
382
7c63d65fd179
Made CD-ROM stuff a bit more automatic.
Ryan C. Gordon <icculus@icculus.org>
parents:
381
diff
changeset
|
285 |
fi |
7c63d65fd179
Made CD-ROM stuff a bit more automatic.
Ryan C. Gordon <icculus@icculus.org>
parents:
381
diff
changeset
|
286 |
|
427
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
287 |
dnl determine language. |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
288 |
AC_ARG_ENABLE(language, |
435
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
289 |
[ --enable-language=lang Select natural language. [default=english]], |
461
3340aee8ba50
Corrected some wrong behaviour, added profiling option.
Ryan C. Gordon <icculus@icculus.org>
parents:
459
diff
changeset
|
290 |
physfslang=`echo $enable_language |tr A-Z a-z`, physfslang=english) |
427
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
291 |
|
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
292 |
AC_MSG_CHECKING([if language choice is supported]) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
293 |
physfs_valid_lang=no |
435
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
294 |
|
427
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
295 |
if test x$physfslang = xenglish; then |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
296 |
physfs_valid_lang=yes |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
297 |
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_ENGLISH, [define desired natural language]) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
298 |
fi |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
299 |
|
585
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
300 |
if test x$physfslang = xgerman; then |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
301 |
physfs_valid_lang=yes |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
302 |
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_GERMAN, [define desired natural language]) |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
303 |
fi |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
304 |
|
641
c6b04c2a0599
Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents:
631
diff
changeset
|
305 |
if test x$physfslang = xspanish; then |
c6b04c2a0599
Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents:
631
diff
changeset
|
306 |
physfs_valid_lang=yes |
c6b04c2a0599
Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents:
631
diff
changeset
|
307 |
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_SPANISH, [define desired natural language]) |
c6b04c2a0599
Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents:
631
diff
changeset
|
308 |
fi |
c6b04c2a0599
Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents:
631
diff
changeset
|
309 |
|
441
12831102c972
French support in build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
435
diff
changeset
|
310 |
if test x$physfslang = xfrench; then |
12831102c972
French support in build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
435
diff
changeset
|
311 |
physfs_valid_lang=yes |
12831102c972
French support in build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
435
diff
changeset
|
312 |
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_FRENCH, [define desired natural language]) |
12831102c972
French support in build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
435
diff
changeset
|
313 |
fi |
12831102c972
French support in build system.
Ryan C. Gordon <icculus@icculus.org>
parents:
435
diff
changeset
|
314 |
|
585
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
315 |
if test x$physfslang = xrussian-koi8-r; then |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
316 |
physfs_valid_lang=yes |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
317 |
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_KOI8_R, [define desired natural language]) |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
318 |
fi |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
319 |
|
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
320 |
if test x$physfslang = xrussian-cp1251; then |
511
7a36b164a975
Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents:
507
diff
changeset
|
321 |
physfs_valid_lang=yes |
585
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
322 |
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_CP866, [define desired natural language]) |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
323 |
fi |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
324 |
|
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
325 |
if test x$physfslang = xrussian-cp866; then |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
326 |
physfs_valid_lang=yes |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
327 |
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_CP866, [define desired natural language]) |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
328 |
fi |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
329 |
|
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
330 |
if test x$physfslang = xrussian-iso-8859-5; then |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
331 |
physfs_valid_lang=yes |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
332 |
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_ISO_8859_5, [define desired natural language]) |
511
7a36b164a975
Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents:
507
diff
changeset
|
333 |
fi |
435
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
334 |
|
627
c47634e23a35
Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents:
625
diff
changeset
|
335 |
if test x$physfslang = xportuguese-br; then |
c47634e23a35
Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents:
625
diff
changeset
|
336 |
physfs_valid_lang=yes |
c47634e23a35
Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents:
625
diff
changeset
|
337 |
AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_PORTUGUESE_BR, [define desired natural language]) |
c47634e23a35
Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents:
625
diff
changeset
|
338 |
fi |
c47634e23a35
Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents:
625
diff
changeset
|
339 |
|
427
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
340 |
dnl Add other language checks here... |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
341 |
|
435
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
342 |
|
427
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
343 |
AC_MSG_RESULT([$physfs_valid_lang]) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
344 |
if test x$physfs_valid_lang = xno; then |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
345 |
AC_MSG_WARN([***]) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
346 |
AC_MSG_WARN([*** You've asked for "$physfslang" language support...]) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
347 |
AC_MSG_WARN([*** ...but we don't support that.]) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
348 |
AC_MSG_WARN([*** You could choose another language,]) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
349 |
AC_MSG_WARN([*** but is this what you REALLY wanted?]) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
350 |
AC_MSG_WARN([*** Please see the LANG section of physfs_internal.h]) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
351 |
AC_MSG_WARN([*** for info on writing a translation.]) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
352 |
AC_MSG_WARN([***]) |
435
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
353 |
AC_MSG_WARN([*** Currently known languages:]) |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
354 |
AC_MSG_WARN([*** --enable-language=english]) |
641
c6b04c2a0599
Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents:
631
diff
changeset
|
355 |
AC_MSG_WARN([*** --enable-language=spanish]) |
571
52430414dd57
MacOSX/Darwin tweaks, other corrections.
Ryan C. Gordon <icculus@icculus.org>
parents:
553
diff
changeset
|
356 |
AC_MSG_WARN([*** --enable-language=german]) |
52430414dd57
MacOSX/Darwin tweaks, other corrections.
Ryan C. Gordon <icculus@icculus.org>
parents:
553
diff
changeset
|
357 |
AC_MSG_WARN([*** --enable-language=french]) |
585
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
358 |
AC_MSG_WARN([*** --enable-language=russian-koi8-r]) |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
359 |
AC_MSG_WARN([*** --enable-language=russian-cp1251]) |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
360 |
AC_MSG_WARN([*** --enable-language=russian-cp866]) |
760fe85ea2a0
Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents:
576
diff
changeset
|
361 |
AC_MSG_WARN([*** --enable-language=russian-iso-8859-5]) |
627
c47634e23a35
Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents:
625
diff
changeset
|
362 |
AC_MSG_WARN([*** --enable-language=portuguese-br]) |
435
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
363 |
AC_MSG_WARN([***]) |
427
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
364 |
AC_MSG_ERROR([*** unsupported language. stop.]) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
365 |
fi |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
390
diff
changeset
|
366 |
|
390
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
367 |
have_non_posix_threads=no |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
368 |
|
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
369 |
AC_MSG_CHECKING([if this is BeOS]) |
593
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
370 |
if test x$target_os = xbeos; then |
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
371 |
this_is_beos=yes |
625
60b5f566a258
Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents:
609
diff
changeset
|
372 |
have_non_posix_threads=yes |
60b5f566a258
Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents:
609
diff
changeset
|
373 |
enable_cdrom=yes |
390
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
374 |
enable_pthreads=no |
234 | 375 |
LIBS="$LIBS -lroot -lbe" |
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
376 |
else |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
377 |
this_is_beos=no |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
378 |
fi |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
379 |
|
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
380 |
AC_MSG_RESULT([$this_is_beos]) |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
381 |
|
310
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
382 |
AC_MSG_CHECKING([if this is Cygwin]) |
593
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
383 |
if test x$target_os = xcygwin; then |
310
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
384 |
this_is_cygwin=yes |
459
5fa02060a63f
Hopefully fix broken autoconfs.
Ryan C. Gordon <icculus@icculus.org>
parents:
454
diff
changeset
|
385 |
PHYSFSCFLAGS="$PHYSFSCFLAGS -DWIN32" |
625
60b5f566a258
Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents:
609
diff
changeset
|
386 |
enable_cdrom=yes |
390
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
387 |
enable_pthreads=no |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
388 |
have_non_posix_threads=yes |
310
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
389 |
else |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
390 |
this_is_cygwin=no |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
391 |
fi |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
392 |
|
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
393 |
AC_MSG_RESULT([$this_is_cygwin]) |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
394 |
|
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
395 |
this_is_macosx=no |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
396 |
if test x$we_have_sed = xyes; then |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
397 |
AC_MSG_CHECKING([if this is MacOS X]) |
593
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
398 |
x=`echo $target_os |sed "s/darwin.*/darwin/"` |
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
399 |
if test x$x = xdarwin -a x$target_vendor = xapple; then |
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
400 |
this_is_macosx=yes |
571
52430414dd57
MacOSX/Darwin tweaks, other corrections.
Ryan C. Gordon <icculus@icculus.org>
parents:
553
diff
changeset
|
401 |
PHYSFSLDFLAGS="$PHYSFSLDFLAGS -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,IOKit" |
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
402 |
fi |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
403 |
|
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
404 |
AC_MSG_RESULT([$this_is_macosx]) |
234 | 405 |
fi |
213 | 406 |
|
347
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
407 |
this_is_freebsd=no |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
408 |
if test x$we_have_sed = xyes; then |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
409 |
AC_MSG_CHECKING([if this is FreeBSD]) |
593
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
410 |
x=`echo $target_os |tr A-Z a-z |sed "s/.*freebsd.*/freebsd/"` |
347
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
411 |
if test x$x = xfreebsd; then |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
412 |
this_is_freebsd=yes |
459
5fa02060a63f
Hopefully fix broken autoconfs.
Ryan C. Gordon <icculus@icculus.org>
parents:
454
diff
changeset
|
413 |
PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread" |
347
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
414 |
fi |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
415 |
|
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
416 |
AC_MSG_RESULT([$this_is_freebsd]) |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
417 |
fi |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
418 |
|
378
41cda991e23a
Added build system support for OpenBSD.
Ryan C. Gordon <icculus@icculus.org>
parents:
353
diff
changeset
|
419 |
this_is_openbsd=no |
41cda991e23a
Added build system support for OpenBSD.
Ryan C. Gordon <icculus@icculus.org>
parents:
353
diff
changeset
|
420 |
if test x$we_have_sed = xyes; then |
41cda991e23a
Added build system support for OpenBSD.
Ryan C. Gordon <icculus@icculus.org>
parents:
353
diff
changeset
|
421 |
AC_MSG_CHECKING([if this is OpenBSD]) |
593
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
422 |
x=`echo $target_os |tr A-Z a-z |sed "s/.*openbsd.*/openbsd/"` |
378
41cda991e23a
Added build system support for OpenBSD.
Ryan C. Gordon <icculus@icculus.org>
parents:
353
diff
changeset
|
423 |
if test x$x = xopenbsd; then |
41cda991e23a
Added build system support for OpenBSD.
Ryan C. Gordon <icculus@icculus.org>
parents:
353
diff
changeset
|
424 |
this_is_openbsd=yes |
459
5fa02060a63f
Hopefully fix broken autoconfs.
Ryan C. Gordon <icculus@icculus.org>
parents:
454
diff
changeset
|
425 |
PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread" |
378
41cda991e23a
Added build system support for OpenBSD.
Ryan C. Gordon <icculus@icculus.org>
parents:
353
diff
changeset
|
426 |
fi |
41cda991e23a
Added build system support for OpenBSD.
Ryan C. Gordon <icculus@icculus.org>
parents:
353
diff
changeset
|
427 |
|
41cda991e23a
Added build system support for OpenBSD.
Ryan C. Gordon <icculus@icculus.org>
parents:
353
diff
changeset
|
428 |
AC_MSG_RESULT([$this_is_openbsd]) |
41cda991e23a
Added build system support for OpenBSD.
Ryan C. Gordon <icculus@icculus.org>
parents:
353
diff
changeset
|
429 |
fi |
41cda991e23a
Added build system support for OpenBSD.
Ryan C. Gordon <icculus@icculus.org>
parents:
353
diff
changeset
|
430 |
|
381
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
431 |
this_is_atheos=no |
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
432 |
if test x$we_have_sed = xyes; then |
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
433 |
AC_MSG_CHECKING([if this is AtheOS]) |
593
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
434 |
x=`echo $target_os |tr A-Z a-z |sed "s/.*atheos.*/atheos/"` |
381
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
435 |
if test x$x = xatheos; then |
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
436 |
this_is_atheos=yes |
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
437 |
enable_cdrom=no |
390
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
438 |
enable_pthreads=no |
381
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
439 |
fi |
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
440 |
|
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
441 |
AC_MSG_RESULT([$this_is_atheos]) |
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
442 |
fi |
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
443 |
|
454
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
444 |
this_is_os2=no |
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
445 |
if test x$we_have_sed = xyes; then |
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
446 |
AC_MSG_CHECKING([if this is OS/2]) |
593
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
447 |
x=`echo $target_os |tr A-Z a-z |sed "s/.*os2.*/os2/"` |
454
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
448 |
if test x$x = xos2; then |
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
449 |
this_is_os2=yes |
625
60b5f566a258
Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents:
609
diff
changeset
|
450 |
have_non_posix_threads=yes |
60b5f566a258
Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents:
609
diff
changeset
|
451 |
enable_cdrom=yes |
60b5f566a258
Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents:
609
diff
changeset
|
452 |
enable_pthreads=no |
459
5fa02060a63f
Hopefully fix broken autoconfs.
Ryan C. Gordon <icculus@icculus.org>
parents:
454
diff
changeset
|
453 |
PHYSFSCFLAGS="$PHYSFSCFLAGS -DOS2" |
454
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
454 |
fi |
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
455 |
|
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
456 |
AC_MSG_RESULT([$this_is_os2]) |
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
457 |
fi |
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
458 |
|
593
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
459 |
this_is_mint=no |
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
460 |
if test x$we_have_sed = xyes; then |
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
461 |
AC_MSG_CHECKING([if this is MiNT]) |
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
462 |
x=`echo $target_os |tr A-Z a-z |sed "s/.*mint.*/mint/"` |
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
463 |
if test x$x = xmint; then |
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
464 |
this_is_mint=yes |
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
465 |
enable_cdrom=no |
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
466 |
enable_pthreads=no |
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
467 |
fi |
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
468 |
|
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
469 |
AC_MSG_RESULT([$this_is_mint]) |
6aba84679d82
MiNT detection, cross-compiling fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
588
diff
changeset
|
470 |
fi |
454
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
471 |
|
e1353730f8c6
Check for OS/2, in case anyone ever gets autoconf, etc working on their box.
Ryan C. Gordon <icculus@icculus.org>
parents:
453
diff
changeset
|
472 |
|
381
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
473 |
dnl Some platform might disable this, so check this down here... |
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
474 |
if test x$enable_cdrom != xyes; then |
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
475 |
AC_DEFINE([PHYSFS_NO_CDROM_SUPPORT], 1, [define if we have no CD support]) |
384
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
476 |
AC_MSG_WARN([***]) |
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
477 |
AC_MSG_WARN([*** There is no CD-ROM support in this build!]) |
390
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
478 |
AC_MSG_WARN([*** PhysicsFS will just pretend there are no discs.]) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
479 |
AC_MSG_WARN([*** This may be fine, depending on how PhysicsFS is used,]) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
480 |
AC_MSG_WARN([*** but is this what you REALLY wanted?]) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
481 |
AC_MSG_WARN([*** (Maybe fix configure.in, or write a platform driver?)]) |
384
9f6761c089fa
Changed cd detection stuff again. More robust.
Ryan C. Gordon <icculus@icculus.org>
parents:
382
diff
changeset
|
482 |
AC_MSG_WARN([***]) |
381
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
483 |
fi |
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
484 |
|
390
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
485 |
if test x$enable_pthreads != xyes; then |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
486 |
AC_DEFINE([PHYSFS_NO_PTHREADS_SUPPORT], 1, [define if we have no POSIX threads support]) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
487 |
if test x$have_non_posix_threads != xyes; then |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
488 |
AC_MSG_WARN([***]) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
489 |
AC_MSG_WARN([*** There is no thread support in this build!]) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
490 |
AC_MSG_WARN([*** PhysicsFS will NOT be reentrant!]) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
491 |
AC_MSG_WARN([*** This may be fine, depending on how PhysicsFS is used,]) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
492 |
AC_MSG_WARN([*** but is this what you REALLY wanted?]) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
493 |
AC_MSG_WARN([*** (Maybe fix configure.in, or write a platform driver?)]) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
494 |
AC_MSG_WARN([***]) |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
495 |
fi |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
496 |
fi |
6649d6caecf2
Stub code for platforms without functional pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents:
389
diff
changeset
|
497 |
|
381
b65d27fdc8a9
Can now disable CD-ROM code on Unix systems at build time if need be. The
Ryan C. Gordon <icculus@icculus.org>
parents:
378
diff
changeset
|
498 |
|
213 | 499 |
# Checks for header files. |
500 |
AC_HEADER_STDC |
|
504
3420d82f9b01
Some cleanups for PocketPC port.
Ryan C. Gordon <icculus@icculus.org>
parents:
461
diff
changeset
|
501 |
AC_CHECK_HEADERS([stdlib.h string.h assert.h]) |
213 | 502 |
|
503 |
# Checks for typedefs, structures, and compiler characteristics. |
|
269
d41c0a399a99
Removed some unnecessary things that broke BeOS builds.
Ryan C. Gordon <icculus@icculus.org>
parents:
261
diff
changeset
|
504 |
dnl AC_C_CONST |
d41c0a399a99
Removed some unnecessary things that broke BeOS builds.
Ryan C. Gordon <icculus@icculus.org>
parents:
261
diff
changeset
|
505 |
dnl AC_TYPE_SIZE_T |
213 | 506 |
|
507 |
# Checks for library functions. |
|
508 |
||
509 |
# This is only in the bleeding edge autoconf distro... |
|
510 |
#AC_FUNC_MALLOC |
|
511 |
||
512 |
AC_FUNC_MEMCMP |
|
513 |
AC_CHECK_FUNCS([memset strrchr]) |
|
514 |
||
453
108de3bb1b6b
Added qpak.c to build systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
444
diff
changeset
|
515 |
AC_CHECK_SIZEOF(int, 4) |
108de3bb1b6b
Added qpak.c to build systems.
Ryan C. Gordon <icculus@icculus.org>
parents:
444
diff
changeset
|
516 |
|
666
7ca5dede89f2
CFLAGS is used after PHYSFSCFLAGS, so you can override optimization flags, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
641
diff
changeset
|
517 |
CFLAGS="$PHYSFSCFLAGS $CFLAGS -D_REENTRANT -D_THREAD_SAFE" |
459
5fa02060a63f
Hopefully fix broken autoconfs.
Ryan C. Gordon <icculus@icculus.org>
parents:
454
diff
changeset
|
518 |
LDFLAGS="$LDFLAGS $PHYSFSLDFLAGS -no-undefined" |
347
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
519 |
|
213 | 520 |
dnl Add Makefile conditionals |
521 |
AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes) |
|
522 |
AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes) |
|
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
523 |
AM_CONDITIONAL(BUILD_MACOSX, test x$this_is_macosx = xyes) |
307 | 524 |
AM_CONDITIONAL(BUILD_BEOS, test x$this_is_beos = xyes) |
310
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
525 |
AM_CONDITIONAL(BUILD_CYGWIN, test x$this_is_cygwin = xyes) |
604
ea8664e863c2
Make physfs itself not link against readline and ncurses (just
Ryan C. Gordon <icculus@icculus.org>
parents:
602
diff
changeset
|
526 |
AM_CONDITIONAL(BUILD_READLINE, test x$have_readline = xyes) |
302
b6fe2b615045
Build dance continues.
Ryan C. Gordon <icculus@icculus.org>
parents:
296
diff
changeset
|
527 |
|
213 | 528 |
AC_OUTPUT([ |
529 |
Makefile |
|
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
530 |
archivers/Makefile |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
531 |
platform/Makefile |
602
691c1eadb8b7
Upgraded internal zlib to 1.2.1 (thanks, Adam!)
Ryan C. Gordon <icculus@icculus.org>
parents:
593
diff
changeset
|
532 |
zlib121/Makefile |
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
533 |
test/Makefile |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
534 |
extras/Makefile |
389
b35668cd8b3e
Moved the RPM spec file to spec.in, so version dynamically keeps up.
Ryan C. Gordon <icculus@icculus.org>
parents:
384
diff
changeset
|
535 |
physfs.spec |
213 | 536 |
]) |
231
e4f81b0f1c93
Corrected to fix "make dist".
Ryan C. Gordon <icculus@icculus.org>
parents:
224
diff
changeset
|
537 |
|
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
538 |
dnl end of configure.in ... |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
539 |