Remove -L/usr/lib from XML2 libs
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 21 Aug 2012 12:40:31 +0000 (14:40 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 21 Aug 2012 12:40:31 +0000 (14:40 +0200)
It's not necessary to specify on most systems and it confuses the
linker to think that /usr/lib might precede /usr/local/lib or other.

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
 ])