diff --git a/Makefile b/Makefile index 2212163281b7a343eb57aebff51a58b5e1c0d2c5..90e779f26d5e8b41b527d0d974ff726fedb5e349 100644 --- a/Makefile +++ b/Makefile @@ -1288,14 +1288,12 @@ gui: gui-$(OCAMLBEST) ALL_GUI_CMO= $(ALL_CMO) $(GRAPH_GUICMO) $(GUICMO) ALL_GUI_CMX= $(patsubst %.cma,%.cmxa,$(ALL_GUI_CMO:.cmo=.cmx)) +ifeq ($(LABLGTK_VERSION),3) ifeq ($(NATIVE_THREADS),yes) -ifneq ($(PLATFORM),MacOS) -GUI_THREAD=-thread +THREAD=-thread else -GUI_THREAD= +THREAD=-vmthread endif -else -GUI_THREAD= endif bin/viewer.byte$(EXE): BYTE_LIBS+= $(GRAPH_GUICMO) @@ -1303,7 +1301,7 @@ bin/viewer.byte$(EXE): $(filter-out $(GRAPH_GUICMO),$(ALL_GUI_CMO)) \ $(GEN_BYTE_LIBS) \ $(PLUGIN_DYN_CMO_LIST) $(PLUGIN_DYN_GUI_CMO_LIST) $(PRINT_LINKING) $@ - $(OCAMLC) $(BLINKFLAGS) $(GUI_THREAD) -o $@ $(BYTE_LIBS) \ + $(OCAMLC) $(BLINKFLAGS) $(THREAD) -o $@ $(BYTE_LIBS) \ $(CMO) \ $(filter-out \ $(patsubst $(PLUGIN_GUI_LIB_DIR)/%,$(PLUGIN_LIB_DIR)/%,\ @@ -1317,7 +1315,7 @@ bin/viewer.opt$(EXE): $(filter-out $(GRAPH_GUICMX),$(ALL_GUI_CMX)) \ $(PLUGIN_DYN_CMX_LIST) $(PLUGIN_DYN_GUI_CMX_LIST) \ $(PLUGIN_CMX_LIST) $(PLUGIN_GUI_CMX_LIST) $(PRINT_LINKING) $@ - $(OCAMLOPT) $(OLINKFLAGS) $(GUI_THREAD) -o $@ $(OPT_LIBS) \ + $(OCAMLOPT) $(OLINKFLAGS) $(THREAD) -o $@ $(OPT_LIBS) \ $(CMX) \ $(filter-out \ $(patsubst $(PLUGIN_GUI_LIB_DIR)/%,$(PLUGIN_LIB_DIR)/%,\ diff --git a/configure.in b/configure.in index 392853a370df17e3a8e3887a0395e0e00f78a91e..1c508452c3e88478318f82fff46c8a61dbe09c0f 100644 --- a/configure.in +++ b/configure.in @@ -946,13 +946,14 @@ USE_LABLGTK="$USE_LABLGTK$USE_GNOMECANVAS" LABLGTK_PATH="" SOURCEVIEW_PATH="" +if test "$PLATFORM" != "MacOS"; then if test "$ENABLE_LABLGTK3" = "yes"; then LABLGTK_PATH=`ocamlfind query lablgtk3 | tr -d '\\r\\n'`; fi - if test "$LABLGTK_PATH" != ""; then SOURCEVIEW_PATH=`ocamlfind query lablgtk3-sourceview3 | tr -d '\\r\\n'`; fi +fi if test "$SOURCEVIEW_PATH" = ""; then LABLGTK_VERSION=2