1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | |
---|
3 | AC_PREREQ([2.69]) |
---|
4 | AC_INIT([rtems-c-src-tests-smptests],[_RTEMS_VERSION],[https://devel.rtems.org/newticket]) |
---|
5 | AC_CONFIG_SRCDIR([smp01]) |
---|
6 | AC_CONFIG_HEADER([config.h]) |
---|
7 | RTEMS_TOP([../..],[..]) |
---|
8 | RTEMS_SOURCE_TOP |
---|
9 | RTEMS_BUILD_TOP |
---|
10 | |
---|
11 | RTEMS_CANONICAL_TARGET_CPU |
---|
12 | |
---|
13 | AM_INIT_AUTOMAKE([no-define foreign 1.12.2]) |
---|
14 | AM_MAINTAINER_MODE |
---|
15 | |
---|
16 | RTEMS_ENABLE_CXX |
---|
17 | |
---|
18 | RTEMS_ENV_RTEMSBSP |
---|
19 | |
---|
20 | RTEMS_PROJECT_ROOT |
---|
21 | |
---|
22 | RTEMS_PROG_CC_FOR_TARGET |
---|
23 | |
---|
24 | RTEMS_PROG_CXX_FOR_TARGET |
---|
25 | RTEMS_CANONICALIZE_TOOLS |
---|
26 | |
---|
27 | RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) |
---|
28 | |
---|
29 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
30 | RTEMS_CHECK_CPUOPTS([RTEMS_MULTIPROCESSING]) |
---|
31 | RTEMS_CHECK_CXX(RTEMS_BSP) |
---|
32 | RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING]) |
---|
33 | RTEMS_CHECK_CPUOPTS([RTEMS_SMP]) |
---|
34 | |
---|
35 | AM_CONDITIONAL(SMPTESTS,test "$rtems_cv_RTEMS_SMP" = "yes") |
---|
36 | |
---|
37 | AM_CONDITIONAL([HAS_POSIX],[test x"${rtems_cv_RTEMS_POSIX_API}" = xyes]) |
---|
38 | |
---|
39 | # These are SMP related and were added to newlib by RTEMS. |
---|
40 | AC_CHECK_DECLS([pthread_attr_setaffinity_np],[],[],[[ |
---|
41 | #define _GNU_SOURCE |
---|
42 | #include <pthread.h>]]) |
---|
43 | AC_CHECK_DECLS([pthread_attr_getaffinity_np],[],[],[[ |
---|
44 | #define _GNU_SOURCE |
---|
45 | #include <pthread.h>]]) |
---|
46 | AC_CHECK_DECLS([pthread_setaffinity_np],[],[],[[ |
---|
47 | #define _GNU_SOURCE |
---|
48 | #include <pthread.h>]]) |
---|
49 | AC_CHECK_DECLS([pthread_getaffinity_np],[],[],[[ |
---|
50 | #define _GNU_SOURCE |
---|
51 | #include <pthread.h>]]) |
---|
52 | AC_CHECK_DECLS([pthread_getattr_np],[],[],[[ |
---|
53 | #define _GNU_SOURCE |
---|
54 | #include <pthread.h>]]) |
---|
55 | |
---|
56 | # Explicitly list all Makefiles here |
---|
57 | AC_CONFIG_FILES([Makefile |
---|
58 | smp01/Makefile |
---|
59 | smp02/Makefile |
---|
60 | smp03/Makefile |
---|
61 | smp05/Makefile |
---|
62 | smp07/Makefile |
---|
63 | smp08/Makefile |
---|
64 | smp09/Makefile |
---|
65 | smpaffinity01/Makefile |
---|
66 | smpatomic01/Makefile |
---|
67 | smpcache01/Makefile |
---|
68 | smpcapture01/Makefile |
---|
69 | smpcapture02/Makefile |
---|
70 | smpclock01/Makefile |
---|
71 | smpfatal01/Makefile |
---|
72 | smpfatal02/Makefile |
---|
73 | smpfatal03/Makefile |
---|
74 | smpfatal04/Makefile |
---|
75 | smpfatal05/Makefile |
---|
76 | smpfatal06/Makefile |
---|
77 | smpfatal08/Makefile |
---|
78 | smpipi01/Makefile |
---|
79 | smpload01/Makefile |
---|
80 | smplock01/Makefile |
---|
81 | smpmigration01/Makefile |
---|
82 | smpmigration02/Makefile |
---|
83 | smpmrsp01/Makefile |
---|
84 | smpmutex01/Makefile |
---|
85 | smpmutex02/Makefile |
---|
86 | smppsxaffinity01/Makefile |
---|
87 | smppsxaffinity02/Makefile |
---|
88 | smppsxmutex01/Makefile |
---|
89 | smppsxsignal01/Makefile |
---|
90 | smpschedaffinity01/Makefile |
---|
91 | smpschedaffinity02/Makefile |
---|
92 | smpschedaffinity03/Makefile |
---|
93 | smpschedaffinity04/Makefile |
---|
94 | smpschedaffinity05/Makefile |
---|
95 | smpschededf01/Makefile |
---|
96 | smpschededf02/Makefile |
---|
97 | smpschededf03/Makefile |
---|
98 | smpschedsem01/Makefile |
---|
99 | smpscheduler01/Makefile |
---|
100 | smpscheduler02/Makefile |
---|
101 | smpscheduler03/Makefile |
---|
102 | smpscheduler04/Makefile |
---|
103 | smpscheduler05/Makefile |
---|
104 | smpscheduler06/Makefile |
---|
105 | smpscheduler07/Makefile |
---|
106 | smpsignal01/Makefile |
---|
107 | smpstrongapa01/Makefile |
---|
108 | smpswitchextension01/Makefile |
---|
109 | smpthreadlife01/Makefile |
---|
110 | smpunsupported01/Makefile |
---|
111 | smpwakeafter01/Makefile |
---|
112 | ]) |
---|
113 | AC_OUTPUT |
---|