summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-04-17 18:46:38 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-04-17 18:46:38 (GMT)
commit412d8e9df853ae3a6349d38163a1570dfa04434a (patch)
tree9d9fa24b049625f57deddd8559bcf96c1bd8a651 /autogen.sh
parent90f9cf977a8eb6553d6bb4963202b90e2b8ff063 (diff)
Provided a convenient way to build Chrysalide from raw sources.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..0b4f620
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+# Define internationalization (i18n)
+gettextize --no-changelog
+
+# Beware of acknowledgment!
+
+sed -i 's/po\/Makefile.in \(po\/Makefile.in *\)*/po\/Makefile.in /' configure.ac
+sed -i 's/EXTRA_DIST.*$/EXTRA_DIST = config.rpath ChangeLog/' Makefile.am
+
+rm po/Makevars.template
+cp /usr/share/gettext/gettext.h .
+
+# Create a timestamp mark
+echo "timestamp" > stamp-h.in
+
+# As some Makefiles expect an external fragment built dynamically, ensure these files exist
+touch src/arch/arm/v7/opcodes/gencode.mk
+touch src/arch/dalvik/opcodes/gencode.mk
+
+# Run the GNU tools
+libtoolize --force
+aclocal -Im4
+autoheader
+automake --add-missing --copy
+autoconf
+
+# Define the way the program will be built
+#./configure --prefix=/dev/shm/chrysalide.git --enable-silent-rules --enable-debug CC=colorgcc CFLAGS="-O0 -ggdb"
+#./configure --prefix=/usr/local --enable-silent-rules