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.
 
 
 
 
 
 

41 lines
982 B

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