aboutsummaryrefslogtreecommitdiffstats
path: root/features/perf/perf-add-libperl-not-found-warning.patch
blob: c9a972b6ec38bcd7967a192dde5db4cce2a04c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 7cffc18570105f6753bc70ae78a7baef8078b6b2 Mon Sep 17 00:00:00 2001
From: Tom Zanussi <tom.zanussi@intel.com>
Date: Tue, 3 Jul 2012 13:07:22 -0500
Subject: [PATCH] perf: add 'libperl not found' warning

If libperl isn't found, display a message to that effect along with
some hints on how to fix it.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
 tools/perf/Makefile.config | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index aead7f8862ea..2980cfd26fb8 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -542,6 +542,7 @@ else
   FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
 
   ifneq ($(feature-libperl), 1)
+    msg := $(warning libperl not found, disables Perl scripting support. Please install libperl-dev or perl-devel);
     CFLAGS += -DNO_LIBPERL
     NO_LIBPERL := 1
     msg := $(warning Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev);
-- 
2.5.0