blob: bbd411090206f4d472d4af6b5ad96e495a71fde9 [file] [log] [blame]
Dmitry V. Levin38a34c92015-12-17 17:56:48 +00001# Configure template for strace.
2#
3# Copyright (c) 1999-2001 Wichert Akkerman <wichert@deephackmode.org>
4# Copyright (c) 2002-2009 Roland McGrath <roland@redhat.com>
Dmitry V. Levin2165a352016-01-12 00:02:56 +00005# Copyright (c) 2006-2016 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin38a34c92015-12-17 17:56:48 +00006# Copyright (c) 2008-2015 Mike Frysinger <vapier@gentoo.org>
7# Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
8# All rights reserved.
9#
10# Redistribution and use in source and binary forms, with or without
11# modification, are permitted provided that the following conditions
12# are met:
13# 1. Redistributions of source code must retain the above copyright
14# notice, this list of conditions and the following disclaimer.
15# 2. Redistributions in binary form must reproduce the above copyright
16# notice, this list of conditions and the following disclaimer in the
17# documentation and/or other materials provided with the distribution.
18# 3. The name of the author may not be used to endorse or promote products
19# derived from this software without specific prior written permission.
20#
21# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
Roland McGrath6d2b3492002-12-30 00:51:30 +000032AC_PREREQ(2.57)
Dmitry V. Levindce75932013-04-30 23:52:12 +000033AC_INIT([strace],
34 m4_esyscmd([./git-version-gen .tarball-version]),
35 [strace-devel@lists.sourceforge.net])
Roland McGrath6d2b3492002-12-30 00:51:30 +000036AC_CONFIG_SRCDIR([strace.c])
Roland McGrathffda2d32009-10-11 16:25:29 -070037AC_CONFIG_AUX_DIR([.])
Mike Frysingerbb3a0f72013-04-30 22:41:11 -040038AC_CONFIG_HEADERS([config.h])
Dmitry V. Levin2afa76e2016-06-08 00:32:22 +000039AM_INIT_AUTOMAKE([foreign nostdinc dist-xz silent-rules parallel-tests])
Roland McGrath6d2b3492002-12-30 00:51:30 +000040AM_MAINTAINER_MODE
41AC_CANONICAL_HOST
42
Dmitry V. Levin669efd82016-06-08 00:32:09 +000043RPM_CHANGELOGTIME="$(LC_TIME=C date '+%a %b %d %Y')"
44AC_SUBST(RPM_CHANGELOGTIME)
45DEB_CHANGELOGTIME="$(LC_TIME=C date -R)"
46AC_SUBST(DEB_CHANGELOGTIME)
Dmitry V. Levine2b3df22016-06-07 18:04:53 +000047
H.J. Lu35be5812012-04-16 13:00:01 +020048AC_PROG_CC
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +000049AC_PROG_CPP
Mike Frysinger58c7fe92015-02-26 22:22:36 -050050AX_PROG_CC_FOR_BUILD
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +000051AC_PROG_INSTALL
Elvira Khabirova09294222015-08-04 01:47:02 +030052AC_PROG_RANLIB
H.J. Lu35be5812012-04-16 13:00:01 +020053
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +000054AC_USE_SYSTEM_EXTENSIONS
Gabriel Laskarcba67102016-02-01 18:15:39 +010055AX_CODE_COVERAGE
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +000056
Roland McGrath6d2b3492002-12-30 00:51:30 +000057AC_MSG_CHECKING([for supported architecture])
Dmitry V. Levin1e04e572015-12-08 00:13:38 +000058arch_m32=
59arch_mx32=
Roland McGrath6d2b3492002-12-30 00:51:30 +000060case "$host_cpu" in
Dmitry V. Levin87ea1f42008-11-10 22:21:41 +000061bfin)
62 arch=bfin
63 AC_DEFINE([BFIN], 1, [Define for the Blackfin architecture.])
64 ;;
Roland McGrath6d2b3492002-12-30 00:51:30 +000065i[[3456]]86|pentium)
66 arch=i386
67 AC_DEFINE([I386], 1, [Define for the i386 architecture.])
68 ;;
69ia64)
70 arch=ia64
71 AC_DEFINE([IA64], 1, [Define for the IA64 architecture.])
72 ;;
73m68k)
74 arch=m68k
75 AC_DEFINE([M68K], 1, [Define for the m68k architecture.])
76 ;;
Roland McGrath6d1a65c2004-07-12 07:44:08 +000077sparc64*)
78 arch=sparc64
Dmitry V. Levin1e04e572015-12-08 00:13:38 +000079 arch_m32=sparc
Roland McGrath6d1a65c2004-07-12 07:44:08 +000080 AC_DEFINE([SPARC64], 1, [Define for the SPARC64 architecture.])
81 ;;
Roland McGrath6d2b3492002-12-30 00:51:30 +000082sparc*)
83 arch=sparc
84 AC_DEFINE([SPARC], 1, [Define for the SPARC architecture.])
85 ;;
James Hogan5f999a82013-02-22 14:44:10 +000086metag*)
87 arch=metag
88 AC_DEFINE([METAG], 1, [Define for the Meta architecture.])
89 ;;
Roland McGrath6d2b3492002-12-30 00:51:30 +000090mips*)
91 arch=mips
92 AC_DEFINE([MIPS], 1, [Define for the MIPS architecture.])
93 ;;
94alpha*)
95 arch=alpha
96 AC_DEFINE([ALPHA], 1, [Define for the Alpha architecture.])
97 ;;
Roland McGratheb285352003-01-14 09:59:00 +000098powerpc*)
Roland McGrath6d2b3492002-12-30 00:51:30 +000099 AC_DEFINE([POWERPC], 1, [Define for the PowerPC architecture.])
Anton Blanchard9afc2ee2013-07-11 12:03:57 +1000100 AC_TRY_COMPILE(
101[#ifndef __LP64__
102# error 32 bit
Dmitry V. Levinaf3ab5b2015-01-21 17:04:31 +0000103#endif], [], arch=powerpc64, arch=powerpc)
104 if test "$arch" = "powerpc64"; then
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000105 arch_m32=powerpc
Andreas Schwabd69fa492010-07-12 21:39:57 +0200106 AC_DEFINE([POWERPC64], 1, [Define for the PowerPC64 architecture.])
107 fi
Roland McGrath6d2b3492002-12-30 00:51:30 +0000108 ;;
109arm*)
110 arch=arm
111 AC_DEFINE([ARM], 1, [Define for the ARM architecture.])
112 ;;
Steve McIntyred8d3bd32012-10-24 17:58:16 +0100113aarch64*)
114 arch=aarch64
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000115 arch_m32=arm
Steve McIntyred8d3bd32012-10-24 17:58:16 +0100116 AC_DEFINE([AARCH64], 1, [Define for the AArch64 architecture.])
117 ;;
Denys Vlasenko5ae2b7c2009-02-27 20:32:52 +0000118avr32*)
119 arch=avr32
120 AC_DEFINE([AVR32], 1, [Define for the AVR32 architecture.])
121 ;;
Vineet Gupta7daacbb2013-08-16 12:47:06 +0530122arc*)
123 arch=arc
124 AC_DEFINE([ARC], 1, [Define for the ARC architecture.])
125 ;;
Roland McGrath6d2b3492002-12-30 00:51:30 +0000126s390)
127 arch=s390
128 AC_DEFINE([S390], 1, [Define for the S390 architecture.])
129 ;;
130s390x)
131 arch=s390x
132 AC_DEFINE([S390X], 1, [Define for the S390x architecture.])
133 ;;
134hppa*|parisc*)
135 arch=hppa
136 AC_DEFINE([HPPA], 1, [Define for the HPPA architecture.])
137 ;;
Roland McGrath67828ca2007-11-01 21:32:49 +0000138sh64*)
Roland McGrathf5a47772003-06-26 22:40:42 +0000139 arch=sh64
140 AC_DEFINE([SH64], 1, [Define for the SH64 architecture.])
Roland McGrathe1e584b2003-06-02 19:18:58 +0000141 ;;
Roland McGrath67828ca2007-11-01 21:32:49 +0000142sh*)
143 arch=sh
144 AC_DEFINE([SH], 1, [Define for the SH architecture.])
145 ;;
Roland McGrath6d2b3492002-12-30 00:51:30 +0000146x86?64*)
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000147 arch_m32=i386
H.J. Lu35be5812012-04-16 13:00:01 +0200148 AC_TRY_COMPILE(
149[#ifndef __ILP32__
150# error not x32
151#endif], [], arch=x32, arch=x86_64)
152 if test "$arch" = "x86_64"; then
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000153 arch_mx32=x32
H.J. Lu35be5812012-04-16 13:00:01 +0200154 AC_DEFINE([X86_64], 1, [Define for the 64bit AMD x86-64 architecture.])
155 else
156 AC_DEFINE([X32], 1, [Define for the 32bit AMD x86-64 architecture.])
157 fi
Roland McGrath6d2b3492002-12-30 00:51:30 +0000158 ;;
Denys Vlasenkoea0e6e82009-02-25 17:08:40 +0000159cris|crisv10)
160 arch=crisv10
161 AC_DEFINE([CRISV10], 1, [Define for the CRISv10 architecture.])
162 ;;
163crisv32)
164 arch=crisv32
165 AC_DEFINE([CRISV32], 1, [Define for the CRISv32 architecture.])
166 ;;
Chris Metcalfc8c66982009-12-28 10:00:15 -0500167tile*)
168 arch=tile
169 AC_DEFINE([TILE], 1, [Define for the Tile architecture])
170 ;;
Edgar E. Iglesias939caba2010-07-06 14:21:07 +0200171microblaze*)
172 arch=microblaze
173 AC_DEFINE([MICROBLAZE], 1, [Define for the MicroBlaze architecture.])
174 ;;
Ezequiel Garciabd8dd772015-04-18 17:33:27 -0300175nios2*)
176 arch=nios2
177 AC_DEFINE([NIOS2], 1, [Define for the Nios-II architecture.])
178 ;;
179
Christian Svensson492f81f2013-02-14 13:26:27 +0100180or1k*)
181 arch=or1k
182 AC_DEFINE([OR1K], 1, [Define for the OpenRISC 1000 architecture.])
183 ;;
184
Chris Zankel8f636ed2013-03-25 10:22:07 -0700185xtensa*)
186 arch=xtensa
187 AC_DEFINE([XTENSA], 1, [Define for the Xtensa architecture])
188 ;;
189
Richard W.M. Jonesd8f67352016-08-19 14:16:41 +0100190riscv*)
191 arch=riscv
192 AC_DEFINE([RISCV], 1, [Define for the RISC-V architecture])
193 ;;
194
Roland McGrath6d2b3492002-12-30 00:51:30 +0000195*)
196 AC_MSG_RESULT([NO!])
197 AC_MSG_ERROR([architecture $host_cpu is not supported by strace])
198 ;;
199esac
200AC_MSG_RESULT($arch)
201
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000202test -n "$arch_m32" ||
203 arch_m32=$arch
204test -n "$arch_mx32" ||
205 arch_mx32=$arch
Roland McGrath6d2b3492002-12-30 00:51:30 +0000206AC_SUBST(arch)
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000207AC_SUBST(arch_m32)
208AC_SUBST(arch_mx32)
Roland McGrath6d2b3492002-12-30 00:51:30 +0000209
James Cowgill468dccf2016-08-11 16:33:02 +0000210MIPS_ABI=
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000211if test "$arch" = mips; then
Dmitry V. Levin6684b682015-08-18 22:53:22 +0000212 AC_CACHE_CHECK([for _MIPS_SIM], [st_cv__MIPS_SIM],
213 [AC_COMPUTE_INT([st_cv__MIPS_SIM], [_MIPS_SIM],
214 [#include <sgidefs.h>],
215 [AC_MSG_ERROR([_MIPS_SIM cannot be determined])])])
216
217 AC_CACHE_CHECK([for MIPS ABI], [st_cv_mips_abi],
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000218 [AC_COMPILE_IFELSE(
219 [AC_LANG_PROGRAM([[#include <sgidefs.h>]],
220 [[int i[_MIPS_SIM == _MIPS_SIM_ABI32 ? 1 : - 1];]])],
Dmitry V. Levin6684b682015-08-18 22:53:22 +0000221 [st_cv_mips_abi=o32],
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000222 [AC_COMPILE_IFELSE(
223 [AC_LANG_PROGRAM([[#include <sgidefs.h>]],
224 [[int i[_MIPS_SIM == _MIPS_SIM_NABI32 ? 1 : - 1];]])],
Dmitry V. Levin6684b682015-08-18 22:53:22 +0000225 [st_cv_mips_abi=n32],
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000226 [AC_COMPILE_IFELSE(
227 [AC_LANG_PROGRAM([[#include <sgidefs.h>]],
228 [[int i[_MIPS_SIM == _MIPS_SIM_ABI64 ? 1 : - 1];]])],
Dmitry V. Levin6684b682015-08-18 22:53:22 +0000229 [st_cv_mips_abi=n64],
230 [st_cv_mips_abi=unknown])])])])
231
232 case "$st_cv_mips_abi" in
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000233 o32) AC_DEFINE([LINUX_MIPSO32], [1], [Define for _MIPS_SIM_ABI32.]);;
234 n32) AC_DEFINE([LINUX_MIPSN32], [1], [Define for _MIPS_SIM_NABI32.]);;
235 n64) AC_DEFINE([LINUX_MIPSN64], [1], [Define for _MIPS_SIM_ABI64.]);;
236 *) AC_MSG_ERROR([Unsupported _MIPS_SIM]);;
237 esac
James Cowgill468dccf2016-08-11 16:33:02 +0000238 MIPS_ABI="$st_cv_mips_abi"
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000239fi
James Cowgill468dccf2016-08-11 16:33:02 +0000240AC_SUBST(MIPS_ABI)
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000241
Dmitry V. Levin0160e162014-03-18 23:37:43 +0000242AC_ARG_ENABLE([arm-oabi],
243 [AS_HELP_STRING([--enable-arm-oabi],
244 [enable OABI support on ARM EABI])],
245 [], [enable_arm_oabi=no])
246case "$enable_arm_oabi" in
247 yes) enable_arm_oabi=1 ;;
248 no) enable_arm_oabi=0 ;;
249 *) AC_MSG_ERROR([bad value $enable_arm_oabi for arm-oabi option]) ;;
250esac
251AC_DEFINE_UNQUOTED([ENABLE_ARM_OABI], [$enable_arm_oabi],
252 [Define to 1 if you want OABI support on ARM EABI.])
253
Dmitry V. Levin918e49b2010-09-09 17:41:15 +0000254gl_WARN_ADD([-Wall])
Elvira Khabirovadc427d52016-06-13 01:41:02 +0300255gl_WARN_ADD([-Wempty-body])
256gl_WARN_ADD([-Wformat-security])
257gl_WARN_ADD([-Wignored-qualifiers])
258gl_WARN_ADD([-Winit-self])
259gl_WARN_ADD([-Wlogical-op])
260gl_WARN_ADD([-Wmissing-parameter-type])
261gl_WARN_ADD([-Wnested-externs])
262gl_WARN_ADD([-Wold-style-declaration])
263gl_WARN_ADD([-Wold-style-definition])
Dmitry V. Levin3ed5d022014-09-10 13:46:04 +0000264gl_WARN_ADD([-Wsign-compare])
Elvira Khabirovadc427d52016-06-13 01:41:02 +0300265gl_WARN_ADD([-Wtype-limits])
266gl_WARN_ADD([-Wwrite-strings])
Dmitry V. Levind376c922012-05-15 00:50:26 +0000267AC_ARG_ENABLE([gcc-Werror],
268 [AS_HELP_STRING([--enable-gcc-Werror], [turn on gcc's -Werror option])],
269 [case $enableval in
270 yes) gl_WARN_ADD([-Werror]) ;;
271 no) ;;
272 *) AC_MSG_ERROR([bad value $enableval for gcc-Werror option]) ;;
273 esac]
274)
Dmitry V. Levin918e49b2010-09-09 17:41:15 +0000275AC_SUBST([WARN_CFLAGS])
Roland McGrath6d2b3492002-12-30 00:51:30 +0000276
Mike Frysinger6d12afd2010-09-12 03:39:55 -0400277AC_C_BIGENDIAN
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000278AC_C_CONST
Dmitry V. Levin2165a352016-01-12 00:02:56 +0000279AC_C_TYPEOF
Roland McGrath6d2b3492002-12-30 00:51:30 +0000280
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000281AC_TYPE_GETGROUPS
282AC_TYPE_MODE_T
Roland McGrath6d2b3492002-12-30 00:51:30 +0000283AC_TYPE_SIGNAL
284AC_TYPE_UID_T
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000285
286AC_HEADER_DIRENT
Roland McGrath6d2b3492002-12-30 00:51:30 +0000287AC_HEADER_MAJOR
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000288AC_HEADER_STAT
289AC_HEADER_STDBOOL
290AC_HEADER_STDC
Roland McGrath6d2b3492002-12-30 00:51:30 +0000291
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000292AC_CHECK_FUNCS(m4_normalize([
Dmitry V. Levin891855e2016-07-11 17:21:22 +0000293 accept4
Dmitry V. Levin1ea64732015-01-10 00:08:58 +0000294 fanotify_mark
Dmitry V. Levind3541302014-02-26 00:01:00 +0000295 fopen64
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000296 fork
Dmitry V. Levind3541302014-02-26 00:01:00 +0000297 fputs_unlocked
Dmitry V. Levinb0e61152015-12-02 01:02:39 +0000298 fstatat
299 ftruncate
300 futimens
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000301 if_indextoname
Dmitry V. Levinbf2698a2016-07-03 22:15:45 +0000302 open64
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000303 pipe2
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000304 prctl
Mike Frysinger97ca0272014-08-11 02:52:08 -0400305 preadv
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000306 process_vm_readv
Mike Frysinger97ca0272014-08-11 02:52:08 -0400307 pwritev
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000308 sigaction
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000309 signalfd
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000310 stpcpy
311 strerror
312 strsignal
Dmitry V. Levin5b2d2572016-04-06 00:02:08 +0000313 sync_file_range
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +0000314 utimensat
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000315]))
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000316
317AC_CHECK_TYPES([sig_atomic_t, struct sigcontext],,, [#include <signal.h>])
318
319AC_CHECK_TYPES([struct mmsghdr],,, [#include <sys/socket.h>])
320
321AC_CHECK_TYPES([__kernel_long_t, __kernel_ulong_t],,,
322[#include <asm/posix_types.h>])
323
324AC_CHECK_TYPES([struct stat64, struct __old_kernel_stat],,,
325[#include <sys/types.h>
326#include <asm/stat.h>])
327
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000328AC_CHECK_TYPES(m4_normalize([
329 struct pt_all_user_regs,
330 struct ia64_fpreg,
331 struct ptrace_peeksiginfo_args
332]),,, [#include <sys/ptrace.h>])
333
334AC_CHECK_TYPES(m4_normalize([
335 struct flock,
336 struct flock64,
337 struct __kernel_flock,
338 struct __kernel_flock64
339]),,,
340[#include <sys/types.h>
341#include <linux/fcntl.h>])
342
343AC_CHECK_MEMBERS(m4_normalize([
344 struct stat.st_atim.tv_nsec,
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000345 struct stat.st_ctim.tv_nsec,
Dmitry V. Levin18cac622016-08-15 17:33:25 +0000346 struct stat.st_mtim.tv_nsec
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000347]))
348
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000349AC_CHECK_MEMBERS([struct timex.tai],,, [#include <sys/timex.h>])
350
351AC_CHECK_MEMBERS([struct utsname.domainname],,, [#include <sys/utsname.h>])
352
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000353AC_CHECK_MEMBERS(m4_normalize([
354 struct stat.st_atime_nsec,
355 struct stat.st_ctime_nsec,
356 struct stat.st_mtime_nsec
357]),,, [#include <sys/types.h>
358#include <asm/stat.h>])
359
360AC_CHECK_MEMBERS(m4_normalize([
361 siginfo_t.si_syscall,
362 siginfo_t.si_timerid,
363 siginfo_t.si_overrun
364]),,, [#include <signal.h>])
365
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000366AC_CHECK_HEADERS(m4_normalize([
367 asm/cachectl.h
368 asm/sysmips.h
Lubomir Rintelc400a1c2014-10-03 11:40:28 +0200369 bluetooth/bluetooth.h
Dmitry V. Levinc41808b2013-03-18 00:52:29 +0000370 elf.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000371 inttypes.h
Bart Van Assche67d0a8e2015-02-06 13:37:03 +0100372 linux/bsg.h
Dmitry V. Levin52572b62014-12-11 19:21:54 +0000373 linux/falloc.h
Dmitry V. Levinc5253072016-05-24 00:19:17 +0000374 linux/fiemap.h
Dmitry V. Levin2af69032015-02-04 23:50:50 +0000375 linux/filter.h
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000376 linux/hiddev.h
Mike Frysinger54646b82015-08-19 13:29:27 -0400377 linux/ip_vs.h
Mike Frysingerba10a422015-10-31 00:47:53 -0400378 linux/ipc.h
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000379 linux/mmtimer.h
Mike Frysingerba10a422015-10-31 00:47:53 -0400380 linux/msg.h
Ben Noordhuis88eafd82013-02-04 00:04:57 +0100381 linux/perf_event.h
Dmitry V. Levin2af69032015-02-04 23:50:50 +0000382 linux/seccomp.h
Dmitry V. Levin1e880732015-02-14 01:51:03 +0000383 linux/securebits.h
Mike Frysingerba10a422015-10-31 00:47:53 -0400384 linux/sem.h
385 linux/shm.h
Dr. David Alan Gilbert5d1216a2016-05-10 11:49:02 +0100386 linux/userfaultfd.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000387 linux/utsname.h
388 mqueue.h
389 netinet/sctp.h
Dmitry V. Levinebda41a2016-06-19 22:02:45 +0000390 netipx/ipx.h
Dmitry V. Levinfdb896e2014-02-25 23:04:55 +0000391 scsi/sg.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000392 stropts.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000393 sys/conf.h
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000394 sys/eventfd.h
Dmitry V. Levin1ea64732015-01-10 00:08:58 +0000395 sys/fanotify.h
Mike Frysingerba10a422015-10-31 00:47:53 -0400396 sys/ipc.h
397 sys/msg.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000398 sys/reg.h
Mike Frysingerba10a422015-10-31 00:47:53 -0400399 sys/sem.h
400 sys/shm.h
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000401 sys/signalfd.h
Masatake YAMATOf5480672014-11-22 19:03:33 +0900402 sys/xattr.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000403]))
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000404
405AC_CHECK_HEADERS([asm/sigcontext.h],,, [#include <signal.h>])
406
407AC_CHECK_HEADERS([netinet/tcp.h netinet/udp.h],,, [#include <netinet/in.h>])
408
Mike Frysingerba10a422015-10-31 00:47:53 -0400409AC_CHECK_HEADERS([linux/mqueue.h],,, [#include <linux/types.h>])
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000410
Mike Frysinger54646b82015-08-19 13:29:27 -0400411AC_CHECK_HEADERS(m4_normalize([
412 linux/netfilter_arp/arp_tables.h
413 linux/netfilter_bridge/ebtables.h
414 linux/netfilter_ipv4/ip_tables.h
415 linux/netfilter_ipv6/ip6_tables.h
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000416]),,, [#include <netinet/in.h>
Mike Frysinger54646b82015-08-19 13:29:27 -0400417#include <net/if.h>])
Roland McGrath6d2b3492002-12-30 00:51:30 +0000418
Dmitry V. Levin19dadf92015-02-22 02:50:33 +0300419AC_CHECK_HEADERS([linux/input.h], [
420 AC_CHECK_MEMBERS([struct input_absinfo.resolution],,, [#include <linux/input.h>])
421])
422
Dmitry V. Levin4e3ded32015-07-29 16:27:16 +0000423AC_CHECK_HEADERS([linux/bpf.h], [
424 AC_CACHE_CHECK([whether union bpf_attr.log_buf initialization works],
425 [st_cv_have_union_bpf_attr_log_buf],
426 [AC_COMPILE_IFELSE(
427 [AC_LANG_PROGRAM([[#include <linux/bpf.h>]],
428 [[union bpf_attr a = { .log_buf = 0 };]])],
429 [st_cv_have_union_bpf_attr_log_buf=yes],
430 [st_cv_have_union_bpf_attr_log_buf=no])])
431 if test $st_cv_have_union_bpf_attr_log_buf = yes; then
432 AC_DEFINE(HAVE_UNION_BPF_ATTR_LOG_BUF, [1],
433 [Define to 1 if union bpf_attr.log_buf initialization works])
434 fi
435])
436
Dmitry V. Levin67c2f672016-04-26 00:21:26 +0000437AC_CHECK_TYPES([struct statfs], [
438 AC_CHECK_MEMBERS([struct statfs.f_frsize],,, [#include <linux/types.h>
439#include <asm/statfs.h>])
440 AC_CHECK_MEMBERS([struct statfs.f_flags],,, [#include <linux/types.h>
441#include <asm/statfs.h>])
442 AC_CHECK_MEMBERS([struct statfs.f_fsid.val],,, [#include <linux/types.h>
443#include <asm/statfs.h>])
444 AC_CHECK_MEMBERS([struct statfs.f_fsid.__val],,, [#include <linux/types.h>
445#include <asm/statfs.h>])
446],, [#include <linux/types.h>
447#include <asm/statfs.h>])
448
449AC_CHECK_TYPES([struct statfs64], [
450 AC_CHECK_MEMBERS([struct statfs64.f_frsize],,, [#include <linux/types.h>
451#include <asm/statfs.h>])
452 AC_CHECK_MEMBERS([struct statfs64.f_flags],,, [#include <linux/types.h>
453#include <asm/statfs.h>])
454 AC_CHECK_MEMBERS([struct statfs64.f_fsid.val],,, [#include <linux/types.h>
455#include <asm/statfs.h>])
456 AC_CHECK_MEMBERS([struct statfs64.f_fsid.__val],,, [#include <linux/types.h>
457#include <asm/statfs.h>])
458],, [#include <linux/types.h>
459#include <asm/statfs.h>])
460
Dmitry V. Levin799b22a2016-05-26 12:55:41 +0000461AC_CHECK_TYPES([struct blk_user_trace_setup],,, [#include <linux/blktrace_api.h>])
462
Jeff Mahoney8cc69622016-05-18 18:09:39 -0400463AC_CHECK_HEADERS([linux/btrfs.h], [
464 AC_CHECK_MEMBERS(m4_normalize([
465 struct btrfs_ioctl_feature_flags.compat_flags,
466 struct btrfs_ioctl_fs_info_args.nodesize,
Dmitry V. Levin7c0e8872016-06-16 23:21:57 +0000467 struct btrfs_ioctl_defrag_range_args.start,
Jeff Mahoney8cc69622016-05-18 18:09:39 -0400468 struct btrfs_ioctl_search_args_v2.buf_size
469 ]),,, [ #include <stdio.h>
470#include <linux/btrfs.h>])
471 AC_CHECK_DECLS(m4_normalize([BTRFS_COMPRESS_NONE, BTRFS_COMPRESS_ZLIB,
472 BTRFS_COMPRESS_LZO]),,,[ #include <stdio.h>
473#include <linux/btrfs.h>])])
474
Roland McGrath6d2b3492002-12-30 00:51:30 +0000475AC_CHECK_DECLS([sys_errlist])
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000476AC_CHECK_DECLS(m4_normalize([
Dmitry V. Levin6974bd42013-11-12 21:20:50 +0000477 PTRACE_PEEKUSER,
Dmitry V. Levinfadf3792015-02-13 00:26:38 +0000478 PTRACE_POKEUSER
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000479]),,, [#include <sys/ptrace.h>])
Roland McGrath6d2b3492002-12-30 00:51:30 +0000480
Dmitry V. Levincf050db2012-05-02 10:21:49 +0000481AC_CHECK_DECLS(m4_normalize([
Dmitry V. Levind8ad1dd2014-04-26 15:22:08 +0000482 P_PID,
483 P_PPID,
484 P_PGID,
485 P_SID,
486 P_CID,
487 P_UID,
488 P_GID,
489 P_ALL,
490 P_LWPID
491]),,, [#include <sys/wait.h>])
492
493AC_CHECK_DECLS(m4_normalize([
Dmitry V. Levinbaf60d92014-04-26 14:12:33 +0000494 LO_FLAGS_READ_ONLY,
Dmitry V. Levincf050db2012-05-02 10:21:49 +0000495 LO_FLAGS_AUTOCLEAR,
496 LO_FLAGS_PARTSCAN
497]),,, [#include <linux/loop.h>])
498
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000499AC_CHECK_DECLS(m4_normalize([
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000500 CTL_PROC,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000501 CTL_ARLAN,
502 CTL_S390DBF,
503 CTL_SUNRPC,
504 CTL_PM,
505 CTL_FRV,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000506 KERN_PRINTK_RATELIMIT,
507 KERN_PRINTK_RATELIMIT_BURST,
508 KERN_PTY,
509 KERN_NGROUPS_MAX,
510 KERN_SPARC_SCONS_PWROFF,
511 KERN_HZ_TIMER,
512 KERN_UNKNOWN_NMI_PANIC,
513 KERN_BOOTLOADER_TYPE,
514 KERN_RANDOMIZE,
515 KERN_SETUID_DUMPABLE,
516 KERN_SPIN_RETRY,
517 KERN_ACPI_VIDEO_FLAGS,
518 KERN_IA64_UNALIGNED,
519 KERN_COMPAT_LOG,
520 KERN_MAX_LOCK_DEPTH,
521 KERN_NMI_WATCHDOG,
522 KERN_PANIC_ON_NMI,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000523 NET_LLC,
524 NET_NETFILTER,
525 NET_DCCP,
526 NET_IRDA,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000527 NET_CORE_DESTROY_DELAY,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000528 NET_CORE_BUDGET,
529 NET_CORE_AEVENT_ETIME,
530 NET_CORE_AEVENT_RSEQTH,
531 NET_CORE_WARNINGS,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000532 NET_IPV4_IGMP_MAX_MSF,
533 NET_TCP_NO_METRICS_SAVE,
534 NET_TCP_DEFAULT_WIN_SCALE,
535 NET_TCP_MODERATE_RCVBUF,
536 NET_TCP_TSO_WIN_DIVISOR,
537 NET_TCP_BIC_BETA,
538 NET_IPV4_ICMP_ERRORS_USE_INBOUND_IFADDR,
539 NET_TCP_CONG_CONTROL,
540 NET_TCP_ABC,
541 NET_IPV4_IPFRAG_MAX_DIST,
542 NET_TCP_MTU_PROBING,
543 NET_TCP_BASE_MSS,
544 NET_IPV4_TCP_WORKAROUND_SIGNED_WINDOWS,
545 NET_TCP_DMA_COPYBREAK,
546 NET_TCP_SLOW_START_AFTER_IDLE,
547 NET_CIPSOV4_CACHE_ENABLE,
548 NET_CIPSOV4_CACHE_BUCKET_SIZE,
549 NET_CIPSOV4_RBM_OPTFMT,
550 NET_CIPSOV4_RBM_STRICTVALID,
551 NET_TCP_AVAIL_CONG_CONTROL,
552 NET_TCP_ALLOWED_CONG_CONTROL,
553 NET_TCP_MAX_SSTHRESH,
554 NET_TCP_FRTO_RESPONSE,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000555 NET_IPV4_ROUTE_GC_MIN_INTERVAL_MS,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000556 NET_IPV4_CONF_FORCE_IGMP_VERSION,
557 NET_IPV4_CONF_ARP_ANNOUNCE,
558 NET_IPV4_CONF_ARP_IGNORE,
559 NET_IPV4_CONF_PROMOTE_SECONDARIES,
560 NET_IPV4_CONF_ARP_ACCEPT,
561 NET_IPV4_CONF_ARP_NOTIFY,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000562 NET_IPV6_MLD_MAX_MSF,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000563 NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000564 VM_MAX_MAP_COUNT,
565 VM_LAPTOP_MODE,
566 VM_BLOCK_DUMP,
567 VM_HUGETLB_GROUP,
568 VM_VFS_CACHE_PRESSURE,
569 VM_LEGACY_VA_LAYOUT,
570 VM_SWAP_TOKEN_TIMEOUT
571]),,,
572[#include <sys/types.h>
573#include <linux/sysctl.h>])
574
Philippe De Muyter0cc96142014-11-03 21:27:40 +0100575AC_CHECK_DECLS(m4_normalize([
576 V4L2_FIELD_ANY,
577 V4L2_FIELD_NONE,
578 V4L2_FIELD_TOP,
579 V4L2_FIELD_BOTTOM,
580 V4L2_FIELD_INTERLACED,
581 V4L2_FIELD_SEQ_TB,
582 V4L2_FIELD_SEQ_BT,
583 V4L2_FIELD_ALTERNATE,
584 V4L2_FIELD_INTERLACED_TB,
585 V4L2_FIELD_INTERLACED_BT,
586 V4L2_BUF_TYPE_VIDEO_CAPTURE,
587 V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,
588 V4L2_BUF_TYPE_VIDEO_OUTPUT,
589 V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,
590 V4L2_BUF_TYPE_VIDEO_OVERLAY,
591 V4L2_BUF_TYPE_VBI_CAPTURE,
592 V4L2_BUF_TYPE_VBI_OUTPUT,
593 V4L2_BUF_TYPE_SLICED_VBI_CAPTURE,
594 V4L2_BUF_TYPE_SLICED_VBI_OUTPUT,
595 V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY,
596 V4L2_TUNER_RADIO,
597 V4L2_TUNER_ANALOG_TV,
598 V4L2_TUNER_DIGITAL_TV,
599 V4L2_MEMORY_MMAP,
600 V4L2_MEMORY_USERPTR,
601 V4L2_MEMORY_OVERLAY,
602 V4L2_MEMORY_DMABUF,
603 V4L2_COLORSPACE_SMPTE170M,
604 V4L2_COLORSPACE_SMPTE240M,
605 V4L2_COLORSPACE_REC709,
606 V4L2_COLORSPACE_BT878,
607 V4L2_COLORSPACE_470_SYSTEM_M,
608 V4L2_COLORSPACE_470_SYSTEM_BG,
609 V4L2_COLORSPACE_JPEG,
610 V4L2_COLORSPACE_SRGB,
611 V4L2_PRIORITY_UNSET,
612 V4L2_PRIORITY_BACKGROUND,
613 V4L2_PRIORITY_INTERACTIVE,
614 V4L2_PRIORITY_RECORD,
615 V4L2_FRMSIZE_TYPE_DISCRETE,
616 V4L2_FRMSIZE_TYPE_CONTINUOUS,
617 V4L2_FRMSIZE_TYPE_STEPWISE,
618 V4L2_FRMIVAL_TYPE_DISCRETE,
619 V4L2_FRMIVAL_TYPE_CONTINUOUS,
620 V4L2_FRMIVAL_TYPE_STEPWISE,
621 V4L2_CTRL_TYPE_INTEGER,
622 V4L2_CTRL_TYPE_BOOLEAN,
623 V4L2_CTRL_TYPE_MENU,
624 V4L2_CTRL_TYPE_BUTTON,
625 V4L2_CTRL_TYPE_INTEGER64,
626 V4L2_CTRL_TYPE_CTRL_CLASS,
627 V4L2_CTRL_TYPE_STRING,
628 V4L2_CTRL_TYPE_BITMASK,
629 V4L2_CTRL_TYPE_INTEGER_MENU
Dmitry V. Levina8443f82016-05-14 00:36:27 +0000630]),,, [#include <sys/time.h>
631#include <linux/ioctl.h>
632#include <linux/types.h>
633#include <linux/videodev2.h>])
Philippe De Muyter0cc96142014-11-03 21:27:40 +0100634
Dmitry V. Levin25caa312011-08-16 21:36:16 +0000635AC_CACHE_CHECK([for BLKGETSIZE64], [ac_cv_have_blkgetsize64],
636 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
637#include <stdlib.h>
638#include <linux/fs.h>], [return !BLKGETSIZE64;])],
639 [ac_cv_have_blkgetsize64=yes], [ac_cv_have_blkgetsize64=no])]
640 if test $ac_cv_have_blkgetsize64 = yes; then
641 AC_DEFINE([HAVE_BLKGETSIZE64], [1], [Define to 1 if you have BLKGETSIZE64.])
642 fi)
643
Dmitry V. Levin63e4f862012-03-15 20:42:46 +0000644AC_CHECK_SIZEOF([long])
Dmitry V. Levin7a498be2013-05-04 19:51:57 +0000645AC_CHECK_SIZEOF([long long])
Dmitry V. Levin54cabef2014-03-03 23:09:47 +0000646AC_CHECK_SIZEOF([off_t],,[#include <sys/types.h>])
Dmitry V. Levin8c20d892015-05-21 16:19:40 +0000647AC_CHECK_SIZEOF([struct i64_i32],,[struct i64_i32 {long long i64; int i32;};])
Dmitry V. Levin63e4f862012-03-15 20:42:46 +0000648
Dmitry V. Levin59f63d32015-03-05 05:03:41 +0000649AC_CACHE_CHECK([for SIGRTMIN], [st_cv_SIGRTMIN],
650 [[st_cv_SIGRTMIN="$(echo SIGRTMIN |
651 $CPP $CPPFLAGS -P -imacros asm/signal.h - |
652 grep '^[0-9]')"
653 test -n "$st_cv_SIGRTMIN" || st_cv_SIGRTMIN=no]])
654if test "x$st_cv_SIGRTMIN" != xno; then
655 AC_DEFINE_UNQUOTED([ASM_SIGRTMIN], [$st_cv_SIGRTMIN],
656 [SIGRTMIN defined in <asm/signal.h>])
657fi
658AC_CACHE_CHECK([for SA_RESTORER], [st_cv_SA_RESTORER],
659 [st_cv_SA_RESTORER="$(echo SA_RESTORER |
Dmitry V. Levinab3953b2014-02-08 00:15:52 +0000660 $CPP $CPPFLAGS -P -imacros asm/signal.h - |
661 grep ^0x)"
Dmitry V. Levin59f63d32015-03-05 05:03:41 +0000662 test -n "$st_cv_SA_RESTORER" || st_cv_SA_RESTORER=no])
663if test "x$st_cv_SA_RESTORER" != xno; then
664 AC_DEFINE_UNQUOTED([ASM_SA_RESTORER], [$st_cv_SA_RESTORER],
Dmitry V. Levinab3953b2014-02-08 00:15:52 +0000665 [SA_RESTORER defined in <asm/signal.h>])
666fi
667
Dmitry V. Levin38593e92014-02-26 16:51:28 +0000668AC_CACHE_CHECK([for __builtin_popcount], [st_cv_have___builtin_popcount],
669 [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [__builtin_popcount(0)])],
670 [st_cv_have___builtin_popcount=yes],
671 [st_cv_have___builtin_popcount=no])])
672if test "x$st_cv_have___builtin_popcount" = xyes; then
673 AC_DEFINE([HAVE___BUILTIN_POPCOUNT], [1],
674 [Define to 1 if the system provides __builtin_popcount function])
675fi
676
Dmitry V. Levin856b7592015-02-27 05:01:25 +0000677AC_CHECK_LIB([dl], [dladdr], [dl_LIBS='-ldl'], [dl_LIBS=])
Dmitry V. Levin977550d2015-02-27 04:09:56 +0000678if test "x$ac_cv_lib_dl_dladdr" = xyes; then
679 AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if the system provides dladdr])
Dmitry V. Levin977550d2015-02-27 04:09:56 +0000680fi
681AC_SUBST(dl_LIBS)
682
Roland McGrath6d2b3492002-12-30 00:51:30 +0000683AC_PATH_PROG([PERL], [perl])
684
Luca Clementi327064b2013-07-23 00:11:35 -0700685dnl stack trace with libunwind
686libunwind_CPPFLAGS=
687libunwind_LDFLAGS=
688libunwind_LIBS=
689AC_ARG_WITH([libunwind],
690 [AS_HELP_STRING([--with-libunwind],
691 [use libunwind to implement stack tracing support])],
692 [case "${withval}" in
693 yes|no|check) ;;
694 *) with_libunwind=yes
695 libunwind_CPPFLAGS="-I${withval}/include"
696 libunwind_LDFLAGS="-L${withval}/lib" ;;
697 esac],
698 [with_libunwind=check]
699)
700
701use_libunwind=no
702AS_IF([test "x$with_libunwind" != xno],
703 [saved_CPPFLAGS="$CPPFLAGS"
704 CPPFLAGS="$CPPFLAGS $libunwind_CPPFLAGS"
705
706 AC_CHECK_HEADERS([libunwind-ptrace.h],
707 [saved_LDFLAGS="$LDFLAGS"
708 LDFLAGS="$LDFLAGS $libunwind_LDFLAGS"
709
710 AC_CHECK_LIB([unwind], [backtrace],
711 [libunwind_LIBS="-lunwind $libunwind_LIBS"
712
713 AC_MSG_CHECKING([for unw_create_addr_space in libunwind-generic])
714 saved_LIBS="$LIBS"
715 LIBS="-lunwind-generic $libunwind_LIBS $LIBS"
716
717 AC_LINK_IFELSE(
718 [AC_LANG_PROGRAM([[#include <libunwind-ptrace.h>]],
719 [[return !unw_create_addr_space(0, 0)]])
720 ],
721 [AC_MSG_RESULT([yes])
722 libunwind_LIBS="-lunwind-generic $libunwind_LIBS"
723
724 AC_CHECK_LIB([unwind-ptrace], [_UPT_create],
725 [libunwind_LIBS="-lunwind-ptrace $libunwind_LIBS"
726 use_libunwind=yes
727 ],
728 [if test "x$with_libunwind" != xcheck; then
729 AC_MSG_FAILURE([failed to find _UPT_create in libunwind-ptrace])
730 fi
731 ],
732 [$libunwind_LIBS]
733 )
734 ],
735 [AC_MSG_RESULT([no])
736 if test "x$with_libunwind" != xcheck; then
737 AC_MSG_FAILURE([failed to find unw_create_addr_space in libunwind-generic])
738 fi
739 ]
740 )
741
742 LIBS="$saved_LIBS"
743 ],
744 [if test "x$with_libunwind" != xcheck; then
745 AC_MSG_FAILURE([failed to find libunwind])
746 fi
747 ],
748 [$libunwind_LIBS]
749 )
750
751 LDFLAGS="$saved_LDFLAGS"
752 ],
753 [if test "x$with_libunwind" != xcheck; then
754 AC_MSG_FAILURE([failed to find libunwind-ptrace.h])
755 fi
756 ]
757 )
758
759 CPPFLAGS="$saved_CPPFLAGS"
760 ]
761)
762
763dnl enable libunwind
764AC_MSG_CHECKING([whether to enable stack tracing support using libunwind])
765if test "x$use_libunwind" = xyes; then
766 AC_DEFINE([USE_LIBUNWIND], 1, [Compile stack tracing functionality])
767 AC_SUBST(libunwind_LIBS)
768 AC_SUBST(libunwind_LDFLAGS)
769 AC_SUBST(libunwind_CPPFLAGS)
770fi
771AM_CONDITIONAL([USE_LIBUNWIND], [test "x$use_libunwind" = xyes])
772AC_MSG_RESULT([$use_libunwind])
773
Dmitry V. Levind59287d2015-01-13 04:57:27 +0000774if test "$arch" = mips && test "$no_create" != yes; then
775 mkdir -p linux/mips
776 if $srcdir/linux/mips/genstub.sh linux/mips; then
777 AC_MSG_RESULT([Generated MIPS syscallent stubs])
778 else
779 AC_MSG_FAILURE([Failed to generate syscallent stubs])
780 fi
781fi
782
Dmitry V. Levinf8b49132015-07-23 11:19:47 +0000783st_MPERS([m32], [aarch64|powerpc64|sparc64|tile|x32|x86_64])
784st_MPERS([mx32], [x86_64])
Dmitry V. Levin679c47c2015-01-23 22:45:02 +0000785
Dmitry V. Levine2b3df22016-06-07 18:04:53 +0000786AC_CONFIG_FILES([Makefile
787 tests/Makefile
788 tests-m32/Makefile
789 tests-mx32/Makefile
Dmitry V. Levin669efd82016-06-08 00:32:09 +0000790 strace.spec
791 debian/changelog])
Roland McGrath6d2b3492002-12-30 00:51:30 +0000792AC_OUTPUT