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.
 
 
 
 
 
 

48 lines
1.1 KiB

  1. #!/bin/sh
  2. # Run the autotools bootstrap sequence to create the configure script
  3. # Abort execution on error
  4. set -e
  5. if which libtoolize > /dev/null; then
  6. libtoolize="libtoolize"
  7. elif which glibtoolize >/dev/null; then
  8. libtoolize="glibtoolize"
  9. else
  10. echo "$0: Error: libtool is required" >&2
  11. exit 1
  12. fi
  13. if [ "$1" = "nosubmodule" ]; then
  14. SKIP_SUBMODULE=1
  15. elif [ -n "$1" ]; then
  16. echo "$0: Illegal argument $1"
  17. echo "USAGE: $0 [nosubmodule]"
  18. exit 1
  19. fi
  20. # bootstrap the autotools
  21. (
  22. set -x
  23. aclocal
  24. ${libtoolize} --automake --copy
  25. autoconf
  26. autoheader
  27. automake --gnu --add-missing --copy
  28. )
  29. # AM_MAINTAINER_MODE requires --enable-maintainer-mode from everyone using
  30. # current source snapshots (working from GIT, or some source snapshot, etc)
  31. # otherwise the documentation will fail to build due to missing version.texi
  32. if [ -n "$SKIP_SUBMODULE" ]; then
  33. echo "Skipping submodule setup"
  34. else
  35. echo "Setting up submodules"
  36. git submodule init
  37. git submodule update
  38. fi
  39. echo "Bootstrap complete. Quick build instructions:"
  40. echo "./configure --enable-maintainer-mode ...."