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.
16 lines
269 B
Text
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
|