From 1d361a96669a5ec916df3e76f90a1e86ae456330 Mon Sep 17 00:00:00 2001
From: Lorenzo Moneta <Lorenzo.Moneta@cern.ch>
Date: Wed, 2 Oct 2013 11:10:29 +0200
Subject: [PATCH] Add R__HAS_VC macro  in RConfigure

---
 config/RConfigure.in | 1 +
 configure            | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/config/RConfigure.in b/config/RConfigure.in
index 80c56565e79..2802bbaf1ec 100644
--- a/config/RConfigure.in
+++ b/config/RConfigure.in
@@ -22,6 +22,7 @@
 #@haspthread@ R__HAS_PTHREAD    /**/
 #@hasxft@ R__HAS_XFT    /**/
 #@hascocoa@ R__HAS_COCOA    /**/
+#@hasvc@ R__HAS_VC    /**/
 #@usec++11@ R__USE_CXX11    /**/
 #@uselibc++11@ R__USE_LIBCXX11    /**/
 #@hasllvm@ R__EXTERN_LLVMDIR @llvmdir@
diff --git a/configure b/configure
index dea73d3295c..4ad874ed587 100755
--- a/configure
+++ b/configure
@@ -6370,9 +6370,11 @@ message "Checking whether to build libVc"
 if test "x$enable_vc" = "xyes" || test ! "x$VC" = "x"; then
     enable_vc="yes"
     result "yes"
+    hasvc="define"
 else
     enable_vc=""
     result "no"
+    hasvc="undef"
 fi
 
 ######################################################################
@@ -7248,6 +7250,7 @@ sed \
     -e "s|@haspthread@|$haspthread|"       \
     -e "s|@hasxft@|$hasxft|"               \
     -e "s|@hascocoa@|$hascocoa|"           \
+    -e "s|@hasvc@|$hasvc|"                 \
     -e "s|@usec++11@|$usecxx11|"           \
     -e "s|@uselibc++11@|$uselibcxx11|"     \
     -e "s|@hasllvm@|$hasllvm|"             \
-- 
GitLab