autogen.sh 759 B

123456789101112131415161718192021222324252627282930313233343536
  1. #! /bin/sh
  2. if glibtoolize --version > /dev/null 2>&1; then
  3. LIBTOOLIZE='glibtoolize'
  4. else
  5. LIBTOOLIZE='libtoolize'
  6. fi
  7. command -v command >/dev/null 2>&1 || {
  8. echo "command is required, but wasn't found on this system"
  9. exit 1
  10. }
  11. command -v $LIBTOOLIZE >/dev/null 2>&1 || {
  12. echo "libtool is required, but wasn't found on this system"
  13. exit 1
  14. }
  15. command -v autoconf >/dev/null 2>&1 || {
  16. echo "autoconf is required, but wasn't found on this system"
  17. exit 1
  18. }
  19. command -v automake >/dev/null 2>&1 || {
  20. echo "automake is required, but wasn't found on this system"
  21. exit 1
  22. }
  23. if autoreconf --version > /dev/null 2>&1 ; then
  24. exec autoreconf -ivf
  25. fi
  26. $LIBTOOLIZE && \
  27. aclocal && \
  28. automake --add-missing --force-missing --include-deps && \
  29. autoconf