Exit 1 if autogen.sh exits abnormally.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9694
a592a061-630c-0410-9148-
cb99ea01b6c8
+2005-03-05 Angus Leeming <leeming@lyx.org>
+
+ * autogen.sh: remove test for gettext. Belongs in configure.
+ Return 1 if autogen.sh exits abnormally.
+
2005-03-02 Lars Gullik Bjonnes <larsbj@gullik.net>
* configure.ac: dont setup gnome/Makefile
2005-03-02 Lars Gullik Bjonnes <larsbj@gullik.net>
* configure.ac: dont setup gnome/Makefile
AUTOCONF="autoconf"
ACINCLUDE_FILES="lyxinclude.m4 libtool.m4 xforms.m4 qt.m4 gtk--.m4 gnome--.m4 gnome.m4 aspell.m4 pspell.m4 cygwin.m4 pkg.m4"
AUTOCONF="autoconf"
ACINCLUDE_FILES="lyxinclude.m4 libtool.m4 xforms.m4 qt.m4 gtk--.m4 gnome--.m4 gnome.m4 aspell.m4 pspell.m4 cygwin.m4 pkg.m4"
-# Discover what version of gettext we are using.
-gettext_version=`gettext --version 2>/dev/null | head -n 1`
-
-test "$gettext_version" != "" && {
- echo "Using $gettext_version"
-} || {
- echo "LyX requires getttext >= 0.12"
- exit
-}
-
-case $gettext_version in
- *' '0.1[2-4]*)
- ;;
- *)
- echo "This gettext version is not supported by LyX."
- echo "LyX supports only gettext 0.1[2-4]."
- exit
- ;;
-esac
-
# Discover what version of automake we are using.
automake_version=`$AUTOMAKE --version 2>/dev/null | head -n 1`
# Discover what version of automake we are using.
automake_version=`$AUTOMAKE --version 2>/dev/null | head -n 1`
echo "Using $automake_version"
} || {
echo "LyX requires automake >= 1.5"
echo "Using $automake_version"
} || {
echo "LyX requires automake >= 1.5"
}
case $automake_version in
}
case $automake_version in
echo "This automake version is not supported by LyX."
echo "LyX only supports automake 1.[5-9]."
echo "This automake version is not supported by LyX."
echo "LyX only supports automake 1.[5-9]."
echo "Using $autoversion"
} || {
echo "LyX requires autoconf >= 2.52"
echo "Using $autoversion"
} || {
echo "LyX requires autoconf >= 2.52"
*)
echo "This autoconf version is not supported by LyX."
echo "LyX only supports autoconf 2.5[2-9]."
*)
echo "This autoconf version is not supported by LyX."
echo "LyX only supports autoconf 2.5[2-9]."
done
if test x$GNUM4 = x ; then
echo "not found."
done
if test x$GNUM4 = x ; then
echo "not found."
else
echo `which $GNUM4`
fi
else
echo `which $GNUM4`
fi
echo "done."
else
echo "aclocal not found -- aborting"
echo "done."
else
echo "aclocal not found -- aborting"
fi
if ( $AUTOHEADER --version ) < /dev/null > /dev/null 2>&1; then
fi
if ( $AUTOHEADER --version ) < /dev/null > /dev/null 2>&1; then
echo "done."
else
echo "autoheader not found -- aborting"
echo "done."
else
echo "autoheader not found -- aborting"
fi
if ( $AUTOMAKE --version ) < /dev/null > /dev/null 2>&1; then
fi
if ( $AUTOMAKE --version ) < /dev/null > /dev/null 2>&1; then
echo "done."
else
echo "automake not found -- aborting"
echo "done."
else
echo "automake not found -- aborting"
fi
if ( $AUTOCONF --version ) < /dev/null > /dev/null 2>&1; then
fi
if ( $AUTOCONF --version ) < /dev/null > /dev/null 2>&1; then
echo "done."
else
echo "autoconf not found -- aborting"
echo "done."
else
echo "autoconf not found -- aborting"
fi
# Autogenerate lib/configure.m4.
fi
# Autogenerate lib/configure.m4.