apenwarr-redo/redoconf/rc/pkg-config.rc.od
Avery Pennarun 1a3c11f220 redoconf: a stub rc_include() now sources ./redoconf.rc automatically.
This lets us remove the awkward ". ./redoconf.rc" line from zillions
of .od scripts, without paying the price of *always* including that
whole file every time default.do.sh is used.
2019-03-02 04:24:58 -05:00

16 lines
269 B
Text

rc_include
for d in "$PKG_CONFIG" pkg-config; do
rc_undo
if "$d" --version >/dev/null 2>&1; then
rc_replaceln PKG_CONFIG "$d"
rc_replaceln HAVE_PKG_CONFIG 1
rc_save
exit 0
fi
done
# Failed
rc_replaceln HAVE_PKG_CONFIG ""
rc_replaceln PKG_CONFIG ""
rc_save