Commit 019f1d06 authored by Sam Hocevar's avatar Sam Hocevar

* ./bootstrap: added warning messages for old automake versions.

parent 2cb2200b
#! /bin/sh #! /bin/sh
## bootstrap file for vlc, the VideoLAN Client ## bootstrap file for vlc, the VideoLAN Client
## $Id: bootstrap,v 1.33 2002/11/21 13:53:31 sam Exp $ ## $Id: bootstrap,v 1.34 2002/12/17 14:39:05 sam Exp $
## ##
## Authors: Samuel Hocevar <sam@zoy.org> ## Authors: Samuel Hocevar <sam@zoy.org>
...@@ -292,6 +292,7 @@ fi ...@@ -292,6 +292,7 @@ fi
PERLSUCKS=no PERLSUCKS=no
AUTOMAKESUCKS=no AUTOMAKESUCKS=no
INSTALLSUCKS=no
## ##
## Generate the modules makefile, by parsing modules/**/Modules.am ## Generate the modules makefile, by parsing modules/**/Modules.am
...@@ -466,6 +467,7 @@ else ...@@ -466,6 +467,7 @@ else
else else
if automake-1.5 --version >/dev/null 2>&1 if automake-1.5 --version >/dev/null 2>&1
then then
INSTALLSUCKS=yes
amvers="-1.5" amvers="-1.5"
else else
if automake --version > /dev/null 2>&1 if automake --version > /dev/null 2>&1
...@@ -474,6 +476,8 @@ else ...@@ -474,6 +476,8 @@ else
case $amvers in case $amvers in
1.6|1.6.0|1.6.1) 1.6|1.6.0|1.6.1)
AUTOMAKESUCKS=yes ;; AUTOMAKESUCKS=yes ;;
1.5.*)
INSTALLSUCKS=yes ;;
esac esac
if expr "$amvers" "<" "1.5" > /dev/null 2>&1 if expr "$amvers" "<" "1.5" > /dev/null 2>&1
...@@ -503,12 +507,14 @@ case "$PERLSUCKS" in ...@@ -503,12 +507,14 @@ case "$PERLSUCKS" in
;; ;;
yes) yes)
set +x set +x
echo "" cat << EOF
echo "==========================================================="
echo "IMPORTANT NOTE: automake failed. On certain systems this is" =======================================================================
echo "because of insufficient stack size. Please set the stack" IMPORTANT NOTE: automake failed, please check the error messages. If it
echo "size to something bigger or unlimited (\`unlimit stacksize')" actually segfaulted, it might be because of insufficient stack size; set
echo "and try again." the stack size to something bigger or unlimited (\`unlimit stacksize')
and try again.
EOF
exit 1 exit 1
;; ;;
esac esac
...@@ -572,17 +578,21 @@ case "$GETTEXT" in ...@@ -572,17 +578,21 @@ case "$GETTEXT" in
yes) yes)
;; ;;
no) no)
echo "" cat << EOF
echo "==========================================================="
echo "IMPORTANT NOTE: you do not have gettext installed on your" ===========================================================
echo "system. The vlc build will work, but you will not have" IMPORTANT NOTE: you do not have gettext installed on your
echo "internationalization support. We suggest installing gettext." system. The vlc build will work, but you will not have
internationalization support. We suggest installing gettext.
EOF
;; ;;
old) old)
echo "" cat << EOF
echo "=========================================================="
echo "NOTE: you have an old version of gettext installed on your" ==========================================================
echo "system. We suggest upgrading to gettext 0.11.3 or later." NOTE: you have an old version of gettext installed on your
system. We suggest upgrading to gettext 0.11.3 or later.
EOF
;; ;;
esac esac
...@@ -590,12 +600,29 @@ case "$AUTOMAKESUCKS" in ...@@ -590,12 +600,29 @@ case "$AUTOMAKESUCKS" in
no) no)
;; ;;
yes) yes)
echo "" cat << EOF
echo "============================================================="
echo "IMPORTANT NOTE: your version of automake has a bug which will" =============================================================
echo "prevent proper plugin compilation. Either compile VLC with" IMPORTANT NOTE: your version of automake has a bug which will
echo "the --disable-plugins flag, or use a version of automake newer" prevent proper plugin compilation. Either compile VLC with
echo "than 1.6.1 (1.6.2 is OK, and so are the 1.5 series)." the --disable-plugins flag, or use a version of automake newer
than 1.6.1 (1.6.2 is OK, and so are the 1.5 series).
EOF
;;
esac
case "$INSTALLSUCKS" in
no)
;;
yes)
cat << EOF
=============================================================
IMPORTANT NOTE: your version of automake has a bug which will
prevent proper installation. Do not use "make install" with this
version of automake, or use a version of automake newer than 1.5
(such as 1.6 or 1.7).
EOF
;; ;;
esac esac
...@@ -603,12 +630,14 @@ case "$SEDSUCKS" in ...@@ -603,12 +630,14 @@ case "$SEDSUCKS" in
no) no)
;; ;;
yes) yes)
echo "" cat << EOF
echo "============================================================="
echo "IMPORTANT NOTE: the version of 'sed' on your system is unable" =============================================================
echo "to handle long lines. bootstrap will try its best to generate" IMPORTANT NOTE: the version of 'sed' on your system is unable
echo "a correct Makefile, but you should expect problems. We highly" to handle long lines. bootstrap will try its best to generate
echo "recommend installing GNU sed." a correct Makefile, but you should expect problems. We highly
recommend installing GNU sed.
EOF
;; ;;
esac esac
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment