configure.in 16 KB

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