From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id 8752D3858404; Tue, 11 Oct 2022 23:39:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8752D3858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665531596; bh=W/PAUqwinZN84dPmh1RDnQAkPqvMryxIRJSrPqnD/hs=; h=From:To:Subject:Date:From; b=sjlXA4wG9eve32jESS1P1hgLPSktT0WuWYCxrbeF7s4e1NtQLPbznMwDuCuP5uLDI tHT4+dOhzj6HMShqYbgXrFnOUsJa42ZXgMalkMWNPE1ajy1xyvJi58VWMSW7orHvmj lgA7eDr/JLwucQXDEOOKpkFiRnBPt7DSdJbg94dI= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb] Re: Merge configure.ac from gcc project X-Act-Checkin: binutils-gdb X-Git-Author: Alan Modra X-Git-Refname: refs/heads/master X-Git-Oldrev: 82d23ca811ab365217fdc9bda215e23adb5e4a30 X-Git-Newrev: b95bb5267e30b26d0831b6ba01d9bd25835d1046 Message-Id: <20221011233956.8752D3858404@sourceware.org> Date: Tue, 11 Oct 2022 23:39:56 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Db95bb5267e30= b26d0831b6ba01d9bd25835d1046 commit b95bb5267e30b26d0831b6ba01d9bd25835d1046 Author: Alan Modra Date: Wed Oct 12 10:06:35 2022 +1030 Re: Merge configure.ac from gcc project =20 Also copy over config.acx.m4, and regenerate. Diff: --- config/acx.m4 | 31 +++++++++++++- configure | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++-- 2 files changed, 156 insertions(+), 5 deletions(-) diff --git a/config/acx.m4 b/config/acx.m4 index 87c1b5e2932..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 enou= gh], acx_cv_cc_gcc_supports_ada, [cat >conftest.adb <conftest.d <&1 || echo fai= lure` + if test x"$errors" =3D x && test -f conftest.$ac_objext; then + acx_cv_d_compiler_works=3Dyes + fi + rm -f conftest.* +fi]) +if test "x$GDC" !=3D xno && test x$acx_cv_d_compiler_works !=3D xno; then + have_gdc=3Dyes +else + have_gdc=3Dno +fi +]) + dnl 'make compare' can be significantly faster, if cmp itself can dnl skip bytes instead of using tail. The test being performed is dnl "if cmp --ignore-initial=3D2 t1 t2 && ! cmp --ignore-initial=3D1 t1 t2" diff --git a/configure b/configure index d7d97700563..4d328b735a3 100755 --- a/configure +++ b/configure @@ -622,7 +622,6 @@ CC_FOR_TARGET RANLIB_PLUGIN_OPTION AR_PLUGIN_OPTION GDCFLAGS -GDC READELF OTOOL OBJDUMP @@ -709,6 +708,7 @@ PGO_BUILD_GEN_CFLAGS HAVE_CXX11_FOR_BUILD HAVE_CXX11 do_compare +GDC GNATMAKE GNATBIND ac_ct_CXX @@ -5664,12 +5664,16 @@ else GNATMAKE=3D"$ac_cv_prog_GNATMAKE" fi =20 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver = understands Ada" >&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 <&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_GDC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$GDC"; then + ac_cv_prog_GDC=3D"$GDC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_GDC=3D"${ac_tool_prefix}gdc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS + +fi +fi +GDC=3D$ac_cv_prog_GDC +if test -n "$GDC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 +$as_echo "$GDC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_GDC"; then + ac_ct_GDC=3D$GDC + # Extract the first word of "gdc", so it can be a program name with args. +set dummy gdc; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_GDC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_GDC"; then + ac_cv_prog_ac_ct_GDC=3D"$ac_ct_GDC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_GDC=3D"gdc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS + +fi +fi +ac_ct_GDC=3D$ac_cv_prog_ac_ct_GDC +if test -n "$ac_ct_GDC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 +$as_echo "$ac_ct_GDC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_GDC" =3D x; then + GDC=3D"no" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not pr= efixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triple= t" >&2;} +ac_tool_warned=3Dyes ;; +esac + GDC=3D$ac_ct_GDC + fi +else + GDC=3D"$ac_cv_prog_GDC" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler w= orks" >&5 +$as_echo_n "checking whether the D compiler works... " >&6; } +if ${acx_cv_d_compiler_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.d <&1 || echo failure` + if test x"$errors" =3D x && test -f conftest.$ac_objext; then + acx_cv_d_compiler_works=3Dyes + fi + rm -f conftest.* +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works"= >&5 +$as_echo "$acx_cv_d_compiler_works" >&6; } +if test "x$GDC" !=3D xno && test x$acx_cv_d_compiler_works !=3D xno; then + have_gdc=3Dyes +else + have_gdc=3Dno +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrap= ped objects" >&5 $as_echo_n "checking how to compare bootstrapped objects... " >&6; } if ${gcc_cv_prog_cmp_skip+:} false; then :