Ticket #55: savannah: tab completion vs. spaces and escaping
[midnight-commander.git] / m4.include / mc-subshell.m4
blob328607b7b08d106770abba7f79b98e87b0960a9b
1 dnl
2 dnl Subshell support.
3 dnl
4 AC_DEFUN([MC_SUBSHELL], [
6     AC_MSG_CHECKING([for subshell support])
7     AC_ARG_WITH(subshell,
8             [  --with-subshell          Compile in concurrent subshell @<:@yes@:>@
9   --with-subshell=optional Don't run concurrent shell by default @<:@no@:>@],
10             [
11                 result=no
12                 if test x$withval = xoptional; then
13                     AC_DEFINE(SUBSHELL_OPTIONAL, 1,  [Define to make subshell support optional])
14                     result="optional"
15                 fi
16                 if test x$withval = xyes; then
17                     result="yes"
18                 fi
19             ],
20             [
21                 dnl Default: enable the subshell support
22                 result="yes"
23             ])
25     if test "x$result" != xno; then
26         AC_DEFINE(ENABLE_SUBSHELL, 1, [Define to enable subshell support])
27     fi
29     AC_MSG_RESULT([$result])
30     subshell="$result"
32     AM_CONDITIONAL(ENABLE_SUBSHELL, [test "x$result" != xno])