[vlc-devel] commit: Do run autopoint if it works ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Mar 25 17:55:49 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Tue Mar 25 18:55:30 2008 +0200| [f895fb1d94f7bd854b916b2d687f3e5781c51d85]
Do run autopoint if it works
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f895fb1d94f7bd854b916b2d687f3e5781c51d85
---
bootstrap | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/bootstrap b/bootstrap
index 39f493c..f6e67db 100755
--- a/bootstrap
+++ b/bootstrap
@@ -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
##
@@ -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
##
@@ -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
More information about the vlc-devel
mailing list