Browse Source

automake: extended to export a very greedy $ACLOCAL_FLAGS

user/chris/test/early-mdev
Alejandro Mery 14 years ago
parent
commit
8fe978bd15
  1. 11
      base/automake/parse-config

11
base/automake/parse-config

@ -46,3 +46,14 @@ if ! atstage toolchain && hasflag AUTOMAKE-QUIRK; then
hook_add preconf 3 automake_fixup
fi
pkg_automake_export_aclocal() {
for x in $(cd "${root:-/}"; for d in opt/*/share/aclocal{,-*}/ \
usr/share/aclocal{,-*}/ .$datadir/aclocal{,-*}/; do
[ -d "$d" ] || continue
readlink -f "$d"
done | sort -u); do
export ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $x"
done
}
hook_add preconf 3 'pkg_automake_export_aclocal'

Loading…
Cancel
Save