qt: playlist: use item title if available
[vlc.git] / bootstrap
blob535d5f33419015a8fab0e8b168cf605de626bdee
1 #! /bin/sh
3 ## bootstrap file for the VLC media player
4 ##
5 ## Copyright (C) 2005-2008 the VideoLAN team
6 ##
7 ## Authors: Sam Hocevar <sam@zoy.org>
8 ## RĂ©mi Denis-Courmont
10 set -e
12 cd "$(dirname "$0")"
14 if test "$#" != "0"; then
15 echo "Usage: $0" >&2
16 echo " Calls autoreconf to generate m4 macros and prepare Makefiles." >&2
17 exit 1
20 ACLOCAL_ARGS="-I m4 ${ACLOCAL_ARGS}"
22 # Check for tools directory
23 if test -z ${VLC_TOOLS}; then
24 VLC_TOOLS=extras/tools/build
26 if test -d ${VLC_TOOLS}/bin; then
27 VLC_TOOLS_PATH="$( cd "${VLC_TOOLS}/bin" ; pwd -P )"
28 PATH="$VLC_TOOLS_PATH:$PATH"
31 ###
32 ### Get a sane environment, just in case
33 ###
34 CYGWIN=binmode
35 export CYGWIN
37 # Check for pkg-config
38 if ! "${PKG_CONFIG:-pkg-config}" --version >/dev/null 2>&1; then
39 echo 'Error: "pkg-config" is not installed.' >&2
40 exit 1
43 # Check for autopoint (GNU gettext)
44 export AUTOPOINT
45 test "$AUTOPOINT" || AUTOPOINT=autopoint
46 if ! "$AUTOPOINT" --dry-run --force >/dev/null 2>&1; then
47 AUTOPOINT=true
48 cat << EOF
49 NOTE: autopoint (GNU gettext-tools) appears to be missing or out-of-date.
50 Please install or update GNU gettext tools.
51 Otherwise, you will not be able to build a source tarball.
52 ==========================================================================
54 EOF
57 # Check for flex and bison
58 if ! flex --version >/dev/null 2>&1; then
59 echo "ERROR: flex is not installed." >&2
60 if ! test -f modules/codec/webvtt/CSSLexer.c; then
61 exit 1
65 if ! bison --version >/dev/null 2>&1; then
66 echo "ERROR: GNU bison is not installed." >&2
67 if ! test -f modules/codec/webvtt/CSSGrammar.c; then
68 exit 1
72 ###
73 ### classic bootstrap stuff
74 ###
76 autoreconf --install --force --verbose ${ACLOCAL_ARGS}
77 rm -f po/Makevars.template
80 ## files which need to be regenerated
82 rm -f stamp-h*
84 # Shut up
85 set +x
86 echo "Successfully bootstrapped"