Commit a851212a by Jim Wilson Committed by Jim Wilson

Fix build/host/target configure in settting of thread_file.

	* configure.in (thread_file): Rename uses before main loop to
	target_thread_file.  Initialize to empty in main loop.  Set thread_file
	to target_thread_file after main loop if not set.
	* configure: Rebuild.

From-SVN: r17423
parent f62aa8f3
Mon Jan 19 11:15:38 1998 Jim Wilson <wilson@cygnus.com> Mon Jan 19 11:15:38 1998 Jim Wilson <wilson@cygnus.com>
* configure.in (thread_file): Rename uses before main loop to
target_thread_file. Initialize to empty in main loop. Set thread_file
to target_thread_file after main loop if not set.
* configure: Rebuild.
* genattrtab.c (find_and_mark_used_attributes): Handle CONST_INT. * genattrtab.c (find_and_mark_used_attributes): Handle CONST_INT.
(add_values_to_cover): Revert last change (which had no ChangeLog (add_values_to_cover): Revert last change (which had no ChangeLog
entry). entry).
......
...@@ -656,15 +656,15 @@ fi ...@@ -656,15 +656,15 @@ fi
case x${enable_threads} in case x${enable_threads} in
x | xno) x | xno)
# No threads # No threads
thread_file='single' target_thread_file='single'
;; ;;
xyes) xyes)
# default # default
thread_file='' target_thread_file=''
;; ;;
xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
xsolaris | xwin32 | xdce) xsolaris | xwin32 | xdce)
thread_file=$enable_threads target_thread_file=$enable_threads
;; ;;
*) *)
echo "$enable_threads is an unknown thread package" 1>&2 echo "$enable_threads is an unknown thread package" 1>&2
...@@ -3152,6 +3152,8 @@ for machine in $build $host $target; do ...@@ -3152,6 +3152,8 @@ for machine in $build $host $target; do
# Set this if the build machine requires executables to have a # Set this if the build machine requires executables to have a
# file name suffix. # file name suffix.
exeext= exeext=
# Set this to control which thread package will be used.
thread_file=
# Set default cpu_type, tm_file and xm_file so it can be updated in # Set default cpu_type, tm_file and xm_file so it can be updated in
# each machine entry. # each machine entry.
...@@ -5709,8 +5711,12 @@ if [ "$host_xm_file" != "$build_xm_file" ]; then ...@@ -5709,8 +5711,12 @@ if [ "$host_xm_file" != "$build_xm_file" ]; then
fi fi
fi fi
if [ x$thread_file = x ] if [ x$thread_file = x ]; then
then thread_file='single' if [ x$target_thread_file != x ]; then
thread_file=$target_thread_file
else
thread_file='single'
fi
fi fi
# Set up the header files. # Set up the header files.
......
...@@ -107,15 +107,15 @@ enable_threads='') ...@@ -107,15 +107,15 @@ enable_threads='')
case x${enable_threads} in case x${enable_threads} in
x | xno) x | xno)
# No threads # No threads
thread_file='single' target_thread_file='single'
;; ;;
xyes) xyes)
# default # default
thread_file='' target_thread_file=''
;; ;;
xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
xsolaris | xwin32 | xdce) xsolaris | xwin32 | xdce)
thread_file=$enable_threads target_thread_file=$enable_threads
;; ;;
*) *)
echo "$enable_threads is an unknown thread package" 1>&2 echo "$enable_threads is an unknown thread package" 1>&2
...@@ -252,6 +252,8 @@ for machine in $build $host $target; do ...@@ -252,6 +252,8 @@ for machine in $build $host $target; do
# Set this if the build machine requires executables to have a # Set this if the build machine requires executables to have a
# file name suffix. # file name suffix.
exeext= exeext=
# Set this to control which thread package will be used.
thread_file=
# Set default cpu_type, tm_file and xm_file so it can be updated in # Set default cpu_type, tm_file and xm_file so it can be updated in
# each machine entry. # each machine entry.
...@@ -2809,8 +2811,12 @@ if [[ "$host_xm_file" != "$build_xm_file" ]]; then ...@@ -2809,8 +2811,12 @@ if [[ "$host_xm_file" != "$build_xm_file" ]]; then
fi fi
fi fi
if [[ x$thread_file = x ]] if [[ x$thread_file = x ]]; then
then thread_file='single' if [[ x$target_thread_file != x ]]; then
thread_file=$target_thread_file
else
thread_file='single'
fi
fi fi
# Set up the header files. # Set up the header files.
......
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