1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | |
---|
3 | AC_PREREQ([2.69]) |
---|
4 | AC_INIT([rtems-c-src-tests-fstests], |
---|
5 | [_RTEMS_VERSION],[https://devel.rtems.org/newticket]) |
---|
6 | AC_CONFIG_SRCDIR([imfs_support]) |
---|
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_ENV_RTEMSBSP |
---|
15 | |
---|
16 | RTEMS_PROJECT_ROOT |
---|
17 | |
---|
18 | RTEMS_PROG_CC_FOR_TARGET |
---|
19 | |
---|
20 | RTEMS_CANONICALIZE_TOOLS |
---|
21 | |
---|
22 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
23 | AC_CONFIG_HEADER([config.h]) |
---|
24 | |
---|
25 | RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) |
---|
26 | AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes") |
---|
27 | |
---|
28 | # but newlib doesn't have sys/mman.h |
---|
29 | AC_CHECK_HEADERS([sys/mman.h]) |
---|
30 | |
---|
31 | # FIXME: newlib should supply declaration of pthread_rwlock_unlock() |
---|
32 | AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]]) |
---|
33 | |
---|
34 | # FIXME: newlib should supply declaration of pthread_atfork() |
---|
35 | AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]]) |
---|
36 | |
---|
37 | # FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1 |
---|
38 | # Likely an anachronism in RTEMS. |
---|
39 | AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]]) |
---|
40 | |
---|
41 | # FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1 |
---|
42 | # Likely an anachronism in RTEMS. |
---|
43 | AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]]) |
---|
44 | |
---|
45 | # FIXME: RTEMS presumes pthread_attr_setcputime to be IEEE Std 1003.1 |
---|
46 | # Likely an anachronism in RTEMS. |
---|
47 | AC_CHECK_DECLS([pthread_attr_setcputime],[],[],[[#include <pthread.h>]]) |
---|
48 | |
---|
49 | # Added to pthreads after initial revision. May not be in toolset |
---|
50 | AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]]) |
---|
51 | |
---|
52 | # Added to pthreads after initial revision. May not be in toolset |
---|
53 | AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]]) |
---|
54 | |
---|
55 | # Added to pthreads after initial revision. May not be in toolset |
---|
56 | AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]]) |
---|
57 | |
---|
58 | # Added to pthreads after initial revision. May not be in toolset |
---|
59 | AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]]) |
---|
60 | |
---|
61 | # FIXME: adjtime is a non-standardized BSD/Linux extension |
---|
62 | # RTEMS should not rely on adjtime |
---|
63 | AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]]) |
---|
64 | |
---|
65 | # FIXME: IEEE Std 1003.1-2008 mandates mprotect in sys/mman.h, |
---|
66 | # RTEMS provides a stub, despite newlib doesn't have sys/mman.h |
---|
67 | AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]]) |
---|
68 | |
---|
69 | # FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h |
---|
70 | # RTEMS provides it, despite newlib doesn't declare it. |
---|
71 | AC_CHECK_DECLS([seteuid],[],[],[#include <unistd.h>]) |
---|
72 | |
---|
73 | # FIXME: We should get rid of this. It's a cludge. |
---|
74 | AC_CHECK_SIZEOF([off_t]) |
---|
75 | AC_CHECK_SIZEOF([blksize_t]) |
---|
76 | AC_CHECK_SIZEOF([blkcnt_t]) |
---|
77 | |
---|
78 | # Explicitly list all Makefiles here |
---|
79 | AC_CONFIG_FILES([Makefile |
---|
80 | fsjffs2gc01/Makefile |
---|
81 | fsimfsconfig03/Makefile |
---|
82 | fsimfsconfig02/Makefile |
---|
83 | fsimfsconfig01/Makefile |
---|
84 | fsdosfsname01/Makefile |
---|
85 | fsdosfsname02/Makefile |
---|
86 | fsdosfswrite01/Makefile |
---|
87 | fsdosfsformat01/Makefile |
---|
88 | fsfseeko01/Makefile |
---|
89 | fsdosfssync01/Makefile |
---|
90 | imfs_fserror/Makefile |
---|
91 | imfs_fslink/Makefile |
---|
92 | imfs_fspatheval/Makefile |
---|
93 | imfs_fspermission/Makefile |
---|
94 | imfs_fsrdwr/Makefile |
---|
95 | imfs_fsscandir01/Makefile |
---|
96 | imfs_fssymlink/Makefile |
---|
97 | imfs_fstime/Makefile |
---|
98 | jffs2_fserror/Makefile |
---|
99 | jffs2_fslink/Makefile |
---|
100 | jffs2_fspatheval/Makefile |
---|
101 | jffs2_fspermission/Makefile |
---|
102 | jffs2_fsrdwr/Makefile |
---|
103 | jffs2_fsscandir01/Makefile |
---|
104 | jffs2_fssymlink/Makefile |
---|
105 | jffs2_fstime/Makefile |
---|
106 | mdosfs_fserror/Makefile |
---|
107 | mdosfs_fspatheval/Makefile |
---|
108 | mdosfs_fsrdwr/Makefile |
---|
109 | mdosfs_fsscandir01/Makefile |
---|
110 | mdosfs_fsstatvfs/Makefile |
---|
111 | mdosfs_fstime/Makefile |
---|
112 | mimfs_fserror/Makefile |
---|
113 | mimfs_fslink/Makefile |
---|
114 | mimfs_fspatheval/Makefile |
---|
115 | mimfs_fspermission/Makefile |
---|
116 | mimfs_fsrdwr/Makefile |
---|
117 | mimfs_fsscandir01/Makefile |
---|
118 | mimfs_fssymlink/Makefile |
---|
119 | mimfs_fstime/Makefile |
---|
120 | mimfs_fsrename/Makefile |
---|
121 | mrfs_fserror/Makefile |
---|
122 | mrfs_fslink/Makefile |
---|
123 | mrfs_fspatheval/Makefile |
---|
124 | mrfs_fspermission/Makefile |
---|
125 | mrfs_fsrdwr/Makefile |
---|
126 | mrfs_fsscandir01/Makefile |
---|
127 | mrfs_fssymlink/Makefile |
---|
128 | mrfs_fstime/Makefile |
---|
129 | mrfs_fsfpathconf/Makefile |
---|
130 | fsrfsbitmap01/Makefile |
---|
131 | fsnofs01/Makefile |
---|
132 | fsimfsgeneric01/Makefile |
---|
133 | fsbdpart01/Makefile |
---|
134 | |
---|
135 | ]) |
---|
136 | AC_OUTPUT |
---|