summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Aina <emanuele.aina@collabora.com>2013-05-02 10:20:05 +0100
committerEmanuele Aina <emanuele.aina@collabora.com>2013-05-02 16:44:20 +0100
commit80e03daff50cd484b842df8d13bd6fc46922dd95 (patch)
tree2e624464b31b63d60a471f57d0f8a72ec528951e
parentd53eba90bf4eb3192a79cf1cd003072d3bf50753 (diff)
downloaddleyna-connector-dbus-80e03daff50cd484b842df8d13bd6fc46922dd95.tar.gz
[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: Emanuele Aina <emanuele.aina@collabora.com>
-rw-r--r--README3
-rwxr-xr-xautogen.sh20
-rwxr-xr-xbootstrap-configure5
3 files changed, 23 insertions, 5 deletions
diff --git a/README b/README
index f1149e0..928e492 100644
--- a/README
+++ b/README
@@ -19,8 +19,7 @@ follows:
# cd dleyna-connector-dbus
Configure and build
- # ./autoreconf -i
- # ./configure
+ # ./autogen.sh
# make
Final installation
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..27aa055
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,20 @@
+#!/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" "$@"
diff --git a/bootstrap-configure b/bootstrap-configure
index 74bc48b..e6464d3 100755
--- a/bootstrap-configure
+++ b/bootstrap-configure
@@ -4,9 +4,8 @@ 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 \
- --with-log-level=8 $* \ No newline at end of file
+ --with-log-level=8 $*