From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 2PC5GI2Qp19mQwAAWB0awg (envelope-from ) for ; Sun, 08 Nov 2020 01:30:37 -0500 Received: by simark.ca (Postfix, from userid 112) id 604F41F08D; Sun, 8 Nov 2020 01:30:37 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id B5D691EFC1 for ; Sun, 8 Nov 2020 01:30:36 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A84E8385E005; Sun, 8 Nov 2020 06:30:35 +0000 (GMT) Received: from rock.gnat.com (rock.gnat.com [IPv6:2620:20:4000:0:a9e:1ff:fe9b:1d1]) by sourceware.org (Postfix) with ESMTP id AC9773850423 for ; Sun, 8 Nov 2020 06:30:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AC9773850423 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=brobecke@adacore.com Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 84172117EE5; Sun, 8 Nov 2020 01:30:32 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at gnat.com Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vlbS6+dVeg02; Sun, 8 Nov 2020 01:30:32 -0500 (EST) Received: from tron.gnat.com (tron.gnat.com [205.232.38.10]) by rock.gnat.com (Postfix) with ESMTP id 7441011690F; Sun, 8 Nov 2020 01:30:32 -0500 (EST) Received: by tron.gnat.com (Postfix, from userid 4233) id 70BE3103; Sun, 8 Nov 2020 01:30:32 -0500 (EST) From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [PATCH 2/9] gdb: Make GMP a required dependency for building GDB Date: Sun, 8 Nov 2020 01:30:10 -0500 Message-Id: <1604817017-25807-3-git-send-email-brobecker@adacore.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1604817017-25807-1-git-send-email-brobecker@adacore.com> References: <1604817017-25807-1-git-send-email-brobecker@adacore.com> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joel Brobecker Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" This commit modifies gdb's configure script to trigger an error if we cannot find a usable libgmp. For the record, making this a requirement was discussed in March 2018: https://sourceware.org/pipermail/gdb-patches/2018-March/147373.html gdb/ChangeLog: * configure.ac: Generate an error if a usable GMP library could not be found. * configure: Regenerate. --- gdb/configure | 3 +++ gdb/configure.ac | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gdb/configure b/gdb/configure index 2bf0856..a3e73b4 100755 --- a/gdb/configure +++ b/gdb/configure @@ -10469,6 +10469,9 @@ $as_echo "$LIBGMP" >&6; } +if test "$HAVE_LIBGMP" != yes; then + as_fn_error $? "GMP is missing or unusable" "$LINENO" 5 +fi # Check whether --with-mpfr was given. diff --git a/gdb/configure.ac b/gdb/configure.ac index 0264a4f..32f25d9 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -687,6 +687,9 @@ fi AC_LIB_HAVE_LINKFLAGS([gmp], [], [#include ], [mpz_t n; mpz_init (n);]) +if test "$HAVE_LIBGMP" != yes; then + AC_MSG_ERROR([GMP is missing or unusable]) +fi AC_ARG_WITH(mpfr, AS_HELP_STRING([--with-mpfr], [include MPFR support (auto/yes/no)]), -- 2.1.4