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 pkg-config
29 if ! "${PKG_CONFIG:-pkg-config}" --version >/dev/null 2>&1; then
30 echo 'Error: "pkg-config" is not installed.' >&2
34 # Prepare m4/private.m4
35 rm -f m4/private.m4 && cat > m4/private.m4 << EOF
36 dnl Private VLC macros - generated by bootstrap
39 # Check for autopoint (GNU gettext)
41 test "$AUTOPOINT" || AUTOPOINT=autopoint
42 if ! "$AUTOPOINT" --dry-run --force >/dev/null 2>&1; then
45 NOTE: GNU gettext appears to be missing or out-of-date.
46 Please install or update GNU gettext.
47 Also check if you have cvs, a dependency of autopoint.
48 Otherwise, you will not be able to build a source tarball.
49 ==============================================================
55 ### Generate the modules makefile, by parsing modules/**/Modules.am
58 echo "generating modules/**/Makefile.am"
59 find modules/ -name Modules.am | \
60 sed -ne 's,modules/\(.*\)/Modules.am,\1,p' | \
70 ### classic bootstrap stuff
73 # Automake complains if these are not present
75 cp -f INSTALL INSTALL.git
77 autoreconf --install --force --verbose ${ACLOCAL_ARGS}
78 rm -f po/Makevars.template ABOUT-NLS
80 mv -f INSTALL.git INSTALL
83 ## files which need to be regenerated
89 echo "Successfully bootstrapped"