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 c0d0a722da)
This commit is contained in:
Tobias Burnus 2020-10-06 11:49:34 +02:00
parent 972bc5c8e4
commit 96b32c86f5
2 changed files with 2 additions and 0 deletions

1
configure vendored
View File

@ -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

View File

@ -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