2008-11-27 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.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* | x86_64-*-darwin9*)
2201 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2202 noconfigdirs="$noconfigdirs sim target-rda"
2203 ;;
2204 i[3456789]86-*-darwin*)
2205 noconfigdirs="$noconfigdirs ld gas gprof"
2206 noconfigdirs="$noconfigdirs sim target-rda"
2207 ;;
2208 *-*-darwin*)
2209 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2210 noconfigdirs="$noconfigdirs sim target-rda"
2211 noconfigdirs="$noconfigdirs ${libgcj}"
2212 ;;
2213 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2214 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2215 ;;
2216 *-*-freebsd*)
2217 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2218 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2219 && test -f /usr/local/include/gmp.h; then
2220 with_gmp=/usr/local
2221 fi
2222
2223 # Skip some stuff that's unsupported on some FreeBSD configurations.
2224 case "${target}" in
2225 i*86-*-*) ;;
2226 alpha*-*-*) ;;
2227 *)
2228 noconfigdirs="$noconfigdirs ${libgcj}"
2229 ;;
2230 esac
2231 ;;
2232 *-*-kaos*)
2233 # Remove unsupported stuff on all kaOS configurations.
2234 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2235 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2236 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2237 noconfigdirs="$noconfigdirs target-libgloss"
2238 ;;
2239 *-*-netbsd*)
2240 # Skip some stuff on all NetBSD configurations.
2241 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2242
2243 # Skip some stuff that's unsupported on some NetBSD configurations.
2244 case "${target}" in
2245 i*86-*-netbsdelf*) ;;
2246 arm*-*-netbsdelf*) ;;
2247 *)
2248 noconfigdirs="$noconfigdirs ${libgcj}"
2249 ;;
2250 esac
2251 ;;
2252 *-*-netware*)
2253 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2254 ;;
2255 *-*-rtems*)
2256 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2257 ;;
2258 # The tpf target doesn't support gdb yet.
2259 *-*-tpf*)
2260 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2261 ;;
2262 *-*-uclinux*)
2263 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2264 ;;
2265 *-*-vxworks*)
2266 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2267 ;;
2268 alpha*-dec-osf*)
2269 # ld works, but does not support shared libraries.
2270 # newlib is not 64 bit ready. I'm not sure about fileutils.
2271 # gas doesn't generate exception information.
2272 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2273 ;;
2274 alpha*-*-*vms*)
2275 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2276 ;;
2277 alpha*-*-linux*)
2278 # newlib is not 64 bit ready
2279 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2280 ;;
2281 alpha*-*-*)
2282 # newlib is not 64 bit ready
2283 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2284 ;;
2285 am33_2.0-*-linux*)
2286 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2287 ;;
2288 sh-*-linux*)
2289 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2290 ;;
2291 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2292 noconfigdirs="$noconfigdirs ${libgcj}"
2293 noconfigdirs="$noconfigdirs target-examples"
2294 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2295 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2296 noconfigdirs="$noconfigdirs expect dejagnu"
2297 # the C++ libraries don't build on top of CE's C libraries
2298 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2299 noconfigdirs="$noconfigdirs target-newlib"
2300 case "${host}" in
2301 *-*-cygwin*) ;; # keep gdb and readline
2302 *) noconfigdirs="$noconfigdirs gdb readline"
2303 ;;
2304 esac
2305 libgloss_dir=wince
2306 ;;
2307 arc-*-*)
2308 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2309 ;;
2310 arm-semi-aof )
2311 ;;
2312 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2313 noconfigdirs="$noconfigdirs ${libgcj}"
2314 libgloss_dir=arm
2315 ;;
2316 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2317 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2318 libgloss_dir=arm
2319 ;;
2320 arm*-*-linux-gnueabi)
2321 noconfigdirs="$noconfigdirs target-qthreads"
2322 case ${with_newlib} in
2323 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2324 esac
2325 libgloss_dir=arm
2326 ;;
2327 arm*-*-symbianelf*)
2328 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2329 libgloss_dir=arm
2330 ;;
2331 arm-*-pe*)
2332 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2333 ;;
2334 thumb-*-coff)
2335 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2336 ;;
2337 thumb-*-elf)
2338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2339 ;;
2340 thumb-*-pe)
2341 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2342 ;;
2343 arm-*-riscix*)
2344 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2345 ;;
2346 avr-*-*)
2347 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
2348 ;;
2349 bfin-*-*)
2350 noconfigdirs="$noconfigdirs gdb"
2351 if test x${is_cross_compiler} != xno ; then
2352 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2353 fi
2354 ;;
2355 c4x-*-* | tic4x-*-*)
2356 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2357 ;;
2358 c54x*-*-* | tic54x-*-*)
2359 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2360 ;;
2361 cr16-*-*)
2362 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2363 ;;
2364 cris-*-* | crisv32-*-*)
2365 unsupported_languages="$unsupported_languages java"
2366 case "${target}" in
2367 *-*-aout)
2368 unsupported_languages="$unsupported_languages fortran"
2369 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2370 *-*-elf)
2371 noconfigdirs="$noconfigdirs target-boehm-gc";;
2372 *-*-linux*)
2373 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2374 *)
2375 unsupported_languages="$unsupported_languages fortran"
2376 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2377 esac
2378 libgloss_dir=cris
2379 ;;
2380 crx-*-*)
2381 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2382 ;;
2383 d10v-*-*)
2384 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2385 ;;
2386 d30v-*-*)
2387 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2388 ;;
2389 ep9312-*-elf | ep9312-*-coff)
2390 libgloss_dir=arm
2391 ;;
2392 fr30-*-elf*)
2393 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2394 ;;
2395 frv-*-*)
2396 noconfigdirs="$noconfigdirs ${libgcj}"
2397 ;;
2398 h8300*-*-*)
2399 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2400 ;;
2401 h8500-*-*)
2402 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2403 ;;
2404 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2405 ;;
2406 hppa*64*-*-linux* | parisc*64*-*-linux*)
2407 # In this case, it's because the hppa64-linux target is for
2408 # the kernel only at this point and has no libc, and thus no
2409 # headers, crt*.o, etc., all of which are needed by these.
2410 noconfigdirs="$noconfigdirs target-zlib"
2411 ;;
2412 parisc*-*-linux* | hppa*-*-linux*)
2413 ;;
2414 hppa*-*-*elf* | \
2415 hppa*-*-lites* | \
2416 hppa*-*-openbsd* | \
2417 hppa*64*-*-*)
2418 noconfigdirs="$noconfigdirs ${libgcj}"
2419 ;;
2420 hppa*-hp-hpux11*)
2421 noconfigdirs="$noconfigdirs ld shellutils"
2422 ;;
2423 hppa*-*-pro*)
2424 libgloss_dir=pa
2425 ;;
2426 hppa*-*-*)
2427 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2428 # build on HP-UX 10.20.
2429 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2430 ;;
2431 i960-*-*)
2432 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2433 ;;
2434 ia64*-*-elf*)
2435 # No gdb support yet.
2436 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2437 ;;
2438 ia64*-**-hpux*)
2439 # No gdb or ld support yet.
2440 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2441 ;;
2442 i370-*-opened*)
2443 ;;
2444 i[3456789]86-*-coff | i[3456789]86-*-elf)
2445 noconfigdirs="$noconfigdirs ${libgcj}"
2446 libgloss_dir=i386
2447 ;;
2448 i[3456789]86-*-linux*)
2449 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2450 # not build java stuff by default.
2451 case "${target}" in
2452 *-*-*libc1*)
2453 noconfigdirs="$noconfigdirs ${libgcj}";;
2454 esac
2455
2456 # This section makes it possible to build newlib natively on linux.
2457 # If we are using a cross compiler then don't configure newlib.
2458 if test x${is_cross_compiler} != xno ; then
2459 noconfigdirs="$noconfigdirs target-newlib"
2460 fi
2461 noconfigdirs="$noconfigdirs target-libgloss"
2462 # If we are not using a cross compiler, do configure newlib.
2463 # Note however, that newlib will only be configured in this situation
2464 # if the --with-newlib option has been given, because otherwise
2465 # 'target-newlib' will appear in skipdirs.
2466 ;;
2467 i[3456789]86-*-mingw32*)
2468 target_configdirs="$target_configdirs target-winsup"
2469 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2470 ;;
2471 x86_64-*-mingw*)
2472 target_configdirs="$target_configdirs target-winsup"
2473 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2474 ;;
2475 *-*-cygwin*)
2476 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2477 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2478 # always build newlib if winsup directory is present.
2479 if test -d "$srcdir/winsup/cygwin"; then
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 elif test -d "$srcdir/newlib"; then
2482 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2483 fi
2484 ;;
2485 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2486 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2487 ;;
2488 i[3456789]86-*-pe)
2489 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2490 ;;
2491 i[3456789]86-*-sco3.2v5*)
2492 # The linker does not yet know about weak symbols in COFF,
2493 # and is not configured to handle mixed ELF and COFF.
2494 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2495 ;;
2496 i[3456789]86-*-sco*)
2497 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2498 ;;
2499 i[3456789]86-*-solaris2*)
2500 noconfigdirs="$noconfigdirs target-libgloss"
2501 ;;
2502 i[3456789]86-*-sysv4*)
2503 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2504 ;;
2505 i[3456789]86-*-beos*)
2506 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2507 ;;
2508 i[3456789]86-*-rdos*)
2509 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2510 ;;
2511 m32r-*-*)
2512 noconfigdirs="$noconfigdirs ${libgcj}"
2513 ;;
2514 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2515 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2516 libgloss_dir=m68hc11
2517 ;;
2518 m68k-*-elf*)
2519 noconfigdirs="$noconfigdirs ${libgcj}"
2520 ;;
2521 m68k-*-coff*)
2522 noconfigdirs="$noconfigdirs ${libgcj}"
2523 ;;
2524 m68*-*-* | fido-*-*)
2525 libgloss_dir=m68k
2526 ;;
2527 mcore-*-pe*)
2528 # The EPOC C++ environment does not support exceptions or rtti,
2529 # and so building libstdc++-v3 tends not to always work.
2530 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2531 ;;
2532 mmix-*-*)
2533 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2534 unsupported_languages="$unsupported_languages fortran java"
2535 ;;
2536 mn10200-*-*)
2537 noconfigdirs="$noconfigdirs ${libgcj}"
2538 ;;
2539 mn10300-*-*)
2540 noconfigdirs="$noconfigdirs ${libgcj}"
2541 ;;
2542 mt-*-*)
2543 noconfigdirs="$noconfigdirs sim"
2544 ;;
2545 powerpc-*-aix*)
2546 # copied from rs6000-*-* entry
2547 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2548 ;;
2549 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2550 target_configdirs="$target_configdirs target-winsup"
2551 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2552 # always build newlib.
2553 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2554 ;;
2555 # This is temporary until we can link against shared libraries
2556 powerpcle-*-solaris*)
2557 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2558 libgloss_dir=rs6000
2559 ;;
2560 powerpc-*-beos*)
2561 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2562 ;;
2563 powerpc-*-eabi)
2564 noconfigdirs="$noconfigdirs ${libgcj}"
2565 libgloss_dir=rs6000
2566 ;;
2567 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2568 libgloss_dir=rs6000
2569 ;;
2570 rs6000-*-lynxos*)
2571 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2572 ;;
2573 rs6000-*-aix*)
2574 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2575 ;;
2576 rs6000-*-*)
2577 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2578 ;;
2579 m68k-apollo-*)
2580 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2581 ;;
2582 mips*-sde-elf*)
2583 skipdirs="$skipdirs target-libiberty"
2584 noconfigdirs="$noconfigdirs ${libgcj}"
2585 if test x$with_newlib = xyes; then
2586 noconfigdirs="$noconfigdirs gprof"
2587 fi
2588 libgloss_dir=mips
2589 ;;
2590 mips*-*-irix5*)
2591 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2592 ;;
2593 mips*-*-irix6*)
2594 # Linking libjava exceeds command-line length limits on at least
2595 # IRIX 6.2, but not on IRIX 6.5.
2596 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2597 # <oldham@codesourcery.com>
2598 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2599 ;;
2600 mips*-*-bsd*)
2601 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2602 ;;
2603 mips*-*-linux*)
2604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2605 ;;
2606 mips*-*-*)
2607 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2608 libgloss_dir=mips
2609 ;;
2610 romp-*-*)
2611 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2612 ;;
2613 sh-*-* | sh64-*-*)
2614 case "${host}" in
2615 i[3456789]86-*-vsta) ;; # don't add gprof back in
2616 i[3456789]86-*-go32*) ;; # don't add gprof back in
2617 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2618 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2619 esac
2620 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2621 ;;
2622 sparclet-*-aout* | sparc86x-*-*)
2623 libgloss_dir=sparc
2624 ;;
2625 sparc-*-elf*)
2626 noconfigdirs="$noconfigdirs ${libgcj}"
2627 ;;
2628 sparc64-*-elf*)
2629 noconfigdirs="$noconfigdirs ${libgcj}"
2630 libgloss_dir=sparc
2631 ;;
2632 sparclite-*-*)
2633 noconfigdirs="$noconfigdirs ${libgcj}"
2634 libgloss_dir=sparc
2635 ;;
2636 sparc-*-sunos4*)
2637 noconfigdirs="$noconfigdirs ${libgcj}"
2638 if test x${is_cross_compiler} != xno ; then
2639 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2640 else
2641 use_gnu_ld=no
2642 fi
2643 ;;
2644 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2645 noconfigdirs="$noconfigdirs ${libgcj}"
2646 ;;
2647 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2648 ;;
2649 spu-*-*)
2650 ;;
2651 v810-*-*)
2652 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2653 ;;
2654 v850-*-*)
2655 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2656 ;;
2657 v850e-*-*)
2658 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2659 ;;
2660 v850ea-*-*)
2661 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2662 ;;
2663 vax-*-vms)
2664 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2665 ;;
2666 vax-*-*)
2667 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2668 ;;
2669 xtensa*-*-*)
2670 noconfigdirs="$noconfigdirs ${libgcj}"
2671 ;;
2672 ip2k-*-*)
2673 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2674 ;;
2675 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2676 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2677 ;;
2678 *-*-lynxos*)
2679 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2680 ;;
2681 *-*-*)
2682 noconfigdirs="$noconfigdirs ${libgcj}"
2683 ;;
2684 esac
2685
2686 # If we aren't building newlib, then don't build libgloss, since libgloss
2687 # depends upon some newlib header files.
2688 case "${noconfigdirs}" in
2689 *target-libgloss*) ;;
2690 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2691 esac
2692
2693 # Work in distributions that contain no compiler tools, like Autoconf.
2694 tentative_cc=""
2695 host_makefile_frag=/dev/null
2696 if test -d ${srcdir}/config ; then
2697 case "${host}" in
2698 m68k-hp-hpux*)
2699 # Avoid "too much defining" errors from HPUX compiler.
2700 tentative_cc="cc -Wp,-H256000"
2701 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2702 # If it's HP/UX ar, this should be harmless.
2703 RANLIB="ar ts"
2704 ;;
2705 m68k-apollo-sysv*)
2706 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2707 ;;
2708 m68k-apollo-bsd*)
2709 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2710 # chokes on bfd, the compiler won't let you assign integers to enums, and
2711 # other problems. Defining CC to gcc is a questionable way to say "don't use
2712 # the apollo compiler" (the preferred version of GCC could be called cc,
2713 # or whatever), but I'm not sure leaving CC as cc is any better...
2714 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2715 # Used to have BISON=yacc.
2716 tentative_cc=gcc
2717 ;;
2718 m88k-dg-dgux*)
2719 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2720 ;;
2721 m88k-harris-cxux*)
2722 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2723 tentative_cc="cc -Xa"
2724 host_makefile_frag="config/mh-cxux"
2725 ;;
2726 m88k-motorola-sysv*)
2727 ;;
2728 mips*-dec-ultrix*)
2729 tentative_cc="cc -Wf,-XNg1000"
2730 host_makefile_frag="config/mh-decstation"
2731 ;;
2732 mips*-nec-sysv4*)
2733 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2734 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2735 host_makefile_frag="config/mh-necv4"
2736 ;;
2737 mips*-sgi-irix4*)
2738 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2739 # environment. Also bump switch table size so that cp-parse will
2740 # compile. Bump string length limit so linker builds.
2741 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2742 ;;
2743 mips*-*-sysv4*)
2744 host_makefile_frag="config/mh-sysv4"
2745 ;;
2746 mips*-*-sysv*)
2747 # This is for a MIPS running RISC/os 4.52C.
2748
2749 # This is needed for GDB, but needs to be in the top-level make because
2750 # if a library is compiled with the bsd headers and gets linked with the
2751 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2752 # a different size).
2753 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2754 # known except to select the sysv environment. Could we use /proc instead?
2755 # These "sysv environments" and "bsd environments" often end up being a pain.
2756 #
2757 # This is not part of CFLAGS because perhaps not all C compilers have this
2758 # option.
2759 tentative_cc="cc -systype sysv"
2760 ;;
2761 i370-ibm-opened*)
2762 tentative_cc="c89"
2763 ;;
2764 i[3456789]86-*-sysv5*)
2765 host_makefile_frag="config/mh-sysv5"
2766 ;;
2767 i[3456789]86-*-dgux*)
2768 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2769 host_makefile_frag="config/mh-dgux386"
2770 ;;
2771 i[3456789]86-ncr-sysv4.3*)
2772 # The MetaWare compiler will generate a copyright message unless you
2773 # turn it off by adding the -Hnocopyr flag.
2774 tentative_cc="cc -Hnocopyr"
2775 ;;
2776 i[3456789]86-ncr-sysv4*)
2777 # for an NCR 3000 (i486/SVR4) system.
2778 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2779 # This compiler not only emits obnoxious copyright messages every time
2780 # you run it, but it chokes and dies on a whole bunch of GNU source
2781 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2782 tentative_cc="/usr/ccs/ATT/cc"
2783 host_makefile_frag="config/mh-ncr3000"
2784 ;;
2785 i[3456789]86-*-sco3.2v5*)
2786 ;;
2787 i[3456789]86-*-sco*)
2788 # The native C compiler botches some simple uses of const. Unfortunately,
2789 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2790 tentative_cc="cc -Dconst="
2791 host_makefile_frag="config/mh-sco"
2792 ;;
2793 i[3456789]86-*-udk*)
2794 host_makefile_frag="config/mh-sysv5"
2795 ;;
2796 i[3456789]86-*-solaris2*)
2797 host_makefile_frag="config/mh-sysv4"
2798 ;;
2799 i[3456789]86-*-msdosdjgpp*)
2800 host_makefile_frag="config/mh-djgpp"
2801 ;;
2802 *-cygwin*)
2803
2804 echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2805 echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2806 echo a >cygwin-cat-check
2807 if test `cat cygwin-cat-check` == a ; then
2808 rm cygwin-cat-check
2809 echo "$as_me:$LINENO: result: yes" >&5
2810 echo "${ECHO_T}yes" >&6
2811 else
2812 rm cygwin-cat-check
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2815 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2816 Please either mount the build directory in binary mode or run the following
2817 commands before running any configure script:
2818 set -o igncr
2819 export SHELLOPTS
2820 " >&5
2821 echo "$as_me: error: The cat command does not ignore carriage return characters.
2822 Please either mount the build directory in binary mode or run the following
2823 commands before running any configure script:
2824 set -o igncr
2825 export SHELLOPTS
2826 " >&2;}
2827 { (exit 1); exit 1; }; }
2828 fi
2829
2830 host_makefile_frag="config/mh-cygwin"
2831 ;;
2832 *-mingw*)
2833 host_makefile_frag="config/mh-mingw"
2834 ;;
2835 *-interix*)
2836 host_makefile_frag="config/mh-interix"
2837 ;;
2838 vax-*-ultrix2*)
2839 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2840 tentative_cc=gcc
2841 ;;
2842 *-*-solaris2*)
2843 host_makefile_frag="config/mh-solaris"
2844 ;;
2845 m68k-sun-sunos*)
2846 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2847 # without overflowing the jump tables (-J says to use a 32 bit table)
2848 tentative_cc="cc -J"
2849 ;;
2850 hppa*-hp-hpux10*)
2851 tentative_cc="cc -Wp,-H256000"
2852 host_makefile_frag="config/mh-pa-hpux10"
2853 ;;
2854 hppa*-hp-hpux* | hppa*-*-hiux*)
2855 tentative_cc="cc -Wp,-H256000"
2856 host_makefile_frag="config/mh-pa"
2857 ;;
2858 hppa*-*)
2859 host_makefile_frag="config/mh-pa"
2860 ;;
2861 *-hp-hpux* | *-*-hiux*)
2862 tentative_cc="cc -Wp,-H256000"
2863 ;;
2864 rs6000-*-lynxos*)
2865 # /bin/cc is less than useful for our purposes. Always use GCC
2866 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2867 host_makefile_frag="config/mh-lynxrs6k"
2868 ;;
2869 powerpc-*-darwin*)
2870 host_makefile_frag="config/mh-ppc-darwin"
2871 ;;
2872 powerpc-*-aix*)
2873 host_makefile_frag="config/mh-ppc-aix"
2874 ;;
2875 rs6000-*-aix*)
2876 host_makefile_frag="config/mh-ppc-aix"
2877 ;;
2878 *-*-lynxos*)
2879 # /bin/cc is less than useful for our purposes. Always use GCC
2880 tentative_cc="/bin/gcc"
2881 ;;
2882 *-*-sysv4*)
2883 host_makefile_frag="config/mh-sysv4"
2884 ;;
2885 # This is placed last to prevent interfering with the cases above.
2886 i[3456789]86-*-*)
2887 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2888 host_makefile_frag="config/mh-x86omitfp"
2889 ;;
2890 esac
2891 fi
2892
2893 # If we aren't going to be using gcc, see if we can extract a definition
2894 # of CC from the fragment.
2895 # Actually, use the 'pre-extracted' version above.
2896 if test -z "${CC}" && test "${build}" = "${host}" ; then
2897 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2898 found=
2899 for dir in $PATH; do
2900 test -z "$dir" && dir=.
2901 if test -f $dir/gcc; then
2902 found=yes
2903 break
2904 fi
2905 done
2906 IFS="$save_ifs"
2907 if test -z "${found}" && test -n "${tentative_cc}" ; then
2908 CC=$tentative_cc
2909 fi
2910 fi
2911
2912 if test "${build}" != "${host}" ; then
2913 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2914 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2915 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2916 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2917 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2918 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2919 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2920 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2921 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2922 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2923 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2924 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2925 else
2926 AR_FOR_BUILD="\$(AR)"
2927 AS_FOR_BUILD="\$(AS)"
2928 CC_FOR_BUILD="\$(CC)"
2929 CXX_FOR_BUILD="\$(CXX)"
2930 GCJ_FOR_BUILD="\$(GCJ)"
2931 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2932 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2933 LD_FOR_BUILD="\$(LD)"
2934 NM_FOR_BUILD="\$(NM)"
2935 RANLIB_FOR_BUILD="\$(RANLIB)"
2936 WINDRES_FOR_BUILD="\$(WINDRES)"
2937 WINDMC_FOR_BUILD="\$(WINDMC)"
2938 fi
2939
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945 if test -n "$ac_tool_prefix"; then
2946 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2947 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2948 echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969
2970 fi
2971 fi
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 echo "$as_me:$LINENO: result: $CC" >&5
2975 echo "${ECHO_T}$CC" >&6
2976 else
2977 echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6
2979 fi
2980
2981 fi
2982 if test -z "$ac_cv_prog_CC"; then
2983 ac_ct_CC=$CC
2984 # Extract the first word of "gcc", so it can be a program name with args.
2985 set dummy gcc; ac_word=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_ac_ct_CC="gcc"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007
3008 fi
3009 fi
3010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011 if test -n "$ac_ct_CC"; then
3012 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3013 echo "${ECHO_T}$ac_ct_CC" >&6
3014 else
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3017 fi
3018
3019 CC=$ac_ct_CC
3020 else
3021 CC="$ac_cv_prog_CC"
3022 fi
3023
3024 if test -z "$CC"; then
3025 if test -n "$ac_tool_prefix"; then
3026 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}cc; ac_word=$2
3028 echo "$as_me:$LINENO: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3030 if test "${ac_cv_prog_CC+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_CC="${ac_tool_prefix}cc"
3044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3046 fi
3047 done
3048 done
3049
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 echo "$as_me:$LINENO: result: $CC" >&5
3055 echo "${ECHO_T}$CC" >&6
3056 else
3057 echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6
3059 fi
3060
3061 fi
3062 if test -z "$ac_cv_prog_CC"; then
3063 ac_ct_CC=$CC
3064 # Extract the first word of "cc", so it can be a program name with args.
3065 set dummy cc; ac_word=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 if test -n "$ac_ct_CC"; then
3072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_ac_ct_CC="cc"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087
3088 fi
3089 fi
3090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3091 if test -n "$ac_ct_CC"; then
3092 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3093 echo "${ECHO_T}$ac_ct_CC" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3097 fi
3098
3099 CC=$ac_ct_CC
3100 else
3101 CC="$ac_cv_prog_CC"
3102 fi
3103
3104 fi
3105 if test -z "$CC"; then
3106 # Extract the first word of "cc", so it can be a program name with args.
3107 set dummy cc; ac_word=$2
3108 echo "$as_me:$LINENO: checking for $ac_word" >&5
3109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3110 if test "${ac_cv_prog_CC+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3115 else
3116 ac_prog_rejected=no
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3125 ac_prog_rejected=yes
3126 continue
3127 fi
3128 ac_cv_prog_CC="cc"
3129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132 done
3133 done
3134
3135 if test $ac_prog_rejected = yes; then
3136 # We found a bogon in the path, so make sure we never use it.
3137 set dummy $ac_cv_prog_CC
3138 shift
3139 if test $# != 0; then
3140 # We chose a different compiler from the bogus one.
3141 # However, it has the same basename, so the bogon will be chosen
3142 # first if we set CC to just the basename; use the full file name.
3143 shift
3144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3145 fi
3146 fi
3147 fi
3148 fi
3149 CC=$ac_cv_prog_CC
3150 if test -n "$CC"; then
3151 echo "$as_me:$LINENO: result: $CC" >&5
3152 echo "${ECHO_T}$CC" >&6
3153 else
3154 echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3156 fi
3157
3158 fi
3159 if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 for ac_prog in cl
3162 do
3163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165 echo "$as_me:$LINENO: checking for $ac_word" >&5
3166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167 if test "${ac_cv_prog_CC+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186
3187 fi
3188 fi
3189 CC=$ac_cv_prog_CC
3190 if test -n "$CC"; then
3191 echo "$as_me:$LINENO: result: $CC" >&5
3192 echo "${ECHO_T}$CC" >&6
3193 else
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3196 fi
3197
3198 test -n "$CC" && break
3199 done
3200 fi
3201 if test -z "$CC"; then
3202 ac_ct_CC=$CC
3203 for ac_prog in cl
3204 do
3205 # Extract the first word of "$ac_prog", so it can be a program name with args.
3206 set dummy $ac_prog; ac_word=$2
3207 echo "$as_me:$LINENO: checking for $ac_word" >&5
3208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3209 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 if test -n "$ac_ct_CC"; then
3213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_ac_ct_CC="$ac_prog"
3223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226 done
3227 done
3228
3229 fi
3230 fi
3231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232 if test -n "$ac_ct_CC"; then
3233 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3234 echo "${ECHO_T}$ac_ct_CC" >&6
3235 else
3236 echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3238 fi
3239
3240 test -n "$ac_ct_CC" && break
3241 done
3242
3243 CC=$ac_ct_CC
3244 fi
3245
3246 fi
3247
3248
3249 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3250 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3252 See \`config.log' for more details." >&5
3253 echo "$as_me: error: no acceptable C compiler found in \$PATH
3254 See \`config.log' for more details." >&2;}
3255 { (exit 1); exit 1; }; }; }
3256
3257 # Provide some information about the compiler.
3258 echo "$as_me:$LINENO:" \
3259 "checking for C compiler version" >&5
3260 ac_compiler=`set X $ac_compile; echo $2`
3261 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3262 (eval $ac_compiler --version </dev/null >&5) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }
3266 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3267 (eval $ac_compiler -v </dev/null >&5) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }
3271 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3272 (eval $ac_compiler -V </dev/null >&5) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3276
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h. */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283
3284 int
3285 main ()
3286 {
3287
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3296 # of exeext.
3297 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3299 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3301 (eval $ac_link_default) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; then
3305 # Find the output, starting from the most likely. This scheme is
3306 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3307 # resort.
3308
3309 # Be careful to initialize this variable, since it used to be cached.
3310 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3311 ac_cv_exeext=
3312 # b.out is created by i960 compilers.
3313 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3314 do
3315 test -f "$ac_file" || continue
3316 case $ac_file in
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3318 ;;
3319 conftest.$ac_ext )
3320 # This is the source file.
3321 ;;
3322 [ab].out )
3323 # We found the default executable, but exeext='' is most
3324 # certainly right.
3325 break;;
3326 *.* )
3327 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328 # FIXME: I believe we export ac_cv_exeext for Libtool,
3329 # but it would be cool to find out if it's true. Does anybody
3330 # maintain Libtool? --akim.
3331 export ac_cv_exeext
3332 break;;
3333 * )
3334 break;;
3335 esac
3336 done
3337 else
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3342 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3344 See \`config.log' for more details." >&5
3345 echo "$as_me: error: C compiler cannot create executables
3346 See \`config.log' for more details." >&2;}
3347 { (exit 77); exit 77; }; }; }
3348 fi
3349
3350 ac_exeext=$ac_cv_exeext
3351 echo "$as_me:$LINENO: result: $ac_file" >&5
3352 echo "${ECHO_T}$ac_file" >&6
3353
3354 # Check the compiler produces executables we can run. If not, either
3355 # the compiler is broken, or we cross compile.
3356 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3357 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3358 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3359 # If not cross compiling, check that we can run a simple program.
3360 if test "$cross_compiling" != yes; then
3361 if { ac_try='./$ac_file'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 (eval $ac_try) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3367 cross_compiling=no
3368 else
3369 if test "$cross_compiling" = maybe; then
3370 cross_compiling=yes
3371 else
3372 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3373 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3375 If you meant to cross compile, use \`--host'.
3376 See \`config.log' for more details." >&5
3377 echo "$as_me: error: cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details." >&2;}
3380 { (exit 1); exit 1; }; }; }
3381 fi
3382 fi
3383 fi
3384 echo "$as_me:$LINENO: result: yes" >&5
3385 echo "${ECHO_T}yes" >&6
3386
3387 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3388 ac_clean_files=$ac_clean_files_save
3389 # Check the compiler produces executables we can run. If not, either
3390 # the compiler is broken, or we cross compile.
3391 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3392 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3393 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3394 echo "${ECHO_T}$cross_compiling" >&6
3395
3396 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3397 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3399 (eval $ac_link) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; then
3403 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3404 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3405 # work properly (i.e., refer to `conftest.exe'), while it won't with
3406 # `rm'.
3407 for ac_file in conftest.exe conftest conftest.*; do
3408 test -f "$ac_file" || continue
3409 case $ac_file in
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3411 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 export ac_cv_exeext
3413 break;;
3414 * ) break;;
3415 esac
3416 done
3417 else
3418 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3419 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3421 See \`config.log' for more details." >&5
3422 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3423 See \`config.log' for more details." >&2;}
3424 { (exit 1); exit 1; }; }; }
3425 fi
3426
3427 rm -f conftest$ac_cv_exeext
3428 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3429 echo "${ECHO_T}$ac_cv_exeext" >&6
3430
3431 rm -f conftest.$ac_ext
3432 EXEEXT=$ac_cv_exeext
3433 ac_exeext=$EXEEXT
3434 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3435 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3436 if test "${ac_cv_objext+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h. */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445
3446 int
3447 main ()
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 rm -f conftest.o conftest.obj
3455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456 (eval $ac_compile) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; then
3460 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3464 break;;
3465 esac
3466 done
3467 else
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3472 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3474 See \`config.log' for more details." >&5
3475 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3476 See \`config.log' for more details." >&2;}
3477 { (exit 1); exit 1; }; }; }
3478 fi
3479
3480 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3481 fi
3482 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3483 echo "${ECHO_T}$ac_cv_objext" >&6
3484 OBJEXT=$ac_cv_objext
3485 ac_objext=$OBJEXT
3486 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3487 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3488 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h. */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497
3498 int
3499 main ()
3500 {
3501 #ifndef __GNUC__
3502 choke me
3503 #endif
3504
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag"
3519 || test ! -s conftest.err'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; } &&
3525 { ac_try='test -s conftest.$ac_objext'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3531 ac_compiler_gnu=yes
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3535
3536 ac_compiler_gnu=no
3537 fi
3538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3540
3541 fi
3542 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3543 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3544 GCC=`test $ac_compiler_gnu = yes && echo yes`
3545 ac_test_CFLAGS=${CFLAGS+set}
3546 ac_save_CFLAGS=$CFLAGS
3547 CFLAGS="-g"
3548 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3549 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3550 if test "${ac_cv_prog_cc_g+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570 (eval $ac_compile) 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -z "$ac_c_werror_flag"
3578 || test ! -s conftest.err'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; } &&
3584 { ac_try='test -s conftest.$ac_objext'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; }; then
3590 ac_cv_prog_cc_g=yes
3591 else
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595 ac_cv_prog_cc_g=no
3596 fi
3597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3598 fi
3599 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3600 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3601 if test "$ac_test_CFLAGS" = set; then
3602 CFLAGS=$ac_save_CFLAGS
3603 elif test $ac_cv_prog_cc_g = yes; then
3604 if test "$GCC" = yes; then
3605 CFLAGS="-g -O2"
3606 else
3607 CFLAGS="-g"
3608 fi
3609 else
3610 if test "$GCC" = yes; then
3611 CFLAGS="-O2"
3612 else
3613 CFLAGS=
3614 fi
3615 fi
3616 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3617 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3618 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 ac_cv_prog_cc_stdc=no
3622 ac_save_CC=$CC
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 #include <stdarg.h>
3630 #include <stdio.h>
3631 #include <sys/types.h>
3632 #include <sys/stat.h>
3633 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3634 struct buf { int x; };
3635 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3636 static char *e (p, i)
3637 char **p;
3638 int i;
3639 {
3640 return p[i];
3641 }
3642 static char *f (char * (*g) (char **, int), char **p, ...)
3643 {
3644 char *s;
3645 va_list v;
3646 va_start (v,p);
3647 s = g (p, va_arg (v,int));
3648 va_end (v);
3649 return s;
3650 }
3651
3652 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3653 function prototypes and stuff, but not '\xHH' hex character constants.
3654 These don't provoke an error unfortunately, instead are silently treated
3655 as 'x'. The following induces an error, until -std1 is added to get
3656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3657 array size at least. It's necessary to write '\x00'==0 to get something
3658 that's true only with -std1. */
3659 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3660
3661 int test (int i, double x);
3662 struct s1 {int (*f) (int a);};
3663 struct s2 {int (*f) (double a);};
3664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3665 int argc;
3666 char **argv;
3667 int
3668 main ()
3669 {
3670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3671 ;
3672 return 0;
3673 }
3674 _ACEOF
3675 # Don't try gcc -ansi; that turns off useful extensions and
3676 # breaks some systems' header files.
3677 # AIX -qlanglvl=ansi
3678 # Ultrix and OSF/1 -std1
3679 # HP-UX 10.20 and later -Ae
3680 # HP-UX older versions -Aa -D_HPUX_SOURCE
3681 # SVR4 -Xc -D__EXTENSIONS__
3682 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3683 do
3684 CC="$ac_save_CC $ac_arg"
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_c_werror_flag"
3695 || test ! -s conftest.err'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 ac_cv_prog_cc_stdc=$ac_arg
3708 break
3709 else
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 fi
3714 rm -f conftest.err conftest.$ac_objext
3715 done
3716 rm -f conftest.$ac_ext conftest.$ac_objext
3717 CC=$ac_save_CC
3718
3719 fi
3720
3721 case "x$ac_cv_prog_cc_stdc" in
3722 x|xno)
3723 echo "$as_me:$LINENO: result: none needed" >&5
3724 echo "${ECHO_T}none needed" >&6 ;;
3725 *)
3726 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3727 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3728 CC="$CC $ac_cv_prog_cc_stdc" ;;
3729 esac
3730
3731 # Some people use a C++ compiler to compile C. Since we use `exit',
3732 # in C++ we need to declare it. In case someone uses the same compiler
3733 # for both compiling C and C++ we need to have the C++ compiler decide
3734 # the declaration of exit, since it's the most demanding environment.
3735 cat >conftest.$ac_ext <<_ACEOF
3736 #ifndef __cplusplus
3737 choke me
3738 #endif
3739 _ACEOF
3740 rm -f conftest.$ac_objext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742 (eval $ac_compile) 2>conftest.er1
3743 ac_status=$?
3744 grep -v '^ *+' conftest.er1 >conftest.err
3745 rm -f conftest.er1
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -z "$ac_c_werror_flag"
3750 || test ! -s conftest.err'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 (eval $ac_try) 2>&5
3753 ac_status=$?
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; } &&
3756 { ac_try='test -s conftest.$ac_objext'
3757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 (eval $ac_try) 2>&5
3759 ac_status=$?
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; }; then
3762 for ac_declaration in \
3763 '' \
3764 'extern "C" void std::exit (int) throw (); using std::exit;' \
3765 'extern "C" void std::exit (int); using std::exit;' \
3766 'extern "C" void exit (int) throw ();' \
3767 'extern "C" void exit (int);' \
3768 'void exit (int);'
3769 do
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 $ac_declaration
3777 #include <stdlib.h>
3778 int
3779 main ()
3780 {
3781 exit (42);
3782 ;
3783 return 0;
3784 }
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 :
3809 else
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 continue
3814 fi
3815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822 $ac_declaration
3823 int
3824 main ()
3825 {
3826 exit (42);
3827 ;
3828 return 0;
3829 }
3830 _ACEOF
3831 rm -f conftest.$ac_objext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3833 (eval $ac_compile) 2>conftest.er1
3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -z "$ac_c_werror_flag"
3841 || test ! -s conftest.err'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; } &&
3847 { ac_try='test -s conftest.$ac_objext'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; }; then
3853 break
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858 fi
3859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3860 done
3861 rm -f conftest*
3862 if test -n "$ac_declaration"; then
3863 echo '#ifdef __cplusplus' >>confdefs.h
3864 echo $ac_declaration >>confdefs.h
3865 echo '#endif' >>confdefs.h
3866 fi
3867
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 fi
3873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_ext=c
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879
3880 ac_ext=cc
3881 ac_cpp='$CXXCPP $CPPFLAGS'
3882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3885 if test -n "$ac_tool_prefix"; then
3886 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3887 do
3888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_CXX+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if test -n "$CXX"; then
3896 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3908 fi
3909 done
3910 done
3911
3912 fi
3913 fi
3914 CXX=$ac_cv_prog_CXX
3915 if test -n "$CXX"; then
3916 echo "$as_me:$LINENO: result: $CXX" >&5
3917 echo "${ECHO_T}$CXX" >&6
3918 else
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3921 fi
3922
3923 test -n "$CXX" && break
3924 done
3925 fi
3926 if test -z "$CXX"; then
3927 ac_ct_CXX=$CXX
3928 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3929 do
3930 # Extract the first word of "$ac_prog", so it can be a program name with args.
3931 set dummy $ac_prog; ac_word=$2
3932 echo "$as_me:$LINENO: checking for $ac_word" >&5
3933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3934 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 if test -n "$ac_ct_CXX"; then
3938 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3939 else
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3942 do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947 ac_cv_prog_ac_ct_CXX="$ac_prog"
3948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3950 fi
3951 done
3952 done
3953
3954 fi
3955 fi
3956 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3957 if test -n "$ac_ct_CXX"; then
3958 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3959 echo "${ECHO_T}$ac_ct_CXX" >&6
3960 else
3961 echo "$as_me:$LINENO: result: no" >&5
3962 echo "${ECHO_T}no" >&6
3963 fi
3964
3965 test -n "$ac_ct_CXX" && break
3966 done
3967 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3968
3969 CXX=$ac_ct_CXX
3970 fi
3971
3972
3973 # Provide some information about the compiler.
3974 echo "$as_me:$LINENO:" \
3975 "checking for C++ compiler version" >&5
3976 ac_compiler=`set X $ac_compile; echo $2`
3977 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3978 (eval $ac_compiler --version </dev/null >&5) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }
3982 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3983 (eval $ac_compiler -v </dev/null >&5) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }
3987 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3988 (eval $ac_compiler -V </dev/null >&5) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }
3992
3993 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3994 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3995 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004
4005 int
4006 main ()
4007 {
4008 #ifndef __GNUC__
4009 choke me
4010 #endif
4011
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_cxx_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_compiler_gnu=yes
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043 ac_compiler_gnu=no
4044 fi
4045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4047
4048 fi
4049 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4050 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4051 GXX=`test $ac_compiler_gnu = yes && echo yes`
4052 ac_test_CXXFLAGS=${CXXFLAGS+set}
4053 ac_save_CXXFLAGS=$CXXFLAGS
4054 CXXFLAGS="-g"
4055 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4056 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4057 if test "${ac_cv_prog_cxx_g+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066
4067 int
4068 main ()
4069 {
4070
4071 ;
4072 return 0;
4073 }
4074 _ACEOF
4075 rm -f conftest.$ac_objext
4076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>conftest.er1
4078 ac_status=$?
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } &&
4084 { ac_try='test -z "$ac_cxx_werror_flag"
4085 || test ! -s conftest.err'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 ac_cv_prog_cxx_g=yes
4098 else
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102 ac_cv_prog_cxx_g=no
4103 fi
4104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4105 fi
4106 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4107 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4108 if test "$ac_test_CXXFLAGS" = set; then
4109 CXXFLAGS=$ac_save_CXXFLAGS
4110 elif test $ac_cv_prog_cxx_g = yes; then
4111 if test "$GXX" = yes; then
4112 CXXFLAGS="-g -O2"
4113 else
4114 CXXFLAGS="-g"
4115 fi
4116 else
4117 if test "$GXX" = yes; then
4118 CXXFLAGS="-O2"
4119 else
4120 CXXFLAGS=
4121 fi
4122 fi
4123 for ac_declaration in \
4124 '' \
4125 'extern "C" void std::exit (int) throw (); using std::exit;' \
4126 'extern "C" void std::exit (int); using std::exit;' \
4127 'extern "C" void exit (int) throw ();' \
4128 'extern "C" void exit (int);' \
4129 'void exit (int);'
4130 do
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h. */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 $ac_declaration
4138 #include <stdlib.h>
4139 int
4140 main ()
4141 {
4142 exit (42);
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_cxx_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 :
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 continue
4175 fi
4176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4177 cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h. */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183 $ac_declaration
4184 int
4185 main ()
4186 {
4187 exit (42);
4188 ;
4189 return 0;
4190 }
4191 _ACEOF
4192 rm -f conftest.$ac_objext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_cxx_werror_flag"
4202 || test ! -s conftest.err'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 break
4215 else
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 fi
4220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221 done
4222 rm -f conftest*
4223 if test -n "$ac_declaration"; then
4224 echo '#ifdef __cplusplus' >>confdefs.h
4225 echo $ac_declaration >>confdefs.h
4226 echo '#endif' >>confdefs.h
4227 fi
4228
4229 ac_ext=c
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234
4235
4236 # We must set the default linker to the linker used by gcc for the correct
4237 # operation of libtool. If LD is not defined and we are using gcc, try to
4238 # set the LD default to the ld used by gcc.
4239 if test -z "$LD"; then
4240 if test "$GCC" = yes; then
4241 case $build in
4242 *-*-mingw*)
4243 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4244 *)
4245 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4246 esac
4247 case $gcc_prog_ld in
4248 # Accept absolute paths.
4249 [\\/]* | [A-Za-z]:[\\/]*)
4250 LD="$gcc_prog_ld" ;;
4251 esac
4252 fi
4253 fi
4254
4255
4256
4257
4258 if test -n "$ac_tool_prefix"; then
4259 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4260 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4261 echo "$as_me:$LINENO: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266 if test -n "$GNATBIND"; then
4267 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280 done
4281 done
4282
4283 fi
4284 fi
4285 GNATBIND=$ac_cv_prog_GNATBIND
4286 if test -n "$GNATBIND"; then
4287 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4288 echo "${ECHO_T}$GNATBIND" >&6
4289 else
4290 echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6
4292 fi
4293
4294 fi
4295 if test -z "$ac_cv_prog_GNATBIND"; then
4296 ac_ct_GNATBIND=$GNATBIND
4297 # Extract the first word of "gnatbind", so it can be a program name with args.
4298 set dummy gnatbind; ac_word=$2
4299 echo "$as_me:$LINENO: checking for $ac_word" >&5
4300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4301 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304 if test -n "$ac_ct_GNATBIND"; then
4305 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4309 do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4314 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4317 fi
4318 done
4319 done
4320
4321 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4322 fi
4323 fi
4324 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4325 if test -n "$ac_ct_GNATBIND"; then
4326 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4327 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4328 else
4329 echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6
4331 fi
4332
4333 GNATBIND=$ac_ct_GNATBIND
4334 else
4335 GNATBIND="$ac_cv_prog_GNATBIND"
4336 fi
4337
4338 if test -n "$ac_tool_prefix"; then
4339 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4340 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4341 echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4343 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 if test -n "$GNATMAKE"; then
4347 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360 done
4361 done
4362
4363 fi
4364 fi
4365 GNATMAKE=$ac_cv_prog_GNATMAKE
4366 if test -n "$GNATMAKE"; then
4367 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4368 echo "${ECHO_T}$GNATMAKE" >&6
4369 else
4370 echo "$as_me:$LINENO: result: no" >&5
4371 echo "${ECHO_T}no" >&6
4372 fi
4373
4374 fi
4375 if test -z "$ac_cv_prog_GNATMAKE"; then
4376 ac_ct_GNATMAKE=$GNATMAKE
4377 # Extract the first word of "gnatmake", so it can be a program name with args.
4378 set dummy gnatmake; ac_word=$2
4379 echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4381 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 if test -n "$ac_ct_GNATMAKE"; then
4385 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398 done
4399 done
4400
4401 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4402 fi
4403 fi
4404 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4405 if test -n "$ac_ct_GNATMAKE"; then
4406 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4407 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4408 else
4409 echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4411 fi
4412
4413 GNATMAKE=$ac_ct_GNATMAKE
4414 else
4415 GNATMAKE="$ac_cv_prog_GNATMAKE"
4416 fi
4417
4418 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4419 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4420 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 cat >conftest.adb <<EOF
4424 procedure conftest is begin null; end conftest;
4425 EOF
4426 acx_cv_cc_gcc_supports_ada=no
4427 # There is a bug in old released versions of GCC which causes the
4428 # driver to exit successfully when the appropriate language module
4429 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4430 # Therefore we must check for the error message as well as an
4431 # unsuccessful exit.
4432 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4433 # given a .adb file, but produce no object file. So we must check
4434 # if an object file was really produced to guard against this.
4435 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4436 if test x"$errors" = x && test -f conftest.$ac_objext; then
4437 acx_cv_cc_gcc_supports_ada=yes
4438 fi
4439 rm -f conftest.*
4440 fi
4441 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4442 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4443
4444 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4445 have_gnat=yes
4446 else
4447 have_gnat=no
4448 fi
4449
4450 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4451 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4452 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 echo abfoo >t1
4456 echo cdfoo >t2
4457 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4458 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4459 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4460 :
4461 else
4462 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4463 fi
4464 fi
4465 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4466 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4467 :
4468 else
4469 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4470 fi
4471 fi
4472 rm t1 t2
4473
4474 fi
4475 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4476 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4477 do_compare="$gcc_cv_prog_cmp_skip"
4478
4479
4480
4481 # Check for GMP and MPFR
4482 gmplibs="-lmpfr -lgmp"
4483 gmpinc=
4484 have_gmp=no
4485
4486 # Specify a location for mpfr
4487 # check for this first so it ends up on the link line before gmp.
4488
4489 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4490 if test "${with_mpfr_dir+set}" = set; then
4491 withval="$with_mpfr_dir"
4492 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4493 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4494 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4495 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4496 { (exit 1); exit 1; }; }
4497 fi;
4498
4499
4500 # Check whether --with-mpfr or --without-mpfr was given.
4501 if test "${with_mpfr+set}" = set; then
4502 withval="$with_mpfr"
4503
4504 fi;
4505
4506 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4507 if test "${with_mpfr_include+set}" = set; then
4508 withval="$with_mpfr_include"
4509
4510 fi;
4511
4512 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4513 if test "${with_mpfr_lib+set}" = set; then
4514 withval="$with_mpfr_lib"
4515
4516 fi;
4517
4518 if test "x$with_mpfr" != x; then
4519 gmplibs="-L$with_mpfr/lib $gmplibs"
4520 gmpinc="-I$with_mpfr/include"
4521 fi
4522 if test "x$with_mpfr_include" != x; then
4523 gmpinc="-I$with_mpfr_include"
4524 fi
4525 if test "x$with_mpfr_lib" != x; then
4526 gmplibs="-L$with_mpfr_lib $gmplibs"
4527 fi
4528 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4529 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4530 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4531 # Do not test the mpfr version. Assume that it is sufficient, since
4532 # it is in the source tree, and the library has not been built yet
4533 # but it would be included on the link line in the version check below
4534 # hence making the test fail.
4535 have_gmp=yes
4536 fi
4537
4538 # Specify a location for gmp
4539
4540 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4541 if test "${with_gmp_dir+set}" = set; then
4542 withval="$with_gmp_dir"
4543 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4544 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4545 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4546 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4547 { (exit 1); exit 1; }; }
4548 fi;
4549
4550
4551 # Check whether --with-gmp or --without-gmp was given.
4552 if test "${with_gmp+set}" = set; then
4553 withval="$with_gmp"
4554
4555 fi;
4556
4557 # Check whether --with-gmp_include or --without-gmp_include was given.
4558 if test "${with_gmp_include+set}" = set; then
4559 withval="$with_gmp_include"
4560
4561 fi;
4562
4563 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4564 if test "${with_gmp_lib+set}" = set; then
4565 withval="$with_gmp_lib"
4566
4567 fi;
4568
4569
4570 if test "x$with_gmp" != x; then
4571 gmplibs="-L$with_gmp/lib $gmplibs"
4572 gmpinc="-I$with_gmp/include $gmpinc"
4573 fi
4574 if test "x$with_gmp_include" != x; then
4575 gmpinc="-I$with_gmp_include $gmpinc"
4576 fi
4577 if test "x$with_gmp_lib" != x; then
4578 gmplibs="-L$with_gmp_lib $gmplibs"
4579 fi
4580 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4581 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4582 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4583 # Do not test the gmp version. Assume that it is sufficient, since
4584 # it is in the source tree, and the library has not been built yet
4585 # but it would be included on the link line in the version check below
4586 # hence making the test fail.
4587 have_gmp=yes
4588 fi
4589
4590 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4591 have_gmp=yes
4592 saved_CFLAGS="$CFLAGS"
4593 CFLAGS="$CFLAGS $gmpinc"
4594 # Check GMP actually works
4595 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4596 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4597
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 #include "gmp.h"
4605 int
4606 main ()
4607 {
4608
4609 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4610 choke me
4611 #endif
4612
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 rm -f conftest.$ac_objext
4618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4619 (eval $ac_compile) 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try='test -z "$ac_c_werror_flag"
4627 || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try='test -s conftest.$ac_objext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; have_gmp=no
4647 fi
4648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4649
4650 if test x"$have_gmp" = xyes; then
4651 saved_LIBS="$LIBS"
4652 LIBS="$LIBS $gmplibs"
4653 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4654 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4655 cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h. */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 #include <gmp.h>
4662 #include <mpfr.h>
4663 int
4664 main ()
4665 {
4666
4667 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4668 choke me
4669 #endif
4670 mpfr_t n;
4671 mpfr_t x;
4672 int t;
4673 mpfr_init (n);
4674 mpfr_init (x);
4675 mpfr_atan2 (n, n, x, GMP_RNDN);
4676 mpfr_erfc (n, x, GMP_RNDN);
4677 mpfr_subnormalize (x, t, GMP_RNDN);
4678
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag"
4693 || test ! -s conftest.err'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest$ac_exeext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h. */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 #include <gmp.h>
4712 #include <mpfr.h>
4713 int
4714 main ()
4715 {
4716
4717 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4718 choke me
4719 #endif
4720 mpfr_t n; mpfr_init(n);
4721
4722 ;
4723 return 0;
4724 }
4725 _ACEOF
4726 rm -f conftest.$ac_objext conftest$ac_exeext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728 (eval $ac_link) 2>conftest.er1
4729 ac_status=$?
4730 grep -v '^ *+' conftest.er1 >conftest.err
4731 rm -f conftest.er1
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
4735 { ac_try='test -z "$ac_c_werror_flag"
4736 || test ! -s conftest.err'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; } &&
4742 { ac_try='test -s conftest$ac_exeext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 echo "$as_me:$LINENO: result: yes" >&5
4749 echo "${ECHO_T}yes" >&6
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4755 echo "${ECHO_T}buggy but acceptable" >&6
4756 fi
4757 rm -f conftest.err conftest.$ac_objext \
4758 conftest$ac_exeext conftest.$ac_ext
4759 else
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; have_gmp=no
4765 fi
4766 rm -f conftest.err conftest.$ac_objext \
4767 conftest$ac_exeext conftest.$ac_ext
4768 LIBS="$saved_LIBS"
4769 fi
4770 CFLAGS="$saved_CFLAGS"
4771
4772 if test x$have_gmp != xyes; then
4773 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
4774 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4775 Copies of these libraries' source code can be found at their respective
4776 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4777 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4778 If you obtained GMP and/or MPFR from a vendor distribution package, make
4779 sure that you have installed both the libraries and the header files.
4780 They may be located in separate packages." >&5
4781 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
4782 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4783 Copies of these libraries' source code can be found at their respective
4784 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4785 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4786 If you obtained GMP and/or MPFR from a vendor distribution package, make
4787 sure that you have installed both the libraries and the header files.
4788 They may be located in separate packages." >&2;}
4789 { (exit 1); exit 1; }; }
4790 fi
4791 fi
4792
4793 # Flags needed for both GMP and/or MPFR
4794
4795
4796
4797 # By default, C is the only stage 1 language.
4798 stage1_languages=,c,
4799
4800 # Figure out what language subdirectories are present.
4801 # Look if the user specified --enable-languages="..."; if not, use
4802 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4803 # go away some day.
4804 # NB: embedded tabs in this IF block -- do not untabify
4805 if test -d ${srcdir}/gcc; then
4806 if test x"${enable_languages+set}" != xset; then
4807 if test x"${LANGUAGES+set}" = xset; then
4808 enable_languages="${LANGUAGES}"
4809 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4810 else
4811 enable_languages=all
4812 fi
4813 else
4814 if test x"${enable_languages}" = x ||
4815 test x"${enable_languages}" = xyes;
4816 then
4817 echo configure.in: --enable-languages needs at least one language argument 1>&2
4818 exit 1
4819 fi
4820 fi
4821 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4822
4823 # 'f95' is the old name for the 'fortran' language. We issue a warning
4824 # and make the substitution.
4825 case ,${enable_languages}, in
4826 *,f95,*)
4827 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4828 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4829 ;;
4830 esac
4831
4832 # First scan to see if an enabled language requires some other language.
4833 # We assume that a given config-lang.in will list all the language
4834 # front ends it requires, even if some are required indirectly.
4835 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4836 case ${lang_frag} in
4837 ..) ;;
4838 # The odd quoting in the next line works around
4839 # an apparent bug in bash 1.12 on linux.
4840 ${srcdir}/gcc/[*]/config-lang.in) ;;
4841 *)
4842 # From the config-lang.in, get $language, $lang_requires
4843 language=
4844 lang_requires=
4845 . ${lang_frag}
4846 for other in ${lang_requires} ; do
4847 case ,${enable_languages}, in
4848 *,$other,*) ;;
4849 *,all,*) ;;
4850 *,$language,*)
4851 echo " \`$other' language required by \`$language'; enabling" 1>&2
4852 enable_languages="${enable_languages},${other}"
4853 ;;
4854 esac
4855 done
4856 ;;
4857 esac
4858 done
4859
4860 new_enable_languages=,c,
4861 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4862 potential_languages=,c,
4863
4864 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4865 case ${lang_frag} in
4866 ..) ;;
4867 # The odd quoting in the next line works around
4868 # an apparent bug in bash 1.12 on linux.
4869 ${srcdir}/gcc/[*]/config-lang.in) ;;
4870 *)
4871 # From the config-lang.in, get $language, $target_libs,
4872 # $lang_dirs, $boot_language, and $build_by_default
4873 language=
4874 target_libs=
4875 lang_dirs=
4876 subdir_requires=
4877 boot_language=no
4878 build_by_default=yes
4879 . ${lang_frag}
4880 if test x${language} = x; then
4881 echo "${lang_frag} doesn't set \$language." 1>&2
4882 exit 1
4883 fi
4884
4885 case ,${enable_languages}, in
4886 *,${language},*)
4887 # Language was explicitly selected; include it.
4888 add_this_lang=yes
4889 ;;
4890 *,all,*)
4891 # 'all' was selected, select it if it is a default language
4892 add_this_lang=${build_by_default}
4893 ;;
4894 *)
4895 add_this_lang=no
4896 ;;
4897 esac
4898
4899 # Disable languages that need other directories if these aren't available.
4900 for i in $subdir_requires; do
4901 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4902 case ,${enable_languages}, in
4903 *,${language},*)
4904 # Specifically requested language; tell them.
4905 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4906 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4907 { (exit 1); exit 1; }; }
4908 ;;
4909 *)
4910 # Silently disable.
4911 add_this_lang=unsupported
4912 ;;
4913 esac
4914 done
4915
4916 # Disable Ada if no preexisting GNAT is available.
4917 case ,${enable_languages},:${language}:${have_gnat} in
4918 *,${language},*:ada:no)
4919 # Specifically requested language; tell them.
4920 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4921 echo "$as_me: error: GNAT is required to build $language" >&2;}
4922 { (exit 1); exit 1; }; }
4923 ;;
4924 *:ada:no)
4925 # Silently disable.
4926 add_this_lang=unsupported
4927 ;;
4928 esac
4929
4930 # Disable a language that is unsupported by the target.
4931 case " $unsupported_languages " in
4932 *" $language "*)
4933 add_this_lang=unsupported
4934 ;;
4935 esac
4936
4937 case $add_this_lang in
4938 unsupported)
4939 # Remove language-dependent dirs.
4940 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4941 ;;
4942 no)
4943 # Remove language-dependent dirs; still show language as supported.
4944 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4945 potential_languages="${potential_languages}${language},"
4946 ;;
4947 yes)
4948 new_enable_languages="${new_enable_languages}${language},"
4949 potential_languages="${potential_languages}${language},"
4950 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4951 case ${boot_language} in
4952 yes)
4953 # Add to (comma-separated) list of stage 1 languages.
4954 stage1_languages="${stage1_languages}${language},"
4955 ;;
4956 esac
4957 ;;
4958 esac
4959 ;;
4960 esac
4961 done
4962
4963 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4964 if test "${enable_stage1_languages+set}" = set; then
4965 enableval="$enable_stage1_languages"
4966 case ,${enable_stage1_languages}, in
4967 ,no,|,,)
4968 # Set it to something that will have no effect in the loop below
4969 enable_stage1_languages=c ;;
4970 ,yes,)
4971 enable_stage1_languages=`echo $new_enable_languages | \
4972 sed -e "s/^,//" -e "s/,$//" ` ;;
4973 *,all,*)
4974 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4975 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4976 esac
4977
4978 # Add "good" languages from enable_stage1_languages to stage1_languages,
4979 # while "bad" languages go in missing_languages. Leave no duplicates.
4980 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4981 case $potential_languages in
4982 *,$i,*)
4983 case $stage1_languages in
4984 *,$i,*) ;;
4985 *) stage1_languages="$stage1_languages$i," ;;
4986 esac ;;
4987 *)
4988 case $missing_languages in
4989 *,$i,*) ;;
4990 *) missing_languages="$missing_languages$i," ;;
4991 esac ;;
4992 esac
4993 done
4994 fi;
4995
4996 # Remove leading/trailing commas that were added for simplicity
4997 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4998 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4999 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5000 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5001
5002 if test "x$missing_languages" != x; then
5003 { { echo "$as_me:$LINENO: error:
5004 The following requested languages could not be built: ${missing_languages}
5005 Supported languages are: ${potential_languages}" >&5
5006 echo "$as_me: error:
5007 The following requested languages could not be built: ${missing_languages}
5008 Supported languages are: ${potential_languages}" >&2;}
5009 { (exit 1); exit 1; }; }
5010 fi
5011 if test "x$new_enable_languages" != "x$enable_languages"; then
5012 echo The following languages will be built: ${new_enable_languages}
5013 enable_languages="$new_enable_languages"
5014 fi
5015
5016
5017 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5018 fi
5019
5020 # Handle --disable-<component> generically.
5021 for dir in $configdirs $build_configdirs $target_configdirs ; do
5022 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5023 varname=`echo $dirname | sed -e s/+/_/g`
5024 if eval test x\${enable_${varname}} "=" xno ; then
5025 noconfigdirs="$noconfigdirs $dir"
5026 fi
5027 done
5028
5029 # Check for Boehm's garbage collector
5030 # Check whether --enable-objc-gc or --disable-objc-gc was given.
5031 if test "${enable_objc_gc+set}" = set; then
5032 enableval="$enable_objc_gc"
5033 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5034 *,objc,*:*:yes:*target-boehm-gc*)
5035 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5036 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5037 { (exit 1); exit 1; }; }
5038 ;;
5039 esac
5040 fi;
5041
5042 # Make sure we only build Boehm's garbage collector if required.
5043 case ,${enable_languages},:${enable_objc_gc} in
5044 *,objc,*:yes)
5045 # Keep target-boehm-gc if requested for Objective-C.
5046 ;;
5047 *)
5048 # Otherwise remove target-boehm-gc depending on target-libjava.
5049 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5050 noconfigdirs="$noconfigdirs target-boehm-gc"
5051 fi
5052 ;;
5053 esac
5054
5055 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5056 # $build_configdirs and $target_configdirs.
5057 # If we have the source for $noconfigdirs entries, add them to $notsupp.
5058
5059 notsupp=""
5060 for dir in . $skipdirs $noconfigdirs ; do
5061 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5062 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5063 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5064 if test -r $srcdir/$dirname/configure ; then
5065 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5066 true
5067 else
5068 notsupp="$notsupp $dir"
5069 fi
5070 fi
5071 fi
5072 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5073 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5074 if test -r $srcdir/$dirname/configure ; then
5075 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5076 true
5077 else
5078 notsupp="$notsupp $dir"
5079 fi
5080 fi
5081 fi
5082 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5083 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5084 if test -r $srcdir/$dirname/configure ; then
5085 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5086 true
5087 else
5088 notsupp="$notsupp $dir"
5089 fi
5090 fi
5091 fi
5092 done
5093
5094 # Sometimes the tools are distributed with libiberty but with no other
5095 # libraries. In that case, we don't want to build target-libiberty.
5096 # Don't let libgcc imply libiberty either.
5097 if test -n "${target_configdirs}" ; then
5098 libgcc=
5099 others=
5100 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5101 if test "$i" = "libgcc"; then
5102 libgcc=target-libgcc
5103 elif test "$i" != "libiberty" ; then
5104 if test -r $srcdir/$i/configure ; then
5105 others=yes;
5106 break;
5107 fi
5108 fi
5109 done
5110 if test -z "${others}" ; then
5111 target_configdirs=$libgcc
5112 fi
5113 fi
5114
5115 # Quietly strip out all directories which aren't configurable in this tree.
5116 # This relies on all configurable subdirectories being autoconfiscated, which
5117 # is now the case.
5118 build_configdirs_all="$build_configdirs"
5119 build_configdirs=
5120 for i in ${build_configdirs_all} ; do
5121 j=`echo $i | sed -e s/build-//g`
5122 if test -f ${srcdir}/$j/configure ; then
5123 build_configdirs="${build_configdirs} $i"
5124 fi
5125 done
5126
5127 configdirs_all="$configdirs"
5128 configdirs=
5129 for i in ${configdirs_all} ; do
5130 if test -f ${srcdir}/$i/configure ; then
5131 configdirs="${configdirs} $i"
5132 fi
5133 done
5134
5135 target_configdirs_all="$target_configdirs"
5136 target_configdirs=
5137 for i in ${target_configdirs_all} ; do
5138 j=`echo $i | sed -e s/target-//g`
5139 if test -f ${srcdir}/$j/configure ; then
5140 target_configdirs="${target_configdirs} $i"
5141 fi
5142 done
5143
5144 # Produce a warning message for the subdirs we can't configure.
5145 # This isn't especially interesting in the Cygnus tree, but in the individual
5146 # FSF releases, it's important to let people know when their machine isn't
5147 # supported by the one or two programs in a package.
5148
5149 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5150 # If $appdirs is non-empty, at least one of those directories must still
5151 # be configured, or we error out. (E.g., if the gas release supports a
5152 # specified target in some subdirs but not the gas subdir, we shouldn't
5153 # pretend that all is well.)
5154 if test -n "$appdirs" ; then
5155 for dir in $appdirs ; do
5156 if test -r $dir/Makefile.in ; then
5157 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5158 appdirs=""
5159 break
5160 fi
5161 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5162 appdirs=""
5163 break
5164 fi
5165 fi
5166 done
5167 if test -n "$appdirs" ; then
5168 echo "*** This configuration is not supported by this package." 1>&2
5169 exit 1
5170 fi
5171 fi
5172 # Okay, some application will build, or we don't care to check. Still
5173 # notify of subdirs not getting built.
5174 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5175 echo " ${notsupp}" 1>&2
5176 echo " (Any other directories should still work fine.)" 1>&2
5177 fi
5178
5179 case "$host" in
5180 *msdosdjgpp*)
5181 enable_gdbtk=no ;;
5182 esac
5183
5184 # To find our prefix, in gcc_cv_tool_prefix.
5185
5186 # The user is always right.
5187 if test "${PATH_SEPARATOR+set}" != set; then
5188 echo "#! /bin/sh" >conf$$.sh
5189 echo "exit 0" >>conf$$.sh
5190 chmod +x conf$$.sh
5191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5192 PATH_SEPARATOR=';'
5193 else
5194 PATH_SEPARATOR=:
5195 fi
5196 rm -f conf$$.sh
5197 fi
5198
5199
5200
5201 if test "x$exec_prefix" = xNONE; then
5202 if test "x$prefix" = xNONE; then
5203 gcc_cv_tool_prefix=$ac_default_prefix
5204 else
5205 gcc_cv_tool_prefix=$prefix
5206 fi
5207 else
5208 gcc_cv_tool_prefix=$exec_prefix
5209 fi
5210
5211 # If there is no compiler in the tree, use the PATH only. In any
5212 # case, if there is no compiler in the tree nobody should use
5213 # AS_FOR_TARGET and LD_FOR_TARGET.
5214 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5215 gcc_version=`cat $srcdir/gcc/BASE-VER`
5216 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5218 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5219 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5220 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5221 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5222 else
5223 gcc_cv_tool_dirs=
5224 fi
5225
5226 if test x$build = x$target && test -n "$md_exec_prefix"; then
5227 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5228 fi
5229
5230
5231
5232 copy_dirs=
5233
5234
5235 # Check whether --with-build-sysroot or --without-build-sysroot was given.
5236 if test "${with_build_sysroot+set}" = set; then
5237 withval="$with_build_sysroot"
5238 if test x"$withval" != x ; then
5239 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5240 fi
5241 else
5242 SYSROOT_CFLAGS_FOR_TARGET=
5243 fi;
5244
5245
5246
5247 # Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5248 if test "${with_debug_prefix_map+set}" = set; then
5249 withval="$with_debug_prefix_map"
5250 if test x"$withval" != x; then
5251 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5252 for debug_map in $withval; do
5253 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5254 done
5255 fi
5256 else
5257 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5258 fi;
5259
5260
5261 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5262 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5263 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5264 # We want to ensure that TARGET libraries (which we know are built with
5265 # gcc) are built with "-O2 -g", so include those options when setting
5266 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5267 if test "x$CFLAGS_FOR_TARGET" = x; then
5268 CFLAGS_FOR_TARGET=$CFLAGS
5269 case " $CFLAGS " in
5270 *" -O2 "*) ;;
5271 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5272 esac
5273 case " $CFLAGS " in
5274 *" -g "* | *" -g3 "*) ;;
5275 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5276 esac
5277 fi
5278
5279
5280 if test "x$CXXFLAGS_FOR_TARGET" = x; then
5281 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5282 case " $CXXFLAGS " in
5283 *" -O2 "*) ;;
5284 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5285 esac
5286 case " $CXXFLAGS " in
5287 *" -g "* | *" -g3 "*) ;;
5288 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5289 esac
5290 fi
5291
5292
5293 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5294 # the named directory are copied to $(tooldir)/sys-include.
5295 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5296 if test x${is_cross_compiler} = xno ; then
5297 echo 1>&2 '***' --with-headers is only supported when cross compiling
5298 exit 1
5299 fi
5300 if test x"${with_headers}" != xyes ; then
5301 x=${gcc_cv_tool_prefix}
5302 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5303 fi
5304 fi
5305
5306 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5307 # the name directories are copied to $(tooldir)/lib. Multiple directories
5308 # are permitted.
5309 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5310 if test x${is_cross_compiler} = xno ; then
5311 echo 1>&2 '***' --with-libs is only supported when cross compiling
5312 exit 1
5313 fi
5314 if test x"${with_libs}" != xyes ; then
5315 # Copy the libraries in reverse order, so that files in the first named
5316 # library override files in subsequent libraries.
5317 x=${gcc_cv_tool_prefix}
5318 for l in ${with_libs}; do
5319 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5320 done
5321 fi
5322 fi
5323
5324 # Set with_gnu_as and with_gnu_ld as appropriate.
5325 #
5326 # This is done by determining whether or not the appropriate directory
5327 # is available, and by checking whether or not specific configurations
5328 # have requested that this magic not happen.
5329 #
5330 # The command line options always override the explicit settings in
5331 # configure.in, and the settings in configure.in override this magic.
5332 #
5333 # If the default for a toolchain is to use GNU as and ld, and you don't
5334 # want to do that, then you should use the --without-gnu-as and
5335 # --without-gnu-ld options for the configure script.
5336
5337 if test x${use_gnu_as} = x &&
5338 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5339 with_gnu_as=yes
5340 extra_host_args="$extra_host_args --with-gnu-as"
5341 fi
5342
5343 if test x${use_gnu_ld} = x &&
5344 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
5345 with_gnu_ld=yes
5346 extra_host_args="$extra_host_args --with-gnu-ld"
5347 fi
5348
5349 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5350 # can detect this case.
5351
5352 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5353 with_newlib=yes
5354 extra_host_args="$extra_host_args --with-newlib"
5355 fi
5356
5357 # Handle ${copy_dirs}
5358 set fnord ${copy_dirs}
5359 shift
5360 while test $# != 0 ; do
5361 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5362 :
5363 else
5364 echo Copying $1 to $2
5365
5366 # Use the install script to create the directory and all required
5367 # parent directories.
5368 if test -d $2 ; then
5369 :
5370 else
5371 echo >config.temp
5372 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5373 fi
5374
5375 # Copy the directory, assuming we have tar.
5376 # FIXME: Should we use B in the second tar? Not all systems support it.
5377 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5378
5379 # It is the responsibility of the user to correctly adjust all
5380 # symlinks. If somebody can figure out how to handle them correctly
5381 # here, feel free to add the code.
5382
5383 echo $1 > $2/COPIED
5384 fi
5385 shift; shift
5386 done
5387
5388 # Determine a target-dependent exec_prefix that the installed
5389 # gcc will search in. Keep this list sorted by triplet, with
5390 # the *-*-osname triplets last.
5391 md_exec_prefix=
5392 case "${target}" in
5393 alpha*-*-*vms*)
5394 md_exec_prefix=/gnu/lib/gcc-lib
5395 ;;
5396 i[34567]86-pc-msdosdjgpp*)
5397 md_exec_prefix=/dev/env/DJDIR/bin
5398 ;;
5399 i[34567]86-*-sco3.2v5*)
5400 if test $with_gnu_as = yes; then
5401 md_exec_prefix=/usr/gnu/bin
5402 else
5403 md_exec_prefix=/usr/ccs/bin/elf
5404 fi
5405 ;;
5406
5407 mn10300-*-* | \
5408 powerpc-*-chorusos* | \
5409 powerpc*-*-eabi* | \
5410 powerpc*-*-sysv* | \
5411 powerpc*-*-kaos* | \
5412 s390x-ibm-tpf*)
5413 md_exec_prefix=/usr/ccs/bin
5414 ;;
5415 sparc64-*-elf*)
5416 ;;
5417 v850*-*-*)
5418 md_exec_prefix=/usr/ccs/bin
5419 ;;
5420 xtensa*-*-elf*)
5421 ;;
5422
5423 *-*-beos* | \
5424 *-*-elf* | \
5425 *-*-hpux* | \
5426 *-*-netware* | \
5427 *-*-nto-qnx* | \
5428 *-*-rtems* | \
5429 *-*-solaris2* | \
5430 *-*-sysv[45]* | \
5431 *-*-vxworks* | \
5432 *-wrs-windiss)
5433 md_exec_prefix=/usr/ccs/bin
5434 ;;
5435 esac
5436
5437 extra_arflags_for_target=
5438 extra_nmflags_for_target=
5439 extra_ranlibflags_for_target=
5440 target_makefile_frag=/dev/null
5441 case "${target}" in
5442 mep*-*-*)
5443 target_makefile_frag="config/mt-mep"
5444 ;;
5445 spu-*-*)
5446 target_makefile_frag="config/mt-spu"
5447 ;;
5448 mips*-sde-elf*)
5449 target_makefile_frag="config/mt-sde"
5450 ;;
5451 mipsisa*-*-elfoabi*)
5452 target_makefile_frag="config/mt-mips-elfoabi"
5453 ;;
5454 mips*-*-*linux* | mips*-*-gnu*)
5455 target_makefile_frag="config/mt-mips-gnu"
5456 ;;
5457 *-*-netware*)
5458 target_makefile_frag="config/mt-netware"
5459 ;;
5460 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5461 target_makefile_frag="config/mt-gnu"
5462 ;;
5463 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5464 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5465 # commands to handle both 32-bit and 64-bit objects. These flags are
5466 # harmless if we're using GNU nm or ar.
5467 extra_arflags_for_target=" -X32_64"
5468 extra_nmflags_for_target=" -B -X32_64"
5469 ;;
5470 *-*-darwin*)
5471 # ranlib from Darwin requires the -c flag to look at common symbols.
5472 extra_ranlibflags_for_target=" -c"
5473 ;;
5474 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5475 target_makefile_frag="config/mt-wince"
5476 ;;
5477 esac
5478
5479 alphaieee_frag=/dev/null
5480 case $target in
5481 alpha*-*-*)
5482 # This just makes sure to use the -mieee option to build target libs.
5483 # This should probably be set individually by each library.
5484 alphaieee_frag="config/mt-alphaieee"
5485 ;;
5486 esac
5487
5488 # If --enable-target-optspace always use -Os instead of -O2 to build
5489 # the target libraries, similarly if it is not specified, use -Os
5490 # on selected platforms.
5491 ospace_frag=/dev/null
5492 case "${enable_target_optspace}:${target}" in
5493 yes:*)
5494 ospace_frag="config/mt-ospace"
5495 ;;
5496 :d30v-*)
5497 ospace_frag="config/mt-d30v"
5498 ;;
5499 :m32r-* | :d10v-* | :fr30-*)
5500 ospace_frag="config/mt-ospace"
5501 ;;
5502 no:* | :*)
5503 ;;
5504 *)
5505 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5506 ;;
5507 esac
5508
5509 # Default to using --with-stabs for certain targets.
5510 if test x${with_stabs} = x ; then
5511 case "${target}" in
5512 mips*-*-irix[56]*)
5513 ;;
5514 mips*-*-* | alpha*-*-osf*)
5515 with_stabs=yes;
5516 extra_host_args="${extra_host_args} --with-stabs"
5517 ;;
5518 esac
5519 fi
5520
5521 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5522 # them automatically.
5523 case "${host}" in
5524 hppa*64*-*-hpux11*)
5525 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5526 ;;
5527 esac
5528
5529 # Some systems (e.g., one of the i386-aix systems the gas testers are
5530 # using) don't handle "\$" correctly, so don't use it here.
5531 tooldir='${exec_prefix}'/${target_noncanonical}
5532 build_tooldir=${tooldir}
5533
5534 # Create a .gdbinit file which runs the one in srcdir
5535 # and tells GDB to look there for source files.
5536
5537 if test -r ${srcdir}/.gdbinit ; then
5538 case ${srcdir} in
5539 .) ;;
5540 *) cat > ./.gdbinit <<EOF
5541 # ${NO_EDIT}
5542 dir ${srcdir}
5543 dir .
5544 source ${srcdir}/.gdbinit
5545 EOF
5546 ;;
5547 esac
5548 fi
5549
5550 # Make sure that the compiler is able to generate an executable. If it
5551 # can't, we are probably in trouble. We don't care whether we can run the
5552 # executable--we might be using a cross compiler--we only care whether it
5553 # can be created. At this point the main configure script has set CC.
5554 we_are_ok=no
5555 echo "int main () { return 0; }" > conftest.c
5556 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5557 if test $? = 0 ; then
5558 if test -s conftest || test -s conftest.exe ; then
5559 we_are_ok=yes
5560 fi
5561 fi
5562 case $we_are_ok in
5563 no)
5564 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5565 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5566 rm -f conftest*
5567 exit 1
5568 ;;
5569 esac
5570 rm -f conftest*
5571
5572 # The Solaris /usr/ucb/cc compiler does not appear to work.
5573 case "${host}" in
5574 sparc-sun-solaris2*)
5575 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5576 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5577 could_use=
5578 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5579 if test -d /opt/cygnus/bin ; then
5580 if test "$could_use" = "" ; then
5581 could_use="/opt/cygnus/bin"
5582 else
5583 could_use="$could_use or /opt/cygnus/bin"
5584 fi
5585 fi
5586 if test "$could_use" = "" ; then
5587 echo "Warning: compilation may fail because you're using"
5588 echo "/usr/ucb/cc. You should change your PATH or CC "
5589 echo "variable and rerun configure."
5590 else
5591 echo "Warning: compilation may fail because you're using"
5592 echo "/usr/ucb/cc, when you should use the C compiler from"
5593 echo "$could_use. You should change your"
5594 echo "PATH or CC variable and rerun configure."
5595 fi
5596 fi
5597 ;;
5598 esac
5599
5600 # Decide which environment variable is used to find dynamic libraries.
5601 case "${host}" in
5602 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5603 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5604 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
5605 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5606 esac
5607
5608 # On systems where the dynamic library environment variable is PATH,
5609 if test "$RPATH_ENVVAR" = PATH; then
5610 GCC_SHLIB_SUBDIR=/shlib
5611 else
5612 GCC_SHLIB_SUBDIR=
5613 fi
5614
5615 # Record target_configdirs and the configure arguments for target and
5616 # build configuration in Makefile.
5617 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5618 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5619
5620 # Determine whether gdb needs tk/tcl or not.
5621 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5622 # and in that case we want gdb to be built without tk. Ugh!
5623 # In fact I believe gdb is the *only* package directly dependent on tk,
5624 # so we should be able to put the 'maybe's in unconditionally and
5625 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5626 # 100% sure that that's safe though.
5627
5628 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5629 case "$enable_gdbtk" in
5630 no)
5631 GDB_TK="" ;;
5632 yes)
5633 GDB_TK="${gdb_tk}" ;;
5634 *)
5635 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5636 # distro. Eventually someone will fix this and move Insight, nee
5637 # gdbtk to a separate directory.
5638 if test -d ${srcdir}/gdb/gdbtk ; then
5639 GDB_TK="${gdb_tk}"
5640 else
5641 GDB_TK=""
5642 fi
5643 ;;
5644 esac
5645 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5646 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5647
5648 # Strip out unwanted targets.
5649
5650 # While at that, we remove Makefiles if we were started for recursive
5651 # configuration, so that the top-level Makefile reconfigures them,
5652 # like we used to do when configure itself was recursive.
5653
5654 # Loop over modules. $extrasub must be used with care, limiting as
5655 # much as possible the usage of range addresses. That's because autoconf
5656 # splits the sed script to overcome limits in the number of commands,
5657 # and relying on carefully-timed sed passes may turn out to be very hard
5658 # to maintain later. In this particular case, you just have to be careful
5659 # not to nest @if/@endif pairs, because configure will not warn you at all.
5660
5661 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5662 if test "${enable_bootstrap+set}" = set; then
5663 enableval="$enable_bootstrap"
5664
5665 else
5666 enable_bootstrap=default
5667 fi;
5668
5669 # Issue errors and warnings for invalid/strange bootstrap combinations.
5670 case "$configdirs" in
5671 *gcc*) have_compiler=yes ;;
5672 *) have_compiler=no ;;
5673 esac
5674
5675 case "$have_compiler:$host:$target:$enable_bootstrap" in
5676 *:*:*:no) ;;
5677
5678 # Default behavior. Enable bootstrap if we have a compiler
5679 # and we are in a native configuration.
5680 yes:$build:$build:default)
5681 enable_bootstrap=yes ;;
5682
5683 *:*:*:default)
5684 enable_bootstrap=no ;;
5685
5686 # We have a compiler and we are in a native configuration, bootstrap is ok
5687 yes:$build:$build:yes)
5688 ;;
5689
5690 # Other configurations, but we have a compiler. Assume the user knows
5691 # what he's doing.
5692 yes:*:*:yes)
5693 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5694 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5695 ;;
5696
5697 # No compiler: if they passed --enable-bootstrap explicitly, fail
5698 no:*:*:yes)
5699 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5700 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5701 { (exit 1); exit 1; }; } ;;
5702
5703 # Fail if wrong command line
5704 *)
5705 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5706 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5707 { (exit 1); exit 1; }; }
5708 ;;
5709 esac
5710
5711 # Adjust the toplevel makefile according to whether bootstrap was selected.
5712 case "$enable_bootstrap" in
5713 yes)
5714 bootstrap_suffix=bootstrap ;;
5715 no)
5716 bootstrap_suffix=no-bootstrap ;;
5717 esac
5718
5719 for module in ${build_configdirs} ; do
5720 if test -z "${no_recursion}" \
5721 && test -f ${build_subdir}/${module}/Makefile; then
5722 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5723 rm -f ${build_subdir}/${module}/Makefile
5724 fi
5725 extrasub="$extrasub
5726 /^@if build-$module\$/d
5727 /^@endif build-$module\$/d
5728 /^@if build-$module-$bootstrap_suffix\$/d
5729 /^@endif build-$module-$bootstrap_suffix\$/d"
5730 done
5731 for module in ${configdirs} ; do
5732 if test -z "${no_recursion}"; then
5733 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5734 if test -f ${file}; then
5735 echo 1>&2 "*** removing ${file} to force reconfigure"
5736 rm -f ${file}
5737 fi
5738 done
5739 fi
5740 extrasub="$extrasub
5741 /^@if $module\$/d
5742 /^@endif $module\$/d
5743 /^@if $module-$bootstrap_suffix\$/d
5744 /^@endif $module-$bootstrap_suffix\$/d"
5745 done
5746 for module in ${target_configdirs} ; do
5747 if test -z "${no_recursion}" \
5748 && test -f ${target_subdir}/${module}/Makefile; then
5749 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5750 rm -f ${target_subdir}/${module}/Makefile
5751 fi
5752 extrasub="$extrasub
5753 /^@if target-$module\$/d
5754 /^@endif target-$module\$/d
5755 /^@if target-$module-$bootstrap_suffix\$/d
5756 /^@endif target-$module-$bootstrap_suffix\$/d"
5757 done
5758
5759 extrasub="$extrasub
5760 /^@if /,/^@endif /d"
5761
5762 # Create the serialization dependencies. This uses a temporary file.
5763
5764 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5765 if test "${enable_serial_configure+set}" = set; then
5766 enableval="$enable_serial_configure"
5767
5768 fi;
5769
5770 case ${enable_serial_configure} in
5771 yes)
5772 enable_serial_build_configure=yes
5773 enable_serial_host_configure=yes
5774 enable_serial_target_configure=yes
5775 ;;
5776 esac
5777
5778 # These force 'configure's to be done one at a time, to avoid problems
5779 # with contention over a shared config.cache.
5780 rm -f serdep.tmp
5781 echo '# serdep.tmp' > serdep.tmp
5782 olditem=
5783 test "x${enable_serial_build_configure}" = xyes &&
5784 for item in ${build_configdirs} ; do
5785 case ${olditem} in
5786 "") ;;
5787 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5788 esac
5789 olditem=${item}
5790 done
5791 olditem=
5792 test "x${enable_serial_host_configure}" = xyes &&
5793 for item in ${configdirs} ; do
5794 case ${olditem} in
5795 "") ;;
5796 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5797 esac
5798 olditem=${item}
5799 done
5800 olditem=
5801 test "x${enable_serial_target_configure}" = xyes &&
5802 for item in ${target_configdirs} ; do
5803 case ${olditem} in
5804 "") ;;
5805 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5806 esac
5807 olditem=${item}
5808 done
5809 serialization_dependencies=serdep.tmp
5810
5811
5812 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5813 # target, nonopt, and variable assignments. These are the ones we
5814 # might not want to pass down to subconfigures. Also strip
5815 # program-prefix, program-suffix, and program-transform-name, so that
5816 # we can pass down a consistent program-transform-name.
5817 baseargs=
5818 keep_next=no
5819 skip_next=no
5820 eval "set -- $ac_configure_args"
5821 for ac_arg
5822 do
5823 if test X"$skip_next" = X"yes"; then
5824 skip_next=no
5825 continue
5826 fi
5827 if test X"$keep_next" = X"yes"; then
5828 case $ac_arg in
5829 *\'*)
5830 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5831 esac
5832 baseargs="$baseargs '$ac_arg'"
5833 keep_next=no
5834 continue
5835 fi
5836
5837 # Handle separated arguments. Based on the logic generated by
5838 # autoconf 2.59.
5839 case $ac_arg in
5840 *=* | --config-cache | -C | -disable-* | --disable-* \
5841 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5842 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5843 | -with-* | --with-* | -without-* | --without-* | --x)
5844 separate_arg=no
5845 ;;
5846 -*)
5847 separate_arg=yes
5848 ;;
5849 *)
5850 separate_arg=no
5851 ;;
5852 esac
5853
5854 case "$ac_arg" in
5855 --no*)
5856 continue
5857 ;;
5858 --c* | \
5859 --sr* | \
5860 --ho* | \
5861 --bu* | \
5862 --t* | \
5863 --program-* | \
5864 -cache_file* | \
5865 -srcdir* | \
5866 -host* | \
5867 -build* | \
5868 -target* | \
5869 -program-prefix* | \
5870 -program-suffix* | \
5871 -program-transform-name* )
5872 skip_next=$separate_arg
5873 continue
5874 ;;
5875 -*)
5876 # An option. Add it.
5877 case $ac_arg in
5878 *\'*)
5879 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5880 esac
5881 baseargs="$baseargs '$ac_arg'"
5882 keep_next=$separate_arg
5883 ;;
5884 *)
5885 # Either a variable assignment, or a nonopt (triplet). Don't
5886 # pass it down; let the Makefile handle this.
5887 continue
5888 ;;
5889 esac
5890 done
5891 # Remove the initial space we just introduced and, as these will be
5892 # expanded by make, quote '$'.
5893 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5894
5895 # Add in --program-transform-name, after --program-prefix and
5896 # --program-suffix have been applied to it. Autoconf has already
5897 # doubled dollar signs and backslashes in program_transform_name; we want
5898 # the backslashes un-doubled, and then the entire thing wrapped in single
5899 # quotes, because this will be expanded first by make and then by the shell.
5900 # Also, because we want to override the logic in subdir configure scripts to
5901 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5902 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5903 ${program_transform_name}
5904 EOF_SED
5905 gcc_transform_name=`cat conftestsed.out`
5906 rm -f conftestsed.out
5907 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5908 if test "$silent" = yes; then
5909 baseargs="$baseargs --silent"
5910 fi
5911
5912 # For the build-side libraries, we just need to pretend we're native,
5913 # and not use the same cache file. Multilibs are neither needed nor
5914 # desired.
5915 build_configargs="--cache-file=../config.cache ${baseargs}"
5916
5917 # For host modules, accept cache file option, or specification as blank.
5918 case "${cache_file}" in
5919 "") # empty
5920 cache_file_option="" ;;
5921 /* | [A-Za-z]:[\\/]* ) # absolute path
5922 cache_file_option="--cache-file=${cache_file}" ;;
5923 *) # relative path
5924 cache_file_option="--cache-file=../${cache_file}" ;;
5925 esac
5926
5927 # Host dirs don't like to share a cache file either, horribly enough.
5928 # This seems to be due to autoconf 2.5x stupidity.
5929 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5930
5931 target_configargs=${baseargs}
5932
5933 # Passing a --with-cross-host argument lets the target libraries know
5934 # whether they are being built with a cross-compiler or being built
5935 # native. However, it would be better to use other mechanisms to make the
5936 # sorts of decisions they want to make on this basis. Please consider
5937 # this option to be deprecated. FIXME.
5938 if test x${is_cross_compiler} = xyes ; then
5939 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5940 fi
5941
5942 # Default to --enable-multilib.
5943 if test x${enable_multilib} = x ; then
5944 target_configargs="--enable-multilib ${target_configargs}"
5945 fi
5946
5947 # Pass --with-newlib if appropriate. Note that target_configdirs has
5948 # changed from the earlier setting of with_newlib.
5949 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5950 target_configargs="--with-newlib ${target_configargs}"
5951 fi
5952
5953 # Different target subdirs use different values of certain variables
5954 # (notably CXX). Worse, multilibs use *lots* of different values.
5955 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5956 # it doesn't automatically accept command-line overrides of them.
5957 # This means it's not safe for target subdirs to share a cache file,
5958 # which is disgusting, but there you have it. Hopefully this can be
5959 # fixed in future. It's still worthwhile to use a cache file for each
5960 # directory. I think.
5961
5962 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5963 # We need to pass --target, as newer autoconf's requires consistency
5964 # for target_alias and gcc doesn't manage it consistently.
5965 target_configargs="--cache-file=./config.cache ${target_configargs}"
5966
5967 FLAGS_FOR_TARGET=
5968 case " $target_configdirs " in
5969 *" newlib "*)
5970 case " $target_configargs " in
5971 *" --with-newlib "*)
5972 case "$target" in
5973 *-cygwin*)
5974 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' ;;
5975 esac
5976
5977 # If we're not building GCC, don't discard standard headers.
5978 if test -d ${srcdir}/gcc; then
5979 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5980
5981 if test "${build}" != "${host}"; then
5982 # On Canadian crosses, CC_FOR_TARGET will have already been set
5983 # by `configure', so we won't have an opportunity to add -Bgcc/
5984 # to it. This is right: we don't want to search that directory
5985 # for binaries, but we want the header files in there, so add
5986 # them explicitly.
5987 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5988
5989 # Someone might think of using the pre-installed headers on
5990 # Canadian crosses, in case the installed compiler is not fully
5991 # compatible with the compiler being built. In this case, it
5992 # would be better to flag an error than risking having
5993 # incompatible object files being constructed. We can't
5994 # guarantee that an error will be flagged, but let's hope the
5995 # compiler will do it, when presented with incompatible header
5996 # files.
5997 fi
5998 fi
5999
6000 case "${target}-${is_cross_compiler}" in
6001 i[3456789]86-*-linux*-no)
6002 # Here host == target, so we don't need to build gcc,
6003 # so we don't want to discard standard headers.
6004 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6005 ;;
6006 *)
6007 # If we're building newlib, use its generic headers last, but search
6008 # for any libc-related directories first (so make it the last -B
6009 # switch).
6010 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6011
6012 # If we're building libgloss, find the startup file, simulator library
6013 # and linker script.
6014 case " $target_configdirs " in
6015 *" libgloss "*)
6016 # Look for startup file, simulator library and maybe linker script.
6017 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6018 # Look for libnosys.a in case the target needs it.
6019 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6020 # Most targets have the linker script in the source directory.
6021 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6022 ;;
6023 esac
6024 ;;
6025 esac
6026 ;;
6027 esac
6028 ;;
6029 esac
6030 case "$target" in
6031 *-mingw*)
6032 # Can't be handled as Cygwin above since Mingw does not use newlib.
6033 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' ;;
6034 esac
6035
6036 # Allow the user to override the flags for
6037 # our build compiler if desired.
6038 if test x"${build}" = x"${host}" ; then
6039 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6040 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6041 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6042 fi
6043
6044 # On Canadian crosses, we'll be searching the right directories for
6045 # the previously-installed cross compiler, so don't bother to add
6046 # flags for directories within the install tree of the compiler
6047 # being built; programs in there won't even run.
6048 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6049 # Search for pre-installed headers if nothing else fits.
6050 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6051 fi
6052
6053 if test "x${use_gnu_ld}" = x &&
6054 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6055 # Arrange for us to find uninstalled linker scripts.
6056 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6057 fi
6058
6059 # Search for other target-specific linker scripts and such.
6060 case "${target}" in
6061 mep*)
6062 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6063 ;;
6064 esac
6065
6066 # Makefile fragments.
6067 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6068 do
6069 eval fragval=\$$frag
6070 if test $fragval != /dev/null; then
6071 eval $frag=${srcdir}/$fragval
6072 fi
6073 done
6074
6075
6076
6077
6078
6079 # Miscellanea: directories, flags, etc.
6080
6081
6082
6083
6084
6085
6086
6087
6088 # Build module lists & subconfigure args.
6089
6090
6091
6092 # Host module lists & subconfigure args.
6093
6094
6095
6096 # Target module lists & subconfigure args.
6097
6098
6099
6100 # Build tools.
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 # Generate default definitions for YACC, M4, LEX and other programs that run
6119 # on the build machine. These are used if the Makefile can't locate these
6120 # programs in objdir.
6121 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6122
6123 for ac_prog in 'bison -y' byacc yacc
6124 do
6125 # Extract the first word of "$ac_prog", so it can be a program name with args.
6126 set dummy $ac_prog; ac_word=$2
6127 echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6129 if test "${ac_cv_prog_YACC+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 if test -n "$YACC"; then
6133 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_YACC="$ac_prog"
6143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6145 fi
6146 done
6147 done
6148
6149 fi
6150 fi
6151 YACC=$ac_cv_prog_YACC
6152 if test -n "$YACC"; then
6153 echo "$as_me:$LINENO: result: $YACC" >&5
6154 echo "${ECHO_T}$YACC" >&6
6155 else
6156 echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6
6158 fi
6159
6160 test -n "$YACC" && break
6161 done
6162 test -n "$YACC" || YACC="$MISSING bison -y"
6163
6164 case " $build_configdirs " in
6165 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6166 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6167 esac
6168
6169 for ac_prog in bison
6170 do
6171 # Extract the first word of "$ac_prog", so it can be a program name with args.
6172 set dummy $ac_prog; ac_word=$2
6173 echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6175 if test "${ac_cv_prog_BISON+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178 if test -n "$BISON"; then
6179 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_BISON="$ac_prog"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192 done
6193 done
6194
6195 fi
6196 fi
6197 BISON=$ac_cv_prog_BISON
6198 if test -n "$BISON"; then
6199 echo "$as_me:$LINENO: result: $BISON" >&5
6200 echo "${ECHO_T}$BISON" >&6
6201 else
6202 echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6
6204 fi
6205
6206 test -n "$BISON" && break
6207 done
6208 test -n "$BISON" || BISON="$MISSING bison"
6209
6210 case " $build_configdirs " in
6211 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6212 esac
6213
6214 for ac_prog in gm4 gnum4 m4
6215 do
6216 # Extract the first word of "$ac_prog", so it can be a program name with args.
6217 set dummy $ac_prog; ac_word=$2
6218 echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220 if test "${ac_cv_prog_M4+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 if test -n "$M4"; then
6224 ac_cv_prog_M4="$M4" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_M4="$ac_prog"
6234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6236 fi
6237 done
6238 done
6239
6240 fi
6241 fi
6242 M4=$ac_cv_prog_M4
6243 if test -n "$M4"; then
6244 echo "$as_me:$LINENO: result: $M4" >&5
6245 echo "${ECHO_T}$M4" >&6
6246 else
6247 echo "$as_me:$LINENO: result: no" >&5
6248 echo "${ECHO_T}no" >&6
6249 fi
6250
6251 test -n "$M4" && break
6252 done
6253 test -n "$M4" || M4="$MISSING m4"
6254
6255 case " $build_configdirs " in
6256 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6257 esac
6258
6259 for ac_prog in flex lex
6260 do
6261 # Extract the first word of "$ac_prog", so it can be a program name with args.
6262 set dummy $ac_prog; ac_word=$2
6263 echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6265 if test "${ac_cv_prog_LEX+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 if test -n "$LEX"; then
6269 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6273 do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278 ac_cv_prog_LEX="$ac_prog"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6281 fi
6282 done
6283 done
6284
6285 fi
6286 fi
6287 LEX=$ac_cv_prog_LEX
6288 if test -n "$LEX"; then
6289 echo "$as_me:$LINENO: result: $LEX" >&5
6290 echo "${ECHO_T}$LEX" >&6
6291 else
6292 echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6
6294 fi
6295
6296 test -n "$LEX" && break
6297 done
6298 test -n "$LEX" || LEX="$MISSING flex"
6299
6300 case " $build_configdirs " in
6301 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6302 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6303 esac
6304
6305 for ac_prog in flex
6306 do
6307 # Extract the first word of "$ac_prog", so it can be a program name with args.
6308 set dummy $ac_prog; ac_word=$2
6309 echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6311 if test "${ac_cv_prog_FLEX+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314 if test -n "$FLEX"; then
6315 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_FLEX="$ac_prog"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6327 fi
6328 done
6329 done
6330
6331 fi
6332 fi
6333 FLEX=$ac_cv_prog_FLEX
6334 if test -n "$FLEX"; then
6335 echo "$as_me:$LINENO: result: $FLEX" >&5
6336 echo "${ECHO_T}$FLEX" >&6
6337 else
6338 echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6
6340 fi
6341
6342 test -n "$FLEX" && break
6343 done
6344 test -n "$FLEX" || FLEX="$MISSING flex"
6345
6346 case " $build_configdirs " in
6347 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6348 esac
6349
6350 for ac_prog in makeinfo
6351 do
6352 # Extract the first word of "$ac_prog", so it can be a program name with args.
6353 set dummy $ac_prog; ac_word=$2
6354 echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6356 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359 if test -n "$MAKEINFO"; then
6360 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_MAKEINFO="$ac_prog"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6372 fi
6373 done
6374 done
6375
6376 fi
6377 fi
6378 MAKEINFO=$ac_cv_prog_MAKEINFO
6379 if test -n "$MAKEINFO"; then
6380 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6381 echo "${ECHO_T}$MAKEINFO" >&6
6382 else
6383 echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6
6385 fi
6386
6387 test -n "$MAKEINFO" && break
6388 done
6389 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6390
6391 case " $build_configdirs " in
6392 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6393 *)
6394
6395 # For an installed makeinfo, we require it to be from texinfo 4.6 or
6396 # higher, else we use the "missing" dummy.
6397 if ${MAKEINFO} --version \
6398 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
6399 :
6400 else
6401 MAKEINFO="$MISSING makeinfo"
6402 fi
6403 ;;
6404
6405 esac
6406
6407 # FIXME: expect and dejagnu may become build tools?
6408
6409 for ac_prog in expect
6410 do
6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
6412 set dummy $ac_prog; ac_word=$2
6413 echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6415 if test "${ac_cv_prog_EXPECT+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418 if test -n "$EXPECT"; then
6419 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_EXPECT="$ac_prog"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432 done
6433 done
6434
6435 fi
6436 fi
6437 EXPECT=$ac_cv_prog_EXPECT
6438 if test -n "$EXPECT"; then
6439 echo "$as_me:$LINENO: result: $EXPECT" >&5
6440 echo "${ECHO_T}$EXPECT" >&6
6441 else
6442 echo "$as_me:$LINENO: result: no" >&5
6443 echo "${ECHO_T}no" >&6
6444 fi
6445
6446 test -n "$EXPECT" && break
6447 done
6448 test -n "$EXPECT" || EXPECT="expect"
6449
6450 case " $configdirs " in
6451 *" expect "*)
6452 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6453 ;;
6454 esac
6455
6456 for ac_prog in runtest
6457 do
6458 # Extract the first word of "$ac_prog", so it can be a program name with args.
6459 set dummy $ac_prog; ac_word=$2
6460 echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6462 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 if test -n "$RUNTEST"; then
6466 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_RUNTEST="$ac_prog"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479 done
6480 done
6481
6482 fi
6483 fi
6484 RUNTEST=$ac_cv_prog_RUNTEST
6485 if test -n "$RUNTEST"; then
6486 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6487 echo "${ECHO_T}$RUNTEST" >&6
6488 else
6489 echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6
6491 fi
6492
6493 test -n "$RUNTEST" && break
6494 done
6495 test -n "$RUNTEST" || RUNTEST="runtest"
6496
6497 case " $configdirs " in
6498 *" dejagnu "*)
6499 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6500 ;;
6501 esac
6502
6503
6504 # Host tools.
6505 ncn_tool_prefix=
6506 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6507 ncn_target_tool_prefix=
6508 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6509
6510
6511
6512 if test -n "$AR"; then
6513 ac_cv_prog_AR=$AR
6514 elif test -n "$ac_cv_prog_AR"; then
6515 AR=$ac_cv_prog_AR
6516 fi
6517
6518 if test -n "$ac_cv_prog_AR"; then
6519 for ncn_progname in ar; do
6520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6521 set dummy ${ncn_progname}; ac_word=$2
6522 echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6524 if test "${ac_cv_prog_AR+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 if test -n "$AR"; then
6528 ac_cv_prog_AR="$AR" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_AR="${ncn_progname}"
6538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541 done
6542 done
6543
6544 fi
6545 fi
6546 AR=$ac_cv_prog_AR
6547 if test -n "$AR"; then
6548 echo "$as_me:$LINENO: result: $AR" >&5
6549 echo "${ECHO_T}$AR" >&6
6550 else
6551 echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6
6553 fi
6554
6555 done
6556 fi
6557
6558 for ncn_progname in ar; do
6559 if test -n "$ncn_tool_prefix"; then
6560 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6561 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6562 echo "$as_me:$LINENO: checking for $ac_word" >&5
6563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6564 if test "${ac_cv_prog_AR+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567 if test -n "$AR"; then
6568 ac_cv_prog_AR="$AR" # Let the user override the test.
6569 else
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6572 do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581 done
6582 done
6583
6584 fi
6585 fi
6586 AR=$ac_cv_prog_AR
6587 if test -n "$AR"; then
6588 echo "$as_me:$LINENO: result: $AR" >&5
6589 echo "${ECHO_T}$AR" >&6
6590 else
6591 echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6
6593 fi
6594
6595 fi
6596 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6598 set dummy ${ncn_progname}; ac_word=$2
6599 echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6601 if test "${ac_cv_prog_AR+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 if test -n "$AR"; then
6605 ac_cv_prog_AR="$AR" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614 ac_cv_prog_AR="${ncn_progname}"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618 done
6619 done
6620
6621 fi
6622 fi
6623 AR=$ac_cv_prog_AR
6624 if test -n "$AR"; then
6625 echo "$as_me:$LINENO: result: $AR" >&5
6626 echo "${ECHO_T}$AR" >&6
6627 else
6628 echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6
6630 fi
6631
6632 fi
6633 test -n "$ac_cv_prog_AR" && break
6634 done
6635
6636 if test -z "$ac_cv_prog_AR" ; then
6637 set dummy ar
6638 if test $build = $host ; then
6639 AR="$2"
6640 else
6641 AR="${ncn_tool_prefix}$2"
6642 fi
6643 fi
6644
6645
6646
6647 if test -n "$AS"; then
6648 ac_cv_prog_AS=$AS
6649 elif test -n "$ac_cv_prog_AS"; then
6650 AS=$ac_cv_prog_AS
6651 fi
6652
6653 if test -n "$ac_cv_prog_AS"; then
6654 for ncn_progname in as; do
6655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6656 set dummy ${ncn_progname}; ac_word=$2
6657 echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6659 if test "${ac_cv_prog_AS+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 if test -n "$AS"; then
6663 ac_cv_prog_AS="$AS" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672 ac_cv_prog_AS="${ncn_progname}"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676 done
6677 done
6678
6679 fi
6680 fi
6681 AS=$ac_cv_prog_AS
6682 if test -n "$AS"; then
6683 echo "$as_me:$LINENO: result: $AS" >&5
6684 echo "${ECHO_T}$AS" >&6
6685 else
6686 echo "$as_me:$LINENO: result: no" >&5
6687 echo "${ECHO_T}no" >&6
6688 fi
6689
6690 done
6691 fi
6692
6693 for ncn_progname in as; do
6694 if test -n "$ncn_tool_prefix"; then
6695 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6696 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6697 echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6699 if test "${ac_cv_prog_AS+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702 if test -n "$AS"; then
6703 ac_cv_prog_AS="$AS" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716 done
6717 done
6718
6719 fi
6720 fi
6721 AS=$ac_cv_prog_AS
6722 if test -n "$AS"; then
6723 echo "$as_me:$LINENO: result: $AS" >&5
6724 echo "${ECHO_T}$AS" >&6
6725 else
6726 echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6
6728 fi
6729
6730 fi
6731 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6733 set dummy ${ncn_progname}; ac_word=$2
6734 echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6736 if test "${ac_cv_prog_AS+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739 if test -n "$AS"; then
6740 ac_cv_prog_AS="$AS" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_AS="${ncn_progname}"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753 done
6754 done
6755
6756 fi
6757 fi
6758 AS=$ac_cv_prog_AS
6759 if test -n "$AS"; then
6760 echo "$as_me:$LINENO: result: $AS" >&5
6761 echo "${ECHO_T}$AS" >&6
6762 else
6763 echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6
6765 fi
6766
6767 fi
6768 test -n "$ac_cv_prog_AS" && break
6769 done
6770
6771 if test -z "$ac_cv_prog_AS" ; then
6772 set dummy as
6773 if test $build = $host ; then
6774 AS="$2"
6775 else
6776 AS="${ncn_tool_prefix}$2"
6777 fi
6778 fi
6779
6780
6781
6782 if test -n "$DLLTOOL"; then
6783 ac_cv_prog_DLLTOOL=$DLLTOOL
6784 elif test -n "$ac_cv_prog_DLLTOOL"; then
6785 DLLTOOL=$ac_cv_prog_DLLTOOL
6786 fi
6787
6788 if test -n "$ac_cv_prog_DLLTOOL"; then
6789 for ncn_progname in dlltool; do
6790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6791 set dummy ${ncn_progname}; ac_word=$2
6792 echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6794 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 if test -n "$DLLTOOL"; then
6798 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_DLLTOOL="${ncn_progname}"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811 done
6812 done
6813
6814 fi
6815 fi
6816 DLLTOOL=$ac_cv_prog_DLLTOOL
6817 if test -n "$DLLTOOL"; then
6818 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6819 echo "${ECHO_T}$DLLTOOL" >&6
6820 else
6821 echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6
6823 fi
6824
6825 done
6826 fi
6827
6828 for ncn_progname in dlltool; do
6829 if test -n "$ncn_tool_prefix"; then
6830 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6831 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6832 echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6834 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 if test -n "$DLLTOOL"; then
6838 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853
6854 fi
6855 fi
6856 DLLTOOL=$ac_cv_prog_DLLTOOL
6857 if test -n "$DLLTOOL"; then
6858 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6859 echo "${ECHO_T}$DLLTOOL" >&6
6860 else
6861 echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6
6863 fi
6864
6865 fi
6866 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6868 set dummy ${ncn_progname}; ac_word=$2
6869 echo "$as_me:$LINENO: checking for $ac_word" >&5
6870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6871 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874 if test -n "$DLLTOOL"; then
6875 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884 ac_cv_prog_DLLTOOL="${ncn_progname}"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6887 fi
6888 done
6889 done
6890
6891 fi
6892 fi
6893 DLLTOOL=$ac_cv_prog_DLLTOOL
6894 if test -n "$DLLTOOL"; then
6895 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6896 echo "${ECHO_T}$DLLTOOL" >&6
6897 else
6898 echo "$as_me:$LINENO: result: no" >&5
6899 echo "${ECHO_T}no" >&6
6900 fi
6901
6902 fi
6903 test -n "$ac_cv_prog_DLLTOOL" && break
6904 done
6905
6906 if test -z "$ac_cv_prog_DLLTOOL" ; then
6907 set dummy dlltool
6908 if test $build = $host ; then
6909 DLLTOOL="$2"
6910 else
6911 DLLTOOL="${ncn_tool_prefix}$2"
6912 fi
6913 fi
6914
6915
6916
6917 if test -n "$LD"; then
6918 ac_cv_prog_LD=$LD
6919 elif test -n "$ac_cv_prog_LD"; then
6920 LD=$ac_cv_prog_LD
6921 fi
6922
6923 if test -n "$ac_cv_prog_LD"; then
6924 for ncn_progname in ld; do
6925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6926 set dummy ${ncn_progname}; ac_word=$2
6927 echo "$as_me:$LINENO: checking for $ac_word" >&5
6928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6929 if test "${ac_cv_prog_LD+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 if test -n "$LD"; then
6933 ac_cv_prog_LD="$LD" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_LD="${ncn_progname}"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946 done
6947 done
6948
6949 fi
6950 fi
6951 LD=$ac_cv_prog_LD
6952 if test -n "$LD"; then
6953 echo "$as_me:$LINENO: result: $LD" >&5
6954 echo "${ECHO_T}$LD" >&6
6955 else
6956 echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6
6958 fi
6959
6960 done
6961 fi
6962
6963 for ncn_progname in ld; do
6964 if test -n "$ncn_tool_prefix"; then
6965 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6966 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6967 echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6969 if test "${ac_cv_prog_LD+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972 if test -n "$LD"; then
6973 ac_cv_prog_LD="$LD" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986 done
6987 done
6988
6989 fi
6990 fi
6991 LD=$ac_cv_prog_LD
6992 if test -n "$LD"; then
6993 echo "$as_me:$LINENO: result: $LD" >&5
6994 echo "${ECHO_T}$LD" >&6
6995 else
6996 echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6
6998 fi
6999
7000 fi
7001 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7003 set dummy ${ncn_progname}; ac_word=$2
7004 echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7006 if test "${ac_cv_prog_LD+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009 if test -n "$LD"; then
7010 ac_cv_prog_LD="$LD" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019 ac_cv_prog_LD="${ncn_progname}"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023 done
7024 done
7025
7026 fi
7027 fi
7028 LD=$ac_cv_prog_LD
7029 if test -n "$LD"; then
7030 echo "$as_me:$LINENO: result: $LD" >&5
7031 echo "${ECHO_T}$LD" >&6
7032 else
7033 echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6
7035 fi
7036
7037 fi
7038 test -n "$ac_cv_prog_LD" && break
7039 done
7040
7041 if test -z "$ac_cv_prog_LD" ; then
7042 set dummy ld
7043 if test $build = $host ; then
7044 LD="$2"
7045 else
7046 LD="${ncn_tool_prefix}$2"
7047 fi
7048 fi
7049
7050
7051
7052 if test -n "$LIPO"; then
7053 ac_cv_prog_LIPO=$LIPO
7054 elif test -n "$ac_cv_prog_LIPO"; then
7055 LIPO=$ac_cv_prog_LIPO
7056 fi
7057
7058 if test -n "$ac_cv_prog_LIPO"; then
7059 for ncn_progname in lipo; do
7060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7061 set dummy ${ncn_progname}; ac_word=$2
7062 echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7064 if test "${ac_cv_prog_LIPO+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 if test -n "$LIPO"; then
7068 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_LIPO="${ncn_progname}"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081 done
7082 done
7083
7084 fi
7085 fi
7086 LIPO=$ac_cv_prog_LIPO
7087 if test -n "$LIPO"; then
7088 echo "$as_me:$LINENO: result: $LIPO" >&5
7089 echo "${ECHO_T}$LIPO" >&6
7090 else
7091 echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6
7093 fi
7094
7095 done
7096 fi
7097
7098 for ncn_progname in lipo; do
7099 if test -n "$ncn_tool_prefix"; then
7100 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7101 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7102 echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7104 if test "${ac_cv_prog_LIPO+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 if test -n "$LIPO"; then
7108 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7120 fi
7121 done
7122 done
7123
7124 fi
7125 fi
7126 LIPO=$ac_cv_prog_LIPO
7127 if test -n "$LIPO"; then
7128 echo "$as_me:$LINENO: result: $LIPO" >&5
7129 echo "${ECHO_T}$LIPO" >&6
7130 else
7131 echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6
7133 fi
7134
7135 fi
7136 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7138 set dummy ${ncn_progname}; ac_word=$2
7139 echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7141 if test "${ac_cv_prog_LIPO+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 if test -n "$LIPO"; then
7145 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_LIPO="${ncn_progname}"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160
7161 fi
7162 fi
7163 LIPO=$ac_cv_prog_LIPO
7164 if test -n "$LIPO"; then
7165 echo "$as_me:$LINENO: result: $LIPO" >&5
7166 echo "${ECHO_T}$LIPO" >&6
7167 else
7168 echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7170 fi
7171
7172 fi
7173 test -n "$ac_cv_prog_LIPO" && break
7174 done
7175
7176 if test -z "$ac_cv_prog_LIPO" ; then
7177 set dummy lipo
7178 if test $build = $host ; then
7179 LIPO="$2"
7180 else
7181 LIPO="${ncn_tool_prefix}$2"
7182 fi
7183 fi
7184
7185
7186
7187 if test -n "$NM"; then
7188 ac_cv_prog_NM=$NM
7189 elif test -n "$ac_cv_prog_NM"; then
7190 NM=$ac_cv_prog_NM
7191 fi
7192
7193 if test -n "$ac_cv_prog_NM"; then
7194 for ncn_progname in nm; do
7195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7196 set dummy ${ncn_progname}; ac_word=$2
7197 echo "$as_me:$LINENO: checking for $ac_word" >&5
7198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7199 if test "${ac_cv_prog_NM+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 if test -n "$NM"; then
7203 ac_cv_prog_NM="$NM" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_NM="${ncn_progname}"
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216 done
7217 done
7218
7219 fi
7220 fi
7221 NM=$ac_cv_prog_NM
7222 if test -n "$NM"; then
7223 echo "$as_me:$LINENO: result: $NM" >&5
7224 echo "${ECHO_T}$NM" >&6
7225 else
7226 echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6
7228 fi
7229
7230 done
7231 fi
7232
7233 for ncn_progname in nm; do
7234 if test -n "$ncn_tool_prefix"; then
7235 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7236 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7237 echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7239 if test "${ac_cv_prog_NM+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 if test -n "$NM"; then
7243 ac_cv_prog_NM="$NM" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258
7259 fi
7260 fi
7261 NM=$ac_cv_prog_NM
7262 if test -n "$NM"; then
7263 echo "$as_me:$LINENO: result: $NM" >&5
7264 echo "${ECHO_T}$NM" >&6
7265 else
7266 echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6
7268 fi
7269
7270 fi
7271 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7273 set dummy ${ncn_progname}; ac_word=$2
7274 echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7276 if test "${ac_cv_prog_NM+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 if test -n "$NM"; then
7280 ac_cv_prog_NM="$NM" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_NM="${ncn_progname}"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7292 fi
7293 done
7294 done
7295
7296 fi
7297 fi
7298 NM=$ac_cv_prog_NM
7299 if test -n "$NM"; then
7300 echo "$as_me:$LINENO: result: $NM" >&5
7301 echo "${ECHO_T}$NM" >&6
7302 else
7303 echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6
7305 fi
7306
7307 fi
7308 test -n "$ac_cv_prog_NM" && break
7309 done
7310
7311 if test -z "$ac_cv_prog_NM" ; then
7312 set dummy nm
7313 if test $build = $host ; then
7314 NM="$2"
7315 else
7316 NM="${ncn_tool_prefix}$2"
7317 fi
7318 fi
7319
7320
7321
7322 if test -n "$RANLIB"; then
7323 ac_cv_prog_RANLIB=$RANLIB
7324 elif test -n "$ac_cv_prog_RANLIB"; then
7325 RANLIB=$ac_cv_prog_RANLIB
7326 fi
7327
7328 if test -n "$ac_cv_prog_RANLIB"; then
7329 for ncn_progname in ranlib; do
7330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7331 set dummy ${ncn_progname}; ac_word=$2
7332 echo "$as_me:$LINENO: checking for $ac_word" >&5
7333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7334 if test "${ac_cv_prog_RANLIB+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337 if test -n "$RANLIB"; then
7338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_RANLIB="${ncn_progname}"
7348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 break 2
7350 fi
7351 done
7352 done
7353
7354 fi
7355 fi
7356 RANLIB=$ac_cv_prog_RANLIB
7357 if test -n "$RANLIB"; then
7358 echo "$as_me:$LINENO: result: $RANLIB" >&5
7359 echo "${ECHO_T}$RANLIB" >&6
7360 else
7361 echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6
7363 fi
7364
7365 done
7366 fi
7367
7368 for ncn_progname in ranlib; do
7369 if test -n "$ncn_tool_prefix"; then
7370 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7371 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7372 echo "$as_me:$LINENO: checking for $ac_word" >&5
7373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7374 if test "${ac_cv_prog_RANLIB+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377 if test -n "$RANLIB"; then
7378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391 done
7392 done
7393
7394 fi
7395 fi
7396 RANLIB=$ac_cv_prog_RANLIB
7397 if test -n "$RANLIB"; then
7398 echo "$as_me:$LINENO: result: $RANLIB" >&5
7399 echo "${ECHO_T}$RANLIB" >&6
7400 else
7401 echo "$as_me:$LINENO: result: no" >&5
7402 echo "${ECHO_T}no" >&6
7403 fi
7404
7405 fi
7406 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7408 set dummy ${ncn_progname}; ac_word=$2
7409 echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7411 if test "${ac_cv_prog_RANLIB+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 if test -n "$RANLIB"; then
7415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424 ac_cv_prog_RANLIB="${ncn_progname}"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7427 fi
7428 done
7429 done
7430
7431 fi
7432 fi
7433 RANLIB=$ac_cv_prog_RANLIB
7434 if test -n "$RANLIB"; then
7435 echo "$as_me:$LINENO: result: $RANLIB" >&5
7436 echo "${ECHO_T}$RANLIB" >&6
7437 else
7438 echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6
7440 fi
7441
7442 fi
7443 test -n "$ac_cv_prog_RANLIB" && break
7444 done
7445
7446 if test -z "$ac_cv_prog_RANLIB" ; then
7447 RANLIB=":"
7448 fi
7449
7450
7451
7452 if test -n "$STRIP"; then
7453 ac_cv_prog_STRIP=$STRIP
7454 elif test -n "$ac_cv_prog_STRIP"; then
7455 STRIP=$ac_cv_prog_STRIP
7456 fi
7457
7458 if test -n "$ac_cv_prog_STRIP"; then
7459 for ncn_progname in strip; do
7460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7461 set dummy ${ncn_progname}; ac_word=$2
7462 echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7464 if test "${ac_cv_prog_STRIP+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467 if test -n "$STRIP"; then
7468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_STRIP="${ncn_progname}"
7478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481 done
7482 done
7483
7484 fi
7485 fi
7486 STRIP=$ac_cv_prog_STRIP
7487 if test -n "$STRIP"; then
7488 echo "$as_me:$LINENO: result: $STRIP" >&5
7489 echo "${ECHO_T}$STRIP" >&6
7490 else
7491 echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6
7493 fi
7494
7495 done
7496 fi
7497
7498 for ncn_progname in strip; do
7499 if test -n "$ncn_tool_prefix"; then
7500 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7501 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7502 echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7504 if test "${ac_cv_prog_STRIP+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507 if test -n "$STRIP"; then
7508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7520 fi
7521 done
7522 done
7523
7524 fi
7525 fi
7526 STRIP=$ac_cv_prog_STRIP
7527 if test -n "$STRIP"; then
7528 echo "$as_me:$LINENO: result: $STRIP" >&5
7529 echo "${ECHO_T}$STRIP" >&6
7530 else
7531 echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7533 fi
7534
7535 fi
7536 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7538 set dummy ${ncn_progname}; ac_word=$2
7539 echo "$as_me:$LINENO: checking for $ac_word" >&5
7540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7541 if test "${ac_cv_prog_STRIP+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544 if test -n "$STRIP"; then
7545 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_STRIP="${ncn_progname}"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558 done
7559 done
7560
7561 fi
7562 fi
7563 STRIP=$ac_cv_prog_STRIP
7564 if test -n "$STRIP"; then
7565 echo "$as_me:$LINENO: result: $STRIP" >&5
7566 echo "${ECHO_T}$STRIP" >&6
7567 else
7568 echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6
7570 fi
7571
7572 fi
7573 test -n "$ac_cv_prog_STRIP" && break
7574 done
7575
7576 if test -z "$ac_cv_prog_STRIP" ; then
7577 STRIP=":"
7578 fi
7579
7580
7581
7582 if test -n "$WINDRES"; then
7583 ac_cv_prog_WINDRES=$WINDRES
7584 elif test -n "$ac_cv_prog_WINDRES"; then
7585 WINDRES=$ac_cv_prog_WINDRES
7586 fi
7587
7588 if test -n "$ac_cv_prog_WINDRES"; then
7589 for ncn_progname in windres; do
7590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7591 set dummy ${ncn_progname}; ac_word=$2
7592 echo "$as_me:$LINENO: checking for $ac_word" >&5
7593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7594 if test "${ac_cv_prog_WINDRES+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597 if test -n "$WINDRES"; then
7598 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607 ac_cv_prog_WINDRES="${ncn_progname}"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611 done
7612 done
7613
7614 fi
7615 fi
7616 WINDRES=$ac_cv_prog_WINDRES
7617 if test -n "$WINDRES"; then
7618 echo "$as_me:$LINENO: result: $WINDRES" >&5
7619 echo "${ECHO_T}$WINDRES" >&6
7620 else
7621 echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6
7623 fi
7624
7625 done
7626 fi
7627
7628 for ncn_progname in windres; do
7629 if test -n "$ncn_tool_prefix"; then
7630 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7631 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7632 echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7634 if test "${ac_cv_prog_WINDRES+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 if test -n "$WINDRES"; then
7638 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7650 fi
7651 done
7652 done
7653
7654 fi
7655 fi
7656 WINDRES=$ac_cv_prog_WINDRES
7657 if test -n "$WINDRES"; then
7658 echo "$as_me:$LINENO: result: $WINDRES" >&5
7659 echo "${ECHO_T}$WINDRES" >&6
7660 else
7661 echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6
7663 fi
7664
7665 fi
7666 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7668 set dummy ${ncn_progname}; ac_word=$2
7669 echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7671 if test "${ac_cv_prog_WINDRES+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674 if test -n "$WINDRES"; then
7675 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_WINDRES="${ncn_progname}"
7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688 done
7689 done
7690
7691 fi
7692 fi
7693 WINDRES=$ac_cv_prog_WINDRES
7694 if test -n "$WINDRES"; then
7695 echo "$as_me:$LINENO: result: $WINDRES" >&5
7696 echo "${ECHO_T}$WINDRES" >&6
7697 else
7698 echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6
7700 fi
7701
7702 fi
7703 test -n "$ac_cv_prog_WINDRES" && break
7704 done
7705
7706 if test -z "$ac_cv_prog_WINDRES" ; then
7707 set dummy windres
7708 if test $build = $host ; then
7709 WINDRES="$2"
7710 else
7711 WINDRES="${ncn_tool_prefix}$2"
7712 fi
7713 fi
7714
7715
7716
7717 if test -n "$WINDMC"; then
7718 ac_cv_prog_WINDMC=$WINDMC
7719 elif test -n "$ac_cv_prog_WINDMC"; then
7720 WINDMC=$ac_cv_prog_WINDMC
7721 fi
7722
7723 if test -n "$ac_cv_prog_WINDMC"; then
7724 for ncn_progname in windmc; do
7725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7726 set dummy ${ncn_progname}; ac_word=$2
7727 echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7729 if test "${ac_cv_prog_WINDMC+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732 if test -n "$WINDMC"; then
7733 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_WINDMC="${ncn_progname}"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746 done
7747 done
7748
7749 fi
7750 fi
7751 WINDMC=$ac_cv_prog_WINDMC
7752 if test -n "$WINDMC"; then
7753 echo "$as_me:$LINENO: result: $WINDMC" >&5
7754 echo "${ECHO_T}$WINDMC" >&6
7755 else
7756 echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6
7758 fi
7759
7760 done
7761 fi
7762
7763 for ncn_progname in windmc; do
7764 if test -n "$ncn_tool_prefix"; then
7765 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7766 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7767 echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7769 if test "${ac_cv_prog_WINDMC+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772 if test -n "$WINDMC"; then
7773 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786 done
7787 done
7788
7789 fi
7790 fi
7791 WINDMC=$ac_cv_prog_WINDMC
7792 if test -n "$WINDMC"; then
7793 echo "$as_me:$LINENO: result: $WINDMC" >&5
7794 echo "${ECHO_T}$WINDMC" >&6
7795 else
7796 echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6
7798 fi
7799
7800 fi
7801 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7803 set dummy ${ncn_progname}; ac_word=$2
7804 echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7806 if test "${ac_cv_prog_WINDMC+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809 if test -n "$WINDMC"; then
7810 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819 ac_cv_prog_WINDMC="${ncn_progname}"
7820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7822 fi
7823 done
7824 done
7825
7826 fi
7827 fi
7828 WINDMC=$ac_cv_prog_WINDMC
7829 if test -n "$WINDMC"; then
7830 echo "$as_me:$LINENO: result: $WINDMC" >&5
7831 echo "${ECHO_T}$WINDMC" >&6
7832 else
7833 echo "$as_me:$LINENO: result: no" >&5
7834 echo "${ECHO_T}no" >&6
7835 fi
7836
7837 fi
7838 test -n "$ac_cv_prog_WINDMC" && break
7839 done
7840
7841 if test -z "$ac_cv_prog_WINDMC" ; then
7842 set dummy windmc
7843 if test $build = $host ; then
7844 WINDMC="$2"
7845 else
7846 WINDMC="${ncn_tool_prefix}$2"
7847 fi
7848 fi
7849
7850
7851
7852 if test -n "$OBJCOPY"; then
7853 ac_cv_prog_OBJCOPY=$OBJCOPY
7854 elif test -n "$ac_cv_prog_OBJCOPY"; then
7855 OBJCOPY=$ac_cv_prog_OBJCOPY
7856 fi
7857
7858 if test -n "$ac_cv_prog_OBJCOPY"; then
7859 for ncn_progname in objcopy; do
7860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7861 set dummy ${ncn_progname}; ac_word=$2
7862 echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7864 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867 if test -n "$OBJCOPY"; then
7868 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7872 do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877 ac_cv_prog_OBJCOPY="${ncn_progname}"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881 done
7882 done
7883
7884 fi
7885 fi
7886 OBJCOPY=$ac_cv_prog_OBJCOPY
7887 if test -n "$OBJCOPY"; then
7888 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7889 echo "${ECHO_T}$OBJCOPY" >&6
7890 else
7891 echo "$as_me:$LINENO: result: no" >&5
7892 echo "${ECHO_T}no" >&6
7893 fi
7894
7895 done
7896 fi
7897
7898 for ncn_progname in objcopy; do
7899 if test -n "$ncn_tool_prefix"; then
7900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7901 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7902 echo "$as_me:$LINENO: checking for $ac_word" >&5
7903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7904 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907 if test -n "$OBJCOPY"; then
7908 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921 done
7922 done
7923
7924 fi
7925 fi
7926 OBJCOPY=$ac_cv_prog_OBJCOPY
7927 if test -n "$OBJCOPY"; then
7928 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7929 echo "${ECHO_T}$OBJCOPY" >&6
7930 else
7931 echo "$as_me:$LINENO: result: no" >&5
7932 echo "${ECHO_T}no" >&6
7933 fi
7934
7935 fi
7936 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7938 set dummy ${ncn_progname}; ac_word=$2
7939 echo "$as_me:$LINENO: checking for $ac_word" >&5
7940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7941 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944 if test -n "$OBJCOPY"; then
7945 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_OBJCOPY="${ncn_progname}"
7955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958 done
7959 done
7960
7961 fi
7962 fi
7963 OBJCOPY=$ac_cv_prog_OBJCOPY
7964 if test -n "$OBJCOPY"; then
7965 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7966 echo "${ECHO_T}$OBJCOPY" >&6
7967 else
7968 echo "$as_me:$LINENO: result: no" >&5
7969 echo "${ECHO_T}no" >&6
7970 fi
7971
7972 fi
7973 test -n "$ac_cv_prog_OBJCOPY" && break
7974 done
7975
7976 if test -z "$ac_cv_prog_OBJCOPY" ; then
7977 set dummy objcopy
7978 if test $build = $host ; then
7979 OBJCOPY="$2"
7980 else
7981 OBJCOPY="${ncn_tool_prefix}$2"
7982 fi
7983 fi
7984
7985
7986
7987 if test -n "$OBJDUMP"; then
7988 ac_cv_prog_OBJDUMP=$OBJDUMP
7989 elif test -n "$ac_cv_prog_OBJDUMP"; then
7990 OBJDUMP=$ac_cv_prog_OBJDUMP
7991 fi
7992
7993 if test -n "$ac_cv_prog_OBJDUMP"; then
7994 for ncn_progname in objdump; do
7995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7996 set dummy ${ncn_progname}; ac_word=$2
7997 echo "$as_me:$LINENO: checking for $ac_word" >&5
7998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7999 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002 if test -n "$OBJDUMP"; then
8003 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_OBJDUMP="${ncn_progname}"
8013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8015 fi
8016 done
8017 done
8018
8019 fi
8020 fi
8021 OBJDUMP=$ac_cv_prog_OBJDUMP
8022 if test -n "$OBJDUMP"; then
8023 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8024 echo "${ECHO_T}$OBJDUMP" >&6
8025 else
8026 echo "$as_me:$LINENO: result: no" >&5
8027 echo "${ECHO_T}no" >&6
8028 fi
8029
8030 done
8031 fi
8032
8033 for ncn_progname in objdump; do
8034 if test -n "$ncn_tool_prefix"; then
8035 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8036 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8037 echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8039 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042 if test -n "$OBJDUMP"; then
8043 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8055 fi
8056 done
8057 done
8058
8059 fi
8060 fi
8061 OBJDUMP=$ac_cv_prog_OBJDUMP
8062 if test -n "$OBJDUMP"; then
8063 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8064 echo "${ECHO_T}$OBJDUMP" >&6
8065 else
8066 echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6
8068 fi
8069
8070 fi
8071 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8073 set dummy ${ncn_progname}; ac_word=$2
8074 echo "$as_me:$LINENO: checking for $ac_word" >&5
8075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8076 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079 if test -n "$OBJDUMP"; then
8080 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089 ac_cv_prog_OBJDUMP="${ncn_progname}"
8090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8092 fi
8093 done
8094 done
8095
8096 fi
8097 fi
8098 OBJDUMP=$ac_cv_prog_OBJDUMP
8099 if test -n "$OBJDUMP"; then
8100 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8101 echo "${ECHO_T}$OBJDUMP" >&6
8102 else
8103 echo "$as_me:$LINENO: result: no" >&5
8104 echo "${ECHO_T}no" >&6
8105 fi
8106
8107 fi
8108 test -n "$ac_cv_prog_OBJDUMP" && break
8109 done
8110
8111 if test -z "$ac_cv_prog_OBJDUMP" ; then
8112 set dummy objdump
8113 if test $build = $host ; then
8114 OBJDUMP="$2"
8115 else
8116 OBJDUMP="${ncn_tool_prefix}$2"
8117 fi
8118 fi
8119
8120
8121
8122
8123
8124
8125 # Target tools.
8126
8127 # Check whether --with-build-time-tools or --without-build-time-tools was given.
8128 if test "${with_build_time_tools+set}" = set; then
8129 withval="$with_build_time_tools"
8130 case x"$withval" in
8131 x/*) ;;
8132 *)
8133 with_build_time_tools=
8134 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8135 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8136 ;;
8137 esac
8138 else
8139 with_build_time_tools=
8140 fi;
8141
8142
8143
8144 if test -n "$CC_FOR_TARGET"; then
8145 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8146 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8147 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8148 fi
8149
8150 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8151 for ncn_progname in cc gcc; do
8152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8153 set dummy ${ncn_progname}; ac_word=$2
8154 echo "$as_me:$LINENO: checking for $ac_word" >&5
8155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8156 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159 if test -n "$CC_FOR_TARGET"; then
8160 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8169 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173 done
8174 done
8175
8176 fi
8177 fi
8178 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8179 if test -n "$CC_FOR_TARGET"; then
8180 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8181 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8182 else
8183 echo "$as_me:$LINENO: result: no" >&5
8184 echo "${ECHO_T}no" >&6
8185 fi
8186
8187 done
8188 fi
8189
8190 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8191 for ncn_progname in cc gcc; do
8192 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8193 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8194 if test -x $with_build_time_tools/${ncn_progname}; then
8195 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8196 echo "$as_me:$LINENO: result: yes" >&5
8197 echo "${ECHO_T}yes" >&6
8198 break
8199 else
8200 echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6
8202 fi
8203 done
8204 fi
8205
8206 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8207 for ncn_progname in cc gcc; do
8208 if test -n "$ncn_target_tool_prefix"; then
8209 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8210 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8211 echo "$as_me:$LINENO: checking for $ac_word" >&5
8212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8213 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216 if test -n "$CC_FOR_TARGET"; then
8217 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8218 else
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8221 do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8229 fi
8230 done
8231 done
8232
8233 fi
8234 fi
8235 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8236 if test -n "$CC_FOR_TARGET"; then
8237 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8238 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8239 else
8240 echo "$as_me:$LINENO: result: no" >&5
8241 echo "${ECHO_T}no" >&6
8242 fi
8243
8244 fi
8245 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8247 set dummy ${ncn_progname}; ac_word=$2
8248 echo "$as_me:$LINENO: checking for $ac_word" >&5
8249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8250 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253 if test -n "$CC_FOR_TARGET"; then
8254 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8258 do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8263 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8266 fi
8267 done
8268 done
8269
8270 fi
8271 fi
8272 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8273 if test -n "$CC_FOR_TARGET"; then
8274 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8275 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8276 else
8277 echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6
8279 fi
8280
8281 fi
8282 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8283 done
8284 fi
8285
8286 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8287 set dummy cc gcc
8288 if test $build = $target ; then
8289 CC_FOR_TARGET="$2"
8290 else
8291 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8292 fi
8293 else
8294 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8295 fi
8296
8297
8298
8299 if test -n "$CXX_FOR_TARGET"; then
8300 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8301 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8302 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8303 fi
8304
8305 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8306 for ncn_progname in c++ g++ cxx gxx; do
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308 set dummy ${ncn_progname}; ac_word=$2
8309 echo "$as_me:$LINENO: checking for $ac_word" >&5
8310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8311 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 if test -n "$CXX_FOR_TARGET"; then
8315 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328 done
8329 done
8330
8331 fi
8332 fi
8333 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8334 if test -n "$CXX_FOR_TARGET"; then
8335 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8336 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8337 else
8338 echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6
8340 fi
8341
8342 done
8343 fi
8344
8345 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8346 for ncn_progname in c++ g++ cxx gxx; do
8347 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8348 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8349 if test -x $with_build_time_tools/${ncn_progname}; then
8350 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8351 echo "$as_me:$LINENO: result: yes" >&5
8352 echo "${ECHO_T}yes" >&6
8353 break
8354 else
8355 echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8357 fi
8358 done
8359 fi
8360
8361 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8362 for ncn_progname in c++ g++ cxx gxx; do
8363 if test -n "$ncn_target_tool_prefix"; then
8364 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8365 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8366 echo "$as_me:$LINENO: checking for $ac_word" >&5
8367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8368 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371 if test -n "$CXX_FOR_TARGET"; then
8372 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8373 else
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 break 2
8384 fi
8385 done
8386 done
8387
8388 fi
8389 fi
8390 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8391 if test -n "$CXX_FOR_TARGET"; then
8392 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8393 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8394 else
8395 echo "$as_me:$LINENO: result: no" >&5
8396 echo "${ECHO_T}no" >&6
8397 fi
8398
8399 fi
8400 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8402 set dummy ${ncn_progname}; ac_word=$2
8403 echo "$as_me:$LINENO: checking for $ac_word" >&5
8404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8405 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408 if test -n "$CXX_FOR_TARGET"; then
8409 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8418 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8421 fi
8422 done
8423 done
8424
8425 fi
8426 fi
8427 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8428 if test -n "$CXX_FOR_TARGET"; then
8429 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8430 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8431 else
8432 echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6
8434 fi
8435
8436 fi
8437 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8438 done
8439 fi
8440
8441 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8442 set dummy c++ g++ cxx gxx
8443 if test $build = $target ; then
8444 CXX_FOR_TARGET="$2"
8445 else
8446 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8447 fi
8448 else
8449 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8450 fi
8451
8452
8453
8454 if test -n "$GCC_FOR_TARGET"; then
8455 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8456 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8457 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8458 fi
8459
8460 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8461 for ncn_progname in gcc; do
8462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8463 set dummy ${ncn_progname}; ac_word=$2
8464 echo "$as_me:$LINENO: checking for $ac_word" >&5
8465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8466 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469 if test -n "$GCC_FOR_TARGET"; then
8470 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8471 else
8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 for as_dir in $PATH
8474 do
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 break 2
8482 fi
8483 done
8484 done
8485
8486 fi
8487 fi
8488 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8489 if test -n "$GCC_FOR_TARGET"; then
8490 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8491 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8492 else
8493 echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6
8495 fi
8496
8497 done
8498 fi
8499
8500 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8501 for ncn_progname in gcc; do
8502 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8503 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8504 if test -x $with_build_time_tools/${ncn_progname}; then
8505 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8506 echo "$as_me:$LINENO: result: yes" >&5
8507 echo "${ECHO_T}yes" >&6
8508 break
8509 else
8510 echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6
8512 fi
8513 done
8514 fi
8515
8516 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8517 for ncn_progname in gcc; do
8518 if test -n "$ncn_target_tool_prefix"; then
8519 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8520 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8521 echo "$as_me:$LINENO: checking for $ac_word" >&5
8522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8523 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526 if test -n "$GCC_FOR_TARGET"; then
8527 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8528 else
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 for as_dir in $PATH
8531 do
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8536 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8538 break 2
8539 fi
8540 done
8541 done
8542
8543 fi
8544 fi
8545 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8546 if test -n "$GCC_FOR_TARGET"; then
8547 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8548 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8549 else
8550 echo "$as_me:$LINENO: result: no" >&5
8551 echo "${ECHO_T}no" >&6
8552 fi
8553
8554 fi
8555 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8557 set dummy ${ncn_progname}; ac_word=$2
8558 echo "$as_me:$LINENO: checking for $ac_word" >&5
8559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8560 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563 if test -n "$GCC_FOR_TARGET"; then
8564 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8565 else
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8568 do
8569 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 break 2
8576 fi
8577 done
8578 done
8579
8580 fi
8581 fi
8582 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8583 if test -n "$GCC_FOR_TARGET"; then
8584 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8585 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8586 else
8587 echo "$as_me:$LINENO: result: no" >&5
8588 echo "${ECHO_T}no" >&6
8589 fi
8590
8591 fi
8592 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8593 done
8594 fi
8595
8596 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8597 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8598 else
8599 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8600 fi
8601
8602
8603
8604 if test -n "$GCJ_FOR_TARGET"; then
8605 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8606 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8607 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8608 fi
8609
8610 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8611 for ncn_progname in gcj; do
8612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8613 set dummy ${ncn_progname}; ac_word=$2
8614 echo "$as_me:$LINENO: checking for $ac_word" >&5
8615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8616 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619 if test -n "$GCJ_FOR_TARGET"; then
8620 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8621 else
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8624 do
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8629 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 break 2
8632 fi
8633 done
8634 done
8635
8636 fi
8637 fi
8638 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8639 if test -n "$GCJ_FOR_TARGET"; then
8640 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8641 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8642 else
8643 echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6
8645 fi
8646
8647 done
8648 fi
8649
8650 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8651 for ncn_progname in gcj; do
8652 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8653 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8654 if test -x $with_build_time_tools/${ncn_progname}; then
8655 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8656 echo "$as_me:$LINENO: result: yes" >&5
8657 echo "${ECHO_T}yes" >&6
8658 break
8659 else
8660 echo "$as_me:$LINENO: result: no" >&5
8661 echo "${ECHO_T}no" >&6
8662 fi
8663 done
8664 fi
8665
8666 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8667 for ncn_progname in gcj; do
8668 if test -n "$ncn_target_tool_prefix"; then
8669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8670 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8671 echo "$as_me:$LINENO: checking for $ac_word" >&5
8672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8673 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676 if test -n "$GCJ_FOR_TARGET"; then
8677 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8678 else
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8681 do
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8689 fi
8690 done
8691 done
8692
8693 fi
8694 fi
8695 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8696 if test -n "$GCJ_FOR_TARGET"; then
8697 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8698 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8699 else
8700 echo "$as_me:$LINENO: result: no" >&5
8701 echo "${ECHO_T}no" >&6
8702 fi
8703
8704 fi
8705 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8707 set dummy ${ncn_progname}; ac_word=$2
8708 echo "$as_me:$LINENO: checking for $ac_word" >&5
8709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8710 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 else
8713 if test -n "$GCJ_FOR_TARGET"; then
8714 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8718 do
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8726 fi
8727 done
8728 done
8729
8730 fi
8731 fi
8732 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8733 if test -n "$GCJ_FOR_TARGET"; then
8734 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8735 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8736 else
8737 echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6
8739 fi
8740
8741 fi
8742 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8743 done
8744 fi
8745
8746 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8747 set dummy gcj
8748 if test $build = $target ; then
8749 GCJ_FOR_TARGET="$2"
8750 else
8751 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8752 fi
8753 else
8754 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
8755 fi
8756
8757
8758
8759 if test -n "$GFORTRAN_FOR_TARGET"; then
8760 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8761 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8762 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8763 fi
8764
8765 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8766 for ncn_progname in gfortran; do
8767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8768 set dummy ${ncn_progname}; ac_word=$2
8769 echo "$as_me:$LINENO: checking for $ac_word" >&5
8770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8771 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774 if test -n "$GFORTRAN_FOR_TARGET"; then
8775 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8776 else
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778 for as_dir in $PATH
8779 do
8780 IFS=$as_save_IFS
8781 test -z "$as_dir" && as_dir=.
8782 for ac_exec_ext in '' $ac_executable_extensions; do
8783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8784 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8786 break 2
8787 fi
8788 done
8789 done
8790
8791 fi
8792 fi
8793 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8794 if test -n "$GFORTRAN_FOR_TARGET"; then
8795 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8796 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8797 else
8798 echo "$as_me:$LINENO: result: no" >&5
8799 echo "${ECHO_T}no" >&6
8800 fi
8801
8802 done
8803 fi
8804
8805 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8806 for ncn_progname in gfortran; do
8807 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8808 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8809 if test -x $with_build_time_tools/${ncn_progname}; then
8810 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8811 echo "$as_me:$LINENO: result: yes" >&5
8812 echo "${ECHO_T}yes" >&6
8813 break
8814 else
8815 echo "$as_me:$LINENO: result: no" >&5
8816 echo "${ECHO_T}no" >&6
8817 fi
8818 done
8819 fi
8820
8821 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8822 for ncn_progname in gfortran; do
8823 if test -n "$ncn_target_tool_prefix"; then
8824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8825 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8826 echo "$as_me:$LINENO: checking for $ac_word" >&5
8827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8828 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831 if test -n "$GFORTRAN_FOR_TARGET"; then
8832 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8833 else
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8836 do
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8844 fi
8845 done
8846 done
8847
8848 fi
8849 fi
8850 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8851 if test -n "$GFORTRAN_FOR_TARGET"; then
8852 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8853 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8854 else
8855 echo "$as_me:$LINENO: result: no" >&5
8856 echo "${ECHO_T}no" >&6
8857 fi
8858
8859 fi
8860 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8862 set dummy ${ncn_progname}; ac_word=$2
8863 echo "$as_me:$LINENO: checking for $ac_word" >&5
8864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8865 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868 if test -n "$GFORTRAN_FOR_TARGET"; then
8869 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8870 else
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 for as_dir in $PATH
8873 do
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8878 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 break 2
8881 fi
8882 done
8883 done
8884
8885 fi
8886 fi
8887 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8888 if test -n "$GFORTRAN_FOR_TARGET"; then
8889 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8890 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8891 else
8892 echo "$as_me:$LINENO: result: no" >&5
8893 echo "${ECHO_T}no" >&6
8894 fi
8895
8896 fi
8897 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8898 done
8899 fi
8900
8901 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8902 set dummy gfortran
8903 if test $build = $target ; then
8904 GFORTRAN_FOR_TARGET="$2"
8905 else
8906 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8907 fi
8908 else
8909 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
8910 fi
8911
8912
8913
8914 cat > conftest.c << \EOF
8915 #ifdef __GNUC__
8916 gcc_yay;
8917 #endif
8918 EOF
8919 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8920 have_gcc_for_target=yes
8921 else
8922 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8923 have_gcc_for_target=no
8924 fi
8925 rm conftest.c
8926
8927
8928
8929
8930 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8931 if test -n "$with_build_time_tools"; then
8932 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8933 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
8934 if test -x $with_build_time_tools/ar; then
8935 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8936 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8937 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8938 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
8939 else
8940 echo "$as_me:$LINENO: result: no" >&5
8941 echo "${ECHO_T}no" >&6
8942 fi
8943 elif test $build != $host && test $have_gcc_for_target = yes; then
8944 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8945 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8946 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8947 fi
8948 fi
8949 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8950 # Extract the first word of "ar", so it can be a program name with args.
8951 set dummy ar; ac_word=$2
8952 echo "$as_me:$LINENO: checking for $ac_word" >&5
8953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8954 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957 case $AR_FOR_TARGET in
8958 [\\/]* | ?:[\\/]*)
8959 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8960 ;;
8961 *)
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 for as_dir in $gcc_cv_tool_dirs
8964 do
8965 IFS=$as_save_IFS
8966 test -z "$as_dir" && as_dir=.
8967 for ac_exec_ext in '' $ac_executable_extensions; do
8968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8969 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8971 break 2
8972 fi
8973 done
8974 done
8975
8976 ;;
8977 esac
8978 fi
8979 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8980
8981 if test -n "$AR_FOR_TARGET"; then
8982 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8983 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8984 else
8985 echo "$as_me:$LINENO: result: no" >&5
8986 echo "${ECHO_T}no" >&6
8987 fi
8988
8989 fi
8990 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8991
8992
8993 if test -n "$AR_FOR_TARGET"; then
8994 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8995 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8996 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8997 fi
8998
8999 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9000 for ncn_progname in ar; do
9001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9002 set dummy ${ncn_progname}; ac_word=$2
9003 echo "$as_me:$LINENO: checking for $ac_word" >&5
9004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9005 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008 if test -n "$AR_FOR_TARGET"; then
9009 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9010 else
9011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012 for as_dir in $PATH
9013 do
9014 IFS=$as_save_IFS
9015 test -z "$as_dir" && as_dir=.
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9018 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9020 break 2
9021 fi
9022 done
9023 done
9024
9025 fi
9026 fi
9027 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9028 if test -n "$AR_FOR_TARGET"; then
9029 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9030 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9031 else
9032 echo "$as_me:$LINENO: result: no" >&5
9033 echo "${ECHO_T}no" >&6
9034 fi
9035
9036 done
9037 fi
9038
9039 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9040 for ncn_progname in ar; do
9041 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9042 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9043 if test -x $with_build_time_tools/${ncn_progname}; then
9044 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9045 echo "$as_me:$LINENO: result: yes" >&5
9046 echo "${ECHO_T}yes" >&6
9047 break
9048 else
9049 echo "$as_me:$LINENO: result: no" >&5
9050 echo "${ECHO_T}no" >&6
9051 fi
9052 done
9053 fi
9054
9055 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9056 for ncn_progname in ar; do
9057 if test -n "$ncn_target_tool_prefix"; then
9058 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9059 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9060 echo "$as_me:$LINENO: checking for $ac_word" >&5
9061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9062 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065 if test -n "$AR_FOR_TARGET"; then
9066 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9067 else
9068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 for as_dir in $PATH
9070 do
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
9073 for ac_exec_ext in '' $ac_executable_extensions; do
9074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9075 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9077 break 2
9078 fi
9079 done
9080 done
9081
9082 fi
9083 fi
9084 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9085 if test -n "$AR_FOR_TARGET"; then
9086 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9087 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9088 else
9089 echo "$as_me:$LINENO: result: no" >&5
9090 echo "${ECHO_T}no" >&6
9091 fi
9092
9093 fi
9094 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9096 set dummy ${ncn_progname}; ac_word=$2
9097 echo "$as_me:$LINENO: checking for $ac_word" >&5
9098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9099 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102 if test -n "$AR_FOR_TARGET"; then
9103 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9104 else
9105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106 for as_dir in $PATH
9107 do
9108 IFS=$as_save_IFS
9109 test -z "$as_dir" && as_dir=.
9110 for ac_exec_ext in '' $ac_executable_extensions; do
9111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9112 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 break 2
9115 fi
9116 done
9117 done
9118
9119 fi
9120 fi
9121 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9122 if test -n "$AR_FOR_TARGET"; then
9123 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9124 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9125 else
9126 echo "$as_me:$LINENO: result: no" >&5
9127 echo "${ECHO_T}no" >&6
9128 fi
9129
9130 fi
9131 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9132 done
9133 fi
9134
9135 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9136 set dummy ar
9137 if test $build = $target ; then
9138 AR_FOR_TARGET="$2"
9139 else
9140 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9141 fi
9142 else
9143 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9144 fi
9145
9146 else
9147 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9148 fi
9149
9150
9151
9152
9153 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9154 if test -n "$with_build_time_tools"; then
9155 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9156 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
9157 if test -x $with_build_time_tools/as; then
9158 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9159 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9160 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9161 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
9162 else
9163 echo "$as_me:$LINENO: result: no" >&5
9164 echo "${ECHO_T}no" >&6
9165 fi
9166 elif test $build != $host && test $have_gcc_for_target = yes; then
9167 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9168 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9169 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9170 fi
9171 fi
9172 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9173 # Extract the first word of "as", so it can be a program name with args.
9174 set dummy as; ac_word=$2
9175 echo "$as_me:$LINENO: checking for $ac_word" >&5
9176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9177 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180 case $AS_FOR_TARGET in
9181 [\\/]* | ?:[\\/]*)
9182 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9183 ;;
9184 *)
9185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186 for as_dir in $gcc_cv_tool_dirs
9187 do
9188 IFS=$as_save_IFS
9189 test -z "$as_dir" && as_dir=.
9190 for ac_exec_ext in '' $ac_executable_extensions; do
9191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9192 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9194 break 2
9195 fi
9196 done
9197 done
9198
9199 ;;
9200 esac
9201 fi
9202 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9203
9204 if test -n "$AS_FOR_TARGET"; then
9205 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9206 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9207 else
9208 echo "$as_me:$LINENO: result: no" >&5
9209 echo "${ECHO_T}no" >&6
9210 fi
9211
9212 fi
9213 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9214
9215
9216 if test -n "$AS_FOR_TARGET"; then
9217 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9218 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9219 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9220 fi
9221
9222 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9223 for ncn_progname in as; do
9224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9225 set dummy ${ncn_progname}; ac_word=$2
9226 echo "$as_me:$LINENO: checking for $ac_word" >&5
9227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9228 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231 if test -n "$AS_FOR_TARGET"; then
9232 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9233 else
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9236 do
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9241 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9244 fi
9245 done
9246 done
9247
9248 fi
9249 fi
9250 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9251 if test -n "$AS_FOR_TARGET"; then
9252 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9253 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9254 else
9255 echo "$as_me:$LINENO: result: no" >&5
9256 echo "${ECHO_T}no" >&6
9257 fi
9258
9259 done
9260 fi
9261
9262 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9263 for ncn_progname in as; do
9264 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9265 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9266 if test -x $with_build_time_tools/${ncn_progname}; then
9267 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9268 echo "$as_me:$LINENO: result: yes" >&5
9269 echo "${ECHO_T}yes" >&6
9270 break
9271 else
9272 echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6
9274 fi
9275 done
9276 fi
9277
9278 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9279 for ncn_progname in as; do
9280 if test -n "$ncn_target_tool_prefix"; then
9281 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9282 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9283 echo "$as_me:$LINENO: checking for $ac_word" >&5
9284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9285 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 else
9288 if test -n "$AS_FOR_TARGET"; then
9289 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9290 else
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9293 do
9294 IFS=$as_save_IFS
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
9297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9300 break 2
9301 fi
9302 done
9303 done
9304
9305 fi
9306 fi
9307 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9308 if test -n "$AS_FOR_TARGET"; then
9309 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9310 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9311 else
9312 echo "$as_me:$LINENO: result: no" >&5
9313 echo "${ECHO_T}no" >&6
9314 fi
9315
9316 fi
9317 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9319 set dummy ${ncn_progname}; ac_word=$2
9320 echo "$as_me:$LINENO: checking for $ac_word" >&5
9321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9322 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 if test -n "$AS_FOR_TARGET"; then
9326 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9327 else
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 for as_dir in $PATH
9330 do
9331 IFS=$as_save_IFS
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 break 2
9338 fi
9339 done
9340 done
9341
9342 fi
9343 fi
9344 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9345 if test -n "$AS_FOR_TARGET"; then
9346 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9347 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9348 else
9349 echo "$as_me:$LINENO: result: no" >&5
9350 echo "${ECHO_T}no" >&6
9351 fi
9352
9353 fi
9354 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9355 done
9356 fi
9357
9358 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9359 set dummy as
9360 if test $build = $target ; then
9361 AS_FOR_TARGET="$2"
9362 else
9363 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9364 fi
9365 else
9366 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9367 fi
9368
9369 else
9370 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9371 fi
9372
9373
9374
9375
9376 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9377 if test -n "$with_build_time_tools"; then
9378 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9379 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9380 if test -x $with_build_time_tools/dlltool; then
9381 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9382 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9383 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9384 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9385 else
9386 echo "$as_me:$LINENO: result: no" >&5
9387 echo "${ECHO_T}no" >&6
9388 fi
9389 elif test $build != $host && test $have_gcc_for_target = yes; then
9390 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9391 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9392 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9393 fi
9394 fi
9395 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9396 # Extract the first word of "dlltool", so it can be a program name with args.
9397 set dummy dlltool; ac_word=$2
9398 echo "$as_me:$LINENO: checking for $ac_word" >&5
9399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9400 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403 case $DLLTOOL_FOR_TARGET in
9404 [\\/]* | ?:[\\/]*)
9405 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9406 ;;
9407 *)
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $gcc_cv_tool_dirs
9410 do
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9418 fi
9419 done
9420 done
9421
9422 ;;
9423 esac
9424 fi
9425 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9426
9427 if test -n "$DLLTOOL_FOR_TARGET"; then
9428 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9429 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9430 else
9431 echo "$as_me:$LINENO: result: no" >&5
9432 echo "${ECHO_T}no" >&6
9433 fi
9434
9435 fi
9436 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9437
9438
9439 if test -n "$DLLTOOL_FOR_TARGET"; then
9440 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9441 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9442 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9443 fi
9444
9445 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9446 for ncn_progname in dlltool; do
9447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9448 set dummy ${ncn_progname}; ac_word=$2
9449 echo "$as_me:$LINENO: checking for $ac_word" >&5
9450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9451 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454 if test -n "$DLLTOOL_FOR_TARGET"; then
9455 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9456 else
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $PATH
9459 do
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 break 2
9467 fi
9468 done
9469 done
9470
9471 fi
9472 fi
9473 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9474 if test -n "$DLLTOOL_FOR_TARGET"; then
9475 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9476 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9477 else
9478 echo "$as_me:$LINENO: result: no" >&5
9479 echo "${ECHO_T}no" >&6
9480 fi
9481
9482 done
9483 fi
9484
9485 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9486 for ncn_progname in dlltool; do
9487 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9488 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9489 if test -x $with_build_time_tools/${ncn_progname}; then
9490 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9491 echo "$as_me:$LINENO: result: yes" >&5
9492 echo "${ECHO_T}yes" >&6
9493 break
9494 else
9495 echo "$as_me:$LINENO: result: no" >&5
9496 echo "${ECHO_T}no" >&6
9497 fi
9498 done
9499 fi
9500
9501 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9502 for ncn_progname in dlltool; do
9503 if test -n "$ncn_target_tool_prefix"; then
9504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9506 echo "$as_me:$LINENO: checking for $ac_word" >&5
9507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9508 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511 if test -n "$DLLTOOL_FOR_TARGET"; then
9512 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9513 else
9514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 for as_dir in $PATH
9516 do
9517 IFS=$as_save_IFS
9518 test -z "$as_dir" && as_dir=.
9519 for ac_exec_ext in '' $ac_executable_extensions; do
9520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9521 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9523 break 2
9524 fi
9525 done
9526 done
9527
9528 fi
9529 fi
9530 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9531 if test -n "$DLLTOOL_FOR_TARGET"; then
9532 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9533 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9534 else
9535 echo "$as_me:$LINENO: result: no" >&5
9536 echo "${ECHO_T}no" >&6
9537 fi
9538
9539 fi
9540 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9542 set dummy ${ncn_progname}; ac_word=$2
9543 echo "$as_me:$LINENO: checking for $ac_word" >&5
9544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9545 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548 if test -n "$DLLTOOL_FOR_TARGET"; then
9549 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9550 else
9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552 for as_dir in $PATH
9553 do
9554 IFS=$as_save_IFS
9555 test -z "$as_dir" && as_dir=.
9556 for ac_exec_ext in '' $ac_executable_extensions; do
9557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9558 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9560 break 2
9561 fi
9562 done
9563 done
9564
9565 fi
9566 fi
9567 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9568 if test -n "$DLLTOOL_FOR_TARGET"; then
9569 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9570 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9571 else
9572 echo "$as_me:$LINENO: result: no" >&5
9573 echo "${ECHO_T}no" >&6
9574 fi
9575
9576 fi
9577 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9578 done
9579 fi
9580
9581 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9582 set dummy dlltool
9583 if test $build = $target ; then
9584 DLLTOOL_FOR_TARGET="$2"
9585 else
9586 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9587 fi
9588 else
9589 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9590 fi
9591
9592 else
9593 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9594 fi
9595
9596
9597
9598
9599 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9600 if test -n "$with_build_time_tools"; then
9601 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9602 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9603 if test -x $with_build_time_tools/ld; then
9604 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9605 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9606 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9607 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9608 else
9609 echo "$as_me:$LINENO: result: no" >&5
9610 echo "${ECHO_T}no" >&6
9611 fi
9612 elif test $build != $host && test $have_gcc_for_target = yes; then
9613 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9614 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9615 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9616 fi
9617 fi
9618 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9619 # Extract the first word of "ld", so it can be a program name with args.
9620 set dummy ld; ac_word=$2
9621 echo "$as_me:$LINENO: checking for $ac_word" >&5
9622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9623 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626 case $LD_FOR_TARGET in
9627 [\\/]* | ?:[\\/]*)
9628 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9629 ;;
9630 *)
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $gcc_cv_tool_dirs
9633 do
9634 IFS=$as_save_IFS
9635 test -z "$as_dir" && as_dir=.
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9638 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 break 2
9641 fi
9642 done
9643 done
9644
9645 ;;
9646 esac
9647 fi
9648 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9649
9650 if test -n "$LD_FOR_TARGET"; then
9651 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9652 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9653 else
9654 echo "$as_me:$LINENO: result: no" >&5
9655 echo "${ECHO_T}no" >&6
9656 fi
9657
9658 fi
9659 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9660
9661
9662 if test -n "$LD_FOR_TARGET"; then
9663 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9664 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9665 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9666 fi
9667
9668 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9669 for ncn_progname in ld; do
9670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9671 set dummy ${ncn_progname}; ac_word=$2
9672 echo "$as_me:$LINENO: checking for $ac_word" >&5
9673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9674 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677 if test -n "$LD_FOR_TARGET"; then
9678 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9679 else
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 for as_dir in $PATH
9682 do
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9687 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9689 break 2
9690 fi
9691 done
9692 done
9693
9694 fi
9695 fi
9696 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9697 if test -n "$LD_FOR_TARGET"; then
9698 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9699 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9700 else
9701 echo "$as_me:$LINENO: result: no" >&5
9702 echo "${ECHO_T}no" >&6
9703 fi
9704
9705 done
9706 fi
9707
9708 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9709 for ncn_progname in ld; do
9710 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9711 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9712 if test -x $with_build_time_tools/${ncn_progname}; then
9713 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9714 echo "$as_me:$LINENO: result: yes" >&5
9715 echo "${ECHO_T}yes" >&6
9716 break
9717 else
9718 echo "$as_me:$LINENO: result: no" >&5
9719 echo "${ECHO_T}no" >&6
9720 fi
9721 done
9722 fi
9723
9724 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9725 for ncn_progname in ld; do
9726 if test -n "$ncn_target_tool_prefix"; then
9727 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9728 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9729 echo "$as_me:$LINENO: checking for $ac_word" >&5
9730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9731 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734 if test -n "$LD_FOR_TARGET"; then
9735 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9736 else
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9739 do
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9747 fi
9748 done
9749 done
9750
9751 fi
9752 fi
9753 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9754 if test -n "$LD_FOR_TARGET"; then
9755 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9756 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9757 else
9758 echo "$as_me:$LINENO: result: no" >&5
9759 echo "${ECHO_T}no" >&6
9760 fi
9761
9762 fi
9763 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9765 set dummy ${ncn_progname}; ac_word=$2
9766 echo "$as_me:$LINENO: checking for $ac_word" >&5
9767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9768 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771 if test -n "$LD_FOR_TARGET"; then
9772 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9773 else
9774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775 for as_dir in $PATH
9776 do
9777 IFS=$as_save_IFS
9778 test -z "$as_dir" && as_dir=.
9779 for ac_exec_ext in '' $ac_executable_extensions; do
9780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9781 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9783 break 2
9784 fi
9785 done
9786 done
9787
9788 fi
9789 fi
9790 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9791 if test -n "$LD_FOR_TARGET"; then
9792 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9793 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9794 else
9795 echo "$as_me:$LINENO: result: no" >&5
9796 echo "${ECHO_T}no" >&6
9797 fi
9798
9799 fi
9800 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9801 done
9802 fi
9803
9804 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9805 set dummy ld
9806 if test $build = $target ; then
9807 LD_FOR_TARGET="$2"
9808 else
9809 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9810 fi
9811 else
9812 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
9813 fi
9814
9815 else
9816 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9817 fi
9818
9819
9820
9821
9822 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9823 if test -n "$with_build_time_tools"; then
9824 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9825 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
9826 if test -x $with_build_time_tools/lipo; then
9827 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9828 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9829 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9830 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
9831 else
9832 echo "$as_me:$LINENO: result: no" >&5
9833 echo "${ECHO_T}no" >&6
9834 fi
9835 elif test $build != $host && test $have_gcc_for_target = yes; then
9836 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9837 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9838 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9839 fi
9840 fi
9841 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9842 # Extract the first word of "lipo", so it can be a program name with args.
9843 set dummy lipo; ac_word=$2
9844 echo "$as_me:$LINENO: checking for $ac_word" >&5
9845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9846 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849 case $LIPO_FOR_TARGET in
9850 [\\/]* | ?:[\\/]*)
9851 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9852 ;;
9853 *)
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in $gcc_cv_tool_dirs
9856 do
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9864 fi
9865 done
9866 done
9867
9868 ;;
9869 esac
9870 fi
9871 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9872
9873 if test -n "$LIPO_FOR_TARGET"; then
9874 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9875 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9876 else
9877 echo "$as_me:$LINENO: result: no" >&5
9878 echo "${ECHO_T}no" >&6
9879 fi
9880
9881 fi
9882 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9883
9884
9885 if test -n "$LIPO_FOR_TARGET"; then
9886 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9887 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9888 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9889 fi
9890
9891 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9892 for ncn_progname in lipo; do
9893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9894 set dummy ${ncn_progname}; ac_word=$2
9895 echo "$as_me:$LINENO: checking for $ac_word" >&5
9896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9897 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 if test -n "$LIPO_FOR_TARGET"; then
9901 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9902 else
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in $PATH
9905 do
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9910 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9913 fi
9914 done
9915 done
9916
9917 fi
9918 fi
9919 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9920 if test -n "$LIPO_FOR_TARGET"; then
9921 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9922 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9923 else
9924 echo "$as_me:$LINENO: result: no" >&5
9925 echo "${ECHO_T}no" >&6
9926 fi
9927
9928 done
9929 fi
9930
9931 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
9932 for ncn_progname in lipo; do
9933 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9934 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9935 if test -x $with_build_time_tools/${ncn_progname}; then
9936 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9937 echo "$as_me:$LINENO: result: yes" >&5
9938 echo "${ECHO_T}yes" >&6
9939 break
9940 else
9941 echo "$as_me:$LINENO: result: no" >&5
9942 echo "${ECHO_T}no" >&6
9943 fi
9944 done
9945 fi
9946
9947 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9948 for ncn_progname in lipo; do
9949 if test -n "$ncn_target_tool_prefix"; then
9950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9951 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9952 echo "$as_me:$LINENO: checking for $ac_word" >&5
9953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9954 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 if test -n "$LIPO_FOR_TARGET"; then
9958 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9959 else
9960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 for as_dir in $PATH
9962 do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9967 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 break 2
9970 fi
9971 done
9972 done
9973
9974 fi
9975 fi
9976 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9977 if test -n "$LIPO_FOR_TARGET"; then
9978 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9979 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9980 else
9981 echo "$as_me:$LINENO: result: no" >&5
9982 echo "${ECHO_T}no" >&6
9983 fi
9984
9985 fi
9986 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9988 set dummy ${ncn_progname}; ac_word=$2
9989 echo "$as_me:$LINENO: checking for $ac_word" >&5
9990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9991 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994 if test -n "$LIPO_FOR_TARGET"; then
9995 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9996 else
9997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998 for as_dir in $PATH
9999 do
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10004 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 break 2
10007 fi
10008 done
10009 done
10010
10011 fi
10012 fi
10013 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10014 if test -n "$LIPO_FOR_TARGET"; then
10015 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10016 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10017 else
10018 echo "$as_me:$LINENO: result: no" >&5
10019 echo "${ECHO_T}no" >&6
10020 fi
10021
10022 fi
10023 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10024 done
10025 fi
10026
10027 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10028 set dummy lipo
10029 if test $build = $target ; then
10030 LIPO_FOR_TARGET="$2"
10031 else
10032 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10033 fi
10034 else
10035 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10036 fi
10037
10038 else
10039 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10040 fi
10041
10042
10043
10044
10045 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10046 if test -n "$with_build_time_tools"; then
10047 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10048 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
10049 if test -x $with_build_time_tools/nm; then
10050 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10051 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10052 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10053 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
10054 else
10055 echo "$as_me:$LINENO: result: no" >&5
10056 echo "${ECHO_T}no" >&6
10057 fi
10058 elif test $build != $host && test $have_gcc_for_target = yes; then
10059 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10060 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10061 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10062 fi
10063 fi
10064 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10065 # Extract the first word of "nm", so it can be a program name with args.
10066 set dummy nm; ac_word=$2
10067 echo "$as_me:$LINENO: checking for $ac_word" >&5
10068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10069 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 case $NM_FOR_TARGET in
10073 [\\/]* | ?:[\\/]*)
10074 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10075 ;;
10076 *)
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078 for as_dir in $gcc_cv_tool_dirs
10079 do
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10084 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10087 fi
10088 done
10089 done
10090
10091 ;;
10092 esac
10093 fi
10094 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10095
10096 if test -n "$NM_FOR_TARGET"; then
10097 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10098 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10099 else
10100 echo "$as_me:$LINENO: result: no" >&5
10101 echo "${ECHO_T}no" >&6
10102 fi
10103
10104 fi
10105 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10106
10107
10108 if test -n "$NM_FOR_TARGET"; then
10109 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10110 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10111 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10112 fi
10113
10114 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10115 for ncn_progname in nm; do
10116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10117 set dummy ${ncn_progname}; ac_word=$2
10118 echo "$as_me:$LINENO: checking for $ac_word" >&5
10119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10120 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 else
10123 if test -n "$NM_FOR_TARGET"; then
10124 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10125 else
10126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127 for as_dir in $PATH
10128 do
10129 IFS=$as_save_IFS
10130 test -z "$as_dir" && as_dir=.
10131 for ac_exec_ext in '' $ac_executable_extensions; do
10132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10133 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10135 break 2
10136 fi
10137 done
10138 done
10139
10140 fi
10141 fi
10142 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10143 if test -n "$NM_FOR_TARGET"; then
10144 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10145 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10146 else
10147 echo "$as_me:$LINENO: result: no" >&5
10148 echo "${ECHO_T}no" >&6
10149 fi
10150
10151 done
10152 fi
10153
10154 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10155 for ncn_progname in nm; do
10156 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10157 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10158 if test -x $with_build_time_tools/${ncn_progname}; then
10159 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10160 echo "$as_me:$LINENO: result: yes" >&5
10161 echo "${ECHO_T}yes" >&6
10162 break
10163 else
10164 echo "$as_me:$LINENO: result: no" >&5
10165 echo "${ECHO_T}no" >&6
10166 fi
10167 done
10168 fi
10169
10170 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10171 for ncn_progname in nm; do
10172 if test -n "$ncn_target_tool_prefix"; then
10173 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10174 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10175 echo "$as_me:$LINENO: checking for $ac_word" >&5
10176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10177 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 if test -n "$NM_FOR_TARGET"; then
10181 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10182 else
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10185 do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194 done
10195 done
10196
10197 fi
10198 fi
10199 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10200 if test -n "$NM_FOR_TARGET"; then
10201 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10202 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10203 else
10204 echo "$as_me:$LINENO: result: no" >&5
10205 echo "${ECHO_T}no" >&6
10206 fi
10207
10208 fi
10209 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10211 set dummy ${ncn_progname}; ac_word=$2
10212 echo "$as_me:$LINENO: checking for $ac_word" >&5
10213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10214 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217 if test -n "$NM_FOR_TARGET"; then
10218 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10219 else
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10222 do
10223 IFS=$as_save_IFS
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10227 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 break 2
10230 fi
10231 done
10232 done
10233
10234 fi
10235 fi
10236 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10237 if test -n "$NM_FOR_TARGET"; then
10238 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10239 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10240 else
10241 echo "$as_me:$LINENO: result: no" >&5
10242 echo "${ECHO_T}no" >&6
10243 fi
10244
10245 fi
10246 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10247 done
10248 fi
10249
10250 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10251 set dummy nm
10252 if test $build = $target ; then
10253 NM_FOR_TARGET="$2"
10254 else
10255 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10256 fi
10257 else
10258 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10259 fi
10260
10261 else
10262 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10263 fi
10264
10265
10266
10267
10268 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10269 if test -n "$with_build_time_tools"; then
10270 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10271 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10272 if test -x $with_build_time_tools/objdump; then
10273 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10274 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10275 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10276 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10277 else
10278 echo "$as_me:$LINENO: result: no" >&5
10279 echo "${ECHO_T}no" >&6
10280 fi
10281 elif test $build != $host && test $have_gcc_for_target = yes; then
10282 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10283 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10284 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10285 fi
10286 fi
10287 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10288 # Extract the first word of "objdump", so it can be a program name with args.
10289 set dummy objdump; ac_word=$2
10290 echo "$as_me:$LINENO: checking for $ac_word" >&5
10291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10292 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295 case $OBJDUMP_FOR_TARGET in
10296 [\\/]* | ?:[\\/]*)
10297 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10298 ;;
10299 *)
10300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301 for as_dir in $gcc_cv_tool_dirs
10302 do
10303 IFS=$as_save_IFS
10304 test -z "$as_dir" && as_dir=.
10305 for ac_exec_ext in '' $ac_executable_extensions; do
10306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10307 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10309 break 2
10310 fi
10311 done
10312 done
10313
10314 ;;
10315 esac
10316 fi
10317 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10318
10319 if test -n "$OBJDUMP_FOR_TARGET"; then
10320 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10321 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10322 else
10323 echo "$as_me:$LINENO: result: no" >&5
10324 echo "${ECHO_T}no" >&6
10325 fi
10326
10327 fi
10328 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10329
10330
10331 if test -n "$OBJDUMP_FOR_TARGET"; then
10332 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10333 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10334 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10335 fi
10336
10337 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10338 for ncn_progname in objdump; do
10339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10340 set dummy ${ncn_progname}; ac_word=$2
10341 echo "$as_me:$LINENO: checking for $ac_word" >&5
10342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10343 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346 if test -n "$OBJDUMP_FOR_TARGET"; then
10347 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10348 else
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH
10351 do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10356 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10358 break 2
10359 fi
10360 done
10361 done
10362
10363 fi
10364 fi
10365 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10366 if test -n "$OBJDUMP_FOR_TARGET"; then
10367 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10368 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10369 else
10370 echo "$as_me:$LINENO: result: no" >&5
10371 echo "${ECHO_T}no" >&6
10372 fi
10373
10374 done
10375 fi
10376
10377 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10378 for ncn_progname in objdump; do
10379 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10380 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10381 if test -x $with_build_time_tools/${ncn_progname}; then
10382 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10383 echo "$as_me:$LINENO: result: yes" >&5
10384 echo "${ECHO_T}yes" >&6
10385 break
10386 else
10387 echo "$as_me:$LINENO: result: no" >&5
10388 echo "${ECHO_T}no" >&6
10389 fi
10390 done
10391 fi
10392
10393 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10394 for ncn_progname in objdump; do
10395 if test -n "$ncn_target_tool_prefix"; then
10396 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10397 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10398 echo "$as_me:$LINENO: checking for $ac_word" >&5
10399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10400 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403 if test -n "$OBJDUMP_FOR_TARGET"; then
10404 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10405 else
10406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407 for as_dir in $PATH
10408 do
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
10411 for ac_exec_ext in '' $ac_executable_extensions; do
10412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10413 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10415 break 2
10416 fi
10417 done
10418 done
10419
10420 fi
10421 fi
10422 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10423 if test -n "$OBJDUMP_FOR_TARGET"; then
10424 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10425 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10426 else
10427 echo "$as_me:$LINENO: result: no" >&5
10428 echo "${ECHO_T}no" >&6
10429 fi
10430
10431 fi
10432 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10434 set dummy ${ncn_progname}; ac_word=$2
10435 echo "$as_me:$LINENO: checking for $ac_word" >&5
10436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10437 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440 if test -n "$OBJDUMP_FOR_TARGET"; then
10441 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10442 else
10443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10445 do
10446 IFS=$as_save_IFS
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
10449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10450 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 break 2
10453 fi
10454 done
10455 done
10456
10457 fi
10458 fi
10459 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10460 if test -n "$OBJDUMP_FOR_TARGET"; then
10461 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10462 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10463 else
10464 echo "$as_me:$LINENO: result: no" >&5
10465 echo "${ECHO_T}no" >&6
10466 fi
10467
10468 fi
10469 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10470 done
10471 fi
10472
10473 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10474 set dummy objdump
10475 if test $build = $target ; then
10476 OBJDUMP_FOR_TARGET="$2"
10477 else
10478 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10479 fi
10480 else
10481 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10482 fi
10483
10484 else
10485 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10486 fi
10487
10488
10489
10490
10491 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10492 if test -n "$with_build_time_tools"; then
10493 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10494 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10495 if test -x $with_build_time_tools/ranlib; then
10496 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10497 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10498 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10499 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10500 else
10501 echo "$as_me:$LINENO: result: no" >&5
10502 echo "${ECHO_T}no" >&6
10503 fi
10504 elif test $build != $host && test $have_gcc_for_target = yes; then
10505 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10506 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10507 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10508 fi
10509 fi
10510 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10511 # Extract the first word of "ranlib", so it can be a program name with args.
10512 set dummy ranlib; ac_word=$2
10513 echo "$as_me:$LINENO: checking for $ac_word" >&5
10514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10515 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 case $RANLIB_FOR_TARGET in
10519 [\\/]* | ?:[\\/]*)
10520 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10521 ;;
10522 *)
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524 for as_dir in $gcc_cv_tool_dirs
10525 do
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10530 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10533 fi
10534 done
10535 done
10536
10537 ;;
10538 esac
10539 fi
10540 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10541
10542 if test -n "$RANLIB_FOR_TARGET"; then
10543 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10544 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10545 else
10546 echo "$as_me:$LINENO: result: no" >&5
10547 echo "${ECHO_T}no" >&6
10548 fi
10549
10550 fi
10551 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10552
10553
10554 if test -n "$RANLIB_FOR_TARGET"; then
10555 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10556 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10557 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10558 fi
10559
10560 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10561 for ncn_progname in ranlib; do
10562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10563 set dummy ${ncn_progname}; ac_word=$2
10564 echo "$as_me:$LINENO: checking for $ac_word" >&5
10565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10566 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569 if test -n "$RANLIB_FOR_TARGET"; then
10570 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10571 else
10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH
10574 do
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10579 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10582 fi
10583 done
10584 done
10585
10586 fi
10587 fi
10588 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10589 if test -n "$RANLIB_FOR_TARGET"; then
10590 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10591 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10592 else
10593 echo "$as_me:$LINENO: result: no" >&5
10594 echo "${ECHO_T}no" >&6
10595 fi
10596
10597 done
10598 fi
10599
10600 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10601 for ncn_progname in ranlib; do
10602 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10603 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10604 if test -x $with_build_time_tools/${ncn_progname}; then
10605 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10606 echo "$as_me:$LINENO: result: yes" >&5
10607 echo "${ECHO_T}yes" >&6
10608 break
10609 else
10610 echo "$as_me:$LINENO: result: no" >&5
10611 echo "${ECHO_T}no" >&6
10612 fi
10613 done
10614 fi
10615
10616 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10617 for ncn_progname in ranlib; do
10618 if test -n "$ncn_target_tool_prefix"; then
10619 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10620 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10621 echo "$as_me:$LINENO: checking for $ac_word" >&5
10622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10623 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626 if test -n "$RANLIB_FOR_TARGET"; then
10627 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10628 else
10629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630 for as_dir in $PATH
10631 do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10636 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640 done
10641 done
10642
10643 fi
10644 fi
10645 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10646 if test -n "$RANLIB_FOR_TARGET"; then
10647 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10648 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10649 else
10650 echo "$as_me:$LINENO: result: no" >&5
10651 echo "${ECHO_T}no" >&6
10652 fi
10653
10654 fi
10655 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10657 set dummy ${ncn_progname}; ac_word=$2
10658 echo "$as_me:$LINENO: checking for $ac_word" >&5
10659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10660 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663 if test -n "$RANLIB_FOR_TARGET"; then
10664 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10665 else
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10668 do
10669 IFS=$as_save_IFS
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10673 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 break 2
10676 fi
10677 done
10678 done
10679
10680 fi
10681 fi
10682 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10683 if test -n "$RANLIB_FOR_TARGET"; then
10684 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10685 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10686 else
10687 echo "$as_me:$LINENO: result: no" >&5
10688 echo "${ECHO_T}no" >&6
10689 fi
10690
10691 fi
10692 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10693 done
10694 fi
10695
10696 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10697 set dummy ranlib
10698 if test $build = $target ; then
10699 RANLIB_FOR_TARGET="$2"
10700 else
10701 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10702 fi
10703 else
10704 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10705 fi
10706
10707 else
10708 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10709 fi
10710
10711
10712
10713
10714 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10715 if test -n "$with_build_time_tools"; then
10716 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10717 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10718 if test -x $with_build_time_tools/strip; then
10719 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10720 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10721 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10722 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10723 else
10724 echo "$as_me:$LINENO: result: no" >&5
10725 echo "${ECHO_T}no" >&6
10726 fi
10727 elif test $build != $host && test $have_gcc_for_target = yes; then
10728 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10729 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10730 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10731 fi
10732 fi
10733 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10734 # Extract the first word of "strip", so it can be a program name with args.
10735 set dummy strip; ac_word=$2
10736 echo "$as_me:$LINENO: checking for $ac_word" >&5
10737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10738 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741 case $STRIP_FOR_TARGET in
10742 [\\/]* | ?:[\\/]*)
10743 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10744 ;;
10745 *)
10746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747 for as_dir in $gcc_cv_tool_dirs
10748 do
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10753 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 break 2
10756 fi
10757 done
10758 done
10759
10760 ;;
10761 esac
10762 fi
10763 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10764
10765 if test -n "$STRIP_FOR_TARGET"; then
10766 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10767 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10768 else
10769 echo "$as_me:$LINENO: result: no" >&5
10770 echo "${ECHO_T}no" >&6
10771 fi
10772
10773 fi
10774 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10775
10776
10777 if test -n "$STRIP_FOR_TARGET"; then
10778 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10779 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10780 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10781 fi
10782
10783 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10784 for ncn_progname in strip; do
10785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10786 set dummy ${ncn_progname}; ac_word=$2
10787 echo "$as_me:$LINENO: checking for $ac_word" >&5
10788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10789 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 if test -n "$STRIP_FOR_TARGET"; then
10793 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10794 else
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10797 do
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10805 fi
10806 done
10807 done
10808
10809 fi
10810 fi
10811 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10812 if test -n "$STRIP_FOR_TARGET"; then
10813 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10814 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10815 else
10816 echo "$as_me:$LINENO: result: no" >&5
10817 echo "${ECHO_T}no" >&6
10818 fi
10819
10820 done
10821 fi
10822
10823 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10824 for ncn_progname in strip; do
10825 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10826 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10827 if test -x $with_build_time_tools/${ncn_progname}; then
10828 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10829 echo "$as_me:$LINENO: result: yes" >&5
10830 echo "${ECHO_T}yes" >&6
10831 break
10832 else
10833 echo "$as_me:$LINENO: result: no" >&5
10834 echo "${ECHO_T}no" >&6
10835 fi
10836 done
10837 fi
10838
10839 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10840 for ncn_progname in strip; do
10841 if test -n "$ncn_target_tool_prefix"; then
10842 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10843 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10844 echo "$as_me:$LINENO: checking for $ac_word" >&5
10845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10846 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849 if test -n "$STRIP_FOR_TARGET"; then
10850 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10851 else
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10854 do
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10859 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10862 fi
10863 done
10864 done
10865
10866 fi
10867 fi
10868 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10869 if test -n "$STRIP_FOR_TARGET"; then
10870 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10871 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10872 else
10873 echo "$as_me:$LINENO: result: no" >&5
10874 echo "${ECHO_T}no" >&6
10875 fi
10876
10877 fi
10878 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10880 set dummy ${ncn_progname}; ac_word=$2
10881 echo "$as_me:$LINENO: checking for $ac_word" >&5
10882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10883 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886 if test -n "$STRIP_FOR_TARGET"; then
10887 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10888 else
10889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890 for as_dir in $PATH
10891 do
10892 IFS=$as_save_IFS
10893 test -z "$as_dir" && as_dir=.
10894 for ac_exec_ext in '' $ac_executable_extensions; do
10895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10896 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10898 break 2
10899 fi
10900 done
10901 done
10902
10903 fi
10904 fi
10905 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10906 if test -n "$STRIP_FOR_TARGET"; then
10907 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10908 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10909 else
10910 echo "$as_me:$LINENO: result: no" >&5
10911 echo "${ECHO_T}no" >&6
10912 fi
10913
10914 fi
10915 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10916 done
10917 fi
10918
10919 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10920 set dummy strip
10921 if test $build = $target ; then
10922 STRIP_FOR_TARGET="$2"
10923 else
10924 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10925 fi
10926 else
10927 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
10928 fi
10929
10930 else
10931 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10932 fi
10933
10934
10935
10936
10937 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10938 if test -n "$with_build_time_tools"; then
10939 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10940 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
10941 if test -x $with_build_time_tools/windres; then
10942 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10943 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10944 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10945 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
10946 else
10947 echo "$as_me:$LINENO: result: no" >&5
10948 echo "${ECHO_T}no" >&6
10949 fi
10950 elif test $build != $host && test $have_gcc_for_target = yes; then
10951 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10952 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10953 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10954 fi
10955 fi
10956 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10957 # Extract the first word of "windres", so it can be a program name with args.
10958 set dummy windres; ac_word=$2
10959 echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10961 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964 case $WINDRES_FOR_TARGET in
10965 [\\/]* | ?:[\\/]*)
10966 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10967 ;;
10968 *)
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $gcc_cv_tool_dirs
10971 do
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10976 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10979 fi
10980 done
10981 done
10982
10983 ;;
10984 esac
10985 fi
10986 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10987
10988 if test -n "$WINDRES_FOR_TARGET"; then
10989 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10990 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10991 else
10992 echo "$as_me:$LINENO: result: no" >&5
10993 echo "${ECHO_T}no" >&6
10994 fi
10995
10996 fi
10997 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10998
10999
11000 if test -n "$WINDRES_FOR_TARGET"; then
11001 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11002 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11003 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11004 fi
11005
11006 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11007 for ncn_progname in windres; do
11008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11009 set dummy ${ncn_progname}; ac_word=$2
11010 echo "$as_me:$LINENO: checking for $ac_word" >&5
11011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11012 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015 if test -n "$WINDRES_FOR_TARGET"; then
11016 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11017 else
11018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019 for as_dir in $PATH
11020 do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029 done
11030 done
11031
11032 fi
11033 fi
11034 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11035 if test -n "$WINDRES_FOR_TARGET"; then
11036 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11037 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11038 else
11039 echo "$as_me:$LINENO: result: no" >&5
11040 echo "${ECHO_T}no" >&6
11041 fi
11042
11043 done
11044 fi
11045
11046 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11047 for ncn_progname in windres; do
11048 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11049 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11050 if test -x $with_build_time_tools/${ncn_progname}; then
11051 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11052 echo "$as_me:$LINENO: result: yes" >&5
11053 echo "${ECHO_T}yes" >&6
11054 break
11055 else
11056 echo "$as_me:$LINENO: result: no" >&5
11057 echo "${ECHO_T}no" >&6
11058 fi
11059 done
11060 fi
11061
11062 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11063 for ncn_progname in windres; do
11064 if test -n "$ncn_target_tool_prefix"; then
11065 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11066 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11067 echo "$as_me:$LINENO: checking for $ac_word" >&5
11068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11069 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072 if test -n "$WINDRES_FOR_TARGET"; then
11073 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11074 else
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11077 do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086 done
11087 done
11088
11089 fi
11090 fi
11091 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11092 if test -n "$WINDRES_FOR_TARGET"; then
11093 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11094 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11095 else
11096 echo "$as_me:$LINENO: result: no" >&5
11097 echo "${ECHO_T}no" >&6
11098 fi
11099
11100 fi
11101 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11103 set dummy ${ncn_progname}; ac_word=$2
11104 echo "$as_me:$LINENO: checking for $ac_word" >&5
11105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11106 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 else
11109 if test -n "$WINDRES_FOR_TARGET"; then
11110 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11111 else
11112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in $PATH
11114 do
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11119 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11121 break 2
11122 fi
11123 done
11124 done
11125
11126 fi
11127 fi
11128 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11129 if test -n "$WINDRES_FOR_TARGET"; then
11130 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11131 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11132 else
11133 echo "$as_me:$LINENO: result: no" >&5
11134 echo "${ECHO_T}no" >&6
11135 fi
11136
11137 fi
11138 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11139 done
11140 fi
11141
11142 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11143 set dummy windres
11144 if test $build = $target ; then
11145 WINDRES_FOR_TARGET="$2"
11146 else
11147 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11148 fi
11149 else
11150 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11151 fi
11152
11153 else
11154 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11155 fi
11156
11157
11158
11159
11160 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11161 if test -n "$with_build_time_tools"; then
11162 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11163 echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11164 if test -x $with_build_time_tools/windmc; then
11165 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11166 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11167 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11168 echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11169 else
11170 echo "$as_me:$LINENO: result: no" >&5
11171 echo "${ECHO_T}no" >&6
11172 fi
11173 elif test $build != $host && test $have_gcc_for_target = yes; then
11174 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11175 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11176 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11177 fi
11178 fi
11179 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11180 # Extract the first word of "windmc", so it can be a program name with args.
11181 set dummy windmc; ac_word=$2
11182 echo "$as_me:$LINENO: checking for $ac_word" >&5
11183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11184 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 else
11187 case $WINDMC_FOR_TARGET in
11188 [\\/]* | ?:[\\/]*)
11189 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11190 ;;
11191 *)
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $gcc_cv_tool_dirs
11194 do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11199 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11202 fi
11203 done
11204 done
11205
11206 ;;
11207 esac
11208 fi
11209 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11210
11211 if test -n "$WINDMC_FOR_TARGET"; then
11212 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11213 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11214 else
11215 echo "$as_me:$LINENO: result: no" >&5
11216 echo "${ECHO_T}no" >&6
11217 fi
11218
11219 fi
11220 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11221
11222
11223 if test -n "$WINDMC_FOR_TARGET"; then
11224 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11225 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11226 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11227 fi
11228
11229 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11230 for ncn_progname in windmc; do
11231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11232 set dummy ${ncn_progname}; ac_word=$2
11233 echo "$as_me:$LINENO: checking for $ac_word" >&5
11234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11235 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238 if test -n "$WINDMC_FOR_TARGET"; then
11239 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11240 else
11241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11243 do
11244 IFS=$as_save_IFS
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11248 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 break 2
11251 fi
11252 done
11253 done
11254
11255 fi
11256 fi
11257 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11258 if test -n "$WINDMC_FOR_TARGET"; then
11259 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11260 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11261 else
11262 echo "$as_me:$LINENO: result: no" >&5
11263 echo "${ECHO_T}no" >&6
11264 fi
11265
11266 done
11267 fi
11268
11269 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11270 for ncn_progname in windmc; do
11271 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11272 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11273 if test -x $with_build_time_tools/${ncn_progname}; then
11274 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11275 echo "$as_me:$LINENO: result: yes" >&5
11276 echo "${ECHO_T}yes" >&6
11277 break
11278 else
11279 echo "$as_me:$LINENO: result: no" >&5
11280 echo "${ECHO_T}no" >&6
11281 fi
11282 done
11283 fi
11284
11285 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11286 for ncn_progname in windmc; do
11287 if test -n "$ncn_target_tool_prefix"; then
11288 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11289 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11290 echo "$as_me:$LINENO: checking for $ac_word" >&5
11291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11292 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295 if test -n "$WINDMC_FOR_TARGET"; then
11296 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11297 else
11298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11300 do
11301 IFS=$as_save_IFS
11302 test -z "$as_dir" && as_dir=.
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11305 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 break 2
11308 fi
11309 done
11310 done
11311
11312 fi
11313 fi
11314 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11315 if test -n "$WINDMC_FOR_TARGET"; then
11316 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11317 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11318 else
11319 echo "$as_me:$LINENO: result: no" >&5
11320 echo "${ECHO_T}no" >&6
11321 fi
11322
11323 fi
11324 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11326 set dummy ${ncn_progname}; ac_word=$2
11327 echo "$as_me:$LINENO: checking for $ac_word" >&5
11328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11329 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332 if test -n "$WINDMC_FOR_TARGET"; then
11333 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11334 else
11335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 for as_dir in $PATH
11337 do
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
11340 for ac_exec_ext in '' $ac_executable_extensions; do
11341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11342 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 break 2
11345 fi
11346 done
11347 done
11348
11349 fi
11350 fi
11351 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11352 if test -n "$WINDMC_FOR_TARGET"; then
11353 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11354 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11355 else
11356 echo "$as_me:$LINENO: result: no" >&5
11357 echo "${ECHO_T}no" >&6
11358 fi
11359
11360 fi
11361 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11362 done
11363 fi
11364
11365 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11366 set dummy windmc
11367 if test $build = $target ; then
11368 WINDMC_FOR_TARGET="$2"
11369 else
11370 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11371 fi
11372 else
11373 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11374 fi
11375
11376 else
11377 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11378 fi
11379
11380
11381 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11382
11383 echo "$as_me:$LINENO: checking where to find the target ar" >&5
11384 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11385 if test "x${build}" != "x${host}" ; then
11386 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11387 # We already found the complete path
11388 ac_dir=`dirname $AR_FOR_TARGET`
11389 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11390 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11391 else
11392 # Canadian cross, just use what we found
11393 echo "$as_me:$LINENO: result: pre-installed" >&5
11394 echo "${ECHO_T}pre-installed" >&6
11395 fi
11396 else
11397 ok=yes
11398 case " ${configdirs} " in
11399 *" binutils "*) ;;
11400 *) ok=no ;;
11401 esac
11402
11403 if test $ok = yes; then
11404 # An in-tree tool is available and we can use it
11405 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11406 echo "$as_me:$LINENO: result: just compiled" >&5
11407 echo "${ECHO_T}just compiled" >&6
11408 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11409 # We already found the complete path
11410 ac_dir=`dirname $AR_FOR_TARGET`
11411 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11412 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11413 elif test "x$target" = "x$host"; then
11414 # We can use an host tool
11415 AR_FOR_TARGET='$(AR)'
11416 echo "$as_me:$LINENO: result: host tool" >&5
11417 echo "${ECHO_T}host tool" >&6
11418 else
11419 # We need a cross tool
11420 echo "$as_me:$LINENO: result: pre-installed" >&5
11421 echo "${ECHO_T}pre-installed" >&6
11422 fi
11423 fi
11424
11425 echo "$as_me:$LINENO: checking where to find the target as" >&5
11426 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11427 if test "x${build}" != "x${host}" ; then
11428 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11429 # We already found the complete path
11430 ac_dir=`dirname $AS_FOR_TARGET`
11431 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11432 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11433 else
11434 # Canadian cross, just use what we found
11435 echo "$as_me:$LINENO: result: pre-installed" >&5
11436 echo "${ECHO_T}pre-installed" >&6
11437 fi
11438 else
11439 ok=yes
11440 case " ${configdirs} " in
11441 *" gas "*) ;;
11442 *) ok=no ;;
11443 esac
11444
11445 if test $ok = yes; then
11446 # An in-tree tool is available and we can use it
11447 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11448 echo "$as_me:$LINENO: result: just compiled" >&5
11449 echo "${ECHO_T}just compiled" >&6
11450 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11451 # We already found the complete path
11452 ac_dir=`dirname $AS_FOR_TARGET`
11453 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11454 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11455 elif test "x$target" = "x$host"; then
11456 # We can use an host tool
11457 AS_FOR_TARGET='$(AS)'
11458 echo "$as_me:$LINENO: result: host tool" >&5
11459 echo "${ECHO_T}host tool" >&6
11460 else
11461 # We need a cross tool
11462 echo "$as_me:$LINENO: result: pre-installed" >&5
11463 echo "${ECHO_T}pre-installed" >&6
11464 fi
11465 fi
11466
11467 echo "$as_me:$LINENO: checking where to find the target cc" >&5
11468 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11469 if test "x${build}" != "x${host}" ; then
11470 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11471 # We already found the complete path
11472 ac_dir=`dirname $CC_FOR_TARGET`
11473 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11474 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11475 else
11476 # Canadian cross, just use what we found
11477 echo "$as_me:$LINENO: result: pre-installed" >&5
11478 echo "${ECHO_T}pre-installed" >&6
11479 fi
11480 else
11481 ok=yes
11482 case " ${configdirs} " in
11483 *" gcc "*) ;;
11484 *) ok=no ;;
11485 esac
11486
11487 if test $ok = yes; then
11488 # An in-tree tool is available and we can use it
11489 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11490 echo "$as_me:$LINENO: result: just compiled" >&5
11491 echo "${ECHO_T}just compiled" >&6
11492 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11493 # We already found the complete path
11494 ac_dir=`dirname $CC_FOR_TARGET`
11495 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11496 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11497 elif test "x$target" = "x$host"; then
11498 # We can use an host tool
11499 CC_FOR_TARGET='$(CC)'
11500 echo "$as_me:$LINENO: result: host tool" >&5
11501 echo "${ECHO_T}host tool" >&6
11502 else
11503 # We need a cross tool
11504 echo "$as_me:$LINENO: result: pre-installed" >&5
11505 echo "${ECHO_T}pre-installed" >&6
11506 fi
11507 fi
11508
11509 echo "$as_me:$LINENO: checking where to find the target c++" >&5
11510 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11511 if test "x${build}" != "x${host}" ; then
11512 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11513 # We already found the complete path
11514 ac_dir=`dirname $CXX_FOR_TARGET`
11515 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11516 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11517 else
11518 # Canadian cross, just use what we found
11519 echo "$as_me:$LINENO: result: pre-installed" >&5
11520 echo "${ECHO_T}pre-installed" >&6
11521 fi
11522 else
11523 ok=yes
11524 case " ${configdirs} " in
11525 *" gcc "*) ;;
11526 *) ok=no ;;
11527 esac
11528 case ,${enable_languages}, in
11529 *,c++,*) ;;
11530 *) ok=no ;;
11531 esac
11532 if test $ok = yes; then
11533 # An in-tree tool is available and we can use it
11534 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'
11535 echo "$as_me:$LINENO: result: just compiled" >&5
11536 echo "${ECHO_T}just compiled" >&6
11537 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11538 # We already found the complete path
11539 ac_dir=`dirname $CXX_FOR_TARGET`
11540 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11541 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11542 elif test "x$target" = "x$host"; then
11543 # We can use an host tool
11544 CXX_FOR_TARGET='$(CXX)'
11545 echo "$as_me:$LINENO: result: host tool" >&5
11546 echo "${ECHO_T}host tool" >&6
11547 else
11548 # We need a cross tool
11549 echo "$as_me:$LINENO: result: pre-installed" >&5
11550 echo "${ECHO_T}pre-installed" >&6
11551 fi
11552 fi
11553
11554 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11555 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11556 if test "x${build}" != "x${host}" ; then
11557 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11558 # We already found the complete path
11559 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11560 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11561 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11562 else
11563 # Canadian cross, just use what we found
11564 echo "$as_me:$LINENO: result: pre-installed" >&5
11565 echo "${ECHO_T}pre-installed" >&6
11566 fi
11567 else
11568 ok=yes
11569 case " ${configdirs} " in
11570 *" gcc "*) ;;
11571 *) ok=no ;;
11572 esac
11573 case ,${enable_languages}, in
11574 *,c++,*) ;;
11575 *) ok=no ;;
11576 esac
11577 if test $ok = yes; then
11578 # An in-tree tool is available and we can use it
11579 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'
11580 echo "$as_me:$LINENO: result: just compiled" >&5
11581 echo "${ECHO_T}just compiled" >&6
11582 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11583 # We already found the complete path
11584 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11585 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11586 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11587 elif test "x$target" = "x$host"; then
11588 # We can use an host tool
11589 RAW_CXX_FOR_TARGET='$(CXX)'
11590 echo "$as_me:$LINENO: result: host tool" >&5
11591 echo "${ECHO_T}host tool" >&6
11592 else
11593 # We need a cross tool
11594 echo "$as_me:$LINENO: result: pre-installed" >&5
11595 echo "${ECHO_T}pre-installed" >&6
11596 fi
11597 fi
11598
11599 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11600 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11601 if test "x${build}" != "x${host}" ; then
11602 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11603 # We already found the complete path
11604 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11605 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11606 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11607 else
11608 # Canadian cross, just use what we found
11609 echo "$as_me:$LINENO: result: pre-installed" >&5
11610 echo "${ECHO_T}pre-installed" >&6
11611 fi
11612 else
11613 ok=yes
11614 case " ${configdirs} " in
11615 *" binutils "*) ;;
11616 *) ok=no ;;
11617 esac
11618
11619 if test $ok = yes; then
11620 # An in-tree tool is available and we can use it
11621 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11622 echo "$as_me:$LINENO: result: just compiled" >&5
11623 echo "${ECHO_T}just compiled" >&6
11624 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11625 # We already found the complete path
11626 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11627 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11628 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11629 elif test "x$target" = "x$host"; then
11630 # We can use an host tool
11631 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11632 echo "$as_me:$LINENO: result: host tool" >&5
11633 echo "${ECHO_T}host tool" >&6
11634 else
11635 # We need a cross tool
11636 echo "$as_me:$LINENO: result: pre-installed" >&5
11637 echo "${ECHO_T}pre-installed" >&6
11638 fi
11639 fi
11640
11641 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11642 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11643 if test "x${build}" != "x${host}" ; then
11644 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11645 # We already found the complete path
11646 ac_dir=`dirname $GCC_FOR_TARGET`
11647 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11648 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11649 else
11650 # Canadian cross, just use what we found
11651 echo "$as_me:$LINENO: result: pre-installed" >&5
11652 echo "${ECHO_T}pre-installed" >&6
11653 fi
11654 else
11655 ok=yes
11656 case " ${configdirs} " in
11657 *" gcc "*) ;;
11658 *) ok=no ;;
11659 esac
11660
11661 if test $ok = yes; then
11662 # An in-tree tool is available and we can use it
11663 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11664 echo "$as_me:$LINENO: result: just compiled" >&5
11665 echo "${ECHO_T}just compiled" >&6
11666 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11667 # We already found the complete path
11668 ac_dir=`dirname $GCC_FOR_TARGET`
11669 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11670 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11671 elif test "x$target" = "x$host"; then
11672 # We can use an host tool
11673 GCC_FOR_TARGET='$()'
11674 echo "$as_me:$LINENO: result: host tool" >&5
11675 echo "${ECHO_T}host tool" >&6
11676 else
11677 # We need a cross tool
11678 echo "$as_me:$LINENO: result: pre-installed" >&5
11679 echo "${ECHO_T}pre-installed" >&6
11680 fi
11681 fi
11682
11683 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11684 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11685 if test "x${build}" != "x${host}" ; then
11686 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11687 # We already found the complete path
11688 ac_dir=`dirname $GCJ_FOR_TARGET`
11689 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11690 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11691 else
11692 # Canadian cross, just use what we found
11693 echo "$as_me:$LINENO: result: pre-installed" >&5
11694 echo "${ECHO_T}pre-installed" >&6
11695 fi
11696 else
11697 ok=yes
11698 case " ${configdirs} " in
11699 *" gcc "*) ;;
11700 *) ok=no ;;
11701 esac
11702 case ,${enable_languages}, in
11703 *,java,*) ;;
11704 *) ok=no ;;
11705 esac
11706 if test $ok = yes; then
11707 # An in-tree tool is available and we can use it
11708 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11709 echo "$as_me:$LINENO: result: just compiled" >&5
11710 echo "${ECHO_T}just compiled" >&6
11711 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11712 # We already found the complete path
11713 ac_dir=`dirname $GCJ_FOR_TARGET`
11714 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11715 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11716 elif test "x$target" = "x$host"; then
11717 # We can use an host tool
11718 GCJ_FOR_TARGET='$(GCJ)'
11719 echo "$as_me:$LINENO: result: host tool" >&5
11720 echo "${ECHO_T}host tool" >&6
11721 else
11722 # We need a cross tool
11723 echo "$as_me:$LINENO: result: pre-installed" >&5
11724 echo "${ECHO_T}pre-installed" >&6
11725 fi
11726 fi
11727
11728 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11729 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11730 if test "x${build}" != "x${host}" ; then
11731 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11732 # We already found the complete path
11733 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11734 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11735 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11736 else
11737 # Canadian cross, just use what we found
11738 echo "$as_me:$LINENO: result: pre-installed" >&5
11739 echo "${ECHO_T}pre-installed" >&6
11740 fi
11741 else
11742 ok=yes
11743 case " ${configdirs} " in
11744 *" gcc "*) ;;
11745 *) ok=no ;;
11746 esac
11747 case ,${enable_languages}, in
11748 *,fortran,*) ;;
11749 *) ok=no ;;
11750 esac
11751 if test $ok = yes; then
11752 # An in-tree tool is available and we can use it
11753 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11754 echo "$as_me:$LINENO: result: just compiled" >&5
11755 echo "${ECHO_T}just compiled" >&6
11756 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11757 # We already found the complete path
11758 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11759 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11760 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11761 elif test "x$target" = "x$host"; then
11762 # We can use an host tool
11763 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11764 echo "$as_me:$LINENO: result: host tool" >&5
11765 echo "${ECHO_T}host tool" >&6
11766 else
11767 # We need a cross tool
11768 echo "$as_me:$LINENO: result: pre-installed" >&5
11769 echo "${ECHO_T}pre-installed" >&6
11770 fi
11771 fi
11772
11773 echo "$as_me:$LINENO: checking where to find the target ld" >&5
11774 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
11775 if test "x${build}" != "x${host}" ; then
11776 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11777 # We already found the complete path
11778 ac_dir=`dirname $LD_FOR_TARGET`
11779 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11780 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11781 else
11782 # Canadian cross, just use what we found
11783 echo "$as_me:$LINENO: result: pre-installed" >&5
11784 echo "${ECHO_T}pre-installed" >&6
11785 fi
11786 else
11787 ok=yes
11788 case " ${configdirs} " in
11789 *" ld "*) ;;
11790 *) ok=no ;;
11791 esac
11792
11793 if test $ok = yes; then
11794 # An in-tree tool is available and we can use it
11795 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11796 echo "$as_me:$LINENO: result: just compiled" >&5
11797 echo "${ECHO_T}just compiled" >&6
11798 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11799 # We already found the complete path
11800 ac_dir=`dirname $LD_FOR_TARGET`
11801 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11802 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11803 elif test "x$target" = "x$host"; then
11804 # We can use an host tool
11805 LD_FOR_TARGET='$(LD)'
11806 echo "$as_me:$LINENO: result: host tool" >&5
11807 echo "${ECHO_T}host tool" >&6
11808 else
11809 # We need a cross tool
11810 echo "$as_me:$LINENO: result: pre-installed" >&5
11811 echo "${ECHO_T}pre-installed" >&6
11812 fi
11813 fi
11814
11815 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11816 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
11817 if test "x${build}" != "x${host}" ; then
11818 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11819 # We already found the complete path
11820 ac_dir=`dirname $LIPO_FOR_TARGET`
11821 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11822 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11823 else
11824 # Canadian cross, just use what we found
11825 echo "$as_me:$LINENO: result: pre-installed" >&5
11826 echo "${ECHO_T}pre-installed" >&6
11827 fi
11828 else
11829 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11830 # We already found the complete path
11831 ac_dir=`dirname $LIPO_FOR_TARGET`
11832 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11833 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11834 elif test "x$target" = "x$host"; then
11835 # We can use an host tool
11836 LIPO_FOR_TARGET='$(LIPO)'
11837 echo "$as_me:$LINENO: result: host tool" >&5
11838 echo "${ECHO_T}host tool" >&6
11839 else
11840 # We need a cross tool
11841 echo "$as_me:$LINENO: result: pre-installed" >&5
11842 echo "${ECHO_T}pre-installed" >&6
11843 fi
11844 fi
11845
11846 echo "$as_me:$LINENO: checking where to find the target nm" >&5
11847 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
11848 if test "x${build}" != "x${host}" ; then
11849 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11850 # We already found the complete path
11851 ac_dir=`dirname $NM_FOR_TARGET`
11852 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11853 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11854 else
11855 # Canadian cross, just use what we found
11856 echo "$as_me:$LINENO: result: pre-installed" >&5
11857 echo "${ECHO_T}pre-installed" >&6
11858 fi
11859 else
11860 ok=yes
11861 case " ${configdirs} " in
11862 *" binutils "*) ;;
11863 *) ok=no ;;
11864 esac
11865
11866 if test $ok = yes; then
11867 # An in-tree tool is available and we can use it
11868 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11869 echo "$as_me:$LINENO: result: just compiled" >&5
11870 echo "${ECHO_T}just compiled" >&6
11871 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11872 # We already found the complete path
11873 ac_dir=`dirname $NM_FOR_TARGET`
11874 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11875 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11876 elif test "x$target" = "x$host"; then
11877 # We can use an host tool
11878 NM_FOR_TARGET='$(NM)'
11879 echo "$as_me:$LINENO: result: host tool" >&5
11880 echo "${ECHO_T}host tool" >&6
11881 else
11882 # We need a cross tool
11883 echo "$as_me:$LINENO: result: pre-installed" >&5
11884 echo "${ECHO_T}pre-installed" >&6
11885 fi
11886 fi
11887
11888 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11889 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
11890 if test "x${build}" != "x${host}" ; then
11891 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11892 # We already found the complete path
11893 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11894 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11895 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11896 else
11897 # Canadian cross, just use what we found
11898 echo "$as_me:$LINENO: result: pre-installed" >&5
11899 echo "${ECHO_T}pre-installed" >&6
11900 fi
11901 else
11902 ok=yes
11903 case " ${configdirs} " in
11904 *" binutils "*) ;;
11905 *) ok=no ;;
11906 esac
11907
11908 if test $ok = yes; then
11909 # An in-tree tool is available and we can use it
11910 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11911 echo "$as_me:$LINENO: result: just compiled" >&5
11912 echo "${ECHO_T}just compiled" >&6
11913 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11914 # We already found the complete path
11915 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11916 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11917 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11918 elif test "x$target" = "x$host"; then
11919 # We can use an host tool
11920 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11921 echo "$as_me:$LINENO: result: host tool" >&5
11922 echo "${ECHO_T}host tool" >&6
11923 else
11924 # We need a cross tool
11925 echo "$as_me:$LINENO: result: pre-installed" >&5
11926 echo "${ECHO_T}pre-installed" >&6
11927 fi
11928 fi
11929
11930 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11931 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
11932 if test "x${build}" != "x${host}" ; then
11933 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11934 # We already found the complete path
11935 ac_dir=`dirname $RANLIB_FOR_TARGET`
11936 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11937 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11938 else
11939 # Canadian cross, just use what we found
11940 echo "$as_me:$LINENO: result: pre-installed" >&5
11941 echo "${ECHO_T}pre-installed" >&6
11942 fi
11943 else
11944 ok=yes
11945 case " ${configdirs} " in
11946 *" binutils "*) ;;
11947 *) ok=no ;;
11948 esac
11949
11950 if test $ok = yes; then
11951 # An in-tree tool is available and we can use it
11952 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11953 echo "$as_me:$LINENO: result: just compiled" >&5
11954 echo "${ECHO_T}just compiled" >&6
11955 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11956 # We already found the complete path
11957 ac_dir=`dirname $RANLIB_FOR_TARGET`
11958 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11959 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11960 elif test "x$target" = "x$host"; then
11961 # We can use an host tool
11962 RANLIB_FOR_TARGET='$(RANLIB)'
11963 echo "$as_me:$LINENO: result: host tool" >&5
11964 echo "${ECHO_T}host tool" >&6
11965 else
11966 # We need a cross tool
11967 echo "$as_me:$LINENO: result: pre-installed" >&5
11968 echo "${ECHO_T}pre-installed" >&6
11969 fi
11970 fi
11971
11972 echo "$as_me:$LINENO: checking where to find the target strip" >&5
11973 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
11974 if test "x${build}" != "x${host}" ; then
11975 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11976 # We already found the complete path
11977 ac_dir=`dirname $STRIP_FOR_TARGET`
11978 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11979 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11980 else
11981 # Canadian cross, just use what we found
11982 echo "$as_me:$LINENO: result: pre-installed" >&5
11983 echo "${ECHO_T}pre-installed" >&6
11984 fi
11985 else
11986 ok=yes
11987 case " ${configdirs} " in
11988 *" binutils "*) ;;
11989 *) ok=no ;;
11990 esac
11991
11992 if test $ok = yes; then
11993 # An in-tree tool is available and we can use it
11994 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11995 echo "$as_me:$LINENO: result: just compiled" >&5
11996 echo "${ECHO_T}just compiled" >&6
11997 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11998 # We already found the complete path
11999 ac_dir=`dirname $STRIP_FOR_TARGET`
12000 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12001 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12002 elif test "x$target" = "x$host"; then
12003 # We can use an host tool
12004 STRIP_FOR_TARGET='$(STRIP)'
12005 echo "$as_me:$LINENO: result: host tool" >&5
12006 echo "${ECHO_T}host tool" >&6
12007 else
12008 # We need a cross tool
12009 echo "$as_me:$LINENO: result: pre-installed" >&5
12010 echo "${ECHO_T}pre-installed" >&6
12011 fi
12012 fi
12013
12014 echo "$as_me:$LINENO: checking where to find the target windres" >&5
12015 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
12016 if test "x${build}" != "x${host}" ; then
12017 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12018 # We already found the complete path
12019 ac_dir=`dirname $WINDRES_FOR_TARGET`
12020 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12021 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12022 else
12023 # Canadian cross, just use what we found
12024 echo "$as_me:$LINENO: result: pre-installed" >&5
12025 echo "${ECHO_T}pre-installed" >&6
12026 fi
12027 else
12028 ok=yes
12029 case " ${configdirs} " in
12030 *" binutils "*) ;;
12031 *) ok=no ;;
12032 esac
12033
12034 if test $ok = yes; then
12035 # An in-tree tool is available and we can use it
12036 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12037 echo "$as_me:$LINENO: result: just compiled" >&5
12038 echo "${ECHO_T}just compiled" >&6
12039 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12040 # We already found the complete path
12041 ac_dir=`dirname $WINDRES_FOR_TARGET`
12042 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12043 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12044 elif test "x$target" = "x$host"; then
12045 # We can use an host tool
12046 WINDRES_FOR_TARGET='$(WINDRES)'
12047 echo "$as_me:$LINENO: result: host tool" >&5
12048 echo "${ECHO_T}host tool" >&6
12049 else
12050 # We need a cross tool
12051 echo "$as_me:$LINENO: result: pre-installed" >&5
12052 echo "${ECHO_T}pre-installed" >&6
12053 fi
12054 fi
12055
12056 echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12057 echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12058 if test "x${build}" != "x${host}" ; then
12059 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12060 # We already found the complete path
12061 ac_dir=`dirname $WINDMC_FOR_TARGET`
12062 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12063 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12064 else
12065 # Canadian cross, just use what we found
12066 echo "$as_me:$LINENO: result: pre-installed" >&5
12067 echo "${ECHO_T}pre-installed" >&6
12068 fi
12069 else
12070 ok=yes
12071 case " ${configdirs} " in
12072 *" binutils "*) ;;
12073 *) ok=no ;;
12074 esac
12075
12076 if test $ok = yes; then
12077 # An in-tree tool is available and we can use it
12078 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12079 echo "$as_me:$LINENO: result: just compiled" >&5
12080 echo "${ECHO_T}just compiled" >&6
12081 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12082 # We already found the complete path
12083 ac_dir=`dirname $WINDMC_FOR_TARGET`
12084 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12085 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12086 elif test "x$target" = "x$host"; then
12087 # We can use an host tool
12088 WINDMC_FOR_TARGET='$(WINDMC)'
12089 echo "$as_me:$LINENO: result: host tool" >&5
12090 echo "${ECHO_T}host tool" >&6
12091 else
12092 # We need a cross tool
12093 echo "$as_me:$LINENO: result: pre-installed" >&5
12094 echo "${ECHO_T}pre-installed" >&6
12095 fi
12096 fi
12097
12098
12099
12100
12101
12102 # Certain tools may need extra flags.
12103 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12104 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12105 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12106
12107 # When building target libraries, except in a Canadian cross, we use
12108 # the same toolchain as the compiler we just built.
12109 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12110 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12111 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12112 if test $host = $build; then
12113 case " $configdirs " in
12114 *" gcc "*)
12115 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12116 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12117 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12118 ;;
12119 esac
12120 fi
12121
12122
12123
12124
12125
12126 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12127 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12128 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12129 if test "${enable_maintainer_mode+set}" = set; then
12130 enableval="$enable_maintainer_mode"
12131 USE_MAINTAINER_MODE=$enableval
12132 else
12133 USE_MAINTAINER_MODE=no
12134 fi;
12135 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12136 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12137
12138
12139 if test "$USE_MAINTAINER_MODE" = yes; then
12140 MAINTAINER_MODE_TRUE=
12141 MAINTAINER_MODE_FALSE='#'
12142 else
12143 MAINTAINER_MODE_TRUE='#'
12144 MAINTAINER_MODE_FALSE=
12145 fi
12146 MAINT=$MAINTAINER_MODE_TRUE
12147
12148 # ---------------------
12149 # GCC bootstrap support
12150 # ---------------------
12151
12152 # Stage specific cflags for build.
12153 stage1_cflags="-g"
12154 case $build in
12155 vax-*-*)
12156 case ${GCC} in
12157 yes) stage1_cflags="-g -Wa,-J" ;;
12158 *) stage1_cflags="-g -J" ;;
12159 esac ;;
12160 esac
12161
12162 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12163 if test "$GCC" = yes; then
12164 saved_CFLAGS="$CFLAGS"
12165
12166 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12167 CFLAGS="$CFLAGS -fkeep-inline-functions"
12168 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12169 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176
12177 #if (__GNUC__ < 3) \
12178 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12179 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12180 #error http://gcc.gnu.org/PR29382
12181 #endif
12182
12183 int
12184 main ()
12185 {
12186
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 rm -f conftest.$ac_objext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12193 (eval $ac_compile) 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag"
12201 || test ! -s conftest.err'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try='test -s conftest.$ac_objext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 echo "$as_me:$LINENO: result: yes" >&5
12214 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12215 else
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 echo "$as_me:$LINENO: result: no" >&5
12220 echo "${ECHO_T}no" >&6
12221 fi
12222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12223
12224 CFLAGS="$saved_CFLAGS"
12225 fi
12226
12227
12228
12229 # Enable --enable-checking in stage1 of the compiler.
12230 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12231 if test "${enable_stage1_checking+set}" = set; then
12232 enableval="$enable_stage1_checking"
12233 stage1_checking=--enable-checking=${enable_stage1_checking}
12234 else
12235 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12236 stage1_checking=--enable-checking=yes,types
12237 else
12238 stage1_checking=--enable-checking=$enable_checking,types
12239 fi
12240 fi;
12241
12242
12243 # Enable -Werror in bootstrap stage2 and later.
12244 # Check whether --enable-werror or --disable-werror was given.
12245 if test "${enable_werror+set}" = set; then
12246 enableval="$enable_werror"
12247
12248 else
12249 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12250 enable_werror=yes
12251 else
12252 enable_werror=no
12253 fi
12254 fi;
12255 case ${enable_werror} in
12256 yes) stage2_werror_flag="--enable-werror-always" ;;
12257 *) stage2_werror_flag="" ;;
12258 esac
12259
12260
12261 # Flags needed to enable html installing and building
12262
12263 # Check whether --with-datarootdir or --without-datarootdir was given.
12264 if test "${with_datarootdir+set}" = set; then
12265 withval="$with_datarootdir"
12266 datarootdir="\${prefix}/${withval}"
12267 else
12268 datarootdir="\${prefix}/share"
12269 fi;
12270
12271
12272 # Check whether --with-docdir or --without-docdir was given.
12273 if test "${with_docdir+set}" = set; then
12274 withval="$with_docdir"
12275 docdir="\${prefix}/${withval}"
12276 else
12277 docdir="\${datarootdir}/doc"
12278 fi;
12279
12280
12281 # Check whether --with-pdfdir or --without-pdfdir was given.
12282 if test "${with_pdfdir+set}" = set; then
12283 withval="$with_pdfdir"
12284 pdfdir="\${prefix}/${withval}"
12285 else
12286 pdfdir="\${docdir}"
12287 fi;
12288
12289
12290 # Check whether --with-htmldir or --without-htmldir was given.
12291 if test "${with_htmldir+set}" = set; then
12292 withval="$with_htmldir"
12293 htmldir="\${prefix}/${withval}"
12294 else
12295 htmldir="\${docdir}"
12296 fi;
12297
12298
12299
12300
12301
12302
12303 ac_config_files="$ac_config_files Makefile"
12304 cat >confcache <<\_ACEOF
12305 # This file is a shell script that caches the results of configure
12306 # tests run on this system so they can be shared between configure
12307 # scripts and configure runs, see configure's option --config-cache.
12308 # It is not useful on other systems. If it contains results you don't
12309 # want to keep, you may remove or edit it.
12310 #
12311 # config.status only pays attention to the cache file if you give it
12312 # the --recheck option to rerun configure.
12313 #
12314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12316 # following values.
12317
12318 _ACEOF
12319
12320 # The following way of writing the cache mishandles newlines in values,
12321 # but we know of no workaround that is simple, portable, and efficient.
12322 # So, don't put newlines in cache variables' values.
12323 # Ultrix sh set writes to stderr and can't be redirected directly,
12324 # and sets the high bit in the cache file unless we assign to the vars.
12325 {
12326 (set) 2>&1 |
12327 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12328 *ac_space=\ *)
12329 # `set' does not quote correctly, so add quotes (double-quote
12330 # substitution turns \\\\ into \\, and sed turns \\ into \).
12331 sed -n \
12332 "s/'/'\\\\''/g;
12333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12334 ;;
12335 *)
12336 # `set' quotes correctly as required by POSIX, so do not add quotes.
12337 sed -n \
12338 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12339 ;;
12340 esac;
12341 } |
12342 sed '
12343 t clear
12344 : clear
12345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12346 t end
12347 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12348 : end' >>confcache
12349 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12350 if test -w $cache_file; then
12351 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12352 cat confcache >$cache_file
12353 else
12354 echo "not updating unwritable cache $cache_file"
12355 fi
12356 fi
12357 rm -f confcache
12358
12359 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12360 # Let make expand exec_prefix.
12361 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12362
12363 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12364 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12365 # trailing colons and then remove the whole line if VPATH becomes empty
12366 # (actually we leave an empty line to preserve line numbers).
12367 if test "x$srcdir" = x.; then
12368 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12369 s/:*\$(srcdir):*/:/;
12370 s/:*\${srcdir}:*/:/;
12371 s/:*@srcdir@:*/:/;
12372 s/^\([^=]*=[ ]*\):*/\1/;
12373 s/:*$//;
12374 s/^[^=]*=[ ]*$//;
12375 }'
12376 fi
12377
12378 # Transform confdefs.h into DEFS.
12379 # Protect against shell expansion while executing Makefile rules.
12380 # Protect against Makefile macro expansion.
12381 #
12382 # If the first sed substitution is executed (which looks for macros that
12383 # take arguments), then we branch to the quote section. Otherwise,
12384 # look for a macro that doesn't take arguments.
12385 cat >confdef2opt.sed <<\_ACEOF
12386 t clear
12387 : clear
12388 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12389 t quote
12390 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12391 t quote
12392 d
12393 : quote
12394 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12395 s,\[,\\&,g
12396 s,\],\\&,g
12397 s,\$,$$,g
12398 p
12399 _ACEOF
12400 # We use echo to avoid assuming a particular line-breaking character.
12401 # The extra dot is to prevent the shell from consuming trailing
12402 # line-breaks from the sub-command output. A line-break within
12403 # single-quotes doesn't work because, if this script is created in a
12404 # platform that uses two characters for line-breaks (e.g., DOS), tr
12405 # would break.
12406 ac_LF_and_DOT=`echo; echo .`
12407 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12408 rm -f confdef2opt.sed
12409
12410
12411 ac_libobjs=
12412 ac_ltlibobjs=
12413 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12414 # 1. Remove the extension, and $U if already installed.
12415 ac_i=`echo "$ac_i" |
12416 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12417 # 2. Add them.
12418 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12419 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12420 done
12421 LIBOBJS=$ac_libobjs
12422
12423 LTLIBOBJS=$ac_ltlibobjs
12424
12425
12426
12427 : ${CONFIG_STATUS=./config.status}
12428 ac_clean_files_save=$ac_clean_files
12429 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12430 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12431 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12432 cat >$CONFIG_STATUS <<_ACEOF
12433 #! $SHELL
12434 # Generated by $as_me.
12435 # Run this file to recreate the current configuration.
12436 # Compiler output produced by configure, useful for debugging
12437 # configure, is in config.log if it exists.
12438
12439 debug=false
12440 ac_cs_recheck=false
12441 ac_cs_silent=false
12442 SHELL=\${CONFIG_SHELL-$SHELL}
12443 _ACEOF
12444
12445 cat >>$CONFIG_STATUS <<\_ACEOF
12446 ## --------------------- ##
12447 ## M4sh Initialization. ##
12448 ## --------------------- ##
12449
12450 # Be Bourne compatible
12451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12452 emulate sh
12453 NULLCMD=:
12454 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12455 # is contrary to our usage. Disable this feature.
12456 alias -g '${1+"$@"}'='"$@"'
12457 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12458 set -o posix
12459 fi
12460 DUALCASE=1; export DUALCASE # for MKS sh
12461
12462 # Support unset when possible.
12463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12464 as_unset=unset
12465 else
12466 as_unset=false
12467 fi
12468
12469
12470 # Work around bugs in pre-3.0 UWIN ksh.
12471 $as_unset ENV MAIL MAILPATH
12472 PS1='$ '
12473 PS2='> '
12474 PS4='+ '
12475
12476 # NLS nuisances.
12477 for as_var in \
12478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12480 LC_TELEPHONE LC_TIME
12481 do
12482 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12483 eval $as_var=C; export $as_var
12484 else
12485 $as_unset $as_var
12486 fi
12487 done
12488
12489 # Required to use basename.
12490 if expr a : '\(a\)' >/dev/null 2>&1; then
12491 as_expr=expr
12492 else
12493 as_expr=false
12494 fi
12495
12496 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12497 as_basename=basename
12498 else
12499 as_basename=false
12500 fi
12501
12502
12503 # Name of the executable.
12504 as_me=`$as_basename "$0" ||
12505 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12506 X"$0" : 'X\(//\)$' \| \
12507 X"$0" : 'X\(/\)$' \| \
12508 . : '\(.\)' 2>/dev/null ||
12509 echo X/"$0" |
12510 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12511 /^X\/\(\/\/\)$/{ s//\1/; q; }
12512 /^X\/\(\/\).*/{ s//\1/; q; }
12513 s/.*/./; q'`
12514
12515
12516 # PATH needs CR, and LINENO needs CR and PATH.
12517 # Avoid depending upon Character Ranges.
12518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12521 as_cr_digits='0123456789'
12522 as_cr_alnum=$as_cr_Letters$as_cr_digits
12523
12524 # The user is always right.
12525 if test "${PATH_SEPARATOR+set}" != set; then
12526 echo "#! /bin/sh" >conf$$.sh
12527 echo "exit 0" >>conf$$.sh
12528 chmod +x conf$$.sh
12529 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12530 PATH_SEPARATOR=';'
12531 else
12532 PATH_SEPARATOR=:
12533 fi
12534 rm -f conf$$.sh
12535 fi
12536
12537
12538 as_lineno_1=$LINENO
12539 as_lineno_2=$LINENO
12540 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12541 test "x$as_lineno_1" != "x$as_lineno_2" &&
12542 test "x$as_lineno_3" = "x$as_lineno_2" || {
12543 # Find who we are. Look in the path if we contain no path at all
12544 # relative or not.
12545 case $0 in
12546 *[\\/]* ) as_myself=$0 ;;
12547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548 for as_dir in $PATH
12549 do
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
12552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12553 done
12554
12555 ;;
12556 esac
12557 # We did not find ourselves, most probably we were run as `sh COMMAND'
12558 # in which case we are not to be found in the path.
12559 if test "x$as_myself" = x; then
12560 as_myself=$0
12561 fi
12562 if test ! -f "$as_myself"; then
12563 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12564 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12565 { (exit 1); exit 1; }; }
12566 fi
12567 case $CONFIG_SHELL in
12568 '')
12569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12571 do
12572 IFS=$as_save_IFS
12573 test -z "$as_dir" && as_dir=.
12574 for as_base in sh bash ksh sh5; do
12575 case $as_dir in
12576 /*)
12577 if ("$as_dir/$as_base" -c '
12578 as_lineno_1=$LINENO
12579 as_lineno_2=$LINENO
12580 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12581 test "x$as_lineno_1" != "x$as_lineno_2" &&
12582 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12583 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12584 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12585 CONFIG_SHELL=$as_dir/$as_base
12586 export CONFIG_SHELL
12587 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12588 fi;;
12589 esac
12590 done
12591 done
12592 ;;
12593 esac
12594
12595 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12596 # uniformly replaced by the line number. The first 'sed' inserts a
12597 # line-number line before each line; the second 'sed' does the real
12598 # work. The second script uses 'N' to pair each line-number line
12599 # with the numbered line, and appends trailing '-' during
12600 # substitution so that $LINENO is not a special case at line end.
12601 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12602 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12603 sed '=' <$as_myself |
12604 sed '
12605 N
12606 s,$,-,
12607 : loop
12608 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12609 t loop
12610 s,-$,,
12611 s,^['$as_cr_digits']*\n,,
12612 ' >$as_me.lineno &&
12613 chmod +x $as_me.lineno ||
12614 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12615 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12616 { (exit 1); exit 1; }; }
12617
12618 # Don't try to exec as it changes $[0], causing all sort of problems
12619 # (the dirname of $[0] is not the place where we might find the
12620 # original and so on. Autoconf is especially sensible to this).
12621 . ./$as_me.lineno
12622 # Exit status is that of the last command.
12623 exit
12624 }
12625
12626
12627 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12628 *c*,-n*) ECHO_N= ECHO_C='
12629 ' ECHO_T=' ' ;;
12630 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12631 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12632 esac
12633
12634 if expr a : '\(a\)' >/dev/null 2>&1; then
12635 as_expr=expr
12636 else
12637 as_expr=false
12638 fi
12639
12640 rm -f conf$$ conf$$.exe conf$$.file
12641 echo >conf$$.file
12642 if ln -s conf$$.file conf$$ 2>/dev/null; then
12643 # We could just check for DJGPP; but this test a) works b) is more generic
12644 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12645 if test -f conf$$.exe; then
12646 # Don't use ln at all; we don't have any links
12647 as_ln_s='cp -p'
12648 else
12649 as_ln_s='ln -s'
12650 fi
12651 elif ln conf$$.file conf$$ 2>/dev/null; then
12652 as_ln_s=ln
12653 else
12654 as_ln_s='cp -p'
12655 fi
12656 rm -f conf$$ conf$$.exe conf$$.file
12657
12658 if mkdir -p . 2>/dev/null; then
12659 as_mkdir_p=:
12660 else
12661 test -d ./-p && rmdir ./-p
12662 as_mkdir_p=false
12663 fi
12664
12665 as_executable_p="test -f"
12666
12667 # Sed expression to map a string onto a valid CPP name.
12668 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12669
12670 # Sed expression to map a string onto a valid variable name.
12671 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12672
12673
12674 # IFS
12675 # We need space, tab and new line, in precisely that order.
12676 as_nl='
12677 '
12678 IFS=" $as_nl"
12679
12680 # CDPATH.
12681 $as_unset CDPATH
12682
12683 exec 6>&1
12684
12685 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12686 # report actual input values of CONFIG_FILES etc. instead of their
12687 # values after options handling. Logging --version etc. is OK.
12688 exec 5>>config.log
12689 {
12690 echo
12691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12692 ## Running $as_me. ##
12693 _ASBOX
12694 } >&5
12695 cat >&5 <<_CSEOF
12696
12697 This file was extended by $as_me, which was
12698 generated by GNU Autoconf 2.59. Invocation command line was
12699
12700 CONFIG_FILES = $CONFIG_FILES
12701 CONFIG_HEADERS = $CONFIG_HEADERS
12702 CONFIG_LINKS = $CONFIG_LINKS
12703 CONFIG_COMMANDS = $CONFIG_COMMANDS
12704 $ $0 $@
12705
12706 _CSEOF
12707 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12708 echo >&5
12709 _ACEOF
12710
12711 # Files that config.status was made for.
12712 if test -n "$ac_config_files"; then
12713 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12714 fi
12715
12716 if test -n "$ac_config_headers"; then
12717 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12718 fi
12719
12720 if test -n "$ac_config_links"; then
12721 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12722 fi
12723
12724 if test -n "$ac_config_commands"; then
12725 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12726 fi
12727
12728 cat >>$CONFIG_STATUS <<\_ACEOF
12729
12730 ac_cs_usage="\
12731 \`$as_me' instantiates files from templates according to the
12732 current configuration.
12733
12734 Usage: $0 [OPTIONS] [FILE]...
12735
12736 -h, --help print this help, then exit
12737 -V, --version print version number, then exit
12738 -q, --quiet do not print progress messages
12739 -d, --debug don't remove temporary files
12740 --recheck update $as_me by reconfiguring in the same conditions
12741 --file=FILE[:TEMPLATE]
12742 instantiate the configuration file FILE
12743
12744 Configuration files:
12745 $config_files
12746
12747 Report bugs to <bug-autoconf@gnu.org>."
12748 _ACEOF
12749
12750 cat >>$CONFIG_STATUS <<_ACEOF
12751 ac_cs_version="\\
12752 config.status
12753 configured by $0, generated by GNU Autoconf 2.59,
12754 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12755
12756 Copyright (C) 2003 Free Software Foundation, Inc.
12757 This config.status script is free software; the Free Software Foundation
12758 gives unlimited permission to copy, distribute and modify it."
12759 srcdir=$srcdir
12760 INSTALL="$INSTALL"
12761 _ACEOF
12762
12763 cat >>$CONFIG_STATUS <<\_ACEOF
12764 # If no file are specified by the user, then we need to provide default
12765 # value. By we need to know if files were specified by the user.
12766 ac_need_defaults=:
12767 while test $# != 0
12768 do
12769 case $1 in
12770 --*=*)
12771 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12772 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12773 ac_shift=:
12774 ;;
12775 -*)
12776 ac_option=$1
12777 ac_optarg=$2
12778 ac_shift=shift
12779 ;;
12780 *) # This is not an option, so the user has probably given explicit
12781 # arguments.
12782 ac_option=$1
12783 ac_need_defaults=false;;
12784 esac
12785
12786 case $ac_option in
12787 # Handling of the options.
12788 _ACEOF
12789 cat >>$CONFIG_STATUS <<\_ACEOF
12790 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12791 ac_cs_recheck=: ;;
12792 --version | --vers* | -V )
12793 echo "$ac_cs_version"; exit 0 ;;
12794 --he | --h)
12795 # Conflict between --help and --header
12796 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12797 Try \`$0 --help' for more information." >&5
12798 echo "$as_me: error: ambiguous option: $1
12799 Try \`$0 --help' for more information." >&2;}
12800 { (exit 1); exit 1; }; };;
12801 --help | --hel | -h )
12802 echo "$ac_cs_usage"; exit 0 ;;
12803 --debug | --d* | -d )
12804 debug=: ;;
12805 --file | --fil | --fi | --f )
12806 $ac_shift
12807 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12808 ac_need_defaults=false;;
12809 --header | --heade | --head | --hea )
12810 $ac_shift
12811 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12812 ac_need_defaults=false;;
12813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12814 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12815 ac_cs_silent=: ;;
12816
12817 # This is an error.
12818 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12819 Try \`$0 --help' for more information." >&5
12820 echo "$as_me: error: unrecognized option: $1
12821 Try \`$0 --help' for more information." >&2;}
12822 { (exit 1); exit 1; }; } ;;
12823
12824 *) ac_config_targets="$ac_config_targets $1" ;;
12825
12826 esac
12827 shift
12828 done
12829
12830 ac_configure_extra_args=
12831
12832 if $ac_cs_silent; then
12833 exec 6>/dev/null
12834 ac_configure_extra_args="$ac_configure_extra_args --silent"
12835 fi
12836
12837 _ACEOF
12838 cat >>$CONFIG_STATUS <<_ACEOF
12839 if \$ac_cs_recheck; then
12840 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12841 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12842 fi
12843
12844 _ACEOF
12845
12846
12847
12848
12849
12850 cat >>$CONFIG_STATUS <<\_ACEOF
12851 for ac_config_target in $ac_config_targets
12852 do
12853 case "$ac_config_target" in
12854 # Handling of arguments.
12855 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12856 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12857 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12858 { (exit 1); exit 1; }; };;
12859 esac
12860 done
12861
12862 # If the user did not use the arguments to specify the items to instantiate,
12863 # then the envvar interface is used. Set only those that are not.
12864 # We use the long form for the default assignment because of an extremely
12865 # bizarre bug on SunOS 4.1.3.
12866 if $ac_need_defaults; then
12867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12868 fi
12869
12870 # Have a temporary directory for convenience. Make it in the build tree
12871 # simply because there is no reason to put it here, and in addition,
12872 # creating and moving files from /tmp can sometimes cause problems.
12873 # Create a temporary directory, and hook for its removal unless debugging.
12874 $debug ||
12875 {
12876 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12877 trap '{ (exit 1); exit 1; }' 1 2 13 15
12878 }
12879
12880 # Create a (secure) tmp directory for tmp files.
12881
12882 {
12883 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12884 test -n "$tmp" && test -d "$tmp"
12885 } ||
12886 {
12887 tmp=./confstat$$-$RANDOM
12888 (umask 077 && mkdir $tmp)
12889 } ||
12890 {
12891 echo "$me: cannot create a temporary directory in ." >&2
12892 { (exit 1); exit 1; }
12893 }
12894
12895 _ACEOF
12896
12897 cat >>$CONFIG_STATUS <<_ACEOF
12898
12899 #
12900 # CONFIG_FILES section.
12901 #
12902
12903 # No need to generate the scripts if there are no CONFIG_FILES.
12904 # This happens for instance when ./config.status config.h
12905 if test -n "\$CONFIG_FILES"; then
12906 # Protect against being on the right side of a sed subst in config.status.
12907 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12908 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12909 s,@SHELL@,$SHELL,;t t
12910 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12911 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12912 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12913 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12914 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12915 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12916 s,@exec_prefix@,$exec_prefix,;t t
12917 s,@prefix@,$prefix,;t t
12918 s,@program_transform_name@,$program_transform_name,;t t
12919 s,@bindir@,$bindir,;t t
12920 s,@sbindir@,$sbindir,;t t
12921 s,@libexecdir@,$libexecdir,;t t
12922 s,@datadir@,$datadir,;t t
12923 s,@sysconfdir@,$sysconfdir,;t t
12924 s,@sharedstatedir@,$sharedstatedir,;t t
12925 s,@localstatedir@,$localstatedir,;t t
12926 s,@libdir@,$libdir,;t t
12927 s,@includedir@,$includedir,;t t
12928 s,@oldincludedir@,$oldincludedir,;t t
12929 s,@infodir@,$infodir,;t t
12930 s,@mandir@,$mandir,;t t
12931 s,@build_alias@,$build_alias,;t t
12932 s,@host_alias@,$host_alias,;t t
12933 s,@target_alias@,$target_alias,;t t
12934 s,@DEFS@,$DEFS,;t t
12935 s,@ECHO_C@,$ECHO_C,;t t
12936 s,@ECHO_N@,$ECHO_N,;t t
12937 s,@ECHO_T@,$ECHO_T,;t t
12938 s,@LIBS@,$LIBS,;t t
12939 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12940 s,@build@,$build,;t t
12941 s,@build_cpu@,$build_cpu,;t t
12942 s,@build_vendor@,$build_vendor,;t t
12943 s,@build_os@,$build_os,;t t
12944 s,@build_noncanonical@,$build_noncanonical,;t t
12945 s,@host_noncanonical@,$host_noncanonical,;t t
12946 s,@target_noncanonical@,$target_noncanonical,;t t
12947 s,@host@,$host,;t t
12948 s,@host_cpu@,$host_cpu,;t t
12949 s,@host_vendor@,$host_vendor,;t t
12950 s,@host_os@,$host_os,;t t
12951 s,@target@,$target,;t t
12952 s,@target_cpu@,$target_cpu,;t t
12953 s,@target_vendor@,$target_vendor,;t t
12954 s,@target_os@,$target_os,;t t
12955 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12956 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12957 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12958 s,@LN@,$LN,;t t
12959 s,@LN_S@,$LN_S,;t t
12960 s,@build_libsubdir@,$build_libsubdir,;t t
12961 s,@build_subdir@,$build_subdir,;t t
12962 s,@host_subdir@,$host_subdir,;t t
12963 s,@target_subdir@,$target_subdir,;t t
12964 s,@CC@,$CC,;t t
12965 s,@CFLAGS@,$CFLAGS,;t t
12966 s,@LDFLAGS@,$LDFLAGS,;t t
12967 s,@CPPFLAGS@,$CPPFLAGS,;t t
12968 s,@ac_ct_CC@,$ac_ct_CC,;t t
12969 s,@EXEEXT@,$EXEEXT,;t t
12970 s,@OBJEXT@,$OBJEXT,;t t
12971 s,@CXX@,$CXX,;t t
12972 s,@CXXFLAGS@,$CXXFLAGS,;t t
12973 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12974 s,@GNATBIND@,$GNATBIND,;t t
12975 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12976 s,@GNATMAKE@,$GNATMAKE,;t t
12977 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12978 s,@do_compare@,$do_compare,;t t
12979 s,@gmplibs@,$gmplibs,;t t
12980 s,@gmpinc@,$gmpinc,;t t
12981 s,@stage1_languages@,$stage1_languages,;t t
12982 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12983 s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
12984 s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12985 s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
12986 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12987 s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
12988 s,@tooldir@,$tooldir,;t t
12989 s,@build_tooldir@,$build_tooldir,;t t
12990 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12991 s,@GDB_TK@,$GDB_TK,;t t
12992 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12993 s,@build_configargs@,$build_configargs,;t t
12994 s,@build_configdirs@,$build_configdirs,;t t
12995 s,@host_configargs@,$host_configargs,;t t
12996 s,@configdirs@,$configdirs,;t t
12997 s,@target_configargs@,$target_configargs,;t t
12998 s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12999 s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
13000 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13001 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13002 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13003 s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13004 s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13005 s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13006 s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13007 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13008 s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13009 s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13010 s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13011 s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13012 s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
13013 s,@config_shell@,$config_shell,;t t
13014 s,@YACC@,$YACC,;t t
13015 s,@BISON@,$BISON,;t t
13016 s,@M4@,$M4,;t t
13017 s,@LEX@,$LEX,;t t
13018 s,@FLEX@,$FLEX,;t t
13019 s,@MAKEINFO@,$MAKEINFO,;t t
13020 s,@EXPECT@,$EXPECT,;t t
13021 s,@RUNTEST@,$RUNTEST,;t t
13022 s,@AR@,$AR,;t t
13023 s,@AS@,$AS,;t t
13024 s,@DLLTOOL@,$DLLTOOL,;t t
13025 s,@LD@,$LD,;t t
13026 s,@LIPO@,$LIPO,;t t
13027 s,@NM@,$NM,;t t
13028 s,@RANLIB@,$RANLIB,;t t
13029 s,@STRIP@,$STRIP,;t t
13030 s,@WINDRES@,$WINDRES,;t t
13031 s,@WINDMC@,$WINDMC,;t t
13032 s,@OBJCOPY@,$OBJCOPY,;t t
13033 s,@OBJDUMP@,$OBJDUMP,;t t
13034 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13035 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13036 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13037 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13038 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13039 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13040 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13041 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13042 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13043 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13044 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13045 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13046 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13047 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13048 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
13049 s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
13050 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13051 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13052 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13053 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13054 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13055 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13056 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13057 s,@MAINT@,$MAINT,;t t
13058 s,@stage1_cflags@,$stage1_cflags,;t t
13059 s,@stage1_checking@,$stage1_checking,;t t
13060 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13061 s,@datarootdir@,$datarootdir,;t t
13062 s,@docdir@,$docdir,;t t
13063 s,@pdfdir@,$pdfdir,;t t
13064 s,@htmldir@,$htmldir,;t t
13065 s,@LIBOBJS@,$LIBOBJS,;t t
13066 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13067 /@serialization_dependencies@/r $serialization_dependencies
13068 s,@serialization_dependencies@,,;t t
13069 /@host_makefile_frag@/r $host_makefile_frag
13070 s,@host_makefile_frag@,,;t t
13071 /@target_makefile_frag@/r $target_makefile_frag
13072 s,@target_makefile_frag@,,;t t
13073 /@alphaieee_frag@/r $alphaieee_frag
13074 s,@alphaieee_frag@,,;t t
13075 /@ospace_frag@/r $ospace_frag
13076 s,@ospace_frag@,,;t t
13077 CEOF
13078
13079 _ACEOF
13080
13081 cat >>$CONFIG_STATUS <<\_ACEOF
13082 # Split the substitutions into bite-sized pieces for seds with
13083 # small command number limits, like on Digital OSF/1 and HP-UX.
13084 ac_max_sed_lines=48
13085 ac_sed_frag=1 # Number of current file.
13086 ac_beg=1 # First line for current file.
13087 ac_end=$ac_max_sed_lines # Line after last line for current file.
13088 ac_more_lines=:
13089 ac_sed_cmds=
13090 while $ac_more_lines; do
13091 if test $ac_beg -gt 1; then
13092 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13093 else
13094 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13095 fi
13096 if test ! -s $tmp/subs.frag; then
13097 ac_more_lines=false
13098 else
13099 # The purpose of the label and of the branching condition is to
13100 # speed up the sed processing (if there are no `@' at all, there
13101 # is no need to browse any of the substitutions).
13102 # These are the two extra sed commands mentioned above.
13103 (echo ':t
13104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13105 if test -z "$ac_sed_cmds"; then
13106 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13107 else
13108 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13109 fi
13110 ac_sed_frag=`expr $ac_sed_frag + 1`
13111 ac_beg=$ac_end
13112 ac_end=`expr $ac_end + $ac_max_sed_lines`
13113 fi
13114 done
13115 if test -z "$ac_sed_cmds"; then
13116 ac_sed_cmds=cat
13117 fi
13118 fi # test -n "$CONFIG_FILES"
13119
13120 _ACEOF
13121 cat >>$CONFIG_STATUS <<\_ACEOF
13122 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13123 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13124 case $ac_file in
13125 - | *:- | *:-:* ) # input from stdin
13126 cat >$tmp/stdin
13127 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13128 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13129 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13131 * ) ac_file_in=$ac_file.in ;;
13132 esac
13133
13134 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13135 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13137 X"$ac_file" : 'X\(//\)[^/]' \| \
13138 X"$ac_file" : 'X\(//\)$' \| \
13139 X"$ac_file" : 'X\(/\)' \| \
13140 . : '\(.\)' 2>/dev/null ||
13141 echo X"$ac_file" |
13142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13144 /^X\(\/\/\)$/{ s//\1/; q; }
13145 /^X\(\/\).*/{ s//\1/; q; }
13146 s/.*/./; q'`
13147 { if $as_mkdir_p; then
13148 mkdir -p "$ac_dir"
13149 else
13150 as_dir="$ac_dir"
13151 as_dirs=
13152 while test ! -d "$as_dir"; do
13153 as_dirs="$as_dir $as_dirs"
13154 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13156 X"$as_dir" : 'X\(//\)[^/]' \| \
13157 X"$as_dir" : 'X\(//\)$' \| \
13158 X"$as_dir" : 'X\(/\)' \| \
13159 . : '\(.\)' 2>/dev/null ||
13160 echo X"$as_dir" |
13161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13163 /^X\(\/\/\)$/{ s//\1/; q; }
13164 /^X\(\/\).*/{ s//\1/; q; }
13165 s/.*/./; q'`
13166 done
13167 test ! -n "$as_dirs" || mkdir $as_dirs
13168 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13169 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13170 { (exit 1); exit 1; }; }; }
13171
13172 ac_builddir=.
13173
13174 if test "$ac_dir" != .; then
13175 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13176 # A "../" for each directory in $ac_dir_suffix.
13177 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13178 else
13179 ac_dir_suffix= ac_top_builddir=
13180 fi
13181
13182 case $srcdir in
13183 .) # No --srcdir option. We are building in place.
13184 ac_srcdir=.
13185 if test -z "$ac_top_builddir"; then
13186 ac_top_srcdir=.
13187 else
13188 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13189 fi ;;
13190 [\\/]* | ?:[\\/]* ) # Absolute path.
13191 ac_srcdir=$srcdir$ac_dir_suffix;
13192 ac_top_srcdir=$srcdir ;;
13193 *) # Relative path.
13194 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13195 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13196 esac
13197
13198 # Do not use `cd foo && pwd` to compute absolute paths, because
13199 # the directories may not exist.
13200 case `pwd` in
13201 .) ac_abs_builddir="$ac_dir";;
13202 *)
13203 case "$ac_dir" in
13204 .) ac_abs_builddir=`pwd`;;
13205 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13206 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13207 esac;;
13208 esac
13209 case $ac_abs_builddir in
13210 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13211 *)
13212 case ${ac_top_builddir}. in
13213 .) ac_abs_top_builddir=$ac_abs_builddir;;
13214 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13215 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13216 esac;;
13217 esac
13218 case $ac_abs_builddir in
13219 .) ac_abs_srcdir=$ac_srcdir;;
13220 *)
13221 case $ac_srcdir in
13222 .) ac_abs_srcdir=$ac_abs_builddir;;
13223 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13224 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13225 esac;;
13226 esac
13227 case $ac_abs_builddir in
13228 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13229 *)
13230 case $ac_top_srcdir in
13231 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13232 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13233 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13234 esac;;
13235 esac
13236
13237
13238 case $INSTALL in
13239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13240 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13241 esac
13242
13243 if test x"$ac_file" != x-; then
13244 { echo "$as_me:$LINENO: creating $ac_file" >&5
13245 echo "$as_me: creating $ac_file" >&6;}
13246 rm -f "$ac_file"
13247 fi
13248 # Let's still pretend it is `configure' which instantiates (i.e., don't
13249 # use $as_me), people would be surprised to read:
13250 # /* config.h. Generated by config.status. */
13251 if test x"$ac_file" = x-; then
13252 configure_input=
13253 else
13254 configure_input="$ac_file. "
13255 fi
13256 configure_input=$configure_input"Generated from `echo $ac_file_in |
13257 sed 's,.*/,,'` by configure."
13258
13259 # First look for the input files in the build tree, otherwise in the
13260 # src tree.
13261 ac_file_inputs=`IFS=:
13262 for f in $ac_file_in; do
13263 case $f in
13264 -) echo $tmp/stdin ;;
13265 [\\/$]*)
13266 # Absolute (can't be DOS-style, as IFS=:)
13267 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13268 echo "$as_me: error: cannot find input file: $f" >&2;}
13269 { (exit 1); exit 1; }; }
13270 echo "$f";;
13271 *) # Relative
13272 if test -f "$f"; then
13273 # Build tree
13274 echo "$f"
13275 elif test -f "$srcdir/$f"; then
13276 # Source tree
13277 echo "$srcdir/$f"
13278 else
13279 # /dev/null tree
13280 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13281 echo "$as_me: error: cannot find input file: $f" >&2;}
13282 { (exit 1); exit 1; }; }
13283 fi;;
13284 esac
13285 done` || { (exit 1); exit 1; }
13286 _ACEOF
13287 cat >>$CONFIG_STATUS <<_ACEOF
13288 sed "$ac_vpsub
13289 $extrasub
13290 _ACEOF
13291 cat >>$CONFIG_STATUS <<\_ACEOF
13292 :t
13293 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13294 s,@configure_input@,$configure_input,;t t
13295 s,@srcdir@,$ac_srcdir,;t t
13296 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13297 s,@top_srcdir@,$ac_top_srcdir,;t t
13298 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13299 s,@builddir@,$ac_builddir,;t t
13300 s,@abs_builddir@,$ac_abs_builddir,;t t
13301 s,@top_builddir@,$ac_top_builddir,;t t
13302 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13303 s,@INSTALL@,$ac_INSTALL,;t t
13304 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13305 rm -f $tmp/stdin
13306 if test x"$ac_file" != x-; then
13307 mv $tmp/out $ac_file
13308 else
13309 cat $tmp/out
13310 rm -f $tmp/out
13311 fi
13312
13313 done
13314 _ACEOF
13315
13316 cat >>$CONFIG_STATUS <<\_ACEOF
13317
13318 { (exit 0); exit 0; }
13319 _ACEOF
13320 chmod +x $CONFIG_STATUS
13321 ac_clean_files=$ac_clean_files_save
13322
13323
13324 # configure is writing to config.log, and then calls config.status.
13325 # config.status does its own redirection, appending to config.log.
13326 # Unfortunately, on DOS this fails, as config.log is still kept open
13327 # by configure, so config.status won't be able to write to it; its
13328 # output is simply discarded. So we exec the FD to /dev/null,
13329 # effectively closing config.log, so it can be properly (re)opened and
13330 # appended to by config.status. When coming back to configure, we
13331 # need to make the FD available again.
13332 if test "$no_create" != yes; then
13333 ac_cs_success=:
13334 ac_config_status_args=
13335 test "$silent" = yes &&
13336 ac_config_status_args="$ac_config_status_args --quiet"
13337 exec 5>/dev/null
13338 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13339 exec 5>>config.log
13340 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13341 # would make configure fail if this is the last instruction.
13342 $ac_cs_success || { (exit 1); exit 1; }
13343 fi
13344
This page took 0.693009 seconds and 5 git commands to generate.