comparison autogen.sh @ 11:3c3b40dbde11

######## DO NOT BASE ENHANCEMENTS OR TRANSLATION UPDATES ON CODE IN THIS CVS! This CVS is never up to date with current development and is provided solely for reference purposes, please use the latest official release package when making any changes or translation updates. ######## Sync to updated autogen.sh so building is actually possible.
author gqview
date Tue, 01 Mar 2005 14:50:03 +0000
parents b3e0e515fabf
children e3f10b6046ab
comparison
equal deleted inserted replaced
10:6d50eaba8e4b 11:3c3b40dbde11
22 echo "Download the appropriate package for your distribution," 22 echo "Download the appropriate package for your distribution,"
23 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" 23 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
24 DIE=1 24 DIE=1
25 } 25 }
26 26
27 grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && { 27 grep "^AM_GLIB_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
28 grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \ 28 grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
29 (gettext --version) < /dev/null > /dev/null 2>&1 || { 29 (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || {
30 echo 30 echo
31 echo "**Error**: You must have \`gettext' installed." 31 echo "**Error**: You must have \`glib-gettextize' installed."
32 echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz" 32 echo "glib-gettextize is a part of glib"
33 echo "(or a newer version if it is available)"
34 DIE=1 33 DIE=1
35 } 34 }
36 } 35 }
37 36
38 # if no automake, don't bother testing for aclocal 37 # if no automake, don't bother testing for aclocal
76 aclocalinclude="$aclocalinclude -I $k" 75 aclocalinclude="$aclocalinclude -I $k"
77 ##else 76 ##else
78 ## echo "**Warning**: No such directory \`$k'. Ignored." 77 ## echo "**Warning**: No such directory \`$k'. Ignored."
79 fi 78 fi
80 done 79 done
81 if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then 80 if grep "^AM_GLIB_GNU_GETTEXT" configure.in >/dev/null; then
82 if grep "sed.*POTFILES" configure.in >/dev/null; then 81 if grep "sed.*POTFILES" configure.in >/dev/null; then
83 : do nothing -- we still have an old unmodified configure.in 82 : do nothing -- we still have an old unmodified configure.in
84 else 83 else
85 echo "Creating $dr/aclocal.m4 ..." 84 echo "Creating $dr/aclocal.m4 ..."
86 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 85 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
87 echo "Running gettextize... Ignore non-fatal messages." 86 echo "Running glib-gettextize..."
88 echo "no" | gettextize --force --copy 87 echo "no" | glib-gettextize --force --copy
89 echo "Making $dr/aclocal.m4 writable ..." 88 echo "Making $dr/aclocal.m4 writable ..."
90 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 89 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
91 fi 90 fi
92 fi 91 fi
93 echo "Running aclocal $aclocalinclude ..." 92 echo "Running aclocal $aclocalinclude ..."
94 aclocal $aclocalinclude 93 aclocal $aclocalinclude
95 if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then 94 if grep "^AC_CONFIG_HEADER" configure.in >/dev/null; then
96 echo "Running autoheader..." 95 echo "Running autoheader..."
97 autoheader 96 autoheader
98 fi 97 fi
99 echo "Running automake --gnu $am_opt ..." 98 echo "Running automake --gnu $am_opt ..."
100 automake --add-missing --gnu $am_opt 99 automake --add-missing --gnu $am_opt