3 ## bootstrap file for the VLC media player
5 ## Copyright (C) 2005-2008 the VideoLAN team
7 ## Authors: Sam Hocevar <sam@zoy.org>
8 ## Rémi Denis-Courmont
14 if test "$#" != "0"; then
16 echo " Calls autoreconf to generate m4 macros and prepare Makefiles." >&2
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"
32 ### Get a sane environment, just in case
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
43 # Check for autopoint (GNU gettext)
45 test "$AUTOPOINT" || AUTOPOINT=autopoint
46 if ! "$AUTOPOINT" --dry-run --force >/dev/null 2>&1; then
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 ==========================================================================
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
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
73 ### classic bootstrap stuff
76 autoreconf --install --force --verbose ${ACLOCAL_ARGS}
77 rm -f po/Makevars.template
80 ## files which need to be regenerated
86 echo "Successfully bootstrapped"