]> granicus.if.org Git - php/commitdiff
fix build with libmysql on Ubuntu 12.04 x64 probably other mixed 32/64 systems
authorAndrey Hristov <andrey@php.net>
Wed, 17 Oct 2012 14:35:36 +0000 (16:35 +0200)
committerAndrey Hristov <andrey@php.net>
Wed, 17 Oct 2012 14:35:36 +0000 (16:35 +0200)
ext/mysql/config.m4

index fa7a46f8532f7e54465e690c02ff21114370a93f..5968c43346aedc85767315f591216c20efa1922c 100644 (file)
@@ -96,6 +96,13 @@ Note that the MySQL client library is not bundled anymore!])
     MYSQL_LIB_CHK($i)
   done
 
+  if test -z "$MYSQL_LIB_DIR"; then
+    MYSQL_LIB_CHK(lib/x86_64-linux-gnu)
+  fi
+  if test -z "$MYSQL_LIB_DIR"; then
+    MYSQL_LIB_CHK(lib/i386-linux-gnu)
+  fi
+
   if test -z "$MYSQL_LIB_DIR"; then
     AC_MSG_ERROR([Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR.
 Note that the MySQL client library is not bundled anymore!])