source: rtems/testsuites/psxtests/configure.ac @ 1307e75

5
Last change on this file since 1307e75 was d85c94c0, checked in by Sebastian Huber <sebastian.huber@…>, on 10/13/17 at 06:00:46

psxclockrealtime01: New test

Update #3182.

  • Property mode set to 100644
File size: 5.6 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
143psxclockrealtime01/Makefile
144psxconcurrency01/Makefile
145psxcond01/Makefile
146psxcond02/Makefile
147psxconfig01/Makefile
148psxdevctl01/Makefile
149psxeintr_join/Makefile
150psxenosys/Makefile
151psxfatal01/Makefile
152psxfatal02/Makefile
153psxfchx01/Makefile
154psxfile01/Makefile
155psxfile02/Makefile
156psxfilelock01/Makefile
157psxgetattrnp01/Makefile
158psxgetrusage01/Makefile
159psxglobalcon01/Makefile
160psxglobalcon02/Makefile
161psxhdrs/Makefile
162psxid01/Makefile
163psximfs01/Makefile
164psximfs02/Makefile
165psxintrcritical01/Makefile
166psxitimer/Makefile
167psxkey01/Makefile
168psxkey02/Makefile
169psxkey03/Makefile
170psxkey04/Makefile
171psxkey05/Makefile
172psxkey06/Makefile
173psxkey07/Makefile
174psxkey08/Makefile
175psxkey09/Makefile
176psxkey10/Makefile
177psxmount/Makefile
178psxmsgq01/Makefile
179psxmsgq02/Makefile
180psxmsgq03/Makefile
181psxmsgq04/Makefile
182psxmutexattr01/Makefile
183psxobj01/Makefile
184psxonce01/Makefile
185psxpasswd01/Makefile
186psxpasswd02/Makefile
187psxpipe01/Makefile
188psxrdwrv/Makefile
189psxreaddir/Makefile
190psxrwlock01/Makefile
191psxsem01/Makefile
192psxshm01/Makefile
193psxshm02/Makefile
194psxmmap01/Makefile
195psxsignal01/Makefile
196psxsignal02/Makefile
197psxsignal03/Makefile
198psxsignal04/Makefile
199psxsignal05/Makefile
200psxsignal06/Makefile
201psxspin01/Makefile
202psxstack01/Makefile
203psxstack02/Makefile
204psxstat/Makefile
205psxstrsignal01/Makefile
206psxsysconf/Makefile
207psxthreadname01/Makefile
208psxtime/Makefile
209psxtimer01/Makefile
210psxtimer02/Makefile
211psxtimes01/Makefile
212psxualarm/Makefile
213psxusleep/Makefile
214])
215AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.