autogen.sh 977 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. #AM_VERSION="1.10"
  3. if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
  4. # automake-1.10 (recommended) is not available on Fedora 8
  5. AUTOMAKE=automake
  6. ACLOCAL=aclocal
  7. else
  8. ACLOCAL=aclocal-${AM_VERSION}
  9. AUTOMAKE=automake-${AM_VERSION}
  10. fi
  11. libtoolize="libtoolize"
  12. for lt in glibtoolize libtoolize15 libtoolize14 libtoolize13 ; do
  13. if test -x /usr/bin/$lt ; then
  14. libtoolize=$lt ; break
  15. fi
  16. if test -x /usr/local/bin/$lt ; then
  17. libtoolize=$lt ; break
  18. fi
  19. if test -x /opt/local/bin/$lt ; then
  20. libtoolize=$lt ; break
  21. fi
  22. done
  23. AUTOMAKE_FLAGS=""
  24. case $libtoolize in
  25. *glibtoolize)
  26. AUTOMAKE_FLAGS="-i"
  27. ;;
  28. esac
  29. if test -d /opt/local/share/aclocal ; then
  30. ACLOCAL_ARGS="-I /opt/local/share/aclocal"
  31. fi
  32. set -x
  33. rm -rf config.cache autom4te.cache libtool
  34. $libtoolize --copy --force
  35. $ACLOCAL $ACLOCAL_ARGS
  36. autoheader
  37. $AUTOMAKE --add-missing --copy ${AUTOMAKE_FLAGS}
  38. autoconf