aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-12-04 22:00:09 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-12-04 22:07:17 +0100
commitdf108ef727f52b04528d54a3137915b927049f19 (patch)
tree3c496c84892f1fe8cf425ab1edf1daf808364a9a /configure.ac
parent1826d4de5903f496bd424d3f93a7c8f307ce6759 (diff)
downloadsciteco-df108ef727f52b04528d54a3137915b927049f19.tar.gz
bootstrapping of build process using preinstalled sciteco
* will also enable crosscompiling SciTECO: first sciteco (or sciteco-minimal) is built for the host platform, then the target binary is built using the host sciteco
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c4529cd..51d0535 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,12 @@ if [[ x$READLINK = x ]]; then
AC_MSG_ERROR([Required tool readlink not found!])
fi
+# For bootstrapping via installed sciteco
+AC_CHECK_PROG(SCITECO, sciteco, sciteco)
+if [[ x$SCITECO = x ]]; then
+ bootstrap = yes
+fi
+
# Checks for libraries.
PKG_CHECK_MODULES(LIBGLIB, [glib-2.0], [
CFLAGS="$CFLAGS $LIBGLIB_CFLAGS"
@@ -138,7 +144,12 @@ esac
AM_CONDITIONAL(INTERFACE_GTK, [test x$INTERFACE = xgtk])
-#CXXFLAGS="$CXXFLAGS $CFLAGS"
+AC_ARG_ENABLE(bootstrap,
+ AS_HELP_STRING([--enable-bootstrap],
+ [Bootstrap using sciteco-minimal,
+ otherwise use preinstalled sciteco [default=check]]),
+ [bootstrap=$enableval])
+AM_CONDITIONAL(BOOTSTRAP, [test x$bootstrap = xyes])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT