4.104.114.84.95
Last change
on this file since 3207f0a was
3207f0a,
checked in by Joel Sherrill <joel.sherrill@…>, on 06/16/00 at 13:05:19
|
Patch from James Housley <jim@…> to address FreeBSD 4.x
build issues.
|
-
Property mode set to
100644
|
File size:
927 bytes
|
Rev | Line | |
---|
[9ec96478] | 1 | dnl $Id$ |
---|
| 2 | |
---|
[9b8baa1] | 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 |
---|
[9ec96478] | 8 | AC_DEFUN(RTEMS_TOP, |
---|
| 9 | [dnl |
---|
[3207f0a] | 10 | AC_CHECK_PROGS(MAKE, gmake make) |
---|
[b62a92c] | 11 | AC_BEFORE([$0], [AC_CONFIG_AUX_DIR])dnl |
---|
| 12 | AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl |
---|
| 13 | |
---|
[8cdb582] | 14 | AC_ARG_WITH(target-subdir, |
---|
| 15 | [ --with-target-subdir=DIR], |
---|
| 16 | TARGET_SUBDIR="$withval", |
---|
| 17 | TARGET_SUBDIR=".") |
---|
| 18 | |
---|
[9ec96478] | 19 | RTEMS_TOPdir="$1"; |
---|
| 20 | AC_SUBST(RTEMS_TOPdir) |
---|
| 21 | |
---|
[9b8baa1] | 22 | dnl Determine RTEMS Version string from the VERSION file |
---|
| 23 | dnl Hopefully, Joel never changes its format ;- |
---|
| 24 | AC_MSG_CHECKING([for RTEMS Version]) |
---|
| 25 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
| 26 | changequote(,)dnl |
---|
| 27 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
| 28 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
| 29 | changequote([,])dnl |
---|
| 30 | else |
---|
| 31 | AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION) |
---|
| 32 | fi |
---|
| 33 | if test -z "$RTEMS_VERSION"; then |
---|
| 34 | AC_MSG_ERROR(Unable to determine version) |
---|
| 35 | fi |
---|
| 36 | AC_MSG_RESULT($RTEMS_VERSION) |
---|
[9ec96478] | 37 | ])dnl |
---|
Note: See
TracBrowser
for help on using the repository browser.