Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 1 | dnl Process this file with autoconf to create configure. Use autoreconf. |
| 2 | AC_PREREQ(2.57) |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame] | 3 | AC_INIT([strace], |
| 4 | m4_esyscmd([./git-version-gen .tarball-version]), |
| 5 | [strace-devel@lists.sourceforge.net]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 6 | AC_CONFIG_SRCDIR([strace.c]) |
Roland McGrath | ffda2d3 | 2009-10-11 16:25:29 -0700 | [diff] [blame] | 7 | AC_CONFIG_AUX_DIR([.]) |
Mike Frysinger | bb3a0f7 | 2013-04-30 22:41:11 -0400 | [diff] [blame] | 8 | AC_CONFIG_HEADERS([config.h]) |
Dmitry V. Levin | 3cf90b6 | 2013-06-18 14:31:57 +0000 | [diff] [blame] | 9 | AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip silent-rules parallel-tests]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 10 | AM_MAINTAINER_MODE |
| 11 | AC_CANONICAL_HOST |
| 12 | |
H.J. Lu | 35be581 | 2012-04-16 13:00:01 +0200 | [diff] [blame] | 13 | AC_PROG_CC |
H.J. Lu | 35be581 | 2012-04-16 13:00:01 +0200 | [diff] [blame] | 14 | AC_USE_SYSTEM_EXTENSIONS |
| 15 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 16 | AC_MSG_CHECKING([for supported architecture]) |
| 17 | case "$host_cpu" in |
Dmitry V. Levin | 87ea1f4 | 2008-11-10 22:21:41 +0000 | [diff] [blame] | 18 | bfin) |
| 19 | arch=bfin |
| 20 | AC_DEFINE([BFIN], 1, [Define for the Blackfin architecture.]) |
| 21 | ;; |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 22 | i[[3456]]86|pentium) |
| 23 | arch=i386 |
| 24 | AC_DEFINE([I386], 1, [Define for the i386 architecture.]) |
| 25 | ;; |
| 26 | ia64) |
| 27 | arch=ia64 |
| 28 | AC_DEFINE([IA64], 1, [Define for the IA64 architecture.]) |
| 29 | ;; |
| 30 | m68k) |
| 31 | arch=m68k |
| 32 | AC_DEFINE([M68K], 1, [Define for the m68k architecture.]) |
| 33 | ;; |
Roland McGrath | 6d1a65c | 2004-07-12 07:44:08 +0000 | [diff] [blame] | 34 | sparc64*) |
| 35 | arch=sparc64 |
| 36 | AC_DEFINE([SPARC64], 1, [Define for the SPARC64 architecture.]) |
| 37 | ;; |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 38 | sparc*) |
| 39 | arch=sparc |
| 40 | AC_DEFINE([SPARC], 1, [Define for the SPARC architecture.]) |
| 41 | ;; |
James Hogan | 5f999a8 | 2013-02-22 14:44:10 +0000 | [diff] [blame] | 42 | metag*) |
| 43 | arch=metag |
| 44 | AC_DEFINE([METAG], 1, [Define for the Meta architecture.]) |
| 45 | ;; |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 46 | mips*) |
| 47 | arch=mips |
| 48 | AC_DEFINE([MIPS], 1, [Define for the MIPS architecture.]) |
| 49 | ;; |
| 50 | alpha*) |
| 51 | arch=alpha |
| 52 | AC_DEFINE([ALPHA], 1, [Define for the Alpha architecture.]) |
| 53 | ;; |
Roland McGrath | eb28535 | 2003-01-14 09:59:00 +0000 | [diff] [blame] | 54 | powerpc*) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 55 | arch=powerpc |
| 56 | AC_DEFINE([POWERPC], 1, [Define for the PowerPC architecture.]) |
Anton Blanchard | 9afc2ee | 2013-07-11 12:03:57 +1000 | [diff] [blame] | 57 | AC_TRY_COMPILE( |
| 58 | [#ifndef __LP64__ |
| 59 | # error 32 bit |
| 60 | #endif], [], ppc_bits=64, ppc_bits=32) |
| 61 | if test "$ppc_bits" = "64"; then |
Andreas Schwab | d69fa49 | 2010-07-12 21:39:57 +0200 | [diff] [blame] | 62 | AC_DEFINE([POWERPC64], 1, [Define for the PowerPC64 architecture.]) |
| 63 | fi |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 64 | ;; |
| 65 | arm*) |
| 66 | arch=arm |
| 67 | AC_DEFINE([ARM], 1, [Define for the ARM architecture.]) |
| 68 | ;; |
Steve McIntyre | d8d3bd3 | 2012-10-24 17:58:16 +0100 | [diff] [blame] | 69 | aarch64*) |
| 70 | arch=aarch64 |
| 71 | AC_DEFINE([AARCH64], 1, [Define for the AArch64 architecture.]) |
| 72 | ;; |
Denys Vlasenko | 5ae2b7c | 2009-02-27 20:32:52 +0000 | [diff] [blame] | 73 | avr32*) |
| 74 | arch=avr32 |
| 75 | AC_DEFINE([AVR32], 1, [Define for the AVR32 architecture.]) |
| 76 | ;; |
Vineet Gupta | 7daacbb | 2013-08-16 12:47:06 +0530 | [diff] [blame] | 77 | arc*) |
| 78 | arch=arc |
| 79 | AC_DEFINE([ARC], 1, [Define for the ARC architecture.]) |
| 80 | ;; |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 81 | s390) |
| 82 | arch=s390 |
| 83 | AC_DEFINE([S390], 1, [Define for the S390 architecture.]) |
| 84 | ;; |
| 85 | s390x) |
| 86 | arch=s390x |
| 87 | AC_DEFINE([S390X], 1, [Define for the S390x architecture.]) |
| 88 | ;; |
| 89 | hppa*|parisc*) |
| 90 | arch=hppa |
| 91 | AC_DEFINE([HPPA], 1, [Define for the HPPA architecture.]) |
| 92 | ;; |
Roland McGrath | 67828ca | 2007-11-01 21:32:49 +0000 | [diff] [blame] | 93 | sh64*) |
Roland McGrath | f5a4777 | 2003-06-26 22:40:42 +0000 | [diff] [blame] | 94 | arch=sh64 |
| 95 | AC_DEFINE([SH64], 1, [Define for the SH64 architecture.]) |
Roland McGrath | e1e584b | 2003-06-02 19:18:58 +0000 | [diff] [blame] | 96 | ;; |
Roland McGrath | 67828ca | 2007-11-01 21:32:49 +0000 | [diff] [blame] | 97 | sh*) |
| 98 | arch=sh |
| 99 | AC_DEFINE([SH], 1, [Define for the SH architecture.]) |
| 100 | ;; |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 101 | x86?64*) |
H.J. Lu | 35be581 | 2012-04-16 13:00:01 +0200 | [diff] [blame] | 102 | AC_TRY_COMPILE( |
| 103 | [#ifndef __ILP32__ |
| 104 | # error not x32 |
| 105 | #endif], [], arch=x32, arch=x86_64) |
| 106 | if test "$arch" = "x86_64"; then |
| 107 | AC_DEFINE([X86_64], 1, [Define for the 64bit AMD x86-64 architecture.]) |
| 108 | else |
| 109 | AC_DEFINE([X32], 1, [Define for the 32bit AMD x86-64 architecture.]) |
| 110 | fi |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 111 | ;; |
Denys Vlasenko | ea0e6e8 | 2009-02-25 17:08:40 +0000 | [diff] [blame] | 112 | cris|crisv10) |
| 113 | arch=crisv10 |
| 114 | AC_DEFINE([CRISV10], 1, [Define for the CRISv10 architecture.]) |
| 115 | ;; |
| 116 | crisv32) |
| 117 | arch=crisv32 |
| 118 | AC_DEFINE([CRISV32], 1, [Define for the CRISv32 architecture.]) |
| 119 | ;; |
Chris Metcalf | c8c6698 | 2009-12-28 10:00:15 -0500 | [diff] [blame] | 120 | tile*) |
| 121 | arch=tile |
| 122 | AC_DEFINE([TILE], 1, [Define for the Tile architecture]) |
| 123 | ;; |
Edgar E. Iglesias | 939caba | 2010-07-06 14:21:07 +0200 | [diff] [blame] | 124 | microblaze*) |
| 125 | arch=microblaze |
| 126 | AC_DEFINE([MICROBLAZE], 1, [Define for the MicroBlaze architecture.]) |
| 127 | ;; |
Christian Svensson | 492f81f | 2013-02-14 13:26:27 +0100 | [diff] [blame] | 128 | or1k*) |
| 129 | arch=or1k |
| 130 | AC_DEFINE([OR1K], 1, [Define for the OpenRISC 1000 architecture.]) |
| 131 | ;; |
| 132 | |
Chris Zankel | 8f636ed | 2013-03-25 10:22:07 -0700 | [diff] [blame] | 133 | xtensa*) |
| 134 | arch=xtensa |
| 135 | AC_DEFINE([XTENSA], 1, [Define for the Xtensa architecture]) |
| 136 | ;; |
| 137 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 138 | *) |
| 139 | AC_MSG_RESULT([NO!]) |
| 140 | AC_MSG_ERROR([architecture $host_cpu is not supported by strace]) |
| 141 | ;; |
| 142 | esac |
| 143 | AC_MSG_RESULT($arch) |
| 144 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 145 | AC_SUBST(arch) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 146 | |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 147 | AM_CONDITIONAL([I386], [test x$arch = xi386]) |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 148 | AM_CONDITIONAL([X86_64], [test x$arch = xx86_64]) |
H.J. Lu | 35be581 | 2012-04-16 13:00:01 +0200 | [diff] [blame] | 149 | AM_CONDITIONAL([X32], [test x$arch = xx32]) |
Roland McGrath | 45aeb6e | 2003-01-10 10:44:59 +0000 | [diff] [blame] | 150 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 151 | AC_INCLUDEDIR |
| 152 | |
Dmitry V. Levin | 918e49b | 2010-09-09 17:41:15 +0000 | [diff] [blame] | 153 | gl_WARN_ADD([-Wall]) |
Dmitry V. Levin | 1ed5d80 | 2010-09-09 17:42:28 +0000 | [diff] [blame] | 154 | gl_WARN_ADD([-Wwrite-strings]) |
Dmitry V. Levin | d376c92 | 2012-05-15 00:50:26 +0000 | [diff] [blame] | 155 | AC_ARG_ENABLE([gcc-Werror], |
| 156 | [AS_HELP_STRING([--enable-gcc-Werror], [turn on gcc's -Werror option])], |
| 157 | [case $enableval in |
| 158 | yes) gl_WARN_ADD([-Werror]) ;; |
| 159 | no) ;; |
| 160 | *) AC_MSG_ERROR([bad value $enableval for gcc-Werror option]) ;; |
| 161 | esac] |
| 162 | ) |
Dmitry V. Levin | 918e49b | 2010-09-09 17:41:15 +0000 | [diff] [blame] | 163 | AC_SUBST([WARN_CFLAGS]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 164 | |
| 165 | AC_PROG_CPP |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 166 | AC_PROG_INSTALL |
| 167 | AC_C_CONST |
Mike Frysinger | 6d12afd | 2010-09-12 03:39:55 -0400 | [diff] [blame] | 168 | AC_C_BIGENDIAN |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 169 | AC_HEADER_STDC |
Roland McGrath | 639658b | 2008-08-01 01:06:31 +0000 | [diff] [blame] | 170 | AC_HEADER_STDBOOL |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 171 | AC_HEADER_DIRENT |
| 172 | AC_HEADER_STAT |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 173 | AC_CHECK_MEMBERS(m4_normalize([ |
| 174 | struct stat.st_aclcnt, |
| 175 | struct stat.st_blksize, |
| 176 | struct stat.st_blocks, |
| 177 | struct stat.st_flags, |
| 178 | struct stat.st_fstype, |
| 179 | struct stat.st_gen, |
| 180 | struct stat.st_level, |
| 181 | struct stat.st_rdev |
| 182 | ])) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 183 | AC_STAT64 |
Bernhard Reutner-Fischer | 9906e6d | 2009-10-14 16:33:58 +0200 | [diff] [blame] | 184 | AC_STATFS64 |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 185 | |
| 186 | AC_TYPE_SIGNAL |
| 187 | AC_TYPE_UID_T |
| 188 | AC_TYPE_MODE_T |
| 189 | AC_TYPE_GETGROUPS |
| 190 | AC_HEADER_MAJOR |
Roland McGrath | acf06ef | 2003-01-10 19:57:34 +0000 | [diff] [blame] | 191 | AC_CHECK_TYPES([sig_atomic_t, siginfo_t],,, [#include <signal.h>]) |
Roland McGrath | e07cd60 | 2003-02-26 20:34:02 +0000 | [diff] [blame] | 192 | AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id],,, |
| 193 | [#include <sys/types.h> |
| 194 | #include <sys/socket.h> |
| 195 | #include <netinet/in.h>]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 196 | AC_LITTLE_ENDIAN_LONG_LONG |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 197 | |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 198 | AC_CHECK_FUNCS(m4_normalize([ |
| 199 | fork |
| 200 | if_indextoname |
| 201 | inet_ntop |
| 202 | prctl |
| 203 | process_vm_readv |
| 204 | sendmsg |
| 205 | sigaction |
| 206 | stpcpy |
| 207 | strerror |
| 208 | strsignal |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 209 | ])) |
| 210 | AC_CHECK_HEADERS(m4_normalize([ |
| 211 | asm/cachectl.h |
| 212 | asm/sysmips.h |
Dmitry V. Levin | c41808b | 2013-03-18 00:52:29 +0000 | [diff] [blame] | 213 | elf.h |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 214 | inttypes.h |
| 215 | ioctls.h |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 216 | linux/capability.h |
Ben Noordhuis | 88eafd8 | 2013-02-04 00:04:57 +0100 | [diff] [blame] | 217 | linux/perf_event.h |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 218 | linux/ptrace.h |
| 219 | linux/utsname.h |
| 220 | mqueue.h |
| 221 | netinet/sctp.h |
| 222 | poll.h |
| 223 | stropts.h |
| 224 | sys/acl.h |
| 225 | sys/asynch.h |
| 226 | sys/conf.h |
| 227 | sys/epoll.h |
| 228 | sys/filio.h |
| 229 | sys/ioctl.h |
| 230 | sys/poll.h |
| 231 | sys/ptrace.h |
| 232 | sys/reg.h |
| 233 | sys/uio.h |
| 234 | sys/vfs.h |
| 235 | ])) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 236 | AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h], |
Roland McGrath | e7fa305 | 2007-07-05 20:50:34 +0000 | [diff] [blame] | 237 | [], [], [#include <stddef.h> |
Andreas Schwab | 360986b | 2010-03-08 16:07:52 +0100 | [diff] [blame] | 238 | #include <sys/socket.h> |
| 239 | #include <asm/types.h>]) |
Roland McGrath | 41074c0 | 2002-12-30 10:23:01 +0000 | [diff] [blame] | 240 | AC_CHECK_HEADERS([asm/sigcontext.h], [], [], [#include <signal.h>]) |
Dmitry V. Levin | e2de3bd | 2013-11-12 15:27:38 +0000 | [diff] [blame] | 241 | AC_CHECK_TYPES([struct sigcontext],,, [#include <signal.h>]) |
Roland McGrath | a7a0d38 | 2003-01-10 19:55:30 +0000 | [diff] [blame] | 242 | AC_CHECK_HEADERS([netinet/tcp.h netinet/udp.h],,, [#include <netinet/in.h>]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 243 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 244 | AC_CHECK_MEMBERS([struct msghdr.msg_control],,, [#include <sys/socket.h>]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 245 | |
Roland McGrath | 79db8af | 2003-06-27 21:20:09 +0000 | [diff] [blame] | 246 | AC_CHECK_TYPES([struct __old_kernel_stat],,, [#include <asm/stat.h>]) |
| 247 | |
Ali Polatel | 0b4060f | 2013-09-24 20:04:32 +0300 | [diff] [blame] | 248 | AC_CHECK_TYPES([struct pt_all_user_regs, struct ia64_fpreg, struct ptrace_peeksiginfo_args],,, |
Roland McGrath | ce9f074 | 2004-03-01 21:29:22 +0000 | [diff] [blame] | 249 | [#include <sys/ptrace.h>]) |
| 250 | |
Roland McGrath | 7decfb2 | 2004-03-01 22:10:52 +0000 | [diff] [blame] | 251 | AC_CHECK_TYPES([struct user_desc],,, [#include <asm/ldt.h>]) |
| 252 | |
Dmitry V. Levin | ea22e97 | 2012-05-01 20:56:32 +0000 | [diff] [blame] | 253 | AC_CHECK_MEMBERS([struct utsname.domainname],,, [#include <sys/utsname.h>]) |
| 254 | |
Dmitry V. Levin | ae5aa47 | 2013-11-11 23:54:30 +0000 | [diff] [blame] | 255 | AC_CHECK_MEMBERS([struct sigevent._sigev_un._pad, |
| 256 | struct sigevent.__pad],,, [#include <signal.h>]) |
| 257 | |
Dmitry V. Levin | 594eb8f | 2013-11-12 21:49:03 +0000 | [diff] [blame] | 258 | AC_CHECK_TYPES([struct flock64],,, [#include <fcntl.h>]) |
| 259 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 260 | AC_CHECK_DECLS([sys_errlist]) |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 261 | AC_CHECK_DECLS(m4_normalize([ |
| 262 | PTRACE_EVENT_CLONE, |
| 263 | PTRACE_EVENT_EXEC, |
| 264 | PTRACE_EVENT_EXIT, |
| 265 | PTRACE_EVENT_FORK, |
| 266 | PTRACE_EVENT_VFORK, |
| 267 | PTRACE_EVENT_VFORK_DONE, |
| 268 | PTRACE_GETEVENTMSG, |
| 269 | PTRACE_GETSIGINFO, |
| 270 | PTRACE_O_TRACECLONE, |
| 271 | PTRACE_O_TRACEEXEC, |
| 272 | PTRACE_O_TRACEEXIT, |
| 273 | PTRACE_O_TRACEFORK, |
| 274 | PTRACE_O_TRACESYSGOOD, |
| 275 | PTRACE_O_TRACEVFORK, |
Dmitry V. Levin | 6974bd4 | 2013-11-12 21:20:50 +0000 | [diff] [blame] | 276 | PTRACE_PEEKUSER, |
| 277 | PTRACE_POKEUSER, |
Dmitry V. Levin | d8879f4 | 2012-03-25 15:12:16 +0000 | [diff] [blame] | 278 | PTRACE_SETOPTIONS |
| 279 | ]),,, [#include <sys/ptrace.h>]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 280 | |
Dmitry V. Levin | cf050db | 2012-05-02 10:21:49 +0000 | [diff] [blame] | 281 | AC_CHECK_DECLS(m4_normalize([ |
| 282 | LO_FLAGS_AUTOCLEAR, |
| 283 | LO_FLAGS_PARTSCAN |
| 284 | ]),,, [#include <linux/loop.h>]) |
| 285 | |
Dmitry V. Levin | 25caa31 | 2011-08-16 21:36:16 +0000 | [diff] [blame] | 286 | AC_CACHE_CHECK([for BLKGETSIZE64], [ac_cv_have_blkgetsize64], |
| 287 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ |
| 288 | #include <stdlib.h> |
| 289 | #include <linux/fs.h>], [return !BLKGETSIZE64;])], |
| 290 | [ac_cv_have_blkgetsize64=yes], [ac_cv_have_blkgetsize64=no])] |
| 291 | if test $ac_cv_have_blkgetsize64 = yes; then |
| 292 | AC_DEFINE([HAVE_BLKGETSIZE64], [1], [Define to 1 if you have BLKGETSIZE64.]) |
| 293 | fi) |
| 294 | |
Dmitry V. Levin | 63e4f86 | 2012-03-15 20:42:46 +0000 | [diff] [blame] | 295 | AC_CHECK_SIZEOF([long]) |
Dmitry V. Levin | 7a498be | 2013-05-04 19:51:57 +0000 | [diff] [blame] | 296 | AC_CHECK_SIZEOF([long long]) |
Dmitry V. Levin | b468f23 | 2012-03-16 23:05:21 +0400 | [diff] [blame] | 297 | AC_CHECK_SIZEOF([rlim_t],,[#include <sys/resource.h>]) |
Dmitry V. Levin | 63e4f86 | 2012-03-15 20:42:46 +0000 | [diff] [blame] | 298 | |
Dmitry V. Levin | ab3953b | 2014-02-08 00:15:52 +0000 | [diff] [blame] | 299 | AC_CACHE_CHECK([for SA_RESTORER], [st_cv_sa_restorer], |
| 300 | [st_cv_sa_restorer="$(echo SA_RESTORER | |
| 301 | $CPP $CPPFLAGS -P -imacros asm/signal.h - | |
| 302 | grep ^0x)" |
| 303 | test -n "$st_cv_sa_restorer" || st_cv_sa_restorer=no]) |
| 304 | if test "x$st_cv_sa_restorer" != xno; then |
| 305 | AC_DEFINE_UNQUOTED([ASM_SA_RESTORER], [$st_cv_sa_restorer], |
| 306 | [SA_RESTORER defined in <asm/signal.h>]) |
| 307 | fi |
| 308 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 309 | AC_PATH_PROG([PERL], [perl]) |
| 310 | |
Dmitry V. Levin | 4e4b5ad | 2011-02-27 00:28:50 +0000 | [diff] [blame] | 311 | AC_CONFIG_FILES([Makefile tests/Makefile]) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 312 | AC_OUTPUT |