Fix programming typo
[manu/libnss-mysql-bg.git] / debian / patches / 05_fix_acinclude
index 357314b..b273dd7 100644 (file)
@@ -1,16 +1,11 @@
+From: <elacour@home-dn.net>
+Subject: Use mysql_config to find mysql multi-arch libs
+
 Index: libnss-mysql-bg-1.5/acinclude.m4
 ===================================================================
 --- libnss-mysql-bg-1.5.orig/acinclude.m4      2012-04-18 10:20:01.205313859 +0200
 +++ libnss-mysql-bg-1.5/acinclude.m4   2012-04-18 11:18:19.681344131 +0200
-@@ -50,6 +50,7 @@
- fi
- AC_MSG_CHECKING([for MySQL libraries])
-+
- dnl Check for share first, then static, such that static
- dnl will take precedence
- for f in $baselist; do
-@@ -80,6 +81,19 @@
+@@ -80,6 +80,19 @@
      fi
  done
  
@@ -22,7 +17,7 @@ Index: libnss-mysql-bg-1.5/acinclude.m4
 +dnl Old versions of mysql_config does not have "--variable" option
 +    if test $? -ne 0
 +    then
-+        MYSQL_LIB_DIR=`mysql_config --libs | sed 's/^.*-L\([]\+\).*$/\1/'`
++        MYSQL_LIB_DIR=`mysql_config --libs | sed 's/^.*-L\([[^ ]]\+\).*$/\1/'`
 +    fi
 +fi
 +