source: rtems/testsuites/psxtests/configure.ac @ ba776282

5
Last change on this file since ba776282 was ba776282, checked in by Gedare Bloom <gedare@…>, on 08/12/16 at 19:25:10

posix: shared memory support

Add POSIX shared memory manager (Shm). Includes a hook-based
approach for the backing memory storage that defaults to the
Workspace, and a test is provided using the heap. A test is
also provided for the basic use of mmap'ing a shared memory
object. This test currently fails at the mmap stage due to
no support for mmap.

  • Property mode set to 100644
File size: 5.5 KB
Line 
1## Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.69])
4AC_INIT([rtems-c-src-tests-psxtests],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
5AC_CONFIG_SRCDIR([psx01])
6AC_CONFIG_HEADER([config.h])
7RTEMS_TOP([../..],[..])
8
9RTEMS_CANONICAL_TARGET_CPU
10
11AM_INIT_AUTOMAKE([no-define foreign 1.12.2])
12AM_MAINTAINER_MODE
13
14RTEMS_ENABLE_CXX
15
16RTEMS_ENV_RTEMSBSP
17
18RTEMS_PROJECT_ROOT
19
20RTEMS_PROG_CC_FOR_TARGET
21RTEMS_PROG_CXX_FOR_TARGET
22
23RTEMS_CANONICALIZE_TOOLS
24
25RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
26RTEMS_CHECK_CXX(RTEMS_BSP)
27RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
28RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
29
30AM_CONDITIONAL(HAS_CXX,test "$rtems_cv_HAS_CPLUSPLUS" = "yes")
31AM_CONDITIONAL([HAS_NETWORKING],test "$rtems_cv_RTEMS_NETWORKING" = "yes")
32AM_CONDITIONAL([HAS_CPLUSPLUS],[test x"$HAS_CPLUSPLUS" = x"yes"])
33
34RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
35AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes")
36
37# FIXME: IEEE Std 1003.1-2008 mandates sys/mman.h,
38# but newlib doesn't have sys/mman.h
39AC_CHECK_HEADERS([sys/mman.h])
40
41# FIXME: newlib should supply declaration of pthread_rwlock_unlock()
42AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]])
43
44# FIXME: newlib should supply declaration of pthread_atfork()
45AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]])
46
47# Added to pthreads after initial revision.  May not be in toolset
48AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]])
49
50# Added to pthreads after initial revision.  May not be in toolset
51AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]])
52
53# Added to pthreads after initial revision.  May not be in toolset
54AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])
55
56# Added to pthreads after initial revision.  May not be in toolset
57AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
58
59# Added to newlib pthreads for RTEMS SMP (np), may not be present
60AC_CHECK_DECLS([pthread_attr_setaffinity_np],[],[],[[
61  #define _GNU_SOURCE
62  #include <pthread.h>]])
63
64# Added to newlib pthreads for RTEMS SMP (np), may not be present
65AC_CHECK_DECLS([pthread_attr_getaffinity_np],[],[],[[
66  #define _GNU_SOURCE
67  #include <pthread.h>]])
68
69# Added to newlib pthreads for RTEMS SMP (np), may not be present
70AC_CHECK_DECLS([pthread_setaffinity_np],[],[],[[
71  #define _GNU_SOURCE
72  #include <pthread.h>]])
73
74# Added to newlib pthreads for RTEMS SMP (np), may not be present
75AC_CHECK_DECLS([pthread_getaffinity_np],[],[],[[
76  #define _GNU_SOURCE
77  #include <pthread.h>]])
78
79# Added to newlib pthreads for RTEMS SMP (np), may not be present
80AC_CHECK_DECLS([pthread_getattr_np],[],[],[[
81  #define _GNU_SOURCE
82  #include <pthread.h>]])
83
84# Mandated by POSIX, not declared in some versions of newlib.
85AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
86
87# Mandated by POSIX, not declared in some versions of newlib.
88AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
89
90# FIXME: adjtime is a non-standardized BSD/Linux extension
91# RTEMS should not rely on adjtime
92AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]])
93
94# FIXME: IEEE Std 1003.1-2008 mandates mprotect in sys/mman.h,
95# RTEMS provides a stub, despite newlib doesn't have sys/mman.h
96AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])
97
98# FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h
99# RTEMS provides it, despite newlib doesn't declare it.
100AC_CHECK_DECLS([seteuid],[],[],[#include <unistd.h>])
101
102# FIXME: We should get rid of this. It's a cludge.
103AC_CHECK_SIZEOF([off_t])
104AC_CHECK_SIZEOF([blksize_t])
105AC_CHECK_SIZEOF([blkcnt_t])
106AC_CHECK_SIZEOF([time_t])
107AC_CHECK_SIZEOF([mode_t])
108
109# Explicitly list all Makefiles here
110AC_CONFIG_FILES([Makefile
111psx01/Makefile
112psx02/Makefile
113psx03/Makefile
114psx04/Makefile
115psx05/Makefile
116psx06/Makefile
117psx07/Makefile
118psx08/Makefile
119psx09/Makefile
120psx10/Makefile
121psx11/Makefile
122psx12/Makefile
123psx13/Makefile
124psx14/Makefile
125psx15/Makefile
126psx16/Makefile
127psxaio01/Makefile
128psxaio02/Makefile
129psxaio03/Makefile
130psxalarm01/Makefile
131psxautoinit01/Makefile
132psxautoinit02/Makefile
133psxbarrier01/Makefile
134psxcancel/Makefile
135psxcancel01/Makefile
136psxchroot01/Makefile
137psxclassic01/Makefile
138psxcleanup/Makefile
139psxcleanup01/Makefile
140psxcleanup02/Makefile
141psxclock/Makefile
142psxclock01/Makefile
143psxconcurrency01/Makefile
144psxcond01/Makefile
145psxcond02/Makefile
146psxconfig01/Makefile
147psxdevctl01/Makefile
148psxeintr_join/Makefile
149psxenosys/Makefile
150psxfatal01/Makefile
151psxfatal02/Makefile
152psxfchx01/Makefile
153psxfile01/Makefile
154psxfile02/Makefile
155psxfilelock01/Makefile
156psxgetattrnp01/Makefile
157psxgetrusage01/Makefile
158psxglobalcon01/Makefile
159psxglobalcon02/Makefile
160psxhdrs/Makefile
161psxid01/Makefile
162psximfs01/Makefile
163psximfs02/Makefile
164psxintrcritical01/Makefile
165psxitimer/Makefile
166psxkey01/Makefile
167psxkey02/Makefile
168psxkey03/Makefile
169psxkey04/Makefile
170psxkey05/Makefile
171psxkey06/Makefile
172psxkey07/Makefile
173psxkey08/Makefile
174psxkey09/Makefile
175psxkey10/Makefile
176psxmount/Makefile
177psxmsgq01/Makefile
178psxmsgq02/Makefile
179psxmsgq03/Makefile
180psxmsgq04/Makefile
181psxmutexattr01/Makefile
182psxobj01/Makefile
183psxonce01/Makefile
184psxpasswd01/Makefile
185psxpasswd02/Makefile
186psxpipe01/Makefile
187psxreaddir/Makefile
188psxrdwrv/Makefile
189psxrwlock01/Makefile
190psxsem01/Makefile
191psxshm01/Makefile
192psxshm02/Makefile
193psxsignal01/Makefile
194psxsignal02/Makefile
195psxsignal03/Makefile
196psxsignal04/Makefile
197psxsignal05/Makefile
198psxsignal06/Makefile
199psxspin01/Makefile
200psxstack01/Makefile
201psxstack02/Makefile
202psxstat/Makefile
203psxsysconf/Makefile
204psxtime/Makefile
205psxtimer01/Makefile
206psxtimer02/Makefile
207psxtimes01/Makefile
208psxthreadname01/Makefile
209psxualarm/Makefile
210psxusleep/Makefile
211])
212AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.