summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh17
1 files changed, 11 insertions, 6 deletions
diff --git a/autogen.sh b/autogen.sh
index 2c35908..2b68539 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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