Source: btscanner
Version: 2.1-8
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

btscanner fails to cross build from source, because configure.in hard
codes the build architecture pkg-config. It is best to use the standard
PKG_CHECK_MODULES macro instead. Please consider applying the attached
patch.

Helmut
--- btscanner-2.1.orig/configure.in
+++ btscanner-2.1/configure.in
@@ -39,9 +39,10 @@
 #CFLAGS="-g -ggdb"
 
 # config for libxml2 check
-CFLAGS="$CFLAGS `pkg-config libxml-2.0 --cflags`"
+PKG_CHECK_MODULES([XML2],[libxml-2.0])
+CFLAGS="$CFLAGS $XML2_CFLAGS"
 CPPFLAGS="$CPPFLAGS"
-LDFLAGS="$LDFLAGS `pkg-config libxml-2.0 --libs`"
+LDFLAGS="$LDFLAGS $XML2_LIBS"
 
 # check for libxml2 heads/libs
 AC_CHECK_HEADERS([libxml/parser.h libxml/tree.h],,

Reply via email to