X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bootstrap;h=133f563aecd3396dfed24c8317ff9cbb69973bf2;hb=9d8a2d05f9d47205bd4e4670e599fb6a5a2ad94d;hp=7c57c59adc7823aec8e8fa5f3dc8c0f499982e16;hpb=e8fb7ad338ce53aa96f1e259531ee1c2590dbd94;p=vlc diff --git a/bootstrap b/bootstrap index 7c57c59adc..133f563aec 100755 --- a/bootstrap +++ b/bootstrap @@ -1,7 +1,7 @@ #! /bin/sh ## bootstrap file for the VLC media player -## $Id: bootstrap,v 1.43 2003/02/03 21:47:08 sam Exp $ +## $Id: bootstrap,v 1.47 2003/03/25 23:13:58 sam Exp $ ## ## Authors: Samuel Hocevar @@ -45,6 +45,8 @@ if test x`uname -s` = xDarwin; then ulimit -s 20000; fi printf "generating Modules.am and configure.ac" +rm -f Modules.am configure.ac + echo > Modules.am echo > configure.ac @@ -171,8 +173,20 @@ echo "done." ### classic bootstrap stuff ### set -x -rm -f aclocal.m4 m4/oldgettext.m4 configure config.guess config.log config.sub ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh + +# remove autotools cruft +rm -f aclocal.m4 configure config.log +# remove old autotools extra cruft +rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh +# remove new autotools extra cruft +(cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh) +# remove libtool cruft +rm -f ltmain.sh libtool ltconfig +# remove gettext cruft +rm -f m4/oldgettext.m4 ABOUT-NLS rm -Rf intl +# update m4 local macros +rm -f m4/vlc.m4 && echo "dnl Private VLC macros" > m4/vlc.m4 # Check for gettext if gettextize --version >/dev/null 2>&1 @@ -188,17 +202,28 @@ else echo > ABOUT-NLS mkdir -p intl echo > intl/Makefile.am - echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' > m4/oldgettext.m4 + echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' >> m4/vlc.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 + echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' >> m4/vlc.m4 GETTEXT=no fi +# Check for pkg-config +if pkg-config --version >/dev/null 2>&1 +then + # We have pkg-config, everything is cool. + PKGCONFIG=yes +else + # Not present, use a workaround. + echo 'AC_DEFUN([PKG_CHECK_MODULES], [])' > m4/vlc.m4 + PKGCONFIG=no +fi + # Check for automake amvers="none" if automake-1.7 --version >/dev/null 2>&1 @@ -286,7 +311,7 @@ rm -f mozilla/vlcintf.h set +x ## -## Tell the user about gettext and sed +## Tell the user about gettext, pkg-config and sed ## case "$GETTEXT" in yes) @@ -312,6 +337,20 @@ EOF ;; esac +case "$PKGCONFIG" in + yes) + ;; + no) + cat << EOF + +============================================================== +NOTE: you do not have the "pkg-config" utility on your system; +detection of the Gtk-2.0 and GNOME 2.0 libraries will not be +reliable. +EOF + ;; +esac + case "$AUTOMAKESUCKS" in no) ;;