yaberauneya | 9913e82 | 2009-11-26 11:27:34 +0000 | [diff] [blame^] | 1 | AC_PREREQ(2.61) |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 2 | AC_INIT([ltp], [LTP_VERSION], [ltp-results@lists.sourceforge.net]) |
| 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]) |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 6 | AC_CONFIG_FILES([ \ |
| 7 | include/mk/config.mk \ |
| 8 | lib/ltp.pc \ |
| 9 | ltp-devel.spec \ |
| 10 | m4/Makefile \ |
yaberauneya | 0d39b83 | 2009-11-20 05:45:41 +0000 | [diff] [blame] | 11 | execltp \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 12 | README.ltp-devel \ |
vapier | df8759f | 2009-01-18 22:22:40 +0000 | [diff] [blame] | 13 | ]) |
subrata_modak | 3d8666c | 2008-11-11 08:31:27 +0000 | [diff] [blame] | 14 | |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 15 | AM_CONDITIONAL(CROSS_COMPILATION, test x$cross_compiling = xyes) |
| 16 | |
| 17 | AC_CANONICAL_HOST |
| 18 | |
| 19 | AC_PROG_CC |
yaberauneya | f7df140 | 2009-10-17 02:24:20 +0000 | [diff] [blame] | 20 | # <= autoconf 2.61 doesn't have AC_PROG_AR, but 2.63 has it. Not sure about |
| 21 | # 2.62. |
| 22 | AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)]) |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 23 | AC_PROG_AR |
| 24 | AC_PROG_LEX |
| 25 | AC_PROG_RANLIB |
| 26 | AC_PROG_YACC |
| 27 | |
| 28 | AC_PREFIX_DEFAULT(/opt/ltp) |
| 29 | |
| 30 | AC_CHECK_HEADERS_ONCE([ \ |
| 31 | dmapi.h \ |
| 32 | ifaddrs.h \ |
| 33 | libaio.h \ |
| 34 | mm.h \ |
yaberauneya | 9913e82 | 2009-11-26 11:27:34 +0000 | [diff] [blame^] | 35 | pthread.h \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 36 | 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([ \ |
yaberauneya | 9913e82 | 2009-11-26 11:27:34 +0000 | [diff] [blame^] | 48 | # testcases/kernel/syscalls/libevent \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 49 | # testcases/open_hpi_testsuite/ \ |
| 50 | # testcases/kernel/syscalls/pcllib/ \ |
yaberauneya | 9913e82 | 2009-11-26 11:27:34 +0000 | [diff] [blame^] | 51 | # testcases/realtime \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 52 | #]) |
| 53 | |
| 54 | AC_CONFIG_SUBDIRS([ \ |
yaberauneya | 9913e82 | 2009-11-26 11:27:34 +0000 | [diff] [blame^] | 55 | testcases/kernel/syscalls/libevent \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 56 | testcases/kernel/syscalls/pcllib/ \ |
yaberauneya | 9913e82 | 2009-11-26 11:27:34 +0000 | [diff] [blame^] | 57 | testcases/realtime \ |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 58 | ]) |
| 59 | |
| 60 | LTP_CHECK_CAPABILITY_SUPPORT |
| 61 | LTP_CHECK_CRYPTO |
| 62 | LTP_CHECK_LINUX_PTRACE |
| 63 | LTP_CHECK_SELINUX |
subrata_modak | 4fc9f54 | 2009-01-16 09:03:14 +0000 | [diff] [blame] | 64 | LTP_CHECK_SYSCALL_EVENTFD |
vapier | df8759f | 2009-01-18 22:22:40 +0000 | [diff] [blame] | 65 | LTP_CHECK_SYSCALL_MODIFY_LDT |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 66 | LTP_CHECK_SYSCALL_NUMA |
| 67 | LTP_CHECK_SYSCALL_QUOTACTL |
vapier | df8759f | 2009-01-18 22:22:40 +0000 | [diff] [blame] | 68 | LTP_CHECK_SYSCALL_SIGNALFD |
subrata_modak | 5e0db1d | 2009-08-25 07:37:45 +0000 | [diff] [blame] | 69 | LTP_CHECK_SYSCALL_UNSHARE |
yaberauneya | 77772ef | 2009-10-17 06:53:58 +0000 | [diff] [blame] | 70 | LTP_CHECK_SYSCALL_SWAPONOFF |
subrata_modak | 1c31098 | 2009-05-25 15:01:45 +0000 | [diff] [blame] | 71 | LTP_CHECK_TASKSTATS |
subrata_modak | 3d8666c | 2008-11-11 08:31:27 +0000 | [diff] [blame] | 72 | |
| 73 | AC_OUTPUT |