configure.in: Clean up thread file logic.
* configure.in: Clean up thread file logic. * configure: Regenerate. From-SVN: r72191
This commit is contained in:
parent
905df1fb20
commit
c2e494a899
|
@ -1,3 +1,8 @@
|
|||
2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
|
||||
|
||||
* configure.in: Clean up thread file logic.
|
||||
* configure: Regenerate.
|
||||
|
||||
2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
* config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -478,27 +478,8 @@ AC_ARG_ENABLE(threads,
|
|||
[ --enable-threads enable thread usage for target GCC
|
||||
--enable-threads=LIB use LIB thread package for target GCC],,
|
||||
enable_threads='')
|
||||
|
||||
# Save in case it gets overwritten in config.gcc
|
||||
enable_threads_flag=$enable_threads
|
||||
# Check if a valid thread package
|
||||
case x${enable_threads_flag} in
|
||||
x | xno)
|
||||
# No threads
|
||||
target_thread_file='single'
|
||||
;;
|
||||
xyes)
|
||||
# default
|
||||
target_thread_file=''
|
||||
;;
|
||||
xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
|
||||
xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix | xgnat)
|
||||
target_thread_file=$enable_threads_flag
|
||||
;;
|
||||
*)
|
||||
echo "$enable_threads is an unknown thread package" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_ARG_ENABLE(objc-gc,
|
||||
[ --enable-objc-gc enable the use of Boehm's garbage collector with
|
||||
|
@ -1079,12 +1060,30 @@ if test "$host_xm_file" != "$build_xm_file"; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if test x$thread_file = x; then
|
||||
if test x$target_thread_file != x; then
|
||||
thread_file=$target_thread_file
|
||||
else
|
||||
thread_file='single'
|
||||
fi
|
||||
# Check if a valid thread package
|
||||
case ${enable_threads_flag} in
|
||||
"" | no)
|
||||
# No threads
|
||||
target_thread_file='single'
|
||||
;;
|
||||
yes)
|
||||
# default
|
||||
target_thread_file='single'
|
||||
;;
|
||||
decosf1 | irix | mach | os2 | posix | pthreads | single | \
|
||||
solaris | win32 | dce | rtems| vxworks | aix | gnat)
|
||||
target_thread_file=${enable_threads_flag}
|
||||
;;
|
||||
*)
|
||||
echo "${enable_threads_flag} is an unknown thread package" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
if test x${thread_file} = x; then
|
||||
# No thread file set by target-specific clauses in config.gcc,
|
||||
# so use file chosen by default logic above
|
||||
thread_file=${target_thread_file}
|
||||
fi
|
||||
|
||||
if test x$enable___cxa_atexit = xyes || \
|
||||
|
|
Loading…
Reference in New Issue