Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bootstrap 892B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh -eu
  2. #
  3. # Copyright (c) 2014-2018 The strace developers.
  4. # All rights reserved.
  5. #
  6. # SPDX-License-Identifier: LGPL-2.1-or-later
  7. ./m4/gen_bpf_attr_m4.sh
  8. ./generate_mpers_am.sh
  9. ./xlat/gen.sh
  10. ./tests/gen_pure_executables.sh
  11. ./tests/gen_tests.sh
  12. ./tools/asinfo/gen_asinfo_files.sh
  13. for m in m32 mx32; do
  14. tests=tests-$m
  15. rm -rf $tests
  16. mkdir $tests
  17. s='[[:space:]]*'
  18. [ "$m" = m32 ] && k="s/^\\(SIZEOF_KERNEL_LONG_T$s=\\).*/\\1 4/;" || k=
  19. sed "s/@arch@/@arch_$m@/;
  20. s/^\\(SIZEOF_LONG$s=\\).*/\\1 4/; $k
  21. s/^MPERS_NAME$s=.*/& $m/;
  22. s/^MPERS_CC_FLAGS$s=.*/& @cc_flags_$m@/;
  23. s/^ARCH_MFLAGS$s=.*/& -DMPERS_IS_\$(MPERS_NAME) \$(MPERS_CC_FLAGS)/" \
  24. tests/Makefile.am > $tests/Makefile.am
  25. for f in tests/*; do
  26. case "${f##*/}" in
  27. Makefile*) continue;;
  28. esac
  29. ln -s ../"$f" $tests/
  30. done
  31. done
  32. for f in README INSTALL; do
  33. cp "dist/$f" .
  34. done
  35. autoreconf -f -i "$@"