]> granicus.if.org Git - php/commitdiff
Proper lib detection.
authorIlia Alshanetsky <iliaa@php.net>
Sat, 15 Feb 2003 20:09:49 +0000 (20:09 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 15 Feb 2003 20:09:49 +0000 (20:09 +0000)
ext/mysqli/config.m4

index 5c2f6ce5747bca875a6f442be4f48615b3d641cd..e7c34850b7a6e136b2332642001f9549b90f483f 100644 (file)
@@ -50,7 +50,7 @@ if test "$PHP_MYSQLI" != "no"; then
   ],[
     AC_MSG_ERROR([wrong mysql library version or lib not found])
   ],[
-    -L$MYSQLI_DIR -lm -ldl
+    `$PHP_MYSQLI/bin/mysql_config --libs | sed -e "s/'//g"`
   ])
   PHP_SUBST(MYSQLI_SHARED_LIBADD)