blob: 86598b233df2bde09998666802380c9cb2cfee2c [file] [log] [blame]
#!/bin/sh -eu
for m in -m32 -mx32; do
mkdir -p tests$m
find tests$m -type l -delete
sed "s/^AM_CFLAGS[[:space:]]*=.*/& $m/" \
tests/Makefile.am > tests$m/Makefile.am
for f in tests/*; do
case "${f##*/}" in
Makefile.am|Makefile.in) continue;;
esac
ln -s ../"$f" tests$m/
done
done
./xlat/gen.sh
exec autoreconf -f -i "$@"