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