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

Re: Configure wrongly rejects regex library on cygwin (ITS#1166)



Configure assumes that REGEX routines are in the default
libraries.  If they are not, try:
        env LIBS=-lregex ./configure

replace -lregex with whatever is the appropriate library.

At 07:07 AM 5/23/2001, francois.ougier@renault.com wrote:
>Full_Name: Francois Ougier
>Version: 2.0.10
>OS: cygwin on Win NT
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (193.194.133.3)
>
>
>When attempting a cygwin build on WinNT for 2.0.9/10,
>configure wrongly halts, detecting a non-POSIX regex library.
>
>In fact, the configure script does not link libregex.a when
>running the test (which fails when trying to call regcomp)
>
>A straightforward fix follows :
>
>--- configure.orig      Mon May 21 14:06:08 2001
>+++ configure   Wed May 23 07:49:20 2001
>@@ -5256,6 +5256,8 @@
>        if test "$cross_compiling" = yes; then
>   ol_cv_c_posix_regex=cross
> else
>+  ac_save_LIBS="$LIBS"
>+LIBS="-lregex $LIBS"
>   cat > conftest.$ac_ext <<EOF
> #line 5261 "configure"
> #include "confdefs.h"
>@@ -5293,6 +5295,7 @@
>   ol_cv_c_posix_regex=no
> fi
> rm -fr conftest*
>+LIBS="$ac_save_LIBS"
> fi
> 
> fi