aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2012-07-03 01:26:54 +0200
committerJan Engelhardt <jengelh@inai.de>2012-07-03 01:27:13 +0200
commitcb9540a5b8dcc6640e39fe9cc948d385bfa82664 (patch)
tree27cfd5b1a75098924c2d7f086b076a0dd58df099 /autogen.sh
parent089a5419e7c3a5773f92ec46c86780114a1a560c (diff)
downloadbindfs-cb9540a5b8dcc6640e39fe9cc948d385bfa82664.tar.gz
build: utilize autoreconf in autogen.sh
Calling the subtools is boilerplate which has already been condensed: use autoreconf.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh40
1 files changed, 1 insertions, 39 deletions
diff --git a/autogen.sh b/autogen.sh
index 370a613..e45fff9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,44 +1,6 @@
#!/bin/bash
-# Enable environment variables to override tool commands.
-: ${AUTOCONF=autoconf}
-: ${AUTOHEADER=autoheader}
-: ${AUTOMAKE=automake}
-: ${ACLOCAL=aclocal}
-: ${LIBTOOLIZE=libtoolize}
-
-# Apple calls the GNU libtoolize "glibtoolize"
-if [[ ! -x `which "$LIBTOOLIZE"` ]]; then
- LIBTOOLIZE=glibtoolize
-fi
-if [[ ! -x `which "$LIBTOOLIZE"` ]]; then
- echo "Cannot find libtoolize"
- exit 1
-fi
-
-# Add /usr/local/share/aclocal to aclocal's search path
-if [[ -d /usr/local/share/aclocal ]]; then
- ACLOCAL="$ACLOCAL -I /usr/local/share/aclocal"
-fi
-
-rm -rf autom4te.cache
-rm -f aclocal.m4
-rm -f missing mkinstalldirs depcomp install-sh libtool
-
-echo "Running $ACLOCAL..."
-$ACLOCAL || exit 1
-
-echo "Running $AUTOHEADER..."
-$AUTOHEADER || exit 1
-
-echo "Running $AUTOCONF..."
-$AUTOCONF || exit 1
-
-echo "Running $LIBTOOLIZE..."
-$LIBTOOLIZE --automake --copy --force || exit 1
-
-echo "Running $AUTOMAKE..."
-$AUTOMAKE -a -c || exit 1
+autoreconf -fi
if [ "$1" == "-d" ]; then
shift;