X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=configure.ac;h=90f504d13e481db5cafe5cf17794e994166f7e7e;hp=0b67fc9dd5b7699e2634ca1c08205ebb613109e2;hb=b1cc2cffc5cabbfc65bac84461e853faed2800a2;hpb=74ab85b4dfbf35876669c2b10b9cf125c0c9ccff diff --git a/configure.ac b/configure.ac index 0b67fc9..90f504d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -AC_INIT([lttngtop],[0.2],[julien dot desfossez at efficios dot com]) +AC_INIT([lttngtop],[0.3],[jdesfossez@efficios.com]) AC_CONFIG_AUX_DIR([config]) AC_CANONICAL_TARGET AC_CANONICAL_HOST @@ -40,14 +40,12 @@ 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 @@ -77,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() +