File 10_usepkgconfig.diff of Package x11vnc
diff --git a/configure.ac b/configure.ac
index b17beff..1659cfc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -368,9 +368,9 @@ if test "x$with_avahi" != "xno"; then
AVAHI_LIBS="-L$with_avahi/lib -lavahi-common -lavahi-client"
echo "using $with_avahi"
with_avahi=yes
- elif pkg-config --atleast-version=0.6.4 avahi-client >/dev/null 2>&1; then
- AVAHI_CFLAGS=`pkg-config --cflags avahi-client`
- AVAHI_LIBS=`pkg-config --libs avahi-client`
+ elif $PKG_CONFIG --atleast-version=0.6.4 avahi-client >/dev/null 2>&1; then
+ AVAHI_CFLAGS=`$PKG_CONFIG --cflags avahi-client`
+ AVAHI_LIBS=`$PKG_CONFIG --libs avahi-client`
with_avahi=yes
echo yes
else