diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-09-03 11:26:36 +0000 |
---|---|---|
committer | Sebastian Huber <sh@gcc.gnu.org> | 2015-09-03 11:26:36 +0000 |
commit | 13c41b2e3e0cf6996ea2d49e0557814607fe2f59 (patch) | |
tree | b8cc0ec94f547152e58b42f867351520f7d48307 /libgomp/configure | |
parent | 7892ec670c1c5d1e4d911ab41903a6af72bc85d2 (diff) | |
download | gcc-13c41b2e3e0cf6996ea2d49e0557814607fe2f59.zip gcc-13c41b2e3e0cf6996ea2d49e0557814607fe2f59.tar.gz gcc-13c41b2e3e0cf6996ea2d49e0557814607fe2f59.tar.bz2 |
[gomp] Add RTEMS configuration
libgomp/ChangeLog
* config/rtems/bar.c: New.
* config/rtems/bar.h: Likewise.
* config/rtems/mutex.c: Likewise.
* config/rtems/mutex.h: Likewise.
* config/rtems/sem.c: Likewise.
* config/rtems/sem.h: Likewise.
* configure.ac (*-*-rtems*): Check that Newlib provides a proper
<sys/lock.h> header file.
* configure.tgt (*-*-rtems*): Enable RTEMS configuration if
supported by Newlib.
* configure: Regenerate.
From-SVN: r227440
Diffstat (limited to 'libgomp/configure')
-rwxr-xr-x | libgomp/configure | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libgomp/configure b/libgomp/configure index c93e877..74d4e82 100755 --- a/libgomp/configure +++ b/libgomp/configure @@ -15340,6 +15340,23 @@ $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h ;; esac +# RTEMS specific checks +case "$host" in + *-*-rtems*) + ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h> +" +if test "x$ac_cv_type_struct__Mutex_Control" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT__MUTEX_CONTROL 1 +_ACEOF + + +fi + + ;; +esac + # Check whether --enable-linux-futex was given. if test "${enable_linux_futex+set}" = set; then : enableval=$enable_linux_futex; |