Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Kumpera <kumpera@gmail.com>2012-12-11 21:04:01 +0400
committerRodrigo Kumpera <kumpera@gmail.com>2012-12-11 22:33:27 +0400
commit467f15ff9e7ed35a48f5b3537219bbd3fc79bc3b (patch)
tree108d3f6ba53372b6df1fd3731865460e8d37ec59 /autogen.sh
parent2a9c5e644836f59c647083ba571421d481cbdc1e (diff)
Automake can't handle missing conditional includes. Shell script our way out.
* autogen.sh: The extension module conditional include can't be done from automake given this wonderful piece of engineering can't handle missing conditional includes in any sane way. So what we do is to include them at autogen.sh time. * Makefile.am.in: This puppy now needs to be pre-processed before all the automake shinning glory kicks in.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index c25a1f72c20..fc2550142b2 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -102,6 +102,24 @@ if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
fi
fi
+
+#
+# Plug in the extension module
+#
+has_ext_mod=false
+for PARAM; do
+ if test $PARAM = "--enable-extension-module" ; then
+ has_ext_mod=true
+ fi
+done
+
+if test x$has_ext_mod = xtrue; then
+ cat mono/mini/Makefile.am.in ../mono-extensions/mono/mini/Makefile.am > mono/mini/Makefile.am
+else
+ cat mono/mini/Makefile.am.in > mono/mini/Makefile.am
+fi
+
+
echo "Running aclocal -I m4 -I . $ACLOCAL_FLAGS ..."
aclocal -Wnone -I m4 -I . $ACLOCAL_FLAGS || {
echo