Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #! /bin/sh
  2. ## bootstrap file for libcaca -- Sam Hocevar <sam@zoy.org>
  3. ## $Id$
  4. set -x
  5. set -e
  6. # Get a sane environment, just in case
  7. LANG=C
  8. export LANG
  9. CYGWIN=binmode
  10. export CYGWIN
  11. # Check for automake
  12. amvers="no"
  13. if automake-1.8 --version >/dev/null 2>&1; then
  14. amvers="-1.8"
  15. elif automake-1.7 --version >/dev/null 2>&1; then
  16. amvers="-1.7"
  17. elif automake-1.6 --version >/dev/null 2>&1; then
  18. amvers="-1.6"
  19. elif automake-1.5 --version >/dev/null 2>&1; then
  20. amvers="-1.5"
  21. elif automake --version > /dev/null 2>&1; then
  22. amvers="`automake --version | sed -e '1s/[^0-9]*//' -e q`"
  23. if expr "$amvers" "<" "1.5" > /dev/null 2>&1; then
  24. amvers="no"
  25. else
  26. amvers=""
  27. fi
  28. fi
  29. if test "$amvers" = "no"; then
  30. set +x
  31. echo "$0: you need automake version 1.5 or later"
  32. exit 1
  33. fi
  34. libtoolize="no"
  35. if glibtoolize --version >/dev/null 2>&1; then
  36. libtoolize="glibtoolize"
  37. elif libtoolize --version >/dev/null 2>&1; then
  38. libtoolize="libtoolize"
  39. fi
  40. if test "$libtoolize" = "no"; then
  41. set +x
  42. echo "$0: you need libtool"
  43. exit 1
  44. fi
  45. # Remove old cruft
  46. rm -f aclocal.m4 configure config.guess config.log config.sub config.cache config.h.in config.h compile ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh INSTALL
  47. rm -Rf autom4te.cache
  48. (cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh)
  49. ${libtoolize} --copy --force
  50. if test -f "ltmain.sh"; then
  51. echo "$0: working around a minor libtool issue"
  52. mv ltmain.sh autotools/
  53. fi
  54. aclocal${amvers}
  55. autoconf
  56. autoheader
  57. automake${amvers} --add-missing --copy