summaryrefslogtreecommitdiffstats
path: root/c/src/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/acinclude.m4')
-rw-r--r--c/src/acinclude.m415
1 files changed, 9 insertions, 6 deletions
diff --git a/c/src/acinclude.m4 b/c/src/acinclude.m4
index c99d427695..891da200fc 100644
--- a/c/src/acinclude.m4
+++ b/c/src/acinclude.m4
@@ -5,13 +5,8 @@
# Note: Consider this file a temporary band-aid until a better, more general
# subdirectory handling solution is introduced to RTEMS.
-AC_DEFUN([RTEMS_SUBCONFIGURE_ARGS_QUOTE],
+AC_DEFUN([_RTEMS_CONFIG_SUBDIR],
[
- RTEMS_CONFIGURE_ARGS_QUOTE([ac_sub_configure_args])
-])
-
-AC_DEFUN([RTEMS_CONFIG_SUBDIR],
-[AC_REQUIRE([RTEMS_SUBCONFIGURE_ARGS_QUOTE])
if test "$no_recursion" != yes; then
ac_sub_sourcedir=$2
ac_sub_builddir=$1
@@ -81,3 +76,11 @@ if test "$no_recursion" != yes; then
done
fi
])
+
+## RTEMS_BSP_CONFIG_SUBDIR(builddir,srcdir,configargs,condition)
+AC_DEFUN([RTEMS_BSP_CONFIG_SUBDIR],[
+m4_expand_once([RTEMS_CONFIGURE_ARGS_QUOTE([ac_sub_configure_args])])
+AS_IF([$4],[BSP_SUBDIRS="$BSP_SUBDIRS $1"])
+AC_CONFIG_COMMANDS_POST([
+AS_IF([$4],[_RTEMS_CONFIG_SUBDIR([$1],[$2],[$3])])])
+])