From 807a2998f1334a714cdf240e4ed9299c33178e01 Mon Sep 17 00:00:00 2001 From: Andre Maroneze <andre.oliveiramaroneze@cea.fr> Date: Wed, 28 Aug 2019 17:45:37 +0200 Subject: [PATCH] [configure] Remove deprecated -vmthread flag Thanks to madroach for spotting the issue and providing a patch. --- configure.in | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/configure.in b/configure.in index aeb14b7922d..b109af187f9 100644 --- a/configure.in +++ b/configure.in @@ -430,23 +430,20 @@ else EXE= fi - if test "$OCAMLBEST" = opt; then - # OCaml native threads - AC_MSG_CHECKING([OCaml native threads]) - echo "let f = Thread.create (fun () -> ())" > test_native_threads.ml - if ($OCAMLOPT -thread -o test_native_threads unix.cmxa threads.cmxa \ - test_native_threads.ml) 2> /dev/null ; - then - HAS_NATIVE_THREADS=yes - AC_MSG_RESULT([ok.]); - else - HAS_NATIVE_THREADS=no - AC_MSG_WARN([unsupported.]); - fi - rm -f test_native_threads*; + # OCaml native threads + AC_MSG_CHECKING([OCaml native threads]) + echo "let f = Thread.create (fun () -> ())" > test_native_threads.ml + if + ($OCAMLC -thread -o test_native_threads unix.cma threads.cma \ + test_native_threads.ml) 2> /dev/null + then + HAS_NATIVE_THREADS=yes + AC_MSG_RESULT([ok.]); else - HAS_NATIVE_THREADS=no; # no native compilation anyway - fi + HAS_NATIVE_THREADS=no + AC_MSG_WARN([unsupported.]); + fi + rm -f test_native_threads*; fi # C and POSIX standard headers used by C bindings. -- GitLab