forked from videolan/vlc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap
executable file
·67 lines (53 loc) · 1.39 KB
/
bootstrap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#! /bin/sh
## bootstrap file for the VLC media player
##
## Copyright (C) 2005-2008 the VideoLAN team
##
## Authors: Sam Hocevar <[email protected]>
## 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
###
### 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"