mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
0eae2cb8dc
Macros get from other projects keep their original names: gl_FSTYPENAME, AX_PATH_LIB_PCRE, etc. Macros initially writtem for MC have original names with prefix mc_: mc_VERSION, mc_CHECK_GLIB, etc Macros get from other projects and modified for MC keep their original names with prefix mc_: mc_cu_PREREQ_STAT_PROG, mc_AC_GET_FS_INFO. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
34 lines
1001 B
Plaintext
34 lines
1001 B
Plaintext
dnl
|
|
dnl Subshell support.
|
|
dnl
|
|
AC_DEFUN([mc_SUBSHELL], [
|
|
|
|
AC_MSG_CHECKING([for subshell support])
|
|
AC_ARG_WITH(subshell,
|
|
[ --with-subshell Compile in concurrent subshell @<:@yes@:>@
|
|
--with-subshell=optional Don't run concurrent shell by default @<:@no@:>@],
|
|
[
|
|
result=no
|
|
if test x$withval = xoptional; then
|
|
AC_DEFINE(SUBSHELL_OPTIONAL, 1, [Define to make subshell support optional])
|
|
result="optional"
|
|
fi
|
|
if test x$withval = xyes; then
|
|
result="yes"
|
|
fi
|
|
],
|
|
[
|
|
dnl Default: enable the subshell support
|
|
result="yes"
|
|
])
|
|
|
|
if test "x$result" != xno; then
|
|
AC_DEFINE(ENABLE_SUBSHELL, 1, [Define to enable subshell support])
|
|
fi
|
|
|
|
AC_MSG_RESULT([$result])
|
|
subshell="$result"
|
|
|
|
AM_CONDITIONAL(ENABLE_SUBSHELL, [test "x$result" != xno])
|
|
])
|