diff --git a/configure.ac b/configure.ac index f9bab4f00f2..678daaed1e9 100644 --- a/configure.ac +++ b/configure.ac @@ -752,7 +752,7 @@ AS_IF([test -n "$with_lttng" && test x"$with_lttng" != x"no"], [AC_MSG_ERROR([LTTNG is requested but no found. Please check your prefix])]) ]) -AS_IF([test "$have_lttng" = "1"], +AS_IF([test "$have_lttng" = "1" && test x"$with_lttng" != x"yes"], [CPPFLAGS="$CPPFLAGS $lttng_CPPFLAGS" LDFLAGS="$LDFLAGS $lttng_LDFLAGS"])