diff options
| author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-26 04:29:57 +0000 |
|---|---|---|
| committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-26 04:29:57 +0000 |
| commit | be4b82e423ecd9364b512680e3eba19aae364567 (patch) | |
| tree | cfe7e774a05729a32ab0ad7c058831659561bc6f /libjava/configure.in | |
| parent | 746ba840b03e1fd0945e18126359ecf5c83c5355 (diff) | |
| download | ppe42-gcc-be4b82e423ecd9364b512680e3eba19aae364567.tar.gz ppe42-gcc-be4b82e423ecd9364b512680e3eba19aae364567.zip | |
* configure.in: Obtain THREADS with `gcc -v'.
* configure: Rebuilt.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41571 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/configure.in')
| -rw-r--r-- | libjava/configure.in | 41 |
1 files changed, 3 insertions, 38 deletions
diff --git a/libjava/configure.in b/libjava/configure.in index 13dc9607dc5..e0907d3e700 100644 --- a/libjava/configure.in +++ b/libjava/configure.in @@ -279,43 +279,9 @@ AC_SUBST(GCTESTSPEC) AC_LINK_FILES(include/$GCHDR, include/java-gc.h) -dnl Note that this code is kept in sync with similar code in gcc/configure.in. -dnl In particular both packages must make the same decision about which -dnl thread package to use. -AC_MSG_CHECKING([for threads package to use]) -AC_ARG_ENABLE(threads, [ --enable-threads=TYPE choose threading package], - THREADS=$enableval, - dnl FIXME: figure out native threads to use here. - THREADS=no) - -if test "$THREADS" = yes; then - case "$host" in - *-*-vxworks*) - THREADS=vxworks - ;; - *-*-linux*) - # FIXME: this isn't correct in all cases. - THREADS=posix - ;; - *-*-win*) - THREADS=win32 - ;; - *-*-irix*) - # FIXME: for now, choose POSIX, because we implement that. - # Later, choose irix threads. - THREADS=posix - ;; - *-*-solaris*) - # FIXME: for now, choose POSIX, because we implement that. - # Later, choose solaris threads. - THREADS=posix - ;; - *) - # For now. - THREADS=none - ;; - esac -fi +AC_MSG_CHECKING([for thread model used by GCC]) +THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` +AC_MSG_RESULT([$THREADS]) case "$THREADS" in no | none | single) @@ -336,7 +302,6 @@ case "$THREADS" in AC_MSG_ERROR($THREADS is an unknown thread package) ;; esac -AC_MSG_RESULT($THREADS) THREADLIBS= THREADINCS= |

