From: David Goulet Date: Wed, 20 Jul 2011 21:18:07 +0000 (-0400) Subject: Rename binary installation path define X-Git-Tag: v2.0-pre2~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=36c0262a92b315ba2c20ea4c5f56ba0f94538c3c;p=lttng-tools.git Rename binary installation path define INSTALL_PATH --> INSTALL_BIN_PATH Signed-off-by: David Goulet --- diff --git a/ltt-sessiond/Makefile.am b/ltt-sessiond/Makefile.am index 9134a3e95..17dc58747 100644 --- a/ltt-sessiond/Makefile.am +++ b/ltt-sessiond/Makefile.am @@ -1,7 +1,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/liblttsessiondcomm \ - -I$(top_srcdir)/libkernelctl -I$(top_srcdir)/libustctl - -INCLUDES = -DINSTALL_PATH=\""$(bindir)"\" + -I$(top_srcdir)/libkernelctl -I$(top_srcdir)/libustctl \ + -DINSTALL_BIN_PATH=\"$(bindir)\" AM_CFLAGS = -fno-strict-aliasing diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index 63e99df38..a78cc7e02 100644 --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@ -914,7 +914,7 @@ static pid_t spawn_kconsumerd(void) /* * Exec kconsumerd. */ - execl(INSTALL_PATH "/ltt-kconsumerd", "ltt-kconsumerd", "--quiet", NULL); + execl(INSTALL_BIN_PATH "/ltt-kconsumerd", "ltt-kconsumerd", "--quiet", NULL); if (errno != 0) { perror("kernel start consumer exec"); } diff --git a/lttng/Makefile.am b/lttng/Makefile.am index 2efd94e1d..9d696aa01 100644 --- a/lttng/Makefile.am +++ b/lttng/Makefile.am @@ -1,6 +1,4 @@ -AM_CPPFLAGS = -I$(top_srcdir)/include - -INCLUDES = -DINSTALL_PATH=\""$(bindir)"\" +AM_CPPFLAGS = -I$(top_srcdir)/include -DINSTALL_BIN_PATH=\""$(bindir)"\" bin_PROGRAMS = lttng diff --git a/lttng/lttng.c b/lttng/lttng.c index f56893365..3e5f1b187 100644 --- a/lttng/lttng.c +++ b/lttng/lttng.c @@ -336,7 +336,7 @@ static int check_sessiond(void) /* Let's rock and roll */ if (pathname == NULL) { - ret = asprintf(&alloc_pathname, INSTALL_PATH "/ltt-sessiond"); + ret = asprintf(&alloc_pathname, INSTALL_BIN_PATH "/ltt-sessiond"); if (ret < 0) { perror("asprintf spawn sessiond"); goto end;