source: rtems/testsuites/psxtests/configure.ac @ 9a4eca5

5
Last change on this file since 9a4eca5 was 6131b84, checked in by Joel Sherrill <joel@…>, on 03/09/16 at 21:15:37

Add pthread_condattr_getclock() and pthread_condattr_setclock()

updates #2608.

  • 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# Added to newlib pthreads for RTEMS SMP (np), may not be present
85AC_CHECK_HEADERS([cpuset.h])
86
87# Mandated by POSIX, not declared in some versions of newlib.
88AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
89
90# Mandated by POSIX, not declared in some versions of newlib.
91AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
92
93# FIXME: adjtime is a non-standardized BSD/Linux extension
94# RTEMS should not rely on adjtime
95AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]])
96
97# FIXME: IEEE Std 1003.1-2008 mandates mprotect in sys/mman.h,
98# RTEMS provides a stub, despite newlib doesn't have sys/mman.h
99AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])
100
101# FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h
102# RTEMS provides it, despite newlib doesn't declare it.
103AC_CHECK_DECLS([seteuid],[],[],[#include <unistd.h>])
104
105# FIXME: We should get rid of this. It's a cludge.
106AC_CHECK_SIZEOF([off_t])
107AC_CHECK_SIZEOF([blksize_t])
108AC_CHECK_SIZEOF([blkcnt_t])
109AC_CHECK_SIZEOF([time_t])
110AC_CHECK_SIZEOF([mode_t])
111
112# Explicitly list all Makefiles here
113AC_CONFIG_FILES([Makefile
114psx01/Makefile
115psx02/Makefile
116psx03/Makefile
117psx04/Makefile
118psx05/Makefile
119psx06/Makefile
120psx07/Makefile
121psx08/Makefile
122psx09/Makefile
123psx10/Makefile
124psx11/Makefile
125psx12/Makefile
126psx13/Makefile
127psx14/Makefile
128psx15/Makefile
129psx16/Makefile
130psxaio01/Makefile
131psxaio02/Makefile
132psxaio03/Makefile
133psxalarm01/Makefile
134psxautoinit01/Makefile
135psxautoinit02/Makefile
136psxbarrier01/Makefile
137psxcancel/Makefile
138psxcancel01/Makefile
139psxchroot01/Makefile
140psxclassic01/Makefile
141psxcleanup/Makefile
142psxcleanup01/Makefile
143psxcleanup02/Makefile
144psxclock/Makefile
145psxclock01/Makefile
146psxconcurrency01/Makefile
147psxcond01/Makefile
148psxcond02/Makefile
149psxconfig01/Makefile
150psxeintr_join/Makefile
151psxenosys/Makefile
152psxfatal01/Makefile
153psxfatal02/Makefile
154psxfchx01/Makefile
155psxfile01/Makefile
156psxfile02/Makefile
157psxfilelock01/Makefile
158psxgetattrnp01/Makefile
159psxgetrusage01/Makefile
160psxglobalcon01/Makefile
161psxglobalcon02/Makefile
162psxhdrs/Makefile
163psxid01/Makefile
164psximfs01/Makefile
165psximfs02/Makefile
166psxintrcritical01/Makefile
167psxitimer/Makefile
168psxkey01/Makefile
169psxkey02/Makefile
170psxkey03/Makefile
171psxkey04/Makefile
172psxkey05/Makefile
173psxkey06/Makefile
174psxkey07/Makefile
175psxkey08/Makefile
176psxkey09/Makefile
177psxkey10/Makefile
178psxmount/Makefile
179psxmsgq01/Makefile
180psxmsgq02/Makefile
181psxmsgq03/Makefile
182psxmsgq04/Makefile
183psxmutexattr01/Makefile
184psxobj01/Makefile
185psxonce01/Makefile
186psxpasswd01/Makefile
187psxpasswd02/Makefile
188psxpipe01/Makefile
189psxreaddir/Makefile
190psxrdwrv/Makefile
191psxrwlock01/Makefile
192psxsem01/Makefile
193psxsignal01/Makefile
194psxsignal02/Makefile
195psxsignal03/Makefile
196psxsignal04/Makefile
197psxsignal05/Makefile
198psxsignal06/Makefile
199psxspin01/Makefile
200psxspin02/Makefile
201psxstack01/Makefile
202psxstack02/Makefile
203psxstat/Makefile
204psxsysconf/Makefile
205psxtime/Makefile
206psxtimer01/Makefile
207psxtimer02/Makefile
208psxtimes01/Makefile
209psxualarm/Makefile
210psxusleep/Makefile
211])
212AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.