qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mohamad Gebai <mohamad.gebai@gmail.com>
To: qemu-devel@nongnu.org
Cc: stefanha@gmail.com, Mohamad Gebai <mohamad.gebai@polymtl.ca>,
	alex.bennee@linaro.org
Subject: [Qemu-devel] [PATCH v6 1/5] Fix configure script for LTTng 2.x
Date: Wed, 29 Jan 2014 22:47:54 -0500	[thread overview]
Message-ID: <1391053678-25398-2-git-send-email-mohamad.gebai@polymtl.ca> (raw)
In-Reply-To: <1391053678-25398-1-git-send-email-mohamad.gebai@polymtl.ca>

Signed-off-by: Mohamad Gebai <mohamad.gebai@polymtl.ca>
---
 configure | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/configure b/configure
index b472694..2a14014 100755
--- a/configure
+++ b/configure
@@ -3365,15 +3365,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.5.2

  reply	other threads:[~2014-01-30  3:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-30  3:47 [Qemu-devel] [PATCH v6 0/5] Fix UST backend for LTTng 2.x Mohamad Gebai
2014-01-30  3:47 ` Mohamad Gebai [this message]
2014-01-30  3:47 ` [Qemu-devel] [PATCH v6 2/5] Modified the tracetool framework " Mohamad Gebai
2014-01-30  3:47 ` [Qemu-devel] [PATCH v6 3/5] Adapt Makefiles to the new LTTng ust interface Mohamad Gebai
2014-01-30  3:47 ` [Qemu-devel] [PATCH v6 4/5] Update documentation for LTTng ust tracing Mohamad Gebai
2014-01-30  9:55   ` Alex Bennée
2014-01-30  3:47 ` [Qemu-devel] [PATCH v6 5/5] Add ust generated files to .gitignore Mohamad Gebai
2014-01-30 14:02 ` [Qemu-devel] [PATCH v6 0/5] Fix UST backend for LTTng 2.x Stefan Hajnoczi
2014-01-30 15:59   ` Mohamad Gebai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1391053678-25398-2-git-send-email-mohamad.gebai@polymtl.ca \
    --to=mohamad.gebai@gmail.com \
    --cc=alex.bennee@linaro.org \
    --cc=mohamad.gebai@polymtl.ca \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).