Commit 8bb915b6 by Nathanael Nerode

configure.ac: Rearrange some threading code for clarity; add section comment.

	* configure.ac: Rearrange some threading code for clarity;
	add section comment.
	* configure: Regenerate.

From-SVN: r78678
parent 4ee31f1e
2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.ac: Rearrange some threading code for clarity;
add section comment.
* configure: Regenerate.
2004-02-29 Kazu Hirata <kazu@cs.umass.edu> 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
* passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
......
...@@ -1118,6 +1118,10 @@ if test "$host_xm_file" != "$build_xm_file"; then ...@@ -1118,6 +1118,10 @@ if test "$host_xm_file" != "$build_xm_file"; then
fi fi
fi fi
# ---------
# Threading
# ---------
# Check if a valid thread package # Check if a valid thread package
case ${enable_threads_flag} in case ${enable_threads_flag} in
"" | no) "" | no)
...@@ -1144,6 +1148,19 @@ if test x${thread_file} = x; then ...@@ -1144,6 +1148,19 @@ if test x${thread_file} = x; then
thread_file=${target_thread_file} thread_file=${target_thread_file}
fi fi
# Make gthr-default.h if we have a thread file.
gthread_flags=
if test $thread_file != single; then
rm -f gthr-default.h
echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
gthread_flags=-DHAVE_GTHR_DEFAULT
fi
AC_SUBST(gthread_flags)
# --------
# UNSORTED
# --------
if test x$enable___cxa_atexit = xyes || \ if test x$enable___cxa_atexit = xyes || \
test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
AC_CHECK_FUNC(__cxa_atexit, AC_CHECK_FUNC(__cxa_atexit,
...@@ -2761,15 +2778,6 @@ The following requested languages were not found:${missing_languages} ...@@ -2761,15 +2778,6 @@ The following requested languages were not found:${missing_languages}
The following languages were available: c${found_languages}]) The following languages were available: c${found_languages}])
fi fi
# Make gthr-default.h if we have a thread file.
gthread_flags=
if test $thread_file != single; then
rm -f gthr-default.h
echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
gthread_flags=-DHAVE_GTHR_DEFAULT
fi
AC_SUBST(gthread_flags)
# Find out what GC implementation we want, or may, use. # Find out what GC implementation we want, or may, use.
AC_ARG_WITH(gc, AC_ARG_WITH(gc,
[ --with-gc={page,zone} choose the garbage collection mechanism to use [ --with-gc={page,zone} choose the garbage collection mechanism to use
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment