for i in $(find "$SRCDIR" -name config.guess -o -name config.sub); do \
    abinfo "Copying replacement $i ..."
    cp -v /usr/bin/$(basename $i) $i ; \
done

abinfo "Calibrating postinst, prerm ..."
sed -e "s|\@ZFSVER\@|$PKGVER|g" \
    -i "$SRCDIR"/autobuild/postinst
sed -e "s|\@ZFSVER\@|$PKGVER|g" \
    -i "$SRCDIR"/autobuild/prerm

abinfo "Re-generating Autotools scripts ..."
autoreconf -fvi
