From 469c1a1b2ef323030531b0ca05e6f9337c0bbbe6 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 29 Sep 2009 17:09:20 -0400 Subject: build fix: use boost shared_ptr if libstdc++ to old to have * configure.ac: Look for tr1/memory and boost/shared_ptr.hpp * setupdwfl.h (shared_ptr): Define conditionally based on above. * systemtap.spec (with_boost): New parameter, default-off. --- systemtap.spec | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'systemtap.spec') diff --git a/systemtap.spec b/systemtap.spec index 960d2e1b..3d05f8e1 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -6,6 +6,7 @@ %{!?elfutils_version: %define elfutils_version 0.127} %{!?pie_supported: %define pie_supported 1} %{!?with_grapher: %define with_grapher 1} +%{!?with_boost: %define with_boost 0} Name: systemtap Version: 1.0 @@ -23,6 +24,10 @@ Requires: kernel >= 2.6.9-11 %if %{with_sqlite} BuildRequires: sqlite-devel %endif +# Needed for libstd++ < 4.0, without +%if %{with_boost} +BuildRequires: boost-devel +%endif %if %{with_crash} BuildRequires: crash-devel zlib-devel %endif -- cgit