Dmitry V. Levin
b80894cf07
* bootstrap: Add -DMPERS_IS_$(MPERS_NAME) to ARCH_MFLAGS. * tests/xstatx.c [USE_ASM_STAT && STRUCT_STAT_IS_STAT64 && MPERS_IS_m32]: Redefine HAVE_STRUCT_STAT_ST_MTIME_NSEC to HAVE_M32_STRUCT_STAT64_ST_MTIME_NSEC. [USE_ASM_STAT && STRUCT_STAT_IS_STAT64 && MPERS_IS_mx32]: Redefine HAVE_STRUCT_STAT_ST_MTIME_NSEC to HAVE_MX32_STRUCT_STAT64_ST_MTIME_NSEC. [USE_ASM_STAT && !STRUCT_STAT_IS_STAT64 && MPERS_IS_m32]: Redefine HAVE_STRUCT_STAT_ST_MTIME_NSEC to HAVE_M32_STRUCT_STAT_ST_MTIME_NSEC. [USE_ASM_STAT && !STRUCT_STAT_IS_STAT64 && MPERS_IS_mx32]: Redefine HAVE_STRUCT_STAT_ST_MTIME_NSEC to HAVE_MX32_STRUCT_STAT_ST_MTIME_NSEC. Based on patch by James Clarke <jrtc27@jrtc27.com>.
24 lines
437 B
Bash
Executable File
24 lines
437 B
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
for m in m32 mx32; do
|
|
tests=tests-$m
|
|
rm -rf $tests
|
|
mkdir $tests
|
|
s='[[:space:]]*'
|
|
sed "s/@arch@/@arch_$m@/;
|
|
s/^MPERS_NAME$s=.*/& $m/;
|
|
s/^ARCH_MFLAGS$s=.*/& -DMPERS_IS_\$(MPERS_NAME) -$m/" \
|
|
tests/Makefile.am > $tests/Makefile.am
|
|
for f in tests/*; do
|
|
case "${f##*/}" in
|
|
Makefile*) continue;;
|
|
esac
|
|
ln -s ../"$f" $tests/
|
|
done
|
|
done
|
|
|
|
./generate_mpers_am.sh
|
|
./xlat/gen.sh
|
|
|
|
exec autoreconf -f -i "$@"
|