msg_waitall for now
[lttngtop.git] / configure.ac
index 495a5e07edefdd0dc98cd1f14607f549d7016c54..f4cbfc356a803393b27a860172b7afb1be149252 100644 (file)
@@ -40,16 +40,24 @@ AC_CHECK_LIB([popt], [poptGetContext], [],
 )
 
 # Check for libncurses
-AC_CHECK_LIB([ncurses], [initscr], [],
-       [AC_MSG_ERROR([Cannot find the the ncurses library.])]
+AC_CHECK_LIB([ncurses], [initscr], [], [HAVE_NCURSES=0]
 )
 
 # Check for libpanel, also part of libncurses
 # (but this check will add the required -lpanel flag)
-AC_CHECK_LIB([panel], [update_panels], [],
-       [AC_MSG_ERROR([Cannot find the the ncurses library.])]
+AC_CHECK_LIB([panel], [update_panels], [], [HAVE_PANELS=0]
 )
 
+# Check for libbabeltrace
+AC_CHECK_LIB([babeltrace], [bt_context_create], [],
+            [AC_MSG_ERROR([Cannot find the babeltrace library.])]
+            )
+
+# Check for libbabeltrace-ctf
+AC_CHECK_LIB([babeltrace-ctf], [bt_ctf_iter_create], [],
+            [AC_MSG_ERROR([Cannot find the babeltrace-ctf library.])]
+            )
+
 # Check for Glib. It needs to be installed anyway or this macro will not be defined.
 AM_PATH_GLIB_2_0([2.22.0], [],
        [AC_MSG_ERROR([Glib 2.22 is required in order to compile LTTngTop.
@@ -67,5 +75,19 @@ AC_SUBST(PACKAGE_CFLAGS)
 AC_CONFIG_FILES([
        Makefile
        src/Makefile
+       doc/Makefile
+       utils/Makefile
 ])
 AC_OUTPUT
+
+AS_IF([test "x$HAVE_NCURSES" = "x0"],[
+       AS_ECHO()
+       AS_ECHO_N("Ncurses GUI won't be compiled install ncurses if you want it.")
+       ], [
+          CURSES_LIBS="-lcurses -lpanel"
+          AC_SUBST(CURSES_LIBS)
+          AS_ECHO()
+          AS_ECHO_N("Ncurses GUI will be compiled.")
+          ])
+AS_ECHO()
+
This page took 0.022754 seconds and 4 git commands to generate.