diff options
author | Colin Walters <walters@verbum.org> | 2011-07-18 10:59:54 -0400 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-07-19 22:59:26 +0200 |
commit | b59ab92e640e13d10484fffc74ed6a218930c6ab (patch) | |
tree | a3998af4be4b440ad4ed46b82546e1adbb8c2be4 /autogen.sh | |
parent | 69dd8b722bcb1a76ff586e71c580f6844412abb9 (diff) |
build: Make autogen.sh work
* We were missing a call to gettextize, which is what copies in config.rpath
* Delete ABOUT-NLS, it is copied in by gettextize
* While we're here, take a page from gtk+'s autogen.sh and just use autoreconf,
instead of specifying everything.
* We need to always have an m4/ directory, so that gettextize works,
so we make a dummy empty file
* Apparently gettextize is totally insane, requiring user input etc. Copy
in some hacks from Avahi's autogen.sh to work around this.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -12,10 +12,15 @@ fi set -x -aclocal -libtoolize -autoheader -automake -a -autoconf -./configure "$@" +# Copied from avahi's autogen.sh to work around gettext braindamage +rm -f Makefile.am~ configure.ac~ +# Evil, evil, evil, evil hack +sed 's/read dummy/\#/' `which gettextize` | sh -s -- --copy --force --no-changelog +test -f Makefile.am~ && mv Makefile.am~ Makefile.am +test -f configure.ac~ && mv configure.ac~ configure.ac + +autoreconf --force --install --verbose +if test x"$NOCONFIGURE" = x; then + exec ./configure "$@" +fi |