Re: [Patch] configure: Fix in-tree building of GMP on BSD (PR97302)

2020-10-06 Thread Jakub Jelinek via Gcc-patches
On Tue, Oct 06, 2020 at 10:56:35AM +0200, Tobias Burnus wrote: > As reported in the PR, the in-tree build of GMP fails for BSD. > The reason is that with_gmp is set if there is a gmp.h under > /usr/local – such that in-tree GMP is build but later not used, > which causes build fails if /usr/local h

[Patch] configure: Fix in-tree building of GMP on BSD (PR97302)

2020-10-06 Thread Tobias Burnus
As reported in the PR, the in-tree build of GMP fails for BSD. The reason is that with_gmp is set if there is a gmp.h under /usr/local – such that in-tree GMP is build but later not used, which causes build fails if /usr/local has no proper GMP. Fixed by skipping the setting of with_gmp if there