https://github.com/videolan/vlc
Revision 454a9ef1263a13bc5a3df8ff0a7843e7e76e22bc authored by Steve Lhomme on 16 May 2018, 10:21:34 UTC, committed by Hugo Beauzée-Luyssen on 22 November 2018, 13:57:49 UTC
(cherry picked from commit 2916292eb7c3a3b77d5aea677372a8725b52a18c)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
1 parent 75e620a
Raw File
Tip revision: 454a9ef1263a13bc5a3df8ff0a7843e7e76e22bc authored by Steve Lhomme on 16 May 2018, 10:21:34 UTC
contrib: vpx: make sure we use pthreads-win32 on Windows
Tip revision: 454a9ef
bootstrap
#! /bin/sh

##  bootstrap file for the VLC media player
##
## Copyright (C) 2005-2008 the VideoLAN team
##
##  Authors: Sam Hocevar <sam@zoy.org>
##           Rémi Denis-Courmont <rem # videolan # org>

set -e

cd "$(dirname "$0")"

if test "$#" != "0"; then
  echo "Usage: $0"
  echo "  Calls autoreconf to generate m4 macros and prepare Makefiles."
  exit 1
fi

ACLOCAL_ARGS="-I m4 ${ACLOCAL_ARGS}"

# Check for tools directory
if test -d extras/tools/build/bin; then
  PATH="`pwd`/extras/tools/build/bin:$PATH"
fi

###
###  Get a sane environment, just in case
###
CYGWIN=binmode
export CYGWIN

# Check for pkg-config
if ! "${PKG_CONFIG:-pkg-config}" --version >/dev/null 2>&1; then
	echo 'Error: "pkg-config" is not installed.' >&2
	exit 1
fi

# Check for autopoint (GNU gettext)
export AUTOPOINT
test "$AUTOPOINT" || AUTOPOINT=autopoint
if ! "$AUTOPOINT" --dry-run --force >/dev/null 2>&1; then
	AUTOPOINT=true
	cat << EOF
NOTE: autopoint (GNU gettext-tools) appears to be missing or out-of-date.
Please install or update GNU gettext tools.
Otherwise, you will not be able to build a source tarball.
==========================================================================

EOF
fi

# Check for flex and bison
if ! flex --version >/dev/null 2>&1; then
	echo "ERROR: flex is not installed." >&2
	if ! test -f modules/codec/webvtt/CSSLexer.c; then
		exit 1
	fi
fi

if ! bison --version >/dev/null 2>&1; then
	echo "ERROR: GNU bison is not installed." >&2
	if ! test -f modules/codec/webvtt/CSSGrammar.c; then
		exit 1
	fi
fi

###
###  classic bootstrap stuff
###

autoreconf --install --force --verbose ${ACLOCAL_ARGS}
rm -f po/Makevars.template

##
##  files which need to be regenerated
##
rm -f stamp-h*

# Shut up
set +x
echo "Successfully bootstrapped"
back to top