-rm -f aclocal.m4 configure config.guess config.log config.sub ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh
-
-# Check for gettext
-if gettextize --version >/dev/null 2>&1
-then
-if expr `gettextize --version | sed -e '1s/[^0-9]*//' -e q` \
- '>' 0.11.3 >/dev/null 2>&1
-then
- # We have gettext, and a recent version! Everything is cool.
- autopoint --force
- rm -f m4/Makefile.am
- echo 'EXTRA_DIST = codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4' > m4/Makefile.am
- GETTEXT=yes
-else
- # What?! User is not using a recent version of gettext? We'll have to
- # cheat a bit, then.
- rm -f po/ChangeLog~
- aclocaldir=`gettextize --copy --force | grep '^from the' | cut -f3 -d' '`
- # Yuck!
- test -f po/ChangeLog~ && mv po/ChangeLog~ po/ChangeLog
- mkdir -p m4
- # Yuck! - don't copy anything, it makes old autoconf barf.
- #for file in codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 \
- # lcmessage.m4 progtest.m4
- # do cp ${aclocaldir}/${file} m4/
- #done
- # Yuck!
- echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' > m4/gettext.m4
- GETTEXT=old
-fi;else
- # we don't have gettext. grmbl. try to continue anyway.
- mkdir -p intl
- echo > intl/Makefile.am
- mkdir -p m4
- echo > m4/Makefile.am
- echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' > m4/gettext.m4
- echo 'AC_DEFUN([AM_GNU_GETTEXT], [])' >> m4/gettext.m4
- GETTEXT=no
-fi