summaryrefslogtreecommitdiffstats
path: root/testsuites/aclocal/path-ksh.m4
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/aclocal/path-ksh.m4')
-rw-r--r--testsuites/aclocal/path-ksh.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuites/aclocal/path-ksh.m4 b/testsuites/aclocal/path-ksh.m4
new file mode 100644
index 0000000000..881dd0c9ec
--- /dev/null
+++ b/testsuites/aclocal/path-ksh.m4
@@ -0,0 +1,14 @@
+dnl $Id$
+
+AC_DEFUN(RTEMS_PATH_KSH,
+[
+dnl NOTE: prefer bash over ksh over sh
+AC_PATH_PROGS(KSH,bash ksh sh)
+if test -z "$KSH"; then
+dnl NOTE: This cannot happen -- /bin/sh must always exist
+AC_MSG_ERROR(
+[***]
+[ Cannot determine a usable shell bash/ksh/sh]
+[ Please contact your system administrator] );
+fi
+])