]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
1a2bbbca0cc1908290c5e81ea554d1f409891245
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="move-if-change"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS TOPLEVEL_CONFIGURE_ARGUMENTS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
277 ac_pwd=`pwd`
278
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
298
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
316
317 ac_prev=
318 for ac_option
319 do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614 done
615
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620 fi
621
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
624 do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631 done
632
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636 do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643 done
644
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
651
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661 fi
662
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666 test "$silent" = yes && exec 6>/dev/null
667
668
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679 echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689 else
690 ac_srcdir_defaulted=no
691 fi
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700 fi
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
719 ac_env_CC_set=${CC+set}
720 ac_env_CC_value=$CC
721 ac_cv_env_CC_set=${CC+set}
722 ac_cv_env_CC_value=$CC
723 ac_env_CFLAGS_set=${CFLAGS+set}
724 ac_env_CFLAGS_value=$CFLAGS
725 ac_cv_env_CFLAGS_set=${CFLAGS+set}
726 ac_cv_env_CFLAGS_value=$CFLAGS
727 ac_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_env_LDFLAGS_value=$LDFLAGS
729 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730 ac_cv_env_LDFLAGS_value=$LDFLAGS
731 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_env_CPPFLAGS_value=$CPPFLAGS
733 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735 ac_env_CXX_set=${CXX+set}
736 ac_env_CXX_value=$CXX
737 ac_cv_env_CXX_set=${CXX+set}
738 ac_cv_env_CXX_value=$CXX
739 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740 ac_env_CXXFLAGS_value=$CXXFLAGS
741 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743 ac_env_AR_set=${AR+set}
744 ac_env_AR_value=$AR
745 ac_cv_env_AR_set=${AR+set}
746 ac_cv_env_AR_value=$AR
747 ac_env_AS_set=${AS+set}
748 ac_env_AS_value=$AS
749 ac_cv_env_AS_set=${AS+set}
750 ac_cv_env_AS_value=$AS
751 ac_env_DLLTOOL_set=${DLLTOOL+set}
752 ac_env_DLLTOOL_value=$DLLTOOL
753 ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754 ac_cv_env_DLLTOOL_value=$DLLTOOL
755 ac_env_LD_set=${LD+set}
756 ac_env_LD_value=$LD
757 ac_cv_env_LD_set=${LD+set}
758 ac_cv_env_LD_value=$LD
759 ac_env_LIPO_set=${LIPO+set}
760 ac_env_LIPO_value=$LIPO
761 ac_cv_env_LIPO_set=${LIPO+set}
762 ac_cv_env_LIPO_value=$LIPO
763 ac_env_NM_set=${NM+set}
764 ac_env_NM_value=$NM
765 ac_cv_env_NM_set=${NM+set}
766 ac_cv_env_NM_value=$NM
767 ac_env_RANLIB_set=${RANLIB+set}
768 ac_env_RANLIB_value=$RANLIB
769 ac_cv_env_RANLIB_set=${RANLIB+set}
770 ac_cv_env_RANLIB_value=$RANLIB
771 ac_env_STRIP_set=${STRIP+set}
772 ac_env_STRIP_value=$STRIP
773 ac_cv_env_STRIP_set=${STRIP+set}
774 ac_cv_env_STRIP_value=$STRIP
775 ac_env_WINDRES_set=${WINDRES+set}
776 ac_env_WINDRES_value=$WINDRES
777 ac_cv_env_WINDRES_set=${WINDRES+set}
778 ac_cv_env_WINDRES_value=$WINDRES
779 ac_env_WINDMC_set=${WINDMC+set}
780 ac_env_WINDMC_value=$WINDMC
781 ac_cv_env_WINDMC_set=${WINDMC+set}
782 ac_cv_env_WINDMC_value=$WINDMC
783 ac_env_OBJCOPY_set=${OBJCOPY+set}
784 ac_env_OBJCOPY_value=$OBJCOPY
785 ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786 ac_cv_env_OBJCOPY_value=$OBJCOPY
787 ac_env_OBJDUMP_set=${OBJDUMP+set}
788 ac_env_OBJDUMP_value=$OBJDUMP
789 ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790 ac_cv_env_OBJDUMP_value=$OBJDUMP
791 ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792 ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793 ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794 ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795 ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796 ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797 ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798 ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799 ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800 ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801 ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802 ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803 ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804 ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805 ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806 ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807 ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808 ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809 ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810 ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811 ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812 ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813 ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814 ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815 ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816 ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817 ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818 ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819 ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820 ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821 ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822 ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823 ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824 ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825 ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826 ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827 ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828 ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829 ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830 ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831 ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832 ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833 ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834 ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835 ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836 ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837 ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838 ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839 ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840 ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841 ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842 ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843 ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844 ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845 ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846 ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847 ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848 ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849 ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850 ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
851 ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852 ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853 ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854 ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
855
856 #
857 # Report the --help message.
858 #
859 if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863 \`configure' configures this package to adapt to many kinds of systems.
864
865 Usage: $0 [OPTION]... [VAR=VALUE]...
866
867 To assign environment variables (e.g., CC, CFLAGS...), specify them as
868 VAR=VALUE. See below for descriptions of some of the useful variables.
869
870 Defaults for the options are specified in brackets.
871
872 Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
883 _ACEOF
884
885 cat <<_ACEOF
886 Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892 By default, \`make install' will install all the files in
893 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895 for instance \`--prefix=\$HOME'.
896
897 For better control, use the options below.
898
899 Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
912 _ACEOF
913
914 cat <<\_ACEOF
915
916 Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921 System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925 _ACEOF
926 fi
927
928 if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932 Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
935 --enable-gold use gold instead of ld
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
938 --enable-stage1-languages[=all] choose additional languages to build during
939 stage1. Mostly useful for compiler development.
940 --enable-objc-gc enable use of Boehm's garbage collector with the
941 GNU Objective-C runtime
942 --enable-bootstrap enable bootstrapping [yes if native build]
943 --enable-serial-[{host,target,build}-]configure
944 force sequential configuration of
945 sub-packages for the host, target or build
946 machine, or all sub-packages
947 --enable-maintainer-mode enable make rules and dependencies not useful
948 (and sometimes confusing) to the casual installer
949 --enable-stage1-checking[=all] choose additional checking for stage1
950 of the compiler
951 --enable-werror enable -Werror in bootstrap stage2 and later
952
953 Optional Packages:
954 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
955 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
956 --with-build-libsubdir=DIR Directory where to find libraries for build system
957 --with-mpfr-dir=PATH this option has been REMOVED
958 --with-mpfr=PATH specify prefix directory for installed MPFR package.
959 Equivalent to --with-mpfr-include=PATH/include
960 plus --with-mpfr-lib=PATH/lib
961 --with-mpfr-include=PATH
962 specify directory for installed MPFR include files
963 --with-mpfr-lib=PATH specify directory for the installed MPFR library
964 --with-gmp-dir=PATH this option has been REMOVED
965 --with-gmp=PATH specify prefix directory for the installed GMP package.
966 Equivalent to --with-gmp-include=PATH/include
967 plus --with-gmp-lib=PATH/lib
968 --with-gmp-include=PATH specify directory for installed GMP include files
969 --with-gmp-lib=PATH specify directory for the installed GMP library
970 --with-build-sysroot=SYSROOT
971 use sysroot as the system root during the build
972 --with-debug-prefix-map='A=B C=D ...'
973 map A to B, C to D ... in debug information
974 --with-build-time-tools=PATH
975 use given path to find target tools during the build
976 --with-datarootdir use datarootdir as the data root directory.
977 --with-docdir install documentation in this directory.
978 --with-pdfdir install pdf in this directory.
979 --with-htmldir install html in this directory.
980
981 Some influential environment variables:
982 CC C compiler command
983 CFLAGS C compiler flags
984 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
985 nonstandard directory <lib dir>
986 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
987 headers in a nonstandard directory <include dir>
988 CXX C++ compiler command
989 CXXFLAGS C++ compiler flags
990 AR AR for the host
991 AS AS for the host
992 DLLTOOL DLLTOOL for the host
993 LD LD for the host
994 LIPO LIPO for the host
995 NM NM for the host
996 RANLIB RANLIB for the host
997 STRIP STRIP for the host
998 WINDRES WINDRES for the host
999 WINDMC WINDMC for the host
1000 OBJCOPY OBJCOPY for the host
1001 OBJDUMP OBJDUMP for the host
1002 CC_FOR_TARGET
1003 CC for the target
1004 CXX_FOR_TARGET
1005 CXX for the target
1006 GCC_FOR_TARGET
1007 GCC for the target
1008 GCJ_FOR_TARGET
1009 GCJ for the target
1010 GFORTRAN_FOR_TARGET
1011 GFORTRAN for the target
1012 AR_FOR_TARGET
1013 AR for the target
1014 AS_FOR_TARGET
1015 AS for the target
1016 DLLTOOL_FOR_TARGET
1017 DLLTOOL for the target
1018 LD_FOR_TARGET
1019 LD for the target
1020 LIPO_FOR_TARGET
1021 LIPO for the target
1022 NM_FOR_TARGET
1023 NM for the target
1024 OBJDUMP_FOR_TARGET
1025 OBJDUMP for the target
1026 RANLIB_FOR_TARGET
1027 RANLIB for the target
1028 STRIP_FOR_TARGET
1029 STRIP for the target
1030 WINDRES_FOR_TARGET
1031 WINDRES for the target
1032 WINDMC_FOR_TARGET
1033 WINDMC for the target
1034
1035 Use these variables to override the choices made by `configure' or to help
1036 it to find libraries and programs with nonstandard names/locations.
1037
1038 _ACEOF
1039 fi
1040
1041 if test "$ac_init_help" = "recursive"; then
1042 # If there are subdirs, report their specific --help.
1043 ac_popdir=`pwd`
1044 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1045 test -d $ac_dir || continue
1046 ac_builddir=.
1047
1048 if test "$ac_dir" != .; then
1049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1050 # A "../" for each directory in $ac_dir_suffix.
1051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1052 else
1053 ac_dir_suffix= ac_top_builddir=
1054 fi
1055
1056 case $srcdir in
1057 .) # No --srcdir option. We are building in place.
1058 ac_srcdir=.
1059 if test -z "$ac_top_builddir"; then
1060 ac_top_srcdir=.
1061 else
1062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1063 fi ;;
1064 [\\/]* | ?:[\\/]* ) # Absolute path.
1065 ac_srcdir=$srcdir$ac_dir_suffix;
1066 ac_top_srcdir=$srcdir ;;
1067 *) # Relative path.
1068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1070 esac
1071
1072 # Do not use `cd foo && pwd` to compute absolute paths, because
1073 # the directories may not exist.
1074 case `pwd` in
1075 .) ac_abs_builddir="$ac_dir";;
1076 *)
1077 case "$ac_dir" in
1078 .) ac_abs_builddir=`pwd`;;
1079 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1080 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1081 esac;;
1082 esac
1083 case $ac_abs_builddir in
1084 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *)
1086 case ${ac_top_builddir}. in
1087 .) ac_abs_top_builddir=$ac_abs_builddir;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1089 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1090 esac;;
1091 esac
1092 case $ac_abs_builddir in
1093 .) ac_abs_srcdir=$ac_srcdir;;
1094 *)
1095 case $ac_srcdir in
1096 .) ac_abs_srcdir=$ac_abs_builddir;;
1097 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1098 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1099 esac;;
1100 esac
1101 case $ac_abs_builddir in
1102 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *)
1104 case $ac_top_srcdir in
1105 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1107 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1108 esac;;
1109 esac
1110
1111 cd $ac_dir
1112 # Check for guested configure; otherwise get Cygnus style configure.
1113 if test -f $ac_srcdir/configure.gnu; then
1114 echo
1115 $SHELL $ac_srcdir/configure.gnu --help=recursive
1116 elif test -f $ac_srcdir/configure; then
1117 echo
1118 $SHELL $ac_srcdir/configure --help=recursive
1119 elif test -f $ac_srcdir/configure.ac ||
1120 test -f $ac_srcdir/configure.in; then
1121 echo
1122 $ac_configure --help
1123 else
1124 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1125 fi
1126 cd $ac_popdir
1127 done
1128 fi
1129
1130 test -n "$ac_init_help" && exit 0
1131 if $ac_init_version; then
1132 cat <<\_ACEOF
1133
1134 Copyright (C) 2003 Free Software Foundation, Inc.
1135 This configure script is free software; the Free Software Foundation
1136 gives unlimited permission to copy, distribute and modify it.
1137 _ACEOF
1138 exit 0
1139 fi
1140 exec 5>config.log
1141 cat >&5 <<_ACEOF
1142 This file contains any messages produced by compilers while
1143 running configure, to aid debugging if configure makes a mistake.
1144
1145 It was created by $as_me, which was
1146 generated by GNU Autoconf 2.59. Invocation command line was
1147
1148 $ $0 $@
1149
1150 _ACEOF
1151 {
1152 cat <<_ASUNAME
1153 ## --------- ##
1154 ## Platform. ##
1155 ## --------- ##
1156
1157 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1158 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1159 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1160 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1161 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162
1163 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1164 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165
1166 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1167 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1168 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1169 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1170 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1171 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1172 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1173
1174 _ASUNAME
1175
1176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1177 for as_dir in $PATH
1178 do
1179 IFS=$as_save_IFS
1180 test -z "$as_dir" && as_dir=.
1181 echo "PATH: $as_dir"
1182 done
1183
1184 } >&5
1185
1186 cat >&5 <<_ACEOF
1187
1188
1189 ## ----------- ##
1190 ## Core tests. ##
1191 ## ----------- ##
1192
1193 _ACEOF
1194
1195
1196 # Keep a trace of the command line.
1197 # Strip out --no-create and --no-recursion so they do not pile up.
1198 # Strip out --silent because we don't want to record it for future runs.
1199 # Also quote any args containing shell meta-characters.
1200 # Make two passes to allow for proper duplicate-argument suppression.
1201 ac_configure_args=
1202 ac_configure_args0=
1203 ac_configure_args1=
1204 ac_sep=
1205 ac_must_keep_next=false
1206 for ac_pass in 1 2
1207 do
1208 for ac_arg
1209 do
1210 case $ac_arg in
1211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 continue ;;
1215 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1216 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1217 esac
1218 case $ac_pass in
1219 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1220 2)
1221 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1222 if test $ac_must_keep_next = true; then
1223 ac_must_keep_next=false # Got value, back to normal.
1224 else
1225 case $ac_arg in
1226 *=* | --config-cache | -C | -disable-* | --disable-* \
1227 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1228 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1229 | -with-* | --with-* | -without-* | --without-* | --x)
1230 case "$ac_configure_args0 " in
1231 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1232 esac
1233 ;;
1234 -* ) ac_must_keep_next=true ;;
1235 esac
1236 fi
1237 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1238 # Get rid of the leading space.
1239 ac_sep=" "
1240 ;;
1241 esac
1242 done
1243 done
1244 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1245 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1246
1247 # When interrupted or exit'd, cleanup temporary files, and complete
1248 # config.log. We remove comments because anyway the quotes in there
1249 # would cause problems or look ugly.
1250 # WARNING: Be sure not to use single quotes in there, as some shells,
1251 # such as our DU 5.0 friend, will then `close' the trap.
1252 trap 'exit_status=$?
1253 # Save into config.log some information that might help in debugging.
1254 {
1255 echo
1256
1257 cat <<\_ASBOX
1258 ## ---------------- ##
1259 ## Cache variables. ##
1260 ## ---------------- ##
1261 _ASBOX
1262 echo
1263 # The following way of writing the cache mishandles newlines in values,
1264 {
1265 (set) 2>&1 |
1266 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1267 *ac_space=\ *)
1268 sed -n \
1269 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1271 ;;
1272 *)
1273 sed -n \
1274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1275 ;;
1276 esac;
1277 }
1278 echo
1279
1280 cat <<\_ASBOX
1281 ## ----------------- ##
1282 ## Output variables. ##
1283 ## ----------------- ##
1284 _ASBOX
1285 echo
1286 for ac_var in $ac_subst_vars
1287 do
1288 eval ac_val=$`echo $ac_var`
1289 echo "$ac_var='"'"'$ac_val'"'"'"
1290 done | sort
1291 echo
1292
1293 if test -n "$ac_subst_files"; then
1294 cat <<\_ASBOX
1295 ## ------------- ##
1296 ## Output files. ##
1297 ## ------------- ##
1298 _ASBOX
1299 echo
1300 for ac_var in $ac_subst_files
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306 fi
1307
1308 if test -s confdefs.h; then
1309 cat <<\_ASBOX
1310 ## ----------- ##
1311 ## confdefs.h. ##
1312 ## ----------- ##
1313 _ASBOX
1314 echo
1315 sed "/^$/d" confdefs.h | sort
1316 echo
1317 fi
1318 test "$ac_signal" != 0 &&
1319 echo "$as_me: caught signal $ac_signal"
1320 echo "$as_me: exit $exit_status"
1321 } >&5
1322 rm -f core *.core &&
1323 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1324 exit $exit_status
1325 ' 0
1326 for ac_signal in 1 2 13 15; do
1327 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1328 done
1329 ac_signal=0
1330
1331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1332 rm -rf conftest* confdefs.h
1333 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1334 echo >confdefs.h
1335
1336 # Predefined preprocessor variables.
1337
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_NAME "$PACKAGE_NAME"
1340 _ACEOF
1341
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_STRING "$PACKAGE_STRING"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1360 _ACEOF
1361
1362
1363 # Let the site file select an alternate cache file if it wants to.
1364 # Prefer explicitly selected file to automatically selected ones.
1365 if test -z "$CONFIG_SITE"; then
1366 if test "x$prefix" != xNONE; then
1367 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1368 else
1369 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1370 fi
1371 fi
1372 for ac_site_file in $CONFIG_SITE; do
1373 if test -r "$ac_site_file"; then
1374 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1375 echo "$as_me: loading site script $ac_site_file" >&6;}
1376 sed 's/^/| /' "$ac_site_file" >&5
1377 . "$ac_site_file"
1378 fi
1379 done
1380
1381 if test -r "$cache_file"; then
1382 # Some versions of bash will fail to source /dev/null (special
1383 # files actually), so we avoid doing that.
1384 if test -f "$cache_file"; then
1385 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1386 echo "$as_me: loading cache $cache_file" >&6;}
1387 case $cache_file in
1388 [\\/]* | ?:[\\/]* ) . $cache_file;;
1389 *) . ./$cache_file;;
1390 esac
1391 fi
1392 else
1393 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1394 echo "$as_me: creating cache $cache_file" >&6;}
1395 >$cache_file
1396 fi
1397
1398 # Check that the precious variables saved in the cache have kept the same
1399 # value.
1400 ac_cache_corrupted=false
1401 for ac_var in `(set) 2>&1 |
1402 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1404 eval ac_new_set=\$ac_env_${ac_var}_set
1405 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1406 eval ac_new_val="\$ac_env_${ac_var}_value"
1407 case $ac_old_set,$ac_new_set in
1408 set,)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1410 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,set)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,);;
1417 *)
1418 if test "x$ac_old_val" != "x$ac_new_val"; then
1419 # differences in whitespace do not lead to failure.
1420 ac_old_val_w=`echo x $ac_old_val`
1421 ac_new_val_w=`echo x $ac_new_val`
1422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 ac_cache_corrupted=:
1426 else
1427 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1428 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1429 eval $ac_var=\$ac_old_val
1430 fi
1431 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1432 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1433 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1434 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1435 fi;;
1436 esac
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1439 case $ac_new_val in
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1443 esac
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 esac
1448 fi
1449 done
1450 if $ac_cache_corrupted; then
1451 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1452 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
1458 fi
1459
1460 ac_ext=c
1461 ac_cpp='$CPP $CPPFLAGS'
1462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489 progname=$0
1490 # if PWD already has a value, it is probably wrong.
1491 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1492
1493 # Export original configure arguments for use by sub-configures.
1494 # Quote arguments with shell meta charatcers.
1495 TOPLEVEL_CONFIGURE_ARGUMENTS=
1496 set -- "$progname" "$@"
1497 for ac_arg
1498 do
1499 case "$ac_arg" in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1501 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1502 # if the argument is of the form -foo=baz, quote the baz part only
1503 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1504 *) ;;
1505 esac
1506 # Add the quoted argument to the list.
1507 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1508 done
1509 if test "$silent" = yes; then
1510 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1511 fi
1512 # Remove the initial space we just introduced and, as these will be
1513 # expanded by make, quote '$'.
1514 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1515
1516
1517 # Find the build, host, and target systems.
1518 ac_aux_dir=
1519 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
1532 fi
1533 done
1534 if test -z "$ac_aux_dir"; then
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1537 { (exit 1); exit 1; }; }
1538 fi
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
1543 # Make sure we can run config.sub.
1544 $ac_config_sub sun4 >/dev/null 2>&1 ||
1545 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549 echo "$as_me:$LINENO: checking build system type" >&5
1550 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551 if test "${ac_cv_build+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554 ac_cv_build_alias=$build_alias
1555 test -z "$ac_cv_build_alias" &&
1556 ac_cv_build_alias=`$ac_config_guess`
1557 test -z "$ac_cv_build_alias" &&
1558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560 { (exit 1); exit 1; }; }
1561 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566 fi
1567 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568 echo "${ECHO_T}$ac_cv_build" >&6
1569 build=$ac_cv_build
1570 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573
1574
1575 case ${build_alias} in
1576 "") build_noncanonical=${build} ;;
1577 *) build_noncanonical=${build_alias} ;;
1578 esac
1579
1580
1581
1582 case ${host_alias} in
1583 "") host_noncanonical=${build_noncanonical} ;;
1584 *) host_noncanonical=${host_alias} ;;
1585 esac
1586
1587
1588
1589 case ${target_alias} in
1590 "") target_noncanonical=${host_noncanonical} ;;
1591 *) target_noncanonical=${target_alias} ;;
1592 esac
1593
1594
1595
1596
1597 test "$host_noncanonical" = "$target_noncanonical" &&
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
1600 program_transform_name=s,y,y,
1601
1602 echo "$as_me:$LINENO: checking host system type" >&5
1603 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1604 if test "${ac_cv_host+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607 ac_cv_host_alias=$host_alias
1608 test -z "$ac_cv_host_alias" &&
1609 ac_cv_host_alias=$ac_cv_build_alias
1610 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1611 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1612 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1613 { (exit 1); exit 1; }; }
1614
1615 fi
1616 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1617 echo "${ECHO_T}$ac_cv_host" >&6
1618 host=$ac_cv_host
1619 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1620 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1621 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622
1623
1624 echo "$as_me:$LINENO: checking target system type" >&5
1625 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1626 if test "${ac_cv_target+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 ac_cv_target_alias=$target_alias
1630 test "x$ac_cv_target_alias" = "x" &&
1631 ac_cv_target_alias=$ac_cv_host_alias
1632 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1633 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1634 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1635 { (exit 1); exit 1; }; }
1636
1637 fi
1638 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1639 echo "${ECHO_T}$ac_cv_target" >&6
1640 target=$ac_cv_target
1641 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1642 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1643 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644
1645
1646 # The aliases save the names the user supplied, while $host etc.
1647 # will get canonicalized.
1648 test -n "$target_alias" &&
1649 test "$program_prefix$program_suffix$program_transform_name" = \
1650 NONENONEs,x,x, &&
1651 program_prefix=${target_alias}-
1652 test "$program_prefix" != NONE &&
1653 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1654 # Use a double $ so make ignores it.
1655 test "$program_suffix" != NONE &&
1656 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1657 # Double any \ or $. echo might interpret backslashes.
1658 # By default was `s,x,x', remove it if useless.
1659 cat <<\_ACEOF >conftest.sed
1660 s/[\\$]/&&/g;s/;s,x,x,$//
1661 _ACEOF
1662 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1663 rm conftest.sed
1664
1665
1666
1667 # Get 'install' or 'install-sh' and its variants.
1668 # Find a good install program. We prefer a C program (faster),
1669 # so one script is as good as another. But avoid the broken or
1670 # incompatible versions:
1671 # SysV /etc/install, /usr/sbin/install
1672 # SunOS /usr/etc/install
1673 # IRIX /sbin/install
1674 # AIX /bin/install
1675 # AmigaOS /C/install, which installs bootblocks on floppy discs
1676 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1677 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1678 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1679 # OS/2's system install, which has a completely different semantic
1680 # ./install, which can be erroneously created by make from ./install.sh.
1681 # Reject install programs that cannot install multiple files.
1682 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1683 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1684 if test -z "$INSTALL"; then
1685 if test "${ac_cv_path_install+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 # Account for people who put trailing slashes in PATH elements.
1694 case $as_dir/ in
1695 ./ | .// | /cC/* | \
1696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1697 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1698 /usr/ucb/* ) ;;
1699 *)
1700 # OSF1 and SCO ODT 3.0 have their own names for install.
1701 # Don't use installbsd from OSF since it installs stuff as root
1702 # by default.
1703 for ac_prog in ginstall scoinst install; do
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1706 if test $ac_prog = install &&
1707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1708 # AIX install. It has an incompatible calling convention.
1709 :
1710 elif test $ac_prog = install &&
1711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1712 # program-specific install script used by HP pwplus--don't use.
1713 :
1714 else
1715 rm -rf conftest.one conftest.two conftest.dir
1716 echo one > conftest.one
1717 echo two > conftest.two
1718 mkdir conftest.dir
1719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1720 test -s conftest.one && test -s conftest.two &&
1721 test -s conftest.dir/conftest.one &&
1722 test -s conftest.dir/conftest.two
1723 then
1724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1725 break 3
1726 fi
1727 fi
1728 fi
1729 done
1730 done
1731 ;;
1732 esac
1733 done
1734
1735 rm -rf conftest.one conftest.two conftest.dir
1736
1737 fi
1738 if test "${ac_cv_path_install+set}" = set; then
1739 INSTALL=$ac_cv_path_install
1740 else
1741 # As a last resort, use the slow shell script. Don't cache a
1742 # value for INSTALL within a source directory, because that will
1743 # break other packages using the cache if that directory is
1744 # removed, or if the value is a relative name.
1745 INSTALL=$ac_install_sh
1746 fi
1747 fi
1748 echo "$as_me:$LINENO: result: $INSTALL" >&5
1749 echo "${ECHO_T}$INSTALL" >&6
1750
1751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1752 # It thinks the first close brace ends the variable substitution.
1753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1754
1755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1756
1757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1758
1759 echo "$as_me:$LINENO: checking whether ln works" >&5
1760 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1761 if test "${acx_cv_prog_LN+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764 rm -f conftestdata_t
1765 echo >conftestdata_f
1766 if ln conftestdata_f conftestdata_t 2>/dev/null
1767 then
1768 acx_cv_prog_LN=ln
1769 else
1770 acx_cv_prog_LN=no
1771 fi
1772 rm -f conftestdata_f conftestdata_t
1773
1774 fi
1775 if test $acx_cv_prog_LN = no; then
1776 LN="cp"
1777 echo "$as_me:$LINENO: result: no, using $LN" >&5
1778 echo "${ECHO_T}no, using $LN" >&6
1779 else
1780 LN="$acx_cv_prog_LN"
1781 echo "$as_me:$LINENO: result: yes" >&5
1782 echo "${ECHO_T}yes" >&6
1783 fi
1784
1785 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1786 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1787 LN_S=$as_ln_s
1788 if test "$LN_S" = "ln -s"; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1791 else
1792 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1793 echo "${ECHO_T}no, using $LN_S" >&6
1794 fi
1795
1796
1797 ### we might need to use some other shell than /bin/sh for running subshells
1798 ### If we are on Windows, search for the shell. This will permit people
1799 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1800 ### without also having to set CONFIG_SHELL. This code will work when
1801 ### using bash, which sets OSTYPE.
1802 case "${OSTYPE}" in
1803 *win32*)
1804 if test x${CONFIG_SHELL} = x ; then
1805 if test ! -f /bin/sh ; then
1806 if test x${SHELL} != x && test -f ${SHELL} ; then
1807 CONFIG_SHELL=${SHELL}
1808 export CONFIG_SHELL
1809 else
1810 for prog in sh sh.exe bash bash.exe; do
1811 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1812 for dir in $PATH; do
1813 test -z "$dir" && dir=.
1814 if test -f $dir/$prog; then
1815 CONFIG_SHELL=$dir/$prog
1816 export CONFIG_SHELL
1817 break
1818 fi
1819 done
1820 IFS="$save_ifs"
1821 test -n "${CONFIG_SHELL}" && break
1822 done
1823 fi
1824 fi
1825 fi
1826 ;;
1827 esac
1828
1829 config_shell=${CONFIG_SHELL-/bin/sh}
1830
1831 moveifchange=${srcdir}/move-if-change
1832
1833 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1834
1835 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1836 # a relative path.
1837 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1838 INSTALL="${srcpwd}/install-sh -c"
1839 fi
1840
1841 # Set srcdir to "." if that's what it is.
1842 # This is important for multilib support.
1843 pwd=`${PWDCMD-pwd}`
1844 if test "${pwd}" = "${srcpwd}" ; then
1845 srcdir=.
1846 fi
1847
1848 topsrcdir=$srcpwd
1849
1850 extra_host_args=
1851
1852 ### To add a new directory to the tree, first choose whether it is a target
1853 ### or a host dependent tool. Then put it into the appropriate list
1854 ### (library or tools, host or target), doing a dependency sort.
1855
1856 # Subdirs will be configured in the order listed in build_configdirs,
1857 # configdirs, or target_configdirs; see the serialization section below.
1858
1859 # Dependency sorting is only needed when *configuration* must be done in
1860 # a particular order. In all cases a dependency should be specified in
1861 # the Makefile, whether or not it's implicitly specified here.
1862
1863 # Double entries in build_configdirs, configdirs, or target_configdirs may
1864 # cause circular dependencies and break everything horribly.
1865
1866 # these library is used by various programs built for the build
1867 # environment
1868 #
1869 build_libs="build-libiberty"
1870
1871 # these tools are built for the build environment
1872 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1873
1874 # these libraries are used by various programs built for the host environment
1875 #
1876 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1877
1878 # these tools are built for the host environment
1879 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1880 # know that we are building the simulator.
1881 # binutils, gas and ld appear in that order because it makes sense to run
1882 # "make check" in that particular order.
1883 # If --enable-gold is used, "gold" will replace "ld".
1884 host_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"
1885
1886 # libgcj represents the runtime libraries only used by gcj.
1887 libgcj="target-libffi \
1888 target-zlib \
1889 target-qthreads \
1890 target-libjava"
1891
1892 # these libraries are built for the target environment, and are built after
1893 # the host libraries and the host tools (which may be a cross compiler)
1894 #
1895 target_libraries="target-libgcc \
1896 target-libiberty \
1897 target-libgloss \
1898 target-newlib \
1899 target-libgomp \
1900 target-libstdc++-v3 \
1901 target-libmudflap \
1902 target-libssp \
1903 target-libgfortran \
1904 target-boehm-gc \
1905 ${libgcj} \
1906 target-libobjc \
1907 target-libada"
1908
1909 # these tools are built using the target libraries, and are intended to
1910 # run only in the target environment
1911 #
1912 # note: any program that *uses* libraries that are in the "target_libraries"
1913 # list belongs in this list. those programs are also very likely
1914 # candidates for the "native_only" list which follows
1915 #
1916 target_tools="target-examples target-groff target-gperf target-rda"
1917
1918 ################################################################################
1919
1920 ## All tools belong in one of the four categories, and are assigned above
1921 ## We assign ${configdirs} this way to remove all embedded newlines. This
1922 ## is important because configure will choke if they ever get through.
1923 ## ${configdirs} is directories we build using the host tools.
1924 ## ${target_configdirs} is directories we build using the target tools.
1925 configdirs=`echo ${host_libs} ${host_tools}`
1926 target_configdirs=`echo ${target_libraries} ${target_tools}`
1927 build_configdirs=`echo ${build_libs} ${build_tools}`
1928
1929
1930
1931 ################################################################################
1932
1933 srcname="gnu development package"
1934
1935 # This gets set non-empty for some net releases of packages.
1936 appdirs=""
1937
1938 # Define is_cross_compiler to save on calls to 'test'.
1939 is_cross_compiler=
1940 if test x"${host}" = x"${target}" ; then
1941 is_cross_compiler=no
1942 else
1943 is_cross_compiler=yes
1944 fi
1945
1946 # Find the build and target subdir names.
1947
1948 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1949 # have matching libraries, they should use host libraries: Makefile.tpl
1950 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1951 # However, they still use the build modules, because the corresponding
1952 # host modules (e.g. bison) are only built for the host when bootstrap
1953 # finishes. So:
1954 # - build_subdir is where we find build modules, and never changes.
1955 # - build_libsubdir is where we find build libraries, and can be overridden.
1956
1957 # Prefix 'build-' so this never conflicts with target_subdir.
1958 build_subdir="build-${build_noncanonical}"
1959
1960 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1961 if test "${with_build_libsubdir+set}" = set; then
1962 withval="$with_build_libsubdir"
1963 build_libsubdir="$withval"
1964 else
1965 build_libsubdir="$build_subdir"
1966 fi;
1967 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1968 if ( test $srcdir = . && test -d gcc ) \
1969 || test -d $srcdir/../host-${host_noncanonical}; then
1970 host_subdir="host-${host_noncanonical}"
1971 else
1972 host_subdir=.
1973 fi
1974 # No prefix.
1975 target_subdir=${target_noncanonical}
1976
1977
1978 # Skipdirs are removed silently.
1979 skipdirs=
1980 # Noconfigdirs are removed loudly.
1981 noconfigdirs=""
1982
1983 use_gnu_ld=
1984 # Make sure we don't let GNU ld be added if we didn't want it.
1985 if test x$with_gnu_ld = xno ; then
1986 use_gnu_ld=no
1987 noconfigdirs="$noconfigdirs ld gold"
1988 fi
1989
1990 use_gnu_as=
1991 # Make sure we don't let GNU as be added if we didn't want it.
1992 if test x$with_gnu_as = xno ; then
1993 use_gnu_as=no
1994 noconfigdirs="$noconfigdirs gas"
1995 fi
1996
1997 # some tools are so dependent upon X11 that if we're not building with X,
1998 # it's not even worth trying to configure, much less build, that tool.
1999
2000 case ${with_x} in
2001 yes | "") ;; # the default value for this tree is that X11 is available
2002 no)
2003 skipdirs="${skipdirs} tk itcl libgui"
2004 # We won't be able to build gdbtk without X.
2005 enable_gdbtk=no
2006 ;;
2007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2008 esac
2009
2010 # Some tools are only suitable for building in a "native" situation.
2011 # Remove these if host!=target.
2012 native_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"
2013
2014 # Similarly, some are only suitable for cross toolchains.
2015 # Remove these if host=target.
2016 cross_only="target-libgloss target-newlib target-opcodes"
2017
2018 case $is_cross_compiler in
2019 no) skipdirs="${skipdirs} ${cross_only}" ;;
2020 yes) skipdirs="${skipdirs} ${native_only}" ;;
2021 esac
2022
2023 # If both --with-headers and --with-libs are specified, default to
2024 # --without-newlib.
2025 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2026 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2027 if test x"${with_newlib}" = x ; then
2028 with_newlib=no
2029 fi
2030 fi
2031
2032 # Recognize --with-newlib/--without-newlib.
2033 case ${with_newlib} in
2034 no) skipdirs="${skipdirs} target-newlib" ;;
2035 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2036 esac
2037
2038 # Handle --enable-gold.
2039
2040 # Check whether --enable-gold or --disable-gold was given.
2041 if test "${enable_gold+set}" = set; then
2042 enableval="$enable_gold"
2043 ENABLE_GOLD=$enableval
2044 else
2045 ENABLE_GOLD=no
2046 fi;
2047 if test "${ENABLE_GOLD}" = "yes"; then
2048 # Check for ELF target.
2049 is_elf=no
2050 case "${target}" in
2051 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2052 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2053 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2054 case "${target}" in
2055 *-*-linux*aout* | *-*-linux*oldld*)
2056 ;;
2057 *)
2058 is_elf=yes
2059 ;;
2060 esac
2061 esac
2062
2063 if test "$is_elf" = "yes"; then
2064 # Check for target supported by gold.
2065 case "${target}" in
2066 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
2067 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2068 ;;
2069 esac
2070 fi
2071 fi
2072
2073 # Configure extra directories which are host specific
2074
2075 case "${host}" in
2076 *-cygwin*)
2077 configdirs="$configdirs libtermcap" ;;
2078 esac
2079
2080 # A target can indicate whether a language isn't supported for some reason.
2081 # Only spaces may be used in this macro; not newlines or tabs.
2082 unsupported_languages=
2083
2084 # Remove more programs from consideration, based on the host or
2085 # target this usually means that a port of the program doesn't
2086 # exist yet.
2087
2088 case "${host}" in
2089 hppa*64*-*-*)
2090 noconfigdirs="$noconfigdirs byacc"
2091 ;;
2092 i[3456789]86-*-vsta)
2093 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2094 ;;
2095 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2096 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2097 ;;
2098 x86_64-*-mingw*)
2099 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2100 ;;
2101 i[3456789]86-*-mingw32*)
2102 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2103 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2104 ;;
2105 i[3456789]86-*-beos*)
2106 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2107 ;;
2108 *-*-cygwin*)
2109 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2110 ;;
2111 *-*-netbsd*)
2112 noconfigdirs="$noconfigdirs rcs"
2113 ;;
2114 ppc*-*-pe)
2115 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2116 ;;
2117 powerpc-*-beos*)
2118 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2119 ;;
2120 esac
2121
2122
2123 # Check whether --enable-libada or --disable-libada was given.
2124 if test "${enable_libada+set}" = set; then
2125 enableval="$enable_libada"
2126 ENABLE_LIBADA=$enableval
2127 else
2128 ENABLE_LIBADA=yes
2129 fi;
2130 if test "${ENABLE_LIBADA}" != "yes" ; then
2131 noconfigdirs="$noconfigdirs gnattools"
2132 fi
2133
2134 # Check whether --enable-libssp or --disable-libssp was given.
2135 if test "${enable_libssp+set}" = set; then
2136 enableval="$enable_libssp"
2137 ENABLE_LIBSSP=$enableval
2138 else
2139 ENABLE_LIBSSP=yes
2140 fi;
2141
2142 # Save it here so that, even in case of --enable-libgcj, if the Java
2143 # front-end isn't enabled, we still get libgcj disabled.
2144 libgcj_saved=$libgcj
2145 case $enable_libgcj in
2146 yes)
2147 # If we reset it here, it won't get added to noconfigdirs in the
2148 # target-specific build rules, so it will be forcibly enabled
2149 # (unless the Java language itself isn't enabled).
2150 libgcj=
2151 ;;
2152 no)
2153 # Make sure we get it printed in the list of not supported target libs.
2154 noconfigdirs="$noconfigdirs ${libgcj}"
2155 ;;
2156 esac
2157
2158
2159 # Disable libmudflap on some systems.
2160 if test x$enable_libmudflap = x ; then
2161 case "${target}" in
2162 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
2163 # Enable libmudflap by default in GNU and friends.
2164 ;;
2165 *-*-freebsd*)
2166 # Enable libmudflap by default in FreeBSD.
2167 ;;
2168 *)
2169 # Disable it by default everywhere else.
2170 noconfigdirs="$noconfigdirs target-libmudflap"
2171 ;;
2172 esac
2173 fi
2174
2175 # Disable libgomp on non POSIX hosted systems.
2176 if test x$enable_libgomp = x ; then
2177 # Enable libgomp by default on hosted POSIX systems.
2178 case "${target}" in
2179 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2180 ;;
2181 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2182 ;;
2183 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2184 ;;
2185 *-*-darwin* | *-*-aix*)
2186 ;;
2187 *)
2188 noconfigdirs="$noconfigdirs target-libgomp"
2189 ;;
2190 esac
2191 fi
2192
2193 # Default libgloss CPU subdirectory.
2194 libgloss_dir="$target_cpu"
2195
2196 case "${target}" in
2197 *-*-chorusos)
2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2199 ;;
2200 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
2201 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2202 noconfigdirs="$noconfigdirs sim target-rda"
2203 ;;
2204 *-*-darwin*)
2205 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2206 noconfigdirs="$noconfigdirs sim target-rda"
2207 noconfigdirs="$noconfigdirs ${libgcj}"
2208 ;;
2209 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2210 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2211 ;;
2212 *-*-freebsd*)
2213 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2214 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2215 && test -f /usr/local/include/gmp.h; then
2216 with_gmp=/usr/local
2217 fi
2218
2219 # Skip some stuff that's unsupported on some FreeBSD configurations.
2220 case "${target}" in
2221 i*86-*-*) ;;
2222 alpha*-*-*) ;;
2223 *)
2224 noconfigdirs="$noconfigdirs ${libgcj}"
2225 ;;
2226 esac
2227 ;;
2228 *-*-kaos*)
2229 # Remove unsupported stuff on all kaOS configurations.
2230 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2231 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2232 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2233 noconfigdirs="$noconfigdirs target-libgloss"
2234 ;;
2235 *-*-netbsd*)
2236 # Skip some stuff on all NetBSD configurations.
2237 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2238
2239 # Skip some stuff that's unsupported on some NetBSD configurations.
2240 case "${target}" in
2241 i*86-*-netbsdelf*) ;;
2242 arm*-*-netbsdelf*) ;;
2243 *)
2244 noconfigdirs="$noconfigdirs ${libgcj}"
2245 ;;
2246 esac
2247 ;;
2248 *-*-netware*)
2249 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2250 ;;
2251 *-*-rtems*)
2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2253 ;;
2254 # The tpf target doesn't support gdb yet.
2255 *-*-tpf*)
2256 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2257 ;;
2258 *-*-uclinux*)
2259 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2260 ;;
2261 *-*-vxworks*)
2262 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2263 ;;
2264 alpha*-dec-osf*)
2265 # ld works, but does not support shared libraries.
2266 # newlib is not 64 bit ready. I'm not sure about fileutils.
2267 # gas doesn't generate exception information.
2268 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2269 ;;
2270 alpha*-*-*vms*)
2271 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2272 ;;
2273 alpha*-*-linux*)
2274 # newlib is not 64 bit ready
2275 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2276 ;;
2277 alpha*-*-*)
2278 # newlib is not 64 bit ready
2279 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2280 ;;
2281 am33_2.0-*-linux*)
2282 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2283 ;;
2284 sh-*-linux*)
2285 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2286 ;;
2287 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2288 noconfigdirs="$noconfigdirs ${libgcj}"
2289 noconfigdirs="$noconfigdirs target-examples"
2290 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2291 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2292 noconfigdirs="$noconfigdirs expect dejagnu"
2293 # the C++ libraries don't build on top of CE's C libraries
2294 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2295 noconfigdirs="$noconfigdirs target-newlib"
2296 case "${host}" in
2297 *-*-cygwin*) ;; # keep gdb and readline
2298 *) noconfigdirs="$noconfigdirs gdb readline"
2299 ;;
2300 esac
2301 libgloss_dir=wince
2302 ;;
2303 arc-*-*)
2304 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2305 ;;
2306 arm-semi-aof )
2307 ;;
2308 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2309 noconfigdirs="$noconfigdirs ${libgcj}"
2310 libgloss_dir=arm
2311 ;;
2312 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2313 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2314 libgloss_dir=arm
2315 ;;
2316 arm*-*-linux-gnueabi)
2317 noconfigdirs="$noconfigdirs target-qthreads"
2318 case ${with_newlib} in
2319 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2320 esac
2321 libgloss_dir=arm
2322 ;;
2323 arm*-*-symbianelf*)
2324 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2325 libgloss_dir=arm
2326 ;;
2327 arm-*-pe*)
2328 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2329 ;;
2330 thumb-*-coff)
2331 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2332 ;;
2333 thumb-*-elf)
2334 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2335 ;;
2336 thumb-*-pe)
2337 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2338 ;;
2339 arm-*-riscix*)
2340 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2341 ;;
2342 avr-*-*)
2343 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
2344 ;;
2345 bfin-*-*)
2346 noconfigdirs="$noconfigdirs gdb"
2347 if test x${is_cross_compiler} != xno ; then
2348 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2349 fi
2350 ;;
2351 c4x-*-* | tic4x-*-*)
2352 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2353 ;;
2354 c54x*-*-* | tic54x-*-*)
2355 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2356 ;;
2357 cr16-*-*)
2358 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2359 ;;
2360 cris-*-* | crisv32-*-*)
2361 unsupported_languages="$unsupported_languages java"
2362 case "${target}" in
2363 *-*-aout)
2364 unsupported_languages="$unsupported_languages fortran"
2365 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2366 *-*-elf)
2367 noconfigdirs="$noconfigdirs target-boehm-gc";;
2368 *-*-linux*)
2369 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2370 *)
2371 unsupported_languages="$unsupported_languages fortran"
2372 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2373 esac
2374 libgloss_dir=cris
2375 ;;
2376 crx-*-*)
2377 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2378 ;;
2379 d10v-*-*)
2380 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2381 ;;
2382 d30v-*-*)
2383 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2384 ;;
2385 ep9312-*-elf | ep9312-*-coff)
2386 libgloss_dir=arm
2387 ;;
2388 fr30-*-elf*)
2389 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2390 ;;
2391 frv-*-*)
2392 noconfigdirs="$noconfigdirs ${libgcj}"
2393 ;;
2394 h8300*-*-*)
2395 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2396 ;;
2397 h8500-*-*)
2398 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2399 ;;
2400 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2401 ;;
2402 hppa*64*-*-linux* | parisc*64*-*-linux*)
2403 # In this case, it's because the hppa64-linux target is for
2404 # the kernel only at this point and has no libc, and thus no
2405 # headers, crt*.o, etc., all of which are needed by these.
2406 noconfigdirs="$noconfigdirs target-zlib"
2407 ;;
2408 parisc*-*-linux* | hppa*-*-linux*)
2409 ;;
2410 hppa*-*-*elf* | \
2411 hppa*-*-lites* | \
2412 hppa*-*-openbsd* | \
2413 hppa*64*-*-*)
2414 noconfigdirs="$noconfigdirs ${libgcj}"
2415 ;;
2416 hppa*-hp-hpux11*)
2417 noconfigdirs="$noconfigdirs ld shellutils"
2418 ;;
2419 hppa*-*-pro*)
2420 libgloss_dir=pa
2421 ;;
2422 hppa*-*-*)
2423 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2424 # build on HP-UX 10.20.
2425 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2426 ;;
2427 i960-*-*)
2428 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2429 ;;
2430 ia64*-*-elf*)
2431 # No gdb support yet.
2432 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2433 ;;
2434 ia64*-**-hpux*)
2435 # No gdb or ld support yet.
2436 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2437 ;;
2438 i370-*-opened*)
2439 ;;
2440 i[3456789]86-*-coff | i[3456789]86-*-elf)
2441 noconfigdirs="$noconfigdirs ${libgcj}"
2442 libgloss_dir=i386
2443 ;;
2444 i[3456789]86-*-linux*)
2445 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2446 # not build java stuff by default.
2447 case "${target}" in
2448 *-*-*libc1*)
2449 noconfigdirs="$noconfigdirs ${libgcj}";;
2450 esac
2451
2452 # This section makes it possible to build newlib natively on linux.
2453 # If we are using a cross compiler then don't configure newlib.
2454 if test x${is_cross_compiler} != xno ; then
2455 noconfigdirs="$noconfigdirs target-newlib"
2456 fi
2457 noconfigdirs="$noconfigdirs target-libgloss"
2458 # If we are not using a cross compiler, do configure newlib.
2459 # Note however, that newlib will only be configured in this situation
2460 # if the --with-newlib option has been given, because otherwise
2461 # 'target-newlib' will appear in skipdirs.
2462 ;;
2463 i[3456789]86-*-mingw32*)
2464 target_configdirs="$target_configdirs target-winsup"
2465 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2466 ;;
2467 x86_64-*-mingw*)
2468 target_configdirs="$target_configdirs target-winsup"
2469 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2470 ;;
2471 *-*-cygwin*)
2472 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2473 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2474 # always build newlib if winsup directory is present.
2475 if test -d "$srcdir/winsup/cygwin"; then
2476 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2477 elif test -d "$srcdir/newlib"; then
2478 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2479 fi
2480 ;;
2481 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2482 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2483 ;;
2484 i[3456789]86-*-pe)
2485 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2486 ;;
2487 i[3456789]86-*-sco3.2v5*)
2488 # The linker does not yet know about weak symbols in COFF,
2489 # and is not configured to handle mixed ELF and COFF.
2490 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2491 ;;
2492 i[3456789]86-*-sco*)
2493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2494 ;;
2495 i[3456789]86-*-solaris2*)
2496 noconfigdirs="$noconfigdirs target-libgloss"
2497 ;;
2498 i[3456789]86-*-sysv4*)
2499 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2500 ;;
2501 i[3456789]86-*-beos*)
2502 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2503 ;;
2504 i[3456789]86-*-rdos*)
2505 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2506 ;;
2507 m32r-*-*)
2508 noconfigdirs="$noconfigdirs ${libgcj}"
2509 ;;
2510 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2511 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2512 libgloss_dir=m68hc11
2513 ;;
2514 m68k-*-elf*)
2515 noconfigdirs="$noconfigdirs ${libgcj}"
2516 ;;
2517 m68k-*-coff*)
2518 noconfigdirs="$noconfigdirs ${libgcj}"
2519 ;;
2520 m68*-*-* | fido-*-*)
2521 libgloss_dir=m68k
2522 ;;
2523 mcore-*-pe*)
2524 # The EPOC C++ environment does not support exceptions or rtti,
2525 # and so building libstdc++-v3 tends not to always work.
2526 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2527 ;;
2528 mmix-*-*)
2529 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2530 unsupported_languages="$unsupported_languages fortran java"
2531 ;;
2532 mn10200-*-*)
2533 noconfigdirs="$noconfigdirs ${libgcj}"
2534 ;;
2535 mn10300-*-*)
2536 noconfigdirs="$noconfigdirs ${libgcj}"
2537 ;;
2538 mt-*-*)
2539 noconfigdirs="$noconfigdirs sim"
2540 ;;
2541 powerpc-*-aix*)
2542 # copied from rs6000-*-* entry
2543 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2544 ;;
2545 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2546 target_configdirs="$target_configdirs target-winsup"
2547 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2548 # always build newlib.
2549 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2550 ;;
2551 # This is temporary until we can link against shared libraries
2552 powerpcle-*-solaris*)
2553 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2554 libgloss_dir=rs6000
2555 ;;
2556 powerpc-*-beos*)
2557 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2558 ;;
2559 powerpc-*-eabi)
2560 noconfigdirs="$noconfigdirs ${libgcj}"
2561 libgloss_dir=rs6000
2562 ;;
2563 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2564 libgloss_dir=rs6000
2565 ;;
2566 rs6000-*-lynxos*)
2567 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2568 ;;
2569 rs6000-*-aix*)
2570 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2571 ;;
2572 rs6000-*-*)
2573 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2574 ;;
2575 m68k-apollo-*)
2576 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2577 ;;
2578 mips*-sde-elf*)
2579 skipdirs="$skipdirs target-libiberty"
2580 noconfigdirs="$noconfigdirs ${libgcj}"
2581 if test x$with_newlib = xyes; then
2582 noconfigdirs="$noconfigdirs gprof"
2583 fi
2584 libgloss_dir=mips
2585 ;;
2586 mips*-*-irix5*)
2587 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2588 ;;
2589 mips*-*-irix6*)
2590 # Linking libjava exceeds command-line length limits on at least
2591 # IRIX 6.2, but not on IRIX 6.5.
2592 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2593 # <oldham@codesourcery.com>
2594 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2595 ;;
2596 mips*-*-bsd*)
2597 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2598 ;;
2599 mips*-*-linux*)
2600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2601 ;;
2602 mips*-*-*)
2603 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2604 libgloss_dir=mips
2605 ;;
2606 romp-*-*)
2607 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2608 ;;
2609 sh-*-* | sh64-*-*)
2610 case "${host}" in
2611 i[3456789]86-*-vsta) ;; # don't add gprof back in
2612 i[3456789]86-*-go32*) ;; # don't add gprof back in
2613 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2614 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2615 esac
2616 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2617 ;;
2618 sparclet-*-aout* | sparc86x-*-*)
2619 libgloss_dir=sparc
2620 ;;
2621 sparc-*-elf*)
2622 noconfigdirs="$noconfigdirs ${libgcj}"
2623 ;;
2624 sparc64-*-elf*)
2625 noconfigdirs="$noconfigdirs ${libgcj}"
2626 libgloss_dir=sparc
2627 ;;
2628 sparclite-*-*)
2629 noconfigdirs="$noconfigdirs ${libgcj}"
2630 libgloss_dir=sparc
2631 ;;
2632 sparc-*-sunos4*)
2633 noconfigdirs="$noconfigdirs ${libgcj}"
2634 if test x${is_cross_compiler} != xno ; then
2635 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2636 else
2637 use_gnu_ld=no
2638 fi
2639 ;;
2640 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2641 noconfigdirs="$noconfigdirs ${libgcj}"
2642 ;;
2643 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2644 ;;
2645 spu-*-*)
2646 skipdirs="target-libssp"
2647 ;;
2648 v810-*-*)
2649 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2650 ;;
2651 v850-*-*)
2652 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2653 ;;
2654 v850e-*-*)
2655 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2656 ;;
2657 v850ea-*-*)
2658 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2659 ;;
2660 vax-*-vms)
2661 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2662 ;;
2663 vax-*-*)
2664 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2665 ;;
2666 xtensa*-*-*)
2667 noconfigdirs="$noconfigdirs ${libgcj}"
2668 ;;
2669 ip2k-*-*)
2670 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2671 ;;
2672 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2674 ;;
2675 *-*-lynxos*)
2676 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2677 ;;
2678 *-*-*)
2679 noconfigdirs="$noconfigdirs ${libgcj}"
2680 ;;
2681 esac
2682
2683 # If we aren't building newlib, then don't build libgloss, since libgloss
2684 # depends upon some newlib header files.
2685 case "${noconfigdirs}" in
2686 *target-libgloss*) ;;
2687 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2688 esac
2689
2690 # Work in distributions that contain no compiler tools, like Autoconf.
2691 tentative_cc=""
2692 host_makefile_frag=/dev/null
2693 if test -d ${srcdir}/config ; then
2694 case "${host}" in
2695 m68k-hp-hpux*)
2696 # Avoid "too much defining" errors from HPUX compiler.
2697 tentative_cc="cc -Wp,-H256000"
2698 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2699 # If it's HP/UX ar, this should be harmless.
2700 RANLIB="ar ts"
2701 ;;
2702 m68k-apollo-sysv*)
2703 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2704 ;;
2705 m68k-apollo-bsd*)
2706 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2707 # chokes on bfd, the compiler won't let you assign integers to enums, and
2708 # other problems. Defining CC to gcc is a questionable way to say "don't use
2709 # the apollo compiler" (the preferred version of GCC could be called cc,
2710 # or whatever), but I'm not sure leaving CC as cc is any better...
2711 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2712 # Used to have BISON=yacc.
2713 tentative_cc=gcc
2714 ;;
2715 m88k-dg-dgux*)
2716 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2717 ;;
2718 m88k-harris-cxux*)
2719 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2720 tentative_cc="cc -Xa"
2721 host_makefile_frag="config/mh-cxux"
2722 ;;
2723 m88k-motorola-sysv*)
2724 ;;
2725 mips*-dec-ultrix*)
2726 tentative_cc="cc -Wf,-XNg1000"
2727 host_makefile_frag="config/mh-decstation"
2728 ;;
2729 mips*-nec-sysv4*)
2730 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2731 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2732 host_makefile_frag="config/mh-necv4"
2733 ;;
2734 mips*-sgi-irix4*)
2735 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2736 # environment. Also bump switch table size so that cp-parse will
2737 # compile. Bump string length limit so linker builds.
2738 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2739 ;;
2740 mips*-*-sysv4*)
2741 host_makefile_frag="config/mh-sysv4"
2742 ;;
2743 mips*-*-sysv*)
2744 # This is for a MIPS running RISC/os 4.52C.
2745
2746 # This is needed for GDB, but needs to be in the top-level make because
2747 # if a library is compiled with the bsd headers and gets linked with the
2748 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2749 # a different size).
2750 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2751 # known except to select the sysv environment. Could we use /proc instead?
2752 # These "sysv environments" and "bsd environments" often end up being a pain.
2753 #
2754 # This is not part of CFLAGS because perhaps not all C compilers have this
2755 # option.
2756 tentative_cc="cc -systype sysv"
2757 ;;
2758 i370-ibm-opened*)
2759 tentative_cc="c89"
2760 ;;
2761 i[3456789]86-*-sysv5*)
2762 host_makefile_frag="config/mh-sysv5"
2763 ;;
2764 i[3456789]86-*-dgux*)
2765 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2766 host_makefile_frag="config/mh-dgux386"
2767 ;;
2768 i[3456789]86-ncr-sysv4.3*)
2769 # The MetaWare compiler will generate a copyright message unless you
2770 # turn it off by adding the -Hnocopyr flag.
2771 tentative_cc="cc -Hnocopyr"
2772 ;;
2773 i[3456789]86-ncr-sysv4*)
2774 # for an NCR 3000 (i486/SVR4) system.
2775 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2776 # This compiler not only emits obnoxious copyright messages every time
2777 # you run it, but it chokes and dies on a whole bunch of GNU source
2778 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2779 tentative_cc="/usr/ccs/ATT/cc"
2780 host_makefile_frag="config/mh-ncr3000"
2781 ;;
2782 i[3456789]86-*-sco3.2v5*)
2783 ;;
2784 i[3456789]86-*-sco*)
2785 # The native C compiler botches some simple uses of const. Unfortunately,
2786 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2787 tentative_cc="cc -Dconst="
2788 host_makefile_frag="config/mh-sco"
2789 ;;
2790 i[3456789]86-*-udk*)
2791 host_makefile_frag="config/mh-sysv5"
2792 ;;
2793 i[3456789]86-*-solaris2*)
2794 host_makefile_frag="config/mh-sysv4"
2795 ;;
2796 i[3456789]86-*-msdosdjgpp*)
2797 host_makefile_frag="config/mh-djgpp"
2798 ;;
2799 *-cygwin*)
2800
2801 echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2802 echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2803 echo a >cygwin-cat-check
2804 if test `cat cygwin-cat-check` == a ; then
2805 rm cygwin-cat-check
2806 echo "$as_me:$LINENO: result: yes" >&5
2807 echo "${ECHO_T}yes" >&6
2808 else
2809 rm cygwin-cat-check
2810 echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2812 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2813 Please either mount the build directory in binary mode or run the following
2814 commands before running any configure script:
2815 set -o igncr
2816 export SHELLOPTS
2817 " >&5
2818 echo "$as_me: error: The cat command does not ignore carriage return characters.
2819 Please either mount the build directory in binary mode or run the following
2820 commands before running any configure script:
2821 set -o igncr
2822 export SHELLOPTS
2823 " >&2;}
2824 { (exit 1); exit 1; }; }
2825 fi
2826
2827 host_makefile_frag="config/mh-cygwin"
2828 ;;
2829 *-mingw*)
2830 host_makefile_frag="config/mh-mingw"
2831 ;;
2832 *-interix*)
2833 host_makefile_frag="config/mh-interix"
2834 ;;
2835 vax-*-ultrix2*)
2836 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2837 tentative_cc=gcc
2838 ;;
2839 *-*-solaris2*)
2840 host_makefile_frag="config/mh-solaris"
2841 ;;
2842 m68k-sun-sunos*)
2843 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2844 # without overflowing the jump tables (-J says to use a 32 bit table)
2845 tentative_cc="cc -J"
2846 ;;
2847 hppa*-hp-hpux10*)
2848 tentative_cc="cc -Wp,-H256000"
2849 host_makefile_frag="config/mh-pa-hpux10"
2850 ;;
2851 hppa*-hp-hpux* | hppa*-*-hiux*)
2852 tentative_cc="cc -Wp,-H256000"
2853 host_makefile_frag="config/mh-pa"
2854 ;;
2855 hppa*-*)
2856 host_makefile_frag="config/mh-pa"
2857 ;;
2858 *-hp-hpux* | *-*-hiux*)
2859 tentative_cc="cc -Wp,-H256000"
2860 ;;
2861 rs6000-*-lynxos*)
2862 # /bin/cc is less than useful for our purposes. Always use GCC
2863 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2864 host_makefile_frag="config/mh-lynxrs6k"
2865 ;;
2866 powerpc-*-darwin*)
2867 host_makefile_frag="config/mh-ppc-darwin"
2868 ;;
2869 powerpc-*-aix*)
2870 host_makefile_frag="config/mh-ppc-aix"
2871 ;;
2872 rs6000-*-aix*)
2873 host_makefile_frag="config/mh-ppc-aix"
2874 ;;
2875 *-*-lynxos*)
2876 # /bin/cc is less than useful for our purposes. Always use GCC
2877 tentative_cc="/bin/gcc"
2878 ;;
2879 *-*-sysv4*)
2880 host_makefile_frag="config/mh-sysv4"
2881 ;;
2882 # This is placed last to prevent interfering with the cases above.
2883 i[3456789]86-*-*)
2884 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2885 host_makefile_frag="config/mh-x86omitfp"
2886 ;;
2887 esac
2888 fi
2889
2890 # If we aren't going to be using gcc, see if we can extract a definition
2891 # of CC from the fragment.
2892 # Actually, use the 'pre-extracted' version above.
2893 if test -z "${CC}" && test "${build}" = "${host}" ; then
2894 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2895 found=
2896 for dir in $PATH; do
2897 test -z "$dir" && dir=.
2898 if test -f $dir/gcc; then
2899 found=yes
2900 break
2901 fi
2902 done
2903 IFS="$save_ifs"
2904 if test -z "${found}" && test -n "${tentative_cc}" ; then
2905 CC=$tentative_cc
2906 fi
2907 fi
2908
2909 if test "${build}" != "${host}" ; then
2910 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2911 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2912 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2913 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2914 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2915 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2916 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2917 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2918 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2919 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2920 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2921 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2922 else
2923 AR_FOR_BUILD="\$(AR)"
2924 AS_FOR_BUILD="\$(AS)"
2925 CC_FOR_BUILD="\$(CC)"
2926 CXX_FOR_BUILD="\$(CXX)"
2927 GCJ_FOR_BUILD="\$(GCJ)"
2928 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2929 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2930 LD_FOR_BUILD="\$(LD)"
2931 NM_FOR_BUILD="\$(NM)"
2932 RANLIB_FOR_BUILD="\$(RANLIB)"
2933 WINDRES_FOR_BUILD="\$(WINDRES)"
2934 WINDMC_FOR_BUILD="\$(WINDMC)"
2935 fi
2936
2937 ac_ext=c
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 if test -n "$ac_tool_prefix"; then
2943 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2944 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2945 echo "$as_me:$LINENO: checking for $ac_word" >&5
2946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2947 if test "${ac_cv_prog_CC+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 echo "$as_me:$LINENO: result: $CC" >&5
2972 echo "${ECHO_T}$CC" >&6
2973 else
2974 echo "$as_me:$LINENO: result: no" >&5
2975 echo "${ECHO_T}no" >&6
2976 fi
2977
2978 fi
2979 if test -z "$ac_cv_prog_CC"; then
2980 ac_ct_CC=$CC
2981 # Extract the first word of "gcc", so it can be a program name with args.
2982 set dummy gcc; ac_word=$2
2983 echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_ac_ct_CC="gcc"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002 done
3003 done
3004
3005 fi
3006 fi
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3010 echo "${ECHO_T}$ac_ct_CC" >&6
3011 else
3012 echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3014 fi
3015
3016 CC=$ac_ct_CC
3017 else
3018 CC="$ac_cv_prog_CC"
3019 fi
3020
3021 if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}cc; ac_word=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_prog_CC+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_CC="${ac_tool_prefix}cc"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044 done
3045 done
3046
3047 fi
3048 fi
3049 CC=$ac_cv_prog_CC
3050 if test -n "$CC"; then
3051 echo "$as_me:$LINENO: result: $CC" >&5
3052 echo "${ECHO_T}$CC" >&6
3053 else
3054 echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3056 fi
3057
3058 fi
3059 if test -z "$ac_cv_prog_CC"; then
3060 ac_ct_CC=$CC
3061 # Extract the first word of "cc", so it can be a program name with args.
3062 set dummy cc; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 if test -n "$ac_ct_CC"; then
3069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_ac_ct_CC="cc"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084
3085 fi
3086 fi
3087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088 if test -n "$ac_ct_CC"; then
3089 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3090 echo "${ECHO_T}$ac_ct_CC" >&6
3091 else
3092 echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3094 fi
3095
3096 CC=$ac_ct_CC
3097 else
3098 CC="$ac_cv_prog_CC"
3099 fi
3100
3101 fi
3102 if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc; ac_word=$2
3105 echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 ac_prog_rejected=no
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected=yes
3123 continue
3124 fi
3125 ac_cv_prog_CC="cc"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129 done
3130 done
3131
3132 if test $ac_prog_rejected = yes; then
3133 # We found a bogon in the path, so make sure we never use it.
3134 set dummy $ac_cv_prog_CC
3135 shift
3136 if test $# != 0; then
3137 # We chose a different compiler from the bogus one.
3138 # However, it has the same basename, so the bogon will be chosen
3139 # first if we set CC to just the basename; use the full file name.
3140 shift
3141 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3142 fi
3143 fi
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148 echo "$as_me:$LINENO: result: $CC" >&5
3149 echo "${ECHO_T}$CC" >&6
3150 else
3151 echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6
3153 fi
3154
3155 fi
3156 if test -z "$CC"; then
3157 if test -n "$ac_tool_prefix"; then
3158 for ac_prog in cl
3159 do
3160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_CC+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181 done
3182 done
3183
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 echo "$as_me:$LINENO: result: $CC" >&5
3189 echo "${ECHO_T}$CC" >&6
3190 else
3191 echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3193 fi
3194
3195 test -n "$CC" && break
3196 done
3197 fi
3198 if test -z "$CC"; then
3199 ac_ct_CC=$CC
3200 for ac_prog in cl
3201 do
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203 set dummy $ac_prog; ac_word=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 if test -n "$ac_ct_CC"; then
3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_ac_ct_CC="$ac_prog"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225
3226 fi
3227 fi
3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229 if test -n "$ac_ct_CC"; then
3230 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3231 echo "${ECHO_T}$ac_ct_CC" >&6
3232 else
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3235 fi
3236
3237 test -n "$ac_ct_CC" && break
3238 done
3239
3240 CC=$ac_ct_CC
3241 fi
3242
3243 fi
3244
3245
3246 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3247 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3249 See \`config.log' for more details." >&5
3250 echo "$as_me: error: no acceptable C compiler found in \$PATH
3251 See \`config.log' for more details." >&2;}
3252 { (exit 1); exit 1; }; }; }
3253
3254 # Provide some information about the compiler.
3255 echo "$as_me:$LINENO:" \
3256 "checking for C compiler version" >&5
3257 ac_compiler=`set X $ac_compile; echo $2`
3258 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3259 (eval $ac_compiler --version </dev/null >&5) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3264 (eval $ac_compiler -v </dev/null >&5) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }
3268 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3269 (eval $ac_compiler -V </dev/null >&5) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3273
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280
3281 int
3282 main ()
3283 {
3284
3285 ;
3286 return 0;
3287 }
3288 _ACEOF
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3293 # of exeext.
3294 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3295 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3296 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3298 (eval $ac_link_default) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; then
3302 # Find the output, starting from the most likely. This scheme is
3303 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3304 # resort.
3305
3306 # Be careful to initialize this variable, since it used to be cached.
3307 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3308 ac_cv_exeext=
3309 # b.out is created by i960 compilers.
3310 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3311 do
3312 test -f "$ac_file" || continue
3313 case $ac_file in
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3315 ;;
3316 conftest.$ac_ext )
3317 # This is the source file.
3318 ;;
3319 [ab].out )
3320 # We found the default executable, but exeext='' is most
3321 # certainly right.
3322 break;;
3323 *.* )
3324 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3325 # FIXME: I believe we export ac_cv_exeext for Libtool,
3326 # but it would be cool to find out if it's true. Does anybody
3327 # maintain Libtool? --akim.
3328 export ac_cv_exeext
3329 break;;
3330 * )
3331 break;;
3332 esac
3333 done
3334 else
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3339 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3341 See \`config.log' for more details." >&5
3342 echo "$as_me: error: C compiler cannot create executables
3343 See \`config.log' for more details." >&2;}
3344 { (exit 77); exit 77; }; }; }
3345 fi
3346
3347 ac_exeext=$ac_cv_exeext
3348 echo "$as_me:$LINENO: result: $ac_file" >&5
3349 echo "${ECHO_T}$ac_file" >&6
3350
3351 # Check the compiler produces executables we can run. If not, either
3352 # the compiler is broken, or we cross compile.
3353 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3354 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3355 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3356 # If not cross compiling, check that we can run a simple program.
3357 if test "$cross_compiling" != yes; then
3358 if { ac_try='./$ac_file'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 cross_compiling=no
3365 else
3366 if test "$cross_compiling" = maybe; then
3367 cross_compiling=yes
3368 else
3369 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3370 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3372 If you meant to cross compile, use \`--host'.
3373 See \`config.log' for more details." >&5
3374 echo "$as_me: error: cannot run C compiled programs.
3375 If you meant to cross compile, use \`--host'.
3376 See \`config.log' for more details." >&2;}
3377 { (exit 1); exit 1; }; }; }
3378 fi
3379 fi
3380 fi
3381 echo "$as_me:$LINENO: result: yes" >&5
3382 echo "${ECHO_T}yes" >&6
3383
3384 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3385 ac_clean_files=$ac_clean_files_save
3386 # Check the compiler produces executables we can run. If not, either
3387 # the compiler is broken, or we cross compile.
3388 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3389 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3390 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3391 echo "${ECHO_T}$cross_compiling" >&6
3392
3393 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3394 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3396 (eval $ac_link) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; then
3400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3402 # work properly (i.e., refer to `conftest.exe'), while it won't with
3403 # `rm'.
3404 for ac_file in conftest.exe conftest conftest.*; do
3405 test -f "$ac_file" || continue
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 export ac_cv_exeext
3410 break;;
3411 * ) break;;
3412 esac
3413 done
3414 else
3415 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3416 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3418 See \`config.log' for more details." >&5
3419 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3420 See \`config.log' for more details." >&2;}
3421 { (exit 1); exit 1; }; }; }
3422 fi
3423
3424 rm -f conftest$ac_cv_exeext
3425 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3426 echo "${ECHO_T}$ac_cv_exeext" >&6
3427
3428 rm -f conftest.$ac_ext
3429 EXEEXT=$ac_cv_exeext
3430 ac_exeext=$EXEEXT
3431 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3432 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3433 if test "${ac_cv_objext+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442
3443 int
3444 main ()
3445 {
3446
3447 ;
3448 return 0;
3449 }
3450 _ACEOF
3451 rm -f conftest.o conftest.obj
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; then
3457 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3458 case $ac_file in
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3460 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3461 break;;
3462 esac
3463 done
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3469 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3471 See \`config.log' for more details." >&5
3472 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3473 See \`config.log' for more details." >&2;}
3474 { (exit 1); exit 1; }; }; }
3475 fi
3476
3477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3478 fi
3479 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3480 echo "${ECHO_T}$ac_cv_objext" >&6
3481 OBJEXT=$ac_cv_objext
3482 ac_objext=$OBJEXT
3483 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3484 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3485 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494
3495 int
3496 main ()
3497 {
3498 #ifndef __GNUC__
3499 choke me
3500 #endif
3501
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_compiler_gnu=yes
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 ac_compiler_gnu=no
3534 fi
3535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537
3538 fi
3539 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3540 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3541 GCC=`test $ac_compiler_gnu = yes && echo yes`
3542 ac_test_CFLAGS=${CFLAGS+set}
3543 ac_save_CFLAGS=$CFLAGS
3544 CFLAGS="-g"
3545 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3546 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3547 if test "${ac_cv_prog_cc_g+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550 cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556
3557 int
3558 main ()
3559 {
3560
3561 ;
3562 return 0;
3563 }
3564 _ACEOF
3565 rm -f conftest.$ac_objext
3566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567 (eval $ac_compile) 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try='test -z "$ac_c_werror_flag"
3575 || test ! -s conftest.err'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; } &&
3581 { ac_try='test -s conftest.$ac_objext'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; }; then
3587 ac_cv_prog_cc_g=yes
3588 else
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 ac_cv_prog_cc_g=no
3593 fi
3594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595 fi
3596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3597 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3598 if test "$ac_test_CFLAGS" = set; then
3599 CFLAGS=$ac_save_CFLAGS
3600 elif test $ac_cv_prog_cc_g = yes; then
3601 if test "$GCC" = yes; then
3602 CFLAGS="-g -O2"
3603 else
3604 CFLAGS="-g"
3605 fi
3606 else
3607 if test "$GCC" = yes; then
3608 CFLAGS="-O2"
3609 else
3610 CFLAGS=
3611 fi
3612 fi
3613 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3614 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3615 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618 ac_cv_prog_cc_stdc=no
3619 ac_save_CC=$CC
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h. */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 #include <stdarg.h>
3627 #include <stdio.h>
3628 #include <sys/types.h>
3629 #include <sys/stat.h>
3630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3631 struct buf { int x; };
3632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633 static char *e (p, i)
3634 char **p;
3635 int i;
3636 {
3637 return p[i];
3638 }
3639 static char *f (char * (*g) (char **, int), char **p, ...)
3640 {
3641 char *s;
3642 va_list v;
3643 va_start (v,p);
3644 s = g (p, va_arg (v,int));
3645 va_end (v);
3646 return s;
3647 }
3648
3649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3650 function prototypes and stuff, but not '\xHH' hex character constants.
3651 These don't provoke an error unfortunately, instead are silently treated
3652 as 'x'. The following induces an error, until -std1 is added to get
3653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3654 array size at least. It's necessary to write '\x00'==0 to get something
3655 that's true only with -std1. */
3656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3657
3658 int test (int i, double x);
3659 struct s1 {int (*f) (int a);};
3660 struct s2 {int (*f) (double a);};
3661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3662 int argc;
3663 char **argv;
3664 int
3665 main ()
3666 {
3667 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 # Don't try gcc -ansi; that turns off useful extensions and
3673 # breaks some systems' header files.
3674 # AIX -qlanglvl=ansi
3675 # Ultrix and OSF/1 -std1
3676 # HP-UX 10.20 and later -Ae
3677 # HP-UX older versions -Aa -D_HPUX_SOURCE
3678 # SVR4 -Xc -D__EXTENSIONS__
3679 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3680 do
3681 CC="$ac_save_CC $ac_arg"
3682 rm -f conftest.$ac_objext
3683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>conftest.er1
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -z "$ac_c_werror_flag"
3692 || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_cv_prog_cc_stdc=$ac_arg
3705 break
3706 else
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 fi
3711 rm -f conftest.err conftest.$ac_objext
3712 done
3713 rm -f conftest.$ac_ext conftest.$ac_objext
3714 CC=$ac_save_CC
3715
3716 fi
3717
3718 case "x$ac_cv_prog_cc_stdc" in
3719 x|xno)
3720 echo "$as_me:$LINENO: result: none needed" >&5
3721 echo "${ECHO_T}none needed" >&6 ;;
3722 *)
3723 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3724 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3725 CC="$CC $ac_cv_prog_cc_stdc" ;;
3726 esac
3727
3728 # Some people use a C++ compiler to compile C. Since we use `exit',
3729 # in C++ we need to declare it. In case someone uses the same compiler
3730 # for both compiling C and C++ we need to have the C++ compiler decide
3731 # the declaration of exit, since it's the most demanding environment.
3732 cat >conftest.$ac_ext <<_ACEOF
3733 #ifndef __cplusplus
3734 choke me
3735 #endif
3736 _ACEOF
3737 rm -f conftest.$ac_objext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>conftest.er1
3740 ac_status=$?
3741 grep -v '^ *+' conftest.er1 >conftest.err
3742 rm -f conftest.er1
3743 cat conftest.err >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -z "$ac_c_werror_flag"
3747 || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try='test -s conftest.$ac_objext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 for ac_declaration in \
3760 '' \
3761 'extern "C" void std::exit (int) throw (); using std::exit;' \
3762 'extern "C" void std::exit (int); using std::exit;' \
3763 'extern "C" void exit (int) throw ();' \
3764 'extern "C" void exit (int);' \
3765 'void exit (int);'
3766 do
3767 cat >conftest.$ac_ext <<_ACEOF
3768 /* confdefs.h. */
3769 _ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 $ac_declaration
3774 #include <stdlib.h>
3775 int
3776 main ()
3777 {
3778 exit (42);
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 rm -f conftest.$ac_objext
3784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 :
3806 else
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810 continue
3811 fi
3812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 $ac_declaration
3820 int
3821 main ()
3822 {
3823 exit (42);
3824 ;
3825 return 0;
3826 }
3827 _ACEOF
3828 rm -f conftest.$ac_objext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 break
3851 else
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855 fi
3856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857 done
3858 rm -f conftest*
3859 if test -n "$ac_declaration"; then
3860 echo '#ifdef __cplusplus' >>confdefs.h
3861 echo $ac_declaration >>confdefs.h
3862 echo '#endif' >>confdefs.h
3863 fi
3864
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869 fi
3870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ac_ext=c
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876
3877 ac_ext=cc
3878 ac_cpp='$CXXCPP $CPPFLAGS'
3879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3882 if test -n "$ac_tool_prefix"; then
3883 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3884 do
3885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3887 echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_CXX+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892 if test -n "$CXX"; then
3893 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908
3909 fi
3910 fi
3911 CXX=$ac_cv_prog_CXX
3912 if test -n "$CXX"; then
3913 echo "$as_me:$LINENO: result: $CXX" >&5
3914 echo "${ECHO_T}$CXX" >&6
3915 else
3916 echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6
3918 fi
3919
3920 test -n "$CXX" && break
3921 done
3922 fi
3923 if test -z "$CXX"; then
3924 ac_ct_CXX=$CXX
3925 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3926 do
3927 # Extract the first word of "$ac_prog", so it can be a program name with args.
3928 set dummy $ac_prog; ac_word=$2
3929 echo "$as_me:$LINENO: checking for $ac_word" >&5
3930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3931 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 if test -n "$ac_ct_CXX"; then
3935 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944 ac_cv_prog_ac_ct_CXX="$ac_prog"
3945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948 done
3949 done
3950
3951 fi
3952 fi
3953 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3954 if test -n "$ac_ct_CXX"; then
3955 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3956 echo "${ECHO_T}$ac_ct_CXX" >&6
3957 else
3958 echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6
3960 fi
3961
3962 test -n "$ac_ct_CXX" && break
3963 done
3964 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3965
3966 CXX=$ac_ct_CXX
3967 fi
3968
3969
3970 # Provide some information about the compiler.
3971 echo "$as_me:$LINENO:" \
3972 "checking for C++ compiler version" >&5
3973 ac_compiler=`set X $ac_compile; echo $2`
3974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3975 (eval $ac_compiler --version </dev/null >&5) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }
3979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3980 (eval $ac_compiler -v </dev/null >&5) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }
3984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3985 (eval $ac_compiler -V </dev/null >&5) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }
3989
3990 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3991 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3992 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h. */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4001
4002 int
4003 main ()
4004 {
4005 #ifndef __GNUC__
4006 choke me
4007 #endif
4008
4009 ;
4010 return 0;
4011 }
4012 _ACEOF
4013 rm -f conftest.$ac_objext
4014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015 (eval $ac_compile) 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -z "$ac_cxx_werror_flag"
4023 || test ! -s conftest.err'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 (eval $ac_try) 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_compiler_gnu=yes
4036 else
4037 echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040 ac_compiler_gnu=no
4041 fi
4042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4043 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4044
4045 fi
4046 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4047 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4048 GXX=`test $ac_compiler_gnu = yes && echo yes`
4049 ac_test_CXXFLAGS=${CXXFLAGS+set}
4050 ac_save_CXXFLAGS=$CXXFLAGS
4051 CXXFLAGS="-g"
4052 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4053 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4054 if test "${ac_cv_prog_cxx_g+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063
4064 int
4065 main ()
4066 {
4067
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_cxx_werror_flag"
4082 || test ! -s conftest.err'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 (eval $ac_try) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 ac_cv_prog_cxx_g=yes
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099 ac_cv_prog_cxx_g=no
4100 fi
4101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102 fi
4103 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4104 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4105 if test "$ac_test_CXXFLAGS" = set; then
4106 CXXFLAGS=$ac_save_CXXFLAGS
4107 elif test $ac_cv_prog_cxx_g = yes; then
4108 if test "$GXX" = yes; then
4109 CXXFLAGS="-g -O2"
4110 else
4111 CXXFLAGS="-g"
4112 fi
4113 else
4114 if test "$GXX" = yes; then
4115 CXXFLAGS="-O2"
4116 else
4117 CXXFLAGS=
4118 fi
4119 fi
4120 for ac_declaration in \
4121 '' \
4122 'extern "C" void std::exit (int) throw (); using std::exit;' \
4123 'extern "C" void std::exit (int); using std::exit;' \
4124 'extern "C" void exit (int) throw ();' \
4125 'extern "C" void exit (int);' \
4126 'void exit (int);'
4127 do
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 $ac_declaration
4135 #include <stdlib.h>
4136 int
4137 main ()
4138 {
4139 exit (42);
4140 ;
4141 return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest.$ac_objext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -z "$ac_cxx_werror_flag"
4154 || test ! -s conftest.err'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 :
4167 else
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4170
4171 continue
4172 fi
4173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174 cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 $ac_declaration
4181 int
4182 main ()
4183 {
4184 exit (42);
4185 ;
4186 return 0;
4187 }
4188 _ACEOF
4189 rm -f conftest.$ac_objext
4190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -z "$ac_cxx_werror_flag"
4199 || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 break
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 fi
4217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218 done
4219 rm -f conftest*
4220 if test -n "$ac_declaration"; then
4221 echo '#ifdef __cplusplus' >>confdefs.h
4222 echo $ac_declaration >>confdefs.h
4223 echo '#endif' >>confdefs.h
4224 fi
4225
4226 ac_ext=c
4227 ac_cpp='$CPP $CPPFLAGS'
4228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231
4232
4233 # We must set the default linker to the linker used by gcc for the correct
4234 # operation of libtool. If LD is not defined and we are using gcc, try to
4235 # set the LD default to the ld used by gcc.
4236 if test -z "$LD"; then
4237 if test "$GCC" = yes; then
4238 case $build in
4239 *-*-mingw*)
4240 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4241 *)
4242 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4243 esac
4244 case $gcc_prog_ld in
4245 # Accept absolute paths.
4246 [\\/]* | [A-Za-z]:[\\/]*)
4247 LD="$gcc_prog_ld" ;;
4248 esac
4249 fi
4250 fi
4251
4252
4253
4254
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 if test -n "$GNATBIND"; then
4264 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277 done
4278 done
4279
4280 fi
4281 fi
4282 GNATBIND=$ac_cv_prog_GNATBIND
4283 if test -n "$GNATBIND"; then
4284 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4285 echo "${ECHO_T}$GNATBIND" >&6
4286 else
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4289 fi
4290
4291 fi
4292 if test -z "$ac_cv_prog_GNATBIND"; then
4293 ac_ct_GNATBIND=$GNATBIND
4294 # Extract the first word of "gnatbind", so it can be a program name with args.
4295 set dummy gnatbind; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 if test -n "$ac_ct_GNATBIND"; then
4302 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315 done
4316 done
4317
4318 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4319 fi
4320 fi
4321 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4322 if test -n "$ac_ct_GNATBIND"; then
4323 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4324 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4325 else
4326 echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4328 fi
4329
4330 GNATBIND=$ac_ct_GNATBIND
4331 else
4332 GNATBIND="$ac_cv_prog_GNATBIND"
4333 fi
4334
4335 if test -n "$ac_tool_prefix"; then
4336 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4337 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343 if test -n "$GNATMAKE"; then
4344 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357 done
4358 done
4359
4360 fi
4361 fi
4362 GNATMAKE=$ac_cv_prog_GNATMAKE
4363 if test -n "$GNATMAKE"; then
4364 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4365 echo "${ECHO_T}$GNATMAKE" >&6
4366 else
4367 echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6
4369 fi
4370
4371 fi
4372 if test -z "$ac_cv_prog_GNATMAKE"; then
4373 ac_ct_GNATMAKE=$GNATMAKE
4374 # Extract the first word of "gnatmake", so it can be a program name with args.
4375 set dummy gnatmake; ac_word=$2
4376 echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4378 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381 if test -n "$ac_ct_GNATMAKE"; then
4382 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395 done
4396 done
4397
4398 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4399 fi
4400 fi
4401 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4402 if test -n "$ac_ct_GNATMAKE"; then
4403 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4404 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4405 else
4406 echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4408 fi
4409
4410 GNATMAKE=$ac_ct_GNATMAKE
4411 else
4412 GNATMAKE="$ac_cv_prog_GNATMAKE"
4413 fi
4414
4415 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4416 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4417 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 cat >conftest.adb <<EOF
4421 procedure conftest is begin null; end conftest;
4422 EOF
4423 acx_cv_cc_gcc_supports_ada=no
4424 # There is a bug in old released versions of GCC which causes the
4425 # driver to exit successfully when the appropriate language module
4426 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4427 # Therefore we must check for the error message as well as an
4428 # unsuccessful exit.
4429 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4430 # given a .adb file, but produce no object file. So we must check
4431 # if an object file was really produced to guard against this.
4432 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4433 if test x"$errors" = x && test -f conftest.$ac_objext; then
4434 acx_cv_cc_gcc_supports_ada=yes
4435 fi
4436 rm -f conftest.*
4437 fi
4438 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4439 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4440
4441 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4442 have_gnat=yes
4443 else
4444 have_gnat=no
4445 fi
4446
4447 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4448 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4449 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452 echo abfoo >t1
4453 echo cdfoo >t2
4454 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4455 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4456 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4457 :
4458 else
4459 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4460 fi
4461 fi
4462 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4463 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4464 :
4465 else
4466 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4467 fi
4468 fi
4469 rm t1 t2
4470
4471 fi
4472 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4473 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4474 do_compare="$gcc_cv_prog_cmp_skip"
4475
4476
4477
4478 # Check for GMP and MPFR
4479 gmplibs="-lmpfr -lgmp"
4480 gmpinc=
4481 have_gmp=no
4482
4483 # Specify a location for mpfr
4484 # check for this first so it ends up on the link line before gmp.
4485
4486 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4487 if test "${with_mpfr_dir+set}" = set; then
4488 withval="$with_mpfr_dir"
4489 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4490 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4491 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4492 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4493 { (exit 1); exit 1; }; }
4494 fi;
4495
4496
4497 # Check whether --with-mpfr or --without-mpfr was given.
4498 if test "${with_mpfr+set}" = set; then
4499 withval="$with_mpfr"
4500
4501 fi;
4502
4503 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4504 if test "${with_mpfr_include+set}" = set; then
4505 withval="$with_mpfr_include"
4506
4507 fi;
4508
4509 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4510 if test "${with_mpfr_lib+set}" = set; then
4511 withval="$with_mpfr_lib"
4512
4513 fi;
4514
4515 if test "x$with_mpfr" != x; then
4516 gmplibs="-L$with_mpfr/lib $gmplibs"
4517 gmpinc="-I$with_mpfr/include"
4518 fi
4519 if test "x$with_mpfr_include" != x; then
4520 gmpinc="-I$with_mpfr_include"
4521 fi
4522 if test "x$with_mpfr_lib" != x; then
4523 gmplibs="-L$with_mpfr_lib $gmplibs"
4524 fi
4525 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4526 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4527 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4528 # Do not test the mpfr version. Assume that it is sufficient, since
4529 # it is in the source tree, and the library has not been built yet
4530 # but it would be included on the link line in the version check below
4531 # hence making the test fail.
4532 have_gmp=yes
4533 fi
4534
4535 # Specify a location for gmp
4536
4537 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4538 if test "${with_gmp_dir+set}" = set; then
4539 withval="$with_gmp_dir"
4540 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4541 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4542 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4543 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4544 { (exit 1); exit 1; }; }
4545 fi;
4546
4547
4548 # Check whether --with-gmp or --without-gmp was given.
4549 if test "${with_gmp+set}" = set; then
4550 withval="$with_gmp"
4551
4552 fi;
4553
4554 # Check whether --with-gmp_include or --without-gmp_include was given.
4555 if test "${with_gmp_include+set}" = set; then
4556 withval="$with_gmp_include"
4557
4558 fi;
4559
4560 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4561 if test "${with_gmp_lib+set}" = set; then
4562 withval="$with_gmp_lib"
4563
4564 fi;
4565
4566
4567 if test "x$with_gmp" != x; then
4568 gmplibs="-L$with_gmp/lib $gmplibs"
4569 gmpinc="-I$with_gmp/include $gmpinc"
4570 fi
4571 if test "x$with_gmp_include" != x; then
4572 gmpinc="-I$with_gmp_include $gmpinc"
4573 fi
4574 if test "x$with_gmp_lib" != x; then
4575 gmplibs="-L$with_gmp_lib $gmplibs"
4576 fi
4577 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4578 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4579 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4580 # Do not test the gmp version. Assume that it is sufficient, since
4581 # it is in the source tree, and the library has not been built yet
4582 # but it would be included on the link line in the version check below
4583 # hence making the test fail.
4584 have_gmp=yes
4585 fi
4586
4587 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4588 have_gmp=yes
4589 saved_CFLAGS="$CFLAGS"
4590 CFLAGS="$CFLAGS $gmpinc"
4591 # Check GMP actually works
4592 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4593 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4594
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 #include "gmp.h"
4602 int
4603 main ()
4604 {
4605
4606 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4607 choke me
4608 #endif
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 rm -f conftest.$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
4623 { ac_try='test -z "$ac_c_werror_flag"
4624 || test ! -s conftest.err'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 echo "$as_me:$LINENO: result: yes" >&5
4637 echo "${ECHO_T}yes" >&6
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; have_gmp=no
4644 fi
4645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646
4647 if test x"$have_gmp" = xyes; then
4648 saved_LIBS="$LIBS"
4649 LIBS="$LIBS $gmplibs"
4650 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4651 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 #include <gmp.h>
4659 #include <mpfr.h>
4660 int
4661 main ()
4662 {
4663
4664 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4665 choke me
4666 #endif
4667 mpfr_t n;
4668 mpfr_t x;
4669 int t;
4670 mpfr_init (n);
4671 mpfr_init (x);
4672 mpfr_atan2 (n, n, x, GMP_RNDN);
4673 mpfr_erfc (n, x, GMP_RNDN);
4674 mpfr_subnormalize (x, t, GMP_RNDN);
4675
4676 ;
4677 return 0;
4678 }
4679 _ACEOF
4680 rm -f conftest.$ac_objext conftest$ac_exeext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag"
4690 || test ! -s conftest.err'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest$ac_exeext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h. */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 #include <gmp.h>
4709 #include <mpfr.h>
4710 int
4711 main ()
4712 {
4713
4714 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4715 choke me
4716 #endif
4717 mpfr_t n; mpfr_init(n);
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try='test -z "$ac_c_werror_flag"
4733 || test ! -s conftest.err'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; } &&
4739 { ac_try='test -s conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 echo "$as_me:$LINENO: result: yes" >&5
4746 echo "${ECHO_T}yes" >&6
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4752 echo "${ECHO_T}buggy but acceptable" >&6
4753 fi
4754 rm -f conftest.err conftest.$ac_objext \
4755 conftest$ac_exeext conftest.$ac_ext
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6; have_gmp=no
4762 fi
4763 rm -f conftest.err conftest.$ac_objext \
4764 conftest$ac_exeext conftest.$ac_ext
4765 LIBS="$saved_LIBS"
4766 fi
4767 CFLAGS="$saved_CFLAGS"
4768
4769 if test x$have_gmp != xyes; then
4770 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
4771 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4772 Copies of these libraries' source code can be found at their respective
4773 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4774 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4775 If you obtained GMP and/or MPFR from a vendor distribution package, make
4776 sure that you have installed both the libraries and the header files.
4777 They may be located in separate packages." >&5
4778 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
4779 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4780 Copies of these libraries' source code can be found at their respective
4781 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4782 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4783 If you obtained GMP and/or MPFR from a vendor distribution package, make
4784 sure that you have installed both the libraries and the header files.
4785 They may be located in separate packages." >&2;}
4786 { (exit 1); exit 1; }; }
4787 fi
4788 fi
4789
4790 # Flags needed for both GMP and/or MPFR
4791
4792
4793
4794 # By default, C is the only stage 1 language.
4795 stage1_languages=,c,
4796
4797 # Figure out what language subdirectories are present.
4798 # Look if the user specified --enable-languages="..."; if not, use
4799 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4800 # go away some day.
4801 # NB: embedded tabs in this IF block -- do not untabify
4802 if test -d ${srcdir}/gcc; then
4803 if test x"${enable_languages+set}" != xset; then
4804 if test x"${LANGUAGES+set}" = xset; then
4805 enable_languages="${LANGUAGES}"
4806 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4807 else
4808 enable_languages=all
4809 fi
4810 else
4811 if test x"${enable_languages}" = x ||
4812 test x"${enable_languages}" = xyes;
4813 then
4814 echo configure.in: --enable-languages needs at least one language argument 1>&2
4815 exit 1
4816 fi
4817 fi
4818 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4819
4820 # 'f95' is the old name for the 'fortran' language. We issue a warning
4821 # and make the substitution.
4822 case ,${enable_languages}, in
4823 *,f95,*)
4824 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4825 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4826 ;;
4827 esac
4828
4829 # First scan to see if an enabled language requires some other language.
4830 # We assume that a given config-lang.in will list all the language
4831 # front ends it requires, even if some are required indirectly.
4832 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4833 case ${lang_frag} in
4834 ..) ;;
4835 # The odd quoting in the next line works around
4836 # an apparent bug in bash 1.12 on linux.
4837 ${srcdir}/gcc/[*]/config-lang.in) ;;
4838 *)
4839 # From the config-lang.in, get $language, $lang_requires
4840 language=
4841 lang_requires=
4842 . ${lang_frag}
4843 for other in ${lang_requires} ; do
4844 case ,${enable_languages}, in
4845 *,$other,*) ;;
4846 *,all,*) ;;
4847 *,$language,*)
4848 echo " \`$other' language required by \`$language'; enabling" 1>&2
4849 enable_languages="${enable_languages},${other}"
4850 ;;
4851 esac
4852 done
4853 ;;
4854 esac
4855 done
4856
4857 new_enable_languages=,c,
4858 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4859 potential_languages=,c,
4860
4861 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4862 case ${lang_frag} in
4863 ..) ;;
4864 # The odd quoting in the next line works around
4865 # an apparent bug in bash 1.12 on linux.
4866 ${srcdir}/gcc/[*]/config-lang.in) ;;
4867 *)
4868 # From the config-lang.in, get $language, $target_libs,
4869 # $lang_dirs, $boot_language, and $build_by_default
4870 language=
4871 target_libs=
4872 lang_dirs=
4873 subdir_requires=
4874 boot_language=no
4875 build_by_default=yes
4876 . ${lang_frag}
4877 if test x${language} = x; then
4878 echo "${lang_frag} doesn't set \$language." 1>&2
4879 exit 1
4880 fi
4881
4882 case ,${enable_languages}, in
4883 *,${language},*)
4884 # Language was explicitly selected; include it.
4885 add_this_lang=yes
4886 ;;
4887 *,all,*)
4888 # 'all' was selected, select it if it is a default language
4889 add_this_lang=${build_by_default}
4890 ;;
4891 *)
4892 add_this_lang=no
4893 ;;
4894 esac
4895
4896 # Disable languages that need other directories if these aren't available.
4897 for i in $subdir_requires; do
4898 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4899 case ,${enable_languages}, in
4900 *,${language},*)
4901 # Specifically requested language; tell them.
4902 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4903 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4904 { (exit 1); exit 1; }; }
4905 ;;
4906 *)
4907 # Silently disable.
4908 add_this_lang=unsupported
4909 ;;
4910 esac
4911 done
4912
4913 # Disable Ada if no preexisting GNAT is available.
4914 case ,${enable_languages},:${language}:${have_gnat} in
4915 *,${language},*:ada:no)
4916 # Specifically requested language; tell them.
4917 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4918 echo "$as_me: error: GNAT is required to build $language" >&2;}
4919 { (exit 1); exit 1; }; }
4920 ;;
4921 *:ada:no)
4922 # Silently disable.
4923 add_this_lang=unsupported
4924 ;;
4925 esac
4926
4927 # Disable a language that is unsupported by the target.
4928 case " $unsupported_languages " in
4929 *" $language "*)
4930 add_this_lang=unsupported
4931 ;;
4932 esac
4933
4934 case $add_this_lang in
4935 unsupported)
4936 # Remove language-dependent dirs.
4937 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4938 ;;
4939 no)
4940 # Remove language-dependent dirs; still show language as supported.
4941 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4942 potential_languages="${potential_languages}${language},"
4943 ;;
4944 yes)
4945 new_enable_languages="${new_enable_languages}${language},"
4946 potential_languages="${potential_languages}${language},"
4947 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4948 case ${boot_language} in
4949 yes)
4950 # Add to (comma-separated) list of stage 1 languages.
4951 stage1_languages="${stage1_languages}${language},"
4952 ;;
4953 esac
4954 ;;
4955 esac
4956 ;;
4957 esac
4958 done
4959
4960 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4961 if test "${enable_stage1_languages+set}" = set; then
4962 enableval="$enable_stage1_languages"
4963 case ,${enable_stage1_languages}, in
4964 ,no,|,,)
4965 # Set it to something that will have no effect in the loop below
4966 enable_stage1_languages=c ;;
4967 ,yes,)
4968 enable_stage1_languages=`echo $new_enable_languages | \
4969 sed -e "s/^,//" -e "s/,$//" ` ;;
4970 *,all,*)
4971 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4972 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4973 esac
4974
4975 # Add "good" languages from enable_stage1_languages to stage1_languages,
4976 # while "bad" languages go in missing_languages. Leave no duplicates.
4977 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4978 case $potential_languages in
4979 *,$i,*)
4980 case $stage1_languages in
4981 *,$i,*) ;;
4982 *) stage1_languages="$stage1_languages$i," ;;
4983 esac ;;
4984 *)
4985 case $missing_languages in
4986 *,$i,*) ;;
4987 *) missing_languages="$missing_languages$i," ;;
4988 esac ;;
4989 esac
4990 done
4991 fi;
4992
4993 # Remove leading/trailing commas that were added for simplicity
4994 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4995 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4996 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4997 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4998
4999 if test "x$missing_languages" != x; then
5000 { { echo "$as_me:$LINENO: error:
5001 The following requested languages could not be built: ${missing_languages}
5002 Supported languages are: ${potential_languages}" >&5
5003 echo "$as_me: error:
5004 The following requested languages could not be built: ${missing_languages}
5005 Supported languages are: ${potential_languages}" >&2;}
5006 { (exit 1); exit 1; }; }
5007 fi
5008 if test "x$new_enable_languages" != "x$enable_languages"; then
5009 echo The following languages will be built: ${new_enable_languages}
5010 enable_languages="$new_enable_languages"
5011 fi
5012
5013
5014 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5015 fi
5016
5017 # Handle --disable-<component> generically.
5018 for dir in $configdirs $build_configdirs $target_configdirs ; do
5019 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5020 varname=`echo $dirname | sed -e s/+/_/g`
5021 if eval test x\${enable_${varname}} "=" xno ; then
5022 noconfigdirs="$noconfigdirs $dir"
5023 fi
5024 done
5025
5026 # Check for Boehm's garbage collector
5027 # Check whether --enable-objc-gc or --disable-objc-gc was given.
5028 if test "${enable_objc_gc+set}" = set; then
5029 enableval="$enable_objc_gc"
5030 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5031 *,objc,*:*:yes:*target-boehm-gc*)
5032 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5033 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5034 { (exit 1); exit 1; }; }
5035 ;;
5036 esac
5037 fi;
5038
5039 # Make sure we only build Boehm's garbage collector if required.
5040 case ,${enable_languages},:${enable_objc_gc} in
5041 *,objc,*:yes)
5042 # Keep target-boehm-gc if requested for Objective-C.
5043 ;;
5044 *)
5045 # Otherwise remove target-boehm-gc depending on target-libjava.
5046 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5047 noconfigdirs="$noconfigdirs target-boehm-gc"
5048 fi
5049 ;;
5050 esac
5051
5052 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5053 # $build_configdirs and $target_configdirs.
5054 # If we have the source for $noconfigdirs entries, add them to $notsupp.
5055
5056 notsupp=""
5057 for dir in . $skipdirs $noconfigdirs ; do
5058 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5059 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5060 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5061 if test -r $srcdir/$dirname/configure ; then
5062 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5063 true
5064 else
5065 notsupp="$notsupp $dir"
5066 fi
5067 fi
5068 fi
5069 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5070 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5071 if test -r $srcdir/$dirname/configure ; then
5072 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5073 true
5074 else
5075 notsupp="$notsupp $dir"
5076 fi
5077 fi
5078 fi
5079 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5080 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5081 if test -r $srcdir/$dirname/configure ; then
5082 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5083 true
5084 else
5085 notsupp="$notsupp $dir"
5086 fi
5087 fi
5088 fi
5089 done
5090
5091 # Sometimes the tools are distributed with libiberty but with no other
5092 # libraries. In that case, we don't want to build target-libiberty.
5093 # Don't let libgcc imply libiberty either.
5094 if test -n "${target_configdirs}" ; then
5095 libgcc=
5096 others=
5097 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5098 if test "$i" = "libgcc"; then
5099 libgcc=target-libgcc
5100 elif test "$i" != "libiberty" ; then
5101 if test -r $srcdir/$i/configure ; then
5102 others=yes;
5103 break;
5104 fi
5105 fi
5106 done
5107 if test -z "${others}" ; then
5108 target_configdirs=$libgcc
5109 fi
5110 fi
5111
5112 # Quietly strip out all directories which aren't configurable in this tree.
5113 # This relies on all configurable subdirectories being autoconfiscated, which
5114 # is now the case.
5115 build_configdirs_all="$build_configdirs"
5116 build_configdirs=
5117 for i in ${build_configdirs_all} ; do
5118 j=`echo $i | sed -e s/build-//g`
5119 if test -f ${srcdir}/$j/configure ; then
5120 build_configdirs="${build_configdirs} $i"
5121 fi
5122 done
5123
5124 configdirs_all="$configdirs"
5125 configdirs=
5126 for i in ${configdirs_all} ; do
5127 if test -f ${srcdir}/$i/configure ; then
5128 configdirs="${configdirs} $i"
5129 fi
5130 done
5131
5132 target_configdirs_all="$target_configdirs"
5133 target_configdirs=
5134 for i in ${target_configdirs_all} ; do
5135 j=`echo $i | sed -e s/target-//g`
5136 if test -f ${srcdir}/$j/configure ; then
5137 target_configdirs="${target_configdirs} $i"
5138 fi
5139 done
5140
5141 # Produce a warning message for the subdirs we can't configure.
5142 # This isn't especially interesting in the Cygnus tree, but in the individual
5143 # FSF releases, it's important to let people know when their machine isn't
5144 # supported by the one or two programs in a package.
5145
5146 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5147 # If $appdirs is non-empty, at least one of those directories must still
5148 # be configured, or we error out. (E.g., if the gas release supports a
5149 # specified target in some subdirs but not the gas subdir, we shouldn't
5150 # pretend that all is well.)
5151 if test -n "$appdirs" ; then
5152 for dir in $appdirs ; do
5153 if test -r $dir/Makefile.in ; then
5154 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5155 appdirs=""
5156 break
5157 fi
5158 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5159 appdirs=""
5160 break
5161 fi
5162 fi
5163 done
5164 if test -n "$appdirs" ; then
5165 echo "*** This configuration is not supported by this package." 1>&2
5166 exit 1
5167 fi
5168 fi
5169 # Okay, some application will build, or we don't care to check. Still
5170 # notify of subdirs not getting built.
5171 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5172 echo " ${notsupp}" 1>&2
5173 echo " (Any other directories should still work fine.)" 1>&2
5174 fi
5175
5176 case "$host" in
5177 *msdosdjgpp*)
5178 enable_gdbtk=no ;;
5179 esac
5180
5181 # To find our prefix, in gcc_cv_tool_prefix.
5182
5183 # The user is always right.
5184 if test "${PATH_SEPARATOR+set}" != set; then
5185 echo "#! /bin/sh" >conf$$.sh
5186 echo "exit 0" >>conf$$.sh
5187 chmod +x conf$$.sh
5188 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5189 PATH_SEPARATOR=';'
5190 else
5191 PATH_SEPARATOR=:
5192 fi
5193 rm -f conf$$.sh
5194 fi
5195
5196
5197
5198 if test "x$exec_prefix" = xNONE; then
5199 if test "x$prefix" = xNONE; then
5200 gcc_cv_tool_prefix=$ac_default_prefix
5201 else
5202 gcc_cv_tool_prefix=$prefix
5203 fi
5204 else
5205 gcc_cv_tool_prefix=$exec_prefix
5206 fi
5207
5208 # If there is no compiler in the tree, use the PATH only. In any
5209 # case, if there is no compiler in the tree nobody should use
5210 # AS_FOR_TARGET and LD_FOR_TARGET.
5211 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5212 gcc_version=`cat $srcdir/gcc/BASE-VER`
5213 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5214 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5215 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5216 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5218 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5219 else
5220 gcc_cv_tool_dirs=
5221 fi
5222
5223 if test x$build = x$target && test -n "$md_exec_prefix"; then
5224 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5225 fi
5226
5227
5228
5229 copy_dirs=
5230
5231
5232 # Check whether --with-build-sysroot or --without-build-sysroot was given.
5233 if test "${with_build_sysroot+set}" = set; then
5234 withval="$with_build_sysroot"
5235 if test x"$withval" != x ; then
5236 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5237 fi
5238 else
5239 SYSROOT_CFLAGS_FOR_TARGET=
5240 fi;
5241
5242
5243
5244 # Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5245 if test "${with_debug_prefix_map+set}" = set; then
5246 withval="$with_debug_prefix_map"
5247 if test x"$withval" != x; then
5248 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5249 for debug_map in $withval; do
5250 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5251 done
5252 fi
5253 else
5254 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5255 fi;
5256
5257
5258 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5259 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5260 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5261 # We want to ensure that TARGET libraries (which we know are built with
5262 # gcc) are built with "-O2 -g", so include those options when setting
5263 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5264 if test "x$CFLAGS_FOR_TARGET" = x; then
5265 CFLAGS_FOR_TARGET=$CFLAGS
5266 case " $CFLAGS " in
5267 *" -O2 "*) ;;
5268 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5269 esac
5270 case " $CFLAGS " in
5271 *" -g "* | *" -g3 "*) ;;
5272 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5273 esac
5274 fi
5275
5276
5277 if test "x$CXXFLAGS_FOR_TARGET" = x; then
5278 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5279 case " $CXXFLAGS " in
5280 *" -O2 "*) ;;
5281 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5282 esac
5283 case " $CXXFLAGS " in
5284 *" -g "* | *" -g3 "*) ;;
5285 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5286 esac
5287 fi
5288
5289
5290 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5291 # the named directory are copied to $(tooldir)/sys-include.
5292 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5293 if test x${is_cross_compiler} = xno ; then
5294 echo 1>&2 '***' --with-headers is only supported when cross compiling
5295 exit 1
5296 fi
5297 if test x"${with_headers}" != xyes ; then
5298 x=${gcc_cv_tool_prefix}
5299 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5300 fi
5301 fi
5302
5303 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5304 # the name directories are copied to $(tooldir)/lib. Multiple directories
5305 # are permitted.
5306 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5307 if test x${is_cross_compiler} = xno ; then
5308 echo 1>&2 '***' --with-libs is only supported when cross compiling
5309 exit 1
5310 fi
5311 if test x"${with_libs}" != xyes ; then
5312 # Copy the libraries in reverse order, so that files in the first named
5313 # library override files in subsequent libraries.
5314 x=${gcc_cv_tool_prefix}
5315 for l in ${with_libs}; do
5316 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5317 done
5318 fi
5319 fi
5320
5321 # Set with_gnu_as and with_gnu_ld as appropriate.
5322 #
5323 # This is done by determining whether or not the appropriate directory
5324 # is available, and by checking whether or not specific configurations
5325 # have requested that this magic not happen.
5326 #
5327 # The command line options always override the explicit settings in
5328 # configure.in, and the settings in configure.in override this magic.
5329 #
5330 # If the default for a toolchain is to use GNU as and ld, and you don't
5331 # want to do that, then you should use the --without-gnu-as and
5332 # --without-gnu-ld options for the configure script.
5333
5334 if test x${use_gnu_as} = x &&
5335 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5336 with_gnu_as=yes
5337 extra_host_args="$extra_host_args --with-gnu-as"
5338 fi
5339
5340 if test x${use_gnu_ld} = x &&
5341 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
5342 with_gnu_ld=yes
5343 extra_host_args="$extra_host_args --with-gnu-ld"
5344 fi
5345
5346 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5347 # can detect this case.
5348
5349 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5350 with_newlib=yes
5351 extra_host_args="$extra_host_args --with-newlib"
5352 fi
5353
5354 # Handle ${copy_dirs}
5355 set fnord ${copy_dirs}
5356 shift
5357 while test $# != 0 ; do
5358 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5359 :
5360 else
5361 echo Copying $1 to $2
5362
5363 # Use the install script to create the directory and all required
5364 # parent directories.
5365 if test -d $2 ; then
5366 :
5367 else
5368 echo >config.temp
5369 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5370 fi
5371
5372 # Copy the directory, assuming we have tar.
5373 # FIXME: Should we use B in the second tar? Not all systems support it.
5374 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5375
5376 # It is the responsibility of the user to correctly adjust all
5377 # symlinks. If somebody can figure out how to handle them correctly
5378 # here, feel free to add the code.
5379
5380 echo $1 > $2/COPIED
5381 fi
5382 shift; shift
5383 done
5384
5385 # Determine a target-dependent exec_prefix that the installed
5386 # gcc will search in. Keep this list sorted by triplet, with
5387 # the *-*-osname triplets last.
5388 md_exec_prefix=
5389 case "${target}" in
5390 alpha*-*-*vms*)
5391 md_exec_prefix=/gnu/lib/gcc-lib
5392 ;;
5393 i[34567]86-pc-msdosdjgpp*)
5394 md_exec_prefix=/dev/env/DJDIR/bin
5395 ;;
5396 i[34567]86-*-sco3.2v5*)
5397 if test $with_gnu_as = yes; then
5398 md_exec_prefix=/usr/gnu/bin
5399 else
5400 md_exec_prefix=/usr/ccs/bin/elf
5401 fi
5402 ;;
5403
5404 mn10300-*-* | \
5405 powerpc-*-chorusos* | \
5406 powerpc*-*-eabi* | \
5407 powerpc*-*-sysv* | \
5408 powerpc*-*-kaos* | \
5409 s390x-ibm-tpf*)
5410 md_exec_prefix=/usr/ccs/bin
5411 ;;
5412 sparc64-*-elf*)
5413 ;;
5414 v850*-*-*)
5415 md_exec_prefix=/usr/ccs/bin
5416 ;;
5417 xtensa*-*-elf*)
5418 ;;
5419
5420 *-*-beos* | \
5421 *-*-elf* | \
5422 *-*-hpux* | \
5423 *-*-netware* | \
5424 *-*-nto-qnx* | \
5425 *-*-rtems* | \
5426 *-*-solaris2* | \
5427 *-*-sysv[45]* | \
5428 *-*-vxworks* | \
5429 *-wrs-windiss)
5430 md_exec_prefix=/usr/ccs/bin
5431 ;;
5432 esac
5433
5434 extra_arflags_for_target=
5435 extra_nmflags_for_target=
5436 extra_ranlibflags_for_target=
5437 target_makefile_frag=/dev/null
5438 case "${target}" in
5439 mep*-*-*)
5440 target_makefile_frag="config/mt-mep"
5441 ;;
5442 spu-*-*)
5443 target_makefile_frag="config/mt-spu"
5444 ;;
5445 mips*-sde-elf*)
5446 target_makefile_frag="config/mt-sde"
5447 ;;
5448 mipsisa*-*-elfoabi*)
5449 target_makefile_frag="config/mt-mips-elfoabi"
5450 ;;
5451 mips*-*-*linux* | mips*-*-gnu*)
5452 target_makefile_frag="config/mt-mips-gnu"
5453 ;;
5454 *-*-netware*)
5455 target_makefile_frag="config/mt-netware"
5456 ;;
5457 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5458 target_makefile_frag="config/mt-gnu"
5459 ;;
5460 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5461 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5462 # commands to handle both 32-bit and 64-bit objects. These flags are
5463 # harmless if we're using GNU nm or ar.
5464 extra_arflags_for_target=" -X32_64"
5465 extra_nmflags_for_target=" -B -X32_64"
5466 ;;
5467 *-*-darwin*)
5468 # ranlib from Darwin requires the -c flag to look at common symbols.
5469 extra_ranlibflags_for_target=" -c"
5470 ;;
5471 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5472 target_makefile_frag="config/mt-wince"
5473 ;;
5474 esac
5475
5476 alphaieee_frag=/dev/null
5477 case $target in
5478 alpha*-*-*)
5479 # This just makes sure to use the -mieee option to build target libs.
5480 # This should probably be set individually by each library.
5481 alphaieee_frag="config/mt-alphaieee"
5482 ;;
5483 esac
5484
5485 # If --enable-target-optspace always use -Os instead of -O2 to build
5486 # the target libraries, similarly if it is not specified, use -Os
5487 # on selected platforms.
5488 ospace_frag=/dev/null
5489 case "${enable_target_optspace}:${target}" in
5490 yes:*)
5491 ospace_frag="config/mt-ospace"
5492 ;;
5493 :d30v-*)
5494 ospace_frag="config/mt-d30v"
5495 ;;
5496 :m32r-* | :d10v-* | :fr30-*)
5497 ospace_frag="config/mt-ospace"
5498 ;;
5499 no:* | :*)
5500 ;;
5501 *)
5502 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5503 ;;
5504 esac
5505
5506 # Default to using --with-stabs for certain targets.
5507 if test x${with_stabs} = x ; then
5508 case "${target}" in
5509 mips*-*-irix[56]*)
5510 ;;
5511 mips*-*-* | alpha*-*-osf*)
5512 with_stabs=yes;
5513 extra_host_args="${extra_host_args} --with-stabs"
5514 ;;
5515 esac
5516 fi
5517
5518 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5519 # them automatically.
5520 case "${host}" in
5521 hppa*64*-*-hpux11*)
5522 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5523 ;;
5524 esac
5525
5526 # Some systems (e.g., one of the i386-aix systems the gas testers are
5527 # using) don't handle "\$" correctly, so don't use it here.
5528 tooldir='${exec_prefix}'/${target_noncanonical}
5529 build_tooldir=${tooldir}
5530
5531 # Create a .gdbinit file which runs the one in srcdir
5532 # and tells GDB to look there for source files.
5533
5534 if test -r ${srcdir}/.gdbinit ; then
5535 case ${srcdir} in
5536 .) ;;
5537 *) cat > ./.gdbinit <<EOF
5538 # ${NO_EDIT}
5539 dir ${srcdir}
5540 dir .
5541 source ${srcdir}/.gdbinit
5542 EOF
5543 ;;
5544 esac
5545 fi
5546
5547 # Make sure that the compiler is able to generate an executable. If it
5548 # can't, we are probably in trouble. We don't care whether we can run the
5549 # executable--we might be using a cross compiler--we only care whether it
5550 # can be created. At this point the main configure script has set CC.
5551 we_are_ok=no
5552 echo "int main () { return 0; }" > conftest.c
5553 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5554 if test $? = 0 ; then
5555 if test -s conftest || test -s conftest.exe ; then
5556 we_are_ok=yes
5557 fi
5558 fi
5559 case $we_are_ok in
5560 no)
5561 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5562 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5563 rm -f conftest*
5564 exit 1
5565 ;;
5566 esac
5567 rm -f conftest*
5568
5569 # The Solaris /usr/ucb/cc compiler does not appear to work.
5570 case "${host}" in
5571 sparc-sun-solaris2*)
5572 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5573 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5574 could_use=
5575 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5576 if test -d /opt/cygnus/bin ; then
5577 if test "$could_use" = "" ; then
5578 could_use="/opt/cygnus/bin"
5579 else
5580 could_use="$could_use or /opt/cygnus/bin"
5581 fi
5582 fi
5583 if test "$could_use" = "" ; then
5584 echo "Warning: compilation may fail because you're using"
5585 echo "/usr/ucb/cc. You should change your PATH or CC "
5586 echo "variable and rerun configure."
5587 else
5588 echo "Warning: compilation may fail because you're using"
5589 echo "/usr/ucb/cc, when you should use the C compiler from"
5590 echo "$could_use. You should change your"
5591 echo "PATH or CC variable and rerun configure."
5592 fi
5593 fi
5594 ;;
5595 esac
5596
5597 # Decide which environment variable is used to find dynamic libraries.
5598 case "${host}" in
5599 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5600 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5601 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
5602 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5603 esac
5604
5605 # On systems where the dynamic library environment variable is PATH,
5606 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
5607 # built executables to PATH.
5608 if test "$RPATH_ENVVAR" = PATH; then
5609 GCC_SHLIB_SUBDIR=/shlib
5610 else
5611 GCC_SHLIB_SUBDIR=
5612 fi
5613
5614 # Record target_configdirs and the configure arguments for target and
5615 # build configuration in Makefile.
5616 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5617 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5618
5619 # Determine whether gdb needs tk/tcl or not.
5620 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5621 # and in that case we want gdb to be built without tk. Ugh!
5622 # In fact I believe gdb is the *only* package directly dependent on tk,
5623 # so we should be able to put the 'maybe's in unconditionally and
5624 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5625 # 100% sure that that's safe though.
5626
5627 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5628 case "$enable_gdbtk" in
5629 no)
5630 GDB_TK="" ;;
5631 yes)
5632 GDB_TK="${gdb_tk}" ;;
5633 *)
5634 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5635 # distro. Eventually someone will fix this and move Insight, nee
5636 # gdbtk to a separate directory.
5637 if test -d ${srcdir}/gdb/gdbtk ; then
5638 GDB_TK="${gdb_tk}"
5639 else
5640 GDB_TK=""
5641 fi
5642 ;;
5643 esac
5644 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5645 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5646
5647 # Strip out unwanted targets.
5648
5649 # While at that, we remove Makefiles if we were started for recursive
5650 # configuration, so that the top-level Makefile reconfigures them,
5651 # like we used to do when configure itself was recursive.
5652
5653 # Loop over modules. $extrasub must be used with care, limiting as
5654 # much as possible the usage of range addresses. That's because autoconf
5655 # splits the sed script to overcome limits in the number of commands,
5656 # and relying on carefully-timed sed passes may turn out to be very hard
5657 # to maintain later. In this particular case, you just have to be careful
5658 # not to nest @if/@endif pairs, because configure will not warn you at all.
5659
5660 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5661 if test "${enable_bootstrap+set}" = set; then
5662 enableval="$enable_bootstrap"
5663
5664 else
5665 enable_bootstrap=default
5666 fi;
5667
5668 # Issue errors and warnings for invalid/strange bootstrap combinations.
5669 case "$configdirs" in
5670 *gcc*) have_compiler=yes ;;
5671 *) have_compiler=no ;;
5672 esac
5673
5674 case "$have_compiler:$host:$target:$enable_bootstrap" in
5675 *:*:*:no) ;;
5676
5677 # Default behavior. Enable bootstrap if we have a compiler
5678 # and we are in a native configuration.
5679 yes:$build:$build:default)
5680 enable_bootstrap=yes ;;
5681
5682 *:*:*:default)
5683 enable_bootstrap=no ;;
5684
5685 # We have a compiler and we are in a native configuration, bootstrap is ok
5686 yes:$build:$build:yes)
5687 ;;
5688
5689 # Other configurations, but we have a compiler. Assume the user knows
5690 # what he's doing.
5691 yes:*:*:yes)
5692 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5693 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5694 ;;
5695
5696 # No compiler: if they passed --enable-bootstrap explicitly, fail
5697 no:*:*:yes)
5698 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5699 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5700 { (exit 1); exit 1; }; } ;;
5701
5702 # Fail if wrong command line
5703 *)
5704 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5705 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5706 { (exit 1); exit 1; }; }
5707 ;;
5708 esac
5709
5710 # Adjust the toplevel makefile according to whether bootstrap was selected.
5711 case "$enable_bootstrap" in
5712 yes)
5713 bootstrap_suffix=bootstrap ;;
5714 no)
5715 bootstrap_suffix=no-bootstrap ;;
5716 esac
5717
5718 for module in ${build_configdirs} ; do
5719 if test -z "${no_recursion}" \
5720 && test -f ${build_subdir}/${module}/Makefile; then
5721 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5722 rm -f ${build_subdir}/${module}/Makefile
5723 fi
5724 extrasub="$extrasub
5725 /^@if build-$module\$/d
5726 /^@endif build-$module\$/d
5727 /^@if build-$module-$bootstrap_suffix\$/d
5728 /^@endif build-$module-$bootstrap_suffix\$/d"
5729 done
5730 for module in ${configdirs} ; do
5731 if test -z "${no_recursion}"; then
5732 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5733 if test -f ${file}; then
5734 echo 1>&2 "*** removing ${file} to force reconfigure"
5735 rm -f ${file}
5736 fi
5737 done
5738 fi
5739 extrasub="$extrasub
5740 /^@if $module\$/d
5741 /^@endif $module\$/d
5742 /^@if $module-$bootstrap_suffix\$/d
5743 /^@endif $module-$bootstrap_suffix\$/d"
5744 done
5745 for module in ${target_configdirs} ; do
5746 if test -z "${no_recursion}" \
5747 && test -f ${target_subdir}/${module}/Makefile; then
5748 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5749 rm -f ${target_subdir}/${module}/Makefile
5750 fi
5751 extrasub="$extrasub
5752 /^@if target-$module\$/d
5753 /^@endif target-$module\$/d
5754 /^@if target-$module-$bootstrap_suffix\$/d
5755 /^@endif target-$module-$bootstrap_suffix\$/d"
5756 done
5757
5758 extrasub="$extrasub
5759 /^@if /,/^@endif /d"
5760
5761 # Create the serialization dependencies. This uses a temporary file.
5762
5763 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5764 if test "${enable_serial_configure+set}" = set; then
5765 enableval="$enable_serial_configure"
5766
5767 fi;
5768
5769 case ${enable_serial_configure} in
5770 yes)
5771 enable_serial_build_configure=yes
5772 enable_serial_host_configure=yes
5773 enable_serial_target_configure=yes
5774 ;;
5775 esac
5776
5777 # These force 'configure's to be done one at a time, to avoid problems
5778 # with contention over a shared config.cache.
5779 rm -f serdep.tmp
5780 echo '# serdep.tmp' > serdep.tmp
5781 olditem=
5782 test "x${enable_serial_build_configure}" = xyes &&
5783 for item in ${build_configdirs} ; do
5784 case ${olditem} in
5785 "") ;;
5786 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5787 esac
5788 olditem=${item}
5789 done
5790 olditem=
5791 test "x${enable_serial_host_configure}" = xyes &&
5792 for item in ${configdirs} ; do
5793 case ${olditem} in
5794 "") ;;
5795 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5796 esac
5797 olditem=${item}
5798 done
5799 olditem=
5800 test "x${enable_serial_target_configure}" = xyes &&
5801 for item in ${target_configdirs} ; do
5802 case ${olditem} in
5803 "") ;;
5804 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5805 esac
5806 olditem=${item}
5807 done
5808 serialization_dependencies=serdep.tmp
5809
5810
5811 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5812 # target, nonopt, and variable assignments. These are the ones we
5813 # might not want to pass down to subconfigures. Also strip
5814 # program-prefix, program-suffix, and program-transform-name, so that
5815 # we can pass down a consistent program-transform-name.
5816 baseargs=
5817 keep_next=no
5818 skip_next=no
5819 eval "set -- $ac_configure_args"
5820 for ac_arg
5821 do
5822 if test X"$skip_next" = X"yes"; then
5823 skip_next=no
5824 continue
5825 fi
5826 if test X"$keep_next" = X"yes"; then
5827 case $ac_arg in
5828 *\'*)
5829 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5830 esac
5831 baseargs="$baseargs '$ac_arg'"
5832 keep_next=no
5833 continue
5834 fi
5835
5836 # Handle separated arguments. Based on the logic generated by
5837 # autoconf 2.59.
5838 case $ac_arg in
5839 *=* | --config-cache | -C | -disable-* | --disable-* \
5840 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5841 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5842 | -with-* | --with-* | -without-* | --without-* | --x)
5843 separate_arg=no
5844 ;;
5845 -*)
5846 separate_arg=yes
5847 ;;
5848 *)
5849 separate_arg=no
5850 ;;
5851 esac
5852
5853 case "$ac_arg" in
5854 --no*)
5855 continue
5856 ;;
5857 --c* | \
5858 --sr* | \
5859 --ho* | \
5860 --bu* | \
5861 --t* | \
5862 --program-* | \
5863 -cache_file* | \
5864 -srcdir* | \
5865 -host* | \
5866 -build* | \
5867 -target* | \
5868 -program-prefix* | \
5869 -program-suffix* | \
5870 -program-transform-name* )
5871 skip_next=$separate_arg
5872 continue
5873 ;;
5874 -*)
5875 # An option. Add it.
5876 case $ac_arg in
5877 *\'*)
5878 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5879 esac
5880 baseargs="$baseargs '$ac_arg'"
5881 keep_next=$separate_arg
5882 ;;
5883 *)
5884 # Either a variable assignment, or a nonopt (triplet). Don't
5885 # pass it down; let the Makefile handle this.
5886 continue
5887 ;;
5888 esac
5889 done
5890 # Remove the initial space we just introduced and, as these will be
5891 # expanded by make, quote '$'.
5892 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5893
5894 # Add in --program-transform-name, after --program-prefix and
5895 # --program-suffix have been applied to it. Autoconf has already
5896 # doubled dollar signs and backslashes in program_transform_name; we want
5897 # the backslashes un-doubled, and then the entire thing wrapped in single
5898 # quotes, because this will be expanded first by make and then by the shell.
5899 # Also, because we want to override the logic in subdir configure scripts to
5900 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5901 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5902 ${program_transform_name}
5903 EOF_SED
5904 gcc_transform_name=`cat conftestsed.out`
5905 rm -f conftestsed.out
5906 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5907 if test "$silent" = yes; then
5908 baseargs="$baseargs --silent"
5909 fi
5910
5911 # For the build-side libraries, we just need to pretend we're native,
5912 # and not use the same cache file. Multilibs are neither needed nor
5913 # desired.
5914 build_configargs="--cache-file=../config.cache ${baseargs}"
5915
5916 # For host modules, accept cache file option, or specification as blank.
5917 case "${cache_file}" in
5918 "") # empty
5919 cache_file_option="" ;;
5920 /* | [A-Za-z]:[\\/]* ) # absolute path
5921 cache_file_option="--cache-file=${cache_file}" ;;
5922 *) # relative path
5923 cache_file_option="--cache-file=../${cache_file}" ;;
5924 esac
5925
5926 # Host dirs don't like to share a cache file either, horribly enough.
5927 # This seems to be due to autoconf 2.5x stupidity.
5928 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5929
5930 target_configargs=${baseargs}
5931
5932 # Passing a --with-cross-host argument lets the target libraries know
5933 # whether they are being built with a cross-compiler or being built
5934 # native. However, it would be better to use other mechanisms to make the
5935 # sorts of decisions they want to make on this basis. Please consider
5936 # this option to be deprecated. FIXME.
5937 if test x${is_cross_compiler} = xyes ; then
5938 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5939 fi
5940
5941 # Default to --enable-multilib.
5942 if test x${enable_multilib} = x ; then
5943 target_configargs="--enable-multilib ${target_configargs}"
5944 fi
5945
5946 # Pass --with-newlib if appropriate. Note that target_configdirs has
5947 # changed from the earlier setting of with_newlib.
5948 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5949 target_configargs="--with-newlib ${target_configargs}"
5950 fi
5951
5952 # Different target subdirs use different values of certain variables
5953 # (notably CXX). Worse, multilibs use *lots* of different values.
5954 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5955 # it doesn't automatically accept command-line overrides of them.
5956 # This means it's not safe for target subdirs to share a cache file,
5957 # which is disgusting, but there you have it. Hopefully this can be
5958 # fixed in future. It's still worthwhile to use a cache file for each
5959 # directory. I think.
5960
5961 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5962 # We need to pass --target, as newer autoconf's requires consistency
5963 # for target_alias and gcc doesn't manage it consistently.
5964 target_configargs="--cache-file=./config.cache ${target_configargs}"
5965
5966 FLAGS_FOR_TARGET=
5967 case " $target_configdirs " in
5968 *" newlib "*)
5969 case " $target_configargs " in
5970 *" --with-newlib "*)
5971 case "$target" in
5972 *-cygwin*)
5973 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' ;;
5974 esac
5975
5976 # If we're not building GCC, don't discard standard headers.
5977 if test -d ${srcdir}/gcc; then
5978 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5979
5980 if test "${build}" != "${host}"; then
5981 # On Canadian crosses, CC_FOR_TARGET will have already been set
5982 # by `configure', so we won't have an opportunity to add -Bgcc/
5983 # to it. This is right: we don't want to search that directory
5984 # for binaries, but we want the header files in there, so add
5985 # them explicitly.
5986 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5987
5988 # Someone might think of using the pre-installed headers on
5989 # Canadian crosses, in case the installed compiler is not fully
5990 # compatible with the compiler being built. In this case, it
5991 # would be better to flag an error than risking having
5992 # incompatible object files being constructed. We can't
5993 # guarantee that an error will be flagged, but let's hope the
5994 # compiler will do it, when presented with incompatible header
5995 # files.
5996 fi
5997 fi
5998
5999 case "${target}-${is_cross_compiler}" in
6000 i[3456789]86-*-linux*-no)
6001 # Here host == target, so we don't need to build gcc,
6002 # so we don't want to discard standard headers.
6003 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6004 ;;
6005 *)
6006 # If we're building newlib, use its generic headers last, but search
6007 # for any libc-related directories first (so make it the last -B
6008 # switch).
6009 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6010
6011 # If we're building libgloss, find the startup file, simulator library
6012 # and linker script.
6013 case " $target_configdirs " in
6014 *" libgloss "*)
6015 # Look for startup file, simulator library and maybe linker script.
6016 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6017 # Look for libnosys.a in case the target needs it.
6018 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6019 # Most targets have the linker script in the source directory.
6020 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6021 ;;
6022 esac
6023 ;;
6024 esac
6025 ;;
6026 esac
6027 ;;
6028 esac
6029 case "$target" in
6030 *-mingw*)
6031 # Can't be handled as Cygwin above since Mingw does not use newlib.
6032 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' ;;
6033 esac
6034
6035 # Allow the user to override the flags for
6036 # our build compiler if desired.
6037 if test x"${build}" = x"${host}" ; then
6038 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6039 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6040 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6041 fi
6042
6043 # On Canadian crosses, we'll be searching the right directories for
6044 # the previously-installed cross compiler, so don't bother to add
6045 # flags for directories within the install tree of the compiler
6046 # being built; programs in there won't even run.
6047 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6048 # Search for pre-installed headers if nothing else fits.
6049 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6050 fi
6051
6052 if test "x${use_gnu_ld}" = x &&
6053 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6054 # Arrange for us to find uninstalled linker scripts.
6055 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6056 fi
6057
6058 # Search for other target-specific linker scripts and such.
6059 case "${target}" in
6060 mep*)
6061 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6062 ;;
6063 esac
6064
6065 # Makefile fragments.
6066 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6067 do
6068 eval fragval=\$$frag
6069 if test $fragval != /dev/null; then
6070 eval $frag=${srcdir}/$fragval
6071 fi
6072 done
6073
6074
6075
6076
6077
6078 # Miscellanea: directories, flags, etc.
6079
6080
6081
6082
6083
6084
6085
6086
6087 # Build module lists & subconfigure args.
6088
6089
6090
6091 # Host module lists & subconfigure args.
6092
6093
6094
6095 # Target module lists & subconfigure args.
6096
6097
6098
6099 # Build tools.
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117 # Generate default definitions for YACC, M4, LEX and other programs that run
6118 # on the build machine. These are used if the Makefile can't locate these
6119 # programs in objdir.
6120 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6121
6122 for ac_prog in 'bison -y' byacc yacc
6123 do
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125 set dummy $ac_prog; ac_word=$2
6126 echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6128 if test "${ac_cv_prog_YACC+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 if test -n "$YACC"; then
6132 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_YACC="$ac_prog"
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145 done
6146 done
6147
6148 fi
6149 fi
6150 YACC=$ac_cv_prog_YACC
6151 if test -n "$YACC"; then
6152 echo "$as_me:$LINENO: result: $YACC" >&5
6153 echo "${ECHO_T}$YACC" >&6
6154 else
6155 echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6
6157 fi
6158
6159 test -n "$YACC" && break
6160 done
6161 test -n "$YACC" || YACC="$MISSING bison -y"
6162
6163 case " $build_configdirs " in
6164 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6165 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6166 esac
6167
6168 for ac_prog in bison
6169 do
6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
6171 set dummy $ac_prog; ac_word=$2
6172 echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174 if test "${ac_cv_prog_BISON+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177 if test -n "$BISON"; then
6178 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_BISON="$ac_prog"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191 done
6192 done
6193
6194 fi
6195 fi
6196 BISON=$ac_cv_prog_BISON
6197 if test -n "$BISON"; then
6198 echo "$as_me:$LINENO: result: $BISON" >&5
6199 echo "${ECHO_T}$BISON" >&6
6200 else
6201 echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6
6203 fi
6204
6205 test -n "$BISON" && break
6206 done
6207 test -n "$BISON" || BISON="$MISSING bison"
6208
6209 case " $build_configdirs " in
6210 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6211 esac
6212
6213 for ac_prog in gm4 gnum4 m4
6214 do
6215 # Extract the first word of "$ac_prog", so it can be a program name with args.
6216 set dummy $ac_prog; ac_word=$2
6217 echo "$as_me:$LINENO: checking for $ac_word" >&5
6218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6219 if test "${ac_cv_prog_M4+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 if test -n "$M4"; then
6223 ac_cv_prog_M4="$M4" # Let the user override the test.
6224 else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232 ac_cv_prog_M4="$ac_prog"
6233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 break 2
6235 fi
6236 done
6237 done
6238
6239 fi
6240 fi
6241 M4=$ac_cv_prog_M4
6242 if test -n "$M4"; then
6243 echo "$as_me:$LINENO: result: $M4" >&5
6244 echo "${ECHO_T}$M4" >&6
6245 else
6246 echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6
6248 fi
6249
6250 test -n "$M4" && break
6251 done
6252 test -n "$M4" || M4="$MISSING m4"
6253
6254 case " $build_configdirs " in
6255 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6256 esac
6257
6258 for ac_prog in flex lex
6259 do
6260 # Extract the first word of "$ac_prog", so it can be a program name with args.
6261 set dummy $ac_prog; ac_word=$2
6262 echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6264 if test "${ac_cv_prog_LEX+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 if test -n "$LEX"; then
6268 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_LEX="$ac_prog"
6278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 break 2
6280 fi
6281 done
6282 done
6283
6284 fi
6285 fi
6286 LEX=$ac_cv_prog_LEX
6287 if test -n "$LEX"; then
6288 echo "$as_me:$LINENO: result: $LEX" >&5
6289 echo "${ECHO_T}$LEX" >&6
6290 else
6291 echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6
6293 fi
6294
6295 test -n "$LEX" && break
6296 done
6297 test -n "$LEX" || LEX="$MISSING flex"
6298
6299 case " $build_configdirs " in
6300 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6301 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6302 esac
6303
6304 for ac_prog in flex
6305 do
6306 # Extract the first word of "$ac_prog", so it can be a program name with args.
6307 set dummy $ac_prog; ac_word=$2
6308 echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6310 if test "${ac_cv_prog_FLEX+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313 if test -n "$FLEX"; then
6314 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323 ac_cv_prog_FLEX="$ac_prog"
6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6326 fi
6327 done
6328 done
6329
6330 fi
6331 fi
6332 FLEX=$ac_cv_prog_FLEX
6333 if test -n "$FLEX"; then
6334 echo "$as_me:$LINENO: result: $FLEX" >&5
6335 echo "${ECHO_T}$FLEX" >&6
6336 else
6337 echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6
6339 fi
6340
6341 test -n "$FLEX" && break
6342 done
6343 test -n "$FLEX" || FLEX="$MISSING flex"
6344
6345 case " $build_configdirs " in
6346 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6347 esac
6348
6349 for ac_prog in makeinfo
6350 do
6351 # Extract the first word of "$ac_prog", so it can be a program name with args.
6352 set dummy $ac_prog; ac_word=$2
6353 echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6355 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 if test -n "$MAKEINFO"; then
6359 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368 ac_cv_prog_MAKEINFO="$ac_prog"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372 done
6373 done
6374
6375 fi
6376 fi
6377 MAKEINFO=$ac_cv_prog_MAKEINFO
6378 if test -n "$MAKEINFO"; then
6379 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6380 echo "${ECHO_T}$MAKEINFO" >&6
6381 else
6382 echo "$as_me:$LINENO: result: no" >&5
6383 echo "${ECHO_T}no" >&6
6384 fi
6385
6386 test -n "$MAKEINFO" && break
6387 done
6388 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6389
6390 case " $build_configdirs " in
6391 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6392 *)
6393
6394 # For an installed makeinfo, we require it to be from texinfo 4.6 or
6395 # higher, else we use the "missing" dummy.
6396 if ${MAKEINFO} --version \
6397 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
6398 :
6399 else
6400 MAKEINFO="$MISSING makeinfo"
6401 fi
6402 ;;
6403
6404 esac
6405
6406 # FIXME: expect and dejagnu may become build tools?
6407
6408 for ac_prog in expect
6409 do
6410 # Extract the first word of "$ac_prog", so it can be a program name with args.
6411 set dummy $ac_prog; ac_word=$2
6412 echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6414 if test "${ac_cv_prog_EXPECT+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417 if test -n "$EXPECT"; then
6418 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427 ac_cv_prog_EXPECT="$ac_prog"
6428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 break 2
6430 fi
6431 done
6432 done
6433
6434 fi
6435 fi
6436 EXPECT=$ac_cv_prog_EXPECT
6437 if test -n "$EXPECT"; then
6438 echo "$as_me:$LINENO: result: $EXPECT" >&5
6439 echo "${ECHO_T}$EXPECT" >&6
6440 else
6441 echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6
6443 fi
6444
6445 test -n "$EXPECT" && break
6446 done
6447 test -n "$EXPECT" || EXPECT="expect"
6448
6449 case " $configdirs " in
6450 *" expect "*)
6451 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6452 ;;
6453 esac
6454
6455 for ac_prog in runtest
6456 do
6457 # Extract the first word of "$ac_prog", so it can be a program name with args.
6458 set dummy $ac_prog; ac_word=$2
6459 echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6461 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464 if test -n "$RUNTEST"; then
6465 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474 ac_cv_prog_RUNTEST="$ac_prog"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480
6481 fi
6482 fi
6483 RUNTEST=$ac_cv_prog_RUNTEST
6484 if test -n "$RUNTEST"; then
6485 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6486 echo "${ECHO_T}$RUNTEST" >&6
6487 else
6488 echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6
6490 fi
6491
6492 test -n "$RUNTEST" && break
6493 done
6494 test -n "$RUNTEST" || RUNTEST="runtest"
6495
6496 case " $configdirs " in
6497 *" dejagnu "*)
6498 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6499 ;;
6500 esac
6501
6502
6503 # Host tools.
6504 ncn_tool_prefix=
6505 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6506 ncn_target_tool_prefix=
6507 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6508
6509
6510
6511 if test -n "$AR"; then
6512 ac_cv_prog_AR=$AR
6513 elif test -n "$ac_cv_prog_AR"; then
6514 AR=$ac_cv_prog_AR
6515 fi
6516
6517 if test -n "$ac_cv_prog_AR"; then
6518 for ncn_progname in ar; do
6519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6520 set dummy ${ncn_progname}; ac_word=$2
6521 echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6523 if test "${ac_cv_prog_AR+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526 if test -n "$AR"; then
6527 ac_cv_prog_AR="$AR" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_AR="${ncn_progname}"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540 done
6541 done
6542
6543 fi
6544 fi
6545 AR=$ac_cv_prog_AR
6546 if test -n "$AR"; then
6547 echo "$as_me:$LINENO: result: $AR" >&5
6548 echo "${ECHO_T}$AR" >&6
6549 else
6550 echo "$as_me:$LINENO: result: no" >&5
6551 echo "${ECHO_T}no" >&6
6552 fi
6553
6554 done
6555 fi
6556
6557 for ncn_progname in ar; do
6558 if test -n "$ncn_tool_prefix"; then
6559 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6560 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6561 echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6563 if test "${ac_cv_prog_AR+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 if test -n "$AR"; then
6567 ac_cv_prog_AR="$AR" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6576 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6579 fi
6580 done
6581 done
6582
6583 fi
6584 fi
6585 AR=$ac_cv_prog_AR
6586 if test -n "$AR"; then
6587 echo "$as_me:$LINENO: result: $AR" >&5
6588 echo "${ECHO_T}$AR" >&6
6589 else
6590 echo "$as_me:$LINENO: result: no" >&5
6591 echo "${ECHO_T}no" >&6
6592 fi
6593
6594 fi
6595 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6597 set dummy ${ncn_progname}; ac_word=$2
6598 echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6600 if test "${ac_cv_prog_AR+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603 if test -n "$AR"; then
6604 ac_cv_prog_AR="$AR" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_AR="${ncn_progname}"
6614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617 done
6618 done
6619
6620 fi
6621 fi
6622 AR=$ac_cv_prog_AR
6623 if test -n "$AR"; then
6624 echo "$as_me:$LINENO: result: $AR" >&5
6625 echo "${ECHO_T}$AR" >&6
6626 else
6627 echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6
6629 fi
6630
6631 fi
6632 test -n "$ac_cv_prog_AR" && break
6633 done
6634
6635 if test -z "$ac_cv_prog_AR" ; then
6636 set dummy ar
6637 if test $build = $host ; then
6638 AR="$2"
6639 else
6640 AR="${ncn_tool_prefix}$2"
6641 fi
6642 fi
6643
6644
6645
6646 if test -n "$AS"; then
6647 ac_cv_prog_AS=$AS
6648 elif test -n "$ac_cv_prog_AS"; then
6649 AS=$ac_cv_prog_AS
6650 fi
6651
6652 if test -n "$ac_cv_prog_AS"; then
6653 for ncn_progname in as; do
6654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6655 set dummy ${ncn_progname}; ac_word=$2
6656 echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6658 if test "${ac_cv_prog_AS+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661 if test -n "$AS"; then
6662 ac_cv_prog_AS="$AS" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671 ac_cv_prog_AS="${ncn_progname}"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6674 fi
6675 done
6676 done
6677
6678 fi
6679 fi
6680 AS=$ac_cv_prog_AS
6681 if test -n "$AS"; then
6682 echo "$as_me:$LINENO: result: $AS" >&5
6683 echo "${ECHO_T}$AS" >&6
6684 else
6685 echo "$as_me:$LINENO: result: no" >&5
6686 echo "${ECHO_T}no" >&6
6687 fi
6688
6689 done
6690 fi
6691
6692 for ncn_progname in as; do
6693 if test -n "$ncn_tool_prefix"; then
6694 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6695 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6696 echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6698 if test "${ac_cv_prog_AS+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 if test -n "$AS"; then
6702 ac_cv_prog_AS="$AS" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715 done
6716 done
6717
6718 fi
6719 fi
6720 AS=$ac_cv_prog_AS
6721 if test -n "$AS"; then
6722 echo "$as_me:$LINENO: result: $AS" >&5
6723 echo "${ECHO_T}$AS" >&6
6724 else
6725 echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6
6727 fi
6728
6729 fi
6730 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6732 set dummy ${ncn_progname}; ac_word=$2
6733 echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6735 if test "${ac_cv_prog_AS+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 if test -n "$AS"; then
6739 ac_cv_prog_AS="$AS" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_AS="${ncn_progname}"
6749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752 done
6753 done
6754
6755 fi
6756 fi
6757 AS=$ac_cv_prog_AS
6758 if test -n "$AS"; then
6759 echo "$as_me:$LINENO: result: $AS" >&5
6760 echo "${ECHO_T}$AS" >&6
6761 else
6762 echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6
6764 fi
6765
6766 fi
6767 test -n "$ac_cv_prog_AS" && break
6768 done
6769
6770 if test -z "$ac_cv_prog_AS" ; then
6771 set dummy as
6772 if test $build = $host ; then
6773 AS="$2"
6774 else
6775 AS="${ncn_tool_prefix}$2"
6776 fi
6777 fi
6778
6779
6780
6781 if test -n "$DLLTOOL"; then
6782 ac_cv_prog_DLLTOOL=$DLLTOOL
6783 elif test -n "$ac_cv_prog_DLLTOOL"; then
6784 DLLTOOL=$ac_cv_prog_DLLTOOL
6785 fi
6786
6787 if test -n "$ac_cv_prog_DLLTOOL"; then
6788 for ncn_progname in dlltool; do
6789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6790 set dummy ${ncn_progname}; ac_word=$2
6791 echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6793 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796 if test -n "$DLLTOOL"; then
6797 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6798 else
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6801 do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806 ac_cv_prog_DLLTOOL="${ncn_progname}"
6807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6809 fi
6810 done
6811 done
6812
6813 fi
6814 fi
6815 DLLTOOL=$ac_cv_prog_DLLTOOL
6816 if test -n "$DLLTOOL"; then
6817 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6818 echo "${ECHO_T}$DLLTOOL" >&6
6819 else
6820 echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6
6822 fi
6823
6824 done
6825 fi
6826
6827 for ncn_progname in dlltool; do
6828 if test -n "$ncn_tool_prefix"; then
6829 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6830 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6831 echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6833 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836 if test -n "$DLLTOOL"; then
6837 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850 done
6851 done
6852
6853 fi
6854 fi
6855 DLLTOOL=$ac_cv_prog_DLLTOOL
6856 if test -n "$DLLTOOL"; then
6857 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6858 echo "${ECHO_T}$DLLTOOL" >&6
6859 else
6860 echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6
6862 fi
6863
6864 fi
6865 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6867 set dummy ${ncn_progname}; ac_word=$2
6868 echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6870 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873 if test -n "$DLLTOOL"; then
6874 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_DLLTOOL="${ncn_progname}"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887 done
6888 done
6889
6890 fi
6891 fi
6892 DLLTOOL=$ac_cv_prog_DLLTOOL
6893 if test -n "$DLLTOOL"; then
6894 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6895 echo "${ECHO_T}$DLLTOOL" >&6
6896 else
6897 echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6
6899 fi
6900
6901 fi
6902 test -n "$ac_cv_prog_DLLTOOL" && break
6903 done
6904
6905 if test -z "$ac_cv_prog_DLLTOOL" ; then
6906 set dummy dlltool
6907 if test $build = $host ; then
6908 DLLTOOL="$2"
6909 else
6910 DLLTOOL="${ncn_tool_prefix}$2"
6911 fi
6912 fi
6913
6914
6915
6916 if test -n "$LD"; then
6917 ac_cv_prog_LD=$LD
6918 elif test -n "$ac_cv_prog_LD"; then
6919 LD=$ac_cv_prog_LD
6920 fi
6921
6922 if test -n "$ac_cv_prog_LD"; then
6923 for ncn_progname in ld; do
6924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6925 set dummy ${ncn_progname}; ac_word=$2
6926 echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6928 if test "${ac_cv_prog_LD+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 if test -n "$LD"; then
6932 ac_cv_prog_LD="$LD" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_LD="${ncn_progname}"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947
6948 fi
6949 fi
6950 LD=$ac_cv_prog_LD
6951 if test -n "$LD"; then
6952 echo "$as_me:$LINENO: result: $LD" >&5
6953 echo "${ECHO_T}$LD" >&6
6954 else
6955 echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6
6957 fi
6958
6959 done
6960 fi
6961
6962 for ncn_progname in ld; do
6963 if test -n "$ncn_tool_prefix"; then
6964 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6965 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6966 echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6968 if test "${ac_cv_prog_LD+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 if test -n "$LD"; then
6972 ac_cv_prog_LD="$LD" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6981 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985 done
6986 done
6987
6988 fi
6989 fi
6990 LD=$ac_cv_prog_LD
6991 if test -n "$LD"; then
6992 echo "$as_me:$LINENO: result: $LD" >&5
6993 echo "${ECHO_T}$LD" >&6
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6
6997 fi
6998
6999 fi
7000 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7002 set dummy ${ncn_progname}; ac_word=$2
7003 echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7005 if test "${ac_cv_prog_LD+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008 if test -n "$LD"; then
7009 ac_cv_prog_LD="$LD" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_LD="${ncn_progname}"
7019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022 done
7023 done
7024
7025 fi
7026 fi
7027 LD=$ac_cv_prog_LD
7028 if test -n "$LD"; then
7029 echo "$as_me:$LINENO: result: $LD" >&5
7030 echo "${ECHO_T}$LD" >&6
7031 else
7032 echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6
7034 fi
7035
7036 fi
7037 test -n "$ac_cv_prog_LD" && break
7038 done
7039
7040 if test -z "$ac_cv_prog_LD" ; then
7041 set dummy ld
7042 if test $build = $host ; then
7043 LD="$2"
7044 else
7045 LD="${ncn_tool_prefix}$2"
7046 fi
7047 fi
7048
7049
7050
7051 if test -n "$LIPO"; then
7052 ac_cv_prog_LIPO=$LIPO
7053 elif test -n "$ac_cv_prog_LIPO"; then
7054 LIPO=$ac_cv_prog_LIPO
7055 fi
7056
7057 if test -n "$ac_cv_prog_LIPO"; then
7058 for ncn_progname in lipo; do
7059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7060 set dummy ${ncn_progname}; ac_word=$2
7061 echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7063 if test "${ac_cv_prog_LIPO+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 if test -n "$LIPO"; then
7067 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_LIPO="${ncn_progname}"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080 done
7081 done
7082
7083 fi
7084 fi
7085 LIPO=$ac_cv_prog_LIPO
7086 if test -n "$LIPO"; then
7087 echo "$as_me:$LINENO: result: $LIPO" >&5
7088 echo "${ECHO_T}$LIPO" >&6
7089 else
7090 echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6
7092 fi
7093
7094 done
7095 fi
7096
7097 for ncn_progname in lipo; do
7098 if test -n "$ncn_tool_prefix"; then
7099 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7100 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7101 echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7103 if test "${ac_cv_prog_LIPO+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 if test -n "$LIPO"; then
7107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7119 fi
7120 done
7121 done
7122
7123 fi
7124 fi
7125 LIPO=$ac_cv_prog_LIPO
7126 if test -n "$LIPO"; then
7127 echo "$as_me:$LINENO: result: $LIPO" >&5
7128 echo "${ECHO_T}$LIPO" >&6
7129 else
7130 echo "$as_me:$LINENO: result: no" >&5
7131 echo "${ECHO_T}no" >&6
7132 fi
7133
7134 fi
7135 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7137 set dummy ${ncn_progname}; ac_word=$2
7138 echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7140 if test "${ac_cv_prog_LIPO+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143 if test -n "$LIPO"; then
7144 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153 ac_cv_prog_LIPO="${ncn_progname}"
7154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157 done
7158 done
7159
7160 fi
7161 fi
7162 LIPO=$ac_cv_prog_LIPO
7163 if test -n "$LIPO"; then
7164 echo "$as_me:$LINENO: result: $LIPO" >&5
7165 echo "${ECHO_T}$LIPO" >&6
7166 else
7167 echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6
7169 fi
7170
7171 fi
7172 test -n "$ac_cv_prog_LIPO" && break
7173 done
7174
7175 if test -z "$ac_cv_prog_LIPO" ; then
7176 set dummy lipo
7177 if test $build = $host ; then
7178 LIPO="$2"
7179 else
7180 LIPO="${ncn_tool_prefix}$2"
7181 fi
7182 fi
7183
7184
7185
7186 if test -n "$NM"; then
7187 ac_cv_prog_NM=$NM
7188 elif test -n "$ac_cv_prog_NM"; then
7189 NM=$ac_cv_prog_NM
7190 fi
7191
7192 if test -n "$ac_cv_prog_NM"; then
7193 for ncn_progname in nm; do
7194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7195 set dummy ${ncn_progname}; ac_word=$2
7196 echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7198 if test "${ac_cv_prog_NM+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201 if test -n "$NM"; then
7202 ac_cv_prog_NM="$NM" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_NM="${ncn_progname}"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215 done
7216 done
7217
7218 fi
7219 fi
7220 NM=$ac_cv_prog_NM
7221 if test -n "$NM"; then
7222 echo "$as_me:$LINENO: result: $NM" >&5
7223 echo "${ECHO_T}$NM" >&6
7224 else
7225 echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6
7227 fi
7228
7229 done
7230 fi
7231
7232 for ncn_progname in nm; do
7233 if test -n "$ncn_tool_prefix"; then
7234 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7235 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7236 echo "$as_me:$LINENO: checking for $ac_word" >&5
7237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7238 if test "${ac_cv_prog_NM+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 if test -n "$NM"; then
7242 ac_cv_prog_NM="$NM" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7254 fi
7255 done
7256 done
7257
7258 fi
7259 fi
7260 NM=$ac_cv_prog_NM
7261 if test -n "$NM"; then
7262 echo "$as_me:$LINENO: result: $NM" >&5
7263 echo "${ECHO_T}$NM" >&6
7264 else
7265 echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6
7267 fi
7268
7269 fi
7270 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7272 set dummy ${ncn_progname}; ac_word=$2
7273 echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7275 if test "${ac_cv_prog_NM+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 if test -n "$NM"; then
7279 ac_cv_prog_NM="$NM" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_NM="${ncn_progname}"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294
7295 fi
7296 fi
7297 NM=$ac_cv_prog_NM
7298 if test -n "$NM"; then
7299 echo "$as_me:$LINENO: result: $NM" >&5
7300 echo "${ECHO_T}$NM" >&6
7301 else
7302 echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304 fi
7305
7306 fi
7307 test -n "$ac_cv_prog_NM" && break
7308 done
7309
7310 if test -z "$ac_cv_prog_NM" ; then
7311 set dummy nm
7312 if test $build = $host ; then
7313 NM="$2"
7314 else
7315 NM="${ncn_tool_prefix}$2"
7316 fi
7317 fi
7318
7319
7320
7321 if test -n "$RANLIB"; then
7322 ac_cv_prog_RANLIB=$RANLIB
7323 elif test -n "$ac_cv_prog_RANLIB"; then
7324 RANLIB=$ac_cv_prog_RANLIB
7325 fi
7326
7327 if test -n "$ac_cv_prog_RANLIB"; then
7328 for ncn_progname in ranlib; do
7329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7330 set dummy ${ncn_progname}; ac_word=$2
7331 echo "$as_me:$LINENO: checking for $ac_word" >&5
7332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7333 if test "${ac_cv_prog_RANLIB+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336 if test -n "$RANLIB"; then
7337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7338 else
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7341 do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_RANLIB="${ncn_progname}"
7347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350 done
7351 done
7352
7353 fi
7354 fi
7355 RANLIB=$ac_cv_prog_RANLIB
7356 if test -n "$RANLIB"; then
7357 echo "$as_me:$LINENO: result: $RANLIB" >&5
7358 echo "${ECHO_T}$RANLIB" >&6
7359 else
7360 echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6
7362 fi
7363
7364 done
7365 fi
7366
7367 for ncn_progname in ranlib; do
7368 if test -n "$ncn_tool_prefix"; then
7369 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7370 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7371 echo "$as_me:$LINENO: checking for $ac_word" >&5
7372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7373 if test "${ac_cv_prog_RANLIB+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 if test -n "$RANLIB"; then
7377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7389 fi
7390 done
7391 done
7392
7393 fi
7394 fi
7395 RANLIB=$ac_cv_prog_RANLIB
7396 if test -n "$RANLIB"; then
7397 echo "$as_me:$LINENO: result: $RANLIB" >&5
7398 echo "${ECHO_T}$RANLIB" >&6
7399 else
7400 echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6
7402 fi
7403
7404 fi
7405 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7407 set dummy ${ncn_progname}; ac_word=$2
7408 echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410 if test "${ac_cv_prog_RANLIB+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413 if test -n "$RANLIB"; then
7414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_RANLIB="${ncn_progname}"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427 done
7428 done
7429
7430 fi
7431 fi
7432 RANLIB=$ac_cv_prog_RANLIB
7433 if test -n "$RANLIB"; then
7434 echo "$as_me:$LINENO: result: $RANLIB" >&5
7435 echo "${ECHO_T}$RANLIB" >&6
7436 else
7437 echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7439 fi
7440
7441 fi
7442 test -n "$ac_cv_prog_RANLIB" && break
7443 done
7444
7445 if test -z "$ac_cv_prog_RANLIB" ; then
7446 RANLIB=":"
7447 fi
7448
7449
7450
7451 if test -n "$STRIP"; then
7452 ac_cv_prog_STRIP=$STRIP
7453 elif test -n "$ac_cv_prog_STRIP"; then
7454 STRIP=$ac_cv_prog_STRIP
7455 fi
7456
7457 if test -n "$ac_cv_prog_STRIP"; then
7458 for ncn_progname in strip; do
7459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7460 set dummy ${ncn_progname}; ac_word=$2
7461 echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7463 if test "${ac_cv_prog_STRIP+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466 if test -n "$STRIP"; then
7467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_STRIP="${ncn_progname}"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480 done
7481 done
7482
7483 fi
7484 fi
7485 STRIP=$ac_cv_prog_STRIP
7486 if test -n "$STRIP"; then
7487 echo "$as_me:$LINENO: result: $STRIP" >&5
7488 echo "${ECHO_T}$STRIP" >&6
7489 else
7490 echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7492 fi
7493
7494 done
7495 fi
7496
7497 for ncn_progname in strip; do
7498 if test -n "$ncn_tool_prefix"; then
7499 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7500 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7501 echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7503 if test "${ac_cv_prog_STRIP+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506 if test -n "$STRIP"; then
7507 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520 done
7521 done
7522
7523 fi
7524 fi
7525 STRIP=$ac_cv_prog_STRIP
7526 if test -n "$STRIP"; then
7527 echo "$as_me:$LINENO: result: $STRIP" >&5
7528 echo "${ECHO_T}$STRIP" >&6
7529 else
7530 echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7532 fi
7533
7534 fi
7535 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7537 set dummy ${ncn_progname}; ac_word=$2
7538 echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7540 if test "${ac_cv_prog_STRIP+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 if test -n "$STRIP"; then
7544 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7553 ac_cv_prog_STRIP="${ncn_progname}"
7554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7556 fi
7557 done
7558 done
7559
7560 fi
7561 fi
7562 STRIP=$ac_cv_prog_STRIP
7563 if test -n "$STRIP"; then
7564 echo "$as_me:$LINENO: result: $STRIP" >&5
7565 echo "${ECHO_T}$STRIP" >&6
7566 else
7567 echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6
7569 fi
7570
7571 fi
7572 test -n "$ac_cv_prog_STRIP" && break
7573 done
7574
7575 if test -z "$ac_cv_prog_STRIP" ; then
7576 STRIP=":"
7577 fi
7578
7579
7580
7581 if test -n "$WINDRES"; then
7582 ac_cv_prog_WINDRES=$WINDRES
7583 elif test -n "$ac_cv_prog_WINDRES"; then
7584 WINDRES=$ac_cv_prog_WINDRES
7585 fi
7586
7587 if test -n "$ac_cv_prog_WINDRES"; then
7588 for ncn_progname in windres; do
7589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7590 set dummy ${ncn_progname}; ac_word=$2
7591 echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593 if test "${ac_cv_prog_WINDRES+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596 if test -n "$WINDRES"; then
7597 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_WINDRES="${ncn_progname}"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7609 fi
7610 done
7611 done
7612
7613 fi
7614 fi
7615 WINDRES=$ac_cv_prog_WINDRES
7616 if test -n "$WINDRES"; then
7617 echo "$as_me:$LINENO: result: $WINDRES" >&5
7618 echo "${ECHO_T}$WINDRES" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6
7622 fi
7623
7624 done
7625 fi
7626
7627 for ncn_progname in windres; do
7628 if test -n "$ncn_tool_prefix"; then
7629 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7630 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7631 echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7633 if test "${ac_cv_prog_WINDRES+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636 if test -n "$WINDRES"; then
7637 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650 done
7651 done
7652
7653 fi
7654 fi
7655 WINDRES=$ac_cv_prog_WINDRES
7656 if test -n "$WINDRES"; then
7657 echo "$as_me:$LINENO: result: $WINDRES" >&5
7658 echo "${ECHO_T}$WINDRES" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6
7662 fi
7663
7664 fi
7665 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7667 set dummy ${ncn_progname}; ac_word=$2
7668 echo "$as_me:$LINENO: checking for $ac_word" >&5
7669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7670 if test "${ac_cv_prog_WINDRES+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673 if test -n "$WINDRES"; then
7674 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7683 ac_cv_prog_WINDRES="${ncn_progname}"
7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7686 fi
7687 done
7688 done
7689
7690 fi
7691 fi
7692 WINDRES=$ac_cv_prog_WINDRES
7693 if test -n "$WINDRES"; then
7694 echo "$as_me:$LINENO: result: $WINDRES" >&5
7695 echo "${ECHO_T}$WINDRES" >&6
7696 else
7697 echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6
7699 fi
7700
7701 fi
7702 test -n "$ac_cv_prog_WINDRES" && break
7703 done
7704
7705 if test -z "$ac_cv_prog_WINDRES" ; then
7706 set dummy windres
7707 if test $build = $host ; then
7708 WINDRES="$2"
7709 else
7710 WINDRES="${ncn_tool_prefix}$2"
7711 fi
7712 fi
7713
7714
7715
7716 if test -n "$WINDMC"; then
7717 ac_cv_prog_WINDMC=$WINDMC
7718 elif test -n "$ac_cv_prog_WINDMC"; then
7719 WINDMC=$ac_cv_prog_WINDMC
7720 fi
7721
7722 if test -n "$ac_cv_prog_WINDMC"; then
7723 for ncn_progname in windmc; do
7724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7725 set dummy ${ncn_progname}; ac_word=$2
7726 echo "$as_me:$LINENO: checking for $ac_word" >&5
7727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7728 if test "${ac_cv_prog_WINDMC+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731 if test -n "$WINDMC"; then
7732 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741 ac_cv_prog_WINDMC="${ncn_progname}"
7742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745 done
7746 done
7747
7748 fi
7749 fi
7750 WINDMC=$ac_cv_prog_WINDMC
7751 if test -n "$WINDMC"; then
7752 echo "$as_me:$LINENO: result: $WINDMC" >&5
7753 echo "${ECHO_T}$WINDMC" >&6
7754 else
7755 echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6
7757 fi
7758
7759 done
7760 fi
7761
7762 for ncn_progname in windmc; do
7763 if test -n "$ncn_tool_prefix"; then
7764 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7765 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7766 echo "$as_me:$LINENO: checking for $ac_word" >&5
7767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7768 if test "${ac_cv_prog_WINDMC+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771 if test -n "$WINDMC"; then
7772 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785 done
7786 done
7787
7788 fi
7789 fi
7790 WINDMC=$ac_cv_prog_WINDMC
7791 if test -n "$WINDMC"; then
7792 echo "$as_me:$LINENO: result: $WINDMC" >&5
7793 echo "${ECHO_T}$WINDMC" >&6
7794 else
7795 echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6
7797 fi
7798
7799 fi
7800 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7802 set dummy ${ncn_progname}; ac_word=$2
7803 echo "$as_me:$LINENO: checking for $ac_word" >&5
7804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7805 if test "${ac_cv_prog_WINDMC+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808 if test -n "$WINDMC"; then
7809 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_WINDMC="${ncn_progname}"
7819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822 done
7823 done
7824
7825 fi
7826 fi
7827 WINDMC=$ac_cv_prog_WINDMC
7828 if test -n "$WINDMC"; then
7829 echo "$as_me:$LINENO: result: $WINDMC" >&5
7830 echo "${ECHO_T}$WINDMC" >&6
7831 else
7832 echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6
7834 fi
7835
7836 fi
7837 test -n "$ac_cv_prog_WINDMC" && break
7838 done
7839
7840 if test -z "$ac_cv_prog_WINDMC" ; then
7841 set dummy windmc
7842 if test $build = $host ; then
7843 WINDMC="$2"
7844 else
7845 WINDMC="${ncn_tool_prefix}$2"
7846 fi
7847 fi
7848
7849
7850
7851 if test -n "$OBJCOPY"; then
7852 ac_cv_prog_OBJCOPY=$OBJCOPY
7853 elif test -n "$ac_cv_prog_OBJCOPY"; then
7854 OBJCOPY=$ac_cv_prog_OBJCOPY
7855 fi
7856
7857 if test -n "$ac_cv_prog_OBJCOPY"; then
7858 for ncn_progname in objcopy; do
7859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7860 set dummy ${ncn_progname}; ac_word=$2
7861 echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7863 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866 if test -n "$OBJCOPY"; then
7867 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_OBJCOPY="${ncn_progname}"
7877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880 done
7881 done
7882
7883 fi
7884 fi
7885 OBJCOPY=$ac_cv_prog_OBJCOPY
7886 if test -n "$OBJCOPY"; then
7887 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7888 echo "${ECHO_T}$OBJCOPY" >&6
7889 else
7890 echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6
7892 fi
7893
7894 done
7895 fi
7896
7897 for ncn_progname in objcopy; do
7898 if test -n "$ncn_tool_prefix"; then
7899 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7900 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7901 echo "$as_me:$LINENO: checking for $ac_word" >&5
7902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7903 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906 if test -n "$OBJCOPY"; then
7907 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920 done
7921 done
7922
7923 fi
7924 fi
7925 OBJCOPY=$ac_cv_prog_OBJCOPY
7926 if test -n "$OBJCOPY"; then
7927 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7928 echo "${ECHO_T}$OBJCOPY" >&6
7929 else
7930 echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6
7932 fi
7933
7934 fi
7935 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7937 set dummy ${ncn_progname}; ac_word=$2
7938 echo "$as_me:$LINENO: checking for $ac_word" >&5
7939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7940 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943 if test -n "$OBJCOPY"; then
7944 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953 ac_cv_prog_OBJCOPY="${ncn_progname}"
7954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 break 2
7956 fi
7957 done
7958 done
7959
7960 fi
7961 fi
7962 OBJCOPY=$ac_cv_prog_OBJCOPY
7963 if test -n "$OBJCOPY"; then
7964 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7965 echo "${ECHO_T}$OBJCOPY" >&6
7966 else
7967 echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6
7969 fi
7970
7971 fi
7972 test -n "$ac_cv_prog_OBJCOPY" && break
7973 done
7974
7975 if test -z "$ac_cv_prog_OBJCOPY" ; then
7976 set dummy objcopy
7977 if test $build = $host ; then
7978 OBJCOPY="$2"
7979 else
7980 OBJCOPY="${ncn_tool_prefix}$2"
7981 fi
7982 fi
7983
7984
7985
7986 if test -n "$OBJDUMP"; then
7987 ac_cv_prog_OBJDUMP=$OBJDUMP
7988 elif test -n "$ac_cv_prog_OBJDUMP"; then
7989 OBJDUMP=$ac_cv_prog_OBJDUMP
7990 fi
7991
7992 if test -n "$ac_cv_prog_OBJDUMP"; then
7993 for ncn_progname in objdump; do
7994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7995 set dummy ${ncn_progname}; ac_word=$2
7996 echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7998 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001 if test -n "$OBJDUMP"; then
8002 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_OBJDUMP="${ncn_progname}"
8012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015 done
8016 done
8017
8018 fi
8019 fi
8020 OBJDUMP=$ac_cv_prog_OBJDUMP
8021 if test -n "$OBJDUMP"; then
8022 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8023 echo "${ECHO_T}$OBJDUMP" >&6
8024 else
8025 echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6
8027 fi
8028
8029 done
8030 fi
8031
8032 for ncn_progname in objdump; do
8033 if test -n "$ncn_tool_prefix"; then
8034 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8035 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8036 echo "$as_me:$LINENO: checking for $ac_word" >&5
8037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8038 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041 if test -n "$OBJDUMP"; then
8042 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8043 else
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8046 do
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8051 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 break 2
8054 fi
8055 done
8056 done
8057
8058 fi
8059 fi
8060 OBJDUMP=$ac_cv_prog_OBJDUMP
8061 if test -n "$OBJDUMP"; then
8062 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8063 echo "${ECHO_T}$OBJDUMP" >&6
8064 else
8065 echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6
8067 fi
8068
8069 fi
8070 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8072 set dummy ${ncn_progname}; ac_word=$2
8073 echo "$as_me:$LINENO: checking for $ac_word" >&5
8074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8075 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078 if test -n "$OBJDUMP"; then
8079 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8083 do
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_OBJDUMP="${ncn_progname}"
8089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092 done
8093 done
8094
8095 fi
8096 fi
8097 OBJDUMP=$ac_cv_prog_OBJDUMP
8098 if test -n "$OBJDUMP"; then
8099 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8100 echo "${ECHO_T}$OBJDUMP" >&6
8101 else
8102 echo "$as_me:$LINENO: result: no" >&5
8103 echo "${ECHO_T}no" >&6
8104 fi
8105
8106 fi
8107 test -n "$ac_cv_prog_OBJDUMP" && break
8108 done
8109
8110 if test -z "$ac_cv_prog_OBJDUMP" ; then
8111 set dummy objdump
8112 if test $build = $host ; then
8113 OBJDUMP="$2"
8114 else
8115 OBJDUMP="${ncn_tool_prefix}$2"
8116 fi
8117 fi
8118
8119
8120
8121
8122
8123
8124 # Target tools.
8125
8126 # Check whether --with-build-time-tools or --without-build-time-tools was given.
8127 if test "${with_build_time_tools+set}" = set; then
8128 withval="$with_build_time_tools"
8129 case x"$withval" in
8130 x/*) ;;
8131 *)
8132 with_build_time_tools=
8133 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8134 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8135 ;;
8136 esac
8137 else
8138 with_build_time_tools=
8139 fi;
8140
8141
8142
8143 if test -n "$CC_FOR_TARGET"; then
8144 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8145 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8146 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8147 fi
8148
8149 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8150 for ncn_progname in cc gcc; do
8151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8152 set dummy ${ncn_progname}; ac_word=$2
8153 echo "$as_me:$LINENO: checking for $ac_word" >&5
8154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8155 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158 if test -n "$CC_FOR_TARGET"; then
8159 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8163 do
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8171 fi
8172 done
8173 done
8174
8175 fi
8176 fi
8177 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8178 if test -n "$CC_FOR_TARGET"; then
8179 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8180 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8181 else
8182 echo "$as_me:$LINENO: result: no" >&5
8183 echo "${ECHO_T}no" >&6
8184 fi
8185
8186 done
8187 fi
8188
8189 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8190 for ncn_progname in cc gcc; do
8191 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8192 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8193 if test -x $with_build_time_tools/${ncn_progname}; then
8194 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8195 echo "$as_me:$LINENO: result: yes" >&5
8196 echo "${ECHO_T}yes" >&6
8197 break
8198 else
8199 echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6
8201 fi
8202 done
8203 fi
8204
8205 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8206 for ncn_progname in cc gcc; do
8207 if test -n "$ncn_target_tool_prefix"; then
8208 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8209 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8210 echo "$as_me:$LINENO: checking for $ac_word" >&5
8211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8212 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215 if test -n "$CC_FOR_TARGET"; then
8216 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8220 do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8225 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 break 2
8228 fi
8229 done
8230 done
8231
8232 fi
8233 fi
8234 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8235 if test -n "$CC_FOR_TARGET"; then
8236 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8237 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8238 else
8239 echo "$as_me:$LINENO: result: no" >&5
8240 echo "${ECHO_T}no" >&6
8241 fi
8242
8243 fi
8244 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8246 set dummy ${ncn_progname}; ac_word=$2
8247 echo "$as_me:$LINENO: checking for $ac_word" >&5
8248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8249 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252 if test -n "$CC_FOR_TARGET"; then
8253 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8265 fi
8266 done
8267 done
8268
8269 fi
8270 fi
8271 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8272 if test -n "$CC_FOR_TARGET"; then
8273 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8274 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8275 else
8276 echo "$as_me:$LINENO: result: no" >&5
8277 echo "${ECHO_T}no" >&6
8278 fi
8279
8280 fi
8281 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8282 done
8283 fi
8284
8285 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8286 set dummy cc gcc
8287 if test $build = $target ; then
8288 CC_FOR_TARGET="$2"
8289 else
8290 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8291 fi
8292 else
8293 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8294 fi
8295
8296
8297
8298 if test -n "$CXX_FOR_TARGET"; then
8299 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8300 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8301 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8302 fi
8303
8304 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8305 for ncn_progname in c++ g++ cxx gxx; do
8306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8307 set dummy ${ncn_progname}; ac_word=$2
8308 echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8310 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313 if test -n "$CXX_FOR_TARGET"; then
8314 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8315 else
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8326 fi
8327 done
8328 done
8329
8330 fi
8331 fi
8332 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8333 if test -n "$CXX_FOR_TARGET"; then
8334 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8335 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8336 else
8337 echo "$as_me:$LINENO: result: no" >&5
8338 echo "${ECHO_T}no" >&6
8339 fi
8340
8341 done
8342 fi
8343
8344 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8345 for ncn_progname in c++ g++ cxx gxx; do
8346 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8347 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8348 if test -x $with_build_time_tools/${ncn_progname}; then
8349 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8350 echo "$as_me:$LINENO: result: yes" >&5
8351 echo "${ECHO_T}yes" >&6
8352 break
8353 else
8354 echo "$as_me:$LINENO: result: no" >&5
8355 echo "${ECHO_T}no" >&6
8356 fi
8357 done
8358 fi
8359
8360 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8361 for ncn_progname in c++ g++ cxx gxx; do
8362 if test -n "$ncn_target_tool_prefix"; then
8363 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8364 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8365 echo "$as_me:$LINENO: checking for $ac_word" >&5
8366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8367 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370 if test -n "$CXX_FOR_TARGET"; then
8371 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384 done
8385 done
8386
8387 fi
8388 fi
8389 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8390 if test -n "$CXX_FOR_TARGET"; then
8391 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8392 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8393 else
8394 echo "$as_me:$LINENO: result: no" >&5
8395 echo "${ECHO_T}no" >&6
8396 fi
8397
8398 fi
8399 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8401 set dummy ${ncn_progname}; ac_word=$2
8402 echo "$as_me:$LINENO: checking for $ac_word" >&5
8403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8404 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407 if test -n "$CXX_FOR_TARGET"; then
8408 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421 done
8422 done
8423
8424 fi
8425 fi
8426 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8427 if test -n "$CXX_FOR_TARGET"; then
8428 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8429 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8430 else
8431 echo "$as_me:$LINENO: result: no" >&5
8432 echo "${ECHO_T}no" >&6
8433 fi
8434
8435 fi
8436 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8437 done
8438 fi
8439
8440 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8441 set dummy c++ g++ cxx gxx
8442 if test $build = $target ; then
8443 CXX_FOR_TARGET="$2"
8444 else
8445 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8446 fi
8447 else
8448 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8449 fi
8450
8451
8452
8453 if test -n "$GCC_FOR_TARGET"; then
8454 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8455 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8456 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8457 fi
8458
8459 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8460 for ncn_progname in gcc; do
8461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8462 set dummy ${ncn_progname}; ac_word=$2
8463 echo "$as_me:$LINENO: checking for $ac_word" >&5
8464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8465 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 if test -n "$GCC_FOR_TARGET"; then
8469 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8470 else
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8473 do
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8478 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 break 2
8481 fi
8482 done
8483 done
8484
8485 fi
8486 fi
8487 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8488 if test -n "$GCC_FOR_TARGET"; then
8489 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8490 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8491 else
8492 echo "$as_me:$LINENO: result: no" >&5
8493 echo "${ECHO_T}no" >&6
8494 fi
8495
8496 done
8497 fi
8498
8499 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8500 for ncn_progname in gcc; do
8501 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8502 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8503 if test -x $with_build_time_tools/${ncn_progname}; then
8504 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8505 echo "$as_me:$LINENO: result: yes" >&5
8506 echo "${ECHO_T}yes" >&6
8507 break
8508 else
8509 echo "$as_me:$LINENO: result: no" >&5
8510 echo "${ECHO_T}no" >&6
8511 fi
8512 done
8513 fi
8514
8515 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8516 for ncn_progname in gcc; do
8517 if test -n "$ncn_target_tool_prefix"; then
8518 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8519 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8520 echo "$as_me:$LINENO: checking for $ac_word" >&5
8521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8522 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525 if test -n "$GCC_FOR_TARGET"; then
8526 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8527 else
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8530 do
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8535 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 break 2
8538 fi
8539 done
8540 done
8541
8542 fi
8543 fi
8544 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8545 if test -n "$GCC_FOR_TARGET"; then
8546 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8547 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8548 else
8549 echo "$as_me:$LINENO: result: no" >&5
8550 echo "${ECHO_T}no" >&6
8551 fi
8552
8553 fi
8554 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8556 set dummy ${ncn_progname}; ac_word=$2
8557 echo "$as_me:$LINENO: checking for $ac_word" >&5
8558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8559 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 if test -n "$GCC_FOR_TARGET"; then
8563 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8564 else
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $PATH
8567 do
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8575 fi
8576 done
8577 done
8578
8579 fi
8580 fi
8581 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8582 if test -n "$GCC_FOR_TARGET"; then
8583 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8584 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8585 else
8586 echo "$as_me:$LINENO: result: no" >&5
8587 echo "${ECHO_T}no" >&6
8588 fi
8589
8590 fi
8591 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8592 done
8593 fi
8594
8595 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8596 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8597 else
8598 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8599 fi
8600
8601
8602
8603 if test -n "$GCJ_FOR_TARGET"; then
8604 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8605 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8606 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8607 fi
8608
8609 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8610 for ncn_progname in gcj; do
8611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8612 set dummy ${ncn_progname}; ac_word=$2
8613 echo "$as_me:$LINENO: checking for $ac_word" >&5
8614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8615 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618 if test -n "$GCJ_FOR_TARGET"; then
8619 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8620 else
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 for as_dir in $PATH
8623 do
8624 IFS=$as_save_IFS
8625 test -z "$as_dir" && as_dir=.
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8628 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8630 break 2
8631 fi
8632 done
8633 done
8634
8635 fi
8636 fi
8637 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8638 if test -n "$GCJ_FOR_TARGET"; then
8639 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8640 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8641 else
8642 echo "$as_me:$LINENO: result: no" >&5
8643 echo "${ECHO_T}no" >&6
8644 fi
8645
8646 done
8647 fi
8648
8649 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8650 for ncn_progname in gcj; do
8651 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8652 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8653 if test -x $with_build_time_tools/${ncn_progname}; then
8654 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8655 echo "$as_me:$LINENO: result: yes" >&5
8656 echo "${ECHO_T}yes" >&6
8657 break
8658 else
8659 echo "$as_me:$LINENO: result: no" >&5
8660 echo "${ECHO_T}no" >&6
8661 fi
8662 done
8663 fi
8664
8665 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8666 for ncn_progname in gcj; 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.
8669 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8670 echo "$as_me:$LINENO: checking for $ac_word" >&5
8671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8672 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675 if test -n "$GCJ_FOR_TARGET"; then
8676 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8677 else
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8680 do
8681 IFS=$as_save_IFS
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685 ac_cv_prog_GCJ_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
8689 done
8690 done
8691
8692 fi
8693 fi
8694 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8695 if test -n "$GCJ_FOR_TARGET"; then
8696 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8697 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8698 else
8699 echo "$as_me:$LINENO: result: no" >&5
8700 echo "${ECHO_T}no" >&6
8701 fi
8702
8703 fi
8704 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8706 set dummy ${ncn_progname}; ac_word=$2
8707 echo "$as_me:$LINENO: checking for $ac_word" >&5
8708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8709 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712 if test -n "$GCJ_FOR_TARGET"; then
8713 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8714 else
8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 for as_dir in $PATH
8717 do
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8722 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8725 fi
8726 done
8727 done
8728
8729 fi
8730 fi
8731 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8732 if test -n "$GCJ_FOR_TARGET"; then
8733 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8734 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8735 else
8736 echo "$as_me:$LINENO: result: no" >&5
8737 echo "${ECHO_T}no" >&6
8738 fi
8739
8740 fi
8741 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8742 done
8743 fi
8744
8745 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8746 set dummy gcj
8747 if test $build = $target ; then
8748 GCJ_FOR_TARGET="$2"
8749 else
8750 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8751 fi
8752 else
8753 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
8754 fi
8755
8756
8757
8758 if test -n "$GFORTRAN_FOR_TARGET"; then
8759 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8760 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8761 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8762 fi
8763
8764 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8765 for ncn_progname in gfortran; do
8766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8767 set dummy ${ncn_progname}; ac_word=$2
8768 echo "$as_me:$LINENO: checking for $ac_word" >&5
8769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8770 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773 if test -n "$GFORTRAN_FOR_TARGET"; then
8774 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8775 else
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8778 do
8779 IFS=$as_save_IFS
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
8782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8783 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 break 2
8786 fi
8787 done
8788 done
8789
8790 fi
8791 fi
8792 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8793 if test -n "$GFORTRAN_FOR_TARGET"; then
8794 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8795 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8796 else
8797 echo "$as_me:$LINENO: result: no" >&5
8798 echo "${ECHO_T}no" >&6
8799 fi
8800
8801 done
8802 fi
8803
8804 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8805 for ncn_progname in gfortran; do
8806 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8807 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8808 if test -x $with_build_time_tools/${ncn_progname}; then
8809 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8810 echo "$as_me:$LINENO: result: yes" >&5
8811 echo "${ECHO_T}yes" >&6
8812 break
8813 else
8814 echo "$as_me:$LINENO: result: no" >&5
8815 echo "${ECHO_T}no" >&6
8816 fi
8817 done
8818 fi
8819
8820 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8821 for ncn_progname in gfortran; do
8822 if test -n "$ncn_target_tool_prefix"; then
8823 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8824 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8825 echo "$as_me:$LINENO: checking for $ac_word" >&5
8826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8827 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else
8830 if test -n "$GFORTRAN_FOR_TARGET"; then
8831 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8832 else
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 for as_dir in $PATH
8835 do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8840 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8843 fi
8844 done
8845 done
8846
8847 fi
8848 fi
8849 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8850 if test -n "$GFORTRAN_FOR_TARGET"; then
8851 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8852 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8853 else
8854 echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8856 fi
8857
8858 fi
8859 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8861 set dummy ${ncn_progname}; ac_word=$2
8862 echo "$as_me:$LINENO: checking for $ac_word" >&5
8863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8864 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867 if test -n "$GFORTRAN_FOR_TARGET"; then
8868 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8869 else
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8872 do
8873 IFS=$as_save_IFS
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8877 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8879 break 2
8880 fi
8881 done
8882 done
8883
8884 fi
8885 fi
8886 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8887 if test -n "$GFORTRAN_FOR_TARGET"; then
8888 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8889 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8890 else
8891 echo "$as_me:$LINENO: result: no" >&5
8892 echo "${ECHO_T}no" >&6
8893 fi
8894
8895 fi
8896 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8897 done
8898 fi
8899
8900 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8901 set dummy gfortran
8902 if test $build = $target ; then
8903 GFORTRAN_FOR_TARGET="$2"
8904 else
8905 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8906 fi
8907 else
8908 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
8909 fi
8910
8911
8912
8913 cat > conftest.c << \EOF
8914 #ifdef __GNUC__
8915 gcc_yay;
8916 #endif
8917 EOF
8918 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8919 have_gcc_for_target=yes
8920 else
8921 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8922 have_gcc_for_target=no
8923 fi
8924 rm conftest.c
8925
8926
8927
8928
8929 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8930 if test -n "$with_build_time_tools"; then
8931 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8932 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
8933 if test -x $with_build_time_tools/ar; then
8934 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8935 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8936 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8937 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
8938 else
8939 echo "$as_me:$LINENO: result: no" >&5
8940 echo "${ECHO_T}no" >&6
8941 fi
8942 elif test $build != $host && test $have_gcc_for_target = yes; then
8943 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8944 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8945 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8946 fi
8947 fi
8948 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8949 # Extract the first word of "ar", so it can be a program name with args.
8950 set dummy ar; ac_word=$2
8951 echo "$as_me:$LINENO: checking for $ac_word" >&5
8952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8953 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 else
8956 case $AR_FOR_TARGET in
8957 [\\/]* | ?:[\\/]*)
8958 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8959 ;;
8960 *)
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $gcc_cv_tool_dirs
8963 do
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8968 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8971 fi
8972 done
8973 done
8974
8975 ;;
8976 esac
8977 fi
8978 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8979
8980 if test -n "$AR_FOR_TARGET"; then
8981 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8982 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8983 else
8984 echo "$as_me:$LINENO: result: no" >&5
8985 echo "${ECHO_T}no" >&6
8986 fi
8987
8988 fi
8989 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8990
8991
8992 if test -n "$AR_FOR_TARGET"; then
8993 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8994 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8995 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8996 fi
8997
8998 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8999 for ncn_progname in ar; do
9000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9001 set dummy ${ncn_progname}; ac_word=$2
9002 echo "$as_me:$LINENO: checking for $ac_word" >&5
9003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9004 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007 if test -n "$AR_FOR_TARGET"; then
9008 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9009 else
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9012 do
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 break 2
9020 fi
9021 done
9022 done
9023
9024 fi
9025 fi
9026 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9027 if test -n "$AR_FOR_TARGET"; then
9028 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9029 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9030 else
9031 echo "$as_me:$LINENO: result: no" >&5
9032 echo "${ECHO_T}no" >&6
9033 fi
9034
9035 done
9036 fi
9037
9038 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9039 for ncn_progname in ar; do
9040 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9041 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9042 if test -x $with_build_time_tools/${ncn_progname}; then
9043 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9044 echo "$as_me:$LINENO: result: yes" >&5
9045 echo "${ECHO_T}yes" >&6
9046 break
9047 else
9048 echo "$as_me:$LINENO: result: no" >&5
9049 echo "${ECHO_T}no" >&6
9050 fi
9051 done
9052 fi
9053
9054 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9055 for ncn_progname in ar; do
9056 if test -n "$ncn_target_tool_prefix"; then
9057 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9058 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9059 echo "$as_me:$LINENO: checking for $ac_word" >&5
9060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9061 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064 if test -n "$AR_FOR_TARGET"; then
9065 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9066 else
9067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 for as_dir in $PATH
9069 do
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9076 break 2
9077 fi
9078 done
9079 done
9080
9081 fi
9082 fi
9083 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9084 if test -n "$AR_FOR_TARGET"; then
9085 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9086 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9087 else
9088 echo "$as_me:$LINENO: result: no" >&5
9089 echo "${ECHO_T}no" >&6
9090 fi
9091
9092 fi
9093 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9095 set dummy ${ncn_progname}; ac_word=$2
9096 echo "$as_me:$LINENO: checking for $ac_word" >&5
9097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9098 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101 if test -n "$AR_FOR_TARGET"; then
9102 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9103 else
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9106 do
9107 IFS=$as_save_IFS
9108 test -z "$as_dir" && as_dir=.
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9111 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 break 2
9114 fi
9115 done
9116 done
9117
9118 fi
9119 fi
9120 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9121 if test -n "$AR_FOR_TARGET"; then
9122 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9123 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9124 else
9125 echo "$as_me:$LINENO: result: no" >&5
9126 echo "${ECHO_T}no" >&6
9127 fi
9128
9129 fi
9130 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9131 done
9132 fi
9133
9134 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9135 set dummy ar
9136 if test $build = $target ; then
9137 AR_FOR_TARGET="$2"
9138 else
9139 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9140 fi
9141 else
9142 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9143 fi
9144
9145 else
9146 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9147 fi
9148
9149
9150
9151
9152 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9153 if test -n "$with_build_time_tools"; then
9154 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9155 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
9156 if test -x $with_build_time_tools/as; then
9157 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9158 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9159 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9160 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
9161 else
9162 echo "$as_me:$LINENO: result: no" >&5
9163 echo "${ECHO_T}no" >&6
9164 fi
9165 elif test $build != $host && test $have_gcc_for_target = yes; then
9166 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9167 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9168 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9169 fi
9170 fi
9171 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9172 # Extract the first word of "as", so it can be a program name with args.
9173 set dummy as; ac_word=$2
9174 echo "$as_me:$LINENO: checking for $ac_word" >&5
9175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9176 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179 case $AS_FOR_TARGET in
9180 [\\/]* | ?:[\\/]*)
9181 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9182 ;;
9183 *)
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185 for as_dir in $gcc_cv_tool_dirs
9186 do
9187 IFS=$as_save_IFS
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9191 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9193 break 2
9194 fi
9195 done
9196 done
9197
9198 ;;
9199 esac
9200 fi
9201 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9202
9203 if test -n "$AS_FOR_TARGET"; then
9204 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9205 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9206 else
9207 echo "$as_me:$LINENO: result: no" >&5
9208 echo "${ECHO_T}no" >&6
9209 fi
9210
9211 fi
9212 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9213
9214
9215 if test -n "$AS_FOR_TARGET"; then
9216 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9217 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9218 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9219 fi
9220
9221 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9222 for ncn_progname in as; do
9223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9224 set dummy ${ncn_progname}; ac_word=$2
9225 echo "$as_me:$LINENO: checking for $ac_word" >&5
9226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9227 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230 if test -n "$AS_FOR_TARGET"; then
9231 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9232 else
9233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 for as_dir in $PATH
9235 do
9236 IFS=$as_save_IFS
9237 test -z "$as_dir" && as_dir=.
9238 for ac_exec_ext in '' $ac_executable_extensions; do
9239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9240 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9242 break 2
9243 fi
9244 done
9245 done
9246
9247 fi
9248 fi
9249 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9250 if test -n "$AS_FOR_TARGET"; then
9251 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9252 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9253 else
9254 echo "$as_me:$LINENO: result: no" >&5
9255 echo "${ECHO_T}no" >&6
9256 fi
9257
9258 done
9259 fi
9260
9261 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9262 for ncn_progname in as; do
9263 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9264 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9265 if test -x $with_build_time_tools/${ncn_progname}; then
9266 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9267 echo "$as_me:$LINENO: result: yes" >&5
9268 echo "${ECHO_T}yes" >&6
9269 break
9270 else
9271 echo "$as_me:$LINENO: result: no" >&5
9272 echo "${ECHO_T}no" >&6
9273 fi
9274 done
9275 fi
9276
9277 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9278 for ncn_progname in as; do
9279 if test -n "$ncn_target_tool_prefix"; then
9280 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9281 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9282 echo "$as_me:$LINENO: checking for $ac_word" >&5
9283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9284 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287 if test -n "$AS_FOR_TARGET"; then
9288 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9289 else
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 for as_dir in $PATH
9292 do
9293 IFS=$as_save_IFS
9294 test -z "$as_dir" && as_dir=.
9295 for ac_exec_ext in '' $ac_executable_extensions; do
9296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9297 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9299 break 2
9300 fi
9301 done
9302 done
9303
9304 fi
9305 fi
9306 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9307 if test -n "$AS_FOR_TARGET"; then
9308 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9309 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9310 else
9311 echo "$as_me:$LINENO: result: no" >&5
9312 echo "${ECHO_T}no" >&6
9313 fi
9314
9315 fi
9316 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9318 set dummy ${ncn_progname}; ac_word=$2
9319 echo "$as_me:$LINENO: checking for $ac_word" >&5
9320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9321 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324 if test -n "$AS_FOR_TARGET"; then
9325 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9326 else
9327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328 for as_dir in $PATH
9329 do
9330 IFS=$as_save_IFS
9331 test -z "$as_dir" && as_dir=.
9332 for ac_exec_ext in '' $ac_executable_extensions; do
9333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9334 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9336 break 2
9337 fi
9338 done
9339 done
9340
9341 fi
9342 fi
9343 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9344 if test -n "$AS_FOR_TARGET"; then
9345 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9346 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9347 else
9348 echo "$as_me:$LINENO: result: no" >&5
9349 echo "${ECHO_T}no" >&6
9350 fi
9351
9352 fi
9353 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9354 done
9355 fi
9356
9357 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9358 set dummy as
9359 if test $build = $target ; then
9360 AS_FOR_TARGET="$2"
9361 else
9362 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9363 fi
9364 else
9365 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9366 fi
9367
9368 else
9369 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9370 fi
9371
9372
9373
9374
9375 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9376 if test -n "$with_build_time_tools"; then
9377 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9378 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9379 if test -x $with_build_time_tools/dlltool; then
9380 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9381 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9382 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9383 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9384 else
9385 echo "$as_me:$LINENO: result: no" >&5
9386 echo "${ECHO_T}no" >&6
9387 fi
9388 elif test $build != $host && test $have_gcc_for_target = yes; then
9389 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9390 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9391 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9392 fi
9393 fi
9394 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9395 # Extract the first word of "dlltool", so it can be a program name with args.
9396 set dummy dlltool; ac_word=$2
9397 echo "$as_me:$LINENO: checking for $ac_word" >&5
9398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9399 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402 case $DLLTOOL_FOR_TARGET in
9403 [\\/]* | ?:[\\/]*)
9404 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9405 ;;
9406 *)
9407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408 for as_dir in $gcc_cv_tool_dirs
9409 do
9410 IFS=$as_save_IFS
9411 test -z "$as_dir" && as_dir=.
9412 for ac_exec_ext in '' $ac_executable_extensions; do
9413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9414 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9416 break 2
9417 fi
9418 done
9419 done
9420
9421 ;;
9422 esac
9423 fi
9424 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9425
9426 if test -n "$DLLTOOL_FOR_TARGET"; then
9427 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9428 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9429 else
9430 echo "$as_me:$LINENO: result: no" >&5
9431 echo "${ECHO_T}no" >&6
9432 fi
9433
9434 fi
9435 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9436
9437
9438 if test -n "$DLLTOOL_FOR_TARGET"; then
9439 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9440 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9441 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9442 fi
9443
9444 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9445 for ncn_progname in dlltool; do
9446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9447 set dummy ${ncn_progname}; ac_word=$2
9448 echo "$as_me:$LINENO: checking for $ac_word" >&5
9449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9450 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453 if test -n "$DLLTOOL_FOR_TARGET"; then
9454 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9455 else
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9458 do
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9463 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 break 2
9466 fi
9467 done
9468 done
9469
9470 fi
9471 fi
9472 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9473 if test -n "$DLLTOOL_FOR_TARGET"; then
9474 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9475 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9476 else
9477 echo "$as_me:$LINENO: result: no" >&5
9478 echo "${ECHO_T}no" >&6
9479 fi
9480
9481 done
9482 fi
9483
9484 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9485 for ncn_progname in dlltool; do
9486 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9487 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9488 if test -x $with_build_time_tools/${ncn_progname}; then
9489 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9490 echo "$as_me:$LINENO: result: yes" >&5
9491 echo "${ECHO_T}yes" >&6
9492 break
9493 else
9494 echo "$as_me:$LINENO: result: no" >&5
9495 echo "${ECHO_T}no" >&6
9496 fi
9497 done
9498 fi
9499
9500 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9501 for ncn_progname in dlltool; do
9502 if test -n "$ncn_target_tool_prefix"; then
9503 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9504 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9505 echo "$as_me:$LINENO: checking for $ac_word" >&5
9506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9507 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510 if test -n "$DLLTOOL_FOR_TARGET"; then
9511 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9512 else
9513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 for as_dir in $PATH
9515 do
9516 IFS=$as_save_IFS
9517 test -z "$as_dir" && as_dir=.
9518 for ac_exec_ext in '' $ac_executable_extensions; do
9519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9520 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9522 break 2
9523 fi
9524 done
9525 done
9526
9527 fi
9528 fi
9529 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9530 if test -n "$DLLTOOL_FOR_TARGET"; then
9531 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9532 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9533 else
9534 echo "$as_me:$LINENO: result: no" >&5
9535 echo "${ECHO_T}no" >&6
9536 fi
9537
9538 fi
9539 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9541 set dummy ${ncn_progname}; ac_word=$2
9542 echo "$as_me:$LINENO: checking for $ac_word" >&5
9543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9544 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547 if test -n "$DLLTOOL_FOR_TARGET"; then
9548 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9549 else
9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 for as_dir in $PATH
9552 do
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9557 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9559 break 2
9560 fi
9561 done
9562 done
9563
9564 fi
9565 fi
9566 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9567 if test -n "$DLLTOOL_FOR_TARGET"; then
9568 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9569 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9570 else
9571 echo "$as_me:$LINENO: result: no" >&5
9572 echo "${ECHO_T}no" >&6
9573 fi
9574
9575 fi
9576 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9577 done
9578 fi
9579
9580 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9581 set dummy dlltool
9582 if test $build = $target ; then
9583 DLLTOOL_FOR_TARGET="$2"
9584 else
9585 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9586 fi
9587 else
9588 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9589 fi
9590
9591 else
9592 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9593 fi
9594
9595
9596
9597
9598 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9599 if test -n "$with_build_time_tools"; then
9600 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9601 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9602 if test -x $with_build_time_tools/ld; then
9603 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9604 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9605 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9606 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9607 else
9608 echo "$as_me:$LINENO: result: no" >&5
9609 echo "${ECHO_T}no" >&6
9610 fi
9611 elif test $build != $host && test $have_gcc_for_target = yes; then
9612 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9613 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9614 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9615 fi
9616 fi
9617 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9618 # Extract the first word of "ld", so it can be a program name with args.
9619 set dummy ld; ac_word=$2
9620 echo "$as_me:$LINENO: checking for $ac_word" >&5
9621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9622 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625 case $LD_FOR_TARGET in
9626 [\\/]* | ?:[\\/]*)
9627 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9628 ;;
9629 *)
9630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631 for as_dir in $gcc_cv_tool_dirs
9632 do
9633 IFS=$as_save_IFS
9634 test -z "$as_dir" && as_dir=.
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9637 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9639 break 2
9640 fi
9641 done
9642 done
9643
9644 ;;
9645 esac
9646 fi
9647 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9648
9649 if test -n "$LD_FOR_TARGET"; then
9650 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9651 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9652 else
9653 echo "$as_me:$LINENO: result: no" >&5
9654 echo "${ECHO_T}no" >&6
9655 fi
9656
9657 fi
9658 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9659
9660
9661 if test -n "$LD_FOR_TARGET"; then
9662 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9663 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9664 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9665 fi
9666
9667 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9668 for ncn_progname in ld; do
9669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9670 set dummy ${ncn_progname}; ac_word=$2
9671 echo "$as_me:$LINENO: checking for $ac_word" >&5
9672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9673 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676 if test -n "$LD_FOR_TARGET"; then
9677 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9678 else
9679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680 for as_dir in $PATH
9681 do
9682 IFS=$as_save_IFS
9683 test -z "$as_dir" && as_dir=.
9684 for ac_exec_ext in '' $ac_executable_extensions; do
9685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9686 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9688 break 2
9689 fi
9690 done
9691 done
9692
9693 fi
9694 fi
9695 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9696 if test -n "$LD_FOR_TARGET"; then
9697 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9698 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9699 else
9700 echo "$as_me:$LINENO: result: no" >&5
9701 echo "${ECHO_T}no" >&6
9702 fi
9703
9704 done
9705 fi
9706
9707 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9708 for ncn_progname in ld; do
9709 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9710 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9711 if test -x $with_build_time_tools/${ncn_progname}; then
9712 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9713 echo "$as_me:$LINENO: result: yes" >&5
9714 echo "${ECHO_T}yes" >&6
9715 break
9716 else
9717 echo "$as_me:$LINENO: result: no" >&5
9718 echo "${ECHO_T}no" >&6
9719 fi
9720 done
9721 fi
9722
9723 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9724 for ncn_progname in ld; do
9725 if test -n "$ncn_target_tool_prefix"; then
9726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9727 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9728 echo "$as_me:$LINENO: checking for $ac_word" >&5
9729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9730 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9733 if test -n "$LD_FOR_TARGET"; then
9734 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9735 else
9736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 for as_dir in $PATH
9738 do
9739 IFS=$as_save_IFS
9740 test -z "$as_dir" && as_dir=.
9741 for ac_exec_ext in '' $ac_executable_extensions; do
9742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9743 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9745 break 2
9746 fi
9747 done
9748 done
9749
9750 fi
9751 fi
9752 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9753 if test -n "$LD_FOR_TARGET"; then
9754 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9755 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9756 else
9757 echo "$as_me:$LINENO: result: no" >&5
9758 echo "${ECHO_T}no" >&6
9759 fi
9760
9761 fi
9762 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9764 set dummy ${ncn_progname}; ac_word=$2
9765 echo "$as_me:$LINENO: checking for $ac_word" >&5
9766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9767 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770 if test -n "$LD_FOR_TARGET"; then
9771 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9772 else
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9775 do
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9780 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 break 2
9783 fi
9784 done
9785 done
9786
9787 fi
9788 fi
9789 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9790 if test -n "$LD_FOR_TARGET"; then
9791 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9792 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9793 else
9794 echo "$as_me:$LINENO: result: no" >&5
9795 echo "${ECHO_T}no" >&6
9796 fi
9797
9798 fi
9799 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9800 done
9801 fi
9802
9803 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9804 set dummy ld
9805 if test $build = $target ; then
9806 LD_FOR_TARGET="$2"
9807 else
9808 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9809 fi
9810 else
9811 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
9812 fi
9813
9814 else
9815 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9816 fi
9817
9818
9819
9820
9821 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9822 if test -n "$with_build_time_tools"; then
9823 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9824 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
9825 if test -x $with_build_time_tools/lipo; then
9826 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9827 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9828 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9829 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
9830 else
9831 echo "$as_me:$LINENO: result: no" >&5
9832 echo "${ECHO_T}no" >&6
9833 fi
9834 elif test $build != $host && test $have_gcc_for_target = yes; then
9835 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9836 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9837 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9838 fi
9839 fi
9840 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9841 # Extract the first word of "lipo", so it can be a program name with args.
9842 set dummy lipo; ac_word=$2
9843 echo "$as_me:$LINENO: checking for $ac_word" >&5
9844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9845 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848 case $LIPO_FOR_TARGET in
9849 [\\/]* | ?:[\\/]*)
9850 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9851 ;;
9852 *)
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $gcc_cv_tool_dirs
9855 do
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9860 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9863 fi
9864 done
9865 done
9866
9867 ;;
9868 esac
9869 fi
9870 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9871
9872 if test -n "$LIPO_FOR_TARGET"; then
9873 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9874 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9875 else
9876 echo "$as_me:$LINENO: result: no" >&5
9877 echo "${ECHO_T}no" >&6
9878 fi
9879
9880 fi
9881 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9882
9883
9884 if test -n "$LIPO_FOR_TARGET"; then
9885 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9886 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9887 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9888 fi
9889
9890 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9891 for ncn_progname in lipo; do
9892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9893 set dummy ${ncn_progname}; ac_word=$2
9894 echo "$as_me:$LINENO: checking for $ac_word" >&5
9895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9896 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899 if test -n "$LIPO_FOR_TARGET"; then
9900 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9901 else
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9904 do
9905 IFS=$as_save_IFS
9906 test -z "$as_dir" && as_dir=.
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9909 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 break 2
9912 fi
9913 done
9914 done
9915
9916 fi
9917 fi
9918 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9919 if test -n "$LIPO_FOR_TARGET"; then
9920 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9921 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9922 else
9923 echo "$as_me:$LINENO: result: no" >&5
9924 echo "${ECHO_T}no" >&6
9925 fi
9926
9927 done
9928 fi
9929
9930 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
9931 for ncn_progname in lipo; do
9932 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9933 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9934 if test -x $with_build_time_tools/${ncn_progname}; then
9935 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9936 echo "$as_me:$LINENO: result: yes" >&5
9937 echo "${ECHO_T}yes" >&6
9938 break
9939 else
9940 echo "$as_me:$LINENO: result: no" >&5
9941 echo "${ECHO_T}no" >&6
9942 fi
9943 done
9944 fi
9945
9946 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9947 for ncn_progname in lipo; do
9948 if test -n "$ncn_target_tool_prefix"; then
9949 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9950 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9951 echo "$as_me:$LINENO: checking for $ac_word" >&5
9952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9953 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956 if test -n "$LIPO_FOR_TARGET"; then
9957 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9958 else
9959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 for as_dir in $PATH
9961 do
9962 IFS=$as_save_IFS
9963 test -z "$as_dir" && as_dir=.
9964 for ac_exec_ext in '' $ac_executable_extensions; do
9965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9966 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9968 break 2
9969 fi
9970 done
9971 done
9972
9973 fi
9974 fi
9975 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9976 if test -n "$LIPO_FOR_TARGET"; then
9977 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9978 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9979 else
9980 echo "$as_me:$LINENO: result: no" >&5
9981 echo "${ECHO_T}no" >&6
9982 fi
9983
9984 fi
9985 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9987 set dummy ${ncn_progname}; ac_word=$2
9988 echo "$as_me:$LINENO: checking for $ac_word" >&5
9989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9990 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993 if test -n "$LIPO_FOR_TARGET"; then
9994 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9995 else
9996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9997 for as_dir in $PATH
9998 do
9999 IFS=$as_save_IFS
10000 test -z "$as_dir" && as_dir=.
10001 for ac_exec_ext in '' $ac_executable_extensions; do
10002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10003 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10005 break 2
10006 fi
10007 done
10008 done
10009
10010 fi
10011 fi
10012 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10013 if test -n "$LIPO_FOR_TARGET"; then
10014 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10015 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10016 else
10017 echo "$as_me:$LINENO: result: no" >&5
10018 echo "${ECHO_T}no" >&6
10019 fi
10020
10021 fi
10022 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10023 done
10024 fi
10025
10026 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10027 set dummy lipo
10028 if test $build = $target ; then
10029 LIPO_FOR_TARGET="$2"
10030 else
10031 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10032 fi
10033 else
10034 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10035 fi
10036
10037 else
10038 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10039 fi
10040
10041
10042
10043
10044 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10045 if test -n "$with_build_time_tools"; then
10046 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10047 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
10048 if test -x $with_build_time_tools/nm; then
10049 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10050 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10051 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10052 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
10053 else
10054 echo "$as_me:$LINENO: result: no" >&5
10055 echo "${ECHO_T}no" >&6
10056 fi
10057 elif test $build != $host && test $have_gcc_for_target = yes; then
10058 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10059 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10060 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10061 fi
10062 fi
10063 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10064 # Extract the first word of "nm", so it can be a program name with args.
10065 set dummy nm; ac_word=$2
10066 echo "$as_me:$LINENO: checking for $ac_word" >&5
10067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10068 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071 case $NM_FOR_TARGET in
10072 [\\/]* | ?:[\\/]*)
10073 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10074 ;;
10075 *)
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $gcc_cv_tool_dirs
10078 do
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10083 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 break 2
10086 fi
10087 done
10088 done
10089
10090 ;;
10091 esac
10092 fi
10093 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10094
10095 if test -n "$NM_FOR_TARGET"; then
10096 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10097 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10098 else
10099 echo "$as_me:$LINENO: result: no" >&5
10100 echo "${ECHO_T}no" >&6
10101 fi
10102
10103 fi
10104 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10105
10106
10107 if test -n "$NM_FOR_TARGET"; then
10108 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10109 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10110 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10111 fi
10112
10113 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10114 for ncn_progname in nm; do
10115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10116 set dummy ${ncn_progname}; ac_word=$2
10117 echo "$as_me:$LINENO: checking for $ac_word" >&5
10118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10119 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122 if test -n "$NM_FOR_TARGET"; then
10123 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10124 else
10125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126 for as_dir in $PATH
10127 do
10128 IFS=$as_save_IFS
10129 test -z "$as_dir" && as_dir=.
10130 for ac_exec_ext in '' $ac_executable_extensions; do
10131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10132 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10134 break 2
10135 fi
10136 done
10137 done
10138
10139 fi
10140 fi
10141 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10142 if test -n "$NM_FOR_TARGET"; then
10143 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10144 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10145 else
10146 echo "$as_me:$LINENO: result: no" >&5
10147 echo "${ECHO_T}no" >&6
10148 fi
10149
10150 done
10151 fi
10152
10153 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10154 for ncn_progname in nm; do
10155 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10156 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10157 if test -x $with_build_time_tools/${ncn_progname}; then
10158 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10159 echo "$as_me:$LINENO: result: yes" >&5
10160 echo "${ECHO_T}yes" >&6
10161 break
10162 else
10163 echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6
10165 fi
10166 done
10167 fi
10168
10169 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10170 for ncn_progname in nm; do
10171 if test -n "$ncn_target_tool_prefix"; then
10172 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10173 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10174 echo "$as_me:$LINENO: checking for $ac_word" >&5
10175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10176 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179 if test -n "$NM_FOR_TARGET"; then
10180 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10181 else
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in $PATH
10184 do
10185 IFS=$as_save_IFS
10186 test -z "$as_dir" && as_dir=.
10187 for ac_exec_ext in '' $ac_executable_extensions; do
10188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10189 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10191 break 2
10192 fi
10193 done
10194 done
10195
10196 fi
10197 fi
10198 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10199 if test -n "$NM_FOR_TARGET"; then
10200 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10201 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10202 else
10203 echo "$as_me:$LINENO: result: no" >&5
10204 echo "${ECHO_T}no" >&6
10205 fi
10206
10207 fi
10208 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10210 set dummy ${ncn_progname}; ac_word=$2
10211 echo "$as_me:$LINENO: checking for $ac_word" >&5
10212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10213 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216 if test -n "$NM_FOR_TARGET"; then
10217 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10218 else
10219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220 for as_dir in $PATH
10221 do
10222 IFS=$as_save_IFS
10223 test -z "$as_dir" && as_dir=.
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10226 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10228 break 2
10229 fi
10230 done
10231 done
10232
10233 fi
10234 fi
10235 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10236 if test -n "$NM_FOR_TARGET"; then
10237 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10238 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10239 else
10240 echo "$as_me:$LINENO: result: no" >&5
10241 echo "${ECHO_T}no" >&6
10242 fi
10243
10244 fi
10245 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10246 done
10247 fi
10248
10249 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10250 set dummy nm
10251 if test $build = $target ; then
10252 NM_FOR_TARGET="$2"
10253 else
10254 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10255 fi
10256 else
10257 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10258 fi
10259
10260 else
10261 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10262 fi
10263
10264
10265
10266
10267 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10268 if test -n "$with_build_time_tools"; then
10269 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10270 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10271 if test -x $with_build_time_tools/objdump; then
10272 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10273 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10274 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10275 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10276 else
10277 echo "$as_me:$LINENO: result: no" >&5
10278 echo "${ECHO_T}no" >&6
10279 fi
10280 elif test $build != $host && test $have_gcc_for_target = yes; then
10281 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10282 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10283 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10284 fi
10285 fi
10286 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10287 # Extract the first word of "objdump", so it can be a program name with args.
10288 set dummy objdump; ac_word=$2
10289 echo "$as_me:$LINENO: checking for $ac_word" >&5
10290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10291 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294 case $OBJDUMP_FOR_TARGET in
10295 [\\/]* | ?:[\\/]*)
10296 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10297 ;;
10298 *)
10299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300 for as_dir in $gcc_cv_tool_dirs
10301 do
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10306 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10308 break 2
10309 fi
10310 done
10311 done
10312
10313 ;;
10314 esac
10315 fi
10316 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10317
10318 if test -n "$OBJDUMP_FOR_TARGET"; then
10319 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10320 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10321 else
10322 echo "$as_me:$LINENO: result: no" >&5
10323 echo "${ECHO_T}no" >&6
10324 fi
10325
10326 fi
10327 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10328
10329
10330 if test -n "$OBJDUMP_FOR_TARGET"; then
10331 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10332 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10333 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10334 fi
10335
10336 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10337 for ncn_progname in objdump; do
10338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10339 set dummy ${ncn_progname}; ac_word=$2
10340 echo "$as_me:$LINENO: checking for $ac_word" >&5
10341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10342 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 if test -n "$OBJDUMP_FOR_TARGET"; then
10346 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10347 else
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10350 do
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10355 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10357 break 2
10358 fi
10359 done
10360 done
10361
10362 fi
10363 fi
10364 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10365 if test -n "$OBJDUMP_FOR_TARGET"; then
10366 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10367 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10368 else
10369 echo "$as_me:$LINENO: result: no" >&5
10370 echo "${ECHO_T}no" >&6
10371 fi
10372
10373 done
10374 fi
10375
10376 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10377 for ncn_progname in objdump; do
10378 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10379 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10380 if test -x $with_build_time_tools/${ncn_progname}; then
10381 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10382 echo "$as_me:$LINENO: result: yes" >&5
10383 echo "${ECHO_T}yes" >&6
10384 break
10385 else
10386 echo "$as_me:$LINENO: result: no" >&5
10387 echo "${ECHO_T}no" >&6
10388 fi
10389 done
10390 fi
10391
10392 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10393 for ncn_progname in objdump; do
10394 if test -n "$ncn_target_tool_prefix"; then
10395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10396 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10397 echo "$as_me:$LINENO: checking for $ac_word" >&5
10398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10399 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402 if test -n "$OBJDUMP_FOR_TARGET"; then
10403 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10404 else
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10407 do
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10412 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10415 fi
10416 done
10417 done
10418
10419 fi
10420 fi
10421 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10422 if test -n "$OBJDUMP_FOR_TARGET"; then
10423 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10424 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10425 else
10426 echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6
10428 fi
10429
10430 fi
10431 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10433 set dummy ${ncn_progname}; ac_word=$2
10434 echo "$as_me:$LINENO: checking for $ac_word" >&5
10435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10436 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
10439 if test -n "$OBJDUMP_FOR_TARGET"; then
10440 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10441 else
10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443 for as_dir in $PATH
10444 do
10445 IFS=$as_save_IFS
10446 test -z "$as_dir" && as_dir=.
10447 for ac_exec_ext in '' $ac_executable_extensions; do
10448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10449 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10451 break 2
10452 fi
10453 done
10454 done
10455
10456 fi
10457 fi
10458 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10459 if test -n "$OBJDUMP_FOR_TARGET"; then
10460 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10461 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10462 else
10463 echo "$as_me:$LINENO: result: no" >&5
10464 echo "${ECHO_T}no" >&6
10465 fi
10466
10467 fi
10468 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10469 done
10470 fi
10471
10472 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10473 set dummy objdump
10474 if test $build = $target ; then
10475 OBJDUMP_FOR_TARGET="$2"
10476 else
10477 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10478 fi
10479 else
10480 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10481 fi
10482
10483 else
10484 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10485 fi
10486
10487
10488
10489
10490 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10491 if test -n "$with_build_time_tools"; then
10492 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10493 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10494 if test -x $with_build_time_tools/ranlib; then
10495 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10496 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10497 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10498 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10499 else
10500 echo "$as_me:$LINENO: result: no" >&5
10501 echo "${ECHO_T}no" >&6
10502 fi
10503 elif test $build != $host && test $have_gcc_for_target = yes; then
10504 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10505 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10506 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10507 fi
10508 fi
10509 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10510 # Extract the first word of "ranlib", so it can be a program name with args.
10511 set dummy ranlib; ac_word=$2
10512 echo "$as_me:$LINENO: checking for $ac_word" >&5
10513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10514 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517 case $RANLIB_FOR_TARGET in
10518 [\\/]* | ?:[\\/]*)
10519 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10520 ;;
10521 *)
10522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523 for as_dir in $gcc_cv_tool_dirs
10524 do
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10529 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10531 break 2
10532 fi
10533 done
10534 done
10535
10536 ;;
10537 esac
10538 fi
10539 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10540
10541 if test -n "$RANLIB_FOR_TARGET"; then
10542 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10543 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10544 else
10545 echo "$as_me:$LINENO: result: no" >&5
10546 echo "${ECHO_T}no" >&6
10547 fi
10548
10549 fi
10550 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10551
10552
10553 if test -n "$RANLIB_FOR_TARGET"; then
10554 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10555 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10556 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10557 fi
10558
10559 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10560 for ncn_progname in ranlib; do
10561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10562 set dummy ${ncn_progname}; ac_word=$2
10563 echo "$as_me:$LINENO: checking for $ac_word" >&5
10564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10565 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568 if test -n "$RANLIB_FOR_TARGET"; then
10569 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10570 else
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10573 do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10578 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582 done
10583 done
10584
10585 fi
10586 fi
10587 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10588 if test -n "$RANLIB_FOR_TARGET"; then
10589 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10590 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10591 else
10592 echo "$as_me:$LINENO: result: no" >&5
10593 echo "${ECHO_T}no" >&6
10594 fi
10595
10596 done
10597 fi
10598
10599 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10600 for ncn_progname in ranlib; do
10601 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10602 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10603 if test -x $with_build_time_tools/${ncn_progname}; then
10604 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10605 echo "$as_me:$LINENO: result: yes" >&5
10606 echo "${ECHO_T}yes" >&6
10607 break
10608 else
10609 echo "$as_me:$LINENO: result: no" >&5
10610 echo "${ECHO_T}no" >&6
10611 fi
10612 done
10613 fi
10614
10615 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10616 for ncn_progname in ranlib; do
10617 if test -n "$ncn_target_tool_prefix"; then
10618 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10619 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10620 echo "$as_me:$LINENO: checking for $ac_word" >&5
10621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10622 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625 if test -n "$RANLIB_FOR_TARGET"; then
10626 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10627 else
10628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in $PATH
10630 do
10631 IFS=$as_save_IFS
10632 test -z "$as_dir" && as_dir=.
10633 for ac_exec_ext in '' $ac_executable_extensions; do
10634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10635 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10637 break 2
10638 fi
10639 done
10640 done
10641
10642 fi
10643 fi
10644 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10645 if test -n "$RANLIB_FOR_TARGET"; then
10646 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10647 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10648 else
10649 echo "$as_me:$LINENO: result: no" >&5
10650 echo "${ECHO_T}no" >&6
10651 fi
10652
10653 fi
10654 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10656 set dummy ${ncn_progname}; ac_word=$2
10657 echo "$as_me:$LINENO: checking for $ac_word" >&5
10658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10659 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662 if test -n "$RANLIB_FOR_TARGET"; then
10663 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10664 else
10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10667 do
10668 IFS=$as_save_IFS
10669 test -z "$as_dir" && as_dir=.
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10672 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 break 2
10675 fi
10676 done
10677 done
10678
10679 fi
10680 fi
10681 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10682 if test -n "$RANLIB_FOR_TARGET"; then
10683 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10684 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10685 else
10686 echo "$as_me:$LINENO: result: no" >&5
10687 echo "${ECHO_T}no" >&6
10688 fi
10689
10690 fi
10691 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10692 done
10693 fi
10694
10695 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10696 set dummy ranlib
10697 if test $build = $target ; then
10698 RANLIB_FOR_TARGET="$2"
10699 else
10700 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10701 fi
10702 else
10703 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10704 fi
10705
10706 else
10707 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10708 fi
10709
10710
10711
10712
10713 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10714 if test -n "$with_build_time_tools"; then
10715 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10716 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10717 if test -x $with_build_time_tools/strip; then
10718 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10719 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10720 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10721 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10722 else
10723 echo "$as_me:$LINENO: result: no" >&5
10724 echo "${ECHO_T}no" >&6
10725 fi
10726 elif test $build != $host && test $have_gcc_for_target = yes; then
10727 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10728 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10729 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10730 fi
10731 fi
10732 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10733 # Extract the first word of "strip", so it can be a program name with args.
10734 set dummy strip; ac_word=$2
10735 echo "$as_me:$LINENO: checking for $ac_word" >&5
10736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10737 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740 case $STRIP_FOR_TARGET in
10741 [\\/]* | ?:[\\/]*)
10742 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10743 ;;
10744 *)
10745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 for as_dir in $gcc_cv_tool_dirs
10747 do
10748 IFS=$as_save_IFS
10749 test -z "$as_dir" && as_dir=.
10750 for ac_exec_ext in '' $ac_executable_extensions; do
10751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10752 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10754 break 2
10755 fi
10756 done
10757 done
10758
10759 ;;
10760 esac
10761 fi
10762 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10763
10764 if test -n "$STRIP_FOR_TARGET"; then
10765 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10766 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10767 else
10768 echo "$as_me:$LINENO: result: no" >&5
10769 echo "${ECHO_T}no" >&6
10770 fi
10771
10772 fi
10773 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10774
10775
10776 if test -n "$STRIP_FOR_TARGET"; then
10777 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10778 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10779 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10780 fi
10781
10782 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10783 for ncn_progname in strip; do
10784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10785 set dummy ${ncn_progname}; ac_word=$2
10786 echo "$as_me:$LINENO: checking for $ac_word" >&5
10787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10788 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791 if test -n "$STRIP_FOR_TARGET"; then
10792 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10793 else
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10796 do
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10804 fi
10805 done
10806 done
10807
10808 fi
10809 fi
10810 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10811 if test -n "$STRIP_FOR_TARGET"; then
10812 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10813 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10814 else
10815 echo "$as_me:$LINENO: result: no" >&5
10816 echo "${ECHO_T}no" >&6
10817 fi
10818
10819 done
10820 fi
10821
10822 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10823 for ncn_progname in strip; do
10824 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10825 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10826 if test -x $with_build_time_tools/${ncn_progname}; then
10827 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10828 echo "$as_me:$LINENO: result: yes" >&5
10829 echo "${ECHO_T}yes" >&6
10830 break
10831 else
10832 echo "$as_me:$LINENO: result: no" >&5
10833 echo "${ECHO_T}no" >&6
10834 fi
10835 done
10836 fi
10837
10838 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10839 for ncn_progname in strip; do
10840 if test -n "$ncn_target_tool_prefix"; then
10841 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10842 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10843 echo "$as_me:$LINENO: checking for $ac_word" >&5
10844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10845 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848 if test -n "$STRIP_FOR_TARGET"; then
10849 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10850 else
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10853 do
10854 IFS=$as_save_IFS
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10858 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 break 2
10861 fi
10862 done
10863 done
10864
10865 fi
10866 fi
10867 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10868 if test -n "$STRIP_FOR_TARGET"; then
10869 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10870 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10871 else
10872 echo "$as_me:$LINENO: result: no" >&5
10873 echo "${ECHO_T}no" >&6
10874 fi
10875
10876 fi
10877 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10879 set dummy ${ncn_progname}; ac_word=$2
10880 echo "$as_me:$LINENO: checking for $ac_word" >&5
10881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10882 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885 if test -n "$STRIP_FOR_TARGET"; then
10886 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10887 else
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10890 do
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10898 fi
10899 done
10900 done
10901
10902 fi
10903 fi
10904 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10905 if test -n "$STRIP_FOR_TARGET"; then
10906 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10907 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10908 else
10909 echo "$as_me:$LINENO: result: no" >&5
10910 echo "${ECHO_T}no" >&6
10911 fi
10912
10913 fi
10914 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10915 done
10916 fi
10917
10918 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10919 set dummy strip
10920 if test $build = $target ; then
10921 STRIP_FOR_TARGET="$2"
10922 else
10923 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10924 fi
10925 else
10926 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
10927 fi
10928
10929 else
10930 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10931 fi
10932
10933
10934
10935
10936 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10937 if test -n "$with_build_time_tools"; then
10938 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10939 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
10940 if test -x $with_build_time_tools/windres; then
10941 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10942 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10943 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10944 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
10945 else
10946 echo "$as_me:$LINENO: result: no" >&5
10947 echo "${ECHO_T}no" >&6
10948 fi
10949 elif test $build != $host && test $have_gcc_for_target = yes; then
10950 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10951 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10952 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10953 fi
10954 fi
10955 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10956 # Extract the first word of "windres", so it can be a program name with args.
10957 set dummy windres; ac_word=$2
10958 echo "$as_me:$LINENO: checking for $ac_word" >&5
10959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10960 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963 case $WINDRES_FOR_TARGET in
10964 [\\/]* | ?:[\\/]*)
10965 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10966 ;;
10967 *)
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $gcc_cv_tool_dirs
10970 do
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10975 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10978 fi
10979 done
10980 done
10981
10982 ;;
10983 esac
10984 fi
10985 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10986
10987 if test -n "$WINDRES_FOR_TARGET"; then
10988 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10989 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10990 else
10991 echo "$as_me:$LINENO: result: no" >&5
10992 echo "${ECHO_T}no" >&6
10993 fi
10994
10995 fi
10996 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10997
10998
10999 if test -n "$WINDRES_FOR_TARGET"; then
11000 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11001 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11002 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11003 fi
11004
11005 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11006 for ncn_progname in windres; do
11007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11008 set dummy ${ncn_progname}; ac_word=$2
11009 echo "$as_me:$LINENO: checking for $ac_word" >&5
11010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11011 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014 if test -n "$WINDRES_FOR_TARGET"; then
11015 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11016 else
11017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018 for as_dir in $PATH
11019 do
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 break 2
11027 fi
11028 done
11029 done
11030
11031 fi
11032 fi
11033 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11034 if test -n "$WINDRES_FOR_TARGET"; then
11035 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11036 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11037 else
11038 echo "$as_me:$LINENO: result: no" >&5
11039 echo "${ECHO_T}no" >&6
11040 fi
11041
11042 done
11043 fi
11044
11045 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11046 for ncn_progname in windres; do
11047 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11048 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11049 if test -x $with_build_time_tools/${ncn_progname}; then
11050 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11051 echo "$as_me:$LINENO: result: yes" >&5
11052 echo "${ECHO_T}yes" >&6
11053 break
11054 else
11055 echo "$as_me:$LINENO: result: no" >&5
11056 echo "${ECHO_T}no" >&6
11057 fi
11058 done
11059 fi
11060
11061 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11062 for ncn_progname in windres; do
11063 if test -n "$ncn_target_tool_prefix"; then
11064 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11065 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11066 echo "$as_me:$LINENO: checking for $ac_word" >&5
11067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11068 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071 if test -n "$WINDRES_FOR_TARGET"; then
11072 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11073 else
11074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075 for as_dir in $PATH
11076 do
11077 IFS=$as_save_IFS
11078 test -z "$as_dir" && as_dir=.
11079 for ac_exec_ext in '' $ac_executable_extensions; do
11080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11081 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11083 break 2
11084 fi
11085 done
11086 done
11087
11088 fi
11089 fi
11090 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11091 if test -n "$WINDRES_FOR_TARGET"; then
11092 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11093 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11094 else
11095 echo "$as_me:$LINENO: result: no" >&5
11096 echo "${ECHO_T}no" >&6
11097 fi
11098
11099 fi
11100 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11102 set dummy ${ncn_progname}; ac_word=$2
11103 echo "$as_me:$LINENO: checking for $ac_word" >&5
11104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11105 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108 if test -n "$WINDRES_FOR_TARGET"; then
11109 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11110 else
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in $PATH
11113 do
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11118 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 break 2
11121 fi
11122 done
11123 done
11124
11125 fi
11126 fi
11127 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11128 if test -n "$WINDRES_FOR_TARGET"; then
11129 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11130 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11131 else
11132 echo "$as_me:$LINENO: result: no" >&5
11133 echo "${ECHO_T}no" >&6
11134 fi
11135
11136 fi
11137 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11138 done
11139 fi
11140
11141 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11142 set dummy windres
11143 if test $build = $target ; then
11144 WINDRES_FOR_TARGET="$2"
11145 else
11146 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11147 fi
11148 else
11149 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11150 fi
11151
11152 else
11153 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11154 fi
11155
11156
11157
11158
11159 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11160 if test -n "$with_build_time_tools"; then
11161 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11162 echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11163 if test -x $with_build_time_tools/windmc; then
11164 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11165 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11166 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11167 echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11168 else
11169 echo "$as_me:$LINENO: result: no" >&5
11170 echo "${ECHO_T}no" >&6
11171 fi
11172 elif test $build != $host && test $have_gcc_for_target = yes; then
11173 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11174 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11175 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11176 fi
11177 fi
11178 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11179 # Extract the first word of "windmc", so it can be a program name with args.
11180 set dummy windmc; ac_word=$2
11181 echo "$as_me:$LINENO: checking for $ac_word" >&5
11182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11183 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 case $WINDMC_FOR_TARGET in
11187 [\\/]* | ?:[\\/]*)
11188 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11189 ;;
11190 *)
11191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192 for as_dir in $gcc_cv_tool_dirs
11193 do
11194 IFS=$as_save_IFS
11195 test -z "$as_dir" && as_dir=.
11196 for ac_exec_ext in '' $ac_executable_extensions; do
11197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11198 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 break 2
11201 fi
11202 done
11203 done
11204
11205 ;;
11206 esac
11207 fi
11208 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11209
11210 if test -n "$WINDMC_FOR_TARGET"; then
11211 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11212 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11213 else
11214 echo "$as_me:$LINENO: result: no" >&5
11215 echo "${ECHO_T}no" >&6
11216 fi
11217
11218 fi
11219 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11220
11221
11222 if test -n "$WINDMC_FOR_TARGET"; then
11223 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11224 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11225 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11226 fi
11227
11228 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11229 for ncn_progname in windmc; do
11230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11231 set dummy ${ncn_progname}; ac_word=$2
11232 echo "$as_me:$LINENO: checking for $ac_word" >&5
11233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11234 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237 if test -n "$WINDMC_FOR_TARGET"; then
11238 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11239 else
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in $PATH
11242 do
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
11245 for ac_exec_ext in '' $ac_executable_extensions; do
11246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11247 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11249 break 2
11250 fi
11251 done
11252 done
11253
11254 fi
11255 fi
11256 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11257 if test -n "$WINDMC_FOR_TARGET"; then
11258 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11259 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11260 else
11261 echo "$as_me:$LINENO: result: no" >&5
11262 echo "${ECHO_T}no" >&6
11263 fi
11264
11265 done
11266 fi
11267
11268 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11269 for ncn_progname in windmc; do
11270 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11271 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11272 if test -x $with_build_time_tools/${ncn_progname}; then
11273 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11274 echo "$as_me:$LINENO: result: yes" >&5
11275 echo "${ECHO_T}yes" >&6
11276 break
11277 else
11278 echo "$as_me:$LINENO: result: no" >&5
11279 echo "${ECHO_T}no" >&6
11280 fi
11281 done
11282 fi
11283
11284 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11285 for ncn_progname in windmc; do
11286 if test -n "$ncn_target_tool_prefix"; then
11287 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11288 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11289 echo "$as_me:$LINENO: checking for $ac_word" >&5
11290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11291 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294 if test -n "$WINDMC_FOR_TARGET"; then
11295 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11296 else
11297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298 for as_dir in $PATH
11299 do
11300 IFS=$as_save_IFS
11301 test -z "$as_dir" && as_dir=.
11302 for ac_exec_ext in '' $ac_executable_extensions; do
11303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11304 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11306 break 2
11307 fi
11308 done
11309 done
11310
11311 fi
11312 fi
11313 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11314 if test -n "$WINDMC_FOR_TARGET"; then
11315 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11316 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11317 else
11318 echo "$as_me:$LINENO: result: no" >&5
11319 echo "${ECHO_T}no" >&6
11320 fi
11321
11322 fi
11323 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11325 set dummy ${ncn_progname}; ac_word=$2
11326 echo "$as_me:$LINENO: checking for $ac_word" >&5
11327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11328 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331 if test -n "$WINDMC_FOR_TARGET"; then
11332 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11333 else
11334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335 for as_dir in $PATH
11336 do
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11341 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 break 2
11344 fi
11345 done
11346 done
11347
11348 fi
11349 fi
11350 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11351 if test -n "$WINDMC_FOR_TARGET"; then
11352 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11353 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11354 else
11355 echo "$as_me:$LINENO: result: no" >&5
11356 echo "${ECHO_T}no" >&6
11357 fi
11358
11359 fi
11360 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11361 done
11362 fi
11363
11364 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11365 set dummy windmc
11366 if test $build = $target ; then
11367 WINDMC_FOR_TARGET="$2"
11368 else
11369 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11370 fi
11371 else
11372 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11373 fi
11374
11375 else
11376 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11377 fi
11378
11379
11380 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11381
11382 echo "$as_me:$LINENO: checking where to find the target ar" >&5
11383 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11384 if test "x${build}" != "x${host}" ; then
11385 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11386 # We already found the complete path
11387 ac_dir=`dirname $AR_FOR_TARGET`
11388 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11389 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11390 else
11391 # Canadian cross, just use what we found
11392 echo "$as_me:$LINENO: result: pre-installed" >&5
11393 echo "${ECHO_T}pre-installed" >&6
11394 fi
11395 else
11396 ok=yes
11397 case " ${configdirs} " in
11398 *" binutils "*) ;;
11399 *) ok=no ;;
11400 esac
11401
11402 if test $ok = yes; then
11403 # An in-tree tool is available and we can use it
11404 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11405 echo "$as_me:$LINENO: result: just compiled" >&5
11406 echo "${ECHO_T}just compiled" >&6
11407 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11408 # We already found the complete path
11409 ac_dir=`dirname $AR_FOR_TARGET`
11410 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11411 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11412 elif test "x$target" = "x$host"; then
11413 # We can use an host tool
11414 AR_FOR_TARGET='$(AR)'
11415 echo "$as_me:$LINENO: result: host tool" >&5
11416 echo "${ECHO_T}host tool" >&6
11417 else
11418 # We need a cross tool
11419 echo "$as_me:$LINENO: result: pre-installed" >&5
11420 echo "${ECHO_T}pre-installed" >&6
11421 fi
11422 fi
11423
11424 echo "$as_me:$LINENO: checking where to find the target as" >&5
11425 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11426 if test "x${build}" != "x${host}" ; then
11427 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11428 # We already found the complete path
11429 ac_dir=`dirname $AS_FOR_TARGET`
11430 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11431 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11432 else
11433 # Canadian cross, just use what we found
11434 echo "$as_me:$LINENO: result: pre-installed" >&5
11435 echo "${ECHO_T}pre-installed" >&6
11436 fi
11437 else
11438 ok=yes
11439 case " ${configdirs} " in
11440 *" gas "*) ;;
11441 *) ok=no ;;
11442 esac
11443
11444 if test $ok = yes; then
11445 # An in-tree tool is available and we can use it
11446 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11447 echo "$as_me:$LINENO: result: just compiled" >&5
11448 echo "${ECHO_T}just compiled" >&6
11449 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11450 # We already found the complete path
11451 ac_dir=`dirname $AS_FOR_TARGET`
11452 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11453 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11454 elif test "x$target" = "x$host"; then
11455 # We can use an host tool
11456 AS_FOR_TARGET='$(AS)'
11457 echo "$as_me:$LINENO: result: host tool" >&5
11458 echo "${ECHO_T}host tool" >&6
11459 else
11460 # We need a cross tool
11461 echo "$as_me:$LINENO: result: pre-installed" >&5
11462 echo "${ECHO_T}pre-installed" >&6
11463 fi
11464 fi
11465
11466 echo "$as_me:$LINENO: checking where to find the target cc" >&5
11467 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11468 if test "x${build}" != "x${host}" ; then
11469 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11470 # We already found the complete path
11471 ac_dir=`dirname $CC_FOR_TARGET`
11472 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11473 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11474 else
11475 # Canadian cross, just use what we found
11476 echo "$as_me:$LINENO: result: pre-installed" >&5
11477 echo "${ECHO_T}pre-installed" >&6
11478 fi
11479 else
11480 ok=yes
11481 case " ${configdirs} " in
11482 *" gcc "*) ;;
11483 *) ok=no ;;
11484 esac
11485
11486 if test $ok = yes; then
11487 # An in-tree tool is available and we can use it
11488 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11489 echo "$as_me:$LINENO: result: just compiled" >&5
11490 echo "${ECHO_T}just compiled" >&6
11491 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11492 # We already found the complete path
11493 ac_dir=`dirname $CC_FOR_TARGET`
11494 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11495 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11496 elif test "x$target" = "x$host"; then
11497 # We can use an host tool
11498 CC_FOR_TARGET='$(CC)'
11499 echo "$as_me:$LINENO: result: host tool" >&5
11500 echo "${ECHO_T}host tool" >&6
11501 else
11502 # We need a cross tool
11503 echo "$as_me:$LINENO: result: pre-installed" >&5
11504 echo "${ECHO_T}pre-installed" >&6
11505 fi
11506 fi
11507
11508 echo "$as_me:$LINENO: checking where to find the target c++" >&5
11509 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11510 if test "x${build}" != "x${host}" ; then
11511 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11512 # We already found the complete path
11513 ac_dir=`dirname $CXX_FOR_TARGET`
11514 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11515 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11516 else
11517 # Canadian cross, just use what we found
11518 echo "$as_me:$LINENO: result: pre-installed" >&5
11519 echo "${ECHO_T}pre-installed" >&6
11520 fi
11521 else
11522 ok=yes
11523 case " ${configdirs} " in
11524 *" gcc "*) ;;
11525 *) ok=no ;;
11526 esac
11527 case ,${enable_languages}, in
11528 *,c++,*) ;;
11529 *) ok=no ;;
11530 esac
11531 if test $ok = yes; then
11532 # An in-tree tool is available and we can use it
11533 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'
11534 echo "$as_me:$LINENO: result: just compiled" >&5
11535 echo "${ECHO_T}just compiled" >&6
11536 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11537 # We already found the complete path
11538 ac_dir=`dirname $CXX_FOR_TARGET`
11539 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11540 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11541 elif test "x$target" = "x$host"; then
11542 # We can use an host tool
11543 CXX_FOR_TARGET='$(CXX)'
11544 echo "$as_me:$LINENO: result: host tool" >&5
11545 echo "${ECHO_T}host tool" >&6
11546 else
11547 # We need a cross tool
11548 echo "$as_me:$LINENO: result: pre-installed" >&5
11549 echo "${ECHO_T}pre-installed" >&6
11550 fi
11551 fi
11552
11553 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11554 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11555 if test "x${build}" != "x${host}" ; then
11556 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11557 # We already found the complete path
11558 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11559 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11560 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11561 else
11562 # Canadian cross, just use what we found
11563 echo "$as_me:$LINENO: result: pre-installed" >&5
11564 echo "${ECHO_T}pre-installed" >&6
11565 fi
11566 else
11567 ok=yes
11568 case " ${configdirs} " in
11569 *" gcc "*) ;;
11570 *) ok=no ;;
11571 esac
11572 case ,${enable_languages}, in
11573 *,c++,*) ;;
11574 *) ok=no ;;
11575 esac
11576 if test $ok = yes; then
11577 # An in-tree tool is available and we can use it
11578 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'
11579 echo "$as_me:$LINENO: result: just compiled" >&5
11580 echo "${ECHO_T}just compiled" >&6
11581 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11582 # We already found the complete path
11583 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11584 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11585 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11586 elif test "x$target" = "x$host"; then
11587 # We can use an host tool
11588 RAW_CXX_FOR_TARGET='$(CXX)'
11589 echo "$as_me:$LINENO: result: host tool" >&5
11590 echo "${ECHO_T}host tool" >&6
11591 else
11592 # We need a cross tool
11593 echo "$as_me:$LINENO: result: pre-installed" >&5
11594 echo "${ECHO_T}pre-installed" >&6
11595 fi
11596 fi
11597
11598 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11599 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11600 if test "x${build}" != "x${host}" ; then
11601 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11602 # We already found the complete path
11603 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11604 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11605 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11606 else
11607 # Canadian cross, just use what we found
11608 echo "$as_me:$LINENO: result: pre-installed" >&5
11609 echo "${ECHO_T}pre-installed" >&6
11610 fi
11611 else
11612 ok=yes
11613 case " ${configdirs} " in
11614 *" binutils "*) ;;
11615 *) ok=no ;;
11616 esac
11617
11618 if test $ok = yes; then
11619 # An in-tree tool is available and we can use it
11620 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11621 echo "$as_me:$LINENO: result: just compiled" >&5
11622 echo "${ECHO_T}just compiled" >&6
11623 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11624 # We already found the complete path
11625 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11626 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11627 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11628 elif test "x$target" = "x$host"; then
11629 # We can use an host tool
11630 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11631 echo "$as_me:$LINENO: result: host tool" >&5
11632 echo "${ECHO_T}host tool" >&6
11633 else
11634 # We need a cross tool
11635 echo "$as_me:$LINENO: result: pre-installed" >&5
11636 echo "${ECHO_T}pre-installed" >&6
11637 fi
11638 fi
11639
11640 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11641 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11642 if test "x${build}" != "x${host}" ; then
11643 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11644 # We already found the complete path
11645 ac_dir=`dirname $GCC_FOR_TARGET`
11646 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11647 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11648 else
11649 # Canadian cross, just use what we found
11650 echo "$as_me:$LINENO: result: pre-installed" >&5
11651 echo "${ECHO_T}pre-installed" >&6
11652 fi
11653 else
11654 ok=yes
11655 case " ${configdirs} " in
11656 *" gcc "*) ;;
11657 *) ok=no ;;
11658 esac
11659
11660 if test $ok = yes; then
11661 # An in-tree tool is available and we can use it
11662 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11663 echo "$as_me:$LINENO: result: just compiled" >&5
11664 echo "${ECHO_T}just compiled" >&6
11665 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11666 # We already found the complete path
11667 ac_dir=`dirname $GCC_FOR_TARGET`
11668 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11669 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11670 elif test "x$target" = "x$host"; then
11671 # We can use an host tool
11672 GCC_FOR_TARGET='$()'
11673 echo "$as_me:$LINENO: result: host tool" >&5
11674 echo "${ECHO_T}host tool" >&6
11675 else
11676 # We need a cross tool
11677 echo "$as_me:$LINENO: result: pre-installed" >&5
11678 echo "${ECHO_T}pre-installed" >&6
11679 fi
11680 fi
11681
11682 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11683 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11684 if test "x${build}" != "x${host}" ; then
11685 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11686 # We already found the complete path
11687 ac_dir=`dirname $GCJ_FOR_TARGET`
11688 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11689 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11690 else
11691 # Canadian cross, just use what we found
11692 echo "$as_me:$LINENO: result: pre-installed" >&5
11693 echo "${ECHO_T}pre-installed" >&6
11694 fi
11695 else
11696 ok=yes
11697 case " ${configdirs} " in
11698 *" gcc "*) ;;
11699 *) ok=no ;;
11700 esac
11701 case ,${enable_languages}, in
11702 *,java,*) ;;
11703 *) ok=no ;;
11704 esac
11705 if test $ok = yes; then
11706 # An in-tree tool is available and we can use it
11707 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11708 echo "$as_me:$LINENO: result: just compiled" >&5
11709 echo "${ECHO_T}just compiled" >&6
11710 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11711 # We already found the complete path
11712 ac_dir=`dirname $GCJ_FOR_TARGET`
11713 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11714 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11715 elif test "x$target" = "x$host"; then
11716 # We can use an host tool
11717 GCJ_FOR_TARGET='$(GCJ)'
11718 echo "$as_me:$LINENO: result: host tool" >&5
11719 echo "${ECHO_T}host tool" >&6
11720 else
11721 # We need a cross tool
11722 echo "$as_me:$LINENO: result: pre-installed" >&5
11723 echo "${ECHO_T}pre-installed" >&6
11724 fi
11725 fi
11726
11727 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11728 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11729 if test "x${build}" != "x${host}" ; then
11730 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11731 # We already found the complete path
11732 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11733 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11734 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11735 else
11736 # Canadian cross, just use what we found
11737 echo "$as_me:$LINENO: result: pre-installed" >&5
11738 echo "${ECHO_T}pre-installed" >&6
11739 fi
11740 else
11741 ok=yes
11742 case " ${configdirs} " in
11743 *" gcc "*) ;;
11744 *) ok=no ;;
11745 esac
11746 case ,${enable_languages}, in
11747 *,fortran,*) ;;
11748 *) ok=no ;;
11749 esac
11750 if test $ok = yes; then
11751 # An in-tree tool is available and we can use it
11752 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11753 echo "$as_me:$LINENO: result: just compiled" >&5
11754 echo "${ECHO_T}just compiled" >&6
11755 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11756 # We already found the complete path
11757 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11758 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11759 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11760 elif test "x$target" = "x$host"; then
11761 # We can use an host tool
11762 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11763 echo "$as_me:$LINENO: result: host tool" >&5
11764 echo "${ECHO_T}host tool" >&6
11765 else
11766 # We need a cross tool
11767 echo "$as_me:$LINENO: result: pre-installed" >&5
11768 echo "${ECHO_T}pre-installed" >&6
11769 fi
11770 fi
11771
11772 echo "$as_me:$LINENO: checking where to find the target ld" >&5
11773 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
11774 if test "x${build}" != "x${host}" ; then
11775 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11776 # We already found the complete path
11777 ac_dir=`dirname $LD_FOR_TARGET`
11778 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11779 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11780 else
11781 # Canadian cross, just use what we found
11782 echo "$as_me:$LINENO: result: pre-installed" >&5
11783 echo "${ECHO_T}pre-installed" >&6
11784 fi
11785 else
11786 ok=yes
11787 case " ${configdirs} " in
11788 *" ld "*) ;;
11789 *) ok=no ;;
11790 esac
11791
11792 if test $ok = yes; then
11793 # An in-tree tool is available and we can use it
11794 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11795 echo "$as_me:$LINENO: result: just compiled" >&5
11796 echo "${ECHO_T}just compiled" >&6
11797 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11798 # We already found the complete path
11799 ac_dir=`dirname $LD_FOR_TARGET`
11800 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11801 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11802 elif test "x$target" = "x$host"; then
11803 # We can use an host tool
11804 LD_FOR_TARGET='$(LD)'
11805 echo "$as_me:$LINENO: result: host tool" >&5
11806 echo "${ECHO_T}host tool" >&6
11807 else
11808 # We need a cross tool
11809 echo "$as_me:$LINENO: result: pre-installed" >&5
11810 echo "${ECHO_T}pre-installed" >&6
11811 fi
11812 fi
11813
11814 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11815 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
11816 if test "x${build}" != "x${host}" ; then
11817 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11818 # We already found the complete path
11819 ac_dir=`dirname $LIPO_FOR_TARGET`
11820 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11821 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11822 else
11823 # Canadian cross, just use what we found
11824 echo "$as_me:$LINENO: result: pre-installed" >&5
11825 echo "${ECHO_T}pre-installed" >&6
11826 fi
11827 else
11828 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11829 # We already found the complete path
11830 ac_dir=`dirname $LIPO_FOR_TARGET`
11831 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11832 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11833 elif test "x$target" = "x$host"; then
11834 # We can use an host tool
11835 LIPO_FOR_TARGET='$(LIPO)'
11836 echo "$as_me:$LINENO: result: host tool" >&5
11837 echo "${ECHO_T}host tool" >&6
11838 else
11839 # We need a cross tool
11840 echo "$as_me:$LINENO: result: pre-installed" >&5
11841 echo "${ECHO_T}pre-installed" >&6
11842 fi
11843 fi
11844
11845 echo "$as_me:$LINENO: checking where to find the target nm" >&5
11846 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
11847 if test "x${build}" != "x${host}" ; then
11848 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11849 # We already found the complete path
11850 ac_dir=`dirname $NM_FOR_TARGET`
11851 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11852 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11853 else
11854 # Canadian cross, just use what we found
11855 echo "$as_me:$LINENO: result: pre-installed" >&5
11856 echo "${ECHO_T}pre-installed" >&6
11857 fi
11858 else
11859 ok=yes
11860 case " ${configdirs} " in
11861 *" binutils "*) ;;
11862 *) ok=no ;;
11863 esac
11864
11865 if test $ok = yes; then
11866 # An in-tree tool is available and we can use it
11867 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11868 echo "$as_me:$LINENO: result: just compiled" >&5
11869 echo "${ECHO_T}just compiled" >&6
11870 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11871 # We already found the complete path
11872 ac_dir=`dirname $NM_FOR_TARGET`
11873 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11874 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11875 elif test "x$target" = "x$host"; then
11876 # We can use an host tool
11877 NM_FOR_TARGET='$(NM)'
11878 echo "$as_me:$LINENO: result: host tool" >&5
11879 echo "${ECHO_T}host tool" >&6
11880 else
11881 # We need a cross tool
11882 echo "$as_me:$LINENO: result: pre-installed" >&5
11883 echo "${ECHO_T}pre-installed" >&6
11884 fi
11885 fi
11886
11887 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11888 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
11889 if test "x${build}" != "x${host}" ; then
11890 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11891 # We already found the complete path
11892 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11893 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11894 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11895 else
11896 # Canadian cross, just use what we found
11897 echo "$as_me:$LINENO: result: pre-installed" >&5
11898 echo "${ECHO_T}pre-installed" >&6
11899 fi
11900 else
11901 ok=yes
11902 case " ${configdirs} " in
11903 *" binutils "*) ;;
11904 *) ok=no ;;
11905 esac
11906
11907 if test $ok = yes; then
11908 # An in-tree tool is available and we can use it
11909 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11910 echo "$as_me:$LINENO: result: just compiled" >&5
11911 echo "${ECHO_T}just compiled" >&6
11912 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11913 # We already found the complete path
11914 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11915 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11916 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11917 elif test "x$target" = "x$host"; then
11918 # We can use an host tool
11919 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11920 echo "$as_me:$LINENO: result: host tool" >&5
11921 echo "${ECHO_T}host tool" >&6
11922 else
11923 # We need a cross tool
11924 echo "$as_me:$LINENO: result: pre-installed" >&5
11925 echo "${ECHO_T}pre-installed" >&6
11926 fi
11927 fi
11928
11929 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11930 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
11931 if test "x${build}" != "x${host}" ; then
11932 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11933 # We already found the complete path
11934 ac_dir=`dirname $RANLIB_FOR_TARGET`
11935 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11936 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11937 else
11938 # Canadian cross, just use what we found
11939 echo "$as_me:$LINENO: result: pre-installed" >&5
11940 echo "${ECHO_T}pre-installed" >&6
11941 fi
11942 else
11943 ok=yes
11944 case " ${configdirs} " in
11945 *" binutils "*) ;;
11946 *) ok=no ;;
11947 esac
11948
11949 if test $ok = yes; then
11950 # An in-tree tool is available and we can use it
11951 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11952 echo "$as_me:$LINENO: result: just compiled" >&5
11953 echo "${ECHO_T}just compiled" >&6
11954 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11955 # We already found the complete path
11956 ac_dir=`dirname $RANLIB_FOR_TARGET`
11957 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11958 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11959 elif test "x$target" = "x$host"; then
11960 # We can use an host tool
11961 RANLIB_FOR_TARGET='$(RANLIB)'
11962 echo "$as_me:$LINENO: result: host tool" >&5
11963 echo "${ECHO_T}host tool" >&6
11964 else
11965 # We need a cross tool
11966 echo "$as_me:$LINENO: result: pre-installed" >&5
11967 echo "${ECHO_T}pre-installed" >&6
11968 fi
11969 fi
11970
11971 echo "$as_me:$LINENO: checking where to find the target strip" >&5
11972 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
11973 if test "x${build}" != "x${host}" ; then
11974 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11975 # We already found the complete path
11976 ac_dir=`dirname $STRIP_FOR_TARGET`
11977 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11978 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11979 else
11980 # Canadian cross, just use what we found
11981 echo "$as_me:$LINENO: result: pre-installed" >&5
11982 echo "${ECHO_T}pre-installed" >&6
11983 fi
11984 else
11985 ok=yes
11986 case " ${configdirs} " in
11987 *" binutils "*) ;;
11988 *) ok=no ;;
11989 esac
11990
11991 if test $ok = yes; then
11992 # An in-tree tool is available and we can use it
11993 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11994 echo "$as_me:$LINENO: result: just compiled" >&5
11995 echo "${ECHO_T}just compiled" >&6
11996 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11997 # We already found the complete path
11998 ac_dir=`dirname $STRIP_FOR_TARGET`
11999 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12000 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12001 elif test "x$target" = "x$host"; then
12002 # We can use an host tool
12003 STRIP_FOR_TARGET='$(STRIP)'
12004 echo "$as_me:$LINENO: result: host tool" >&5
12005 echo "${ECHO_T}host tool" >&6
12006 else
12007 # We need a cross tool
12008 echo "$as_me:$LINENO: result: pre-installed" >&5
12009 echo "${ECHO_T}pre-installed" >&6
12010 fi
12011 fi
12012
12013 echo "$as_me:$LINENO: checking where to find the target windres" >&5
12014 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
12015 if test "x${build}" != "x${host}" ; then
12016 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12017 # We already found the complete path
12018 ac_dir=`dirname $WINDRES_FOR_TARGET`
12019 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12020 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12021 else
12022 # Canadian cross, just use what we found
12023 echo "$as_me:$LINENO: result: pre-installed" >&5
12024 echo "${ECHO_T}pre-installed" >&6
12025 fi
12026 else
12027 ok=yes
12028 case " ${configdirs} " in
12029 *" binutils "*) ;;
12030 *) ok=no ;;
12031 esac
12032
12033 if test $ok = yes; then
12034 # An in-tree tool is available and we can use it
12035 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12036 echo "$as_me:$LINENO: result: just compiled" >&5
12037 echo "${ECHO_T}just compiled" >&6
12038 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12039 # We already found the complete path
12040 ac_dir=`dirname $WINDRES_FOR_TARGET`
12041 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12042 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12043 elif test "x$target" = "x$host"; then
12044 # We can use an host tool
12045 WINDRES_FOR_TARGET='$(WINDRES)'
12046 echo "$as_me:$LINENO: result: host tool" >&5
12047 echo "${ECHO_T}host tool" >&6
12048 else
12049 # We need a cross tool
12050 echo "$as_me:$LINENO: result: pre-installed" >&5
12051 echo "${ECHO_T}pre-installed" >&6
12052 fi
12053 fi
12054
12055 echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12056 echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12057 if test "x${build}" != "x${host}" ; then
12058 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12059 # We already found the complete path
12060 ac_dir=`dirname $WINDMC_FOR_TARGET`
12061 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12062 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12063 else
12064 # Canadian cross, just use what we found
12065 echo "$as_me:$LINENO: result: pre-installed" >&5
12066 echo "${ECHO_T}pre-installed" >&6
12067 fi
12068 else
12069 ok=yes
12070 case " ${configdirs} " in
12071 *" binutils "*) ;;
12072 *) ok=no ;;
12073 esac
12074
12075 if test $ok = yes; then
12076 # An in-tree tool is available and we can use it
12077 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12078 echo "$as_me:$LINENO: result: just compiled" >&5
12079 echo "${ECHO_T}just compiled" >&6
12080 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12081 # We already found the complete path
12082 ac_dir=`dirname $WINDMC_FOR_TARGET`
12083 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12084 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12085 elif test "x$target" = "x$host"; then
12086 # We can use an host tool
12087 WINDMC_FOR_TARGET='$(WINDMC)'
12088 echo "$as_me:$LINENO: result: host tool" >&5
12089 echo "${ECHO_T}host tool" >&6
12090 else
12091 # We need a cross tool
12092 echo "$as_me:$LINENO: result: pre-installed" >&5
12093 echo "${ECHO_T}pre-installed" >&6
12094 fi
12095 fi
12096
12097
12098
12099
12100
12101 # Certain tools may need extra flags.
12102 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12103 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12104 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12105
12106 # When building target libraries, except in a Canadian cross, we use
12107 # the same toolchain as the compiler we just built.
12108 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12109 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12110 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12111 if test $host = $build; then
12112 case " $configdirs " in
12113 *" gcc "*)
12114 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12115 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12116 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12117 ;;
12118 esac
12119 fi
12120
12121
12122
12123
12124
12125 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12126 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12127 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12128 if test "${enable_maintainer_mode+set}" = set; then
12129 enableval="$enable_maintainer_mode"
12130 USE_MAINTAINER_MODE=$enableval
12131 else
12132 USE_MAINTAINER_MODE=no
12133 fi;
12134 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12135 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12136
12137
12138 if test "$USE_MAINTAINER_MODE" = yes; then
12139 MAINTAINER_MODE_TRUE=
12140 MAINTAINER_MODE_FALSE='#'
12141 else
12142 MAINTAINER_MODE_TRUE='#'
12143 MAINTAINER_MODE_FALSE=
12144 fi
12145 MAINT=$MAINTAINER_MODE_TRUE
12146
12147 # ---------------------
12148 # GCC bootstrap support
12149 # ---------------------
12150
12151 # Stage specific cflags for build.
12152 stage1_cflags="-g"
12153 case $build in
12154 vax-*-*)
12155 case ${GCC} in
12156 yes) stage1_cflags="-g -Wa,-J" ;;
12157 *) stage1_cflags="-g -J" ;;
12158 esac ;;
12159 esac
12160
12161 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12162 if test "$GCC" = yes; then
12163 saved_CFLAGS="$CFLAGS"
12164
12165 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12166 CFLAGS="$CFLAGS -fkeep-inline-functions"
12167 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12168 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175
12176 #if (__GNUC__ < 3) \
12177 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12178 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12179 #error http://gcc.gnu.org/PR29382
12180 #endif
12181
12182 int
12183 main ()
12184 {
12185
12186 ;
12187 return 0;
12188 }
12189 _ACEOF
12190 rm -f conftest.$ac_objext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12192 (eval $ac_compile) 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_c_werror_flag"
12200 || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 echo "$as_me:$LINENO: result: yes" >&5
12213 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12214 else
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12217
12218 echo "$as_me:$LINENO: result: no" >&5
12219 echo "${ECHO_T}no" >&6
12220 fi
12221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12222
12223 CFLAGS="$saved_CFLAGS"
12224 fi
12225
12226
12227
12228 # Enable --enable-checking in stage1 of the compiler.
12229 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12230 if test "${enable_stage1_checking+set}" = set; then
12231 enableval="$enable_stage1_checking"
12232 stage1_checking=--enable-checking=${enable_stage1_checking}
12233 else
12234 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12235 stage1_checking=--enable-checking=yes,types
12236 else
12237 stage1_checking=--enable-checking=$enable_checking,types
12238 fi
12239 fi;
12240
12241
12242 # Enable -Werror in bootstrap stage2 and later.
12243 # Check whether --enable-werror or --disable-werror was given.
12244 if test "${enable_werror+set}" = set; then
12245 enableval="$enable_werror"
12246
12247 else
12248 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12249 enable_werror=yes
12250 else
12251 enable_werror=no
12252 fi
12253 fi;
12254 case ${enable_werror} in
12255 yes) stage2_werror_flag="--enable-werror-always" ;;
12256 *) stage2_werror_flag="" ;;
12257 esac
12258
12259
12260 # Flags needed to enable html installing and building
12261
12262 # Check whether --with-datarootdir or --without-datarootdir was given.
12263 if test "${with_datarootdir+set}" = set; then
12264 withval="$with_datarootdir"
12265 datarootdir="\${prefix}/${withval}"
12266 else
12267 datarootdir="\${prefix}/share"
12268 fi;
12269
12270
12271 # Check whether --with-docdir or --without-docdir was given.
12272 if test "${with_docdir+set}" = set; then
12273 withval="$with_docdir"
12274 docdir="\${prefix}/${withval}"
12275 else
12276 docdir="\${datarootdir}/doc"
12277 fi;
12278
12279
12280 # Check whether --with-pdfdir or --without-pdfdir was given.
12281 if test "${with_pdfdir+set}" = set; then
12282 withval="$with_pdfdir"
12283 pdfdir="\${prefix}/${withval}"
12284 else
12285 pdfdir="\${docdir}"
12286 fi;
12287
12288
12289 # Check whether --with-htmldir or --without-htmldir was given.
12290 if test "${with_htmldir+set}" = set; then
12291 withval="$with_htmldir"
12292 htmldir="\${prefix}/${withval}"
12293 else
12294 htmldir="\${docdir}"
12295 fi;
12296
12297
12298
12299
12300
12301
12302 ac_config_files="$ac_config_files Makefile"
12303 cat >confcache <<\_ACEOF
12304 # This file is a shell script that caches the results of configure
12305 # tests run on this system so they can be shared between configure
12306 # scripts and configure runs, see configure's option --config-cache.
12307 # It is not useful on other systems. If it contains results you don't
12308 # want to keep, you may remove or edit it.
12309 #
12310 # config.status only pays attention to the cache file if you give it
12311 # the --recheck option to rerun configure.
12312 #
12313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12315 # following values.
12316
12317 _ACEOF
12318
12319 # The following way of writing the cache mishandles newlines in values,
12320 # but we know of no workaround that is simple, portable, and efficient.
12321 # So, don't put newlines in cache variables' values.
12322 # Ultrix sh set writes to stderr and can't be redirected directly,
12323 # and sets the high bit in the cache file unless we assign to the vars.
12324 {
12325 (set) 2>&1 |
12326 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12327 *ac_space=\ *)
12328 # `set' does not quote correctly, so add quotes (double-quote
12329 # substitution turns \\\\ into \\, and sed turns \\ into \).
12330 sed -n \
12331 "s/'/'\\\\''/g;
12332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12333 ;;
12334 *)
12335 # `set' quotes correctly as required by POSIX, so do not add quotes.
12336 sed -n \
12337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12338 ;;
12339 esac;
12340 } |
12341 sed '
12342 t clear
12343 : clear
12344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12345 t end
12346 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12347 : end' >>confcache
12348 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12349 if test -w $cache_file; then
12350 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12351 cat confcache >$cache_file
12352 else
12353 echo "not updating unwritable cache $cache_file"
12354 fi
12355 fi
12356 rm -f confcache
12357
12358 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12359 # Let make expand exec_prefix.
12360 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12361
12362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12364 # trailing colons and then remove the whole line if VPATH becomes empty
12365 # (actually we leave an empty line to preserve line numbers).
12366 if test "x$srcdir" = x.; then
12367 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12368 s/:*\$(srcdir):*/:/;
12369 s/:*\${srcdir}:*/:/;
12370 s/:*@srcdir@:*/:/;
12371 s/^\([^=]*=[ ]*\):*/\1/;
12372 s/:*$//;
12373 s/^[^=]*=[ ]*$//;
12374 }'
12375 fi
12376
12377 # Transform confdefs.h into DEFS.
12378 # Protect against shell expansion while executing Makefile rules.
12379 # Protect against Makefile macro expansion.
12380 #
12381 # If the first sed substitution is executed (which looks for macros that
12382 # take arguments), then we branch to the quote section. Otherwise,
12383 # look for a macro that doesn't take arguments.
12384 cat >confdef2opt.sed <<\_ACEOF
12385 t clear
12386 : clear
12387 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12388 t quote
12389 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12390 t quote
12391 d
12392 : quote
12393 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12394 s,\[,\\&,g
12395 s,\],\\&,g
12396 s,\$,$$,g
12397 p
12398 _ACEOF
12399 # We use echo to avoid assuming a particular line-breaking character.
12400 # The extra dot is to prevent the shell from consuming trailing
12401 # line-breaks from the sub-command output. A line-break within
12402 # single-quotes doesn't work because, if this script is created in a
12403 # platform that uses two characters for line-breaks (e.g., DOS), tr
12404 # would break.
12405 ac_LF_and_DOT=`echo; echo .`
12406 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12407 rm -f confdef2opt.sed
12408
12409
12410 ac_libobjs=
12411 ac_ltlibobjs=
12412 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12413 # 1. Remove the extension, and $U if already installed.
12414 ac_i=`echo "$ac_i" |
12415 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12416 # 2. Add them.
12417 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12418 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12419 done
12420 LIBOBJS=$ac_libobjs
12421
12422 LTLIBOBJS=$ac_ltlibobjs
12423
12424
12425
12426 : ${CONFIG_STATUS=./config.status}
12427 ac_clean_files_save=$ac_clean_files
12428 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12429 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12430 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12431 cat >$CONFIG_STATUS <<_ACEOF
12432 #! $SHELL
12433 # Generated by $as_me.
12434 # Run this file to recreate the current configuration.
12435 # Compiler output produced by configure, useful for debugging
12436 # configure, is in config.log if it exists.
12437
12438 debug=false
12439 ac_cs_recheck=false
12440 ac_cs_silent=false
12441 SHELL=\${CONFIG_SHELL-$SHELL}
12442 _ACEOF
12443
12444 cat >>$CONFIG_STATUS <<\_ACEOF
12445 ## --------------------- ##
12446 ## M4sh Initialization. ##
12447 ## --------------------- ##
12448
12449 # Be Bourne compatible
12450 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12451 emulate sh
12452 NULLCMD=:
12453 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12454 # is contrary to our usage. Disable this feature.
12455 alias -g '${1+"$@"}'='"$@"'
12456 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12457 set -o posix
12458 fi
12459 DUALCASE=1; export DUALCASE # for MKS sh
12460
12461 # Support unset when possible.
12462 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12463 as_unset=unset
12464 else
12465 as_unset=false
12466 fi
12467
12468
12469 # Work around bugs in pre-3.0 UWIN ksh.
12470 $as_unset ENV MAIL MAILPATH
12471 PS1='$ '
12472 PS2='> '
12473 PS4='+ '
12474
12475 # NLS nuisances.
12476 for as_var in \
12477 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12478 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12479 LC_TELEPHONE LC_TIME
12480 do
12481 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12482 eval $as_var=C; export $as_var
12483 else
12484 $as_unset $as_var
12485 fi
12486 done
12487
12488 # Required to use basename.
12489 if expr a : '\(a\)' >/dev/null 2>&1; then
12490 as_expr=expr
12491 else
12492 as_expr=false
12493 fi
12494
12495 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12496 as_basename=basename
12497 else
12498 as_basename=false
12499 fi
12500
12501
12502 # Name of the executable.
12503 as_me=`$as_basename "$0" ||
12504 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12505 X"$0" : 'X\(//\)$' \| \
12506 X"$0" : 'X\(/\)$' \| \
12507 . : '\(.\)' 2>/dev/null ||
12508 echo X/"$0" |
12509 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12510 /^X\/\(\/\/\)$/{ s//\1/; q; }
12511 /^X\/\(\/\).*/{ s//\1/; q; }
12512 s/.*/./; q'`
12513
12514
12515 # PATH needs CR, and LINENO needs CR and PATH.
12516 # Avoid depending upon Character Ranges.
12517 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12518 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12519 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12520 as_cr_digits='0123456789'
12521 as_cr_alnum=$as_cr_Letters$as_cr_digits
12522
12523 # The user is always right.
12524 if test "${PATH_SEPARATOR+set}" != set; then
12525 echo "#! /bin/sh" >conf$$.sh
12526 echo "exit 0" >>conf$$.sh
12527 chmod +x conf$$.sh
12528 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12529 PATH_SEPARATOR=';'
12530 else
12531 PATH_SEPARATOR=:
12532 fi
12533 rm -f conf$$.sh
12534 fi
12535
12536
12537 as_lineno_1=$LINENO
12538 as_lineno_2=$LINENO
12539 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12540 test "x$as_lineno_1" != "x$as_lineno_2" &&
12541 test "x$as_lineno_3" = "x$as_lineno_2" || {
12542 # Find who we are. Look in the path if we contain no path at all
12543 # relative or not.
12544 case $0 in
12545 *[\\/]* ) as_myself=$0 ;;
12546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12547 for as_dir in $PATH
12548 do
12549 IFS=$as_save_IFS
12550 test -z "$as_dir" && as_dir=.
12551 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12552 done
12553
12554 ;;
12555 esac
12556 # We did not find ourselves, most probably we were run as `sh COMMAND'
12557 # in which case we are not to be found in the path.
12558 if test "x$as_myself" = x; then
12559 as_myself=$0
12560 fi
12561 if test ! -f "$as_myself"; then
12562 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12563 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12564 { (exit 1); exit 1; }; }
12565 fi
12566 case $CONFIG_SHELL in
12567 '')
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12570 do
12571 IFS=$as_save_IFS
12572 test -z "$as_dir" && as_dir=.
12573 for as_base in sh bash ksh sh5; do
12574 case $as_dir in
12575 /*)
12576 if ("$as_dir/$as_base" -c '
12577 as_lineno_1=$LINENO
12578 as_lineno_2=$LINENO
12579 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12580 test "x$as_lineno_1" != "x$as_lineno_2" &&
12581 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12582 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12583 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12584 CONFIG_SHELL=$as_dir/$as_base
12585 export CONFIG_SHELL
12586 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12587 fi;;
12588 esac
12589 done
12590 done
12591 ;;
12592 esac
12593
12594 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12595 # uniformly replaced by the line number. The first 'sed' inserts a
12596 # line-number line before each line; the second 'sed' does the real
12597 # work. The second script uses 'N' to pair each line-number line
12598 # with the numbered line, and appends trailing '-' during
12599 # substitution so that $LINENO is not a special case at line end.
12600 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12601 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12602 sed '=' <$as_myself |
12603 sed '
12604 N
12605 s,$,-,
12606 : loop
12607 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12608 t loop
12609 s,-$,,
12610 s,^['$as_cr_digits']*\n,,
12611 ' >$as_me.lineno &&
12612 chmod +x $as_me.lineno ||
12613 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12614 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12615 { (exit 1); exit 1; }; }
12616
12617 # Don't try to exec as it changes $[0], causing all sort of problems
12618 # (the dirname of $[0] is not the place where we might find the
12619 # original and so on. Autoconf is especially sensible to this).
12620 . ./$as_me.lineno
12621 # Exit status is that of the last command.
12622 exit
12623 }
12624
12625
12626 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12627 *c*,-n*) ECHO_N= ECHO_C='
12628 ' ECHO_T=' ' ;;
12629 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12630 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12631 esac
12632
12633 if expr a : '\(a\)' >/dev/null 2>&1; then
12634 as_expr=expr
12635 else
12636 as_expr=false
12637 fi
12638
12639 rm -f conf$$ conf$$.exe conf$$.file
12640 echo >conf$$.file
12641 if ln -s conf$$.file conf$$ 2>/dev/null; then
12642 # We could just check for DJGPP; but this test a) works b) is more generic
12643 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12644 if test -f conf$$.exe; then
12645 # Don't use ln at all; we don't have any links
12646 as_ln_s='cp -p'
12647 else
12648 as_ln_s='ln -s'
12649 fi
12650 elif ln conf$$.file conf$$ 2>/dev/null; then
12651 as_ln_s=ln
12652 else
12653 as_ln_s='cp -p'
12654 fi
12655 rm -f conf$$ conf$$.exe conf$$.file
12656
12657 if mkdir -p . 2>/dev/null; then
12658 as_mkdir_p=:
12659 else
12660 test -d ./-p && rmdir ./-p
12661 as_mkdir_p=false
12662 fi
12663
12664 as_executable_p="test -f"
12665
12666 # Sed expression to map a string onto a valid CPP name.
12667 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12668
12669 # Sed expression to map a string onto a valid variable name.
12670 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12671
12672
12673 # IFS
12674 # We need space, tab and new line, in precisely that order.
12675 as_nl='
12676 '
12677 IFS=" $as_nl"
12678
12679 # CDPATH.
12680 $as_unset CDPATH
12681
12682 exec 6>&1
12683
12684 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12685 # report actual input values of CONFIG_FILES etc. instead of their
12686 # values after options handling. Logging --version etc. is OK.
12687 exec 5>>config.log
12688 {
12689 echo
12690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12691 ## Running $as_me. ##
12692 _ASBOX
12693 } >&5
12694 cat >&5 <<_CSEOF
12695
12696 This file was extended by $as_me, which was
12697 generated by GNU Autoconf 2.59. Invocation command line was
12698
12699 CONFIG_FILES = $CONFIG_FILES
12700 CONFIG_HEADERS = $CONFIG_HEADERS
12701 CONFIG_LINKS = $CONFIG_LINKS
12702 CONFIG_COMMANDS = $CONFIG_COMMANDS
12703 $ $0 $@
12704
12705 _CSEOF
12706 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12707 echo >&5
12708 _ACEOF
12709
12710 # Files that config.status was made for.
12711 if test -n "$ac_config_files"; then
12712 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12713 fi
12714
12715 if test -n "$ac_config_headers"; then
12716 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12717 fi
12718
12719 if test -n "$ac_config_links"; then
12720 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12721 fi
12722
12723 if test -n "$ac_config_commands"; then
12724 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12725 fi
12726
12727 cat >>$CONFIG_STATUS <<\_ACEOF
12728
12729 ac_cs_usage="\
12730 \`$as_me' instantiates files from templates according to the
12731 current configuration.
12732
12733 Usage: $0 [OPTIONS] [FILE]...
12734
12735 -h, --help print this help, then exit
12736 -V, --version print version number, then exit
12737 -q, --quiet do not print progress messages
12738 -d, --debug don't remove temporary files
12739 --recheck update $as_me by reconfiguring in the same conditions
12740 --file=FILE[:TEMPLATE]
12741 instantiate the configuration file FILE
12742
12743 Configuration files:
12744 $config_files
12745
12746 Report bugs to <bug-autoconf@gnu.org>."
12747 _ACEOF
12748
12749 cat >>$CONFIG_STATUS <<_ACEOF
12750 ac_cs_version="\\
12751 config.status
12752 configured by $0, generated by GNU Autoconf 2.59,
12753 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12754
12755 Copyright (C) 2003 Free Software Foundation, Inc.
12756 This config.status script is free software; the Free Software Foundation
12757 gives unlimited permission to copy, distribute and modify it."
12758 srcdir=$srcdir
12759 INSTALL="$INSTALL"
12760 _ACEOF
12761
12762 cat >>$CONFIG_STATUS <<\_ACEOF
12763 # If no file are specified by the user, then we need to provide default
12764 # value. By we need to know if files were specified by the user.
12765 ac_need_defaults=:
12766 while test $# != 0
12767 do
12768 case $1 in
12769 --*=*)
12770 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12771 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12772 ac_shift=:
12773 ;;
12774 -*)
12775 ac_option=$1
12776 ac_optarg=$2
12777 ac_shift=shift
12778 ;;
12779 *) # This is not an option, so the user has probably given explicit
12780 # arguments.
12781 ac_option=$1
12782 ac_need_defaults=false;;
12783 esac
12784
12785 case $ac_option in
12786 # Handling of the options.
12787 _ACEOF
12788 cat >>$CONFIG_STATUS <<\_ACEOF
12789 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12790 ac_cs_recheck=: ;;
12791 --version | --vers* | -V )
12792 echo "$ac_cs_version"; exit 0 ;;
12793 --he | --h)
12794 # Conflict between --help and --header
12795 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12796 Try \`$0 --help' for more information." >&5
12797 echo "$as_me: error: ambiguous option: $1
12798 Try \`$0 --help' for more information." >&2;}
12799 { (exit 1); exit 1; }; };;
12800 --help | --hel | -h )
12801 echo "$ac_cs_usage"; exit 0 ;;
12802 --debug | --d* | -d )
12803 debug=: ;;
12804 --file | --fil | --fi | --f )
12805 $ac_shift
12806 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12807 ac_need_defaults=false;;
12808 --header | --heade | --head | --hea )
12809 $ac_shift
12810 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12811 ac_need_defaults=false;;
12812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12813 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12814 ac_cs_silent=: ;;
12815
12816 # This is an error.
12817 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12818 Try \`$0 --help' for more information." >&5
12819 echo "$as_me: error: unrecognized option: $1
12820 Try \`$0 --help' for more information." >&2;}
12821 { (exit 1); exit 1; }; } ;;
12822
12823 *) ac_config_targets="$ac_config_targets $1" ;;
12824
12825 esac
12826 shift
12827 done
12828
12829 ac_configure_extra_args=
12830
12831 if $ac_cs_silent; then
12832 exec 6>/dev/null
12833 ac_configure_extra_args="$ac_configure_extra_args --silent"
12834 fi
12835
12836 _ACEOF
12837 cat >>$CONFIG_STATUS <<_ACEOF
12838 if \$ac_cs_recheck; then
12839 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12840 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12841 fi
12842
12843 _ACEOF
12844
12845
12846
12847
12848
12849 cat >>$CONFIG_STATUS <<\_ACEOF
12850 for ac_config_target in $ac_config_targets
12851 do
12852 case "$ac_config_target" in
12853 # Handling of arguments.
12854 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12855 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12856 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12857 { (exit 1); exit 1; }; };;
12858 esac
12859 done
12860
12861 # If the user did not use the arguments to specify the items to instantiate,
12862 # then the envvar interface is used. Set only those that are not.
12863 # We use the long form for the default assignment because of an extremely
12864 # bizarre bug on SunOS 4.1.3.
12865 if $ac_need_defaults; then
12866 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12867 fi
12868
12869 # Have a temporary directory for convenience. Make it in the build tree
12870 # simply because there is no reason to put it here, and in addition,
12871 # creating and moving files from /tmp can sometimes cause problems.
12872 # Create a temporary directory, and hook for its removal unless debugging.
12873 $debug ||
12874 {
12875 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12876 trap '{ (exit 1); exit 1; }' 1 2 13 15
12877 }
12878
12879 # Create a (secure) tmp directory for tmp files.
12880
12881 {
12882 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12883 test -n "$tmp" && test -d "$tmp"
12884 } ||
12885 {
12886 tmp=./confstat$$-$RANDOM
12887 (umask 077 && mkdir $tmp)
12888 } ||
12889 {
12890 echo "$me: cannot create a temporary directory in ." >&2
12891 { (exit 1); exit 1; }
12892 }
12893
12894 _ACEOF
12895
12896 cat >>$CONFIG_STATUS <<_ACEOF
12897
12898 #
12899 # CONFIG_FILES section.
12900 #
12901
12902 # No need to generate the scripts if there are no CONFIG_FILES.
12903 # This happens for instance when ./config.status config.h
12904 if test -n "\$CONFIG_FILES"; then
12905 # Protect against being on the right side of a sed subst in config.status.
12906 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12907 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12908 s,@SHELL@,$SHELL,;t t
12909 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12910 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12911 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12912 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12913 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12914 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12915 s,@exec_prefix@,$exec_prefix,;t t
12916 s,@prefix@,$prefix,;t t
12917 s,@program_transform_name@,$program_transform_name,;t t
12918 s,@bindir@,$bindir,;t t
12919 s,@sbindir@,$sbindir,;t t
12920 s,@libexecdir@,$libexecdir,;t t
12921 s,@datadir@,$datadir,;t t
12922 s,@sysconfdir@,$sysconfdir,;t t
12923 s,@sharedstatedir@,$sharedstatedir,;t t
12924 s,@localstatedir@,$localstatedir,;t t
12925 s,@libdir@,$libdir,;t t
12926 s,@includedir@,$includedir,;t t
12927 s,@oldincludedir@,$oldincludedir,;t t
12928 s,@infodir@,$infodir,;t t
12929 s,@mandir@,$mandir,;t t
12930 s,@build_alias@,$build_alias,;t t
12931 s,@host_alias@,$host_alias,;t t
12932 s,@target_alias@,$target_alias,;t t
12933 s,@DEFS@,$DEFS,;t t
12934 s,@ECHO_C@,$ECHO_C,;t t
12935 s,@ECHO_N@,$ECHO_N,;t t
12936 s,@ECHO_T@,$ECHO_T,;t t
12937 s,@LIBS@,$LIBS,;t t
12938 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12939 s,@build@,$build,;t t
12940 s,@build_cpu@,$build_cpu,;t t
12941 s,@build_vendor@,$build_vendor,;t t
12942 s,@build_os@,$build_os,;t t
12943 s,@build_noncanonical@,$build_noncanonical,;t t
12944 s,@host_noncanonical@,$host_noncanonical,;t t
12945 s,@target_noncanonical@,$target_noncanonical,;t t
12946 s,@host@,$host,;t t
12947 s,@host_cpu@,$host_cpu,;t t
12948 s,@host_vendor@,$host_vendor,;t t
12949 s,@host_os@,$host_os,;t t
12950 s,@target@,$target,;t t
12951 s,@target_cpu@,$target_cpu,;t t
12952 s,@target_vendor@,$target_vendor,;t t
12953 s,@target_os@,$target_os,;t t
12954 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12955 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12956 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12957 s,@LN@,$LN,;t t
12958 s,@LN_S@,$LN_S,;t t
12959 s,@build_libsubdir@,$build_libsubdir,;t t
12960 s,@build_subdir@,$build_subdir,;t t
12961 s,@host_subdir@,$host_subdir,;t t
12962 s,@target_subdir@,$target_subdir,;t t
12963 s,@CC@,$CC,;t t
12964 s,@CFLAGS@,$CFLAGS,;t t
12965 s,@LDFLAGS@,$LDFLAGS,;t t
12966 s,@CPPFLAGS@,$CPPFLAGS,;t t
12967 s,@ac_ct_CC@,$ac_ct_CC,;t t
12968 s,@EXEEXT@,$EXEEXT,;t t
12969 s,@OBJEXT@,$OBJEXT,;t t
12970 s,@CXX@,$CXX,;t t
12971 s,@CXXFLAGS@,$CXXFLAGS,;t t
12972 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12973 s,@GNATBIND@,$GNATBIND,;t t
12974 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12975 s,@GNATMAKE@,$GNATMAKE,;t t
12976 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12977 s,@do_compare@,$do_compare,;t t
12978 s,@gmplibs@,$gmplibs,;t t
12979 s,@gmpinc@,$gmpinc,;t t
12980 s,@stage1_languages@,$stage1_languages,;t t
12981 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12982 s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
12983 s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12984 s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
12985 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12986 s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
12987 s,@tooldir@,$tooldir,;t t
12988 s,@build_tooldir@,$build_tooldir,;t t
12989 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12990 s,@GDB_TK@,$GDB_TK,;t t
12991 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12992 s,@build_configargs@,$build_configargs,;t t
12993 s,@build_configdirs@,$build_configdirs,;t t
12994 s,@host_configargs@,$host_configargs,;t t
12995 s,@configdirs@,$configdirs,;t t
12996 s,@target_configargs@,$target_configargs,;t t
12997 s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12998 s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
12999 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13000 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13001 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13002 s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13003 s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13004 s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13005 s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13006 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13007 s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13008 s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13009 s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13010 s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13011 s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
13012 s,@config_shell@,$config_shell,;t t
13013 s,@YACC@,$YACC,;t t
13014 s,@BISON@,$BISON,;t t
13015 s,@M4@,$M4,;t t
13016 s,@LEX@,$LEX,;t t
13017 s,@FLEX@,$FLEX,;t t
13018 s,@MAKEINFO@,$MAKEINFO,;t t
13019 s,@EXPECT@,$EXPECT,;t t
13020 s,@RUNTEST@,$RUNTEST,;t t
13021 s,@AR@,$AR,;t t
13022 s,@AS@,$AS,;t t
13023 s,@DLLTOOL@,$DLLTOOL,;t t
13024 s,@LD@,$LD,;t t
13025 s,@LIPO@,$LIPO,;t t
13026 s,@NM@,$NM,;t t
13027 s,@RANLIB@,$RANLIB,;t t
13028 s,@STRIP@,$STRIP,;t t
13029 s,@WINDRES@,$WINDRES,;t t
13030 s,@WINDMC@,$WINDMC,;t t
13031 s,@OBJCOPY@,$OBJCOPY,;t t
13032 s,@OBJDUMP@,$OBJDUMP,;t t
13033 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13034 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13035 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13036 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13037 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13038 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13039 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13040 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13041 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13042 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13043 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13044 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13045 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13046 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13047 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
13048 s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
13049 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13050 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13051 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13052 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13053 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13054 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13055 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13056 s,@MAINT@,$MAINT,;t t
13057 s,@stage1_cflags@,$stage1_cflags,;t t
13058 s,@stage1_checking@,$stage1_checking,;t t
13059 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13060 s,@datarootdir@,$datarootdir,;t t
13061 s,@docdir@,$docdir,;t t
13062 s,@pdfdir@,$pdfdir,;t t
13063 s,@htmldir@,$htmldir,;t t
13064 s,@LIBOBJS@,$LIBOBJS,;t t
13065 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13066 /@serialization_dependencies@/r $serialization_dependencies
13067 s,@serialization_dependencies@,,;t t
13068 /@host_makefile_frag@/r $host_makefile_frag
13069 s,@host_makefile_frag@,,;t t
13070 /@target_makefile_frag@/r $target_makefile_frag
13071 s,@target_makefile_frag@,,;t t
13072 /@alphaieee_frag@/r $alphaieee_frag
13073 s,@alphaieee_frag@,,;t t
13074 /@ospace_frag@/r $ospace_frag
13075 s,@ospace_frag@,,;t t
13076 CEOF
13077
13078 _ACEOF
13079
13080 cat >>$CONFIG_STATUS <<\_ACEOF
13081 # Split the substitutions into bite-sized pieces for seds with
13082 # small command number limits, like on Digital OSF/1 and HP-UX.
13083 ac_max_sed_lines=48
13084 ac_sed_frag=1 # Number of current file.
13085 ac_beg=1 # First line for current file.
13086 ac_end=$ac_max_sed_lines # Line after last line for current file.
13087 ac_more_lines=:
13088 ac_sed_cmds=
13089 while $ac_more_lines; do
13090 if test $ac_beg -gt 1; then
13091 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13092 else
13093 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13094 fi
13095 if test ! -s $tmp/subs.frag; then
13096 ac_more_lines=false
13097 else
13098 # The purpose of the label and of the branching condition is to
13099 # speed up the sed processing (if there are no `@' at all, there
13100 # is no need to browse any of the substitutions).
13101 # These are the two extra sed commands mentioned above.
13102 (echo ':t
13103 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13104 if test -z "$ac_sed_cmds"; then
13105 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13106 else
13107 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13108 fi
13109 ac_sed_frag=`expr $ac_sed_frag + 1`
13110 ac_beg=$ac_end
13111 ac_end=`expr $ac_end + $ac_max_sed_lines`
13112 fi
13113 done
13114 if test -z "$ac_sed_cmds"; then
13115 ac_sed_cmds=cat
13116 fi
13117 fi # test -n "$CONFIG_FILES"
13118
13119 _ACEOF
13120 cat >>$CONFIG_STATUS <<\_ACEOF
13121 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13123 case $ac_file in
13124 - | *:- | *:-:* ) # input from stdin
13125 cat >$tmp/stdin
13126 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13127 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13128 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13130 * ) ac_file_in=$ac_file.in ;;
13131 esac
13132
13133 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13134 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13136 X"$ac_file" : 'X\(//\)[^/]' \| \
13137 X"$ac_file" : 'X\(//\)$' \| \
13138 X"$ac_file" : 'X\(/\)' \| \
13139 . : '\(.\)' 2>/dev/null ||
13140 echo X"$ac_file" |
13141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13143 /^X\(\/\/\)$/{ s//\1/; q; }
13144 /^X\(\/\).*/{ s//\1/; q; }
13145 s/.*/./; q'`
13146 { if $as_mkdir_p; then
13147 mkdir -p "$ac_dir"
13148 else
13149 as_dir="$ac_dir"
13150 as_dirs=
13151 while test ! -d "$as_dir"; do
13152 as_dirs="$as_dir $as_dirs"
13153 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13155 X"$as_dir" : 'X\(//\)[^/]' \| \
13156 X"$as_dir" : 'X\(//\)$' \| \
13157 X"$as_dir" : 'X\(/\)' \| \
13158 . : '\(.\)' 2>/dev/null ||
13159 echo X"$as_dir" |
13160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13162 /^X\(\/\/\)$/{ s//\1/; q; }
13163 /^X\(\/\).*/{ s//\1/; q; }
13164 s/.*/./; q'`
13165 done
13166 test ! -n "$as_dirs" || mkdir $as_dirs
13167 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13168 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13169 { (exit 1); exit 1; }; }; }
13170
13171 ac_builddir=.
13172
13173 if test "$ac_dir" != .; then
13174 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13175 # A "../" for each directory in $ac_dir_suffix.
13176 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13177 else
13178 ac_dir_suffix= ac_top_builddir=
13179 fi
13180
13181 case $srcdir in
13182 .) # No --srcdir option. We are building in place.
13183 ac_srcdir=.
13184 if test -z "$ac_top_builddir"; then
13185 ac_top_srcdir=.
13186 else
13187 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13188 fi ;;
13189 [\\/]* | ?:[\\/]* ) # Absolute path.
13190 ac_srcdir=$srcdir$ac_dir_suffix;
13191 ac_top_srcdir=$srcdir ;;
13192 *) # Relative path.
13193 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13194 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13195 esac
13196
13197 # Do not use `cd foo && pwd` to compute absolute paths, because
13198 # the directories may not exist.
13199 case `pwd` in
13200 .) ac_abs_builddir="$ac_dir";;
13201 *)
13202 case "$ac_dir" in
13203 .) ac_abs_builddir=`pwd`;;
13204 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13205 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13206 esac;;
13207 esac
13208 case $ac_abs_builddir in
13209 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13210 *)
13211 case ${ac_top_builddir}. in
13212 .) ac_abs_top_builddir=$ac_abs_builddir;;
13213 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13214 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13215 esac;;
13216 esac
13217 case $ac_abs_builddir in
13218 .) ac_abs_srcdir=$ac_srcdir;;
13219 *)
13220 case $ac_srcdir in
13221 .) ac_abs_srcdir=$ac_abs_builddir;;
13222 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13223 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13224 esac;;
13225 esac
13226 case $ac_abs_builddir in
13227 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13228 *)
13229 case $ac_top_srcdir in
13230 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13231 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13232 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13233 esac;;
13234 esac
13235
13236
13237 case $INSTALL in
13238 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13239 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13240 esac
13241
13242 if test x"$ac_file" != x-; then
13243 { echo "$as_me:$LINENO: creating $ac_file" >&5
13244 echo "$as_me: creating $ac_file" >&6;}
13245 rm -f "$ac_file"
13246 fi
13247 # Let's still pretend it is `configure' which instantiates (i.e., don't
13248 # use $as_me), people would be surprised to read:
13249 # /* config.h. Generated by config.status. */
13250 if test x"$ac_file" = x-; then
13251 configure_input=
13252 else
13253 configure_input="$ac_file. "
13254 fi
13255 configure_input=$configure_input"Generated from `echo $ac_file_in |
13256 sed 's,.*/,,'` by configure."
13257
13258 # First look for the input files in the build tree, otherwise in the
13259 # src tree.
13260 ac_file_inputs=`IFS=:
13261 for f in $ac_file_in; do
13262 case $f in
13263 -) echo $tmp/stdin ;;
13264 [\\/$]*)
13265 # Absolute (can't be DOS-style, as IFS=:)
13266 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13267 echo "$as_me: error: cannot find input file: $f" >&2;}
13268 { (exit 1); exit 1; }; }
13269 echo "$f";;
13270 *) # Relative
13271 if test -f "$f"; then
13272 # Build tree
13273 echo "$f"
13274 elif test -f "$srcdir/$f"; then
13275 # Source tree
13276 echo "$srcdir/$f"
13277 else
13278 # /dev/null tree
13279 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13280 echo "$as_me: error: cannot find input file: $f" >&2;}
13281 { (exit 1); exit 1; }; }
13282 fi;;
13283 esac
13284 done` || { (exit 1); exit 1; }
13285 _ACEOF
13286 cat >>$CONFIG_STATUS <<_ACEOF
13287 sed "$ac_vpsub
13288 $extrasub
13289 _ACEOF
13290 cat >>$CONFIG_STATUS <<\_ACEOF
13291 :t
13292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13293 s,@configure_input@,$configure_input,;t t
13294 s,@srcdir@,$ac_srcdir,;t t
13295 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13296 s,@top_srcdir@,$ac_top_srcdir,;t t
13297 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13298 s,@builddir@,$ac_builddir,;t t
13299 s,@abs_builddir@,$ac_abs_builddir,;t t
13300 s,@top_builddir@,$ac_top_builddir,;t t
13301 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13302 s,@INSTALL@,$ac_INSTALL,;t t
13303 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13304 rm -f $tmp/stdin
13305 if test x"$ac_file" != x-; then
13306 mv $tmp/out $ac_file
13307 else
13308 cat $tmp/out
13309 rm -f $tmp/out
13310 fi
13311
13312 done
13313 _ACEOF
13314
13315 cat >>$CONFIG_STATUS <<\_ACEOF
13316
13317 { (exit 0); exit 0; }
13318 _ACEOF
13319 chmod +x $CONFIG_STATUS
13320 ac_clean_files=$ac_clean_files_save
13321
13322
13323 # configure is writing to config.log, and then calls config.status.
13324 # config.status does its own redirection, appending to config.log.
13325 # Unfortunately, on DOS this fails, as config.log is still kept open
13326 # by configure, so config.status won't be able to write to it; its
13327 # output is simply discarded. So we exec the FD to /dev/null,
13328 # effectively closing config.log, so it can be properly (re)opened and
13329 # appended to by config.status. When coming back to configure, we
13330 # need to make the FD available again.
13331 if test "$no_create" != yes; then
13332 ac_cs_success=:
13333 ac_config_status_args=
13334 test "$silent" = yes &&
13335 ac_config_status_args="$ac_config_status_args --quiet"
13336 exec 5>/dev/null
13337 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13338 exec 5>>config.log
13339 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13340 # would make configure fail if this is the last instruction.
13341 $ac_cs_success || { (exit 1); exit 1; }
13342 fi
13343