public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r9-8977] configure: Fix in-tree building of GMP on BSD [PR97302]
@ 2020-10-06 9:54 Tobias Burnus
0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2020-10-06 9:54 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:96b32c86f507f5391512a9cb5ec536e604472ea2
commit r9-8977-g96b32c86f507f5391512a9cb5ec536e604472ea2
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Tue Oct 6 11:49:34 2020 +0200
configure: Fix in-tree building of GMP on BSD [PR97302]
ChangeLog:
PR target/97302
* configure.ac: Only set with_gmp to /usr/local
if not building in tree.
* configure: Regenerate.
(cherry picked from commit c0d0a722da8583f74a0c192041be2f379cf487c1)
Diff:
---
configure | 1 +
configure.ac | 1 +
2 files changed, 2 insertions(+)
diff --git a/configure b/configure
index abd93a990a9..8de7fd3afc3 100755
--- a/configure
+++ b/configure
@@ -3679,6 +3679,7 @@ case "${target}" in
;;
*-*-freebsd*)
if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
+ && ! test -d ${srcdir}/gmp \
&& test -f /usr/local/include/gmp.h; then
with_gmp=/usr/local
fi
diff --git a/configure.ac b/configure.ac
index 9db4fd14aa2..4aab1482e34 100644
--- a/configure.ac
+++ b/configure.ac
@@ -961,6 +961,7 @@ case "${target}" in
;;
*-*-freebsd*)
if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
+ && ! test -d ${srcdir}/gmp \
&& test -f /usr/local/include/gmp.h; then
with_gmp=/usr/local
fi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-06 9:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-06 9:54 [gcc r9-8977] configure: Fix in-tree building of GMP on BSD [PR97302] Tobias Burnus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).