[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4608) Testing for GMP broken



Full_Name: Rob Windsor
Version: 2.3.24
OS: Solaris 10/sparc
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (209.144.233.1)


CC=gcc CFLAGS=-O2 ./configure --sysconfdir=/etc --localstatedir=/var
--enable-crypt --with-cyrus-sasl --with-tls --with-mp=gmp

[...]
checking size of long long... 8
checking for wchar_t... yes
checking size of wchar_t... 4
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for __gmpz_add_ui in -lgmp... yes
./configure: line 42356: test: =: unary operator expected
configure: error: gmp not available
[...]


Here's the patch to make it work:
diff -ru ../../.src/openldap-2.3.24/configure ./configure
--- ../../.src/openldap-2.3.24/configure        2006-04-08 12:49:11.000000000
-0500
+++ ./configure 2006-07-05 17:03:58.753340000 -0500
@@ -42353,7 +42353,7 @@

 fi

-       if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp = yes ; then
+       if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui =
yes ; then

 cat >>confdefs.h <<\_ACEOF
 #define USE_MP_GMP 1