blob: 965644f31f8874812296623ba4a2d1aed36c07c7 [file] [log] [blame]
yaberauneya9913e822009-11-26 11:27:34 +00001AC_PREREQ(2.61)
yaberauneyaef772532009-10-09 17:55:43 +00002AC_INIT([ltp], [LTP_VERSION], [ltp-results@lists.sourceforge.net])
3AC_CONFIG_AUX_DIR([.])
4AM_INIT_AUTOMAKE
subrata_modak3d8666c2008-11-11 08:31:27 +00005AC_CONFIG_HEADERS([include/config.h])
yaberauneyaef772532009-10-09 17:55:43 +00006AC_CONFIG_FILES([ \
7 include/mk/config.mk \
8 lib/ltp.pc \
9 ltp-devel.spec \
10 m4/Makefile \
yaberauneya0d39b832009-11-20 05:45:41 +000011 execltp \
yaberauneyaef772532009-10-09 17:55:43 +000012 README.ltp-devel \
vapierdf8759f2009-01-18 22:22:40 +000013])
subrata_modak3d8666c2008-11-11 08:31:27 +000014
yaberauneyaef772532009-10-09 17:55:43 +000015AM_CONDITIONAL(CROSS_COMPILATION, test x$cross_compiling = xyes)
16
17AC_CANONICAL_HOST
18
19AC_PROG_CC
yaberauneyaf7df1402009-10-17 02:24:20 +000020# <= autoconf 2.61 doesn't have AC_PROG_AR, but 2.63 has it. Not sure about
21# 2.62.
22AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
yaberauneyaef772532009-10-09 17:55:43 +000023AC_PROG_AR
24AC_PROG_LEX
25AC_PROG_RANLIB
26AC_PROG_YACC
27
28AC_PREFIX_DEFAULT(/opt/ltp)
29
30AC_CHECK_HEADERS_ONCE([ \
31 dmapi.h \
32 ifaddrs.h \
33 libaio.h \
34 mm.h \
yaberauneya9913e822009-11-26 11:27:34 +000035 pthread.h \
yaberauneyaef772532009-10-09 17:55:43 +000036 linux/genetlink.h \
37 linux/module.h \
38 linux/netlink.h \
39 sys/acl.h \
40 sys/epoll.h \
41 sys/inotify.h \
42 sys/jfsdmapi.h \
43 sys/prctl.h \
44])
45
46# open_hpi_testsuite does NOT fit cleanly in the build. BLAH.
47#AC_CONFIG_SUBDIRS([ \
yaberauneya9913e822009-11-26 11:27:34 +000048# testcases/kernel/syscalls/libevent \
yaberauneyaef772532009-10-09 17:55:43 +000049# testcases/open_hpi_testsuite/ \
50# testcases/kernel/syscalls/pcllib/ \
yaberauneya9913e822009-11-26 11:27:34 +000051# testcases/realtime \
yaberauneyaef772532009-10-09 17:55:43 +000052#])
53
54AC_CONFIG_SUBDIRS([ \
yaberauneya9913e822009-11-26 11:27:34 +000055 testcases/kernel/syscalls/libevent \
yaberauneyaef772532009-10-09 17:55:43 +000056 testcases/kernel/syscalls/pcllib/ \
yaberauneya9913e822009-11-26 11:27:34 +000057 testcases/realtime \
yaberauneyaef772532009-10-09 17:55:43 +000058])
59
60LTP_CHECK_CAPABILITY_SUPPORT
61LTP_CHECK_CRYPTO
62LTP_CHECK_LINUX_PTRACE
63LTP_CHECK_SELINUX
subrata_modak4fc9f542009-01-16 09:03:14 +000064LTP_CHECK_SYSCALL_EVENTFD
vapierdf8759f2009-01-18 22:22:40 +000065LTP_CHECK_SYSCALL_MODIFY_LDT
yaberauneyaef772532009-10-09 17:55:43 +000066LTP_CHECK_SYSCALL_NUMA
67LTP_CHECK_SYSCALL_QUOTACTL
vapierdf8759f2009-01-18 22:22:40 +000068LTP_CHECK_SYSCALL_SIGNALFD
subrata_modak5e0db1d2009-08-25 07:37:45 +000069LTP_CHECK_SYSCALL_UNSHARE
yaberauneya77772ef2009-10-17 06:53:58 +000070LTP_CHECK_SYSCALL_SWAPONOFF
subrata_modak1c310982009-05-25 15:01:45 +000071LTP_CHECK_TASKSTATS
subrata_modak3d8666c2008-11-11 08:31:27 +000072
73AC_OUTPUT