From daec22564e7132a279e96fcd22d41e1f40d21a6f Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Tue, 2 Oct 2018 10:55:37 +0100
Subject: [PATCH 15/17] link Xt to uuid

---
 m4/R.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/R.m4 b/m4/R.m4
index d3bf508b36..c66ef3489b 100644
--- a/m4/R.m4
+++ b/m4/R.m4
@@ -1719,7 +1719,7 @@ if test -z "${no_x}"; then
   CPPFLAGS="${r_save_CPPFLAGS}"
   if test "${ac_cv_header_X11_Intrinsic_h}" = yes ; then
     AC_CHECK_LIB(Xt, XtToolkitInitialize, [have_Xt=yes], [have_Xt=no],
-                 [${X_LIBS} -lX11])
+                 [${X_LIBS} -lX11 -luuid])
     if test "${have_Xt}" = yes; then
       use_X11="yes"
     fi
@@ -1729,7 +1729,7 @@ if test "x${use_X11}" = "xyes"; then
   AC_DEFINE(HAVE_X11, 1,
             [Define if you have the X11 headers and libraries, and want
              the X11 GUI to be built.])
-  X_LIBS="${X_LIBS} -lX11 -lXt"
+  X_LIBS="${X_LIBS} -lX11 -lXt -luuid"
 else
   if test "x${with_x}" != "xno"; then
     AC_MSG_ERROR(
-- 
2.18.0

