# version 1.13 dnl NDIM_CHECK_SH_FUNCTIONS([ACTION-IF-SUPPORTED], dnl [ACTION-IF-NOT-SUPPORTED)dnl m4_pattern_forbid([NDIM_CHECK_SH_FUNCTIONS])dnl AC_DEFUN([NDIM_CHECK_SH_FUNCTIONS],[dnl NDIM_CHECK_SH_COMMAND_SUBSTITUTION([], [dnl AC_MSG_ERROR([Sorry, POSIX sh with \$() required.])dnl ])dnl AS_IF([test "x$ndim_sh_functions" = "x"], [dnl AC_MSG_CHECKING([whether sh supports POSIX sh functions]) ndim_sh_functions=no test "x$(moo() { echo "meh"; }; moo)" = "xmeh" && ndim_sh_functions=yes AC_MSG_RESULT([$ndim_sh_functions])])dnl m4_ifval([$1], [AS_IF([test "x$ndim_sh_functions" = "xyes"], [$1])])dnl m4_ifval([$2], [AS_IF([test "x$ndim_sh_functions" = "xno" ], [$2])])dnl ])dnl dnl dnl Local Variables: dnl mode: autoconf dnl End: