]> git.lyx.org Git - lyx.git/commitdiff
Remove the test for gettext; belongs in configure.
authorAngus Leeming <leeming@lyx.org>
Sat, 5 Mar 2005 15:26:00 +0000 (15:26 +0000)
committerAngus Leeming <leeming@lyx.org>
Sat, 5 Mar 2005 15:26:00 +0000 (15:26 +0000)
Exit 1 if autogen.sh exits abnormally.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9694 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
autogen.sh

index dd8cc74feb6b90d10e280bcd5459ebaf6ec91708..2fb6184bc7e1ad0b6a4cfc0726ddc5f81e6780d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
index c96884bd041a1e6e611177405e74d5bd383376cc..8e45b0f43d09b462d48c17d2e86af267cceb52e0 100755 (executable)
@@ -6,26 +6,6 @@ AUTOMAKE="automake -a -c --foreign"
 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`
 
@@ -33,7 +13,7 @@ test "$automake_version" != "" && {
     echo "Using $automake_version"
 } || {
     echo "LyX requires automake >= 1.5"
-    exit
+    exit 1
 }
 
 case $automake_version in
@@ -43,7 +23,7 @@ case $automake_version in
     
        echo "This automake version is not supported by LyX."
         echo "LyX only supports automake 1.[5-9]."
-        exit
+        exit 1
         ;;
 esac
                                                        
@@ -54,7 +34,7 @@ test "$autoversion" != "" && {
     echo "Using $autoversion"
 } || {
     echo "LyX requires autoconf >= 2.52"
-    exit
+    exit 1
 }
            
 case $autoversion in
@@ -64,7 +44,7 @@ case $autoversion in
     *)
        echo "This autoconf version is not supported by LyX."
        echo "LyX only supports autoconf 2.5[2-9]."
-       exit
+       exit 1
        ;;
 esac
 
@@ -83,7 +63,7 @@ for prog in $M4 gm4 gnum4 m4; do
 done
 if test x$GNUM4 = x ; then
        echo "not found."
-       exit
+       exit 1
 else
        echo `which $GNUM4`
 fi
@@ -104,7 +84,7 @@ if ( $ACLOCAL --version ) < /dev/null > /dev/null 2>&1; then
        echo "done."
 else
        echo "aclocal not found -- aborting"
-       exit
+       exit 1
 fi
 
 if ( $AUTOHEADER --version ) < /dev/null > /dev/null 2>&1; then
@@ -116,7 +96,7 @@ if ( $AUTOHEADER --version ) < /dev/null > /dev/null 2>&1; then
        echo "done."
 else
        echo "autoheader not found -- aborting"
-       exit
+       exit 1
 fi
 
 if ( $AUTOMAKE --version ) < /dev/null > /dev/null 2>&1; then
@@ -128,7 +108,7 @@ if ( $AUTOMAKE --version ) < /dev/null > /dev/null 2>&1; then
        echo "done."
 else
        echo "automake not found -- aborting"
-       exit
+       exit 1
 fi
 
 if ( $AUTOCONF --version ) < /dev/null > /dev/null 2>&1; then
@@ -140,7 +120,7 @@ if ( $AUTOCONF --version ) < /dev/null > /dev/null 2>&1; then
        echo "done."
 else
        echo "autoconf not found -- aborting"
-       exit
+       exit 1
 fi
 
 # Autogenerate lib/configure.m4.