diff options
-rw-r--r-- | aclocal/path-ksh.m4 | 14 | ||||
-rw-r--r-- | aclocal/path-perl.m4 | 12 |
2 files changed, 26 insertions, 0 deletions
diff --git a/aclocal/path-ksh.m4 b/aclocal/path-ksh.m4 new file mode 100644 index 0000000000..881dd0c9ec --- /dev/null +++ b/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 +]) diff --git a/aclocal/path-perl.m4 b/aclocal/path-perl.m4 new file mode 100644 index 0000000000..e0e7dbb1f0 --- /dev/null +++ b/aclocal/path-perl.m4 @@ -0,0 +1,12 @@ +dnl $Id$ + +AC_DEFUN(RTEMS_PATH_PERL, +[ +AC_PATH_PROG(PERL,perl) +if test -z "$PERL" ; then +AC_MSG_WARN( +[***] +[ perl was not found] +[ Note: Some tools will not be built.]) +fi +]) |