add autogen.sh
authorAnas Nashif <anas.nashif@intel.com>
Mon, 25 Mar 2013 11:47:49 +0000 (04:47 -0700)
committerAnas Nashif <anas.nashif@intel.com>
Mon, 25 Mar 2013 11:47:49 +0000 (04:47 -0700)
autogen.sh [new file with mode: 0755]

diff --git a/autogen.sh b/autogen.sh
new file mode 100755 (executable)
index 0000000..c75e9f0
--- /dev/null
@@ -0,0 +1,13 @@
+#! /bin/sh
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+cd $srcdir
+
+mkdir -p autotools
+libtoolize --force || exit 1
+aclocal -I autotools || exit 1
+autoheader || exit 1
+automake --add-missing --copy || exit 1
+autoconf || exit 
+configure --prefix=$PREFIX
+$srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?