Commit 86310d4c authored by Emanuele Aina's avatar Emanuele Aina

[Build] Add autogen.sh script to call `autoreconf -i`

Even when using autoreconf an autogen.sh script is usually expected, as
it save users from needing to know which flags to pass to autoreconf
(ie. '-i').

It is also usually responsible of launching autoreconf from the right
directory, calling utilities like intltoolize and gtkdocize, checking
out git submodules and running ./configure unless $NOCONFIGURE is set.
Signed-off-by: default avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 0a0871c6
......@@ -19,8 +19,7 @@ follows:
# cd dleyna-server
Configure and build
# ./autoreconf -i
# ./configure
# ./autogen.sh
# make
Final installation
......
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
# Derived from https://git.gnome.org/browse/glib/tree/autogen.sh
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
echo "*** No autoreconf found, please install it ***"
exit 1
fi
autoreconf --force --install --verbose || exit $?
cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
......@@ -4,8 +4,7 @@ if [ -f config.status ]; then
make maintainer-clean
fi
autoreconf -if && \
./configure --enable-maintainer-mode \
./autogen.sh --enable-maintainer-mode \
--enable-silent-rules \
--disable-optimization \
--enable-debug \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment