2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
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'"
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
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 extra_mpfr_configure_flags extra_mpc_gmp_configure_flags extra_mpc_mpfr_configure_flags stage1_ldflags stage1_libs poststage1_ldflags poststage1_libs ppllibs pplinc clooglibs clooginc 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 compare_exclusions LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
279 # Initialize some variables set by options.
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
291 program_transform_name=s,x,x,
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'
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
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 ;;
351 cache_file=config.cache ;;
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 datadir=$ac_optarg ;;
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" ;;
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'`
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
394 -help | --help | --hel | --he | -h)
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 ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
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 ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445 # Obsolete; use --without-fp.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509 sbindir=$ac_optarg ;;
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520 sharedstatedir=$ac_optarg ;;
522 -site | --site | --sit)
524 -site=* | --site=* | --sit=*)
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
547 -version | --version | --versio | --versi | --vers | -V)
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'`
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
573 # Obsolete; use --with-x.
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 ;;
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 ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
625 eval ac_val=$`echo $ac_var`
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
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
637 eval ac_val=$`echo $ac_var`
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
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.
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
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
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 ||
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
686 if test ! -r $srcdir/$ac_unique_file; then
690 ac_srcdir_defaulted=no
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; }; }
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
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'`
719 ac_env_CC_set=${CC+set}
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}
745 ac_cv_env_AR_set=${AR+set}
746 ac_cv_env_AR_value=$AR
747 ac_env_AS_set=${AS+set}
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}
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}
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
857 # Report the --help message.
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.
863 \`configure' configures this package to adapt to many kinds of systems.
865 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
870 Defaults for the options are specified in brackets.
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 \`..']
886 Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
897 For better control, use the options below.
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]
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
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]
928 if test -n "$ac_init_help"; then
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-build-with-cxx build with C++ compiler instead of C compiler
939 --disable-ppl-version-check disable check for PPL version
940 --disable-cloog-version-check disable check for CLooG version
941 --enable-stage1-languages[=all] choose additional languages to build during
942 stage1. Mostly useful for compiler development.
943 --enable-objc-gc enable use of Boehm's garbage collector with the
944 GNU Objective-C runtime
945 --enable-bootstrap enable bootstrapping [yes if native build]
946 --enable-serial-[{host,target,build}-]configure
947 force sequential configuration of
948 sub-packages for the host, target or build
949 machine, or all sub-packages
950 --enable-maintainer-mode enable make rules and dependencies not useful
951 (and sometimes confusing) to the casual installer
952 --enable-stage1-checking[=all] choose additional checking for stage1
954 --enable-werror enable -Werror in bootstrap stage2 and later
957 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
958 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
959 --with-build-libsubdir=DIR Directory where to find libraries for build system
960 --with-mpc=PATH specify prefix directory for installed MPC package.
961 Equivalent to --with-mpc-include=PATH/include
962 plus --with-mpc-lib=PATH/lib
963 --with-mpc-include=PATH
964 specify directory for installed MPC include files
965 --with-mpc-lib=PATH specify directory for the installed MPC library
966 --with-mpfr-dir=PATH this option has been REMOVED
967 --with-mpfr=PATH specify prefix directory for installed MPFR package.
968 Equivalent to --with-mpfr-include=PATH/include
969 plus --with-mpfr-lib=PATH/lib
970 --with-mpfr-include=PATH
971 specify directory for installed MPFR include files
972 --with-mpfr-lib=PATH specify directory for the installed MPFR library
973 --with-gmp-dir=PATH this option has been REMOVED
974 --with-gmp=PATH specify prefix directory for the installed GMP package.
975 Equivalent to --with-gmp-include=PATH/include
976 plus --with-gmp-lib=PATH/lib
977 --with-gmp-include=PATH specify directory for installed GMP include files
978 --with-gmp-lib=PATH specify directory for the installed GMP library
979 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
980 when linking with PPL
981 --with-stage1-ldflags=FLAGS Linker flags for stage1
982 -with-stage1-libs=LIBS Libraries for stage1
983 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
984 --with-boot-libs=LIBS Libraries for stage2 and later
985 --with-ppl=PATH Specify prefix directory for the installed PPL package
986 Equivalent to --with-ppl-include=PATH/include
987 plus --with-ppl-lib=PATH/lib
988 --with-ppl-include=PATH Specify directory for installed PPL include files
989 --with-ppl-lib=PATH Specify the directory for the installed PPL library
990 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
991 Equivalent to --with-cloog-include=PATH/include
992 plus --with-cloog-lib=PATH/lib
993 --with-cloog-include=PATH Specify directory for installed CLooG include files
994 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
995 --with-build-sysroot=SYSROOT
996 use sysroot as the system root during the build
997 --with-debug-prefix-map='A=B C=D ...'
998 map A to B, C to D ... in debug information
999 --with-build-time-tools=PATH
1000 use given path to find target tools during the build
1001 --with-datarootdir use datarootdir as the data root directory.
1002 --with-docdir install documentation in this directory.
1003 --with-pdfdir install pdf in this directory.
1004 --with-htmldir install html in this directory.
1006 Some influential environment variables:
1007 CC C compiler command
1008 CFLAGS C compiler flags
1009 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1010 nonstandard directory <lib dir>
1011 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1012 headers in a nonstandard directory <include dir>
1013 CXX C++ compiler command
1014 CXXFLAGS C++ compiler flags
1017 DLLTOOL DLLTOOL for the host
1019 LIPO LIPO for the host
1021 RANLIB RANLIB for the host
1022 STRIP STRIP for the host
1023 WINDRES WINDRES for the host
1024 WINDMC WINDMC for the host
1025 OBJCOPY OBJCOPY for the host
1026 OBJDUMP OBJDUMP for the host
1036 GFORTRAN for the target
1042 DLLTOOL for the target
1050 OBJDUMP for the target
1052 RANLIB for the target
1054 STRIP for the target
1056 WINDRES for the target
1058 WINDMC for the target
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1066 if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070 test -d $ac_dir || continue
1073 if test "$ac_dir" != .; then
1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078 ac_dir_suffix= ac_top_builddir=
1082 .) # No --srcdir option. We are building in place.
1084 if test -z "$ac_top_builddir"; then
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1090 ac_srcdir=$srcdir$ac_dir_suffix;
1091 ac_top_srcdir=$srcdir ;;
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 # Do not use `cd foo && pwd` to compute absolute paths, because
1098 # the directories may not exist.
1100 .) ac_abs_builddir="$ac_dir";;
1103 .) ac_abs_builddir=`pwd`;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108 case $ac_abs_builddir in
1109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117 case $ac_abs_builddir in
1118 .) ac_abs_srcdir=$ac_srcdir;;
1121 .) ac_abs_srcdir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 # Check for guested configure; otherwise get Cygnus style configure.
1138 if test -f $ac_srcdir/configure.gnu; then
1140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
1143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
1145 test -f $ac_srcdir/configure.in; then
1147 $ac_configure --help
1149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155 test -n "$ac_init_help" && exit 0
1156 if $ac_init_version; then
1159 Copyright (C) 2003 Free Software Foundation, Inc.
1160 This configure script is free software; the Free Software Foundation
1161 gives unlimited permission to copy, distribute and modify it.
1167 This file contains any messages produced by compilers while
1168 running configure, to aid debugging if configure makes a mistake.
1170 It was created by $as_me, which was
1171 generated by GNU Autoconf 2.59. Invocation command line was
1182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1191 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1195 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1221 # Keep a trace of the command line.
1222 # Strip out --no-create and --no-recursion so they do not pile up.
1223 # Strip out --silent because we don't want to record it for future runs.
1224 # Also quote any args containing shell meta-characters.
1225 # Make two passes to allow for proper duplicate-argument suppression.
1230 ac_must_keep_next=false
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259 -* ) ac_must_keep_next=true ;;
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1269 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272 # When interrupted or exit'd, cleanup temporary files, and complete
1273 # config.log. We remove comments because anyway the quotes in there
1274 # would cause problems or look ugly.
1275 # WARNING: Be sure not to use single quotes in there, as some shells,
1276 # such as our DU 5.0 friend, will then `close' the trap.
1277 trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1283 ## ---------------- ##
1284 ## Cache variables. ##
1285 ## ---------------- ##
1288 # The following way of writing the cache mishandles newlines in values,
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 ## ----------------- ##
1307 ## Output variables. ##
1308 ## ----------------- ##
1311 for ac_var in $ac_subst_vars
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1318 if test -n "$ac_subst_files"; then
1325 for ac_var in $ac_subst_files
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1333 if test -s confdefs.h; then
1340 sed "/^$/d" confdefs.h | sort
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1347 rm -f core *.core &&
1348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351 for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1357 rm -rf conftest* confdefs.h
1358 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361 # Predefined preprocessor variables.
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 # Let the site file select an alternate cache file if it wants to.
1389 # Prefer explicitly selected file to automatically selected ones.
1390 if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397 for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400 echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
1406 if test -r "$cache_file"; then
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411 echo "$as_me: loading cache $cache_file" >&6;}
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419 echo "$as_me: creating cache $cache_file" >&6;}
1423 # Check that the precious variables saved in the cache have kept the same
1425 ac_cache_corrupted=false
1426 for ac_var in `(set) 2>&1 |
1427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
1444 # differences in whitespace do not lead to failure.
1445 ac_old_val_w=`echo x $ac_old_val`
1446 ac_new_val_w=`echo x $ac_new_val`
1447 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1449 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1450 ac_cache_corrupted=:
1452 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1453 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1454 eval $ac_var=\$ac_old_val
1456 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1457 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1458 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1459 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1477 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515 # if PWD already has a value, it is probably wrong.
1516 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1518 # Export original configure arguments for use by sub-configures.
1519 # Quote arguments with shell meta charatcers.
1520 TOPLEVEL_CONFIGURE_ARGUMENTS=
1521 set -- "$progname" "$@"
1525 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1526 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1527 # if the argument is of the form -foo=baz, quote the baz part only
1528 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1531 # Add the quoted argument to the list.
1532 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1534 if test "$silent" = yes; then
1535 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1537 # Remove the initial space we just introduced and, as these will be
1538 # expanded by make, quote '$'.
1539 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1542 # Find the build, host, and target systems.
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 elif test -f $ac_dir/install.sh; then
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 elif test -f $ac_dir/shtool; then
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1595 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 case ${build_alias} in
1601 "") build_noncanonical=${build} ;;
1602 *) build_noncanonical=${build_alias} ;;
1607 case ${host_alias} in
1608 "") host_noncanonical=${build_noncanonical} ;;
1609 *) host_noncanonical=${host_alias} ;;
1614 case ${target_alias} in
1615 "") target_noncanonical=${host_noncanonical} ;;
1616 *) target_noncanonical=${target_alias} ;;
1622 test "$host_noncanonical" = "$target_noncanonical" &&
1623 test "$program_prefix$program_suffix$program_transform_name" = \
1625 program_transform_name=s,y,y,
1627 echo "$as_me:$LINENO: checking host system type" >&5
1628 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1629 if test "${ac_cv_host+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 ac_cv_host_alias=$host_alias
1633 test -z "$ac_cv_host_alias" &&
1634 ac_cv_host_alias=$ac_cv_build_alias
1635 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1642 echo "${ECHO_T}$ac_cv_host" >&6
1644 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking target system type" >&5
1650 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1651 if test "${ac_cv_target+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_target_alias=$target_alias
1655 test "x$ac_cv_target_alias" = "x" &&
1656 ac_cv_target_alias=$ac_cv_host_alias
1657 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1664 echo "${ECHO_T}$ac_cv_target" >&6
1665 target=$ac_cv_target
1666 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671 # The aliases save the names the user supplied, while $host etc.
1672 # will get canonicalized.
1673 test -n "$target_alias" &&
1674 test "$program_prefix$program_suffix$program_transform_name" = \
1676 program_prefix=${target_alias}-
1677 test "$program_prefix" != NONE &&
1678 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1679 # Use a double $ so make ignores it.
1680 test "$program_suffix" != NONE &&
1681 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1682 # Double any \ or $. echo might interpret backslashes.
1683 # By default was `s,x,x', remove it if useless.
1684 cat <<\_ACEOF >conftest.sed
1685 s/[\\$]/&&/g;s/;s,x,x,$//
1687 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1692 # Get 'install' or 'install-sh' and its variants.
1693 # Find a good install program. We prefer a C program (faster),
1694 # so one script is as good as another. But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 # Reject install programs that cannot install multiple files.
1707 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1708 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1709 if test -z "$INSTALL"; then
1710 if test "${ac_cv_path_install+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir=.
1718 # Account for people who put trailing slashes in PATH elements.
1720 ./ | .// | /cC/* | \
1721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1722 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1725 # OSF1 and SCO ODT 3.0 have their own names for install.
1726 # Don't use installbsd from OSF since it installs stuff as root
1728 for ac_prog in ginstall scoinst install; do
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1731 if test $ac_prog = install &&
1732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1733 # AIX install. It has an incompatible calling convention.
1735 elif test $ac_prog = install &&
1736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737 # program-specific install script used by HP pwplus--don't use.
1740 rm -rf conftest.one conftest.two conftest.dir
1741 echo one > conftest.one
1742 echo two > conftest.two
1744 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1745 test -s conftest.one && test -s conftest.two &&
1746 test -s conftest.dir/conftest.one &&
1747 test -s conftest.dir/conftest.two
1749 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1760 rm -rf conftest.one conftest.two conftest.dir
1763 if test "${ac_cv_path_install+set}" = set; then
1764 INSTALL=$ac_cv_path_install
1766 # As a last resort, use the slow shell script. Don't cache a
1767 # value for INSTALL within a source directory, because that will
1768 # break other packages using the cache if that directory is
1769 # removed, or if the value is a relative name.
1770 INSTALL=$ac_install_sh
1773 echo "$as_me:$LINENO: result: $INSTALL" >&5
1774 echo "${ECHO_T}$INSTALL" >&6
1776 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1777 # It thinks the first close brace ends the variable substitution.
1778 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1780 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1782 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1784 echo "$as_me:$LINENO: checking whether ln works" >&5
1785 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1786 if test "${acx_cv_prog_LN+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 rm -f conftestdata_t
1790 echo >conftestdata_f
1791 if ln conftestdata_f conftestdata_t 2>/dev/null
1797 rm -f conftestdata_f conftestdata_t
1800 if test $acx_cv_prog_LN = no; then
1802 echo "$as_me:$LINENO: result: no, using $LN" >&5
1803 echo "${ECHO_T}no, using $LN" >&6
1805 LN="$acx_cv_prog_LN"
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1810 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1811 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1813 if test "$LN_S" = "ln -s"; then
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1817 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1818 echo "${ECHO_T}no, using $LN_S" >&6
1822 ### we might need to use some other shell than /bin/sh for running subshells
1823 ### If we are on Windows, search for the shell. This will permit people
1824 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1825 ### without also having to set CONFIG_SHELL. This code will work when
1826 ### using bash, which sets OSTYPE.
1829 if test x${CONFIG_SHELL} = x ; then
1830 if test ! -f /bin/sh ; then
1831 if test x${SHELL} != x && test -f ${SHELL} ; then
1832 CONFIG_SHELL=${SHELL}
1835 for prog in sh sh.exe bash bash.exe; do
1836 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1837 for dir in $PATH; do
1838 test -z "$dir" && dir=.
1839 if test -f $dir/$prog; then
1840 CONFIG_SHELL=$dir/$prog
1846 test -n "${CONFIG_SHELL}" && break
1854 config_shell=${CONFIG_SHELL-/bin/sh}
1856 moveifchange=${srcdir}/move-if-change
1858 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1860 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1862 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1863 INSTALL="${srcpwd}/install-sh -c"
1866 # Set srcdir to "." if that's what it is.
1867 # This is important for multilib support.
1869 if test "${pwd}" = "${srcpwd}" ; then
1877 ### To add a new directory to the tree, first choose whether it is a target
1878 ### or a host dependent tool. Then put it into the appropriate list
1879 ### (library or tools, host or target), doing a dependency sort.
1881 # Subdirs will be configured in the order listed in build_configdirs,
1882 # configdirs, or target_configdirs; see the serialization section below.
1884 # Dependency sorting is only needed when *configuration* must be done in
1885 # a particular order. In all cases a dependency should be specified in
1886 # the Makefile, whether or not it's implicitly specified here.
1888 # Double entries in build_configdirs, configdirs, or target_configdirs may
1889 # cause circular dependencies and break everything horribly.
1891 # these library is used by various programs built for the build
1894 build_libs="build-libiberty"
1896 # these tools are built for the build environment
1897 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1899 # these libraries are used by various programs built for the host environment
1901 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
1903 # these tools are built for the host environment
1904 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1905 # know that we are building the simulator.
1906 # binutils, gas and ld appear in that order because it makes sense to run
1907 # "make check" in that particular order.
1908 # If --enable-gold is used, "gold" will replace "ld".
1909 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen 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"
1911 # libgcj represents the runtime libraries only used by gcj.
1912 libgcj="target-libffi \
1917 # these libraries are built for the target environment, and are built after
1918 # the host libraries and the host tools (which may be a cross compiler)
1920 target_libraries="target-libgcc \
1925 target-libstdc++-v3 \
1928 target-libgfortran \
1934 # these tools are built using the target libraries, and are intended to
1935 # run only in the target environment
1937 # note: any program that *uses* libraries that are in the "target_libraries"
1938 # list belongs in this list. those programs are also very likely
1939 # candidates for the "native_only" list which follows
1941 target_tools="target-examples target-groff target-gperf target-rda"
1943 ################################################################################
1945 ## All tools belong in one of the four categories, and are assigned above
1946 ## We assign ${configdirs} this way to remove all embedded newlines. This
1947 ## is important because configure will choke if they ever get through.
1948 ## ${configdirs} is directories we build using the host tools.
1949 ## ${target_configdirs} is directories we build using the target tools.
1950 configdirs=`echo ${host_libs} ${host_tools}`
1951 target_configdirs=`echo ${target_libraries} ${target_tools}`
1952 build_configdirs=`echo ${build_libs} ${build_tools}`
1956 ################################################################################
1958 srcname="gnu development package"
1960 # This gets set non-empty for some net releases of packages.
1963 # Define is_cross_compiler to save on calls to 'test'.
1965 if test x"${host}" = x"${target}" ; then
1966 is_cross_compiler=no
1968 is_cross_compiler=yes
1971 # Find the build and target subdir names.
1973 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1974 # have matching libraries, they should use host libraries: Makefile.tpl
1975 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1976 # However, they still use the build modules, because the corresponding
1977 # host modules (e.g. bison) are only built for the host when bootstrap
1979 # - build_subdir is where we find build modules, and never changes.
1980 # - build_libsubdir is where we find build libraries, and can be overridden.
1982 # Prefix 'build-' so this never conflicts with target_subdir.
1983 build_subdir="build-${build_noncanonical}"
1985 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1986 if test "${with_build_libsubdir+set}" = set; then
1987 withval="$with_build_libsubdir"
1988 build_libsubdir="$withval"
1990 build_libsubdir="$build_subdir"
1992 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1993 if ( test $srcdir = . && test -d gcc ) \
1994 || test -d $srcdir/../host-${host_noncanonical}; then
1995 host_subdir="host-${host_noncanonical}"
2000 target_subdir=${target_noncanonical}
2003 # Skipdirs are removed silently.
2005 # Noconfigdirs are removed loudly.
2009 # Make sure we don't let GNU ld be added if we didn't want it.
2010 if test x$with_gnu_ld = xno ; then
2012 noconfigdirs="$noconfigdirs ld gold"
2016 # Make sure we don't let GNU as be added if we didn't want it.
2017 if test x$with_gnu_as = xno ; then
2019 noconfigdirs="$noconfigdirs gas"
2022 # some tools are so dependent upon X11 that if we're not building with X,
2023 # it's not even worth trying to configure, much less build, that tool.
2026 yes | "") ;; # the default value for this tree is that X11 is available
2028 skipdirs="${skipdirs} tk itcl libgui"
2029 # We won't be able to build gdbtk without X.
2032 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2035 # Some tools are only suitable for building in a "native" situation.
2036 # Remove these if host!=target.
2037 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"
2039 # Similarly, some are only suitable for cross toolchains.
2040 # Remove these if host=target.
2041 cross_only="target-libgloss target-newlib target-opcodes"
2043 case $is_cross_compiler in
2044 no) skipdirs="${skipdirs} ${cross_only}" ;;
2045 yes) skipdirs="${skipdirs} ${native_only}" ;;
2048 # If both --with-headers and --with-libs are specified, default to
2050 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2051 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2052 if test x"${with_newlib}" = x ; then
2057 # Recognize --with-newlib/--without-newlib.
2058 case ${with_newlib} in
2059 no) skipdirs="${skipdirs} target-newlib" ;;
2060 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2063 # Handle --enable-gold.
2065 # Check whether --enable-gold or --disable-gold was given.
2066 if test "${enable_gold+set}" = set; then
2067 enableval="$enable_gold"
2068 ENABLE_GOLD=$enableval
2072 if test "${ENABLE_GOLD}" = "yes"; then
2073 # Check for ELF target.
2076 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2077 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2078 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2080 *-*-linux*aout* | *-*-linux*oldld*)
2088 if test "$is_elf" = "yes"; then
2089 # Check for target supported by gold.
2091 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2092 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2098 # Configure extra directories which are host specific
2102 configdirs="$configdirs libtermcap" ;;
2105 # A target can indicate whether a language isn't supported for some reason.
2106 # Only spaces may be used in this macro; not newlines or tabs.
2107 unsupported_languages=
2109 # Remove more programs from consideration, based on the host or
2110 # target this usually means that a port of the program doesn't
2115 noconfigdirs="$noconfigdirs byacc"
2117 i[3456789]86-*-vsta)
2118 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2120 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2121 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2124 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2126 i[3456789]86-*-mingw32*)
2127 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2128 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2130 i[3456789]86-*-beos*)
2131 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2134 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2137 noconfigdirs="$noconfigdirs rcs"
2140 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2143 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2148 # Check whether --enable-libada or --disable-libada was given.
2149 if test "${enable_libada+set}" = set; then
2150 enableval="$enable_libada"
2151 ENABLE_LIBADA=$enableval
2155 if test "${ENABLE_LIBADA}" != "yes" ; then
2156 noconfigdirs="$noconfigdirs gnattools"
2159 # Check whether --enable-libssp or --disable-libssp was given.
2160 if test "${enable_libssp+set}" = set; then
2161 enableval="$enable_libssp"
2162 ENABLE_LIBSSP=$enableval
2167 # Save it here so that, even in case of --enable-libgcj, if the Java
2168 # front-end isn't enabled, we still get libgcj disabled.
2169 libgcj_saved=$libgcj
2170 case $enable_libgcj in
2172 # If we reset it here, it won't get added to noconfigdirs in the
2173 # target-specific build rules, so it will be forcibly enabled
2174 # (unless the Java language itself isn't enabled).
2178 # Make sure we get it printed in the list of not supported target libs.
2179 noconfigdirs="$noconfigdirs ${libgcj}"
2184 # Disable libmudflap on some systems.
2185 if test x$enable_libmudflap = x ; then
2187 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2188 # Enable libmudflap by default in GNU and friends.
2191 # Enable libmudflap by default in FreeBSD.
2194 # Disable it by default everywhere else.
2195 noconfigdirs="$noconfigdirs target-libmudflap"
2200 # Disable libgomp on non POSIX hosted systems.
2201 if test x$enable_libgomp = x ; then
2202 # Enable libgomp by default on hosted POSIX systems.
2204 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2206 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2208 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2210 *-*-darwin* | *-*-aix*)
2213 noconfigdirs="$noconfigdirs target-libgomp"
2218 # Default libgloss CPU subdirectory.
2219 libgloss_dir="$target_cpu"
2223 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2226 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2227 noconfigdirs="$noconfigdirs sim target-rda"
2229 i[3456789]86-*-darwin* | x86_64-*-darwin[912]*)
2230 noconfigdirs="$noconfigdirs ld gas gprof"
2231 noconfigdirs="$noconfigdirs sim target-rda"
2234 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2235 noconfigdirs="$noconfigdirs sim target-rda"
2236 noconfigdirs="$noconfigdirs ${libgcj}"
2238 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2239 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2242 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2243 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2244 && test -f /usr/local/include/gmp.h; then
2248 # Skip some stuff that's unsupported on some FreeBSD configurations.
2253 noconfigdirs="$noconfigdirs ${libgcj}"
2258 # Remove unsupported stuff on all kaOS configurations.
2259 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2260 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2261 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2262 noconfigdirs="$noconfigdirs target-libgloss"
2265 # Skip some stuff on all NetBSD configurations.
2266 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2268 # Skip some stuff that's unsupported on some NetBSD configurations.
2270 i*86-*-netbsdelf*) ;;
2271 arm*-*-netbsdelf*) ;;
2273 noconfigdirs="$noconfigdirs ${libgcj}"
2278 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2281 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2283 # The tpf target doesn't support gdb yet.
2285 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2288 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2291 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2294 # ld works, but does not support shared libraries.
2295 # newlib is not 64 bit ready. I'm not sure about fileutils.
2296 # gas doesn't generate exception information.
2297 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2300 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2303 # newlib is not 64 bit ready
2304 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2307 # newlib is not 64 bit ready
2308 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2311 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2314 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2316 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2317 noconfigdirs="$noconfigdirs ${libgcj}"
2318 noconfigdirs="$noconfigdirs target-examples"
2319 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2320 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2321 noconfigdirs="$noconfigdirs expect dejagnu"
2322 # the C++ libraries don't build on top of CE's C libraries
2323 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2324 noconfigdirs="$noconfigdirs target-newlib"
2326 *-*-cygwin*) ;; # keep gdb and readline
2327 *) noconfigdirs="$noconfigdirs gdb readline"
2333 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2337 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2338 noconfigdirs="$noconfigdirs ${libgcj}"
2341 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2342 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2345 arm*-*-linux-gnueabi)
2346 noconfigdirs="$noconfigdirs target-qthreads"
2347 case ${with_newlib} in
2348 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2353 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2357 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2360 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2363 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2366 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2369 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2372 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
2375 noconfigdirs="$noconfigdirs gdb"
2376 if test x${is_cross_compiler} != xno ; then
2377 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2380 c4x-*-* | tic4x-*-*)
2381 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2383 c54x*-*-* | tic54x-*-*)
2384 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2387 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2389 cris-*-* | crisv32-*-*)
2390 unsupported_languages="$unsupported_languages java"
2393 unsupported_languages="$unsupported_languages fortran"
2394 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2396 noconfigdirs="$noconfigdirs target-boehm-gc";;
2398 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2400 unsupported_languages="$unsupported_languages fortran"
2401 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2406 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2409 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2412 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2414 ep9312-*-elf | ep9312-*-coff)
2418 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2421 noconfigdirs="$noconfigdirs ${libgcj}"
2424 noconfigdirs="$noconfigdirs ${libgcj}"
2425 noconfigdirs="$noconfigdirs gprof"
2428 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2431 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2433 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2435 hppa*64*-*-linux* | parisc*64*-*-linux*)
2436 # In this case, it's because the hppa64-linux target is for
2437 # the kernel only at this point and has no libc, and thus no
2438 # headers, crt*.o, etc., all of which are needed by these.
2439 noconfigdirs="$noconfigdirs target-zlib"
2441 parisc*-*-linux* | hppa*-*-linux*)
2445 hppa*-*-openbsd* | \
2447 noconfigdirs="$noconfigdirs ${libgcj}"
2450 noconfigdirs="$noconfigdirs ld shellutils"
2456 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2457 # build on HP-UX 10.20.
2458 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2461 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2464 # No gdb support yet.
2465 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2468 # No gdb or ld support yet.
2469 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2472 # No gdb or ld support yet.
2473 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2477 i[3456789]86-*-coff | i[3456789]86-*-elf)
2478 noconfigdirs="$noconfigdirs ${libgcj}"
2481 i[3456789]86-*-linux*)
2482 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2483 # not build java stuff by default.
2486 noconfigdirs="$noconfigdirs ${libgcj}";;
2489 # This section makes it possible to build newlib natively on linux.
2490 # If we are using a cross compiler then don't configure newlib.
2491 if test x${is_cross_compiler} != xno ; then
2492 noconfigdirs="$noconfigdirs target-newlib"
2494 noconfigdirs="$noconfigdirs target-libgloss"
2495 # If we are not using a cross compiler, do configure newlib.
2496 # Note however, that newlib will only be configured in this situation
2497 # if the --with-newlib option has been given, because otherwise
2498 # 'target-newlib' will appear in skipdirs.
2500 i[3456789]86-*-mingw32*)
2501 target_configdirs="$target_configdirs target-winsup"
2502 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2505 target_configdirs="$target_configdirs target-winsup"
2506 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2509 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2510 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
2511 # always build newlib if winsup directory is present.
2512 if test -d "$srcdir/winsup/cygwin"; then
2513 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2514 elif test -d "$srcdir/newlib"; then
2515 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2518 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2519 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2522 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2524 i[3456789]86-*-sco3.2v5*)
2525 # The linker does not yet know about weak symbols in COFF,
2526 # and is not configured to handle mixed ELF and COFF.
2527 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2529 i[3456789]86-*-sco*)
2530 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2532 i[3456789]86-*-solaris2*)
2533 noconfigdirs="$noconfigdirs target-libgloss"
2535 i[3456789]86-*-sysv4*)
2536 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2538 i[3456789]86-*-beos*)
2539 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2541 i[3456789]86-*-rdos*)
2542 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2545 noconfigdirs="$noconfigdirs ${libgcj}"
2547 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2548 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2549 libgloss_dir=m68hc11
2552 noconfigdirs="$noconfigdirs ${libgcj}"
2555 noconfigdirs="$noconfigdirs ${libgcj}"
2557 m68*-*-* | fido-*-*)
2561 # The EPOC C++ environment does not support exceptions or rtti,
2562 # and so building libstdc++-v3 tends not to always work.
2563 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2566 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2567 unsupported_languages="$unsupported_languages fortran java"
2570 noconfigdirs="$noconfigdirs ${libgcj}"
2573 noconfigdirs="$noconfigdirs ${libgcj}"
2576 noconfigdirs="$noconfigdirs sim"
2579 # copied from rs6000-*-* entry
2580 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
2582 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2583 target_configdirs="$target_configdirs target-winsup"
2584 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2585 # always build newlib.
2586 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2588 # This is temporary until we can link against shared libraries
2589 powerpcle-*-solaris*)
2590 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2594 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2597 noconfigdirs="$noconfigdirs ${libgcj}"
2600 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2604 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2607 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
2610 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2613 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2616 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2619 skipdirs="$skipdirs target-libiberty"
2620 noconfigdirs="$noconfigdirs ${libgcj}"
2621 if test x$with_newlib = xyes; then
2622 noconfigdirs="$noconfigdirs gprof"
2627 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2630 # Linking libjava exceeds command-line length limits on at least
2631 # IRIX 6.2, but not on IRIX 6.5.
2632 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2633 # <oldham@codesourcery.com>
2634 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2637 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2643 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2647 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2651 i[3456789]86-*-vsta) ;; # don't add gprof back in
2652 i[3456789]86-*-go32*) ;; # don't add gprof back in
2653 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2654 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2658 noconfigdirs="$noconfigdirs ${libgcj}" ;;
2660 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
2663 sparclet-*-aout* | sparc86x-*-*)
2667 noconfigdirs="$noconfigdirs ${libgcj}"
2670 noconfigdirs="$noconfigdirs ${libgcj}"
2674 noconfigdirs="$noconfigdirs ${libgcj}"
2678 noconfigdirs="$noconfigdirs ${libgcj}"
2679 if test x${is_cross_compiler} != xno ; then
2680 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2685 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2686 noconfigdirs="$noconfigdirs ${libgcj}"
2688 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2691 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2694 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2697 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2700 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2703 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2706 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2709 noconfigdirs="$noconfigdirs ${libgcj}"
2712 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2714 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2718 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2721 noconfigdirs="$noconfigdirs ${libgcj}"
2725 # If we aren't building newlib, then don't build libgloss, since libgloss
2726 # depends upon some newlib header files.
2727 case "${noconfigdirs}" in
2728 *target-libgloss*) ;;
2729 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2732 # Work in distributions that contain no compiler tools, like Autoconf.
2734 host_makefile_frag=/dev/null
2735 if test -d ${srcdir}/config ; then
2738 # Avoid "too much defining" errors from HPUX compiler.
2739 tentative_cc="cc -Wp,-H256000"
2740 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2741 # If it's HP/UX ar, this should be harmless.
2745 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2748 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2749 # chokes on bfd, the compiler won't let you assign integers to enums, and
2750 # other problems. Defining CC to gcc is a questionable way to say "don't use
2751 # the apollo compiler" (the preferred version of GCC could be called cc,
2752 # or whatever), but I'm not sure leaving CC as cc is any better...
2753 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2754 # Used to have BISON=yacc.
2758 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2761 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2762 tentative_cc="cc -Xa"
2763 host_makefile_frag="config/mh-cxux"
2765 m88k-motorola-sysv*)
2768 tentative_cc="cc -Wf,-XNg1000"
2769 host_makefile_frag="config/mh-decstation"
2772 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2773 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2774 host_makefile_frag="config/mh-necv4"
2777 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2778 # environment. Also bump switch table size so that cp-parse will
2779 # compile. Bump string length limit so linker builds.
2780 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2783 host_makefile_frag="config/mh-sysv4"
2786 # This is for a MIPS running RISC/os 4.52C.
2788 # This is needed for GDB, but needs to be in the top-level make because
2789 # if a library is compiled with the bsd headers and gets linked with the
2790 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2791 # a different size).
2792 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2793 # known except to select the sysv environment. Could we use /proc instead?
2794 # These "sysv environments" and "bsd environments" often end up being a pain.
2796 # This is not part of CFLAGS because perhaps not all C compilers have this
2798 tentative_cc="cc -systype sysv"
2803 i[3456789]86-*-sysv5*)
2804 host_makefile_frag="config/mh-sysv5"
2806 i[3456789]86-*-dgux*)
2807 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2808 host_makefile_frag="config/mh-dgux386"
2810 i[3456789]86-ncr-sysv4.3*)
2811 # The MetaWare compiler will generate a copyright message unless you
2812 # turn it off by adding the -Hnocopyr flag.
2813 tentative_cc="cc -Hnocopyr"
2815 i[3456789]86-ncr-sysv4*)
2816 # for an NCR 3000 (i486/SVR4) system.
2817 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2818 # This compiler not only emits obnoxious copyright messages every time
2819 # you run it, but it chokes and dies on a whole bunch of GNU source
2820 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2821 tentative_cc="/usr/ccs/ATT/cc"
2822 host_makefile_frag="config/mh-ncr3000"
2824 i[3456789]86-*-sco3.2v5*)
2826 i[3456789]86-*-sco*)
2827 # The native C compiler botches some simple uses of const. Unfortunately,
2828 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2829 tentative_cc="cc -Dconst="
2830 host_makefile_frag="config/mh-sco"
2832 i[3456789]86-*-udk*)
2833 host_makefile_frag="config/mh-sysv5"
2835 i[3456789]86-*-solaris2*)
2836 host_makefile_frag="config/mh-sysv4"
2838 i[3456789]86-*-msdosdjgpp*)
2839 host_makefile_frag="config/mh-djgpp"
2843 echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2844 echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2845 echo a >cygwin-cat-check
2846 if test `cat cygwin-cat-check` == a ; then
2848 echo "$as_me:$LINENO: result: yes" >&5
2849 echo "${ECHO_T}yes" >&6
2852 echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6
2854 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2855 Please either mount the build directory in binary mode or run the following
2856 commands before running any configure script:
2860 echo "$as_me: error: The cat command does not ignore carriage return characters.
2861 Please either mount the build directory in binary mode or run the following
2862 commands before running any configure script:
2866 { (exit 1); exit 1; }; }
2869 host_makefile_frag="config/mh-cygwin"
2872 host_makefile_frag="config/mh-mingw"
2875 host_makefile_frag="config/mh-interix"
2878 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2882 host_makefile_frag="config/mh-solaris"
2885 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2886 # without overflowing the jump tables (-J says to use a 32 bit table)
2887 tentative_cc="cc -J"
2890 tentative_cc="cc -Wp,-H256000"
2891 host_makefile_frag="config/mh-pa-hpux10"
2893 hppa*-hp-hpux* | hppa*-*-hiux*)
2894 tentative_cc="cc -Wp,-H256000"
2895 host_makefile_frag="config/mh-pa"
2898 host_makefile_frag="config/mh-pa"
2900 *-hp-hpux* | *-*-hiux*)
2901 tentative_cc="cc -Wp,-H256000"
2904 # /bin/cc is less than useful for our purposes. Always use GCC
2905 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2906 host_makefile_frag="config/mh-lynxrs6k"
2909 host_makefile_frag="config/mh-ppc-darwin"
2912 host_makefile_frag="config/mh-ppc-aix"
2915 host_makefile_frag="config/mh-ppc-aix"
2918 # /bin/cc is less than useful for our purposes. Always use GCC
2919 tentative_cc="/bin/gcc"
2922 host_makefile_frag="config/mh-sysv4"
2924 # This is placed last to prevent interfering with the cases above.
2926 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2927 host_makefile_frag="config/mh-x86omitfp"
2932 # If we aren't going to be using gcc, see if we can extract a definition
2933 # of CC from the fragment.
2934 # Actually, use the 'pre-extracted' version above.
2935 if test -z "${CC}" && test "${build}" = "${host}" ; then
2936 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2938 for dir in $PATH; do
2939 test -z "$dir" && dir=.
2940 if test -f $dir/gcc; then
2946 if test -z "${found}" && test -n "${tentative_cc}" ; then
2951 if test "${build}" != "${host}" ; then
2952 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2953 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2954 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2955 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2956 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2957 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2958 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2959 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2960 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2961 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2962 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2963 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2965 AR_FOR_BUILD="\$(AR)"
2966 AS_FOR_BUILD="\$(AS)"
2967 CC_FOR_BUILD="\$(CC)"
2968 CXX_FOR_BUILD="\$(CXX)"
2969 GCJ_FOR_BUILD="\$(GCJ)"
2970 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2971 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2972 LD_FOR_BUILD="\$(LD)"
2973 NM_FOR_BUILD="\$(NM)"
2974 RANLIB_FOR_BUILD="\$(RANLIB)"
2975 WINDRES_FOR_BUILD="\$(WINDRES)"
2976 WINDMC_FOR_BUILD="\$(WINDMC)"
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2987 echo "$as_me:$LINENO: checking for $ac_word" >&5
2988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2989 if test "${ac_cv_prog_CC+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 if test -n "$CC"; then
3013 echo "$as_me:$LINENO: result: $CC" >&5
3014 echo "${ECHO_T}$CC" >&6
3016 echo "$as_me:$LINENO: result: no" >&5
3017 echo "${ECHO_T}no" >&6
3021 if test -z "$ac_cv_prog_CC"; then
3023 # Extract the first word of "gcc", so it can be a program name with args.
3024 set dummy gcc; ac_word=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_CC="gcc"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3052 echo "${ECHO_T}$ac_ct_CC" >&6
3054 echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3063 if test -z "$CC"; then
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}cc; ac_word=$2
3067 echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069 if test "${ac_cv_prog_CC+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_CC="${ac_tool_prefix}cc"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 if test -n "$CC"; then
3093 echo "$as_me:$LINENO: result: $CC" >&5
3094 echo "${ECHO_T}$CC" >&6
3096 echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3101 if test -z "$ac_cv_prog_CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc; ac_word=$2
3105 echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 if test -n "$ac_ct_CC"; then
3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_CC="cc"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3130 if test -n "$ac_ct_CC"; then
3131 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3132 echo "${ECHO_T}$ac_ct_CC" >&6
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3144 if test -z "$CC"; then
3145 # Extract the first word of "cc", so it can be a program name with args.
3146 set dummy cc; ac_word=$2
3147 echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149 if test "${ac_cv_prog_CC+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3164 ac_prog_rejected=yes
3168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 if test $ac_prog_rejected = yes; then
3175 # We found a bogon in the path, so make sure we never use it.
3176 set dummy $ac_cv_prog_CC
3178 if test $# != 0; then
3179 # We chose a different compiler from the bogus one.
3180 # However, it has the same basename, so the bogon will be chosen
3181 # first if we set CC to just the basename; use the full file name.
3183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3189 if test -n "$CC"; then
3190 echo "$as_me:$LINENO: result: $CC" >&5
3191 echo "${ECHO_T}$CC" >&6
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3198 if test -z "$CC"; then
3199 if test -n "$ac_tool_prefix"; then
3202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_CC+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC="$CC" # Let the user override the test.
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 if test -n "$CC"; then
3230 echo "$as_me:$LINENO: result: $CC" >&5
3231 echo "${ECHO_T}$CC" >&6
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3237 test -n "$CC" && break
3240 if test -z "$CC"; then
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 if test -n "$ac_ct_CC"; then
3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_ac_ct_CC="$ac_prog"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3271 if test -n "$ac_ct_CC"; then
3272 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3273 echo "${ECHO_T}$ac_ct_CC" >&6
3275 echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3279 test -n "$ac_ct_CC" && break
3288 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3291 See \`config.log' for more details." >&5
3292 echo "$as_me: error: no acceptable C compiler found in \$PATH
3293 See \`config.log' for more details." >&2;}
3294 { (exit 1); exit 1; }; }; }
3296 # Provide some information about the compiler.
3297 echo "$as_me:$LINENO:" \
3298 "checking for C compiler version" >&5
3299 ac_compiler=`set X $ac_compile; echo $2`
3300 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3301 (eval $ac_compiler --version </dev/null >&5) 2>&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }
3305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3306 (eval $ac_compiler -v </dev/null >&5) 2>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }
3310 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3311 (eval $ac_compiler -V </dev/null >&5) 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3331 ac_clean_files_save=$ac_clean_files
3332 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3333 # Try to create an executable without -o first, disregard a.out.
3334 # It will help us diagnose broken compilers, and finding out an intuition
3336 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3337 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3338 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3339 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3340 (eval $ac_link_default) 2>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; then
3344 # Find the output, starting from the most likely. This scheme is
3345 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3348 # Be careful to initialize this variable, since it used to be cached.
3349 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3351 # b.out is created by i960 compilers.
3352 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3354 test -f "$ac_file" || continue
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3359 # This is the source file.
3362 # We found the default executable, but exeext='' is most
3366 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3367 # FIXME: I believe we export ac_cv_exeext for Libtool,
3368 # but it would be cool to find out if it's true. Does anybody
3369 # maintain Libtool? --akim.
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3380 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3381 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: C compiler cannot create executables
3385 See \`config.log' for more details." >&2;}
3386 { (exit 77); exit 77; }; }; }
3389 ac_exeext=$ac_cv_exeext
3390 echo "$as_me:$LINENO: result: $ac_file" >&5
3391 echo "${ECHO_T}$ac_file" >&6
3393 # Check the compiler produces executables we can run. If not, either
3394 # the compiler is broken, or we cross compile.
3395 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3396 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3397 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3398 # If not cross compiling, check that we can run a simple program.
3399 if test "$cross_compiling" != yes; then
3400 if { ac_try='./$ac_file'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3408 if test "$cross_compiling" = maybe; then
3411 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3412 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3414 If you meant to cross compile, use \`--host'.
3415 See \`config.log' for more details." >&5
3416 echo "$as_me: error: cannot run C compiled programs.
3417 If you meant to cross compile, use \`--host'.
3418 See \`config.log' for more details." >&2;}
3419 { (exit 1); exit 1; }; }; }
3423 echo "$as_me:$LINENO: result: yes" >&5
3424 echo "${ECHO_T}yes" >&6
3426 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3427 ac_clean_files=$ac_clean_files_save
3428 # Check the compiler produces executables we can run. If not, either
3429 # the compiler is broken, or we cross compile.
3430 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3431 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3432 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3433 echo "${ECHO_T}$cross_compiling" >&6
3435 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3436 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438 (eval $ac_link) 2>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; then
3442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3444 # work properly (i.e., refer to `conftest.exe'), while it won't with
3446 for ac_file in conftest.exe conftest conftest.*; do
3447 test -f "$ac_file" || continue
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3458 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3460 See \`config.log' for more details." >&5
3461 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3462 See \`config.log' for more details." >&2;}
3463 { (exit 1); exit 1; }; }; }
3466 rm -f conftest$ac_cv_exeext
3467 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3468 echo "${ECHO_T}$ac_cv_exeext" >&6
3470 rm -f conftest.$ac_ext
3471 EXEEXT=$ac_cv_exeext
3473 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3474 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3475 if test "${ac_cv_objext+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3493 rm -f conftest.o conftest.obj
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; then
3499 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3502 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3511 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3513 See \`config.log' for more details." >&5
3514 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&2;}
3516 { (exit 1); exit 1; }; }; }
3519 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3522 echo "${ECHO_T}$ac_cv_objext" >&6
3523 OBJEXT=$ac_cv_objext
3525 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3526 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3527 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 cat >conftest.$ac_ext <<_ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3548 rm -f conftest.$ac_objext
3549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3550 (eval $ac_compile) 2>conftest.er1
3552 grep -v '^ *+' conftest.er1 >conftest.err
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 { ac_try='test -z "$ac_c_werror_flag"
3558 || test ! -s conftest.err'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; } &&
3564 { ac_try='test -s conftest.$ac_objext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3581 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3582 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3583 GCC=`test $ac_compiler_gnu = yes && echo yes`
3584 ac_test_CFLAGS=${CFLAGS+set}
3585 ac_save_CFLAGS=$CFLAGS
3587 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3588 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3589 if test "${ac_cv_prog_cc_g+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3611 grep -v '^ *+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag"
3617 || test ! -s conftest.err'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; } &&
3623 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3640 if test "$ac_test_CFLAGS" = set; then
3641 CFLAGS=$ac_save_CFLAGS
3642 elif test $ac_cv_prog_cc_g = yes; then
3643 if test "$GCC" = yes; then
3649 if test "$GCC" = yes; then
3655 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3656 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3657 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 ac_cv_prog_cc_stdc=no
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3670 #include <sys/types.h>
3671 #include <sys/stat.h>
3672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3673 struct buf { int x; };
3674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675 static char *e (p, i)
3681 static char *f (char * (*g) (char **, int), char **p, ...)
3686 s = g (p, va_arg (v,int));
3691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3692 function prototypes and stuff, but not '\xHH' hex character constants.
3693 These don't provoke an error unfortunately, instead are silently treated
3694 as 'x'. The following induces an error, until -std1 is added to get
3695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3696 array size at least. It's necessary to write '\x00'==0 to get something
3697 that's true only with -std1. */
3698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 # Don't try gcc -ansi; that turns off useful extensions and
3715 # breaks some systems' header files.
3716 # AIX -qlanglvl=ansi
3717 # Ultrix and OSF/1 -std1
3718 # HP-UX 10.20 and later -Ae
3719 # HP-UX older versions -Aa -D_HPUX_SOURCE
3720 # SVR4 -Xc -D__EXTENSIONS__
3721 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3723 CC="$ac_save_CC $ac_arg"
3724 rm -f conftest.$ac_objext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726 (eval $ac_compile) 2>conftest.er1
3728 grep -v '^ *+' conftest.er1 >conftest.err
3730 cat conftest.err >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 { ac_try='test -z "$ac_c_werror_flag"
3734 || test ! -s conftest.err'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest.$ac_objext'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3746 ac_cv_prog_cc_stdc=$ac_arg
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3753 rm -f conftest.err conftest.$ac_objext
3755 rm -f conftest.$ac_ext conftest.$ac_objext
3760 case "x$ac_cv_prog_cc_stdc" in
3762 echo "$as_me:$LINENO: result: none needed" >&5
3763 echo "${ECHO_T}none needed" >&6 ;;
3765 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3766 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3767 CC="$CC $ac_cv_prog_cc_stdc" ;;
3770 # Some people use a C++ compiler to compile C. Since we use `exit',
3771 # in C++ we need to declare it. In case someone uses the same compiler
3772 # for both compiling C and C++ we need to have the C++ compiler decide
3773 # the declaration of exit, since it's the most demanding environment.
3774 cat >conftest.$ac_ext <<_ACEOF
3779 rm -f conftest.$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781 (eval $ac_compile) 2>conftest.er1
3783 grep -v '^ *+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 { ac_try='test -z "$ac_c_werror_flag"
3789 || test ! -s conftest.err'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; } &&
3795 { ac_try='test -s conftest.$ac_objext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 for ac_declaration in \
3803 'extern "C" void std::exit (int) throw (); using std::exit;' \
3804 'extern "C" void std::exit (int); using std::exit;' \
3805 'extern "C" void exit (int) throw ();' \
3806 'extern "C" void exit (int);' \
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3825 rm -f conftest.$ac_objext
3826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827 (eval $ac_compile) 2>conftest.er1
3829 grep -v '^ *+' conftest.er1 >conftest.err
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -z "$ac_c_werror_flag"
3835 || test ! -s conftest.err'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3870 rm -f conftest.$ac_objext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872 (eval $ac_compile) 2>conftest.er1
3874 grep -v '^ *+' conftest.er1 >conftest.err
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -z "$ac_c_werror_flag"
3880 || test ! -s conftest.err'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; } &&
3886 { ac_try='test -s conftest.$ac_objext'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; }; then
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901 if test -n "$ac_declaration"; then
3902 echo '#ifdef __cplusplus' >>confdefs.h
3903 echo $ac_declaration >>confdefs.h
3904 echo '#endif' >>confdefs.h
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3914 ac_cpp='$CPP $CPPFLAGS'
3915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 ac_cpp='$CXXCPP $CPPFLAGS'
3921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3924 if test -n "$ac_tool_prefix"; then
3925 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3929 echo "$as_me:$LINENO: checking for $ac_word" >&5
3930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3931 if test "${ac_cv_prog_CXX+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 if test -n "$CXX"; then
3935 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 if test -n "$CXX"; then
3955 echo "$as_me:$LINENO: result: $CXX" >&5
3956 echo "${ECHO_T}$CXX" >&6
3958 echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6
3962 test -n "$CXX" && break
3965 if test -z "$CXX"; then
3967 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3969 # Extract the first word of "$ac_prog", so it can be a program name with args.
3970 set dummy $ac_prog; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 if test -n "$ac_ct_CXX"; then
3977 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986 ac_cv_prog_ac_ct_CXX="$ac_prog"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3996 if test -n "$ac_ct_CXX"; then
3997 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3998 echo "${ECHO_T}$ac_ct_CXX" >&6
4000 echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4004 test -n "$ac_ct_CXX" && break
4006 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4012 # Provide some information about the compiler.
4013 echo "$as_me:$LINENO:" \
4014 "checking for C++ compiler version" >&5
4015 ac_compiler=`set X $ac_compile; echo $2`
4016 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4017 (eval $ac_compiler --version </dev/null >&5) 2>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }
4021 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4022 (eval $ac_compiler -v </dev/null >&5) 2>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }
4026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4027 (eval $ac_compiler -V </dev/null >&5) 2>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }
4032 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4055 rm -f conftest.$ac_objext
4056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4057 (eval $ac_compile) 2>conftest.er1
4059 grep -v '^ *+' conftest.er1 >conftest.err
4061 cat conftest.err >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } &&
4064 { ac_try='test -z "$ac_cxx_werror_flag"
4065 || test ! -s conftest.err'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4088 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4089 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4090 GXX=`test $ac_compiler_gnu = yes && echo yes`
4091 ac_test_CXXFLAGS=${CXXFLAGS+set}
4092 ac_save_CXXFLAGS=$CXXFLAGS
4094 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4095 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4096 if test "${ac_cv_prog_cxx_g+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 cat >conftest.$ac_ext <<_ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_cxx_werror_flag"
4124 || test ! -s conftest.err'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try='test -s conftest.$ac_objext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 ac_cv_prog_cxx_g=yes
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4145 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4146 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4147 if test "$ac_test_CXXFLAGS" = set; then
4148 CXXFLAGS=$ac_save_CXXFLAGS
4149 elif test $ac_cv_prog_cxx_g = yes; then
4150 if test "$GXX" = yes; then
4156 if test "$GXX" = yes; then
4162 for ac_declaration in \
4164 'extern "C" void std::exit (int) throw (); using std::exit;' \
4165 'extern "C" void std::exit (int); using std::exit;' \
4166 'extern "C" void exit (int) throw ();' \
4167 'extern "C" void exit (int);' \
4170 cat >conftest.$ac_ext <<_ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4186 rm -f conftest.$ac_objext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>conftest.er1
4190 grep -v '^ *+' conftest.er1 >conftest.err
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try='test -z "$ac_cxx_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4216 cat >conftest.$ac_ext <<_ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4231 rm -f conftest.$ac_objext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233 (eval $ac_compile) 2>conftest.er1
4235 grep -v '^ *+' conftest.er1 >conftest.err
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -z "$ac_cxx_werror_flag"
4241 || test ! -s conftest.err'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; } &&
4247 { ac_try='test -s conftest.$ac_objext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4262 if test -n "$ac_declaration"; then
4263 echo '#ifdef __cplusplus' >>confdefs.h
4264 echo $ac_declaration >>confdefs.h
4265 echo '#endif' >>confdefs.h
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275 # We must set the default linker to the linker used by gcc for the correct
4276 # operation of libtool. If LD is not defined and we are using gcc, try to
4277 # set the LD default to the ld used by gcc.
4278 if test -z "$LD"; then
4279 if test "$GCC" = yes; then
4282 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4284 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4286 case $gcc_prog_ld in
4287 # Accept absolute paths.
4288 [\\/]* | [A-Za-z]:[\\/]*)
4289 LD="$gcc_prog_ld" ;;
4297 if test -n "$ac_tool_prefix"; then
4298 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4299 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4300 echo "$as_me:$LINENO: checking for $ac_word" >&5
4301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4302 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 if test -n "$GNATBIND"; then
4306 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4315 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 GNATBIND=$ac_cv_prog_GNATBIND
4325 if test -n "$GNATBIND"; then
4326 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4327 echo "${ECHO_T}$GNATBIND" >&6
4329 echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6
4334 if test -z "$ac_cv_prog_GNATBIND"; then
4335 ac_ct_GNATBIND=$GNATBIND
4336 # Extract the first word of "gnatbind", so it can be a program name with args.
4337 set dummy gnatbind; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 if test -n "$ac_ct_GNATBIND"; then
4344 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4363 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4364 if test -n "$ac_ct_GNATBIND"; then
4365 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4366 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4368 echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6
4372 GNATBIND=$ac_ct_GNATBIND
4374 GNATBIND="$ac_cv_prog_GNATBIND"
4377 if test -n "$ac_tool_prefix"; then
4378 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4379 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4380 echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4382 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test -n "$GNATMAKE"; then
4386 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 GNATMAKE=$ac_cv_prog_GNATMAKE
4405 if test -n "$GNATMAKE"; then
4406 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4407 echo "${ECHO_T}$GNATMAKE" >&6
4409 echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4414 if test -z "$ac_cv_prog_GNATMAKE"; then
4415 ac_ct_GNATMAKE=$GNATMAKE
4416 # Extract the first word of "gnatmake", so it can be a program name with args.
4417 set dummy gnatmake; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test -n "$ac_ct_GNATMAKE"; then
4424 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4443 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4444 if test -n "$ac_ct_GNATMAKE"; then
4445 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4446 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4448 echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4452 GNATMAKE=$ac_ct_GNATMAKE
4454 GNATMAKE="$ac_cv_prog_GNATMAKE"
4457 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4458 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4459 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 cat >conftest.adb <<EOF
4463 procedure conftest is begin null; end conftest;
4465 acx_cv_cc_gcc_supports_ada=no
4466 # There is a bug in old released versions of GCC which causes the
4467 # driver to exit successfully when the appropriate language module
4468 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4469 # Therefore we must check for the error message as well as an
4470 # unsuccessful exit.
4471 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4472 # given a .adb file, but produce no object file. So we must check
4473 # if an object file was really produced to guard against this.
4474 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4475 if test x"$errors" = x && test -f conftest.$ac_objext; then
4476 acx_cv_cc_gcc_supports_ada=yes
4480 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4481 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4483 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4489 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4490 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4491 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4497 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4498 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4501 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4504 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4505 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4508 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4514 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4515 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4516 do_compare="$gcc_cv_prog_cmp_skip"
4520 # See if we are building gcc with C++.
4521 # Check whether --enable-build-with-cxx or --disable-build-with-cxx was given.
4522 if test "${enable_build_with_cxx+set}" = set; then
4523 enableval="$enable_build_with_cxx"
4524 ENABLE_BUILD_WITH_CXX=$enableval
4526 ENABLE_BUILD_WITH_CXX=no
4529 # Check for GMP, MPFR and MPC
4530 gmplibs="-lmpfr -lgmp"
4537 # Specify a location for mpc
4538 # check for this first so it ends up on the link line before mpfr.
4540 # Check whether --with-mpc or --without-mpc was given.
4541 if test "${with_mpc+set}" = set; then
4546 # Check whether --with-mpc_include or --without-mpc_include was given.
4547 if test "${with_mpc_include+set}" = set; then
4548 withval="$with_mpc_include"
4552 # Check whether --with-mpc_lib or --without-mpc_lib was given.
4553 if test "${with_mpc_lib+set}" = set; then
4554 withval="$with_mpc_lib"
4558 if test "x$with_mpc" != x; then
4559 mpclibs="-L$with_mpc/lib -lmpc"
4560 mpcinc="-I$with_mpc/include $mpcinc"
4562 if test "x$with_mpc_include" != x; then
4563 mpcinc="-I$with_mpc_include $mpcinc"
4565 if test "x$with_mpc_lib" != x; then
4566 mpclibs="-L$with_mpc_lib -lmpc"
4568 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4569 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4570 mpcinc='-I$$s/mpc/src '"$mpcinc"
4571 # Do not test the mpc version. Assume that it is sufficient, since
4572 # it is in the source tree, and the library has not been built yet
4573 # but it would be included on the link line in the version check below
4574 # hence making the test fail.
4578 # Specify a location for mpfr
4579 # check for this first so it ends up on the link line before gmp.
4581 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4582 if test "${with_mpfr_dir+set}" = set; then
4583 withval="$with_mpfr_dir"
4584 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4585 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4586 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4587 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4588 { (exit 1); exit 1; }; }
4592 # Check whether --with-mpfr or --without-mpfr was given.
4593 if test "${with_mpfr+set}" = set; then
4594 withval="$with_mpfr"
4598 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4599 if test "${with_mpfr_include+set}" = set; then
4600 withval="$with_mpfr_include"
4604 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4605 if test "${with_mpfr_lib+set}" = set; then
4606 withval="$with_mpfr_lib"
4610 if test "x$with_mpfr" != x; then
4611 gmplibs="-L$with_mpfr/lib $gmplibs"
4612 gmpinc="-I$with_mpfr/include"
4614 if test "x$with_mpfr_include" != x; then
4615 gmpinc="-I$with_mpfr_include"
4617 if test "x$with_mpfr_lib" != x; then
4618 gmplibs="-L$with_mpfr_lib $gmplibs"
4620 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4621 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4622 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4623 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
4624 # Do not test the mpfr version. Assume that it is sufficient, since
4625 # it is in the source tree, and the library has not been built yet
4626 # but it would be included on the link line in the version check below
4627 # hence making the test fail.
4631 # Specify a location for gmp
4633 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4634 if test "${with_gmp_dir+set}" = set; then
4635 withval="$with_gmp_dir"
4636 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4637 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4638 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4639 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4640 { (exit 1); exit 1; }; }
4644 # Check whether --with-gmp or --without-gmp was given.
4645 if test "${with_gmp+set}" = set; then
4650 # Check whether --with-gmp_include or --without-gmp_include was given.
4651 if test "${with_gmp_include+set}" = set; then
4652 withval="$with_gmp_include"
4656 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4657 if test "${with_gmp_lib+set}" = set; then
4658 withval="$with_gmp_lib"
4663 if test "x$with_gmp" != x; then
4664 gmplibs="-L$with_gmp/lib $gmplibs"
4665 gmpinc="-I$with_gmp/include $gmpinc"
4667 if test "x$with_gmp_include" != x; then
4668 gmpinc="-I$with_gmp_include $gmpinc"
4670 if test "x$with_gmp_lib" != x; then
4671 gmplibs="-L$with_gmp_lib $gmplibs"
4673 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4674 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4675 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4676 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
4677 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
4678 # Do not test the gmp version. Assume that it is sufficient, since
4679 # it is in the source tree, and the library has not been built yet
4680 # but it would be included on the link line in the version check below
4681 # hence making the test fail.
4685 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4687 saved_CFLAGS="$CFLAGS"
4688 CFLAGS="$CFLAGS $gmpinc"
4689 # Check GMP actually works
4690 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4691 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4704 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4716 grep -v '^ *+' conftest.er1 >conftest.err
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 echo "$as_me:$LINENO: result: yes" >&5
4735 echo "${ECHO_T}yes" >&6
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; have_gmp=no
4743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4745 # If we have GMP, check the MPFR version.
4746 if test x"$have_gmp" = xyes; then
4747 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4748 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4761 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -z "$ac_c_werror_flag"
4779 || test ! -s conftest.err'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; } &&
4785 { ac_try='test -s conftest.$ac_objext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4803 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>conftest.er1
4815 grep -v '^ *+' conftest.er1 >conftest.err
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -z "$ac_c_werror_flag"
4821 || test ! -s conftest.err'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest.$ac_objext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 echo "$as_me:$LINENO: result: yes" >&5
4834 echo "${ECHO_T}yes" >&6
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4840 echo "${ECHO_T}buggy but acceptable" >&6
4842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4847 echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; have_gmp=no
4850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4853 # Check for the MPC header version.
4854 if test x"$have_mpc" != xyes ; then
4855 CFLAGS="$CFLAGS $mpcinc"
4856 echo "$as_me:$LINENO: checking for the correct version of mpc.h" >&5
4857 echo $ECHO_N "checking for the correct version of mpc.h... $ECHO_C" >&6
4858 cat >conftest.$ac_ext <<_ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4869 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
4877 rm -f conftest.$ac_objext
4878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879 (eval $ac_compile) 2>conftest.er1
4881 grep -v '^ *+' conftest.er1 >conftest.err
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -z "$ac_c_werror_flag"
4887 || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try='test -s conftest.$ac_objext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 echo "$as_me:$LINENO: result: yes" >&5
4900 echo "${ECHO_T}yes" >&6; have_mpc=maybe
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905 echo "$as_me:$LINENO: result: no" >&5
4906 echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
4908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911 # Now check the MPFR library.
4912 if test x"$have_gmp" = xyes; then
4914 LIBS="$LIBS $gmplibs"
4915 echo "$as_me:$LINENO: checking for the correct version of the gmp/mpfr libraries" >&5
4916 echo $ECHO_N "checking for the correct version of the gmp/mpfr libraries... $ECHO_C" >&6
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4934 mpfr_atan2 (n, n, x, GMP_RNDN);
4935 mpfr_erfc (n, x, GMP_RNDN);
4936 mpfr_subnormalize (x, t, GMP_RNDN);
4942 rm -f conftest.$ac_objext conftest$ac_exeext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4944 (eval $ac_link) 2>conftest.er1
4946 grep -v '^ *+' conftest.er1 >conftest.err
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try='test -z "$ac_c_werror_flag"
4952 || test ! -s conftest.err'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; } &&
4958 { ac_try='test -s conftest$ac_exeext'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; have_gmp=no
4973 rm -f conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
4978 if test x"$have_mpc" = xmaybe; then
4980 LIBS="$LIBS $mpclibs $gmplibs"
4981 echo "$as_me:$LINENO: checking for the correct version of the mpc library" >&5
4982 echo $ECHO_N "checking for the correct version of the mpc library... $ECHO_C" >&6
4983 cat >conftest.$ac_ext <<_ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4996 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
4997 mpc_sin (n, n, MPC_RNDNN);
4998 mpc_cos (n, n, MPC_RNDNN);
4999 mpc_tan (n, n, MPC_RNDNN);
5000 mpc_sinh (n, n, MPC_RNDNN);
5001 mpc_cosh (n, n, MPC_RNDNN);
5002 mpc_tanh (n, n, MPC_RNDNN);
5003 mpc_exp (n, n, MPC_RNDNN);
5004 mpc_log (n, n, MPC_RNDNN);
5005 mpc_sqrt (n, n, MPC_RNDNN);
5006 mpc_proj (n, n, MPC_RNDNN);
5007 mpc_neg (n, n, MPC_RNDNN);
5008 mpc_sqr (n, n, MPC_RNDNN);
5015 rm -f conftest.$ac_objext conftest$ac_exeext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5017 (eval $ac_link) 2>conftest.er1
5019 grep -v '^ *+' conftest.er1 >conftest.err
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -z "$ac_c_werror_flag"
5025 || test ! -s conftest.err'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; } &&
5031 { ac_try='test -s conftest$ac_exeext'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 echo "$as_me:$LINENO: result: yes" >&5
5038 echo "${ECHO_T}yes" >&6; have_mpc=yes
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
5046 rm -f conftest.err conftest.$ac_objext \
5047 conftest$ac_exeext conftest.$ac_ext
5051 CFLAGS="$saved_CFLAGS"
5053 if test x$have_gmp != xyes; then
5054 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
5055 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5056 Copies of these libraries' source code can be found at their respective
5057 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5058 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5059 If you obtained GMP and/or MPFR from a vendor distribution package, make
5060 sure that you have installed both the libraries and the header files.
5061 They may be located in separate packages." >&5
5062 echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
5063 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5064 Copies of these libraries' source code can be found at their respective
5065 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5066 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5067 If you obtained GMP and/or MPFR from a vendor distribution package, make
5068 sure that you have installed both the libraries and the header files.
5069 They may be located in separate packages." >&2;}
5070 { (exit 1); exit 1; }; }
5074 if test x$have_mpc != xyes ; then
5079 gmpinc="$mpcinc $gmpinc"
5080 gmplibs="$mpclibs $gmplibs"
5082 # Flags needed for both GMP, MPFR and/or MPC.
5089 # Allow host libstdc++ to be specified for static linking with PPL.
5091 # Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
5092 if test "${with_host_libstdcxx+set}" = set; then
5093 withval="$with_host_libstdcxx"
5097 case $with_host_libstdcxx in
5099 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
5100 echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
5101 { (exit 1); exit 1; }; }
5105 # Linker flags to use for stage1 or when not boostrapping.
5107 # Check whether --with-stage1-ldflags or --without-stage1-ldflags was given.
5108 if test "${with_stage1_ldflags+set}" = set; then
5109 withval="$with_stage1_ldflags"
5110 if test "$withval" = "no" -o "$withval" = "yes"; then
5113 stage1_ldflags=$withval
5120 # Libraries to use for stage1 or when not bootstrapping.
5122 # Check whether --with-stage1-libs or --without-stage1-libs was given.
5123 if test "${with_stage1_libs+set}" = set; then
5124 withval="$with_stage1_libs"
5125 if test "$withval" = "no" -o "$withval" = "yes"; then
5128 stage1_libs=$withval
5131 stage1_libs=$with_host_libstdcxx
5135 # Linker flags to use for stage2 and later builds.
5137 # Check whether --with-boot-ldflags or --without-boot-ldflags was given.
5138 if test "${with_boot_ldflags+set}" = set; then
5139 withval="$with_boot_ldflags"
5140 if test "$withval" = "no" -o "$withval" = "yes"; then
5143 poststage1_ldflags=$withval
5146 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5147 poststage1_ldflags=-static-libstdc++
5154 # Libraries to use for stage2 and later builds. This defaults to the
5155 # argument passed to --with-host-libstdcxx.
5157 # Check whether --with-boot-libs or --without-boot-libs was given.
5158 if test "${with_boot_libs+set}" = set; then
5159 withval="$with_boot_libs"
5160 if test "$withval" = "no" -o "$withval" = "yes"; then
5163 poststage1_libs=$withval
5166 poststage1_libs=$with_host_libstdcxx
5172 ppl_minor_version=10
5173 ppllibs=" -lppl_c -lppl -lgmpxx"
5177 # Check whether --with-ppl or --without-ppl was given.
5178 if test "${with_ppl+set}" = set; then
5185 # Check whether --with-ppl_include or --without-ppl_include was given.
5186 if test "${with_ppl_include+set}" = set; then
5187 withval="$with_ppl_include"
5191 # Check whether --with-ppl_lib or --without-ppl_lib was given.
5192 if test "${with_ppl_lib+set}" = set; then
5193 withval="$with_ppl_lib"
5202 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5203 pplinc="-I$with_ppl/include $pplinc"
5204 LIBS="$ppllibs $LIBS"
5207 if test "x$with_ppl_include" != x; then
5208 pplinc="-I$with_ppl_include $pplinc"
5210 if test "x$with_ppl_lib" != x; then
5211 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5212 LIBS="$ppllibs $LIBS"
5214 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5215 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
5216 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5217 LIBS="$ppllibs $LIBS"
5220 # Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
5221 if test "${enable_ppl_version_check+set}" = set; then
5222 enableval="$enable_ppl_version_check"
5223 ENABLE_PPL_CHECK=$enableval
5225 ENABLE_PPL_CHECK=yes
5228 if test "${ENABLE_PPL_CHECK}" = "yes"; then
5229 saved_CFLAGS="$CFLAGS"
5230 CFLAGS="$CFLAGS $pplinc $gmpinc"
5231 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5232 echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
5233 cat >conftest.$ac_ext <<_ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5244 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5252 rm -f conftest.$ac_objext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5254 (eval $ac_compile) 2>conftest.er1
5256 grep -v '^ *+' conftest.er1 >conftest.err
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -z "$ac_c_werror_flag"
5262 || test ! -s conftest.err'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; } &&
5268 { ac_try='test -s conftest.$ac_objext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5274 echo "$as_me:$LINENO: result: yes" >&5
5275 echo "${ECHO_T}yes" >&6
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
5283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5284 CFLAGS="$saved_CFLAGS"
5287 # Flags needed for PPL
5293 clooglibs=" -lcloog "
5294 clooginc=" -DCLOOG_PPL_BACKEND "
5297 # Check whether --with-cloog or --without-cloog was given.
5298 if test "${with_cloog+set}" = set; then
5299 withval="$with_cloog"
5305 # Check whether --with-cloog_include or --without-cloog_include was given.
5306 if test "${with_cloog_include+set}" = set; then
5307 withval="$with_cloog_include"
5311 # Check whether --with-cloog_lib or --without-cloog_lib was given.
5312 if test "${with_cloog_lib+set}" = set; then
5313 withval="$with_cloog_lib"
5323 clooglibs="-L$with_cloog/lib -lcloog"
5324 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5325 LIBS="$clooglibs $LIBS"
5328 if test "x$with_cloog_include" != x; then
5329 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5331 if test "x$with_cloog_lib" != x; then
5332 clooglibs="-L$with_cloog_lib -lcloog"
5333 LIBS="$clooglibs $LIBS"
5335 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5336 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5337 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5338 LIBS="$clooglibs $LIBS"
5341 # Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5342 if test "${enable_cloog_version_check+set}" = set; then
5343 enableval="$enable_cloog_version_check"
5344 ENABLE_CLOOG_CHECK=$enableval
5346 ENABLE_CLOOG_CHECK=yes
5349 if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5350 saved_CFLAGS="$CFLAGS"
5351 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5352 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
5353 echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 #include "cloog/cloog.h"
5365 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5373 rm -f conftest.$ac_objext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>conftest.er1
5377 grep -v '^ *+' conftest.er1 >conftest.err
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -z "$ac_c_werror_flag"
5383 || test ! -s conftest.err'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; } &&
5389 { ac_try='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 echo "$as_me:$LINENO: result: yes" >&5
5396 echo "${ECHO_T}yes" >&6
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5405 CFLAGS="$saved_CFLAGS"
5408 # Flags needed for CLOOG
5413 # By default, C is the only stage 1 language.
5414 stage1_languages=,c,
5416 # Target libraries that we bootstrap.
5417 bootstrap_target_libs=,target-libgcc,
5419 # Figure out what language subdirectories are present.
5420 # Look if the user specified --enable-languages="..."; if not, use
5421 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5423 # NB: embedded tabs in this IF block -- do not untabify
5424 if test -d ${srcdir}/gcc; then
5425 if test x"${enable_languages+set}" != xset; then
5426 if test x"${LANGUAGES+set}" = xset; then
5427 enable_languages="${LANGUAGES}"
5428 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5430 enable_languages=all
5433 if test x"${enable_languages}" = x ||
5434 test x"${enable_languages}" = xyes;
5436 echo configure.in: --enable-languages needs at least one language argument 1>&2
5440 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5442 # 'f95' is the old name for the 'fortran' language. We issue a warning
5443 # and make the substitution.
5444 case ,${enable_languages}, in
5446 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5447 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5451 # First scan to see if an enabled language requires some other language.
5452 # We assume that a given config-lang.in will list all the language
5453 # front ends it requires, even if some are required indirectly.
5454 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5455 case ${lang_frag} in
5457 # The odd quoting in the next line works around
5458 # an apparent bug in bash 1.12 on linux.
5459 ${srcdir}/gcc/[*]/config-lang.in) ;;
5461 # From the config-lang.in, get $language, $lang_requires
5465 for other in ${lang_requires} ; do
5466 case ,${enable_languages}, in
5470 echo " \`$other' language required by \`$language'; enabling" 1>&2
5471 enable_languages="${enable_languages},${other}"
5479 new_enable_languages=,c,
5480 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5481 potential_languages=,c,
5483 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5484 case ${lang_frag} in
5486 # The odd quoting in the next line works around
5487 # an apparent bug in bash 1.12 on linux.
5488 ${srcdir}/gcc/[*]/config-lang.in) ;;
5490 # From the config-lang.in, get $language, $target_libs,
5491 # $lang_dirs, $boot_language, and $build_by_default
5497 build_by_default=yes
5499 if test x${language} = x; then
5500 echo "${lang_frag} doesn't set \$language." 1>&2
5504 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5508 case ,${enable_languages}, in
5510 # Language was explicitly selected; include it.
5514 # 'all' was selected, select it if it is a default language
5515 add_this_lang=${build_by_default}
5522 # Disable languages that need other directories if these aren't available.
5523 for i in $subdir_requires; do
5524 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5525 case ,${enable_languages}, in
5527 # Specifically requested language; tell them.
5528 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5529 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5530 { (exit 1); exit 1; }; }
5534 add_this_lang=unsupported
5539 # Disable Ada if no preexisting GNAT is available.
5540 case ,${enable_languages},:${language}:${have_gnat} in
5541 *,${language},*:ada:no)
5542 # Specifically requested language; tell them.
5543 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5544 echo "$as_me: error: GNAT is required to build $language" >&2;}
5545 { (exit 1); exit 1; }; }
5549 add_this_lang=unsupported
5553 # Disable a language that is unsupported by the target.
5554 case " $unsupported_languages " in
5556 add_this_lang=unsupported
5560 case $add_this_lang in
5562 # Remove language-dependent dirs.
5563 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5566 # Remove language-dependent dirs; still show language as supported.
5567 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5568 potential_languages="${potential_languages}${language},"
5571 new_enable_languages="${new_enable_languages}${language},"
5572 potential_languages="${potential_languages}${language},"
5573 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5574 case ${boot_language} in
5576 # Add to (comma-separated) list of stage 1 languages.
5577 stage1_languages="${stage1_languages}${language},"
5578 # We need to bootstrap any supporting libraries.
5579 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
5588 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5589 if test "${enable_stage1_languages+set}" = set; then
5590 enableval="$enable_stage1_languages"
5591 case ,${enable_stage1_languages}, in
5593 # Set it to something that will have no effect in the loop below
5594 enable_stage1_languages=c ;;
5596 enable_stage1_languages=`echo $new_enable_languages | \
5597 sed -e "s/^,//" -e "s/,$//" ` ;;
5599 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5600 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5603 # Add "good" languages from enable_stage1_languages to stage1_languages,
5604 # while "bad" languages go in missing_languages. Leave no duplicates.
5605 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5606 case $potential_languages in
5608 case $stage1_languages in
5610 *) stage1_languages="$stage1_languages$i," ;;
5613 case $missing_languages in
5615 *) missing_languages="$missing_languages$i," ;;
5621 # Remove leading/trailing commas that were added for simplicity
5622 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5623 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5624 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5625 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5627 if test "x$missing_languages" != x; then
5628 { { echo "$as_me:$LINENO: error:
5629 The following requested languages could not be built: ${missing_languages}
5630 Supported languages are: ${potential_languages}" >&5
5631 echo "$as_me: error:
5632 The following requested languages could not be built: ${missing_languages}
5633 Supported languages are: ${potential_languages}" >&2;}
5634 { (exit 1); exit 1; }; }
5636 if test "x$new_enable_languages" != "x$enable_languages"; then
5637 echo The following languages will be built: ${new_enable_languages}
5638 enable_languages="$new_enable_languages"
5642 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5645 # Handle --disable-<component> generically.
5646 for dir in $configdirs $build_configdirs $target_configdirs ; do
5647 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5648 varname=`echo $dirname | sed -e s/+/_/g`
5649 if eval test x\${enable_${varname}} "=" xno ; then
5650 noconfigdirs="$noconfigdirs $dir"
5654 # Check for Boehm's garbage collector
5655 # Check whether --enable-objc-gc or --disable-objc-gc was given.
5656 if test "${enable_objc_gc+set}" = set; then
5657 enableval="$enable_objc_gc"
5658 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5659 *,objc,*:*:yes:*target-boehm-gc*)
5660 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5661 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5662 { (exit 1); exit 1; }; }
5667 # Make sure we only build Boehm's garbage collector if required.
5668 case ,${enable_languages},:${enable_objc_gc} in
5670 # Keep target-boehm-gc if requested for Objective-C.
5673 # Otherwise remove target-boehm-gc depending on target-libjava.
5674 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5675 noconfigdirs="$noconfigdirs target-boehm-gc"
5680 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5681 # $build_configdirs and $target_configdirs.
5682 # If we have the source for $noconfigdirs entries, add them to $notsupp.
5685 for dir in . $skipdirs $noconfigdirs ; do
5686 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5687 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5688 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5689 if test -r $srcdir/$dirname/configure ; then
5690 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5693 notsupp="$notsupp $dir"
5697 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5698 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5699 if test -r $srcdir/$dirname/configure ; then
5700 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5703 notsupp="$notsupp $dir"
5707 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5708 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5709 if test -r $srcdir/$dirname/configure ; then
5710 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5713 notsupp="$notsupp $dir"
5719 # Sometimes the tools are distributed with libiberty but with no other
5720 # libraries. In that case, we don't want to build target-libiberty.
5721 # Don't let libgcc imply libiberty either.
5722 if test -n "${target_configdirs}" ; then
5725 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5726 if test "$i" = "libgcc"; then
5727 libgcc=target-libgcc
5728 elif test "$i" != "libiberty" ; then
5729 if test -r $srcdir/$i/configure ; then
5735 if test -z "${others}" ; then
5736 target_configdirs=$libgcc
5740 # Quietly strip out all directories which aren't configurable in this tree.
5741 # This relies on all configurable subdirectories being autoconfiscated, which
5743 build_configdirs_all="$build_configdirs"
5745 for i in ${build_configdirs_all} ; do
5746 j=`echo $i | sed -e s/build-//g`
5747 if test -f ${srcdir}/$j/configure ; then
5748 build_configdirs="${build_configdirs} $i"
5752 configdirs_all="$configdirs"
5754 for i in ${configdirs_all} ; do
5755 if test -f ${srcdir}/$i/configure ; then
5756 configdirs="${configdirs} $i"
5760 target_configdirs_all="$target_configdirs"
5762 for i in ${target_configdirs_all} ; do
5763 j=`echo $i | sed -e s/target-//g`
5764 if test -f ${srcdir}/$j/configure ; then
5765 target_configdirs="${target_configdirs} $i"
5769 # Produce a warning message for the subdirs we can't configure.
5770 # This isn't especially interesting in the Cygnus tree, but in the individual
5771 # FSF releases, it's important to let people know when their machine isn't
5772 # supported by the one or two programs in a package.
5774 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5775 # If $appdirs is non-empty, at least one of those directories must still
5776 # be configured, or we error out. (E.g., if the gas release supports a
5777 # specified target in some subdirs but not the gas subdir, we shouldn't
5778 # pretend that all is well.)
5779 if test -n "$appdirs" ; then
5780 for dir in $appdirs ; do
5781 if test -r $dir/Makefile.in ; then
5782 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5786 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5792 if test -n "$appdirs" ; then
5793 echo "*** This configuration is not supported by this package." 1>&2
5797 # Okay, some application will build, or we don't care to check. Still
5798 # notify of subdirs not getting built.
5799 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5800 echo " ${notsupp}" 1>&2
5801 echo " (Any other directories should still work fine.)" 1>&2
5809 # To find our prefix, in gcc_cv_tool_prefix.
5811 # The user is always right.
5812 if test "${PATH_SEPARATOR+set}" != set; then
5813 echo "#! /bin/sh" >conf$$.sh
5814 echo "exit 0" >>conf$$.sh
5816 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5826 if test "x$exec_prefix" = xNONE; then
5827 if test "x$prefix" = xNONE; then
5828 gcc_cv_tool_prefix=$ac_default_prefix
5830 gcc_cv_tool_prefix=$prefix
5833 gcc_cv_tool_prefix=$exec_prefix
5836 # If there is no compiler in the tree, use the PATH only. In any
5837 # case, if there is no compiler in the tree nobody should use
5838 # AS_FOR_TARGET and LD_FOR_TARGET.
5839 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5840 gcc_version=`cat $srcdir/gcc/BASE-VER`
5841 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5842 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5843 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5844 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5845 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5846 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5851 if test x$build = x$target && test -n "$md_exec_prefix"; then
5852 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5860 # Check whether --with-build-sysroot or --without-build-sysroot was given.
5861 if test "${with_build_sysroot+set}" = set; then
5862 withval="$with_build_sysroot"
5863 if test x"$withval" != x ; then
5864 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5867 SYSROOT_CFLAGS_FOR_TARGET=
5872 # Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5873 if test "${with_debug_prefix_map+set}" = set; then
5874 withval="$with_debug_prefix_map"
5875 if test x"$withval" != x; then
5876 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5877 for debug_map in $withval; do
5878 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5882 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5886 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5887 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5888 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5889 # We want to ensure that TARGET libraries (which we know are built with
5890 # gcc) are built with "-O2 -g", so include those options when setting
5891 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5892 if test "x$CFLAGS_FOR_TARGET" = x; then
5893 CFLAGS_FOR_TARGET=$CFLAGS
5896 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5899 *" -g "* | *" -g3 "*) ;;
5900 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5905 if test "x$CXXFLAGS_FOR_TARGET" = x; then
5906 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5907 case " $CXXFLAGS " in
5909 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5911 case " $CXXFLAGS " in
5912 *" -g "* | *" -g3 "*) ;;
5913 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5918 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5919 # the named directory are copied to $(tooldir)/sys-include.
5920 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5921 if test x${is_cross_compiler} = xno ; then
5922 echo 1>&2 '***' --with-headers is only supported when cross compiling
5925 if test x"${with_headers}" != xyes ; then
5926 x=${gcc_cv_tool_prefix}
5927 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5931 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5932 # the name directories are copied to $(tooldir)/lib. Multiple directories
5934 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5935 if test x${is_cross_compiler} = xno ; then
5936 echo 1>&2 '***' --with-libs is only supported when cross compiling
5939 if test x"${with_libs}" != xyes ; then
5940 # Copy the libraries in reverse order, so that files in the first named
5941 # library override files in subsequent libraries.
5942 x=${gcc_cv_tool_prefix}
5943 for l in ${with_libs}; do
5944 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5949 # Set with_gnu_as and with_gnu_ld as appropriate.
5951 # This is done by determining whether or not the appropriate directory
5952 # is available, and by checking whether or not specific configurations
5953 # have requested that this magic not happen.
5955 # The command line options always override the explicit settings in
5956 # configure.in, and the settings in configure.in override this magic.
5958 # If the default for a toolchain is to use GNU as and ld, and you don't
5959 # want to do that, then you should use the --without-gnu-as and
5960 # --without-gnu-ld options for the configure script.
5962 if test x${use_gnu_as} = x &&
5963 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5965 extra_host_args="$extra_host_args --with-gnu-as"
5968 if test x${use_gnu_ld} = x &&
5969 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
5971 extra_host_args="$extra_host_args --with-gnu-ld"
5974 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5975 # can detect this case.
5977 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5979 extra_host_args="$extra_host_args --with-newlib"
5982 # Handle ${copy_dirs}
5983 set fnord ${copy_dirs}
5985 while test $# != 0 ; do
5986 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5989 echo Copying $1 to $2
5991 # Use the install script to create the directory and all required
5992 # parent directories.
5993 if test -d $2 ; then
5997 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6000 # Copy the directory, assuming we have tar.
6001 # FIXME: Should we use B in the second tar? Not all systems support it.
6002 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6004 # It is the responsibility of the user to correctly adjust all
6005 # symlinks. If somebody can figure out how to handle them correctly
6006 # here, feel free to add the code.
6013 # Determine a target-dependent exec_prefix that the installed
6014 # gcc will search in. Keep this list sorted by triplet, with
6015 # the *-*-osname triplets last.
6019 md_exec_prefix=/gnu/lib/gcc-lib
6021 i[34567]86-pc-msdosdjgpp*)
6022 md_exec_prefix=/dev/env/DJDIR/bin
6024 i[34567]86-*-sco3.2v5*)
6025 if test $with_gnu_as = yes; then
6026 md_exec_prefix=/usr/gnu/bin
6028 md_exec_prefix=/usr/ccs/bin/elf
6033 powerpc-*-chorusos* | \
6034 powerpc*-*-eabi* | \
6035 powerpc*-*-sysv* | \
6036 powerpc*-*-kaos* | \
6038 md_exec_prefix=/usr/ccs/bin
6043 md_exec_prefix=/usr/ccs/bin
6058 md_exec_prefix=/usr/ccs/bin
6062 extra_arflags_for_target=
6063 extra_nmflags_for_target=
6064 extra_ranlibflags_for_target=
6065 target_makefile_frag=/dev/null
6068 target_makefile_frag="config/mt-mep"
6071 target_makefile_frag="config/mt-spu"
6074 target_makefile_frag="config/mt-sde"
6076 mipsisa*-*-elfoabi*)
6077 target_makefile_frag="config/mt-mips-elfoabi"
6079 mips*-*-*linux* | mips*-*-gnu*)
6080 target_makefile_frag="config/mt-mips-gnu"
6083 target_makefile_frag="config/mt-netware"
6085 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6086 target_makefile_frag="config/mt-gnu"
6088 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6089 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6090 # commands to handle both 32-bit and 64-bit objects. These flags are
6091 # harmless if we're using GNU nm or ar.
6092 extra_arflags_for_target=" -X32_64"
6093 extra_nmflags_for_target=" -B -X32_64"
6096 # ranlib from Darwin requires the -c flag to look at common symbols.
6097 extra_ranlibflags_for_target=" -c"
6099 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6100 target_makefile_frag="config/mt-wince"
6104 alphaieee_frag=/dev/null
6107 # This just makes sure to use the -mieee option to build target libs.
6108 # This should probably be set individually by each library.
6109 alphaieee_frag="config/mt-alphaieee"
6113 # If --enable-target-optspace always use -Os instead of -O2 to build
6114 # the target libraries, similarly if it is not specified, use -Os
6115 # on selected platforms.
6116 ospace_frag=/dev/null
6117 case "${enable_target_optspace}:${target}" in
6119 ospace_frag="config/mt-ospace"
6122 ospace_frag="config/mt-d30v"
6124 :m32r-* | :d10v-* | :fr30-*)
6125 ospace_frag="config/mt-ospace"
6130 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6134 # Default to using --with-stabs for certain targets.
6135 if test x${with_stabs} = x ; then
6139 mips*-*-* | alpha*-*-osf*)
6141 extra_host_args="${extra_host_args} --with-stabs"
6146 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6147 # them automatically.
6150 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6154 # Some systems (e.g., one of the i386-aix systems the gas testers are
6155 # using) don't handle "\$" correctly, so don't use it here.
6156 tooldir='${exec_prefix}'/${target_noncanonical}
6157 build_tooldir=${tooldir}
6159 # Create a .gdbinit file which runs the one in srcdir
6160 # and tells GDB to look there for source files.
6162 if test -r ${srcdir}/.gdbinit ; then
6165 *) cat > ./.gdbinit <<EOF
6169 source ${srcdir}/.gdbinit
6175 # Make sure that the compiler is able to generate an executable. If it
6176 # can't, we are probably in trouble. We don't care whether we can run the
6177 # executable--we might be using a cross compiler--we only care whether it
6178 # can be created. At this point the main configure script has set CC.
6180 echo "int main () { return 0; }" > conftest.c
6181 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6182 if test $? = 0 ; then
6183 if test -s conftest || test -s conftest.exe ; then
6189 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6190 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6197 # The Solaris /usr/ucb/cc compiler does not appear to work.
6199 sparc-sun-solaris2*)
6200 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6201 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6203 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6204 if test -d /opt/cygnus/bin ; then
6205 if test "$could_use" = "" ; then
6206 could_use="/opt/cygnus/bin"
6208 could_use="$could_use or /opt/cygnus/bin"
6211 if test "$could_use" = "" ; then
6212 echo "Warning: compilation may fail because you're using"
6213 echo "/usr/ucb/cc. You should change your PATH or CC "
6214 echo "variable and rerun configure."
6216 echo "Warning: compilation may fail because you're using"
6217 echo "/usr/ucb/cc, when you should use the C compiler from"
6218 echo "$could_use. You should change your"
6219 echo "PATH or CC variable and rerun configure."
6225 # Decide which environment variable is used to find dynamic libraries.
6227 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6228 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6229 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6230 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6233 # On systems where the dynamic library environment variable is PATH,
6234 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6235 # built executables to PATH.
6236 if test "$RPATH_ENVVAR" = PATH; then
6237 GCC_SHLIB_SUBDIR=/shlib
6242 # Record target_configdirs and the configure arguments for target and
6243 # build configuration in Makefile.
6244 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6245 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6247 # Determine whether gdb needs tk/tcl or not.
6248 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6249 # and in that case we want gdb to be built without tk. Ugh!
6250 # In fact I believe gdb is the *only* package directly dependent on tk,
6251 # so we should be able to put the 'maybe's in unconditionally and
6252 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6253 # 100% sure that that's safe though.
6255 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6256 case "$enable_gdbtk" in
6260 GDB_TK="${gdb_tk}" ;;
6262 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6263 # distro. Eventually someone will fix this and move Insight, nee
6264 # gdbtk to a separate directory.
6265 if test -d ${srcdir}/gdb/gdbtk ; then
6272 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6273 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6275 # Strip out unwanted targets.
6277 # While at that, we remove Makefiles if we were started for recursive
6278 # configuration, so that the top-level Makefile reconfigures them,
6279 # like we used to do when configure itself was recursive.
6281 # Loop over modules. $extrasub must be used with care, limiting as
6282 # much as possible the usage of range addresses. That's because autoconf
6283 # splits the sed script to overcome limits in the number of commands,
6284 # and relying on carefully-timed sed passes may turn out to be very hard
6285 # to maintain later. In this particular case, you just have to be careful
6286 # not to nest @if/@endif pairs, because configure will not warn you at all.
6288 # Check whether --enable-bootstrap or --disable-bootstrap was given.
6289 if test "${enable_bootstrap+set}" = set; then
6290 enableval="$enable_bootstrap"
6293 enable_bootstrap=default
6296 # Issue errors and warnings for invalid/strange bootstrap combinations.
6297 case "$configdirs" in
6298 *gcc*) have_compiler=yes ;;
6299 *) have_compiler=no ;;
6302 case "$have_compiler:$host:$target:$enable_bootstrap" in
6305 # Default behavior. Enable bootstrap if we have a compiler
6306 # and we are in a native configuration.
6307 yes:$build:$build:default)
6308 enable_bootstrap=yes ;;
6311 enable_bootstrap=no ;;
6313 # We have a compiler and we are in a native configuration, bootstrap is ok
6314 yes:$build:$build:yes)
6317 # Other configurations, but we have a compiler. Assume the user knows
6320 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
6321 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6324 # No compiler: if they passed --enable-bootstrap explicitly, fail
6326 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
6327 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
6328 { (exit 1); exit 1; }; } ;;
6330 # Fail if wrong command line
6332 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
6333 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
6334 { (exit 1); exit 1; }; }
6338 # Adjust the toplevel makefile according to whether bootstrap was selected.
6339 case "$enable_bootstrap" in
6341 bootstrap_suffix=bootstrap ;;
6343 bootstrap_suffix=no-bootstrap ;;
6346 for module in ${build_configdirs} ; do
6347 if test -z "${no_recursion}" \
6348 && test -f ${build_subdir}/${module}/Makefile; then
6349 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6350 rm -f ${build_subdir}/${module}/Makefile
6353 /^@if build-$module\$/d
6354 /^@endif build-$module\$/d
6355 /^@if build-$module-$bootstrap_suffix\$/d
6356 /^@endif build-$module-$bootstrap_suffix\$/d"
6358 for module in ${configdirs} ; do
6359 if test -z "${no_recursion}"; then
6360 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6361 if test -f ${file}; then
6362 echo 1>&2 "*** removing ${file} to force reconfigure"
6369 /^@endif $module\$/d
6370 /^@if $module-$bootstrap_suffix\$/d
6371 /^@endif $module-$bootstrap_suffix\$/d"
6373 for module in ${target_configdirs} ; do
6374 if test -z "${no_recursion}" \
6375 && test -f ${target_subdir}/${module}/Makefile; then
6376 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6377 rm -f ${target_subdir}/${module}/Makefile
6380 # We only bootstrap target libraries listed in bootstrap_target_libs.
6381 case $bootstrap_target_libs in
6382 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6383 *) target_bootstrap_suffix=no-bootstrap ;;
6387 /^@if target-$module\$/d
6388 /^@endif target-$module\$/d
6389 /^@if target-$module-$target_bootstrap_suffix\$/d
6390 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6394 /^@if /,/^@endif /d"
6396 # Create the serialization dependencies. This uses a temporary file.
6398 # Check whether --enable-serial-configure or --disable-serial-configure was given.
6399 if test "${enable_serial_configure+set}" = set; then
6400 enableval="$enable_serial_configure"
6404 case ${enable_serial_configure} in
6406 enable_serial_build_configure=yes
6407 enable_serial_host_configure=yes
6408 enable_serial_target_configure=yes
6412 # These force 'configure's to be done one at a time, to avoid problems
6413 # with contention over a shared config.cache.
6415 echo '# serdep.tmp' > serdep.tmp
6417 test "x${enable_serial_build_configure}" = xyes &&
6418 for item in ${build_configdirs} ; do
6421 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6426 test "x${enable_serial_host_configure}" = xyes &&
6427 for item in ${configdirs} ; do
6430 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6435 test "x${enable_serial_target_configure}" = xyes &&
6436 for item in ${target_configdirs} ; do
6439 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6443 serialization_dependencies=serdep.tmp
6446 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6447 # target, nonopt, and variable assignments. These are the ones we
6448 # might not want to pass down to subconfigures. Also strip
6449 # program-prefix, program-suffix, and program-transform-name, so that
6450 # we can pass down a consistent program-transform-name.
6454 eval "set -- $ac_configure_args"
6457 if test X"$skip_next" = X"yes"; then
6461 if test X"$keep_next" = X"yes"; then
6464 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6466 baseargs="$baseargs '$ac_arg'"
6471 # Handle separated arguments. Based on the logic generated by
6474 *=* | --config-cache | -C | -disable-* | --disable-* \
6475 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6476 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6477 | -with-* | --with-* | -without-* | --without-* | --x)
6503 -program-prefix* | \
6504 -program-suffix* | \
6505 -program-transform-name* )
6506 skip_next=$separate_arg
6510 # An option. Add it.
6513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6515 baseargs="$baseargs '$ac_arg'"
6516 keep_next=$separate_arg
6519 # Either a variable assignment, or a nonopt (triplet). Don't
6520 # pass it down; let the Makefile handle this.
6525 # Remove the initial space we just introduced and, as these will be
6526 # expanded by make, quote '$'.
6527 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6529 # Add in --program-transform-name, after --program-prefix and
6530 # --program-suffix have been applied to it. Autoconf has already
6531 # doubled dollar signs and backslashes in program_transform_name; we want
6532 # the backslashes un-doubled, and then the entire thing wrapped in single
6533 # quotes, because this will be expanded first by make and then by the shell.
6534 # Also, because we want to override the logic in subdir configure scripts to
6535 # choose program_transform_name, replace any s,x,x, with s,y,y,.
6536 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6537 ${program_transform_name}
6539 gcc_transform_name=`cat conftestsed.out`
6540 rm -f conftestsed.out
6541 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6542 if test "$silent" = yes; then
6543 baseargs="$baseargs --silent"
6546 # For the build-side libraries, we just need to pretend we're native,
6547 # and not use the same cache file. Multilibs are neither needed nor
6549 build_configargs="--cache-file=../config.cache ${baseargs}"
6551 # For host modules, accept cache file option, or specification as blank.
6552 case "${cache_file}" in
6554 cache_file_option="" ;;
6555 /* | [A-Za-z]:[\\/]* ) # absolute path
6556 cache_file_option="--cache-file=${cache_file}" ;;
6558 cache_file_option="--cache-file=../${cache_file}" ;;
6561 # Host dirs don't like to share a cache file either, horribly enough.
6562 # This seems to be due to autoconf 2.5x stupidity.
6563 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6565 target_configargs=${baseargs}
6567 # Passing a --with-cross-host argument lets the target libraries know
6568 # whether they are being built with a cross-compiler or being built
6569 # native. However, it would be better to use other mechanisms to make the
6570 # sorts of decisions they want to make on this basis. Please consider
6571 # this option to be deprecated. FIXME.
6572 if test x${is_cross_compiler} = xyes ; then
6573 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6576 # Default to --enable-multilib.
6577 if test x${enable_multilib} = x ; then
6578 target_configargs="--enable-multilib ${target_configargs}"
6581 # Pass --with-newlib if appropriate. Note that target_configdirs has
6582 # changed from the earlier setting of with_newlib.
6583 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6584 target_configargs="--with-newlib ${target_configargs}"
6587 # Different target subdirs use different values of certain variables
6588 # (notably CXX). Worse, multilibs use *lots* of different values.
6589 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6590 # it doesn't automatically accept command-line overrides of them.
6591 # This means it's not safe for target subdirs to share a cache file,
6592 # which is disgusting, but there you have it. Hopefully this can be
6593 # fixed in future. It's still worthwhile to use a cache file for each
6594 # directory. I think.
6596 # Pass the appropriate --build, --host, --target and --cache-file arguments.
6597 # We need to pass --target, as newer autoconf's requires consistency
6598 # for target_alias and gcc doesn't manage it consistently.
6599 target_configargs="--cache-file=./config.cache ${target_configargs}"
6602 case " $target_configdirs " in
6604 case " $target_configargs " in
6605 *" --with-newlib "*)
6608 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' ;;
6611 # If we're not building GCC, don't discard standard headers.
6612 if test -d ${srcdir}/gcc; then
6613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6615 if test "${build}" != "${host}"; then
6616 # On Canadian crosses, CC_FOR_TARGET will have already been set
6617 # by `configure', so we won't have an opportunity to add -Bgcc/
6618 # to it. This is right: we don't want to search that directory
6619 # for binaries, but we want the header files in there, so add
6621 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6623 # Someone might think of using the pre-installed headers on
6624 # Canadian crosses, in case the installed compiler is not fully
6625 # compatible with the compiler being built. In this case, it
6626 # would be better to flag an error than risking having
6627 # incompatible object files being constructed. We can't
6628 # guarantee that an error will be flagged, but let's hope the
6629 # compiler will do it, when presented with incompatible header
6634 case "${target}-${is_cross_compiler}" in
6635 i[3456789]86-*-linux*-no)
6636 # Here host == target, so we don't need to build gcc,
6637 # so we don't want to discard standard headers.
6638 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6641 # If we're building newlib, use its generic headers last, but search
6642 # for any libc-related directories first (so make it the last -B
6644 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6646 # If we're building libgloss, find the startup file, simulator library
6647 # and linker script.
6648 case " $target_configdirs " in
6650 # Look for startup file, simulator library and maybe linker script.
6651 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6652 # Look for libnosys.a in case the target needs it.
6653 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6654 # Most targets have the linker script in the source directory.
6655 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6666 # Can't be handled as Cygwin above since Mingw does not use newlib.
6667 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' ;;
6670 # Allow the user to override the flags for
6671 # our build compiler if desired.
6672 if test x"${build}" = x"${host}" ; then
6673 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6674 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6675 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6678 # On Canadian crosses, we'll be searching the right directories for
6679 # the previously-installed cross compiler, so don't bother to add
6680 # flags for directories within the install tree of the compiler
6681 # being built; programs in there won't even run.
6682 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6683 # Search for pre-installed headers if nothing else fits.
6684 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6687 if test "x${use_gnu_ld}" = x &&
6688 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6689 # Arrange for us to find uninstalled linker scripts.
6690 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6693 # Search for other target-specific linker scripts and such.
6696 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6700 # Makefile fragments.
6701 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6703 eval fragval=\$$frag
6704 if test $fragval != /dev/null; then
6705 eval $frag=${srcdir}/$fragval
6713 # Miscellanea: directories, flags, etc.
6722 # Build module lists & subconfigure args.
6726 # Host module lists & subconfigure args.
6730 # Target module lists & subconfigure args.
6752 # Generate default definitions for YACC, M4, LEX and other programs that run
6753 # on the build machine. These are used if the Makefile can't locate these
6754 # programs in objdir.
6755 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6757 for ac_prog in 'bison -y' byacc yacc
6759 # Extract the first word of "$ac_prog", so it can be a program name with args.
6760 set dummy $ac_prog; ac_word=$2
6761 echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6763 if test "${ac_cv_prog_YACC+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 if test -n "$YACC"; then
6767 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6776 ac_cv_prog_YACC="$ac_prog"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 YACC=$ac_cv_prog_YACC
6786 if test -n "$YACC"; then
6787 echo "$as_me:$LINENO: result: $YACC" >&5
6788 echo "${ECHO_T}$YACC" >&6
6790 echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6
6794 test -n "$YACC" && break
6796 test -n "$YACC" || YACC="$MISSING bison -y"
6798 case " $build_configdirs " in
6799 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6800 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6803 for ac_prog in bison
6805 # Extract the first word of "$ac_prog", so it can be a program name with args.
6806 set dummy $ac_prog; ac_word=$2
6807 echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6809 if test "${ac_cv_prog_BISON+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 if test -n "$BISON"; then
6813 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_BISON="$ac_prog"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 BISON=$ac_cv_prog_BISON
6832 if test -n "$BISON"; then
6833 echo "$as_me:$LINENO: result: $BISON" >&5
6834 echo "${ECHO_T}$BISON" >&6
6836 echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6
6840 test -n "$BISON" && break
6842 test -n "$BISON" || BISON="$MISSING bison"
6844 case " $build_configdirs " in
6845 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6848 for ac_prog in gm4 gnum4 m4
6850 # Extract the first word of "$ac_prog", so it can be a program name with args.
6851 set dummy $ac_prog; ac_word=$2
6852 echo "$as_me:$LINENO: checking for $ac_word" >&5
6853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6854 if test "${ac_cv_prog_M4+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 if test -n "$M4"; then
6858 ac_cv_prog_M4="$M4" # Let the user override the test.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867 ac_cv_prog_M4="$ac_prog"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 if test -n "$M4"; then
6878 echo "$as_me:$LINENO: result: $M4" >&5
6879 echo "${ECHO_T}$M4" >&6
6881 echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6
6885 test -n "$M4" && break
6887 test -n "$M4" || M4="$MISSING m4"
6889 case " $build_configdirs " in
6890 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6893 for ac_prog in flex lex
6895 # Extract the first word of "$ac_prog", so it can be a program name with args.
6896 set dummy $ac_prog; ac_word=$2
6897 echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6899 if test "${ac_cv_prog_LEX+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 if test -n "$LEX"; then
6903 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_LEX="$ac_prog"
6913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 if test -n "$LEX"; then
6923 echo "$as_me:$LINENO: result: $LEX" >&5
6924 echo "${ECHO_T}$LEX" >&6
6926 echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6
6930 test -n "$LEX" && break
6932 test -n "$LEX" || LEX="$MISSING flex"
6934 case " $build_configdirs " in
6935 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6936 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6941 # Extract the first word of "$ac_prog", so it can be a program name with args.
6942 set dummy $ac_prog; ac_word=$2
6943 echo "$as_me:$LINENO: checking for $ac_word" >&5
6944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6945 if test "${ac_cv_prog_FLEX+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 if test -n "$FLEX"; then
6949 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_FLEX="$ac_prog"
6959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 FLEX=$ac_cv_prog_FLEX
6968 if test -n "$FLEX"; then
6969 echo "$as_me:$LINENO: result: $FLEX" >&5
6970 echo "${ECHO_T}$FLEX" >&6
6972 echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6
6976 test -n "$FLEX" && break
6978 test -n "$FLEX" || FLEX="$MISSING flex"
6980 case " $build_configdirs " in
6981 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6984 for ac_prog in makeinfo
6986 # Extract the first word of "$ac_prog", so it can be a program name with args.
6987 set dummy $ac_prog; ac_word=$2
6988 echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6990 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 if test -n "$MAKEINFO"; then
6994 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_MAKEINFO="$ac_prog"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 MAKEINFO=$ac_cv_prog_MAKEINFO
7013 if test -n "$MAKEINFO"; then
7014 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7015 echo "${ECHO_T}$MAKEINFO" >&6
7017 echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6
7021 test -n "$MAKEINFO" && break
7023 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7025 case " $build_configdirs " in
7026 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7029 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7030 # higher, else we use the "missing" dummy.
7031 if ${MAKEINFO} --version \
7032 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7035 MAKEINFO="$MISSING makeinfo"
7041 # FIXME: expect and dejagnu may become build tools?
7043 for ac_prog in expect
7045 # Extract the first word of "$ac_prog", so it can be a program name with args.
7046 set dummy $ac_prog; ac_word=$2
7047 echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7049 if test "${ac_cv_prog_EXPECT+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 if test -n "$EXPECT"; then
7053 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_EXPECT="$ac_prog"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 EXPECT=$ac_cv_prog_EXPECT
7072 if test -n "$EXPECT"; then
7073 echo "$as_me:$LINENO: result: $EXPECT" >&5
7074 echo "${ECHO_T}$EXPECT" >&6
7076 echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6
7080 test -n "$EXPECT" && break
7082 test -n "$EXPECT" || EXPECT="expect"
7084 case " $configdirs " in
7086 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7090 for ac_prog in runtest
7092 # Extract the first word of "$ac_prog", so it can be a program name with args.
7093 set dummy $ac_prog; ac_word=$2
7094 echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7096 if test "${ac_cv_prog_RUNTEST+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 if test -n "$RUNTEST"; then
7100 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_RUNTEST="$ac_prog"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 RUNTEST=$ac_cv_prog_RUNTEST
7119 if test -n "$RUNTEST"; then
7120 echo "$as_me:$LINENO: result: $RUNTEST" >&5
7121 echo "${ECHO_T}$RUNTEST" >&6
7123 echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6
7127 test -n "$RUNTEST" && break
7129 test -n "$RUNTEST" || RUNTEST="runtest"
7131 case " $configdirs " in
7133 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7140 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7141 ncn_target_tool_prefix=
7142 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7146 if test -n "$AR"; then
7148 elif test -n "$ac_cv_prog_AR"; then
7152 if test -n "$ac_cv_prog_AR"; then
7153 for ncn_progname in ar; do
7154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7155 set dummy ${ncn_progname}; ac_word=$2
7156 echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7158 if test "${ac_cv_prog_AR+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 if test -n "$AR"; then
7162 ac_cv_prog_AR="$AR" # Let the user override the test.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171 ac_cv_prog_AR="${ncn_progname}"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 if test -n "$AR"; then
7182 echo "$as_me:$LINENO: result: $AR" >&5
7183 echo "${ECHO_T}$AR" >&6
7185 echo "$as_me:$LINENO: result: no" >&5
7186 echo "${ECHO_T}no" >&6
7192 for ncn_progname in ar; do
7193 if test -n "$ncn_tool_prefix"; then
7194 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7195 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7196 echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7198 if test "${ac_cv_prog_AR+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 if test -n "$AR"; then
7202 ac_cv_prog_AR="$AR" # Let the user override the test.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 if test -n "$AR"; then
7222 echo "$as_me:$LINENO: result: $AR" >&5
7223 echo "${ECHO_T}$AR" >&6
7225 echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6
7230 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7232 set dummy ${ncn_progname}; ac_word=$2
7233 echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7235 if test "${ac_cv_prog_AR+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 if test -n "$AR"; then
7239 ac_cv_prog_AR="$AR" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_AR="${ncn_progname}"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 if test -n "$AR"; then
7259 echo "$as_me:$LINENO: result: $AR" >&5
7260 echo "${ECHO_T}$AR" >&6
7262 echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6
7267 test -n "$ac_cv_prog_AR" && break
7270 if test -z "$ac_cv_prog_AR" ; then
7272 if test $build = $host ; then
7275 AR="${ncn_tool_prefix}$2"
7281 if test -n "$AS"; then
7283 elif test -n "$ac_cv_prog_AS"; then
7287 if test -n "$ac_cv_prog_AS"; then
7288 for ncn_progname in as; do
7289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7290 set dummy ${ncn_progname}; ac_word=$2
7291 echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293 if test "${ac_cv_prog_AS+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 if test -n "$AS"; then
7297 ac_cv_prog_AS="$AS" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_AS="${ncn_progname}"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 if test -n "$AS"; then
7317 echo "$as_me:$LINENO: result: $AS" >&5
7318 echo "${ECHO_T}$AS" >&6
7320 echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6
7327 for ncn_progname in as; do
7328 if test -n "$ncn_tool_prefix"; then
7329 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7330 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7331 echo "$as_me:$LINENO: checking for $ac_word" >&5
7332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7333 if test "${ac_cv_prog_AS+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 if test -n "$AS"; then
7337 ac_cv_prog_AS="$AS" # Let the user override the test.
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 if test -n "$AS"; then
7357 echo "$as_me:$LINENO: result: $AS" >&5
7358 echo "${ECHO_T}$AS" >&6
7360 echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6
7365 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7367 set dummy ${ncn_progname}; ac_word=$2
7368 echo "$as_me:$LINENO: checking for $ac_word" >&5
7369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7370 if test "${ac_cv_prog_AS+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 if test -n "$AS"; then
7374 ac_cv_prog_AS="$AS" # Let the user override the test.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383 ac_cv_prog_AS="${ncn_progname}"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 if test -n "$AS"; then
7394 echo "$as_me:$LINENO: result: $AS" >&5
7395 echo "${ECHO_T}$AS" >&6
7397 echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6
7402 test -n "$ac_cv_prog_AS" && break
7405 if test -z "$ac_cv_prog_AS" ; then
7407 if test $build = $host ; then
7410 AS="${ncn_tool_prefix}$2"
7416 if test -n "$DLLTOOL"; then
7417 ac_cv_prog_DLLTOOL=$DLLTOOL
7418 elif test -n "$ac_cv_prog_DLLTOOL"; then
7419 DLLTOOL=$ac_cv_prog_DLLTOOL
7422 if test -n "$ac_cv_prog_DLLTOOL"; then
7423 for ncn_progname in dlltool; do
7424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7425 set dummy ${ncn_progname}; ac_word=$2
7426 echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7428 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 if test -n "$DLLTOOL"; then
7432 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_prog_DLLTOOL="${ncn_progname}"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 DLLTOOL=$ac_cv_prog_DLLTOOL
7451 if test -n "$DLLTOOL"; then
7452 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7453 echo "${ECHO_T}$DLLTOOL" >&6
7455 echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6
7462 for ncn_progname in dlltool; do
7463 if test -n "$ncn_tool_prefix"; then
7464 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7465 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7466 echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7468 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 if test -n "$DLLTOOL"; then
7472 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 DLLTOOL=$ac_cv_prog_DLLTOOL
7491 if test -n "$DLLTOOL"; then
7492 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7493 echo "${ECHO_T}$DLLTOOL" >&6
7495 echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6
7500 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7502 set dummy ${ncn_progname}; ac_word=$2
7503 echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7505 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 if test -n "$DLLTOOL"; then
7509 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_DLLTOOL="${ncn_progname}"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 DLLTOOL=$ac_cv_prog_DLLTOOL
7528 if test -n "$DLLTOOL"; then
7529 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7530 echo "${ECHO_T}$DLLTOOL" >&6
7532 echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6
7537 test -n "$ac_cv_prog_DLLTOOL" && break
7540 if test -z "$ac_cv_prog_DLLTOOL" ; then
7542 if test $build = $host ; then
7545 DLLTOOL="${ncn_tool_prefix}$2"
7551 if test -n "$LD"; then
7553 elif test -n "$ac_cv_prog_LD"; then
7557 if test -n "$ac_cv_prog_LD"; then
7558 for ncn_progname in ld; do
7559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7560 set dummy ${ncn_progname}; ac_word=$2
7561 echo "$as_me:$LINENO: checking for $ac_word" >&5
7562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7563 if test "${ac_cv_prog_LD+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 if test -n "$LD"; then
7567 ac_cv_prog_LD="$LD" # Let the user override the test.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7576 ac_cv_prog_LD="${ncn_progname}"
7577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 if test -n "$LD"; then
7587 echo "$as_me:$LINENO: result: $LD" >&5
7588 echo "${ECHO_T}$LD" >&6
7590 echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6
7597 for ncn_progname in ld; do
7598 if test -n "$ncn_tool_prefix"; then
7599 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7600 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7601 echo "$as_me:$LINENO: checking for $ac_word" >&5
7602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7603 if test "${ac_cv_prog_LD+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 if test -n "$LD"; then
7607 ac_cv_prog_LD="$LD" # Let the user override the test.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 if test -n "$LD"; then
7627 echo "$as_me:$LINENO: result: $LD" >&5
7628 echo "${ECHO_T}$LD" >&6
7630 echo "$as_me:$LINENO: result: no" >&5
7631 echo "${ECHO_T}no" >&6
7635 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7637 set dummy ${ncn_progname}; ac_word=$2
7638 echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7640 if test "${ac_cv_prog_LD+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 if test -n "$LD"; then
7644 ac_cv_prog_LD="$LD" # Let the user override the test.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_LD="${ncn_progname}"
7654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 if test -n "$LD"; then
7664 echo "$as_me:$LINENO: result: $LD" >&5
7665 echo "${ECHO_T}$LD" >&6
7667 echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6
7672 test -n "$ac_cv_prog_LD" && break
7675 if test -z "$ac_cv_prog_LD" ; then
7677 if test $build = $host ; then
7680 LD="${ncn_tool_prefix}$2"
7686 if test -n "$LIPO"; then
7687 ac_cv_prog_LIPO=$LIPO
7688 elif test -n "$ac_cv_prog_LIPO"; then
7689 LIPO=$ac_cv_prog_LIPO
7692 if test -n "$ac_cv_prog_LIPO"; then
7693 for ncn_progname in lipo; do
7694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7695 set dummy ${ncn_progname}; ac_word=$2
7696 echo "$as_me:$LINENO: checking for $ac_word" >&5
7697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7698 if test "${ac_cv_prog_LIPO+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 if test -n "$LIPO"; then
7702 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711 ac_cv_prog_LIPO="${ncn_progname}"
7712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 LIPO=$ac_cv_prog_LIPO
7721 if test -n "$LIPO"; then
7722 echo "$as_me:$LINENO: result: $LIPO" >&5
7723 echo "${ECHO_T}$LIPO" >&6
7725 echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7732 for ncn_progname in lipo; do
7733 if test -n "$ncn_tool_prefix"; then
7734 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7735 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7736 echo "$as_me:$LINENO: checking for $ac_word" >&5
7737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7738 if test "${ac_cv_prog_LIPO+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 if test -n "$LIPO"; then
7742 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 LIPO=$ac_cv_prog_LIPO
7761 if test -n "$LIPO"; then
7762 echo "$as_me:$LINENO: result: $LIPO" >&5
7763 echo "${ECHO_T}$LIPO" >&6
7765 echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6
7770 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7772 set dummy ${ncn_progname}; ac_word=$2
7773 echo "$as_me:$LINENO: checking for $ac_word" >&5
7774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7775 if test "${ac_cv_prog_LIPO+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 if test -n "$LIPO"; then
7779 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788 ac_cv_prog_LIPO="${ncn_progname}"
7789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 LIPO=$ac_cv_prog_LIPO
7798 if test -n "$LIPO"; then
7799 echo "$as_me:$LINENO: result: $LIPO" >&5
7800 echo "${ECHO_T}$LIPO" >&6
7802 echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6
7807 test -n "$ac_cv_prog_LIPO" && break
7810 if test -z "$ac_cv_prog_LIPO" ; then
7812 if test $build = $host ; then
7815 LIPO="${ncn_tool_prefix}$2"
7821 if test -n "$NM"; then
7823 elif test -n "$ac_cv_prog_NM"; then
7827 if test -n "$ac_cv_prog_NM"; then
7828 for ncn_progname in nm; do
7829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7830 set dummy ${ncn_progname}; ac_word=$2
7831 echo "$as_me:$LINENO: checking for $ac_word" >&5
7832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7833 if test "${ac_cv_prog_NM+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 if test -n "$NM"; then
7837 ac_cv_prog_NM="$NM" # Let the user override the test.
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_NM="${ncn_progname}"
7847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 if test -n "$NM"; then
7857 echo "$as_me:$LINENO: result: $NM" >&5
7858 echo "${ECHO_T}$NM" >&6
7860 echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6
7867 for ncn_progname in nm; do
7868 if test -n "$ncn_tool_prefix"; then
7869 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7870 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7871 echo "$as_me:$LINENO: checking for $ac_word" >&5
7872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7873 if test "${ac_cv_prog_NM+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 if test -n "$NM"; then
7877 ac_cv_prog_NM="$NM" # Let the user override the test.
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 if test -n "$NM"; then
7897 echo "$as_me:$LINENO: result: $NM" >&5
7898 echo "${ECHO_T}$NM" >&6
7900 echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6
7905 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7907 set dummy ${ncn_progname}; ac_word=$2
7908 echo "$as_me:$LINENO: checking for $ac_word" >&5
7909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7910 if test "${ac_cv_prog_NM+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 if test -n "$NM"; then
7914 ac_cv_prog_NM="$NM" # Let the user override the test.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923 ac_cv_prog_NM="${ncn_progname}"
7924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 if test -n "$NM"; then
7934 echo "$as_me:$LINENO: result: $NM" >&5
7935 echo "${ECHO_T}$NM" >&6
7937 echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6
7942 test -n "$ac_cv_prog_NM" && break
7945 if test -z "$ac_cv_prog_NM" ; then
7947 if test $build = $host ; then
7950 NM="${ncn_tool_prefix}$2"
7956 if test -n "$RANLIB"; then
7957 ac_cv_prog_RANLIB=$RANLIB
7958 elif test -n "$ac_cv_prog_RANLIB"; then
7959 RANLIB=$ac_cv_prog_RANLIB
7962 if test -n "$ac_cv_prog_RANLIB"; then
7963 for ncn_progname in ranlib; do
7964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7965 set dummy ${ncn_progname}; ac_word=$2
7966 echo "$as_me:$LINENO: checking for $ac_word" >&5
7967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7968 if test "${ac_cv_prog_RANLIB+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 if test -n "$RANLIB"; then
7972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7981 ac_cv_prog_RANLIB="${ncn_progname}"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 RANLIB=$ac_cv_prog_RANLIB
7991 if test -n "$RANLIB"; then
7992 echo "$as_me:$LINENO: result: $RANLIB" >&5
7993 echo "${ECHO_T}$RANLIB" >&6
7995 echo "$as_me:$LINENO: result: no" >&5
7996 echo "${ECHO_T}no" >&6
8002 for ncn_progname in ranlib; do
8003 if test -n "$ncn_tool_prefix"; then
8004 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8005 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8006 echo "$as_me:$LINENO: checking for $ac_word" >&5
8007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8008 if test "${ac_cv_prog_RANLIB+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 if test -n "$RANLIB"; then
8012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 RANLIB=$ac_cv_prog_RANLIB
8031 if test -n "$RANLIB"; then
8032 echo "$as_me:$LINENO: result: $RANLIB" >&5
8033 echo "${ECHO_T}$RANLIB" >&6
8035 echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6
8040 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8042 set dummy ${ncn_progname}; ac_word=$2
8043 echo "$as_me:$LINENO: checking for $ac_word" >&5
8044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8045 if test "${ac_cv_prog_RANLIB+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 if test -n "$RANLIB"; then
8049 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058 ac_cv_prog_RANLIB="${ncn_progname}"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 RANLIB=$ac_cv_prog_RANLIB
8068 if test -n "$RANLIB"; then
8069 echo "$as_me:$LINENO: result: $RANLIB" >&5
8070 echo "${ECHO_T}$RANLIB" >&6
8072 echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6
8077 test -n "$ac_cv_prog_RANLIB" && break
8080 if test -z "$ac_cv_prog_RANLIB" ; then
8086 if test -n "$STRIP"; then
8087 ac_cv_prog_STRIP=$STRIP
8088 elif test -n "$ac_cv_prog_STRIP"; then
8089 STRIP=$ac_cv_prog_STRIP
8092 if test -n "$ac_cv_prog_STRIP"; then
8093 for ncn_progname in strip; do
8094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8095 set dummy ${ncn_progname}; ac_word=$2
8096 echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8098 if test "${ac_cv_prog_STRIP+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 if test -n "$STRIP"; then
8102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8111 ac_cv_prog_STRIP="${ncn_progname}"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 STRIP=$ac_cv_prog_STRIP
8121 if test -n "$STRIP"; then
8122 echo "$as_me:$LINENO: result: $STRIP" >&5
8123 echo "${ECHO_T}$STRIP" >&6
8125 echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8132 for ncn_progname in strip; do
8133 if test -n "$ncn_tool_prefix"; then
8134 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8135 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8136 echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8138 if test "${ac_cv_prog_STRIP+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 if test -n "$STRIP"; then
8142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 STRIP=$ac_cv_prog_STRIP
8161 if test -n "$STRIP"; then
8162 echo "$as_me:$LINENO: result: $STRIP" >&5
8163 echo "${ECHO_T}$STRIP" >&6
8165 echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6
8170 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8172 set dummy ${ncn_progname}; ac_word=$2
8173 echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8175 if test "${ac_cv_prog_STRIP+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 if test -n "$STRIP"; then
8179 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_STRIP="${ncn_progname}"
8189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 STRIP=$ac_cv_prog_STRIP
8198 if test -n "$STRIP"; then
8199 echo "$as_me:$LINENO: result: $STRIP" >&5
8200 echo "${ECHO_T}$STRIP" >&6
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8207 test -n "$ac_cv_prog_STRIP" && break
8210 if test -z "$ac_cv_prog_STRIP" ; then
8216 if test -n "$WINDRES"; then
8217 ac_cv_prog_WINDRES=$WINDRES
8218 elif test -n "$ac_cv_prog_WINDRES"; then
8219 WINDRES=$ac_cv_prog_WINDRES
8222 if test -n "$ac_cv_prog_WINDRES"; then
8223 for ncn_progname in windres; do
8224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8225 set dummy ${ncn_progname}; ac_word=$2
8226 echo "$as_me:$LINENO: checking for $ac_word" >&5
8227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8228 if test "${ac_cv_prog_WINDRES+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 if test -n "$WINDRES"; then
8232 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_WINDRES="${ncn_progname}"
8242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 WINDRES=$ac_cv_prog_WINDRES
8251 if test -n "$WINDRES"; then
8252 echo "$as_me:$LINENO: result: $WINDRES" >&5
8253 echo "${ECHO_T}$WINDRES" >&6
8255 echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8262 for ncn_progname in windres; do
8263 if test -n "$ncn_tool_prefix"; then
8264 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8265 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8266 echo "$as_me:$LINENO: checking for $ac_word" >&5
8267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8268 if test "${ac_cv_prog_WINDRES+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 if test -n "$WINDRES"; then
8272 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 WINDRES=$ac_cv_prog_WINDRES
8291 if test -n "$WINDRES"; then
8292 echo "$as_me:$LINENO: result: $WINDRES" >&5
8293 echo "${ECHO_T}$WINDRES" >&6
8295 echo "$as_me:$LINENO: result: no" >&5
8296 echo "${ECHO_T}no" >&6
8300 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8302 set dummy ${ncn_progname}; ac_word=$2
8303 echo "$as_me:$LINENO: checking for $ac_word" >&5
8304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8305 if test "${ac_cv_prog_WINDRES+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 if test -n "$WINDRES"; then
8309 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318 ac_cv_prog_WINDRES="${ncn_progname}"
8319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 WINDRES=$ac_cv_prog_WINDRES
8328 if test -n "$WINDRES"; then
8329 echo "$as_me:$LINENO: result: $WINDRES" >&5
8330 echo "${ECHO_T}$WINDRES" >&6
8332 echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8337 test -n "$ac_cv_prog_WINDRES" && break
8340 if test -z "$ac_cv_prog_WINDRES" ; then
8342 if test $build = $host ; then
8345 WINDRES="${ncn_tool_prefix}$2"
8351 if test -n "$WINDMC"; then
8352 ac_cv_prog_WINDMC=$WINDMC
8353 elif test -n "$ac_cv_prog_WINDMC"; then
8354 WINDMC=$ac_cv_prog_WINDMC
8357 if test -n "$ac_cv_prog_WINDMC"; then
8358 for ncn_progname in windmc; do
8359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8360 set dummy ${ncn_progname}; ac_word=$2
8361 echo "$as_me:$LINENO: checking for $ac_word" >&5
8362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8363 if test "${ac_cv_prog_WINDMC+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 if test -n "$WINDMC"; then
8367 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8376 ac_cv_prog_WINDMC="${ncn_progname}"
8377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 WINDMC=$ac_cv_prog_WINDMC
8386 if test -n "$WINDMC"; then
8387 echo "$as_me:$LINENO: result: $WINDMC" >&5
8388 echo "${ECHO_T}$WINDMC" >&6
8390 echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6
8397 for ncn_progname in windmc; do
8398 if test -n "$ncn_tool_prefix"; then
8399 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8400 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8401 echo "$as_me:$LINENO: checking for $ac_word" >&5
8402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8403 if test "${ac_cv_prog_WINDMC+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 if test -n "$WINDMC"; then
8407 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8416 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 WINDMC=$ac_cv_prog_WINDMC
8426 if test -n "$WINDMC"; then
8427 echo "$as_me:$LINENO: result: $WINDMC" >&5
8428 echo "${ECHO_T}$WINDMC" >&6
8430 echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6
8435 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8437 set dummy ${ncn_progname}; ac_word=$2
8438 echo "$as_me:$LINENO: checking for $ac_word" >&5
8439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8440 if test "${ac_cv_prog_WINDMC+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 if test -n "$WINDMC"; then
8444 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453 ac_cv_prog_WINDMC="${ncn_progname}"
8454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 WINDMC=$ac_cv_prog_WINDMC
8463 if test -n "$WINDMC"; then
8464 echo "$as_me:$LINENO: result: $WINDMC" >&5
8465 echo "${ECHO_T}$WINDMC" >&6
8467 echo "$as_me:$LINENO: result: no" >&5
8468 echo "${ECHO_T}no" >&6
8472 test -n "$ac_cv_prog_WINDMC" && break
8475 if test -z "$ac_cv_prog_WINDMC" ; then
8477 if test $build = $host ; then
8480 WINDMC="${ncn_tool_prefix}$2"
8486 if test -n "$OBJCOPY"; then
8487 ac_cv_prog_OBJCOPY=$OBJCOPY
8488 elif test -n "$ac_cv_prog_OBJCOPY"; then
8489 OBJCOPY=$ac_cv_prog_OBJCOPY
8492 if test -n "$ac_cv_prog_OBJCOPY"; then
8493 for ncn_progname in objcopy; do
8494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8495 set dummy ${ncn_progname}; ac_word=$2
8496 echo "$as_me:$LINENO: checking for $ac_word" >&5
8497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8498 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 if test -n "$OBJCOPY"; then
8502 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511 ac_cv_prog_OBJCOPY="${ncn_progname}"
8512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 OBJCOPY=$ac_cv_prog_OBJCOPY
8521 if test -n "$OBJCOPY"; then
8522 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8523 echo "${ECHO_T}$OBJCOPY" >&6
8525 echo "$as_me:$LINENO: result: no" >&5
8526 echo "${ECHO_T}no" >&6
8532 for ncn_progname in objcopy; do
8533 if test -n "$ncn_tool_prefix"; then
8534 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8535 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8536 echo "$as_me:$LINENO: checking for $ac_word" >&5
8537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8538 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 if test -n "$OBJCOPY"; then
8542 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 OBJCOPY=$ac_cv_prog_OBJCOPY
8561 if test -n "$OBJCOPY"; then
8562 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8563 echo "${ECHO_T}$OBJCOPY" >&6
8565 echo "$as_me:$LINENO: result: no" >&5
8566 echo "${ECHO_T}no" >&6
8570 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8572 set dummy ${ncn_progname}; ac_word=$2
8573 echo "$as_me:$LINENO: checking for $ac_word" >&5
8574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8575 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 if test -n "$OBJCOPY"; then
8579 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588 ac_cv_prog_OBJCOPY="${ncn_progname}"
8589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 OBJCOPY=$ac_cv_prog_OBJCOPY
8598 if test -n "$OBJCOPY"; then
8599 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8600 echo "${ECHO_T}$OBJCOPY" >&6
8602 echo "$as_me:$LINENO: result: no" >&5
8603 echo "${ECHO_T}no" >&6
8607 test -n "$ac_cv_prog_OBJCOPY" && break
8610 if test -z "$ac_cv_prog_OBJCOPY" ; then
8612 if test $build = $host ; then
8615 OBJCOPY="${ncn_tool_prefix}$2"
8621 if test -n "$OBJDUMP"; then
8622 ac_cv_prog_OBJDUMP=$OBJDUMP
8623 elif test -n "$ac_cv_prog_OBJDUMP"; then
8624 OBJDUMP=$ac_cv_prog_OBJDUMP
8627 if test -n "$ac_cv_prog_OBJDUMP"; then
8628 for ncn_progname in objdump; do
8629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8630 set dummy ${ncn_progname}; ac_word=$2
8631 echo "$as_me:$LINENO: checking for $ac_word" >&5
8632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8633 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 if test -n "$OBJDUMP"; then
8637 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_prog_OBJDUMP="${ncn_progname}"
8647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 OBJDUMP=$ac_cv_prog_OBJDUMP
8656 if test -n "$OBJDUMP"; then
8657 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8658 echo "${ECHO_T}$OBJDUMP" >&6
8660 echo "$as_me:$LINENO: result: no" >&5
8661 echo "${ECHO_T}no" >&6
8667 for ncn_progname in objdump; do
8668 if test -n "$ncn_tool_prefix"; then
8669 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8670 set dummy ${ncn_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_OBJDUMP+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 if test -n "$OBJDUMP"; then
8677 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 OBJDUMP=$ac_cv_prog_OBJDUMP
8696 if test -n "$OBJDUMP"; then
8697 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8698 echo "${ECHO_T}$OBJDUMP" >&6
8700 echo "$as_me:$LINENO: result: no" >&5
8701 echo "${ECHO_T}no" >&6
8705 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; 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_OBJDUMP+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 if test -n "$OBJDUMP"; then
8714 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_OBJDUMP="${ncn_progname}"
8724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8732 OBJDUMP=$ac_cv_prog_OBJDUMP
8733 if test -n "$OBJDUMP"; then
8734 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8735 echo "${ECHO_T}$OBJDUMP" >&6
8737 echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6
8742 test -n "$ac_cv_prog_OBJDUMP" && break
8745 if test -z "$ac_cv_prog_OBJDUMP" ; then
8747 if test $build = $host ; then
8750 OBJDUMP="${ncn_tool_prefix}$2"
8761 # Check whether --with-build-time-tools or --without-build-time-tools was given.
8762 if test "${with_build_time_tools+set}" = set; then
8763 withval="$with_build_time_tools"
8767 with_build_time_tools=
8768 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8769 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8773 with_build_time_tools=
8778 if test -n "$CC_FOR_TARGET"; then
8779 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8780 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8781 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8784 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8785 for ncn_progname in cc gcc; do
8786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8787 set dummy ${ncn_progname}; ac_word=$2
8788 echo "$as_me:$LINENO: checking for $ac_word" >&5
8789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8790 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 if test -n "$CC_FOR_TARGET"; then
8794 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8803 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8813 if test -n "$CC_FOR_TARGET"; then
8814 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8815 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8817 echo "$as_me:$LINENO: result: no" >&5
8818 echo "${ECHO_T}no" >&6
8824 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8825 for ncn_progname in cc gcc; do
8826 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8827 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8828 if test -x $with_build_time_tools/${ncn_progname}; then
8829 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8830 echo "$as_me:$LINENO: result: yes" >&5
8831 echo "${ECHO_T}yes" >&6
8834 echo "$as_me:$LINENO: result: no" >&5
8835 echo "${ECHO_T}no" >&6
8840 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8841 for ncn_progname in cc gcc; do
8842 if test -n "$ncn_target_tool_prefix"; then
8843 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8844 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8845 echo "$as_me:$LINENO: checking for $ac_word" >&5
8846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8847 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 if test -n "$CC_FOR_TARGET"; then
8851 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 test -z "$as_dir" && as_dir=.
8858 for ac_exec_ext in '' $ac_executable_extensions; do
8859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8860 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8870 if test -n "$CC_FOR_TARGET"; then
8871 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8872 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8874 echo "$as_me:$LINENO: result: no" >&5
8875 echo "${ECHO_T}no" >&6
8879 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8881 set dummy ${ncn_progname}; ac_word=$2
8882 echo "$as_me:$LINENO: checking for $ac_word" >&5
8883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8884 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 if test -n "$CC_FOR_TARGET"; then
8888 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 test -z "$as_dir" && as_dir=.
8895 for ac_exec_ext in '' $ac_executable_extensions; do
8896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8907 if test -n "$CC_FOR_TARGET"; then
8908 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8909 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8911 echo "$as_me:$LINENO: result: no" >&5
8912 echo "${ECHO_T}no" >&6
8916 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8920 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8922 if test $build = $target ; then
8925 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8928 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8933 if test -n "$CXX_FOR_TARGET"; then
8934 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8935 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8936 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8939 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8940 for ncn_progname in c++ g++ cxx gxx; do
8941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8942 set dummy ${ncn_progname}; ac_word=$2
8943 echo "$as_me:$LINENO: checking for $ac_word" >&5
8944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8945 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 if test -n "$CXX_FOR_TARGET"; then
8949 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955 test -z "$as_dir" && as_dir=.
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8958 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8967 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8968 if test -n "$CXX_FOR_TARGET"; then
8969 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8970 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8972 echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6
8979 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8980 for ncn_progname in c++ g++ cxx gxx; do
8981 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8982 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8983 if test -x $with_build_time_tools/${ncn_progname}; then
8984 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8985 echo "$as_me:$LINENO: result: yes" >&5
8986 echo "${ECHO_T}yes" >&6
8989 echo "$as_me:$LINENO: result: no" >&5
8990 echo "${ECHO_T}no" >&6
8995 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8996 for ncn_progname in c++ g++ cxx gxx; do
8997 if test -n "$ncn_target_tool_prefix"; then
8998 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8999 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9000 echo "$as_me:$LINENO: checking for $ac_word" >&5
9001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9002 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 if test -n "$CXX_FOR_TARGET"; then
9006 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012 test -z "$as_dir" && as_dir=.
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9015 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9024 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9025 if test -n "$CXX_FOR_TARGET"; then
9026 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9027 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
9029 echo "$as_me:$LINENO: result: no" >&5
9030 echo "${ECHO_T}no" >&6
9034 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9036 set dummy ${ncn_progname}; ac_word=$2
9037 echo "$as_me:$LINENO: checking for $ac_word" >&5
9038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9039 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 if test -n "$CXX_FOR_TARGET"; then
9043 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9052 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9062 if test -n "$CXX_FOR_TARGET"; then
9063 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9064 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
9066 echo "$as_me:$LINENO: result: no" >&5
9067 echo "${ECHO_T}no" >&6
9071 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9075 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9076 set dummy c++ g++ cxx gxx
9077 if test $build = $target ; then
9080 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9083 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9088 if test -n "$GCC_FOR_TARGET"; then
9089 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9090 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9091 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9094 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9095 for ncn_progname in gcc; do
9096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9097 set dummy ${ncn_progname}; ac_word=$2
9098 echo "$as_me:$LINENO: checking for $ac_word" >&5
9099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9100 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 if test -n "$GCC_FOR_TARGET"; then
9104 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9113 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9123 if test -n "$GCC_FOR_TARGET"; then
9124 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9125 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
9127 echo "$as_me:$LINENO: result: no" >&5
9128 echo "${ECHO_T}no" >&6
9134 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9135 for ncn_progname in gcc; do
9136 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9137 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9138 if test -x $with_build_time_tools/${ncn_progname}; then
9139 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9140 echo "$as_me:$LINENO: result: yes" >&5
9141 echo "${ECHO_T}yes" >&6
9144 echo "$as_me:$LINENO: result: no" >&5
9145 echo "${ECHO_T}no" >&6
9150 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9151 for ncn_progname in gcc; do
9152 if test -n "$ncn_target_tool_prefix"; then
9153 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9154 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9155 echo "$as_me:$LINENO: checking for $ac_word" >&5
9156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9157 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 if test -n "$GCC_FOR_TARGET"; then
9161 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 test -z "$as_dir" && as_dir=.
9168 for ac_exec_ext in '' $ac_executable_extensions; do
9169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9170 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9179 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9180 if test -n "$GCC_FOR_TARGET"; then
9181 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9182 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
9184 echo "$as_me:$LINENO: result: no" >&5
9185 echo "${ECHO_T}no" >&6
9189 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9191 set dummy ${ncn_progname}; ac_word=$2
9192 echo "$as_me:$LINENO: checking for $ac_word" >&5
9193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9194 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 if test -n "$GCC_FOR_TARGET"; then
9198 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9207 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9216 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9217 if test -n "$GCC_FOR_TARGET"; then
9218 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9219 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
9221 echo "$as_me:$LINENO: result: no" >&5
9222 echo "${ECHO_T}no" >&6
9226 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9230 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9231 GCC_FOR_TARGET="${CC_FOR_TARGET}"
9233 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
9238 if test -n "$GCJ_FOR_TARGET"; then
9239 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9240 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9241 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9244 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9245 for ncn_progname in gcj; do
9246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9247 set dummy ${ncn_progname}; ac_word=$2
9248 echo "$as_me:$LINENO: checking for $ac_word" >&5
9249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9250 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 if test -n "$GCJ_FOR_TARGET"; then
9254 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9272 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9273 if test -n "$GCJ_FOR_TARGET"; then
9274 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9275 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9277 echo "$as_me:$LINENO: result: no" >&5
9278 echo "${ECHO_T}no" >&6
9284 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
9285 for ncn_progname in gcj; do
9286 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9287 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9288 if test -x $with_build_time_tools/${ncn_progname}; then
9289 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9290 echo "$as_me:$LINENO: result: yes" >&5
9291 echo "${ECHO_T}yes" >&6
9294 echo "$as_me:$LINENO: result: no" >&5
9295 echo "${ECHO_T}no" >&6
9300 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9301 for ncn_progname in gcj; do
9302 if test -n "$ncn_target_tool_prefix"; then
9303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9304 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9305 echo "$as_me:$LINENO: checking for $ac_word" >&5
9306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9307 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 if test -n "$GCJ_FOR_TARGET"; then
9311 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9320 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9329 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9330 if test -n "$GCJ_FOR_TARGET"; then
9331 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9332 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9334 echo "$as_me:$LINENO: result: no" >&5
9335 echo "${ECHO_T}no" >&6
9339 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9341 set dummy ${ncn_progname}; ac_word=$2
9342 echo "$as_me:$LINENO: checking for $ac_word" >&5
9343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9344 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 if test -n "$GCJ_FOR_TARGET"; then
9348 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 test -z "$as_dir" && as_dir=.
9355 for ac_exec_ext in '' $ac_executable_extensions; do
9356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9357 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9367 if test -n "$GCJ_FOR_TARGET"; then
9368 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9369 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9371 echo "$as_me:$LINENO: result: no" >&5
9372 echo "${ECHO_T}no" >&6
9376 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9380 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9382 if test $build = $target ; then
9385 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9388 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9393 if test -n "$GFORTRAN_FOR_TARGET"; then
9394 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9395 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9396 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9399 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9400 for ncn_progname in gfortran; do
9401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9402 set dummy ${ncn_progname}; ac_word=$2
9403 echo "$as_me:$LINENO: checking for $ac_word" >&5
9404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9405 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 if test -n "$GFORTRAN_FOR_TARGET"; then
9409 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 test -z "$as_dir" && as_dir=.
9416 for ac_exec_ext in '' $ac_executable_extensions; do
9417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9418 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9427 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9428 if test -n "$GFORTRAN_FOR_TARGET"; then
9429 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9430 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9432 echo "$as_me:$LINENO: result: no" >&5
9433 echo "${ECHO_T}no" >&6
9439 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9440 for ncn_progname in gfortran; do
9441 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9442 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9443 if test -x $with_build_time_tools/${ncn_progname}; then
9444 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9445 echo "$as_me:$LINENO: result: yes" >&5
9446 echo "${ECHO_T}yes" >&6
9449 echo "$as_me:$LINENO: result: no" >&5
9450 echo "${ECHO_T}no" >&6
9455 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9456 for ncn_progname in gfortran; do
9457 if test -n "$ncn_target_tool_prefix"; then
9458 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9459 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9460 echo "$as_me:$LINENO: checking for $ac_word" >&5
9461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9462 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 if test -n "$GFORTRAN_FOR_TARGET"; then
9466 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 test -z "$as_dir" && as_dir=.
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9475 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9485 if test -n "$GFORTRAN_FOR_TARGET"; then
9486 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9487 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9489 echo "$as_me:$LINENO: result: no" >&5
9490 echo "${ECHO_T}no" >&6
9494 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9496 set dummy ${ncn_progname}; ac_word=$2
9497 echo "$as_me:$LINENO: checking for $ac_word" >&5
9498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9499 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 if test -n "$GFORTRAN_FOR_TARGET"; then
9503 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509 test -z "$as_dir" && as_dir=.
9510 for ac_exec_ext in '' $ac_executable_extensions; do
9511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9512 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9521 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9522 if test -n "$GFORTRAN_FOR_TARGET"; then
9523 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9524 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9526 echo "$as_me:$LINENO: result: no" >&5
9527 echo "${ECHO_T}no" >&6
9531 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9535 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9537 if test $build = $target ; then
9538 GFORTRAN_FOR_TARGET="$2"
9540 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9543 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9548 cat > conftest.c << \EOF
9553 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9554 have_gcc_for_target=yes
9556 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9557 have_gcc_for_target=no
9564 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9565 if test -n "$with_build_time_tools"; then
9566 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9567 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
9568 if test -x $with_build_time_tools/ar; then
9569 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9570 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9571 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9572 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
9574 echo "$as_me:$LINENO: result: no" >&5
9575 echo "${ECHO_T}no" >&6
9577 elif test $build != $host && test $have_gcc_for_target = yes; then
9578 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9579 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9580 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9583 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9584 # Extract the first word of "ar", so it can be a program name with args.
9585 set dummy ar; ac_word=$2
9586 echo "$as_me:$LINENO: checking for $ac_word" >&5
9587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9588 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 case $AR_FOR_TARGET in
9593 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 for as_dir in $gcc_cv_tool_dirs
9600 test -z "$as_dir" && as_dir=.
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9603 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9615 if test -n "$AR_FOR_TARGET"; then
9616 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9617 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9619 echo "$as_me:$LINENO: result: no" >&5
9620 echo "${ECHO_T}no" >&6
9624 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9627 if test -n "$AR_FOR_TARGET"; then
9628 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9629 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9630 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9633 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9634 for ncn_progname in ar; do
9635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9636 set dummy ${ncn_progname}; ac_word=$2
9637 echo "$as_me:$LINENO: checking for $ac_word" >&5
9638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9639 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 if test -n "$AR_FOR_TARGET"; then
9643 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9652 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9662 if test -n "$AR_FOR_TARGET"; then
9663 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9664 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9666 echo "$as_me:$LINENO: result: no" >&5
9667 echo "${ECHO_T}no" >&6
9673 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9674 for ncn_progname in ar; do
9675 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9676 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9677 if test -x $with_build_time_tools/${ncn_progname}; then
9678 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9679 echo "$as_me:$LINENO: result: yes" >&5
9680 echo "${ECHO_T}yes" >&6
9683 echo "$as_me:$LINENO: result: no" >&5
9684 echo "${ECHO_T}no" >&6
9689 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9690 for ncn_progname in ar; do
9691 if test -n "$ncn_target_tool_prefix"; then
9692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9693 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9694 echo "$as_me:$LINENO: checking for $ac_word" >&5
9695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9696 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 if test -n "$AR_FOR_TARGET"; then
9700 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 test -z "$as_dir" && as_dir=.
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9709 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9719 if test -n "$AR_FOR_TARGET"; then
9720 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9721 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9723 echo "$as_me:$LINENO: result: no" >&5
9724 echo "${ECHO_T}no" >&6
9728 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9730 set dummy ${ncn_progname}; ac_word=$2
9731 echo "$as_me:$LINENO: checking for $ac_word" >&5
9732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9733 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 if test -n "$AR_FOR_TARGET"; then
9737 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9746 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9756 if test -n "$AR_FOR_TARGET"; then
9757 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9758 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9760 echo "$as_me:$LINENO: result: no" >&5
9761 echo "${ECHO_T}no" >&6
9765 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9769 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9771 if test $build = $target ; then
9774 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9777 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9781 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9787 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9788 if test -n "$with_build_time_tools"; then
9789 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9790 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
9791 if test -x $with_build_time_tools/as; then
9792 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9793 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9794 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9795 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
9797 echo "$as_me:$LINENO: result: no" >&5
9798 echo "${ECHO_T}no" >&6
9800 elif test $build != $host && test $have_gcc_for_target = yes; then
9801 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9802 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9803 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9806 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9807 # Extract the first word of "as", so it can be a program name with args.
9808 set dummy as; ac_word=$2
9809 echo "$as_me:$LINENO: checking for $ac_word" >&5
9810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9811 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 case $AS_FOR_TARGET in
9816 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 for as_dir in $gcc_cv_tool_dirs
9823 test -z "$as_dir" && as_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9826 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9838 if test -n "$AS_FOR_TARGET"; then
9839 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9840 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9842 echo "$as_me:$LINENO: result: no" >&5
9843 echo "${ECHO_T}no" >&6
9847 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9850 if test -n "$AS_FOR_TARGET"; then
9851 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9852 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9853 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9856 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9857 for ncn_progname in as; do
9858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9859 set dummy ${ncn_progname}; ac_word=$2
9860 echo "$as_me:$LINENO: checking for $ac_word" >&5
9861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9862 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 if test -n "$AS_FOR_TARGET"; then
9866 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9885 if test -n "$AS_FOR_TARGET"; then
9886 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9887 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9889 echo "$as_me:$LINENO: result: no" >&5
9890 echo "${ECHO_T}no" >&6
9896 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9897 for ncn_progname in as; do
9898 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9899 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9900 if test -x $with_build_time_tools/${ncn_progname}; then
9901 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9902 echo "$as_me:$LINENO: result: yes" >&5
9903 echo "${ECHO_T}yes" >&6
9906 echo "$as_me:$LINENO: result: no" >&5
9907 echo "${ECHO_T}no" >&6
9912 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9913 for ncn_progname in as; do
9914 if test -n "$ncn_target_tool_prefix"; then
9915 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9916 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9917 echo "$as_me:$LINENO: checking for $ac_word" >&5
9918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9919 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 if test -n "$AS_FOR_TARGET"; then
9923 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 test -z "$as_dir" && as_dir=.
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9932 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9942 if test -n "$AS_FOR_TARGET"; then
9943 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9944 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9946 echo "$as_me:$LINENO: result: no" >&5
9947 echo "${ECHO_T}no" >&6
9951 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9953 set dummy ${ncn_progname}; ac_word=$2
9954 echo "$as_me:$LINENO: checking for $ac_word" >&5
9955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9956 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 if test -n "$AS_FOR_TARGET"; then
9960 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9969 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9979 if test -n "$AS_FOR_TARGET"; then
9980 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9981 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9983 echo "$as_me:$LINENO: result: no" >&5
9984 echo "${ECHO_T}no" >&6
9988 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9992 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9994 if test $build = $target ; then
9997 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10000 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10004 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10010 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10011 if test -n "$with_build_time_tools"; then
10012 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
10013 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
10014 if test -x $with_build_time_tools/dlltool; then
10015 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10016 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10017 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10018 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
10020 echo "$as_me:$LINENO: result: no" >&5
10021 echo "${ECHO_T}no" >&6
10023 elif test $build != $host && test $have_gcc_for_target = yes; then
10024 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10025 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10026 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10029 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10030 # Extract the first word of "dlltool", so it can be a program name with args.
10031 set dummy dlltool; ac_word=$2
10032 echo "$as_me:$LINENO: checking for $ac_word" >&5
10033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10034 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 case $DLLTOOL_FOR_TARGET in
10039 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043 for as_dir in $gcc_cv_tool_dirs
10046 test -z "$as_dir" && as_dir=.
10047 for ac_exec_ext in '' $ac_executable_extensions; do
10048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10049 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10061 if test -n "$DLLTOOL_FOR_TARGET"; then
10062 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10063 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
10065 echo "$as_me:$LINENO: result: no" >&5
10066 echo "${ECHO_T}no" >&6
10070 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10073 if test -n "$DLLTOOL_FOR_TARGET"; then
10074 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10075 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10076 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10079 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10080 for ncn_progname in dlltool; do
10081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10082 set dummy ${ncn_progname}; ac_word=$2
10083 echo "$as_me:$LINENO: checking for $ac_word" >&5
10084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10085 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 if test -n "$DLLTOOL_FOR_TARGET"; then
10089 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092 for as_dir in $PATH
10095 test -z "$as_dir" && as_dir=.
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10098 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10108 if test -n "$DLLTOOL_FOR_TARGET"; then
10109 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10110 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
10112 echo "$as_me:$LINENO: result: no" >&5
10113 echo "${ECHO_T}no" >&6
10119 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10120 for ncn_progname in dlltool; do
10121 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10122 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10123 if test -x $with_build_time_tools/${ncn_progname}; then
10124 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10125 echo "$as_me:$LINENO: result: yes" >&5
10126 echo "${ECHO_T}yes" >&6
10129 echo "$as_me:$LINENO: result: no" >&5
10130 echo "${ECHO_T}no" >&6
10135 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10136 for ncn_progname in dlltool; do
10137 if test -n "$ncn_target_tool_prefix"; then
10138 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10139 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10140 echo "$as_me:$LINENO: checking for $ac_word" >&5
10141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10142 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 if test -n "$DLLTOOL_FOR_TARGET"; then
10146 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149 for as_dir in $PATH
10152 test -z "$as_dir" && as_dir=.
10153 for ac_exec_ext in '' $ac_executable_extensions; do
10154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10155 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10165 if test -n "$DLLTOOL_FOR_TARGET"; then
10166 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10167 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
10169 echo "$as_me:$LINENO: result: no" >&5
10170 echo "${ECHO_T}no" >&6
10174 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10176 set dummy ${ncn_progname}; ac_word=$2
10177 echo "$as_me:$LINENO: checking for $ac_word" >&5
10178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10179 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 if test -n "$DLLTOOL_FOR_TARGET"; then
10183 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10189 test -z "$as_dir" && as_dir=.
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10192 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10201 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10202 if test -n "$DLLTOOL_FOR_TARGET"; then
10203 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10204 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
10206 echo "$as_me:$LINENO: result: no" >&5
10207 echo "${ECHO_T}no" >&6
10211 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10215 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10217 if test $build = $target ; then
10218 DLLTOOL_FOR_TARGET="$2"
10220 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10223 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
10227 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10233 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10234 if test -n "$with_build_time_tools"; then
10235 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
10236 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
10237 if test -x $with_build_time_tools/ld; then
10238 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10239 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10240 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
10241 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
10243 echo "$as_me:$LINENO: result: no" >&5
10244 echo "${ECHO_T}no" >&6
10246 elif test $build != $host && test $have_gcc_for_target = yes; then
10247 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
10248 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10249 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10252 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10253 # Extract the first word of "ld", so it can be a program name with args.
10254 set dummy ld; ac_word=$2
10255 echo "$as_me:$LINENO: checking for $ac_word" >&5
10256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10257 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 case $LD_FOR_TARGET in
10262 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $gcc_cv_tool_dirs
10269 test -z "$as_dir" && as_dir=.
10270 for ac_exec_ext in '' $ac_executable_extensions; do
10271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10272 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10284 if test -n "$LD_FOR_TARGET"; then
10285 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10286 echo "${ECHO_T}$LD_FOR_TARGET" >&6
10288 echo "$as_me:$LINENO: result: no" >&5
10289 echo "${ECHO_T}no" >&6
10293 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10296 if test -n "$LD_FOR_TARGET"; then
10297 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10298 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10299 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10302 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10303 for ncn_progname in ld; do
10304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10305 set dummy ${ncn_progname}; ac_word=$2
10306 echo "$as_me:$LINENO: checking for $ac_word" >&5
10307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10308 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 if test -n "$LD_FOR_TARGET"; then
10312 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10318 test -z "$as_dir" && as_dir=.
10319 for ac_exec_ext in '' $ac_executable_extensions; do
10320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10321 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10331 if test -n "$LD_FOR_TARGET"; then
10332 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10333 echo "${ECHO_T}$LD_FOR_TARGET" >&6
10335 echo "$as_me:$LINENO: result: no" >&5
10336 echo "${ECHO_T}no" >&6
10342 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
10343 for ncn_progname in ld; do
10344 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10345 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10346 if test -x $with_build_time_tools/${ncn_progname}; then
10347 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10348 echo "$as_me:$LINENO: result: yes" >&5
10349 echo "${ECHO_T}yes" >&6
10352 echo "$as_me:$LINENO: result: no" >&5
10353 echo "${ECHO_T}no" >&6
10358 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10359 for ncn_progname in ld; do
10360 if test -n "$ncn_target_tool_prefix"; then
10361 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10362 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10363 echo "$as_me:$LINENO: checking for $ac_word" >&5
10364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10365 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 if test -n "$LD_FOR_TARGET"; then
10369 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372 for as_dir in $PATH
10375 test -z "$as_dir" && as_dir=.
10376 for ac_exec_ext in '' $ac_executable_extensions; do
10377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10378 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10388 if test -n "$LD_FOR_TARGET"; then
10389 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10390 echo "${ECHO_T}$LD_FOR_TARGET" >&6
10392 echo "$as_me:$LINENO: result: no" >&5
10393 echo "${ECHO_T}no" >&6
10397 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10399 set dummy ${ncn_progname}; ac_word=$2
10400 echo "$as_me:$LINENO: checking for $ac_word" >&5
10401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10402 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 if test -n "$LD_FOR_TARGET"; then
10406 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10424 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10425 if test -n "$LD_FOR_TARGET"; then
10426 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10427 echo "${ECHO_T}$LD_FOR_TARGET" >&6
10429 echo "$as_me:$LINENO: result: no" >&5
10430 echo "${ECHO_T}no" >&6
10434 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10438 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10440 if test $build = $target ; then
10443 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10446 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10450 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10456 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10457 if test -n "$with_build_time_tools"; then
10458 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10459 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
10460 if test -x $with_build_time_tools/lipo; then
10461 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10462 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10463 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10464 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
10466 echo "$as_me:$LINENO: result: no" >&5
10467 echo "${ECHO_T}no" >&6
10469 elif test $build != $host && test $have_gcc_for_target = yes; then
10470 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10471 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10472 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10475 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10476 # Extract the first word of "lipo", so it can be a program name with args.
10477 set dummy lipo; ac_word=$2
10478 echo "$as_me:$LINENO: checking for $ac_word" >&5
10479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10480 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 case $LIPO_FOR_TARGET in
10485 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $gcc_cv_tool_dirs
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10495 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10507 if test -n "$LIPO_FOR_TARGET"; then
10508 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10509 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10511 echo "$as_me:$LINENO: result: no" >&5
10512 echo "${ECHO_T}no" >&6
10516 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10519 if test -n "$LIPO_FOR_TARGET"; then
10520 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10521 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10522 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10525 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10526 for ncn_progname in lipo; do
10527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10528 set dummy ${ncn_progname}; ac_word=$2
10529 echo "$as_me:$LINENO: checking for $ac_word" >&5
10530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10531 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 if test -n "$LIPO_FOR_TARGET"; then
10535 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10544 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10554 if test -n "$LIPO_FOR_TARGET"; then
10555 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10556 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10558 echo "$as_me:$LINENO: result: no" >&5
10559 echo "${ECHO_T}no" >&6
10565 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10566 for ncn_progname in lipo; do
10567 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10568 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10569 if test -x $with_build_time_tools/${ncn_progname}; then
10570 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10571 echo "$as_me:$LINENO: result: yes" >&5
10572 echo "${ECHO_T}yes" >&6
10575 echo "$as_me:$LINENO: result: no" >&5
10576 echo "${ECHO_T}no" >&6
10581 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10582 for ncn_progname in lipo; do
10583 if test -n "$ncn_target_tool_prefix"; then
10584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10586 echo "$as_me:$LINENO: checking for $ac_word" >&5
10587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10588 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 if test -n "$LIPO_FOR_TARGET"; then
10592 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10610 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10611 if test -n "$LIPO_FOR_TARGET"; then
10612 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10613 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10615 echo "$as_me:$LINENO: result: no" >&5
10616 echo "${ECHO_T}no" >&6
10620 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10622 set dummy ${ncn_progname}; ac_word=$2
10623 echo "$as_me:$LINENO: checking for $ac_word" >&5
10624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10625 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 if test -n "$LIPO_FOR_TARGET"; then
10629 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632 for as_dir in $PATH
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10638 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10648 if test -n "$LIPO_FOR_TARGET"; then
10649 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10650 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10652 echo "$as_me:$LINENO: result: no" >&5
10653 echo "${ECHO_T}no" >&6
10657 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10661 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10663 if test $build = $target ; then
10664 LIPO_FOR_TARGET="$2"
10666 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10669 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10673 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10679 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10680 if test -n "$with_build_time_tools"; then
10681 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10682 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
10683 if test -x $with_build_time_tools/nm; then
10684 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10685 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10686 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10687 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
10689 echo "$as_me:$LINENO: result: no" >&5
10690 echo "${ECHO_T}no" >&6
10692 elif test $build != $host && test $have_gcc_for_target = yes; then
10693 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10694 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10695 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10698 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10699 # Extract the first word of "nm", so it can be a program name with args.
10700 set dummy nm; ac_word=$2
10701 echo "$as_me:$LINENO: checking for $ac_word" >&5
10702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10703 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 case $NM_FOR_TARGET in
10708 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712 for as_dir in $gcc_cv_tool_dirs
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10718 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10730 if test -n "$NM_FOR_TARGET"; then
10731 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10732 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10734 echo "$as_me:$LINENO: result: no" >&5
10735 echo "${ECHO_T}no" >&6
10739 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10742 if test -n "$NM_FOR_TARGET"; then
10743 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10744 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10745 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10748 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10749 for ncn_progname in nm; do
10750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10751 set dummy ${ncn_progname}; ac_word=$2
10752 echo "$as_me:$LINENO: checking for $ac_word" >&5
10753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10754 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 if test -n "$NM_FOR_TARGET"; then
10758 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10767 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10777 if test -n "$NM_FOR_TARGET"; then
10778 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10779 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10781 echo "$as_me:$LINENO: result: no" >&5
10782 echo "${ECHO_T}no" >&6
10788 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10789 for ncn_progname in nm; do
10790 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10791 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10792 if test -x $with_build_time_tools/${ncn_progname}; then
10793 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10794 echo "$as_me:$LINENO: result: yes" >&5
10795 echo "${ECHO_T}yes" >&6
10798 echo "$as_me:$LINENO: result: no" >&5
10799 echo "${ECHO_T}no" >&6
10804 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10805 for ncn_progname in nm; do
10806 if test -n "$ncn_target_tool_prefix"; then
10807 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10808 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10809 echo "$as_me:$LINENO: checking for $ac_word" >&5
10810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10811 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 if test -n "$NM_FOR_TARGET"; then
10815 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH
10821 test -z "$as_dir" && as_dir=.
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10824 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10834 if test -n "$NM_FOR_TARGET"; then
10835 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10836 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10838 echo "$as_me:$LINENO: result: no" >&5
10839 echo "${ECHO_T}no" >&6
10843 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10845 set dummy ${ncn_progname}; ac_word=$2
10846 echo "$as_me:$LINENO: checking for $ac_word" >&5
10847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10848 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 if test -n "$NM_FOR_TARGET"; then
10852 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855 for as_dir in $PATH
10858 test -z "$as_dir" && as_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
10860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10861 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10870 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10871 if test -n "$NM_FOR_TARGET"; then
10872 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10873 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10875 echo "$as_me:$LINENO: result: no" >&5
10876 echo "${ECHO_T}no" >&6
10880 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10884 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10886 if test $build = $target ; then
10889 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10892 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10896 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10902 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10903 if test -n "$with_build_time_tools"; then
10904 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10905 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10906 if test -x $with_build_time_tools/objdump; then
10907 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10908 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10909 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10910 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10912 echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6
10915 elif test $build != $host && test $have_gcc_for_target = yes; then
10916 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10917 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10918 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10921 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10922 # Extract the first word of "objdump", so it can be a program name with args.
10923 set dummy objdump; ac_word=$2
10924 echo "$as_me:$LINENO: checking for $ac_word" >&5
10925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10926 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 case $OBJDUMP_FOR_TARGET in
10931 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in $gcc_cv_tool_dirs
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10941 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10953 if test -n "$OBJDUMP_FOR_TARGET"; then
10954 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10955 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10957 echo "$as_me:$LINENO: result: no" >&5
10958 echo "${ECHO_T}no" >&6
10962 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10965 if test -n "$OBJDUMP_FOR_TARGET"; then
10966 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10967 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10968 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10971 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10972 for ncn_progname in objdump; do
10973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10974 set dummy ${ncn_progname}; ac_word=$2
10975 echo "$as_me:$LINENO: checking for $ac_word" >&5
10976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10977 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 if test -n "$OBJDUMP_FOR_TARGET"; then
10981 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10990 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11000 if test -n "$OBJDUMP_FOR_TARGET"; then
11001 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11002 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
11004 echo "$as_me:$LINENO: result: no" >&5
11005 echo "${ECHO_T}no" >&6
11011 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11012 for ncn_progname in objdump; do
11013 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11014 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11015 if test -x $with_build_time_tools/${ncn_progname}; then
11016 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11017 echo "$as_me:$LINENO: result: yes" >&5
11018 echo "${ECHO_T}yes" >&6
11021 echo "$as_me:$LINENO: result: no" >&5
11022 echo "${ECHO_T}no" >&6
11027 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11028 for ncn_progname in objdump; do
11029 if test -n "$ncn_target_tool_prefix"; then
11030 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11031 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11032 echo "$as_me:$LINENO: checking for $ac_word" >&5
11033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11034 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 if test -n "$OBJDUMP_FOR_TARGET"; then
11038 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11047 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11056 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11057 if test -n "$OBJDUMP_FOR_TARGET"; then
11058 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11059 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
11061 echo "$as_me:$LINENO: result: no" >&5
11062 echo "${ECHO_T}no" >&6
11066 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11068 set dummy ${ncn_progname}; ac_word=$2
11069 echo "$as_me:$LINENO: checking for $ac_word" >&5
11070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11071 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 if test -n "$OBJDUMP_FOR_TARGET"; then
11075 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078 for as_dir in $PATH
11081 test -z "$as_dir" && as_dir=.
11082 for ac_exec_ext in '' $ac_executable_extensions; do
11083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11084 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11093 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11094 if test -n "$OBJDUMP_FOR_TARGET"; then
11095 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11096 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
11098 echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6
11103 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11107 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11109 if test $build = $target ; then
11110 OBJDUMP_FOR_TARGET="$2"
11112 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11115 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11119 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11125 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11126 if test -n "$with_build_time_tools"; then
11127 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
11128 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
11129 if test -x $with_build_time_tools/ranlib; then
11130 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11131 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11132 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11133 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
11135 echo "$as_me:$LINENO: result: no" >&5
11136 echo "${ECHO_T}no" >&6
11138 elif test $build != $host && test $have_gcc_for_target = yes; then
11139 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
11140 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11141 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11144 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11145 # Extract the first word of "ranlib", so it can be a program name with args.
11146 set dummy ranlib; ac_word=$2
11147 echo "$as_me:$LINENO: checking for $ac_word" >&5
11148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11149 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 case $RANLIB_FOR_TARGET in
11154 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $gcc_cv_tool_dirs
11161 test -z "$as_dir" && as_dir=.
11162 for ac_exec_ext in '' $ac_executable_extensions; do
11163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11164 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11174 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11176 if test -n "$RANLIB_FOR_TARGET"; then
11177 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11178 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
11180 echo "$as_me:$LINENO: result: no" >&5
11181 echo "${ECHO_T}no" >&6
11185 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11188 if test -n "$RANLIB_FOR_TARGET"; then
11189 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11190 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11191 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11194 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11195 for ncn_progname in ranlib; do
11196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11197 set dummy ${ncn_progname}; ac_word=$2
11198 echo "$as_me:$LINENO: checking for $ac_word" >&5
11199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11200 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 if test -n "$RANLIB_FOR_TARGET"; then
11204 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207 for as_dir in $PATH
11210 test -z "$as_dir" && as_dir=.
11211 for ac_exec_ext in '' $ac_executable_extensions; do
11212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11213 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11223 if test -n "$RANLIB_FOR_TARGET"; then
11224 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11225 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
11227 echo "$as_me:$LINENO: result: no" >&5
11228 echo "${ECHO_T}no" >&6
11234 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
11235 for ncn_progname in ranlib; do
11236 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11237 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11238 if test -x $with_build_time_tools/${ncn_progname}; then
11239 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11240 echo "$as_me:$LINENO: result: yes" >&5
11241 echo "${ECHO_T}yes" >&6
11244 echo "$as_me:$LINENO: result: no" >&5
11245 echo "${ECHO_T}no" >&6
11250 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11251 for ncn_progname in ranlib; do
11252 if test -n "$ncn_target_tool_prefix"; then
11253 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11254 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11255 echo "$as_me:$LINENO: checking for $ac_word" >&5
11256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11257 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 if test -n "$RANLIB_FOR_TARGET"; then
11261 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11270 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11280 if test -n "$RANLIB_FOR_TARGET"; then
11281 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11282 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
11284 echo "$as_me:$LINENO: result: no" >&5
11285 echo "${ECHO_T}no" >&6
11289 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11291 set dummy ${ncn_progname}; ac_word=$2
11292 echo "$as_me:$LINENO: checking for $ac_word" >&5
11293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11294 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 if test -n "$RANLIB_FOR_TARGET"; then
11298 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11304 test -z "$as_dir" && as_dir=.
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11316 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11317 if test -n "$RANLIB_FOR_TARGET"; then
11318 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11319 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
11321 echo "$as_me:$LINENO: result: no" >&5
11322 echo "${ECHO_T}no" >&6
11326 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11330 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11332 if test $build = $target ; then
11333 RANLIB_FOR_TARGET="$2"
11335 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
11338 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
11342 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11348 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11349 if test -n "$with_build_time_tools"; then
11350 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11351 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
11352 if test -x $with_build_time_tools/strip; then
11353 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11354 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11355 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11356 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
11358 echo "$as_me:$LINENO: result: no" >&5
11359 echo "${ECHO_T}no" >&6
11361 elif test $build != $host && test $have_gcc_for_target = yes; then
11362 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
11363 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11364 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11367 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11368 # Extract the first word of "strip", so it can be a program name with args.
11369 set dummy strip; ac_word=$2
11370 echo "$as_me:$LINENO: checking for $ac_word" >&5
11371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11372 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 case $STRIP_FOR_TARGET in
11377 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $gcc_cv_tool_dirs
11384 test -z "$as_dir" && as_dir=.
11385 for ac_exec_ext in '' $ac_executable_extensions; do
11386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11387 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11399 if test -n "$STRIP_FOR_TARGET"; then
11400 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11401 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11403 echo "$as_me:$LINENO: result: no" >&5
11404 echo "${ECHO_T}no" >&6
11408 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11411 if test -n "$STRIP_FOR_TARGET"; then
11412 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11413 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11414 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11417 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11418 for ncn_progname in strip; do
11419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11420 set dummy ${ncn_progname}; ac_word=$2
11421 echo "$as_me:$LINENO: checking for $ac_word" >&5
11422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11423 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 if test -n "$STRIP_FOR_TARGET"; then
11427 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11433 test -z "$as_dir" && as_dir=.
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11446 if test -n "$STRIP_FOR_TARGET"; then
11447 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11448 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11450 echo "$as_me:$LINENO: result: no" >&5
11451 echo "${ECHO_T}no" >&6
11457 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11458 for ncn_progname in strip; do
11459 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11460 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11461 if test -x $with_build_time_tools/${ncn_progname}; then
11462 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11463 echo "$as_me:$LINENO: result: yes" >&5
11464 echo "${ECHO_T}yes" >&6
11467 echo "$as_me:$LINENO: result: no" >&5
11468 echo "${ECHO_T}no" >&6
11473 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11474 for ncn_progname in strip; do
11475 if test -n "$ncn_target_tool_prefix"; then
11476 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11477 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11478 echo "$as_me:$LINENO: checking for $ac_word" >&5
11479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11480 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 if test -n "$STRIP_FOR_TARGET"; then
11484 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11490 test -z "$as_dir" && as_dir=.
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11493 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11503 if test -n "$STRIP_FOR_TARGET"; then
11504 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11505 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11507 echo "$as_me:$LINENO: result: no" >&5
11508 echo "${ECHO_T}no" >&6
11512 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11514 set dummy ${ncn_progname}; ac_word=$2
11515 echo "$as_me:$LINENO: checking for $ac_word" >&5
11516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11517 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 if test -n "$STRIP_FOR_TARGET"; then
11521 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in $PATH
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11539 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11540 if test -n "$STRIP_FOR_TARGET"; then
11541 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11542 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11544 echo "$as_me:$LINENO: result: no" >&5
11545 echo "${ECHO_T}no" >&6
11549 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11553 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11555 if test $build = $target ; then
11556 STRIP_FOR_TARGET="$2"
11558 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11561 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
11565 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11571 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11572 if test -n "$with_build_time_tools"; then
11573 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11574 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
11575 if test -x $with_build_time_tools/windres; then
11576 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11577 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11578 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11579 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
11581 echo "$as_me:$LINENO: result: no" >&5
11582 echo "${ECHO_T}no" >&6
11584 elif test $build != $host && test $have_gcc_for_target = yes; then
11585 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11586 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11587 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11590 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11591 # Extract the first word of "windres", so it can be a program name with args.
11592 set dummy windres; ac_word=$2
11593 echo "$as_me:$LINENO: checking for $ac_word" >&5
11594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11595 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 case $WINDRES_FOR_TARGET in
11600 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $gcc_cv_tool_dirs
11607 test -z "$as_dir" && as_dir=.
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11610 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11620 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11622 if test -n "$WINDRES_FOR_TARGET"; then
11623 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11624 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11626 echo "$as_me:$LINENO: result: no" >&5
11627 echo "${ECHO_T}no" >&6
11631 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11634 if test -n "$WINDRES_FOR_TARGET"; then
11635 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11636 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11637 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11640 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11641 for ncn_progname in windres; do
11642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11643 set dummy ${ncn_progname}; ac_word=$2
11644 echo "$as_me:$LINENO: checking for $ac_word" >&5
11645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11646 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 if test -n "$WINDRES_FOR_TARGET"; then
11650 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $PATH
11656 test -z "$as_dir" && as_dir=.
11657 for ac_exec_ext in '' $ac_executable_extensions; do
11658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11659 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11669 if test -n "$WINDRES_FOR_TARGET"; then
11670 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11671 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11673 echo "$as_me:$LINENO: result: no" >&5
11674 echo "${ECHO_T}no" >&6
11680 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11681 for ncn_progname in windres; do
11682 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11683 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11684 if test -x $with_build_time_tools/${ncn_progname}; then
11685 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11686 echo "$as_me:$LINENO: result: yes" >&5
11687 echo "${ECHO_T}yes" >&6
11690 echo "$as_me:$LINENO: result: no" >&5
11691 echo "${ECHO_T}no" >&6
11696 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11697 for ncn_progname in windres; do
11698 if test -n "$ncn_target_tool_prefix"; then
11699 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11700 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11701 echo "$as_me:$LINENO: checking for $ac_word" >&5
11702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11703 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11706 if test -n "$WINDRES_FOR_TARGET"; then
11707 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11716 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11725 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11726 if test -n "$WINDRES_FOR_TARGET"; then
11727 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11728 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11730 echo "$as_me:$LINENO: result: no" >&5
11731 echo "${ECHO_T}no" >&6
11735 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11737 set dummy ${ncn_progname}; ac_word=$2
11738 echo "$as_me:$LINENO: checking for $ac_word" >&5
11739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11740 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 if test -n "$WINDRES_FOR_TARGET"; then
11744 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11753 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11763 if test -n "$WINDRES_FOR_TARGET"; then
11764 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11765 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11767 echo "$as_me:$LINENO: result: no" >&5
11768 echo "${ECHO_T}no" >&6
11772 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11776 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11778 if test $build = $target ; then
11779 WINDRES_FOR_TARGET="$2"
11781 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11784 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11788 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11794 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11795 if test -n "$with_build_time_tools"; then
11796 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11797 echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11798 if test -x $with_build_time_tools/windmc; then
11799 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11800 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11801 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11802 echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11804 echo "$as_me:$LINENO: result: no" >&5
11805 echo "${ECHO_T}no" >&6
11807 elif test $build != $host && test $have_gcc_for_target = yes; then
11808 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11809 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11810 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11813 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11814 # Extract the first word of "windmc", so it can be a program name with args.
11815 set dummy windmc; ac_word=$2
11816 echo "$as_me:$LINENO: checking for $ac_word" >&5
11817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11818 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 case $WINDMC_FOR_TARGET in
11823 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $gcc_cv_tool_dirs
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11833 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11845 if test -n "$WINDMC_FOR_TARGET"; then
11846 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11847 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11849 echo "$as_me:$LINENO: result: no" >&5
11850 echo "${ECHO_T}no" >&6
11854 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11857 if test -n "$WINDMC_FOR_TARGET"; then
11858 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11859 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11860 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11863 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11864 for ncn_progname in windmc; do
11865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11866 set dummy ${ncn_progname}; ac_word=$2
11867 echo "$as_me:$LINENO: checking for $ac_word" >&5
11868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11869 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 if test -n "$WINDMC_FOR_TARGET"; then
11873 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876 for as_dir in $PATH
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11882 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11891 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11892 if test -n "$WINDMC_FOR_TARGET"; then
11893 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11894 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11896 echo "$as_me:$LINENO: result: no" >&5
11897 echo "${ECHO_T}no" >&6
11903 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11904 for ncn_progname in windmc; do
11905 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11906 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11907 if test -x $with_build_time_tools/${ncn_progname}; then
11908 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11909 echo "$as_me:$LINENO: result: yes" >&5
11910 echo "${ECHO_T}yes" >&6
11913 echo "$as_me:$LINENO: result: no" >&5
11914 echo "${ECHO_T}no" >&6
11919 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11920 for ncn_progname in windmc; do
11921 if test -n "$ncn_target_tool_prefix"; then
11922 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11923 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11924 echo "$as_me:$LINENO: checking for $ac_word" >&5
11925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11926 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 if test -n "$WINDMC_FOR_TARGET"; then
11930 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11948 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11949 if test -n "$WINDMC_FOR_TARGET"; then
11950 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11951 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11953 echo "$as_me:$LINENO: result: no" >&5
11954 echo "${ECHO_T}no" >&6
11958 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11960 set dummy ${ncn_progname}; ac_word=$2
11961 echo "$as_me:$LINENO: checking for $ac_word" >&5
11962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11963 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 if test -n "$WINDMC_FOR_TARGET"; then
11967 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970 for as_dir in $PATH
11973 test -z "$as_dir" && as_dir=.
11974 for ac_exec_ext in '' $ac_executable_extensions; do
11975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11976 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11986 if test -n "$WINDMC_FOR_TARGET"; then
11987 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11988 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11990 echo "$as_me:$LINENO: result: no" >&5
11991 echo "${ECHO_T}no" >&6
11995 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11999 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12001 if test $build = $target ; then
12002 WINDMC_FOR_TARGET="$2"
12004 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12007 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12011 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12015 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12017 echo "$as_me:$LINENO: checking where to find the target ar" >&5
12018 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
12019 if test "x${build}" != "x${host}" ; then
12020 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12021 # We already found the complete path
12022 ac_dir=`dirname $AR_FOR_TARGET`
12023 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12024 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12026 # Canadian cross, just use what we found
12027 echo "$as_me:$LINENO: result: pre-installed" >&5
12028 echo "${ECHO_T}pre-installed" >&6
12032 case " ${configdirs} " in
12037 if test $ok = yes; then
12038 # An in-tree tool is available and we can use it
12039 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12040 echo "$as_me:$LINENO: result: just compiled" >&5
12041 echo "${ECHO_T}just compiled" >&6
12042 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12043 # We already found the complete path
12044 ac_dir=`dirname $AR_FOR_TARGET`
12045 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12046 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12047 elif test "x$target" = "x$host"; then
12048 # We can use an host tool
12049 AR_FOR_TARGET='$(AR)'
12050 echo "$as_me:$LINENO: result: host tool" >&5
12051 echo "${ECHO_T}host tool" >&6
12053 # We need a cross tool
12054 echo "$as_me:$LINENO: result: pre-installed" >&5
12055 echo "${ECHO_T}pre-installed" >&6
12059 echo "$as_me:$LINENO: checking where to find the target as" >&5
12060 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
12061 if test "x${build}" != "x${host}" ; then
12062 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12063 # We already found the complete path
12064 ac_dir=`dirname $AS_FOR_TARGET`
12065 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12066 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12068 # Canadian cross, just use what we found
12069 echo "$as_me:$LINENO: result: pre-installed" >&5
12070 echo "${ECHO_T}pre-installed" >&6
12074 case " ${configdirs} " in
12079 if test $ok = yes; then
12080 # An in-tree tool is available and we can use it
12081 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12082 echo "$as_me:$LINENO: result: just compiled" >&5
12083 echo "${ECHO_T}just compiled" >&6
12084 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12085 # We already found the complete path
12086 ac_dir=`dirname $AS_FOR_TARGET`
12087 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12088 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12089 elif test "x$target" = "x$host"; then
12090 # We can use an host tool
12091 AS_FOR_TARGET='$(AS)'
12092 echo "$as_me:$LINENO: result: host tool" >&5
12093 echo "${ECHO_T}host tool" >&6
12095 # We need a cross tool
12096 echo "$as_me:$LINENO: result: pre-installed" >&5
12097 echo "${ECHO_T}pre-installed" >&6
12101 echo "$as_me:$LINENO: checking where to find the target cc" >&5
12102 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
12103 if test "x${build}" != "x${host}" ; then
12104 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12105 # We already found the complete path
12106 ac_dir=`dirname $CC_FOR_TARGET`
12107 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12108 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12110 # Canadian cross, just use what we found
12111 echo "$as_me:$LINENO: result: pre-installed" >&5
12112 echo "${ECHO_T}pre-installed" >&6
12116 case " ${configdirs} " in
12121 if test $ok = yes; then
12122 # An in-tree tool is available and we can use it
12123 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12124 echo "$as_me:$LINENO: result: just compiled" >&5
12125 echo "${ECHO_T}just compiled" >&6
12126 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12127 # We already found the complete path
12128 ac_dir=`dirname $CC_FOR_TARGET`
12129 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12130 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12131 elif test "x$target" = "x$host"; then
12132 # We can use an host tool
12133 CC_FOR_TARGET='$(CC)'
12134 echo "$as_me:$LINENO: result: host tool" >&5
12135 echo "${ECHO_T}host tool" >&6
12137 # We need a cross tool
12138 echo "$as_me:$LINENO: result: pre-installed" >&5
12139 echo "${ECHO_T}pre-installed" >&6
12143 echo "$as_me:$LINENO: checking where to find the target c++" >&5
12144 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
12145 if test "x${build}" != "x${host}" ; then
12146 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12147 # We already found the complete path
12148 ac_dir=`dirname $CXX_FOR_TARGET`
12149 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12150 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12152 # Canadian cross, just use what we found
12153 echo "$as_me:$LINENO: result: pre-installed" >&5
12154 echo "${ECHO_T}pre-installed" >&6
12158 case " ${configdirs} " in
12162 case ,${enable_languages}, in
12166 if test $ok = yes; then
12167 # An in-tree tool is available and we can use it
12168 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'
12169 echo "$as_me:$LINENO: result: just compiled" >&5
12170 echo "${ECHO_T}just compiled" >&6
12171 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12172 # We already found the complete path
12173 ac_dir=`dirname $CXX_FOR_TARGET`
12174 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12175 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12176 elif test "x$target" = "x$host"; then
12177 # We can use an host tool
12178 CXX_FOR_TARGET='$(CXX)'
12179 echo "$as_me:$LINENO: result: host tool" >&5
12180 echo "${ECHO_T}host tool" >&6
12182 # We need a cross tool
12183 echo "$as_me:$LINENO: result: pre-installed" >&5
12184 echo "${ECHO_T}pre-installed" >&6
12188 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
12189 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
12190 if test "x${build}" != "x${host}" ; then
12191 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12192 # We already found the complete path
12193 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12194 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12195 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12197 # Canadian cross, just use what we found
12198 echo "$as_me:$LINENO: result: pre-installed" >&5
12199 echo "${ECHO_T}pre-installed" >&6
12203 case " ${configdirs} " in
12207 case ,${enable_languages}, in
12211 if test $ok = yes; then
12212 # An in-tree tool is available and we can use it
12213 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'
12214 echo "$as_me:$LINENO: result: just compiled" >&5
12215 echo "${ECHO_T}just compiled" >&6
12216 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12217 # We already found the complete path
12218 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12219 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12220 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12221 elif test "x$target" = "x$host"; then
12222 # We can use an host tool
12223 RAW_CXX_FOR_TARGET='$(CXX)'
12224 echo "$as_me:$LINENO: result: host tool" >&5
12225 echo "${ECHO_T}host tool" >&6
12227 # We need a cross tool
12228 echo "$as_me:$LINENO: result: pre-installed" >&5
12229 echo "${ECHO_T}pre-installed" >&6
12233 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
12234 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
12235 if test "x${build}" != "x${host}" ; then
12236 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12237 # We already found the complete path
12238 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12239 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12240 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12242 # Canadian cross, just use what we found
12243 echo "$as_me:$LINENO: result: pre-installed" >&5
12244 echo "${ECHO_T}pre-installed" >&6
12248 case " ${configdirs} " in
12253 if test $ok = yes; then
12254 # An in-tree tool is available and we can use it
12255 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
12256 echo "$as_me:$LINENO: result: just compiled" >&5
12257 echo "${ECHO_T}just compiled" >&6
12258 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12259 # We already found the complete path
12260 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12261 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12262 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12263 elif test "x$target" = "x$host"; then
12264 # We can use an host tool
12265 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
12266 echo "$as_me:$LINENO: result: host tool" >&5
12267 echo "${ECHO_T}host tool" >&6
12269 # We need a cross tool
12270 echo "$as_me:$LINENO: result: pre-installed" >&5
12271 echo "${ECHO_T}pre-installed" >&6
12275 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
12276 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
12277 if test "x${build}" != "x${host}" ; then
12278 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12279 # We already found the complete path
12280 ac_dir=`dirname $GCC_FOR_TARGET`
12281 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12282 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12284 # Canadian cross, just use what we found
12285 echo "$as_me:$LINENO: result: pre-installed" >&5
12286 echo "${ECHO_T}pre-installed" >&6
12290 case " ${configdirs} " in
12295 if test $ok = yes; then
12296 # An in-tree tool is available and we can use it
12297 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12298 echo "$as_me:$LINENO: result: just compiled" >&5
12299 echo "${ECHO_T}just compiled" >&6
12300 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12301 # We already found the complete path
12302 ac_dir=`dirname $GCC_FOR_TARGET`
12303 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12304 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12305 elif test "x$target" = "x$host"; then
12306 # We can use an host tool
12307 GCC_FOR_TARGET='$()'
12308 echo "$as_me:$LINENO: result: host tool" >&5
12309 echo "${ECHO_T}host tool" >&6
12311 # We need a cross tool
12312 echo "$as_me:$LINENO: result: pre-installed" >&5
12313 echo "${ECHO_T}pre-installed" >&6
12317 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
12318 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
12319 if test "x${build}" != "x${host}" ; then
12320 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12321 # We already found the complete path
12322 ac_dir=`dirname $GCJ_FOR_TARGET`
12323 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12324 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12326 # Canadian cross, just use what we found
12327 echo "$as_me:$LINENO: result: pre-installed" >&5
12328 echo "${ECHO_T}pre-installed" >&6
12332 case " ${configdirs} " in
12336 case ,${enable_languages}, in
12340 if test $ok = yes; then
12341 # An in-tree tool is available and we can use it
12342 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
12343 echo "$as_me:$LINENO: result: just compiled" >&5
12344 echo "${ECHO_T}just compiled" >&6
12345 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12346 # We already found the complete path
12347 ac_dir=`dirname $GCJ_FOR_TARGET`
12348 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12349 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12350 elif test "x$target" = "x$host"; then
12351 # We can use an host tool
12352 GCJ_FOR_TARGET='$(GCJ)'
12353 echo "$as_me:$LINENO: result: host tool" >&5
12354 echo "${ECHO_T}host tool" >&6
12356 # We need a cross tool
12357 echo "$as_me:$LINENO: result: pre-installed" >&5
12358 echo "${ECHO_T}pre-installed" >&6
12362 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12363 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
12364 if test "x${build}" != "x${host}" ; then
12365 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12366 # We already found the complete path
12367 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12368 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12369 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12371 # Canadian cross, just use what we found
12372 echo "$as_me:$LINENO: result: pre-installed" >&5
12373 echo "${ECHO_T}pre-installed" >&6
12377 case " ${configdirs} " in
12381 case ,${enable_languages}, in
12385 if test $ok = yes; then
12386 # An in-tree tool is available and we can use it
12387 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12388 echo "$as_me:$LINENO: result: just compiled" >&5
12389 echo "${ECHO_T}just compiled" >&6
12390 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12391 # We already found the complete path
12392 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12393 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12394 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12395 elif test "x$target" = "x$host"; then
12396 # We can use an host tool
12397 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12398 echo "$as_me:$LINENO: result: host tool" >&5
12399 echo "${ECHO_T}host tool" >&6
12401 # We need a cross tool
12402 echo "$as_me:$LINENO: result: pre-installed" >&5
12403 echo "${ECHO_T}pre-installed" >&6
12407 echo "$as_me:$LINENO: checking where to find the target ld" >&5
12408 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
12409 if test "x${build}" != "x${host}" ; then
12410 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12411 # We already found the complete path
12412 ac_dir=`dirname $LD_FOR_TARGET`
12413 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12414 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12416 # Canadian cross, just use what we found
12417 echo "$as_me:$LINENO: result: pre-installed" >&5
12418 echo "${ECHO_T}pre-installed" >&6
12422 case " ${configdirs} " in
12427 if test $ok = yes; then
12428 # An in-tree tool is available and we can use it
12429 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12430 echo "$as_me:$LINENO: result: just compiled" >&5
12431 echo "${ECHO_T}just compiled" >&6
12432 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12433 # We already found the complete path
12434 ac_dir=`dirname $LD_FOR_TARGET`
12435 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12436 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12437 elif test "x$target" = "x$host"; then
12438 # We can use an host tool
12439 LD_FOR_TARGET='$(LD)'
12440 echo "$as_me:$LINENO: result: host tool" >&5
12441 echo "${ECHO_T}host tool" >&6
12443 # We need a cross tool
12444 echo "$as_me:$LINENO: result: pre-installed" >&5
12445 echo "${ECHO_T}pre-installed" >&6
12449 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12450 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
12451 if test "x${build}" != "x${host}" ; then
12452 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12453 # We already found the complete path
12454 ac_dir=`dirname $LIPO_FOR_TARGET`
12455 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12456 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12458 # Canadian cross, just use what we found
12459 echo "$as_me:$LINENO: result: pre-installed" >&5
12460 echo "${ECHO_T}pre-installed" >&6
12463 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12464 # We already found the complete path
12465 ac_dir=`dirname $LIPO_FOR_TARGET`
12466 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12467 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12468 elif test "x$target" = "x$host"; then
12469 # We can use an host tool
12470 LIPO_FOR_TARGET='$(LIPO)'
12471 echo "$as_me:$LINENO: result: host tool" >&5
12472 echo "${ECHO_T}host tool" >&6
12474 # We need a cross tool
12475 echo "$as_me:$LINENO: result: pre-installed" >&5
12476 echo "${ECHO_T}pre-installed" >&6
12480 echo "$as_me:$LINENO: checking where to find the target nm" >&5
12481 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
12482 if test "x${build}" != "x${host}" ; then
12483 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12484 # We already found the complete path
12485 ac_dir=`dirname $NM_FOR_TARGET`
12486 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12487 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12489 # Canadian cross, just use what we found
12490 echo "$as_me:$LINENO: result: pre-installed" >&5
12491 echo "${ECHO_T}pre-installed" >&6
12495 case " ${configdirs} " in
12500 if test $ok = yes; then
12501 # An in-tree tool is available and we can use it
12502 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12503 echo "$as_me:$LINENO: result: just compiled" >&5
12504 echo "${ECHO_T}just compiled" >&6
12505 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12506 # We already found the complete path
12507 ac_dir=`dirname $NM_FOR_TARGET`
12508 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12509 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12510 elif test "x$target" = "x$host"; then
12511 # We can use an host tool
12512 NM_FOR_TARGET='$(NM)'
12513 echo "$as_me:$LINENO: result: host tool" >&5
12514 echo "${ECHO_T}host tool" >&6
12516 # We need a cross tool
12517 echo "$as_me:$LINENO: result: pre-installed" >&5
12518 echo "${ECHO_T}pre-installed" >&6
12522 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12523 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
12524 if test "x${build}" != "x${host}" ; then
12525 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12526 # We already found the complete path
12527 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12528 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12529 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12531 # Canadian cross, just use what we found
12532 echo "$as_me:$LINENO: result: pre-installed" >&5
12533 echo "${ECHO_T}pre-installed" >&6
12537 case " ${configdirs} " in
12542 if test $ok = yes; then
12543 # An in-tree tool is available and we can use it
12544 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
12545 echo "$as_me:$LINENO: result: just compiled" >&5
12546 echo "${ECHO_T}just compiled" >&6
12547 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12548 # We already found the complete path
12549 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12550 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12551 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12552 elif test "x$target" = "x$host"; then
12553 # We can use an host tool
12554 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
12555 echo "$as_me:$LINENO: result: host tool" >&5
12556 echo "${ECHO_T}host tool" >&6
12558 # We need a cross tool
12559 echo "$as_me:$LINENO: result: pre-installed" >&5
12560 echo "${ECHO_T}pre-installed" >&6
12564 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12565 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
12566 if test "x${build}" != "x${host}" ; then
12567 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12568 # We already found the complete path
12569 ac_dir=`dirname $RANLIB_FOR_TARGET`
12570 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12571 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12573 # Canadian cross, just use what we found
12574 echo "$as_me:$LINENO: result: pre-installed" >&5
12575 echo "${ECHO_T}pre-installed" >&6
12579 case " ${configdirs} " in
12584 if test $ok = yes; then
12585 # An in-tree tool is available and we can use it
12586 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
12587 echo "$as_me:$LINENO: result: just compiled" >&5
12588 echo "${ECHO_T}just compiled" >&6
12589 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12590 # We already found the complete path
12591 ac_dir=`dirname $RANLIB_FOR_TARGET`
12592 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12593 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12594 elif test "x$target" = "x$host"; then
12595 # We can use an host tool
12596 RANLIB_FOR_TARGET='$(RANLIB)'
12597 echo "$as_me:$LINENO: result: host tool" >&5
12598 echo "${ECHO_T}host tool" >&6
12600 # We need a cross tool
12601 echo "$as_me:$LINENO: result: pre-installed" >&5
12602 echo "${ECHO_T}pre-installed" >&6
12606 echo "$as_me:$LINENO: checking where to find the target strip" >&5
12607 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
12608 if test "x${build}" != "x${host}" ; then
12609 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12610 # We already found the complete path
12611 ac_dir=`dirname $STRIP_FOR_TARGET`
12612 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12613 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12615 # Canadian cross, just use what we found
12616 echo "$as_me:$LINENO: result: pre-installed" >&5
12617 echo "${ECHO_T}pre-installed" >&6
12621 case " ${configdirs} " in
12626 if test $ok = yes; then
12627 # An in-tree tool is available and we can use it
12628 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
12629 echo "$as_me:$LINENO: result: just compiled" >&5
12630 echo "${ECHO_T}just compiled" >&6
12631 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12632 # We already found the complete path
12633 ac_dir=`dirname $STRIP_FOR_TARGET`
12634 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12635 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12636 elif test "x$target" = "x$host"; then
12637 # We can use an host tool
12638 STRIP_FOR_TARGET='$(STRIP)'
12639 echo "$as_me:$LINENO: result: host tool" >&5
12640 echo "${ECHO_T}host tool" >&6
12642 # We need a cross tool
12643 echo "$as_me:$LINENO: result: pre-installed" >&5
12644 echo "${ECHO_T}pre-installed" >&6
12648 echo "$as_me:$LINENO: checking where to find the target windres" >&5
12649 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
12650 if test "x${build}" != "x${host}" ; then
12651 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12652 # We already found the complete path
12653 ac_dir=`dirname $WINDRES_FOR_TARGET`
12654 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12655 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12657 # Canadian cross, just use what we found
12658 echo "$as_me:$LINENO: result: pre-installed" >&5
12659 echo "${ECHO_T}pre-installed" >&6
12663 case " ${configdirs} " in
12668 if test $ok = yes; then
12669 # An in-tree tool is available and we can use it
12670 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12671 echo "$as_me:$LINENO: result: just compiled" >&5
12672 echo "${ECHO_T}just compiled" >&6
12673 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12674 # We already found the complete path
12675 ac_dir=`dirname $WINDRES_FOR_TARGET`
12676 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12677 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12678 elif test "x$target" = "x$host"; then
12679 # We can use an host tool
12680 WINDRES_FOR_TARGET='$(WINDRES)'
12681 echo "$as_me:$LINENO: result: host tool" >&5
12682 echo "${ECHO_T}host tool" >&6
12684 # We need a cross tool
12685 echo "$as_me:$LINENO: result: pre-installed" >&5
12686 echo "${ECHO_T}pre-installed" >&6
12690 echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12691 echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12692 if test "x${build}" != "x${host}" ; then
12693 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12694 # We already found the complete path
12695 ac_dir=`dirname $WINDMC_FOR_TARGET`
12696 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12697 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12699 # Canadian cross, just use what we found
12700 echo "$as_me:$LINENO: result: pre-installed" >&5
12701 echo "${ECHO_T}pre-installed" >&6
12705 case " ${configdirs} " in
12710 if test $ok = yes; then
12711 # An in-tree tool is available and we can use it
12712 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12713 echo "$as_me:$LINENO: result: just compiled" >&5
12714 echo "${ECHO_T}just compiled" >&6
12715 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12716 # We already found the complete path
12717 ac_dir=`dirname $WINDMC_FOR_TARGET`
12718 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12719 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12720 elif test "x$target" = "x$host"; then
12721 # We can use an host tool
12722 WINDMC_FOR_TARGET='$(WINDMC)'
12723 echo "$as_me:$LINENO: result: host tool" >&5
12724 echo "${ECHO_T}host tool" >&6
12726 # We need a cross tool
12727 echo "$as_me:$LINENO: result: pre-installed" >&5
12728 echo "${ECHO_T}pre-installed" >&6
12736 # Certain tools may need extra flags.
12737 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12738 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12739 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12741 # When building target libraries, except in a Canadian cross, we use
12742 # the same toolchain as the compiler we just built.
12743 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12744 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12745 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12746 if test $host = $build; then
12747 case " $configdirs " in
12749 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12750 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12751 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12760 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12761 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12762 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12763 if test "${enable_maintainer_mode+set}" = set; then
12764 enableval="$enable_maintainer_mode"
12765 USE_MAINTAINER_MODE=$enableval
12767 USE_MAINTAINER_MODE=no
12769 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12770 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12773 if test "$USE_MAINTAINER_MODE" = yes; then
12774 MAINTAINER_MODE_TRUE=
12775 MAINTAINER_MODE_FALSE='#'
12777 MAINTAINER_MODE_TRUE='#'
12778 MAINTAINER_MODE_FALSE=
12780 MAINT=$MAINTAINER_MODE_TRUE
12782 # ---------------------
12783 # GCC bootstrap support
12784 # ---------------------
12786 # Stage specific cflags for build.
12791 yes) stage1_cflags="-g -Wa,-J" ;;
12792 *) stage1_cflags="-g -J" ;;
12796 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12797 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
12798 saved_CFLAGS="$CFLAGS"
12800 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12801 CFLAGS="$CFLAGS -fkeep-inline-functions"
12802 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12803 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12804 cat >conftest.$ac_ext <<_ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12811 #if (__GNUC__ < 3) \
12812 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12813 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12814 #error http://gcc.gnu.org/PR29382
12825 rm -f conftest.$ac_objext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827 (eval $ac_compile) 2>conftest.er1
12829 grep -v '^ *+' conftest.er1 >conftest.err
12831 cat conftest.err >&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } &&
12834 { ac_try='test -z "$ac_c_werror_flag"
12835 || test ! -s conftest.err'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; } &&
12841 { ac_try='test -s conftest.$ac_objext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 echo "$as_me:$LINENO: result: yes" >&5
12848 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 echo "$as_me:$LINENO: result: no" >&5
12854 echo "${ECHO_T}no" >&6
12856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12858 CFLAGS="$saved_CFLAGS"
12863 # Enable --enable-checking in stage1 of the compiler.
12864 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12865 if test "${enable_stage1_checking+set}" = set; then
12866 enableval="$enable_stage1_checking"
12867 stage1_checking=--enable-checking=${enable_stage1_checking}
12869 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12870 stage1_checking=--enable-checking=yes,types
12872 stage1_checking=--enable-checking=$enable_checking,types
12877 # Enable -Werror in bootstrap stage2 and later.
12878 # Check whether --enable-werror or --disable-werror was given.
12879 if test "${enable_werror+set}" = set; then
12880 enableval="$enable_werror"
12883 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12889 case ${enable_werror} in
12890 yes) stage2_werror_flag="--enable-werror-always" ;;
12891 *) stage2_werror_flag="" ;;
12895 # Flags needed to enable html installing and building
12897 # Check whether --with-datarootdir or --without-datarootdir was given.
12898 if test "${with_datarootdir+set}" = set; then
12899 withval="$with_datarootdir"
12900 datarootdir="\${prefix}/${withval}"
12902 datarootdir="\${prefix}/share"
12906 # Check whether --with-docdir or --without-docdir was given.
12907 if test "${with_docdir+set}" = set; then
12908 withval="$with_docdir"
12909 docdir="\${prefix}/${withval}"
12911 docdir="\${datarootdir}/doc"
12915 # Check whether --with-pdfdir or --without-pdfdir was given.
12916 if test "${with_pdfdir+set}" = set; then
12917 withval="$with_pdfdir"
12918 pdfdir="\${prefix}/${withval}"
12920 pdfdir="\${docdir}"
12924 # Check whether --with-htmldir or --without-htmldir was given.
12925 if test "${with_htmldir+set}" = set; then
12926 withval="$with_htmldir"
12927 htmldir="\${prefix}/${withval}"
12929 htmldir="\${docdir}"
12937 # Specify what files to not compare during bootstrap.
12939 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
12941 hppa*64*-*-hpux*) ;;
12942 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
12946 ac_config_files="$ac_config_files Makefile"
12947 cat >confcache <<\_ACEOF
12948 # This file is a shell script that caches the results of configure
12949 # tests run on this system so they can be shared between configure
12950 # scripts and configure runs, see configure's option --config-cache.
12951 # It is not useful on other systems. If it contains results you don't
12952 # want to keep, you may remove or edit it.
12954 # config.status only pays attention to the cache file if you give it
12955 # the --recheck option to rerun configure.
12957 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12958 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12959 # following values.
12963 # The following way of writing the cache mishandles newlines in values,
12964 # but we know of no workaround that is simple, portable, and efficient.
12965 # So, don't put newlines in cache variables' values.
12966 # Ultrix sh set writes to stderr and can't be redirected directly,
12967 # and sets the high bit in the cache file unless we assign to the vars.
12970 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12972 # `set' does not quote correctly, so add quotes (double-quote
12973 # substitution turns \\\\ into \\, and sed turns \\ into \).
12976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12979 # `set' quotes correctly as required by POSIX, so do not add quotes.
12981 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12988 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12990 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12992 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12993 if test -w $cache_file; then
12994 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12995 cat confcache >$cache_file
12997 echo "not updating unwritable cache $cache_file"
13002 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13003 # Let make expand exec_prefix.
13004 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13006 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13007 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13008 # trailing colons and then remove the whole line if VPATH becomes empty
13009 # (actually we leave an empty line to preserve line numbers).
13010 if test "x$srcdir" = x.; then
13011 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13012 s/:*\$(srcdir):*/:/;
13013 s/:*\${srcdir}:*/:/;
13015 s/^\([^=]*=[ ]*\):*/\1/;
13021 # Transform confdefs.h into DEFS.
13022 # Protect against shell expansion while executing Makefile rules.
13023 # Protect against Makefile macro expansion.
13025 # If the first sed substitution is executed (which looks for macros that
13026 # take arguments), then we branch to the quote section. Otherwise,
13027 # look for a macro that doesn't take arguments.
13028 cat >confdef2opt.sed <<\_ACEOF
13031 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
13033 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
13037 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
13043 # We use echo to avoid assuming a particular line-breaking character.
13044 # The extra dot is to prevent the shell from consuming trailing
13045 # line-breaks from the sub-command output. A line-break within
13046 # single-quotes doesn't work because, if this script is created in a
13047 # platform that uses two characters for line-breaks (e.g., DOS), tr
13049 ac_LF_and_DOT=`echo; echo .`
13050 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
13051 rm -f confdef2opt.sed
13056 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13057 # 1. Remove the extension, and $U if already installed.
13058 ac_i=`echo "$ac_i" |
13059 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13061 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13062 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13064 LIBOBJS=$ac_libobjs
13066 LTLIBOBJS=$ac_ltlibobjs
13070 : ${CONFIG_STATUS=./config.status}
13071 ac_clean_files_save=$ac_clean_files
13072 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13073 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13074 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13075 cat >$CONFIG_STATUS <<_ACEOF
13077 # Generated by $as_me.
13078 # Run this file to recreate the current configuration.
13079 # Compiler output produced by configure, useful for debugging
13080 # configure, is in config.log if it exists.
13083 ac_cs_recheck=false
13085 SHELL=\${CONFIG_SHELL-$SHELL}
13088 cat >>$CONFIG_STATUS <<\_ACEOF
13089 ## --------------------- ##
13090 ## M4sh Initialization. ##
13091 ## --------------------- ##
13093 # Be Bourne compatible
13094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13097 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13098 # is contrary to our usage. Disable this feature.
13099 alias -g '${1+"$@"}'='"$@"'
13100 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13103 DUALCASE=1; export DUALCASE # for MKS sh
13105 # Support unset when possible.
13106 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13113 # Work around bugs in pre-3.0 UWIN ksh.
13114 $as_unset ENV MAIL MAILPATH
13121 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13122 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13123 LC_TELEPHONE LC_TIME
13125 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13126 eval $as_var=C; export $as_var
13132 # Required to use basename.
13133 if expr a : '\(a\)' >/dev/null 2>&1; then
13139 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13140 as_basename=basename
13146 # Name of the executable.
13147 as_me=`$as_basename "$0" ||
13148 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13149 X"$0" : 'X\(//\)$' \| \
13150 X"$0" : 'X\(/\)$' \| \
13151 . : '\(.\)' 2>/dev/null ||
13153 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13154 /^X\/\(\/\/\)$/{ s//\1/; q; }
13155 /^X\/\(\/\).*/{ s//\1/; q; }
13159 # PATH needs CR, and LINENO needs CR and PATH.
13160 # Avoid depending upon Character Ranges.
13161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13164 as_cr_digits='0123456789'
13165 as_cr_alnum=$as_cr_Letters$as_cr_digits
13167 # The user is always right.
13168 if test "${PATH_SEPARATOR+set}" != set; then
13169 echo "#! /bin/sh" >conf$$.sh
13170 echo "exit 0" >>conf$$.sh
13172 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13181 as_lineno_1=$LINENO
13182 as_lineno_2=$LINENO
13183 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13184 test "x$as_lineno_1" != "x$as_lineno_2" &&
13185 test "x$as_lineno_3" = "x$as_lineno_2" || {
13186 # Find who we are. Look in the path if we contain no path at all
13189 *[\\/]* ) as_myself=$0 ;;
13190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191 for as_dir in $PATH
13194 test -z "$as_dir" && as_dir=.
13195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13200 # We did not find ourselves, most probably we were run as `sh COMMAND'
13201 # in which case we are not to be found in the path.
13202 if test "x$as_myself" = x; then
13205 if test ! -f "$as_myself"; then
13206 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13207 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13208 { (exit 1); exit 1; }; }
13210 case $CONFIG_SHELL in
13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13216 test -z "$as_dir" && as_dir=.
13217 for as_base in sh bash ksh sh5; do
13220 if ("$as_dir/$as_base" -c '
13221 as_lineno_1=$LINENO
13222 as_lineno_2=$LINENO
13223 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13224 test "x$as_lineno_1" != "x$as_lineno_2" &&
13225 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13226 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13227 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13228 CONFIG_SHELL=$as_dir/$as_base
13229 export CONFIG_SHELL
13230 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13238 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13239 # uniformly replaced by the line number. The first 'sed' inserts a
13240 # line-number line before each line; the second 'sed' does the real
13241 # work. The second script uses 'N' to pair each line-number line
13242 # with the numbered line, and appends trailing '-' during
13243 # substitution so that $LINENO is not a special case at line end.
13244 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13245 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13246 sed '=' <$as_myself |
13251 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13254 s,^['$as_cr_digits']*\n,,
13255 ' >$as_me.lineno &&
13256 chmod +x $as_me.lineno ||
13257 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13258 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13259 { (exit 1); exit 1; }; }
13261 # Don't try to exec as it changes $[0], causing all sort of problems
13262 # (the dirname of $[0] is not the place where we might find the
13263 # original and so on. Autoconf is especially sensible to this).
13265 # Exit status is that of the last command.
13270 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13271 *c*,-n*) ECHO_N= ECHO_C='
13273 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13274 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13277 if expr a : '\(a\)' >/dev/null 2>&1; then
13283 rm -f conf$$ conf$$.exe conf$$.file
13285 if ln -s conf$$.file conf$$ 2>/dev/null; then
13286 # We could just check for DJGPP; but this test a) works b) is more generic
13287 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13288 if test -f conf$$.exe; then
13289 # Don't use ln at all; we don't have any links
13294 elif ln conf$$.file conf$$ 2>/dev/null; then
13299 rm -f conf$$ conf$$.exe conf$$.file
13301 if mkdir -p . 2>/dev/null; then
13304 test -d ./-p && rmdir ./-p
13308 as_executable_p="test -f"
13310 # Sed expression to map a string onto a valid CPP name.
13311 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13313 # Sed expression to map a string onto a valid variable name.
13314 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13318 # We need space, tab and new line, in precisely that order.
13328 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13329 # report actual input values of CONFIG_FILES etc. instead of their
13330 # values after options handling. Logging --version etc. is OK.
13334 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13335 ## Running $as_me. ##
13340 This file was extended by $as_me, which was
13341 generated by GNU Autoconf 2.59. Invocation command line was
13343 CONFIG_FILES = $CONFIG_FILES
13344 CONFIG_HEADERS = $CONFIG_HEADERS
13345 CONFIG_LINKS = $CONFIG_LINKS
13346 CONFIG_COMMANDS = $CONFIG_COMMANDS
13350 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13354 # Files that config.status was made for.
13355 if test -n "$ac_config_files"; then
13356 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13359 if test -n "$ac_config_headers"; then
13360 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13363 if test -n "$ac_config_links"; then
13364 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13367 if test -n "$ac_config_commands"; then
13368 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13371 cat >>$CONFIG_STATUS <<\_ACEOF
13374 \`$as_me' instantiates files from templates according to the
13375 current configuration.
13377 Usage: $0 [OPTIONS] [FILE]...
13379 -h, --help print this help, then exit
13380 -V, --version print version number, then exit
13381 -q, --quiet do not print progress messages
13382 -d, --debug don't remove temporary files
13383 --recheck update $as_me by reconfiguring in the same conditions
13384 --file=FILE[:TEMPLATE]
13385 instantiate the configuration file FILE
13387 Configuration files:
13390 Report bugs to <bug-autoconf@gnu.org>."
13393 cat >>$CONFIG_STATUS <<_ACEOF
13396 configured by $0, generated by GNU Autoconf 2.59,
13397 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13399 Copyright (C) 2003 Free Software Foundation, Inc.
13400 This config.status script is free software; the Free Software Foundation
13401 gives unlimited permission to copy, distribute and modify it."
13406 cat >>$CONFIG_STATUS <<\_ACEOF
13407 # If no file are specified by the user, then we need to provide default
13408 # value. By we need to know if files were specified by the user.
13414 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13415 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13423 *) # This is not an option, so the user has probably given explicit
13426 ac_need_defaults=false;;
13430 # Handling of the options.
13432 cat >>$CONFIG_STATUS <<\_ACEOF
13433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13435 --version | --vers* | -V )
13436 echo "$ac_cs_version"; exit 0 ;;
13438 # Conflict between --help and --header
13439 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13440 Try \`$0 --help' for more information." >&5
13441 echo "$as_me: error: ambiguous option: $1
13442 Try \`$0 --help' for more information." >&2;}
13443 { (exit 1); exit 1; }; };;
13444 --help | --hel | -h )
13445 echo "$ac_cs_usage"; exit 0 ;;
13446 --debug | --d* | -d )
13448 --file | --fil | --fi | --f )
13450 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13451 ac_need_defaults=false;;
13452 --header | --heade | --head | --hea )
13454 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13455 ac_need_defaults=false;;
13456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13460 # This is an error.
13461 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13462 Try \`$0 --help' for more information." >&5
13463 echo "$as_me: error: unrecognized option: $1
13464 Try \`$0 --help' for more information." >&2;}
13465 { (exit 1); exit 1; }; } ;;
13467 *) ac_config_targets="$ac_config_targets $1" ;;
13473 ac_configure_extra_args=
13475 if $ac_cs_silent; then
13477 ac_configure_extra_args="$ac_configure_extra_args --silent"
13481 cat >>$CONFIG_STATUS <<_ACEOF
13482 if \$ac_cs_recheck; then
13483 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13484 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13493 cat >>$CONFIG_STATUS <<\_ACEOF
13494 for ac_config_target in $ac_config_targets
13496 case "$ac_config_target" in
13497 # Handling of arguments.
13498 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13501 { (exit 1); exit 1; }; };;
13505 # If the user did not use the arguments to specify the items to instantiate,
13506 # then the envvar interface is used. Set only those that are not.
13507 # We use the long form for the default assignment because of an extremely
13508 # bizarre bug on SunOS 4.1.3.
13509 if $ac_need_defaults; then
13510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13513 # Have a temporary directory for convenience. Make it in the build tree
13514 # simply because there is no reason to put it here, and in addition,
13515 # creating and moving files from /tmp can sometimes cause problems.
13516 # Create a temporary directory, and hook for its removal unless debugging.
13519 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13520 trap '{ (exit 1); exit 1; }' 1 2 13 15
13523 # Create a (secure) tmp directory for tmp files.
13526 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13527 test -n "$tmp" && test -d "$tmp"
13530 tmp=./confstat$$-$RANDOM
13531 (umask 077 && mkdir $tmp)
13534 echo "$me: cannot create a temporary directory in ." >&2
13535 { (exit 1); exit 1; }
13540 cat >>$CONFIG_STATUS <<_ACEOF
13543 # CONFIG_FILES section.
13546 # No need to generate the scripts if there are no CONFIG_FILES.
13547 # This happens for instance when ./config.status config.h
13548 if test -n "\$CONFIG_FILES"; then
13549 # Protect against being on the right side of a sed subst in config.status.
13550 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13551 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13552 s,@SHELL@,$SHELL,;t t
13553 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13554 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13555 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13556 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13557 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13558 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13559 s,@exec_prefix@,$exec_prefix,;t t
13560 s,@prefix@,$prefix,;t t
13561 s,@program_transform_name@,$program_transform_name,;t t
13562 s,@bindir@,$bindir,;t t
13563 s,@sbindir@,$sbindir,;t t
13564 s,@libexecdir@,$libexecdir,;t t
13565 s,@datadir@,$datadir,;t t
13566 s,@sysconfdir@,$sysconfdir,;t t
13567 s,@sharedstatedir@,$sharedstatedir,;t t
13568 s,@localstatedir@,$localstatedir,;t t
13569 s,@libdir@,$libdir,;t t
13570 s,@includedir@,$includedir,;t t
13571 s,@oldincludedir@,$oldincludedir,;t t
13572 s,@infodir@,$infodir,;t t
13573 s,@mandir@,$mandir,;t t
13574 s,@build_alias@,$build_alias,;t t
13575 s,@host_alias@,$host_alias,;t t
13576 s,@target_alias@,$target_alias,;t t
13577 s,@DEFS@,$DEFS,;t t
13578 s,@ECHO_C@,$ECHO_C,;t t
13579 s,@ECHO_N@,$ECHO_N,;t t
13580 s,@ECHO_T@,$ECHO_T,;t t
13581 s,@LIBS@,$LIBS,;t t
13582 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
13583 s,@build@,$build,;t t
13584 s,@build_cpu@,$build_cpu,;t t
13585 s,@build_vendor@,$build_vendor,;t t
13586 s,@build_os@,$build_os,;t t
13587 s,@build_noncanonical@,$build_noncanonical,;t t
13588 s,@host_noncanonical@,$host_noncanonical,;t t
13589 s,@target_noncanonical@,$target_noncanonical,;t t
13590 s,@host@,$host,;t t
13591 s,@host_cpu@,$host_cpu,;t t
13592 s,@host_vendor@,$host_vendor,;t t
13593 s,@host_os@,$host_os,;t t
13594 s,@target@,$target,;t t
13595 s,@target_cpu@,$target_cpu,;t t
13596 s,@target_vendor@,$target_vendor,;t t
13597 s,@target_os@,$target_os,;t t
13598 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13599 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13600 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13602 s,@LN_S@,$LN_S,;t t
13603 s,@build_libsubdir@,$build_libsubdir,;t t
13604 s,@build_subdir@,$build_subdir,;t t
13605 s,@host_subdir@,$host_subdir,;t t
13606 s,@target_subdir@,$target_subdir,;t t
13608 s,@CFLAGS@,$CFLAGS,;t t
13609 s,@LDFLAGS@,$LDFLAGS,;t t
13610 s,@CPPFLAGS@,$CPPFLAGS,;t t
13611 s,@ac_ct_CC@,$ac_ct_CC,;t t
13612 s,@EXEEXT@,$EXEEXT,;t t
13613 s,@OBJEXT@,$OBJEXT,;t t
13615 s,@CXXFLAGS@,$CXXFLAGS,;t t
13616 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13617 s,@GNATBIND@,$GNATBIND,;t t
13618 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13619 s,@GNATMAKE@,$GNATMAKE,;t t
13620 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13621 s,@do_compare@,$do_compare,;t t
13622 s,@gmplibs@,$gmplibs,;t t
13623 s,@gmpinc@,$gmpinc,;t t
13624 s,@extra_mpfr_configure_flags@,$extra_mpfr_configure_flags,;t t
13625 s,@extra_mpc_gmp_configure_flags@,$extra_mpc_gmp_configure_flags,;t t
13626 s,@extra_mpc_mpfr_configure_flags@,$extra_mpc_mpfr_configure_flags,;t t
13627 s,@stage1_ldflags@,$stage1_ldflags,;t t
13628 s,@stage1_libs@,$stage1_libs,;t t
13629 s,@poststage1_ldflags@,$poststage1_ldflags,;t t
13630 s,@poststage1_libs@,$poststage1_libs,;t t
13631 s,@ppllibs@,$ppllibs,;t t
13632 s,@pplinc@,$pplinc,;t t
13633 s,@clooglibs@,$clooglibs,;t t
13634 s,@clooginc@,$clooginc,;t t
13635 s,@stage1_languages@,$stage1_languages,;t t
13636 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
13637 s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
13638 s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13639 s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
13640 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
13641 s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
13642 s,@tooldir@,$tooldir,;t t
13643 s,@build_tooldir@,$build_tooldir,;t t
13644 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13645 s,@GDB_TK@,$GDB_TK,;t t
13646 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13647 s,@build_configargs@,$build_configargs,;t t
13648 s,@build_configdirs@,$build_configdirs,;t t
13649 s,@host_configargs@,$host_configargs,;t t
13650 s,@configdirs@,$configdirs,;t t
13651 s,@target_configargs@,$target_configargs,;t t
13652 s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13653 s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
13654 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13655 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13656 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13657 s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13658 s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13659 s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13660 s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13661 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13662 s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13663 s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13664 s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13665 s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13666 s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
13667 s,@config_shell@,$config_shell,;t t
13668 s,@YACC@,$YACC,;t t
13669 s,@BISON@,$BISON,;t t
13672 s,@FLEX@,$FLEX,;t t
13673 s,@MAKEINFO@,$MAKEINFO,;t t
13674 s,@EXPECT@,$EXPECT,;t t
13675 s,@RUNTEST@,$RUNTEST,;t t
13678 s,@DLLTOOL@,$DLLTOOL,;t t
13680 s,@LIPO@,$LIPO,;t t
13682 s,@RANLIB@,$RANLIB,;t t
13683 s,@STRIP@,$STRIP,;t t
13684 s,@WINDRES@,$WINDRES,;t t
13685 s,@WINDMC@,$WINDMC,;t t
13686 s,@OBJCOPY@,$OBJCOPY,;t t
13687 s,@OBJDUMP@,$OBJDUMP,;t t
13688 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13689 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13690 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13691 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13692 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13693 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13694 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13695 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13696 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13697 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13698 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13699 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13700 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13701 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13702 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
13703 s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
13704 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13705 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13706 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13707 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13708 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13709 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13710 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13711 s,@MAINT@,$MAINT,;t t
13712 s,@stage1_cflags@,$stage1_cflags,;t t
13713 s,@stage1_checking@,$stage1_checking,;t t
13714 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13715 s,@datarootdir@,$datarootdir,;t t
13716 s,@docdir@,$docdir,;t t
13717 s,@pdfdir@,$pdfdir,;t t
13718 s,@htmldir@,$htmldir,;t t
13719 s,@compare_exclusions@,$compare_exclusions,;t t
13720 s,@LIBOBJS@,$LIBOBJS,;t t
13721 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13722 /@serialization_dependencies@/r $serialization_dependencies
13723 s,@serialization_dependencies@,,;t t
13724 /@host_makefile_frag@/r $host_makefile_frag
13725 s,@host_makefile_frag@,,;t t
13726 /@target_makefile_frag@/r $target_makefile_frag
13727 s,@target_makefile_frag@,,;t t
13728 /@alphaieee_frag@/r $alphaieee_frag
13729 s,@alphaieee_frag@,,;t t
13730 /@ospace_frag@/r $ospace_frag
13731 s,@ospace_frag@,,;t t
13736 cat >>$CONFIG_STATUS <<\_ACEOF
13737 # Split the substitutions into bite-sized pieces for seds with
13738 # small command number limits, like on Digital OSF/1 and HP-UX.
13739 ac_max_sed_lines=48
13740 ac_sed_frag=1 # Number of current file.
13741 ac_beg=1 # First line for current file.
13742 ac_end=$ac_max_sed_lines # Line after last line for current file.
13745 while $ac_more_lines; do
13746 if test $ac_beg -gt 1; then
13747 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13749 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13751 if test ! -s $tmp/subs.frag; then
13752 ac_more_lines=false
13754 # The purpose of the label and of the branching condition is to
13755 # speed up the sed processing (if there are no `@' at all, there
13756 # is no need to browse any of the substitutions).
13757 # These are the two extra sed commands mentioned above.
13759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13760 if test -z "$ac_sed_cmds"; then
13761 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13763 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13765 ac_sed_frag=`expr $ac_sed_frag + 1`
13767 ac_end=`expr $ac_end + $ac_max_sed_lines`
13770 if test -z "$ac_sed_cmds"; then
13773 fi # test -n "$CONFIG_FILES"
13776 cat >>$CONFIG_STATUS <<\_ACEOF
13777 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13778 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13780 - | *:- | *:-:* ) # input from stdin
13782 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13783 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13784 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13785 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13786 * ) ac_file_in=$ac_file.in ;;
13789 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13790 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13791 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13792 X"$ac_file" : 'X\(//\)[^/]' \| \
13793 X"$ac_file" : 'X\(//\)$' \| \
13794 X"$ac_file" : 'X\(/\)' \| \
13795 . : '\(.\)' 2>/dev/null ||
13797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13798 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13799 /^X\(\/\/\)$/{ s//\1/; q; }
13800 /^X\(\/\).*/{ s//\1/; q; }
13802 { if $as_mkdir_p; then
13807 while test ! -d "$as_dir"; do
13808 as_dirs="$as_dir $as_dirs"
13809 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13811 X"$as_dir" : 'X\(//\)[^/]' \| \
13812 X"$as_dir" : 'X\(//\)$' \| \
13813 X"$as_dir" : 'X\(/\)' \| \
13814 . : '\(.\)' 2>/dev/null ||
13816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13818 /^X\(\/\/\)$/{ s//\1/; q; }
13819 /^X\(\/\).*/{ s//\1/; q; }
13822 test ! -n "$as_dirs" || mkdir $as_dirs
13823 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13824 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13825 { (exit 1); exit 1; }; }; }
13829 if test "$ac_dir" != .; then
13830 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13831 # A "../" for each directory in $ac_dir_suffix.
13832 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13834 ac_dir_suffix= ac_top_builddir=
13838 .) # No --srcdir option. We are building in place.
13840 if test -z "$ac_top_builddir"; then
13843 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13845 [\\/]* | ?:[\\/]* ) # Absolute path.
13846 ac_srcdir=$srcdir$ac_dir_suffix;
13847 ac_top_srcdir=$srcdir ;;
13848 *) # Relative path.
13849 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13850 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13853 # Do not use `cd foo && pwd` to compute absolute paths, because
13854 # the directories may not exist.
13856 .) ac_abs_builddir="$ac_dir";;
13859 .) ac_abs_builddir=`pwd`;;
13860 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13861 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13864 case $ac_abs_builddir in
13865 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13867 case ${ac_top_builddir}. in
13868 .) ac_abs_top_builddir=$ac_abs_builddir;;
13869 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13870 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13873 case $ac_abs_builddir in
13874 .) ac_abs_srcdir=$ac_srcdir;;
13877 .) ac_abs_srcdir=$ac_abs_builddir;;
13878 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13879 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13882 case $ac_abs_builddir in
13883 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13885 case $ac_top_srcdir in
13886 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13887 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13888 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13894 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13895 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13898 if test x"$ac_file" != x-; then
13899 { echo "$as_me:$LINENO: creating $ac_file" >&5
13900 echo "$as_me: creating $ac_file" >&6;}
13903 # Let's still pretend it is `configure' which instantiates (i.e., don't
13904 # use $as_me), people would be surprised to read:
13905 # /* config.h. Generated by config.status. */
13906 if test x"$ac_file" = x-; then
13909 configure_input="$ac_file. "
13911 configure_input=$configure_input"Generated from `echo $ac_file_in |
13912 sed 's,.*/,,'` by configure."
13914 # First look for the input files in the build tree, otherwise in the
13916 ac_file_inputs=`IFS=:
13917 for f in $ac_file_in; do
13919 -) echo $tmp/stdin ;;
13921 # Absolute (can't be DOS-style, as IFS=:)
13922 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13923 echo "$as_me: error: cannot find input file: $f" >&2;}
13924 { (exit 1); exit 1; }; }
13927 if test -f "$f"; then
13930 elif test -f "$srcdir/$f"; then
13935 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13936 echo "$as_me: error: cannot find input file: $f" >&2;}
13937 { (exit 1); exit 1; }; }
13940 done` || { (exit 1); exit 1; }
13942 cat >>$CONFIG_STATUS <<_ACEOF
13946 cat >>$CONFIG_STATUS <<\_ACEOF
13948 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13949 s,@configure_input@,$configure_input,;t t
13950 s,@srcdir@,$ac_srcdir,;t t
13951 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13952 s,@top_srcdir@,$ac_top_srcdir,;t t
13953 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13954 s,@builddir@,$ac_builddir,;t t
13955 s,@abs_builddir@,$ac_abs_builddir,;t t
13956 s,@top_builddir@,$ac_top_builddir,;t t
13957 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13958 s,@INSTALL@,$ac_INSTALL,;t t
13959 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13961 if test x"$ac_file" != x-; then
13962 mv $tmp/out $ac_file
13971 cat >>$CONFIG_STATUS <<\_ACEOF
13973 { (exit 0); exit 0; }
13975 chmod +x $CONFIG_STATUS
13976 ac_clean_files=$ac_clean_files_save
13979 # configure is writing to config.log, and then calls config.status.
13980 # config.status does its own redirection, appending to config.log.
13981 # Unfortunately, on DOS this fails, as config.log is still kept open
13982 # by configure, so config.status won't be able to write to it; its
13983 # output is simply discarded. So we exec the FD to /dev/null,
13984 # effectively closing config.log, so it can be properly (re)opened and
13985 # appended to by config.status. When coming back to configure, we
13986 # need to make the FD available again.
13987 if test "$no_create" != yes; then
13989 ac_config_status_args=
13990 test "$silent" = yes &&
13991 ac_config_status_args="$ac_config_status_args --quiet"
13993 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13995 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13996 # would make configure fail if this is the last instruction.
13997 $ac_cs_success || { (exit 1); exit 1; }