summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authordevzero2000 <devzero2000>2010-05-18 16:45:52 +0000
committerdevzero2000 <devzero2000>2010-05-18 16:45:52 +0000
commitbfd0c5e6d5416bd0ee29074283727ed3231f905b (patch)
tree3576453995c045e9a7dec96f32054287ab40fdf0 /autogen.sh
parent68bf8cc5ccd3bcfa9754228bf685e3256bc61ed8 (diff)
downloadlibpopt-bfd0c5e6d5416bd0ee29074283727ed3231f905b.tar.gz
update to new autofu/automagic. Do make distcheck work
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh32
1 files changed, 4 insertions, 28 deletions
diff --git a/autogen.sh b/autogen.sh
index 63d786c..a1322a8 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,10 +1,4 @@
#!/bin/sh
-
-srcdir="`dirname $0`"
-test -z "$srcdir" && srcdir=.
-
-THEDIR="`pwd`"
-
libtoolize=`which glibtoolize 2>/dev/null`
case $libtoolize in
/*) ;;
@@ -14,25 +8,7 @@ case $libtoolize in
*) libtoolize=libtoolize
esac
esac
-
-cd "$srcdir"
-$libtoolize --copy --force
-gettextize --copy --force --no-changelog
-perl -p -i~ -e 's/(po\/Makefile\.in)\s+po\/Makefile\.in/$1/' configure.ac
-perl -p -i~ -e 's/(SUBDIRS\s+=\s+po)\s+po/$1/' Makefile.am
-aclocal -I m4
-autoheader
-automake -Wall -Wno-override -a -c
-autoconf
-
-if [ "$1" = "--noconfigure" ]; then
- exit 0;
-fi
-
-cd "$THEDIR"
-
-if [ X"$@" = X -a "X`uname -s`" = "XLinux" ]; then
- $srcdir/configure --prefix=/usr --libdir=/lib "$@"
-else
- $srcdir/configure "$@"
-fi
+find . -name "autom4te.cache" | xargs rm -rf
+[ ! -d m4 ] && mkdir m4
+[ ! -d build-aux ] && mkdir build-aux
+autopoint -f && autoreconf -vfi