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 | a26fedd | 2020-08-28 12:46:42 +0200 | [diff] [blame^] | 149 | AC_CHECK_TYPES([struct fanotify_event_info_fid, struct fanotify_event_info_header],,,[#include <sys/fanotify.h>]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 150 | AC_CHECK_TYPES([struct file_dedupe_range],,,[#include <linux/fs.h>]) |
| 151 | AC_CHECK_TYPES([struct fs_quota_statv],,,[#include <xfs/xqm.h>]) |
| 152 | AC_CHECK_TYPES([struct if_nextdqblk],,,[#include <linux/quota.h>]) |
| 153 | AC_CHECK_TYPES([struct iovec],,,[#include <sys/uio.h>]) |
Viresh Kumar | 3e1fc06 | 2020-05-22 12:46:04 +0530 | [diff] [blame] | 154 | AC_CHECK_TYPES([struct ipc64_perm],,,[#include <sys/ipcbuf.h>]) |
Yang Xu | 1898754 | 2020-06-11 18:35:13 +0800 | [diff] [blame] | 155 | AC_CHECK_TYPES([struct loop_config],,,[#include <linux/loop.h>]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 156 | |
| 157 | AC_CHECK_TYPES([struct mmsghdr],,,[ |
| 158 | #define _GNU_SOURCE |
| 159 | #include <sys/types.h> |
| 160 | #include <sys/socket.h> |
| 161 | ]) |
| 162 | |
Petr Vorel | a26fedd | 2020-08-28 12:46:42 +0200 | [diff] [blame^] | 163 | AC_CHECK_TYPES([struct msqid64_ds],,,[#include <sys/msgbuf.h>]) |
| 164 | |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 165 | AC_CHECK_TYPES([struct rlimit64],,,[ |
| 166 | #define _LARGEFILE64_SOURCE |
| 167 | #include <sys/resource.h> |
| 168 | ]) |
| 169 | |
Petr Vorel | a26fedd | 2020-08-28 12:46:42 +0200 | [diff] [blame^] | 170 | AC_CHECK_TYPES([struct semid64_ds],,,[#include <sys/sem.h>]) |
| 171 | AC_CHECK_TYPES([struct shmid64_ds],,,[#include <sys/shmbuf.h>]) |
| 172 | |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 173 | AC_CHECK_TYPES([struct statx, struct statx_timestamp],,,[ |
| 174 | #define _GNU_SOURCE |
| 175 | #include <sys/stat.h> |
| 176 | ]) |
| 177 | |
| 178 | AC_CHECK_TYPES([struct termio],,,[#include <sys/ioctl.h>]) |
Petr Vorel | a26fedd | 2020-08-28 12:46:42 +0200 | [diff] [blame^] | 179 | AC_CHECK_TYPES([struct tpacket_req3],,,[# include <linux/if_packet.h>]) |
| 180 | AC_CHECK_TYPES([struct user_desc, struct modify_ldt_ldt_s],[],[],[#include <asm/ldt.h>]) |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 181 | |
| 182 | AC_CHECK_TYPES([struct xt_entry_match, struct xt_entry_target],,,[ |
| 183 | #include <sys/types.h> |
| 184 | #include <netinet/in.h> |
| 185 | #include <net/if.h> |
| 186 | #include <limits.h> |
| 187 | #include <linux/netfilter_ipv4/ip_tables.h> |
| 188 | ]) |
Petr Vorel | 25b3565 | 2017-10-02 15:33:41 +0200 | [diff] [blame] | 189 | |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 190 | # Tools knobs |
| 191 | |
| 192 | # Expect |
| 193 | AC_ARG_WITH([bash], |
| 194 | [AC_HELP_STRING([--with-bash], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 195 | [have the Bourne Again Shell interpreter])], |
| 196 | [with_bash=$withval], |
| 197 | [with_bash=no] |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 198 | ) |
| 199 | if test "x$with_bash" = xyes; then |
| 200 | AC_SUBST([WITH_BASH],["yes"]) |
| 201 | else |
| 202 | AC_SUBST([WITH_BASH],["no"]) |
| 203 | fi |
| 204 | |
| 205 | AC_ARG_WITH([expect], |
| 206 | [AC_HELP_STRING([--with-expect], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 207 | [have the Tcl/expect library])], |
| 208 | [with_expect=$withval], |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 209 | [with_expect=no] |
| 210 | ) |
| 211 | if test "x$with_expect" = xyes; then |
| 212 | AC_SUBST([WITH_EXPECT],["yes"]) |
| 213 | else |
| 214 | AC_SUBST([WITH_EXPECT],["no"]) |
| 215 | fi |
| 216 | |
Anders Roxell | 39a85a1 | 2018-02-05 11:56:04 +0100 | [diff] [blame] | 217 | # Numa |
| 218 | AC_ARG_WITH([numa], |
| 219 | AC_HELP_STRING([--without-numa], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 220 | [without numa support]), |
| 221 | [with_numa=$withval], |
Anders Roxell | 39a85a1 | 2018-02-05 11:56:04 +0100 | [diff] [blame] | 222 | [with_numa=yes] |
| 223 | ) |
| 224 | |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 225 | # Perl |
| 226 | AC_ARG_WITH([perl], |
| 227 | [AC_HELP_STRING([--with-perl], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 228 | [have a perl interpreter])], |
| 229 | [with_perl=$withval], |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 230 | [with_perl=no] |
| 231 | ) |
| 232 | if test "x$with_perl" = xyes; then |
| 233 | AC_SUBST([WITH_PERL],["yes"]) |
| 234 | else |
| 235 | AC_SUBST([WITH_PERL],["no"]) |
| 236 | fi |
| 237 | |
| 238 | # Python |
| 239 | AC_ARG_WITH([python], |
| 240 | [AC_HELP_STRING([--with-python], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 241 | [have a python interpreter])], |
| 242 | [with_python=$withval], |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 243 | [with_python=no] |
| 244 | ) |
| 245 | if test "x$with_python" = xyes; then |
| 246 | AC_SUBST([WITH_PYTHON],["yes"]) |
| 247 | else |
| 248 | AC_SUBST([WITH_PYTHON],["no"]) |
| 249 | fi |
Anders Roxell | 7b25815 | 2018-02-14 13:04:31 +0100 | [diff] [blame] | 250 | |
| 251 | # TI RPC |
| 252 | AC_ARG_WITH([tirpc], |
| 253 | AC_HELP_STRING([--without-tirpc], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 254 | [without libtirpc support]), |
| 255 | [with_tirpc=$withval], |
Anders Roxell | 7b25815 | 2018-02-14 13:04:31 +0100 | [diff] [blame] | 256 | [with_tirpc=yes] |
| 257 | ) |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 258 | # END tools knobs |
| 259 | |
| 260 | # Testsuites knobs |
| 261 | |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 262 | AC_ARG_WITH([open-posix-testsuite], |
| 263 | [AC_HELP_STRING([--with-open-posix-testsuite], |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 264 | [compile and install the open posix testsuite])], |
| 265 | [with_open_posix_testsuite=$withval], |
| 266 | [with_open_posix_testsuite=no] |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 267 | ) |
| 268 | if test "x$with_open_posix_testsuite" = xyes; then |
| 269 | AC_SUBST([WITH_OPEN_POSIX_TESTSUITE],["yes"]) |
| 270 | else |
| 271 | AC_SUBST([WITH_OPEN_POSIX_TESTSUITE],["no"]) |
| 272 | fi |
| 273 | |
Joerg Vehlow | 9e7f568 | 2019-11-13 11:41:49 +0100 | [diff] [blame] | 274 | # TODO: testcases/realtime requires bash and python. |
| 275 | AC_ARG_WITH([realtime-testsuite], |
| 276 | [AC_HELP_STRING([--with-realtime-testsuite], |
| 277 | [compile and install the realtime testsuite])], |
| 278 | [with_realtime_testsuite=$withval], |
| 279 | [with_realtime_testsuite=no] |
| 280 | ) |
| 281 | |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 282 | if test "x$with_realtime_testsuite" = xyes; then |
| 283 | AC_SUBST([WITH_REALTIME_TESTSUITE],["yes"]) |
Garrett Cooper | 52288dc | 2010-11-16 22:01:43 -0800 | [diff] [blame] | 284 | # Run configure on testcases/realtime as well. |
| 285 | AC_CONFIG_SUBDIRS([testcases/realtime]) |
Garrett Cooper | 92dfd5b | 2010-11-16 20:02:26 -0800 | [diff] [blame] | 286 | else |
| 287 | AC_SUBST([WITH_REALTIME_TESTSUITE],["no"]) |
| 288 | fi |
| 289 | |
Li Wang | 8d47fa7 | 2017-10-26 16:51:15 +0800 | [diff] [blame] | 290 | 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] | 291 | |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 292 | # custom functions |
Petr Vorel | 452c513 | 2020-01-29 19:26:27 +0100 | [diff] [blame] | 293 | # 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] | 294 | LTP_CHECK_ACL_SUPPORT |
| 295 | LTP_CHECK_ATOMIC_MEMORY_MODEL |
| 296 | LTP_CHECK_BUILTIN_CLEAR_CACHE |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 297 | LTP_CHECK_CAPABILITY_SUPPORT |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 298 | LTP_CHECK_CC_WARN_OLDSTYLE |
| 299 | LTP_CHECK_CLONE_SUPPORTS_7_ARGS |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 300 | LTP_CHECK_CRYPTO |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 301 | LTP_CHECK_FORTIFY_SOURCE |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 302 | LTP_CHECK_KERNEL_DEVEL |
| 303 | LTP_CHECK_KEYUTILS_SUPPORT |
Petr Vorel | 553ca8e | 2019-11-01 14:48:16 +0100 | [diff] [blame] | 304 | LTP_CHECK_LIBMNL |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 305 | LTP_CHECK_LINUX_PTRACE |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 306 | LTP_CHECK_LINUXRANDOM |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 307 | LTP_CHECK_MREMAP_FIXED |
Mike Frysinger | 9bd940b | 2010-08-17 17:22:03 -0400 | [diff] [blame] | 308 | LTP_CHECK_NOMMU_LINUX |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 309 | LTP_CHECK_SELINUX |
Jan Stancek | f61391e | 2016-04-13 13:09:23 +0200 | [diff] [blame] | 310 | LTP_CHECK_SYNC_ADD_AND_FETCH |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 311 | LTP_CHECK_SYSCALL_EVENTFD |
| 312 | LTP_CHECK_SYSCALL_FCNTL |
Xing Gu | a3bfea2 | 2014-06-17 15:26:30 +0800 | [diff] [blame] | 313 | |
Petr Vorel | f417672 | 2018-02-07 11:29:42 +0100 | [diff] [blame] | 314 | if test "x$with_numa" = xyes; then |
| 315 | LTP_CHECK_SYSCALL_NUMA |
| 316 | numa_error_msg="test requires libnuma >= 2 and it's development packages" |
| 317 | else |
| 318 | numa_error_msg="NUMA support was disabled during build" |
| 319 | fi |
| 320 | AC_DEFINE_UNQUOTED(NUMA_ERROR_MSG, ["$numa_error_msg"], [Error message when no NUMA support]) |
| 321 | |
Christian Amann | e3c82be | 2019-06-14 09:28:27 +0200 | [diff] [blame] | 322 | |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 323 | LTP_CHECK_SYSCALL_PERF_EVENT_OPEN |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 324 | LTP_CHECK_SYSCALL_SIGNALFD |
| 325 | LTP_CHECK_SYSCALL_UTIMENSAT |
| 326 | LTP_CHECK_TASKSTATS |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 327 | test "x$with_tirpc" = xyes && LTP_CHECK_TIRPC |
Petr Vorel | a50338c | 2019-04-12 15:48:53 +0200 | [diff] [blame] | 328 | LTP_DETECT_HOST_CPU |
| 329 | |
subrata_modak | 3d8666c | 2008-11-11 08:31:27 +0000 | [diff] [blame] | 330 | AC_OUTPUT |