File ocaml-tcl86.patch of Package ocaml

Index: ocaml-4.00.1/configure
===================================================================
--- ocaml-4.00.1.orig/configure	2013-08-01 16:57:52.833538993 +0200
+++ ocaml-4.00.1/configure	2013-08-01 17:19:23.707026616 +0200
@@ -1450,6 +1450,7 @@
   if test -n "$tcl_version" && test "x$tcl_version" != "xnone"; then
     echo "tcl.h and tk.h version $tcl_version found with \"$tk_defs\"."
     case $tcl_version in
+    8.6) tclmaj=8 tclmin=6 tkmaj=8 tkmin=6 ;;
     8.5) tclmaj=8 tclmin=5 tkmaj=8 tkmin=5 ;;
     8.4) tclmaj=8 tclmin=4 tkmaj=8 tkmin=4 ;;
     8.3) tclmaj=8 tclmin=3 tkmaj=8 tkmin=3 ;;
@@ -1528,10 +1529,10 @@
 
 if test $has_tk = true; then
   if test $tk_x11 = yes; then
-    echo "TK_DEFS=$tk_defs "'$(X11_INCLUDES)' >> Makefile
+    echo "TK_DEFS=$tk_defs -DUSE_INTERP_RESULT "'$(X11_INCLUDES)' >> Makefile
     echo "TK_LINK=$tk_libs "'$(X11_LINK)' >> Makefile
   else
-    echo "TK_DEFS=$tk_defs" >> Makefile
+    echo "TK_DEFS=$tk_defs -DUSE_INTERP_RESULT" >> Makefile
     echo "TK_LINK=$tk_libs" >> Makefile
   fi
   otherlibraries="$otherlibraries labltk"
openSUSE Build Service is sponsored by