jack1 codebase
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.

46 lines
872B

  1. #!/bin/sh
  2. if which libtoolize >/dev/null
  3. then
  4. LIBTOOLIZE=libtoolize
  5. else
  6. if which glibtoolize >/dev/null
  7. then
  8. # on the Mac it's called glibtoolize for some reason
  9. LIBTOOLIZE=glibtoolize
  10. else
  11. echo "libtoolize not found"
  12. exit 1
  13. fi
  14. fi
  15. $LIBTOOLIZE --force 2>&1 | sed '/^You should/d' || {
  16. echo "libtool failed, exiting..."
  17. exit 1
  18. }
  19. aclocal $ACLOCAL_FLAGS || {
  20. echo "aclocal \$ACLOCAL_FLAGS where \$ACLOCAL_FLAGS= failed, exiting..."
  21. exit 1
  22. }
  23. autoheader || {
  24. echo "autoheader failed, exiting..."
  25. exit 1
  26. }
  27. automake --add-missing --foreign || {
  28. echo "automake --add-missing --foreign failed, exiting..."
  29. exit 1
  30. }
  31. autoconf || {
  32. echo "autoconf failed, exiting..."
  33. exit 1
  34. }
  35. if test x$1 != x--no-conf; then
  36. echo "Running ./configure --enable-maintainer-mode $@..."
  37. ./configure --enable-maintainer-mode $@
  38. fi