002-examples.patch 643 B

123456789101112131415161718
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -350,7 +350,14 @@ AC_ARG_WITH([lttng-system-rundir],
  4. AC_DEFINE_UNQUOTED([LTTNG_SYSTEM_RUNDIR], ["$lttng_system_rundir"],
  5. [LTTng system runtime directory])
  6. -AM_PATH_PYTHON([2.7],BUILD_GEN_TP_EXAMPLES=1,[:])
  7. +AC_ARG_ENABLE([examples],
  8. + [AS_HELP_STRING([--enable-examples],[build examples [default=no]])],
  9. + [enable_examples=$enableval],
  10. + [enable_examples=no]
  11. +)
  12. +if test "x$enable_examples" = "xyes"; then
  13. + AM_PATH_PYTHON([2.7],BUILD_GEN_TP_EXAMPLES=1,[:])
  14. +fi
  15. AM_CONDITIONAL([BUILD_GEN_TP_EXAMPLES], [test $BUILD_GEN_TP_EXAMPLES], [Build examples requiring lttng-gen-tp])
  16. AC_CONFIG_FILES([