summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorPhilip Chimento <philip@endlessm.com>2013-04-10 12:17:07 +0100
committerP. F. Chimento <philip.chimento@gmail.com>2013-04-17 17:14:21 +0200
commit408f93ec2327a8647030139a2e6f295e8b2c8de1 (patch)
treec0a796adc7ca6981b8eb0b53e8c21b5101dd2962 /autogen.sh
parent5299f7acf85200a46679334a6bd230d4e2101b7f (diff)
Skeleton build system to build a shared library
Builds a dummy shared library that exports one symbol for testing, eos_hello_sample_function(). [#1]
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..4c5ae11
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,29 @@
+# Bootstrap script for Open Endless SDK
+# Run this script on a clean source checkout to get ready for building.
+
+FILE_MUST_EXIST=endless/endless.h
+
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+olddir=`pwd`
+
+cd $srcdir
+test -f $FILE_MUST_EXIST || {
+ echo "You must run this script in the top-level checkout directory"
+ exit 1
+}
+
+# NOCONFIGURE is used by gnome-common
+if test -z "$NOCONFIGURE"; then
+ echo "This script will run ./configure automatically. If you wish to pass "
+ echo "any arguments to it, please specify them on the $0 "
+ echo "command line. To disable this behavior, have NOCONFIGURE=1 in your "
+ echo "environment."
+fi
+
+# Run the actual tools to prepare the clean checkout
+autoreconf -fi || exit $?
+rm -f po/Makevars.template
+
+cd "$olddir"
+test -n "$NOCONFIGURE" || "./configure" "$@"