configure.in 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. # Process this file with autoconf to produce a configure script.
  2. AC_INIT(physfs.c)
  3. dnl ---------------------------------------------------------------------
  4. dnl System/version info
  5. dnl ---------------------------------------------------------------------
  6. # Making releases:
  7. # MICRO_VERSION += 1;
  8. # INTERFACE_AGE += 1;
  9. # BINARY_AGE += 1;
  10. # if any functions have been added, set INTERFACE_AGE to 0.
  11. # if backwards compatibility has been broken,
  12. # set BINARY_AGE and INTERFACE_AGE to 0.
  13. MAJOR_VERSION=1
  14. MINOR_VERSION=0
  15. MICRO_VERSION=1
  16. INTERFACE_AGE=0
  17. BINARY_AGE=0
  18. VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  19. AC_SUBST(MAJOR_VERSION)
  20. AC_SUBST(MINOR_VERSION)
  21. AC_SUBST(MICRO_VERSION)
  22. AC_SUBST(INTERFACE_AGE)
  23. AC_SUBST(BINARY_AGE)
  24. AC_SUBST(VERSION)
  25. # libtool versioning
  26. LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
  27. LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
  28. LT_REVISION=$INTERFACE_AGE
  29. LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
  30. AC_SUBST(LT_RELEASE)
  31. AC_SUBST(LT_CURRENT)
  32. AC_SUBST(LT_REVISION)
  33. AC_SUBST(LT_AGE)
  34. dnl Detect the canonical host and target build environment
  35. AC_CANONICAL_SYSTEM
  36. dnl Setup for automake
  37. AM_CONFIG_HEADER(config.h)
  38. AM_INIT_AUTOMAKE(physfs, $VERSION)
  39. dnl ---------------------------------------------------------------------
  40. dnl Compilers and other tools
  41. dnl ---------------------------------------------------------------------
  42. AC_PROG_CC
  43. AC_PROG_CXX
  44. AC_PROG_INSTALL
  45. AC_PROG_LN_S
  46. AC_LIBTOOL_WIN32_DLL
  47. LIBTOOL="libtool"
  48. AM_PROG_LIBTOOL
  49. AC_CHECK_PROG(we_have_sed, sed, yes, no)
  50. dnl ---------------------------------------------------------------------
  51. dnl Debug mode?
  52. dnl ---------------------------------------------------------------------
  53. AC_ARG_ENABLE(debug,
  54. [ --enable-debug enable debug mode [default=no]],
  55. , enable_debug=no)
  56. if test x$enable_debug = xyes; then
  57. if test x$ac_cv_prog_cc_g = xyes; then
  58. PHYSFSCFLAGS="$PHYSFSCFLAGS -g -O0"
  59. else
  60. PHYSFSCFLAGS="$PHYSFSCFLAGS -O0"
  61. fi
  62. PHYSFSCFLAGS="$PHYSFSCFLAGS -Werror -Wall"
  63. AC_DEFINE([DEBUG], 1, [define if debug build is enabled])
  64. AC_DEFINE([DEBUG_CHATTER], 1, [define if debug chatter is enabled])
  65. else
  66. PHYSFSCFLAGS="$PHYSFSCFLAGS -O2"
  67. AC_DEFINE([NDEBUG], 1, [define if debug build is disabled])
  68. fi
  69. dnl ---------------------------------------------------------------------
  70. dnl Have GCC's -fvisibility option?
  71. dnl ---------------------------------------------------------------------
  72. AC_MSG_CHECKING(for GCC -fvisibility=hidden option)
  73. have_gcc_fvisibility=no
  74. visibility_CFLAGS="-fvisibility=hidden"
  75. save_CFLAGS="$CFLAGS"
  76. CFLAGS="$save_CFLAGS $visibility_CFLAGS"
  77. AC_TRY_COMPILE([
  78. int placeholder = 1;
  79. ],[
  80. ],[
  81. have_gcc_fvisibility=yes
  82. ])
  83. AC_MSG_RESULT($have_gcc_fvisibility)
  84. CFLAGS="$save_CFLAGS"
  85. if test x$have_gcc_fvisibility = xyes; then
  86. PHYSFSCFLAGS="$PHYSFSCFLAGS $visibility_CFLAGS"
  87. fi
  88. dnl ---------------------------------------------------------------------
  89. dnl Profile sorts, etc?
  90. dnl ---------------------------------------------------------------------
  91. AC_ARG_ENABLE(profiling,
  92. [ --enable-profiling do algorithm profiling [default=no]],
  93. , enable_profiling=no)
  94. if test x$enable_profiling = xyes; then
  95. AC_DEFINE([PHYSFS_PROFILING], 1, [define to profile sorting, etc algorithms])
  96. fi
  97. dnl ---------------------------------------------------------------------
  98. dnl Build test program?
  99. dnl ---------------------------------------------------------------------
  100. AC_ARG_ENABLE(testprog,
  101. [ --enable-testprog build test program [default=yes]],
  102. , enable_testprog=yes)
  103. dnl ---------------------------------------------------------------------
  104. dnl Checks for libraries.
  105. dnl ---------------------------------------------------------------------
  106. require_zlib="no"
  107. dnl Check for zip archiver inclusion...
  108. AC_ARG_ENABLE(zip,
  109. [ --enable-zip enable ZIP support [default=yes]],
  110. , enable_zip=yes)
  111. if test x$enable_zip = xyes; then
  112. AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled])
  113. require_zlib="yes"
  114. fi
  115. dnl Check for grp archiver inclusion...
  116. AC_ARG_ENABLE(grp,
  117. [ --enable-grp enable Build Engine GRP support [default=yes]],
  118. , enable_grp=yes)
  119. if test x$enable_grp = xyes; then
  120. AC_DEFINE([PHYSFS_SUPPORTS_GRP], 1, [define if grp support is enabled])
  121. fi
  122. dnl Check for wad archiver inclusion...
  123. AC_ARG_ENABLE(wad,
  124. [ --enable-wad enable Doom WAD support [default=yes]],
  125. , enable_wad=yes)
  126. if test x$enable_wad = xyes; then
  127. AC_DEFINE([PHYSFS_SUPPORTS_WAD], 1, [define if wad support is enabled])
  128. fi
  129. dnl Check for hog archiver inclusion...
  130. AC_ARG_ENABLE(hog,
  131. [ --enable-hog enable Descent I/II HOG support [default=yes]],
  132. , enable_hog=yes)
  133. if test x$enable_hog = xyes; then
  134. AC_DEFINE([PHYSFS_SUPPORTS_HOG], 1, [define if hog support is enabled])
  135. fi
  136. dnl Check for mvl archiver inclusion...
  137. AC_ARG_ENABLE(mvl,
  138. [ --enable-mvl enable Descent II MVL support [default=yes]],
  139. , enable_mvl=yes)
  140. if test x$enable_mvl = xyes; then
  141. AC_DEFINE([PHYSFS_SUPPORTS_MVL], 1, [define if mvl support is enabled])
  142. fi
  143. dnl Check for qpak archiver inclusion...
  144. AC_ARG_ENABLE(qpak,
  145. [ --enable-qpak enable Quake PAK support [default=yes]],
  146. , enable_qpak=yes)
  147. if test x$enable_qpak = xyes; then
  148. AC_DEFINE([PHYSFS_SUPPORTS_QPAK], 1, [define if qpak support is enabled])
  149. fi
  150. dnl Check if we should statically link the included zlib...
  151. AC_ARG_ENABLE(internal-zlib,
  152. [ --enable-internal-zlib use included zlib [default=only if needed]],
  153. , enable_internal_zlib=maybe)
  154. dnl Check for zlib if needed.
  155. have_external_zlib="no"
  156. if test x$enable_internal_zlib != xyes; then
  157. if test x$require_zlib = xyes; then
  158. AC_CHECK_HEADER(zlib.h, have_zlib_hdr=yes)
  159. AC_CHECK_LIB(z, zlibVersion, have_zlib_lib=yes)
  160. if test x$have_zlib_hdr = xyes -a x$have_zlib_lib = xyes; then
  161. have_external_zlib="yes"
  162. fi
  163. fi
  164. fi
  165. AC_MSG_CHECKING([what zlib to use])
  166. dnl no zlib is needed at all if we aren't supporting ZIP files.
  167. if test x$require_zlib = xno; then
  168. enable_internal_zlib="no"
  169. enable_external_zlib="no"
  170. AC_MSG_RESULT([no zlib needed])
  171. else
  172. if test x$enable_internal_zlib = xmaybe; then
  173. if test x$have_external_zlib = xyes; then
  174. enable_internal_zlib="no"
  175. enable_external_zlib="yes"
  176. else
  177. enable_internal_zlib="yes"
  178. enable_external_zlib="no"
  179. fi
  180. else
  181. if test x$enable_internal_zlib = xno -a x$have_external_zlib = xyes; then
  182. enable_internal_zlib="no"
  183. enable_external_zlib="yes"
  184. fi
  185. fi
  186. if test x$enable_internal_zlib = xyes; then
  187. AC_MSG_RESULT([internal zlib])
  188. PHYSFSCFLAGS="$PHYSFSCFLAGS -DZ_PREFIX"
  189. else
  190. if test x$enable_external_zlib = xyes; then
  191. AC_MSG_RESULT([external zlib])
  192. LIBS="$LIBS -lz"
  193. else
  194. AC_MSG_ERROR([Need zlib, but you disabled our copy and have no system lib])
  195. fi
  196. fi
  197. fi
  198. dnl determine if we should include readline support...
  199. AC_ARG_ENABLE(readline,
  200. [ --enable-readline use GNU readline in test program [default=yes]],
  201. , enable_readline=yes)
  202. if test x$enable_readline = xyes; then
  203. AC_CHECK_HEADER(readline/readline.h, have_readline_hdr=yes)
  204. AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lcurses)
  205. AC_CHECK_HEADER(readline/history.h, have_history_hdr=yes)
  206. AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lcurses)
  207. if test x$have_readline_hdr = xyes -a x$have_readline_lib = xyes; then
  208. if test x$have_history_hdr = xyes -a x$have_history_lib = xyes; then
  209. AC_DEFINE([PHYSFS_HAVE_READLINE], 1, [define if we have readline])
  210. have_readline="yes"
  211. fi
  212. fi
  213. fi
  214. dnl !!! FIXME: Not sure how to detect this...
  215. dnl check for 64-bit llseek()...
  216. dnl AC_CHECK_LIB(c, llseek, have_llseek=yes)
  217. if test x$have_llseek = xyes; then
  218. AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
  219. fi
  220. dnl determine if we should use the stubbed pthread code.
  221. AC_ARG_ENABLE(pthreads,
  222. [ --enable-pthreads include POSIX threads support [default=yes]],
  223. , enable_pthreads=yes)
  224. if test x$enable_pthreads = xyes; then
  225. AC_CHECK_HEADER(pthread.h, have_pthread_hdr=yes)
  226. if test x$have_pthread_hdr != xyes; then
  227. enable_pthreads=no
  228. fi
  229. fi
  230. dnl determine if we should use the stubbed CD-ROM detection code.
  231. AC_ARG_ENABLE(cdrom,
  232. [ --enable-cdrom include CD-ROM support [default=yes]],
  233. , enable_cdrom=yes)
  234. if test x$enable_cdrom = xyes; then
  235. dnl reset this and let header detection reenable...
  236. enable_cdrom=no
  237. dnl BSD systems use sys/ucred.h for getting mounted volumes.
  238. dnl Linux and others use mntent.h.
  239. AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes)
  240. if test x$have_ucred_hdr = xyes; then
  241. AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h])
  242. enable_cdrom=yes
  243. fi
  244. AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes)
  245. if test x$have_mntent_hdr = xyes; then
  246. AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
  247. enable_cdrom=yes
  248. fi
  249. fi
  250. dnl determine language.
  251. AC_ARG_ENABLE(language,
  252. [ --enable-language=lang Select natural language. [default=english]],
  253. physfslang=`echo $enable_language |tr A-Z a-z`, physfslang=english)
  254. AC_MSG_CHECKING([if language choice is supported])
  255. physfs_valid_lang=no
  256. if test x$physfslang = xenglish; then
  257. physfs_valid_lang=yes
  258. AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_ENGLISH, [define desired natural language])
  259. fi
  260. if test x$physfslang = xgerman; then
  261. physfs_valid_lang=yes
  262. AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_GERMAN, [define desired natural language])
  263. fi
  264. if test x$physfslang = xfrench; then
  265. physfs_valid_lang=yes
  266. AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_FRENCH, [define desired natural language])
  267. fi
  268. if test x$physfslang = xspanish; then
  269. physfs_valid_lang=yes
  270. AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_SPANISH, [define desired natural language])
  271. fi
  272. if test x$physfslang = xportuguese-br; then
  273. physfs_valid_lang=yes
  274. AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_PORTUGUESE_BR, [define desired natural language])
  275. fi
  276. if test x$physfslang = xrussian-koi8-r; then
  277. physfs_valid_lang=yes
  278. AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_KOI8_R, [define desired natural language])
  279. fi
  280. if test x$physfslang = xrussian-cp1251; then
  281. physfs_valid_lang=yes
  282. AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_CP866, [define desired natural language])
  283. fi
  284. if test x$physfslang = xrussian-cp866; then
  285. physfs_valid_lang=yes
  286. AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_CP866, [define desired natural language])
  287. fi
  288. if test x$physfslang = xrussian-iso-8859-5; then
  289. physfs_valid_lang=yes
  290. AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_ISO_8859_5, [define desired natural language])
  291. fi
  292. dnl Add other language checks here...
  293. AC_MSG_RESULT([$physfs_valid_lang])
  294. if test x$physfs_valid_lang = xno; then
  295. AC_MSG_WARN([***])
  296. AC_MSG_WARN([*** You've asked for "$physfslang" language support...])
  297. AC_MSG_WARN([*** ...but we don't support that.])
  298. AC_MSG_WARN([*** You could choose another language,])
  299. AC_MSG_WARN([*** but is this what you REALLY wanted?])
  300. AC_MSG_WARN([*** Please see the LANG section of physfs_internal.h])
  301. AC_MSG_WARN([*** for info on writing a translation.])
  302. AC_MSG_WARN([***])
  303. AC_MSG_WARN([*** Currently known languages:])
  304. AC_MSG_WARN([*** --enable-language=english])
  305. AC_MSG_WARN([*** --enable-language=german])
  306. AC_MSG_WARN([*** --enable-language=french])
  307. AC_MSG_WARN([*** --enable-language=spanish])
  308. AC_MSG_WARN([*** --enable-language=portuguese-br])
  309. AC_MSG_WARN([*** --enable-language=russian-koi8-r])
  310. AC_MSG_WARN([*** --enable-language=russian-cp1251])
  311. AC_MSG_WARN([*** --enable-language=russian-cp866])
  312. AC_MSG_WARN([*** --enable-language=russian-iso-8859-5])
  313. AC_MSG_WARN([***])
  314. AC_MSG_ERROR([*** unsupported language. stop.])
  315. fi
  316. have_non_posix_threads=no
  317. AC_MSG_CHECKING([if this is BeOS])
  318. if test x$target_os = xbeos; then
  319. this_is_beos=yes
  320. have_non_posix_threads=yes
  321. enable_cdrom=yes
  322. enable_pthreads=no
  323. LIBS="$LIBS -lroot -lbe"
  324. else
  325. this_is_beos=no
  326. fi
  327. AC_MSG_RESULT([$this_is_beos])
  328. AC_MSG_CHECKING([if this is Cygwin])
  329. if test x$target_os = xcygwin; then
  330. this_is_cygwin=yes
  331. PHYSFSCFLAGS="$PHYSFSCFLAGS -DWIN32"
  332. enable_cdrom=yes
  333. enable_pthreads=no
  334. have_non_posix_threads=yes
  335. else
  336. this_is_cygwin=no
  337. fi
  338. AC_MSG_RESULT([$this_is_cygwin])
  339. AC_MSG_CHECKING([if this is mingw])
  340. if test x$target_os = xmingw32; then
  341. this_is_mingw=yes
  342. fi
  343. if test x$target_os = xmingw32msvc; then
  344. this_is_mingw=yes
  345. fi
  346. if test x$this_is_mingw = xyes; then
  347. PHYSFSCFLAGS="$PHYSFSCFLAGS -DWIN32"
  348. enable_cdrom=yes
  349. enable_pthreads=no
  350. have_non_posix_threads=yes
  351. else
  352. this_is_mingw=no
  353. fi
  354. AC_MSG_RESULT([$this_is_mingw])
  355. this_is_macosx=no
  356. if test x$we_have_sed = xyes; then
  357. AC_MSG_CHECKING([if this is MacOS X])
  358. x=`echo $target_os |sed "s/darwin.*/darwin/"`
  359. if test x$x = xdarwin -a x$target_vendor = xapple; then
  360. this_is_macosx=yes
  361. PHYSFSLDFLAGS="$PHYSFSLDFLAGS -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,IOKit"
  362. fi
  363. AC_MSG_RESULT([$this_is_macosx])
  364. fi
  365. this_is_freebsd=no
  366. if test x$we_have_sed = xyes; then
  367. AC_MSG_CHECKING([if this is FreeBSD])
  368. x=`echo $target_os |tr A-Z a-z |sed "s/.*freebsd.*/freebsd/"`
  369. if test x$x = xfreebsd; then
  370. this_is_freebsd=yes
  371. PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread"
  372. fi
  373. AC_MSG_RESULT([$this_is_freebsd])
  374. fi
  375. this_is_openbsd=no
  376. if test x$we_have_sed = xyes; then
  377. AC_MSG_CHECKING([if this is OpenBSD])
  378. x=`echo $target_os |tr A-Z a-z |sed "s/.*openbsd.*/openbsd/"`
  379. if test x$x = xopenbsd; then
  380. this_is_openbsd=yes
  381. PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread"
  382. fi
  383. AC_MSG_RESULT([$this_is_openbsd])
  384. fi
  385. this_is_atheos=no
  386. if test x$we_have_sed = xyes; then
  387. AC_MSG_CHECKING([if this is AtheOS])
  388. x=`echo $target_os |tr A-Z a-z |sed "s/.*atheos.*/atheos/"`
  389. if test x$x = xatheos; then
  390. this_is_atheos=yes
  391. enable_cdrom=no
  392. enable_pthreads=no
  393. fi
  394. AC_MSG_RESULT([$this_is_atheos])
  395. fi
  396. this_is_os2=no
  397. if test x$we_have_sed = xyes; then
  398. AC_MSG_CHECKING([if this is OS/2])
  399. x=`echo $target_os |tr A-Z a-z |sed "s/.*os2.*/os2/"`
  400. if test x$x = xos2; then
  401. this_is_os2=yes
  402. have_non_posix_threads=yes
  403. enable_cdrom=yes
  404. enable_pthreads=no
  405. PHYSFSCFLAGS="$PHYSFSCFLAGS -DOS2"
  406. fi
  407. AC_MSG_RESULT([$this_is_os2])
  408. fi
  409. this_is_mint=no
  410. if test x$we_have_sed = xyes; then
  411. AC_MSG_CHECKING([if this is MiNT])
  412. x=`echo $target_os |tr A-Z a-z |sed "s/.*mint.*/mint/"`
  413. if test x$x = xmint; then
  414. this_is_mint=yes
  415. enable_cdrom=no
  416. enable_pthreads=no
  417. fi
  418. AC_MSG_RESULT([$this_is_mint])
  419. fi
  420. dnl Some platform might disable this, so check this down here...
  421. if test x$enable_cdrom != xyes; then
  422. AC_DEFINE([PHYSFS_NO_CDROM_SUPPORT], 1, [define if we have no CD support])
  423. AC_MSG_WARN([***])
  424. AC_MSG_WARN([*** There is no CD-ROM support in this build!])
  425. AC_MSG_WARN([*** PhysicsFS will just pretend there are no discs.])
  426. AC_MSG_WARN([*** This may be fine, depending on how PhysicsFS is used,])
  427. AC_MSG_WARN([*** but is this what you REALLY wanted?])
  428. AC_MSG_WARN([*** (Maybe fix configure.in, or write a platform driver?)])
  429. AC_MSG_WARN([***])
  430. fi
  431. if test x$enable_pthreads != xyes; then
  432. AC_DEFINE([PHYSFS_NO_PTHREADS_SUPPORT], 1, [define if we have no POSIX threads support])
  433. if test x$have_non_posix_threads != xyes; then
  434. AC_MSG_WARN([***])
  435. AC_MSG_WARN([*** There is no thread support in this build!])
  436. AC_MSG_WARN([*** PhysicsFS will NOT be reentrant!])
  437. AC_MSG_WARN([*** This may be fine, depending on how PhysicsFS is used,])
  438. AC_MSG_WARN([*** but is this what you REALLY wanted?])
  439. AC_MSG_WARN([*** (Maybe fix configure.in, or write a platform driver?)])
  440. AC_MSG_WARN([***])
  441. fi
  442. fi
  443. # Checks for header files.
  444. AC_HEADER_STDC
  445. AC_CHECK_HEADERS([stdlib.h string.h assert.h])
  446. # Checks for typedefs, structures, and compiler characteristics.
  447. dnl AC_C_CONST
  448. dnl AC_TYPE_SIZE_T
  449. # Checks for library functions.
  450. # This is only in the bleeding edge autoconf distro...
  451. #AC_FUNC_MALLOC
  452. AC_FUNC_MEMCMP
  453. AC_CHECK_FUNCS([memset strrchr])
  454. AC_CHECK_SIZEOF(int, 4)
  455. CFLAGS="$PHYSFSCFLAGS $CFLAGS -D_REENTRANT -D_THREAD_SAFE"
  456. LDFLAGS="$LDFLAGS $PHYSFSLDFLAGS -no-undefined"
  457. dnl Add Makefile conditionals
  458. AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes)
  459. AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes)
  460. AM_CONDITIONAL(BUILD_MACOSX, test x$this_is_macosx = xyes)
  461. AM_CONDITIONAL(BUILD_BEOS, test x$this_is_beos = xyes)
  462. AM_CONDITIONAL(BUILD_CYGWIN, test x$this_is_cygwin = xyes)
  463. AM_CONDITIONAL(BUILD_READLINE, test x$have_readline = xyes)
  464. AC_OUTPUT([
  465. Makefile
  466. archivers/Makefile
  467. platform/Makefile
  468. zlib123/Makefile
  469. test/Makefile
  470. extras/Makefile
  471. physfs.spec
  472. ])
  473. dnl end of configure.in ...