summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorguanglei <guanglei>2006-05-27 02:14:26 +0000
committerguanglei <guanglei>2006-05-27 02:14:26 +0000
commit1fbcfde64b018586bc845002cf576c0599580e80 (patch)
treed0792db586070eba7538eca0c30254c4db962b39 /configure.ac
parent0daad364983649e636e599e19004ba15641052c0 (diff)
downloadsystemtap-steved-1fbcfde64b018586bc845002cf576c0599580e80.tar.gz
systemtap-steved-1fbcfde64b018586bc845002cf576c0599580e80.tar.xz
systemtap-steved-1fbcfde64b018586bc845002cf576c0599580e80.zip
add conditional build of lket-b2a. If glib2-devel is not found, just skips
and gives a warning deleted runtime/lket/b2a/Makefile since it should be generated by configure
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 37a42ed6..178187bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,12 @@ yes) AC_MSG_ERROR([--with-elfutils requires an argument]) ;;
*) build_elfutils=yes ;;
esac])
AM_CONDITIONAL(BUILD_ELFUTILS, test $build_elfutils = yes)
+AM_CONDITIONAL(BUILD_LKET_B2A, pkg-config --atleast-version 2.0.0 glib-2.0)
+
+if ! pkg-config --atleast-version 2.0.0 glib-2.0; then
+ AC_MSG_WARN([glib2-devel is required to build lket-b2a.
+ no glib2-devel found, skip building lket-b2a...])
+fi
if test $build_elfutils = no; then
# Need libdwfl-capable recent elfutils from Fedora
@@ -53,8 +59,7 @@ AC_DEFINE_UNQUOTED(DATE, "$date", [Configuration/build date])
AC_SUBST(DATE, "$date")
AC_CONFIG_HEADERS([config.h:config.in])
-#AC_CONFIG_FILES(Makefile systemtap.spec stp_check stap.1 stapprobes.5 stapfuncs.5 stapex.5 lket.5 runtime/lket/b2a/Makefile)
-AC_CONFIG_FILES(Makefile systemtap.spec stp_check stap.1 stapprobes.5 stapfuncs.5 stapex.5 lket.5 )
+AC_CONFIG_FILES(Makefile systemtap.spec stp_check stap.1 stapprobes.5 stapfuncs.5 stapex.5 lket.5 runtime/lket/b2a/Makefile)
AC_OUTPUT
if test $build_elfutils = yes; then