Only build GUI when the necessary dependencies are found.

Sat Jan 14 18:24:43 2006  Soeren Sandmann  <sandmann@redhat.com>

        * configure.ac, Makefile.am: Only build GUI when the necessary
        dependencies are found.

        * sysprof.c (compute_text_width): Remove unused variable

        * profile.c (build_object_list): Follow next instead of siblings.
This commit is contained in:
Soeren Sandmann
2006-01-14 23:26:34 +00:00
committed by Søren Sandmann Pedersen
parent 9125c4e644
commit 98308836af
7 changed files with 39 additions and 12 deletions

View File

@ -86,11 +86,12 @@ fi
core_dep="glib-2.0"
gui_dep="gtk+-2.0 > 2.6.0 gdk-pixbuf-2.0 pangoft2 libglade-2.0"
PKG_CHECK_MODULES(CORE_DEP, $core_dep, [],
AC_MSG_ERROR([sysprof dependencies not satisfied]))
PKG_CHECK_MODULES(CORE_DEP, $core_dep, [], AC_MSG_ERROR([sysprof dependencies not satisfied]))
PKG_CHECK_MODULES(GUI_DEP, $gui_dep, [],
AC_MSG_ERROR([sysprof dependencies not satisfied]))
build_gui=yes
PKG_CHECK_MODULES(GUI_DEP, $gui_dep, [], build_gui=no)
AM_CONDITIONAL([BUILD_GUI], [test "$build_gui" = yes])
# libiberty and libbfd