yaberauneya | 9913e82 | 2009-11-26 11:27:34 +0000 | [diff] [blame] | 1 | AC_PREREQ(2.61) |
Cyril Hrubis | 70d7e8c | 2015-09-15 12:50:31 +0200 | [diff] [blame] | 2 | AC_INIT([ltp], [LTP_VERSION], [ltp@lists.linux.it]) |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 3 | AC_CONFIG_AUX_DIR([.]) |
| 4 | AM_INIT_AUTOMAKE |
subrata_modak | 3d8666c | 2008-11-11 08:31:27 +0000 | [diff] [blame] | 5 | AC_CONFIG_HEADERS([include/config.h]) |
Cyril Hrubis | edbae29 | 2014-07-15 14:57:27 +0200 | [diff] [blame] | 6 | AC_CONFIG_MACRO_DIR([m4]) |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 7 | AC_CONFIG_FILES([ \ |
| 8 | include/mk/config.mk \ |
Cyril Hrubis | 63b6532 | 2016-04-20 18:23:53 +0200 | [diff] [blame] | 9 | include/mk/config-openposix.mk \ |
Garrett Cooper | 4f71cae | 2010-11-01 21:09:17 -0700 | [diff] [blame] | 10 | include/mk/features.mk \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 11 | lib/ltp.pc \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 12 | m4/Makefile \ |
yaberauneya | 0d39b83 | 2009-11-20 05:45:41 +0000 | [diff] [blame] | 13 | execltp \ |
vapier | df8759f | 2009-01-18 22:22:40 +0000 | [diff] [blame] | 14 | ]) |
subrata_modak | 3d8666c | 2008-11-11 08:31:27 +0000 | [diff] [blame] | 15 | |
Petr Vorel | 427b1be | 2018-02-14 23:27:54 +0100 | [diff] [blame] | 16 | AM_MAINTAINER_MODE([enable]) |
| 17 | |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 18 | AM_CONDITIONAL(CROSS_COMPILATION, test x$cross_compiling = xyes) |
| 19 | |
| 20 | AC_CANONICAL_HOST |
| 21 | |
| 22 | AC_PROG_CC |
yaberauneya | f7df140 | 2009-10-17 02:24:20 +0000 | [diff] [blame] | 23 | # <= autoconf 2.61 doesn't have AC_PROG_AR, but 2.63 has it. Not sure about |
| 24 | # 2.62. |
| 25 | AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)]) |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 26 | AC_PROG_AR |
| 27 | AC_PROG_LEX |
| 28 | AC_PROG_RANLIB |
yaberauneya | a4bed68 | 2009-12-05 23:45:55 +0000 | [diff] [blame] | 29 | AC_DEFUN([AC_PROG_STRIP], [AC_CHECK_TOOL(STRIP, strip, :)]) |
| 30 | AC_PROG_STRIP |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 31 | AC_PROG_YACC |
| 32 | |
| 33 | AC_PREFIX_DEFAULT(/opt/ltp) |
| 34 | |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 35 | AC_CHECK_DECLS([IFLA_NET_NS_PID],,,[#include <linux/if_link.h>]) |
| 36 | AC_CHECK_DECLS([MADV_MERGEABLE],,,[#include <sys/mman.h>]) |
| 37 | AC_CHECK_DECLS([PR_CAPBSET_DROP, PR_CAPBSET_READ],,,[#include <sys/prctl.h>]) |
| 38 | |
yaberauneya | 80a06b5 | 2009-12-20 00:39:37 +0000 | [diff] [blame] | 39 | AC_CHECK_HEADERS([ \ |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 40 | asm/ldt.h \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 41 | ifaddrs.h \ |
Petr Vorel | bc2568d | 2017-10-16 17:41:54 +0200 | [diff] [blame] | 42 | keyutils.h \ |
Petr Vorel | 66923c6 | 2017-10-12 20:33:19 +0200 | [diff] [blame] | 43 | linux/can.h \ |
Yang Xu | df5ce33 | 2019-07-30 13:45:32 +0800 | [diff] [blame] | 44 | linux/cgroupstats.h \ |
Richard Palethorpe | a0ce443 | 2018-07-05 16:56:33 +0200 | [diff] [blame] | 45 | linux/cryptouser.h \ |
Yang Xu | df5ce33 | 2019-07-30 13:45:32 +0800 | [diff] [blame] | 46 | linux/dccp.h \ |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 47 | linux/fs.h \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 48 | linux/genetlink.h \ |
Eric Biggers | ef85101 | 2019-03-18 10:13:22 -0700 | [diff] [blame] | 49 | linux/if_alg.h \ |
Richard Palethorpe | db14170 | 2017-11-02 15:34:41 +0100 | [diff] [blame] | 50 | linux/if_ether.h \ |
Petr Vorel | b6bf84c | 2020-02-17 15:22:27 +0100 | [diff] [blame] | 51 | linux/if_packet.h \ |
Yang Xu | df5ce33 | 2019-07-30 13:45:32 +0800 | [diff] [blame] | 52 | linux/keyctl.h \ |
yaberauneya | cb805c4 | 2009-12-22 23:10:41 +0000 | [diff] [blame] | 53 | linux/mempolicy.h \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 54 | linux/module.h \ |
| 55 | linux/netlink.h \ |
Yang Xu | 3ddc217 | 2019-05-23 10:54:00 +0800 | [diff] [blame] | 56 | linux/seccomp.h \ |
Yang Xu | fe9d921 | 2019-07-12 17:54:35 +0800 | [diff] [blame] | 57 | linux/securebits.h \ |
Petr Vorel | ef12b90 | 2020-05-06 13:03:29 +0200 | [diff] [blame] | 58 | linux/tty.h \ |
Petr Vorel | 28a9cd8 | 2019-06-17 23:00:49 +0200 | [diff] [blame] | 59 | linux/types.h \ |
Christian Amann | b3621af | 2019-03-19 09:07:32 +0100 | [diff] [blame] | 60 | linux/userfaultfd.h \ |
Petr Vorel | 839128b | 2017-10-12 20:33:18 +0200 | [diff] [blame] | 61 | mm.h \ |
Xiao Yang | bf8f1d7 | 2018-04-04 19:12:54 +0800 | [diff] [blame] | 62 | netinet/sctp.h \ |
Petr Vorel | 839128b | 2017-10-12 20:33:18 +0200 | [diff] [blame] | 63 | pthread.h \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 64 | sys/epoll.h \ |
Jan Kara | f057c1c | 2013-11-20 23:43:13 +0100 | [diff] [blame] | 65 | sys/fanotify.h \ |
Petr Vorel | 839128b | 2017-10-12 20:33:18 +0200 | [diff] [blame] | 66 | sys/inotify.h \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 67 | sys/prctl.h \ |
Sandeep Patil | 524edfb | 2017-11-08 16:34:36 -0800 | [diff] [blame] | 68 | sys/shm.h \ |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 69 | sys/timerfd.h \ |
Petr Vorel | 0ff33b3 | 2017-10-11 15:53:33 +0200 | [diff] [blame] | 70 | sys/ustat.h \ |
Petr Vorel | 2e7b809 | 2019-07-06 22:51:06 +0200 | [diff] [blame] | 71 | sys/utsname.h \ |
Petr Vorel | 839128b | 2017-10-12 20:33:18 +0200 | [diff] [blame] | 72 | sys/xattr.h \ |
Yang Xu | 208f231 | 2019-10-23 17:00:27 +0800 | [diff] [blame] | 73 | xfs/xqm.h \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 74 | ]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 75 | AC_CHECK_HEADERS(fts.h, [have_fts=1]) |
| 76 | AC_SUBST(HAVE_FTS_H, $have_fts) |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 77 | |
Petr Vorel | 0ff33b3 | 2017-10-11 15:53:33 +0200 | [diff] [blame] | 78 | AC_CHECK_FUNCS([ \ |
Viresh Kumar | 1b0e8dd | 2020-03-20 09:54:02 +0530 | [diff] [blame] | 79 | clone3 \ |
Christian Amann | a72f4b2 | 2019-05-06 12:54:57 +0200 | [diff] [blame] | 80 | copy_file_range \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 81 | epoll_pwait \ |
| 82 | execveat \ |
| 83 | fallocate \ |
| 84 | fchownat \ |
Viresh Kumar | 9832fd9 | 2020-02-14 17:05:50 +0530 | [diff] [blame] | 85 | fsconfig \ |
| 86 | fsmount \ |
| 87 | fsopen \ |
| 88 | fspick \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 89 | fstatat \ |
Cyril Hrubis | 6ab05d5 | 2020-06-26 11:57:27 +0200 | [diff] [blame] | 90 | getauxval \ |
Khem Raj | 6d9de5f | 2019-07-26 11:25:23 -0700 | [diff] [blame] | 91 | getdents \ |
| 92 | getdents64 \ |
Viresh Kumar | 57a961f | 2020-01-28 08:31:33 +0530 | [diff] [blame] | 93 | io_pgetevents \ |
Vikas Kumar | 95399bc | 2020-03-13 11:50:58 +0530 | [diff] [blame] | 94 | io_uring_setup \ |
| 95 | io_uring_register \ |
| 96 | io_uring_enter \ |
Petr Vorel | b6bf84c | 2020-02-17 15:22:27 +0100 | [diff] [blame] | 97 | kcmp \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 98 | mkdirat \ |
| 99 | mknodat \ |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 100 | modify_ldt \ |
Viresh Kumar | 9832fd9 | 2020-02-14 17:05:50 +0530 | [diff] [blame] | 101 | move_mount \ |
Matthew Bobrowski | 02b39d8 | 2019-06-20 19:57:58 +1000 | [diff] [blame] | 102 | name_to_handle_at \ |
Viresh Kumar | 9832fd9 | 2020-02-14 17:05:50 +0530 | [diff] [blame] | 103 | open_tree \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 104 | openat \ |
Viresh Kumar | 1b884d9 | 2020-03-16 12:06:15 +0530 | [diff] [blame] | 105 | openat2 \ |
Viresh Kumar | 5415162 | 2020-01-27 14:07:48 +0530 | [diff] [blame] | 106 | pidfd_open \ |
Christian Amann | e3c82be | 2019-06-14 09:28:27 +0200 | [diff] [blame] | 107 | pidfd_send_signal \ |
Yang Xu | df5ce33 | 2019-07-30 13:45:32 +0800 | [diff] [blame] | 108 | pkey_mprotect \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 109 | preadv \ |
| 110 | preadv2 \ |
Petr Vorel | 0ff33b3 | 2017-10-11 15:53:33 +0200 | [diff] [blame] | 111 | profil \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 112 | pwritev \ |
| 113 | pwritev2 \ |
| 114 | readlinkat \ |
Steve Muckle | 1010e92 | 2019-07-25 14:11:19 -0700 | [diff] [blame] | 115 | recvmmsg \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 116 | renameat \ |
| 117 | renameat2 \ |
Yang Xu | 4c41cf7 | 2019-04-17 14:05:02 +0800 | [diff] [blame] | 118 | sched_getcpu \ |
Steve Muckle | 1010e92 | 2019-07-25 14:11:19 -0700 | [diff] [blame] | 119 | sendmmsg \ |
Cyril Hrubis | 7cd69c1 | 2020-03-18 16:37:54 +0100 | [diff] [blame] | 120 | setns \ |
Xiao Yang | a600c36 | 2019-04-05 15:46:24 +0800 | [diff] [blame] | 121 | sigpending \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 122 | splice \ |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 123 | statx \ |
Xiao Yang | 66c59e9 | 2019-04-05 17:12:50 +0800 | [diff] [blame] | 124 | stime \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 125 | sync_file_range \ |
Petr Vorel | b6bf84c | 2020-02-17 15:22:27 +0100 | [diff] [blame] | 126 | syncfs \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 127 | tee \ |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 128 | timerfd_create \ |
| 129 | timerfd_gettime \ |
| 130 | timerfd_settime \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 131 | unshare \ |
Petr Vorel | 0ff33b3 | 2017-10-11 15:53:33 +0200 | [diff] [blame] | 132 | ustat \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 133 | vmsplice \ |
Petr Vorel | 0ff33b3 | 2017-10-11 15:53:33 +0200 | [diff] [blame] | 134 | ]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 135 | AC_CHECK_FUNCS(mkdtemp,[],AC_MSG_ERROR(mkdtemp() not found!)) |
| 136 | |
| 137 | AC_CHECK_MEMBERS([struct fanotify_event_info_fid.fsid.__val],,,[#include <sys/fanotify.h>]) |
| 138 | AC_CHECK_MEMBERS([struct perf_event_mmap_page.aux_head],,,[#include <linux/perf_event.h>]) |
| 139 | AC_CHECK_MEMBERS([struct sigaction.sa_sigaction],[],[],[#include <signal.h>]) |
| 140 | |
| 141 | AC_CHECK_MEMBERS([struct utsname.domainname],,,[ |
| 142 | #define _GNU_SOURCE |
| 143 | #include <sys/utsname.h> |
| 144 | ]) |
| 145 | |
| 146 | AC_CHECK_TYPES([enum kcmp_type],,,[#include <linux/kcmp.h>]) |
| 147 | AC_CHECK_TYPES([struct acct_v3],,,[#include <sys/acct.h>]) |
Yang Xu | 8841259 | 2020-08-21 18:18:39 +0800 | [diff] [blame^] | 148 | AC_CHECK_TYPES([struct af_alg_iv, struct sockaddr_alg],,,[# include <linux/if_alg.h>]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 149 | AC_CHECK_TYPES([struct fanotify_event_info_fid],,,[#include <sys/fanotify.h>]) |
Petr Vorel | b6bf84c | 2020-02-17 15:22:27 +0100 | [diff] [blame] | 150 | AC_CHECK_TYPES([struct fanotify_event_info_header],,,[#include <sys/fanotify.h>]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 151 | AC_CHECK_TYPES([struct file_dedupe_range],,,[#include <linux/fs.h>]) |
| 152 | AC_CHECK_TYPES([struct fs_quota_statv],,,[#include <xfs/xqm.h>]) |
| 153 | AC_CHECK_TYPES([struct if_nextdqblk],,,[#include <linux/quota.h>]) |
| 154 | AC_CHECK_TYPES([struct iovec],,,[#include <sys/uio.h>]) |
Viresh Kumar | 3e1fc06 | 2020-05-22 12:46:04 +0530 | [diff] [blame] | 155 | AC_CHECK_TYPES([struct ipc64_perm],,,[#include <sys/ipcbuf.h>]) |
Yang Xu | 1898754 | 2020-06-11 18:35:13 +0800 | [diff] [blame] | 156 | AC_CHECK_TYPES([struct loop_config],,,[#include <linux/loop.h>]) |
Viresh Kumar | 732ea25 | 2020-06-16 15:50:19 +0530 | [diff] [blame] | 157 | AC_CHECK_TYPES([struct semid64_ds],,,[#include <sys/sem.h>]) |
Viresh Kumar | 3168c03 | 2020-06-16 15:50:21 +0530 | [diff] [blame] | 158 | AC_CHECK_TYPES([struct shmid64_ds],,,[#include <sys/shmbuf.h>]) |
Viresh Kumar | e460864 | 2020-06-16 15:50:23 +0530 | [diff] [blame] | 159 | AC_CHECK_TYPES([struct msqid64_ds],,,[#include <sys/msgbuf.h>]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 160 | |
| 161 | AC_CHECK_TYPES([struct mmsghdr],,,[ |
| 162 | #define _GNU_SOURCE |
| 163 | #include <sys/types.h> |
| 164 | #include <sys/socket.h> |
| 165 | ]) |
| 166 | |
| 167 | AC_CHECK_TYPES([struct rlimit64],,,[ |
| 168 | #define _LARGEFILE64_SOURCE |
| 169 | #include <sys/resource.h> |
| 170 | ]) |
| 171 | |
| 172 | AC_CHECK_TYPES([struct statx, struct statx_timestamp],,,[ |
| 173 | #define _GNU_SOURCE |
| 174 | #include <sys/stat.h> |
| 175 | ]) |
| 176 | |
| 177 | AC_CHECK_TYPES([struct termio],,,[#include <sys/ioctl.h>]) |
| 178 | |
| 179 | AC_CHECK_TYPES([struct tpacket_req3],,,[ |
| 180 | #ifdef HAVE_LINUX_IF_PACKET_H |
| 181 | # include <linux/if_packet.h> |
| 182 | #endif |
| 183 | ]) |
| 184 | |
| 185 | AC_CHECK_TYPES([struct user_desc, struct modify_ldt_ldt_s],[],[],[ |
| 186 | #include <asm/ldt.h> |
| 187 | ]) |
| 188 | |
| 189 | AC_CHECK_TYPES([struct xt_entry_match, struct xt_entry_target],,,[ |
| 190 | #include <sys/types.h> |
| 191 | #include <netinet/in.h> |
| 192 | #include <net/if.h> |
| 193 | #include <limits.h> |
| 194 | #include <linux/netfilter_ipv4/ip_tables.h> |
| 195 | ]) |
Petr Vorel | 25b3565 | 2017-10-02 15:33:41 +0200 | [diff] [blame] | 196 | |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 197 | # Tools knobs |
| 198 | |
| 199 | # Expect |
| 200 | AC_ARG_WITH([bash], |
| 201 | [AC_HELP_STRING([--with-bash], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 202 | [have the Bourne Again Shell interpreter])], |
| 203 | [with_bash=$withval], |
| 204 | [with_bash=no] |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 205 | ) |
| 206 | if test "x$with_bash" = xyes; then |
| 207 | AC_SUBST([WITH_BASH],["yes"]) |
| 208 | else |
| 209 | AC_SUBST([WITH_BASH],["no"]) |
| 210 | fi |
| 211 | |
| 212 | AC_ARG_WITH([expect], |
| 213 | [AC_HELP_STRING([--with-expect], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 214 | [have the Tcl/expect library])], |
| 215 | [with_expect=$withval], |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 216 | [with_expect=no] |
| 217 | ) |
| 218 | if test "x$with_expect" = xyes; then |
| 219 | AC_SUBST([WITH_EXPECT],["yes"]) |
| 220 | else |
| 221 | AC_SUBST([WITH_EXPECT],["no"]) |
| 222 | fi |
| 223 | |
Anders Roxell | 39a85a1 | 2018-02-05 11:56:04 +0100 | [diff] [blame] | 224 | # Numa |
| 225 | AC_ARG_WITH([numa], |
| 226 | AC_HELP_STRING([--without-numa], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 227 | [without numa support]), |
| 228 | [with_numa=$withval], |
Anders Roxell | 39a85a1 | 2018-02-05 11:56:04 +0100 | [diff] [blame] | 229 | [with_numa=yes] |
| 230 | ) |
| 231 | |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 232 | # Perl |
| 233 | AC_ARG_WITH([perl], |
| 234 | [AC_HELP_STRING([--with-perl], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 235 | [have a perl interpreter])], |
| 236 | [with_perl=$withval], |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 237 | [with_perl=no] |
| 238 | ) |
| 239 | if test "x$with_perl" = xyes; then |
| 240 | AC_SUBST([WITH_PERL],["yes"]) |
| 241 | else |
| 242 | AC_SUBST([WITH_PERL],["no"]) |
| 243 | fi |
| 244 | |
| 245 | # Python |
| 246 | AC_ARG_WITH([python], |
| 247 | [AC_HELP_STRING([--with-python], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 248 | [have a python interpreter])], |
| 249 | [with_python=$withval], |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 250 | [with_python=no] |
| 251 | ) |
| 252 | if test "x$with_python" = xyes; then |
| 253 | AC_SUBST([WITH_PYTHON],["yes"]) |
| 254 | else |
| 255 | AC_SUBST([WITH_PYTHON],["no"]) |
| 256 | fi |
Anders Roxell | 7b25815 | 2018-02-14 13:04:31 +0100 | [diff] [blame] | 257 | |
| 258 | # TI RPC |
| 259 | AC_ARG_WITH([tirpc], |
| 260 | AC_HELP_STRING([--without-tirpc], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 261 | [without libtirpc support]), |
| 262 | [with_tirpc=$withval], |
Anders Roxell | 7b25815 | 2018-02-14 13:04:31 +0100 | [diff] [blame] | 263 | [with_tirpc=yes] |
| 264 | ) |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 265 | # END tools knobs |
| 266 | |
| 267 | # Testsuites knobs |
| 268 | |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 269 | AC_ARG_WITH([open-posix-testsuite], |
| 270 | [AC_HELP_STRING([--with-open-posix-testsuite], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 271 | [compile and install the open posix testsuite])], |
| 272 | [with_open_posix_testsuite=$withval], |
| 273 | [with_open_posix_testsuite=no] |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 274 | ) |
| 275 | if test "x$with_open_posix_testsuite" = xyes; then |
| 276 | AC_SUBST([WITH_OPEN_POSIX_TESTSUITE],["yes"]) |
| 277 | else |
| 278 | AC_SUBST([WITH_OPEN_POSIX_TESTSUITE],["no"]) |
| 279 | fi |
| 280 | |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 281 | # TODO: testcases/realtime requires bash and python. |
| 282 | AC_ARG_WITH([realtime-testsuite], |
| 283 | [AC_HELP_STRING([--with-realtime-testsuite], |
| 284 | [compile and install the realtime testsuite])], |
| 285 | [with_realtime_testsuite=$withval], |
| 286 | [with_realtime_testsuite=no] |
| 287 | ) |
| 288 | |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 289 | if test "x$with_realtime_testsuite" = xyes; then |
| 290 | AC_SUBST([WITH_REALTIME_TESTSUITE],["yes"]) |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 291 | # Run configure on testcases/realtime as well. |
| 292 | AC_CONFIG_SUBDIRS([testcases/realtime]) |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 293 | else |
| 294 | AC_SUBST([WITH_REALTIME_TESTSUITE],["no"]) |
| 295 | fi |
| 296 | |
Li Wang | 8d47fa7 | 2017-10-26 16:51:15 +0800 | [diff] [blame] | 297 | AC_CONFIG_COMMANDS([syscalls.h], [cd ${ac_top_srcdir}/include/lapi/syscalls; ./regen.sh]) |
Cyril Hrubis | a07008f | 2017-06-14 17:25:09 +0200 | [diff] [blame] | 298 | |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 299 | # custom functions |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 300 | # NOTE: don't create custom functions for simple checks, put them into this file |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 301 | LTP_CHECK_ACL_SUPPORT |
| 302 | LTP_CHECK_ATOMIC_MEMORY_MODEL |
| 303 | LTP_CHECK_BUILTIN_CLEAR_CACHE |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 304 | LTP_CHECK_CAPABILITY_SUPPORT |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 305 | LTP_CHECK_CC_WARN_OLDSTYLE |
| 306 | LTP_CHECK_CLONE_SUPPORTS_7_ARGS |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 307 | LTP_CHECK_CRYPTO |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 308 | LTP_CHECK_FORTIFY_SOURCE |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 309 | LTP_CHECK_KERNEL_DEVEL |
| 310 | LTP_CHECK_KEYUTILS_SUPPORT |
Petr Vorel | 553ca8e | 2019-11-01 14:48:16 +0100 | [diff] [blame] | 311 | LTP_CHECK_LIBMNL |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 312 | LTP_CHECK_LINUX_PTRACE |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 313 | LTP_CHECK_LINUXRANDOM |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 314 | LTP_CHECK_MREMAP_FIXED |
Mike Frysinger | 9bd940b | 2010-08-17 17:22:03 -0400 | [diff] [blame] | 315 | LTP_CHECK_NOMMU_LINUX |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 316 | LTP_CHECK_SELINUX |
Jan Stancek | f61391e | 2016-04-13 13:09:23 +0200 | [diff] [blame] | 317 | LTP_CHECK_SYNC_ADD_AND_FETCH |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 318 | LTP_CHECK_SYSCALL_EVENTFD |
| 319 | LTP_CHECK_SYSCALL_FCNTL |
Xing Gu | a3bfea2 | 2014-06-17 15:26:30 +0800 | [diff] [blame] | 320 | |
Petr Vorel | f417672 | 2018-02-07 11:29:42 +0100 | [diff] [blame] | 321 | if test "x$with_numa" = xyes; then |
| 322 | LTP_CHECK_SYSCALL_NUMA |
| 323 | numa_error_msg="test requires libnuma >= 2 and it's development packages" |
| 324 | else |
| 325 | numa_error_msg="NUMA support was disabled during build" |
| 326 | fi |
| 327 | AC_DEFINE_UNQUOTED(NUMA_ERROR_MSG, ["$numa_error_msg"], [Error message when no NUMA support]) |
| 328 | |
Christian Amann | e3c82be | 2019-06-14 09:28:27 +0200 | [diff] [blame] | 329 | |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 330 | LTP_CHECK_SYSCALL_PERF_EVENT_OPEN |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 331 | LTP_CHECK_SYSCALL_SIGNALFD |
| 332 | LTP_CHECK_SYSCALL_UTIMENSAT |
| 333 | LTP_CHECK_TASKSTATS |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 334 | test "x$with_tirpc" = xyes && LTP_CHECK_TIRPC |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 335 | LTP_DETECT_HOST_CPU |
| 336 | |
subrata_modak | 3d8666c | 2008-11-11 08:31:27 +0000 | [diff] [blame] | 337 | AC_OUTPUT |