--- branches/magellan-next/include/multilib.sminc 2011/11/26 13:31:10 9333 +++ branches/magellan-next/include/multilib.sminc 2011/11/26 13:37:05 9334 @@ -388,6 +388,28 @@ done } +if [[ ! -z $(typeset -f mautoreconf) ]] +then + # rename the old one + old_mautoreconf=old$(typeset -f mautoreconf) + eval "${old_mautoreconf}" +fi +mautoreconf() +{ + local abi + local abis_to_run="${MULTILIB_ABIS}" + + # respect MULTILIB_ONLY_ABI variable + [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}" + + for abi in ${abis_to_run} + do + echo -e "${COLBLUE}*** ${COLGREEN}running mautoreconf for ABI -${abi}${COLDEFAULT}" + cd ${SRCDIR}-${abi} + oldmautoreconf $@ || die + done +} + if [[ ! -z $(typeset -f minstalldocs) ]] then # rename the old one