configure: error: cannot find necessary library

    You need to reset the LIBS too..
    
    --Jani
    

On Thu, 30 Jan 2003, Marcus Börger wrote:

>At 00:04 30.01.2003, Marcus Börger wrote:
>>At 11:55 28.01.2003, Jani Taskinen wrote:
>>>sniper          Tue Jan 28 05:55:36 2003 EDT
>>>
>>>   Modified files:
>>>     /php4/ext/dba       config.m4
>>>   Log:
>>>   Fix configure. (typo?)
>>
>>It didn't notice that...it's from my test version where i could need some help
>>but currently i am not at all knowing the problem really...
>>
>>marcus
>
>Ok, one part of my problem is linking against a special version while having
>multiple versions of say db3. The following works for. Does it work for 
>you, too?
>(Now it is *no* type)
>
>cvs -z3 -q diff config.m4 (in directory S:\php4-HEAD\ext\dba)
>Index: config.m4
>===================================================================
>RCS file: /repository/php4/ext/dba/config.m4,v
>retrieving revision 1.38
>diff -u -r1.38 config.m4
>--- config.m4   28 Jan 2003 10:55:36 -0000      1.38
>+++ config.m4   30 Jan 2003 00:47:29 -0000
>@@ -1,5 +1,5 @@
>  dnl
>-dnl $Id: config.m4,v 1.38 2003/01/28 10:55:36 sniper Exp $
>+dnl $Id: config.m4,v 1.29.2.6 2003/01/28 06:27:19 helly Exp $
>  dnl
>
>  dnl Suppose we need FlatFile if no support or only CDB is used.
>@@ -10,7 +10,8 @@
>
>  AC_DEFUN(PHP_TEMP_LDFLAGS,[
>    old_LDFLAGS=$LDFLAGS
>-  LDFLAGS="$1 $LDFLAGS"
>+dnl  LDFLAGS="$1 $LDFLAGS"
>+  LDFLAGS="$1"
>    $2
>    LDFLAGS=$old_LDFLAGS
>  ])
>@@ -139,18 +140,20 @@
>  dnl parameters(version, library list, function)
>  AC_DEFUN(PHP_DBA_DB_CHECK,[
>    for LIB in $2; do
>-    PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/lib,[
>-      AC_CHECK_LIB($LIB, $3, [
>-        AC_EGREP_CPP(yes,[
>+    if test -f $THIS_PREFIX/lib/lib$LIB.a -o -f 
>$THIS_PREFIX/lib/lib$LIB.$SHLIB_SUFFIX_NAME; then
>+      PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/lib,[
>+        AC_CHECK_LIB($LIB, $3, [
>+          AC_EGREP_CPP(yes,[
>  #include "$THIS_INCLUDE"
>              yes
>  #endif
>-        ],[
>-          THIS_LIBS=$LIB
>-          break
>+          ],[
>+            THIS_LIBS=$LIB
>+            break
>+          ])
>          ])
>        ])
>-    ])
>+    fi
>    done
>    if test "$1" = "4"; then
>      AC_MSG_CHECKING(for db4 minor version and patch level)
>
>
>

-- 
<- For Sale! ->


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to