gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] Windows patch - detect MP_INCLUDE during configure


From: David Billinghurst
Subject: Re: [Gcl-devel] Windows patch - detect MP_INCLUDE during configure
Date: Mon, 25 Aug 2014 02:19:36 +1000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 22/11/2013 11:26 AM, David Billinghurst wrote:
A windows configure fails to set MP_INCLUDE, and therefore doesn't use the system gmp library,
since the path to the file gmp.h uses \\ rather than /

Fixed by the following patch for gcl-2.6.10

*** configure.in.orig    Fri Nov 22 11:15:36 2013
--- configure.in    Fri Nov 22 11:16:46 2013
***************
*** 784,790 ****
                  TLIBS="$TLIBS -lgmp"
                  echo "#include \"gmp.h\"" >foo.c
                  echo "int main() {return 0;}" >>foo.c
! MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -n 1 | $AWK '{print $3}' | tr -d '"'`
                  rm -f foo.c,
echo "Cannot use dynamic gmp lib" , echo "Cannot use dynamic gmp lib" ),
              echo "Cannot use dynamic gmp lib" ,),
--- 784,790 ----
                  TLIBS="$TLIBS -lgmp"
                  echo "#include \"gmp.h\"" >foo.c
                  echo "int main() {return 0;}" >>foo.c
! MP_INCLUDE=`cpp foo.c | grep "[/\|\\]gmp.h" | head -n 1 | $AWK '{print $3}' | tr -d '"'`
                  rm -f foo.c,
echo "Cannot use dynamic gmp lib" , echo "Cannot use dynamic gmp lib" ),
              echo "Cannot use dynamic gmp lib" ,),


I still need to apply this patch to gcl-2.6.11pre. It is needed to build with the system gmp dll on windows.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]