Bug #12597 Updated: AC_CHECK_LIB on -curl fails if cURL is elsewhere than /usr or /usr/local

From: Date: Mon, 06 Aug 2001 15:37:31 +0000
Subject: Bug #12597 Updated: AC_CHECK_LIB on -curl fails if cURL is elsewhere than /usr or /usr/local
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-62281@lists.php.net to get a copy of this message
ID: 12597
Updated by: sniper
Reported By: heko@iki.fi
Old Status: Open
Status: Closed
Bug Type: *Configuration Issues
Operating System: OpenBSD 2.9-current
PHP Version: 4.0CVS-2001-08-06
New Comment:

Fixed in CVS. You also need to have -L$CURL_DIR/lib after
the $CURL_LIBS since the path is not necessarily given
by curl-config.

--Jani


Previous Comments:
------------------------------------------------------------------------

[2001-08-06 09:58:09] heko@iki.fi


AC_CHECK_LIB in ext/curl/config.m4 fails if cURL is
installed elsewhere than /usr/local or /usr, regardless
of --with-curl=[directory] setting. The CHECK_LIB macro
provides an optional fourth argument which should in this
case be set to $CURL_LIBS to make sure the test linking
goes ok.

Patch at:

http://saitti.net/~heko/php/patches/patch-ext_curl_config_m4

Or, inline (let's hope it wraps ok):

Index: ext/curl/config.m4
===================================================================
RCS file: /repository/php4/ext/curl/config.m4,v
retrieving revision 1.7
diff -I'$Id' -u -b -B -p -r1.7 config.m4
--- ext/curl/config.m4  27 May 2001 18:52:33 -0000      1.7
+++ ext/curl/config.m4  6 Aug 2001 13:38:38 -0000
@@ -48,7 +48,7 @@ if test "$PHP_CURL" != "no"; then
     AC_DEFINE(HAVE_CURL,1,[ ])
   ],[
     AC_MSG_ERROR(There is something wrong. Please check config.log for more information.)
-  ])
+  ], $CURL_LIBS)
 
   PHP_EXTENSION(curl, $ext_shared)
   PHP_SUBST(CURL_SHARED_LIBADD)

-- 
<---------------------------------------------------------------------->
          Heikki Korpela -- heko@iki.fi -- http://iki.fi/heko/


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=12597&edit=1



Thread (2 messages)

« previous php.dev (#62281) next »