Remove -L/usr/lib from XML2 libs
[m4-moved-to-github.git] / yaz_libxml2.m4
index 5f3641d..26e474f 100644 (file)
@@ -44,6 +44,7 @@ if test "$xml2dir" != "no"; then
            AC_MSG_ERROR([libxml2 development libraries not found.])
        fi
     fi
+    XML2_LIBS=`echo $XML2_LIBS|sed 's@-./usr/lib @@g'`
 fi
 ])
 
@@ -97,6 +98,7 @@ if test "$xsltdir" != "no"; then
            AC_MSG_ERROR([libXSLT development libraries not found.])
        fi
     fi
+    XML2_LIBS=`echo $XML2_LIBS|sed 's@-./usr/lib @@g'`
 fi
 ])