[AC_REQUIRE([AC_PROG_SED])
deps_=`for p in $PKG_DEPS; do pkg-config --libs $p; done`
filter_=`for l in $deps_;dnl
- do echo $l | $SED -e 's%\(-l.*\)%-e s/\1//%' -e '/^-L/d';dnl
+ do echo $l | $SED -ne 's%\(-l.*\)%-e s/\1//%p';dnl
done`
PKG_LIBS=`echo $1 | $SED $filter_`
]