I feel to go backwards where I started some years ago when someone asked me 
about this first: "if you want to use both along use different paths and 
set CFLAGS / LDFLAGS accordingly".
But I'm not back already (maybe because the "magic parts in configure" are 
already in and it's nice to add --with-math=mpir to the configure line 
being able to test it without the need for another installation path for 
libgmp which is mpir in gmpcompat mode ;-)

If you only want to run the modules compiled with GnuCOBOL it's enough to 
distribute the mathematical library which is linked to our runtime library 
libcob, this is correct.

The one thing that makes this complicated is that GnuCOBOL translates COBOL 
to C. The generated C modules include libcob.h which needs mpz_t to be 
defined (which was done by including gmp.h until I've started to code the 
change).
Therefore, if you want to use the already build GnuCOBOL compiler 
(especially interesting for binary distribution like in Windows) you need 
mpz_t to be defined - either via mpir.h, or gmp.h or manually like I 
outlined before (which I think is the most likely case to raise 
compatibility issues).
This would be much less problematic if I could come up with a complete 
mpz_t definition which works on all machines and versions of gmp/mpir. But 
I don't think it's possible to come up with one. Can someone prove that 
assumption is wrong? I'd be very happy.

@leif: if you'd had to go one of the given options 1-4 which would you 
choose?
@all: More thoughts to this would be welcome (it would to help to know, 
even if you all think "force the people to use gmpcompat and set the paths 
for configure accordingly").

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to