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.

51 lines
996B

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