diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-02-19 19:55:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-02-19 19:55:40 +0000 |
commit | 89376b7141edb6f927fb940c27391cda6e67c785 (patch) | |
tree | 57dd01fd9328b879289493ba848ae5c34c607b91 /m4/rtems-checktop.m4 | |
download | libbsdport-89376b7141edb6f927fb940c27391cda6e67c785.tar.bz2 |
Initial import.initial
Diffstat (limited to 'm4/rtems-checktop.m4')
-rw-r--r-- | m4/rtems-checktop.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/m4/rtems-checktop.m4 b/m4/rtems-checktop.m4 new file mode 100644 index 0000000..6a8155b --- /dev/null +++ b/m4/rtems-checktop.m4 @@ -0,0 +1,23 @@ +# Verify that the --with-rtems-top option has been given +# and that the directory it specifies has a subdirectory +# ${with_rtems_top}/${host_cpu}-${host_os} +# +# Throw an error if this test fails. +# +# TILLAC_RTEMS_CHECK_TOP +# +AC_DEFUN([TILLAC_RTEMS_CHECK_TOP], + [AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([TILLAC_RTEMS_OPTIONS]) + if TILLAC_RTEMS_OS_IS_RTEMS ; then + if test ! "${with_rtems_top+set}" = "set" ; then + AC_MSG_ERROR([No RTEMS topdir given; use --with-rtems-top option]) + fi + AC_MSG_CHECKING([Checking RTEMS installation topdir]) + if test ! -d $with_rtems_top/${host_cpu}-${host_os}/ ; then + AC_MSG_ERROR([RTEMS topdir $with_rtems_top/${host_cpu}-${host_os}/ not found]) + fi + AC_MSG_RESULT([OK]) + fi + ]dnl +) |