4.104.114.84.95
Last change
on this file since 314a962 was
6c15108,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/28/02 at 17:42:44
|
2002-08-28 Ralf Corsepius <corsepiu@…>
- aclocal/prog-gnat.m4: New.
|
-
Property mode set to
100644
|
File size:
653 bytes
|
Rev | Line | |
---|
[6c15108] | 1 | ## $Id$ |
---|
| 2 | ## |
---|
| 3 | ## WARNING: All the stuff below is pretty immature. |
---|
| 4 | |
---|
| 5 | AC_DEFUN([RTEMS_PROG_GNAT], |
---|
| 6 | [AC_REQUIRE([AC_CHECK_TOOL_PREFIX]) |
---|
| 7 | AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET]) |
---|
| 8 | |
---|
| 9 | AC_ARG_VAR([GNATMAKE],[GNATMAKE compiler command]) |
---|
| 10 | AC_ARG_VAR([ADAFLAGS],[ADA compiler flags]) |
---|
| 11 | |
---|
| 12 | RTEMS_CHECK_TOOL([GNATMAKE],[gnatmake],[]) |
---|
| 13 | AS_IF([test -z "$GNATMAKE"],[AC_MSG_ERROR([No GNATMAKE found])]) |
---|
| 14 | |
---|
| 15 | AC_MSG_CHECKING([whether $GNATMAKE works]) |
---|
| 16 | rm -f conftest.* |
---|
| 17 | cat >conftest.adb <<EOF |
---|
| 18 | procedure conftest is begin null; end conftest; |
---|
| 19 | EOF |
---|
| 20 | |
---|
| 21 | AS_IF([$GNATMAKE -c conftest.adb 1>>config.log 2>&1], |
---|
| 22 | [HAVE_GNAT=yes], |
---|
| 23 | [HAVE_GNAT=no]) |
---|
| 24 | AC_MSG_RESULT([$HAVE_GNAT]) |
---|
| 25 | rm -f conftest.* |
---|
| 26 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.