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 <rem # videolan # org>
14 if test "$#" != "0"; then
16 echo " Calls autoreconf to generate m4 macros and prepare Makefiles."
20 ACLOCAL_ARGS
="-I m4 ${ACLOCAL_ARGS}"
23 ### Get a sane environment, just in case
28 # Check for contrib directory
29 if test -d extras
/contrib
/build
/bin
; then
30 PATH
="`pwd`/extras/contrib/build/bin:$PATH"
31 if test -d extras
/contrib
/build
/share
/aclocal
; then
32 ACLOCAL_ARGS
="${ACLOCAL_ARGS} -I extras/contrib/build/share/aclocal"
34 if test ".`uname -s`" = ".Darwin"; then
35 LD_LIBRARY_PATH
=.
/extras
/contrib
/build
/lib
:$LD_LIBRARY_PATH
36 DYLD_LIBRARY_PATH
=.
/extras
/contrib
/build
/lib
:$DYLD_LIBRARY_PATH
37 export LD_LIBRARY_PATH
38 export DYLD_LIBRARY_PATH
42 # Check for pkg-config
43 if ! "${PKG_CONFIG:-pkg-config}" --version >/dev
/null
2>&1; then
44 echo 'Error: "pkg-config" is not installed.' >&2
48 # Prepare m4/private.m4
49 rm -f m
4/private.
m4 && cat > m
4/private.
m4 << EOF
50 dnl Private VLC macros - generated by bootstrap
53 # Check for autopoint (GNU gettext)
55 test "$AUTOPOINT" || AUTOPOINT
=autopoint
56 if ! "$AUTOPOINT" --dry-run --force >/dev
/null
2>&1; then
59 NOTE: GNU gettext appears to be missing or out-of-date.
60 Please install or update GNU gettext.
61 Also check if you have cvs, a dependency of autopoint.
62 Otherwise, you will not be able to build a source tarball.
63 ==============================================================
69 ### Generate the modules makefile, by parsing modules/**/Modules.am
72 echo "generating modules/**/Makefile.am"
73 find modules
/ -name Modules.am | \
74 sed -ne 's,modules/\(.*\)/Modules.am,\1,p' | \
84 ### classic bootstrap stuff
87 # Automake complains if these are not present
89 cp -f INSTALL INSTALL.git
91 autoreconf
--install --force --verbose ${ACLOCAL_ARGS}
92 rm -f po
/Makevars.template ABOUT-NLS
94 mv -f INSTALL.git INSTALL
97 ## files which need to be regenerated
103 echo "Successfully bootstrapped"