[PATCH 01/13] configure.ac: Define new macro 'WITH_TRACE_PROBES' to indicate trace function are available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Xinghai Yu <yuxinghai@xxxxxxxxxxxxxx>

Define new 'WITH_TRACE_PROBES' macros which indicate the trace 
function are available and this macro will be used in Makefile.am and 
source codes.

Signed-off-by: Xinghai Yu <yuxinghai@xxxxxxxxxxxxxx>
---
 config-post.h | 2 +-
 configure.ac  | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/config-post.h b/config-post.h
index 8367200..e2d45ef 100644
--- a/config-post.h
+++ b/config-post.h
@@ -32,7 +32,7 @@
 # undef HAVE_LIBSASL2
 # undef WITH_CAPNG
 # undef WITH_CURL
-# undef WITH_DTRACE_PROBES
+# undef WITH_TRACE_PROBES
 # undef WITH_GNUTLS
 # undef WITH_GNUTLS_GCRYPT
 # undef WITH_MACVTAP
diff --git a/configure.ac b/configure.ac
index a9339ce..63744ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1500,6 +1500,10 @@ if test "$with_dtrace" != "no" ; then
 fi
 AM_CONDITIONAL([WITH_DTRACE_PROBES], [test "$with_dtrace" != "no"])
 
+if test "$with_dtrace" = "yes"; then
+  AC_DEFINE_UNQUOTED([WITH_TRACE_PROBES], 1, [whether Trace function are available])
+fi
+AM_CONDITIONAL([WITH_TRACE_PROBES], [test "$with_dtrace" != "no"])
 
 dnl numad
 AC_ARG_WITH([numad],
-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]