summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-libunwind.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-libunwind.patch')
-rw-r--r--meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-libunwind.patch82
1 files changed, 82 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-libunwind.patch b/meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-libunwind.patch
new file mode 100644
index 000000000..9a2cb00eb
--- /dev/null
+++ b/meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-libunwind.patch
@@ -0,0 +1,82 @@
1samba: add --enable-libunwind option
2
3Upstream-Status: Pending
4
5This let the end user explicitly enable/disable libunwind support.
6---
7 configure | 28 ++++++++++++++++++++++++++--
8 1 file changed, 26 insertions(+), 2 deletions(-)
9
10diff -urpN a/source3/configure b/source3/configure
11--- a/source3/configure
12+++ b/source3/configure
13@@ -1007,6 +1007,7 @@ with_included_iniparser
14 with_static_modules
15 with_shared_modules
16 enable_dmalloc
17+enable_libunwind
18 '
19 ac_precious_vars='build_alias
20 host_alias
21@@ -1670,6 +1671,7 @@ Optional Features:
22 --enable-avahi Enable Avahi support (default=auto)
23 --enable-pthreadpool Enable pthreads pool helper support (default=no)
24 --enable-dmalloc Enable heap debugging [default=no]
25+ --enable-libunwind Enable libunwind support if available (default=no)
26
27 Optional Packages:
28 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
29@@ -16458,7 +16460,7 @@ done
30
31
32 # Find a method of generating a stack trace
33-for ac_header in execinfo.h libexc.h libunwind.h
34+for ac_header in execinfo.h libexc.h
35 do :
36 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38@@ -16684,6 +16686,13 @@ fi
39
40 LIBS="$save_LIBS"
41
42+# Check whether --enable-libunwind was given.
43+if test "${enable_libunwind+set}" = set; then :
44+ enableval=$enable_libunwind;
45+fi
46+
47+if test "x$enable_libunwind" != xno
48+then
49 # Note that all the libunwind symbols in the API are defined to internal
50 # platform-specific version, so we must include libunwind.h before checking
51 # any of them.
52@@ -16691,6 +16700,21 @@ LIBS="$save_LIBS"
53 $as_echo_n "checking for libunwind... " >&6; }
54 save_LIBS=$LIBS
55
56+# Check for libunwind.h present
57+for ac_header in libunwind.h
58+do :
59+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
60+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
61+eval as_val=\$$as_ac_Header
62+ if test "x$as_val" = x""yes; then :
63+ cat >>confdefs.h <<_ACEOF
64+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
65+_ACEOF
66+
67+fi
68+
69+done
70+
71 UNWIND_ARCH="unknown"
72 if test x"$UNAME_I" != x"unknown"; then
73 UNWIND_ARCH="$UNAME_I"
74@@ -16877,7 +16901,7 @@ fi
75 rm -f core conftest.err conftest.$ac_objext \
76 conftest$ac_exeext conftest.$ac_ext
77 fi
78-
79+fi
80
81
82 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir