Adjust build sys for flintv3 (and also archlinux) #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Flint version 3 incorporates arb, antic and calcium (and is now the released version on archlinux), so a few things have to change in the build system if we want to be able to build against the newest releases.
We now have quite a few more configure scripts, basically one for each c library, plus one for the common ones (
gmp,mpfr). Each script is responsible for providing the list of cflags and lib flags to use when compiling c code that use their library. Additionally, since header files can now be in different directories (e.g.calcium/calcium.horflint/calcium.h), this PR makes it so that we try to always refer to header files by their basename, and add the correct-Iflags through the cflags, which should hopefully make things a bit simpler (assuming we do not use libraries with name clashes).I have tested this on Arch with flint v3. Will wait for CI to see if I have broken the build for other distros (and older flint versions).