From patchwork Mon Dec 21 14:28:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 1419054 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Be2a1MHT; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4D01zX6QNvz9sVj for ; Tue, 22 Dec 2020 01:28:22 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2CB9E386EC5E; Mon, 21 Dec 2020 14:28:19 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by sourceware.org (Postfix) with ESMTPS id 5633B3857815 for ; Mon, 21 Dec 2020 14:28:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5633B3857815 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nathanmsidwell@gmail.com Received: by mail-qk1-x730.google.com with SMTP id d14so8822965qkc.13 for ; Mon, 21 Dec 2020 06:28:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=vZ0tRHq296/6VEyCJZHKAjciy9ilUsnVKqSrC4M0srg=; b=Be2a1MHT4aEztmiM3MmozPbvmKAkB0roZHCXSQ4jpcJO2CySfFkuz0497a54ndVyy8 b37PVJuQQVlVqV3fgECaFiL5dWa7fNnbK4L+vkHkspC8Q7tfMv3XDVj1x+TQQOgUKcbD T61vI9Yw4YqU7GKc/miNjh/1pFmep4TdsSDyBiooycmTgS3Fs/Mu1MlIXdViVcMotPcw ULxCoiM3b+VFunkz0o7QVMqOr3euEqAOYqZW/EnEUIbfk0gsVC+rl0YH4kbHjeKlpsa2 mHR0W7JMkJ3OOcaFLiTlFdN+zxJeN7TTnqMkQBWuFlTvL7VZl1NGHA+Ia4haZl1htjhD eMOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-language; bh=vZ0tRHq296/6VEyCJZHKAjciy9ilUsnVKqSrC4M0srg=; b=sTYO89+uvxc14klcaZUSV0+ej80UHSSfO47NrO2aHaTFqBexxBHYS3cP2BkHrWm5E4 B3DiyXbnIm8YqCRN6WYe+eA0/oyki/773Ys5YWBjJzKw6HcLylqxjRwGcCMei8hPLdP4 gyzlezIkSJB4g/SiXZjhDib6Lia6bD98n7jdDK+qkxFJRJ1Gi1EF7EvdQR8DFGFDWJtN 7ilLySgMg4KcHRM7cU/jBQr8rqyZGOlp0MRVMXlkWmCOlGno30I/jokmpdwBbgjjoba4 j9EwD2cf9DYp1oWEQJfwsBXdDmGFCAvyF2+51RPVNuDjyCTZ/UExogG1FxS3gSwwQSRl eYJA== X-Gm-Message-State: AOAM531QDWuC+hV+rN1+Q4V1Co8fDE4fXq/KcbMTjUj2YGL6aHDIMOGn V167aFVak1QjsQBQMFvVyuM= X-Google-Smtp-Source: ABdhPJzVLd6UreGu8t+RHrYMQtM7Vs6nAWfAJdJGgzvULlYsHQL37E43OnQz0YalXufaAyvNxdYN0A== X-Received: by 2002:a05:620a:2017:: with SMTP id c23mr17826298qka.114.1608560893823; Mon, 21 Dec 2020 06:28:13 -0800 (PST) Received: from ?IPv6:2620:10d:c0a8:1102:a009:4dd8:8bc:293? ([2620:10d:c091:480::1:35c6]) by smtp.googlemail.com with ESMTPSA id j30sm11108646qtl.43.2020.12.21.06.28.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Dec 2020 06:28:12 -0800 (PST) To: GCC Patches From: Nathan Sidwell Subject: libcody: Add ranlib Message-ID: <174cc36e-513f-fdf4-fe1f-372cd0940180@acm.org> Date: Mon, 21 Dec 2020 09:28:11 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Language: en-US X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Add RANLIB. libcody/ * Makefile.in (RANLIB): New var. * Makesub.in (libcody.a): Apply RANLIB. * configure.in: Call AC_PROG_RANLIB. * configure: Rebuilt. diff --git c/libcody/Makefile.in w/libcody/Makefile.in index 28ed3a22299..a0722f9a385 100644 --- c/libcody/Makefile.in +++ w/libcody/Makefile.in @@ -48,6 +48,7 @@ SHELL := $(shell which zsh 2>/dev/null >/dev/null && echo zsh \ # We have to place the -I paths last, so that building will see -I paths to us CXX := $(filter-out -I%,@CXX@) AR := @AR@ +RANLIB := @RANLIB@ INSTALL := $(srcdir)/build-aux/install-sh # C++ compiler options diff --git c/libcody/Makesub.in w/libcody/Makesub.in index 0bfe6f6c1b3..6ae49d6c793 100644 --- c/libcody/Makesub.in +++ w/libcody/Makesub.in @@ -19,6 +19,7 @@ all:: libcody.a libcody.a: $(LIBCODY.O) $(AR) -cr $@ $^ + $(RANLIB) $@ clean:: rm -f $(LIBCODY.O) $(LIBCODY.O:.o=.d) diff --git c/libcody/configure w/libcody/configure index b9967a1cd8d..af3a3074a35 100755 --- c/libcody/configure +++ w/libcody/configure @@ -590,6 +590,7 @@ LIBOBJS ALOY DOXYGEN AR +RANLIB EXCEPTIONS PICFLAG CONFIG_FILES @@ -2791,6 +2792,98 @@ fi ac_config_headers="$ac_config_headers config.h" +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$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_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + 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_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$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_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + 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_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 diff --git c/libcody/configure.ac w/libcody/configure.ac index 511fe261b45..598e585a91b 100644 --- c/libcody/configure.ac +++ w/libcody/configure.ac @@ -76,6 +76,7 @@ AC_SUBST(PICFLAG) NMS_ENABLE_EXCEPTIONS AC_CONFIG_HEADERS([config.h]) +AC_PROG_RANLIB AC_CHECK_TOOL([AR],[ar]) AC_CHECK_PROG([DOXYGEN],[doxygen],[doxygen],[: NOTdoxygen]) AC_CHECK_PROG([ALOY],[aloy],[aloy],[: Joust testsuite missing])