author | Ryan C. Gordon <icculus@icculus.org> |
Tue, 23 Jul 2002 07:48:08 +0000 | |
changeset 363 | 79f155a51527 |
parent 353 | 7adb20841f11 |
child 378 | 41cda991e23a |
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 |
||
16 |
MAJOR_VERSION=0 |
|
17 |
MINOR_VERSION=1 |
|
323
6da51f38cfd8
Upped version to 0.1.7.
Ryan C. Gordon <icculus@icculus.org>
parents:
310
diff
changeset
|
18 |
MICRO_VERSION=7 |
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 |
|
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
42 |
AC_CANONICAL_BUILD |
213 | 43 |
AC_CANONICAL_HOST |
44 |
AC_CANONICAL_TARGET |
|
45 |
||
46 |
dnl Setup for automake |
|
47 |
AM_CONFIG_HEADER(config.h) |
|
48 |
AM_INIT_AUTOMAKE(physfs, $VERSION) |
|
49 |
||
50 |
||
51 |
dnl --------------------------------------------------------------------- |
|
52 |
dnl Compilers and other tools |
|
53 |
dnl --------------------------------------------------------------------- |
|
54 |
||
55 |
AC_PROG_CC |
|
234 | 56 |
AC_PROG_CXX |
213 | 57 |
AC_PROG_INSTALL |
58 |
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
|
59 |
AC_LIBTOOL_WIN32_DLL |
302
b6fe2b615045
Build dance continues.
Ryan C. Gordon <icculus@icculus.org>
parents:
296
diff
changeset
|
60 |
LIBTOOL="libtool" |
b6fe2b615045
Build dance continues.
Ryan C. Gordon <icculus@icculus.org>
parents:
296
diff
changeset
|
61 |
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
|
62 |
AC_CHECK_PROG(we_have_sed, sed, yes, no) |
213 | 63 |
|
64 |
dnl --------------------------------------------------------------------- |
|
65 |
dnl Debug mode? |
|
66 |
dnl --------------------------------------------------------------------- |
|
67 |
||
68 |
AC_ARG_ENABLE(debug, |
|
216
d297da72cd4e
--enable-debug is default.
Ryan C. Gordon <icculus@icculus.org>
parents:
214
diff
changeset
|
69 |
[ --enable-debug enable debug mode [default=yes]], |
d297da72cd4e
--enable-debug is default.
Ryan C. Gordon <icculus@icculus.org>
parents:
214
diff
changeset
|
70 |
, enable_debug=yes) |
213 | 71 |
if test x$enable_debug = xyes; then |
72 |
if test x$ac_cv_prog_cc_g = xyes; then |
|
73 |
CFLAGS="-g -O0" |
|
74 |
else |
|
75 |
CFLAGS="-O0" |
|
76 |
fi |
|
252
5e537265e682
Added -Wall to debug builds.
Ryan C. Gordon <icculus@icculus.org>
parents:
241
diff
changeset
|
77 |
CFLAGS="$CFLAGS -Werror -Wall" |
331
822f78a88aba
Now makes newer autoconfs happier.
Ryan C. Gordon <icculus@icculus.org>
parents:
323
diff
changeset
|
78 |
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
|
79 |
AC_DEFINE([DEBUG_CHATTER], 1, [define if debug chatter is enabled]) |
213 | 80 |
else |
81 |
CFLAGS="-O2" |
|
331
822f78a88aba
Now makes newer autoconfs happier.
Ryan C. Gordon <icculus@icculus.org>
parents:
323
diff
changeset
|
82 |
AC_DEFINE([NDEBUG], 1, [define if debug build is disabled]) |
213 | 83 |
fi |
84 |
||
85 |
||
86 |
dnl --------------------------------------------------------------------- |
|
87 |
dnl Build test program? |
|
88 |
dnl --------------------------------------------------------------------- |
|
89 |
||
90 |
AC_ARG_ENABLE(testprog, |
|
91 |
[ --enable-testprog build test program [default=yes]], |
|
92 |
, enable_testprog=yes) |
|
93 |
||
94 |
||
95 |
dnl --------------------------------------------------------------------- |
|
96 |
dnl Checks for libraries. |
|
97 |
dnl --------------------------------------------------------------------- |
|
98 |
||
261
9e1647c75ae0
64-bit _llseek() detection code.
Ryan C. Gordon <icculus@icculus.org>
parents:
252
diff
changeset
|
99 |
dnl !!! FIXME: Not sure how to detect this... |
9e1647c75ae0
64-bit _llseek() detection code.
Ryan C. Gordon <icculus@icculus.org>
parents:
252
diff
changeset
|
100 |
dnl check for 64-bit llseek()... |
9e1647c75ae0
64-bit _llseek() detection code.
Ryan C. Gordon <icculus@icculus.org>
parents:
252
diff
changeset
|
101 |
dnl AC_CHECK_LIB(c, llseek, have_llseek=yes) |
9e1647c75ae0
64-bit _llseek() detection code.
Ryan C. Gordon <icculus@icculus.org>
parents:
252
diff
changeset
|
102 |
if test x$have_llseek = xyes; then |
331
822f78a88aba
Now makes newer autoconfs happier.
Ryan C. Gordon <icculus@icculus.org>
parents:
323
diff
changeset
|
103 |
AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek]) |
261
9e1647c75ae0
64-bit _llseek() detection code.
Ryan C. Gordon <icculus@icculus.org>
parents:
252
diff
changeset
|
104 |
fi |
9e1647c75ae0
64-bit _llseek() detection code.
Ryan C. Gordon <icculus@icculus.org>
parents:
252
diff
changeset
|
105 |
|
351
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
106 |
dnl BSD systems use sys/ucred.h for getting mounted volumes. |
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
107 |
dnl Linux and others use mntent.h. |
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
108 |
AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes) |
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
109 |
if test x$have_ucred_hdr = xyes; then |
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
110 |
AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h]) |
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
111 |
fi |
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
112 |
|
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
113 |
AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes) |
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
114 |
if test x$have_mntent_hdr = xyes; then |
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
115 |
AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h]) |
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
116 |
fi |
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
117 |
|
bc4fa7896225
Generalized CD-ROM routine selection.
Ryan C. Gordon <icculus@icculus.org>
parents:
347
diff
changeset
|
118 |
|
213 | 119 |
require_zlib="no" |
120 |
||
121 |
dnl Check for zip archiver inclusion... |
|
122 |
AC_ARG_ENABLE(zip, |
|
123 |
[ --enable-zip enable ZIP support [default=yes]], |
|
124 |
, enable_zip=yes) |
|
125 |
if test x$enable_zip = xyes; then |
|
331
822f78a88aba
Now makes newer autoconfs happier.
Ryan C. Gordon <icculus@icculus.org>
parents:
323
diff
changeset
|
126 |
AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled]) |
213 | 127 |
require_zlib="yes" |
128 |
fi |
|
129 |
||
130 |
||
131 |
dnl Check for zip archiver inclusion... |
|
132 |
AC_ARG_ENABLE(grp, |
|
133 |
[ --enable-grp enable Build Engine GRP support [default=yes]], |
|
134 |
, enable_grp=yes) |
|
135 |
if test x$enable_grp = xyes; then |
|
331
822f78a88aba
Now makes newer autoconfs happier.
Ryan C. Gordon <icculus@icculus.org>
parents:
323
diff
changeset
|
136 |
AC_DEFINE([PHYSFS_SUPPORTS_GRP], 1, [define if grp support is enabled]) |
213 | 137 |
fi |
138 |
||
139 |
||
140 |
AC_ARG_ENABLE(internal-zlib, |
|
141 |
[ --enable-internal-zlib use included zlib [default=only if needed]], |
|
142 |
, enable_internal_zlib=maybe) |
|
143 |
||
144 |
dnl Check for zlib if needed. |
|
145 |
have_external_zlib="no" |
|
146 |
if test x$enable_internal_zlib != xyes; then |
|
147 |
if test x$require_zlib = xyes; then |
|
148 |
AC_CHECK_HEADER(zlib.h, have_zlib_hdr=yes) |
|
149 |
AC_CHECK_LIB(z, zlibVersion, have_zlib_lib=yes) |
|
150 |
if test x$have_zlib_hdr = xyes -a x$have_zlib_lib = xyes; then |
|
151 |
have_external_zlib="yes" |
|
152 |
fi |
|
153 |
fi |
|
154 |
fi |
|
155 |
||
156 |
AC_MSG_CHECKING([what zlib to use]) |
|
157 |
||
158 |
dnl no zlib is needed at all if we aren't supporting ZIP files. |
|
159 |
if test x$require_zlib = xno; then |
|
160 |
enable_internal_zlib="no" |
|
161 |
enable_external_zlib="no" |
|
162 |
AC_MSG_RESULT([no zlib needed]) |
|
163 |
else |
|
164 |
||
165 |
if test x$enable_internal_zlib = xmaybe; then |
|
166 |
if test x$have_external_zlib = xyes; then |
|
167 |
enable_internal_zlib="no" |
|
168 |
enable_external_zlib="yes" |
|
169 |
else |
|
170 |
enable_internal_zlib="yes" |
|
171 |
enable_external_zlib="no" |
|
172 |
fi |
|
173 |
else |
|
174 |
if test x$enable_internal_zlib = xno -a x$have_external_zlib = xyes; then |
|
175 |
enable_internal_zlib="no" |
|
176 |
enable_external_zlib="yes" |
|
177 |
fi |
|
178 |
fi |
|
179 |
||
180 |
if test x$enable_internal_zlib = xyes; then |
|
181 |
AC_MSG_RESULT([internal zlib]) |
|
182 |
else |
|
183 |
if test x$enable_external_zlib = xyes; then |
|
184 |
AC_MSG_RESULT([external zlib]) |
|
185 |
LIBS="$LIBS -lz" |
|
186 |
else |
|
187 |
AC_MSG_ERROR([Need zlib, but you disabled our copy and have no system lib]) |
|
188 |
fi |
|
189 |
fi |
|
190 |
fi |
|
191 |
||
192 |
||
193 |
dnl determine if we should include readline support... |
|
194 |
AC_ARG_ENABLE(readline, |
|
195 |
[ --enable-readline use GNU readline in test program [default=yes]], |
|
196 |
, enable_readline=yes) |
|
197 |
if test x$enable_readline = xyes; then |
|
198 |
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
|
199 |
AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lcurses) |
213 | 200 |
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
|
201 |
AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lcurses) |
213 | 202 |
if test x$have_readline_hdr = xyes -a x$have_readline_lib = xyes; then |
203 |
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
|
204 |
AC_DEFINE([PHYSFS_HAVE_READLINE], 1, [define if we have readline]) |
218
9415dcace296
readline detection fixes by Edward Rudd.
Ryan C. Gordon <icculus@icculus.org>
parents:
216
diff
changeset
|
205 |
LIBS="$LIBS -lreadline -lcurses" |
213 | 206 |
fi |
207 |
fi |
|
208 |
fi |
|
209 |
||
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
210 |
dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes) |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
211 |
AC_MSG_CHECKING([if 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
|
212 |
if test x$build_os = xbeos; then |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
213 |
this_is_beos=yes |
234 | 214 |
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
|
215 |
else |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
216 |
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
|
217 |
fi |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
218 |
|
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
219 |
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
|
220 |
|
310
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
221 |
AC_MSG_CHECKING([if this is Cygwin]) |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
222 |
if test x$build_os = xcygwin; then |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
223 |
this_is_cygwin=yes |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
224 |
CFLAGS="$CFLAGS -DWIN32" |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
225 |
else |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
226 |
this_is_cygwin=no |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
227 |
fi |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
228 |
|
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
229 |
AC_MSG_RESULT([$this_is_cygwin]) |
f8bca4a93fd5
Patched to compile on Cygwin.
Ryan C. Gordon <icculus@icculus.org>
parents:
307
diff
changeset
|
230 |
|
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
231 |
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
|
232 |
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
|
233 |
AC_MSG_CHECKING([if this is MacOS X]) |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
234 |
x=`echo $build_os |sed "s/darwin.*/darwin/"` |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
235 |
if test x$x = xdarwin -a x$build_vendor = xapple; then |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
236 |
this_is_macosx=yes |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
237 |
fi |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
238 |
|
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
239 |
AC_MSG_RESULT([$this_is_macosx]) |
234 | 240 |
fi |
213 | 241 |
|
347
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
242 |
this_is_freebsd=no |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
243 |
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
|
244 |
AC_MSG_CHECKING([if this is FreeBSD]) |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
245 |
x=`echo $build_os |tr A-Z a-z |sed "s/.*freebsd.*/freebsd/"` |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
246 |
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
|
247 |
this_is_freebsd=yes |
353
7adb20841f11
More FreeBSD build fixes.
Ryan C. Gordon <icculus@icculus.org>
parents:
351
diff
changeset
|
248 |
LDFLAGS="$LDFLAGS -pthread" |
347
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
249 |
fi |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
250 |
|
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
251 |
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
|
252 |
fi |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
253 |
|
213 | 254 |
# Checks for header files. |
255 |
AC_HEADER_STDC |
|
256 |
AC_CHECK_HEADERS([stdlib.h string.h]) |
|
257 |
||
258 |
# 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
|
259 |
dnl AC_C_CONST |
d41c0a399a99
Removed some unnecessary things that broke BeOS builds.
Ryan C. Gordon <icculus@icculus.org>
parents:
261
diff
changeset
|
260 |
dnl AC_TYPE_SIZE_T |
213 | 261 |
|
262 |
# Checks for library functions. |
|
263 |
||
264 |
# This is only in the bleeding edge autoconf distro... |
|
265 |
#AC_FUNC_MALLOC |
|
266 |
||
267 |
AC_FUNC_MEMCMP |
|
268 |
AC_CHECK_FUNCS([memset strrchr]) |
|
269 |
||
347
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
270 |
CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE" |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
271 |
LDFLAGS="$LDFLAGS -no-undefined" |
56ce50a62241
FreeBSD patches; appears to be fully functional now.
Ryan C. Gordon <icculus@icculus.org>
parents:
331
diff
changeset
|
272 |
|
213 | 273 |
dnl Add Makefile conditionals |
274 |
AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes) |
|
275 |
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
|
276 |
AM_CONDITIONAL(BUILD_MACOSX, test x$this_is_macosx = xyes) |
307 | 277 |
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
|
278 |
AM_CONDITIONAL(BUILD_CYGWIN, test x$this_is_cygwin = xyes) |
302
b6fe2b615045
Build dance continues.
Ryan C. Gordon <icculus@icculus.org>
parents:
296
diff
changeset
|
279 |
|
213 | 280 |
AC_OUTPUT([ |
281 |
Makefile |
|
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
282 |
archivers/Makefile |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
283 |
platform/Makefile |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
284 |
zlib114/Makefile |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
285 |
test/Makefile |
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
286 |
extras/Makefile |
213 | 287 |
]) |
231
e4f81b0f1c93
Corrected to fix "make dist".
Ryan C. Gordon <icculus@icculus.org>
parents:
224
diff
changeset
|
288 |
|
296
32658d27c62f
Build system should now work everywhere, including older autoconfs. I hope.
Ryan C. Gordon <icculus@icculus.org>
parents:
289
diff
changeset
|
289 |
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
|
290 |