#! /bin/sh
-## bootstrap file for vlc, the VideoLAN Client
-## $Id: bootstrap,v 1.39 2003/01/27 23:42:59 sam Exp $
+## bootstrap file for the VLC media player
+## $Id: bootstrap,v 1.43 2003/02/03 21:47:08 sam Exp $
##
## Authors: Samuel Hocevar <sam@zoy.org>
GETTEXT=yes
else
# User's gettext is too old. try to continue anyway.
+ echo > ABOUT-NLS
mkdir -p intl
echo > intl/Makefile.am
echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' > m4/oldgettext.m4
GETTEXT=old
fi;else
# we don't have gettext. grmbl. try to continue anyway.
+ echo > ABOUT-NLS
mkdir -p intl
echo > intl/Makefile.am
echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' > m4/oldgettext.m4
aclocal${amvers} -I m4 || exit 1
autoheader || exit 1
-automake${amvers} --foreign --add-missing --copy || PERLSUCKS=yes
+automake${amvers} --add-missing --copy || PERLSUCKS=yes
case "$PERLSUCKS" in
no)
##
set +x
-##
-## Glade sometimes sucks
-##
-echo "workarounds for annoying glade features"
-for file in gnome_interface.c gtk_interface.c
-do
-if grep "DO NOT EDIT THIS FILE" modules/gui/gtk/$file 2>&1 > /dev/null
-then
- rm -f /tmp/$$.$file.bak
- cat > /tmp/$$.$file.bak << EOF
-/* This file was created automatically by glade and fixed by bootstrap */
-
-#include <vlc/vlc.h>
-EOF
- sed -e 1,7d \
- -e 's#_("-:--:--")#"-:--:--"#' \
- -e 's#_("---")#"---"#' \
- -e 's#_("--")#"--"#' \
- -e 's#_("/dev/dvd")#"/dev/dvd"#' \
- -e 's#_(\("./."\))#\1#' \
- < modules/gui/gtk/$file >> /tmp/$$.$file.bak
- mv -f /tmp/$$.$file.bak modules/gui/gtk/$file
-fi
-done
-
-file=gtk_support.h
-if grep "DO NOT EDIT THIS FILE" modules/gui/gtk/$file 2>&1 > /dev/null
-then
- rm -f /tmp/$$.$file.bak
- sed -e 's/DO NOT EDIT THIS FILE.*/This file was created automatically by glade and fixed by bootstrap/ ; s/#if.*ENABLE_NLS.*/#if defined( ENABLE_NLS ) \&\& defined ( HAVE_GETTEXT )/' < modules/gui/gtk/$file > /tmp/$$.$file.bak
- mv -f /tmp/$$.$file.bak modules/gui/gtk/$file
-fi
-
##
## Tell the user about gettext and sed
##