# HG changeset patch # User Christian Hammond # Date 1029693643 0 # Node ID 02a10c03e3e1bdd4bc8fea8e32890baeef3c5cae # Parent 3fa89049fe6c13abddc119248cf2695d5d1f23cd [gaim-migrate @ 3426] Now we use autopoint. Sadly, nothing has changed. committer: Tailor Script diff -r 3fa89049fe6c -r 02a10c03e3e1 autogen.sh --- a/autogen.sh Sun Aug 18 17:37:15 2002 +0000 +++ b/autogen.sh Sun Aug 18 18:00:43 2002 +0000 @@ -10,11 +10,18 @@ exit 1 } -(gettextize --version) < /dev/null > /dev/null 2>&1 || { - echo; - echo "You must have gettext installed to compile Gaim"; - echo; - exit; +USE_AUTOPOINT=1 + +(autopoint --version) < /dev/null > /dev/null 2>&1 || { + + USE_AUTOPOINT=0 + + (gettextize --version) < /dev/null > /dev/null 2>&1 || { + echo; + echo "You must have gettext installed to compile Gaim"; + echo; + exit; + } } (libtoolize --version) < /dev/null > /dev/null 2>&1 || { @@ -53,31 +60,22 @@ echo "Running gettextize, please ignore non-fatal messages...." -# Get the major version of gettext. -GETTEXT_VER=`gettextize --version | sed -n 's/^.*[0-9]\+\.\([0-9]\+\)\..*$/\1/p'` - -# Decide how we want to run gettext. -if [ $GETTEXT_VER -eq 11 ]; then +if [ $USE_AUTOPOINT -eq 1 ]; then mv -f m4 m4~ - # Gettext is pure evil. It DEMANDS that we press Return no matter - # what. This gets rid of their happy "feature" of doom. - sed 's:read .*< /dev/tty::' `which gettextize` > gaim-gettextize - chmod +x gaim-gettextize - echo n | ./gaim-gettextize --copy --force --intl --no-changelog || abort - rm gaim-gettextize + echo n | autopoint --force || exit; - # Now restore the things that brain-dead gettext modified. + # Now restore the things that brain-dead gettext modified. [ -e configure.in~ ] && mv -f configure.in~ configure.in [ -e configure.ac~ ] && mv -f configure.ac~ configure.ac [ -e Makefile.am~ ] && mv -f Makefile.am~ Makefile.am rm -rf m4 mv -f m4~ m4 - mv -f po/Makevars.template po/Makevars else echo n | gettextize --copy --force || exit; fi + echo "Running libtoolize, please ignore non-fatal messages...." echo n | libtoolize --copy --force || exit;