mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 01:54:24 +03:00
m4.include/mc-subshell.m4: minor refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
0a26014ca4
commit
5fc84f2cfe
@ -8,20 +8,25 @@ AC_DEFUN([mc_SUBSHELL], [
|
|||||||
[ --with-subshell Compile in concurrent subshell @<:@yes@:>@
|
[ --with-subshell Compile in concurrent subshell @<:@yes@:>@
|
||||||
--with-subshell=optional Don't run concurrent shell by default @<:@no@:>@],
|
--with-subshell=optional Don't run concurrent shell by default @<:@no@:>@],
|
||||||
[
|
[
|
||||||
result=no
|
case "x$withval" in
|
||||||
if test x$withval = xoptional; then
|
xyes)
|
||||||
AC_DEFINE(SUBSHELL_OPTIONAL, 1, [Define to make subshell support optional])
|
result="yes"
|
||||||
result="optional"
|
;;
|
||||||
fi
|
xoptional)
|
||||||
if test x$withval = xyes; then
|
result="optional"
|
||||||
result="yes"
|
;;
|
||||||
fi
|
*)
|
||||||
|
result="no"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
dnl Default: enable the subshell support
|
dnl Default: enable the subshell support
|
||||||
result="yes"
|
result="yes"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([$result])
|
||||||
|
|
||||||
if test "x$result" != xno; then
|
if test "x$result" != xno; then
|
||||||
AC_DEFINE(ENABLE_SUBSHELL, 1, [Define to enable subshell support])
|
AC_DEFINE(ENABLE_SUBSHELL, 1, [Define to enable subshell support])
|
||||||
|
|
||||||
@ -33,9 +38,12 @@ AC_DEFUN([mc_SUBSHELL], [
|
|||||||
LIBS="$LIBS -lutil"]
|
LIBS="$LIBS -lutil"]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if test "x$result" = xoptional; then
|
||||||
|
AC_DEFINE(SUBSHELL_OPTIONAL, 1, [Define to make subshell support optional])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_RESULT([$result])
|
|
||||||
subshell="$result"
|
subshell="$result"
|
||||||
|
|
||||||
AM_CONDITIONAL(ENABLE_SUBSHELL, [test "x$result" != xno])
|
AM_CONDITIONAL(ENABLE_SUBSHELL, [test "x$result" != xno])
|
||||||
|
Loading…
Reference in New Issue
Block a user