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.
 
 
 
 
 
 

56 lines
1.9 KiB

  1. #!/usr/bin/env bash
  2. # This file is part of PulseAudio.
  3. #
  4. # PulseAudio is free software; you can redistribute it and/or modify it
  5. # under the terms of the GNU Lesser General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # PulseAudio is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Lesser General Public License
  15. # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
  16. case $(uname) in
  17. *Darwin*)
  18. LIBTOOLIZE="glibtoolize"
  19. ;;
  20. esac
  21. test "x$LIBTOOLIZE" = "x" && LIBTOOLIZE=libtoolize
  22. if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
  23. cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
  24. chmod +x .git/hooks/pre-commit && \
  25. echo "Activated pre-commit hook."
  26. fi
  27. if [ -f .tarball-version ]; then
  28. echo "Marking tarball version as modified."
  29. echo -n `cat .tarball-version | sed 's/-rebootstrapped$//'`-rebootstrapped >.tarball-version
  30. fi
  31. # We check for this here, because if pkg-config is not found in the
  32. # system, it's likely that the pkg.m4 macro file is also not present,
  33. # which will make PKG_PROG_PKG_CONFIG be undefined and the generated
  34. # configure file faulty.
  35. if ! pkg-config --version &>/dev/null; then
  36. echo "pkg-config is required to bootstrap this program" &>/dev/null
  37. DIE=1
  38. fi
  39. # Other necessary programs
  40. intltoolize --version >/dev/null || DIE=1
  41. test "$DIE" = 1 && exit 1
  42. autopoint --force
  43. AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
  44. if test "x$NOCONFIGURE" = "x"; then
  45. CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var --enable-force-preopen "$@"
  46. make clean
  47. fi