configure.in 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. dnl
  2. dnl Configure.in file for the Midnight Commander
  3. dnl
  4. AC_INIT([GNU Midnight Commander], [], [mc-devel@gnome.org])
  5. AC_PREREQ(2.52)
  6. AC_CONFIG_SRCDIR(src/main.c)
  7. AC_CONFIG_AUX_DIR(config)
  8. AM_INIT_AUTOMAKE(mc, 4.6.0a)
  9. AM_CONFIG_HEADER(config.h)
  10. AM_MAINTAINER_MODE
  11. AC_CANONICAL_HOST
  12. AC_AIX
  13. AC_MINIX
  14. AC_ISC_POSIX
  15. AC_PROG_CC_STDC
  16. dnl
  17. dnl First try glib 2.x. If it's not found, use glib 1.2.x.
  18. dnl Keep this check close to the beginning, so that the users
  19. dnl without any glib won't have their time wasted by other checks.
  20. dnl
  21. AC_ARG_WITH(glib12,
  22. [ --with-glib12 Force using glib 1.2.x [[no]]])
  23. AC_ARG_WITH([glib_static],
  24. [ --with-glib-static Link glib statically [[no]]])
  25. glib_found=no
  26. if test "x$with_glib12" != "xyes"; then
  27. PKG_CHECK_MODULES(GLIB, [glib-2.0], [glib_found=yes], [:])
  28. fi
  29. dnl Fall back to glib-1.2, don't use pkgconfig to find it.
  30. if test "x$glib_found" != "xyes" ; then
  31. dnl This temporary variable is a workaround for a bug in Autoconf-2.53
  32. glib_path=$PATH:/usr/local/bin
  33. dnl Klugde for FreeBSD, where glib-config is renamed to glib12-config.
  34. AC_PATH_PROGS([GLIB_CONFIG], [glib-config glib12-config],,[$glib_path])
  35. AC_ARG_VAR([GLIB_CONFIG], [Path to glib-config (version 1.2.x only)])
  36. AM_PATH_GLIB(1.2.6, , [AC_MSG_ERROR([Test for glib failed.
  37. GNU Midnight Commander requires glib 1.2.6 or above.])])
  38. dnl Save GLIB_CFLAGS and GLIB_LIBS, since the following call to
  39. dnl AM_PATH_GLIB will overwrite them.
  40. save_GLIB_CFLAGS="$GLIB_CFLAGS"
  41. save_GLIB_LIBS="$GLIB_LIBS"
  42. dnl Check for gmodule. Store the flags necessary to compile and
  43. dnl link programs using gmodule functionality in GMODULE_CFLAGS
  44. dnl and GMODULE_LIBS.
  45. AM_PATH_GLIB(1.2.6, [gmodule_found=yes], , [gmodule])
  46. GMODULE_CFLAGS="$GLIB_CFLAGS"
  47. GMODULE_LIBS="$GLIB_LIBS"
  48. GLIB_CFLAGS="$save_GLIB_CFLAGS"
  49. GLIB_LIBS="$save_GLIB_LIBS"
  50. GLIB_LIBDIR="`$GLIB_CONFIG --exec-prefix`/lib"
  51. else
  52. PKG_CHECK_MODULES(GMODULE, [gmodule-2.0], [gmodule_found=yes])
  53. GLIB_LIBDIR="`$PKG_CONFIG --variable=libdir glib-2.0`"
  54. fi
  55. if test "x$gmodule_found" = "xyes" ; then
  56. dnl Check if the gmodule functionality supported on this system.
  57. AC_G_MODULE_SUPPORTED
  58. fi
  59. AC_HEADER_MAJOR
  60. AC_C_CONST
  61. AC_SYS_LARGEFILE
  62. AC_PROG_LN_S
  63. AC_CHECK_TOOL(AR, ar, ar)
  64. dnl Only list browsers here that can be run in background (i.e. with `&')
  65. AC_CHECK_PROGS(X11_WWW, [gnome-moz-remote mozilla konqueror opera netscape])
  66. dnl
  67. dnl Ovverriding mmap support. This has to be before AC_FUNC_MMAP is used.
  68. dnl We use only part of the functionality of mmap, so on AIX,
  69. dnl it's possible to use mmap, even if it doesn't pass the autoconf test.
  70. dnl
  71. AC_ARG_WITH(mmap,
  72. [ --with-mmap Force using the mmap call (only useful on AIX)],
  73. [case $withval in
  74. yes)
  75. ac_cv_func_mmap_fixed_mapped=yes
  76. AC_MSG_NOTICE([forcing MMAP support])
  77. ;;
  78. no)
  79. ac_cv_func_mmap_fixed_mapped=no
  80. AC_MSG_NOTICE([disabling MMAP support])
  81. ;;
  82. esac])
  83. AC_FUNC_MMAP
  84. dnl
  85. dnl Internationalization
  86. dnl
  87. MC_ASM_LABELS
  88. AM_GNU_GETTEXT
  89. AM_GNU_GETTEXT_VERSION(0.11.5)
  90. if test "x$USE_INCLUDED_LIBINTL" = xyes; then
  91. CPPFLAGS="$CPPFLAGS -I\$(top_builddir)/intl -I\$(top_srcdir)/intl"
  92. fi
  93. dnl Determine which help translations we want to install.
  94. ALL_DOC_LINGUAS="es hu it pl ru"
  95. DOC_LINGUAS=
  96. if test "x$USE_NLS" = xyes; then
  97. if test -z "$LINGUAS"; then
  98. langs="`grep -v '^#' $srcdir/po/LINGUAS`"
  99. else
  100. langs="$LINGUAS"
  101. fi
  102. else
  103. langs=
  104. fi
  105. for h_lang in $ALL_DOC_LINGUAS; do
  106. for lang in $langs; do
  107. if test "$lang" = "$h_lang"; then
  108. DOC_LINGUAS="$DOC_LINGUAS $lang"
  109. break
  110. fi
  111. done
  112. done
  113. AC_SUBST(DOC_LINGUAS)
  114. dnl
  115. dnl Hack to make extraconf.h visible even if compiling outside srcdir.
  116. dnl
  117. CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)"
  118. dnl
  119. dnl Enforce coding standards
  120. dnl
  121. if test "x$GCC" = xyes; then
  122. CFLAGS="$CFLAGS -Wall"
  123. fi
  124. dnl
  125. dnl OS specific flags.
  126. dnl
  127. case $host_os in
  128. aux*)
  129. # A/UX
  130. LIBS="$LIBS -lposix"
  131. AC_DEFINE(_POSIX_SOURCE)
  132. ;;
  133. esac
  134. AC_PROG_INSTALL
  135. AC_CHECK_HEADERS([unistd.h string.h memory.h grp.h limits.h malloc.h \
  136. stdlib.h termios.h utime.h fcntl.h pwd.h sys/statfs.h sys/time.h \
  137. sys/timeb.h sys/select.h sys/ioctl.h stropts.h arpa/inet.h])
  138. AC_HEADER_TIME
  139. AC_HEADER_SYS_WAIT
  140. AC_HEADER_DIRENT
  141. AC_HEADER_STDC
  142. dnl Missing structure components
  143. AC_STRUCT_ST_BLKSIZE
  144. AC_STRUCT_ST_BLOCKS
  145. AC_STRUCT_ST_RDEV
  146. dnl
  147. dnl Check availability of some functions
  148. dnl
  149. AC_CHECK_FUNCS([strerror statfs strftime getsid \
  150. memmove truncate initgroups putenv \
  151. memset memcpy tcsetattr tcgetattr cfgetospeed \
  152. sigaction sigemptyset sigprocmask sigaddset \
  153. sysconf setuid setreuid telldir seekdir])
  154. dnl
  155. dnl getpt is a GNU Extension (glibc 2.1.x)
  156. dnl
  157. AC_CHECK_FUNCS(posix_openpt, , [AC_CHECK_FUNCS(getpt)])
  158. AC_CHECK_FUNCS(grantpt, , [AC_CHECK_LIB(pt, grantpt)])
  159. dnl replacing lstat with statlstat on sco makes it more portable between
  160. dnl sco clones
  161. AC_CHECK_FUNCS(statlstat)
  162. dnl
  163. dnl If running under AIX, AC_AIX does not tell us that
  164. dnl
  165. AC_MSG_CHECKING([for AIX defines])
  166. AC_EGREP_CPP(yes,
  167. [#if defined(AIX) || defined(_AIX) || defined(__aix__) || defined(aix)
  168. yes
  169. #endif
  170. ], [
  171. AC_DEFINE(IS_AIX, 1, [Define if compiling for AIX])
  172. AC_MSG_RESULT(yes)
  173. ], [AC_MSG_RESULT(no)])
  174. dnl
  175. dnl This is from GNU fileutils, check aclocal.m4 for more information
  176. dnl
  177. AC_GET_FS_INFO
  178. dnl
  179. dnl Missing typedefs and replacements
  180. dnl
  181. AC_TYPE_MODE_T
  182. AC_CHECK_TYPE(umode_t, int)
  183. AC_CHECK_TYPE(off_t, long)
  184. AC_TYPE_PID_T
  185. AC_TYPE_UID_T
  186. AC_CHECK_TYPE(nlink_t, unsigned int)
  187. dnl This is needed for regex.c only
  188. AC_CHECK_TYPE(uintptr_t,
  189. [AC_DEFINE(HAVE_UINTPTR_T, 1,
  190. [Define if you have the `uintptr_t' type.])
  191. ])
  192. AC_FUNC_ALLOCA
  193. AC_FUNC_STRCOLL
  194. dnl
  195. dnl X11 support.
  196. dnl Used to read keyboard modifiers when running under X11.
  197. dnl
  198. AC_PATH_XTRA
  199. if test "x$no_x" = xyes; then
  200. textmode_x11_support="no"
  201. else
  202. CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  203. if test "x$mc_cv_g_module_supported" = "xyes" ; then
  204. dnl Replace the contents of GLIB_CFLAGS and GLIB_LIBS with those of
  205. dnl GMODULE_CFLAGS and GMODULE_LIBS, only if X is available and gmodule
  206. dnl functionality is supported on the system. This way, mc will be
  207. dnl linked against the gmodule library only when it's really required.
  208. GLIB_CFLAGS="$GMODULE_CFLAGS"
  209. GLIB_LIBS="$GMODULE_LIBS"
  210. else
  211. MCLIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  212. fi
  213. AC_DEFINE(HAVE_TEXTMODE_X11_SUPPORT, 1,
  214. [Define to enable getting events from X Window System])
  215. textmode_x11_support="yes"
  216. fi
  217. dnl
  218. dnl Try to find static libraries for glib and gmodule.
  219. dnl
  220. if test x$with_glib_static = xyes; then
  221. new_GLIB_LIBS=
  222. for i in $GLIB_LIBS; do
  223. case x$i in
  224. x-lglib*)
  225. lib=glib ;;
  226. x-lgmodule*)
  227. lib=gmodule ;;
  228. *)
  229. lib=
  230. add="$i" ;;
  231. esac
  232. if test -n "$lib"; then
  233. lib1=`echo $i | sed 's/^-l//'`
  234. if test -f "$GLIB_LIBDIR/lib${lib1}.a"; then
  235. add="$GLIB_LIBDIR/lib${lib1}.a"
  236. else
  237. if test -f "$GLIB_LIBDIR/lib${lib}.a"; then
  238. add="$GLIB_LIBDIR/lib${lib}.a"
  239. else
  240. AC_MSG_ERROR([Cannot find static $lib])
  241. fi
  242. fi
  243. fi
  244. new_GLIB_LIBS="$new_GLIB_LIBS $add"
  245. done
  246. GLIB_LIBS="$new_GLIB_LIBS"
  247. fi
  248. dnl
  249. dnl Network related functions
  250. dnl
  251. AC_CHECK_LIB(nsl, t_accept)
  252. AC_CHECK_LIB(socket, socket)
  253. have_socket=no
  254. AC_CHECK_FUNCS(socket, have_socket=yes)
  255. if test $have_socket = no; then
  256. # socket is not in the default libraries. See if it's in some other.
  257. for lib in bsd socket inet; do
  258. AC_CHECK_LIB($lib, socket, [
  259. LIBS="$LIBS -l$lib"
  260. have_socket=yes
  261. AC_DEFINE(HAVE_SOCKET)
  262. break])
  263. done
  264. fi
  265. have_gethostbyname=no
  266. AC_CHECK_FUNC(gethostbyname, [have_gethostbyname=yes])
  267. if test $have_gethostbyname = no; then
  268. # gethostbyname is not in the default libraries. See if it's in some other.
  269. for lib in bsd socket inet; do
  270. AC_CHECK_LIB([$lib], [gethostbyname],
  271. [LIBS="$LIBS -l$lib"; have_gethostbyname=yes; break])
  272. done
  273. fi
  274. AC_CHECK_FUNCS(socketpair)
  275. dnl
  276. dnl Sequent wants getprocessstats
  277. dnl
  278. AC_CHECK_LIB(seq, get_process_stats, [
  279. LIBS="$LIBS -lseq"
  280. AC_DEFINE(HAVE_GET_PROCESS_STATS, 1,
  281. [Define if you have function `get_process_stats' and
  282. have to use that instead of gettimeofday])])
  283. MC_VFS_CHECKS
  284. vfs_type="normal"
  285. if test x$use_vfs = xyes; then
  286. AC_MSG_NOTICE([enabling VFS code])
  287. vfs_type="Midnight Commander Virtual File System"
  288. fi
  289. dnl
  290. dnl Check for gpm mouse support (Linux only)
  291. dnl
  292. mouse_lib="xterm only"
  293. AC_ARG_WITH(gpm-mouse,
  294. [ --with-gpm-mouse Compile with gpm mouse support (Linux only)
  295. [[yes if found]]])
  296. case $host_os in
  297. linux*)
  298. if test x$with_gpm_mouse != xno; then
  299. AC_CHECK_LIB(gpm, Gpm_Repeat,
  300. [AC_DEFINE(HAVE_LIBGPM, 1,
  301. [Define to enable gpm mouse support on Linux])
  302. mouse_lib="gpm and xterm"
  303. MCLIBS="$MCLIBS -lgpm"],
  304. [AC_MSG_WARN([libgpm is missing or older than 0.18])
  305. ])
  306. fi
  307. ;;
  308. esac
  309. dnl
  310. dnl Check nroff and the options it supports
  311. dnl
  312. AC_CHECK_PROG(HAVE_nroff, nroff, true, false)
  313. dnl Default values
  314. MANDOC=-man
  315. MAN_FLAGS=
  316. if $HAVE_nroff; then
  317. AC_MSG_CHECKING([for manual formatting macros])
  318. AC_CACHE_VAL(ac_cv_mandoc, [
  319. nroff -mandoc < /dev/null > /dev/null 2>&1
  320. if test $? = 0; then
  321. ac_cv_mandoc=-mandoc
  322. else
  323. ac_cv_mandoc=-man
  324. fi
  325. ])
  326. MANDOC=$ac_cv_mandoc
  327. AC_MSG_RESULT([$MANDOC])
  328. AC_MSG_CHECKING([for option to disable ANSI color in manuals])
  329. AC_CACHE_VAL(ac_cv_man_nocolor, [
  330. nroff -c < /dev/null > /dev/null 2>&1
  331. if test $? = 0; then
  332. ac_cv_man_nocolor=-c
  333. else
  334. ac_cv_man_nocolor=
  335. fi
  336. ])
  337. MAN_FLAGS=$ac_cv_man_nocolor
  338. AC_MSG_RESULT([${MAN_NOCOLOR-none}])
  339. AC_MSG_CHECKING([if nroff accepts -Tlatin1 or -Tascii])
  340. AC_CACHE_VAL(ac_cv_nroff_tascii, [
  341. ac_cv_nroff_tascii=
  342. nroff -Tlatin1 < /dev/null > /dev/null 2>&1 /dev/null
  343. if test $? = 0; then
  344. ac_cv_nroff_tascii=-Tlatin1
  345. else
  346. nroff -Tascii < /dev/null > /dev/null 2>&1 /dev/null
  347. if test $? = 0; then
  348. ac_cv_nroff_tascii=-Tascii
  349. fi
  350. fi
  351. ])
  352. AC_MSG_RESULT([${ac_cv_nroff_tascii-no}])
  353. MAN_FLAGS="$MAN_FLAGS $ac_cv_nroff_tascii"
  354. fi
  355. AC_SUBST(MANDOC)
  356. AC_SUBST(MAN_FLAGS)
  357. dnl
  358. dnl Check for - option to file
  359. dnl
  360. AC_CHECK_PROG(HAVE_FILECMD, file, true, false)
  361. if $HAVE_FILECMD; then
  362. AC_MSG_CHECKING([for - option to file command])
  363. AC_CACHE_VAL(ac_cv_filestdin, [[
  364. cat > conftest.c <<\EOF
  365. /* A comment */
  366. #if 0
  367. #endif
  368. void main(void)
  369. { return; }
  370. EOF
  371. cat > conftest.sed <<\EOF
  372. s/^[^:]*:[ ]*//
  373. s/[ ]*$//
  374. EOF
  375. filehyphen_1=`file conftest.c 2>/dev/null | sed -f conftest.sed`
  376. filehyphen_2=`cat conftest.c | file - 2>/dev/null | sed -f conftest.sed`
  377. if test "x$filehyphen_1" = "x$filehyphen_2"; then
  378. ac_cv_filestdin=yes
  379. else
  380. ac_cv_filestdin=no
  381. fi
  382. rm conftest.c conftest.sed
  383. ]])
  384. if test x$ac_cv_filestdin = xyes; then
  385. AC_DEFINE(FILE_STDIN, 1,
  386. [Define if the file command accepts - for stdin])
  387. fi
  388. filestdin=$ac_cv_filestdin
  389. AC_MSG_RESULT([$filestdin])
  390. dnl
  391. dnl Check for -L option to file
  392. dnl
  393. AC_MSG_CHECKING([for -L option to file command])
  394. AC_CACHE_VAL(ac_cv_filel, [
  395. file -L . > /dev/null 2>&1
  396. if test $? = 0
  397. then
  398. ac_cv_filel=yes
  399. else
  400. ac_cv_filel=no
  401. fi
  402. ])
  403. if test x$ac_cv_filel = xyes; then
  404. AC_DEFINE(FILE_L, 1, [Define if the file command accepts the -L option])
  405. fi
  406. filel=$ac_cv_filel
  407. AC_MSG_RESULT([$filel])
  408. fi
  409. AC_MSG_CHECKING([for subshell support])
  410. AC_ARG_WITH(subshell,
  411. [ --with-subshell Compile in concurrent subshell [[yes]]
  412. --with-subshell=optional Don't run concurrent shell by default [[no]]],
  413. [result=no
  414. if test x$withval = xoptional
  415. then
  416. AC_DEFINE(SUBSHELL_OPTIONAL, 1,
  417. [Define to make subshell support optional])
  418. result="optional"
  419. fi
  420. if test x$withval = xyes
  421. then
  422. result="yes"
  423. fi],
  424. [dnl Default: enable the subshell support
  425. result="yes"
  426. ])
  427. if test "x$result" != xno; then
  428. AC_DEFINE(HAVE_SUBSHELL_SUPPORT, 1,
  429. [Define to enable subshell support])
  430. fi
  431. AC_MSG_RESULT([$result])
  432. subshell="$result"
  433. dnl
  434. dnl Select the screen library. mcslang is the included S-Lang library.
  435. dnl
  436. AC_ARG_WITH(screen,
  437. [ --with-screen=LIB Compile with screen library: slang, mcslang or
  438. ncurses [[slang if found, else mcslang]]])
  439. case x$with_screen in
  440. xslang)
  441. MC_WITH_SLANG(strict)
  442. ;;
  443. xmcslang)
  444. MC_WITH_MCSLANG
  445. ;;
  446. xncurses)
  447. MC_WITH_NCURSES
  448. ;;
  449. x)
  450. MC_WITH_SLANG
  451. ;;
  452. *)
  453. AC_MSG_ERROR([Value of the screen library is incorrect])
  454. ;;
  455. esac
  456. dnl
  457. dnl Force using termcap. This option is processed in MC_WITH_MCSLANG.
  458. dnl Report an error if this option is not applicable.
  459. dnl
  460. AC_ARG_WITH(termcap,
  461. [ --with-termcap Try using termcap database [[only if no terminfo]]],
  462. [if test x$with_screen != xmcslang; then
  463. AC_MSG_ERROR([Option `--with-termcap' only works with `--with-screen=mcslang'])
  464. fi
  465. ])
  466. dnl
  467. dnl Internal editor support.
  468. dnl
  469. AC_ARG_WITH(edit,
  470. [ --with-edit Enable internal editor [[yes]]])
  471. if test x$with_edit != xno; then
  472. AC_DEFINE(USE_INTERNAL_EDIT, 1, [Define to enable internal editor])
  473. use_edit=yes
  474. edit_msg="yes"
  475. AC_MSG_NOTICE([using internal editor])
  476. else
  477. edit_msg="no"
  478. fi
  479. if test $use_vfs = yes; then
  480. AC_ARG_WITH(ext2undel,
  481. [ --with-ext2undel Compile with ext2 undelete code [[yes if found]]],
  482. [if test x$withval != xno; then
  483. if test x$withval != xyes; then
  484. LDFLAGS="$LDFLAGS -L$withval/lib"
  485. CPPFLAGS="$CPPFLAGS -I$withval/include"
  486. fi
  487. AC_EXT2_UNDEL
  488. fi],[
  489. dnl Default: detect
  490. AC_CHECK_LIB(ext2fs, ext2fs_close, [AC_EXT2_UNDEL], , [-lcom_err])
  491. ])
  492. fi
  493. dnl Check if the OS is supported by the console saver.
  494. cons_saver=""
  495. case $host_os in
  496. linux*)
  497. cons_saver=yes
  498. esac
  499. dnl
  500. dnl User visible support for charset conversion.
  501. dnl
  502. AC_ARG_ENABLE([charset],
  503. [ --enable-charset Support for charset selection and conversion [[no]]])
  504. have_charset=
  505. if test "x$enable_charset" = xyes; then
  506. if test "x$am_cv_func_iconv" != xyes; then
  507. AC_MSG_WARN([Cannot enable charset support because iconv function is missing])
  508. else
  509. AC_DEFINE(HAVE_CHARSET, 1,
  510. [Define to enable charset selection and conversion])
  511. have_charset=yes
  512. fi
  513. fi
  514. if test "$GLIBC21" != yes; then
  515. AC_DEFINE(USE_INCLUDED_REGEX, 1, [Use the regex included here])
  516. fi
  517. AC_SUBST(CFLAGS)
  518. AC_SUBST(CPPFLAGS)
  519. AC_SUBST(LDFLAGS)
  520. AC_SUBST(LIBS)
  521. dnl Libraries used only when building the mc binary
  522. AC_SUBST(MCLIBS)
  523. dnl Version for the RedHat package, without dashes
  524. RPM_VERSION=`echo $VERSION | sed 's/-//g'`
  525. AC_SUBST(RPM_VERSION)
  526. if test -n "$use_smbfs"; then
  527. AC_CONFIG_SUBDIRS([vfs/samba])
  528. fi
  529. AM_CONDITIONAL(USE_EDIT, [test -n "$use_edit"])
  530. AM_CONDITIONAL(USE_VFS, [test "x$use_vfs" = xyes])
  531. AM_CONDITIONAL(USE_VFS_NET, [test x"$use_net_code" = xtrue])
  532. AM_CONDITIONAL(USE_UNDEL_FS, [test -n "$use_undelfs"])
  533. AM_CONDITIONAL(USE_SAMBA_FS, [test -n "$use_smbfs"])
  534. AM_CONDITIONAL(USE_MCFS, [test -n "$use_mcfs"])
  535. AM_CONDITIONAL(INCLUDED_SLANG, [test "x$with_screen" = xmcslang])
  536. AM_CONDITIONAL(CHARSET, [test -n "$have_charset"])
  537. AM_CONDITIONAL(CONS_SAVER, [test -n "$cons_saver"])
  538. AH_BOTTOM([#include <extraconf.h>])
  539. AC_CONFIG_FILES([
  540. Makefile
  541. mc.spec
  542. doc/Makefile
  543. vfs/Makefile
  544. vfs/extfs/Makefile
  545. lib/Makefile
  546. src/Makefile
  547. slang/Makefile
  548. edit/Makefile
  549. syntax/Makefile
  550. m4/Makefile
  551. lib/mc.ext
  552. vfs/extfs/a
  553. vfs/extfs/apt
  554. vfs/extfs/audio
  555. vfs/extfs/deb
  556. vfs/extfs/deba
  557. vfs/extfs/debd
  558. vfs/extfs/dpkg
  559. vfs/extfs/iso9660
  560. vfs/extfs/hp48
  561. vfs/extfs/lslR
  562. vfs/extfs/mailfs
  563. vfs/extfs/patchfs
  564. vfs/extfs/rpms
  565. vfs/extfs/uar
  566. vfs/extfs/uarj
  567. vfs/extfs/uha
  568. vfs/extfs/ulha
  569. vfs/extfs/urar
  570. vfs/extfs/uzip
  571. vfs/extfs/uzoo
  572. doc/mc.1 doc/mcedit.1 doc/mcview.1 doc/mcserv.8
  573. doc/es/mc.1 doc/es/Makefile
  574. doc/hu/mc.1 doc/hu/Makefile
  575. doc/it/mc.1 doc/it/Makefile
  576. doc/pl/mc.1 doc/pl/Makefile
  577. doc/ru/mc.1 doc/ru/Makefile
  578. intl/Makefile
  579. po/Makefile.in
  580. ])
  581. AC_OUTPUT
  582. echo "
  583. Configuration:
  584. Source code location: ${srcdir}
  585. Compiler: ${CC}
  586. Compiler flags: ${CFLAGS}
  587. File system: ${vfs_type}
  588. ${vfs_flags}
  589. Screen library: ${screen_msg}
  590. Mouse support: ${mouse_lib}
  591. X11 events support: ${textmode_x11_support}
  592. With subshell support: ${subshell}
  593. Internal editor: ${edit_msg}
  594. "