diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-16 22:21:22 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-16 22:21:22 +0000 |
commit | 216de822cadb580bc39deedc108df89e8d243804 (patch) | |
tree | e26784641b35acc07eefb816694dfc93cc2132f1 /config | |
parent | ea8350025389feb7c611aa57818231160b0f8e33 (diff) | |
download | gcc-216de822cadb580bc39deedc108df89e8d243804.tar.gz |
* configure: Regenerate.
config:
* acx.m4 (ACX_PROG_GNAT): Check if ${CC} produces object file for
Ada compilation.
Fix acx_cv_cc_gcc_supports_ada spelling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80771 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 6 | ||||
-rw-r--r-- | config/acx.m4 | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index 7a970b70993..fe845783b5c 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,9 @@ +2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + * acx.m4 (ACX_PROG_GNAT): Check if ${CC} produces object file for + Ada compilation. + Fix acx_cv_cc_gcc_supports_ada spelling. + 2004-03-08 Paolo Bonzini <bonzini@gnu.org> PR ada/14131 diff --git a/config/acx.m4 b/config/acx.m4 index ab7f98a216c..9b40d4f0771 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -177,14 +177,17 @@ acx_cv_cc_gcc_supports_ada=no # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. # Therefore we must check for the error message as well as an # unsuccessful exit. +# Other compilers, like HP Tru64 UNIX cc, exit successfully when +# given a .adb file, but produce no object file. So we must check +# if an object file was really produced to guard against this. errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` -if test x"$errors" = x; then +if test x"$errors" = x && test -f conftest.$ac_objext; then acx_cv_cc_gcc_supports_ada=yes break fi rm -f conftest.*]) -if test x$GNATBIND != xno && test x$acx_cv_gcc_supports_ada != xno; then +if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then have_gnat=yes else have_gnat=no |