From 97b4bc1bbc0258d0a0d40498140563483ecde60e Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 22 Aug 2002 14:00:56 +0000 Subject: 2002-08-22 Ralf Corsepius * aclocal/prog-gnat.m4: New. * configure.ac: Add ada subdir handling. --- cpukit/aclocal/prog-gnat.m4 | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 cpukit/aclocal/prog-gnat.m4 (limited to 'cpukit/aclocal') diff --git a/cpukit/aclocal/prog-gnat.m4 b/cpukit/aclocal/prog-gnat.m4 new file mode 100644 index 0000000000..6e169a8dc7 --- /dev/null +++ b/cpukit/aclocal/prog-gnat.m4 @@ -0,0 +1,45 @@ +## $Id$ +## +## Partially borrowed from gcc-3.2 +## +## WARNING: All the stuff below is pretty immature. + +AC_DEFUN([RTEMS_PROG_GNAT], +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX]) +AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET]) + +AC_CHECK_TOOL([GNATMAKE],[gnatmake],[]) +AC_CACHE_CHECK([for compiler driver that understands Ada], + [rtems_cv_prog_CCADA], +[cat >conftest.adb <&1 || echo failure` + AS_IF([test -z "$errors"], + [rtems_cv_prog_CCADA=$cand + break]) +done +rm -f conftest.*]) +AC_SUBST([CCADA],[$rtems_cv_prog_CCADA]) + +AS_IF([test -n "$GNATMAKE" && test -n "$CCADA"], + [HAVE_GNAT=yes], + [HAVE_GNAT=no]) +]) -- cgit v1.2.3