autogen.sh 461 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. # Start from one level above the build directory
  3. if [ -f version ]; then
  4. cd ..
  5. fi
  6. if [ \! -f build/version ]; then
  7. echo "Can't find source directory"
  8. exit 1
  9. fi
  10. set -xe
  11. aclocal -I build/autoconf
  12. # Note: --automake flag needed only for libtoolize from
  13. # libtool 1.5.x; in libtool 2.2.x it is a synonym for --quiet
  14. case `uname` in
  15. Darwin) glibtoolize --automake -c;;
  16. *) libtoolize --automake -c;;
  17. esac
  18. autoconf
  19. autoheader
  20. automake -a -c