From: Roger Sayle Date: Mon, 1 Aug 2022 10:36:23 +0000 (+0100) Subject: Update configure to check for a recent gnat Ada compiler. X-Git-Tag: basepoints/gcc-14~5292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71f068a9b3332a2179dfc807cf9138f691d77461;p=thirdparty%2Fgcc.git Update configure to check for a recent gnat Ada compiler. GCC fails to bootstrap when configured with --enable-languages=all on machines that have older versions of GNAT installed as the system Ada compiler. In configure, it's not sufficient to check whether gnat is available, but whether a sufficiently recent version of GNAT is installed. This patch tweaks config/acx.m4 so that conftest.adb also contains a reference to System.CRTL.int64 as required by the current version of gcc/ada/osint.adb. This fixes the build when the system Ada is GNAT v4.8.5 (on Redhat 7) by disabling ada, but continues to work fine when the system Ada is GNAT v11.3.1. 2022-08-01 Roger Sayle Arnaud Charlet config/ChangeLog * acx.m4 (AC_PROG_GNAT): Update conftest.adb to include features required of the host gnat compiler. ChangeLog * configure: Regenerate. --- diff --git a/config/acx.m4 b/config/acx.m4 index b86c4f9e51d..7efe98aaf96 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -393,9 +393,13 @@ AC_DEFUN([ACX_PROG_GNAT], AC_REQUIRE([AC_PROG_CC]) AC_CHECK_TOOL(GNATBIND, gnatbind, no) AC_CHECK_TOOL(GNATMAKE, gnatmake, no) -AC_CACHE_CHECK([whether compiler driver understands Ada], +AC_CACHE_CHECK([whether compiler driver understands Ada and is recent enough], acx_cv_cc_gcc_supports_ada, [cat >conftest.adb <&5 -$as_echo_n "checking whether compiler driver understands Ada... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5 +$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; } if ${acx_cv_cc_gcc_supports_ada+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.adb <