summaryrefslogtreecommitdiffstats
path: root/aclocal.m4
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-11-18 22:28:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-11-18 22:28:13 +0000
commitb5ddb7486e479c57adad5adffab06241eec1ed1c (patch)
treeb46303df72239dfa4b20330a57c07a0a3255dc78 /aclocal.m4
parentd24ceb38f71e2b8a0b0822815de35cc0658c2d4e (diff)
downloadrtems-b5ddb7486e479c57adad5adffab06241eec1ed1c.tar.bz2
Submitted by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m441
1 files changed, 41 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
new file mode 100644
index 0000000000..acf6d19b62
--- /dev/null
+++ b/aclocal.m4
@@ -0,0 +1,41 @@
+dnl some macros for rtems host configuration checks
+dnl
+dnl Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de), 97/11/09
+dnl
+
+dnl macro to detect mkdir
+AC_DEFUN(RTEMS_PATH_MKDIR,
+[AC_PATH_PROG(MKDIR,mkdir)
+])
+
+dnl macro to check for mkdir -p
+AC_DEFUN(RTEMS_PROG_MKDIR_P,
+[
+AC_REQUIRE([RTEMS_PATH_MKDIR])
+AC_MSG_CHECKING([for working $MKDIR -p])
+AC_CACHE_VAL(rtems_cv_prog_mkdir_p,
+[rm -rf conftestdata
+if $MKDIR -p conftestdata 2>/dev/null ;then
+rtems_cv_prog_MKDIR_P="yes"
+else
+rtems_cv_prog_MKDIR_P="no"
+fi])dnl
+rm -rf conftestdata
+AC_MSG_RESULT($rtems_cv_prog_MKDIR_P)
+])
+
+dnl macro to check for mkdir -m 0755
+AC_DEFUN(RTEMS_PROG_MKDIR_M,
+[
+AC_REQUIRE([RTEMS_PATH_MKDIR])
+AC_MSG_CHECKING([for working $MKDIR -m 0755])
+AC_CACHE_VAL(rtems_cv_prog_MKDIR_P,
+[rm -rf conftestdata
+if $MKDIR -m 0775 conftestdata 2>/dev/null; then
+rtems_cv_prog_MKDIR_M="yes"
+else
+rtems_cv_prog_MKDIR_M="no"
+fi])dnl
+rm -rf conftestdata
+AC_MSG_RESULT($rtems_cv_prog_MKDIR_M)
+])