[a2f875f] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
| 2 | |
---|
[0f77281] | 3 | AC_PREREQ([2.69]) |
---|
[858e013f] | 4 | AC_INIT([rtems-c-src-tests-fstests], |
---|
[12072880] | 5 | [_RTEMS_VERSION],[https://devel.rtems.org/newticket]) |
---|
[a2f875f] | 6 | AC_CONFIG_SRCDIR([imfs_support]) |
---|
| 7 | RTEMS_TOP([../..],[..]) |
---|
| 8 | |
---|
| 9 | RTEMS_CANONICAL_TARGET_CPU |
---|
| 10 | |
---|
[bb2b825] | 11 | AM_INIT_AUTOMAKE([no-define foreign 1.12.2]) |
---|
[a2f875f] | 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 |
---|
[6fed43e] | 79 | AC_CONFIG_FILES([Makefile |
---|
[12eee4fd] | 80 | fsimfsconfig03/Makefile |
---|
[a9df916] | 81 | fsimfsconfig02/Makefile |
---|
| 82 | fsimfsconfig01/Makefile |
---|
[ccd212e] | 83 | fsdosfsname01/Makefile |
---|
[42a22f08] | 84 | fsdosfswrite01/Makefile |
---|
[5877a10f] | 85 | fsdosfsformat01/Makefile |
---|
[361a400] | 86 | fsfseeko01/Makefile |
---|
[86ef0df] | 87 | fsdosfssync01/Makefile |
---|
[6fed43e] | 88 | imfs_fserror/Makefile |
---|
| 89 | imfs_fslink/Makefile |
---|
| 90 | imfs_fspatheval/Makefile |
---|
| 91 | imfs_fspermission/Makefile |
---|
| 92 | imfs_fsrdwr/Makefile |
---|
| 93 | imfs_fssymlink/Makefile |
---|
| 94 | imfs_fstime/Makefile |
---|
[0282e83] | 95 | jffs2_fserror/Makefile |
---|
| 96 | jffs2_fslink/Makefile |
---|
| 97 | jffs2_fspatheval/Makefile |
---|
| 98 | jffs2_fspermission/Makefile |
---|
| 99 | jffs2_fsrdwr/Makefile |
---|
| 100 | jffs2_fssymlink/Makefile |
---|
| 101 | jffs2_fstime/Makefile |
---|
[6fed43e] | 102 | mdosfs_fserror/Makefile |
---|
| 103 | mdosfs_fspatheval/Makefile |
---|
| 104 | mdosfs_fsrdwr/Makefile |
---|
[56f22600] | 105 | mdosfs_fsstatvfs/Makefile |
---|
[66c1ef9] | 106 | mdosfs_fstime/Makefile |
---|
[6fed43e] | 107 | mimfs_fserror/Makefile |
---|
| 108 | mimfs_fslink/Makefile |
---|
| 109 | mimfs_fspatheval/Makefile |
---|
| 110 | mimfs_fspermission/Makefile |
---|
| 111 | mimfs_fsrdwr/Makefile |
---|
| 112 | mimfs_fssymlink/Makefile |
---|
| 113 | mimfs_fstime/Makefile |
---|
[27d240e0] | 114 | mimfs_fsrename/Makefile |
---|
[6fed43e] | 115 | mrfs_fserror/Makefile |
---|
| 116 | mrfs_fslink/Makefile |
---|
| 117 | mrfs_fspatheval/Makefile |
---|
| 118 | mrfs_fspermission/Makefile |
---|
| 119 | mrfs_fsrdwr/Makefile |
---|
| 120 | mrfs_fssymlink/Makefile |
---|
| 121 | mrfs_fstime/Makefile |
---|
[37b18d21] | 122 | mrfs_fsfpathconf/Makefile |
---|
[8f1b6cde] | 123 | fsrfsbitmap01/Makefile |
---|
[3b7c123] | 124 | fsnofs01/Makefile |
---|
[c5392ef9] | 125 | fsimfsgeneric01/Makefile |
---|
[113944fa] | 126 | fsbdpart01/Makefile |
---|
[7336d4af] | 127 | |
---|
[a2f875f] | 128 | ]) |
---|
| 129 | AC_OUTPUT |
---|