]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Add file left out of prior commit, and regenerate the proper configure script
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
11a67599 3# Generated by GNU Autoconf 2.61.
671aa708 4#
11a67599
ZW
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
671aa708
NN
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
1c710c3c
DJ
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
11a67599
ZW
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
11a67599
ZW
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
1c710c3c 51fi
1c710c3c
DJ
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
11a67599
ZW
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
1c710c3c 94# Work around bugs in pre-3.0 UWIN ksh.
11a67599
ZW
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
1c710c3c
DJ
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
11a67599 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1c710c3c
DJ
112 fi
113done
114
115# Required to use basename.
11a67599
ZW
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
118 as_expr=expr
119else
120 as_expr=false
121fi
122
11a67599 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
11a67599 131as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
11a67599 134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1c710c3c 135echo X/"$0" |
11a67599
ZW
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
1c710c3c 149
11a67599
ZW
150# CDPATH.
151$as_unset CDPATH
1c710c3c 152
1c710c3c 153
11a67599
ZW
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
1c710c3c
DJ
159fi
160
11a67599
ZW
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
1c710c3c 177
11a67599
ZW
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
1c710c3c 185
11a67599
ZW
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
1c710c3c
DJ
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
11a67599 226 case $as_dir in
1c710c3c 227 /*)
11a67599
ZW
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
1c710c3c
DJ
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
1c710c3c 330 test "x$as_lineno_1" != "x$as_lineno_2" &&
11a67599
ZW
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1c710c3c
DJ
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
11a67599
ZW
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
1c710c3c 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11a67599
ZW
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
1c710c3c 442 sed '
11a67599
ZW
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
1c710c3c 447 N
11a67599
ZW
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 450 t loop
11a67599 451 s/-\n.*//
1c710c3c 452 ' >$as_me.lineno &&
11a67599 453 chmod +x "$as_me.lineno" ||
1c710c3c
DJ
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
11a67599
ZW
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
1c710c3c
DJ
461 # Exit status is that of the last command.
462 exit
463}
464
465
11a67599
ZW
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
1c710c3c
DJ
481esac
482
11a67599
ZW
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
11a67599
ZW
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
1c710c3c
DJ
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
11a67599
ZW
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1c710c3c 505 as_ln_s='cp -p'
1c710c3c
DJ
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
11a67599
ZW
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
11a67599
ZW
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
0b0dc272 543
1c710c3c
DJ
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
1c710c3c 551
11a67599 552exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
1c710c3c
DJ
559#
560# Initializations.
561#
671aa708 562ac_default_prefix=/usr/local
11a67599 563ac_clean_files=
1c710c3c 564ac_config_libobj_dir=.
11a67599 565LIBOBJS=
1c710c3c
DJ
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
1c710c3c
DJ
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="move-if-change"
11a67599
ZW
580ac_subst_vars='SHELL
581PATH_SEPARATOR
582PACKAGE_NAME
583PACKAGE_TARNAME
584PACKAGE_VERSION
585PACKAGE_STRING
586PACKAGE_BUGREPORT
587exec_prefix
588prefix
589program_transform_name
590bindir
591sbindir
592libexecdir
593datarootdir
594datadir
595sysconfdir
596sharedstatedir
597localstatedir
598includedir
599oldincludedir
600docdir
601infodir
602htmldir
603dvidir
604pdfdir
605psdir
606libdir
607localedir
608mandir
609DEFS
610ECHO_C
611ECHO_N
612ECHO_T
613LIBS
614build_alias
615host_alias
616target_alias
617build
618build_cpu
619build_vendor
620build_os
621build_noncanonical
622host_noncanonical
623target_noncanonical
624host
625host_cpu
626host_vendor
627host_os
628target
629target_cpu
630target_vendor
631target_os
632INSTALL_PROGRAM
633INSTALL_SCRIPT
634INSTALL_DATA
635LN
636LN_S
637TOPLEVEL_CONFIGURE_ARGUMENTS
638build_libsubdir
639build_subdir
640host_subdir
641target_subdir
642CC
643CFLAGS
644LDFLAGS
645CPPFLAGS
646ac_ct_CC
647EXEEXT
648OBJEXT
649CXX
650CXXFLAGS
651ac_ct_CXX
652GNATBIND
653GNATMAKE
654do_compare
655gmplibs
656gmpinc
657stage1_languages
658SYSROOT_CFLAGS_FOR_TARGET
659RPATH_ENVVAR
660tooldir
661build_tooldir
662CONFIGURE_GDB_TK
663GDB_TK
664INSTALL_GDB_TK
665build_configargs
666build_configdirs
667host_configargs
668configdirs
669target_configargs
670CC_FOR_BUILD
671config_shell
672YACC
673BISON
674M4
675LEX
676FLEX
677MAKEINFO
678EXPECT
679RUNTEST
680AR
681AS
682DLLTOOL
683LD
684LIPO
685NM
686RANLIB
687STRIP
688WINDRES
689OBJCOPY
690OBJDUMP
691CFLAGS_FOR_BUILD
692CC_FOR_TARGET
693CXX_FOR_TARGET
694GCC_FOR_TARGET
695GCJ_FOR_TARGET
696GFORTRAN_FOR_TARGET
697AR_FOR_TARGET
698AS_FOR_TARGET
699DLLTOOL_FOR_TARGET
700LD_FOR_TARGET
701LIPO_FOR_TARGET
702NM_FOR_TARGET
703OBJDUMP_FOR_TARGET
704RANLIB_FOR_TARGET
705STRIP_FOR_TARGET
706WINDRES_FOR_TARGET
707RAW_CXX_FOR_TARGET
708FLAGS_FOR_TARGET
709COMPILER_AS_FOR_TARGET
710COMPILER_LD_FOR_TARGET
711COMPILER_NM_FOR_TARGET
712MAINTAINER_MODE_TRUE
713MAINTAINER_MODE_FALSE
714MAINT
715stage1_cflags
716stage1_checking
717stage2_werror_flag
718LIBOBJS
719LTLIBOBJS'
720ac_subst_files='serialization_dependencies
721host_makefile_frag
722target_makefile_frag
723alphaieee_frag
724ospace_frag'
725 ac_precious_vars='build_alias
726host_alias
727target_alias
728CC
729CFLAGS
730LDFLAGS
731LIBS
732CPPFLAGS
733CXX
734CXXFLAGS
735CCC
736AR
737AS
738DLLTOOL
739LD
740LIPO
741NM
742RANLIB
743STRIP
744WINDRES
745OBJCOPY
746OBJDUMP
747CC_FOR_TARGET
748CXX_FOR_TARGET
749GCC_FOR_TARGET
750GCJ_FOR_TARGET
751GFORTRAN_FOR_TARGET
752AR_FOR_TARGET
753AS_FOR_TARGET
754DLLTOOL_FOR_TARGET
755LD_FOR_TARGET
756LIPO_FOR_TARGET
757NM_FOR_TARGET
758OBJDUMP_FOR_TARGET
759RANLIB_FOR_TARGET
760STRIP_FOR_TARGET
761WINDRES_FOR_TARGET'
762
671aa708
NN
763
764# Initialize some variables set by options.
1c710c3c
DJ
765ac_init_help=
766ac_init_version=false
671aa708
NN
767# The variables have the same names as the options, with
768# dashes changed to underlines.
1c710c3c 769cache_file=/dev/null
671aa708 770exec_prefix=NONE
671aa708 771no_create=
671aa708
NN
772no_recursion=
773prefix=NONE
774program_prefix=NONE
775program_suffix=NONE
776program_transform_name=s,x,x,
777silent=
778site=
779srcdir=
671aa708
NN
780verbose=
781x_includes=NONE
782x_libraries=NONE
1c710c3c
DJ
783
784# Installation directory options.
785# These are left unexpanded so users can "make install exec_prefix=/foo"
786# and all the variables that are supposed to be based on exec_prefix
787# by default will actually change.
788# Use braces instead of parens because sh, perl, etc. also accept them.
11a67599 789# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
790bindir='${exec_prefix}/bin'
791sbindir='${exec_prefix}/sbin'
792libexecdir='${exec_prefix}/libexec'
11a67599
ZW
793datarootdir='${prefix}/share'
794datadir='${datarootdir}'
671aa708
NN
795sysconfdir='${prefix}/etc'
796sharedstatedir='${prefix}/com'
797localstatedir='${prefix}/var'
671aa708
NN
798includedir='${prefix}/include'
799oldincludedir='/usr/include'
11a67599
ZW
800docdir='${datarootdir}/doc/${PACKAGE}'
801infodir='${datarootdir}/info'
802htmldir='${docdir}'
803dvidir='${docdir}'
804pdfdir='${docdir}'
805psdir='${docdir}'
806libdir='${exec_prefix}/lib'
807localedir='${datarootdir}/locale'
808mandir='${datarootdir}/man'
79c06341 809
671aa708 810ac_prev=
11a67599 811ac_dashdash=
671aa708
NN
812for ac_option
813do
671aa708
NN
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
11a67599 816 eval $ac_prev=\$ac_option
671aa708
NN
817 ac_prev=
818 continue
819 fi
79c06341 820
11a67599
ZW
821 case $ac_option in
822 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 *) ac_optarg=yes ;;
824 esac
671aa708
NN
825
826 # Accept the important Cygnus configure options, so we can diagnose typos.
827
11a67599
ZW
828 case $ac_dashdash$ac_option in
829 --)
830 ac_dashdash=yes ;;
671aa708
NN
831
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 ac_prev=bindir ;;
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 835 bindir=$ac_optarg ;;
671aa708
NN
836
837 -build | --build | --buil | --bui | --bu)
1c710c3c 838 ac_prev=build_alias ;;
671aa708 839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 840 build_alias=$ac_optarg ;;
671aa708
NN
841
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
847 cache_file=$ac_optarg ;;
848
849 --config-cache | -C)
850 cache_file=config.cache ;;
671aa708 851
11a67599 852 -datadir | --datadir | --datadi | --datad)
671aa708 853 ac_prev=datadir ;;
11a67599 854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 855 datadir=$ac_optarg ;;
671aa708 856
11a67599
ZW
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
863
671aa708 864 -disable-* | --disable-*)
1c710c3c 865 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 866 # Reject names that are not valid shell variable names.
11a67599 867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
11a67599
ZW
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=no ;;
872
873 -docdir | --docdir | --docdi | --doc | --do)
874 ac_prev=docdir ;;
875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
876 docdir=$ac_optarg ;;
877
878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 ac_prev=dvidir ;;
880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
881 dvidir=$ac_optarg ;;
671aa708
NN
882
883 -enable-* | --enable-*)
1c710c3c 884 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 885 # Reject names that are not valid shell variable names.
11a67599 886 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
887 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888 { (exit 1); exit 1; }; }
11a67599
ZW
889 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890 eval enable_$ac_feature=\$ac_optarg ;;
671aa708
NN
891
892 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
893 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
894 | --exec | --exe | --ex)
895 ac_prev=exec_prefix ;;
896 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
897 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
898 | --exec=* | --exe=* | --ex=*)
1c710c3c 899 exec_prefix=$ac_optarg ;;
671aa708
NN
900
901 -gas | --gas | --ga | --g)
902 # Obsolete; use --with-gas.
903 with_gas=yes ;;
904
1c710c3c
DJ
905 -help | --help | --hel | --he | -h)
906 ac_init_help=long ;;
907 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
908 ac_init_help=recursive ;;
909 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
910 ac_init_help=short ;;
671aa708
NN
911
912 -host | --host | --hos | --ho)
1c710c3c 913 ac_prev=host_alias ;;
671aa708 914 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 915 host_alias=$ac_optarg ;;
671aa708 916
11a67599
ZW
917 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918 ac_prev=htmldir ;;
919 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920 | --ht=*)
921 htmldir=$ac_optarg ;;
922
671aa708
NN
923 -includedir | --includedir | --includedi | --included | --include \
924 | --includ | --inclu | --incl | --inc)
925 ac_prev=includedir ;;
926 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
927 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 928 includedir=$ac_optarg ;;
671aa708
NN
929
930 -infodir | --infodir | --infodi | --infod | --info | --inf)
931 ac_prev=infodir ;;
932 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 933 infodir=$ac_optarg ;;
671aa708
NN
934
935 -libdir | --libdir | --libdi | --libd)
936 ac_prev=libdir ;;
937 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 938 libdir=$ac_optarg ;;
671aa708
NN
939
940 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
941 | --libexe | --libex | --libe)
942 ac_prev=libexecdir ;;
943 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
944 | --libexe=* | --libex=* | --libe=*)
1c710c3c 945 libexecdir=$ac_optarg ;;
671aa708 946
11a67599
ZW
947 -localedir | --localedir | --localedi | --localed | --locale)
948 ac_prev=localedir ;;
949 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950 localedir=$ac_optarg ;;
951
671aa708 952 -localstatedir | --localstatedir | --localstatedi | --localstated \
11a67599 953 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
954 ac_prev=localstatedir ;;
955 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
11a67599 956 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 957 localstatedir=$ac_optarg ;;
671aa708
NN
958
959 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960 ac_prev=mandir ;;
961 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 962 mandir=$ac_optarg ;;
671aa708
NN
963
964 -nfp | --nfp | --nf)
965 # Obsolete; use --without-fp.
966 with_fp=no ;;
967
968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 969 | --no-cr | --no-c | -n)
671aa708
NN
970 no_create=yes ;;
971
972 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
973 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974 no_recursion=yes ;;
975
976 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
977 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
978 | --oldin | --oldi | --old | --ol | --o)
979 ac_prev=oldincludedir ;;
980 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
981 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
982 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 983 oldincludedir=$ac_optarg ;;
671aa708
NN
984
985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986 ac_prev=prefix ;;
987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 988 prefix=$ac_optarg ;;
671aa708
NN
989
990 -program-prefix | --program-prefix | --program-prefi | --program-pref \
991 | --program-pre | --program-pr | --program-p)
992 ac_prev=program_prefix ;;
993 -program-prefix=* | --program-prefix=* | --program-prefi=* \
994 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 995 program_prefix=$ac_optarg ;;
671aa708
NN
996
997 -program-suffix | --program-suffix | --program-suffi | --program-suff \
998 | --program-suf | --program-su | --program-s)
999 ac_prev=program_suffix ;;
1000 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1001 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1002 program_suffix=$ac_optarg ;;
671aa708
NN
1003
1004 -program-transform-name | --program-transform-name \
1005 | --program-transform-nam | --program-transform-na \
1006 | --program-transform-n | --program-transform- \
1007 | --program-transform | --program-transfor \
1008 | --program-transfo | --program-transf \
1009 | --program-trans | --program-tran \
1010 | --progr-tra | --program-tr | --program-t)
1011 ac_prev=program_transform_name ;;
1012 -program-transform-name=* | --program-transform-name=* \
1013 | --program-transform-nam=* | --program-transform-na=* \
1014 | --program-transform-n=* | --program-transform-=* \
1015 | --program-transform=* | --program-transfor=* \
1016 | --program-transfo=* | --program-transf=* \
1017 | --program-trans=* | --program-tran=* \
1018 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1019 program_transform_name=$ac_optarg ;;
671aa708 1020
11a67599
ZW
1021 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022 ac_prev=pdfdir ;;
1023 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024 pdfdir=$ac_optarg ;;
1025
1026 -psdir | --psdir | --psdi | --psd | --ps)
1027 ac_prev=psdir ;;
1028 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029 psdir=$ac_optarg ;;
1030
671aa708
NN
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1033 silent=yes ;;
1034
1035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036 ac_prev=sbindir ;;
1037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038 | --sbi=* | --sb=*)
1c710c3c 1039 sbindir=$ac_optarg ;;
671aa708
NN
1040
1041 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043 | --sharedst | --shareds | --shared | --share | --shar \
1044 | --sha | --sh)
1045 ac_prev=sharedstatedir ;;
1046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049 | --sha=* | --sh=*)
1c710c3c 1050 sharedstatedir=$ac_optarg ;;
671aa708
NN
1051
1052 -site | --site | --sit)
1053 ac_prev=site ;;
1054 -site=* | --site=* | --sit=*)
1c710c3c 1055 site=$ac_optarg ;;
671aa708
NN
1056
1057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058 ac_prev=srcdir ;;
1059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1060 srcdir=$ac_optarg ;;
671aa708
NN
1061
1062 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063 | --syscon | --sysco | --sysc | --sys | --sy)
1064 ac_prev=sysconfdir ;;
1065 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1067 sysconfdir=$ac_optarg ;;
671aa708
NN
1068
1069 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1070 ac_prev=target_alias ;;
671aa708 1071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1072 target_alias=$ac_optarg ;;
671aa708
NN
1073
1074 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075 verbose=yes ;;
1076
1c710c3c
DJ
1077 -version | --version | --versio | --versi | --vers | -V)
1078 ac_init_version=: ;;
671aa708
NN
1079
1080 -with-* | --with-*)
1c710c3c 1081 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1082 # Reject names that are not valid shell variable names.
11a67599 1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
11a67599
ZW
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=\$ac_optarg ;;
671aa708
NN
1088
1089 -without-* | --without-*)
1c710c3c 1090 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1091 # Reject names that are not valid shell variable names.
11a67599 1092 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
1093 { echo "$as_me: error: invalid package name: $ac_package" >&2
1094 { (exit 1); exit 1; }; }
11a67599
ZW
1095 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1096 eval with_$ac_package=no ;;
671aa708
NN
1097
1098 --x)
1099 # Obsolete; use --with-x.
1100 with_x=yes ;;
1101
1102 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103 | --x-incl | --x-inc | --x-in | --x-i)
1104 ac_prev=x_includes ;;
1105 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1107 x_includes=$ac_optarg ;;
671aa708
NN
1108
1109 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111 ac_prev=x_libraries ;;
1112 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1114 x_libraries=$ac_optarg ;;
671aa708 1115
1c710c3c
DJ
1116 -*) { echo "$as_me: error: unrecognized option: $ac_option
1117Try \`$0 --help' for more information." >&2
1118 { (exit 1); exit 1; }; }
671aa708
NN
1119 ;;
1120
1c710c3c
DJ
1121 *=*)
1122 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1125 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1126 { (exit 1); exit 1; }; }
11a67599 1127 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1128 export $ac_envvar ;;
1129
671aa708 1130 *)
1c710c3c
DJ
1131 # FIXME: should be removed in autoconf 3.0.
1132 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1136 ;;
1137
1138 esac
1139done
1140
1141if test -n "$ac_prev"; then
1c710c3c
DJ
1142 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143 { echo "$as_me: error: missing argument to $ac_option" >&2
1144 { (exit 1); exit 1; }; }
af71363e 1145fi
af71363e 1146
11a67599
ZW
1147# Be sure to have absolute directory names.
1148for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149 datadir sysconfdir sharedstatedir localstatedir includedir \
1150 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151 libdir localedir mandir
671aa708 1152do
11a67599 1153 eval ac_val=\$$ac_var
1c710c3c 1154 case $ac_val in
11a67599
ZW
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1157 esac
11a67599
ZW
1158 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1159 { (exit 1); exit 1; }; }
671aa708
NN
1160done
1161
1c710c3c
DJ
1162# There might be people who depend on the old broken behavior: `$host'
1163# used to hold the argument of --host etc.
1164# FIXME: To remove some day.
1165build=$build_alias
1166host=$host_alias
1167target=$target_alias
0b0dc272 1168
1c710c3c
DJ
1169# FIXME: To remove some day.
1170if test "x$host_alias" != x; then
1171 if test "x$build_alias" = x; then
1172 cross_compiling=maybe
1173 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1174 If a cross compiler is detected then cross compile mode will be used." >&2
1175 elif test "x$build_alias" != "x$host_alias"; then
1176 cross_compiling=yes
1177 fi
1178fi
1179
1180ac_tool_prefix=
1181test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182
1183test "$silent" = yes && exec 6>/dev/null
671aa708 1184
671aa708 1185
11a67599
ZW
1186ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187ac_ls_di=`ls -di .` &&
1188ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 { echo "$as_me: error: Working directory cannot be determined" >&2
1190 { (exit 1); exit 1; }; }
1191test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 { echo "$as_me: error: pwd does not report name of working directory" >&2
1193 { (exit 1); exit 1; }; }
1194
1195
671aa708
NN
1196# Find the source files, if location was not specified.
1197if test -z "$srcdir"; then
1198 ac_srcdir_defaulted=yes
11a67599
ZW
1199 # Try the directory containing this script, then the parent directory.
1200 ac_confdir=`$as_dirname -- "$0" ||
1c710c3c
DJ
1201$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202 X"$0" : 'X\(//\)[^/]' \| \
1203 X"$0" : 'X\(//\)$' \| \
11a67599 1204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1c710c3c 1205echo X"$0" |
11a67599
ZW
1206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207 s//\1/
1208 q
1209 }
1210 /^X\(\/\/\)[^/].*/{
1211 s//\1/
1212 q
1213 }
1214 /^X\(\/\/\)$/{
1215 s//\1/
1216 q
1217 }
1218 /^X\(\/\).*/{
1219 s//\1/
1220 q
1221 }
1222 s/.*/./; q'`
671aa708 1223 srcdir=$ac_confdir
11a67599 1224 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1225 srcdir=..
1226 fi
1227else
1228 ac_srcdir_defaulted=no
1229fi
11a67599
ZW
1230if test ! -r "$srcdir/$ac_unique_file"; then
1231 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1232 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 1233 { (exit 1); exit 1; }; }
1c710c3c 1234fi
11a67599
ZW
1235ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236ac_abs_confdir=`(
1237 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1c710c3c 1238 { (exit 1); exit 1; }; }
11a67599
ZW
1239 pwd)`
1240# When building in place, set srcdir=.
1241if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 srcdir=.
1243fi
1244# Remove unnecessary trailing slashes from srcdir.
1245# Double slashes in file names in object file debugging info
1246# mess up M-x gdb in Emacs.
1247case $srcdir in
1248*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249esac
1250for ac_var in $ac_precious_vars; do
1251 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_env_${ac_var}_value=\$${ac_var}
1253 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255done
1c710c3c
DJ
1256
1257#
1258# Report the --help message.
1259#
1260if test "$ac_init_help" = "long"; then
1261 # Omit some internal or obsolete options to make the list less imposing.
1262 # This message is too long to be a string in the A/UX 3.1 sh.
1263 cat <<_ACEOF
1264\`configure' configures this package to adapt to many kinds of systems.
1265
1266Usage: $0 [OPTION]... [VAR=VALUE]...
1267
1268To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269VAR=VALUE. See below for descriptions of some of the useful variables.
1270
1271Defaults for the options are specified in brackets.
1272
1273Configuration:
1274 -h, --help display this help and exit
1275 --help=short display options specific to this package
1276 --help=recursive display the short help of all the included packages
1277 -V, --version display version information and exit
1278 -q, --quiet, --silent do not print \`checking...' messages
1279 --cache-file=FILE cache test results in FILE [disabled]
1280 -C, --config-cache alias for \`--cache-file=config.cache'
1281 -n, --no-create do not create output files
1282 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283
1c710c3c
DJ
1284Installation directories:
1285 --prefix=PREFIX install architecture-independent files in PREFIX
1286 [$ac_default_prefix]
1287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1288 [PREFIX]
1289
1290By default, \`make install' will install all the files in
1291\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293for instance \`--prefix=\$HOME'.
1294
1295For better control, use the options below.
1296
1297Fine tuning of the installation directories:
1298 --bindir=DIR user executables [EPREFIX/bin]
1299 --sbindir=DIR system admin executables [EPREFIX/sbin]
1300 --libexecdir=DIR program executables [EPREFIX/libexec]
1c710c3c
DJ
1301 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
11a67599
ZW
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
1312 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1317_ACEOF
1318
1319 cat <<\_ACEOF
1320
1321Program names:
1322 --program-prefix=PREFIX prepend PREFIX to installed program names
1323 --program-suffix=SUFFIX append SUFFIX to installed program names
1324 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1325
1326System types:
1327 --build=BUILD configure for building on BUILD [guessed]
1328 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1329 --target=TARGET configure for building compilers for TARGET [HOST]
1330_ACEOF
1331fi
1332
1333if test -n "$ac_init_help"; then
1334
1335 cat <<\_ACEOF
1336
1337Optional Features:
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --enable-libada Builds libada directory
1341 --enable-libssp Builds libssp directory
1342 --enable-stage1-languages=all choose additional languages to build during
1343 stage1. Mostly useful for compiler development.
1344 --enable-objc-gc enable the use of Boehm's garbage collector with
1345 the GNU Objective-C runtime.
1346 --enable-bootstrap Enable bootstrapping yes if native build
1347 --enable-serial-{host,target,build}-configure
1348 Force sequential configuration of
1349 sub-packages for the host, target or build
1350 machine, or all sub-packages
1351 --enable-maintainer-mode enable make rules and dependencies not useful
1352 (and sometimes confusing) to the casual installer
1353 --enable-stage1-checking=all choose additional checking for stage1
1354 of the compiler.
1355 --enable-werror enable -Werror in bootstrap stage2 and later
1356
1357Optional Packages:
1358 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1359 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1360 --with-build-libsubdir=DIR Directory where to find libraries for build system
1361 --with-mpfr-dir=PATH This option has been REMOVED
1362 --with-mpfr=PATH Specify prefix directory for installed MPFR package
1363 Equivalent to --with-mpfr-include=PATH/include
1364 plus --with-mpfr-lib=PATH/lib
1365 --with-mpfr-include=PATH
1366 Specify directory for installed MPFR include files
1367 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
1368 --with-gmp-dir=PATH This option has been REMOVED
1369 --with-gmp=PATH Specify prefix directory for the installed GMP package
1370 Equivalent to --with-gmp-include=PATH/include
1371 plus --with-gmp-lib=PATH/lib
1372 --with-gmp-include=PATH Specify directory for installed GMP include files
1373 --with-gmp-lib=PATH Specify the directory for the installed GMP library
1374 --with-build-sysroot=sysroot
1375 use sysroot as the system root during the build
1376 --with-build-time-tools=path
1377 use given path to find target tools during the build
1378 --with-datarootdir Use datarootdir as the data root directory.
1379 --with-docdir Install documentation in this directory.
9c4d2493 1380 --with-pdfdir Install pdf in this directory.
1c710c3c
DJ
1381 --with-htmldir Install html in this directory.
1382
1383Some influential environment variables:
1384 CC C compiler command
1385 CFLAGS C compiler flags
1386 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1387 nonstandard directory <lib dir>
11a67599
ZW
1388 LIBS libraries to pass to the linker, e.g. -l<library>
1389 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1390 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1391 CXX C++ compiler command
1392 CXXFLAGS C++ compiler flags
278a7a38
AO
1393 AR AR for the host
1394 AS AS for the host
1395 DLLTOOL DLLTOOL for the host
1396 LD LD for the host
1397 LIPO LIPO for the host
1398 NM NM for the host
1399 RANLIB RANLIB for the host
1400 STRIP STRIP for the host
1401 WINDRES WINDRES for the host
1402 OBJCOPY OBJCOPY for the host
1403 OBJDUMP OBJDUMP for the host
1404 CC_FOR_TARGET
1405 CC for the target
1406 CXX_FOR_TARGET
1407 CXX for the target
1408 GCC_FOR_TARGET
1409 GCC for the target
1410 GCJ_FOR_TARGET
1411 GCJ for the target
1412 GFORTRAN_FOR_TARGET
1413 GFORTRAN for the target
1414 AR_FOR_TARGET
1415 AR for the target
1416 AS_FOR_TARGET
1417 AS for the target
1418 DLLTOOL_FOR_TARGET
1419 DLLTOOL for the target
1420 LD_FOR_TARGET
1421 LD for the target
1422 LIPO_FOR_TARGET
1423 LIPO for the target
1424 NM_FOR_TARGET
1425 NM for the target
1426 OBJDUMP_FOR_TARGET
1427 OBJDUMP for the target
1428 RANLIB_FOR_TARGET
1429 RANLIB for the target
1430 STRIP_FOR_TARGET
1431 STRIP for the target
1432 WINDRES_FOR_TARGET
1433 WINDRES for the target
1c710c3c
DJ
1434
1435Use these variables to override the choices made by `configure' or to help
1436it to find libraries and programs with nonstandard names/locations.
1437
1438_ACEOF
11a67599 1439ac_status=$?
1c710c3c
DJ
1440fi
1441
1442if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1c710c3c 1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
11a67599 1445 test -d "$ac_dir" || continue
1c710c3c
DJ
1446 ac_builddir=.
1447
11a67599
ZW
1448case "$ac_dir" in
1449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450*)
1c710c3c 1451 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11a67599
ZW
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 esac ;;
1458esac
1459ac_abs_top_builddir=$ac_pwd
1460ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461# for backward compatibility:
1462ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1463
1464case $srcdir in
11a67599 1465 .) # We are building in place.
1c710c3c 1466 ac_srcdir=.
11a67599
ZW
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1470 ac_srcdir=$srcdir$ac_dir_suffix;
11a67599
ZW
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1473 *) # Relative name.
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 1477esac
11a67599
ZW
1478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c
DJ
1488 else
1489 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
11a67599
ZW
1490 fi || ac_status=$?
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1492 done
1493fi
1494
11a67599 1495test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1496if $ac_init_version; then
1497 cat <<\_ACEOF
11a67599
ZW
1498configure
1499generated by GNU Autoconf 2.61
1c710c3c 1500
11a67599
ZW
1501Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15022002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1c710c3c
DJ
1503This configure script is free software; the Free Software Foundation
1504gives unlimited permission to copy, distribute and modify it.
1505_ACEOF
11a67599 1506 exit
0b0dc272 1507fi
11a67599 1508cat >config.log <<_ACEOF
1c710c3c
DJ
1509This file contains any messages produced by compilers while
1510running configure, to aid debugging if configure makes a mistake.
1511
1512It was created by $as_me, which was
11a67599 1513generated by GNU Autoconf 2.61. Invocation command line was
1c710c3c
DJ
1514
1515 $ $0 $@
1516
1517_ACEOF
11a67599 1518exec 5>>config.log
1c710c3c
DJ
1519{
1520cat <<_ASUNAME
1521## --------- ##
1522## Platform. ##
1523## --------- ##
1524
1525hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1526uname -m = `(uname -m) 2>/dev/null || echo unknown`
1527uname -r = `(uname -r) 2>/dev/null || echo unknown`
1528uname -s = `(uname -s) 2>/dev/null || echo unknown`
1529uname -v = `(uname -v) 2>/dev/null || echo unknown`
1530
1531/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1532/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1533
1534/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1535/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1536/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
11a67599 1537/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1538/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1539/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1540/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1541
1542_ASUNAME
1543
1544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545for as_dir in $PATH
1546do
1547 IFS=$as_save_IFS
1548 test -z "$as_dir" && as_dir=.
1549 echo "PATH: $as_dir"
1550done
11a67599 1551IFS=$as_save_IFS
1c710c3c
DJ
1552
1553} >&5
1554
1555cat >&5 <<_ACEOF
1556
1557
1558## ----------- ##
1559## Core tests. ##
1560## ----------- ##
1561
1562_ACEOF
1563
1564
1565# Keep a trace of the command line.
1566# Strip out --no-create and --no-recursion so they do not pile up.
1567# Strip out --silent because we don't want to record it for future runs.
1568# Also quote any args containing shell meta-characters.
1569# Make two passes to allow for proper duplicate-argument suppression.
1570ac_configure_args=
1571ac_configure_args0=
1572ac_configure_args1=
1c710c3c
DJ
1573ac_must_keep_next=false
1574for ac_pass in 1 2
1575do
1576 for ac_arg
1577 do
1578 case $ac_arg in
1579 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1581 | -silent | --silent | --silen | --sile | --sil)
1582 continue ;;
11a67599 1583 *\'*)
1c710c3c
DJ
1584 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1585 esac
1586 case $ac_pass in
1587 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1588 2)
1589 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1590 if test $ac_must_keep_next = true; then
1591 ac_must_keep_next=false # Got value, back to normal.
1592 else
1593 case $ac_arg in
1594 *=* | --config-cache | -C | -disable-* | --disable-* \
1595 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1596 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1597 | -with-* | --with-* | -without-* | --without-* | --x)
1598 case "$ac_configure_args0 " in
1599 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1600 esac
1601 ;;
1602 -* ) ac_must_keep_next=true ;;
1603 esac
1604 fi
11a67599 1605 ac_configure_args="$ac_configure_args '$ac_arg'"
1c710c3c
DJ
1606 ;;
1607 esac
1608 done
1609done
1610$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1611$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1612
1613# When interrupted or exit'd, cleanup temporary files, and complete
1614# config.log. We remove comments because anyway the quotes in there
1615# would cause problems or look ugly.
11a67599
ZW
1616# WARNING: Use '\'' to represent an apostrophe within the trap.
1617# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1618trap 'exit_status=$?
1619 # Save into config.log some information that might help in debugging.
1620 {
1621 echo
1622
1623 cat <<\_ASBOX
1624## ---------------- ##
1625## Cache variables. ##
1626## ---------------- ##
1627_ASBOX
1628 echo
1629 # The following way of writing the cache mishandles newlines in values,
11a67599
ZW
1630(
1631 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1632 eval ac_val=\$$ac_var
1633 case $ac_val in #(
1634 *${as_nl}*)
1635 case $ac_var in #(
1636 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1637echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1638 esac
1639 case $ac_var in #(
1640 _ | IFS | as_nl) ;; #(
1641 *) $as_unset $ac_var ;;
1642 esac ;;
1643 esac
1644 done
1c710c3c 1645 (set) 2>&1 |
11a67599
ZW
1646 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1647 *${as_nl}ac_space=\ *)
1c710c3c 1648 sed -n \
11a67599
ZW
1649 "s/'\''/'\''\\\\'\'''\''/g;
1650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1651 ;; #(
1c710c3c 1652 *)
11a67599 1653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 1654 ;;
11a67599
ZW
1655 esac |
1656 sort
1657)
1c710c3c
DJ
1658 echo
1659
1660 cat <<\_ASBOX
1661## ----------------- ##
1662## Output variables. ##
1663## ----------------- ##
1664_ASBOX
1665 echo
1666 for ac_var in $ac_subst_vars
1667 do
11a67599
ZW
1668 eval ac_val=\$$ac_var
1669 case $ac_val in
1670 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671 esac
1672 echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1673 done | sort
1674 echo
1675
1676 if test -n "$ac_subst_files"; then
1677 cat <<\_ASBOX
11a67599
ZW
1678## ------------------- ##
1679## File substitutions. ##
1680## ------------------- ##
1c710c3c
DJ
1681_ASBOX
1682 echo
1683 for ac_var in $ac_subst_files
1684 do
11a67599
ZW
1685 eval ac_val=\$$ac_var
1686 case $ac_val in
1687 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688 esac
1689 echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1690 done | sort
1691 echo
1692 fi
1693
1694 if test -s confdefs.h; then
1695 cat <<\_ASBOX
1696## ----------- ##
1697## confdefs.h. ##
1698## ----------- ##
1699_ASBOX
1700 echo
11a67599 1701 cat confdefs.h
1c710c3c
DJ
1702 echo
1703 fi
1704 test "$ac_signal" != 0 &&
1705 echo "$as_me: caught signal $ac_signal"
1706 echo "$as_me: exit $exit_status"
1707 } >&5
11a67599
ZW
1708 rm -f core *.core core.conftest.* &&
1709 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1710 exit $exit_status
11a67599 1711' 0
1c710c3c
DJ
1712for ac_signal in 1 2 13 15; do
1713 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1714done
1715ac_signal=0
1716
1717# confdefs.h avoids OS command line length limits that DEFS can exceed.
11a67599 1718rm -f -r conftest* confdefs.h
1c710c3c
DJ
1719
1720# Predefined preprocessor variables.
1721
1722cat >>confdefs.h <<_ACEOF
1723#define PACKAGE_NAME "$PACKAGE_NAME"
1724_ACEOF
1725
1726
1727cat >>confdefs.h <<_ACEOF
1728#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1729_ACEOF
1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define PACKAGE_VERSION "$PACKAGE_VERSION"
1734_ACEOF
0b0dc272 1735
1c710c3c
DJ
1736
1737cat >>confdefs.h <<_ACEOF
1738#define PACKAGE_STRING "$PACKAGE_STRING"
1739_ACEOF
1740
1741
1742cat >>confdefs.h <<_ACEOF
1743#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1744_ACEOF
1745
1746
1747# Let the site file select an alternate cache file if it wants to.
671aa708 1748# Prefer explicitly selected file to automatically selected ones.
11a67599
ZW
1749if test -n "$CONFIG_SITE"; then
1750 set x "$CONFIG_SITE"
1751elif test "x$prefix" != xNONE; then
1752 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1753else
1754 set x "$ac_default_prefix/share/config.site" \
1755 "$ac_default_prefix/etc/config.site"
671aa708 1756fi
11a67599
ZW
1757shift
1758for ac_site_file
1759do
671aa708 1760 if test -r "$ac_site_file"; then
1c710c3c
DJ
1761 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1762echo "$as_me: loading site script $ac_site_file" >&6;}
1763 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1764 . "$ac_site_file"
1765 fi
1766done
1767
1768if test -r "$cache_file"; then
1c710c3c
DJ
1769 # Some versions of bash will fail to source /dev/null (special
1770 # files actually), so we avoid doing that.
1771 if test -f "$cache_file"; then
1772 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1773echo "$as_me: loading cache $cache_file" >&6;}
1774 case $cache_file in
11a67599
ZW
1775 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1776 *) . "./$cache_file";;
1c710c3c
DJ
1777 esac
1778 fi
671aa708 1779else
1c710c3c
DJ
1780 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1781echo "$as_me: creating cache $cache_file" >&6;}
1782 >$cache_file
1783fi
1784
1785# Check that the precious variables saved in the cache have kept the same
1786# value.
1787ac_cache_corrupted=false
11a67599 1788for ac_var in $ac_precious_vars; do
1c710c3c
DJ
1789 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1790 eval ac_new_set=\$ac_env_${ac_var}_set
11a67599
ZW
1791 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1792 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
1793 case $ac_old_set,$ac_new_set in
1794 set,)
1795 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1796echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1797 ac_cache_corrupted=: ;;
1798 ,set)
1799 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1800echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1801 ac_cache_corrupted=: ;;
1802 ,);;
1803 *)
1804 if test "x$ac_old_val" != "x$ac_new_val"; then
1805 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1806echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1807 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1808echo "$as_me: former value: $ac_old_val" >&2;}
1809 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1810echo "$as_me: current value: $ac_new_val" >&2;}
1811 ac_cache_corrupted=:
1812 fi;;
1813 esac
1814 # Pass precious variables to config.status.
1815 if test "$ac_new_set" = set; then
1816 case $ac_new_val in
11a67599 1817 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1818 *) ac_arg=$ac_var=$ac_new_val ;;
1819 esac
1820 case " $ac_configure_args " in
1821 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1822 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1823 esac
1824 fi
1825done
1826if $ac_cache_corrupted; then
1827 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1828echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1829 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1830echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1831 { (exit 1); exit 1; }; }
671aa708
NN
1832fi
1833
1c710c3c
DJ
1834
1835
1836
1837
671aa708
NN
1838
1839
d02c69be 1840
1c710c3c
DJ
1841
1842
1843
1844
1845
1846
1847
1848
1849
11a67599
ZW
1850ac_ext=c
1851ac_cpp='$CPP $CPPFLAGS'
1852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1854ac_compiler_gnu=$ac_cv_c_compiler_gnu
1c710c3c
DJ
1855
1856
1857
1858
1859# Find the build, host, and target systems.
671aa708 1860ac_aux_dir=
11a67599
ZW
1861for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1862 if test -f "$ac_dir/install-sh"; then
671aa708
NN
1863 ac_aux_dir=$ac_dir
1864 ac_install_sh="$ac_aux_dir/install-sh -c"
1865 break
11a67599 1866 elif test -f "$ac_dir/install.sh"; then
671aa708
NN
1867 ac_aux_dir=$ac_dir
1868 ac_install_sh="$ac_aux_dir/install.sh -c"
1869 break
11a67599 1870 elif test -f "$ac_dir/shtool"; then
1c710c3c
DJ
1871 ac_aux_dir=$ac_dir
1872 ac_install_sh="$ac_aux_dir/shtool install -c"
1873 break
671aa708
NN
1874 fi
1875done
1876if test -z "$ac_aux_dir"; then
11a67599
ZW
1877 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1878echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1c710c3c 1879 { (exit 1); exit 1; }; }
671aa708 1880fi
11a67599
ZW
1881
1882# These three variables are undocumented and unsupported,
1883# and are intended to be withdrawn in a future Autoconf release.
1884# They can cause serious problems if a builder's source tree is in a directory
1885# whose full name contains unusual characters.
1886ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1887ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1888ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1889
671aa708 1890
1c710c3c 1891# Make sure we can run config.sub.
11a67599
ZW
1892$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1893 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1894echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1c710c3c
DJ
1895 { (exit 1); exit 1; }; }
1896
11a67599
ZW
1897{ echo "$as_me:$LINENO: checking build system type" >&5
1898echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1c710c3c
DJ
1899if test "${ac_cv_build+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
11a67599
ZW
1902 ac_build_alias=$build_alias
1903test "x$ac_build_alias" = x &&
1904 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1905test "x$ac_build_alias" = x &&
1c710c3c
DJ
1906 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908 { (exit 1); exit 1; }; }
11a67599
ZW
1909ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1910 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1911echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1c710c3c
DJ
1912 { (exit 1); exit 1; }; }
1913
1914fi
11a67599
ZW
1915{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916echo "${ECHO_T}$ac_cv_build" >&6; }
1917case $ac_cv_build in
1918*-*-*) ;;
1919*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1920echo "$as_me: error: invalid value of canonical build" >&2;}
1921 { (exit 1); exit 1; }; };;
1922esac
1c710c3c 1923build=$ac_cv_build
11a67599
ZW
1924ac_save_IFS=$IFS; IFS='-'
1925set x $ac_cv_build
1926shift
1927build_cpu=$1
1928build_vendor=$2
1929shift; shift
1930# Remember, the first character of IFS is used to create $*,
1931# except with old shells:
1932build_os=$*
1933IFS=$ac_save_IFS
1934case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 1935
671aa708 1936
1c710c3c
DJ
1937 case ${build_alias} in
1938 "") build_noncanonical=${build} ;;
1939 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1940esac
1941
1942
af71363e 1943
1c710c3c
DJ
1944 case ${host_alias} in
1945 "") host_noncanonical=${build_noncanonical} ;;
1946 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1947esac
1948
af71363e 1949
1c710c3c
DJ
1950
1951 case ${target_alias} in
1952 "") target_noncanonical=${host_noncanonical} ;;
1953 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1954esac
1955
af71363e 1956
1c710c3c
DJ
1957
1958
1959test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1960 test "$program_prefix$program_suffix$program_transform_name" = \
1961 NONENONEs,x,x, &&
1c710c3c 1962 program_transform_name=s,y,y,
af71363e 1963
11a67599
ZW
1964{ echo "$as_me:$LINENO: checking host system type" >&5
1965echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1c710c3c
DJ
1966if test "${ac_cv_host+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1968else
11a67599
ZW
1969 if test "x$host_alias" = x; then
1970 ac_cv_host=$ac_cv_build
1971else
1972 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1973 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1974echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1c710c3c 1975 { (exit 1); exit 1; }; }
11a67599 1976fi
1c710c3c 1977
af71363e 1978fi
11a67599
ZW
1979{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1980echo "${ECHO_T}$ac_cv_host" >&6; }
1981case $ac_cv_host in
1982*-*-*) ;;
1983*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1984echo "$as_me: error: invalid value of canonical host" >&2;}
1985 { (exit 1); exit 1; }; };;
1986esac
1c710c3c 1987host=$ac_cv_host
11a67599
ZW
1988ac_save_IFS=$IFS; IFS='-'
1989set x $ac_cv_host
1990shift
1991host_cpu=$1
1992host_vendor=$2
1993shift; shift
1994# Remember, the first character of IFS is used to create $*,
1995# except with old shells:
1996host_os=$*
1997IFS=$ac_save_IFS
1998case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1999
2000
2001{ echo "$as_me:$LINENO: checking target system type" >&5
2002echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1c710c3c
DJ
2003if test "${ac_cv_target+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
11a67599
ZW
2006 if test "x$target_alias" = x; then
2007 ac_cv_target=$ac_cv_host
2008else
2009 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2010 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2011echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1c710c3c 2012 { (exit 1); exit 1; }; }
11a67599 2013fi
1c710c3c
DJ
2014
2015fi
11a67599
ZW
2016{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2017echo "${ECHO_T}$ac_cv_target" >&6; }
2018case $ac_cv_target in
2019*-*-*) ;;
2020*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2021echo "$as_me: error: invalid value of canonical target" >&2;}
2022 { (exit 1); exit 1; }; };;
2023esac
1c710c3c 2024target=$ac_cv_target
11a67599
ZW
2025ac_save_IFS=$IFS; IFS='-'
2026set x $ac_cv_target
2027shift
2028target_cpu=$1
2029target_vendor=$2
2030shift; shift
2031# Remember, the first character of IFS is used to create $*,
2032# except with old shells:
2033target_os=$*
2034IFS=$ac_save_IFS
2035case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2036
2037
2038# The aliases save the names the user supplied, while $host etc.
2039# will get canonicalized.
2040test -n "$target_alias" &&
2041 test "$program_prefix$program_suffix$program_transform_name" = \
2042 NONENONEs,x,x, &&
2043 program_prefix=${target_alias}-
671aa708 2044test "$program_prefix" != NONE &&
11a67599 2045 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2046# Use a double $ so make ignores it.
2047test "$program_suffix" != NONE &&
11a67599 2048 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1c710c3c
DJ
2049# Double any \ or $. echo might interpret backslashes.
2050# By default was `s,x,x', remove it if useless.
2051cat <<\_ACEOF >conftest.sed
2052s/[\\$]/&&/g;s/;s,x,x,$//
2053_ACEOF
2054program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
11a67599 2055rm -f conftest.sed
af71363e 2056
671aa708
NN
2057
2058
775956d0
NN
2059# Get 'install' or 'install-sh' and its variants.
2060# Find a good install program. We prefer a C program (faster),
2061# so one script is as good as another. But avoid the broken or
2062# incompatible versions:
2063# SysV /etc/install, /usr/sbin/install
2064# SunOS /usr/etc/install
2065# IRIX /sbin/install
2066# AIX /bin/install
1c710c3c 2067# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2068# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2069# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2070# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2071# OS/2's system install, which has a completely different semantic
775956d0 2072# ./install, which can be erroneously created by make from ./install.sh.
11a67599
ZW
2073{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2074echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
775956d0 2075if test -z "$INSTALL"; then
1c710c3c
DJ
2076if test "${ac_cv_path_install+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 # Account for people who put trailing slashes in PATH elements.
2085case $as_dir/ in
2086 ./ | .// | /cC/* | \
2087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2088 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2089 /usr/ucb/* ) ;;
2090 *)
2091 # OSF1 and SCO ODT 3.0 have their own names for install.
2092 # Don't use installbsd from OSF since it installs stuff as root
2093 # by default.
2094 for ac_prog in ginstall scoinst install; do
2095 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 2096 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2097 if test $ac_prog = install &&
1c710c3c 2098 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2099 # AIX install. It has an incompatible calling convention.
2100 :
1c710c3c
DJ
2101 elif test $ac_prog = install &&
2102 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103 # program-specific install script used by HP pwplus--don't use.
2104 :
775956d0 2105 else
1c710c3c
DJ
2106 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2107 break 3
775956d0
NN
2108 fi
2109 fi
2110 done
1c710c3c
DJ
2111 done
2112 ;;
2113esac
2114done
11a67599 2115IFS=$as_save_IFS
1c710c3c 2116
775956d0
NN
2117
2118fi
2119 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2120 INSTALL=$ac_cv_path_install
775956d0 2121 else
11a67599
ZW
2122 # As a last resort, use the slow shell script. Don't cache a
2123 # value for INSTALL within a source directory, because that will
775956d0 2124 # break other packages using the cache if that directory is
11a67599 2125 # removed, or if the value is a relative name.
1c710c3c 2126 INSTALL=$ac_install_sh
775956d0
NN
2127 fi
2128fi
11a67599
ZW
2129{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2130echo "${ECHO_T}$INSTALL" >&6; }
775956d0
NN
2131
2132# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2133# It thinks the first close brace ends the variable substitution.
2134test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2135
1c710c3c 2136test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2137
2138test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2139
11a67599
ZW
2140{ echo "$as_me:$LINENO: checking whether ln works" >&5
2141echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
1c710c3c
DJ
2142if test "${acx_cv_prog_LN+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
2144else
2145 rm -f conftestdata_t
2146echo >conftestdata_f
2147if ln conftestdata_f conftestdata_t 2>/dev/null
2148then
2149 acx_cv_prog_LN=ln
2150else
2151 acx_cv_prog_LN=no
2152fi
2153rm -f conftestdata_f conftestdata_t
2154
2155fi
2156if test $acx_cv_prog_LN = no; then
2157 LN="cp"
11a67599
ZW
2158 { echo "$as_me:$LINENO: result: no, using $LN" >&5
2159echo "${ECHO_T}no, using $LN" >&6; }
ad6717df
PB
2160else
2161 LN="$acx_cv_prog_LN"
11a67599
ZW
2162 { echo "$as_me:$LINENO: result: yes" >&5
2163echo "${ECHO_T}yes" >&6; }
ad6717df
PB
2164fi
2165
11a67599
ZW
2166{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
2167echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1c710c3c
DJ
2168LN_S=$as_ln_s
2169if test "$LN_S" = "ln -s"; then
11a67599
ZW
2170 { echo "$as_me:$LINENO: result: yes" >&5
2171echo "${ECHO_T}yes" >&6; }
fb0103e5 2172else
11a67599
ZW
2173 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2174echo "${ECHO_T}no, using $LN_S" >&6; }
148907ea
PB
2175fi
2176
775956d0 2177
79c06341 2178### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
2179### If we are on Windows, search for the shell. This will permit people
2180### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2181### without also having to set CONFIG_SHELL. This code will work when
2182### using bash, which sets OSTYPE.
2183case "${OSTYPE}" in
2184*win32*)
671aa708
NN
2185 if test x${CONFIG_SHELL} = x ; then
2186 if test ! -f /bin/sh ; then
2187 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
2188 CONFIG_SHELL=${SHELL}
2189 export CONFIG_SHELL
2190 else
2191 for prog in sh sh.exe bash bash.exe; do
2192 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2193 for dir in $PATH; do
2194 test -z "$dir" && dir=.
2195 if test -f $dir/$prog; then
2196 CONFIG_SHELL=$dir/$prog
2197 export CONFIG_SHELL
2198 break
2199 fi
2200 done
2201 IFS="$save_ifs"
2202 test -n "${CONFIG_SHELL}" && break
2203 done
2204 fi
2205 fi
2206 fi
2207 ;;
2208esac
2209
2210config_shell=${CONFIG_SHELL-/bin/sh}
2211
79c06341
JL
2212progname=$0
2213# if PWD already has a value, it is probably wrong.
671aa708 2214if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 2215
beeaf216
MM
2216# Export original configure arguments for use by sub-configures.
2217# Quote arguments with shell meta charatcers.
2218TOPLEVEL_CONFIGURE_ARGUMENTS=
2219set -- "$progname" "$@"
9f8c6739
JM
2220for ac_arg
2221do
beeaf216 2222 case "$ac_arg" in
8c79f3c4 2223 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
beeaf216
MM
2224 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2225 # if the argument is of the form -foo=baz, quote the baz part only
2226 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2227 *) ;;
2228 esac
2229 # Add the quoted argument to the list.
2230 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2231done
2232# Remove the initial space we just introduced and, as these will be
2233# expanded by make, quote '$'.
2234TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 2235
cc1e60ea 2236
671aa708 2237moveifchange=${srcdir}/move-if-change
79c06341 2238
ee6a22df
L
2239srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2240
2241# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2242# a relative path.
2243if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2244 INSTALL="${srcpwd}/install-sh -c"
2245fi
2246
671aa708
NN
2247# Set srcdir to "." if that's what it is.
2248# This is important for multilib support.
2249pwd=`${PWDCMD-pwd}`
671aa708
NN
2250if test "${pwd}" = "${srcpwd}" ; then
2251 srcdir=.
79c06341
JL
2252fi
2253
671aa708 2254topsrcdir=$srcpwd
5d4a5ee6 2255
671aa708 2256extra_host_args=
afabd8e6 2257
671aa708
NN
2258### To add a new directory to the tree, first choose whether it is a target
2259### or a host dependent tool. Then put it into the appropriate list
2260### (library or tools, host or target), doing a dependency sort.
79c06341 2261
1c710c3c 2262# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2263# configdirs, or target_configdirs; see the serialization section below.
79c06341 2264
1c710c3c
DJ
2265# Dependency sorting is only needed when *configuration* must be done in
2266# a particular order. In all cases a dependency should be specified in
671aa708 2267# the Makefile, whether or not it's implicitly specified here.
79c06341 2268
671aa708
NN
2269# Double entries in build_configdirs, configdirs, or target_configdirs may
2270# cause circular dependencies and break everything horribly.
79c06341 2271
23f6b2f9
PB
2272# these library is used by various programs built for the build
2273# environment
2274#
2275build_libs="build-libiberty"
2276
2277# these tools are built for the build environment
71b5d516 2278build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2279
671aa708
NN
2280# these libraries are used by various programs built for the host environment
2281#
e69bf64b 2282host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 2283
671aa708
NN
2284# these tools are built for the host environment
2285# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2286# know that we are building the simulator.
2287# binutils, gas and ld appear in that order because it makes sense to run
2288# "make check" in that particular order.
5395b47b 2289host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
2290
2291# libgcj represents the runtime libraries only used by gcj.
2292libgcj="target-libffi \
671aa708
NN
2293 target-zlib \
2294 target-qthreads \
2295 target-libjava"
2296
2297# these libraries are built for the target environment, and are built after
2298# the host libraries and the host tools (which may be a cross compiler)
2299#
291f172e
DJ
2300target_libraries="target-libgcc \
2301 target-libiberty \
671aa708
NN
2302 target-libgloss \
2303 target-newlib \
cb543528 2304 target-libstdc++-v3 \
6de9cd9a 2305 target-libmudflap \
77008252 2306 target-libssp \
6de9cd9a 2307 target-libgfortran \
7cd0cf9c 2308 target-boehm-gc \
77d187bc 2309 ${libgcj} \
d9cdb878 2310 target-libobjc \
953ff289
DN
2311 target-libada \
2312 target-libgomp"
671aa708 2313
4dbda6f0
NN
2314# these tools are built using the target libraries, and are intended to
2315# run only in the target environment
671aa708 2316#
4dbda6f0 2317# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
2318# list belongs in this list. those programs are also very likely
2319# candidates for the "native_only" list which follows
2320#
97286f7f 2321target_tools="target-examples target-groff target-gperf target-rda"
79c06341 2322
671aa708 2323################################################################################
79c06341 2324
671aa708
NN
2325## All tools belong in one of the four categories, and are assigned above
2326## We assign ${configdirs} this way to remove all embedded newlines. This
2327## is important because configure will choke if they ever get through.
2328## ${configdirs} is directories we build using the host tools.
2329## ${target_configdirs} is directories we build using the target tools.
671aa708 2330configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2331target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2332build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2333
671aa708 2334################################################################################
79c06341 2335
671aa708 2336srcname="gnu development package"
79c06341 2337
671aa708
NN
2338# This gets set non-empty for some net releases of packages.
2339appdirs=""
79c06341 2340
671aa708
NN
2341# Define is_cross_compiler to save on calls to 'test'.
2342is_cross_compiler=
2343if test x"${host}" = x"${target}" ; then
2344 is_cross_compiler=no
79c06341 2345else
671aa708 2346 is_cross_compiler=yes
1c710c3c 2347fi
79c06341 2348
b4acb5ef 2349# Find the build and target subdir names.
8b87bb96 2350
2e9e6f68
DJ
2351# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2352# have matching libraries, they should use host libraries: Makefile.tpl
2353# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2354# However, they still use the build modules, because the corresponding
2355# host modules (e.g. bison) are only built for the host when bootstrap
2356# finishes. So:
2357# - build_subdir is where we find build modules, and never changes.
2358# - build_libsubdir is where we find build libraries, and can be overridden.
2359
2360# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2361build_subdir="build-${build_noncanonical}"
1c710c3c 2362
11a67599 2363# Check whether --with-build-libsubdir was given.
2e9e6f68 2364if test "${with_build_libsubdir+set}" = set; then
11a67599 2365 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2366else
2367 build_libsubdir="$build_subdir"
11a67599
ZW
2368fi
2369
215c351a
PB
2370# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2371if ( test $srcdir = . && test -d gcc ) \
2372 || test -d $srcdir/../host-${host_noncanonical}; then
2373 host_subdir="host-${host_noncanonical}"
2374else
2375 host_subdir=.
2376fi
8b87bb96
NN
2377# No prefix.
2378target_subdir=${target_noncanonical}
1c710c3c 2379
79c06341 2380
671aa708
NN
2381# Skipdirs are removed silently.
2382skipdirs=
2383# Noconfigdirs are removed loudly.
2384noconfigdirs=""
79c06341 2385
671aa708
NN
2386use_gnu_ld=
2387# Make sure we don't let GNU ld be added if we didn't want it.
2388if test x$with_gnu_ld = xno ; then
2389 use_gnu_ld=no
2390 noconfigdirs="$noconfigdirs ld"
79c06341
JL
2391fi
2392
671aa708
NN
2393use_gnu_as=
2394# Make sure we don't let GNU as be added if we didn't want it.
2395if test x$with_gnu_as = xno ; then
2396 use_gnu_as=no
2397 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2398fi
2399
1c710c3c 2400# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2401# it's not even worth trying to configure, much less build, that tool.
79c06341 2402
671aa708
NN
2403case ${with_x} in
2404 yes | "") ;; # the default value for this tree is that X11 is available
2405 no)
b4f96efe 2406 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2407 # We won't be able to build gdbtk without X.
1c710c3c 2408 enable_gdbtk=no
671aa708
NN
2409 ;;
2410 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2411esac
79c06341 2412
671aa708 2413# Some tools are only suitable for building in a "native" situation.
1c710c3c 2414# Remove these if host!=target.
9e299237 2415native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 2416
671aa708
NN
2417# Similarly, some are only suitable for cross toolchains.
2418# Remove these if host=target.
2419cross_only="target-libgloss target-newlib target-opcodes"
2420
2421case $is_cross_compiler in
2422 no) skipdirs="${skipdirs} ${cross_only}" ;;
2423 yes) skipdirs="${skipdirs} ${native_only}" ;;
2424esac
79c06341 2425
671aa708
NN
2426# If both --with-headers and --with-libs are specified, default to
2427# --without-newlib.
ee6a22df
L
2428if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2429 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2430 if test x"${with_newlib}" = x ; then
2431 with_newlib=no
2432 fi
79c06341
JL
2433fi
2434
671aa708
NN
2435# Recognize --with-newlib/--without-newlib.
2436case ${with_newlib} in
2437 no) skipdirs="${skipdirs} target-newlib" ;;
2438 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2439esac
79c06341 2440
671aa708 2441# Configure extra directories which are host specific
79c06341 2442
671aa708
NN
2443case "${host}" in
2444 *-cygwin*)
2445 configdirs="$configdirs libtermcap" ;;
2446esac
79c06341 2447
4fab7234
HPN
2448# A target can indicate whether a language isn't supported for some reason.
2449# Only spaces may be used in this macro; not newlines or tabs.
2450unsupported_languages=
2451
1c710c3c 2452# Remove more programs from consideration, based on the host or
671aa708
NN
2453# target this usually means that a port of the program doesn't
2454# exist yet.
ec8d6ddc 2455
671aa708
NN
2456case "${host}" in
2457 hppa*64*-*-*)
2458 noconfigdirs="$noconfigdirs byacc"
2459 ;;
f2a0e225 2460 i[3456789]86-*-vsta)
b4f96efe 2461 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2462 ;;
f2a0e225 2463 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2464 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2465 ;;
95af8923
KT
2466 x86_64-*-mingw*)
2467 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2468 ;;
f2a0e225 2469 i[3456789]86-*-mingw32*)
b4f96efe 2470 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2471 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2472 ;;
f2a0e225 2473 i[3456789]86-*-beos*)
b4f96efe 2474 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2475 ;;
671aa708 2476 *-*-cygwin*)
a22c2d8d 2477 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2478 ;;
2479 *-*-netbsd*)
a22c2d8d 2480 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2481 ;;
2482 ppc*-*-pe)
b4f96efe 2483 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2484 ;;
2485 powerpc-*-beos*)
b4f96efe 2486 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2487 ;;
671aa708 2488esac
ec8d6ddc 2489
6de9cd9a 2490
11a67599 2491# Check whether --enable-libada was given.
d9cdb878 2492if test "${enable_libada+set}" = set; then
11a67599 2493 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
2494else
2495 ENABLE_LIBADA=yes
11a67599
ZW
2496fi
2497
d9cdb878 2498if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2499 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2500fi
2501
11a67599 2502# Check whether --enable-libssp was given.
ef0087a7 2503if test "${enable_libssp+set}" = set; then
11a67599 2504 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
2505else
2506 ENABLE_LIBSSP=yes
11a67599
ZW
2507fi
2508
ef0087a7 2509
671aa708
NN
2510# Save it here so that, even in case of --enable-libgcj, if the Java
2511# front-end isn't enabled, we still get libgcj disabled.
2512libgcj_saved=$libgcj
2513case $enable_libgcj in
2514yes)
2515 # If we reset it here, it won't get added to noconfigdirs in the
2516 # target-specific build rules, so it will be forcibly enabled
2517 # (unless the Java language itself isn't enabled).
2518 libgcj=
2519 ;;
2520no)
2521 # Make sure we get it printed in the list of not supported target libs.
2522 noconfigdirs="$noconfigdirs ${libgcj}"
2523 ;;
2524esac
ec8d6ddc 2525
6de9cd9a 2526
27079765
AH
2527# Disable libmudflap on some systems.
2528if test x$enable_libmudflap = x ; then
dfcada9a 2529 case "${target}" in
670cbfcf 2530 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
98a5bb3b 2531 # Enable libmudflap by default in GNU and friends.
dfcada9a 2532 ;;
a3e8d8b4
LR
2533 *-*-freebsd*)
2534 # Enable libmudflap by default in FreeBSD.
2535 ;;
dfcada9a
MM
2536 *)
2537 # Disable it by default everywhere else.
2538 noconfigdirs="$noconfigdirs target-libmudflap"
2539 ;;
2540 esac
27079765 2541fi
6de9cd9a 2542
27079765
AH
2543# Disable libgomp on non POSIX hosted systems.
2544if test x$enable_libgomp = x ; then
953ff289
DN
2545 # Enable libgomp by default on hosted POSIX systems.
2546 case "${target}" in
670cbfcf 2547 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2548 ;;
2549 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2550 ;;
04879af3 2551 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2552 ;;
cac90078 2553 *-*-darwin* | *-*-aix*)
953ff289
DN
2554 ;;
2555 *)
2556 noconfigdirs="$noconfigdirs target-libgomp"
2557 ;;
2558 esac
27079765 2559fi
953ff289 2560
6de9cd9a 2561
671aa708
NN
2562case "${target}" in
2563 *-*-chorusos)
cb253473 2564 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2565 ;;
42c1cd8a 2566 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 2567 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2568 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2569 ;;
42c1cd8a
AT
2570 *-*-darwin*)
2571 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2572 noconfigdirs="$noconfigdirs sim target-rda"
2573 noconfigdirs="$noconfigdirs ${libgcj}"
2574 ;;
671aa708 2575 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2576 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2577 ;;
c3f84f61 2578 *-*-freebsd*)
6de9cd9a
DN
2579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2580 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2581 && test -f /usr/local/include/gmp.h; then
2582 with_gmp=/usr/local
2583 fi
2584
2585 # Skip some stuff that's unsupported on some FreeBSD configurations.
2586 case "${target}" in
2587 i*86-*-*) ;;
2588 alpha*-*-*) ;;
2589 *)
cb253473 2590 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2591 ;;
2592 esac
2593 ;;
ef4e7569
US
2594 *-*-kaos*)
2595 # Remove unsupported stuff on all kaOS configurations.
cb253473 2596 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2597 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2598 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2599 noconfigdirs="$noconfigdirs target-libgloss"
2600 ;;
671aa708
NN
2601 *-*-netbsd*)
2602 # Skip some stuff on all NetBSD configurations.
2603 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2604
2605 # Skip some stuff that's unsupported on some NetBSD configurations.
2606 case "${target}" in
2607 i*86-*-netbsdelf*) ;;
0590b963 2608 arm*-*-netbsdelf*) ;;
671aa708 2609 *)
cb253473 2610 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2611 ;;
2612 esac
2613 ;;
61fec9ff 2614 *-*-netware*)
cb253473 2615 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2616 ;;
2617 *-*-rtems*)
cb253473 2618 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2619 ;;
a8ba31f2
EC
2620 # The tpf target doesn't support gdb yet.
2621 *-*-tpf*)
cb253473 2622 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2623 ;;
5785c0ed 2624 *-*-uclinux*)
cb253473 2625 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2626 ;;
671aa708 2627 *-*-vxworks*)
cb253473 2628 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2629 ;;
2630 alpha*-dec-osf*)
2631 # ld works, but does not support shared libraries.
2632 # newlib is not 64 bit ready. I'm not sure about fileutils.
2633 # gas doesn't generate exception information.
2634 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2635 ;;
2636 alpha*-*-*vms*)
cb253473 2637 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2638 ;;
2639 alpha*-*-linux*)
2640 # newlib is not 64 bit ready
2641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2642 ;;
671aa708
NN
2643 alpha*-*-*)
2644 # newlib is not 64 bit ready
cb253473 2645 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2646 ;;
33952f6f 2647 am33_2.0-*-linux*)
cb253473 2648 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2649 ;;
671aa708 2650 sh-*-linux*)
cb253473 2651 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2652 ;;
671aa708 2653 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2654 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2655 noconfigdirs="$noconfigdirs target-examples"
2656 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2657 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2658 noconfigdirs="$noconfigdirs expect dejagnu"
2659 # the C++ libraries don't build on top of CE's C libraries
cb543528 2660 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2661 noconfigdirs="$noconfigdirs target-newlib"
2662 case "${host}" in
2663 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2664 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2665 ;;
2666 esac
2667 ;;
2668 arc-*-*)
cb253473 2669 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2670 ;;
ee6a22df 2671 arm-semi-aof )
ee6a22df 2672 ;;
671aa708 2673 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2674 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2675 ;;
b3f8d95d 2676 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708
NN
2677 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2678 ;;
077fc835
KH
2679 arm*-*-linux-gnueabi)
2680 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2681 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2682 ;;
972974fc 2683 arm*-*-symbianelf*)
cb253473 2684 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
972974fc 2685 ;;
671aa708 2686 arm-*-pe*)
cb253473 2687 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2688 ;;
671aa708 2689 thumb-*-coff)
cb253473 2690 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2691 ;;
2692 thumb-*-elf)
cb253473 2693 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2694 ;;
671aa708 2695 thumb-*-pe)
cb253473 2696 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2697 ;;
2698 arm-*-riscix*)
cb253473 2699 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2700 ;;
2701 avr-*-*)
cb253473 2702 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2703 ;;
6b65a26d 2704 bfin-*-*)
8b3c6c5a 2705 noconfigdirs="$noconfigdirs gdb"
61efc800 2706 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2707 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2708 fi
2709 ;;
671aa708 2710 c4x-*-* | tic4x-*-*)
cb253473 2711 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2712 ;;
2713 c54x*-*-* | tic54x-*-*)
cb253473 2714 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2715 ;;
40d64b5a 2716 cris-*-* | crisv32-*-*)
4fab7234 2717 unsupported_languages="$unsupported_languages java"
40d64b5a 2718 case "${target}" in
c2e0d3a9 2719 *-*-aout)
7f26dfa3 2720 unsupported_languages="$unsupported_languages fortran"
4fab7234 2721 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2722 *-*-elf)
7f26dfa3 2723 unsupported_languages="$unsupported_languages fortran"
789ec619 2724 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2725 *-*-linux*)
789ec619 2726 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2727 *)
7f26dfa3 2728 unsupported_languages="$unsupported_languages fortran"
cb253473 2729 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2730 esac
671aa708 2731 ;;
25b656e7 2732 crx-*-*)
cb253473 2733 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2734 ;;
671aa708 2735 d10v-*-*)
cb253473 2736 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2737 ;;
2738 d30v-*-*)
cb253473 2739 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2740 ;;
2741 fr30-*-elf*)
cb253473 2742 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2743 ;;
2744 frv-*-*)
cb253473 2745 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2746 ;;
2747 h8300*-*-*)
cb253473 2748 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2749 ;;
2750 h8500-*-*)
cb253473 2751 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2752 ;;
ee6a22df 2753 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2754 ;;
671aa708
NN
2755 hppa*64*-*-linux* | parisc*64*-*-linux*)
2756 # In this case, it's because the hppa64-linux target is for
2757 # the kernel only at this point and has no libc, and thus no
2758 # headers, crt*.o, etc., all of which are needed by these.
2759 noconfigdirs="$noconfigdirs target-zlib"
2760 ;;
3e732ba0
JDA
2761 parisc*-*-linux* | hppa*-*-linux*)
2762 ;;
671aa708 2763 hppa*-*-*elf* | \
671aa708
NN
2764 hppa*-*-lites* | \
2765 hppa*-*-openbsd* | \
2766 hppa*64*-*-*)
cb253473 2767 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2768 ;;
2a332582
JDA
2769 hppa*-hp-hpux11*)
2770 noconfigdirs="$noconfigdirs ld shellutils"
2771 ;;
671aa708
NN
2772 hppa*-*-*)
2773 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2774 # build on HP-UX 10.20.
cb253473 2775 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2776 ;;
fb87ad5d 2777 i960-*-*)
cb253473 2778 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2779 ;;
671aa708
NN
2780 ia64*-*-elf*)
2781 # No gdb support yet.
b4f96efe 2782 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2783 ;;
2784 ia64*-**-hpux*)
2785 # No gdb or ld support yet.
cb253473 2786 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2787 ;;
ee6a22df 2788 i370-*-opened*)
ee6a22df 2789 ;;
f2a0e225 2790 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2791 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2792 ;;
f2a0e225 2793 i[3456789]86-*-linux*)
671aa708
NN
2794 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2795 # not build java stuff by default.
2796 case "${target}" in
2797 *-*-*libc1*)
cb253473 2798 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2799 esac
2800
2801 # This section makes it possible to build newlib natively on linux.
2802 # If we are using a cross compiler then don't configure newlib.
2803 if test x${is_cross_compiler} != xno ; then
3aa83176 2804 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2805 fi
2806 noconfigdirs="$noconfigdirs target-libgloss"
2807 # If we are not using a cross compiler, do configure newlib.
2808 # Note however, that newlib will only be configured in this situation
2809 # if the --with-newlib option has been given, because otherwise
2810 # 'target-newlib' will appear in skipdirs.
2811 ;;
f2a0e225 2812 i[3456789]86-*-mingw32*)
b91f0a41
CV
2813 target_configdirs="$target_configdirs target-winsup"
2814 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2815 ;;
95af8923
KT
2816 x86_64-*-mingw*)
2817 target_configdirs="$target_configdirs target-winsup"
2818 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2819 ;;
671aa708
NN
2820 *-*-cygwin*)
2821 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2822 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2823 # always build newlib if winsup directory is present.
b91f0a41 2824 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2825 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2826 elif test -d "$srcdir/newlib"; then
b91f0a41 2827 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2828 fi
1c710c3c 2829 ;;
ee6a22df
L
2830 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2831 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2832 ;;
f2a0e225 2833 i[3456789]86-*-pe)
cb253473 2834 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2835 ;;
f2a0e225 2836 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2837 # The linker does not yet know about weak symbols in COFF,
2838 # and is not configured to handle mixed ELF and COFF.
cb253473 2839 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2840 ;;
f2a0e225 2841 i[3456789]86-*-sco*)
cb253473 2842 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2843 ;;
f2a0e225 2844 i[3456789]86-*-solaris2*)
671aa708
NN
2845 noconfigdirs="$noconfigdirs target-libgloss"
2846 ;;
f2a0e225 2847 i[3456789]86-*-sysv4*)
cb253473 2848 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2849 ;;
f2a0e225 2850 i[3456789]86-*-beos*)
cb253473 2851 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2852 ;;
d1f8db0c
PB
2853 i[3456789]86-*-rdos*)
2854 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2855 ;;
fb87ad5d 2856 m32r-*-*)
cb253473 2857 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2858 ;;
671aa708 2859 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2860 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2861 ;;
2862 m68k-*-elf*)
cb253473 2863 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2864 ;;
2865 m68k-*-coff*)
cb253473 2866 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2867 ;;
2868 mcore-*-pe*)
2869 # The EPOC C++ environment does not support exceptions or rtti,
2870 # and so building libstdc++-v3 tends not to always work.
2871 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2872 ;;
2873 mmix-*-*)
4fab7234 2874 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2875 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2876 ;;
2877 mn10200-*-*)
cb253473 2878 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2879 ;;
2880 mn10300-*-*)
cb253473 2881 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2882 ;;
ab34901f 2883 mt-*-*)
79dd769c
AH
2884 noconfigdirs="$noconfigdirs sim"
2885 ;;
671aa708
NN
2886 powerpc-*-aix*)
2887 # copied from rs6000-*-* entry
cb253473 2888 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2889 ;;
2890 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2891 target_configdirs="$target_configdirs target-winsup"
cb253473 2892 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2893 # always build newlib.
2894 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2895 ;;
2896 # This is temporary until we can link against shared libraries
2897 powerpcle-*-solaris*)
cb253473 2898 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
671aa708
NN
2899 ;;
2900 powerpc-*-beos*)
cb253473 2901 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2902 ;;
671aa708 2903 powerpc-*-eabi)
cb253473 2904 noconfigdirs="$noconfigdirs ${libgcj}"
ee6a22df
L
2905 ;;
2906 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
671aa708 2907 ;;
671aa708 2908 rs6000-*-lynxos*)
cb253473 2909 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2910 ;;
2911 rs6000-*-aix*)
cb253473 2912 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2913 ;;
2914 rs6000-*-*)
cb253473 2915 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2916 ;;
2917 m68k-apollo-*)
cb253473 2918 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708
NN
2919 ;;
2920 mips*-*-irix5*)
cb253473 2921 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2922 ;;
2923 mips*-*-irix6*)
671aa708
NN
2924 # Linking libjava exceeds command-line length limits on at least
2925 # IRIX 6.2, but not on IRIX 6.5.
2926 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2927 # <oldham@codesourcery.com>
cb253473 2928 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2929 ;;
671aa708 2930 mips*-*-bsd*)
cb253473 2931 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2932 ;;
d0fe5ad3 2933 mips64*-*-linux*)
1ee4c5a0 2934 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
d0fe5ad3 2935 ;;
671aa708
NN
2936 mips*-*-linux*)
2937 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2938 ;;
2939 mips*-*-*)
cb253473 2940 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2941 ;;
2942 romp-*-*)
cb253473 2943 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2944 ;;
669f01d8 2945 sh-*-* | sh64-*-*)
671aa708 2946 case "${host}" in
f2a0e225
KC
2947 i[3456789]86-*-vsta) ;; # don't add gprof back in
2948 i[3456789]86-*-go32*) ;; # don't add gprof back in
2949 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2950 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2951 esac
cb253473 2952 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2953 ;;
671aa708 2954 sparc-*-elf*)
cb253473 2955 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2956 ;;
2957 sparc64-*-elf*)
cb253473 2958 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2959 ;;
2960 sparclite-*-*)
cb253473 2961 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2962 ;;
2963 sparc-*-sunos4*)
cb253473 2964 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2965 if test x${is_cross_compiler} != xno ; then
2966 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2967 else
2968 use_gnu_ld=no
2969 fi
2970 ;;
bba5e0ca 2971 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2972 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2973 ;;
671aa708
NN
2974 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2975 ;;
85d9c13c 2976 spu-*-*)
ea6f5c57 2977 skipdirs="target-libssp"
85d9c13c 2978 ;;
671aa708 2979 v810-*-*)
cb253473 2980 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2981 ;;
2982 v850-*-*)
cb253473 2983 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2984 ;;
2985 v850e-*-*)
cb253473 2986 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2987 ;;
2988 v850ea-*-*)
cb253473 2989 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2990 ;;
2991 vax-*-vms)
cb253473 2992 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2993 ;;
2994 vax-*-*)
cb253473 2995 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2996 ;;
0d4f1b4e 2997 xtensa-*-*)
cb253473 2998 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2999 ;;
671aa708 3000 ip2k-*-*)
cb253473 3001 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 3002 ;;
c3f84f61 3003 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
3004 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3005 ;;
3006 *-*-lynxos*)
cb253473 3007 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3008 ;;
671aa708 3009 *-*-*)
cb253473 3010 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3011 ;;
3012esac
79c06341 3013
671aa708
NN
3014# If we aren't building newlib, then don't build libgloss, since libgloss
3015# depends upon some newlib header files.
3016case "${noconfigdirs}" in
3017 *target-libgloss*) ;;
3018 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3019esac
3020
671aa708
NN
3021# Work in distributions that contain no compiler tools, like Autoconf.
3022tentative_cc=""
3023host_makefile_frag=/dev/null
3024if test -d ${srcdir}/config ; then
3025case "${host}" in
3026 m68k-hp-hpux*)
3027 # Avoid "too much defining" errors from HPUX compiler.
3028 tentative_cc="cc -Wp,-H256000"
3029 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3030 # If it's HP/UX ar, this should be harmless.
3031 RANLIB="ar ts"
3032 ;;
3033 m68k-apollo-sysv*)
3034 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3035 ;;
3036 m68k-apollo-bsd*)
3037 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3038 # chokes on bfd, the compiler won't let you assign integers to enums, and
3039 # other problems. Defining CC to gcc is a questionable way to say "don't use
3040 # the apollo compiler" (the preferred version of GCC could be called cc,
3041 # or whatever), but I'm not sure leaving CC as cc is any better...
3042 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3043 # Used to have BISON=yacc.
3044 tentative_cc=gcc
3045 ;;
3046 m88k-dg-dgux*)
3047 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
3048 ;;
3049 m88k-harris-cxux*)
3050 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3051 tentative_cc="cc -Xa"
3052 host_makefile_frag="config/mh-cxux"
3053 ;;
3054 m88k-motorola-sysv*)
3055 ;;
3056 mips*-dec-ultrix*)
3057 tentative_cc="cc -Wf,-XNg1000"
3058 host_makefile_frag="config/mh-decstation"
3059 ;;
3060 mips*-nec-sysv4*)
3061 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3062 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3063 host_makefile_frag="config/mh-necv4"
3064 ;;
3065 mips*-sgi-irix4*)
3066 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3067 # environment. Also bump switch table size so that cp-parse will
3068 # compile. Bump string length limit so linker builds.
3069 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3070 ;;
3071 mips*-*-sysv4*)
3072 host_makefile_frag="config/mh-sysv4"
3073 ;;
3074 mips*-*-sysv*)
3075 # This is for a MIPS running RISC/os 4.52C.
3076
3077 # This is needed for GDB, but needs to be in the top-level make because
3078 # if a library is compiled with the bsd headers and gets linked with the
3079 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3080 # a different size).
3081 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3082 # known except to select the sysv environment. Could we use /proc instead?
3083 # These "sysv environments" and "bsd environments" often end up being a pain.
3084 #
3085 # This is not part of CFLAGS because perhaps not all C compilers have this
3086 # option.
3087 tentative_cc="cc -systype sysv"
3088 ;;
3089 i370-ibm-opened*)
3090 tentative_cc="c89"
3091 ;;
f2a0e225 3092 i[3456789]86-*-sysv5*)
671aa708
NN
3093 host_makefile_frag="config/mh-sysv5"
3094 ;;
f2a0e225 3095 i[3456789]86-*-dgux*)
671aa708
NN
3096 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3097 host_makefile_frag="config/mh-dgux386"
3098 ;;
f2a0e225 3099 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
3100 # The MetaWare compiler will generate a copyright message unless you
3101 # turn it off by adding the -Hnocopyr flag.
3102 tentative_cc="cc -Hnocopyr"
3103 ;;
f2a0e225 3104 i[3456789]86-ncr-sysv4*)
671aa708
NN
3105 # for an NCR 3000 (i486/SVR4) system.
3106 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3107 # This compiler not only emits obnoxious copyright messages every time
3108 # you run it, but it chokes and dies on a whole bunch of GNU source
3109 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3110 tentative_cc="/usr/ccs/ATT/cc"
3111 host_makefile_frag="config/mh-ncr3000"
3112 ;;
f2a0e225 3113 i[3456789]86-*-sco3.2v5*)
671aa708 3114 ;;
f2a0e225 3115 i[3456789]86-*-sco*)
671aa708
NN
3116 # The native C compiler botches some simple uses of const. Unfortunately,
3117 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3118 tentative_cc="cc -Dconst="
3119 host_makefile_frag="config/mh-sco"
3120 ;;
f2a0e225 3121 i[3456789]86-*-udk*)
671aa708
NN
3122 host_makefile_frag="config/mh-sysv5"
3123 ;;
f2a0e225 3124 i[3456789]86-*-solaris2*)
671aa708
NN
3125 host_makefile_frag="config/mh-sysv4"
3126 ;;
f2a0e225 3127 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3128 host_makefile_frag="config/mh-djgpp"
3129 ;;
3130 *-cygwin*)
3131 host_makefile_frag="config/mh-cygwin"
3132 ;;
3133 *-mingw32*)
671aa708 3134 ;;
95af8923
KT
3135 *-mingw64*)
3136 ;;
671aa708
NN
3137 *-interix*)
3138 host_makefile_frag="config/mh-interix"
3139 ;;
3140 vax-*-ultrix2*)
3141 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3142 tentative_cc=gcc
3143 ;;
3144 *-*-solaris2*)
3145 host_makefile_frag="config/mh-solaris"
3146 ;;
3147 m68k-sun-sunos*)
3148 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3149 # without overflowing the jump tables (-J says to use a 32 bit table)
3150 tentative_cc="cc -J"
3151 ;;
3152 *-hp-hpux*)
3153 tentative_cc="cc -Wp,-H256000"
3154 ;;
3155 *-*-hiux*)
3156 tentative_cc="cc -Wp,-H256000"
3157 ;;
3158 rs6000-*-lynxos*)
3159 # /bin/cc is less than useful for our purposes. Always use GCC
3160 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3161 host_makefile_frag="config/mh-lynxrs6k"
3162 ;;
45f366ab 3163 powerpc-*-darwin*)
be8fff81
RB
3164 host_makefile_frag="config/mh-ppc-darwin"
3165 ;;
d19bca38
PB
3166 powerpc-*-aix*)
3167 host_makefile_frag="config/mh-ppc-aix"
3168 ;;
3169 rs6000-*-aix*)
3170 host_makefile_frag="config/mh-ppc-aix"
3171 ;;
671aa708
NN
3172 *-*-lynxos*)
3173 # /bin/cc is less than useful for our purposes. Always use GCC
3174 tentative_cc="/bin/gcc"
3175 ;;
3176 *-*-sysv4*)
3177 host_makefile_frag="config/mh-sysv4"
3178 ;;
95c53c62
RS
3179 # This is placed last to prevent interfering with the cases above.
3180 i[3456789]86-*-*)
3181 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3182 host_makefile_frag="config/mh-x86omitfp"
3183 ;;
671aa708
NN
3184esac
3185fi
3186
55ffb5ed
NN
3187# If we aren't going to be using gcc, see if we can extract a definition
3188# of CC from the fragment.
3189# Actually, use the 'pre-extracted' version above.
3190if test -z "${CC}" && test "${build}" = "${host}" ; then
3191 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3192 found=
3193 for dir in $PATH; do
3194 test -z "$dir" && dir=.
3195 if test -f $dir/gcc; then
3196 found=yes
3197 break
3198 fi
3199 done
3200 IFS="$save_ifs"
3201 if test -z "${found}" && test -n "${tentative_cc}" ; then
3202 CC=$tentative_cc
3203 fi
3204fi
3205
3206if test "${build}" != "${host}" ; then
55ffb5ed 3207 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed 3208else
fb0103e5 3209 CC_FOR_BUILD="\$(CC)"
c3a86da9
DJ
3210fi
3211
3212ac_ext=c
1c710c3c
DJ
3213ac_cpp='$CPP $CPPFLAGS'
3214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217if test -n "$ac_tool_prefix"; then
3218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3219set dummy ${ac_tool_prefix}gcc; ac_word=$2
11a67599
ZW
3220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
3222if test "${ac_cv_prog_CC+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test.
3227else
3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229for as_dir in $PATH
3230do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239done
3240done
11a67599 3241IFS=$as_save_IFS
1c710c3c
DJ
3242
3243fi
3244fi
3245CC=$ac_cv_prog_CC
3246if test -n "$CC"; then
11a67599
ZW
3247 { echo "$as_me:$LINENO: result: $CC" >&5
3248echo "${ECHO_T}$CC" >&6; }
1c710c3c 3249else
11a67599
ZW
3250 { echo "$as_me:$LINENO: result: no" >&5
3251echo "${ECHO_T}no" >&6; }
1c710c3c
DJ
3252fi
3253
11a67599 3254
1c710c3c
DJ
3255fi
3256if test -z "$ac_cv_prog_CC"; then
3257 ac_ct_CC=$CC
fb0103e5
RG
3258 # Extract the first word of "gcc", so it can be a program name with args.
3259set dummy gcc; ac_word=$2
11a67599
ZW
3260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
3262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
3265 if test -n "$ac_ct_CC"; then
3266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267else
3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3275 ac_cv_prog_ac_ct_CC="gcc"
3276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279done
3280done
11a67599 3281IFS=$as_save_IFS
1c710c3c
DJ
3282
3283fi
3284fi
3285ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286if test -n "$ac_ct_CC"; then
11a67599
ZW
3287 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3288echo "${ECHO_T}$ac_ct_CC" >&6; }
1c710c3c 3289else
11a67599
ZW
3290 { echo "$as_me:$LINENO: result: no" >&5
3291echo "${ECHO_T}no" >&6; }
1c710c3c
DJ
3292fi
3293
11a67599
ZW
3294 if test "x$ac_ct_CC" = x; then
3295 CC=""
3296 else
3297 case $cross_compiling:$ac_tool_warned in
3298yes:)
3299{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3300whose name does not start with the host triplet. If you think this
3301configuration is useful to you, please write to autoconf@gnu.org." >&5
3302echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3303whose name does not start with the host triplet. If you think this
3304configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3305ac_tool_warned=yes ;;
3306esac
3307 CC=$ac_ct_CC
3308 fi
1c710c3c
DJ
3309else
3310 CC="$ac_cv_prog_CC"
3311fi
3312
3313if test -z "$CC"; then
11a67599
ZW
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3316set dummy ${ac_tool_prefix}cc; ac_word=$2
11a67599
ZW
3317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
3319if test "${ac_cv_prog_CC+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3321else
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3324else
1c710c3c
DJ
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3332 ac_cv_prog_CC="${ac_tool_prefix}cc"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336done
3337done
11a67599 3338IFS=$as_save_IFS
1c710c3c 3339
0b0dc272 3340fi
0b0dc272 3341fi
1c710c3c 3342CC=$ac_cv_prog_CC
af71363e 3343if test -n "$CC"; then
11a67599
ZW
3344 { echo "$as_me:$LINENO: result: $CC" >&5
3345echo "${ECHO_T}$CC" >&6; }
0b0dc272 3346else
11a67599
ZW
3347 { echo "$as_me:$LINENO: result: no" >&5
3348echo "${ECHO_T}no" >&6; }
0b0dc272
AM
3349fi
3350
1c710c3c 3351
11a67599 3352 fi
1c710c3c 3353fi
55ffb5ed
NN
3354if test -z "$CC"; then
3355 # Extract the first word of "cc", so it can be a program name with args.
3356set dummy cc; ac_word=$2
11a67599
ZW
3357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
3359if test "${ac_cv_prog_CC+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3361else
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3364else
0b0dc272 3365 ac_prog_rejected=no
1c710c3c
DJ
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 3372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3374 ac_prog_rejected=yes
3375 continue
3376 fi
3377 ac_cv_prog_CC="cc"
3378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381done
3382done
11a67599 3383IFS=$as_save_IFS
1c710c3c 3384
55ffb5ed
NN
3385if test $ac_prog_rejected = yes; then
3386 # We found a bogon in the path, so make sure we never use it.
3387 set dummy $ac_cv_prog_CC
3388 shift
1c710c3c 3389 if test $# != 0; then
55ffb5ed
NN
3390 # We chose a different compiler from the bogus one.
3391 # However, it has the same basename, so the bogon will be chosen
3392 # first if we set CC to just the basename; use the full file name.
3393 shift
1c710c3c 3394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3395 fi
3396fi
3397fi
3398fi
1c710c3c 3399CC=$ac_cv_prog_CC
55ffb5ed 3400if test -n "$CC"; then
11a67599
ZW
3401 { echo "$as_me:$LINENO: result: $CC" >&5
3402echo "${ECHO_T}$CC" >&6; }
55ffb5ed 3403else
11a67599
ZW
3404 { echo "$as_me:$LINENO: result: no" >&5
3405echo "${ECHO_T}no" >&6; }
55ffb5ed
NN
3406fi
3407
11a67599 3408
1c710c3c
DJ
3409fi
3410if test -z "$CC"; then
3411 if test -n "$ac_tool_prefix"; then
11a67599 3412 for ac_prog in cl.exe
1c710c3c
DJ
3413 do
3414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3415set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11a67599
ZW
3416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
3418if test "${ac_cv_prog_CC+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3420else
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3423else
1c710c3c
DJ
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435done
3436done
11a67599 3437IFS=$as_save_IFS
1c710c3c 3438
55ffb5ed
NN
3439fi
3440fi
1c710c3c 3441CC=$ac_cv_prog_CC
55ffb5ed 3442if test -n "$CC"; then
11a67599
ZW
3443 { echo "$as_me:$LINENO: result: $CC" >&5
3444echo "${ECHO_T}$CC" >&6; }
a4b9e93e 3445else
11a67599
ZW
3446 { echo "$as_me:$LINENO: result: no" >&5
3447echo "${ECHO_T}no" >&6; }
fb0103e5 3448fi
af71363e 3449
11a67599 3450
1c710c3c
DJ
3451 test -n "$CC" && break
3452 done
af71363e 3453fi
1c710c3c
DJ
3454if test -z "$CC"; then
3455 ac_ct_CC=$CC
11a67599 3456 for ac_prog in cl.exe
1c710c3c
DJ
3457do
3458 # Extract the first word of "$ac_prog", so it can be a program name with args.
3459set dummy $ac_prog; ac_word=$2
11a67599
ZW
3460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
3462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3464else
1c710c3c
DJ
3465 if test -n "$ac_ct_CC"; then
3466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3467else
1c710c3c
DJ
3468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469for as_dir in $PATH
3470do
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3475 ac_cv_prog_ac_ct_CC="$ac_prog"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3478 fi
3479done
3480done
11a67599 3481IFS=$as_save_IFS
1c710c3c 3482
af71363e
AS
3483fi
3484fi
1c710c3c
DJ
3485ac_ct_CC=$ac_cv_prog_ac_ct_CC
3486if test -n "$ac_ct_CC"; then
11a67599
ZW
3487 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3488echo "${ECHO_T}$ac_ct_CC" >&6; }
fb0103e5 3489else
11a67599
ZW
3490 { echo "$as_me:$LINENO: result: no" >&5
3491echo "${ECHO_T}no" >&6; }
af71363e 3492fi
0b0dc272 3493
11a67599 3494
1c710c3c
DJ
3495 test -n "$ac_ct_CC" && break
3496done
3497
11a67599
ZW
3498 if test "x$ac_ct_CC" = x; then
3499 CC=""
3500 else
3501 case $cross_compiling:$ac_tool_warned in
3502yes:)
3503{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3504whose name does not start with the host triplet. If you think this
3505configuration is useful to you, please write to autoconf@gnu.org." >&5
3506echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3507whose name does not start with the host triplet. If you think this
3508configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3509ac_tool_warned=yes ;;
3510esac
3511 CC=$ac_ct_CC
3512 fi
1c710c3c
DJ
3513fi
3514
3515fi
3516
3517
3518test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3519See \`config.log' for more details." >&5
3520echo "$as_me: error: no acceptable C compiler found in \$PATH
3521See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }
3523
3524# Provide some information about the compiler.
11a67599 3525echo "$as_me:$LINENO: checking for C compiler version" >&5
1c710c3c 3526ac_compiler=`set X $ac_compile; echo $2`
11a67599
ZW
3527{ (ac_try="$ac_compiler --version >&5"
3528case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531esac
3532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_compiler --version >&5") 2>&5
1c710c3c
DJ
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }
11a67599
ZW
3537{ (ac_try="$ac_compiler -v >&5"
3538case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541esac
3542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_compiler -v >&5") 2>&5
1c710c3c
DJ
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }
11a67599
ZW
3547{ (ac_try="$ac_compiler -V >&5"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compiler -V >&5") 2>&5
1c710c3c
DJ
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }
3557
3558cat >conftest.$ac_ext <<_ACEOF
3559/* confdefs.h. */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3563/* end confdefs.h. */
3564
3565int
3566main ()
3567{
3568
3569 ;
3570 return 0;
3571}
3572_ACEOF
3573ac_clean_files_save=$ac_clean_files
3574ac_clean_files="$ac_clean_files a.out a.exe b.out"
3575# Try to create an executable without -o first, disregard a.out.
3576# It will help us diagnose broken compilers, and finding out an intuition
3577# of exeext.
11a67599
ZW
3578{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3579echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1c710c3c 3580ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11a67599
ZW
3581#
3582# List of possible output files, starting from the most likely.
3583# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3584# only as a last resort. b.out is created by i960 compilers.
3585ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3586#
3587# The IRIX 6 linker writes into existing files which may not be
3588# executable, retaining their permissions. Remove them first so a
3589# subsequent execution test works.
3590ac_rmfiles=
3591for ac_file in $ac_files
3592do
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3595 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3596 esac
3597done
3598rm -f $ac_rmfiles
3599
3600if { (ac_try="$ac_link_default"
3601case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604esac
3605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_link_default") 2>&5
1c710c3c
DJ
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; then
11a67599
ZW
3610 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3611# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3612# in a Makefile. We should not override ac_cv_exeext if it was cached,
3613# so that the user can short-circuit this test for compilers unknown to
3614# Autoconf.
3615for ac_file in $ac_files ''
1c710c3c
DJ
3616do
3617 test -f "$ac_file" || continue
3618 case $ac_file in
11a67599 3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1c710c3c
DJ
3620 ;;
3621 [ab].out )
3622 # We found the default executable, but exeext='' is most
3623 # certainly right.
3624 break;;
3625 *.* )
11a67599
ZW
3626 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3627 then :; else
3628 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3629 fi
3630 # We set ac_cv_exeext here because the later test for it is not
3631 # safe: cross compilers may not add the suffix if given an `-o'
3632 # argument, so we may need to know it at that point already.
3633 # Even if this section looks crufty: it has the advantage of
3634 # actually working.
1c710c3c
DJ
3635 break;;
3636 * )
3637 break;;
3638 esac
3639done
11a67599
ZW
3640test "$ac_cv_exeext" = no && ac_cv_exeext=
3641
1c710c3c 3642else
11a67599
ZW
3643 ac_file=''
3644fi
3645
3646{ echo "$as_me:$LINENO: result: $ac_file" >&5
3647echo "${ECHO_T}$ac_file" >&6; }
3648if test -z "$ac_file"; then
1c710c3c
DJ
3649 echo "$as_me: failed program was:" >&5
3650sed 's/^/| /' conftest.$ac_ext >&5
3651
3652{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3653See \`config.log' for more details." >&5
3654echo "$as_me: error: C compiler cannot create executables
3655See \`config.log' for more details." >&2;}
3656 { (exit 77); exit 77; }; }
3657fi
3658
3659ac_exeext=$ac_cv_exeext
1c710c3c 3660
11a67599 3661# Check that the compiler produces executables we can run. If not, either
1c710c3c 3662# the compiler is broken, or we cross compile.
11a67599
ZW
3663{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3664echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1c710c3c
DJ
3665# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3666# If not cross compiling, check that we can run a simple program.
3667if test "$cross_compiling" != yes; then
3668 if { ac_try='./$ac_file'
11a67599
ZW
3669 { (case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672esac
3673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_try") 2>&5
1c710c3c
DJ
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 cross_compiling=no
3679 else
3680 if test "$cross_compiling" = maybe; then
3681 cross_compiling=yes
3682 else
3683 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3684If you meant to cross compile, use \`--host'.
3685See \`config.log' for more details." >&5
3686echo "$as_me: error: cannot run C compiled programs.
3687If you meant to cross compile, use \`--host'.
3688See \`config.log' for more details." >&2;}
3689 { (exit 1); exit 1; }; }
3690 fi
3691 fi
3692fi
11a67599
ZW
3693{ echo "$as_me:$LINENO: result: yes" >&5
3694echo "${ECHO_T}yes" >&6; }
1c710c3c
DJ
3695
3696rm -f a.out a.exe conftest$ac_cv_exeext b.out
3697ac_clean_files=$ac_clean_files_save
11a67599 3698# Check that the compiler produces executables we can run. If not, either
1c710c3c 3699# the compiler is broken, or we cross compile.
11a67599
ZW
3700{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3701echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3702{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3703echo "${ECHO_T}$cross_compiling" >&6; }
3704
3705{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3706echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3707if { (ac_try="$ac_link"
3708case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
3712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_link") 2>&5
1c710c3c
DJ
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; then
3717 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3718# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3719# work properly (i.e., refer to `conftest.exe'), while it won't with
3720# `rm'.
3721for ac_file in conftest.exe conftest conftest.*; do
3722 test -f "$ac_file" || continue
3723 case $ac_file in
11a67599 3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1c710c3c 3725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
3726 break;;
3727 * ) break;;
3728 esac
3729done
af71363e 3730else
1c710c3c
DJ
3731 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3732See \`config.log' for more details." >&5
3733echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3734See \`config.log' for more details." >&2;}
3735 { (exit 1); exit 1; }; }
3736fi
3737
3738rm -f conftest$ac_cv_exeext
11a67599
ZW
3739{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3740echo "${ECHO_T}$ac_cv_exeext" >&6; }
1c710c3c
DJ
3741
3742rm -f conftest.$ac_ext
3743EXEEXT=$ac_cv_exeext
3744ac_exeext=$EXEEXT
11a67599
ZW
3745{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3746echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1c710c3c
DJ
3747if test "${ac_cv_objext+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749else
3750 cat >conftest.$ac_ext <<_ACEOF
3751/* confdefs.h. */
3752_ACEOF
3753cat confdefs.h >>conftest.$ac_ext
3754cat >>conftest.$ac_ext <<_ACEOF
3755/* end confdefs.h. */
3756
3757int
3758main ()
3759{
3760
3761 ;
3762 return 0;
3763}
3764_ACEOF
3765rm -f conftest.o conftest.obj
11a67599
ZW
3766if { (ac_try="$ac_compile"
3767case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770esac
3771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_compile") 2>&5
1c710c3c
DJ
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; then
11a67599
ZW
3776 for ac_file in conftest.o conftest.obj conftest.*; do
3777 test -f "$ac_file" || continue;
1c710c3c 3778 case $ac_file in
11a67599 3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1c710c3c
DJ
3780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3781 break;;
3782 esac
3783done
3784else
3785 echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3789See \`config.log' for more details." >&5
3790echo "$as_me: error: cannot compute suffix of object files: cannot compile
3791See \`config.log' for more details." >&2;}
3792 { (exit 1); exit 1; }; }
3793fi
3794
3795rm -f conftest.$ac_cv_objext conftest.$ac_ext
3796fi
11a67599
ZW
3797{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3798echo "${ECHO_T}$ac_cv_objext" >&6; }
1c710c3c
DJ
3799OBJEXT=$ac_cv_objext
3800ac_objext=$OBJEXT
11a67599
ZW
3801{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3802echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1c710c3c
DJ
3803if test "${ac_cv_c_compiler_gnu+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805else
3806 cat >conftest.$ac_ext <<_ACEOF
3807/* confdefs.h. */
3808_ACEOF
3809cat confdefs.h >>conftest.$ac_ext
3810cat >>conftest.$ac_ext <<_ACEOF
3811/* end confdefs.h. */
3812
3813int
3814main ()
3815{
3816#ifndef __GNUC__
3817 choke me
3818#endif
3819
3820 ;
3821 return 0;
3822}
3823_ACEOF
3824rm -f conftest.$ac_objext
11a67599
ZW
3825if { (ac_try="$ac_compile"
3826case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829esac
3830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_compile") 2>conftest.er1
1c710c3c
DJ
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
3837 (exit $ac_status); } && {
3838 test -z "$ac_c_werror_flag" ||
3839 test ! -s conftest.err
3840 } && test -s conftest.$ac_objext; then
1c710c3c
DJ
3841 ac_compiler_gnu=yes
3842else
3843 echo "$as_me: failed program was:" >&5
3844sed 's/^/| /' conftest.$ac_ext >&5
3845
11a67599 3846 ac_compiler_gnu=no
1c710c3c 3847fi
11a67599
ZW
3848
3849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3850ac_cv_c_compiler_gnu=$ac_compiler_gnu
3851
3852fi
11a67599
ZW
3853{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3854echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1c710c3c
DJ
3855GCC=`test $ac_compiler_gnu = yes && echo yes`
3856ac_test_CFLAGS=${CFLAGS+set}
3857ac_save_CFLAGS=$CFLAGS
11a67599
ZW
3858{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3859echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1c710c3c
DJ
3860if test "${ac_cv_prog_cc_g+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862else
11a67599
ZW
3863 ac_save_c_werror_flag=$ac_c_werror_flag
3864 ac_c_werror_flag=yes
3865 ac_cv_prog_cc_g=no
3866 CFLAGS="-g"
3867 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3868/* confdefs.h. */
3869_ACEOF
3870cat confdefs.h >>conftest.$ac_ext
3871cat >>conftest.$ac_ext <<_ACEOF
3872/* end confdefs.h. */
3873
3874int
3875main ()
3876{
3877
3878 ;
3879 return 0;
3880}
3881_ACEOF
3882rm -f conftest.$ac_objext
11a67599
ZW
3883if { (ac_try="$ac_compile"
3884case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887esac
3888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
1c710c3c
DJ
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
3895 (exit $ac_status); } && {
3896 test -z "$ac_c_werror_flag" ||
3897 test ! -s conftest.err
3898 } && test -s conftest.$ac_objext; then
3899 ac_cv_prog_cc_g=yes
3900else
3901 echo "$as_me: failed program was:" >&5
3902sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 CFLAGS=""
3905 cat >conftest.$ac_ext <<_ACEOF
3906/* confdefs.h. */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h. */
3911
3912int
3913main ()
3914{
3915
3916 ;
3917 return 0;
3918}
3919_ACEOF
3920rm -f conftest.$ac_objext
3921if { (ac_try="$ac_compile"
3922case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925esac
3926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_compile") 2>conftest.er1
1c710c3c 3928 ac_status=$?
11a67599
ZW
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
1c710c3c 3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
3933 (exit $ac_status); } && {
3934 test -z "$ac_c_werror_flag" ||
3935 test ! -s conftest.err
3936 } && test -s conftest.$ac_objext; then
3937 :
3938else
3939 echo "$as_me: failed program was:" >&5
3940sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 ac_c_werror_flag=$ac_save_c_werror_flag
3943 CFLAGS="-g"
3944 cat >conftest.$ac_ext <<_ACEOF
3945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
3950
3951int
3952main ()
3953{
3954
3955 ;
3956 return 0;
3957}
3958_ACEOF
3959rm -f conftest.$ac_objext
3960if { (ac_try="$ac_compile"
3961case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964esac
3965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_compile") 2>conftest.er1
1c710c3c 3967 ac_status=$?
11a67599
ZW
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
1c710c3c 3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
3972 (exit $ac_status); } && {
3973 test -z "$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 } && test -s conftest.$ac_objext; then
55ffb5ed
NN
3976 ac_cv_prog_cc_g=yes
3977else
1c710c3c
DJ
3978 echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3980
11a67599
ZW
3981
3982fi
3983
3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 3985fi
11a67599
ZW
3986
3987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988fi
3989
3990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_c_werror_flag=$ac_save_c_werror_flag
1c710c3c 3992fi
11a67599
ZW
3993{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3994echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
55ffb5ed 3995if test "$ac_test_CFLAGS" = set; then
1c710c3c 3996 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3997elif test $ac_cv_prog_cc_g = yes; then
3998 if test "$GCC" = yes; then
3999 CFLAGS="-g -O2"
4000 else
4001 CFLAGS="-g"
4002 fi
4003else
4004 if test "$GCC" = yes; then
4005 CFLAGS="-O2"
4006 else
4007 CFLAGS=
4008 fi
4009fi
11a67599
ZW
4010{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4011echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4012if test "${ac_cv_prog_cc_c89+set}" = set; then
1c710c3c
DJ
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
11a67599 4015 ac_cv_prog_cc_c89=no
1c710c3c
DJ
4016ac_save_CC=$CC
4017cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023#include <stdarg.h>
4024#include <stdio.h>
4025#include <sys/types.h>
4026#include <sys/stat.h>
4027/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4028struct buf { int x; };
4029FILE * (*rcsopen) (struct buf *, struct stat *, int);
4030static char *e (p, i)
4031 char **p;
4032 int i;
4033{
4034 return p[i];
4035}
4036static char *f (char * (*g) (char **, int), char **p, ...)
4037{
4038 char *s;
4039 va_list v;
4040 va_start (v,p);
4041 s = g (p, va_arg (v,int));
4042 va_end (v);
4043 return s;
4044}
4045
4046/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4047 function prototypes and stuff, but not '\xHH' hex character constants.
4048 These don't provoke an error unfortunately, instead are silently treated
11a67599 4049 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4050 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4051 array size at least. It's necessary to write '\x00'==0 to get something
11a67599 4052 that's true only with -std. */
1c710c3c
DJ
4053int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4054
11a67599
ZW
4055/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4056 inside strings and character constants. */
4057#define FOO(x) 'x'
4058int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4059
1c710c3c
DJ
4060int test (int i, double x);
4061struct s1 {int (*f) (int a);};
4062struct s2 {int (*f) (double a);};
4063int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4064int argc;
4065char **argv;
4066int
4067main ()
4068{
4069return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4070 ;
4071 return 0;
4072}
4073_ACEOF
11a67599
ZW
4074for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4075 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4076do
4077 CC="$ac_save_CC $ac_arg"
4078 rm -f conftest.$ac_objext
11a67599
ZW
4079if { (ac_try="$ac_compile"
4080case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083esac
4084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
1c710c3c
DJ
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
4091 (exit $ac_status); } && {
4092 test -z "$ac_c_werror_flag" ||
4093 test ! -s conftest.err
4094 } && test -s conftest.$ac_objext; then
4095 ac_cv_prog_cc_c89=$ac_arg
1c710c3c
DJ
4096else
4097 echo "$as_me: failed program was:" >&5
4098sed 's/^/| /' conftest.$ac_ext >&5
4099
11a67599 4100
1c710c3c 4101fi
11a67599
ZW
4102
4103rm -f core conftest.err conftest.$ac_objext
4104 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4105done
11a67599 4106rm -f conftest.$ac_ext
1c710c3c
DJ
4107CC=$ac_save_CC
4108
4109fi
11a67599
ZW
4110# AC_CACHE_VAL
4111case "x$ac_cv_prog_cc_c89" in
4112 x)
4113 { echo "$as_me:$LINENO: result: none needed" >&5
4114echo "${ECHO_T}none needed" >&6; } ;;
4115 xno)
4116 { echo "$as_me:$LINENO: result: unsupported" >&5
4117echo "${ECHO_T}unsupported" >&6; } ;;
1c710c3c 4118 *)
11a67599
ZW
4119 CC="$CC $ac_cv_prog_cc_c89"
4120 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4121echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c
DJ
4122esac
4123
1c710c3c 4124
1c710c3c
DJ
4125ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
55ffb5ed 4130
11a67599 4131ac_ext=cpp
c3a86da9
DJ
4132ac_cpp='$CXXCPP $CPPFLAGS'
4133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11a67599
ZW
4136if test -z "$CXX"; then
4137 if test -n "$CCC"; then
4138 CXX=$CCC
4139 else
4140 if test -n "$ac_tool_prefix"; then
4141 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4142 do
4143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4144set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11a67599
ZW
4145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
c3a86da9
DJ
4147if test "${ac_cv_prog_CXX+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150 if test -n "$CXX"; then
4151 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4152else
4153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154for as_dir in $PATH
4155do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9
DJ
4160 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 break 2
4163 fi
4164done
4165done
11a67599 4166IFS=$as_save_IFS
55ffb5ed 4167
c3a86da9
DJ
4168fi
4169fi
4170CXX=$ac_cv_prog_CXX
4171if test -n "$CXX"; then
11a67599
ZW
4172 { echo "$as_me:$LINENO: result: $CXX" >&5
4173echo "${ECHO_T}$CXX" >&6; }
c3a86da9 4174else
11a67599
ZW
4175 { echo "$as_me:$LINENO: result: no" >&5
4176echo "${ECHO_T}no" >&6; }
c3a86da9
DJ
4177fi
4178
11a67599 4179
c3a86da9
DJ
4180 test -n "$CXX" && break
4181 done
4182fi
4183if test -z "$CXX"; then
4184 ac_ct_CXX=$CXX
11a67599 4185 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4186do
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188set dummy $ac_prog; ac_word=$2
11a67599
ZW
4189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
c3a86da9
DJ
4191if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194 if test -n "$ac_ct_CXX"; then
4195 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4196else
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 4203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9
DJ
4204 ac_cv_prog_ac_ct_CXX="$ac_prog"
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208done
4209done
11a67599 4210IFS=$as_save_IFS
c3a86da9
DJ
4211
4212fi
4213fi
4214ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4215if test -n "$ac_ct_CXX"; then
11a67599
ZW
4216 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4217echo "${ECHO_T}$ac_ct_CXX" >&6; }
c3a86da9 4218else
11a67599
ZW
4219 { echo "$as_me:$LINENO: result: no" >&5
4220echo "${ECHO_T}no" >&6; }
c3a86da9
DJ
4221fi
4222
11a67599 4223
c3a86da9
DJ
4224 test -n "$ac_ct_CXX" && break
4225done
c3a86da9 4226
11a67599
ZW
4227 if test "x$ac_ct_CXX" = x; then
4228 CXX="g++"
4229 else
4230 case $cross_compiling:$ac_tool_warned in
4231yes:)
4232{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4233whose name does not start with the host triplet. If you think this
4234configuration is useful to you, please write to autoconf@gnu.org." >&5
4235echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4236whose name does not start with the host triplet. If you think this
4237configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4238ac_tool_warned=yes ;;
4239esac
4240 CXX=$ac_ct_CXX
4241 fi
c3a86da9
DJ
4242fi
4243
11a67599
ZW
4244 fi
4245fi
c3a86da9 4246# Provide some information about the compiler.
11a67599 4247echo "$as_me:$LINENO: checking for C++ compiler version" >&5
c3a86da9 4248ac_compiler=`set X $ac_compile; echo $2`
11a67599
ZW
4249{ (ac_try="$ac_compiler --version >&5"
4250case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compiler --version >&5") 2>&5
c3a86da9
DJ
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }
11a67599
ZW
4259{ (ac_try="$ac_compiler -v >&5"
4260case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compiler -v >&5") 2>&5
c3a86da9
DJ
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }
11a67599
ZW
4269{ (ac_try="$ac_compiler -V >&5"
4270case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273esac
4274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_compiler -V >&5") 2>&5
c3a86da9
DJ
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }
4279
11a67599
ZW
4280{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4281echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
c3a86da9
DJ
4282if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284else
4285 cat >conftest.$ac_ext <<_ACEOF
4286/* confdefs.h. */
4287_ACEOF
4288cat confdefs.h >>conftest.$ac_ext
4289cat >>conftest.$ac_ext <<_ACEOF
4290/* end confdefs.h. */
4291
4292int
4293main ()
4294{
4295#ifndef __GNUC__
4296 choke me
4297#endif
4298
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303rm -f conftest.$ac_objext
11a67599
ZW
4304if { (ac_try="$ac_compile"
4305case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_compile") 2>conftest.er1
c3a86da9
DJ
4311 ac_status=$?
4312 grep -v '^ *+' conftest.er1 >conftest.err
4313 rm -f conftest.er1
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
4316 (exit $ac_status); } && {
4317 test -z "$ac_cxx_werror_flag" ||
4318 test ! -s conftest.err
4319 } && test -s conftest.$ac_objext; then
c3a86da9
DJ
4320 ac_compiler_gnu=yes
4321else
4322 echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
4324
11a67599 4325 ac_compiler_gnu=no
c3a86da9 4326fi
11a67599
ZW
4327
4328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4329ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4330
4331fi
11a67599
ZW
4332{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4333echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
c3a86da9
DJ
4334GXX=`test $ac_compiler_gnu = yes && echo yes`
4335ac_test_CXXFLAGS=${CXXFLAGS+set}
4336ac_save_CXXFLAGS=$CXXFLAGS
11a67599
ZW
4337{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4338echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
c3a86da9
DJ
4339if test "${ac_cv_prog_cxx_g+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4341else
11a67599
ZW
4342 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4343 ac_cxx_werror_flag=yes
4344 ac_cv_prog_cxx_g=no
4345 CXXFLAGS="-g"
4346 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4347/* confdefs.h. */
4348_ACEOF
4349cat confdefs.h >>conftest.$ac_ext
4350cat >>conftest.$ac_ext <<_ACEOF
4351/* end confdefs.h. */
4352
4353int
4354main ()
4355{
4356
4357 ;
4358 return 0;
4359}
4360_ACEOF
4361rm -f conftest.$ac_objext
11a67599
ZW
4362if { (ac_try="$ac_compile"
4363case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366esac
4367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_compile") 2>conftest.er1
c3a86da9
DJ
4369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
4374 (exit $ac_status); } && {
4375 test -z "$ac_cxx_werror_flag" ||
4376 test ! -s conftest.err
4377 } && test -s conftest.$ac_objext; then
c3a86da9
DJ
4378 ac_cv_prog_cxx_g=yes
4379else
4380 echo "$as_me: failed program was:" >&5
4381sed 's/^/| /' conftest.$ac_ext >&5
4382
11a67599
ZW
4383 CXXFLAGS=""
4384 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4385/* confdefs.h. */
4386_ACEOF
4387cat confdefs.h >>conftest.$ac_ext
4388cat >>conftest.$ac_ext <<_ACEOF
4389/* end confdefs.h. */
11a67599 4390
c3a86da9
DJ
4391int
4392main ()
4393{
11a67599 4394
c3a86da9
DJ
4395 ;
4396 return 0;
4397}
4398_ACEOF
4399rm -f conftest.$ac_objext
11a67599
ZW
4400if { (ac_try="$ac_compile"
4401case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404esac
4405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_compile") 2>conftest.er1
c3a86da9
DJ
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
4412 (exit $ac_status); } && {
4413 test -z "$ac_cxx_werror_flag" ||
4414 test ! -s conftest.err
4415 } && test -s conftest.$ac_objext; then
c3a86da9
DJ
4416 :
4417else
4418 echo "$as_me: failed program was:" >&5
4419sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4420
11a67599
ZW
4421 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4422 CXXFLAGS="-g"
4423 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4424/* confdefs.h. */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h. */
11a67599 4429
c3a86da9
DJ
4430int
4431main ()
4432{
11a67599 4433
c3a86da9
DJ
4434 ;
4435 return 0;
4436}
4437_ACEOF
4438rm -f conftest.$ac_objext
11a67599
ZW
4439if { (ac_try="$ac_compile"
4440case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443esac
4444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_compile") 2>conftest.er1
c3a86da9
DJ
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
4451 (exit $ac_status); } && {
4452 test -z "$ac_cxx_werror_flag" ||
4453 test ! -s conftest.err
4454 } && test -s conftest.$ac_objext; then
4455 ac_cv_prog_cxx_g=yes
c3a86da9
DJ
4456else
4457 echo "$as_me: failed program was:" >&5
4458sed 's/^/| /' conftest.$ac_ext >&5
4459
11a67599 4460
c3a86da9 4461fi
11a67599
ZW
4462
4463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464fi
4465
4466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4467fi
4468
11a67599
ZW
4469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4471fi
4472{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4473echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4474if test "$ac_test_CXXFLAGS" = set; then
4475 CXXFLAGS=$ac_save_CXXFLAGS
4476elif test $ac_cv_prog_cxx_g = yes; then
4477 if test "$GXX" = yes; then
4478 CXXFLAGS="-g -O2"
4479 else
4480 CXXFLAGS="-g"
4481 fi
4482else
4483 if test "$GXX" = yes; then
4484 CXXFLAGS="-O2"
4485 else
4486 CXXFLAGS=
4487 fi
4488fi
c3a86da9
DJ
4489ac_ext=c
4490ac_cpp='$CPP $CPPFLAGS'
4491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495
4496# We must set the default linker to the linker used by gcc for the correct
4497# operation of libtool. If LD is not defined and we are using gcc, try to
4498# set the LD default to the ld used by gcc.
4499if test -z "$LD"; then
4500 if test "$GCC" = yes; then
4501 case $build in
4502 *-*-mingw*)
4503 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4504 *)
4505 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4506 esac
4507 case $gcc_prog_ld in
4508 # Accept absolute paths.
4509 [\\/]* | [A-Za-z]:[\\/]*)
4510 LD="$gcc_prog_ld" ;;
4511 esac
4512 fi
23f6b2f9
PB
4513fi
4514
23f6b2f9
PB
4515
4516
55ffb5ed 4517
1c710c3c
DJ
4518if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4520set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
11a67599
ZW
4521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
4523if test "${ac_cv_prog_GNATBIND+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4525else
4526 if test -n "$GNATBIND"; then
4527 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4528else
1c710c3c
DJ
4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4536 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4539 fi
4540done
4541done
11a67599 4542IFS=$as_save_IFS
1c710c3c 4543
55ffb5ed
NN
4544fi
4545fi
1c710c3c 4546GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4547if test -n "$GNATBIND"; then
11a67599
ZW
4548 { echo "$as_me:$LINENO: result: $GNATBIND" >&5
4549echo "${ECHO_T}$GNATBIND" >&6; }
55ffb5ed 4550else
11a67599
ZW
4551 { echo "$as_me:$LINENO: result: no" >&5
4552echo "${ECHO_T}no" >&6; }
55ffb5ed
NN
4553fi
4554
11a67599 4555
1c710c3c 4556fi
55ffb5ed 4557if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4558 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4559 # Extract the first word of "gnatbind", so it can be a program name with args.
4560set dummy gnatbind; ac_word=$2
11a67599
ZW
4561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
4563if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4565else
1c710c3c
DJ
4566 if test -n "$ac_ct_GNATBIND"; then
4567 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4568else
1c710c3c
DJ
4569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570for as_dir in $PATH
4571do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4576 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4579 fi
4580done
4581done
11a67599 4582IFS=$as_save_IFS
1c710c3c 4583
55ffb5ed
NN
4584fi
4585fi
1c710c3c
DJ
4586ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4587if test -n "$ac_ct_GNATBIND"; then
11a67599
ZW
4588 { echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4589echo "${ECHO_T}$ac_ct_GNATBIND" >&6; }
55ffb5ed 4590else
11a67599
ZW
4591 { echo "$as_me:$LINENO: result: no" >&5
4592echo "${ECHO_T}no" >&6; }
55ffb5ed
NN
4593fi
4594
11a67599
ZW
4595 if test "x$ac_ct_GNATBIND" = x; then
4596 GNATBIND="no"
4597 else
4598 case $cross_compiling:$ac_tool_warned in
4599yes:)
4600{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4601whose name does not start with the host triplet. If you think this
4602configuration is useful to you, please write to autoconf@gnu.org." >&5
4603echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4604whose name does not start with the host triplet. If you think this
4605configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4606ac_tool_warned=yes ;;
4607esac
4608 GNATBIND=$ac_ct_GNATBIND
4609 fi
55ffb5ed 4610else
1c710c3c 4611 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4612fi
4613
1c710c3c
DJ
4614if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4616set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
11a67599
ZW
4617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
4619if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4621else
4622 if test -n "$GNATMAKE"; then
4623 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4624else
1c710c3c
DJ
4625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4632 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636done
4637done
11a67599 4638IFS=$as_save_IFS
1c710c3c 4639
5305be7e
RG
4640fi
4641fi
1c710c3c 4642GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4643if test -n "$GNATMAKE"; then
11a67599
ZW
4644 { echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4645echo "${ECHO_T}$GNATMAKE" >&6; }
5305be7e 4646else
11a67599
ZW
4647 { echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6; }
5305be7e
RG
4649fi
4650
11a67599 4651
1c710c3c 4652fi
5305be7e 4653if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4654 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4655 # Extract the first word of "gnatmake", so it can be a program name with args.
4656set dummy gnatmake; ac_word=$2
11a67599
ZW
4657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
4659if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4661else
1c710c3c
DJ
4662 if test -n "$ac_ct_GNATMAKE"; then
4663 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4664else
1c710c3c
DJ
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4672 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676done
4677done
11a67599 4678IFS=$as_save_IFS
1c710c3c 4679
5305be7e
RG
4680fi
4681fi
1c710c3c
DJ
4682ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4683if test -n "$ac_ct_GNATMAKE"; then
11a67599
ZW
4684 { echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4685echo "${ECHO_T}$ac_ct_GNATMAKE" >&6; }
5305be7e 4686else
11a67599
ZW
4687 { echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6; }
5305be7e
RG
4689fi
4690
11a67599
ZW
4691 if test "x$ac_ct_GNATMAKE" = x; then
4692 GNATMAKE="no"
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695yes:)
4696{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4697whose name does not start with the host triplet. If you think this
4698configuration is useful to you, please write to autoconf@gnu.org." >&5
4699echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4700whose name does not start with the host triplet. If you think this
4701configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4702ac_tool_warned=yes ;;
4703esac
4704 GNATMAKE=$ac_ct_GNATMAKE
4705 fi
5305be7e 4706else
1c710c3c 4707 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4708fi
4709
11a67599
ZW
4710{ echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4711echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6; }
1c710c3c
DJ
4712if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4714else
4715 cat >conftest.adb <<EOF
4716procedure conftest is begin null; end conftest;
4717EOF
4718acx_cv_cc_gcc_supports_ada=no
4719# There is a bug in old released versions of GCC which causes the
4720# driver to exit successfully when the appropriate language module
4721# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4722# Therefore we must check for the error message as well as an
4723# unsuccessful exit.
1db673ca
RO
4724# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4725# given a .adb file, but produce no object file. So we must check
4726# if an object file was really produced to guard against this.
55ffb5ed 4727errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4728if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4729 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4730fi
4731rm -f conftest.*
4732fi
11a67599
ZW
4733{ echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4734echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 4735
5305be7e 4736if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4737 have_gnat=yes
4738else
4739 have_gnat=no
4740fi
4741
11a67599
ZW
4742{ echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4743echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6; }
1c710c3c
DJ
4744if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4746else
4747 echo abfoo >t1
4748 echo cdfoo >t2
4749 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4750 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4751 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4752 :
4753 else
4754 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4755 fi
4756 fi
a76494aa
PB
4757 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4758 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4759 :
a76494aa
PB
4760 else
4761 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4762 fi
4763 fi
4764 rm t1 t2
4765
4766fi
11a67599
ZW
4767{ echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4768echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
4769do_compare="$gcc_cv_prog_cmp_skip"
4770
4771
55ffb5ed 4772
bebf829d 4773# Check for GMP and MPFR
e69bf64b 4774gmplibs="-lmpfr -lgmp"
6de9cd9a 4775gmpinc=
e69bf64b
PB
4776have_gmp=no
4777
bebf829d
PB
4778# Specify a location for mpfr
4779# check for this first so it ends up on the link line before gmp.
1c710c3c 4780
11a67599 4781# Check whether --with-mpfr-dir was given.
bebf829d 4782if test "${with_mpfr_dir+set}" = set; then
11a67599 4783 withval=$with_mpfr_dir; { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4784Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4785echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4786Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4787 { (exit 1); exit 1; }; }
11a67599 4788fi
bebf829d
PB
4789
4790
11a67599
ZW
4791
4792# Check whether --with-mpfr was given.
bebf829d 4793if test "${with_mpfr+set}" = set; then
11a67599
ZW
4794 withval=$with_mpfr;
4795fi
1c710c3c 4796
bebf829d 4797
11a67599 4798# Check whether --with-mpfr_include was given.
8a877c9c 4799if test "${with_mpfr_include+set}" = set; then
11a67599
ZW
4800 withval=$with_mpfr_include;
4801fi
1c710c3c 4802
8a877c9c 4803
11a67599 4804# Check whether --with-mpfr_lib was given.
8a877c9c 4805if test "${with_mpfr_lib+set}" = set; then
11a67599
ZW
4806 withval=$with_mpfr_lib;
4807fi
8a877c9c 4808
bebf829d
PB
4809
4810if test "x$with_mpfr" != x; then
4811 gmplibs="-L$with_mpfr/lib $gmplibs"
4812 gmpinc="-I$with_mpfr/include"
4813fi
8a877c9c
KG
4814if test "x$with_mpfr_include" != x; then
4815 gmpinc="-I$with_mpfr_include"
4816fi
4817if test "x$with_mpfr_lib" != x; then
4818 gmplibs="-L$with_mpfr_lib $gmplibs"
4819fi
e69bf64b
PB
4820if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4821 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4822 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4823 # Do not test the mpfr version. Assume that it is sufficient, since
4824 # it is in the source tree, and the library has not been built yet
4825 # but it would be included on the link line in the version check below
4826 # hence making the test fail.
4827 have_gmp=yes
4828fi
bebf829d 4829
6de9cd9a 4830# Specify a location for gmp
1c710c3c 4831
11a67599 4832# Check whether --with-gmp-dir was given.
6de9cd9a 4833if test "${with_gmp_dir+set}" = set; then
11a67599 4834 withval=$with_gmp_dir; { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4835Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4836echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4837Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4838 { (exit 1); exit 1; }; }
11a67599
ZW
4839fi
4840
6de9cd9a 4841
6de9cd9a 4842
11a67599 4843# Check whether --with-gmp was given.
6de9cd9a 4844if test "${with_gmp+set}" = set; then
11a67599
ZW
4845 withval=$with_gmp;
4846fi
1c710c3c 4847
6de9cd9a 4848
11a67599 4849# Check whether --with-gmp_include was given.
8a877c9c 4850if test "${with_gmp_include+set}" = set; then
11a67599
ZW
4851 withval=$with_gmp_include;
4852fi
1c710c3c 4853
8a877c9c 4854
11a67599 4855# Check whether --with-gmp_lib was given.
8a877c9c 4856if test "${with_gmp_lib+set}" = set; then
11a67599
ZW
4857 withval=$with_gmp_lib;
4858fi
8a877c9c
KG
4859
4860
6de9cd9a 4861
bebf829d
PB
4862if test "x$with_gmp" != x; then
4863 gmplibs="-L$with_gmp/lib $gmplibs"
4864 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4865fi
8a877c9c
KG
4866if test "x$with_gmp_include" != x; then
4867 gmpinc="-I$with_gmp_include $gmpinc"
4868fi
4869if test "x$with_gmp_lib" != x; then
4870 gmplibs="-L$with_gmp_lib $gmplibs"
4871fi
e69bf64b
PB
4872if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4873 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4874 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4875 # Do not test the gmp version. Assume that it is sufficient, since
4876 # it is in the source tree, and the library has not been built yet
4877 # but it would be included on the link line in the version check below
4878 # hence making the test fail.
4879 have_gmp=yes
4880fi
6de9cd9a 4881
d943d7c4 4882if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4883 have_gmp=yes
4884 saved_CFLAGS="$CFLAGS"
4885 CFLAGS="$CFLAGS $gmpinc"
4886 # Check GMP actually works
11a67599
ZW
4887 { echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4888echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6; }
1c710c3c
DJ
4889
4890cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
6de9cd9a 4896#include "gmp.h"
1c710c3c
DJ
4897int
4898main ()
4899{
6de9cd9a 4900
e69bf64b
PB
4901 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4902 choke me
4903 #endif
1c710c3c
DJ
4904
4905 ;
4906 return 0;
4907}
4908_ACEOF
4909rm -f conftest.$ac_objext
11a67599
ZW
4910if { (ac_try="$ac_compile"
4911case "(($ac_try" in
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4914esac
4915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_compile") 2>conftest.er1
1c710c3c
DJ
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
4922 (exit $ac_status); } && {
4923 test -z "$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4925 } && test -s conftest.$ac_objext; then
4926 { echo "$as_me:$LINENO: result: yes" >&5
4927echo "${ECHO_T}yes" >&6; }
1c710c3c
DJ
4928else
4929 echo "$as_me: failed program was:" >&5
4930sed 's/^/| /' conftest.$ac_ext >&5
4931
11a67599
ZW
4932 { echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6; }; have_gmp=no
1c710c3c 4934fi
11a67599
ZW
4935
4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4937
e69bf64b
PB
4938 if test x"$have_gmp" = xyes; then
4939 saved_LIBS="$LIBS"
4940 LIBS="$LIBS $gmplibs"
11a67599
ZW
4941 { echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4942echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6; }
1c710c3c
DJ
4943 cat >conftest.$ac_ext <<_ACEOF
4944/* confdefs.h. */
4945_ACEOF
4946cat confdefs.h >>conftest.$ac_ext
4947cat >>conftest.$ac_ext <<_ACEOF
4948/* end confdefs.h. */
70ec446f 4949#include <gmp.h>
e69bf64b 4950 #include <mpfr.h>
1c710c3c
DJ
4951int
4952main ()
4953{
e48d66a9 4954
e69bf64b
PB
4955 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4956 choke me
4957 #endif
54e433bc
MK
4958 mpfr_t n;
4959 mpfr_t x;
e69bf64b 4960 int t;
54e433bc
MK
4961 mpfr_init (n);
4962 mpfr_init (x);
e69bf64b
PB
4963 mpfr_atan2 (n, n, x, GMP_RNDN);
4964 mpfr_erfc (n, x, GMP_RNDN);
4965 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4966
4967 ;
4968 return 0;
4969}
4970_ACEOF
4971rm -f conftest.$ac_objext conftest$ac_exeext
11a67599
ZW
4972if { (ac_try="$ac_link"
4973case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976esac
4977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_link") 2>conftest.er1
1c710c3c
DJ
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
4984 (exit $ac_status); } && {
4985 test -z "$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest$ac_exeext &&
4988 $as_test_x conftest$ac_exeext; then
1c710c3c
DJ
4989 cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
a3993f33 4995#include <gmp.h>
e69bf64b 4996 #include <mpfr.h>
1c710c3c
DJ
4997int
4998main ()
4999{
a3993f33 5000
e69bf64b
PB
5001 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
5002 choke me
5003 #endif
5004 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
5005
5006 ;
5007 return 0;
5008}
5009_ACEOF
5010rm -f conftest.$ac_objext conftest$ac_exeext
11a67599
ZW
5011if { (ac_try="$ac_link"
5012case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5015esac
5016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_link") 2>conftest.er1
1c710c3c
DJ
5018 ac_status=$?
5019 grep -v '^ *+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
5023 (exit $ac_status); } && {
5024 test -z "$ac_c_werror_flag" ||
5025 test ! -s conftest.err
5026 } && test -s conftest$ac_exeext &&
5027 $as_test_x conftest$ac_exeext; then
5028 { echo "$as_me:$LINENO: result: yes" >&5
5029echo "${ECHO_T}yes" >&6; }
1c710c3c
DJ
5030else
5031 echo "$as_me: failed program was:" >&5
5032sed 's/^/| /' conftest.$ac_ext >&5
5033
11a67599
ZW
5034 { echo "$as_me:$LINENO: result: buggy but acceptable" >&5
5035echo "${ECHO_T}buggy but acceptable" >&6; }
1c710c3c 5036fi
11a67599
ZW
5037
5038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1c710c3c
DJ
5039 conftest$ac_exeext conftest.$ac_ext
5040else
5041 echo "$as_me: failed program was:" >&5
5042sed 's/^/| /' conftest.$ac_ext >&5
5043
11a67599
ZW
5044 { echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6; }; have_gmp=no
1c710c3c 5046fi
11a67599
ZW
5047
5048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1c710c3c 5049 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
5050 LIBS="$saved_LIBS"
5051 fi
5052 CFLAGS="$saved_CFLAGS"
6de9cd9a 5053
e69bf64b 5054 if test x$have_gmp != xyes; then
1c710c3c
DJ
5055 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
5056Try the --with-gmp and/or --with-mpfr options to specify their locations.
5057Copies of these libraries' source code can be found at their respective
5058hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5059See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5060If you obtained GMP and/or MPFR from a vendor distribution package, make
5061sure that you have installed both the libraries and the header files.
5062They may be located in separate packages." >&5
5063echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
5064Try the --with-gmp and/or --with-mpfr options to specify their locations.
5065Copies of these libraries' source code can be found at their respective
5066hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
5067See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5068If you obtained GMP and/or MPFR from a vendor distribution package, make
5069sure that you have installed both the libraries and the header files.
1c710c3c
DJ
5070They may be located in separate packages." >&2;}
5071 { (exit 1); exit 1; }; }
e69bf64b 5072 fi
70ec446f
KG
5073fi
5074
bebf829d 5075# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
5076
5077
5078
1e0f07d3 5079# By default, C is the only stage 1 language.
e1888513 5080stage1_languages=,c,
2805b53a 5081
55ffb5ed
NN
5082# Figure out what language subdirectories are present.
5083# Look if the user specified --enable-languages="..."; if not, use
5084# the environment variable $LANGUAGES if defined. $LANGUAGES might
5085# go away some day.
5086# NB: embedded tabs in this IF block -- do not untabify
5087if test -d ${srcdir}/gcc; then
5088 if test x"${enable_languages+set}" != xset; then
5089 if test x"${LANGUAGES+set}" = xset; then
5090 enable_languages="${LANGUAGES}"
5091 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5092 else
5093 enable_languages=all
5094 fi
5095 else
5096 if test x"${enable_languages}" = x ||
5097 test x"${enable_languages}" = xyes;
5098 then
5099 echo configure.in: --enable-languages needs at least one language argument 1>&2
5100 exit 1
5101 fi
5102 fi
5103 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5104
7f26dfa3
FXC
5105 # 'f95' is the old name for the 'fortran' language. We issue a warning
5106 # and make the substitution.
5107 case ,${enable_languages}, in
5108 *,f95,*)
5109 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5110 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5111 ;;
5112 esac
5113
55ffb5ed
NN
5114 # First scan to see if an enabled language requires some other language.
5115 # We assume that a given config-lang.in will list all the language
5116 # front ends it requires, even if some are required indirectly.
5117 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5118 case ${lang_frag} in
5119 ..) ;;
5120 # The odd quoting in the next line works around
5121 # an apparent bug in bash 1.12 on linux.
5122 ${srcdir}/gcc/[*]/config-lang.in) ;;
5123 *)
5124 # From the config-lang.in, get $language, $lang_requires
5125 language=
5126 lang_requires=
5127 . ${lang_frag}
5128 for other in ${lang_requires} ; do
5129 case ,${enable_languages}, in
5130 *,$other,*) ;;
5131 *,all,*) ;;
5132 *,$language,*)
5133 echo " \`$other' language required by \`$language'; enabling" 1>&2
5134 enable_languages="${enable_languages},${other}"
5135 ;;
5136 esac
5137 done
5138 ;;
5139 esac
5140 done
5141
e1888513 5142 new_enable_languages=,c,
55ffb5ed 5143 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 5144 potential_languages=,c,
55ffb5ed
NN
5145
5146 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5147 case ${lang_frag} in
5148 ..) ;;
5149 # The odd quoting in the next line works around
5150 # an apparent bug in bash 1.12 on linux.
5151 ${srcdir}/gcc/[*]/config-lang.in) ;;
5152 *)
1c710c3c 5153 # From the config-lang.in, get $language, $target_libs,
2805b53a 5154 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
5155 language=
5156 target_libs=
5157 lang_dirs=
1546bb64 5158 subdir_requires=
e1888513
PB
5159 boot_language=no
5160 build_by_default=yes
55ffb5ed 5161 . ${lang_frag}
e1888513
PB
5162 if test x${language} = x; then
5163 echo "${lang_frag} doesn't set \$language." 1>&2
5164 exit 1
5165 fi
5166
5167 case ,${enable_languages}, in
5168 *,${language},*)
55ffb5ed
NN
5169 # Language was explicitly selected; include it.
5170 add_this_lang=yes
5171 ;;
e1888513
PB
5172 *,all,*)
5173 # 'all' was selected, select it if it is a default language
5174 add_this_lang=${build_by_default}
55ffb5ed
NN
5175 ;;
5176 *)
5177 add_this_lang=no
5178 ;;
5179 esac
6de9cd9a 5180
1546bb64 5181 # Disable languages that need other directories if these aren't available.
95695ad3 5182 for i in $subdir_requires; do
b6348cb3 5183 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
5184 case ,${enable_languages}, in
5185 *,${language},*)
5186 # Specifically requested language; tell them.
1c710c3c
DJ
5187 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5188echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5189 { (exit 1); exit 1; }; }
1546bb64
PB
5190 ;;
5191 *)
5192 # Silently disable.
e1888513 5193 add_this_lang=unsupported
1546bb64
PB
5194 ;;
5195 esac
5196 done
5197
e1888513
PB
5198 # Disable Ada if no preexisting GNAT is available.
5199 case ,${enable_languages},:${language}:${have_gnat} in
5200 *,${language},*:ada:no)
5201 # Specifically requested language; tell them.
1c710c3c
DJ
5202 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5203echo "$as_me: error: GNAT is required to build $language" >&2;}
5204 { (exit 1); exit 1; }; }
e1888513
PB
5205 ;;
5206 *:ada:no)
5207 # Silently disable.
5208 add_this_lang=unsupported
5209 ;;
5210 esac
5211
4fab7234
HPN
5212 # Disable a language that is unsupported by the target.
5213 case " $unsupported_languages " in
5214 *" $language "*)
e1888513 5215 add_this_lang=unsupported
4fab7234
HPN
5216 ;;
5217 esac
5218
6de9cd9a 5219 case $add_this_lang in
e1888513 5220 unsupported)
55ffb5ed 5221 # Remove language-dependent dirs.
2805b53a
NN
5222 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5223 ;;
e1888513
PB
5224 no)
5225 # Remove language-dependent dirs; still show language as supported.
5226 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5227 potential_languages="${potential_languages}${language},"
5228 ;;
5229 yes)
5230 new_enable_languages="${new_enable_languages}${language},"
5231 potential_languages="${potential_languages}${language},"
2805b53a
NN
5232 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5233 case ${boot_language} in
5234 yes)
340de83f 5235 # Add to (comma-separated) list of stage 1 languages.
e1888513 5236 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
5237 ;;
5238 esac
5239 ;;
55ffb5ed
NN
5240 esac
5241 ;;
5242 esac
5243 done
5244
11a67599 5245 # Check whether --enable-stage1-languages was given.
e1888513 5246if test "${enable_stage1_languages+set}" = set; then
11a67599 5247 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
5248 ,no,|,,)
5249 # Set it to something that will have no effect in the loop below
5250 enable_stage1_languages=c ;;
5251 ,yes,)
5252 enable_stage1_languages=`echo $new_enable_languages | \
5253 sed -e "s/^,//" -e "s/,$//" ` ;;
5254 *,all,*)
5255 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5256 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5257 esac
5258
5259 # Add "good" languages from enable_stage1_languages to stage1_languages,
5260 # while "bad" languages go in missing_languages. Leave no duplicates.
5261 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5262 case $potential_languages in
5263 *,$i,*)
5264 case $stage1_languages in
5265 *,$i,*) ;;
5266 *) stage1_languages="$stage1_languages$i," ;;
5267 esac ;;
5268 *)
5269 case $missing_languages in
5270 *,$i,*) ;;
5271 *) missing_languages="$missing_languages$i," ;;
5272 esac ;;
5273 esac
5274 done
11a67599
ZW
5275fi
5276
e1888513
PB
5277
5278 # Remove leading/trailing commas that were added for simplicity
5279 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 5280 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
5281 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5282 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5283
55ffb5ed 5284 if test "x$missing_languages" != x; then
1c710c3c 5285 { { echo "$as_me:$LINENO: error:
0cf085e4 5286The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
5287Supported languages are: ${potential_languages}" >&5
5288echo "$as_me: error:
5289The following requested languages could not be built: ${missing_languages}
5290Supported languages are: ${potential_languages}" >&2;}
5291 { (exit 1); exit 1; }; }
55ffb5ed 5292 fi
55ffb5ed
NN
5293 if test "x$new_enable_languages" != "x$enable_languages"; then
5294 echo The following languages will be built: ${new_enable_languages}
e1888513 5295 enable_languages="$new_enable_languages"
55ffb5ed 5296 fi
e1888513 5297
1c710c3c 5298
b2eaac4a 5299 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
5300fi
5301
27079765
AH
5302# Handle --disable-<component> generically.
5303for dir in $configdirs $build_configdirs $target_configdirs ; do
5304 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5305 if eval test x\${enable_${dirname}} "=" xno ; then
5306 noconfigdirs="$noconfigdirs $dir"
5307 fi
5308done
5309
7cd0cf9c 5310# Check for Boehm's garbage collector
11a67599 5311# Check whether --enable-objc-gc was given.
7cd0cf9c 5312if test "${enable_objc_gc+set}" = set; then
11a67599 5313 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 5314 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
5315 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5316echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5317 { (exit 1); exit 1; }; }
7cd0cf9c
DA
5318 ;;
5319esac
11a67599
ZW
5320fi
5321
7cd0cf9c
DA
5322
5323# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
5324case ,${enable_languages},:${enable_objc_gc} in
5325 *,objc,*:yes)
7cd0cf9c
DA
5326 # Keep target-boehm-gc if requested for Objective-C.
5327 ;;
7cd0cf9c 5328 *)
2a79fd67
DA
5329 # Otherwise remove target-boehm-gc depending on target-libjava.
5330 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5331 noconfigdirs="$noconfigdirs target-boehm-gc"
5332 fi
7cd0cf9c
DA
5333 ;;
5334esac
5335
ee6a22df
L
5336# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5337# $build_configdirs and $target_configdirs.
55ffb5ed
NN
5338# If we have the source for $noconfigdirs entries, add them to $notsupp.
5339
5340notsupp=""
5341for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 5342 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
5343 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5344 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5345 if test -r $srcdir/$dirname/configure ; then
5346 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5347 true
5348 else
5349 notsupp="$notsupp $dir"
5350 fi
5351 fi
5352 fi
ee6a22df
L
5353 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5354 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5355 if test -r $srcdir/$dirname/configure ; then
5356 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5357 true
5358 else
5359 notsupp="$notsupp $dir"
5360 fi
5361 fi
5362 fi
55ffb5ed
NN
5363 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5364 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5365 if test -r $srcdir/$dirname/configure ; then
5366 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5367 true
5368 else
5369 notsupp="$notsupp $dir"
5370 fi
5371 fi
5372 fi
5373done
5374
5375# Sometimes the tools are distributed with libiberty but with no other
5376# libraries. In that case, we don't want to build target-libiberty.
54fdc474 5377# Don't let libgcc imply libiberty either.
55ffb5ed 5378if test -n "${target_configdirs}" ; then
54fdc474 5379 libgcc=
55ffb5ed
NN
5380 others=
5381 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
5382 if test "$i" = "libgcc"; then
5383 libgcc=target-libgcc
5384 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
5385 if test -r $srcdir/$i/configure ; then
5386 others=yes;
5387 break;
5388 fi
5389 fi
5390 done
5391 if test -z "${others}" ; then
54fdc474 5392 target_configdirs=$libgcc
55ffb5ed
NN
5393 fi
5394fi
5395
5396# Quietly strip out all directories which aren't configurable in this tree.
5397# This relies on all configurable subdirectories being autoconfiscated, which
5398# is now the case.
23f6b2f9
PB
5399build_configdirs_all="$build_configdirs"
5400build_configdirs=
5401for i in ${build_configdirs_all} ; do
1c710c3c 5402 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5403 if test -f ${srcdir}/$j/configure ; then
5404 build_configdirs="${build_configdirs} $i"
5405 fi
5406done
5407
55ffb5ed
NN
5408configdirs_all="$configdirs"
5409configdirs=
5410for i in ${configdirs_all} ; do
5411 if test -f ${srcdir}/$i/configure ; then
5412 configdirs="${configdirs} $i"
5413 fi
5414done
23f6b2f9 5415
55ffb5ed
NN
5416target_configdirs_all="$target_configdirs"
5417target_configdirs=
5418for i in ${target_configdirs_all} ; do
1c710c3c 5419 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5420 if test -f ${srcdir}/$j/configure ; then
5421 target_configdirs="${target_configdirs} $i"
5422 fi
5423done
5424
5425# Produce a warning message for the subdirs we can't configure.
5426# This isn't especially interesting in the Cygnus tree, but in the individual
5427# FSF releases, it's important to let people know when their machine isn't
5428# supported by the one or two programs in a package.
5429
5430if test -n "${notsupp}" && test -z "${norecursion}" ; then
5431 # If $appdirs is non-empty, at least one of those directories must still
5432 # be configured, or we error out. (E.g., if the gas release supports a
5433 # specified target in some subdirs but not the gas subdir, we shouldn't
5434 # pretend that all is well.)
5435 if test -n "$appdirs" ; then
5436 for dir in $appdirs ; do
5437 if test -r $dir/Makefile.in ; then
5438 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5439 appdirs=""
5440 break
5441 fi
23f6b2f9 5442 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5443 appdirs=""
5444 break
5445 fi
5446 fi
5447 done
5448 if test -n "$appdirs" ; then
5449 echo "*** This configuration is not supported by this package." 1>&2
5450 exit 1
5451 fi
5452 fi
5453 # Okay, some application will build, or we don't care to check. Still
5454 # notify of subdirs not getting built.
5455 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5456 echo " ${notsupp}" 1>&2
5457 echo " (Any other directories should still work fine.)" 1>&2
5458fi
5459
5460case "$host" in
5461 *msdosdjgpp*)
5462 enable_gdbtk=no ;;
5463esac
5464
c3a86da9
DJ
5465# To find our prefix, in gcc_cv_tool_prefix.
5466
5467# The user is always right.
5468if test "${PATH_SEPARATOR+set}" != set; then
5469 echo "#! /bin/sh" >conf$$.sh
5470 echo "exit 0" >>conf$$.sh
5471 chmod +x conf$$.sh
5472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5473 PATH_SEPARATOR=';'
5474 else
5475 PATH_SEPARATOR=:
5476 fi
5477 rm -f conf$$.sh
5478fi
5479
5480
5481
5482if test "x$exec_prefix" = xNONE; then
5483 if test "x$prefix" = xNONE; then
5484 gcc_cv_tool_prefix=$ac_default_prefix
5485 else
5486 gcc_cv_tool_prefix=$prefix
5487 fi
5488else
5489 gcc_cv_tool_prefix=$exec_prefix
5490fi
5491
5492# If there is no compiler in the tree, use the PATH only. In any
5493# case, if there is no compiler in the tree nobody should use
5494# AS_FOR_TARGET and LD_FOR_TARGET.
5495if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5496 gcc_version=`cat $srcdir/gcc/BASE-VER`
5497 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5498 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5499 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5500 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5501 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5502 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5503else
5504 gcc_cv_tool_dirs=
5505fi
5506
5507if test x$build = x$target && test -n "$md_exec_prefix"; then
5508 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5509fi
5510
5511
5512
55ffb5ed
NN
5513copy_dirs=
5514
1c710c3c 5515
11a67599 5516# Check whether --with-build-sysroot was given.
526635cb 5517if test "${with_build_sysroot+set}" = set; then
11a67599 5518 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
5519 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5520 fi
5521else
5522 SYSROOT_CFLAGS_FOR_TARGET=
11a67599
ZW
5523fi
5524
526635cb
MM
5525
5526
55ffb5ed
NN
5527# Handle --with-headers=XXX. If the value is not "yes", the contents of
5528# the named directory are copied to $(tooldir)/sys-include.
5529if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5530 if test x${is_cross_compiler} = xno ; then
5531 echo 1>&2 '***' --with-headers is only supported when cross compiling
5532 exit 1
5533 fi
5534 if test x"${with_headers}" != xyes ; then
c3a86da9 5535 x=${gcc_cv_tool_prefix}
1c710c3c 5536 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5537 fi
5538fi
5539
5540# Handle --with-libs=XXX. If the value is not "yes", the contents of
5541# the name directories are copied to $(tooldir)/lib. Multiple directories
5542# are permitted.
5543if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5544 if test x${is_cross_compiler} = xno ; then
5545 echo 1>&2 '***' --with-libs is only supported when cross compiling
5546 exit 1
5547 fi
5548 if test x"${with_libs}" != xyes ; then
5549 # Copy the libraries in reverse order, so that files in the first named
5550 # library override files in subsequent libraries.
c3a86da9 5551 x=${gcc_cv_tool_prefix}
55ffb5ed 5552 for l in ${with_libs}; do
1c710c3c 5553 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5554 done
5555 fi
5556fi
5557
e8b05380
PB
5558# Set with_gnu_as and with_gnu_ld as appropriate.
5559#
5560# This is done by determining whether or not the appropriate directory
5561# is available, and by checking whether or not specific configurations
5562# have requested that this magic not happen.
1c710c3c
DJ
5563#
5564# The command line options always override the explicit settings in
e8b05380
PB
5565# configure.in, and the settings in configure.in override this magic.
5566#
1c710c3c 5567# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5568# want to do that, then you should use the --without-gnu-as and
5569# --without-gnu-ld options for the configure script.
5570
5571if test x${use_gnu_as} = x &&
5572 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5573 with_gnu_as=yes
5574 extra_host_args="$extra_host_args --with-gnu-as"
5575fi
5576
5577if test x${use_gnu_ld} = x &&
5578 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5579 with_gnu_ld=yes
5580 extra_host_args="$extra_host_args --with-gnu-ld"
5581fi
5582
5583# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5584# can detect this case.
5585
5586if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5587 with_newlib=yes
5588 extra_host_args="$extra_host_args --with-newlib"
5589fi
5590
55ffb5ed
NN
5591# Handle ${copy_dirs}
5592set fnord ${copy_dirs}
5593shift
5594while test $# != 0 ; do
5595 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5596 :
5597 else
5598 echo Copying $1 to $2
5599
5600 # Use the install script to create the directory and all required
5601 # parent directories.
5602 if test -d $2 ; then
5603 :
5604 else
5605 echo >config.temp
5606 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5607 fi
5608
5609 # Copy the directory, assuming we have tar.
5610 # FIXME: Should we use B in the second tar? Not all systems support it.
5611 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5612
5613 # It is the responsibility of the user to correctly adjust all
5614 # symlinks. If somebody can figure out how to handle them correctly
5615 # here, feel free to add the code.
5616
5617 echo $1 > $2/COPIED
5618 fi
5619 shift; shift
5620done
5621
e8b05380
PB
5622# Determine a target-dependent exec_prefix that the installed
5623# gcc will search in. Keep this list sorted by triplet, with
5624# the *-*-osname triplets last.
5625md_exec_prefix=
5626case "${target}" in
5627 alpha*-*-*vms*)
5628 md_exec_prefix=/gnu/lib/gcc-lib
5629 ;;
5630 i3456786-pc-msdosdjgpp*)
5631 md_exec_prefix=/dev/env/DJDIR/bin
5632 ;;
5633 i3456786-*-sco3.2v5*)
5634 if test $with_gnu_as = yes; then
5635 md_exec_prefix=/usr/gnu/bin
5636 else
5637 md_exec_prefix=/usr/ccs/bin/elf
5638 fi
5639 ;;
5640
5641 mn10300-*-* | \
5642 powerpc-*-chorusos* | \
5643 powerpc*-*-eabi* | \
5644 powerpc*-*-sysv* | \
5645 powerpc*-*-kaos* | \
5646 s390x-ibm-tpf*)
5647 md_exec_prefix=/usr/ccs/bin
5648 ;;
5649 sparc64-*-elf*)
5650 ;;
5651 v850*-*-*)
5652 md_exec_prefix=/usr/ccs/bin
5653 ;;
5654 xtensa-*-elf*)
5655 ;;
5656
5657 *-*-beos* | \
5658 *-*-elf* | \
5659 *-*-hpux* | \
5660 *-*-netware* | \
5661 *-*-nto-qnx* | \
5662 *-*-rtems* | \
5663 *-*-solaris2* | \
5664 *-*-sysv45* | \
5665 *-*-vxworks* | \
5666 *-wrs-windiss)
5667 md_exec_prefix=/usr/ccs/bin
5668 ;;
5669esac
5670
671aa708
NN
5671extra_arflags_for_target=
5672extra_nmflags_for_target=
5673extra_ranlibflags_for_target=
5674target_makefile_frag=/dev/null
5675case "${target}" in
3e19841a
PB
5676 mep*-*-*)
5677 target_makefile_frag="config/mt-mep"
5678 ;;
58e24147
AM
5679 spu-*-*)
5680 target_makefile_frag="config/mt-spu"
5681 ;;
61fec9ff 5682 *-*-netware*)
671aa708
NN
5683 target_makefile_frag="config/mt-netware"
5684 ;;
98a5bb3b
RM
5685 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5686 target_makefile_frag="config/mt-gnu"
671aa708
NN
5687 ;;
5688 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5689 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5690 # commands to handle both 32-bit and 64-bit objects. These flags are
5691 # harmless if we're using GNU nm or ar.
5692 extra_arflags_for_target=" -X32_64"
5693 extra_nmflags_for_target=" -B -X32_64"
5694 ;;
5695 *-*-darwin*)
5696 # ranlib from Darwin requires the -c flag to look at common symbols.
5697 extra_ranlibflags_for_target=" -c"
5698 ;;
5699 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5700 target_makefile_frag="config/mt-wince"
5701 ;;
5702esac
5703
5704alphaieee_frag=/dev/null
5705case $target in
5706 alpha*-*-*)
5707 # This just makes sure to use the -mieee option to build target libs.
5708 # This should probably be set individually by each library.
5709 alphaieee_frag="config/mt-alphaieee"
5710 ;;
5711esac
5712
5713# If --enable-target-optspace always use -Os instead of -O2 to build
5714# the target libraries, similarly if it is not specified, use -Os
5715# on selected platforms.
5716ospace_frag=/dev/null
5717case "${enable_target_optspace}:${target}" in
5718 yes:*)
5719 ospace_frag="config/mt-ospace"
5720 ;;
5721 :d30v-*)
5722 ospace_frag="config/mt-d30v"
5723 ;;
5724 :m32r-* | :d10v-* | :fr30-*)
5725 ospace_frag="config/mt-ospace"
5726 ;;
5727 no:* | :*)
5728 ;;
5729 *)
5730 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5731 ;;
5732esac
5733
671aa708
NN
5734# Default to using --with-stabs for certain targets.
5735if test x${with_stabs} = x ; then
5736 case "${target}" in
89a95129 5737 mips*-*-irix[56]*)
671aa708
NN
5738 ;;
5739 mips*-*-* | alpha*-*-osf*)
5740 with_stabs=yes;
5741 extra_host_args="${extra_host_args} --with-stabs"
5742 ;;
5743 esac
5744fi
5745
5746# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5747# them automatically.
5748case "${host}" in
1c710c3c 5749 hppa*64*-*-hpux11*)
671aa708
NN
5750 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5751 ;;
5752esac
5753
671aa708
NN
5754# Some systems (e.g., one of the i386-aix systems the gas testers are
5755# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5756tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5757build_tooldir=${tooldir}
5758
671aa708
NN
5759# Create a .gdbinit file which runs the one in srcdir
5760# and tells GDB to look there for source files.
5761
5762if test -r ${srcdir}/.gdbinit ; then
5763 case ${srcdir} in
5764 .) ;;
5765 *) cat > ./.gdbinit <<EOF
5766# ${NO_EDIT}
5767dir ${srcdir}
5768dir .
5769source ${srcdir}/.gdbinit
5770EOF
5771 ;;
5772 esac
5773fi
5774
671aa708
NN
5775# Make sure that the compiler is able to generate an executable. If it
5776# can't, we are probably in trouble. We don't care whether we can run the
5777# executable--we might be using a cross compiler--we only care whether it
5778# can be created. At this point the main configure script has set CC.
5779we_are_ok=no
5780echo "int main () { return 0; }" > conftest.c
5781${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5782if test $? = 0 ; then
5783 if test -s conftest || test -s conftest.exe ; then
5784 we_are_ok=yes
5785 fi
1c710c3c 5786fi
671aa708
NN
5787case $we_are_ok in
5788 no)
5789 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5790 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5791 rm -f conftest*
5792 exit 1
5793 ;;
5794esac
5795rm -f conftest*
5796
5797# The Solaris /usr/ucb/cc compiler does not appear to work.
5798case "${host}" in
5799 sparc-sun-solaris2*)
5800 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5801 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5802 could_use=
5803 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5804 if test -d /opt/cygnus/bin ; then
5805 if test "$could_use" = "" ; then
5806 could_use="/opt/cygnus/bin"
5807 else
5808 could_use="$could_use or /opt/cygnus/bin"
5809 fi
5810 fi
5811 if test "$could_use" = "" ; then
5812 echo "Warning: compilation may fail because you're using"
5813 echo "/usr/ucb/cc. You should change your PATH or CC "
5814 echo "variable and rerun configure."
5815 else
5816 echo "Warning: compilation may fail because you're using"
5817 echo "/usr/ucb/cc, when you should use the C compiler from"
5818 echo "$could_use. You should change your"
5819 echo "PATH or CC variable and rerun configure."
5820 fi
5821 fi
5822 ;;
5823esac
5824
671aa708
NN
5825case "${host}" in
5826 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5827 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5828 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5829esac
5830
5831# Record target_configdirs and the configure arguments for target and
5832# build configuration in Makefile.
5833target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5834build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5835
671aa708
NN
5836# Determine whether gdb needs tk/tcl or not.
5837# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5838# and in that case we want gdb to be built without tk. Ugh!
5839# In fact I believe gdb is the *only* package directly dependent on tk,
5840# so we should be able to put the 'maybe's in unconditionally and
5841# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5842# 100% sure that that's safe though.
e914a571 5843
b4f96efe 5844gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5845case "$enable_gdbtk" in
5846 no)
5847 GDB_TK="" ;;
e914a571
AC
5848 yes)
5849 GDB_TK="${gdb_tk}" ;;
671aa708 5850 *)
e914a571
AC
5851 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5852 # distro. Eventually someone will fix this and move Insight, nee
5853 # gdbtk to a separate directory.
5854 if test -d ${srcdir}/gdb/gdbtk ; then
5855 GDB_TK="${gdb_tk}"
5856 else
5857 GDB_TK=""
5858 fi
5859 ;;
671aa708 5860esac
ef9db8d5
DJ
5861CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5862INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5863
60975492 5864# Strip out unwanted targets.
8b87bb96
NN
5865
5866# While at that, we remove Makefiles if we were started for recursive
5867# configuration, so that the top-level Makefile reconfigures them,
5868# like we used to do when configure itself was recursive.
8b87bb96 5869
60975492
PB
5870# Loop over modules. $extrasub must be used with care, limiting as
5871# much as possible the usage of range addresses. That's because autoconf
5872# splits the sed script to overcome limits in the number of commands,
5873# and relying on carefully-timed sed passes may turn out to be very hard
5874# to maintain later. In this particular case, you just have to be careful
5875# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5876
11a67599 5877# Check whether --enable-bootstrap was given.
f516a7da 5878if test "${enable_bootstrap+set}" = set; then
11a67599 5879 enableval=$enable_bootstrap;
f516a7da 5880else
ce521a9c 5881 enable_bootstrap=default
11a67599
ZW
5882fi
5883
f516a7da 5884
ce521a9c
PB
5885# Issue errors and warnings for invalid/strange bootstrap combinations.
5886case "$configdirs" in
5887 *gcc*) have_compiler=yes ;;
5888 *) have_compiler=no ;;
5889esac
5890
5891case "$have_compiler:$host:$target:$enable_bootstrap" in
5892 *:*:*:no) ;;
5893
1ca26cd2 5894 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5895 # and we are in a native configuration.
5896 yes:$build:$build:default)
1ca26cd2 5897 enable_bootstrap=yes ;;
ce521a9c
PB
5898
5899 *:*:*:default)
5900 enable_bootstrap=no ;;
5901
5902 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5903 yes:$build:$build:yes)
ce521a9c
PB
5904 ;;
5905
5906 # Other configurations, but we have a compiler. Assume the user knows
5907 # what he's doing.
2d309510 5908 yes:*:*:yes)
1c710c3c
DJ
5909 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5910echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5911 ;;
5912
5913 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5914 no:*:*:yes)
1c710c3c
DJ
5915 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5916echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5917 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5918
5919 # Fail if wrong command line
5920 *)
1c710c3c
DJ
5921 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5922echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5923 { (exit 1); exit 1; }; }
ce521a9c
PB
5924 ;;
5925esac
5926
5927# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5928case "$enable_bootstrap" in
5929 yes)
5607edfd 5930 bootstrap_suffix=bootstrap ;;
f516a7da 5931 no)
5607edfd 5932 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5933esac
5934
23f6b2f9 5935for module in ${build_configdirs} ; do
5607edfd
PB
5936 if test -z "${no_recursion}" \
5937 && test -f ${build_subdir}/${module}/Makefile; then
5938 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5939 rm -f ${build_subdir}/${module}/Makefile
5940 fi
5941 extrasub="$extrasub
5942/^@if build-$module\$/d
5943/^@endif build-$module\$/d
5944/^@if build-$module-$bootstrap_suffix\$/d
5945/^@endif build-$module-$bootstrap_suffix\$/d"
5946done
5947for module in ${configdirs} ; do
a6fbc1e2 5948 if test -z "${no_recursion}"; then
f063a9ed 5949 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5950 if test -f ${file}; then
5951 echo 1>&2 "*** removing ${file} to force reconfigure"
5952 rm -f ${file}
5953 fi
5954 done
5607edfd
PB
5955 fi
5956 extrasub="$extrasub
5957/^@if $module\$/d
5958/^@endif $module\$/d
5959/^@if $module-$bootstrap_suffix\$/d
5960/^@endif $module-$bootstrap_suffix\$/d"
5961done
5962for module in ${target_configdirs} ; do
5963 if test -z "${no_recursion}" \
5964 && test -f ${target_subdir}/${module}/Makefile; then
5965 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5966 rm -f ${target_subdir}/${module}/Makefile
5967 fi
5968 extrasub="$extrasub
5969/^@if target-$module\$/d
5970/^@endif target-$module\$/d
5971/^@if target-$module-$bootstrap_suffix\$/d
5972/^@endif target-$module-$bootstrap_suffix\$/d"
5973done
5974
60975492
PB
5975extrasub="$extrasub
5976/^@if /,/^@endif /d"
671aa708
NN
5977
5978# Create the serialization dependencies. This uses a temporary file.
5979
11a67599 5980# Check whether --enable-serial-configure was given.
ade82b16 5981if test "${enable_serial_configure+set}" = set; then
11a67599
ZW
5982 enableval=$enable_serial_configure;
5983fi
ade82b16
AO
5984
5985
bf1d3e81
NN
5986case ${enable_serial_configure} in
5987 yes)
5988 enable_serial_build_configure=yes
5989 enable_serial_host_configure=yes
5990 enable_serial_target_configure=yes
5991 ;;
5992esac
5993
671aa708
NN
5994# These force 'configure's to be done one at a time, to avoid problems
5995# with contention over a shared config.cache.
5996rm -f serdep.tmp
ade82b16 5997echo '# serdep.tmp' > serdep.tmp
671aa708 5998olditem=
bf1d3e81 5999test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
6000for item in ${build_configdirs} ; do
6001 case ${olditem} in
6002 "") ;;
ade82b16 6003 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
6004 esac
6005 olditem=${item}
6006done
6007olditem=
bf1d3e81 6008test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
6009for item in ${configdirs} ; do
6010 case ${olditem} in
6011 "") ;;
ade82b16 6012 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
6013 esac
6014 olditem=${item}
6015done
6016olditem=
bf1d3e81 6017test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
6018for item in ${target_configdirs} ; do
6019 case ${olditem} in
6020 "") ;;
ade82b16 6021 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
6022 esac
6023 olditem=${item}
6024done
6025serialization_dependencies=serdep.tmp
6026
6027
ade82b16 6028# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
6029# target, nonopt, and variable assignments. These are the ones we
6030# might not want to pass down to subconfigures. Also strip
6031# program-prefix, program-suffix, and program-transform-name, so that
6032# we can pass down a consistent program-transform-name.
6033baseargs=
6034keep_next=no
6035skip_next=no
6036eval "set -- $ac_configure_args"
44bfc3ac
DJ
6037for ac_arg
6038do
1c710c3c
DJ
6039 if test X"$skip_next" = X"yes"; then
6040 skip_next=no
6041 continue
6042 fi
6043 if test X"$keep_next" = X"yes"; then
6044 case $ac_arg in
6045 *\'*)
6046 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6047 esac
6048 baseargs="$baseargs '$ac_arg'"
6049 keep_next=no
6050 continue
6051 fi
6052
6053 # Handle separated arguments. Based on the logic generated by
6054 # autoconf 2.59.
6055 case $ac_arg in
6056 *=* | --config-cache | -C | -disable-* | --disable-* \
6057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6059 | -with-* | --with-* | -without-* | --without-* | --x)
6060 separate_arg=no
6061 ;;
6062 -*)
6063 separate_arg=yes
6064 ;;
6065 *)
6066 separate_arg=no
6067 ;;
6068 esac
6069
6070 case "$ac_arg" in
6071 --no*)
6072 continue
6073 ;;
6074 --c* | \
6075 --sr* | \
6076 --ho* | \
6077 --bu* | \
6078 --t* | \
6079 --program-* | \
6080 -cache_file* | \
6081 -srcdir* | \
6082 -host* | \
6083 -build* | \
6084 -target* | \
6085 -program-prefix* | \
6086 -program-suffix* | \
6087 -program-transform-name* )
6088 skip_next=$separate_arg
6089 continue
6090 ;;
6091 -*)
6092 # An option. Add it.
6093 case $ac_arg in
6094 *\'*)
6095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6096 esac
6097 baseargs="$baseargs '$ac_arg'"
6098 keep_next=$separate_arg
6099 ;;
6100 *)
6101 # Either a variable assignment, or a nonopt (triplet). Don't
6102 # pass it down; let the Makefile handle this.
6103 continue
6104 ;;
6105 esac
6106done
6107# Remove the initial space we just introduced and, as these will be
6108# expanded by make, quote '$'.
6109baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 6110
43bb47c2
DJ
6111# Add in --program-transform-name, after --program-prefix and
6112# --program-suffix have been applied to it. Autoconf has already
6113# doubled dollar signs and backslashes in program_transform_name; we want
6114# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 6115# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
6116# Also, because we want to override the logic in subdir configure scripts to
6117# choose program_transform_name, replace any s,x,x, with s,y,y,.
6118sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6119${program_transform_name}
6120EOF_SED
6121gcc_transform_name=`cat conftestsed.out`
6122rm -f conftestsed.out
6123baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6124
671aa708
NN
6125# For the build-side libraries, we just need to pretend we're native,
6126# and not use the same cache file. Multilibs are neither needed nor
6127# desired.
e69bf64b 6128build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
6129
6130# For host modules, accept cache file option, or specification as blank.
6131case "${cache_file}" in
6132"") # empty
6133 cache_file_option="" ;;
6134/* | [A-Za-z]:[\\/]* ) # absolute path
6135 cache_file_option="--cache-file=${cache_file}" ;;
6136*) # relative path
6137 cache_file_option="--cache-file=../${cache_file}" ;;
6138esac
6139
09438bde
NN
6140# Host dirs don't like to share a cache file either, horribly enough.
6141# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 6142host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
6143
6144target_configargs=${baseargs}
6145
6146# Passing a --with-cross-host argument lets the target libraries know
6147# whether they are being built with a cross-compiler or being built
6148# native. However, it would be better to use other mechanisms to make the
6149# sorts of decisions they want to make on this basis. Please consider
6150# this option to be deprecated. FIXME.
6151if test x${is_cross_compiler} = xyes ; then
1c710c3c 6152 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
6153fi
6154
6155# Default to --enable-multilib.
6156if test x${enable_multilib} = x ; then
6157 target_configargs="--enable-multilib ${target_configargs}"
6158fi
6159
6160# Pass --with-newlib if appropriate. Note that target_configdirs has
6161# changed from the earlier setting of with_newlib.
6162if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6163 target_configargs="--with-newlib ${target_configargs}"
6164fi
6165
6b9eb62c
NN
6166# Different target subdirs use different values of certain variables
6167# (notably CXX). Worse, multilibs use *lots* of different values.
6168# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6169# it doesn't automatically accept command-line overrides of them.
6170# This means it's not safe for target subdirs to share a cache file,
6171# which is disgusting, but there you have it. Hopefully this can be
6172# fixed in future. It's still worthwhile to use a cache file for each
6173# directory. I think.
6174
bebcd931
MS
6175# Pass the appropriate --build, --host, --target and --cache-file arguments.
6176# We need to pass --target, as newer autoconf's requires consistency
6177# for target_alias and gcc doesn't manage it consistently.
e69bf64b 6178target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 6179
671aa708
NN
6180FLAGS_FOR_TARGET=
6181case " $target_configdirs " in
6182 *" newlib "*)
6183 case " $target_configargs " in
6184 *" --with-newlib "*)
6185 case "$target" in
6186 *-cygwin*)
aa8f1f57 6187 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
671aa708
NN
6188 esac
6189
6190 # If we're not building GCC, don't discard standard headers.
6191 if test -d ${srcdir}/gcc; then
6192 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6193
6194 if test "${build}" != "${host}"; then
6195 # On Canadian crosses, CC_FOR_TARGET will have already been set
6196 # by `configure', so we won't have an opportunity to add -Bgcc/
6197 # to it. This is right: we don't want to search that directory
6198 # for binaries, but we want the header files in there, so add
6199 # them explicitly.
215c351a 6200 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
6201
6202 # Someone might think of using the pre-installed headers on
6203 # Canadian crosses, in case the installed compiler is not fully
6204 # compatible with the compiler being built. In this case, it
6205 # would be better to flag an error than risking having
6206 # incompatible object files being constructed. We can't
6207 # guarantee that an error will be flagged, but let's hope the
6208 # compiler will do it, when presented with incompatible header
6209 # files.
6210 fi
6211 fi
6212
6213 case "${target}-${is_cross_compiler}" in
f2a0e225 6214 i[3456789]86-*-linux*-no)
671aa708
NN
6215 # Here host == target, so we don't need to build gcc,
6216 # so we don't want to discard standard headers.
6217 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6218 ;;
6219 *)
6220 # If we're building newlib, use its generic headers last, but search
6221 # for any libc-related directories first (so make it the last -B
6222 # switch).
6223 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6224 ;;
6225 esac
6226 ;;
6227 esac
6228 ;;
6229esac
b91f0a41
CV
6230case "$target" in
6231*-mingw*)
6232 # Can't be handled as Cygwin above since Mingw does not use newlib.
6233 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
6234esac
671aa708 6235
6691a79e
ME
6236# Allow the user to override the flags for
6237# our build compiler if desired.
6238CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6239
671aa708
NN
6240# On Canadian crosses, we'll be searching the right directories for
6241# the previously-installed cross compiler, so don't bother to add
6242# flags for directories within the install tree of the compiler
6243# being built; programs in there won't even run.
6244if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6245 # Search for pre-installed headers if nothing else fits.
9124bc53 6246 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
6247fi
6248
6249if test "x${use_gnu_ld}" = x &&
6250 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6251 # Arrange for us to find uninstalled linker scripts.
215c351a 6252 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
6253fi
6254
e88a2c09
DD
6255# Search for other target-specific linker scripts and such.
6256case "${target}" in
6257 m32c-*-* )
6258 if test -d ${srcdir}/libgloss/m32c; then
6259 # This is for crt0.o
6260 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
6261 # This is for r8c.ld
6262 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
6263 # This is for libnosys.a
6264 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6265 fi
6266 ;;
3e19841a
PB
6267 mep*)
6268 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6269 ;;
e88a2c09
DD
6270esac
6271
671aa708 6272# Makefile fragments.
7b61653a
PE
6273for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6274do
6275 eval fragval=\$$frag
6276 if test $fragval != /dev/null; then
6277 eval $frag=${srcdir}/$fragval
6278 fi
6279done
671aa708
NN
6280
6281
6282
6283
6284
6285# Miscellanea: directories, flags, etc.
6286
6287
6288
6289
6290
6291
6292
23f6b2f9 6293# Build module lists & subconfigure args.
671aa708
NN
6294
6295
6296
2abefe3d
PB
6297# Host module lists & subconfigure args.
6298
6299
6300
6301# Target module lists & subconfigure args.
6302
6303
6304
6305# Build tools.
6306
6307
6308
6309# Generate default definitions for YACC, M4, LEX and other programs that run
6310# on the build machine. These are used if the Makefile can't locate these
6311# programs in objdir.
6312MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6313
6314for ac_prog in 'bison -y' byacc yacc
6315do
1c710c3c 6316 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6317set dummy $ac_prog; ac_word=$2
11a67599
ZW
6318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6320if test "${ac_cv_prog_YACC+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6322else
6323 if test -n "$YACC"; then
6324 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6325else
1c710c3c
DJ
6326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327for as_dir in $PATH
6328do
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6333 ac_cv_prog_YACC="$ac_prog"
6334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6336 fi
6337done
6338done
11a67599 6339IFS=$as_save_IFS
1c710c3c 6340
2abefe3d
PB
6341fi
6342fi
1c710c3c 6343YACC=$ac_cv_prog_YACC
2abefe3d 6344if test -n "$YACC"; then
11a67599
ZW
6345 { echo "$as_me:$LINENO: result: $YACC" >&5
6346echo "${ECHO_T}$YACC" >&6; }
2abefe3d 6347else
11a67599
ZW
6348 { echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6; }
2abefe3d
PB
6350fi
6351
11a67599 6352
1c710c3c 6353 test -n "$YACC" && break
2abefe3d
PB
6354done
6355test -n "$YACC" || YACC="$MISSING bison -y"
6356
6357case " $build_configdirs " in
6358 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6359 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6360esac
6361
6362for ac_prog in bison
6363do
1c710c3c 6364 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6365set dummy $ac_prog; ac_word=$2
11a67599
ZW
6366{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6368if test "${ac_cv_prog_BISON+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6370else
6371 if test -n "$BISON"; then
6372 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6373else
1c710c3c
DJ
6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6381 ac_cv_prog_BISON="$ac_prog"
6382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6384 fi
6385done
6386done
11a67599 6387IFS=$as_save_IFS
1c710c3c 6388
2abefe3d
PB
6389fi
6390fi
1c710c3c 6391BISON=$ac_cv_prog_BISON
2abefe3d 6392if test -n "$BISON"; then
11a67599
ZW
6393 { echo "$as_me:$LINENO: result: $BISON" >&5
6394echo "${ECHO_T}$BISON" >&6; }
2abefe3d 6395else
11a67599
ZW
6396 { echo "$as_me:$LINENO: result: no" >&5
6397echo "${ECHO_T}no" >&6; }
2abefe3d
PB
6398fi
6399
11a67599 6400
1c710c3c 6401 test -n "$BISON" && break
2abefe3d
PB
6402done
6403test -n "$BISON" || BISON="$MISSING bison"
6404
6405case " $build_configdirs " in
6406 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6407esac
6408
6409for ac_prog in gm4 gnum4 m4
6410do
1c710c3c 6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6412set dummy $ac_prog; ac_word=$2
11a67599
ZW
6413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6415if test "${ac_cv_prog_M4+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6417else
6418 if test -n "$M4"; then
6419 ac_cv_prog_M4="$M4" # Let the user override the test.
6420else
1c710c3c
DJ
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6428 ac_cv_prog_M4="$ac_prog"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432done
6433done
11a67599 6434IFS=$as_save_IFS
1c710c3c 6435
2abefe3d
PB
6436fi
6437fi
1c710c3c 6438M4=$ac_cv_prog_M4
2abefe3d 6439if test -n "$M4"; then
11a67599
ZW
6440 { echo "$as_me:$LINENO: result: $M4" >&5
6441echo "${ECHO_T}$M4" >&6; }
2abefe3d 6442else
11a67599
ZW
6443 { echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6; }
2abefe3d
PB
6445fi
6446
11a67599 6447
1c710c3c 6448 test -n "$M4" && break
2abefe3d
PB
6449done
6450test -n "$M4" || M4="$MISSING m4"
6451
6452case " $build_configdirs " in
6453 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6454esac
6455
6456for ac_prog in flex lex
6457do
1c710c3c 6458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6459set dummy $ac_prog; ac_word=$2
11a67599
ZW
6460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6462if test "${ac_cv_prog_LEX+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6464else
6465 if test -n "$LEX"; then
6466 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6467else
1c710c3c
DJ
6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6475 ac_cv_prog_LEX="$ac_prog"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479done
6480done
11a67599 6481IFS=$as_save_IFS
1c710c3c 6482
2abefe3d
PB
6483fi
6484fi
1c710c3c 6485LEX=$ac_cv_prog_LEX
2abefe3d 6486if test -n "$LEX"; then
11a67599
ZW
6487 { echo "$as_me:$LINENO: result: $LEX" >&5
6488echo "${ECHO_T}$LEX" >&6; }
2abefe3d 6489else
11a67599
ZW
6490 { echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6; }
2abefe3d
PB
6492fi
6493
11a67599 6494
1c710c3c 6495 test -n "$LEX" && break
2abefe3d
PB
6496done
6497test -n "$LEX" || LEX="$MISSING flex"
6498
6499case " $build_configdirs " in
6500 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6501 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6502esac
6503
6504for ac_prog in flex
6505do
1c710c3c 6506 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6507set dummy $ac_prog; ac_word=$2
11a67599
ZW
6508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6510if test "${ac_cv_prog_FLEX+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6512else
6513 if test -n "$FLEX"; then
6514 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6515else
1c710c3c
DJ
6516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517for as_dir in $PATH
6518do
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6523 ac_cv_prog_FLEX="$ac_prog"
6524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6526 fi
6527done
6528done
11a67599 6529IFS=$as_save_IFS
1c710c3c 6530
2abefe3d
PB
6531fi
6532fi
1c710c3c 6533FLEX=$ac_cv_prog_FLEX
2abefe3d 6534if test -n "$FLEX"; then
11a67599
ZW
6535 { echo "$as_me:$LINENO: result: $FLEX" >&5
6536echo "${ECHO_T}$FLEX" >&6; }
2abefe3d 6537else
11a67599
ZW
6538 { echo "$as_me:$LINENO: result: no" >&5
6539echo "${ECHO_T}no" >&6; }
2abefe3d
PB
6540fi
6541
11a67599 6542
1c710c3c 6543 test -n "$FLEX" && break
2abefe3d
PB
6544done
6545test -n "$FLEX" || FLEX="$MISSING flex"
6546
6547case " $build_configdirs " in
6548 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6549esac
6550
6551for ac_prog in makeinfo
6552do
1c710c3c 6553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6554set dummy $ac_prog; ac_word=$2
11a67599
ZW
6555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6557if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6559else
6560 if test -n "$MAKEINFO"; then
6561 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6562else
1c710c3c
DJ
6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564for as_dir in $PATH
6565do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6570 ac_cv_prog_MAKEINFO="$ac_prog"
6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574done
6575done
11a67599 6576IFS=$as_save_IFS
1c710c3c 6577
2abefe3d
PB
6578fi
6579fi
1c710c3c 6580MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6581if test -n "$MAKEINFO"; then
11a67599
ZW
6582 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6583echo "${ECHO_T}$MAKEINFO" >&6; }
2abefe3d 6584else
11a67599
ZW
6585 { echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6; }
2abefe3d
PB
6587fi
6588
11a67599 6589
1c710c3c 6590 test -n "$MAKEINFO" && break
2abefe3d
PB
6591done
6592test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6593
6594case " $build_configdirs " in
6595 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6596 *)
6597
27b6c940 6598 # For an installed makeinfo, we require it to be from texinfo 4.4 or
2abefe3d
PB
6599 # higher, else we use the "missing" dummy.
6600 if ${MAKEINFO} --version \
27b6c940 6601 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
2abefe3d
PB
6602 :
6603 else
6604 MAKEINFO="$MISSING makeinfo"
6605 fi
6606 ;;
6607
6608esac
671aa708 6609
2abefe3d 6610# FIXME: expect and dejagnu may become build tools?
671aa708 6611
2abefe3d
PB
6612for ac_prog in expect
6613do
1c710c3c 6614 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6615set dummy $ac_prog; ac_word=$2
11a67599
ZW
6616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6618if test "${ac_cv_prog_EXPECT+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6620else
6621 if test -n "$EXPECT"; then
6622 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6623else
1c710c3c
DJ
6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6631 ac_cv_prog_EXPECT="$ac_prog"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635done
6636done
11a67599 6637IFS=$as_save_IFS
1c710c3c 6638
2abefe3d
PB
6639fi
6640fi
1c710c3c 6641EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6642if test -n "$EXPECT"; then
11a67599
ZW
6643 { echo "$as_me:$LINENO: result: $EXPECT" >&5
6644echo "${ECHO_T}$EXPECT" >&6; }
2abefe3d 6645else
11a67599
ZW
6646 { echo "$as_me:$LINENO: result: no" >&5
6647echo "${ECHO_T}no" >&6; }
2abefe3d 6648fi
671aa708 6649
11a67599 6650
1c710c3c 6651 test -n "$EXPECT" && break
2abefe3d
PB
6652done
6653test -n "$EXPECT" || EXPECT="expect"
671aa708 6654
2abefe3d
PB
6655case " $configdirs " in
6656 *" expect "*)
6657 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6658 ;;
6659esac
671aa708 6660
2abefe3d
PB
6661for ac_prog in runtest
6662do
1c710c3c 6663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6664set dummy $ac_prog; ac_word=$2
11a67599
ZW
6665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6667if test "${ac_cv_prog_RUNTEST+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6669else
6670 if test -n "$RUNTEST"; then
6671 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6672else
1c710c3c
DJ
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6680 ac_cv_prog_RUNTEST="$ac_prog"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684done
6685done
11a67599 6686IFS=$as_save_IFS
1c710c3c 6687
2abefe3d
PB
6688fi
6689fi
1c710c3c 6690RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6691if test -n "$RUNTEST"; then
11a67599
ZW
6692 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
6693echo "${ECHO_T}$RUNTEST" >&6; }
2abefe3d 6694else
11a67599
ZW
6695 { echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6; }
2abefe3d 6697fi
671aa708 6698
11a67599 6699
1c710c3c 6700 test -n "$RUNTEST" && break
2abefe3d
PB
6701done
6702test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6703
2abefe3d
PB
6704case " $configdirs " in
6705 *" dejagnu "*)
c394e891 6706 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6707 ;;
6708esac
671aa708
NN
6709
6710
671aa708 6711# Host tools.
ca9f4b81
AO
6712ncn_tool_prefix=
6713test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6714ncn_target_tool_prefix=
6715test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6716
278a7a38
AO
6717
6718
6719if test -n "$AR"; then
6720 ac_cv_prog_AR=$AR
6721elif test -n "$ac_cv_prog_AR"; then
6722 AR=$ac_cv_prog_AR
6723fi
6724
6725if test -n "$ac_cv_prog_AR"; then
6726 for ncn_progname in ar; do
6727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6728set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
6731if test "${ac_cv_prog_AR+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734 if test -n "$AR"; then
6735 ac_cv_prog_AR="$AR" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
6744 ac_cv_prog_AR="${ncn_progname}"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748done
6749done
11a67599 6750IFS=$as_save_IFS
278a7a38
AO
6751
6752fi
6753fi
6754AR=$ac_cv_prog_AR
6755if test -n "$AR"; then
11a67599
ZW
6756 { echo "$as_me:$LINENO: result: $AR" >&5
6757echo "${ECHO_T}$AR" >&6; }
278a7a38 6758else
11a67599
ZW
6759 { echo "$as_me:$LINENO: result: no" >&5
6760echo "${ECHO_T}no" >&6; }
278a7a38
AO
6761fi
6762
11a67599 6763
278a7a38
AO
6764 done
6765fi
6766
6767for ncn_progname in ar; do
2693c0b0
PB
6768 if test -n "$ncn_tool_prefix"; then
6769 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6770set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
6771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6773if test "${ac_cv_prog_AR+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6775else
6776 if test -n "$AR"; then
6777 ac_cv_prog_AR="$AR" # Let the user override the test.
6778else
1c710c3c
DJ
6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6786 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790done
6791done
11a67599 6792IFS=$as_save_IFS
1c710c3c 6793
ca9f4b81
AO
6794fi
6795fi
1c710c3c 6796AR=$ac_cv_prog_AR
ca9f4b81 6797if test -n "$AR"; then
11a67599
ZW
6798 { echo "$as_me:$LINENO: result: $AR" >&5
6799echo "${ECHO_T}$AR" >&6; }
ca9f4b81 6800else
11a67599
ZW
6801 { echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
6803fi
6804
11a67599 6805
2693c0b0
PB
6806 fi
6807 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6809set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
6810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6812if test "${ac_cv_prog_AR+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6814else
2693c0b0 6815 if test -n "$AR"; then
af71363e
AS
6816 ac_cv_prog_AR="$AR" # Let the user override the test.
6817else
1c710c3c
DJ
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6825 ac_cv_prog_AR="${ncn_progname}"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829done
6830done
11a67599 6831IFS=$as_save_IFS
1c710c3c 6832
ca9f4b81
AO
6833fi
6834fi
1c710c3c 6835AR=$ac_cv_prog_AR
2693c0b0 6836if test -n "$AR"; then
11a67599
ZW
6837 { echo "$as_me:$LINENO: result: $AR" >&5
6838echo "${ECHO_T}$AR" >&6; }
ca9f4b81 6839else
11a67599
ZW
6840 { echo "$as_me:$LINENO: result: no" >&5
6841echo "${ECHO_T}no" >&6; }
ca9f4b81 6842fi
1c710c3c 6843
11a67599 6844
2693c0b0
PB
6845 fi
6846 test -n "$ac_cv_prog_AR" && break
6847done
6848
6849if test -z "$ac_cv_prog_AR" ; then
6850 set dummy ar
6851 if test $build = $host ; then
6852 AR="$2"
ca9f4b81 6853 else
2693c0b0 6854 AR="${ncn_tool_prefix}$2"
ca9f4b81 6855 fi
ca9f4b81
AO
6856fi
6857
278a7a38
AO
6858
6859
6860if test -n "$AS"; then
6861 ac_cv_prog_AS=$AS
6862elif test -n "$ac_cv_prog_AS"; then
6863 AS=$ac_cv_prog_AS
6864fi
6865
6866if test -n "$ac_cv_prog_AS"; then
6867 for ncn_progname in as; do
6868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6869set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
6870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
6872if test "${ac_cv_prog_AS+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6874else
6875 if test -n "$AS"; then
6876 ac_cv_prog_AS="$AS" # Let the user override the test.
6877else
6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
6885 ac_cv_prog_AS="${ncn_progname}"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889done
6890done
11a67599 6891IFS=$as_save_IFS
278a7a38
AO
6892
6893fi
6894fi
6895AS=$ac_cv_prog_AS
6896if test -n "$AS"; then
11a67599
ZW
6897 { echo "$as_me:$LINENO: result: $AS" >&5
6898echo "${ECHO_T}$AS" >&6; }
278a7a38 6899else
11a67599
ZW
6900 { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
278a7a38
AO
6902fi
6903
11a67599 6904
278a7a38
AO
6905 done
6906fi
6907
6908for ncn_progname in as; do
2693c0b0
PB
6909 if test -n "$ncn_tool_prefix"; then
6910 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6911set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
6912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6914if test "${ac_cv_prog_AS+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6916else
6917 if test -n "$AS"; then
6918 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6919else
1c710c3c
DJ
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6927 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931done
6932done
11a67599 6933IFS=$as_save_IFS
1c710c3c 6934
ca9f4b81
AO
6935fi
6936fi
1c710c3c 6937AS=$ac_cv_prog_AS
ca9f4b81 6938if test -n "$AS"; then
11a67599
ZW
6939 { echo "$as_me:$LINENO: result: $AS" >&5
6940echo "${ECHO_T}$AS" >&6; }
ca9f4b81 6941else
11a67599
ZW
6942 { echo "$as_me:$LINENO: result: no" >&5
6943echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
6944fi
6945
11a67599 6946
2693c0b0
PB
6947 fi
6948 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6950set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
6951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
6953if test "${ac_cv_prog_AS+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6955else
2693c0b0
PB
6956 if test -n "$AS"; then
6957 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6958else
1c710c3c
DJ
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
6966 ac_cv_prog_AS="${ncn_progname}"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970done
6971done
11a67599 6972IFS=$as_save_IFS
1c710c3c 6973
ca9f4b81
AO
6974fi
6975fi
1c710c3c 6976AS=$ac_cv_prog_AS
2693c0b0 6977if test -n "$AS"; then
11a67599
ZW
6978 { echo "$as_me:$LINENO: result: $AS" >&5
6979echo "${ECHO_T}$AS" >&6; }
ca9f4b81 6980else
11a67599
ZW
6981 { echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6; }
ca9f4b81 6983fi
1c710c3c 6984
11a67599 6985
2693c0b0
PB
6986 fi
6987 test -n "$ac_cv_prog_AS" && break
6988done
6989
6990if test -z "$ac_cv_prog_AS" ; then
6991 set dummy as
6992 if test $build = $host ; then
6993 AS="$2"
ca9f4b81 6994 else
2693c0b0 6995 AS="${ncn_tool_prefix}$2"
ca9f4b81 6996 fi
ca9f4b81
AO
6997fi
6998
278a7a38
AO
6999
7000
7001if test -n "$DLLTOOL"; then
7002 ac_cv_prog_DLLTOOL=$DLLTOOL
7003elif test -n "$ac_cv_prog_DLLTOOL"; then
7004 DLLTOOL=$ac_cv_prog_DLLTOOL
7005fi
7006
7007if test -n "$ac_cv_prog_DLLTOOL"; then
7008 for ncn_progname in dlltool; do
7009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7010set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
7013if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7015else
7016 if test -n "$DLLTOOL"; then
7017 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7018else
7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
7026 ac_cv_prog_DLLTOOL="${ncn_progname}"
7027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 break 2
7029 fi
7030done
7031done
11a67599 7032IFS=$as_save_IFS
278a7a38
AO
7033
7034fi
7035fi
7036DLLTOOL=$ac_cv_prog_DLLTOOL
7037if test -n "$DLLTOOL"; then
11a67599
ZW
7038 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7039echo "${ECHO_T}$DLLTOOL" >&6; }
278a7a38 7040else
11a67599
ZW
7041 { echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6; }
278a7a38
AO
7043fi
7044
11a67599 7045
278a7a38
AO
7046 done
7047fi
7048
7049for ncn_progname in dlltool; do
2693c0b0
PB
7050 if test -n "$ncn_tool_prefix"; then
7051 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7052set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
7053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7055if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7057else
7058 if test -n "$DLLTOOL"; then
7059 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7060else
1c710c3c
DJ
7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7068 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072done
7073done
11a67599 7074IFS=$as_save_IFS
1c710c3c 7075
ca9f4b81
AO
7076fi
7077fi
1c710c3c 7078DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 7079if test -n "$DLLTOOL"; then
11a67599
ZW
7080 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7081echo "${ECHO_T}$DLLTOOL" >&6; }
ca9f4b81 7082else
11a67599
ZW
7083 { echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
7085fi
7086
11a67599 7087
2693c0b0
PB
7088 fi
7089 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7091set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7094if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7096else
2693c0b0
PB
7097 if test -n "$DLLTOOL"; then
7098 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 7099else
1c710c3c
DJ
7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7107 ac_cv_prog_DLLTOOL="${ncn_progname}"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111done
7112done
11a67599 7113IFS=$as_save_IFS
1c710c3c 7114
ca9f4b81
AO
7115fi
7116fi
1c710c3c 7117DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 7118if test -n "$DLLTOOL"; then
11a67599
ZW
7119 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7120echo "${ECHO_T}$DLLTOOL" >&6; }
ca9f4b81 7121else
11a67599
ZW
7122 { echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6; }
ca9f4b81 7124fi
1c710c3c 7125
11a67599 7126
2693c0b0
PB
7127 fi
7128 test -n "$ac_cv_prog_DLLTOOL" && break
7129done
7130
7131if test -z "$ac_cv_prog_DLLTOOL" ; then
7132 set dummy dlltool
7133 if test $build = $host ; then
7134 DLLTOOL="$2"
ca9f4b81 7135 else
2693c0b0 7136 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 7137 fi
ca9f4b81
AO
7138fi
7139
278a7a38
AO
7140
7141
7142if test -n "$LD"; then
7143 ac_cv_prog_LD=$LD
7144elif test -n "$ac_cv_prog_LD"; then
7145 LD=$ac_cv_prog_LD
7146fi
7147
7148if test -n "$ac_cv_prog_LD"; then
7149 for ncn_progname in ld; do
7150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7151set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
7154if test "${ac_cv_prog_LD+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7156else
7157 if test -n "$LD"; then
7158 ac_cv_prog_LD="$LD" # Let the user override the test.
7159else
7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
7167 ac_cv_prog_LD="${ncn_progname}"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171done
7172done
11a67599 7173IFS=$as_save_IFS
278a7a38
AO
7174
7175fi
7176fi
7177LD=$ac_cv_prog_LD
7178if test -n "$LD"; then
11a67599
ZW
7179 { echo "$as_me:$LINENO: result: $LD" >&5
7180echo "${ECHO_T}$LD" >&6; }
278a7a38 7181else
11a67599
ZW
7182 { echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6; }
278a7a38
AO
7184fi
7185
11a67599 7186
278a7a38
AO
7187 done
7188fi
7189
7190for ncn_progname in ld; do
2693c0b0
PB
7191 if test -n "$ncn_tool_prefix"; then
7192 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7193set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
7194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7196if test "${ac_cv_prog_LD+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7198else
7199 if test -n "$LD"; then
7200 ac_cv_prog_LD="$LD" # Let the user override the test.
7201else
1c710c3c
DJ
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7209 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213done
7214done
11a67599 7215IFS=$as_save_IFS
1c710c3c 7216
ca9f4b81
AO
7217fi
7218fi
1c710c3c 7219LD=$ac_cv_prog_LD
ca9f4b81 7220if test -n "$LD"; then
11a67599
ZW
7221 { echo "$as_me:$LINENO: result: $LD" >&5
7222echo "${ECHO_T}$LD" >&6; }
ca9f4b81 7223else
11a67599
ZW
7224 { echo "$as_me:$LINENO: result: no" >&5
7225echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
7226fi
7227
11a67599 7228
2693c0b0
PB
7229 fi
7230 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7232set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7235if test "${ac_cv_prog_LD+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7237else
2693c0b0
PB
7238 if test -n "$LD"; then
7239 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 7240else
1c710c3c
DJ
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7248 ac_cv_prog_LD="${ncn_progname}"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252done
7253done
11a67599 7254IFS=$as_save_IFS
1c710c3c 7255
ca9f4b81
AO
7256fi
7257fi
1c710c3c 7258LD=$ac_cv_prog_LD
2693c0b0 7259if test -n "$LD"; then
11a67599
ZW
7260 { echo "$as_me:$LINENO: result: $LD" >&5
7261echo "${ECHO_T}$LD" >&6; }
ca9f4b81 7262else
11a67599
ZW
7263 { echo "$as_me:$LINENO: result: no" >&5
7264echo "${ECHO_T}no" >&6; }
ca9f4b81 7265fi
1c710c3c 7266
11a67599 7267
2693c0b0
PB
7268 fi
7269 test -n "$ac_cv_prog_LD" && break
7270done
7271
7272if test -z "$ac_cv_prog_LD" ; then
7273 set dummy ld
7274 if test $build = $host ; then
7275 LD="$2"
ca9f4b81 7276 else
2693c0b0 7277 LD="${ncn_tool_prefix}$2"
ca9f4b81 7278 fi
ca9f4b81
AO
7279fi
7280
278a7a38
AO
7281
7282
7283if test -n "$LIPO"; then
7284 ac_cv_prog_LIPO=$LIPO
7285elif test -n "$ac_cv_prog_LIPO"; then
7286 LIPO=$ac_cv_prog_LIPO
7287fi
7288
7289if test -n "$ac_cv_prog_LIPO"; then
7290 for ncn_progname in lipo; do
7291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7292set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
7295if test "${ac_cv_prog_LIPO+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
7298 if test -n "$LIPO"; then
7299 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7300else
7301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
7308 ac_cv_prog_LIPO="${ncn_progname}"
7309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7311 fi
7312done
7313done
11a67599 7314IFS=$as_save_IFS
278a7a38
AO
7315
7316fi
7317fi
7318LIPO=$ac_cv_prog_LIPO
7319if test -n "$LIPO"; then
11a67599
ZW
7320 { echo "$as_me:$LINENO: result: $LIPO" >&5
7321echo "${ECHO_T}$LIPO" >&6; }
278a7a38 7322else
11a67599
ZW
7323 { echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6; }
278a7a38
AO
7325fi
7326
11a67599 7327
278a7a38
AO
7328 done
7329fi
7330
7331for ncn_progname in lipo; do
2abefe3d
PB
7332 if test -n "$ncn_tool_prefix"; then
7333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7334set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
7335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7337if test "${ac_cv_prog_LIPO+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7339else
7340 if test -n "$LIPO"; then
7341 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7342else
1c710c3c
DJ
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7350 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354done
7355done
11a67599 7356IFS=$as_save_IFS
1c710c3c 7357
2abefe3d
PB
7358fi
7359fi
1c710c3c 7360LIPO=$ac_cv_prog_LIPO
2abefe3d 7361if test -n "$LIPO"; then
11a67599
ZW
7362 { echo "$as_me:$LINENO: result: $LIPO" >&5
7363echo "${ECHO_T}$LIPO" >&6; }
2abefe3d 7364else
11a67599
ZW
7365 { echo "$as_me:$LINENO: result: no" >&5
7366echo "${ECHO_T}no" >&6; }
2abefe3d
PB
7367fi
7368
11a67599 7369
2abefe3d
PB
7370 fi
7371 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7373set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7376if test "${ac_cv_prog_LIPO+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7378else
7379 if test -n "$LIPO"; then
7380 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7381else
1c710c3c
DJ
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7389 ac_cv_prog_LIPO="${ncn_progname}"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393done
7394done
11a67599 7395IFS=$as_save_IFS
1c710c3c 7396
2abefe3d
PB
7397fi
7398fi
1c710c3c 7399LIPO=$ac_cv_prog_LIPO
2abefe3d 7400if test -n "$LIPO"; then
11a67599
ZW
7401 { echo "$as_me:$LINENO: result: $LIPO" >&5
7402echo "${ECHO_T}$LIPO" >&6; }
2abefe3d 7403else
11a67599
ZW
7404 { echo "$as_me:$LINENO: result: no" >&5
7405echo "${ECHO_T}no" >&6; }
2abefe3d 7406fi
1c710c3c 7407
11a67599 7408
2abefe3d
PB
7409 fi
7410 test -n "$ac_cv_prog_LIPO" && break
7411done
7412
7413if test -z "$ac_cv_prog_LIPO" ; then
7414 set dummy lipo
7415 if test $build = $host ; then
7416 LIPO="$2"
7417 else
7418 LIPO="${ncn_tool_prefix}$2"
7419 fi
7420fi
7421
278a7a38
AO
7422
7423
7424if test -n "$NM"; then
7425 ac_cv_prog_NM=$NM
7426elif test -n "$ac_cv_prog_NM"; then
7427 NM=$ac_cv_prog_NM
7428fi
7429
7430if test -n "$ac_cv_prog_NM"; then
7431 for ncn_progname in nm; do
7432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7433set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7436if test "${ac_cv_prog_NM+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7438else
7439 if test -n "$NM"; then
7440 ac_cv_prog_NM="$NM" # Let the user override the test.
7441else
1c710c3c
DJ
7442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7449 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453done
7454done
11a67599 7455IFS=$as_save_IFS
1c710c3c 7456
ca9f4b81
AO
7457fi
7458fi
1c710c3c 7459NM=$ac_cv_prog_NM
ca9f4b81 7460if test -n "$NM"; then
11a67599
ZW
7461 { echo "$as_me:$LINENO: result: $NM" >&5
7462echo "${ECHO_T}$NM" >&6; }
ca9f4b81 7463else
11a67599
ZW
7464 { echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
7466fi
7467
11a67599 7468
278a7a38
AO
7469 done
7470fi
7471
7472for ncn_progname in nm; do
7473 if test -n "$ncn_tool_prefix"; then
7474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7475set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
7476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7478if test "${ac_cv_prog_NM+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7480else
2693c0b0
PB
7481 if test -n "$NM"; then
7482 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7483else
1c710c3c
DJ
7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH
7486do
7487 IFS=$as_save_IFS
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7491 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 break 2
7494 fi
7495done
7496done
11a67599 7497IFS=$as_save_IFS
1c710c3c 7498
ca9f4b81
AO
7499fi
7500fi
1c710c3c 7501NM=$ac_cv_prog_NM
2693c0b0 7502if test -n "$NM"; then
11a67599
ZW
7503 { echo "$as_me:$LINENO: result: $NM" >&5
7504echo "${ECHO_T}$NM" >&6; }
ca9f4b81 7505else
11a67599
ZW
7506 { echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6; }
ca9f4b81 7508fi
1c710c3c 7509
11a67599 7510
2693c0b0 7511 fi
278a7a38
AO
7512 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7514set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
7517if test "${ac_cv_prog_NM+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 if test -n "$NM"; then
7521 ac_cv_prog_NM="$NM" # Let the user override the test.
7522else
7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
7530 ac_cv_prog_NM="${ncn_progname}"
7531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534done
7535done
11a67599 7536IFS=$as_save_IFS
278a7a38
AO
7537
7538fi
7539fi
7540NM=$ac_cv_prog_NM
7541if test -n "$NM"; then
11a67599
ZW
7542 { echo "$as_me:$LINENO: result: $NM" >&5
7543echo "${ECHO_T}$NM" >&6; }
278a7a38 7544else
11a67599
ZW
7545 { echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6; }
278a7a38
AO
7547fi
7548
11a67599 7549
278a7a38
AO
7550 fi
7551 test -n "$ac_cv_prog_NM" && break
7552done
7553
7554if test -z "$ac_cv_prog_NM" ; then
7555 set dummy nm
7556 if test $build = $host ; then
7557 NM="$2"
7558 else
7559 NM="${ncn_tool_prefix}$2"
7560 fi
7561fi
7562
7563
7564
7565if test -n "$RANLIB"; then
7566 ac_cv_prog_RANLIB=$RANLIB
7567elif test -n "$ac_cv_prog_RANLIB"; then
7568 RANLIB=$ac_cv_prog_RANLIB
7569fi
7570
7571if test -n "$ac_cv_prog_RANLIB"; then
7572 for ncn_progname in ranlib; do
7573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7574set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
7577if test "${ac_cv_prog_RANLIB+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7579else
7580 if test -n "$RANLIB"; then
7581 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
7590 ac_cv_prog_RANLIB="${ncn_progname}"
7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7593 fi
7594done
7595done
11a67599 7596IFS=$as_save_IFS
278a7a38
AO
7597
7598fi
7599fi
7600RANLIB=$ac_cv_prog_RANLIB
7601if test -n "$RANLIB"; then
11a67599
ZW
7602 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7603echo "${ECHO_T}$RANLIB" >&6; }
278a7a38 7604else
11a67599
ZW
7605 { echo "$as_me:$LINENO: result: no" >&5
7606echo "${ECHO_T}no" >&6; }
278a7a38
AO
7607fi
7608
11a67599 7609
278a7a38
AO
7610 done
7611fi
ca9f4b81 7612
278a7a38 7613for ncn_progname in ranlib; do
2693c0b0
PB
7614 if test -n "$ncn_tool_prefix"; then
7615 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7616set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
7617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7619if test "${ac_cv_prog_RANLIB+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7621else
7622 if test -n "$RANLIB"; then
7623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7624else
1c710c3c
DJ
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7632 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636done
7637done
11a67599 7638IFS=$as_save_IFS
1c710c3c 7639
ca9f4b81
AO
7640fi
7641fi
1c710c3c 7642RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7643if test -n "$RANLIB"; then
11a67599
ZW
7644 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7645echo "${ECHO_T}$RANLIB" >&6; }
ca9f4b81 7646else
11a67599
ZW
7647 { echo "$as_me:$LINENO: result: no" >&5
7648echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
7649fi
7650
11a67599 7651
2693c0b0
PB
7652 fi
7653 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7655set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7658if test "${ac_cv_prog_RANLIB+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7660else
2693c0b0
PB
7661 if test -n "$RANLIB"; then
7662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7663else
1c710c3c
DJ
7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665for as_dir in $PATH
7666do
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7671 ac_cv_prog_RANLIB="${ncn_progname}"
7672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7674 fi
7675done
7676done
11a67599 7677IFS=$as_save_IFS
1c710c3c 7678
ca9f4b81
AO
7679fi
7680fi
1c710c3c 7681RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7682if test -n "$RANLIB"; then
11a67599
ZW
7683 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7684echo "${ECHO_T}$RANLIB" >&6; }
ca9f4b81 7685else
11a67599
ZW
7686 { echo "$as_me:$LINENO: result: no" >&5
7687echo "${ECHO_T}no" >&6; }
ca9f4b81 7688fi
1c710c3c 7689
11a67599 7690
ca9f4b81 7691 fi
2693c0b0
PB
7692 test -n "$ac_cv_prog_RANLIB" && break
7693done
7694
7695if test -z "$ac_cv_prog_RANLIB" ; then
7696 RANLIB=":"
ca9f4b81
AO
7697fi
7698
278a7a38
AO
7699
7700
7701if test -n "$STRIP"; then
7702 ac_cv_prog_STRIP=$STRIP
7703elif test -n "$ac_cv_prog_STRIP"; then
7704 STRIP=$ac_cv_prog_STRIP
7705fi
7706
7707if test -n "$ac_cv_prog_STRIP"; then
7708 for ncn_progname in strip; do
7709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7710set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
7713if test "${ac_cv_prog_STRIP+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716 if test -n "$STRIP"; then
7717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7718else
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
7726 ac_cv_prog_STRIP="${ncn_progname}"
7727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730done
7731done
11a67599 7732IFS=$as_save_IFS
278a7a38
AO
7733
7734fi
7735fi
7736STRIP=$ac_cv_prog_STRIP
7737if test -n "$STRIP"; then
11a67599
ZW
7738 { echo "$as_me:$LINENO: result: $STRIP" >&5
7739echo "${ECHO_T}$STRIP" >&6; }
278a7a38 7740else
11a67599
ZW
7741 { echo "$as_me:$LINENO: result: no" >&5
7742echo "${ECHO_T}no" >&6; }
278a7a38
AO
7743fi
7744
11a67599 7745
278a7a38
AO
7746 done
7747fi
7748
7749for ncn_progname in strip; do
2abefe3d
PB
7750 if test -n "$ncn_tool_prefix"; then
7751 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7752set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
7753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7755if test "${ac_cv_prog_STRIP+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7757else
7758 if test -n "$STRIP"; then
7759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7760else
1c710c3c
DJ
7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762for as_dir in $PATH
7763do
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7768 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7771 fi
7772done
7773done
11a67599 7774IFS=$as_save_IFS
1c710c3c 7775
2abefe3d
PB
7776fi
7777fi
1c710c3c 7778STRIP=$ac_cv_prog_STRIP
2abefe3d 7779if test -n "$STRIP"; then
11a67599
ZW
7780 { echo "$as_me:$LINENO: result: $STRIP" >&5
7781echo "${ECHO_T}$STRIP" >&6; }
2abefe3d 7782else
11a67599
ZW
7783 { echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6; }
2abefe3d
PB
7785fi
7786
11a67599 7787
2abefe3d
PB
7788 fi
7789 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7791set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7794if test "${ac_cv_prog_STRIP+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7796else
7797 if test -n "$STRIP"; then
7798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7799else
1c710c3c
DJ
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7807 ac_cv_prog_STRIP="${ncn_progname}"
7808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811done
7812done
11a67599 7813IFS=$as_save_IFS
1c710c3c 7814
2abefe3d
PB
7815fi
7816fi
1c710c3c 7817STRIP=$ac_cv_prog_STRIP
2abefe3d 7818if test -n "$STRIP"; then
11a67599
ZW
7819 { echo "$as_me:$LINENO: result: $STRIP" >&5
7820echo "${ECHO_T}$STRIP" >&6; }
2abefe3d 7821else
11a67599
ZW
7822 { echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6; }
2abefe3d 7824fi
1c710c3c 7825
11a67599 7826
2abefe3d
PB
7827 fi
7828 test -n "$ac_cv_prog_STRIP" && break
7829done
7830
7831if test -z "$ac_cv_prog_STRIP" ; then
7832 STRIP=":"
7833fi
7834
278a7a38
AO
7835
7836
7837if test -n "$WINDRES"; then
7838 ac_cv_prog_WINDRES=$WINDRES
7839elif test -n "$ac_cv_prog_WINDRES"; then
7840 WINDRES=$ac_cv_prog_WINDRES
7841fi
7842
7843if test -n "$ac_cv_prog_WINDRES"; then
7844 for ncn_progname in windres; do
7845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7846set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
7849if test "${ac_cv_prog_WINDRES+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851else
7852 if test -n "$WINDRES"; then
7853 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7854else
7855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856for as_dir in $PATH
7857do
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
7862 ac_cv_prog_WINDRES="${ncn_progname}"
7863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866done
7867done
11a67599 7868IFS=$as_save_IFS
278a7a38
AO
7869
7870fi
7871fi
7872WINDRES=$ac_cv_prog_WINDRES
7873if test -n "$WINDRES"; then
11a67599
ZW
7874 { echo "$as_me:$LINENO: result: $WINDRES" >&5
7875echo "${ECHO_T}$WINDRES" >&6; }
278a7a38 7876else
11a67599
ZW
7877 { echo "$as_me:$LINENO: result: no" >&5
7878echo "${ECHO_T}no" >&6; }
278a7a38
AO
7879fi
7880
11a67599 7881
278a7a38
AO
7882 done
7883fi
7884
7885for ncn_progname in windres; do
2693c0b0
PB
7886 if test -n "$ncn_tool_prefix"; then
7887 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7888set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
7889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7891if test "${ac_cv_prog_WINDRES+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7893else
7894 if test -n "$WINDRES"; then
7895 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7896else
1c710c3c
DJ
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7904 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908done
7909done
11a67599 7910IFS=$as_save_IFS
1c710c3c 7911
ca9f4b81
AO
7912fi
7913fi
1c710c3c 7914WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7915if test -n "$WINDRES"; then
11a67599
ZW
7916 { echo "$as_me:$LINENO: result: $WINDRES" >&5
7917echo "${ECHO_T}$WINDRES" >&6; }
ca9f4b81 7918else
11a67599
ZW
7919 { echo "$as_me:$LINENO: result: no" >&5
7920echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
7921fi
7922
11a67599 7923
2693c0b0
PB
7924 fi
7925 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7927set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
7930if test "${ac_cv_prog_WINDRES+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7932else
2693c0b0
PB
7933 if test -n "$WINDRES"; then
7934 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7935else
1c710c3c
DJ
7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939 IFS=$as_save_IFS
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 7942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
7943 ac_cv_prog_WINDRES="${ncn_progname}"
7944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 break 2
7946 fi
7947done
7948done
11a67599 7949IFS=$as_save_IFS
1c710c3c 7950
ca9f4b81
AO
7951fi
7952fi
1c710c3c 7953WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7954if test -n "$WINDRES"; then
11a67599
ZW
7955 { echo "$as_me:$LINENO: result: $WINDRES" >&5
7956echo "${ECHO_T}$WINDRES" >&6; }
ca9f4b81 7957else
11a67599
ZW
7958 { echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6; }
ca9f4b81 7960fi
1c710c3c 7961
11a67599 7962
2693c0b0
PB
7963 fi
7964 test -n "$ac_cv_prog_WINDRES" && break
7965done
7966
7967if test -z "$ac_cv_prog_WINDRES" ; then
7968 set dummy windres
7969 if test $build = $host ; then
7970 WINDRES="$2"
ca9f4b81 7971 else
2693c0b0 7972 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7973 fi
ca9f4b81
AO
7974fi
7975
278a7a38
AO
7976
7977
7978if test -n "$OBJCOPY"; then
7979 ac_cv_prog_OBJCOPY=$OBJCOPY
7980elif test -n "$ac_cv_prog_OBJCOPY"; then
7981 OBJCOPY=$ac_cv_prog_OBJCOPY
7982fi
7983
7984if test -n "$ac_cv_prog_OBJCOPY"; then
7985 for ncn_progname in objcopy; do
7986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7987set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
7988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
7990if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993 if test -n "$OBJCOPY"; then
7994 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7995else
7996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
8003 ac_cv_prog_OBJCOPY="${ncn_progname}"
8004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8006 fi
8007done
8008done
11a67599 8009IFS=$as_save_IFS
278a7a38
AO
8010
8011fi
8012fi
8013OBJCOPY=$ac_cv_prog_OBJCOPY
8014if test -n "$OBJCOPY"; then
11a67599
ZW
8015 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8016echo "${ECHO_T}$OBJCOPY" >&6; }
278a7a38 8017else
11a67599
ZW
8018 { echo "$as_me:$LINENO: result: no" >&5
8019echo "${ECHO_T}no" >&6; }
278a7a38
AO
8020fi
8021
11a67599 8022
278a7a38
AO
8023 done
8024fi
8025
8026for ncn_progname in objcopy; do
2693c0b0
PB
8027 if test -n "$ncn_tool_prefix"; then
8028 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8029set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
8030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8032if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8034else
8035 if test -n "$OBJCOPY"; then
8036 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8037else
1c710c3c
DJ
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8045 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049done
8050done
11a67599 8051IFS=$as_save_IFS
1c710c3c 8052
ca9f4b81
AO
8053fi
8054fi
1c710c3c 8055OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 8056if test -n "$OBJCOPY"; then
11a67599
ZW
8057 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8058echo "${ECHO_T}$OBJCOPY" >&6; }
ca9f4b81 8059else
11a67599
ZW
8060 { echo "$as_me:$LINENO: result: no" >&5
8061echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
8062fi
8063
11a67599 8064
2693c0b0
PB
8065 fi
8066 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8068set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8071if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8073else
2693c0b0
PB
8074 if test -n "$OBJCOPY"; then
8075 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 8076else
1c710c3c
DJ
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8084 ac_cv_prog_OBJCOPY="${ncn_progname}"
8085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8087 fi
8088done
8089done
11a67599 8090IFS=$as_save_IFS
1c710c3c 8091
ca9f4b81
AO
8092fi
8093fi
1c710c3c 8094OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 8095if test -n "$OBJCOPY"; then
11a67599
ZW
8096 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8097echo "${ECHO_T}$OBJCOPY" >&6; }
ca9f4b81 8098else
11a67599
ZW
8099 { echo "$as_me:$LINENO: result: no" >&5
8100echo "${ECHO_T}no" >&6; }
ca9f4b81 8101fi
1c710c3c 8102
11a67599 8103
2693c0b0
PB
8104 fi
8105 test -n "$ac_cv_prog_OBJCOPY" && break
8106done
8107
8108if test -z "$ac_cv_prog_OBJCOPY" ; then
8109 set dummy objcopy
8110 if test $build = $host ; then
8111 OBJCOPY="$2"
ca9f4b81 8112 else
2693c0b0 8113 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 8114 fi
ca9f4b81
AO
8115fi
8116
278a7a38
AO
8117
8118
8119if test -n "$OBJDUMP"; then
8120 ac_cv_prog_OBJDUMP=$OBJDUMP
8121elif test -n "$ac_cv_prog_OBJDUMP"; then
8122 OBJDUMP=$ac_cv_prog_OBJDUMP
8123fi
8124
8125if test -n "$ac_cv_prog_OBJDUMP"; then
8126 for ncn_progname in objdump; do
8127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8128set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
8131if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133else
8134 if test -n "$OBJDUMP"; then
8135 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8136else
8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
8144 ac_cv_prog_OBJDUMP="${ncn_progname}"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8147 fi
8148done
8149done
11a67599 8150IFS=$as_save_IFS
278a7a38
AO
8151
8152fi
8153fi
8154OBJDUMP=$ac_cv_prog_OBJDUMP
8155if test -n "$OBJDUMP"; then
11a67599
ZW
8156 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8157echo "${ECHO_T}$OBJDUMP" >&6; }
278a7a38 8158else
11a67599
ZW
8159 { echo "$as_me:$LINENO: result: no" >&5
8160echo "${ECHO_T}no" >&6; }
278a7a38
AO
8161fi
8162
11a67599 8163
278a7a38
AO
8164 done
8165fi
8166
8167for ncn_progname in objdump; do
2693c0b0
PB
8168 if test -n "$ncn_tool_prefix"; then
8169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8170set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
8171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8173if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8175else
8176 if test -n "$OBJDUMP"; then
8177 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8178else
1c710c3c
DJ
8179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8186 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8189 fi
8190done
8191done
11a67599 8192IFS=$as_save_IFS
1c710c3c 8193
ca9f4b81
AO
8194fi
8195fi
1c710c3c 8196OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 8197if test -n "$OBJDUMP"; then
11a67599
ZW
8198 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8199echo "${ECHO_T}$OBJDUMP" >&6; }
ca9f4b81 8200else
11a67599
ZW
8201 { echo "$as_me:$LINENO: result: no" >&5
8202echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
8203fi
8204
11a67599 8205
2693c0b0
PB
8206 fi
8207 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8209set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8212if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8214else
2693c0b0
PB
8215 if test -n "$OBJDUMP"; then
8216 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 8217else
1c710c3c
DJ
8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8225 ac_cv_prog_OBJDUMP="${ncn_progname}"
8226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 break 2
8228 fi
8229done
8230done
11a67599 8231IFS=$as_save_IFS
1c710c3c 8232
ca9f4b81
AO
8233fi
8234fi
1c710c3c 8235OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 8236if test -n "$OBJDUMP"; then
11a67599
ZW
8237 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8238echo "${ECHO_T}$OBJDUMP" >&6; }
ca9f4b81 8239else
11a67599
ZW
8240 { echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6; }
ca9f4b81 8242fi
1c710c3c 8243
11a67599 8244
2693c0b0
PB
8245 fi
8246 test -n "$ac_cv_prog_OBJDUMP" && break
8247done
8248
8249if test -z "$ac_cv_prog_OBJDUMP" ; then
8250 set dummy objdump
8251 if test $build = $host ; then
8252 OBJDUMP="$2"
ca9f4b81 8253 else
2693c0b0 8254 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 8255 fi
ca9f4b81
AO
8256fi
8257
671aa708
NN
8258
8259
8260
8261
8262
8263
2abefe3d 8264# Target tools.
1c710c3c 8265
11a67599 8266# Check whether --with-build-time-tools was given.
e8b05380 8267if test "${with_build_time_tools+set}" = set; then
11a67599 8268 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
8269 x/*) ;;
8270 *)
8271 with_build_time_tools=
1c710c3c
DJ
8272 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8273echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
8274 ;;
8275 esac
ca9f4b81 8276else
e8b05380 8277 with_build_time_tools=
11a67599
ZW
8278fi
8279
ca9f4b81 8280
278a7a38
AO
8281
8282
8283if test -n "$CC_FOR_TARGET"; then
8284 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8285elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8286 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8287fi
8288
8289if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8290 for ncn_progname in cc gcc; do
8291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8292set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
8295if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 if test -n "$CC_FOR_TARGET"; then
8299 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8300else
8301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302for as_dir in $PATH
8303do
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
8308 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312done
8313done
11a67599 8314IFS=$as_save_IFS
278a7a38
AO
8315
8316fi
8317fi
8318CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8319if test -n "$CC_FOR_TARGET"; then
11a67599
ZW
8320 { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8321echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
278a7a38 8322else
11a67599
ZW
8323 { echo "$as_me:$LINENO: result: no" >&5
8324echo "${ECHO_T}no" >&6; }
278a7a38
AO
8325fi
8326
11a67599 8327
278a7a38
AO
8328 done
8329fi
8330
8331if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8332 for ncn_progname in cc gcc; do
11a67599
ZW
8333 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8334echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
8335 if test -x $with_build_time_tools/${ncn_progname}; then
8336 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
8337 { echo "$as_me:$LINENO: result: yes" >&5
8338echo "${ECHO_T}yes" >&6; }
72a7ab82 8339 break
e8b05380 8340 else
11a67599
ZW
8341 { echo "$as_me:$LINENO: result: no" >&5
8342echo "${ECHO_T}no" >&6; }
72a7ab82
AP
8343 fi
8344 done
4de997d1
PB
8345fi
8346
e8b05380
PB
8347if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8348 for ncn_progname in cc gcc; do
8349 if test -n "$ncn_target_tool_prefix"; then
8350 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8351set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
8352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8354if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8356else
8357 if test -n "$CC_FOR_TARGET"; then
8358 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8359else
1c710c3c
DJ
8360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361for as_dir in $PATH
8362do
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8367 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8370 fi
8371done
8372done
11a67599 8373IFS=$as_save_IFS
1c710c3c 8374
4de997d1
PB
8375fi
8376fi
1c710c3c 8377CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8378if test -n "$CC_FOR_TARGET"; then
11a67599
ZW
8379 { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8380echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
4de997d1 8381else
11a67599
ZW
8382 { echo "$as_me:$LINENO: result: no" >&5
8383echo "${ECHO_T}no" >&6; }
4de997d1
PB
8384fi
8385
11a67599 8386
e8b05380
PB
8387 fi
8388 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8390set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8393if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8395else
2693c0b0
PB
8396 if test -n "$CC_FOR_TARGET"; then
8397 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8398else
1c710c3c
DJ
8399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400for as_dir in $PATH
8401do
8402 IFS=$as_save_IFS
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8406 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 break 2
8409 fi
8410done
8411done
11a67599 8412IFS=$as_save_IFS
1c710c3c 8413
4de997d1
PB
8414fi
8415fi
1c710c3c 8416CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8417if test -n "$CC_FOR_TARGET"; then
11a67599
ZW
8418 { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8419echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
4de997d1 8420else
11a67599
ZW
8421 { echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6; }
4de997d1 8423fi
1c710c3c 8424
11a67599 8425
e8b05380
PB
8426 fi
8427 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8428 done
8429fi
1c710c3c 8430
2693c0b0
PB
8431if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8432 set dummy cc gcc
8433 if test $build = $target ; then
8434 CC_FOR_TARGET="$2"
4de997d1 8435 else
2693c0b0 8436 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8437 fi
4de997d1
PB
8438fi
8439
278a7a38
AO
8440
8441
8442if test -n "$CXX_FOR_TARGET"; then
8443 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8444elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8445 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8446fi
8447
8448if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8449 for ncn_progname in c++ g++ cxx gxx; do
8450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8451set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
8454if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8456else
8457 if test -n "$CXX_FOR_TARGET"; then
8458 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8459else
8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
8467 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 break 2
8470 fi
8471done
8472done
11a67599 8473IFS=$as_save_IFS
278a7a38
AO
8474
8475fi
8476fi
8477CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8478if test -n "$CXX_FOR_TARGET"; then
11a67599
ZW
8479 { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8480echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
278a7a38 8481else
11a67599
ZW
8482 { echo "$as_me:$LINENO: result: no" >&5
8483echo "${ECHO_T}no" >&6; }
278a7a38
AO
8484fi
8485
11a67599 8486
278a7a38
AO
8487 done
8488fi
8489
8490if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8491 for ncn_progname in c++ g++ cxx gxx; do
11a67599
ZW
8492 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8493echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
8494 if test -x $with_build_time_tools/${ncn_progname}; then
8495 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
8496 { echo "$as_me:$LINENO: result: yes" >&5
8497echo "${ECHO_T}yes" >&6; }
e8b05380
PB
8498 break
8499 else
11a67599
ZW
8500 { echo "$as_me:$LINENO: result: no" >&5
8501echo "${ECHO_T}no" >&6; }
e8b05380
PB
8502 fi
8503 done
8504fi
8505
8506if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8507 for ncn_progname in c++ g++ cxx gxx; do
8508 if test -n "$ncn_target_tool_prefix"; then
8509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8510set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
8511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8513if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8515else
8516 if test -n "$CXX_FOR_TARGET"; then
8517 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8518else
1c710c3c
DJ
8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8526 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8529 fi
8530done
8531done
11a67599 8532IFS=$as_save_IFS
1c710c3c 8533
4de997d1
PB
8534fi
8535fi
1c710c3c 8536CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8537if test -n "$CXX_FOR_TARGET"; then
11a67599
ZW
8538 { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8539echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
4de997d1 8540else
11a67599
ZW
8541 { echo "$as_me:$LINENO: result: no" >&5
8542echo "${ECHO_T}no" >&6; }
4de997d1
PB
8543fi
8544
11a67599 8545
e8b05380
PB
8546 fi
8547 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8549set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8552if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8554else
2693c0b0
PB
8555 if test -n "$CXX_FOR_TARGET"; then
8556 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8557else
1c710c3c
DJ
8558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559for as_dir in $PATH
8560do
8561 IFS=$as_save_IFS
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8565 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 break 2
8568 fi
8569done
8570done
11a67599 8571IFS=$as_save_IFS
1c710c3c 8572
4de997d1
PB
8573fi
8574fi
1c710c3c 8575CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8576if test -n "$CXX_FOR_TARGET"; then
11a67599
ZW
8577 { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8578echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
4de997d1 8579else
11a67599
ZW
8580 { echo "$as_me:$LINENO: result: no" >&5
8581echo "${ECHO_T}no" >&6; }
4de997d1 8582fi
1c710c3c 8583
11a67599 8584
e8b05380
PB
8585 fi
8586 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8587 done
8588fi
1c710c3c 8589
2693c0b0
PB
8590if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8591 set dummy c++ g++ cxx gxx
8592 if test $build = $target ; then
8593 CXX_FOR_TARGET="$2"
4de997d1 8594 else
2693c0b0 8595 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8596 fi
ca9f4b81
AO
8597fi
8598
278a7a38
AO
8599
8600
8601if test -n "$GCC_FOR_TARGET"; then
8602 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8603elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8604 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8605fi
8606
8607if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8608 for ncn_progname in gcc; do
8609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8610set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
8613if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8615else
8616 if test -n "$GCC_FOR_TARGET"; then
8617 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8618else
8619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620for as_dir in $PATH
8621do
8622 IFS=$as_save_IFS
8623 test -z "$as_dir" && as_dir=.
8624 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
8626 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8628 break 2
8629 fi
8630done
8631done
11a67599 8632IFS=$as_save_IFS
278a7a38
AO
8633
8634fi
8635fi
8636GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8637if test -n "$GCC_FOR_TARGET"; then
11a67599
ZW
8638 { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8639echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
278a7a38 8640else
11a67599
ZW
8641 { echo "$as_me:$LINENO: result: no" >&5
8642echo "${ECHO_T}no" >&6; }
278a7a38
AO
8643fi
8644
11a67599 8645
278a7a38
AO
8646 done
8647fi
8648
8649if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8650 for ncn_progname in gcc; do
11a67599
ZW
8651 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8652echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
8653 if test -x $with_build_time_tools/${ncn_progname}; then
8654 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
8655 { echo "$as_me:$LINENO: result: yes" >&5
8656echo "${ECHO_T}yes" >&6; }
e8b05380
PB
8657 break
8658 else
11a67599
ZW
8659 { echo "$as_me:$LINENO: result: no" >&5
8660echo "${ECHO_T}no" >&6; }
e8b05380
PB
8661 fi
8662 done
8663fi
8664
8665if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8666 for ncn_progname in gcc; do
8667 if test -n "$ncn_target_tool_prefix"; then
8668 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8669set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
8670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8672if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8674else
e8b05380
PB
8675 if test -n "$GCC_FOR_TARGET"; then
8676 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8677else
1c710c3c
DJ
8678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679for as_dir in $PATH
8680do
8681 IFS=$as_save_IFS
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8685 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 break 2
8688 fi
8689done
8690done
11a67599 8691IFS=$as_save_IFS
1c710c3c 8692
ca9f4b81
AO
8693fi
8694fi
1c710c3c 8695GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8696if test -n "$GCC_FOR_TARGET"; then
11a67599
ZW
8697 { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8698echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
ca9f4b81 8699else
11a67599
ZW
8700 { echo "$as_me:$LINENO: result: no" >&5
8701echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
8702fi
8703
11a67599 8704
e8b05380
PB
8705 fi
8706 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8708set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8711if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8713else
e8b05380
PB
8714 if test -n "$GCC_FOR_TARGET"; then
8715 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8716else
1c710c3c
DJ
8717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718for as_dir in $PATH
8719do
8720 IFS=$as_save_IFS
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8724 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8726 break 2
8727 fi
8728done
8729done
11a67599 8730IFS=$as_save_IFS
1c710c3c 8731
ca9f4b81
AO
8732fi
8733fi
1c710c3c 8734GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8735if test -n "$GCC_FOR_TARGET"; then
11a67599
ZW
8736 { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8737echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
ca9f4b81 8738else
11a67599
ZW
8739 { echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6; }
ca9f4b81 8741fi
1c710c3c 8742
11a67599 8743
e8b05380
PB
8744 fi
8745 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8746 done
8747fi
1c710c3c 8748
e8b05380
PB
8749if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8750 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8751fi
8752
278a7a38
AO
8753
8754
8755if test -n "$GCJ_FOR_TARGET"; then
8756 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8757elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8758 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8759fi
8760
8761if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8762 for ncn_progname in gcj; do
8763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8764set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
8767if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769else
8770 if test -n "$GCJ_FOR_TARGET"; then
8771 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8772else
8773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774for as_dir in $PATH
8775do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
8780 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8783 fi
8784done
8785done
11a67599 8786IFS=$as_save_IFS
278a7a38
AO
8787
8788fi
8789fi
8790GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8791if test -n "$GCJ_FOR_TARGET"; then
11a67599
ZW
8792 { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8793echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
278a7a38 8794else
11a67599
ZW
8795 { echo "$as_me:$LINENO: result: no" >&5
8796echo "${ECHO_T}no" >&6; }
278a7a38
AO
8797fi
8798
11a67599 8799
278a7a38
AO
8800 done
8801fi
8802
8803if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8804 for ncn_progname in gcj; do
11a67599
ZW
8805 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8806echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
8807 if test -x $with_build_time_tools/${ncn_progname}; then
8808 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
8809 { echo "$as_me:$LINENO: result: yes" >&5
8810echo "${ECHO_T}yes" >&6; }
e8b05380
PB
8811 break
8812 else
11a67599
ZW
8813 { echo "$as_me:$LINENO: result: no" >&5
8814echo "${ECHO_T}no" >&6; }
e8b05380
PB
8815 fi
8816 done
8817fi
8818
8819if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8820 for ncn_progname in gcj; do
8821 if test -n "$ncn_target_tool_prefix"; then
8822 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8823set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
8824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8826if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8828else
fb0103e5
RG
8829 if test -n "$GCJ_FOR_TARGET"; then
8830 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8831else
1c710c3c
DJ
8832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833for as_dir in $PATH
8834do
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8839 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8842 fi
8843done
8844done
11a67599 8845IFS=$as_save_IFS
1c710c3c 8846
e8b05380
PB
8847fi
8848fi
278a7a38
AO
8849GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8850if test -n "$GCJ_FOR_TARGET"; then
11a67599
ZW
8851 { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8852echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
278a7a38 8853else
11a67599
ZW
8854 { echo "$as_me:$LINENO: result: no" >&5
8855echo "${ECHO_T}no" >&6; }
278a7a38
AO
8856fi
8857
11a67599 8858
278a7a38
AO
8859 fi
8860 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8862set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
8865if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8867else
8868 if test -n "$GCJ_FOR_TARGET"; then
8869 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8870else
8871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872for as_dir in $PATH
8873do
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
8878 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 break 2
8881 fi
8882done
8883done
11a67599 8884IFS=$as_save_IFS
278a7a38
AO
8885
8886fi
8887fi
8888GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8889if test -n "$GCJ_FOR_TARGET"; then
11a67599
ZW
8890 { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8891echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
278a7a38 8892else
11a67599
ZW
8893 { echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6; }
278a7a38
AO
8895fi
8896
11a67599 8897
278a7a38
AO
8898 fi
8899 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8900 done
8901fi
8902
8903if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8904 set dummy gcj
8905 if test $build = $target ; then
8906 GCJ_FOR_TARGET="$2"
8907 else
8908 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8909 fi
8910fi
8911
8912
8913
8914if test -n "$GFORTRAN_FOR_TARGET"; then
8915 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8916elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8917 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8918fi
8919
278a7a38
AO
8920if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8921 for ncn_progname in gfortran; do
8922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8923set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
8924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38 8926if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8927 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8928else
278a7a38
AO
8929 if test -n "$GFORTRAN_FOR_TARGET"; then
8930 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8931else
1c710c3c
DJ
8932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933for as_dir in $PATH
8934do
8935 IFS=$as_save_IFS
8936 test -z "$as_dir" && as_dir=.
8937 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8939 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8941 break 2
8942 fi
8943done
8944done
11a67599 8945IFS=$as_save_IFS
1c710c3c 8946
e8b05380
PB
8947fi
8948fi
278a7a38
AO
8949GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8950if test -n "$GFORTRAN_FOR_TARGET"; then
11a67599
ZW
8951 { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8952echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 8953else
11a67599
ZW
8954 { echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6; }
e8b05380 8956fi
1c710c3c 8957
11a67599 8958
e8b05380
PB
8959 done
8960fi
1c710c3c 8961
278a7a38 8962if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8963 for ncn_progname in gfortran; do
11a67599
ZW
8964 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8965echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
8966 if test -x $with_build_time_tools/${ncn_progname}; then
8967 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
8968 { echo "$as_me:$LINENO: result: yes" >&5
8969echo "${ECHO_T}yes" >&6; }
e8b05380
PB
8970 break
8971 else
11a67599
ZW
8972 { echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6; }
e8b05380
PB
8974 fi
8975 done
8976fi
8977
8978if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8979 for ncn_progname in gfortran; do
8980 if test -n "$ncn_target_tool_prefix"; then
8981 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8982set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
8983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
8985if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8987else
8988 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8989 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8990else
8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992for as_dir in $PATH
8993do
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
8996 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 8997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
8998 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 break 2
9001 fi
9002done
9003done
11a67599 9004IFS=$as_save_IFS
1c710c3c 9005
e8b05380
PB
9006fi
9007fi
1c710c3c 9008GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9009if test -n "$GFORTRAN_FOR_TARGET"; then
11a67599
ZW
9010 { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9011echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 9012else
11a67599
ZW
9013 { echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6; }
e8b05380
PB
9015fi
9016
11a67599 9017
e8b05380
PB
9018 fi
9019 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9021set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
9022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9024if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9026else
9027 if test -n "$GFORTRAN_FOR_TARGET"; then
9028 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9029else
1c710c3c
DJ
9030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031for as_dir in $PATH
9032do
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9037 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 break 2
9040 fi
9041done
9042done
11a67599 9043IFS=$as_save_IFS
1c710c3c 9044
e8b05380
PB
9045fi
9046fi
1c710c3c 9047GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9048if test -n "$GFORTRAN_FOR_TARGET"; then
11a67599
ZW
9049 { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9050echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 9051else
11a67599
ZW
9052 { echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6; }
e8b05380 9054fi
1c710c3c 9055
11a67599 9056
e8b05380
PB
9057 fi
9058 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9059 done
9060fi
1c710c3c 9061
e8b05380
PB
9062if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9063 set dummy gfortran
2693c0b0 9064 if test $build = $target ; then
e8b05380 9065 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 9066 else
e8b05380
PB
9067 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9068 fi
9069fi
9070
9071
9072
e8b05380
PB
9073cat > conftest.c << \EOF
9074#ifdef __GNUC__
9075 gcc_yay;
9076#endif
9077EOF
9078if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9079 have_gcc_for_target=yes
9080else
9081 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9082 have_gcc_for_target=no
9083fi
9084rm conftest.c
9085
9086
9087
9088
9089if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9090 if test -n "$with_build_time_tools"; then
11a67599
ZW
9091 { echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9092echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
9093 if test -x $with_build_time_tools/ar; then
9094 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9095 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11a67599
ZW
9096 { echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9097echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 9098 else
11a67599
ZW
9099 { echo "$as_me:$LINENO: result: no" >&5
9100echo "${ECHO_T}no" >&6; }
d1f8db0c 9101 fi
e8b05380
PB
9102 elif test $build != $host && test $have_gcc_for_target = yes; then
9103 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9104 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
9105 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9106 fi
9107fi
3e19841a 9108if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9109 # Extract the first word of "ar", so it can be a program name with args.
9110set dummy ar; ac_word=$2
11a67599
ZW
9111{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9113if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9115else
1c710c3c
DJ
9116 case $AR_FOR_TARGET in
9117 [\\/]* | ?:[\\/]*)
e8b05380
PB
9118 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9119 ;;
e8b05380 9120 *)
1c710c3c
DJ
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122for as_dir in $gcc_cv_tool_dirs
9123do
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9128 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9131 fi
9132done
9133done
11a67599 9134IFS=$as_save_IFS
1c710c3c 9135
e8b05380
PB
9136 ;;
9137esac
9138fi
1c710c3c 9139AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 9140if test -n "$AR_FOR_TARGET"; then
11a67599
ZW
9141 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9142echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
e8b05380 9143else
11a67599
ZW
9144 { echo "$as_me:$LINENO: result: no" >&5
9145echo "${ECHO_T}no" >&6; }
4de997d1
PB
9146fi
9147
11a67599 9148
e8b05380
PB
9149fi
9150if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
9151
9152
9153if test -n "$AR_FOR_TARGET"; then
9154 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9155elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9156 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9157fi
9158
9159if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9160 for ncn_progname in ar; do
9161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9162set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
9163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
9165if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9167else
9168 if test -n "$AR_FOR_TARGET"; then
9169 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9170else
9171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9172for as_dir in $PATH
9173do
9174 IFS=$as_save_IFS
9175 test -z "$as_dir" && as_dir=.
9176 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
9178 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9180 break 2
9181 fi
9182done
9183done
11a67599 9184IFS=$as_save_IFS
278a7a38
AO
9185
9186fi
9187fi
9188AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9189if test -n "$AR_FOR_TARGET"; then
11a67599
ZW
9190 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9191echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
278a7a38 9192else
11a67599
ZW
9193 { echo "$as_me:$LINENO: result: no" >&5
9194echo "${ECHO_T}no" >&6; }
278a7a38
AO
9195fi
9196
11a67599 9197
278a7a38
AO
9198 done
9199fi
9200
9201if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9202 for ncn_progname in ar; do
11a67599
ZW
9203 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9204echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
9205 if test -x $with_build_time_tools/${ncn_progname}; then
9206 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
9207 { echo "$as_me:$LINENO: result: yes" >&5
9208echo "${ECHO_T}yes" >&6; }
e8b05380
PB
9209 break
9210 else
11a67599
ZW
9211 { echo "$as_me:$LINENO: result: no" >&5
9212echo "${ECHO_T}no" >&6; }
e8b05380
PB
9213 fi
9214 done
9215fi
9216
9217if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9218 for ncn_progname in ar; do
9219 if test -n "$ncn_target_tool_prefix"; then
9220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9221set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
9222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9224if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9226else
e8b05380
PB
9227 if test -n "$AR_FOR_TARGET"; then
9228 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 9229else
1c710c3c
DJ
9230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231for as_dir in $PATH
9232do
9233 IFS=$as_save_IFS
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9237 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 break 2
9240 fi
9241done
9242done
11a67599 9243IFS=$as_save_IFS
1c710c3c 9244
4de997d1
PB
9245fi
9246fi
1c710c3c 9247AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9248if test -n "$AR_FOR_TARGET"; then
11a67599
ZW
9249 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9250echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
4de997d1 9251else
11a67599
ZW
9252 { echo "$as_me:$LINENO: result: no" >&5
9253echo "${ECHO_T}no" >&6; }
4de997d1
PB
9254fi
9255
11a67599 9256
e8b05380
PB
9257 fi
9258 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9260set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
9261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9263if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9265else
9266 if test -n "$AR_FOR_TARGET"; then
9267 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9268else
1c710c3c
DJ
9269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270for as_dir in $PATH
9271do
9272 IFS=$as_save_IFS
9273 test -z "$as_dir" && as_dir=.
9274 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9276 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9278 break 2
9279 fi
9280done
9281done
11a67599 9282IFS=$as_save_IFS
1c710c3c 9283
e8b05380
PB
9284fi
9285fi
1c710c3c 9286AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9287if test -n "$AR_FOR_TARGET"; then
11a67599
ZW
9288 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9289echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
e8b05380 9290else
11a67599
ZW
9291 { echo "$as_me:$LINENO: result: no" >&5
9292echo "${ECHO_T}no" >&6; }
e8b05380 9293fi
1c710c3c 9294
11a67599 9295
e8b05380
PB
9296 fi
9297 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9298 done
9299fi
1c710c3c 9300
e8b05380
PB
9301if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9302 set dummy ar
9303 if test $build = $target ; then
9304 AR_FOR_TARGET="$2"
9305 else
9306 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 9307 fi
e8b05380
PB
9308fi
9309
d1f8db0c
PB
9310else
9311 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
9312fi
9313
9314
9315
9316
9317if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9318 if test -n "$with_build_time_tools"; then
11a67599
ZW
9319 { echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9320echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
9321 if test -x $with_build_time_tools/as; then
9322 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9323 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11a67599
ZW
9324 { echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9325echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 9326 else
11a67599
ZW
9327 { echo "$as_me:$LINENO: result: no" >&5
9328echo "${ECHO_T}no" >&6; }
d1f8db0c 9329 fi
e8b05380
PB
9330 elif test $build != $host && test $have_gcc_for_target = yes; then
9331 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9332 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
9333 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9334 fi
9335fi
3e19841a 9336if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9337 # Extract the first word of "as", so it can be a program name with args.
9338set dummy as; ac_word=$2
11a67599
ZW
9339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9341if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9343else
1c710c3c
DJ
9344 case $AS_FOR_TARGET in
9345 [\\/]* | ?:[\\/]*)
e8b05380
PB
9346 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9347 ;;
e8b05380 9348 *)
1c710c3c
DJ
9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350for as_dir in $gcc_cv_tool_dirs
9351do
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9356 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9359 fi
9360done
9361done
11a67599 9362IFS=$as_save_IFS
1c710c3c 9363
e8b05380
PB
9364 ;;
9365esac
9366fi
1c710c3c 9367AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 9368if test -n "$AS_FOR_TARGET"; then
11a67599
ZW
9369 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9370echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
e8b05380 9371else
11a67599
ZW
9372 { echo "$as_me:$LINENO: result: no" >&5
9373echo "${ECHO_T}no" >&6; }
e8b05380
PB
9374fi
9375
11a67599 9376
e8b05380
PB
9377fi
9378if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9379
9380
9381if test -n "$AS_FOR_TARGET"; then
9382 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9383elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9384 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9385fi
9386
9387if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9388 for ncn_progname in as; do
9389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
9391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
9393if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9394 echo $ECHO_N "(cached) $ECHO_C" >&6
9395else
9396 if test -n "$AS_FOR_TARGET"; then
9397 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9398else
9399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400for as_dir in $PATH
9401do
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
9406 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 break 2
9409 fi
9410done
9411done
11a67599 9412IFS=$as_save_IFS
278a7a38
AO
9413
9414fi
9415fi
9416AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9417if test -n "$AS_FOR_TARGET"; then
11a67599
ZW
9418 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9419echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
278a7a38 9420else
11a67599
ZW
9421 { echo "$as_me:$LINENO: result: no" >&5
9422echo "${ECHO_T}no" >&6; }
278a7a38
AO
9423fi
9424
11a67599 9425
278a7a38
AO
9426 done
9427fi
9428
9429if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9430 for ncn_progname in as; do
11a67599
ZW
9431 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9432echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
9433 if test -x $with_build_time_tools/${ncn_progname}; then
9434 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
9435 { echo "$as_me:$LINENO: result: yes" >&5
9436echo "${ECHO_T}yes" >&6; }
e8b05380
PB
9437 break
9438 else
11a67599
ZW
9439 { echo "$as_me:$LINENO: result: no" >&5
9440echo "${ECHO_T}no" >&6; }
e8b05380
PB
9441 fi
9442 done
9443fi
9444
9445if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9446 for ncn_progname in as; do
9447 if test -n "$ncn_target_tool_prefix"; then
9448 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9449set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
9450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9452if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9454else
9455 if test -n "$AS_FOR_TARGET"; then
9456 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9457else
1c710c3c
DJ
9458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459for as_dir in $PATH
9460do
9461 IFS=$as_save_IFS
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9465 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 break 2
9468 fi
9469done
9470done
11a67599 9471IFS=$as_save_IFS
1c710c3c 9472
e8b05380
PB
9473fi
9474fi
1c710c3c 9475AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9476if test -n "$AS_FOR_TARGET"; then
11a67599
ZW
9477 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9478echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
e8b05380 9479else
11a67599
ZW
9480 { echo "$as_me:$LINENO: result: no" >&5
9481echo "${ECHO_T}no" >&6; }
e8b05380
PB
9482fi
9483
11a67599 9484
e8b05380
PB
9485 fi
9486 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9488set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
9489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9491if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9493else
e8b05380
PB
9494 if test -n "$AS_FOR_TARGET"; then
9495 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9496else
1c710c3c
DJ
9497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498for as_dir in $PATH
9499do
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9504 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 break 2
9507 fi
9508done
9509done
11a67599 9510IFS=$as_save_IFS
1c710c3c 9511
4de997d1
PB
9512fi
9513fi
1c710c3c 9514AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9515if test -n "$AS_FOR_TARGET"; then
11a67599
ZW
9516 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9517echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
4de997d1 9518else
11a67599
ZW
9519 { echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6; }
4de997d1 9521fi
1c710c3c 9522
11a67599 9523
e8b05380
PB
9524 fi
9525 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9526 done
9527fi
1c710c3c 9528
e8b05380
PB
9529if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9530 set dummy as
9531 if test $build = $target ; then
9532 AS_FOR_TARGET="$2"
9533 else
9534 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9535 fi
e8b05380 9536fi
2693c0b0 9537
d1f8db0c
PB
9538else
9539 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9540fi
9541
e8b05380
PB
9542
9543
9544
9545if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9546 if test -n "$with_build_time_tools"; then
11a67599
ZW
9547 { echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9548echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
9549 if test -x $with_build_time_tools/dlltool; then
9550 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9551 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11a67599
ZW
9552 { echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9553echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 9554 else
11a67599
ZW
9555 { echo "$as_me:$LINENO: result: no" >&5
9556echo "${ECHO_T}no" >&6; }
d1f8db0c 9557 fi
e8b05380
PB
9558 elif test $build != $host && test $have_gcc_for_target = yes; then
9559 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9560 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
9561 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9562 fi
9563fi
3e19841a 9564if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9565 # Extract the first word of "dlltool", so it can be a program name with args.
9566set dummy dlltool; ac_word=$2
11a67599
ZW
9567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9569if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9571else
1c710c3c
DJ
9572 case $DLLTOOL_FOR_TARGET in
9573 [\\/]* | ?:[\\/]*)
e8b05380
PB
9574 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9575 ;;
e8b05380 9576 *)
1c710c3c
DJ
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578for as_dir in $gcc_cv_tool_dirs
9579do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9584 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9587 fi
9588done
9589done
11a67599 9590IFS=$as_save_IFS
1c710c3c 9591
e8b05380
PB
9592 ;;
9593esac
4de997d1 9594fi
1c710c3c 9595DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 9596if test -n "$DLLTOOL_FOR_TARGET"; then
11a67599
ZW
9597 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9598echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 9599else
11a67599
ZW
9600 { echo "$as_me:$LINENO: result: no" >&5
9601echo "${ECHO_T}no" >&6; }
4de997d1
PB
9602fi
9603
11a67599 9604
e8b05380
PB
9605fi
9606if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9607
9608
9609if test -n "$DLLTOOL_FOR_TARGET"; then
9610 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9611elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9612 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9613fi
9614
9615if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9616 for ncn_progname in dlltool; do
9617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9618set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
9619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
9621if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9623else
9624 if test -n "$DLLTOOL_FOR_TARGET"; then
9625 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9626else
9627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628for as_dir in $PATH
9629do
9630 IFS=$as_save_IFS
9631 test -z "$as_dir" && as_dir=.
9632 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
9634 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9636 break 2
9637 fi
9638done
9639done
11a67599 9640IFS=$as_save_IFS
278a7a38
AO
9641
9642fi
9643fi
9644DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9645if test -n "$DLLTOOL_FOR_TARGET"; then
11a67599
ZW
9646 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9647echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 9648else
11a67599
ZW
9649 { echo "$as_me:$LINENO: result: no" >&5
9650echo "${ECHO_T}no" >&6; }
278a7a38
AO
9651fi
9652
11a67599 9653
278a7a38
AO
9654 done
9655fi
9656
9657if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9658 for ncn_progname in dlltool; do
11a67599
ZW
9659 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9660echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
9661 if test -x $with_build_time_tools/${ncn_progname}; then
9662 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
9663 { echo "$as_me:$LINENO: result: yes" >&5
9664echo "${ECHO_T}yes" >&6; }
e8b05380
PB
9665 break
9666 else
11a67599
ZW
9667 { echo "$as_me:$LINENO: result: no" >&5
9668echo "${ECHO_T}no" >&6; }
e8b05380
PB
9669 fi
9670 done
9671fi
9672
9673if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9674 for ncn_progname in dlltool; do
9675 if test -n "$ncn_target_tool_prefix"; then
9676 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9677set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
9678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9680if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9682else
e8b05380
PB
9683 if test -n "$DLLTOOL_FOR_TARGET"; then
9684 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9685else
1c710c3c
DJ
9686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687for as_dir in $PATH
9688do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9693 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9696 fi
9697done
9698done
11a67599 9699IFS=$as_save_IFS
1c710c3c 9700
4de997d1
PB
9701fi
9702fi
1c710c3c 9703DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9704if test -n "$DLLTOOL_FOR_TARGET"; then
11a67599
ZW
9705 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9706echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 9707else
11a67599
ZW
9708 { echo "$as_me:$LINENO: result: no" >&5
9709echo "${ECHO_T}no" >&6; }
4de997d1 9710fi
4de997d1 9711
11a67599 9712
e8b05380
PB
9713 fi
9714 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9716set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
9717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9719if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9721else
e8b05380
PB
9722 if test -n "$DLLTOOL_FOR_TARGET"; then
9723 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9724else
1c710c3c
DJ
9725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726for as_dir in $PATH
9727do
9728 IFS=$as_save_IFS
9729 test -z "$as_dir" && as_dir=.
9730 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9732 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9734 break 2
9735 fi
9736done
9737done
11a67599 9738IFS=$as_save_IFS
1c710c3c 9739
4de997d1
PB
9740fi
9741fi
1c710c3c 9742DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9743if test -n "$DLLTOOL_FOR_TARGET"; then
11a67599
ZW
9744 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9745echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 9746else
11a67599
ZW
9747 { echo "$as_me:$LINENO: result: no" >&5
9748echo "${ECHO_T}no" >&6; }
4de997d1 9749fi
1c710c3c 9750
11a67599 9751
e8b05380
PB
9752 fi
9753 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9754 done
9755fi
1c710c3c 9756
e8b05380
PB
9757if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9758 set dummy dlltool
9759 if test $build = $target ; then
9760 DLLTOOL_FOR_TARGET="$2"
9761 else
9762 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9763 fi
9764fi
9765
d1f8db0c
PB
9766else
9767 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9768fi
9769
4de997d1 9770
e8b05380
PB
9771
9772
9773if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9774 if test -n "$with_build_time_tools"; then
11a67599
ZW
9775 { echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9776echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
9777 if test -x $with_build_time_tools/ld; then
9778 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9779 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11a67599
ZW
9780 { echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9781echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 9782 else
11a67599
ZW
9783 { echo "$as_me:$LINENO: result: no" >&5
9784echo "${ECHO_T}no" >&6; }
d1f8db0c 9785 fi
e8b05380
PB
9786 elif test $build != $host && test $have_gcc_for_target = yes; then
9787 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9788 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
9789 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9790 fi
e8b05380 9791fi
3e19841a 9792if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9793 # Extract the first word of "ld", so it can be a program name with args.
9794set dummy ld; ac_word=$2
11a67599
ZW
9795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9797if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9799else
1c710c3c
DJ
9800 case $LD_FOR_TARGET in
9801 [\\/]* | ?:[\\/]*)
e8b05380
PB
9802 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9803 ;;
e8b05380 9804 *)
1c710c3c
DJ
9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806for as_dir in $gcc_cv_tool_dirs
9807do
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9812 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9814 break 2
9815 fi
9816done
9817done
11a67599 9818IFS=$as_save_IFS
1c710c3c 9819
e8b05380
PB
9820 ;;
9821esac
4de997d1 9822fi
1c710c3c 9823LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 9824if test -n "$LD_FOR_TARGET"; then
11a67599
ZW
9825 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9826echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
4de997d1 9827else
11a67599
ZW
9828 { echo "$as_me:$LINENO: result: no" >&5
9829echo "${ECHO_T}no" >&6; }
4de997d1 9830fi
2693c0b0 9831
11a67599 9832
e8b05380
PB
9833fi
9834if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9835
9836
9837if test -n "$LD_FOR_TARGET"; then
9838 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9839elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9840 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9841fi
9842
9843if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9844 for ncn_progname in ld; do
9845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9846set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
9847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
9849if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851else
9852 if test -n "$LD_FOR_TARGET"; then
9853 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9854else
9855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856for as_dir in $PATH
9857do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
9862 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 break 2
9865 fi
9866done
9867done
11a67599 9868IFS=$as_save_IFS
278a7a38
AO
9869
9870fi
9871fi
9872LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9873if test -n "$LD_FOR_TARGET"; then
11a67599
ZW
9874 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9875echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
278a7a38 9876else
11a67599
ZW
9877 { echo "$as_me:$LINENO: result: no" >&5
9878echo "${ECHO_T}no" >&6; }
278a7a38
AO
9879fi
9880
11a67599 9881
278a7a38
AO
9882 done
9883fi
9884
9885if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9886 for ncn_progname in ld; do
11a67599
ZW
9887 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9888echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
9889 if test -x $with_build_time_tools/${ncn_progname}; then
9890 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
9891 { echo "$as_me:$LINENO: result: yes" >&5
9892echo "${ECHO_T}yes" >&6; }
e8b05380
PB
9893 break
9894 else
11a67599
ZW
9895 { echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6; }
e8b05380
PB
9897 fi
9898 done
ca9f4b81
AO
9899fi
9900
e8b05380
PB
9901if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9902 for ncn_progname in ld; do
9903 if test -n "$ncn_target_tool_prefix"; then
9904 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9905set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
9906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9908if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9910else
4de997d1
PB
9911 if test -n "$LD_FOR_TARGET"; then
9912 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9913else
1c710c3c
DJ
9914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915for as_dir in $PATH
9916do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9921 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9924 fi
9925done
9926done
11a67599 9927IFS=$as_save_IFS
1c710c3c 9928
ca9f4b81
AO
9929fi
9930fi
1c710c3c 9931LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9932if test -n "$LD_FOR_TARGET"; then
11a67599
ZW
9933 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9934echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
ca9f4b81 9935else
11a67599
ZW
9936 { echo "$as_me:$LINENO: result: no" >&5
9937echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
9938fi
9939
11a67599 9940
e8b05380
PB
9941 fi
9942 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9944set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
9945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
9947if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9949else
2693c0b0
PB
9950 if test -n "$LD_FOR_TARGET"; then
9951 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9952else
1c710c3c
DJ
9953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954for as_dir in $PATH
9955do
9956 IFS=$as_save_IFS
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 9959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
9960 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9962 break 2
9963 fi
9964done
9965done
11a67599 9966IFS=$as_save_IFS
1c710c3c 9967
ca9f4b81
AO
9968fi
9969fi
1c710c3c 9970LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9971if test -n "$LD_FOR_TARGET"; then
11a67599
ZW
9972 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9973echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
ca9f4b81 9974else
11a67599
ZW
9975 { echo "$as_me:$LINENO: result: no" >&5
9976echo "${ECHO_T}no" >&6; }
ca9f4b81 9977fi
1c710c3c 9978
11a67599 9979
e8b05380
PB
9980 fi
9981 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9982 done
9983fi
1c710c3c 9984
2693c0b0
PB
9985if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9986 set dummy ld
9987 if test $build = $target ; then
9988 LD_FOR_TARGET="$2"
ca9f4b81 9989 else
2693c0b0 9990 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9991 fi
ca9f4b81
AO
9992fi
9993
d1f8db0c
PB
9994else
9995 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9996fi
9997
9998
9999
10000
10001if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10002 if test -n "$with_build_time_tools"; then
11a67599
ZW
10003 { echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10004echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
10005 if test -x $with_build_time_tools/lipo; then
10006 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10007 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11a67599
ZW
10008 { echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10009echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 10010 else
11a67599
ZW
10011 { echo "$as_me:$LINENO: result: no" >&5
10012echo "${ECHO_T}no" >&6; }
d1f8db0c 10013 fi
e8b05380
PB
10014 elif test $build != $host && test $have_gcc_for_target = yes; then
10015 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10016 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
10017 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10018 fi
10019fi
278a7a38
AO
10020if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10021 # Extract the first word of "lipo", so it can be a program name with args.
10022set dummy lipo; ac_word=$2
11a67599
ZW
10023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
10025if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027else
10028 case $LIPO_FOR_TARGET in
10029 [\\/]* | ?:[\\/]*)
10030 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10031 ;;
10032 *)
10033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034for as_dir in $gcc_cv_tool_dirs
10035do
10036 IFS=$as_save_IFS
10037 test -z "$as_dir" && as_dir=.
10038 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
10040 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 break 2
10043 fi
10044done
10045done
11a67599 10046IFS=$as_save_IFS
278a7a38
AO
10047
10048 ;;
10049esac
10050fi
10051LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 10052if test -n "$LIPO_FOR_TARGET"; then
11a67599
ZW
10053 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10054echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
278a7a38 10055else
11a67599
ZW
10056 { echo "$as_me:$LINENO: result: no" >&5
10057echo "${ECHO_T}no" >&6; }
278a7a38
AO
10058fi
10059
11a67599 10060
278a7a38
AO
10061fi
10062if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10063
10064
10065if test -n "$LIPO_FOR_TARGET"; then
10066 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10067elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10068 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10069fi
10070
10071if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10072 for ncn_progname in lipo; do
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10074set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
10075{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38 10077if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 10078 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10079else
278a7a38
AO
10080 if test -n "$LIPO_FOR_TARGET"; then
10081 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10082else
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
1c710c3c
DJ
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10090 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
10091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10093 fi
10094done
10095done
11a67599 10096IFS=$as_save_IFS
1c710c3c 10097
e8b05380 10098fi
278a7a38
AO
10099fi
10100LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 10101if test -n "$LIPO_FOR_TARGET"; then
11a67599
ZW
10102 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10103echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
e8b05380 10104else
11a67599
ZW
10105 { echo "$as_me:$LINENO: result: no" >&5
10106echo "${ECHO_T}no" >&6; }
e8b05380
PB
10107fi
10108
11a67599 10109
278a7a38 10110 done
e8b05380 10111fi
278a7a38
AO
10112
10113if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10114 for ncn_progname in lipo; do
11a67599
ZW
10115 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10116echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
10117 if test -x $with_build_time_tools/${ncn_progname}; then
10118 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
10119 { echo "$as_me:$LINENO: result: yes" >&5
10120echo "${ECHO_T}yes" >&6; }
e8b05380
PB
10121 break
10122 else
11a67599
ZW
10123 { echo "$as_me:$LINENO: result: no" >&5
10124echo "${ECHO_T}no" >&6; }
e8b05380
PB
10125 fi
10126 done
10127fi
10128
10129if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10130 for ncn_progname in lipo; do
10131 if test -n "$ncn_target_tool_prefix"; then
10132 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10133set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
10134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10136if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10138else
10139 if test -n "$LIPO_FOR_TARGET"; then
10140 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10141else
1c710c3c
DJ
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145 IFS=$as_save_IFS
10146 test -z "$as_dir" && as_dir=.
10147 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10149 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10151 break 2
10152 fi
10153done
10154done
11a67599 10155IFS=$as_save_IFS
1c710c3c 10156
040b1c5a
GK
10157fi
10158fi
1c710c3c 10159LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10160if test -n "$LIPO_FOR_TARGET"; then
11a67599
ZW
10161 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10162echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
040b1c5a 10163else
11a67599
ZW
10164 { echo "$as_me:$LINENO: result: no" >&5
10165echo "${ECHO_T}no" >&6; }
040b1c5a
GK
10166fi
10167
11a67599 10168
e8b05380
PB
10169 fi
10170 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10172set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
10173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10175if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10177else
10178 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
10179 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10180else
1c710c3c
DJ
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10188 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10191 fi
10192done
10193done
11a67599 10194IFS=$as_save_IFS
1c710c3c 10195
040b1c5a
GK
10196fi
10197fi
1c710c3c 10198LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10199if test -n "$LIPO_FOR_TARGET"; then
11a67599
ZW
10200 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10201echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
040b1c5a 10202else
11a67599
ZW
10203 { echo "$as_me:$LINENO: result: no" >&5
10204echo "${ECHO_T}no" >&6; }
040b1c5a 10205fi
1c710c3c 10206
11a67599 10207
e8b05380
PB
10208 fi
10209 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10210 done
10211fi
1c710c3c 10212
040b1c5a
GK
10213if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10214 set dummy lipo
10215 if test $build = $target ; then
10216 LIPO_FOR_TARGET="$2"
10217 else
10218 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10219 fi
10220fi
10221
d1f8db0c
PB
10222else
10223 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
10224fi
10225
10226
10227
10228
10229if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10230 if test -n "$with_build_time_tools"; then
11a67599
ZW
10231 { echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10232echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
10233 if test -x $with_build_time_tools/nm; then
10234 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10235 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11a67599
ZW
10236 { echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10237echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 10238 else
11a67599
ZW
10239 { echo "$as_me:$LINENO: result: no" >&5
10240echo "${ECHO_T}no" >&6; }
d1f8db0c 10241 fi
e8b05380
PB
10242 elif test $build != $host && test $have_gcc_for_target = yes; then
10243 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10244 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
10245 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10246 fi
10247fi
3e19841a 10248if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10249 # Extract the first word of "nm", so it can be a program name with args.
10250set dummy nm; ac_word=$2
11a67599
ZW
10251{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10253if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10255else
1c710c3c
DJ
10256 case $NM_FOR_TARGET in
10257 [\\/]* | ?:[\\/]*)
e8b05380
PB
10258 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10259 ;;
e8b05380 10260 *)
1c710c3c
DJ
10261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262for as_dir in $gcc_cv_tool_dirs
10263do
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10268 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 break 2
10271 fi
10272done
10273done
11a67599 10274IFS=$as_save_IFS
1c710c3c 10275
e8b05380
PB
10276 ;;
10277esac
10278fi
1c710c3c 10279NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 10280if test -n "$NM_FOR_TARGET"; then
11a67599
ZW
10281 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10282echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
e8b05380 10283else
11a67599
ZW
10284 { echo "$as_me:$LINENO: result: no" >&5
10285echo "${ECHO_T}no" >&6; }
e8b05380
PB
10286fi
10287
11a67599 10288
e8b05380
PB
10289fi
10290if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
10291
10292
10293if test -n "$NM_FOR_TARGET"; then
10294 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10295elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10296 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10297fi
10298
10299if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10300 for ncn_progname in nm; do
10301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10302set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
10303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
10305if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307else
10308 if test -n "$NM_FOR_TARGET"; then
10309 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10310else
10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
10318 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10321 fi
10322done
10323done
11a67599 10324IFS=$as_save_IFS
278a7a38
AO
10325
10326fi
10327fi
10328NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10329if test -n "$NM_FOR_TARGET"; then
11a67599
ZW
10330 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10331echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
278a7a38 10332else
11a67599
ZW
10333 { echo "$as_me:$LINENO: result: no" >&5
10334echo "${ECHO_T}no" >&6; }
278a7a38
AO
10335fi
10336
11a67599 10337
278a7a38
AO
10338 done
10339fi
10340
10341if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10342 for ncn_progname in nm; do
11a67599
ZW
10343 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10344echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
10345 if test -x $with_build_time_tools/${ncn_progname}; then
10346 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
10347 { echo "$as_me:$LINENO: result: yes" >&5
10348echo "${ECHO_T}yes" >&6; }
e8b05380
PB
10349 break
10350 else
11a67599
ZW
10351 { echo "$as_me:$LINENO: result: no" >&5
10352echo "${ECHO_T}no" >&6; }
e8b05380
PB
10353 fi
10354 done
10355fi
10356
10357if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10358 for ncn_progname in nm; do
10359 if test -n "$ncn_target_tool_prefix"; then
10360 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10361set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
10362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10364if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10366else
4de997d1
PB
10367 if test -n "$NM_FOR_TARGET"; then
10368 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10369else
1c710c3c
DJ
10370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371for as_dir in $PATH
10372do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10377 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10380 fi
10381done
10382done
11a67599 10383IFS=$as_save_IFS
1c710c3c 10384
ca9f4b81
AO
10385fi
10386fi
1c710c3c 10387NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10388if test -n "$NM_FOR_TARGET"; then
11a67599
ZW
10389 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10390echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
ca9f4b81 10391else
11a67599
ZW
10392 { echo "$as_me:$LINENO: result: no" >&5
10393echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
10394fi
10395
11a67599 10396
e8b05380
PB
10397 fi
10398 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10400set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
10401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10403if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10405else
2693c0b0
PB
10406 if test -n "$NM_FOR_TARGET"; then
10407 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10408else
1c710c3c
DJ
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10416 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10419 fi
10420done
10421done
11a67599 10422IFS=$as_save_IFS
1c710c3c 10423
ca9f4b81
AO
10424fi
10425fi
1c710c3c 10426NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10427if test -n "$NM_FOR_TARGET"; then
11a67599
ZW
10428 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10429echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
ca9f4b81 10430else
11a67599
ZW
10431 { echo "$as_me:$LINENO: result: no" >&5
10432echo "${ECHO_T}no" >&6; }
ca9f4b81 10433fi
1c710c3c 10434
11a67599 10435
e8b05380
PB
10436 fi
10437 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10438 done
10439fi
1c710c3c 10440
2693c0b0
PB
10441if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10442 set dummy nm
10443 if test $build = $target ; then
10444 NM_FOR_TARGET="$2"
ca9f4b81 10445 else
2693c0b0 10446 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10447 fi
ca9f4b81
AO
10448fi
10449
d1f8db0c
PB
10450else
10451 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10452fi
10453
10454
10455
10456
10457if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10458 if test -n "$with_build_time_tools"; then
11a67599
ZW
10459 { echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10460echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
10461 if test -x $with_build_time_tools/objdump; then
10462 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10463 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11a67599
ZW
10464 { echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10465echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 10466 else
11a67599
ZW
10467 { echo "$as_me:$LINENO: result: no" >&5
10468echo "${ECHO_T}no" >&6; }
d1f8db0c 10469 fi
e8b05380
PB
10470 elif test $build != $host && test $have_gcc_for_target = yes; then
10471 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10472 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
10473 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10474 fi
10475fi
3e19841a 10476if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10477 # Extract the first word of "objdump", so it can be a program name with args.
10478set dummy objdump; ac_word=$2
11a67599
ZW
10479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10481if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10483else
1c710c3c
DJ
10484 case $OBJDUMP_FOR_TARGET in
10485 [\\/]* | ?:[\\/]*)
e8b05380
PB
10486 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10487 ;;
e8b05380 10488 *)
1c710c3c
DJ
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490for as_dir in $gcc_cv_tool_dirs
10491do
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10496 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10499 fi
10500done
10501done
11a67599 10502IFS=$as_save_IFS
1c710c3c 10503
e8b05380
PB
10504 ;;
10505esac
10506fi
1c710c3c 10507OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 10508if test -n "$OBJDUMP_FOR_TARGET"; then
11a67599
ZW
10509 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10510echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 10511else
11a67599
ZW
10512 { echo "$as_me:$LINENO: result: no" >&5
10513echo "${ECHO_T}no" >&6; }
e8b05380
PB
10514fi
10515
11a67599 10516
e8b05380
PB
10517fi
10518if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10519
10520
10521if test -n "$OBJDUMP_FOR_TARGET"; then
10522 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10523elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10524 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10525fi
10526
10527if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10528 for ncn_progname in objdump; do
10529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10530set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
10531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
10533if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536 if test -n "$OBJDUMP_FOR_TARGET"; then
10537 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10538else
10539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540for as_dir in $PATH
10541do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
10546 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10549 fi
10550done
10551done
11a67599 10552IFS=$as_save_IFS
278a7a38
AO
10553
10554fi
10555fi
10556OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10557if test -n "$OBJDUMP_FOR_TARGET"; then
11a67599
ZW
10558 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10559echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 10560else
11a67599
ZW
10561 { echo "$as_me:$LINENO: result: no" >&5
10562echo "${ECHO_T}no" >&6; }
278a7a38
AO
10563fi
10564
11a67599 10565
278a7a38
AO
10566 done
10567fi
10568
10569if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10570 for ncn_progname in objdump; do
11a67599
ZW
10571 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10572echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
10573 if test -x $with_build_time_tools/${ncn_progname}; then
10574 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
10575 { echo "$as_me:$LINENO: result: yes" >&5
10576echo "${ECHO_T}yes" >&6; }
e8b05380
PB
10577 break
10578 else
11a67599
ZW
10579 { echo "$as_me:$LINENO: result: no" >&5
10580echo "${ECHO_T}no" >&6; }
e8b05380
PB
10581 fi
10582 done
10583fi
10584
10585if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10586 for ncn_progname in objdump; do
10587 if test -n "$ncn_target_tool_prefix"; then
10588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10589set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
10590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10592if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10594else
10595 if test -n "$OBJDUMP_FOR_TARGET"; then
10596 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10597else
1c710c3c
DJ
10598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599for as_dir in $PATH
10600do
10601 IFS=$as_save_IFS
10602 test -z "$as_dir" && as_dir=.
10603 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10605 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 break 2
10608 fi
10609done
10610done
11a67599 10611IFS=$as_save_IFS
1c710c3c 10612
d739199a
DJ
10613fi
10614fi
1c710c3c 10615OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10616if test -n "$OBJDUMP_FOR_TARGET"; then
11a67599
ZW
10617 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10618echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
d739199a 10619else
11a67599
ZW
10620 { echo "$as_me:$LINENO: result: no" >&5
10621echo "${ECHO_T}no" >&6; }
d739199a
DJ
10622fi
10623
11a67599 10624
e8b05380
PB
10625 fi
10626 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10628set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
10629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10631if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10633else
10634 if test -n "$OBJDUMP_FOR_TARGET"; then
10635 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10636else
1c710c3c
DJ
10637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638for as_dir in $PATH
10639do
10640 IFS=$as_save_IFS
10641 test -z "$as_dir" && as_dir=.
10642 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10644 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10646 break 2
10647 fi
10648done
10649done
11a67599 10650IFS=$as_save_IFS
1c710c3c 10651
d739199a
DJ
10652fi
10653fi
1c710c3c 10654OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10655if test -n "$OBJDUMP_FOR_TARGET"; then
11a67599
ZW
10656 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10657echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
d739199a 10658else
11a67599
ZW
10659 { echo "$as_me:$LINENO: result: no" >&5
10660echo "${ECHO_T}no" >&6; }
d739199a 10661fi
1c710c3c 10662
11a67599 10663
e8b05380
PB
10664 fi
10665 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10666 done
10667fi
1c710c3c 10668
d739199a
DJ
10669if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10670 set dummy objdump
10671 if test $build = $target ; then
10672 OBJDUMP_FOR_TARGET="$2"
10673 else
10674 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10675 fi
10676fi
10677
d1f8db0c
PB
10678else
10679 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10680fi
10681
10682
10683
10684
10685if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10686 if test -n "$with_build_time_tools"; then
11a67599
ZW
10687 { echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10688echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
10689 if test -x $with_build_time_tools/ranlib; then
10690 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10691 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11a67599
ZW
10692 { echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10693echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 10694 else
11a67599
ZW
10695 { echo "$as_me:$LINENO: result: no" >&5
10696echo "${ECHO_T}no" >&6; }
d1f8db0c 10697 fi
e8b05380
PB
10698 elif test $build != $host && test $have_gcc_for_target = yes; then
10699 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10700 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
10701 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10702 fi
10703fi
3e19841a 10704if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10705 # Extract the first word of "ranlib", so it can be a program name with args.
10706set dummy ranlib; ac_word=$2
11a67599
ZW
10707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10709if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10711else
1c710c3c
DJ
10712 case $RANLIB_FOR_TARGET in
10713 [\\/]* | ?:[\\/]*)
e8b05380
PB
10714 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10715 ;;
e8b05380 10716 *)
1c710c3c
DJ
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $gcc_cv_tool_dirs
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10724 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10727 fi
10728done
10729done
11a67599 10730IFS=$as_save_IFS
1c710c3c 10731
e8b05380
PB
10732 ;;
10733esac
10734fi
1c710c3c 10735RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 10736if test -n "$RANLIB_FOR_TARGET"; then
11a67599
ZW
10737 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10738echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
e8b05380 10739else
11a67599
ZW
10740 { echo "$as_me:$LINENO: result: no" >&5
10741echo "${ECHO_T}no" >&6; }
e8b05380
PB
10742fi
10743
11a67599 10744
e8b05380
PB
10745fi
10746if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10747
10748
10749if test -n "$RANLIB_FOR_TARGET"; then
10750 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10751elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10752 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10753fi
10754
10755if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10756 for ncn_progname in ranlib; do
10757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10758set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
10759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
10761if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763else
10764 if test -n "$RANLIB_FOR_TARGET"; then
10765 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10766else
10767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768for as_dir in $PATH
10769do
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
10774 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10777 fi
10778done
10779done
11a67599 10780IFS=$as_save_IFS
278a7a38
AO
10781
10782fi
10783fi
10784RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10785if test -n "$RANLIB_FOR_TARGET"; then
11a67599
ZW
10786 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10787echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
278a7a38 10788else
11a67599
ZW
10789 { echo "$as_me:$LINENO: result: no" >&5
10790echo "${ECHO_T}no" >&6; }
278a7a38
AO
10791fi
10792
11a67599 10793
278a7a38
AO
10794 done
10795fi
10796
10797if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10798 for ncn_progname in ranlib; do
11a67599
ZW
10799 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10800echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
10801 if test -x $with_build_time_tools/${ncn_progname}; then
10802 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
10803 { echo "$as_me:$LINENO: result: yes" >&5
10804echo "${ECHO_T}yes" >&6; }
e8b05380
PB
10805 break
10806 else
11a67599
ZW
10807 { echo "$as_me:$LINENO: result: no" >&5
10808echo "${ECHO_T}no" >&6; }
e8b05380
PB
10809 fi
10810 done
10811fi
10812
10813if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10814 for ncn_progname in ranlib; do
10815 if test -n "$ncn_target_tool_prefix"; then
10816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10817set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
10818{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10820if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10822else
4de997d1
PB
10823 if test -n "$RANLIB_FOR_TARGET"; then
10824 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10825else
1c710c3c
DJ
10826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $PATH
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10833 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10836 fi
10837done
10838done
11a67599 10839IFS=$as_save_IFS
1c710c3c 10840
ca9f4b81
AO
10841fi
10842fi
1c710c3c 10843RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10844if test -n "$RANLIB_FOR_TARGET"; then
11a67599
ZW
10845 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10846echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 10847else
11a67599
ZW
10848 { echo "$as_me:$LINENO: result: no" >&5
10849echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
10850fi
10851
11a67599 10852
e8b05380
PB
10853 fi
10854 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10856set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
10857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10859if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10861else
2693c0b0
PB
10862 if test -n "$RANLIB_FOR_TARGET"; then
10863 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10864else
1c710c3c
DJ
10865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10872 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 break 2
10875 fi
10876done
10877done
11a67599 10878IFS=$as_save_IFS
1c710c3c 10879
ca9f4b81
AO
10880fi
10881fi
1c710c3c 10882RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10883if test -n "$RANLIB_FOR_TARGET"; then
11a67599
ZW
10884 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10885echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 10886else
11a67599
ZW
10887 { echo "$as_me:$LINENO: result: no" >&5
10888echo "${ECHO_T}no" >&6; }
ca9f4b81 10889fi
1c710c3c 10890
11a67599 10891
e8b05380
PB
10892 fi
10893 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10894 done
10895fi
1c710c3c 10896
e8b05380
PB
10897if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10898 set dummy ranlib
10899 if test $build = $target ; then
10900 RANLIB_FOR_TARGET="$2"
10901 else
10902 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10903 fi
e8b05380 10904fi
2693c0b0 10905
d1f8db0c
PB
10906else
10907 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10908fi
10909
e8b05380
PB
10910
10911
10912
10913if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10914 if test -n "$with_build_time_tools"; then
11a67599
ZW
10915 { echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10916echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
10917 if test -x $with_build_time_tools/strip; then
10918 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10919 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11a67599
ZW
10920 { echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10921echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 10922 else
11a67599
ZW
10923 { echo "$as_me:$LINENO: result: no" >&5
10924echo "${ECHO_T}no" >&6; }
d1f8db0c 10925 fi
e8b05380
PB
10926 elif test $build != $host && test $have_gcc_for_target = yes; then
10927 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10928 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
10929 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10930 fi
10931fi
3e19841a 10932if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10933 # Extract the first word of "strip", so it can be a program name with args.
10934set dummy strip; ac_word=$2
11a67599
ZW
10935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
10937if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10939else
1c710c3c
DJ
10940 case $STRIP_FOR_TARGET in
10941 [\\/]* | ?:[\\/]*)
e8b05380
PB
10942 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10943 ;;
e8b05380 10944 *)
1c710c3c
DJ
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946for as_dir in $gcc_cv_tool_dirs
10947do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 10951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
10952 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 break 2
10955 fi
10956done
10957done
11a67599 10958IFS=$as_save_IFS
1c710c3c 10959
e8b05380
PB
10960 ;;
10961esac
10962fi
1c710c3c 10963STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 10964if test -n "$STRIP_FOR_TARGET"; then
11a67599
ZW
10965 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10966echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
e8b05380 10967else
11a67599
ZW
10968 { echo "$as_me:$LINENO: result: no" >&5
10969echo "${ECHO_T}no" >&6; }
e8b05380
PB
10970fi
10971
11a67599 10972
e8b05380
PB
10973fi
10974if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10975
10976
10977if test -n "$STRIP_FOR_TARGET"; then
10978 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10979elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10980 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10981fi
10982
10983if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10984 for ncn_progname in strip; do
10985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10986set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
10987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
10989if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991else
10992 if test -n "$STRIP_FOR_TARGET"; then
10993 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10994else
10995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996for as_dir in $PATH
10997do
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
11002 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 break 2
11005 fi
11006done
11007done
11a67599 11008IFS=$as_save_IFS
278a7a38
AO
11009
11010fi
11011fi
11012STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11013if test -n "$STRIP_FOR_TARGET"; then
11a67599
ZW
11014 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11015echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
278a7a38 11016else
11a67599
ZW
11017 { echo "$as_me:$LINENO: result: no" >&5
11018echo "${ECHO_T}no" >&6; }
278a7a38
AO
11019fi
11020
11a67599 11021
278a7a38
AO
11022 done
11023fi
11024
11025if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11026 for ncn_progname in strip; do
11a67599
ZW
11027 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11028echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
11029 if test -x $with_build_time_tools/${ncn_progname}; then
11030 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
11031 { echo "$as_me:$LINENO: result: yes" >&5
11032echo "${ECHO_T}yes" >&6; }
e8b05380
PB
11033 break
11034 else
11a67599
ZW
11035 { echo "$as_me:$LINENO: result: no" >&5
11036echo "${ECHO_T}no" >&6; }
e8b05380
PB
11037 fi
11038 done
11039fi
11040
11041if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11042 for ncn_progname in strip; do
11043 if test -n "$ncn_target_tool_prefix"; then
11044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11045set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
11046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
11048if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
11050else
11051 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
11052 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11053else
11054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055for as_dir in $PATH
11056do
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 11060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
11061 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 break 2
11064 fi
11065done
11066done
11a67599 11067IFS=$as_save_IFS
1c710c3c 11068
040b1c5a
GK
11069fi
11070fi
1c710c3c 11071STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11072if test -n "$STRIP_FOR_TARGET"; then
11a67599
ZW
11073 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11074echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
040b1c5a 11075else
11a67599
ZW
11076 { echo "$as_me:$LINENO: result: no" >&5
11077echo "${ECHO_T}no" >&6; }
040b1c5a
GK
11078fi
11079
11a67599 11080
e8b05380
PB
11081 fi
11082 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11084set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
11085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
11087if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
11089else
11090 if test -n "$STRIP_FOR_TARGET"; then
11091 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11092else
1c710c3c
DJ
11093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094for as_dir in $PATH
11095do
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
11100 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 break 2
11103 fi
11104done
11105done
11a67599 11106IFS=$as_save_IFS
1c710c3c 11107
040b1c5a
GK
11108fi
11109fi
1c710c3c 11110STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11111if test -n "$STRIP_FOR_TARGET"; then
11a67599
ZW
11112 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11113echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
040b1c5a 11114else
11a67599
ZW
11115 { echo "$as_me:$LINENO: result: no" >&5
11116echo "${ECHO_T}no" >&6; }
040b1c5a 11117fi
1c710c3c 11118
11a67599 11119
e8b05380
PB
11120 fi
11121 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11122 done
11123fi
1c710c3c 11124
040b1c5a
GK
11125if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11126 set dummy strip
11127 if test $build = $target ; then
11128 STRIP_FOR_TARGET="$2"
11129 else
11130 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11131 fi
11132fi
11133
d1f8db0c
PB
11134else
11135 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
11136fi
11137
11138
11139
11140
11141if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11142 if test -n "$with_build_time_tools"; then
11a67599
ZW
11143 { echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11144echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
11145 if test -x $with_build_time_tools/windres; then
11146 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11147 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11a67599
ZW
11148 { echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11149echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 11150 else
11a67599
ZW
11151 { echo "$as_me:$LINENO: result: no" >&5
11152echo "${ECHO_T}no" >&6; }
d1f8db0c 11153 fi
e8b05380
PB
11154 elif test $build != $host && test $have_gcc_for_target = yes; then
11155 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11156 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
11157 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11158 fi
11159fi
3e19841a 11160if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11161 # Extract the first word of "windres", so it can be a program name with args.
11162set dummy windres; ac_word=$2
11a67599
ZW
11163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
11165if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11167else
1c710c3c
DJ
11168 case $WINDRES_FOR_TARGET in
11169 [\\/]* | ?:[\\/]*)
e8b05380
PB
11170 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11171 ;;
e8b05380 11172 *)
1c710c3c
DJ
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174for as_dir in $gcc_cv_tool_dirs
11175do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 11179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
11180 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11183 fi
11184done
11185done
11a67599 11186IFS=$as_save_IFS
1c710c3c 11187
e8b05380
PB
11188 ;;
11189esac
11190fi
1c710c3c 11191WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 11192if test -n "$WINDRES_FOR_TARGET"; then
11a67599
ZW
11193 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11194echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
e8b05380 11195else
11a67599
ZW
11196 { echo "$as_me:$LINENO: result: no" >&5
11197echo "${ECHO_T}no" >&6; }
e8b05380
PB
11198fi
11199
11a67599 11200
e8b05380
PB
11201fi
11202if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
11203
11204
11205if test -n "$WINDRES_FOR_TARGET"; then
11206 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11207elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11208 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11209fi
11210
11211if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11212 for ncn_progname in windres; do
11213 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11214set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
11215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
278a7a38
AO
11217if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else
11220 if test -n "$WINDRES_FOR_TARGET"; then
11221 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11222else
11223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224for as_dir in $PATH
11225do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 11229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38
AO
11230 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11233 fi
11234done
11235done
11a67599 11236IFS=$as_save_IFS
278a7a38
AO
11237
11238fi
11239fi
11240WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11241if test -n "$WINDRES_FOR_TARGET"; then
11a67599
ZW
11242 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11243echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
278a7a38 11244else
11a67599
ZW
11245 { echo "$as_me:$LINENO: result: no" >&5
11246echo "${ECHO_T}no" >&6; }
278a7a38
AO
11247fi
11248
11a67599 11249
278a7a38
AO
11250 done
11251fi
11252
11253if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11254 for ncn_progname in windres; do
11a67599
ZW
11255 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11256echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
d1f8db0c
PB
11257 if test -x $with_build_time_tools/${ncn_progname}; then
11258 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11a67599
ZW
11259 { echo "$as_me:$LINENO: result: yes" >&5
11260echo "${ECHO_T}yes" >&6; }
e8b05380
PB
11261 break
11262 else
11a67599
ZW
11263 { echo "$as_me:$LINENO: result: no" >&5
11264echo "${ECHO_T}no" >&6; }
e8b05380
PB
11265 fi
11266 done
11267fi
11268
11269if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11270 for ncn_progname in windres; do
11271 if test -n "$ncn_target_tool_prefix"; then
11272 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11273set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11a67599
ZW
11274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
11276if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11278else
4de997d1
PB
11279 if test -n "$WINDRES_FOR_TARGET"; then
11280 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11281else
1c710c3c
DJ
11282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 11288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
11289 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11292 fi
11293done
11294done
11a67599 11295IFS=$as_save_IFS
1c710c3c 11296
ca9f4b81
AO
11297fi
11298fi
1c710c3c 11299WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 11300if test -n "$WINDRES_FOR_TARGET"; then
11a67599
ZW
11301 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11302echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 11303else
11a67599
ZW
11304 { echo "$as_me:$LINENO: result: no" >&5
11305echo "${ECHO_T}no" >&6; }
ca9f4b81
AO
11306fi
11307
11a67599 11308
e8b05380
PB
11309 fi
11310 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11312set dummy ${ncn_progname}; ac_word=$2
11a67599
ZW
11313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1c710c3c
DJ
11315if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11317else
2693c0b0
PB
11318 if test -n "$WINDRES_FOR_TARGET"; then
11319 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11320else
1c710c3c
DJ
11321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322for as_dir in $PATH
11323do
11324 IFS=$as_save_IFS
11325 test -z "$as_dir" && as_dir=.
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11a67599 11327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
11328 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11330 break 2
11331 fi
11332done
11333done
11a67599 11334IFS=$as_save_IFS
1c710c3c 11335
ca9f4b81
AO
11336fi
11337fi
1c710c3c 11338WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 11339if test -n "$WINDRES_FOR_TARGET"; then
11a67599
ZW
11340 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11341echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 11342else
11a67599
ZW
11343 { echo "$as_me:$LINENO: result: no" >&5
11344echo "${ECHO_T}no" >&6; }
ca9f4b81 11345fi
1c710c3c 11346
11a67599 11347
e8b05380
PB
11348 fi
11349 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11350 done
11351fi
1c710c3c 11352
2693c0b0
PB
11353if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11354 set dummy windres
11355 if test $build = $target ; then
11356 WINDRES_FOR_TARGET="$2"
ca9f4b81 11357 else
2693c0b0 11358 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11359 fi
ca9f4b81
AO
11360fi
11361
d1f8db0c
PB
11362else
11363 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
11364fi
11365
4977bab6 11366
2abefe3d
PB
11367RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11368
11a67599
ZW
11369{ echo "$as_me:$LINENO: checking where to find the target ar" >&5
11370echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6; }
2abefe3d 11371if test "x${build}" != "x${host}" ; then
e8b05380
PB
11372 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11373 # We already found the complete path
172e41aa 11374 ac_dir=`dirname $AR_FOR_TARGET`
11a67599
ZW
11375 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11376echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11377 else
11378 # Canadian cross, just use what we found
11a67599
ZW
11379 { echo "$as_me:$LINENO: result: pre-installed" >&5
11380echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11381 fi
2abefe3d
PB
11382else
11383 ok=yes
11384 case " ${configdirs} " in
11385 *" binutils "*) ;;
11386 *) ok=no ;;
11387 esac
1c710c3c 11388
2abefe3d
PB
11389 if test $ok = yes; then
11390 # An in-tree tool is available and we can use it
11391 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11a67599
ZW
11392 { echo "$as_me:$LINENO: result: just compiled" >&5
11393echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11394 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11395 # We already found the complete path
172e41aa 11396 ac_dir=`dirname $AR_FOR_TARGET`
11a67599
ZW
11397 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11398echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11399 elif test "x$target" = "x$host"; then
11400 # We can use an host tool
11401 AR_FOR_TARGET='$(AR)'
11a67599
ZW
11402 { echo "$as_me:$LINENO: result: host tool" >&5
11403echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11404 else
11405 # We need a cross tool
11a67599
ZW
11406 { echo "$as_me:$LINENO: result: pre-installed" >&5
11407echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11408 fi
11409fi
0b0dc272 11410
11a67599
ZW
11411{ echo "$as_me:$LINENO: checking where to find the target as" >&5
11412echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6; }
2abefe3d 11413if test "x${build}" != "x${host}" ; then
e8b05380
PB
11414 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11415 # We already found the complete path
172e41aa 11416 ac_dir=`dirname $AS_FOR_TARGET`
11a67599
ZW
11417 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11418echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11419 else
11420 # Canadian cross, just use what we found
11a67599
ZW
11421 { echo "$as_me:$LINENO: result: pre-installed" >&5
11422echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11423 fi
2abefe3d
PB
11424else
11425 ok=yes
11426 case " ${configdirs} " in
11427 *" gas "*) ;;
11428 *) ok=no ;;
11429 esac
1c710c3c 11430
2abefe3d
PB
11431 if test $ok = yes; then
11432 # An in-tree tool is available and we can use it
11433 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11a67599
ZW
11434 { echo "$as_me:$LINENO: result: just compiled" >&5
11435echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11436 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11437 # We already found the complete path
172e41aa 11438 ac_dir=`dirname $AS_FOR_TARGET`
11a67599
ZW
11439 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11440echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11441 elif test "x$target" = "x$host"; then
11442 # We can use an host tool
11443 AS_FOR_TARGET='$(AS)'
11a67599
ZW
11444 { echo "$as_me:$LINENO: result: host tool" >&5
11445echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11446 else
11447 # We need a cross tool
11a67599
ZW
11448 { echo "$as_me:$LINENO: result: pre-installed" >&5
11449echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11450 fi
11451fi
0b0dc272 11452
11a67599
ZW
11453{ echo "$as_me:$LINENO: checking where to find the target cc" >&5
11454echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6; }
2abefe3d 11455if test "x${build}" != "x${host}" ; then
e8b05380
PB
11456 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11457 # We already found the complete path
172e41aa 11458 ac_dir=`dirname $CC_FOR_TARGET`
11a67599
ZW
11459 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11460echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11461 else
11462 # Canadian cross, just use what we found
11a67599
ZW
11463 { echo "$as_me:$LINENO: result: pre-installed" >&5
11464echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11465 fi
2abefe3d
PB
11466else
11467 ok=yes
11468 case " ${configdirs} " in
11469 *" gcc "*) ;;
11470 *) ok=no ;;
11471 esac
1c710c3c 11472
2abefe3d
PB
11473 if test $ok = yes; then
11474 # An in-tree tool is available and we can use it
11475 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11a67599
ZW
11476 { echo "$as_me:$LINENO: result: just compiled" >&5
11477echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11478 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11479 # We already found the complete path
172e41aa 11480 ac_dir=`dirname $CC_FOR_TARGET`
11a67599
ZW
11481 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11482echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11483 elif test "x$target" = "x$host"; then
11484 # We can use an host tool
11485 CC_FOR_TARGET='$(CC)'
11a67599
ZW
11486 { echo "$as_me:$LINENO: result: host tool" >&5
11487echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11488 else
11489 # We need a cross tool
11a67599
ZW
11490 { echo "$as_me:$LINENO: result: pre-installed" >&5
11491echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11492 fi
11493fi
0b0dc272 11494
11a67599
ZW
11495{ echo "$as_me:$LINENO: checking where to find the target c++" >&5
11496echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6; }
2abefe3d 11497if test "x${build}" != "x${host}" ; then
e8b05380
PB
11498 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11499 # We already found the complete path
172e41aa 11500 ac_dir=`dirname $CXX_FOR_TARGET`
11a67599
ZW
11501 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11502echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11503 else
11504 # Canadian cross, just use what we found
11a67599
ZW
11505 { echo "$as_me:$LINENO: result: pre-installed" >&5
11506echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11507 fi
2abefe3d
PB
11508else
11509 ok=yes
11510 case " ${configdirs} " in
11511 *" gcc "*) ;;
11512 *) ok=no ;;
11513 esac
11514 case ,${enable_languages}, in
11515 *,c++,*) ;;
11516 *) ok=no ;;
11517 esac
11518 if test $ok = yes; then
11519 # An in-tree tool is available and we can use it
11520 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
11a67599
ZW
11521 { echo "$as_me:$LINENO: result: just compiled" >&5
11522echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11523 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11524 # We already found the complete path
172e41aa 11525 ac_dir=`dirname $CXX_FOR_TARGET`
11a67599
ZW
11526 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11527echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11528 elif test "x$target" = "x$host"; then
11529 # We can use an host tool
11530 CXX_FOR_TARGET='$(CXX)'
11a67599
ZW
11531 { echo "$as_me:$LINENO: result: host tool" >&5
11532echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11533 else
11534 # We need a cross tool
11a67599
ZW
11535 { echo "$as_me:$LINENO: result: pre-installed" >&5
11536echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11537 fi
11538fi
0b0dc272 11539
11a67599
ZW
11540{ echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11541echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6; }
2abefe3d 11542if test "x${build}" != "x${host}" ; then
e8b05380
PB
11543 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11544 # We already found the complete path
172e41aa 11545 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11a67599
ZW
11546 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11547echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11548 else
11549 # Canadian cross, just use what we found
11a67599
ZW
11550 { echo "$as_me:$LINENO: result: pre-installed" >&5
11551echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11552 fi
2abefe3d
PB
11553else
11554 ok=yes
11555 case " ${configdirs} " in
11556 *" gcc "*) ;;
11557 *) ok=no ;;
11558 esac
11559 case ,${enable_languages}, in
11560 *,c++,*) ;;
11561 *) ok=no ;;
11562 esac
11563 if test $ok = yes; then
11564 # An in-tree tool is available and we can use it
11565 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
11a67599
ZW
11566 { echo "$as_me:$LINENO: result: just compiled" >&5
11567echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11568 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11569 # We already found the complete path
172e41aa 11570 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11a67599
ZW
11571 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11572echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11573 elif test "x$target" = "x$host"; then
11574 # We can use an host tool
11575 RAW_CXX_FOR_TARGET='$(CXX)'
11a67599
ZW
11576 { echo "$as_me:$LINENO: result: host tool" >&5
11577echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11578 else
11579 # We need a cross tool
11a67599
ZW
11580 { echo "$as_me:$LINENO: result: pre-installed" >&5
11581echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11582 fi
11583fi
0b0dc272 11584
11a67599
ZW
11585{ echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11586echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6; }
2abefe3d 11587if test "x${build}" != "x${host}" ; then
e8b05380
PB
11588 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11589 # We already found the complete path
172e41aa 11590 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11a67599
ZW
11591 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11592echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11593 else
11594 # Canadian cross, just use what we found
11a67599
ZW
11595 { echo "$as_me:$LINENO: result: pre-installed" >&5
11596echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11597 fi
2abefe3d
PB
11598else
11599 ok=yes
11600 case " ${configdirs} " in
11601 *" binutils "*) ;;
11602 *) ok=no ;;
11603 esac
1c710c3c 11604
2abefe3d
PB
11605 if test $ok = yes; then
11606 # An in-tree tool is available and we can use it
11607 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11a67599
ZW
11608 { echo "$as_me:$LINENO: result: just compiled" >&5
11609echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11610 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11611 # We already found the complete path
172e41aa 11612 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11a67599
ZW
11613 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11614echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11615 elif test "x$target" = "x$host"; then
11616 # We can use an host tool
11617 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11a67599
ZW
11618 { echo "$as_me:$LINENO: result: host tool" >&5
11619echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11620 else
11621 # We need a cross tool
11a67599
ZW
11622 { echo "$as_me:$LINENO: result: pre-installed" >&5
11623echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11624 fi
11625fi
0b0dc272 11626
11a67599
ZW
11627{ echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11628echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6; }
2abefe3d 11629if test "x${build}" != "x${host}" ; then
e8b05380
PB
11630 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11631 # We already found the complete path
172e41aa 11632 ac_dir=`dirname $GCC_FOR_TARGET`
11a67599
ZW
11633 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11634echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11635 else
11636 # Canadian cross, just use what we found
11a67599
ZW
11637 { echo "$as_me:$LINENO: result: pre-installed" >&5
11638echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11639 fi
2abefe3d
PB
11640else
11641 ok=yes
11642 case " ${configdirs} " in
11643 *" gcc "*) ;;
11644 *) ok=no ;;
11645 esac
1c710c3c 11646
2abefe3d
PB
11647 if test $ok = yes; then
11648 # An in-tree tool is available and we can use it
11649 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11a67599
ZW
11650 { echo "$as_me:$LINENO: result: just compiled" >&5
11651echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11652 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11653 # We already found the complete path
172e41aa 11654 ac_dir=`dirname $GCC_FOR_TARGET`
11a67599
ZW
11655 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11656echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11657 elif test "x$target" = "x$host"; then
11658 # We can use an host tool
11659 GCC_FOR_TARGET='$()'
11a67599
ZW
11660 { echo "$as_me:$LINENO: result: host tool" >&5
11661echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11662 else
11663 # We need a cross tool
11a67599
ZW
11664 { echo "$as_me:$LINENO: result: pre-installed" >&5
11665echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11666 fi
11667fi
0b0dc272 11668
11a67599
ZW
11669{ echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11670echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6; }
2abefe3d 11671if test "x${build}" != "x${host}" ; then
e8b05380
PB
11672 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11673 # We already found the complete path
172e41aa 11674 ac_dir=`dirname $GCJ_FOR_TARGET`
11a67599
ZW
11675 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11676echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11677 else
11678 # Canadian cross, just use what we found
11a67599
ZW
11679 { echo "$as_me:$LINENO: result: pre-installed" >&5
11680echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11681 fi
2abefe3d
PB
11682else
11683 ok=yes
11684 case " ${configdirs} " in
11685 *" gcc "*) ;;
11686 *) ok=no ;;
11687 esac
11688 case ,${enable_languages}, in
11689 *,java,*) ;;
11690 *) ok=no ;;
11691 esac
11692 if test $ok = yes; then
11693 # An in-tree tool is available and we can use it
11694 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11a67599
ZW
11695 { echo "$as_me:$LINENO: result: just compiled" >&5
11696echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11697 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11698 # We already found the complete path
172e41aa 11699 ac_dir=`dirname $GCJ_FOR_TARGET`
11a67599
ZW
11700 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11701echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11702 elif test "x$target" = "x$host"; then
11703 # We can use an host tool
11704 GCJ_FOR_TARGET='$(GCJ)'
11a67599
ZW
11705 { echo "$as_me:$LINENO: result: host tool" >&5
11706echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11707 else
11708 # We need a cross tool
11a67599
ZW
11709 { echo "$as_me:$LINENO: result: pre-installed" >&5
11710echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11711 fi
11712fi
0b0dc272 11713
11a67599
ZW
11714{ echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11715echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6; }
2abefe3d 11716if test "x${build}" != "x${host}" ; then
e8b05380
PB
11717 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11718 # We already found the complete path
172e41aa 11719 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11a67599
ZW
11720 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11721echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11722 else
11723 # Canadian cross, just use what we found
11a67599
ZW
11724 { echo "$as_me:$LINENO: result: pre-installed" >&5
11725echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11726 fi
2abefe3d
PB
11727else
11728 ok=yes
11729 case " ${configdirs} " in
11730 *" gcc "*) ;;
11731 *) ok=no ;;
11732 esac
11733 case ,${enable_languages}, in
11734 *,fortran,*) ;;
11735 *) ok=no ;;
11736 esac
11737 if test $ok = yes; then
11738 # An in-tree tool is available and we can use it
11739 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11a67599
ZW
11740 { echo "$as_me:$LINENO: result: just compiled" >&5
11741echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11742 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11743 # We already found the complete path
172e41aa 11744 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11a67599
ZW
11745 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11746echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11747 elif test "x$target" = "x$host"; then
11748 # We can use an host tool
11749 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11a67599
ZW
11750 { echo "$as_me:$LINENO: result: host tool" >&5
11751echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11752 else
11753 # We need a cross tool
11a67599
ZW
11754 { echo "$as_me:$LINENO: result: pre-installed" >&5
11755echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11756 fi
11757fi
0b0dc272 11758
11a67599
ZW
11759{ echo "$as_me:$LINENO: checking where to find the target ld" >&5
11760echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6; }
2abefe3d 11761if test "x${build}" != "x${host}" ; then
e8b05380
PB
11762 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11763 # We already found the complete path
172e41aa 11764 ac_dir=`dirname $LD_FOR_TARGET`
11a67599
ZW
11765 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11766echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11767 else
11768 # Canadian cross, just use what we found
11a67599
ZW
11769 { echo "$as_me:$LINENO: result: pre-installed" >&5
11770echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11771 fi
2abefe3d
PB
11772else
11773 ok=yes
11774 case " ${configdirs} " in
11775 *" ld "*) ;;
11776 *) ok=no ;;
11777 esac
1c710c3c 11778
2abefe3d
PB
11779 if test $ok = yes; then
11780 # An in-tree tool is available and we can use it
11781 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11a67599
ZW
11782 { echo "$as_me:$LINENO: result: just compiled" >&5
11783echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11784 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11785 # We already found the complete path
172e41aa 11786 ac_dir=`dirname $LD_FOR_TARGET`
11a67599
ZW
11787 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11788echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11789 elif test "x$target" = "x$host"; then
11790 # We can use an host tool
11791 LD_FOR_TARGET='$(LD)'
11a67599
ZW
11792 { echo "$as_me:$LINENO: result: host tool" >&5
11793echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11794 else
11795 # We need a cross tool
11a67599
ZW
11796 { echo "$as_me:$LINENO: result: pre-installed" >&5
11797echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11798 fi
11799fi
0b0dc272 11800
11a67599
ZW
11801{ echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11802echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6; }
2abefe3d 11803if test "x${build}" != "x${host}" ; then
e8b05380
PB
11804 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11805 # We already found the complete path
172e41aa 11806 ac_dir=`dirname $LIPO_FOR_TARGET`
11a67599
ZW
11807 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11808echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11809 else
11810 # Canadian cross, just use what we found
11a67599
ZW
11811 { echo "$as_me:$LINENO: result: pre-installed" >&5
11812echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11813 fi
2abefe3d 11814else
e8b05380
PB
11815 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11816 # We already found the complete path
172e41aa 11817 ac_dir=`dirname $LIPO_FOR_TARGET`
11a67599
ZW
11818 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11819echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380 11820 elif test "x$target" = "x$host"; then
2abefe3d
PB
11821 # We can use an host tool
11822 LIPO_FOR_TARGET='$(LIPO)'
11a67599
ZW
11823 { echo "$as_me:$LINENO: result: host tool" >&5
11824echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11825 else
11826 # We need a cross tool
11a67599
ZW
11827 { echo "$as_me:$LINENO: result: pre-installed" >&5
11828echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11829 fi
11830fi
0b0dc272 11831
11a67599
ZW
11832{ echo "$as_me:$LINENO: checking where to find the target nm" >&5
11833echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6; }
2abefe3d 11834if test "x${build}" != "x${host}" ; then
e8b05380
PB
11835 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11836 # We already found the complete path
172e41aa 11837 ac_dir=`dirname $NM_FOR_TARGET`
11a67599
ZW
11838 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11839echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11840 else
11841 # Canadian cross, just use what we found
11a67599
ZW
11842 { echo "$as_me:$LINENO: result: pre-installed" >&5
11843echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11844 fi
2abefe3d
PB
11845else
11846 ok=yes
11847 case " ${configdirs} " in
11848 *" binutils "*) ;;
11849 *) ok=no ;;
11850 esac
1c710c3c 11851
2abefe3d
PB
11852 if test $ok = yes; then
11853 # An in-tree tool is available and we can use it
11854 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11a67599
ZW
11855 { echo "$as_me:$LINENO: result: just compiled" >&5
11856echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11857 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11858 # We already found the complete path
172e41aa 11859 ac_dir=`dirname $NM_FOR_TARGET`
11a67599
ZW
11860 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11861echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11862 elif test "x$target" = "x$host"; then
11863 # We can use an host tool
11864 NM_FOR_TARGET='$(NM)'
11a67599
ZW
11865 { echo "$as_me:$LINENO: result: host tool" >&5
11866echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11867 else
11868 # We need a cross tool
11a67599
ZW
11869 { echo "$as_me:$LINENO: result: pre-installed" >&5
11870echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11871 fi
11872fi
0b0dc272 11873
11a67599
ZW
11874{ echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11875echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6; }
2abefe3d 11876if test "x${build}" != "x${host}" ; then
e8b05380
PB
11877 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11878 # We already found the complete path
172e41aa 11879 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11a67599
ZW
11880 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11881echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11882 else
11883 # Canadian cross, just use what we found
11a67599
ZW
11884 { echo "$as_me:$LINENO: result: pre-installed" >&5
11885echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11886 fi
2abefe3d
PB
11887else
11888 ok=yes
11889 case " ${configdirs} " in
11890 *" binutils "*) ;;
11891 *) ok=no ;;
11892 esac
1c710c3c 11893
2abefe3d
PB
11894 if test $ok = yes; then
11895 # An in-tree tool is available and we can use it
11896 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11a67599
ZW
11897 { echo "$as_me:$LINENO: result: just compiled" >&5
11898echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11899 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11900 # We already found the complete path
172e41aa 11901 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11a67599
ZW
11902 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11903echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11904 elif test "x$target" = "x$host"; then
11905 # We can use an host tool
11906 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11a67599
ZW
11907 { echo "$as_me:$LINENO: result: host tool" >&5
11908echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11909 else
11910 # We need a cross tool
11a67599
ZW
11911 { echo "$as_me:$LINENO: result: pre-installed" >&5
11912echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11913 fi
11914fi
0b0dc272 11915
11a67599
ZW
11916{ echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11917echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6; }
2abefe3d 11918if test "x${build}" != "x${host}" ; then
e8b05380
PB
11919 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11920 # We already found the complete path
172e41aa 11921 ac_dir=`dirname $RANLIB_FOR_TARGET`
11a67599
ZW
11922 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11923echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11924 else
11925 # Canadian cross, just use what we found
11a67599
ZW
11926 { echo "$as_me:$LINENO: result: pre-installed" >&5
11927echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11928 fi
2abefe3d
PB
11929else
11930 ok=yes
11931 case " ${configdirs} " in
11932 *" binutils "*) ;;
11933 *) ok=no ;;
11934 esac
1c710c3c 11935
2abefe3d
PB
11936 if test $ok = yes; then
11937 # An in-tree tool is available and we can use it
11938 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11a67599
ZW
11939 { echo "$as_me:$LINENO: result: just compiled" >&5
11940echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11941 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11942 # We already found the complete path
172e41aa 11943 ac_dir=`dirname $RANLIB_FOR_TARGET`
11a67599
ZW
11944 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11945echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11946 elif test "x$target" = "x$host"; then
11947 # We can use an host tool
11948 RANLIB_FOR_TARGET='$(RANLIB)'
11a67599
ZW
11949 { echo "$as_me:$LINENO: result: host tool" >&5
11950echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11951 else
11952 # We need a cross tool
11a67599
ZW
11953 { echo "$as_me:$LINENO: result: pre-installed" >&5
11954echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11955 fi
11956fi
0b0dc272 11957
11a67599
ZW
11958{ echo "$as_me:$LINENO: checking where to find the target strip" >&5
11959echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6; }
2abefe3d 11960if test "x${build}" != "x${host}" ; then
e8b05380
PB
11961 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11962 # We already found the complete path
172e41aa 11963 ac_dir=`dirname $STRIP_FOR_TARGET`
11a67599
ZW
11964 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11965echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
11966 else
11967 # Canadian cross, just use what we found
11a67599
ZW
11968 { echo "$as_me:$LINENO: result: pre-installed" >&5
11969echo "${ECHO_T}pre-installed" >&6; }
e8b05380 11970 fi
2abefe3d
PB
11971else
11972 ok=yes
11973 case " ${configdirs} " in
11974 *" binutils "*) ;;
11975 *) ok=no ;;
11976 esac
1c710c3c 11977
2abefe3d
PB
11978 if test $ok = yes; then
11979 # An in-tree tool is available and we can use it
11980 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11a67599
ZW
11981 { echo "$as_me:$LINENO: result: just compiled" >&5
11982echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
11983 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11984 # We already found the complete path
172e41aa 11985 ac_dir=`dirname $STRIP_FOR_TARGET`
11a67599
ZW
11986 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11987echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
11988 elif test "x$target" = "x$host"; then
11989 # We can use an host tool
11990 STRIP_FOR_TARGET='$(STRIP)'
11a67599
ZW
11991 { echo "$as_me:$LINENO: result: host tool" >&5
11992echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
11993 else
11994 # We need a cross tool
11a67599
ZW
11995 { echo "$as_me:$LINENO: result: pre-installed" >&5
11996echo "${ECHO_T}pre-installed" >&6; }
2abefe3d
PB
11997 fi
11998fi
0b0dc272 11999
11a67599
ZW
12000{ echo "$as_me:$LINENO: checking where to find the target windres" >&5
12001echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6; }
2abefe3d 12002if test "x${build}" != "x${host}" ; then
e8b05380
PB
12003 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12004 # We already found the complete path
172e41aa 12005 ac_dir=`dirname $WINDRES_FOR_TARGET`
11a67599
ZW
12006 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12007echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
e8b05380
PB
12008 else
12009 # Canadian cross, just use what we found
11a67599
ZW
12010 { echo "$as_me:$LINENO: result: pre-installed" >&5
12011echo "${ECHO_T}pre-installed" >&6; }
e8b05380 12012 fi
2abefe3d
PB
12013else
12014 ok=yes
12015 case " ${configdirs} " in
12016 *" binutils "*) ;;
12017 *) ok=no ;;
12018 esac
1c710c3c 12019
2abefe3d
PB
12020 if test $ok = yes; then
12021 # An in-tree tool is available and we can use it
12022 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
11a67599
ZW
12023 { echo "$as_me:$LINENO: result: just compiled" >&5
12024echo "${ECHO_T}just compiled" >&6; }
e8b05380
PB
12025 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12026 # We already found the complete path
172e41aa 12027 ac_dir=`dirname $WINDRES_FOR_TARGET`
11a67599
ZW
12028 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12029echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12030 elif test "x$target" = "x$host"; then
12031 # We can use an host tool
12032 WINDRES_FOR_TARGET='$(WINDRES)'
11a67599
ZW
12033 { echo "$as_me:$LINENO: result: host tool" >&5
12034echo "${ECHO_T}host tool" >&6; }
2abefe3d
PB
12035 else
12036 # We need a cross tool
11a67599
ZW
12037 { echo "$as_me:$LINENO: result: pre-installed" >&5
12038echo "${ECHO_T}pre-installed" >&6; }
2abefe3d 12039 fi
671aa708 12040fi
be912515
NN
12041
12042
12043
2abefe3d 12044
0b0dc272 12045
671aa708
NN
12046# Certain tools may need extra flags.
12047AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12048RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12049NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12050
2abefe3d
PB
12051# When building target libraries, except in a Canadian cross, we use
12052# the same toolchain as the compiler we just built.
12053COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12054COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12055COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12056if test $host = $build; then
12057 case " $configdirs " in
12058 *" gcc "*)
12059 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12060 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12061 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12062 ;;
12063 esac
12064fi
12065
12066
12067
12068
12069
11a67599
ZW
12070{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12071echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
12072# Check whether --enable-maintainer-mode was given.
ee03dc5e 12073if test "${enable_maintainer_mode+set}" = set; then
11a67599 12074 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
12075else
12076 USE_MAINTAINER_MODE=no
11a67599
ZW
12077fi
12078
12079{ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12080echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
12081
12082
12083if test "$USE_MAINTAINER_MODE" = yes; then
12084 MAINTAINER_MODE_TRUE=
12085 MAINTAINER_MODE_FALSE='#'
12086else
12087 MAINTAINER_MODE_TRUE='#'
12088 MAINTAINER_MODE_FALSE=
1c710c3c 12089fi
ee03dc5e
AO
12090MAINT=$MAINTAINER_MODE_TRUE
12091
2805b53a
NN
12092# ---------------------
12093# GCC bootstrap support
12094# ---------------------
12095
12096# Stage specific cflags for build.
12097stage1_cflags="-g"
12098case $build in
12099 vax-*-*)
12100 case ${GCC} in
12101 yes) stage1_cflags="-g -Wa,-J" ;;
12102 *) stage1_cflags="-g -J" ;;
12103 esac ;;
2805b53a
NN
12104esac
12105
0b50988a
EB
12106# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12107if test "$GCC" = yes; then
12108 saved_CFLAGS="$CFLAGS"
12109
12110 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12111 CFLAGS="$CFLAGS -fkeep-inline-functions"
11a67599
ZW
12112 { echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12113echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6; }
1c710c3c
DJ
12114 cat >conftest.$ac_ext <<_ACEOF
12115/* confdefs.h. */
12116_ACEOF
12117cat confdefs.h >>conftest.$ac_ext
12118cat >>conftest.$ac_ext <<_ACEOF
12119/* end confdefs.h. */
12120
12121int
12122main ()
12123{
12124
12125 ;
12126 return 0;
12127}
12128_ACEOF
12129rm -f conftest.$ac_objext
11a67599
ZW
12130if { (ac_try="$ac_compile"
12131case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12134esac
12135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_compile") 2>conftest.er1
1c710c3c
DJ
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11a67599
ZW
12142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest.$ac_objext; then
12146 { echo "$as_me:$LINENO: result: yes" >&5
12147echo "${ECHO_T}yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12148else
12149 echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
12151
11a67599
ZW
12152 { echo "$as_me:$LINENO: result: no" >&5
12153echo "${ECHO_T}no" >&6; }
1c710c3c 12154fi
11a67599
ZW
12155
12156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12157
12158 CFLAGS="$saved_CFLAGS"
12159fi
12160
12161
2805b53a 12162
8efea775 12163# Enable --enable-checking in stage1 of the compiler.
11a67599 12164# Check whether --enable-stage1-checking was given.
8efea775 12165if test "${enable_stage1_checking+set}" = set; then
11a67599 12166 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775
PB
12167else
12168 if test "x$enable_checking" = xno; then
12169 stage1_checking=--enable-checking
12170else
12171 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
12172fi
11a67599
ZW
12173fi
12174
8efea775
PB
12175
12176
2805b53a 12177# Enable -Werror in bootstrap stage2 and later.
11a67599 12178# Check whether --enable-werror was given.
2805b53a 12179if test "${enable_werror+set}" = set; then
11a67599 12180 enableval=$enable_werror;
2805b53a 12181else
416cfb5e 12182 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12183 enable_werror=yes
88fceb68
PB
12184else
12185 enable_werror=no
12186fi
11a67599
ZW
12187fi
12188
09a9c095
NN
12189case ${enable_werror} in
12190 yes) stage2_werror_flag="--enable-werror-always" ;;
12191 *) stage2_werror_flag="" ;;
2805b53a
NN
12192esac
12193
12194
32845532 12195# Flags needed to enable html installing and building
1c710c3c 12196
11a67599 12197# Check whether --with-datarootdir was given.
32845532 12198if test "${with_datarootdir+set}" = set; then
11a67599 12199 withval=$with_datarootdir; datarootdir="\${prefix}/${withval}"
32845532
CD
12200else
12201 datarootdir="\${prefix}/share"
11a67599 12202fi
32845532
CD
12203
12204
11a67599
ZW
12205
12206# Check whether --with-docdir was given.
32845532 12207if test "${with_docdir+set}" = set; then
11a67599 12208 withval=$with_docdir; docdir="\${prefix}/${withval}"
32845532
CD
12209else
12210 docdir="\${datarootdir}/doc"
11a67599
ZW
12211fi
12212
32845532
CD
12213
12214
11a67599 12215# Check whether --with-pdfdir was given.
9c4d2493 12216if test "${with_pdfdir+set}" = set; then
11a67599 12217 withval=$with_pdfdir; pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12218else
12219 pdfdir="\${docdir}"
11a67599
ZW
12220fi
12221
9c4d2493
BM
12222
12223
11a67599 12224# Check whether --with-htmldir was given.
32845532 12225if test "${with_htmldir+set}" = set; then
11a67599 12226 withval=$with_htmldir; htmldir="\${prefix}/${withval}"
32845532
CD
12227else
12228 htmldir="\${docdir}"
11a67599 12229fi
32845532
CD
12230
12231
12232
12233
12234
172e41aa 12235
11a67599
ZW
12236
12237ac_config_files="$ac_config_files Makefile"
12238
1c710c3c 12239cat >confcache <<\_ACEOF
671aa708
NN
12240# This file is a shell script that caches the results of configure
12241# tests run on this system so they can be shared between configure
1c710c3c
DJ
12242# scripts and configure runs, see configure's option --config-cache.
12243# It is not useful on other systems. If it contains results you don't
12244# want to keep, you may remove or edit it.
671aa708 12245#
1c710c3c
DJ
12246# config.status only pays attention to the cache file if you give it
12247# the --recheck option to rerun configure.
671aa708 12248#
1c710c3c
DJ
12249# `ac_cv_env_foo' variables (set or unset) will be overridden when
12250# loading this file, other *unset* `ac_cv_foo' will be assigned the
12251# following values.
12252
12253_ACEOF
12254
671aa708
NN
12255# The following way of writing the cache mishandles newlines in values,
12256# but we know of no workaround that is simple, portable, and efficient.
11a67599 12257# So, we kill variables containing newlines.
671aa708
NN
12258# Ultrix sh set writes to stderr and can't be redirected directly,
12259# and sets the high bit in the cache file unless we assign to the vars.
11a67599
ZW
12260(
12261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12262 eval ac_val=\$$ac_var
12263 case $ac_val in #(
12264 *${as_nl}*)
12265 case $ac_var in #(
12266 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12267echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12268 esac
12269 case $ac_var in #(
12270 _ | IFS | as_nl) ;; #(
12271 *) $as_unset $ac_var ;;
12272 esac ;;
12273 esac
12274 done
12275
1c710c3c 12276 (set) 2>&1 |
11a67599
ZW
12277 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12278 *${as_nl}ac_space=\ *)
1c710c3c
DJ
12279 # `set' does not quote correctly, so add quotes (double-quote
12280 # substitution turns \\\\ into \\, and sed turns \\ into \).
12281 sed -n \
12282 "s/'/'\\\\''/g;
12283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11a67599 12284 ;; #(
1c710c3c
DJ
12285 *)
12286 # `set' quotes correctly as required by POSIX, so do not add quotes.
11a67599 12287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 12288 ;;
11a67599
ZW
12289 esac |
12290 sort
12291) |
1c710c3c 12292 sed '
11a67599 12293 /^ac_cv_env_/b end
1c710c3c 12294 t clear
11a67599 12295 :clear
1c710c3c
DJ
12296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12297 t end
11a67599
ZW
12298 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12299 :end' >>confcache
12300if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12301 if test -w "$cache_file"; then
12302 test "x$cache_file" != "x/dev/null" &&
12303 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12304echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 12305 cat confcache >$cache_file
671aa708 12306 else
11a67599
ZW
12307 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12308echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 12309 fi
4977bab6 12310fi
671aa708 12311rm -f confcache
79c06341 12312
671aa708
NN
12313test "x$prefix" = xNONE && prefix=$ac_default_prefix
12314# Let make expand exec_prefix.
12315test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12316
671aa708
NN
12317# Transform confdefs.h into DEFS.
12318# Protect against shell expansion while executing Makefile rules.
12319# Protect against Makefile macro expansion.
1c710c3c
DJ
12320#
12321# If the first sed substitution is executed (which looks for macros that
11a67599 12322# take arguments), then branch to the quote section. Otherwise,
1c710c3c 12323# look for a macro that doesn't take arguments.
11a67599 12324ac_script='
1c710c3c 12325t clear
11a67599
ZW
12326:clear
12327s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 12328t quote
11a67599 12329s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 12330t quote
11a67599
ZW
12331b any
12332:quote
12333s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12334s/\[/\\&/g
12335s/\]/\\&/g
12336s/\$/$$/g
12337H
12338:any
12339${
12340 g
12341 s/^\n//
12342 s/\n/ /g
12343 p
12344}
12345'
12346DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
12347
12348
12349ac_libobjs=
12350ac_ltlibobjs=
12351for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12352 # 1. Remove the extension, and $U if already installed.
11a67599
ZW
12353 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12354 ac_i=`echo "$ac_i" | sed "$ac_script"`
12355 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12356 # will be set to the directory where LIBOBJS objects are built.
12357 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12358 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
12359done
12360LIBOBJS=$ac_libobjs
fb0103e5 12361
1c710c3c 12362LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12363
af71363e 12364
1c710c3c
DJ
12365
12366: ${CONFIG_STATUS=./config.status}
12367ac_clean_files_save=$ac_clean_files
12368ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12369{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12370echo "$as_me: creating $CONFIG_STATUS" >&6;}
12371cat >$CONFIG_STATUS <<_ACEOF
12372#! $SHELL
12373# Generated by $as_me.
671aa708 12374# Run this file to recreate the current configuration.
671aa708 12375# Compiler output produced by configure, useful for debugging
1c710c3c 12376# configure, is in config.log if it exists.
0b0dc272 12377
1c710c3c
DJ
12378debug=false
12379ac_cs_recheck=false
12380ac_cs_silent=false
12381SHELL=\${CONFIG_SHELL-$SHELL}
12382_ACEOF
12383
12384cat >>$CONFIG_STATUS <<\_ACEOF
12385## --------------------- ##
12386## M4sh Initialization. ##
12387## --------------------- ##
12388
11a67599
ZW
12389# Be more Bourne compatible
12390DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12391if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12392 emulate sh
12393 NULLCMD=:
12394 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12395 # is contrary to our usage. Disable this feature.
12396 alias -g '${1+"$@"}'='"$@"'
11a67599
ZW
12397 setopt NO_GLOB_SUBST
12398else
12399 case `(set -o) 2>/dev/null` in
12400 *posix*) set -o posix ;;
12401esac
12402
12403fi
12404
12405
12406
12407
12408# PATH needs CR
12409# Avoid depending upon Character Ranges.
12410as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12411as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12412as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12413as_cr_digits='0123456789'
12414as_cr_alnum=$as_cr_Letters$as_cr_digits
12415
12416# The user is always right.
12417if test "${PATH_SEPARATOR+set}" != set; then
12418 echo "#! /bin/sh" >conf$$.sh
12419 echo "exit 0" >>conf$$.sh
12420 chmod +x conf$$.sh
12421 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12422 PATH_SEPARATOR=';'
12423 else
12424 PATH_SEPARATOR=:
12425 fi
12426 rm -f conf$$.sh
1c710c3c 12427fi
1c710c3c
DJ
12428
12429# Support unset when possible.
12430if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12431 as_unset=unset
12432else
12433 as_unset=false
12434fi
12435
12436
11a67599
ZW
12437# IFS
12438# We need space, tab and new line, in precisely that order. Quoting is
12439# there to prevent editors from complaining about space-tab.
12440# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12441# splitting by setting IFS to empty value.)
12442as_nl='
12443'
12444IFS=" "" $as_nl"
12445
12446# Find who we are. Look in the path if we contain no directory separator.
12447case $0 in
12448 *[\\/]* ) as_myself=$0 ;;
12449 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450for as_dir in $PATH
12451do
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12455done
12456IFS=$as_save_IFS
12457
12458 ;;
12459esac
12460# We did not find ourselves, most probably we were run as `sh COMMAND'
12461# in which case we are not to be found in the path.
12462if test "x$as_myself" = x; then
12463 as_myself=$0
12464fi
12465if test ! -f "$as_myself"; then
12466 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12467 { (exit 1); exit 1; }
12468fi
12469
1c710c3c 12470# Work around bugs in pre-3.0 UWIN ksh.
11a67599
ZW
12471for as_var in ENV MAIL MAILPATH
12472do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12473done
1c710c3c
DJ
12474PS1='$ '
12475PS2='> '
12476PS4='+ '
12477
12478# NLS nuisances.
12479for as_var in \
12480 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12481 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12482 LC_TELEPHONE LC_TIME
12483do
12484 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12485 eval $as_var=C; export $as_var
12486 else
11a67599 12487 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1c710c3c
DJ
12488 fi
12489done
12490
12491# Required to use basename.
11a67599
ZW
12492if expr a : '\(a\)' >/dev/null 2>&1 &&
12493 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
12494 as_expr=expr
12495else
12496 as_expr=false
12497fi
12498
11a67599 12499if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
12500 as_basename=basename
12501else
12502 as_basename=false
12503fi
12504
12505
12506# Name of the executable.
11a67599 12507as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
12508$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12509 X"$0" : 'X\(//\)$' \| \
11a67599 12510 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1c710c3c 12511echo X/"$0" |
11a67599
ZW
12512 sed '/^.*\/\([^/][^/]*\)\/*$/{
12513 s//\1/
12514 q
12515 }
12516 /^X\/\(\/\/\)$/{
12517 s//\1/
12518 q
12519 }
12520 /^X\/\(\/\).*/{
12521 s//\1/
12522 q
12523 }
12524 s/.*/./; q'`
1c710c3c 12525
11a67599
ZW
12526# CDPATH.
12527$as_unset CDPATH
1c710c3c
DJ
12528
12529
1c710c3c 12530
1c710c3c
DJ
12531 as_lineno_1=$LINENO
12532 as_lineno_2=$LINENO
1c710c3c 12533 test "x$as_lineno_1" != "x$as_lineno_2" &&
11a67599 12534 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1c710c3c
DJ
12535
12536 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12537 # uniformly replaced by the line number. The first 'sed' inserts a
11a67599
ZW
12538 # line-number line after each line using $LINENO; the second 'sed'
12539 # does the real work. The second script uses 'N' to pair each
12540 # line-number line with the line containing $LINENO, and appends
12541 # trailing '-' during substitution so that $LINENO is not a special
12542 # case at line end.
1c710c3c 12543 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11a67599
ZW
12544 # scripts with optimization help from Paolo Bonzini. Blame Lee
12545 # E. McMahon (1931-1989) for sed's syntax. :-)
12546 sed -n '
12547 p
12548 /[$]LINENO/=
12549 ' <$as_myself |
1c710c3c 12550 sed '
11a67599
ZW
12551 s/[$]LINENO.*/&-/
12552 t lineno
12553 b
12554 :lineno
1c710c3c 12555 N
11a67599
ZW
12556 :loop
12557 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 12558 t loop
11a67599 12559 s/-\n.*//
1c710c3c 12560 ' >$as_me.lineno &&
11a67599
ZW
12561 chmod +x "$as_me.lineno" ||
12562 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1c710c3c
DJ
12563 { (exit 1); exit 1; }; }
12564
12565 # Don't try to exec as it changes $[0], causing all sort of problems
12566 # (the dirname of $[0] is not the place where we might find the
11a67599
ZW
12567 # original and so on. Autoconf is especially sensitive to this).
12568 . "./$as_me.lineno"
1c710c3c
DJ
12569 # Exit status is that of the last command.
12570 exit
12571}
12572
12573
11a67599
ZW
12574if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12575 as_dirname=dirname
12576else
12577 as_dirname=false
12578fi
12579
12580ECHO_C= ECHO_N= ECHO_T=
12581case `echo -n x` in
12582-n*)
12583 case `echo 'x\c'` in
12584 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12585 *) ECHO_C='\c';;
12586 esac;;
12587*)
12588 ECHO_N='-n';;
1c710c3c
DJ
12589esac
12590
11a67599
ZW
12591if expr a : '\(a\)' >/dev/null 2>&1 &&
12592 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
12593 as_expr=expr
12594else
12595 as_expr=false
12596fi
12597
12598rm -f conf$$ conf$$.exe conf$$.file
11a67599
ZW
12599if test -d conf$$.dir; then
12600 rm -f conf$$.dir/conf$$.file
12601else
12602 rm -f conf$$.dir
12603 mkdir conf$$.dir
12604fi
1c710c3c
DJ
12605echo >conf$$.file
12606if ln -s conf$$.file conf$$ 2>/dev/null; then
11a67599
ZW
12607 as_ln_s='ln -s'
12608 # ... but there are two gotchas:
12609 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12610 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12611 # In both cases, we have to default to `cp -p'.
12612 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1c710c3c 12613 as_ln_s='cp -p'
1c710c3c
DJ
12614elif ln conf$$.file conf$$ 2>/dev/null; then
12615 as_ln_s=ln
12616else
12617 as_ln_s='cp -p'
12618fi
11a67599
ZW
12619rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12620rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
12621
12622if mkdir -p . 2>/dev/null; then
12623 as_mkdir_p=:
12624else
12625 test -d ./-p && rmdir ./-p
12626 as_mkdir_p=false
12627fi
12628
11a67599
ZW
12629if test -x / >/dev/null 2>&1; then
12630 as_test_x='test -x'
12631else
12632 if ls -dL / >/dev/null 2>&1; then
12633 as_ls_L_option=L
12634 else
12635 as_ls_L_option=
12636 fi
12637 as_test_x='
12638 eval sh -c '\''
12639 if test -d "$1"; then
12640 test -d "$1/.";
12641 else
12642 case $1 in
12643 -*)set "./$1";;
12644 esac;
12645 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12646 ???[sx]*):;;*)false;;esac;fi
12647 '\'' sh
12648 '
12649fi
12650as_executable_p=$as_test_x
1c710c3c
DJ
12651
12652# Sed expression to map a string onto a valid CPP name.
12653as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12654
12655# Sed expression to map a string onto a valid variable name.
12656as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12657
12658
1c710c3c
DJ
12659exec 6>&1
12660
11a67599 12661# Save the log message, to keep $[0] and so on meaningful, and to
1c710c3c 12662# report actual input values of CONFIG_FILES etc. instead of their
11a67599
ZW
12663# values after options handling.
12664ac_log="
1c710c3c 12665This file was extended by $as_me, which was
11a67599 12666generated by GNU Autoconf 2.61. Invocation command line was
1c710c3c
DJ
12667
12668 CONFIG_FILES = $CONFIG_FILES
12669 CONFIG_HEADERS = $CONFIG_HEADERS
12670 CONFIG_LINKS = $CONFIG_LINKS
12671 CONFIG_COMMANDS = $CONFIG_COMMANDS
12672 $ $0 $@
12673
11a67599
ZW
12674on `(hostname || uname -n) 2>/dev/null | sed 1q`
12675"
12676
1c710c3c
DJ
12677_ACEOF
12678
11a67599 12679cat >>$CONFIG_STATUS <<_ACEOF
1c710c3c 12680# Files that config.status was made for.
11a67599 12681config_files="$ac_config_files"
1c710c3c 12682
11a67599 12683_ACEOF
1c710c3c
DJ
12684
12685cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
12686ac_cs_usage="\
12687\`$as_me' instantiates files from templates according to the
12688current configuration.
12689
12690Usage: $0 [OPTIONS] [FILE]...
12691
12692 -h, --help print this help, then exit
11a67599 12693 -V, --version print version number and configuration settings, then exit
1c710c3c
DJ
12694 -q, --quiet do not print progress messages
12695 -d, --debug don't remove temporary files
12696 --recheck update $as_me by reconfiguring in the same conditions
12697 --file=FILE[:TEMPLATE]
12698 instantiate the configuration file FILE
12699
12700Configuration files:
12701$config_files
12702
12703Report bugs to <bug-autoconf@gnu.org>."
1c710c3c 12704
11a67599 12705_ACEOF
1c710c3c
DJ
12706cat >>$CONFIG_STATUS <<_ACEOF
12707ac_cs_version="\\
12708config.status
11a67599
ZW
12709configured by $0, generated by GNU Autoconf 2.61,
12710 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 12711
11a67599 12712Copyright (C) 2006 Free Software Foundation, Inc.
1c710c3c
DJ
12713This config.status script is free software; the Free Software Foundation
12714gives unlimited permission to copy, distribute and modify it."
11a67599
ZW
12715
12716ac_pwd='$ac_pwd'
12717srcdir='$srcdir'
12718INSTALL='$INSTALL'
1c710c3c
DJ
12719_ACEOF
12720
12721cat >>$CONFIG_STATUS <<\_ACEOF
12722# If no file are specified by the user, then we need to provide default
12723# value. By we need to know if files were specified by the user.
12724ac_need_defaults=:
12725while test $# != 0
a4b9e93e 12726do
1c710c3c
DJ
12727 case $1 in
12728 --*=*)
11a67599
ZW
12729 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12730 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
12731 ac_shift=:
12732 ;;
11a67599 12733 *)
1c710c3c
DJ
12734 ac_option=$1
12735 ac_optarg=$2
12736 ac_shift=shift
12737 ;;
1c710c3c
DJ
12738 esac
12739
12740 case $ac_option in
12741 # Handling of the options.
671aa708 12742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 12743 ac_cs_recheck=: ;;
11a67599
ZW
12744 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12745 echo "$ac_cs_version"; exit ;;
12746 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
12747 debug=: ;;
12748 --file | --fil | --fi | --f )
12749 $ac_shift
12750 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12751 ac_need_defaults=false;;
11a67599
ZW
12752 --he | --h | --help | --hel | -h )
12753 echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
12754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12755 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12756 ac_cs_silent=: ;;
12757
12758 # This is an error.
11a67599
ZW
12759 -*) { echo "$as_me: error: unrecognized option: $1
12760Try \`$0 --help' for more information." >&2
1c710c3c
DJ
12761 { (exit 1); exit 1; }; } ;;
12762
11a67599
ZW
12763 *) ac_config_targets="$ac_config_targets $1"
12764 ac_need_defaults=false ;;
1c710c3c 12765
0b0dc272 12766 esac
1c710c3c 12767 shift
0b0dc272
AM
12768done
12769
1c710c3c 12770ac_configure_extra_args=
0b0dc272 12771
1c710c3c
DJ
12772if $ac_cs_silent; then
12773 exec 6>/dev/null
12774 ac_configure_extra_args="$ac_configure_extra_args --silent"
12775fi
0b0dc272 12776
1c710c3c
DJ
12777_ACEOF
12778cat >>$CONFIG_STATUS <<_ACEOF
12779if \$ac_cs_recheck; then
11a67599
ZW
12780 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12781 CONFIG_SHELL=$SHELL
12782 export CONFIG_SHELL
12783 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
12784fi
12785
12786_ACEOF
11a67599
ZW
12787cat >>$CONFIG_STATUS <<\_ACEOF
12788exec 5>>config.log
12789{
12790 echo
12791 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12792## Running $as_me. ##
12793_ASBOX
12794 echo "$ac_log"
12795} >&5
1c710c3c 12796
11a67599
ZW
12797_ACEOF
12798cat >>$CONFIG_STATUS <<_ACEOF
12799_ACEOF
1c710c3c
DJ
12800
12801cat >>$CONFIG_STATUS <<\_ACEOF
11a67599
ZW
12802
12803# Handling of arguments.
1c710c3c
DJ
12804for ac_config_target in $ac_config_targets
12805do
11a67599
ZW
12806 case $ac_config_target in
12807 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12808
1c710c3c
DJ
12809 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12810echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12811 { (exit 1); exit 1; }; };;
12812 esac
12813done
12814
11a67599 12815
1c710c3c
DJ
12816# If the user did not use the arguments to specify the items to instantiate,
12817# then the envvar interface is used. Set only those that are not.
12818# We use the long form for the default assignment because of an extremely
12819# bizarre bug on SunOS 4.1.3.
12820if $ac_need_defaults; then
12821 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12822fi
12823
12824# Have a temporary directory for convenience. Make it in the build tree
11a67599 12825# simply because there is no reason against having it here, and in addition,
1c710c3c 12826# creating and moving files from /tmp can sometimes cause problems.
11a67599
ZW
12827# Hook for its removal unless debugging.
12828# Note that there is a small window in which the directory will not be cleaned:
12829# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
12830$debug ||
12831{
11a67599
ZW
12832 tmp=
12833 trap 'exit_status=$?
12834 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12835' 0
1c710c3c
DJ
12836 trap '{ (exit 1); exit 1; }' 1 2 13 15
12837}
1c710c3c
DJ
12838# Create a (secure) tmp directory for tmp files.
12839
12840{
11a67599 12841 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
12842 test -n "$tmp" && test -d "$tmp"
12843} ||
12844{
11a67599
ZW
12845 tmp=./conf$$-$RANDOM
12846 (umask 077 && mkdir "$tmp")
1c710c3c
DJ
12847} ||
12848{
12849 echo "$me: cannot create a temporary directory in ." >&2
12850 { (exit 1); exit 1; }
12851}
12852
1c710c3c 12853#
11a67599 12854# Set up the sed scripts for CONFIG_FILES section.
1c710c3c
DJ
12855#
12856
12857# No need to generate the scripts if there are no CONFIG_FILES.
12858# This happens for instance when ./config.status config.h
11a67599 12859if test -n "$CONFIG_FILES"; then
79c06341 12860
1c710c3c
DJ
12861_ACEOF
12862
11a67599
ZW
12863# Create sed commands to just substitute file output variables.
12864
12865# Remaining file output variables are in a fragment that also has non-file
12866# output varibles.
12867
12868
12869
12870ac_delim='%!_!# '
12871for ac_last_try in false false false false false :; do
12872 cat >conf$$subs.sed <<_ACEOF
12873SHELL!$SHELL$ac_delim
12874PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12875PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12876PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12877PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12878PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12879PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12880exec_prefix!$exec_prefix$ac_delim
12881prefix!$prefix$ac_delim
12882program_transform_name!$program_transform_name$ac_delim
12883bindir!$bindir$ac_delim
12884sbindir!$sbindir$ac_delim
12885libexecdir!$libexecdir$ac_delim
12886datarootdir!$datarootdir$ac_delim
12887datadir!$datadir$ac_delim
12888sysconfdir!$sysconfdir$ac_delim
12889sharedstatedir!$sharedstatedir$ac_delim
12890localstatedir!$localstatedir$ac_delim
12891includedir!$includedir$ac_delim
12892oldincludedir!$oldincludedir$ac_delim
12893docdir!$docdir$ac_delim
12894infodir!$infodir$ac_delim
12895htmldir!$htmldir$ac_delim
12896dvidir!$dvidir$ac_delim
12897pdfdir!$pdfdir$ac_delim
12898psdir!$psdir$ac_delim
12899libdir!$libdir$ac_delim
12900localedir!$localedir$ac_delim
12901mandir!$mandir$ac_delim
12902DEFS!$DEFS$ac_delim
12903ECHO_C!$ECHO_C$ac_delim
12904ECHO_N!$ECHO_N$ac_delim
12905ECHO_T!$ECHO_T$ac_delim
12906LIBS!$LIBS$ac_delim
12907build_alias!$build_alias$ac_delim
12908host_alias!$host_alias$ac_delim
12909target_alias!$target_alias$ac_delim
12910build!$build$ac_delim
12911build_cpu!$build_cpu$ac_delim
12912build_vendor!$build_vendor$ac_delim
12913build_os!$build_os$ac_delim
12914build_noncanonical!$build_noncanonical$ac_delim
12915host_noncanonical!$host_noncanonical$ac_delim
12916target_noncanonical!$target_noncanonical$ac_delim
12917host!$host$ac_delim
12918host_cpu!$host_cpu$ac_delim
12919host_vendor!$host_vendor$ac_delim
12920host_os!$host_os$ac_delim
12921target!$target$ac_delim
12922target_cpu!$target_cpu$ac_delim
12923target_vendor!$target_vendor$ac_delim
12924target_os!$target_os$ac_delim
12925INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12926INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12927INSTALL_DATA!$INSTALL_DATA$ac_delim
12928LN!$LN$ac_delim
12929LN_S!$LN_S$ac_delim
12930TOPLEVEL_CONFIGURE_ARGUMENTS!$TOPLEVEL_CONFIGURE_ARGUMENTS$ac_delim
12931build_libsubdir!$build_libsubdir$ac_delim
12932build_subdir!$build_subdir$ac_delim
12933host_subdir!$host_subdir$ac_delim
12934target_subdir!$target_subdir$ac_delim
12935CC!$CC$ac_delim
12936CFLAGS!$CFLAGS$ac_delim
12937LDFLAGS!$LDFLAGS$ac_delim
12938CPPFLAGS!$CPPFLAGS$ac_delim
12939ac_ct_CC!$ac_ct_CC$ac_delim
12940EXEEXT!$EXEEXT$ac_delim
12941OBJEXT!$OBJEXT$ac_delim
12942CXX!$CXX$ac_delim
12943CXXFLAGS!$CXXFLAGS$ac_delim
12944ac_ct_CXX!$ac_ct_CXX$ac_delim
12945GNATBIND!$GNATBIND$ac_delim
12946GNATMAKE!$GNATMAKE$ac_delim
12947do_compare!$do_compare$ac_delim
12948gmplibs!$gmplibs$ac_delim
12949gmpinc!$gmpinc$ac_delim
12950stage1_languages!$stage1_languages$ac_delim
12951SYSROOT_CFLAGS_FOR_TARGET!$SYSROOT_CFLAGS_FOR_TARGET$ac_delim
12952RPATH_ENVVAR!$RPATH_ENVVAR$ac_delim
12953tooldir!$tooldir$ac_delim
12954build_tooldir!$build_tooldir$ac_delim
12955_ACEOF
12956
12957 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
12958 break
12959 elif $ac_last_try; then
12960 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12961echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12962 { (exit 1); exit 1; }; }
12963 else
12964 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4977bab6 12965 fi
11a67599
ZW
12966done
12967
12968ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12969if test -n "$ac_eof"; then
12970 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12971 ac_eof=`expr $ac_eof + 1`
12972fi
12973
12974cat >>$CONFIG_STATUS <<_ACEOF
12975cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12976/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12977/^[ ]*@serialization_dependencies@[ ]*$/{
12978r $serialization_dependencies
12979d
12980}
12981/^[ ]*@host_makefile_frag@[ ]*$/{
12982r $host_makefile_frag
12983d
12984}
12985/^[ ]*@target_makefile_frag@[ ]*$/{
12986r $target_makefile_frag
12987d
12988}
12989/^[ ]*@alphaieee_frag@[ ]*$/{
12990r $alphaieee_frag
12991d
12992}
12993/^[ ]*@ospace_frag@[ ]*$/{
12994r $ospace_frag
12995d
12996}
12997_ACEOF
12998sed '
12999s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13000s/^/s,@/; s/!/@,|#_!!_#|/
13001:n
13002t n
13003s/'"$ac_delim"'$/,g/; t
13004s/$/\\/; p
13005N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13006' >>$CONFIG_STATUS <conf$$subs.sed
13007rm -f conf$$subs.sed
13008cat >>$CONFIG_STATUS <<_ACEOF
13009CEOF$ac_eof
13010_ACEOF
13011
79c06341 13012
11a67599
ZW
13013ac_delim='%!_!# '
13014for ac_last_try in false false false false false :; do
13015 cat >conf$$subs.sed <<_ACEOF
13016CONFIGURE_GDB_TK!$CONFIGURE_GDB_TK$ac_delim
13017GDB_TK!$GDB_TK$ac_delim
13018INSTALL_GDB_TK!$INSTALL_GDB_TK$ac_delim
13019build_configargs!$build_configargs$ac_delim
13020build_configdirs!$build_configdirs$ac_delim
13021host_configargs!$host_configargs$ac_delim
13022configdirs!$configdirs$ac_delim
13023target_configargs!$target_configargs$ac_delim
13024CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
13025config_shell!$config_shell$ac_delim
13026YACC!$YACC$ac_delim
13027BISON!$BISON$ac_delim
13028M4!$M4$ac_delim
13029LEX!$LEX$ac_delim
13030FLEX!$FLEX$ac_delim
13031MAKEINFO!$MAKEINFO$ac_delim
13032EXPECT!$EXPECT$ac_delim
13033RUNTEST!$RUNTEST$ac_delim
13034AR!$AR$ac_delim
13035AS!$AS$ac_delim
13036DLLTOOL!$DLLTOOL$ac_delim
13037LD!$LD$ac_delim
13038LIPO!$LIPO$ac_delim
13039NM!$NM$ac_delim
13040RANLIB!$RANLIB$ac_delim
13041STRIP!$STRIP$ac_delim
13042WINDRES!$WINDRES$ac_delim
13043OBJCOPY!$OBJCOPY$ac_delim
13044OBJDUMP!$OBJDUMP$ac_delim
13045CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
13046CC_FOR_TARGET!$CC_FOR_TARGET$ac_delim
13047CXX_FOR_TARGET!$CXX_FOR_TARGET$ac_delim
13048GCC_FOR_TARGET!$GCC_FOR_TARGET$ac_delim
13049GCJ_FOR_TARGET!$GCJ_FOR_TARGET$ac_delim
13050GFORTRAN_FOR_TARGET!$GFORTRAN_FOR_TARGET$ac_delim
13051AR_FOR_TARGET!$AR_FOR_TARGET$ac_delim
13052AS_FOR_TARGET!$AS_FOR_TARGET$ac_delim
13053DLLTOOL_FOR_TARGET!$DLLTOOL_FOR_TARGET$ac_delim
13054LD_FOR_TARGET!$LD_FOR_TARGET$ac_delim
13055LIPO_FOR_TARGET!$LIPO_FOR_TARGET$ac_delim
13056NM_FOR_TARGET!$NM_FOR_TARGET$ac_delim
13057OBJDUMP_FOR_TARGET!$OBJDUMP_FOR_TARGET$ac_delim
13058RANLIB_FOR_TARGET!$RANLIB_FOR_TARGET$ac_delim
13059STRIP_FOR_TARGET!$STRIP_FOR_TARGET$ac_delim
13060WINDRES_FOR_TARGET!$WINDRES_FOR_TARGET$ac_delim
13061RAW_CXX_FOR_TARGET!$RAW_CXX_FOR_TARGET$ac_delim
13062FLAGS_FOR_TARGET!$FLAGS_FOR_TARGET$ac_delim
13063COMPILER_AS_FOR_TARGET!$COMPILER_AS_FOR_TARGET$ac_delim
13064COMPILER_LD_FOR_TARGET!$COMPILER_LD_FOR_TARGET$ac_delim
13065COMPILER_NM_FOR_TARGET!$COMPILER_NM_FOR_TARGET$ac_delim
13066MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
13067MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
13068MAINT!$MAINT$ac_delim
13069stage1_cflags!$stage1_cflags$ac_delim
13070stage1_checking!$stage1_checking$ac_delim
13071stage2_werror_flag!$stage2_werror_flag$ac_delim
13072LIBOBJS!$LIBOBJS$ac_delim
13073LTLIBOBJS!$LTLIBOBJS$ac_delim
1c710c3c 13074_ACEOF
11a67599
ZW
13075
13076 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
13077 break
13078 elif $ac_last_try; then
13079 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13080echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13081 { (exit 1); exit 1; }; }
13082 else
13083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13084 fi
13085done
13086
13087ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13088if test -n "$ac_eof"; then
13089 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13090 ac_eof=`expr $ac_eof + 1`
13091fi
13092
13093cat >>$CONFIG_STATUS <<_ACEOF
13094cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13095/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13096_ACEOF
13097sed '
13098s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13099s/^/s,@/; s/!/@,|#_!!_#|/
13100:n
13101t n
13102s/'"$ac_delim"'$/,g/; t
13103s/$/\\/; p
13104N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13105' >>$CONFIG_STATUS <conf$$subs.sed
13106rm -f conf$$subs.sed
13107cat >>$CONFIG_STATUS <<_ACEOF
13108:end
13109s/|#_!!_#|//g
13110CEOF$ac_eof
13111_ACEOF
13112
13113
13114# VPATH may cause trouble with some makes, so we remove $(srcdir),
13115# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13116# trailing colons and then remove the whole line if VPATH becomes empty
13117# (actually we leave an empty line to preserve line numbers).
13118if test "x$srcdir" = x.; then
13119 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13120s/:*\$(srcdir):*/:/
13121s/:*\${srcdir}:*/:/
13122s/:*@srcdir@:*/:/
13123s/^\([^=]*=[ ]*\):*/\1/
13124s/:*$//
13125s/^[^=]*=[ ]*$//
13126}'
13127fi
13128
1c710c3c 13129cat >>$CONFIG_STATUS <<\_ACEOF
11a67599
ZW
13130fi # test -n "$CONFIG_FILES"
13131
13132
13133for ac_tag in :F $CONFIG_FILES
13134do
13135 case $ac_tag in
13136 :[FHLC]) ac_mode=$ac_tag; continue;;
671aa708 13137 esac
11a67599
ZW
13138 case $ac_mode$ac_tag in
13139 :[FHL]*:*);;
13140 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13141echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13142 { (exit 1); exit 1; }; };;
13143 :[FH]-) ac_tag=-:-;;
13144 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13145 esac
13146 ac_save_IFS=$IFS
13147 IFS=:
13148 set x $ac_tag
13149 IFS=$ac_save_IFS
13150 shift
13151 ac_file=$1
13152 shift
79c06341 13153
11a67599
ZW
13154 case $ac_mode in
13155 :L) ac_source=$1;;
13156 :[FH])
13157 ac_file_inputs=
13158 for ac_f
13159 do
13160 case $ac_f in
13161 -) ac_f="$tmp/stdin";;
13162 *) # Look for the file first in the build tree, then in the source tree
13163 # (if the path is not absolute). The absolute path cannot be DOS-style,
13164 # because $ac_f cannot contain `:'.
13165 test -f "$ac_f" ||
13166 case $ac_f in
13167 [\\/$]*) false;;
13168 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13169 esac ||
13170 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13171echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13172 { (exit 1); exit 1; }; };;
13173 esac
13174 ac_file_inputs="$ac_file_inputs $ac_f"
13175 done
13176
13177 # Let's still pretend it is `configure' which instantiates (i.e., don't
13178 # use $as_me), people would be surprised to read:
13179 # /* config.h. Generated by config.status. */
13180 configure_input="Generated from "`IFS=:
13181 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13182 if test x"$ac_file" != x-; then
13183 configure_input="$ac_file. $configure_input"
13184 { echo "$as_me:$LINENO: creating $ac_file" >&5
13185echo "$as_me: creating $ac_file" >&6;}
13186 fi
13187
13188 case $ac_tag in
13189 *:-:* | *:-) cat >"$tmp/stdin";;
13190 esac
13191 ;;
13192 esac
13193
13194 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
13195$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13196 X"$ac_file" : 'X\(//\)[^/]' \| \
13197 X"$ac_file" : 'X\(//\)$' \| \
11a67599 13198 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1c710c3c 13199echo X"$ac_file" |
11a67599
ZW
13200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13201 s//\1/
13202 q
13203 }
13204 /^X\(\/\/\)[^/].*/{
13205 s//\1/
13206 q
13207 }
13208 /^X\(\/\/\)$/{
13209 s//\1/
13210 q
13211 }
13212 /^X\(\/\).*/{
13213 s//\1/
13214 q
13215 }
13216 s/.*/./; q'`
13217 { as_dir="$ac_dir"
13218 case $as_dir in #(
13219 -*) as_dir=./$as_dir;;
13220 esac
13221 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1c710c3c 13222 as_dirs=
11a67599
ZW
13223 while :; do
13224 case $as_dir in #(
13225 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13226 *) as_qdir=$as_dir;;
13227 esac
13228 as_dirs="'$as_qdir' $as_dirs"
13229 as_dir=`$as_dirname -- "$as_dir" ||
1c710c3c
DJ
13230$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13231 X"$as_dir" : 'X\(//\)[^/]' \| \
13232 X"$as_dir" : 'X\(//\)$' \| \
11a67599 13233 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1c710c3c 13234echo X"$as_dir" |
11a67599
ZW
13235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13236 s//\1/
13237 q
13238 }
13239 /^X\(\/\/\)[^/].*/{
13240 s//\1/
13241 q
13242 }
13243 /^X\(\/\/\)$/{
13244 s//\1/
13245 q
13246 }
13247 /^X\(\/\).*/{
13248 s//\1/
13249 q
13250 }
13251 s/.*/./; q'`
13252 test -d "$as_dir" && break
1c710c3c 13253 done
11a67599
ZW
13254 test -z "$as_dirs" || eval "mkdir $as_dirs"
13255 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13256echo "$as_me: error: cannot create directory $as_dir" >&2;}
1c710c3c 13257 { (exit 1); exit 1; }; }; }
1c710c3c 13258 ac_builddir=.
0b0dc272 13259
11a67599
ZW
13260case "$ac_dir" in
13261.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13262*)
1c710c3c 13263 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11a67599
ZW
13264 # A ".." for each directory in $ac_dir_suffix.
13265 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13266 case $ac_top_builddir_sub in
13267 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13268 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13269 esac ;;
13270esac
13271ac_abs_top_builddir=$ac_pwd
13272ac_abs_builddir=$ac_pwd$ac_dir_suffix
13273# for backward compatibility:
13274ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
13275
13276case $srcdir in
11a67599 13277 .) # We are building in place.
1c710c3c 13278 ac_srcdir=.
11a67599
ZW
13279 ac_top_srcdir=$ac_top_builddir_sub
13280 ac_abs_top_srcdir=$ac_pwd ;;
13281 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 13282 ac_srcdir=$srcdir$ac_dir_suffix;
11a67599
ZW
13283 ac_top_srcdir=$srcdir
13284 ac_abs_top_srcdir=$srcdir ;;
13285 *) # Relative name.
13286 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13287 ac_top_srcdir=$ac_top_build_prefix$srcdir
13288 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 13289esac
11a67599 13290ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 13291
0b0dc272 13292
11a67599
ZW
13293 case $ac_mode in
13294 :F)
13295 #
13296 # CONFIG_FILE
13297 #
1c710c3c
DJ
13298
13299 case $INSTALL in
13300 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11a67599 13301 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 13302 esac
11a67599 13303_ACEOF
79c06341 13304
11a67599
ZW
13305cat >>$CONFIG_STATUS <<\_ACEOF
13306# If the template does not know about datarootdir, expand it.
13307# FIXME: This hack should be removed a few years after 2.60.
13308ac_datarootdir_hack=; ac_datarootdir_seen=
13309
13310case `sed -n '/datarootdir/ {
13311 p
13312 q
13313}
13314/@datadir@/p
13315/@docdir@/p
13316/@infodir@/p
13317/@localedir@/p
13318/@mandir@/p
13319' $ac_file_inputs` in
13320*datarootdir*) ac_datarootdir_seen=yes;;
13321*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13322 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13323echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1c710c3c 13324_ACEOF
11a67599
ZW
13325cat >>$CONFIG_STATUS <<_ACEOF
13326 ac_datarootdir_hack='
13327 s&@datadir@&$datadir&g
13328 s&@docdir@&$docdir&g
13329 s&@infodir@&$infodir&g
13330 s&@localedir@&$localedir&g
13331 s&@mandir@&$mandir&g
13332 s&\\\${datarootdir}&$datarootdir&g' ;;
13333esac
13334_ACEOF
13335
13336# Neutralize VPATH when `$srcdir' = `.'.
13337# Shell code in configure.ac might set extrasub.
13338# FIXME: do we really want to maintain this feature?
1c710c3c
DJ
13339cat >>$CONFIG_STATUS <<_ACEOF
13340 sed "$ac_vpsub
13341$extrasub
13342_ACEOF
13343cat >>$CONFIG_STATUS <<\_ACEOF
13344:t
13345/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11a67599
ZW
13346s&@configure_input@&$configure_input&;t t
13347s&@top_builddir@&$ac_top_builddir_sub&;t t
13348s&@srcdir@&$ac_srcdir&;t t
13349s&@abs_srcdir@&$ac_abs_srcdir&;t t
13350s&@top_srcdir@&$ac_top_srcdir&;t t
13351s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13352s&@builddir@&$ac_builddir&;t t
13353s&@abs_builddir@&$ac_abs_builddir&;t t
13354s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13355s&@INSTALL@&$ac_INSTALL&;t t
13356$ac_datarootdir_hack
13357" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13358
13359test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13360 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13361 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13362 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13363which seems to be undefined. Please make sure it is defined." >&5
13364echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13365which seems to be undefined. Please make sure it is defined." >&2;}
13366
13367 rm -f "$tmp/stdin"
13368 case $ac_file in
13369 -) cat "$tmp/out"; rm -f "$tmp/out";;
13370 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13371 esac
13372 ;;
79c06341 13373
79c06341 13374
11a67599
ZW
13375
13376 esac
13377
13378done # for ac_tag
13379
79c06341 13380
1c710c3c
DJ
13381{ (exit 0); exit 0; }
13382_ACEOF
671aa708 13383chmod +x $CONFIG_STATUS
1c710c3c
DJ
13384ac_clean_files=$ac_clean_files_save
13385
13386
13387# configure is writing to config.log, and then calls config.status.
13388# config.status does its own redirection, appending to config.log.
13389# Unfortunately, on DOS this fails, as config.log is still kept open
13390# by configure, so config.status won't be able to write to it; its
13391# output is simply discarded. So we exec the FD to /dev/null,
13392# effectively closing config.log, so it can be properly (re)opened and
13393# appended to by config.status. When coming back to configure, we
13394# need to make the FD available again.
13395if test "$no_create" != yes; then
13396 ac_cs_success=:
13397 ac_config_status_args=
13398 test "$silent" = yes &&
13399 ac_config_status_args="$ac_config_status_args --quiet"
13400 exec 5>/dev/null
13401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13402 exec 5>>config.log
13403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13404 # would make configure fail if this is the last instruction.
13405 $ac_cs_success || { (exit 1); exit 1; }
13406fi
79c06341 13407