[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], |
---|
| 5 | [_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) |
---|
[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 |
---|
[ccd212e] | 80 | fsdosfsname01/Makefile |
---|
[42a22f08] | 81 | fsdosfswrite01/Makefile |
---|
[5877a10f] | 82 | fsdosfsformat01/Makefile |
---|
[361a400] | 83 | fsfseeko01/Makefile |
---|
[86ef0df] | 84 | fsdosfssync01/Makefile |
---|
[6fed43e] | 85 | imfs_fserror/Makefile |
---|
| 86 | imfs_fslink/Makefile |
---|
| 87 | imfs_fspatheval/Makefile |
---|
| 88 | imfs_fspermission/Makefile |
---|
| 89 | imfs_fsrdwr/Makefile |
---|
| 90 | imfs_fssymlink/Makefile |
---|
| 91 | imfs_fstime/Makefile |
---|
| 92 | mdosfs_fserror/Makefile |
---|
| 93 | mdosfs_fspatheval/Makefile |
---|
| 94 | mdosfs_fsrdwr/Makefile |
---|
[56f22600] | 95 | mdosfs_fsstatvfs/Makefile |
---|
[6fed43e] | 96 | mdosfs_fstime/Makefile |
---|
| 97 | mimfs_fserror/Makefile |
---|
| 98 | mimfs_fslink/Makefile |
---|
| 99 | mimfs_fspatheval/Makefile |
---|
| 100 | mimfs_fspermission/Makefile |
---|
| 101 | mimfs_fsrdwr/Makefile |
---|
| 102 | mimfs_fssymlink/Makefile |
---|
| 103 | mimfs_fstime/Makefile |
---|
| 104 | mrfs_fserror/Makefile |
---|
| 105 | mrfs_fslink/Makefile |
---|
| 106 | mrfs_fspatheval/Makefile |
---|
| 107 | mrfs_fspermission/Makefile |
---|
| 108 | mrfs_fsrdwr/Makefile |
---|
| 109 | mrfs_fssymlink/Makefile |
---|
| 110 | mrfs_fstime/Makefile |
---|
[37b18d21] | 111 | mrfs_fsfpathconf/Makefile |
---|
[8f1b6cde] | 112 | fsrfsbitmap01/Makefile |
---|
[3b7c123] | 113 | fsnofs01/Makefile |
---|
[c5392ef9] | 114 | fsimfsgeneric01/Makefile |
---|
[113944fa] | 115 | fsbdpart01/Makefile |
---|
[7336d4af] | 116 | |
---|
[a2f875f] | 117 | ]) |
---|
| 118 | AC_OUTPUT |
---|