Skip to content

Commit

Permalink
Do run autopoint if it works
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Mar 25, 2008
1 parent 494eab7 commit f895fb1
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ else
PKGCONFIG=no
fi

# Check for autopoint (GNU gettext)
export AUTOPOINT
test "$AUTOPOINT" || AUTOPOINT=autopoint
if ! "$AUTOPOINT" --dry-run --force >/dev/null 2>&1; then
AUTOPOINT=true
echo > ABOUT-NLS
fi

##
## Generate the modules makefile, by parsing modules/**/Modules.am
##
Expand Down Expand Up @@ -112,8 +120,9 @@ echo > vlc-config.in
echo > ABOUT-NLS
cp -f INSTALL INSTALL.git

AUTOPOINT=true autoreconf --install --force --verbose ${ACLOCAL_ARGS}
rm -f po/Makevars.template
autoreconf --install --force --verbose ${ACLOCAL_ARGS}
rm -f po/Makevars.template ABOUT-NLS
echo > ABOUT-NLS
mv -f INSTALL.git INSTALL

##
Expand All @@ -129,6 +138,16 @@ set +x
##
## Tell the user about gettext, pkg-config and sed
##
if [ "$AUTOPOINT" = "true" ]; then
cat << EOF
==============================================================
NOTE: GNU gettext appears to be missing or out-of-date.
Please install or update GNU gettext.
Otherwise, you will not be able to build a source tarball.
EOF
fi

if [ "$PKGCONFIG" = "no" ]; then
cat << EOF
Expand Down

0 comments on commit f895fb1

Please sign in to comment.