summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-03 15:44:49 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-07-03 15:47:13 +0200
commit5520616c9d5a94f5e43e363b10b10a09dde4865c (patch)
tree140fe46b81153ef0a96a2488bf89b6560db18e43 /autogen.sh
parent85b380fcb5ac42d74bede9baa9b94c31b375208e (diff)
build: setup autotools
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..cc96623
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+REQUIRED_AUTOMAKE_VERSION=1.9
+PKG_NAME=libqmi-glib
+
+(test -f $srcdir/configure.ac \
+ && test -f $srcdir/src/libqmi-glib.h) || {
+ echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+ echo " top-level $PKG_NAME directory"
+ exit 1
+}
+
+(cd $srcdir;
+ mkdir -p m4
+ touch README NEWS ChangeLog
+ autoreconf --force --install --verbose
+ if test -z "$NOCONFIGURE"; then
+ ./configure --enable-maintainer-mode $@
+ fi
+)