summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbcpierce00 <bcpierce00@users.noreply.github.com>2018-01-02 17:11:41 -0500
committerGitHub <noreply@github.com>2018-01-02 17:11:41 -0500
commit23e7ea9509fa5c678db0de4cd87772ff06d83180 (patch)
treebc15be4b274830cb75031babb558d5d0708fc579 /src
parent764cdb821e231e8eb30e79b5f68e4ccf4fb2e09e (diff)
parente6efb4b810020bcc6643fc76b746969ba2334f13 (diff)
downloadunison-23e7ea9509fa5c678db0de4cd87772ff06d83180.zip
unison-23e7ea9509fa5c678db0de4cd87772ff06d83180.tar.gz
unison-23e7ea9509fa5c678db0de4cd87772ff06d83180.tar.bz2
Merge pull request #114 from erikmd/make-gtk2
[make] Fix detection of lablgtk2 with OPAM
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.OCaml9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Makefile.OCaml b/src/Makefile.OCaml
index ca9518a..7cefa2e 100644
--- a/src/Makefile.OCaml
+++ b/src/Makefile.OCaml
@@ -83,8 +83,13 @@ else
ifeq ($(wildcard $(LABLGTK2LIB)),$(LABLGTK2LIB))
UISTYLE=gtk2
else
- UISTYLE=text
-endif
+ LABLGTK2LIB=$(abspath $(OCAMLLIBDIR)/../lablgtk2)
+ ifeq ($(wildcard $(LABLGTK2LIB)),$(LABLGTK2LIB))
+ UISTYLE=gtk2
+ else
+ UISTYLE=text
+ endif
+ endif
endif
buildexecutable::
@echo UISTYLE = $(UISTYLE)