Some simplifications and improvements to the configure script#132
Some simplifications and improvements to the configure script#132xavierleroy merged 3 commits intoocaml:masterfrom
Conversation
|
Also, I wonder about MPIR support. This library seems to be abandoned, e.g. |
e1e80bb to
a967e22
Compare
|
The rationale for MPIR was the better support for Microsoft's compilers on Windows. I understand that there is still some activity on a Windows-specific fork of MPIR https://github.com/wbhart/mpir (github are the new web pages !) |
|
Hi, Could I suggest making the configure script more cross-compilation-friendly ? (i.e. using ocamlfind to look for ocaml* binaries and allow specifying a C toolchain prefix, to be used when calling pkg-config) |
I think this should belong to a different issue. Would switching to dune (#73) help ? |
That would work too, indeed. |
I have no experience with cross-compiling OCaml libraries. Can you point me at examples of OCaml packages that use the cross-compilation tricks you mention? |
Last commit in 2020. Last (and first) release in 2017. I'm not reassured. |
There are a few packages from However it should be sufficient to change the first lines of your And prepend a variable named
|
We no longer need it to select between assembly files.
This works better on Mac with Homebrew, for example. Fall back to the old method if pkg-config is not available or doesn't work.
Namely: - Whether GMP was found from pkg-config - Which C includes were selected (in summary of configuration)
a967e22 to
fdb4643
Compare
|
This PR hasn't been reviewed, but I think it's good stuff and I'm going to merge it nonetheless. The discussion side-stepped in two directions: |
config.guessscript. We no longer need it to select between assembly files.pkg-configto find GMP. This works better on Mac with Homebrew, for example. Fall back to the old method ifpkg-configis not available or doesn't know about GMP.