1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | ## |
---|
3 | ## $Id$ |
---|
4 | |
---|
5 | AC_PREREQ(2.60) |
---|
6 | AC_INIT([rtems-c-src-tests-psxtests],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) |
---|
7 | AC_CONFIG_SRCDIR([psx01]) |
---|
8 | RTEMS_TOP([../..],[..]) |
---|
9 | |
---|
10 | RTEMS_CANONICAL_TARGET_CPU |
---|
11 | |
---|
12 | AM_INIT_AUTOMAKE([no-define foreign 1.10]) |
---|
13 | AM_MAINTAINER_MODE |
---|
14 | |
---|
15 | RTEMS_ENV_RTEMSBSP |
---|
16 | |
---|
17 | RTEMS_PROJECT_ROOT |
---|
18 | |
---|
19 | RTEMS_PROG_CC_FOR_TARGET |
---|
20 | |
---|
21 | RTEMS_CANONICALIZE_TOOLS |
---|
22 | |
---|
23 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
24 | |
---|
25 | AM_CONDITIONAL([HAS_NETWORKING],[test "$HAS_NETWORKING" = "yes"]) |
---|
26 | |
---|
27 | RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) |
---|
28 | AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes") |
---|
29 | |
---|
30 | # FIXME: IEEE Std 1003.1-2008 mandates sys/mman.h, |
---|
31 | # but newlib doesn't have sys/mman.h |
---|
32 | AC_CHECK_HEADERS([sys/mman.h]) |
---|
33 | |
---|
34 | # FIXME: newlib should supply declaration of pthread_rwlock_unlock() |
---|
35 | AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]]) |
---|
36 | |
---|
37 | # FIXME: newlib should supply declaration of pthread_atfork() |
---|
38 | AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]]) |
---|
39 | |
---|
40 | # FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1 |
---|
41 | # Likely an anachronism in RTEMS. |
---|
42 | AC_CHECK_DECLS([pthread_pthread_attr_getcputime],[],[],[[#include <pthread.h>]]) |
---|
43 | |
---|
44 | # FIXME: RTEMS presumes pthread_attr_setcputime to be IEEE Std 1003.1 |
---|
45 | # Likely an anachronism in RTEMS. |
---|
46 | AC_CHECK_DECLS([pthread_pthread_attr_setcputime],[],[],[[#include <pthread.h>]]) |
---|
47 | |
---|
48 | # FIXME: adjtime is a non-standardized BSD/Linux extension |
---|
49 | # RTEMS should not rely on adjtime |
---|
50 | AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]]) |
---|
51 | |
---|
52 | # FIXME: IEEE Std 1003.1-2008 mandates mprotect in sys/mman.h, |
---|
53 | # RTEMS provides a stub, despite newlib doesn't have sys/mman.h |
---|
54 | AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]]) |
---|
55 | |
---|
56 | # Explicitly list all Makefiles here |
---|
57 | AC_CONFIG_FILES([Makefile |
---|
58 | psx01/Makefile |
---|
59 | psx02/Makefile |
---|
60 | psx03/Makefile |
---|
61 | psx04/Makefile |
---|
62 | psx05/Makefile |
---|
63 | psx06/Makefile |
---|
64 | psx07/Makefile |
---|
65 | psx08/Makefile |
---|
66 | psx09/Makefile |
---|
67 | psx10/Makefile |
---|
68 | psx11/Makefile |
---|
69 | psx12/Makefile |
---|
70 | psx13/Makefile |
---|
71 | psx14/Makefile |
---|
72 | psxalarm01/Makefile |
---|
73 | psxautoinit01/Makefile |
---|
74 | psxautoinit02/Makefile |
---|
75 | psxbarrier01/Makefile |
---|
76 | psxcancel/Makefile |
---|
77 | psxcancel01/Makefile |
---|
78 | psxchroot01/Makefile |
---|
79 | psxcleanup/Makefile |
---|
80 | psxcleanup01/Makefile |
---|
81 | psxclock/Makefile |
---|
82 | psxcond01/Makefile |
---|
83 | psxenosys/Makefile |
---|
84 | psxfatal01/Makefile |
---|
85 | psxfatal02/Makefile |
---|
86 | psxfile01/Makefile |
---|
87 | psxhdrs/Makefile |
---|
88 | psxintrcritical01/Makefile |
---|
89 | psxitimer/Makefile |
---|
90 | psxkey01/Makefile |
---|
91 | psxkey02/Makefile |
---|
92 | psxkey03/Makefile |
---|
93 | psxmount/Makefile |
---|
94 | psxmsgq01/Makefile |
---|
95 | psxmsgq02/Makefile |
---|
96 | psxmsgq03/Makefile |
---|
97 | psxmsgq04/Makefile |
---|
98 | psxmutexattr01/Makefile |
---|
99 | psxobj01/Makefile |
---|
100 | psxreaddir/Makefile |
---|
101 | psxrdwrv/Makefile |
---|
102 | psxrwlock01/Makefile |
---|
103 | psxsem01/Makefile |
---|
104 | psxsignal01/Makefile |
---|
105 | psxsignal02/Makefile |
---|
106 | psxsignal03/Makefile |
---|
107 | psxsignal04/Makefile |
---|
108 | psxsignal05/Makefile |
---|
109 | psxspin01/Makefile |
---|
110 | psxspin02/Makefile |
---|
111 | psxstack01/Makefile |
---|
112 | psxstat/Makefile |
---|
113 | psxsysconf/Makefile |
---|
114 | psxtime/Makefile |
---|
115 | psxtimer01/Makefile |
---|
116 | psxtimer02/Makefile |
---|
117 | psxualarm/Makefile |
---|
118 | ]) |
---|
119 | AC_OUTPUT |
---|