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 969B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. for m in m32 mx32; do
  13. m_upper=$(echo $m|tr '[a-z]' '[A-Z]')
  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/^\\(CC$s=\\).*/\\1 @CC_FOR_${m_upper}@/;
  23. s/^MPERS_CC_FLAGS$s=.*/& @CFLAGS_FOR_${m_upper}@ @cc_flags_$m@/;
  24. s/^ARCH_MFLAGS$s=.*/& -DMPERS_IS_\$(MPERS_NAME) \$(MPERS_CC_FLAGS)/" \
  25. tests/Makefile.am > $tests/Makefile.am
  26. for f in tests/*; do
  27. case "${f##*/}" in
  28. Makefile*) continue;;
  29. esac
  30. ln -s ../"$f" $tests/
  31. done
  32. done
  33. for f in README INSTALL; do
  34. cp "dist/$f" .
  35. done
  36. autoreconf -f -i "$@"