summaryrefslogtreecommitdiff
path: root/m4/fp_prog_sh.m4
blob: f7c2c49fe87eb45c026d2f1c7bfdcb43bad0e547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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