diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-02-07 02:02:31 +0100 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2006-02-07 01:02:31 +0000 |
commit | 5fd231d2c77a4f400a0caf4cced86b253495bc07 (patch) | |
tree | 743d9a439c476b1312d603f747bf02782d271c50 /boehm-gc/configure | |
parent | 003fe0b3e3cc8ade75c07a288084c58d6a1b0b4b (diff) | |
download | gcc-5fd231d2c77a4f400a0caf4cced86b253495bc07.zip gcc-5fd231d2c77a4f400a0caf4cced86b253495bc07.tar.gz gcc-5fd231d2c77a4f400a0caf4cced86b253495bc07.tar.bz2 |
gc_ext_config.h.in: Added GC_PTHREAD_SYM_VERSION.
2006-02-06 Jakub Jelinek <jakub@redhat.com>
Anthony Green <green@redhat.com>
Tom Tromey <tromey@redhat.com>
* include/gc_ext_config.h.in: Added GC_PTHREAD_SYM_VERSION.
* include/gc_config.h.in: Rebuilt.
* include/gc_pthread_redirects.h (pthread_create): Conditionally
define.
* pthread_support.c (pthread_create_): New global.
(constr): New function.
(pthread_create): Conditionally renamed.
* configure: Rebuilt.
* configure.ac (GC_PTHREAD_SYM_VERSION): Define.
Co-Authored-By: Anthony Green <green@redhat.com>
Co-Authored-By: Tom Tromey <tromey@redhat.com>
From-SVN: r110682
Diffstat (limited to 'boehm-gc/configure')
-rwxr-xr-x | boehm-gc/configure | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/boehm-gc/configure b/boehm-gc/configure index a4aeaa8..e0223dd 100755 --- a/boehm-gc/configure +++ b/boehm-gc/configure @@ -6627,6 +6627,29 @@ _ACEOF fi +symver= +case "$target" in + *-*-linux* ) + cat > conftest.c <<EOF +#include <pthread.h> +void *tf (void *arg) { (void) arg; return NULL; } +int main (void) { pthread_t th; pthread_create (&th, NULL, tf, NULL); return 0; } +EOF + if $CC $CFLAGS -pthread -o conftest conftest.c > /dev/null 2>&1; then + symver=`readelf -s conftest 2> /dev/null | sed -n '/UND pthread_create@/{s/^.*@//;s/ .*$//;p;q}'` + fi + rm -f conftest conftest.c + ;; +esac +if test -n "$symver"; then + +cat >>confdefs.h <<_ACEOF +#define GC_PTHREAD_SYM_VERSION "$symver" +_ACEOF + +fi + + if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then toolexecdir='$(exec_prefix)/$(target_noncanonical)' |