summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/systemtap/systemtap/runtime-staprun-configure.ac-support-without-nss-for.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/systemtap/systemtap/runtime-staprun-configure.ac-support-without-nss-for.patch')
-rw-r--r--meta/recipes-kernel/systemtap/systemtap/runtime-staprun-configure.ac-support-without-nss-for.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap/runtime-staprun-configure.ac-support-without-nss-for.patch b/meta/recipes-kernel/systemtap/systemtap/runtime-staprun-configure.ac-support-without-nss-for.patch
new file mode 100644
index 0000000000..fbe7b708d8
--- /dev/null
+++ b/meta/recipes-kernel/systemtap/systemtap/runtime-staprun-configure.ac-support-without-nss-for.patch
@@ -0,0 +1,50 @@
1From fa81ccd4f92e5cb15a11a81a7e656bfe01745afb Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
3Date: Tue, 5 Jun 2012 10:22:23 +0200
4Subject: [PATCH] runtime/staprun/configure.ac: support --without-nss for
5 staprun
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10Upstream status: pending
11
12Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
13---
14 runtime/staprun/configure.ac | 20 +++++++++++++++-----
15 1 files changed, 15 insertions(+), 5 deletions(-)
16
17diff --git a/runtime/staprun/configure.ac b/runtime/staprun/configure.ac
18index 8fd1b42..7b05f73 100644
19--- a/runtime/staprun/configure.ac
20+++ b/runtime/staprun/configure.ac
21@@ -67,11 +67,21 @@ AS_IF([test "x$enable_sdt_probes" != xno], [
22 [Define to 1 to enable process.mark probes in staprun, stapio.])
23 ])
24
25-PKG_CHECK_MODULES([nss], [nss >= 3], [have_nss=yes], [have_nss=no])
26-AM_CONDITIONAL([HAVE_NSS], [test $have_nss = yes])
27-AS_IF([test $have_nss = yes], [
28- AC_DEFINE([HAVE_NSS], [1], [Define to 1 if you have the nss libraries.])
29-])
30+dnl See if we have the nss/nspr headers and libraries
31+AC_ARG_WITH([nss],
32+ AS_HELP_STRING([--without-nss],
33+ [Do not use NSS even if present]))
34+
35+AS_IF([test "x$with_nss" != "xno"], [
36+ PKG_CHECK_MODULES([nss], [nss >= 3],
37+ [have_nss=yes
38+ AC_DEFINE([HAVE_NSS], [1], [Define to 1 if you have the nss libraries.])
39+ ], [have_nss=no])
40+], [have_nss=no])
41+
42+AM_CONDITIONAL([HAVE_NSS], [test "${have_nss}" = "yes"])
43+
44+
45 AC_ARG_ENABLE([nls], [AS_HELP_STRING([--enable-nls], [enable translating program messages])])
46 AS_IF([test "x$enable_nls" != xno], [
47 AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if program messages should be translated.])
48--
491.7.6.5
50