autogen.sh 669 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. # Run this script to generate the configure script and other files that will
  3. # be included in the distribution. These files are not checked in because they
  4. # are automatically generated.
  5. # Check that we're being run from the right directory.
  6. if test ! -e src/google/protobuf/stubs/common.h; then
  7. cat >&2 << __EOF__
  8. Could not find source code. Make sure you are running this script from the
  9. root of the distribution tree.
  10. __EOF__
  11. exit 1
  12. fi
  13. set -ex
  14. rm -rf autom4te.cache
  15. aclocal-1.10 --force -I m4
  16. libtoolize -c -f
  17. autoheader -f -W all
  18. automake-1.10 --foreign -a -c -f -W all
  19. autoconf -f -W all,no-obsolete
  20. rm -rf autom4te.cache config.h.in~
  21. exit 0