X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=autogen.sh;h=baee6c3e6971398a329e2f0af4a039d506e1e970;hb=8ba6b8463c9b53bcd6b05574d639eb9ac099a37a;hp=1a114eab0757191052fdd990f5a9e86724a86b5b;hpb=629401644d03c1fc57895409b74ea8267c276a4b;p=ncmpc.git diff --git a/autogen.sh b/autogen.sh index 1a114ea..baee6c3 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,16 +1,14 @@ -#! /bin/sh +#!/bin/sh -e -# Generate config.h.in -echo "touch stamp-h" -touch stamp-h +rm -rf config.cache build +mkdir build + +# create po/Makefile.in.in +glib-gettextize --force --copy # add aclocal.m4 to current dir echo "aclocal..." -aclocal -I $PWD/m4 - -# rerun libtoolize -echo "libtoolize..." -libtoolize --force +aclocal -I m4 # This generates the configure script from configure.in echo "autoconf..." @@ -25,5 +23,7 @@ automake --add-missing # configure -echo "./configure $*" -./configure $* +if test x$NOCONFIGURE = x; then + echo "./configure $*" + ./configure $* +fi