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 | |
---|
9 | RTEMS_CANONICAL_TARGET_CPU |
---|
10 | |
---|
11 | AM_INIT_AUTOMAKE([no-define foreign 1.12.2]) |
---|
12 | AM_MAINTAINER_MODE |
---|
13 | |
---|
14 | RTEMS_ENABLE_CXX |
---|
15 | |
---|
16 | RTEMS_ENV_RTEMSBSP |
---|
17 | |
---|
18 | RTEMS_PROJECT_ROOT |
---|
19 | |
---|
20 | RTEMS_PROG_CC_FOR_TARGET |
---|
21 | |
---|
22 | RTEMS_PROG_CXX_FOR_TARGET |
---|
23 | RTEMS_CANONICALIZE_TOOLS |
---|
24 | |
---|
25 | RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) |
---|
26 | |
---|
27 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
28 | RTEMS_CHECK_CPUOPTS([RTEMS_MULTIPROCESSING]) |
---|
29 | RTEMS_CHECK_CXX(RTEMS_BSP) |
---|
30 | RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING]) |
---|
31 | RTEMS_CHECK_CPUOPTS([RTEMS_SMP]) |
---|
32 | |
---|
33 | AM_CONDITIONAL(SMPTESTS,test "$rtems_cv_RTEMS_SMP" = "yes") |
---|
34 | |
---|
35 | AM_CONDITIONAL([HAS_POSIX],[test x"${rtems_cv_RTEMS_POSIX_API}" = xyes]) |
---|
36 | |
---|
37 | # These are SMP related and were added to newlib by RTEMS. |
---|
38 | AC_CHECK_DECLS([pthread_attr_setaffinity_np],[],[],[[ |
---|
39 | #define _GNU_SOURCE |
---|
40 | #include <pthread.h>]]) |
---|
41 | AC_CHECK_DECLS([pthread_attr_getaffinity_np],[],[],[[ |
---|
42 | #define _GNU_SOURCE |
---|
43 | #include <pthread.h>]]) |
---|
44 | AC_CHECK_DECLS([pthread_setaffinity_np],[],[],[[ |
---|
45 | #define _GNU_SOURCE |
---|
46 | #include <pthread.h>]]) |
---|
47 | AC_CHECK_DECLS([pthread_getaffinity_np],[],[],[[ |
---|
48 | #define _GNU_SOURCE |
---|
49 | #include <pthread.h>]]) |
---|
50 | AC_CHECK_DECLS([pthread_getattr_np],[],[],[[ |
---|
51 | #define _GNU_SOURCE |
---|
52 | #include <pthread.h>]]) |
---|
53 | |
---|
54 | # Added to newlib pthreads for RTEMS SMP (np), may not be present |
---|
55 | AC_CHECK_HEADERS([sys/cpuset.h]) |
---|
56 | AM_CONDITIONAL(HAS_CPUSET,test x"${ac_cv_header_sys_cpuset_h}" = x"yes") |
---|
57 | |
---|
58 | # Explicitly list all Makefiles here |
---|
59 | AC_CONFIG_FILES([Makefile |
---|
60 | smpmutex02/Makefile |
---|
61 | smppsxmutex01/Makefile |
---|
62 | smpstrongapa01/Makefile |
---|
63 | smp01/Makefile |
---|
64 | smp02/Makefile |
---|
65 | smp03/Makefile |
---|
66 | smp05/Makefile |
---|
67 | smp07/Makefile |
---|
68 | smp08/Makefile |
---|
69 | smp09/Makefile |
---|
70 | smpaffinity01/Makefile |
---|
71 | smpatomic01/Makefile |
---|
72 | smpcache01/Makefile |
---|
73 | smpcapture01/Makefile |
---|
74 | smpcapture02/Makefile |
---|
75 | smpclock01/Makefile |
---|
76 | smpfatal01/Makefile |
---|
77 | smpfatal02/Makefile |
---|
78 | smpfatal04/Makefile |
---|
79 | smpfatal05/Makefile |
---|
80 | smpfatal08/Makefile |
---|
81 | smpipi01/Makefile |
---|
82 | smpload01/Makefile |
---|
83 | smplock01/Makefile |
---|
84 | smpmigration01/Makefile |
---|
85 | smpmigration02/Makefile |
---|
86 | smpmrsp01/Makefile |
---|
87 | smpmutex01/Makefile |
---|
88 | smppsxaffinity01/Makefile |
---|
89 | smppsxaffinity02/Makefile |
---|
90 | smppsxsignal01/Makefile |
---|
91 | smpschedaffinity01/Makefile |
---|
92 | smpschedaffinity02/Makefile |
---|
93 | smpschedaffinity03/Makefile |
---|
94 | smpschedaffinity04/Makefile |
---|
95 | smpschedaffinity05/Makefile |
---|
96 | smpscheduler01/Makefile |
---|
97 | smpscheduler02/Makefile |
---|
98 | smpscheduler03/Makefile |
---|
99 | smpschedsem01/Makefile |
---|
100 | smpsignal01/Makefile |
---|
101 | smpswitchextension01/Makefile |
---|
102 | smpthreadlife01/Makefile |
---|
103 | smpunsupported01/Makefile |
---|
104 | smpwakeafter01/Makefile |
---|
105 | ]) |
---|
106 | AC_OUTPUT |
---|