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 | 28a9cd8 | 2019-06-17 23:00:49 +0200 | [diff] [blame] | 58 | linux/types.h \ |
Christian Amann | b3621af | 2019-03-19 09:07:32 +0100 | [diff] [blame] | 59 | linux/userfaultfd.h \ |
Petr Vorel | 839128b | 2017-10-12 20:33:18 +0200 | [diff] [blame] | 60 | mm.h \ |
Xiao Yang | bf8f1d7 | 2018-04-04 19:12:54 +0800 | [diff] [blame] | 61 | netinet/sctp.h \ |
Petr Vorel | 839128b | 2017-10-12 20:33:18 +0200 | [diff] [blame] | 62 | pthread.h \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 63 | sys/epoll.h \ |
Jan Kara | f057c1c | 2013-11-20 23:43:13 +0100 | [diff] [blame] | 64 | sys/fanotify.h \ |
Petr Vorel | 839128b | 2017-10-12 20:33:18 +0200 | [diff] [blame] | 65 | sys/inotify.h \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 66 | sys/prctl.h \ |
Sandeep Patil | 524edfb | 2017-11-08 16:34:36 -0800 | [diff] [blame] | 67 | sys/shm.h \ |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 68 | sys/timerfd.h \ |
Petr Vorel | 0ff33b3 | 2017-10-11 15:53:33 +0200 | [diff] [blame] | 69 | sys/ustat.h \ |
Petr Vorel | 2e7b809 | 2019-07-06 22:51:06 +0200 | [diff] [blame] | 70 | sys/utsname.h \ |
Petr Vorel | 839128b | 2017-10-12 20:33:18 +0200 | [diff] [blame] | 71 | sys/xattr.h \ |
Yang Xu | 208f231 | 2019-10-23 17:00:27 +0800 | [diff] [blame] | 72 | xfs/xqm.h \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 73 | ]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 74 | AC_CHECK_HEADERS(fts.h, [have_fts=1]) |
| 75 | AC_SUBST(HAVE_FTS_H, $have_fts) |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 76 | |
Petr Vorel | 0ff33b3 | 2017-10-11 15:53:33 +0200 | [diff] [blame] | 77 | AC_CHECK_FUNCS([ \ |
Christian Amann | a72f4b2 | 2019-05-06 12:54:57 +0200 | [diff] [blame] | 78 | copy_file_range \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 79 | epoll_pwait \ |
| 80 | execveat \ |
| 81 | fallocate \ |
| 82 | fchownat \ |
Viresh Kumar | 9832fd9 | 2020-02-14 17:05:50 +0530 | [diff] [blame] | 83 | fsconfig \ |
| 84 | fsmount \ |
| 85 | fsopen \ |
| 86 | fspick \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 87 | fstatat \ |
Khem Raj | 6d9de5f | 2019-07-26 11:25:23 -0700 | [diff] [blame] | 88 | getdents \ |
| 89 | getdents64 \ |
Viresh Kumar | 57a961f | 2020-01-28 08:31:33 +0530 | [diff] [blame] | 90 | io_pgetevents \ |
Petr Vorel | b6bf84c | 2020-02-17 15:22:27 +0100 | [diff] [blame] | 91 | kcmp \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 92 | mkdirat \ |
| 93 | mknodat \ |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 94 | modify_ldt \ |
Viresh Kumar | 9832fd9 | 2020-02-14 17:05:50 +0530 | [diff] [blame] | 95 | move_mount \ |
Matthew Bobrowski | 02b39d8 | 2019-06-20 19:57:58 +1000 | [diff] [blame] | 96 | name_to_handle_at \ |
Viresh Kumar | 9832fd9 | 2020-02-14 17:05:50 +0530 | [diff] [blame] | 97 | open_tree \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 98 | openat \ |
Viresh Kumar | 1b884d9 | 2020-03-16 12:06:15 +0530 | [diff] [blame^] | 99 | openat2 \ |
Viresh Kumar | 5415162 | 2020-01-27 14:07:48 +0530 | [diff] [blame] | 100 | pidfd_open \ |
Christian Amann | e3c82be | 2019-06-14 09:28:27 +0200 | [diff] [blame] | 101 | pidfd_send_signal \ |
Yang Xu | df5ce33 | 2019-07-30 13:45:32 +0800 | [diff] [blame] | 102 | pkey_mprotect \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 103 | preadv \ |
| 104 | preadv2 \ |
Petr Vorel | 0ff33b3 | 2017-10-11 15:53:33 +0200 | [diff] [blame] | 105 | profil \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 106 | pwritev \ |
| 107 | pwritev2 \ |
| 108 | readlinkat \ |
Steve Muckle | 1010e92 | 2019-07-25 14:11:19 -0700 | [diff] [blame] | 109 | recvmmsg \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 110 | renameat \ |
| 111 | renameat2 \ |
Yang Xu | 4c41cf7 | 2019-04-17 14:05:02 +0800 | [diff] [blame] | 112 | sched_getcpu \ |
Steve Muckle | 1010e92 | 2019-07-25 14:11:19 -0700 | [diff] [blame] | 113 | sendmmsg \ |
Xiao Yang | a600c36 | 2019-04-05 15:46:24 +0800 | [diff] [blame] | 114 | sigpending \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 115 | splice \ |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 116 | statx \ |
Xiao Yang | 66c59e9 | 2019-04-05 17:12:50 +0800 | [diff] [blame] | 117 | stime \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 118 | sync_file_range \ |
Petr Vorel | b6bf84c | 2020-02-17 15:22:27 +0100 | [diff] [blame] | 119 | syncfs \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 120 | tee \ |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 121 | timerfd_create \ |
| 122 | timerfd_gettime \ |
| 123 | timerfd_settime \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 124 | unshare \ |
Petr Vorel | 0ff33b3 | 2017-10-11 15:53:33 +0200 | [diff] [blame] | 125 | ustat \ |
Xiao Yang | 8fd49ce | 2019-04-05 15:55:39 +0800 | [diff] [blame] | 126 | vmsplice \ |
Petr Vorel | 0ff33b3 | 2017-10-11 15:53:33 +0200 | [diff] [blame] | 127 | ]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 128 | AC_CHECK_FUNCS(mkdtemp,[],AC_MSG_ERROR(mkdtemp() not found!)) |
| 129 | |
| 130 | AC_CHECK_MEMBERS([struct fanotify_event_info_fid.fsid.__val],,,[#include <sys/fanotify.h>]) |
| 131 | AC_CHECK_MEMBERS([struct perf_event_mmap_page.aux_head],,,[#include <linux/perf_event.h>]) |
| 132 | AC_CHECK_MEMBERS([struct sigaction.sa_sigaction],[],[],[#include <signal.h>]) |
| 133 | |
| 134 | AC_CHECK_MEMBERS([struct utsname.domainname],,,[ |
| 135 | #define _GNU_SOURCE |
| 136 | #include <sys/utsname.h> |
| 137 | ]) |
| 138 | |
| 139 | AC_CHECK_TYPES([enum kcmp_type],,,[#include <linux/kcmp.h>]) |
| 140 | AC_CHECK_TYPES([struct acct_v3],,,[#include <sys/acct.h>]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 141 | AC_CHECK_TYPES([struct fanotify_event_info_fid],,,[#include <sys/fanotify.h>]) |
Petr Vorel | b6bf84c | 2020-02-17 15:22:27 +0100 | [diff] [blame] | 142 | AC_CHECK_TYPES([struct fanotify_event_info_header],,,[#include <sys/fanotify.h>]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 143 | AC_CHECK_TYPES([struct file_dedupe_range],,,[#include <linux/fs.h>]) |
| 144 | AC_CHECK_TYPES([struct fs_quota_statv],,,[#include <xfs/xqm.h>]) |
| 145 | AC_CHECK_TYPES([struct if_nextdqblk],,,[#include <linux/quota.h>]) |
| 146 | AC_CHECK_TYPES([struct iovec],,,[#include <sys/uio.h>]) |
| 147 | |
| 148 | AC_CHECK_TYPES([struct mmsghdr],,,[ |
| 149 | #define _GNU_SOURCE |
| 150 | #include <sys/types.h> |
| 151 | #include <sys/socket.h> |
| 152 | ]) |
| 153 | |
| 154 | AC_CHECK_TYPES([struct rlimit64],,,[ |
| 155 | #define _LARGEFILE64_SOURCE |
| 156 | #include <sys/resource.h> |
| 157 | ]) |
| 158 | |
| 159 | AC_CHECK_TYPES([struct statx, struct statx_timestamp],,,[ |
| 160 | #define _GNU_SOURCE |
| 161 | #include <sys/stat.h> |
| 162 | ]) |
| 163 | |
| 164 | AC_CHECK_TYPES([struct termio],,,[#include <sys/ioctl.h>]) |
| 165 | |
| 166 | AC_CHECK_TYPES([struct tpacket_req3],,,[ |
| 167 | #ifdef HAVE_LINUX_IF_PACKET_H |
| 168 | # include <linux/if_packet.h> |
| 169 | #endif |
| 170 | ]) |
| 171 | |
| 172 | AC_CHECK_TYPES([struct user_desc, struct modify_ldt_ldt_s],[],[],[ |
| 173 | #include <asm/ldt.h> |
| 174 | ]) |
| 175 | |
| 176 | AC_CHECK_TYPES([struct xt_entry_match, struct xt_entry_target],,,[ |
| 177 | #include <sys/types.h> |
| 178 | #include <netinet/in.h> |
| 179 | #include <net/if.h> |
| 180 | #include <limits.h> |
| 181 | #include <linux/netfilter_ipv4/ip_tables.h> |
| 182 | ]) |
Petr Vorel | 25b3565 | 2017-10-02 15:33:41 +0200 | [diff] [blame] | 183 | |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 184 | # Tools knobs |
| 185 | |
| 186 | # Expect |
| 187 | AC_ARG_WITH([bash], |
| 188 | [AC_HELP_STRING([--with-bash], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 189 | [have the Bourne Again Shell interpreter])], |
| 190 | [with_bash=$withval], |
| 191 | [with_bash=no] |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 192 | ) |
| 193 | if test "x$with_bash" = xyes; then |
| 194 | AC_SUBST([WITH_BASH],["yes"]) |
| 195 | else |
| 196 | AC_SUBST([WITH_BASH],["no"]) |
| 197 | fi |
| 198 | |
| 199 | AC_ARG_WITH([expect], |
| 200 | [AC_HELP_STRING([--with-expect], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 201 | [have the Tcl/expect library])], |
| 202 | [with_expect=$withval], |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 203 | [with_expect=no] |
| 204 | ) |
| 205 | if test "x$with_expect" = xyes; then |
| 206 | AC_SUBST([WITH_EXPECT],["yes"]) |
| 207 | else |
| 208 | AC_SUBST([WITH_EXPECT],["no"]) |
| 209 | fi |
| 210 | |
Anders Roxell | 39a85a1 | 2018-02-05 11:56:04 +0100 | [diff] [blame] | 211 | # Numa |
| 212 | AC_ARG_WITH([numa], |
| 213 | AC_HELP_STRING([--without-numa], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 214 | [without numa support]), |
| 215 | [with_numa=$withval], |
Anders Roxell | 39a85a1 | 2018-02-05 11:56:04 +0100 | [diff] [blame] | 216 | [with_numa=yes] |
| 217 | ) |
| 218 | |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 219 | # Perl |
| 220 | AC_ARG_WITH([perl], |
| 221 | [AC_HELP_STRING([--with-perl], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 222 | [have a perl interpreter])], |
| 223 | [with_perl=$withval], |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 224 | [with_perl=no] |
| 225 | ) |
| 226 | if test "x$with_perl" = xyes; then |
| 227 | AC_SUBST([WITH_PERL],["yes"]) |
| 228 | else |
| 229 | AC_SUBST([WITH_PERL],["no"]) |
| 230 | fi |
| 231 | |
| 232 | # Python |
| 233 | AC_ARG_WITH([python], |
| 234 | [AC_HELP_STRING([--with-python], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 235 | [have a python interpreter])], |
| 236 | [with_python=$withval], |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 237 | [with_python=no] |
| 238 | ) |
| 239 | if test "x$with_python" = xyes; then |
| 240 | AC_SUBST([WITH_PYTHON],["yes"]) |
| 241 | else |
| 242 | AC_SUBST([WITH_PYTHON],["no"]) |
| 243 | fi |
Anders Roxell | 7b25815 | 2018-02-14 13:04:31 +0100 | [diff] [blame] | 244 | |
| 245 | # TI RPC |
| 246 | AC_ARG_WITH([tirpc], |
| 247 | AC_HELP_STRING([--without-tirpc], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 248 | [without libtirpc support]), |
| 249 | [with_tirpc=$withval], |
Anders Roxell | 7b25815 | 2018-02-14 13:04:31 +0100 | [diff] [blame] | 250 | [with_tirpc=yes] |
| 251 | ) |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 252 | # END tools knobs |
| 253 | |
| 254 | # Testsuites knobs |
| 255 | |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 256 | AC_ARG_WITH([open-posix-testsuite], |
| 257 | [AC_HELP_STRING([--with-open-posix-testsuite], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 258 | [compile and install the open posix testsuite])], |
| 259 | [with_open_posix_testsuite=$withval], |
| 260 | [with_open_posix_testsuite=no] |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 261 | ) |
| 262 | if test "x$with_open_posix_testsuite" = xyes; then |
| 263 | AC_SUBST([WITH_OPEN_POSIX_TESTSUITE],["yes"]) |
| 264 | else |
| 265 | AC_SUBST([WITH_OPEN_POSIX_TESTSUITE],["no"]) |
| 266 | fi |
| 267 | |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 268 | # TODO: testcases/realtime requires bash and python. |
| 269 | AC_ARG_WITH([realtime-testsuite], |
| 270 | [AC_HELP_STRING([--with-realtime-testsuite], |
| 271 | [compile and install the realtime testsuite])], |
| 272 | [with_realtime_testsuite=$withval], |
| 273 | [with_realtime_testsuite=no] |
| 274 | ) |
| 275 | |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 276 | if test "x$with_realtime_testsuite" = xyes; then |
| 277 | AC_SUBST([WITH_REALTIME_TESTSUITE],["yes"]) |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 278 | # Run configure on testcases/realtime as well. |
| 279 | AC_CONFIG_SUBDIRS([testcases/realtime]) |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 280 | else |
| 281 | AC_SUBST([WITH_REALTIME_TESTSUITE],["no"]) |
| 282 | fi |
| 283 | |
Li Wang | 8d47fa7 | 2017-10-26 16:51:15 +0800 | [diff] [blame] | 284 | 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] | 285 | |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 286 | # custom functions |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 287 | # 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] | 288 | LTP_CHECK_ACL_SUPPORT |
| 289 | LTP_CHECK_ATOMIC_MEMORY_MODEL |
| 290 | LTP_CHECK_BUILTIN_CLEAR_CACHE |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 291 | LTP_CHECK_CAPABILITY_SUPPORT |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 292 | LTP_CHECK_CC_WARN_OLDSTYLE |
| 293 | LTP_CHECK_CLONE_SUPPORTS_7_ARGS |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 294 | LTP_CHECK_CRYPTO |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 295 | LTP_CHECK_FORTIFY_SOURCE |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 296 | LTP_CHECK_KERNEL_DEVEL |
| 297 | LTP_CHECK_KEYUTILS_SUPPORT |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 298 | LTP_CHECK_LINUX_PTRACE |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 299 | LTP_CHECK_LINUXRANDOM |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 300 | LTP_CHECK_MREMAP_FIXED |
Mike Frysinger | 9bd940b | 2010-08-17 17:22:03 -0400 | [diff] [blame] | 301 | LTP_CHECK_NOMMU_LINUX |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 302 | LTP_CHECK_SELINUX |
Jan Stancek | f61391e | 2016-04-13 13:09:23 +0200 | [diff] [blame] | 303 | LTP_CHECK_SYNC_ADD_AND_FETCH |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 304 | LTP_CHECK_SYSCALL_EVENTFD |
| 305 | LTP_CHECK_SYSCALL_FCNTL |
Xing Gu | a3bfea2 | 2014-06-17 15:26:30 +0800 | [diff] [blame] | 306 | |
Petr Vorel | f417672 | 2018-02-07 11:29:42 +0100 | [diff] [blame] | 307 | if test "x$with_numa" = xyes; then |
| 308 | LTP_CHECK_SYSCALL_NUMA |
| 309 | numa_error_msg="test requires libnuma >= 2 and it's development packages" |
| 310 | else |
| 311 | numa_error_msg="NUMA support was disabled during build" |
| 312 | fi |
| 313 | AC_DEFINE_UNQUOTED(NUMA_ERROR_MSG, ["$numa_error_msg"], [Error message when no NUMA support]) |
| 314 | |
Christian Amann | e3c82be | 2019-06-14 09:28:27 +0200 | [diff] [blame] | 315 | |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 316 | LTP_CHECK_SYSCALL_PERF_EVENT_OPEN |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 317 | LTP_CHECK_SYSCALL_SIGNALFD |
| 318 | LTP_CHECK_SYSCALL_UTIMENSAT |
| 319 | LTP_CHECK_TASKSTATS |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 320 | test "x$with_tirpc" = xyes && LTP_CHECK_TIRPC |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 321 | LTP_DETECT_HOST_CPU |
| 322 | |
subrata_modak | 3d8666c | 2008-11-11 08:31:27 +0000 | [diff] [blame] | 323 | AC_OUTPUT |