OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [aclocal/] [rtems-top.m4] - Blame information for rev 507

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
dnl $Id: rtems-top.m4,v 1.2 2001-09-27 11:59:11 chris Exp $
2
 
3
dnl
4
dnl RTEMS_TOP($1)
5
dnl
6
dnl $1 .. relative path from this configure.in to the toplevel configure.in
7
dnl
8
AC_DEFUN(RTEMS_TOP,
9
[dnl
10
AC_BEFORE([$0], [AC_CONFIG_AUX_DIR])dnl
11
AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
12
 
13
AC_ARG_WITH(target-subdir,
14
[  --with-target-subdir=DIR],
15
TARGET_SUBDIR="$withval",
16
TARGET_SUBDIR=".")
17
 
18
RTEMS_TOPdir="$1";
19
AC_SUBST(RTEMS_TOPdir)
20
 
21
dnl Determine RTEMS Version string from the VERSION file
22
dnl Hopefully, Joel never changes its format ;-
23
AC_MSG_CHECKING([for RTEMS Version])
24
if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
25
changequote(,)dnl
26
RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
27
sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
28
changequote([,])dnl
29
else
30
AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION)
31
fi
32
if test -z "$RTEMS_VERSION"; then
33
AC_MSG_ERROR(Unable to determine version)
34
fi
35
AC_MSG_RESULT($RTEMS_VERSION)
36
])dnl

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.