mc-subshell.m4 1001 B

123456789101112131415161718192021222324252627282930313233
  1. dnl
  2. dnl Subshell support.
  3. dnl
  4. AC_DEFUN([MC_SUBSHELL], [
  5. AC_MSG_CHECKING([for subshell support])
  6. AC_ARG_WITH(subshell,
  7. [ --with-subshell Compile in concurrent subshell @<:@yes@:>@
  8. --with-subshell=optional Don't run concurrent shell by default @<:@no@:>@],
  9. [
  10. result=no
  11. if test x$withval = xoptional; then
  12. AC_DEFINE(SUBSHELL_OPTIONAL, 1, [Define to make subshell support optional])
  13. result="optional"
  14. fi
  15. if test x$withval = xyes; then
  16. result="yes"
  17. fi
  18. ],
  19. [
  20. dnl Default: enable the subshell support
  21. result="yes"
  22. ])
  23. if test "x$result" != xno; then
  24. AC_DEFINE(ENABLE_SUBSHELL, 1, [Define to enable subshell support])
  25. fi
  26. AC_MSG_RESULT([$result])
  27. subshell="$result"
  28. AM_CONDITIONAL(ENABLE_SUBSHELL, [test "x$result" != xno])
  29. ])