summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-10 00:25:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-10 00:25:36 +0000
commit949b61905191188eb1dcf77260404f690c3e6cbe (patch)
tree696498c08f90fcdc9ba25f5c896eeaa62bfd982e /c/src/lib/libbsp/sh
parentbfba54ed1c5be001e6aa104b83c2df05c424888c (diff)
downloadrtems-949b61905191188eb1dcf77260404f690c3e6cbe.tar.bz2
2001-10-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* acinclude.m4: New file. * configure.in: Use RTEMS_BSP_SUBDIR.
Diffstat (limited to 'c/src/lib/libbsp/sh')
-rw-r--r--c/src/lib/libbsp/sh/acinclude.m415
-rw-r--r--c/src/lib/libbsp/sh/configure.in3
2 files changed, 16 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/sh/acinclude.m4 b/c/src/lib/libbsp/sh/acinclude.m4
new file mode 100644
index 0000000000..f91ee96b92
--- /dev/null
+++ b/c/src/lib/libbsp/sh/acinclude.m4
@@ -0,0 +1,15 @@
+# RTEMS_CHECK_BSPDIR(RTEMS_BSP)
+AC_DEFUN([RTEMS_CHECK_BSPDIR],
+[
+ RTEMS_BSP_ALIAS(ifelse([$1],,[${RTEMS_BSP}],[$1]),bspdir)
+ case "$bspdir" in
+ gensh1 )
+ AC_CONFIG_SUBDIRS([gensh1]);;
+ gensh2 )
+ AC_CONFIG_SUBDIRS([gensh2]);;
+ shsim )
+ AC_CONFIG_SUBDIRS([shsim]);;
+ *)
+ AC_MSG_ERROR([Invalid BSP]);;
+ esac
+])
diff --git a/c/src/lib/libbsp/sh/configure.in b/c/src/lib/libbsp/sh/configure.in
index df5c41355e..d65eef6600 100644
--- a/c/src/lib/libbsp/sh/configure.in
+++ b/c/src/lib/libbsp/sh/configure.in
@@ -16,8 +16,7 @@ RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
RTEMS_PROJECT_ROOT
-RTEMS_BSP_ALIAS(${RTEMS_BSP},bspdir)
-AC_CONFIG_SUBDIRS($bspdir)
+RTEMS_CHECK_BSPDIR([$RTEMS_BSP])
# Explicitly list all Makefiles here
AC_OUTPUT(