[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 1/5] Fix configure script for LTTng 2.x
From: |
Mohamad Gebai |
Subject: |
[Qemu-devel] [PATCH v5 1/5] Fix configure script for LTTng 2.x |
Date: |
Thu, 24 Oct 2013 20:46:03 -0400 |
Signed-off-by: Mohamad Gebai <address@hidden>
---
configure | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/configure b/configure
index 57ee62a..f20ceaa 100755
--- a/configure
+++ b/configure
@@ -3284,15 +3284,25 @@ fi
# For 'ust' backend, test if ust headers are present
if test "$trace_backend" = "ust"; then
cat > $TMPC << EOF
-#include <ust/tracepoint.h>
-#include <ust/marker.h>
+#include <lttng/tracepoint.h>
int main(void) { return 0; }
EOF
if compile_prog "" "" ; then
- LIBS="-lust -lurcu-bp $LIBS"
- libs_qga="-lust -lurcu-bp $libs_qga"
+ if $pkg_config lttng-ust --exists; then
+ lttng_ust_libs=`$pkg_config --libs lttng-ust`
+ else
+ lttng_ust_libs="-llttng-ust"
+ fi
+ if $pkg_config liburcu-bp --exists; then
+ urcu_bp_libs=`$pkg_config --libs liburcu-bp`
+ else
+ urcu_bp_libs="-lurcu-bp"
+ fi
+
+ LIBS="$lttng_ust_libs $urcu_bp_libs $LIBS"
+ libs_qga="$lttng_ust_libs $urcu_bp_libs $libs_qga"
else
- error_exit "Trace backend 'ust' missing libust header files"
+ error_exit "Trace backend 'ust' missing lttng-ust header files"
fi
fi
--
1.8.4.rc3
[Qemu-devel] [PATCH v5 3/5] Adapt Makefiles to the new LTTng ust interface, Mohamad Gebai, 2013/10/24
[Qemu-devel] [PATCH v5 5/5] Add ust generated files to .gitignore, Mohamad Gebai, 2013/10/24
[Qemu-devel] [PATCH v5 4/5] Update documentation for LTTng ust tracing, Mohamad Gebai, 2013/10/24
[Qemu-devel] [PATCH v5 2/5] Modified the tracetool framework for LTTng 2.x, Mohamad Gebai, 2013/10/24