From bbc59ba03d04a133e4b0c84470568fb7c338ada5 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Wed, 18 Dec 2019 15:55:51 +0200 Subject: configure: verify that julia is able to run programs Julia requires a large virtual address space and if a system limits address space size with ulimit then julia will abort. Catch it in configure, rather than resulting in failed tests. --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 06423420..2f6cc116 100644 --- a/configure.ac +++ b/configure.ac @@ -261,6 +261,20 @@ AC_PATH_PROG([OCAML_BIN], [ocaml]) AC_PATH_PROG([RUST_BIN], [rustc]) AC_PATH_PROG([JULIA_BIN], [julia]) +echo -n "checking if julia is able to run programs ... " + +if test "x$JULIA_BIN" != x; then + echo 'println( "can run julia programs" );' > conftest.jl + if sh -c "$JULIA_BIN conftest.jl" >>config.log 2>&1; then + echo "yes" + else + echo "FAILED to run julia program" >> config.log + echo "no" + JULIA_BIN="" + fi + rm -f conftest.jl +fi + SED_SUBST="$SED_SUBST -e 's|@D_BIN@|${D_BIN}|g'" SED_SUBST="$SED_SUBST -e 's|@JAVAC_BIN@|${JAVAC_BIN}|g'" SED_SUBST="$SED_SUBST -e 's|@RUBY_BIN@|${RUBY_BIN}|g'" -- cgit v1.2.1