diff options
Diffstat (limited to 'm4/fp_prog_sh.m4')
-rw-r--r-- | m4/fp_prog_sh.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/fp_prog_sh.m4 b/m4/fp_prog_sh.m4 new file mode 100644 index 0000000000..f7c2c49fe8 --- /dev/null +++ b/m4/fp_prog_sh.m4 @@ -0,0 +1,15 @@ +# FP_PROG_SH +# ------------ +# Find a functional Bourne shell +AC_DEFUN([FP_PROG_SH], +[ + AC_REQUIRE([FPTOOLS_SET_PLATFORM_VARS]) dnl for $windows + AC_ARG_VAR(SH,[Use as the full path to a Bourne shell. [default=autodetect]]) + AC_PATH_PROGS([SH], [sh bash]) + if test "$windows" = "YES"; then + dnl use mixed (-m) mode to get C:/mingw64/... with forward slashes. + dnl windows (-w) mode will give us C:\... and mess with escaping. + SH=`cygpath -m "$SH"` + fi + AC_SUBST([SH])[]dnl +])# FP_PROG_SH |