configure.ac 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. dnl
  2. dnl Configure.in file for the Midnight Commander
  3. dnl
  4. AC_PREREQ(2.60)
  5. AC_INIT([GNU Midnight Commander], [], [mc-devel@gnome.org])
  6. m4_pattern_forbid(MC_)
  7. AC_CONFIG_MACRO_DIR([m4])
  8. AC_CONFIG_AUX_DIR(config)
  9. AC_CONFIG_SRCDIR(src/main.c)
  10. AC_CONFIG_HEADERS(config.h)
  11. mc_VERSION
  12. AM_INIT_AUTOMAKE(mc, ${VERSION} )
  13. dnl Enable silent rules by default (if yes)
  14. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  15. AM_MAINTAINER_MODE
  16. AC_CANONICAL_HOST
  17. AC_USE_SYSTEM_EXTENSIONS
  18. dnl ############################################################################
  19. dnl Check for compiler
  20. dnl ############################################################################
  21. AC_PROG_CC_STDC
  22. AM_PROG_CC_C_O
  23. mc_CHECK_CFLAGS
  24. CFLAGS_OPTS=""
  25. if test "x$CFLAGS" = "x"; then
  26. CFLAGS_OPTS=" -O2 "
  27. fi
  28. if test x$USE_MAINTAINER_MODE = xyes; then
  29. CFLAGS_OPTS="-g3 -O -ggdb"
  30. AC_DEFINE(USE_MAINTAINER_MODE, 1, [Use maintainer mode])
  31. fi
  32. AC_ARG_ENABLE([werror],
  33. AS_HELP_STRING([--enable-werror], [Handle all compiler warnings as errors]))
  34. if test "x$enable_werror" = xyes; then
  35. mc_CHECK_ONE_CFLAG([-Werror])
  36. fi
  37. AC_PROG_LIBTOOL
  38. dnl ############################################################################
  39. dnl Check for programs
  40. dnl ############################################################################
  41. PKG_PROG_PKG_CONFIG
  42. AC_PROG_INSTALL
  43. AC_PROG_LN_S
  44. AC_PATH_PROG([PERL], [perl], [/usr/bin/perl])
  45. AC_PATH_PROG([PYTHON], [python], [/usr/bin/python])
  46. AC_PATH_PROG([RUBY], [ruby], [/usr/bin/ruby])
  47. dnl Check nroff and the options it supports
  48. AC_CHECK_PROG(HAVE_nroff, nroff, true, false)
  49. dnl Default values
  50. MANDOC=-man
  51. MAN_FLAGS=
  52. if $HAVE_nroff; then
  53. AC_MSG_CHECKING([for manual formatting macros])
  54. AC_CACHE_VAL(mc_cv_mandoc, [
  55. nroff -mandoc < /dev/null > /dev/null 2>&1
  56. if test $? = 0; then
  57. mc_cv_mandoc=-mandoc
  58. else
  59. mc_cv_mandoc=-man
  60. fi
  61. ])
  62. MANDOC=$mc_cv_mandoc
  63. AC_MSG_RESULT([$MANDOC])
  64. AC_MSG_CHECKING([for option to disable ANSI color in manuals])
  65. AC_CACHE_VAL(mc_cv_man_nocolor, [
  66. nroff -c < /dev/null > /dev/null 2>&1
  67. if test $? = 0; then
  68. mc_cv_man_nocolor=-c
  69. else
  70. mc_cv_man_nocolor=
  71. fi
  72. ])
  73. MAN_FLAGS=$mc_cv_man_nocolor
  74. AC_MSG_RESULT([${MAN_NOCOLOR-none}])
  75. AC_MSG_CHECKING([if nroff accepts -Tlatin1 or -Tascii])
  76. AC_CACHE_VAL(mc_cv_nroff_tascii, [
  77. mc_cv_nroff_tascii=
  78. nroff -Tlatin1 < /dev/null > /dev/null 2>&1 /dev/null
  79. if test $? = 0; then
  80. mc_cv_nroff_tascii=-Tlatin1
  81. else
  82. nroff -Tascii < /dev/null > /dev/null 2>&1 /dev/null
  83. if test $? = 0; then
  84. mc_cv_nroff_tascii=-Tascii
  85. fi
  86. fi
  87. ])
  88. AC_MSG_RESULT([${mc_cv_nroff_tascii-no}])
  89. MAN_FLAGS="$MAN_FLAGS $mc_cv_nroff_tascii"
  90. fi
  91. AC_SUBST(MANDOC)
  92. AC_SUBST(MAN_FLAGS)
  93. dnl Check for -L option to file
  94. AC_CHECK_PROG(HAVE_FILECMD, file, true, false)
  95. if $HAVE_FILECMD; then
  96. AC_MSG_CHECKING([for -L option to file command])
  97. AC_CACHE_VAL(mc_cv_filel, [
  98. file -L . > /dev/null 2>&1
  99. if test $? = 0; then
  100. mc_cv_filel=yes
  101. else
  102. mc_cv_filel=no
  103. fi
  104. ])
  105. if test x$mc_cv_filel = xyes; then
  106. AC_DEFINE(FILE_L, 1, [Define if the file command accepts the -L option])
  107. fi
  108. filel=$mc_cv_filel
  109. AC_MSG_RESULT([$filel])
  110. fi
  111. dnl Only list browsers here that can be run in background (i.e. with `&')
  112. AC_CHECK_PROGS(X11_WWW, [gnome-moz-remote mozilla firefox konqueror opera])
  113. dnl ############################################################################
  114. dnl Check for other tools
  115. dnl ############################################################################
  116. AC_CHECK_TOOL(AR, ar, ar)
  117. mc_UNIT_TESTS
  118. dnl ############################################################################
  119. dnl Check for main libraies
  120. dnl ############################################################################
  121. mc_CHECK_GLIB
  122. mc_G_MODULE_SUPPORTED
  123. mc_WITH_SCREEN
  124. mc_CHECK_SEARCH_TYPE
  125. dnl X11 support. Used to read keyboard modifiers when running under X11.
  126. mc_WITH_X
  127. dnl ############################################################################
  128. dnl Check for header files
  129. dnl ############################################################################
  130. AC_CHECK_HEADERS([string.h memory.h limits.h malloc.h \
  131. utime.h sys/statfs.h sys/vfs.h \
  132. sys/select.h sys/ioctl.h stropts.h arpa/inet.h \
  133. sys/socket.h])
  134. AC_HEADER_MAJOR
  135. dnl ############################################################################
  136. dnl Check for types
  137. dnl ############################################################################
  138. dnl Check largefile before type sizeof checks
  139. AC_SYS_LARGEFILE
  140. AC_CHECK_SIZEOF(long)
  141. AC_TYPE_UINTMAX_T
  142. AC_CHECK_SIZEOF(uintmax_t)
  143. AC_TYPE_OFF_T
  144. AC_CHECK_SIZEOF(off_t)
  145. AC_TYPE_MODE_T
  146. gl_PROMOTED_TYPE_MODE_T
  147. AC_TYPE_PID_T
  148. AC_TYPE_UID_T
  149. AC_STRUCT_ST_BLOCKS
  150. AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_rdev, struct stat.st_mtim])
  151. gl_STAT_SIZE
  152. AH_TEMPLATE([sig_atomic_t],
  153. [/* Define to `int' if <signal.h> doesn't define.])
  154. AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
  155. [Some systems declare sig_atomic_t as volatile, some others -- no.
  156. This define will have value `sig_atomic_t' or
  157. `volatile sig_atomic_t' accordingly.])
  158. AC_MSG_CHECKING(for sig_atomic_t in signal.h)
  159. AC_EGREP_HEADER(sig_atomic_t,signal.h,
  160. [
  161. ac_cv_type_sig_atomic_t=yes;
  162. AC_EGREP_HEADER(volatile.*sig_atomic_t,
  163. signal.h,
  164. [
  165. is_sig_atomic_t_volatile=yes;
  166. AC_MSG_RESULT([yes, volatile])
  167. ],
  168. [
  169. is_sig_atomic_t_volatile=no;
  170. AC_MSG_RESULT([yes, non volatile])
  171. ])
  172. ],
  173. [
  174. AC_MSG_RESULT(no)
  175. AC_CHECK_TYPE(sig_atomic_t, int)
  176. is_sig_atomic_t_volatile=no
  177. ])
  178. if test $is_sig_atomic_t_volatile = 'yes'
  179. then
  180. AC_DEFINE(SIG_ATOMIC_VOLATILE_T, sig_atomic_t)
  181. else
  182. AC_DEFINE(SIG_ATOMIC_VOLATILE_T, [volatile sig_atomic_t])
  183. fi
  184. dnl ############################################################################
  185. dnl Check for functions
  186. dnl ############################################################################
  187. AC_CHECK_FUNCS([\
  188. strverscmp \
  189. strncasecmp \
  190. realpath
  191. ])
  192. dnl utimensat is supported since glibc 2.6 and specified in POSIX.1-2008
  193. AC_CHECK_FUNCS([utimensat])
  194. dnl getpt is a GNU Extension (glibc 2.1.x)
  195. AC_CHECK_FUNCS(posix_openpt, , [AC_CHECK_FUNCS(getpt)])
  196. AC_CHECK_FUNCS(grantpt, , [AC_CHECK_LIB(pt, grantpt)])
  197. dnl replacing lstat with statlstat on sco makes it more portable between
  198. dnl sco clones
  199. AC_CHECK_FUNCS(statlstat)
  200. dnl Ovverriding mmap support. This has to be before AC_FUNC_MMAP is used.
  201. dnl We use only part of the functionality of mmap, so on AIX,
  202. dnl it's possible to use mmap, even if it doesn't pass the autoconf test.
  203. AC_ARG_WITH([mmap],
  204. AS_HELP_STRING([--with-mmap], [Use the mmap call @<:@yes if found@:>@]))
  205. if test x$with_mmap != xno; then
  206. if test x$with_mmap = x; then
  207. AC_FUNC_MMAP
  208. else
  209. AC_DEFINE(HAVE_MMAP, 1)
  210. fi
  211. fi
  212. dnl Sequent wants getprocessstats
  213. AC_CHECK_LIB(seq, get_process_stats, [
  214. LIBS="$LIBS -lseq"
  215. AC_DEFINE(HAVE_GET_PROCESS_STATS, 1,
  216. [Define if you have function `get_process_stats' and
  217. have to use that instead of gettimeofday])])
  218. mc_AC_GET_FS_INFO
  219. dnl ############################################################################
  220. dnl Internationalization
  221. dnl ############################################################################
  222. AM_GNU_GETTEXT([no-libtool], [need-ngettext])
  223. AM_GNU_GETTEXT_VERSION([0.18.1])
  224. mc_I18N
  225. dnl ############################################################################
  226. dnl OS specific flags
  227. dnl ############################################################################
  228. case $host_os in
  229. aux*)
  230. # A/UX
  231. LIBS="$LIBS -lposix"
  232. AC_DEFINE(_POSIX_SOURCE)
  233. ;;
  234. esac
  235. dnl If running under AIX, AC_AIX does not tell us that
  236. AC_MSG_CHECKING([for AIX defines])
  237. AC_EGREP_CPP([yes],
  238. [
  239. #if defined(AIX) || defined(_AIX) || defined(__aix__) || defined(aix)
  240. yes
  241. #endif
  242. ],
  243. [
  244. AC_DEFINE(IS_AIX, 1, [Define if compiling for AIX])
  245. AC_MSG_RESULT(yes)
  246. ],
  247. [
  248. AC_MSG_RESULT(no)
  249. ])
  250. dnl Check if the OS is supported by the console saver.
  251. cons_saver=""
  252. case $host_os in
  253. linux*)
  254. cons_saver=yes
  255. esac
  256. dnl Check for gpm mouse support (Linux only)
  257. mouse_lib="xterm only"
  258. AC_ARG_WITH([gpm-mouse],
  259. AS_HELP_STRING([--with-gpm-mouse], [Compile with gpm mouse support (Linux only) @<:@yes if found@:>@]))
  260. case $host_os in
  261. linux*)
  262. if test x$with_gpm_mouse != xno; then
  263. AC_CHECK_LIB(gpm, Gpm_Repeat,
  264. [AC_DEFINE(HAVE_LIBGPM, 1,
  265. [Define to enable gpm mouse support on Linux])
  266. mouse_lib="gpm and xterm"
  267. MCLIBS="$MCLIBS -lgpm"],
  268. if test "x$with_gpm_mouse" = "xyes"; then
  269. [AC_MSG_ERROR([libgpm is missing or older than 0.18])]
  270. else
  271. [AC_MSG_WARN([libgpm is missing or older than 0.18])]
  272. fi
  273. )
  274. fi
  275. ;;
  276. esac
  277. dnl ############################################################################
  278. dnl libmc
  279. dnl ############################################################################
  280. LIBMC_VERSION="0.0.1"
  281. LIBMC_RELEASE="1"
  282. AC_SUBST(LIBMC_VERSION)
  283. AC_SUBST(LIBMC_RELEASE)
  284. AC_ARG_ENABLE([mclib],
  285. [AS_HELP_STRING([--enable-mclib], [Compile shared library libmc.so @<:@no@:>@])],
  286. [
  287. if test "x$enableval" = "xno" ; then
  288. enable_mclib=no
  289. else
  290. if test "x$enable_shared" = "xno" ; then
  291. AC_MSG_WARN([Build of shared library is disabled. Specify --enable-shared first])
  292. enable_mclib=no
  293. else
  294. enable_mclib=yes
  295. fi
  296. fi
  297. ],
  298. [enable_mclib=no])
  299. AM_CONDITIONAL([ENABLE_MCLIB], [test x$enable_mclib = xyes])
  300. dnl ############################################################################
  301. dnl Where config files should be placed
  302. dnl ############################################################################
  303. AC_ARG_WITH([homedir],
  304. AS_HELP_STRING([--with-homedir],
  305. [Choose any place of user settings relative to home dir, or XDG for respect XDG standards @<:@XDG@:>@]),
  306. [
  307. dnl Unfortunately, there is no way to tell AC_ARG_WITH that the
  308. dnl argument value is required, so we can't differentiate
  309. dnl between `--with-homedir` and `--with-homedir=yes`, because
  310. dnl `with_homedir` is set to `yes` in both cases.
  311. dnl
  312. dnl We opt to set `with_homedir` to `.mc` if the value is `yes`
  313. dnl in order to avoid the surprise for users using
  314. dnl `--with-homedir` w/o any value and then getting mc to store
  315. dnl settings in the `yes` directory.
  316. if test "x$withval" = "xXDG"; then
  317. with_homedir=XDG
  318. elif test "x$withval" = "xyes"; then
  319. with_homedir=.mc
  320. else
  321. with_homedir=$withval
  322. fi
  323. ],
  324. [with_homedir=XDG])
  325. if test x$with_homedir = xXDG; then
  326. AC_DEFINE(MC_HOMEDIR_XDG, 1, [Define to enable XDG standard support])
  327. else
  328. AC_DEFINE(MC_HOMEDIR_XDG, 0, [Define to disable XDG standard support])
  329. AC_DEFINE_UNQUOTED([MC_USERCONF_DIR], ["$with_homedir"], [Where configs will be placed relative to $HOME])
  330. fi
  331. dnl ############################################################################
  332. dnl MC options
  333. dnl ############################################################################
  334. mc_ASSERT
  335. mc_WITH_INTERNAL_EDIT
  336. dnl Diff viewer support.
  337. AC_ARG_WITH([diff_viewer],
  338. AS_HELP_STRING([--with-diff-viewer], [Compile with diff viewer @<:@yes@:>@]))
  339. if test x$with_diff_viewer != xno; then
  340. AC_DEFINE(USE_DIFF_VIEW, 1, [Define to enable diff viewer])
  341. use_diff=yes
  342. diff_msg="yes"
  343. AC_MSG_NOTICE([using diff viewer])
  344. else
  345. diff_msg="no"
  346. fi
  347. mc_SUBSHELL
  348. mc_BACKGROUND
  349. mc_VFS_CHECKS
  350. dnl ############################################################################
  351. dnl Directories
  352. dnl ############################################################################
  353. dnl ${prefix} and ${exec_prefix} are undefined here if --prefix is not used in command line
  354. dnl Let define ${prefix} and ${exec_prefix}
  355. test "x$prefix" = "xNONE" && prefix="$ac_default_prefix"
  356. test "x$exec_prefix" = "xNONE" && exec_prefix="${prefix}"
  357. if test x${libexecdir} = x'${exec_prefix}/libexec'; then
  358. EXTHELPERSDIR=${prefix}/libexec/${PACKAGE}/ext.d
  359. elif test x${libexecdir} = x'${exec_prefix}/lib'; then
  360. EXTHELPERSDIR=${prefix}/lib/${PACKAGE}/ext.d
  361. else
  362. EXTHELPERSDIR=${libexecdir}/${PACKAGE}/ext.d
  363. fi
  364. AC_SUBST(EXTHELPERSDIR)
  365. dnl ############################################################################
  366. dnl Documentation
  367. dnl ############################################################################
  368. MAN_DATE="$(LC_ALL=C date "+%B %Y")"
  369. AC_SUBST(MAN_DATE)
  370. dnl Determine which help translations we want to install.
  371. ALL_DOC_LINGUAS="es hu it pl ru sr"
  372. DOC_LINGUAS=
  373. if test "x$USE_NLS" = xyes; then
  374. if test -z "$LINGUAS"; then
  375. langs="`grep -v '^#' $srcdir/po/LINGUAS`"
  376. else
  377. langs="$LINGUAS"
  378. fi
  379. else
  380. langs=
  381. fi
  382. for h_lang in $ALL_DOC_LINGUAS; do
  383. for lang in $langs; do
  384. if test "$lang" = "$h_lang"; then
  385. DOC_LINGUAS="$DOC_LINGUAS $lang"
  386. break
  387. fi
  388. done
  389. done
  390. AC_SUBST(DOC_LINGUAS)
  391. DX_HTML_FEATURE(ON)
  392. DX_CHM_FEATURE(OFF)
  393. DX_CHI_FEATURE(OFF)
  394. DX_MAN_FEATURE(OFF)
  395. DX_RTF_FEATURE(OFF)
  396. DX_XML_FEATURE(OFF)
  397. DX_PDF_FEATURE(OFF)
  398. DX_PS_FEATURE(OFF)
  399. DX_INIT_DOXYGEN(mc,doxygen.cfg,devel)
  400. dnl ############################################################################
  401. dnl Configure results
  402. dnl ############################################################################
  403. CFLAGS="$mc_configured_cflags $CFLAGS_OPTS $CFLAGS"
  404. AC_SUBST(MCLIBS)
  405. AC_SUBST(CFLAGS)
  406. AC_SUBST(CPPFLAGS)
  407. AC_SUBST(LDFLAGS)
  408. AC_SUBST(LIBS)
  409. AM_CONDITIONAL(USE_NLS, [test x"$USE_NLS" = xyes])
  410. AM_CONDITIONAL(USE_MAINTAINER_MODE, [test x"$USE_MAINTAINER_MODE" = xyes])
  411. AM_CONDITIONAL(USE_SCREEN_SLANG, [test x"$with_screen" = xslang])
  412. AM_CONDITIONAL(USE_INTERNAL_EDIT, [test x"$use_internal_edit" = xyes ])
  413. AM_CONDITIONAL(USE_ASPELL, [test x"$enable_aspell" = xyes ])
  414. AM_CONDITIONAL(USE_DIFF, [test -n "$use_diff"])
  415. AM_CONDITIONAL(CHARSET, [test -n "$have_charset"])
  416. AM_CONDITIONAL(CONS_SAVER, [test -n "$cons_saver"])
  417. dnl Clarify do we really need GModule
  418. AM_CONDITIONAL([HAVE_GMODULE], [test -n "$g_module_supported" && \
  419. test x"$textmode_x11_support" = x"yes" -o x"$enable_aspell" = x"yes"])
  420. AC_DEFINE_UNQUOTED([MC_CONFIGURE_ARGS], ["$ac_configure_args"], [MC configure arguments])
  421. AC_CONFIG_FILES(
  422. [
  423. src/man2hlp/man2hlp
  424. ],
  425. [
  426. chmod +x src/man2hlp/man2hlp
  427. ])
  428. AC_CONFIG_FILES([
  429. Makefile
  430. contrib/Makefile
  431. contrib/dist/Makefile
  432. contrib/dist/gentoo/Makefile
  433. contrib/dist/redhat/Makefile
  434. contrib/dist/redhat/mc.spec
  435. contrib/dist/pkginfo
  436. contrib/dist/prototype
  437. misc/Makefile
  438. misc/mc.menu
  439. misc/mcedit.menu
  440. misc/skins/Makefile
  441. misc/ext.d/Makefile
  442. misc/ext.d/doc.sh
  443. misc/ext.d/misc.sh
  444. misc/ext.d/text.sh
  445. misc/ext.d/web.sh
  446. misc/macros.d/Makefile
  447. misc/mc.ext
  448. src/Makefile
  449. src/consaver/Makefile
  450. src/editor/Makefile
  451. src/man2hlp/Makefile
  452. src/subshell/Makefile
  453. src/viewer/Makefile
  454. src/diffviewer/Makefile
  455. src/filemanager/Makefile
  456. src/vfs/Makefile
  457. src/vfs/cpio/Makefile
  458. src/vfs/extfs/Makefile
  459. src/vfs/extfs/helpers/Makefile
  460. src/vfs/extfs/helpers/a+
  461. src/vfs/extfs/helpers/apt+
  462. src/vfs/extfs/helpers/audio
  463. src/vfs/extfs/helpers/deb
  464. src/vfs/extfs/helpers/deba
  465. src/vfs/extfs/helpers/debd
  466. src/vfs/extfs/helpers/dpkg+
  467. src/vfs/extfs/helpers/iso9660
  468. src/vfs/extfs/helpers/hp48+
  469. src/vfs/extfs/helpers/lslR
  470. src/vfs/extfs/helpers/mailfs
  471. src/vfs/extfs/helpers/patchfs
  472. src/vfs/extfs/helpers/rpms+
  473. src/vfs/extfs/helpers/s3+
  474. src/vfs/extfs/helpers/uace
  475. src/vfs/extfs/helpers/ualz
  476. src/vfs/extfs/helpers/uar
  477. src/vfs/extfs/helpers/uarc
  478. src/vfs/extfs/helpers/uarj
  479. src/vfs/extfs/helpers/uc1541
  480. src/vfs/extfs/helpers/ucab
  481. src/vfs/extfs/helpers/uha
  482. src/vfs/extfs/helpers/ulha
  483. src/vfs/extfs/helpers/ulib
  484. src/vfs/extfs/helpers/urar
  485. src/vfs/extfs/helpers/uzip
  486. src/vfs/extfs/helpers/uzoo
  487. src/vfs/fish/Makefile
  488. src/vfs/fish/helpers/Makefile
  489. src/vfs/ftpfs/Makefile
  490. src/vfs/sftpfs/Makefile
  491. src/vfs/local/Makefile
  492. src/vfs/sfs/Makefile
  493. src/vfs/smbfs/Makefile
  494. src/vfs/tar/Makefile
  495. src/vfs/undelfs/Makefile
  496. lib/Makefile
  497. lib/event/Makefile
  498. lib/filehighlight/Makefile
  499. lib/mcconfig/Makefile
  500. lib/search/Makefile
  501. lib/skin/Makefile
  502. lib/strutil/Makefile
  503. lib/tty/Makefile
  504. lib/vfs/Makefile
  505. lib/widget/Makefile
  506. misc/syntax/Makefile
  507. misc/syntax/Syntax
  508. doc/Makefile
  509. doc/hints/Makefile
  510. doc/hints/l10n/Makefile
  511. doc/man/Makefile
  512. doc/man/es/Makefile
  513. doc/man/hu/Makefile
  514. doc/man/it/Makefile
  515. doc/man/pl/Makefile
  516. doc/man/ru/Makefile
  517. doc/man/sr/Makefile
  518. doc/hlp/Makefile
  519. doc/hlp/es/Makefile
  520. doc/hlp/hu/Makefile
  521. doc/hlp/it/Makefile
  522. doc/hlp/pl/Makefile
  523. doc/hlp/ru/Makefile
  524. doc/hlp/sr/Makefile
  525. intl/Makefile
  526. po/Makefile.in
  527. ])
  528. AC_CONFIG_FILES([
  529. tests/Makefile
  530. tests/lib/Makefile
  531. tests/lib/mcconfig/Makefile
  532. tests/lib/search/Makefile
  533. tests/lib/strutil/Makefile
  534. tests/lib/vfs/Makefile
  535. tests/lib/widget/Makefile
  536. tests/src/Makefile
  537. tests/src/filemanager/Makefile
  538. tests/src/editor/Makefile
  539. tests/src/editor/test-data.txt
  540. tests/src/vfs/Makefile
  541. tests/src/vfs/extfs/Makefile
  542. tests/src/vfs/extfs/helpers-list/Makefile
  543. tests/src/vfs/extfs/helpers-list/data/config.sh
  544. tests/src/vfs/extfs/helpers-list/misc/Makefile
  545. ])
  546. AC_OUTPUT
  547. AC_MSG_NOTICE([
  548. Configuration:
  549. Source code location: ${srcdir}
  550. Compiler: ${CC}
  551. Compiler flags: ${CFLAGS}
  552. Assertions: ${enable_assert}
  553. Unit tests: ${tests_msg}
  554. File system: ${vfs_type}
  555. ${vfs_flags}
  556. Screen library: ${screen_msg}
  557. Mouse support: ${mouse_lib}
  558. X11 events support: ${textmode_x11_support}
  559. With subshell support: ${subshell}
  560. With background operations: ${enable_background}
  561. Internal editor: ${edit_msg}
  562. Diff viewer: ${diff_msg}
  563. Support for charset: ${charset_msg}
  564. Search type: ${SEARCH_TYPE}
  565. ])
  566. dnl option checking is disable by default due to AC_CONFIG_SUBDIRS
  567. dnl we enable it back for top-level ./configure
  568. if test -n "$ac_unrecognized_opts"; then
  569. case $enable_option_checking in
  570. fatal) AC_MSG_ERROR([unrecognized options: $ac_unrecognized_opts]) ;;
  571. *) AC_MSG_WARN( [unrecognized options: $ac_unrecognized_opts]) ;;
  572. esac
  573. fi