Skip to content

Commit

Permalink
[autobuild] use autoreconf instead of calling tools manually; update …
Browse files Browse the repository at this point in the history
….gitignore
  • Loading branch information
stbuehler committed Nov 10, 2013
1 parent 0d40b25 commit b329a39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 30 deletions.
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
*build/
autom4te.cache/
m4/
Makefile.in
aclocal.m4
ar-lib
autom4te.cache
compile
config.guess
config.sub
configure
depcomp
include/lighttpd/config.h.in
include/lighttpd/config.h.in~
install-sh
ltmain.sh
m4
missing
include/lighttpd/config.h.in
30 changes: 3 additions & 27 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -1,38 +1,14 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

if which glibtoolize >/dev/null 2>&1; then
LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize}
else
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
fi
LIBTOOLIZE_FLAGS="--copy --force"
ACLOCAL=${ACLOCAL:-aclocal}
AUTOHEADER=${AUTOHEADER:-autoheader}
AUTOMAKE=${AUTOMAKE:-automake}
AUTOMAKE_FLAGS="--add-missing --copy"
AUTOCONF=${AUTOCONF:-autoconf}

ARGV0=$0

set -e

if [ ! -f configure.ac -o ! -f COPYING ]; then
echo "Doesn't look like you're in the source directory" >&2
exit 1
fi

run() {
echo "$ARGV0: running \`$@'"
$@
}

run rm -f aclocal.m4 ar-lib config.guess config.sub configure depcomp instal-sh ltmain.sh missing
run rm -rf m4 autom4te.cache

run $LIBTOOLIZE $LIBTOOLIZE_FLAGS
run $ACLOCAL $ACLOCAL_FLAGS
run $AUTOHEADER
run $AUTOMAKE $AUTOMAKE_FLAGS
run $AUTOCONF
# old autoreconf/aclocal versions fail hard if m4 doesn't exist
mkdir -p m4
autoreconf --force --install
echo "Now type './configure ...' and 'make' to compile."

0 comments on commit b329a39

Please sign in to comment.