summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace/strace-add-configure-options.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/strace/strace/strace-add-configure-options.patch')
-rw-r--r--meta/recipes-devtools/strace/strace/strace-add-configure-options.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/strace-add-configure-options.patch b/meta/recipes-devtools/strace/strace/strace-add-configure-options.patch
new file mode 100644
index 0000000000..e48e4b31b9
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace/strace-add-configure-options.patch
@@ -0,0 +1,57 @@
1Add options "aio" and "acl" to enable/disable libaio and acl support.
2
3Upstream-Status: Pending
4
5Signed-off-by: Kai Kang <kai.kang@windriver.com>
6Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
7---
8 configure.ac | 26 ++++++++++++++++++++++++++
9 1 file changed, 26 insertions(+)
10
11diff --git a/configure.ac b/configure.ac
12index e73958c..9099370 100644
13--- a/configure.ac
14+++ b/configure.ac
15@@ -270,6 +270,18 @@ AC_CHECK_HEADERS(m4_normalize([
16 sys/vfs.h
17 sys/xattr.h
18 ]))
19+
20+AC_ARG_ENABLE([acl],
21+ [AS_HELP_STRING([--enable-acl], [turn on acl support])],
22+ [case $enableval in
23+ yes)
24+ AC_CHECK_HEADERS([sys/acl.h])
25+ ;;
26+ no) ;;
27+ *) AC_MSG_ERROR([bad value $enableval for aio option]) ;;
28+ esac]
29+)
30+
31 AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],
32 [], [], [#include <stddef.h>
33 #include <sys/socket.h>
34@@ -745,6 +757,20 @@ if test "x$ac_cv_lib_dl_dladdr" = xyes; then
35 fi
36 AC_SUBST(dl_LIBS)
37
38+AC_ARG_ENABLE([aio],
39+ [AS_HELP_STRING([--enable-aio], [turn on libaio support])],
40+ [case $enableval in
41+ yes)
42+ AC_CHECK_HEADERS([libaio.h], [
43+ AC_CHECK_MEMBERS([struct iocb.u.c.flags],,, [#include <libaio.h>])
44+ AC_CHECK_DECLS([IO_CMD_PWRITE, IO_CMD_PWRITEV],,, [#include <libaio.h>])
45+ ])
46+ ;;
47+ no) ;;
48+ *) AC_MSG_ERROR([bad value $enableval for aio option]) ;;
49+ esac]
50+)
51+
52 AC_PATH_PROG([PERL], [perl])
53
54 dnl stack trace with libunwind
55--
561.9.1
57