]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
./:
[thirdparty/gcc.git] / configure
CommitLineData
71ab34df 1#! /bin/sh
71ab34df 2# Guess values for system-dependent variables and create Makefiles.
5084f823 3# Generated by GNU Autoconf 2.59.
71ab34df 4#
5084f823 5# Copyright (C) 2003 Free Software Foundation, Inc.
71ab34df 6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
b30fcfae 8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
5084f823 12# Be Bourne compatible
b30fcfae 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
5084f823 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
b30fcfae 21fi
5084f823 22DUALCASE=1; export DUALCASE # for MKS sh
b30fcfae 23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
5084f823 33$as_unset ENV MAIL MAILPATH
b30fcfae 34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
5084f823 47 $as_unset $as_var
b30fcfae 48 fi
49done
50
51# Required to use basename.
5084f823 52if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 53 as_expr=expr
54else
55 as_expr=false
56fi
57
5084f823 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
b30fcfae 59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
5084f823 66as_me=`$as_basename "$0" ||
b30fcfae 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
5084f823 69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
b30fcfae 71echo X/"$0" |
5084f823 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
b30fcfae 76
b30fcfae 77
5084f823 78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
570af75a 85
5084f823 86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
570af75a 97fi
98
570af75a 99
5084f823 100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
570af75a 116
5084f823 117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
b30fcfae 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
5084f823 135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
b30fcfae 137 /*)
5084f823 138 if ("$as_dir/$as_base" -c '
570af75a 139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
5084f823 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
570af75a 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
5084f823 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
b30fcfae 155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
5084f823 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.
b30fcfae 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5084f823 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
b30fcfae 165 sed '
166 N
5084f823 167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
b30fcfae 170 t loop
5084f823 171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
b30fcfae 173 ' >$as_me.lineno &&
5084f823 174 chmod +x $as_me.lineno ||
b30fcfae 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
5084f823 180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
b30fcfae 182 # Exit status is that of the last command.
183 exit
184}
185
186
5084f823 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
b30fcfae 192esac
193
5084f823 194if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 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
b30fcfae 207 as_ln_s='cp -p'
5084f823 208 else
209 as_ln_s='ln -s'
210 fi
b30fcfae 211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
5084f823 216rm -f conf$$ conf$$.exe conf$$.file
b30fcfae 217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
5084f823 225as_executable_p="test -f"
a83ffacf 226
b30fcfae 227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
5084f823 234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
b30fcfae 242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
5084f823 249exec 6>&1
250
b30fcfae 251#
252# Initializations.
253#
71ab34df 254ac_default_prefix=/usr/local
b30fcfae 255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
5084f823 262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
b30fcfae 267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
7ab76cec 275ac_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 LIBOBJS LTLIBOBJS'
5084f823 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
5b2c7553 277ac_pwd=`pwd`
71ab34df 278
279# Initialize some variables set by options.
b30fcfae 280ac_init_help=
281ac_init_version=false
71ab34df 282# The variables have the same names as the options, with
283# dashes changed to underlines.
b30fcfae 284cache_file=/dev/null
71ab34df 285exec_prefix=NONE
71ab34df 286no_create=
71ab34df 287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
71ab34df 295verbose=
296x_includes=NONE
297x_libraries=NONE
b30fcfae 298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
71ab34df 304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
5084f823 307datadir='${prefix}/share'
71ab34df 308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
5084f823 311libdir='${exec_prefix}/lib'
71ab34df 312includedir='${prefix}/include'
313oldincludedir='/usr/include'
5084f823 314infodir='${prefix}/info'
315mandir='${prefix}/man'
a8298541 316
71ab34df 317ac_prev=
318for ac_option
319do
71ab34df 320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
5084f823 322 eval "$ac_prev=\$ac_option"
71ab34df 323 ac_prev=
324 continue
325 fi
a8298541 326
5084f823 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
71ab34df 328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
5084f823 331 case $ac_option in
71ab34df 332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b30fcfae 336 bindir=$ac_optarg ;;
71ab34df 337
338 -build | --build | --buil | --bui | --bu)
b30fcfae 339 ac_prev=build_alias ;;
71ab34df 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b30fcfae 341 build_alias=$ac_optarg ;;
71ab34df 342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b30fcfae 348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
71ab34df 352
5084f823 353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
71ab34df 354 ac_prev=datadir ;;
5084f823 355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
b30fcfae 357 datadir=$ac_optarg ;;
71ab34df 358
359 -disable-* | --disable-*)
b30fcfae 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
71ab34df 361 # Reject names that are not valid shell variable names.
5084f823 362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
b30fcfae 363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
5084f823 365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
71ab34df 367
368 -enable-* | --enable-*)
b30fcfae 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
71ab34df 370 # Reject names that are not valid shell variable names.
5084f823 371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
b30fcfae 372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
5084f823 374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
71ab34df 380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
b30fcfae 388 exec_prefix=$ac_optarg ;;
71ab34df 389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
b30fcfae 394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
71ab34df 400
401 -host | --host | --hos | --ho)
b30fcfae 402 ac_prev=host_alias ;;
71ab34df 403 -host=* | --host=* | --hos=* | --ho=*)
b30fcfae 404 host_alias=$ac_optarg ;;
71ab34df 405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
b30fcfae 411 includedir=$ac_optarg ;;
71ab34df 412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b30fcfae 416 infodir=$ac_optarg ;;
71ab34df 417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b30fcfae 421 libdir=$ac_optarg ;;
71ab34df 422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
b30fcfae 428 libexecdir=$ac_optarg ;;
71ab34df 429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
5084f823 431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
71ab34df 433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5084f823 435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b30fcfae 437 localstatedir=$ac_optarg ;;
71ab34df 438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b30fcfae 442 mandir=$ac_optarg ;;
71ab34df 443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b30fcfae 449 | --no-cr | --no-c | -n)
71ab34df 450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b30fcfae 463 oldincludedir=$ac_optarg ;;
71ab34df 464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b30fcfae 468 prefix=$ac_optarg ;;
71ab34df 469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b30fcfae 475 program_prefix=$ac_optarg ;;
71ab34df 476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b30fcfae 482 program_suffix=$ac_optarg ;;
71ab34df 483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
b30fcfae 499 program_transform_name=$ac_optarg ;;
71ab34df 500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
b30fcfae 509 sbindir=$ac_optarg ;;
71ab34df 510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
b30fcfae 520 sharedstatedir=$ac_optarg ;;
71ab34df 521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
b30fcfae 525 site=$ac_optarg ;;
71ab34df 526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b30fcfae 530 srcdir=$ac_optarg ;;
71ab34df 531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b30fcfae 537 sysconfdir=$ac_optarg ;;
71ab34df 538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
b30fcfae 540 ac_prev=target_alias ;;
71ab34df 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b30fcfae 542 target_alias=$ac_optarg ;;
71ab34df 543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
b30fcfae 547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
71ab34df 549
550 -with-* | --with-*)
b30fcfae 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
71ab34df 552 # Reject names that are not valid shell variable names.
5084f823 553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
b30fcfae 554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
5084f823 556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
71ab34df 562
563 -without-* | --without-*)
b30fcfae 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
71ab34df 565 # Reject names that are not valid shell variable names.
5084f823 566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
b30fcfae 567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
5084f823 569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
71ab34df 571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b30fcfae 581 x_includes=$ac_optarg ;;
71ab34df 582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b30fcfae 588 x_libraries=$ac_optarg ;;
71ab34df 589
b30fcfae 590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
71ab34df 593 ;;
594
b30fcfae 595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
5084f823 601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
b30fcfae 603 export $ac_envvar ;;
604
71ab34df 605 *)
b30fcfae 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}
71ab34df 611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
b30fcfae 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; }; }
ae48753c 620fi
ae48753c 621
5084f823 622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
71ab34df 624do
5084f823 625 eval ac_val=$`echo $ac_var`
b30fcfae 626 case $ac_val in
5084f823 627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
71ab34df 642 esac
643done
644
b30fcfae 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.
648build=$build_alias
649host=$host_alias
650target=$target_alias
a83ffacf 651
b30fcfae 652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
71ab34df 667
71ab34df 668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
5084f823 672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
b30fcfae 674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
5084f823 677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
b30fcfae 679echo X"$0" |
5084f823 680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
71ab34df 685 srcdir=$ac_confdir
5084f823 686 if test ! -r $srcdir/$ac_unique_file; then
71ab34df 687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
5084f823 692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
b30fcfae 698 { (exit 1); exit 1; }; }
5084f823 699 fi
b30fcfae 700fi
5084f823 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
b30fcfae 703 { (exit 1); exit 1; }; }
5084f823 704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
d2d2630b 717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
5084f823 719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
75d6a0a9 779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
5084f823 783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
75d6a0a9 851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
b30fcfae 855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
5084f823 883_ACEOF
884
885 cat <<_ACEOF
b30fcfae 886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine 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]
5084f823 903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
b30fcfae 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]
5084f823 910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
b30fcfae 912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
926fi
927
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
3d47fcf5 935 --enable-gold use gold instead of ld
09c2d953 936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
7ab76cec 938 --enable-build-with-cxx build with C++ compiler instead of C compiler
5362e323 939 --disable-ppl-version-check disable check for PPL version
940 --disable-cloog-version-check disable check for CLooG version
09c2d953 941 --enable-stage1-languages[=all] choose additional languages to build during
b30fcfae 942 stage1. Mostly useful for compiler development.
09c2d953 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
b30fcfae 948 sub-packages for the host, target or build
09c2d953 949 machine, or all sub-packages
b30fcfae 950 --enable-maintainer-mode enable make rules and dependencies not useful
951 (and sometimes confusing) to the casual installer
09c2d953 952 --enable-stage1-checking[=all] choose additional checking for stage1
953 of the compiler
b30fcfae 954 --enable-werror enable -Werror in bootstrap stage2 and later
955
956Optional Packages:
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
7601a55c 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
09c2d953 966 --with-mpfr-dir=PATH this option has been REMOVED
967 --with-mpfr=PATH specify prefix directory for installed MPFR package.
b30fcfae 968 Equivalent to --with-mpfr-include=PATH/include
969 plus --with-mpfr-lib=PATH/lib
970 --with-mpfr-include=PATH
09c2d953 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.
b30fcfae 975 Equivalent to --with-gmp-include=PATH/include
976 plus --with-gmp-lib=PATH/lib
09c2d953 977 --with-gmp-include=PATH specify directory for installed GMP include files
978 --with-gmp-lib=PATH specify directory for the installed GMP library
5bc96548 979 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
980 when linking with PPL
7ab76cec 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
985if test "$withval" = "no" -o "$withval" = "yes"; then
986 poststage1_libs=
987 else
988 poststage1_libs=$withval
989 fi
255b6be7 990 --with-ppl=PATH Specify prefix directory for the installed PPL package
991 Equivalent to --with-ppl-include=PATH/include
992 plus --with-ppl-lib=PATH/lib
993 --with-ppl-include=PATH Specify directory for installed PPL include files
994 --with-ppl-lib=PATH Specify the directory for the installed PPL library
5362e323 995 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
255b6be7 996 Equivalent to --with-cloog-include=PATH/include
997 plus --with-cloog-lib=PATH/lib
5362e323 998 --with-cloog-include=PATH Specify directory for installed CLooG include files
999 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
09c2d953 1000 --with-build-sysroot=SYSROOT
b30fcfae 1001 use sysroot as the system root during the build
5f1f2de5 1002 --with-debug-prefix-map='A=B C=D ...'
1003 map A to B, C to D ... in debug information
09c2d953 1004 --with-build-time-tools=PATH
b30fcfae 1005 use given path to find target tools during the build
09c2d953 1006 --with-datarootdir use datarootdir as the data root directory.
1007 --with-docdir install documentation in this directory.
1008 --with-pdfdir install pdf in this directory.
1009 --with-htmldir install html in this directory.
b30fcfae 1010
1011Some influential environment variables:
1012 CC C compiler command
1013 CFLAGS C compiler flags
1014 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1015 nonstandard directory <lib dir>
5084f823 1016 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1017 headers in a nonstandard directory <include dir>
eae5b2bc 1018 CXX C++ compiler command
1019 CXXFLAGS C++ compiler flags
95a05732 1020 AR AR for the host
1021 AS AS for the host
1022 DLLTOOL DLLTOOL for the host
1023 LD LD for the host
1024 LIPO LIPO for the host
1025 NM NM for the host
1026 RANLIB RANLIB for the host
1027 STRIP STRIP for the host
1028 WINDRES WINDRES for the host
75d6a0a9 1029 WINDMC WINDMC for the host
95a05732 1030 OBJCOPY OBJCOPY for the host
1031 OBJDUMP OBJDUMP for the host
1032 CC_FOR_TARGET
1033 CC for the target
1034 CXX_FOR_TARGET
1035 CXX for the target
1036 GCC_FOR_TARGET
1037 GCC for the target
1038 GCJ_FOR_TARGET
1039 GCJ for the target
1040 GFORTRAN_FOR_TARGET
1041 GFORTRAN for the target
1042 AR_FOR_TARGET
1043 AR for the target
1044 AS_FOR_TARGET
1045 AS for the target
1046 DLLTOOL_FOR_TARGET
1047 DLLTOOL for the target
1048 LD_FOR_TARGET
1049 LD for the target
1050 LIPO_FOR_TARGET
1051 LIPO for the target
1052 NM_FOR_TARGET
1053 NM for the target
1054 OBJDUMP_FOR_TARGET
1055 OBJDUMP for the target
1056 RANLIB_FOR_TARGET
1057 RANLIB for the target
1058 STRIP_FOR_TARGET
1059 STRIP for the target
1060 WINDRES_FOR_TARGET
1061 WINDRES for the target
75d6a0a9 1062 WINDMC_FOR_TARGET
1063 WINDMC for the target
b30fcfae 1064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
1068_ACEOF
1069fi
1070
1071if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
5084f823 1073 ac_popdir=`pwd`
b30fcfae 1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5084f823 1075 test -d $ac_dir || continue
b30fcfae 1076 ac_builddir=.
1077
5084f823 1078if test "$ac_dir" != .; then
b30fcfae 1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5084f823 1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082else
1083 ac_dir_suffix= ac_top_builddir=
1084fi
b30fcfae 1085
1086case $srcdir in
5084f823 1087 .) # No --srcdir option. We are building in place.
b30fcfae 1088 ac_srcdir=.
5084f823 1089 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=.
1091 else
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093 fi ;;
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
b30fcfae 1095 ac_srcdir=$srcdir$ac_dir_suffix;
5084f823 1096 ac_top_srcdir=$srcdir ;;
1097 *) # Relative path.
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100esac
1101
1102# Do not use `cd foo && pwd` to compute absolute paths, because
1103# the directories may not exist.
1104case `pwd` in
1105.) ac_abs_builddir="$ac_dir";;
1106*)
1107 case "$ac_dir" in
1108 .) ac_abs_builddir=`pwd`;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115*)
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_srcdir=$ac_srcdir;;
1124*)
1125 case $ac_srcdir in
1126 .) ac_abs_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133*)
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138 esac;;
b30fcfae 1139esac
5084f823 1140
1141 cd $ac_dir
1142 # Check for guested configure; otherwise get Cygnus style configure.
1143 if test -f $ac_srcdir/configure.gnu; then
1144 echo
1145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
1147 echo
1148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
1150 test -f $ac_srcdir/configure.in; then
1151 echo
1152 $ac_configure --help
b30fcfae 1153 else
1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
5084f823 1155 fi
1156 cd $ac_popdir
b30fcfae 1157 done
1158fi
1159
5084f823 1160test -n "$ac_init_help" && exit 0
b30fcfae 1161if $ac_init_version; then
1162 cat <<\_ACEOF
1163
5084f823 1164Copyright (C) 2003 Free Software Foundation, Inc.
b30fcfae 1165This configure script is free software; the Free Software Foundation
1166gives unlimited permission to copy, distribute and modify it.
1167_ACEOF
5084f823 1168 exit 0
a83ffacf 1169fi
5084f823 1170exec 5>config.log
1171cat >&5 <<_ACEOF
b30fcfae 1172This file contains any messages produced by compilers while
1173running configure, to aid debugging if configure makes a mistake.
1174
1175It was created by $as_me, which was
5084f823 1176generated by GNU Autoconf 2.59. Invocation command line was
b30fcfae 1177
1178 $ $0 $@
1179
1180_ACEOF
1181{
1182cat <<_ASUNAME
1183## --------- ##
1184## Platform. ##
1185## --------- ##
1186
1187hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
1193/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1195
1196/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1197/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1198/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5084f823 1199hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
b30fcfae 1200/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1201/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1202/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1203
1204_ASUNAME
1205
1206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207for as_dir in $PATH
1208do
1209 IFS=$as_save_IFS
1210 test -z "$as_dir" && as_dir=.
1211 echo "PATH: $as_dir"
1212done
1213
1214} >&5
1215
1216cat >&5 <<_ACEOF
1217
1218
1219## ----------- ##
1220## Core tests. ##
1221## ----------- ##
1222
1223_ACEOF
1224
1225
1226# Keep a trace of the command line.
1227# Strip out --no-create and --no-recursion so they do not pile up.
1228# Strip out --silent because we don't want to record it for future runs.
1229# Also quote any args containing shell meta-characters.
1230# Make two passes to allow for proper duplicate-argument suppression.
1231ac_configure_args=
1232ac_configure_args0=
1233ac_configure_args1=
5084f823 1234ac_sep=
b30fcfae 1235ac_must_keep_next=false
1236for ac_pass in 1 2
1237do
1238 for ac_arg
1239 do
1240 case $ac_arg in
1241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 continue ;;
5084f823 1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
b30fcfae 1246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 esac
1248 case $ac_pass in
1249 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250 2)
1251 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252 if test $ac_must_keep_next = true; then
1253 ac_must_keep_next=false # Got value, back to normal.
1254 else
1255 case $ac_arg in
1256 *=* | --config-cache | -C | -disable-* | --disable-* \
1257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259 | -with-* | --with-* | -without-* | --without-* | --x)
1260 case "$ac_configure_args0 " in
1261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 esac
1263 ;;
1264 -* ) ac_must_keep_next=true ;;
1265 esac
1266 fi
5084f823 1267 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268 # Get rid of the leading space.
1269 ac_sep=" "
b30fcfae 1270 ;;
1271 esac
1272 done
1273done
1274$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276
1277# When interrupted or exit'd, cleanup temporary files, and complete
1278# config.log. We remove comments because anyway the quotes in there
1279# would cause problems or look ugly.
5084f823 1280# WARNING: Be sure not to use single quotes in there, as some shells,
1281# such as our DU 5.0 friend, will then `close' the trap.
b30fcfae 1282trap 'exit_status=$?
1283 # Save into config.log some information that might help in debugging.
1284 {
1285 echo
1286
1287 cat <<\_ASBOX
1288## ---------------- ##
1289## Cache variables. ##
1290## ---------------- ##
1291_ASBOX
1292 echo
1293 # The following way of writing the cache mishandles newlines in values,
5084f823 1294{
b30fcfae 1295 (set) 2>&1 |
5084f823 1296 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 *ac_space=\ *)
b30fcfae 1298 sed -n \
5084f823 1299 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301 ;;
b30fcfae 1302 *)
5084f823 1303 sed -n \
1304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
b30fcfae 1305 ;;
5084f823 1306 esac;
1307}
b30fcfae 1308 echo
1309
1310 cat <<\_ASBOX
1311## ----------------- ##
1312## Output variables. ##
1313## ----------------- ##
1314_ASBOX
1315 echo
1316 for ac_var in $ac_subst_vars
1317 do
5084f823 1318 eval ac_val=$`echo $ac_var`
1319 echo "$ac_var='"'"'$ac_val'"'"'"
b30fcfae 1320 done | sort
1321 echo
1322
1323 if test -n "$ac_subst_files"; then
1324 cat <<\_ASBOX
5084f823 1325## ------------- ##
1326## Output files. ##
1327## ------------- ##
b30fcfae 1328_ASBOX
1329 echo
1330 for ac_var in $ac_subst_files
1331 do
5084f823 1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
b30fcfae 1334 done | sort
1335 echo
1336 fi
1337
1338 if test -s confdefs.h; then
1339 cat <<\_ASBOX
1340## ----------- ##
1341## confdefs.h. ##
1342## ----------- ##
1343_ASBOX
1344 echo
5084f823 1345 sed "/^$/d" confdefs.h | sort
b30fcfae 1346 echo
1347 fi
1348 test "$ac_signal" != 0 &&
1349 echo "$as_me: caught signal $ac_signal"
1350 echo "$as_me: exit $exit_status"
1351 } >&5
5084f823 1352 rm -f core *.core &&
1353 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
b30fcfae 1354 exit $exit_status
5084f823 1355 ' 0
b30fcfae 1356for ac_signal in 1 2 13 15; do
1357 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358done
1359ac_signal=0
1360
1361# confdefs.h avoids OS command line length limits that DEFS can exceed.
5084f823 1362rm -rf conftest* confdefs.h
1363# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364echo >confdefs.h
b30fcfae 1365
1366# Predefined preprocessor variables.
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_NAME "$PACKAGE_NAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_VERSION "$PACKAGE_VERSION"
1380_ACEOF
a83ffacf 1381
b30fcfae 1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_STRING "$PACKAGE_STRING"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390_ACEOF
1391
1392
1393# Let the site file select an alternate cache file if it wants to.
71ab34df 1394# Prefer explicitly selected file to automatically selected ones.
5084f823 1395if test -z "$CONFIG_SITE"; then
1396 if test "x$prefix" != xNONE; then
1397 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398 else
1399 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 fi
71ab34df 1401fi
5084f823 1402for ac_site_file in $CONFIG_SITE; do
71ab34df 1403 if test -r "$ac_site_file"; then
b30fcfae 1404 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405echo "$as_me: loading site script $ac_site_file" >&6;}
1406 sed 's/^/| /' "$ac_site_file" >&5
71ab34df 1407 . "$ac_site_file"
1408 fi
1409done
1410
1411if test -r "$cache_file"; then
b30fcfae 1412 # Some versions of bash will fail to source /dev/null (special
1413 # files actually), so we avoid doing that.
1414 if test -f "$cache_file"; then
1415 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416echo "$as_me: loading cache $cache_file" >&6;}
1417 case $cache_file in
5084f823 1418 [\\/]* | ?:[\\/]* ) . $cache_file;;
1419 *) . ./$cache_file;;
b30fcfae 1420 esac
1421 fi
71ab34df 1422else
b30fcfae 1423 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424echo "$as_me: creating cache $cache_file" >&6;}
1425 >$cache_file
1426fi
1427
1428# Check that the precious variables saved in the cache have kept the same
1429# value.
1430ac_cache_corrupted=false
5084f823 1431for ac_var in `(set) 2>&1 |
1432 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
b30fcfae 1433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434 eval ac_new_set=\$ac_env_${ac_var}_set
5084f823 1435 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436 eval ac_new_val="\$ac_env_${ac_var}_value"
b30fcfae 1437 case $ac_old_set,$ac_new_set in
1438 set,)
1439 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441 ac_cache_corrupted=: ;;
1442 ,set)
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1446 ,);;
1447 *)
1448 if test "x$ac_old_val" != "x$ac_new_val"; then
f0cb9b36 1449 # differences in whitespace do not lead to failure.
1450 ac_old_val_w=`echo x $ac_old_val`
1451 ac_new_val_w=`echo x $ac_new_val`
1452 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
b30fcfae 1454echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
f0cb9b36 1455 ac_cache_corrupted=:
1456 else
1457 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1458echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1459 eval $ac_var=\$ac_old_val
1460 fi
1461 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1462echo "$as_me: former value: \`$ac_old_val'" >&2;}
1463 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1464echo "$as_me: current value: \`$ac_new_val'" >&2;}
b30fcfae 1465 fi;;
1466 esac
1467 # Pass precious variables to config.status.
1468 if test "$ac_new_set" = set; then
1469 case $ac_new_val in
5084f823 1470 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1471 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 1472 *) ac_arg=$ac_var=$ac_new_val ;;
1473 esac
1474 case " $ac_configure_args " in
1475 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1476 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477 esac
1478 fi
1479done
1480if $ac_cache_corrupted; then
5b2c7553 1481 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1482echo "$as_me: error: in \`$ac_pwd':" >&2;}
b30fcfae 1483 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1484echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1485 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1486echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1487 { (exit 1); exit 1; }; }
71ab34df 1488fi
1489
5084f823 1490ac_ext=c
1491ac_cpp='$CPP $CPPFLAGS'
1492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1494ac_compiler_gnu=$ac_cv_c_compiler_gnu
1495
b30fcfae 1496
1497
1498
1499
71ab34df 1500
1501
d65dd253 1502
b30fcfae 1503
1504
1505
1506
1507
1508
1509
1510
1511
5b2c7553 1512
1513
1514
b30fcfae 1515
1516
1517
4e8a889d 1518
1519progname=$0
1520# if PWD already has a value, it is probably wrong.
1521if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1522
1523# Export original configure arguments for use by sub-configures.
1524# Quote arguments with shell meta charatcers.
1525TOPLEVEL_CONFIGURE_ARGUMENTS=
1526set -- "$progname" "$@"
1527for ac_arg
1528do
1529 case "$ac_arg" in
1530 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1531 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1532 # if the argument is of the form -foo=baz, quote the baz part only
1533 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1534 *) ;;
1535 esac
1536 # Add the quoted argument to the list.
1537 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1538done
1539if test "$silent" = yes; then
1540 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1541fi
1542# Remove the initial space we just introduced and, as these will be
1543# expanded by make, quote '$'.
1544TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1545
b30fcfae 1546
1547# Find the build, host, and target systems.
71ab34df 1548ac_aux_dir=
5084f823 1549for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1550 if test -f $ac_dir/install-sh; then
71ab34df 1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install-sh -c"
1553 break
5084f823 1554 elif test -f $ac_dir/install.sh; then
71ab34df 1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/install.sh -c"
1557 break
5084f823 1558 elif test -f $ac_dir/shtool; then
b30fcfae 1559 ac_aux_dir=$ac_dir
1560 ac_install_sh="$ac_aux_dir/shtool install -c"
1561 break
71ab34df 1562 fi
1563done
1564if test -z "$ac_aux_dir"; then
5084f823 1565 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1566echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
b30fcfae 1567 { (exit 1); exit 1; }; }
71ab34df 1568fi
5084f823 1569ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1570ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1571ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
71ab34df 1572
b30fcfae 1573# Make sure we can run config.sub.
5084f823 1574$ac_config_sub sun4 >/dev/null 2>&1 ||
1575 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1576echo "$as_me: error: cannot run $ac_config_sub" >&2;}
b30fcfae 1577 { (exit 1); exit 1; }; }
1578
5084f823 1579echo "$as_me:$LINENO: checking build system type" >&5
1580echo $ECHO_N "checking build system type... $ECHO_C" >&6
b30fcfae 1581if test "${ac_cv_build+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
5084f823 1584 ac_cv_build_alias=$build_alias
1585test -z "$ac_cv_build_alias" &&
1586 ac_cv_build_alias=`$ac_config_guess`
1587test -z "$ac_cv_build_alias" &&
b30fcfae 1588 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1589echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1590 { (exit 1); exit 1; }; }
5084f823 1591ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1592 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1593echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
b30fcfae 1594 { (exit 1); exit 1; }; }
1595
1596fi
5084f823 1597echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1598echo "${ECHO_T}$ac_cv_build" >&6
b30fcfae 1599build=$ac_cv_build
5084f823 1600build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1601build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1602build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
71ab34df 1603
71ab34df 1604
b30fcfae 1605 case ${build_alias} in
1606 "") build_noncanonical=${build} ;;
1607 *) build_noncanonical=${build_alias} ;;
ae48753c 1608esac
1609
1610
ae48753c 1611
b30fcfae 1612 case ${host_alias} in
1613 "") host_noncanonical=${build_noncanonical} ;;
1614 *) host_noncanonical=${host_alias} ;;
ae48753c 1615esac
1616
ae48753c 1617
b30fcfae 1618
1619 case ${target_alias} in
1620 "") target_noncanonical=${host_noncanonical} ;;
1621 *) target_noncanonical=${target_alias} ;;
ae48753c 1622esac
1623
ae48753c 1624
b30fcfae 1625
1626
1627test "$host_noncanonical" = "$target_noncanonical" &&
71ab34df 1628 test "$program_prefix$program_suffix$program_transform_name" = \
1629 NONENONEs,x,x, &&
b30fcfae 1630 program_transform_name=s,y,y,
ae48753c 1631
5084f823 1632echo "$as_me:$LINENO: checking host system type" >&5
1633echo $ECHO_N "checking host system type... $ECHO_C" >&6
b30fcfae 1634if test "${ac_cv_host+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
ae48753c 1636else
5084f823 1637 ac_cv_host_alias=$host_alias
1638test -z "$ac_cv_host_alias" &&
1639 ac_cv_host_alias=$ac_cv_build_alias
1640ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1642echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
b30fcfae 1643 { (exit 1); exit 1; }; }
1644
ae48753c 1645fi
5084f823 1646echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1647echo "${ECHO_T}$ac_cv_host" >&6
b30fcfae 1648host=$ac_cv_host
5084f823 1649host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654echo "$as_me:$LINENO: checking target system type" >&5
1655echo $ECHO_N "checking target system type... $ECHO_C" >&6
b30fcfae 1656if test "${ac_cv_target+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
5084f823 1659 ac_cv_target_alias=$target_alias
1660test "x$ac_cv_target_alias" = "x" &&
1661 ac_cv_target_alias=$ac_cv_host_alias
1662ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1663 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1664echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
b30fcfae 1665 { (exit 1); exit 1; }; }
1666
1667fi
5084f823 1668echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1669echo "${ECHO_T}$ac_cv_target" >&6
b30fcfae 1670target=$ac_cv_target
5084f823 1671target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1672target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1673target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b30fcfae 1674
1675
1676# The aliases save the names the user supplied, while $host etc.
1677# will get canonicalized.
1678test -n "$target_alias" &&
1679 test "$program_prefix$program_suffix$program_transform_name" = \
1680 NONENONEs,x,x, &&
1681 program_prefix=${target_alias}-
71ab34df 1682test "$program_prefix" != NONE &&
5084f823 1683 program_transform_name="s,^,$program_prefix,;$program_transform_name"
71ab34df 1684# Use a double $ so make ignores it.
1685test "$program_suffix" != NONE &&
5084f823 1686 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
b30fcfae 1687# Double any \ or $. echo might interpret backslashes.
1688# By default was `s,x,x', remove it if useless.
1689cat <<\_ACEOF >conftest.sed
1690s/[\\$]/&&/g;s/;s,x,x,$//
1691_ACEOF
1692program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5084f823 1693rm conftest.sed
ae48753c 1694
71ab34df 1695
1696
450e6c84 1697# Get 'install' or 'install-sh' and its variants.
1698# Find a good install program. We prefer a C program (faster),
1699# so one script is as good as another. But avoid the broken or
1700# incompatible versions:
1701# SysV /etc/install, /usr/sbin/install
1702# SunOS /usr/etc/install
1703# IRIX /sbin/install
1704# AIX /bin/install
b30fcfae 1705# AmigaOS /C/install, which installs bootblocks on floppy discs
450e6c84 1706# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1707# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1708# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b30fcfae 1709# OS/2's system install, which has a completely different semantic
450e6c84 1710# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 1711# Reject install programs that cannot install multiple files.
5084f823 1712echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1713echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
450e6c84 1714if test -z "$INSTALL"; then
b30fcfae 1715if test "${ac_cv_path_install+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719for as_dir in $PATH
1720do
1721 IFS=$as_save_IFS
1722 test -z "$as_dir" && as_dir=.
1723 # Account for people who put trailing slashes in PATH elements.
1724case $as_dir/ in
1725 ./ | .// | /cC/* | \
1726 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1727 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1728 /usr/ucb/* ) ;;
1729 *)
1730 # OSF1 and SCO ODT 3.0 have their own names for install.
1731 # Don't use installbsd from OSF since it installs stuff as root
1732 # by default.
1733 for ac_prog in ginstall scoinst install; do
1734 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 1735 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
450e6c84 1736 if test $ac_prog = install &&
b30fcfae 1737 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
450e6c84 1738 # AIX install. It has an incompatible calling convention.
1739 :
b30fcfae 1740 elif test $ac_prog = install &&
1741 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1742 # program-specific install script used by HP pwplus--don't use.
1743 :
450e6c84 1744 else
82eaf560 1745 rm -rf conftest.one conftest.two conftest.dir
1746 echo one > conftest.one
1747 echo two > conftest.two
1748 mkdir conftest.dir
1749 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1750 test -s conftest.one && test -s conftest.two &&
1751 test -s conftest.dir/conftest.one &&
1752 test -s conftest.dir/conftest.two
1753 then
1754 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1755 break 3
1756 fi
450e6c84 1757 fi
1758 fi
1759 done
b30fcfae 1760 done
1761 ;;
1762esac
1763done
1764
82eaf560 1765rm -rf conftest.one conftest.two conftest.dir
450e6c84 1766
1767fi
1768 if test "${ac_cv_path_install+set}" = set; then
b30fcfae 1769 INSTALL=$ac_cv_path_install
450e6c84 1770 else
82eaf560 1771 # As a last resort, use the slow shell script. Don't cache a
1772 # value for INSTALL within a source directory, because that will
450e6c84 1773 # break other packages using the cache if that directory is
82eaf560 1774 # removed, or if the value is a relative name.
b30fcfae 1775 INSTALL=$ac_install_sh
450e6c84 1776 fi
1777fi
5084f823 1778echo "$as_me:$LINENO: result: $INSTALL" >&5
1779echo "${ECHO_T}$INSTALL" >&6
450e6c84 1780
1781# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1782# It thinks the first close brace ends the variable substitution.
1783test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1784
b30fcfae 1785test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
450e6c84 1786
1787test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1788
5084f823 1789echo "$as_me:$LINENO: checking whether ln works" >&5
1790echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
b30fcfae 1791if test "${acx_cv_prog_LN+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
599a3eac 1793else
1794 rm -f conftestdata_t
1795echo >conftestdata_f
1796if ln conftestdata_f conftestdata_t 2>/dev/null
1797then
1798 acx_cv_prog_LN=ln
1799else
1800 acx_cv_prog_LN=no
1801fi
1802rm -f conftestdata_f conftestdata_t
1803
1804fi
1805if test $acx_cv_prog_LN = no; then
1806 LN="cp"
5084f823 1807 echo "$as_me:$LINENO: result: no, using $LN" >&5
1808echo "${ECHO_T}no, using $LN" >&6
599a3eac 1809else
1810 LN="$acx_cv_prog_LN"
5084f823 1811 echo "$as_me:$LINENO: result: yes" >&5
1812echo "${ECHO_T}yes" >&6
599a3eac 1813fi
1814
5084f823 1815echo "$as_me:$LINENO: checking whether ln -s works" >&5
1816echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
b30fcfae 1817LN_S=$as_ln_s
1818if test "$LN_S" = "ln -s"; then
5084f823 1819 echo "$as_me:$LINENO: result: yes" >&5
1820echo "${ECHO_T}yes" >&6
a4af6a58 1821else
5084f823 1822 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1823echo "${ECHO_T}no, using $LN_S" >&6
5965d276 1824fi
1825
450e6c84 1826
a8298541 1827### we might need to use some other shell than /bin/sh for running subshells
a8298541 1828### If we are on Windows, search for the shell. This will permit people
1829### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1830### without also having to set CONFIG_SHELL. This code will work when
1831### using bash, which sets OSTYPE.
1832case "${OSTYPE}" in
1833*win32*)
71ab34df 1834 if test x${CONFIG_SHELL} = x ; then
1835 if test ! -f /bin/sh ; then
1836 if test x${SHELL} != x && test -f ${SHELL} ; then
a8298541 1837 CONFIG_SHELL=${SHELL}
1838 export CONFIG_SHELL
1839 else
1840 for prog in sh sh.exe bash bash.exe; do
1841 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1842 for dir in $PATH; do
1843 test -z "$dir" && dir=.
1844 if test -f $dir/$prog; then
1845 CONFIG_SHELL=$dir/$prog
1846 export CONFIG_SHELL
1847 break
1848 fi
1849 done
1850 IFS="$save_ifs"
1851 test -n "${CONFIG_SHELL}" && break
1852 done
1853 fi
1854 fi
1855 fi
1856 ;;
1857esac
1858
1859config_shell=${CONFIG_SHELL-/bin/sh}
1860
71ab34df 1861moveifchange=${srcdir}/move-if-change
a8298541 1862
e8eddfdd 1863srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1864
1865# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1866# a relative path.
1867if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1868 INSTALL="${srcpwd}/install-sh -c"
1869fi
1870
71ab34df 1871# Set srcdir to "." if that's what it is.
1872# This is important for multilib support.
1873pwd=`${PWDCMD-pwd}`
71ab34df 1874if test "${pwd}" = "${srcpwd}" ; then
1875 srcdir=.
a8298541 1876fi
1877
71ab34df 1878topsrcdir=$srcpwd
ed37269d 1879
71ab34df 1880extra_host_args=
14ac9144 1881
71ab34df 1882### To add a new directory to the tree, first choose whether it is a target
1883### or a host dependent tool. Then put it into the appropriate list
1884### (library or tools, host or target), doing a dependency sort.
a8298541 1885
b30fcfae 1886# Subdirs will be configured in the order listed in build_configdirs,
71ab34df 1887# configdirs, or target_configdirs; see the serialization section below.
a8298541 1888
b30fcfae 1889# Dependency sorting is only needed when *configuration* must be done in
1890# a particular order. In all cases a dependency should be specified in
71ab34df 1891# the Makefile, whether or not it's implicitly specified here.
a8298541 1892
71ab34df 1893# Double entries in build_configdirs, configdirs, or target_configdirs may
1894# cause circular dependencies and break everything horribly.
a8298541 1895
2f8725b0 1896# these library is used by various programs built for the build
1897# environment
1898#
1899build_libs="build-libiberty"
1900
1901# these tools are built for the build environment
2b59cb05 1902build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2f8725b0 1903
71ab34df 1904# these libraries are used by various programs built for the host environment
1905#
7601a55c 1906host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
71ab34df 1907
71ab34df 1908# these tools are built for the host environment
1909# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1910# know that we are building the simulator.
1911# binutils, gas and ld appear in that order because it makes sense to run
1912# "make check" in that particular order.
3d47fcf5 1913# If --enable-gold is used, "gold" will replace "ld".
a136b23d 1914host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
71ab34df 1915
1916# libgcj represents the runtime libraries only used by gcj.
1917libgcj="target-libffi \
71ab34df 1918 target-zlib \
1919 target-qthreads \
1920 target-libjava"
1921
1922# these libraries are built for the target environment, and are built after
1923# the host libraries and the host tools (which may be a cross compiler)
1924#
27bfe7b7 1925target_libraries="target-libgcc \
1926 target-libiberty \
71ab34df 1927 target-libgloss \
1928 target-newlib \
a0191bfe 1929 target-libgomp \
54d7d5f2 1930 target-libstdc++-v3 \
4ee9c684 1931 target-libmudflap \
0d55f4d0 1932 target-libssp \
4ee9c684 1933 target-libgfortran \
dd6d3a67 1934 target-boehm-gc \
cdfc500e 1935 ${libgcj} \
93341878 1936 target-libobjc \
a0191bfe 1937 target-libada"
71ab34df 1938
328637e8 1939# these tools are built using the target libraries, and are intended to
1940# run only in the target environment
71ab34df 1941#
328637e8 1942# note: any program that *uses* libraries that are in the "target_libraries"
71ab34df 1943# list belongs in this list. those programs are also very likely
1944# candidates for the "native_only" list which follows
1945#
410f1dde 1946target_tools="target-examples target-groff target-gperf target-rda"
a8298541 1947
71ab34df 1948################################################################################
a8298541 1949
71ab34df 1950## All tools belong in one of the four categories, and are assigned above
1951## We assign ${configdirs} this way to remove all embedded newlines. This
1952## is important because configure will choke if they ever get through.
1953## ${configdirs} is directories we build using the host tools.
1954## ${target_configdirs} is directories we build using the target tools.
71ab34df 1955configdirs=`echo ${host_libs} ${host_tools}`
328637e8 1956target_configdirs=`echo ${target_libraries} ${target_tools}`
2b59cb05 1957build_configdirs=`echo ${build_libs} ${build_tools}`
6f4f34a7 1958
d2d2630b 1959
1960
71ab34df 1961################################################################################
a8298541 1962
71ab34df 1963srcname="gnu development package"
a8298541 1964
71ab34df 1965# This gets set non-empty for some net releases of packages.
1966appdirs=""
a8298541 1967
71ab34df 1968# Define is_cross_compiler to save on calls to 'test'.
1969is_cross_compiler=
1970if test x"${host}" = x"${target}" ; then
1971 is_cross_compiler=no
a8298541 1972else
71ab34df 1973 is_cross_compiler=yes
b30fcfae 1974fi
a8298541 1975
2f61b8ca 1976# Find the build and target subdir names.
6f4f34a7 1977
d3e7b04c 1978# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1979# have matching libraries, they should use host libraries: Makefile.tpl
1980# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1981# However, they still use the build modules, because the corresponding
1982# host modules (e.g. bison) are only built for the host when bootstrap
1983# finishes. So:
1984# - build_subdir is where we find build modules, and never changes.
1985# - build_libsubdir is where we find build libraries, and can be overridden.
1986
1987# Prefix 'build-' so this never conflicts with target_subdir.
6f4f34a7 1988build_subdir="build-${build_noncanonical}"
b30fcfae 1989
5084f823 1990# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
d3e7b04c 1991if test "${with_build_libsubdir+set}" = set; then
5084f823 1992 withval="$with_build_libsubdir"
1993 build_libsubdir="$withval"
d3e7b04c 1994else
1995 build_libsubdir="$build_subdir"
5084f823 1996fi;
c1eb9e31 1997# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1998if ( test $srcdir = . && test -d gcc ) \
1999 || test -d $srcdir/../host-${host_noncanonical}; then
2000 host_subdir="host-${host_noncanonical}"
2001else
2002 host_subdir=.
2003fi
6f4f34a7 2004# No prefix.
2005target_subdir=${target_noncanonical}
b30fcfae 2006
a8298541 2007
71ab34df 2008# Skipdirs are removed silently.
2009skipdirs=
2010# Noconfigdirs are removed loudly.
2011noconfigdirs=""
a8298541 2012
71ab34df 2013use_gnu_ld=
2014# Make sure we don't let GNU ld be added if we didn't want it.
2015if test x$with_gnu_ld = xno ; then
2016 use_gnu_ld=no
3d47fcf5 2017 noconfigdirs="$noconfigdirs ld gold"
a8298541 2018fi
2019
71ab34df 2020use_gnu_as=
2021# Make sure we don't let GNU as be added if we didn't want it.
2022if test x$with_gnu_as = xno ; then
2023 use_gnu_as=no
2024 noconfigdirs="$noconfigdirs gas"
a8298541 2025fi
2026
b30fcfae 2027# some tools are so dependent upon X11 that if we're not building with X,
71ab34df 2028# it's not even worth trying to configure, much less build, that tool.
a8298541 2029
71ab34df 2030case ${with_x} in
2031 yes | "") ;; # the default value for this tree is that X11 is available
2032 no)
f843f075 2033 skipdirs="${skipdirs} tk itcl libgui"
71ab34df 2034 # We won't be able to build gdbtk without X.
b30fcfae 2035 enable_gdbtk=no
71ab34df 2036 ;;
2037 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2038esac
a8298541 2039
71ab34df 2040# Some tools are only suitable for building in a "native" situation.
b30fcfae 2041# Remove these if host!=target.
a2c13723 2042native_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"
a8298541 2043
71ab34df 2044# Similarly, some are only suitable for cross toolchains.
2045# Remove these if host=target.
2046cross_only="target-libgloss target-newlib target-opcodes"
2047
2048case $is_cross_compiler in
2049 no) skipdirs="${skipdirs} ${cross_only}" ;;
2050 yes) skipdirs="${skipdirs} ${native_only}" ;;
2051esac
a8298541 2052
71ab34df 2053# If both --with-headers and --with-libs are specified, default to
2054# --without-newlib.
e8eddfdd 2055if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2056 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
71ab34df 2057 if test x"${with_newlib}" = x ; then
2058 with_newlib=no
2059 fi
a8298541 2060fi
2061
71ab34df 2062# Recognize --with-newlib/--without-newlib.
2063case ${with_newlib} in
2064 no) skipdirs="${skipdirs} target-newlib" ;;
2065 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2066esac
a8298541 2067
3d47fcf5 2068# Handle --enable-gold.
2069
2070# Check whether --enable-gold or --disable-gold was given.
2071if test "${enable_gold+set}" = set; then
2072 enableval="$enable_gold"
2073 ENABLE_GOLD=$enableval
2074else
2075 ENABLE_GOLD=no
2076fi;
2077if test "${ENABLE_GOLD}" = "yes"; then
2078 # Check for ELF target.
2079 is_elf=no
2080 case "${target}" in
2081 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2082 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
0c809c32 2083 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
3d47fcf5 2084 case "${target}" in
2085 *-*-linux*aout* | *-*-linux*oldld*)
2086 ;;
2087 *)
2088 is_elf=yes
2089 ;;
2090 esac
2091 esac
2092
2093 if test "$is_elf" = "yes"; then
2094 # Check for target supported by gold.
2095 case "${target}" in
351f7ac7 2096 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
3d47fcf5 2097 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2098 ;;
2099 esac
2100 fi
2101fi
2102
71ab34df 2103# Configure extra directories which are host specific
a8298541 2104
71ab34df 2105case "${host}" in
2106 *-cygwin*)
2107 configdirs="$configdirs libtermcap" ;;
2108esac
a8298541 2109
ff7dcf6a 2110# A target can indicate whether a language isn't supported for some reason.
2111# Only spaces may be used in this macro; not newlines or tabs.
2112unsupported_languages=
2113
b30fcfae 2114# Remove more programs from consideration, based on the host or
71ab34df 2115# target this usually means that a port of the program doesn't
2116# exist yet.
c7879c37 2117
71ab34df 2118case "${host}" in
2119 hppa*64*-*-*)
2120 noconfigdirs="$noconfigdirs byacc"
2121 ;;
f74ea578 2122 i[3456789]86-*-vsta)
f843f075 2123 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
71ab34df 2124 ;;
f74ea578 2125 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
f843f075 2126 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
602d002b 2127 ;;
a378fc89 2128 x86_64-*-mingw*)
2129 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2130 ;;
f74ea578 2131 i[3456789]86-*-mingw32*)
f843f075 2132 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
d6d689df 2133 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
602d002b 2134 ;;
f74ea578 2135 i[3456789]86-*-beos*)
f843f075 2136 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
602d002b 2137 ;;
71ab34df 2138 *-*-cygwin*)
9dec93ca 2139 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
71ab34df 2140 ;;
2141 *-*-netbsd*)
9dec93ca 2142 noconfigdirs="$noconfigdirs rcs"
71ab34df 2143 ;;
2144 ppc*-*-pe)
f843f075 2145 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
71ab34df 2146 ;;
2147 powerpc-*-beos*)
f843f075 2148 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
71ab34df 2149 ;;
71ab34df 2150esac
c7879c37 2151
4ee9c684 2152
5084f823 2153# Check whether --enable-libada or --disable-libada was given.
93341878 2154if test "${enable_libada+set}" = set; then
5084f823 2155 enableval="$enable_libada"
2156 ENABLE_LIBADA=$enableval
93341878 2157else
2158 ENABLE_LIBADA=yes
5084f823 2159fi;
93341878 2160if test "${ENABLE_LIBADA}" != "yes" ; then
a136b23d 2161 noconfigdirs="$noconfigdirs gnattools"
93341878 2162fi
2163
5084f823 2164# Check whether --enable-libssp or --disable-libssp was given.
07da5214 2165if test "${enable_libssp+set}" = set; then
5084f823 2166 enableval="$enable_libssp"
2167 ENABLE_LIBSSP=$enableval
07da5214 2168else
2169 ENABLE_LIBSSP=yes
5084f823 2170fi;
07da5214 2171
71ab34df 2172# Save it here so that, even in case of --enable-libgcj, if the Java
2173# front-end isn't enabled, we still get libgcj disabled.
2174libgcj_saved=$libgcj
2175case $enable_libgcj in
2176yes)
2177 # If we reset it here, it won't get added to noconfigdirs in the
2178 # target-specific build rules, so it will be forcibly enabled
2179 # (unless the Java language itself isn't enabled).
2180 libgcj=
2181 ;;
2182no)
2183 # Make sure we get it printed in the list of not supported target libs.
2184 noconfigdirs="$noconfigdirs ${libgcj}"
2185 ;;
2186esac
c7879c37 2187
4ee9c684 2188
50996fe5 2189# Disable libmudflap on some systems.
2190if test x$enable_libmudflap = x ; then
344b2784 2191 case "${target}" in
3bef4012 2192 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
cb8a7007 2193 # Enable libmudflap by default in GNU and friends.
344b2784 2194 ;;
122ae8c7 2195 *-*-freebsd*)
2196 # Enable libmudflap by default in FreeBSD.
2197 ;;
344b2784 2198 *)
2199 # Disable it by default everywhere else.
2200 noconfigdirs="$noconfigdirs target-libmudflap"
2201 ;;
2202 esac
50996fe5 2203fi
4ee9c684 2204
50996fe5 2205# Disable libgomp on non POSIX hosted systems.
2206if test x$enable_libgomp = x ; then
1e8e9920 2207 # Enable libgomp by default on hosted POSIX systems.
2208 case "${target}" in
3bef4012 2209 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
1e8e9920 2210 ;;
2211 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2212 ;;
778f2e8d 2213 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1e8e9920 2214 ;;
634efbee 2215 *-*-darwin* | *-*-aix*)
1e8e9920 2216 ;;
2217 *)
2218 noconfigdirs="$noconfigdirs target-libgomp"
2219 ;;
2220 esac
50996fe5 2221fi
1e8e9920 2222
1c5767f1 2223# Default libgloss CPU subdirectory.
2224libgloss_dir="$target_cpu"
4ee9c684 2225
71ab34df 2226case "${target}" in
2227 *-*-chorusos)
d6f7b8f2 2228 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2229 ;;
40c500e1 2230 powerpc-*-darwin*)
dba2c8ea 2231 noconfigdirs="$noconfigdirs ld gas gdb gprof"
d28caca4 2232 noconfigdirs="$noconfigdirs sim target-rda"
0894307c 2233 ;;
95349883 2234 i[3456789]86-*-darwin* | x86_64-*-darwin[912]*)
d9f9f3af 2235 noconfigdirs="$noconfigdirs ld gas gprof"
2236 noconfigdirs="$noconfigdirs sim target-rda"
2237 ;;
fce068fd 2238 *-*-darwin*)
2239 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2240 noconfigdirs="$noconfigdirs sim target-rda"
2241 noconfigdirs="$noconfigdirs ${libgcj}"
2242 ;;
71ab34df 2243 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
d6f7b8f2 2244 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2245 ;;
c01dd063 2246 *-*-freebsd*)
4ee9c684 2247 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2248 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2249 && test -f /usr/local/include/gmp.h; then
2250 with_gmp=/usr/local
2251 fi
2252
2253 # Skip some stuff that's unsupported on some FreeBSD configurations.
2254 case "${target}" in
2255 i*86-*-*) ;;
2256 alpha*-*-*) ;;
2257 *)
d6f7b8f2 2258 noconfigdirs="$noconfigdirs ${libgcj}"
4ee9c684 2259 ;;
2260 esac
2261 ;;
336577be 2262 *-*-kaos*)
2263 # Remove unsupported stuff on all kaOS configurations.
d6f7b8f2 2264 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
336577be 2265 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2266 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2267 noconfigdirs="$noconfigdirs target-libgloss"
2268 ;;
71ab34df 2269 *-*-netbsd*)
2270 # Skip some stuff on all NetBSD configurations.
2271 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2272
2273 # Skip some stuff that's unsupported on some NetBSD configurations.
2274 case "${target}" in
2275 i*86-*-netbsdelf*) ;;
c8a4cc21 2276 arm*-*-netbsdelf*) ;;
71ab34df 2277 *)
d6f7b8f2 2278 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2279 ;;
2280 esac
2281 ;;
634f7a13 2282 *-*-netware*)
d6f7b8f2 2283 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
71ab34df 2284 ;;
2285 *-*-rtems*)
d6f7b8f2 2286 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2287 ;;
9f88bc9d 2288 # The tpf target doesn't support gdb yet.
2289 *-*-tpf*)
d6f7b8f2 2290 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
9f88bc9d 2291 ;;
688429c4 2292 *-*-uclinux*)
d6f7b8f2 2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
688429c4 2294 ;;
71ab34df 2295 *-*-vxworks*)
d6f7b8f2 2296 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
71ab34df 2297 ;;
2298 alpha*-dec-osf*)
2299 # ld works, but does not support shared libraries.
2300 # newlib is not 64 bit ready. I'm not sure about fileutils.
2301 # gas doesn't generate exception information.
2302 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2303 ;;
2304 alpha*-*-*vms*)
d6f7b8f2 2305 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
71ab34df 2306 ;;
2307 alpha*-*-linux*)
2308 # newlib is not 64 bit ready
2309 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2310 ;;
71ab34df 2311 alpha*-*-*)
2312 # newlib is not 64 bit ready
d6f7b8f2 2313 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2314 ;;
700d38c2 2315 am33_2.0-*-linux*)
d6f7b8f2 2316 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
700d38c2 2317 ;;
71ab34df 2318 sh-*-linux*)
d6f7b8f2 2319 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
b30fcfae 2320 ;;
71ab34df 2321 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
d6f7b8f2 2322 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2323 noconfigdirs="$noconfigdirs target-examples"
2324 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
f843f075 2325 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
71ab34df 2326 noconfigdirs="$noconfigdirs expect dejagnu"
2327 # the C++ libraries don't build on top of CE's C libraries
54d7d5f2 2328 noconfigdirs="$noconfigdirs target-libstdc++-v3"
71ab34df 2329 noconfigdirs="$noconfigdirs target-newlib"
2330 case "${host}" in
2331 *-*-cygwin*) ;; # keep gdb and readline
123bd2df 2332 *) noconfigdirs="$noconfigdirs gdb readline"
71ab34df 2333 ;;
2334 esac
1c5767f1 2335 libgloss_dir=wince
71ab34df 2336 ;;
2337 arc-*-*)
d6f7b8f2 2338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2339 ;;
e8eddfdd 2340 arm-semi-aof )
e8eddfdd 2341 ;;
71ab34df 2342 arm-*-coff | strongarm-*-coff | xscale-*-coff)
d6f7b8f2 2343 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2344 libgloss_dir=arm
71ab34df 2345 ;;
30e9913f 2346 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
71ab34df 2347 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1c5767f1 2348 libgloss_dir=arm
71ab34df 2349 ;;
6783d878 2350 arm*-*-linux-gnueabi)
b9eb3c64 2351 noconfigdirs="$noconfigdirs target-qthreads"
b7ef8464 2352 case ${with_newlib} in
2353 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2354 esac
1c5767f1 2355 libgloss_dir=arm
6783d878 2356 ;;
8647a116 2357 arm*-*-symbianelf*)
d6f7b8f2 2358 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1c5767f1 2359 libgloss_dir=arm
8647a116 2360 ;;
71ab34df 2361 arm-*-pe*)
d6f7b8f2 2362 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2363 ;;
71ab34df 2364 thumb-*-coff)
d6f7b8f2 2365 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2366 ;;
2367 thumb-*-elf)
d6f7b8f2 2368 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2369 ;;
71ab34df 2370 thumb-*-pe)
d6f7b8f2 2371 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2372 ;;
2373 arm-*-riscix*)
d6f7b8f2 2374 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
71ab34df 2375 ;;
2376 avr-*-*)
9c66b389 2377 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
71ab34df 2378 ;;
7172be51 2379 bfin-*-*)
067bdab5 2380 noconfigdirs="$noconfigdirs gdb"
8d687193 2381 if test x${is_cross_compiler} != xno ; then
7172be51 2382 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2383 fi
2384 ;;
71ab34df 2385 c4x-*-* | tic4x-*-*)
d6f7b8f2 2386 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2387 ;;
2388 c54x*-*-* | tic54x-*-*)
d6f7b8f2 2389 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
71ab34df 2390 ;;
15f8eac8 2391 cr16-*-*)
2392 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2393 ;;
06b2086e 2394 cris-*-* | crisv32-*-*)
ff7dcf6a 2395 unsupported_languages="$unsupported_languages java"
06b2086e 2396 case "${target}" in
c0188550 2397 *-*-aout)
2c718da0 2398 unsupported_languages="$unsupported_languages fortran"
ff7dcf6a 2399 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c0188550 2400 *-*-elf)
d0c03476 2401 noconfigdirs="$noconfigdirs target-boehm-gc";;
c0188550 2402 *-*-linux*)
d0c03476 2403 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
06b2086e 2404 *)
2c718da0 2405 unsupported_languages="$unsupported_languages fortran"
d6f7b8f2 2406 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
06b2086e 2407 esac
1c5767f1 2408 libgloss_dir=cris
71ab34df 2409 ;;
75b6260c 2410 crx-*-*)
d6f7b8f2 2411 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
75b6260c 2412 ;;
71ab34df 2413 d10v-*-*)
d6f7b8f2 2414 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2415 ;;
2416 d30v-*-*)
d6f7b8f2 2417 noconfigdirs="$noconfigdirs ${libgcj} gdb"
71ab34df 2418 ;;
1c5767f1 2419 ep9312-*-elf | ep9312-*-coff)
2420 libgloss_dir=arm
2421 ;;
71ab34df 2422 fr30-*-elf*)
d6f7b8f2 2423 noconfigdirs="$noconfigdirs ${libgcj} gdb"
71ab34df 2424 ;;
2425 frv-*-*)
d6f7b8f2 2426 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2427 ;;
ca2751b6 2428 moxie-*-*)
2429 noconfigdirs="$noconfigdirs ${libgcj}"
2430 noconfigdirs="$noconfigdirs gprof"
2431 ;;
71ab34df 2432 h8300*-*-*)
d6f7b8f2 2433 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2434 ;;
2435 h8500-*-*)
d6f7b8f2 2436 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2437 ;;
e8eddfdd 2438 hppa1.1-*-osf* | hppa1.1-*-bsd* )
e8eddfdd 2439 ;;
71ab34df 2440 hppa*64*-*-linux* | parisc*64*-*-linux*)
2441 # In this case, it's because the hppa64-linux target is for
2442 # the kernel only at this point and has no libc, and thus no
2443 # headers, crt*.o, etc., all of which are needed by these.
2444 noconfigdirs="$noconfigdirs target-zlib"
2445 ;;
08261f02 2446 parisc*-*-linux* | hppa*-*-linux*)
2447 ;;
71ab34df 2448 hppa*-*-*elf* | \
71ab34df 2449 hppa*-*-lites* | \
2450 hppa*-*-openbsd* | \
2451 hppa*64*-*-*)
d6f7b8f2 2452 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2453 ;;
75d59721 2454 hppa*-hp-hpux11*)
2455 noconfigdirs="$noconfigdirs ld shellutils"
2456 ;;
1c5767f1 2457 hppa*-*-pro*)
2458 libgloss_dir=pa
2459 ;;
71ab34df 2460 hppa*-*-*)
2461 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2462 # build on HP-UX 10.20.
d6f7b8f2 2463 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
71ab34df 2464 ;;
4a9237fb 2465 i960-*-*)
d6f7b8f2 2466 noconfigdirs="$noconfigdirs ${libgcj} gdb"
4a9237fb 2467 ;;
71ab34df 2468 ia64*-*-elf*)
2469 # No gdb support yet.
f843f075 2470 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
71ab34df 2471 ;;
2472 ia64*-**-hpux*)
2473 # No gdb or ld support yet.
d6f7b8f2 2474 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
71ab34df 2475 ;;
8408ca00 2476 ia64*-*-*vms*)
2477 # No gdb or ld support yet.
2478 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2479 ;;
e8eddfdd 2480 i370-*-opened*)
e8eddfdd 2481 ;;
f74ea578 2482 i[3456789]86-*-coff | i[3456789]86-*-elf)
d6f7b8f2 2483 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2484 libgloss_dir=i386
71ab34df 2485 ;;
f74ea578 2486 i[3456789]86-*-linux*)
71ab34df 2487 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2488 # not build java stuff by default.
2489 case "${target}" in
2490 *-*-*libc1*)
d6f7b8f2 2491 noconfigdirs="$noconfigdirs ${libgcj}";;
71ab34df 2492 esac
2493
2494 # This section makes it possible to build newlib natively on linux.
2495 # If we are using a cross compiler then don't configure newlib.
2496 if test x${is_cross_compiler} != xno ; then
602d002b 2497 noconfigdirs="$noconfigdirs target-newlib"
71ab34df 2498 fi
2499 noconfigdirs="$noconfigdirs target-libgloss"
2500 # If we are not using a cross compiler, do configure newlib.
2501 # Note however, that newlib will only be configured in this situation
2502 # if the --with-newlib option has been given, because otherwise
2503 # 'target-newlib' will appear in skipdirs.
2504 ;;
f74ea578 2505 i[3456789]86-*-mingw32*)
d6d689df 2506 target_configdirs="$target_configdirs target-winsup"
2507 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
b30fcfae 2508 ;;
a378fc89 2509 x86_64-*-mingw*)
2510 target_configdirs="$target_configdirs target-winsup"
2511 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
b30fcfae 2512 ;;
71ab34df 2513 *-*-cygwin*)
2514 target_configdirs="$target_configdirs target-libtermcap target-winsup"
df95bec1 2515 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
2c10944d 2516 # always build newlib if winsup directory is present.
d6d689df 2517 if test -d "$srcdir/winsup/cygwin"; then
2c10944d 2518 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
e8eddfdd 2519 elif test -d "$srcdir/newlib"; then
d6d689df 2520 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2c10944d 2521 fi
b30fcfae 2522 ;;
e8eddfdd 2523 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2524 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
e8eddfdd 2525 ;;
f74ea578 2526 i[3456789]86-*-pe)
d6f7b8f2 2527 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2528 ;;
f74ea578 2529 i[3456789]86-*-sco3.2v5*)
71ab34df 2530 # The linker does not yet know about weak symbols in COFF,
2531 # and is not configured to handle mixed ELF and COFF.
d6f7b8f2 2532 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
71ab34df 2533 ;;
f74ea578 2534 i[3456789]86-*-sco*)
d6f7b8f2 2535 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2536 ;;
f74ea578 2537 i[3456789]86-*-solaris2*)
71ab34df 2538 noconfigdirs="$noconfigdirs target-libgloss"
2539 ;;
f74ea578 2540 i[3456789]86-*-sysv4*)
d6f7b8f2 2541 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2542 ;;
f74ea578 2543 i[3456789]86-*-beos*)
d6f7b8f2 2544 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
602d002b 2545 ;;
ab0da556 2546 i[3456789]86-*-rdos*)
2547 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2548 ;;
4a9237fb 2549 m32r-*-*)
d6f7b8f2 2550 noconfigdirs="$noconfigdirs ${libgcj}"
4a9237fb 2551 ;;
71ab34df 2552 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
d6f7b8f2 2553 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1c5767f1 2554 libgloss_dir=m68hc11
71ab34df 2555 ;;
2556 m68k-*-elf*)
d6f7b8f2 2557 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2558 ;;
2559 m68k-*-coff*)
d6f7b8f2 2560 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2561 ;;
1c5767f1 2562 m68*-*-* | fido-*-*)
2563 libgloss_dir=m68k
2564 ;;
71ab34df 2565 mcore-*-pe*)
2566 # The EPOC C++ environment does not support exceptions or rtti,
2567 # and so building libstdc++-v3 tends not to always work.
2568 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2569 ;;
2570 mmix-*-*)
ff7dcf6a 2571 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2c718da0 2572 unsupported_languages="$unsupported_languages fortran java"
71ab34df 2573 ;;
2574 mn10200-*-*)
d6f7b8f2 2575 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2576 ;;
2577 mn10300-*-*)
d6f7b8f2 2578 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2579 ;;
957985d9 2580 mt-*-*)
f6fa11cb 2581 noconfigdirs="$noconfigdirs sim"
2582 ;;
71ab34df 2583 powerpc-*-aix*)
2584 # copied from rs6000-*-* entry
f83974e5 2585 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
71ab34df 2586 ;;
2587 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2588 target_configdirs="$target_configdirs target-winsup"
d6f7b8f2 2589 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
71ab34df 2590 # always build newlib.
2591 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2592 ;;
2593 # This is temporary until we can link against shared libraries
2594 powerpcle-*-solaris*)
d6f7b8f2 2595 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1c5767f1 2596 libgloss_dir=rs6000
71ab34df 2597 ;;
2598 powerpc-*-beos*)
d6f7b8f2 2599 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
71ab34df 2600 ;;
71ab34df 2601 powerpc-*-eabi)
d6f7b8f2 2602 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2603 libgloss_dir=rs6000
e8eddfdd 2604 ;;
2605 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1c5767f1 2606 libgloss_dir=rs6000
71ab34df 2607 ;;
71ab34df 2608 rs6000-*-lynxos*)
d6f7b8f2 2609 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
71ab34df 2610 ;;
2611 rs6000-*-aix*)
f83974e5 2612 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
71ab34df 2613 ;;
2614 rs6000-*-*)
d6f7b8f2 2615 noconfigdirs="$noconfigdirs gprof ${libgcj}"
71ab34df 2616 ;;
2617 m68k-apollo-*)
d6f7b8f2 2618 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
71ab34df 2619 ;;
68c9bc25 2620 mips*-sde-elf*)
2621 skipdirs="$skipdirs target-libiberty"
2622 noconfigdirs="$noconfigdirs ${libgcj}"
2623 if test x$with_newlib = xyes; then
2624 noconfigdirs="$noconfigdirs gprof"
2625 fi
2626 libgloss_dir=mips
2627 ;;
71ab34df 2628 mips*-*-irix5*)
d6f7b8f2 2629 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2630 ;;
2631 mips*-*-irix6*)
71ab34df 2632 # Linking libjava exceeds command-line length limits on at least
2633 # IRIX 6.2, but not on IRIX 6.5.
2634 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2635 # <oldham@codesourcery.com>
d6f7b8f2 2636 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2637 ;;
71ab34df 2638 mips*-*-bsd*)
d6f7b8f2 2639 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2640 ;;
71ab34df 2641 mips*-*-linux*)
2642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2643 ;;
2644 mips*-*-*)
d6f7b8f2 2645 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1c5767f1 2646 libgloss_dir=mips
71ab34df 2647 ;;
2648 romp-*-*)
d6f7b8f2 2649 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
71ab34df 2650 ;;
33974778 2651 sh-*-* | sh64-*-*)
71ab34df 2652 case "${host}" in
f74ea578 2653 i[3456789]86-*-vsta) ;; # don't add gprof back in
2654 i[3456789]86-*-go32*) ;; # don't add gprof back in
2655 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
71ab34df 2656 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2657 esac
d6f7b8f2 2658 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2659 ;;
1c5767f1 2660 sparclet-*-aout* | sparc86x-*-*)
2661 libgloss_dir=sparc
2662 ;;
71ab34df 2663 sparc-*-elf*)
d6f7b8f2 2664 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2665 ;;
2666 sparc64-*-elf*)
d6f7b8f2 2667 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2668 libgloss_dir=sparc
71ab34df 2669 ;;
2670 sparclite-*-*)
d6f7b8f2 2671 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2672 libgloss_dir=sparc
71ab34df 2673 ;;
2674 sparc-*-sunos4*)
d6f7b8f2 2675 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2676 if test x${is_cross_compiler} != xno ; then
2677 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2678 else
2679 use_gnu_ld=no
2680 fi
2681 ;;
17336619 2682 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
d6f7b8f2 2683 noconfigdirs="$noconfigdirs ${libgcj}"
17336619 2684 ;;
71ab34df 2685 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2686 ;;
2687 v810-*-*)
d6f7b8f2 2688 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
71ab34df 2689 ;;
2690 v850-*-*)
d6f7b8f2 2691 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2692 ;;
2693 v850e-*-*)
d6f7b8f2 2694 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2695 ;;
2696 v850ea-*-*)
d6f7b8f2 2697 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2698 ;;
2699 vax-*-vms)
d6f7b8f2 2700 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
71ab34df 2701 ;;
2702 vax-*-*)
d6f7b8f2 2703 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2704 ;;
c1d3813f 2705 xtensa*-*-*)
d6f7b8f2 2706 noconfigdirs="$noconfigdirs ${libgcj}"
678f5830 2707 ;;
71ab34df 2708 ip2k-*-*)
d6f7b8f2 2709 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
71ab34df 2710 ;;
3bef4012 2711 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
71ab34df 2712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2713 ;;
2714 *-*-lynxos*)
d6f7b8f2 2715 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
b30fcfae 2716 ;;
71ab34df 2717 *-*-*)
d6f7b8f2 2718 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2719 ;;
2720esac
a8298541 2721
71ab34df 2722# If we aren't building newlib, then don't build libgloss, since libgloss
2723# depends upon some newlib header files.
2724case "${noconfigdirs}" in
2725 *target-libgloss*) ;;
2726 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2727esac
2728
71ab34df 2729# Work in distributions that contain no compiler tools, like Autoconf.
2730tentative_cc=""
2731host_makefile_frag=/dev/null
2732if test -d ${srcdir}/config ; then
2733case "${host}" in
2734 m68k-hp-hpux*)
2735 # Avoid "too much defining" errors from HPUX compiler.
2736 tentative_cc="cc -Wp,-H256000"
2737 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2738 # If it's HP/UX ar, this should be harmless.
2739 RANLIB="ar ts"
2740 ;;
2741 m68k-apollo-sysv*)
2742 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2743 ;;
2744 m68k-apollo-bsd*)
2745 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2746 # chokes on bfd, the compiler won't let you assign integers to enums, and
2747 # other problems. Defining CC to gcc is a questionable way to say "don't use
2748 # the apollo compiler" (the preferred version of GCC could be called cc,
2749 # or whatever), but I'm not sure leaving CC as cc is any better...
2750 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2751 # Used to have BISON=yacc.
2752 tentative_cc=gcc
2753 ;;
2754 m88k-dg-dgux*)
2755 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
71ab34df 2756 ;;
2757 m88k-harris-cxux*)
2758 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2759 tentative_cc="cc -Xa"
2760 host_makefile_frag="config/mh-cxux"
2761 ;;
2762 m88k-motorola-sysv*)
2763 ;;
2764 mips*-dec-ultrix*)
2765 tentative_cc="cc -Wf,-XNg1000"
2766 host_makefile_frag="config/mh-decstation"
2767 ;;
2768 mips*-nec-sysv4*)
2769 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2770 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2771 host_makefile_frag="config/mh-necv4"
2772 ;;
2773 mips*-sgi-irix4*)
2774 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2775 # environment. Also bump switch table size so that cp-parse will
2776 # compile. Bump string length limit so linker builds.
2777 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2778 ;;
2779 mips*-*-sysv4*)
2780 host_makefile_frag="config/mh-sysv4"
2781 ;;
2782 mips*-*-sysv*)
2783 # This is for a MIPS running RISC/os 4.52C.
2784
2785 # This is needed for GDB, but needs to be in the top-level make because
2786 # if a library is compiled with the bsd headers and gets linked with the
2787 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2788 # a different size).
2789 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2790 # known except to select the sysv environment. Could we use /proc instead?
2791 # These "sysv environments" and "bsd environments" often end up being a pain.
2792 #
2793 # This is not part of CFLAGS because perhaps not all C compilers have this
2794 # option.
2795 tentative_cc="cc -systype sysv"
2796 ;;
2797 i370-ibm-opened*)
2798 tentative_cc="c89"
2799 ;;
f74ea578 2800 i[3456789]86-*-sysv5*)
71ab34df 2801 host_makefile_frag="config/mh-sysv5"
2802 ;;
f74ea578 2803 i[3456789]86-*-dgux*)
71ab34df 2804 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2805 host_makefile_frag="config/mh-dgux386"
2806 ;;
f74ea578 2807 i[3456789]86-ncr-sysv4.3*)
71ab34df 2808 # The MetaWare compiler will generate a copyright message unless you
2809 # turn it off by adding the -Hnocopyr flag.
2810 tentative_cc="cc -Hnocopyr"
2811 ;;
f74ea578 2812 i[3456789]86-ncr-sysv4*)
71ab34df 2813 # for an NCR 3000 (i486/SVR4) system.
2814 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2815 # This compiler not only emits obnoxious copyright messages every time
2816 # you run it, but it chokes and dies on a whole bunch of GNU source
2817 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2818 tentative_cc="/usr/ccs/ATT/cc"
2819 host_makefile_frag="config/mh-ncr3000"
2820 ;;
f74ea578 2821 i[3456789]86-*-sco3.2v5*)
71ab34df 2822 ;;
f74ea578 2823 i[3456789]86-*-sco*)
71ab34df 2824 # The native C compiler botches some simple uses of const. Unfortunately,
2825 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2826 tentative_cc="cc -Dconst="
2827 host_makefile_frag="config/mh-sco"
2828 ;;
f74ea578 2829 i[3456789]86-*-udk*)
71ab34df 2830 host_makefile_frag="config/mh-sysv5"
2831 ;;
f74ea578 2832 i[3456789]86-*-solaris2*)
71ab34df 2833 host_makefile_frag="config/mh-sysv4"
2834 ;;
f74ea578 2835 i[3456789]86-*-msdosdjgpp*)
71ab34df 2836 host_makefile_frag="config/mh-djgpp"
2837 ;;
2838 *-cygwin*)
45043b2b 2839
2840echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2841echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2842echo a >cygwin-cat-check
2843if test `cat cygwin-cat-check` == a ; then
2844 rm cygwin-cat-check
2845 echo "$as_me:$LINENO: result: yes" >&5
2846echo "${ECHO_T}yes" >&6
2847else
2848 rm cygwin-cat-check
2849 echo "$as_me:$LINENO: result: no" >&5
2850echo "${ECHO_T}no" >&6
2851 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2852 Please either mount the build directory in binary mode or run the following
2853 commands before running any configure script:
2854set -o igncr
2855export SHELLOPTS
2856 " >&5
2857echo "$as_me: error: The cat command does not ignore carriage return characters.
2858 Please either mount the build directory in binary mode or run the following
2859 commands before running any configure script:
2860set -o igncr
2861export SHELLOPTS
2862 " >&2;}
2863 { (exit 1); exit 1; }; }
2864fi
2865
71ab34df 2866 host_makefile_frag="config/mh-cygwin"
2867 ;;
5a92bcc2 2868 *-mingw*)
70d8e49e 2869 host_makefile_frag="config/mh-mingw"
a378fc89 2870 ;;
71ab34df 2871 *-interix*)
2872 host_makefile_frag="config/mh-interix"
2873 ;;
2874 vax-*-ultrix2*)
2875 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2876 tentative_cc=gcc
2877 ;;
2878 *-*-solaris2*)
2879 host_makefile_frag="config/mh-solaris"
2880 ;;
2881 m68k-sun-sunos*)
2882 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2883 # without overflowing the jump tables (-J says to use a 32 bit table)
2884 tentative_cc="cc -J"
2885 ;;
d2b94e36 2886 hppa*-hp-hpux10*)
71ab34df 2887 tentative_cc="cc -Wp,-H256000"
d2b94e36 2888 host_makefile_frag="config/mh-pa-hpux10"
71ab34df 2889 ;;
d2b94e36 2890 hppa*-hp-hpux* | hppa*-*-hiux*)
2891 tentative_cc="cc -Wp,-H256000"
2892 host_makefile_frag="config/mh-pa"
2893 ;;
2894 hppa*-*)
2895 host_makefile_frag="config/mh-pa"
2896 ;;
2897 *-hp-hpux* | *-*-hiux*)
71ab34df 2898 tentative_cc="cc -Wp,-H256000"
2899 ;;
2900 rs6000-*-lynxos*)
2901 # /bin/cc is less than useful for our purposes. Always use GCC
2902 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2903 host_makefile_frag="config/mh-lynxrs6k"
2904 ;;
2b64d19b 2905 powerpc-*-darwin*)
0222d984 2906 host_makefile_frag="config/mh-ppc-darwin"
2907 ;;
9d44a802 2908 powerpc-*-aix*)
2909 host_makefile_frag="config/mh-ppc-aix"
2910 ;;
2911 rs6000-*-aix*)
2912 host_makefile_frag="config/mh-ppc-aix"
2913 ;;
71ab34df 2914 *-*-lynxos*)
2915 # /bin/cc is less than useful for our purposes. Always use GCC
2916 tentative_cc="/bin/gcc"
2917 ;;
2918 *-*-sysv4*)
2919 host_makefile_frag="config/mh-sysv4"
2920 ;;
da9e6519 2921 # This is placed last to prevent interfering with the cases above.
2922 i[3456789]86-*-*)
2923 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2924 host_makefile_frag="config/mh-x86omitfp"
2925 ;;
71ab34df 2926esac
2927fi
2928
8e1fea1a 2929# If we aren't going to be using gcc, see if we can extract a definition
2930# of CC from the fragment.
2931# Actually, use the 'pre-extracted' version above.
2932if test -z "${CC}" && test "${build}" = "${host}" ; then
2933 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2934 found=
2935 for dir in $PATH; do
2936 test -z "$dir" && dir=.
2937 if test -f $dir/gcc; then
2938 found=yes
2939 break
2940 fi
2941 done
2942 IFS="$save_ifs"
2943 if test -z "${found}" && test -n "${tentative_cc}" ; then
2944 CC=$tentative_cc
2945 fi
2946fi
2947
2948if test "${build}" != "${host}" ; then
93c5e793 2949 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2950 AS_FOR_BUILD=${AS_FOR_BUILD-as}
8e1fea1a 2951 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
93c5e793 2952 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2953 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2954 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2955 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2956 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2957 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2958 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2959 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2960 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2961else
2962 AR_FOR_BUILD="\$(AR)"
2963 AS_FOR_BUILD="\$(AS)"
a4af6a58 2964 CC_FOR_BUILD="\$(CC)"
93c5e793 2965 CXX_FOR_BUILD="\$(CXX)"
2966 GCJ_FOR_BUILD="\$(GCJ)"
2967 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2968 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2969 LD_FOR_BUILD="\$(LD)"
2970 NM_FOR_BUILD="\$(NM)"
2971 RANLIB_FOR_BUILD="\$(RANLIB)"
2972 WINDRES_FOR_BUILD="\$(WINDRES)"
2973 WINDMC_FOR_BUILD="\$(WINDMC)"
eae5b2bc 2974fi
2975
2976ac_ext=c
b30fcfae 2977ac_cpp='$CPP $CPPFLAGS'
2978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2983set dummy ${ac_tool_prefix}gcc; ac_word=$2
5084f823 2984echo "$as_me:$LINENO: checking for $ac_word" >&5
2985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2986if test "${ac_cv_prog_CC+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003done
3004done
3005
3006fi
3007fi
3008CC=$ac_cv_prog_CC
3009if test -n "$CC"; then
5084f823 3010 echo "$as_me:$LINENO: result: $CC" >&5
3011echo "${ECHO_T}$CC" >&6
b30fcfae 3012else
5084f823 3013 echo "$as_me:$LINENO: result: no" >&5
3014echo "${ECHO_T}no" >&6
b30fcfae 3015fi
3016
3017fi
3018if test -z "$ac_cv_prog_CC"; then
3019 ac_ct_CC=$CC
a4af6a58 3020 # Extract the first word of "gcc", so it can be a program name with args.
3021set dummy gcc; ac_word=$2
5084f823 3022echo "$as_me:$LINENO: checking for $ac_word" >&5
3023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 3024if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029else
3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH
3032do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 3037 ac_cv_prog_ac_ct_CC="gcc"
3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041done
3042done
3043
3044fi
3045fi
3046ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047if test -n "$ac_ct_CC"; then
5084f823 3048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3049echo "${ECHO_T}$ac_ct_CC" >&6
b30fcfae 3050else
5084f823 3051 echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6
b30fcfae 3053fi
3054
5084f823 3055 CC=$ac_ct_CC
b30fcfae 3056else
3057 CC="$ac_cv_prog_CC"
3058fi
3059
3060if test -z "$CC"; then
5084f823 3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b30fcfae 3063set dummy ${ac_tool_prefix}cc; ac_word=$2
5084f823 3064echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 3066if test "${ac_cv_prog_CC+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 3068else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071else
b30fcfae 3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 3079 ac_cv_prog_CC="${ac_tool_prefix}cc"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083done
3084done
3085
a83ffacf 3086fi
a83ffacf 3087fi
b30fcfae 3088CC=$ac_cv_prog_CC
ae48753c 3089if test -n "$CC"; then
5084f823 3090 echo "$as_me:$LINENO: result: $CC" >&5
3091echo "${ECHO_T}$CC" >&6
a83ffacf 3092else
5084f823 3093 echo "$as_me:$LINENO: result: no" >&5
3094echo "${ECHO_T}no" >&6
a83ffacf 3095fi
3096
5084f823 3097fi
3098if test -z "$ac_cv_prog_CC"; then
3099 ac_ct_CC=$CC
3100 # Extract the first word of "cc", so it can be a program name with args.
3101set dummy cc; ac_word=$2
3102echo "$as_me:$LINENO: checking for $ac_word" >&5
3103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106else
3107 if test -n "$ac_ct_CC"; then
3108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_ac_ct_CC="cc"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
570af75a 3120 fi
5084f823 3121done
3122done
3123
3124fi
3125fi
3126ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127if test -n "$ac_ct_CC"; then
3128 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3129echo "${ECHO_T}$ac_ct_CC" >&6
3130else
3131 echo "$as_me:$LINENO: result: no" >&5
3132echo "${ECHO_T}no" >&6
3133fi
3134
3135 CC=$ac_ct_CC
3136else
3137 CC="$ac_cv_prog_CC"
3138fi
3139
b30fcfae 3140fi
8e1fea1a 3141if test -z "$CC"; then
3142 # Extract the first word of "cc", so it can be a program name with args.
3143set dummy cc; ac_word=$2
5084f823 3144echo "$as_me:$LINENO: checking for $ac_word" >&5
3145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 3146if test "${ac_cv_prog_CC+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 3148else
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3151else
a83ffacf 3152 ac_prog_rejected=no
b30fcfae 3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 3160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161 ac_prog_rejected=yes
3162 continue
3163 fi
3164 ac_cv_prog_CC="cc"
3165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168done
3169done
3170
8e1fea1a 3171if test $ac_prog_rejected = yes; then
3172 # We found a bogon in the path, so make sure we never use it.
3173 set dummy $ac_cv_prog_CC
3174 shift
b30fcfae 3175 if test $# != 0; then
8e1fea1a 3176 # We chose a different compiler from the bogus one.
3177 # However, it has the same basename, so the bogon will be chosen
3178 # first if we set CC to just the basename; use the full file name.
3179 shift
b30fcfae 3180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8e1fea1a 3181 fi
3182fi
3183fi
3184fi
b30fcfae 3185CC=$ac_cv_prog_CC
8e1fea1a 3186if test -n "$CC"; then
5084f823 3187 echo "$as_me:$LINENO: result: $CC" >&5
3188echo "${ECHO_T}$CC" >&6
8e1fea1a 3189else
5084f823 3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
8e1fea1a 3192fi
3193
b30fcfae 3194fi
3195if test -z "$CC"; then
3196 if test -n "$ac_tool_prefix"; then
5084f823 3197 for ac_prog in cl
b30fcfae 3198 do
3199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5084f823 3201echo "$as_me:$LINENO: checking for $ac_word" >&5
3202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 3203if test "${ac_cv_prog_CC+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 3205else
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC="$CC" # Let the user override the test.
3208else
b30fcfae 3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 3216 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220done
3221done
3222
8e1fea1a 3223fi
3224fi
b30fcfae 3225CC=$ac_cv_prog_CC
8e1fea1a 3226if test -n "$CC"; then
5084f823 3227 echo "$as_me:$LINENO: result: $CC" >&5
3228echo "${ECHO_T}$CC" >&6
b1660f25 3229else
5084f823 3230 echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
a4af6a58 3232fi
ae48753c 3233
b30fcfae 3234 test -n "$CC" && break
3235 done
ae48753c 3236fi
b30fcfae 3237if test -z "$CC"; then
3238 ac_ct_CC=$CC
5084f823 3239 for ac_prog in cl
b30fcfae 3240do
3241 # Extract the first word of "$ac_prog", so it can be a program name with args.
3242set dummy $ac_prog; ac_word=$2
5084f823 3243echo "$as_me:$LINENO: checking for $ac_word" >&5
3244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 3245if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
a83ffacf 3247else
b30fcfae 3248 if test -n "$ac_ct_CC"; then
3249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a83ffacf 3250else
b30fcfae 3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 3258 ac_cv_prog_ac_ct_CC="$ac_prog"
3259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262done
3263done
3264
ae48753c 3265fi
3266fi
b30fcfae 3267ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268if test -n "$ac_ct_CC"; then
5084f823 3269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3270echo "${ECHO_T}$ac_ct_CC" >&6
a4af6a58 3271else
5084f823 3272 echo "$as_me:$LINENO: result: no" >&5
3273echo "${ECHO_T}no" >&6
ae48753c 3274fi
a83ffacf 3275
b30fcfae 3276 test -n "$ac_ct_CC" && break
3277done
3278
5084f823 3279 CC=$ac_ct_CC
b30fcfae 3280fi
3281
3282fi
3283
3284
5b2c7553 3285test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3286echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
b30fcfae 3288See \`config.log' for more details." >&5
3289echo "$as_me: error: no acceptable C compiler found in \$PATH
3290See \`config.log' for more details." >&2;}
5b2c7553 3291 { (exit 1); exit 1; }; }; }
b30fcfae 3292
3293# Provide some information about the compiler.
5084f823 3294echo "$as_me:$LINENO:" \
3295 "checking for C compiler version" >&5
b30fcfae 3296ac_compiler=`set X $ac_compile; echo $2`
5084f823 3297{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3298 (eval $ac_compiler --version </dev/null >&5) 2>&5
b30fcfae 3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
5084f823 3302{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3303 (eval $ac_compiler -v </dev/null >&5) 2>&5
b30fcfae 3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
5084f823 3307{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3308 (eval $ac_compiler -V </dev/null >&5) 2>&5
b30fcfae 3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3312
3313cat >conftest.$ac_ext <<_ACEOF
3314/* confdefs.h. */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h. */
3319
3320int
3321main ()
3322{
3323
3324 ;
3325 return 0;
3326}
3327_ACEOF
3328ac_clean_files_save=$ac_clean_files
3329ac_clean_files="$ac_clean_files a.out a.exe b.out"
3330# Try to create an executable without -o first, disregard a.out.
3331# It will help us diagnose broken compilers, and finding out an intuition
3332# of exeext.
5084f823 3333echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3334echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
b30fcfae 3335ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5084f823 3336if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3337 (eval $ac_link_default) 2>&5
b30fcfae 3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; then
5084f823 3341 # Find the output, starting from the most likely. This scheme is
3342# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3343# resort.
3344
3345# Be careful to initialize this variable, since it used to be cached.
3346# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3347ac_cv_exeext=
3348# b.out is created by i960 compilers.
3349for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
b30fcfae 3350do
3351 test -f "$ac_file" || continue
3352 case $ac_file in
5084f823 3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3354 ;;
3355 conftest.$ac_ext )
3356 # This is the source file.
b30fcfae 3357 ;;
3358 [ab].out )
3359 # We found the default executable, but exeext='' is most
3360 # certainly right.
3361 break;;
3362 *.* )
5084f823 3363 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3364 # FIXME: I believe we export ac_cv_exeext for Libtool,
3365 # but it would be cool to find out if it's true. Does anybody
3366 # maintain Libtool? --akim.
3367 export ac_cv_exeext
b30fcfae 3368 break;;
3369 * )
3370 break;;
3371 esac
3372done
3373else
3374 echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
5b2c7553 3377{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3378echo "$as_me: error: in \`$ac_pwd':" >&2;}
b30fcfae 3379{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3380See \`config.log' for more details." >&5
3381echo "$as_me: error: C compiler cannot create executables
3382See \`config.log' for more details." >&2;}
5b2c7553 3383 { (exit 77); exit 77; }; }; }
b30fcfae 3384fi
3385
3386ac_exeext=$ac_cv_exeext
5084f823 3387echo "$as_me:$LINENO: result: $ac_file" >&5
3388echo "${ECHO_T}$ac_file" >&6
b30fcfae 3389
5084f823 3390# Check the compiler produces executables we can run. If not, either
b30fcfae 3391# the compiler is broken, or we cross compile.
5084f823 3392echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3393echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
b30fcfae 3394# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3395# If not cross compiling, check that we can run a simple program.
3396if test "$cross_compiling" != yes; then
3397 if { ac_try='./$ac_file'
5084f823 3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
b30fcfae 3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 cross_compiling=no
3404 else
3405 if test "$cross_compiling" = maybe; then
3406 cross_compiling=yes
3407 else
5b2c7553 3408 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3409echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
b30fcfae 3411If you meant to cross compile, use \`--host'.
3412See \`config.log' for more details." >&5
3413echo "$as_me: error: cannot run C compiled programs.
3414If you meant to cross compile, use \`--host'.
3415See \`config.log' for more details." >&2;}
5b2c7553 3416 { (exit 1); exit 1; }; }; }
b30fcfae 3417 fi
3418 fi
3419fi
5084f823 3420echo "$as_me:$LINENO: result: yes" >&5
3421echo "${ECHO_T}yes" >&6
b30fcfae 3422
3423rm -f a.out a.exe conftest$ac_cv_exeext b.out
3424ac_clean_files=$ac_clean_files_save
5084f823 3425# Check the compiler produces executables we can run. If not, either
b30fcfae 3426# the compiler is broken, or we cross compile.
5084f823 3427echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3428echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3429echo "$as_me:$LINENO: result: $cross_compiling" >&5
3430echo "${ECHO_T}$cross_compiling" >&6
3431
3432echo "$as_me:$LINENO: checking for suffix of executables" >&5
3433echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435 (eval $ac_link) 2>&5
b30fcfae 3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; then
3439 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3440# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3441# work properly (i.e., refer to `conftest.exe'), while it won't with
3442# `rm'.
3443for ac_file in conftest.exe conftest conftest.*; do
3444 test -f "$ac_file" || continue
3445 case $ac_file in
5084f823 3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
b30fcfae 3447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5084f823 3448 export ac_cv_exeext
b30fcfae 3449 break;;
3450 * ) break;;
3451 esac
3452done
ae48753c 3453else
5b2c7553 3454 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3455echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
b30fcfae 3457See \`config.log' for more details." >&5
3458echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3459See \`config.log' for more details." >&2;}
5b2c7553 3460 { (exit 1); exit 1; }; }; }
b30fcfae 3461fi
3462
3463rm -f conftest$ac_cv_exeext
5084f823 3464echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3465echo "${ECHO_T}$ac_cv_exeext" >&6
b30fcfae 3466
3467rm -f conftest.$ac_ext
3468EXEEXT=$ac_cv_exeext
3469ac_exeext=$EXEEXT
5084f823 3470echo "$as_me:$LINENO: checking for suffix of object files" >&5
3471echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
b30fcfae 3472if test "${ac_cv_objext+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3474else
3475 cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481
3482int
3483main ()
3484{
3485
3486 ;
3487 return 0;
3488}
3489_ACEOF
3490rm -f conftest.o conftest.obj
5084f823 3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>&5
b30fcfae 3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; then
5084f823 3496 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
b30fcfae 3497 case $ac_file in
5084f823 3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
b30fcfae 3499 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3500 break;;
3501 esac
3502done
3503else
3504 echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
5b2c7553 3507{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3508echo "$as_me: error: in \`$ac_pwd':" >&2;}
b30fcfae 3509{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3510See \`config.log' for more details." >&5
3511echo "$as_me: error: cannot compute suffix of object files: cannot compile
3512See \`config.log' for more details." >&2;}
5b2c7553 3513 { (exit 1); exit 1; }; }; }
b30fcfae 3514fi
3515
3516rm -f conftest.$ac_cv_objext conftest.$ac_ext
3517fi
5084f823 3518echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3519echo "${ECHO_T}$ac_cv_objext" >&6
b30fcfae 3520OBJEXT=$ac_cv_objext
3521ac_objext=$OBJEXT
5084f823 3522echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3523echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
b30fcfae 3524if test "${ac_cv_c_compiler_gnu+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527 cat >conftest.$ac_ext <<_ACEOF
3528/* confdefs.h. */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h. */
3533
3534int
3535main ()
3536{
3537#ifndef __GNUC__
3538 choke me
3539#endif
3540
3541 ;
3542 return 0;
3543}
3544_ACEOF
3545rm -f conftest.$ac_objext
5084f823 3546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547 (eval $ac_compile) 2>conftest.er1
b30fcfae 3548 ac_status=$?
3549 grep -v '^ *+' conftest.er1 >conftest.err
3550 rm -f conftest.er1
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3553 (exit $ac_status); } &&
3554 { ac_try='test -z "$ac_c_werror_flag"
3555 || test ! -s conftest.err'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
b30fcfae 3567 ac_compiler_gnu=yes
3568else
3569 echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
5084f823 3572ac_compiler_gnu=no
b30fcfae 3573fi
5084f823 3574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 3575ac_cv_c_compiler_gnu=$ac_compiler_gnu
3576
3577fi
5084f823 3578echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3579echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
b30fcfae 3580GCC=`test $ac_compiler_gnu = yes && echo yes`
3581ac_test_CFLAGS=${CFLAGS+set}
3582ac_save_CFLAGS=$CFLAGS
5084f823 3583CFLAGS="-g"
3584echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3585echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
b30fcfae 3586if test "${ac_cv_prog_cc_g+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
5084f823 3589 cat >conftest.$ac_ext <<_ACEOF
b30fcfae 3590/* confdefs.h. */
3591_ACEOF
3592cat confdefs.h >>conftest.$ac_ext
3593cat >>conftest.$ac_ext <<_ACEOF
3594/* end confdefs.h. */
3595
3596int
3597main ()
3598{
3599
3600 ;
3601 return 0;
3602}
3603_ACEOF
3604rm -f conftest.$ac_objext
5084f823 3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
b30fcfae 3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
b30fcfae 3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
b30fcfae 3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3625 (exit $ac_status); }; }; then
8e1fea1a 3626 ac_cv_prog_cc_g=yes
3627else
b30fcfae 3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
ae48753c 3630
5084f823 3631ac_cv_prog_cc_g=no
a83ffacf 3632fi
5084f823 3633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 3634fi
5084f823 3635echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3636echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8e1fea1a 3637if test "$ac_test_CFLAGS" = set; then
b30fcfae 3638 CFLAGS=$ac_save_CFLAGS
8e1fea1a 3639elif test $ac_cv_prog_cc_g = yes; then
3640 if test "$GCC" = yes; then
3641 CFLAGS="-g -O2"
3642 else
3643 CFLAGS="-g"
3644 fi
3645else
3646 if test "$GCC" = yes; then
3647 CFLAGS="-O2"
3648 else
3649 CFLAGS=
3650 fi
3651fi
5084f823 3652echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3653echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3654if test "${ac_cv_prog_cc_stdc+set}" = set; then
b30fcfae 3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
5084f823 3657 ac_cv_prog_cc_stdc=no
b30fcfae 3658ac_save_CC=$CC
3659cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h. */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h. */
3665#include <stdarg.h>
3666#include <stdio.h>
3667#include <sys/types.h>
3668#include <sys/stat.h>
3669/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3670struct buf { int x; };
3671FILE * (*rcsopen) (struct buf *, struct stat *, int);
3672static char *e (p, i)
3673 char **p;
3674 int i;
3675{
3676 return p[i];
3677}
3678static char *f (char * (*g) (char **, int), char **p, ...)
3679{
3680 char *s;
3681 va_list v;
3682 va_start (v,p);
3683 s = g (p, va_arg (v,int));
3684 va_end (v);
3685 return s;
3686}
3687
3688/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3689 function prototypes and stuff, but not '\xHH' hex character constants.
3690 These don't provoke an error unfortunately, instead are silently treated
5084f823 3691 as 'x'. The following induces an error, until -std1 is added to get
b30fcfae 3692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3693 array size at least. It's necessary to write '\x00'==0 to get something
5084f823 3694 that's true only with -std1. */
b30fcfae 3695int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3696
3697int test (int i, double x);
3698struct s1 {int (*f) (int a);};
3699struct s2 {int (*f) (double a);};
3700int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3701int argc;
3702char **argv;
3703int
3704main ()
3705{
3706return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3707 ;
3708 return 0;
3709}
3710_ACEOF
5084f823 3711# Don't try gcc -ansi; that turns off useful extensions and
3712# breaks some systems' header files.
3713# AIX -qlanglvl=ansi
3714# Ultrix and OSF/1 -std1
3715# HP-UX 10.20 and later -Ae
3716# HP-UX older versions -Aa -D_HPUX_SOURCE
3717# SVR4 -Xc -D__EXTENSIONS__
3718for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b30fcfae 3719do
3720 CC="$ac_save_CC $ac_arg"
3721 rm -f conftest.$ac_objext
5084f823 3722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723 (eval $ac_compile) 2>conftest.er1
b30fcfae 3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3729 (exit $ac_status); } &&
3730 { ac_try='test -z "$ac_c_werror_flag"
3731 || test ! -s conftest.err'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; } &&
3737 { ac_try='test -s conftest.$ac_objext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 (eval $ac_try) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 ac_cv_prog_cc_stdc=$ac_arg
3744break
b30fcfae 3745else
3746 echo "$as_me: failed program was:" >&5
3747sed 's/^/| /' conftest.$ac_ext >&5
3748
3749fi
5084f823 3750rm -f conftest.err conftest.$ac_objext
b30fcfae 3751done
5084f823 3752rm -f conftest.$ac_ext conftest.$ac_objext
b30fcfae 3753CC=$ac_save_CC
3754
3755fi
5084f823 3756
3757case "x$ac_cv_prog_cc_stdc" in
3758 x|xno)
3759 echo "$as_me:$LINENO: result: none needed" >&5
3760echo "${ECHO_T}none needed" >&6 ;;
b30fcfae 3761 *)
5084f823 3762 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3763echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3764 CC="$CC $ac_cv_prog_cc_stdc" ;;
b30fcfae 3765esac
3766
5084f823 3767# Some people use a C++ compiler to compile C. Since we use `exit',
3768# in C++ we need to declare it. In case someone uses the same compiler
3769# for both compiling C and C++ we need to have the C++ compiler decide
3770# the declaration of exit, since it's the most demanding environment.
3771cat >conftest.$ac_ext <<_ACEOF
3772#ifndef __cplusplus
3773 choke me
3774#endif
3775_ACEOF
3776rm -f conftest.$ac_objext
3777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778 (eval $ac_compile) 2>conftest.er1
3779 ac_status=$?
3780 grep -v '^ *+' conftest.er1 >conftest.err
3781 rm -f conftest.er1
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try='test -z "$ac_c_werror_flag"
3786 || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try='test -s conftest.$ac_objext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 for ac_declaration in \
3799 '' \
3800 'extern "C" void std::exit (int) throw (); using std::exit;' \
3801 'extern "C" void std::exit (int); using std::exit;' \
3802 'extern "C" void exit (int) throw ();' \
3803 'extern "C" void exit (int);' \
3804 'void exit (int);'
3805do
3806 cat >conftest.$ac_ext <<_ACEOF
3807/* confdefs.h. */
3808_ACEOF
3809cat confdefs.h >>conftest.$ac_ext
3810cat >>conftest.$ac_ext <<_ACEOF
3811/* end confdefs.h. */
3812$ac_declaration
3813#include <stdlib.h>
3814int
3815main ()
3816{
3817exit (42);
3818 ;
3819 return 0;
3820}
3821_ACEOF
3822rm -f conftest.$ac_objext
3823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3824 (eval $ac_compile) 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } &&
3831 { ac_try='test -z "$ac_c_werror_flag"
3832 || test ! -s conftest.err'
3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 (eval $ac_try) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; } &&
3838 { ac_try='test -s conftest.$ac_objext'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; }; then
3844 :
3845else
3846 echo "$as_me: failed program was:" >&5
3847sed 's/^/| /' conftest.$ac_ext >&5
3848
3849continue
3850fi
3851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3852 cat >conftest.$ac_ext <<_ACEOF
3853/* confdefs.h. */
3854_ACEOF
3855cat confdefs.h >>conftest.$ac_ext
3856cat >>conftest.$ac_ext <<_ACEOF
3857/* end confdefs.h. */
3858$ac_declaration
3859int
3860main ()
3861{
3862exit (42);
3863 ;
3864 return 0;
3865}
3866_ACEOF
3867rm -f conftest.$ac_objext
3868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_c_werror_flag"
3877 || test ! -s conftest.err'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; } &&
3883 { ac_try='test -s conftest.$ac_objext'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 (eval $ac_try) 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; }; then
3889 break
3890else
3891 echo "$as_me: failed program was:" >&5
3892sed 's/^/| /' conftest.$ac_ext >&5
3893
3894fi
3895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3896done
3897rm -f conftest*
3898if test -n "$ac_declaration"; then
3899 echo '#ifdef __cplusplus' >>confdefs.h
3900 echo $ac_declaration >>confdefs.h
3901 echo '#endif' >>confdefs.h
3902fi
3903
3904else
3905 echo "$as_me: failed program was:" >&5
3906sed 's/^/| /' conftest.$ac_ext >&5
3907
3908fi
3909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3910ac_ext=c
3911ac_cpp='$CPP $CPPFLAGS'
3912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915
3916ac_ext=cc
3917ac_cpp='$CXXCPP $CPPFLAGS'
3918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3921if test -n "$ac_tool_prefix"; then
3922 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3923 do
3924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3926echo "$as_me:$LINENO: checking for $ac_word" >&5
3927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928if test "${ac_cv_prog_CXX+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930else
3931 if test -n "$CXX"; then
3932 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3933else
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945done
3946done
8e1fea1a 3947
eae5b2bc 3948fi
3949fi
3950CXX=$ac_cv_prog_CXX
3951if test -n "$CXX"; then
5084f823 3952 echo "$as_me:$LINENO: result: $CXX" >&5
3953echo "${ECHO_T}$CXX" >&6
eae5b2bc 3954else
5084f823 3955 echo "$as_me:$LINENO: result: no" >&5
3956echo "${ECHO_T}no" >&6
eae5b2bc 3957fi
3958
3959 test -n "$CXX" && break
3960 done
3961fi
3962if test -z "$CXX"; then
3963 ac_ct_CXX=$CXX
5084f823 3964 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
eae5b2bc 3965do
3966 # Extract the first word of "$ac_prog", so it can be a program name with args.
3967set dummy $ac_prog; ac_word=$2
5084f823 3968echo "$as_me:$LINENO: checking for $ac_word" >&5
3969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
eae5b2bc 3970if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
3973 if test -n "$ac_ct_CXX"; then
3974 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3975else
3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977for as_dir in $PATH
3978do
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eae5b2bc 3983 ac_cv_prog_ac_ct_CXX="$ac_prog"
3984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 break 2
3986 fi
3987done
3988done
3989
3990fi
3991fi
3992ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3993if test -n "$ac_ct_CXX"; then
5084f823 3994 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3995echo "${ECHO_T}$ac_ct_CXX" >&6
eae5b2bc 3996else
5084f823 3997 echo "$as_me:$LINENO: result: no" >&5
3998echo "${ECHO_T}no" >&6
eae5b2bc 3999fi
4000
4001 test -n "$ac_ct_CXX" && break
4002done
5084f823 4003test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
eae5b2bc 4004
5084f823 4005 CXX=$ac_ct_CXX
eae5b2bc 4006fi
4007
5084f823 4008
eae5b2bc 4009# Provide some information about the compiler.
5084f823 4010echo "$as_me:$LINENO:" \
4011 "checking for C++ compiler version" >&5
eae5b2bc 4012ac_compiler=`set X $ac_compile; echo $2`
5084f823 4013{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4014 (eval $ac_compiler --version </dev/null >&5) 2>&5
eae5b2bc 4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }
5084f823 4018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4019 (eval $ac_compiler -v </dev/null >&5) 2>&5
eae5b2bc 4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }
5084f823 4023{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4024 (eval $ac_compiler -V </dev/null >&5) 2>&5
eae5b2bc 4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }
4028
5084f823 4029echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4030echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
eae5b2bc 4031if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034 cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h. */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h. */
4040
4041int
4042main ()
4043{
4044#ifndef __GNUC__
4045 choke me
4046#endif
4047
4048 ;
4049 return 0;
4050}
4051_ACEOF
4052rm -f conftest.$ac_objext
5084f823 4053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>conftest.er1
eae5b2bc 4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_cxx_werror_flag"
4062 || test ! -s conftest.err'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
eae5b2bc 4074 ac_compiler_gnu=yes
4075else
4076 echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
5084f823 4079ac_compiler_gnu=no
eae5b2bc 4080fi
5084f823 4081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eae5b2bc 4082ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4083
4084fi
5084f823 4085echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4086echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
eae5b2bc 4087GXX=`test $ac_compiler_gnu = yes && echo yes`
4088ac_test_CXXFLAGS=${CXXFLAGS+set}
4089ac_save_CXXFLAGS=$CXXFLAGS
5084f823 4090CXXFLAGS="-g"
4091echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4092echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
eae5b2bc 4093if test "${ac_cv_prog_cxx_g+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
5084f823 4096 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 4097/* confdefs.h. */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h. */
4102
4103int
4104main ()
4105{
4106
4107 ;
4108 return 0;
4109}
4110_ACEOF
4111rm -f conftest.$ac_objext
5084f823 4112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4113 (eval $ac_compile) 2>conftest.er1
eae5b2bc 4114 ac_status=$?
4115 grep -v '^ *+' conftest.er1 >conftest.err
4116 rm -f conftest.er1
4117 cat conftest.err >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4119 (exit $ac_status); } &&
4120 { ac_try='test -z "$ac_cxx_werror_flag"
4121 || test ! -s conftest.err'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 (eval $ac_try) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
eae5b2bc 4133 ac_cv_prog_cxx_g=yes
4134else
4135 echo "$as_me: failed program was:" >&5
4136sed 's/^/| /' conftest.$ac_ext >&5
4137
5084f823 4138ac_cv_prog_cxx_g=no
4139fi
4140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4141fi
4142echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4143echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4144if test "$ac_test_CXXFLAGS" = set; then
4145 CXXFLAGS=$ac_save_CXXFLAGS
4146elif test $ac_cv_prog_cxx_g = yes; then
4147 if test "$GXX" = yes; then
4148 CXXFLAGS="-g -O2"
4149 else
4150 CXXFLAGS="-g"
4151 fi
4152else
4153 if test "$GXX" = yes; then
4154 CXXFLAGS="-O2"
4155 else
4156 CXXFLAGS=
4157 fi
4158fi
4159for ac_declaration in \
4160 '' \
4161 'extern "C" void std::exit (int) throw (); using std::exit;' \
4162 'extern "C" void std::exit (int); using std::exit;' \
4163 'extern "C" void exit (int) throw ();' \
4164 'extern "C" void exit (int);' \
4165 'void exit (int);'
4166do
4167 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 4168/* confdefs.h. */
4169_ACEOF
4170cat confdefs.h >>conftest.$ac_ext
4171cat >>conftest.$ac_ext <<_ACEOF
4172/* end confdefs.h. */
5084f823 4173$ac_declaration
4174#include <stdlib.h>
eae5b2bc 4175int
4176main ()
4177{
5084f823 4178exit (42);
eae5b2bc 4179 ;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext
5084f823 4184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>conftest.er1
eae5b2bc 4186 ac_status=$?
4187 grep -v '^ *+' conftest.er1 >conftest.err
4188 rm -f conftest.er1
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4191 (exit $ac_status); } &&
4192 { ac_try='test -z "$ac_cxx_werror_flag"
4193 || test ! -s conftest.err'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 (eval $ac_try) 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; } &&
4199 { ac_try='test -s conftest.$ac_objext'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
eae5b2bc 4205 :
4206else
4207 echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
2f8725b0 4209
5084f823 4210continue
4211fi
4212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4213 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 4214/* confdefs.h. */
4215_ACEOF
4216cat confdefs.h >>conftest.$ac_ext
4217cat >>conftest.$ac_ext <<_ACEOF
4218/* end confdefs.h. */
5084f823 4219$ac_declaration
eae5b2bc 4220int
4221main ()
4222{
5084f823 4223exit (42);
eae5b2bc 4224 ;
4225 return 0;
4226}
4227_ACEOF
4228rm -f conftest.$ac_objext
5084f823 4229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230 (eval $ac_compile) 2>conftest.er1
eae5b2bc 4231 ac_status=$?
4232 grep -v '^ *+' conftest.er1 >conftest.err
4233 rm -f conftest.er1
4234 cat conftest.err >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4236 (exit $ac_status); } &&
4237 { ac_try='test -z "$ac_cxx_werror_flag"
4238 || test ! -s conftest.err'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest.$ac_objext'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 break
eae5b2bc 4251else
4252 echo "$as_me: failed program was:" >&5
4253sed 's/^/| /' conftest.$ac_ext >&5
4254
570af75a 4255fi
5084f823 4256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4257done
4258rm -f conftest*
4259if test -n "$ac_declaration"; then
4260 echo '#ifdef __cplusplus' >>confdefs.h
4261 echo $ac_declaration >>confdefs.h
4262 echo '#endif' >>confdefs.h
eae5b2bc 4263fi
4264
4265ac_ext=c
4266ac_cpp='$CPP $CPPFLAGS'
4267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271
4272# We must set the default linker to the linker used by gcc for the correct
4273# operation of libtool. If LD is not defined and we are using gcc, try to
4274# set the LD default to the ld used by gcc.
4275if test -z "$LD"; then
4276 if test "$GCC" = yes; then
4277 case $build in
4278 *-*-mingw*)
4279 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4280 *)
4281 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4282 esac
4283 case $gcc_prog_ld in
4284 # Accept absolute paths.
4285 [\\/]* | [A-Za-z]:[\\/]*)
4286 LD="$gcc_prog_ld" ;;
4287 esac
4288 fi
2f8725b0 4289fi
4290
2f8725b0 4291
4292
8e1fea1a 4293
b30fcfae 4294if test -n "$ac_tool_prefix"; then
4295 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
8e1fea1a 4296set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5084f823 4297echo "$as_me:$LINENO: checking for $ac_word" >&5
4298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4299if test "${ac_cv_prog_GNATBIND+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4301else
4302 if test -n "$GNATBIND"; then
4303 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4304else
b30fcfae 4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4312 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316done
4317done
4318
8e1fea1a 4319fi
4320fi
b30fcfae 4321GNATBIND=$ac_cv_prog_GNATBIND
8e1fea1a 4322if test -n "$GNATBIND"; then
5084f823 4323 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4324echo "${ECHO_T}$GNATBIND" >&6
8e1fea1a 4325else
5084f823 4326 echo "$as_me:$LINENO: result: no" >&5
4327echo "${ECHO_T}no" >&6
8e1fea1a 4328fi
4329
b30fcfae 4330fi
8e1fea1a 4331if test -z "$ac_cv_prog_GNATBIND"; then
b30fcfae 4332 ac_ct_GNATBIND=$GNATBIND
8e1fea1a 4333 # Extract the first word of "gnatbind", so it can be a program name with args.
4334set dummy gnatbind; ac_word=$2
5084f823 4335echo "$as_me:$LINENO: checking for $ac_word" >&5
4336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4337if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4339else
b30fcfae 4340 if test -n "$ac_ct_GNATBIND"; then
4341 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
8e1fea1a 4342else
b30fcfae 4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4350 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354done
4355done
4356
5084f823 4357 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
8e1fea1a 4358fi
4359fi
b30fcfae 4360ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4361if test -n "$ac_ct_GNATBIND"; then
5084f823 4362 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4363echo "${ECHO_T}$ac_ct_GNATBIND" >&6
8e1fea1a 4364else
5084f823 4365 echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
8e1fea1a 4367fi
4368
5084f823 4369 GNATBIND=$ac_ct_GNATBIND
8e1fea1a 4370else
b30fcfae 4371 GNATBIND="$ac_cv_prog_GNATBIND"
8e1fea1a 4372fi
4373
b30fcfae 4374if test -n "$ac_tool_prefix"; then
4375 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
a18b2c54 4376set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5084f823 4377echo "$as_me:$LINENO: checking for $ac_word" >&5
4378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4379if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
a18b2c54 4381else
4382 if test -n "$GNATMAKE"; then
4383 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4384else
b30fcfae 4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4392 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4395 fi
4396done
4397done
4398
a18b2c54 4399fi
4400fi
b30fcfae 4401GNATMAKE=$ac_cv_prog_GNATMAKE
a18b2c54 4402if test -n "$GNATMAKE"; then
5084f823 4403 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4404echo "${ECHO_T}$GNATMAKE" >&6
a18b2c54 4405else
5084f823 4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
a18b2c54 4408fi
4409
b30fcfae 4410fi
a18b2c54 4411if test -z "$ac_cv_prog_GNATMAKE"; then
b30fcfae 4412 ac_ct_GNATMAKE=$GNATMAKE
a18b2c54 4413 # Extract the first word of "gnatmake", so it can be a program name with args.
4414set dummy gnatmake; ac_word=$2
5084f823 4415echo "$as_me:$LINENO: checking for $ac_word" >&5
4416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4417if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
a18b2c54 4419else
b30fcfae 4420 if test -n "$ac_ct_GNATMAKE"; then
4421 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
a18b2c54 4422else
b30fcfae 4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4430 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434done
4435done
4436
5084f823 4437 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
a18b2c54 4438fi
4439fi
b30fcfae 4440ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4441if test -n "$ac_ct_GNATMAKE"; then
5084f823 4442 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4443echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
a18b2c54 4444else
5084f823 4445 echo "$as_me:$LINENO: result: no" >&5
4446echo "${ECHO_T}no" >&6
a18b2c54 4447fi
4448
5084f823 4449 GNATMAKE=$ac_ct_GNATMAKE
a18b2c54 4450else
b30fcfae 4451 GNATMAKE="$ac_cv_prog_GNATMAKE"
a18b2c54 4452fi
4453
5084f823 4454echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4455echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
b30fcfae 4456if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4458else
4459 cat >conftest.adb <<EOF
4460procedure conftest is begin null; end conftest;
4461EOF
4462acx_cv_cc_gcc_supports_ada=no
4463# There is a bug in old released versions of GCC which causes the
4464# driver to exit successfully when the appropriate language module
4465# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4466# Therefore we must check for the error message as well as an
4467# unsuccessful exit.
216de822 4468# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4469# given a .adb file, but produce no object file. So we must check
4470# if an object file was really produced to guard against this.
8e1fea1a 4471errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
216de822 4472if test x"$errors" = x && test -f conftest.$ac_objext; then
8e1fea1a 4473 acx_cv_cc_gcc_supports_ada=yes
8e1fea1a 4474fi
4475rm -f conftest.*
4476fi
5084f823 4477echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4478echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
8e1fea1a 4479
a18b2c54 4480if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
8e1fea1a 4481 have_gnat=yes
4482else
4483 have_gnat=no
4484fi
4485
5084f823 4486echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4487echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
b30fcfae 4488if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
7bcc3b4a 4490else
4491 echo abfoo >t1
4492 echo cdfoo >t2
4493 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
697dfd2c 4494 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4495 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4496 :
4497 else
4498 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4499 fi
4500 fi
7bcc3b4a 4501 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4502 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
697dfd2c 4503 :
7bcc3b4a 4504 else
4505 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4506 fi
4507 fi
4508 rm t1 t2
4509
4510fi
5084f823 4511echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4512echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7bcc3b4a 4513do_compare="$gcc_cv_prog_cmp_skip"
4514
4515
8e1fea1a 4516
7ab76cec 4517# See if we are building gcc with C++.
4518# Check whether --enable-build-with-cxx or --disable-build-with-cxx was given.
4519if test "${enable_build_with_cxx+set}" = set; then
4520 enableval="$enable_build_with_cxx"
4521 ENABLE_BUILD_WITH_CXX=$enableval
4522else
4523 ENABLE_BUILD_WITH_CXX=no
4524fi;
4525
7601a55c 4526# Check for GMP, MPFR and MPC
d45318b3 4527gmplibs="-lmpfr -lgmp"
4ee9c684 4528gmpinc=
d45318b3 4529have_gmp=no
7aed6ac5 4530mpclibs=-lmpc
7601a55c 4531mpcinc=
4532have_mpc=no
4533
4534# Specify a location for mpc
4535# check for this first so it ends up on the link line before mpfr.
4536
4537# Check whether --with-mpc or --without-mpc was given.
4538if test "${with_mpc+set}" = set; then
4539 withval="$with_mpc"
4540
4541fi;
4542
4543# Check whether --with-mpc_include or --without-mpc_include was given.
4544if test "${with_mpc_include+set}" = set; then
4545 withval="$with_mpc_include"
4546
4547fi;
4548
4549# Check whether --with-mpc_lib or --without-mpc_lib was given.
4550if test "${with_mpc_lib+set}" = set; then
4551 withval="$with_mpc_lib"
4552
4553fi;
4554
4555if test "x$with_mpc" != x; then
4556 mpclibs="-L$with_mpc/lib -lmpc"
4557 mpcinc="-I$with_mpc/include $mpcinc"
4558fi
4559if test "x$with_mpc_include" != x; then
4560 mpcinc="-I$with_mpc_include $mpcinc"
4561fi
4562if test "x$with_mpc_lib" != x; then
4563 mpclibs="-L$with_mpc_lib -lmpc"
4564fi
4565if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4566 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4567 mpcinc='-I$$s/mpc/src '"$mpcinc"
4568 # Do not test the mpc version. Assume that it is sufficient, since
4569 # it is in the source tree, and the library has not been built yet
4570 # but it would be included on the link line in the version check below
4571 # hence making the test fail.
4572 have_mpc=yes
4573fi
d45318b3 4574
5ca838b8 4575# Specify a location for mpfr
4576# check for this first so it ends up on the link line before gmp.
b30fcfae 4577
5084f823 4578# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
5ca838b8 4579if test "${with_mpfr_dir+set}" = set; then
5084f823 4580 withval="$with_mpfr_dir"
4581 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
b30fcfae 4582Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4583echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4584Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4585 { (exit 1); exit 1; }; }
5084f823 4586fi;
5ca838b8 4587
4588
5084f823 4589# Check whether --with-mpfr or --without-mpfr was given.
5ca838b8 4590if test "${with_mpfr+set}" = set; then
5084f823 4591 withval="$with_mpfr"
b30fcfae 4592
5084f823 4593fi;
5ca838b8 4594
5084f823 4595# Check whether --with-mpfr_include or --without-mpfr_include was given.
a5144c1d 4596if test "${with_mpfr_include+set}" = set; then
5084f823 4597 withval="$with_mpfr_include"
b30fcfae 4598
5084f823 4599fi;
a5144c1d 4600
5084f823 4601# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
a5144c1d 4602if test "${with_mpfr_lib+set}" = set; then
5084f823 4603 withval="$with_mpfr_lib"
a5144c1d 4604
5084f823 4605fi;
5ca838b8 4606
4607if test "x$with_mpfr" != x; then
4608 gmplibs="-L$with_mpfr/lib $gmplibs"
4609 gmpinc="-I$with_mpfr/include"
4610fi
a5144c1d 4611if test "x$with_mpfr_include" != x; then
4612 gmpinc="-I$with_mpfr_include"
4613fi
4614if test "x$with_mpfr_lib" != x; then
4615 gmplibs="-L$with_mpfr_lib $gmplibs"
4616fi
d45318b3 4617if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4618 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4619 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
7601a55c 4620 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
d45318b3 4621 # Do not test the mpfr version. Assume that it is sufficient, since
4622 # it is in the source tree, and the library has not been built yet
4623 # but it would be included on the link line in the version check below
4624 # hence making the test fail.
4625 have_gmp=yes
4626fi
5ca838b8 4627
4ee9c684 4628# Specify a location for gmp
b30fcfae 4629
5084f823 4630# Check whether --with-gmp-dir or --without-gmp-dir was given.
4ee9c684 4631if test "${with_gmp_dir+set}" = set; then
5084f823 4632 withval="$with_gmp_dir"
4633 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
b30fcfae 4634Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4635echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4636Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4637 { (exit 1); exit 1; }; }
5084f823 4638fi;
4ee9c684 4639
4ee9c684 4640
5084f823 4641# Check whether --with-gmp or --without-gmp was given.
4ee9c684 4642if test "${with_gmp+set}" = set; then
5084f823 4643 withval="$with_gmp"
b30fcfae 4644
5084f823 4645fi;
4ee9c684 4646
5084f823 4647# Check whether --with-gmp_include or --without-gmp_include was given.
a5144c1d 4648if test "${with_gmp_include+set}" = set; then
5084f823 4649 withval="$with_gmp_include"
b30fcfae 4650
5084f823 4651fi;
a5144c1d 4652
5084f823 4653# Check whether --with-gmp_lib or --without-gmp_lib was given.
a5144c1d 4654if test "${with_gmp_lib+set}" = set; then
5084f823 4655 withval="$with_gmp_lib"
a5144c1d 4656
5084f823 4657fi;
a5144c1d 4658
4ee9c684 4659
5ca838b8 4660if test "x$with_gmp" != x; then
4661 gmplibs="-L$with_gmp/lib $gmplibs"
4662 gmpinc="-I$with_gmp/include $gmpinc"
4ee9c684 4663fi
a5144c1d 4664if test "x$with_gmp_include" != x; then
4665 gmpinc="-I$with_gmp_include $gmpinc"
4666fi
4667if test "x$with_gmp_lib" != x; then
4668 gmplibs="-L$with_gmp_lib $gmplibs"
4669fi
d45318b3 4670if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4671 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4672 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
bff7ea4a 4673 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
7601a55c 4674 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
d45318b3 4675 # Do not test the gmp version. Assume that it is sufficient, since
4676 # it is in the source tree, and the library has not been built yet
4677 # but it would be included on the link line in the version check below
4678 # hence making the test fail.
4679 have_gmp=yes
4680fi
4ee9c684 4681
16c9b2e3 4682if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
d45318b3 4683 have_gmp=yes
4684 saved_CFLAGS="$CFLAGS"
4685 CFLAGS="$CFLAGS $gmpinc"
4686 # Check GMP actually works
5084f823 4687 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4688echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
b30fcfae 4689
4690cat >conftest.$ac_ext <<_ACEOF
4691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
4ee9c684 4696#include "gmp.h"
b30fcfae 4697int
4698main ()
4699{
4ee9c684 4700
fec76ae9 4701 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
d45318b3 4702 choke me
4703 #endif
b30fcfae 4704
4705 ;
4706 return 0;
4707}
4708_ACEOF
4709rm -f conftest.$ac_objext
5084f823 4710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711 (eval $ac_compile) 2>conftest.er1
b30fcfae 4712 ac_status=$?
4713 grep -v '^ *+' conftest.er1 >conftest.err
4714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4717 (exit $ac_status); } &&
4718 { ac_try='test -z "$ac_c_werror_flag"
4719 || test ! -s conftest.err'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; } &&
4725 { ac_try='test -s conftest.$ac_objext'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 (eval $ac_try) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 echo "$as_me:$LINENO: result: yes" >&5
4732echo "${ECHO_T}yes" >&6
b30fcfae 4733else
4734 echo "$as_me: failed program was:" >&5
4735sed 's/^/| /' conftest.$ac_ext >&5
4736
5084f823 4737echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6; have_gmp=no
b30fcfae 4739fi
5084f823 4740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 4741
7601a55c 4742 # If we have GMP, check the MPFR version.
d45318b3 4743 if test x"$have_gmp" = xyes; then
5084f823 4744 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4745echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
b30fcfae 4746 cat >conftest.$ac_ext <<_ACEOF
4747/* confdefs.h. */
4748_ACEOF
4749cat confdefs.h >>conftest.$ac_ext
4750cat >>conftest.$ac_ext <<_ACEOF
4751/* end confdefs.h. */
6a086156 4752#include <gmp.h>
d45318b3 4753 #include <mpfr.h>
b30fcfae 4754int
4755main ()
4756{
112f3d57 4757
fec76ae9 4758 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
d45318b3 4759 choke me
4760 #endif
b30fcfae 4761
4762 ;
4763 return 0;
4764}
4765_ACEOF
7601a55c 4766rm -f conftest.$ac_objext
4767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>conftest.er1
b30fcfae 4769 ac_status=$?
4770 grep -v '^ *+' conftest.er1 >conftest.err
4771 rm -f conftest.er1
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4774 (exit $ac_status); } &&
4775 { ac_try='test -z "$ac_c_werror_flag"
4776 || test ! -s conftest.err'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; } &&
7601a55c 4782 { ac_try='test -s conftest.$ac_objext'
5084f823 4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 (eval $ac_try) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
b30fcfae 4788 cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h. */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h. */
0157cc75 4794#include <gmp.h>
d45318b3 4795 #include <mpfr.h>
b30fcfae 4796int
4797main ()
4798{
0157cc75 4799
c214098d 4800 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
d45318b3 4801 choke me
4802 #endif
7601a55c 4803
4804 ;
4805 return 0;
4806}
4807_ACEOF
4808rm -f conftest.$ac_objext
4809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>conftest.er1
4811 ac_status=$?
4812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -z "$ac_c_werror_flag"
4818 || test ! -s conftest.err'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 echo "$as_me:$LINENO: result: yes" >&5
4831echo "${ECHO_T}yes" >&6
4832else
4833 echo "$as_me: failed program was:" >&5
4834sed 's/^/| /' conftest.$ac_ext >&5
4835
4836echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4837echo "${ECHO_T}buggy but acceptable" >&6
4838fi
4839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4840else
4841 echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844echo "$as_me:$LINENO: result: no" >&5
4845echo "${ECHO_T}no" >&6; have_gmp=no
4846fi
4847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4848 fi
4849
4850 # Check for the MPC header version.
4851 if test x"$have_mpc" != xyes ; then
4852 CFLAGS="$CFLAGS $mpcinc"
4853 echo "$as_me:$LINENO: checking for the correct version of mpc.h" >&5
4854echo $ECHO_N "checking for the correct version of mpc.h... $ECHO_C" >&6
4855 cat >conftest.$ac_ext <<_ACEOF
4856/* confdefs.h. */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h. */
4861#include <mpc.h>
4862int
4863main ()
4864{
4865
4866 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
4867 choke me
4868 #endif
4869
4870 ;
4871 return 0;
4872}
4873_ACEOF
4874rm -f conftest.$ac_objext
4875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 echo "$as_me:$LINENO: result: yes" >&5
4897echo "${ECHO_T}yes" >&6; have_mpc=maybe
4898else
4899 echo "$as_me: failed program was:" >&5
4900sed 's/^/| /' conftest.$ac_ext >&5
4901
4902echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
4904fi
4905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4906 fi
4907
4908 # Now check the MPFR library.
4909 if test x"$have_gmp" = xyes; then
4910 saved_LIBS="$LIBS"
4911 LIBS="$LIBS $gmplibs"
4912 echo "$as_me:$LINENO: checking for the correct version of the gmp/mpfr libraries" >&5
4913echo $ECHO_N "checking for the correct version of the gmp/mpfr libraries... $ECHO_C" >&6
4914 cat >conftest.$ac_ext <<_ACEOF
4915/* confdefs.h. */
4916_ACEOF
4917cat confdefs.h >>conftest.$ac_ext
4918cat >>conftest.$ac_ext <<_ACEOF
4919/* end confdefs.h. */
4920#include <gmp.h>
4921 #include <mpfr.h>
4922int
4923main ()
4924{
4925
4926 mpfr_t n;
4927 mpfr_t x;
4928 int t;
4929 mpfr_init (n);
4930 mpfr_init (x);
4931 mpfr_atan2 (n, n, x, GMP_RNDN);
4932 mpfr_erfc (n, x, GMP_RNDN);
4933 mpfr_subnormalize (x, t, GMP_RNDN);
b30fcfae 4934
4935 ;
4936 return 0;
4937}
4938_ACEOF
4939rm -f conftest.$ac_objext conftest$ac_exeext
5084f823 4940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>conftest.er1
b30fcfae 4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4947 (exit $ac_status); } &&
4948 { ac_try='test -z "$ac_c_werror_flag"
4949 || test ! -s conftest.err'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; } &&
4955 { ac_try='test -s conftest$ac_exeext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 echo "$as_me:$LINENO: result: yes" >&5
4962echo "${ECHO_T}yes" >&6
b30fcfae 4963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
7601a55c 4967echo "$as_me:$LINENO: result: no" >&5
4968echo "${ECHO_T}no" >&6; have_gmp=no
b30fcfae 4969fi
5084f823 4970rm -f conftest.err conftest.$ac_objext \
b30fcfae 4971 conftest$ac_exeext conftest.$ac_ext
7601a55c 4972 LIBS="$saved_LIBS"
4973 fi
4974
4975 if test x"$have_mpc" = xmaybe; then
4976 saved_LIBS="$LIBS"
4977 LIBS="$LIBS $mpclibs $gmplibs"
4978 echo "$as_me:$LINENO: checking for the correct version of the mpc library" >&5
4979echo $ECHO_N "checking for the correct version of the mpc library... $ECHO_C" >&6
4980 cat >conftest.$ac_ext <<_ACEOF
4981/* confdefs.h. */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h. */
4986#include <mpc.h>
4987int
4988main ()
4989{
4990
4991 mpc_t n;
4992 mpc_init2 (n, 53);
4993 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
4994 mpc_sin (n, n, MPC_RNDNN);
4995 mpc_cos (n, n, MPC_RNDNN);
4996 mpc_tan (n, n, MPC_RNDNN);
4997 mpc_sinh (n, n, MPC_RNDNN);
4998 mpc_cosh (n, n, MPC_RNDNN);
4999 mpc_tanh (n, n, MPC_RNDNN);
5000 mpc_exp (n, n, MPC_RNDNN);
5001 mpc_log (n, n, MPC_RNDNN);
5002 mpc_sqrt (n, n, MPC_RNDNN);
5003 mpc_proj (n, n, MPC_RNDNN);
5004 mpc_neg (n, n, MPC_RNDNN);
5005 mpc_sqr (n, n, MPC_RNDNN);
5006 mpc_clear (n);
5007
5008 ;
5009 return 0;
5010}
5011_ACEOF
5012rm -f conftest.$ac_objext conftest$ac_exeext
5013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014 (eval $ac_link) 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try='test -z "$ac_c_werror_flag"
5022 || test ! -s conftest.err'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest$ac_exeext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 (eval $ac_try) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 echo "$as_me:$LINENO: result: yes" >&5
5035echo "${ECHO_T}yes" >&6; have_mpc=yes
b30fcfae 5036else
5037 echo "$as_me: failed program was:" >&5
5038sed 's/^/| /' conftest.$ac_ext >&5
5039
5084f823 5040echo "$as_me:$LINENO: result: no" >&5
7601a55c 5041echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
b30fcfae 5042fi
5084f823 5043rm -f conftest.err conftest.$ac_objext \
b30fcfae 5044 conftest$ac_exeext conftest.$ac_ext
7601a55c 5045 LIBS="$saved_LIBS"
d45318b3 5046 fi
7601a55c 5047
d45318b3 5048 CFLAGS="$saved_CFLAGS"
4ee9c684 5049
d45318b3 5050 if test x$have_gmp != xyes; then
fec76ae9 5051 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
b30fcfae 5052Try the --with-gmp and/or --with-mpfr options to specify their locations.
5053Copies of these libraries' source code can be found at their respective
5054hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5055See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5056If you obtained GMP and/or MPFR from a vendor distribution package, make
5057sure that you have installed both the libraries and the header files.
5058They may be located in separate packages." >&5
fec76ae9 5059echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
0818100b 5060Try the --with-gmp and/or --with-mpfr options to specify their locations.
5061Copies of these libraries' source code can be found at their respective
5062hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
6af0e733 5063See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5064If you obtained GMP and/or MPFR from a vendor distribution package, make
5065sure that you have installed both the libraries and the header files.
b30fcfae 5066They may be located in separate packages." >&2;}
5067 { (exit 1); exit 1; }; }
d45318b3 5068 fi
6a086156 5069fi
5070
7aed6ac5 5071if test x$have_mpc != xyes ; then
5072 mpcinc=
5073 mpclibs=
5074fi
5075
7601a55c 5076gmpinc="$mpcinc $gmpinc"
5077gmplibs="$mpclibs $gmplibs"
5078
5079# Flags needed for both GMP, MPFR and/or MPC.
5080
5081
4ee9c684 5082
5083
5084
bff7ea4a 5085
5bc96548 5086# Allow host libstdc++ to be specified for static linking with PPL.
5087
5088# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
5089if test "${with_host_libstdcxx+set}" = set; then
5090 withval="$with_host_libstdcxx"
5091
5092fi;
5093
5094case $with_host_libstdcxx in
5095 no|yes)
5096 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
5097echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
5098 { (exit 1); exit 1; }; }
5099 ;;
5100esac
255b6be7 5101
7ab76cec 5102# Linker flags to use for stage1 or when not boostrapping.
5103
5104# Check whether --with-stage1-ldflags or --without-stage1-ldflags was given.
5105if test "${with_stage1_ldflags+set}" = set; then
5106 withval="$with_stage1_ldflags"
5107 if test "$withval" = "no" -o "$withval" = "yes"; then
5108 stage1_ldflags=
5109 else
5110 stage1_ldflags=$withval
5111 fi
5112else
5113 stage1_ldflags=
5114fi;
5115
5116
5117# Libraries to use for stage1 or when not bootstrapping.
5118
5119# Check whether --with-stage1-libs or --without-stage1-libs was given.
5120if test "${with_stage1_libs+set}" = set; then
5121 withval="$with_stage1_libs"
5122 if test "$withval" = "no" -o "$withval" = "yes"; then
5123 stage1_libs=
5124 else
5125 stage1_libs=$withval
5126 fi
5127else
5128 stage1_libs=$with_host_libstdcxx
5129fi;
5130
5131
5132# Linker flags to use for stage2 and later builds.
5133
5134# Check whether --with-boot-ldflags or --without-boot-ldflags was given.
5135if test "${with_boot_ldflags+set}" = set; then
5136 withval="$with_boot_ldflags"
5137 if test "$withval" = "no" -o "$withval" = "yes"; then
5138 poststage1_ldflags=
5139 else
5140 poststage1_ldflags=$withval
5141 fi
5142else
5143 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5144 poststage1_ldflags=-static-libstdc++
5145 else
5146 poststage1_ldflags=
5147 fi
5148fi;
5149
5150
5151# Libraries to use for stage2 and later builds. This defaults to the
5152# argument passed to --with-host-libstdcxx.
5153
5154# Check whether --with-boot-libs or --without-boot-libs was given.
5155if test "${with_boot_libs+set}" = set; then
5156 withval="$with_boot_libs"
5157 poststage1_libs=$with_host_libstdcxx
5158fi;
5159
5160
255b6be7 5161# Check for PPL
5162ppl_major_version=0
5163ppl_minor_version=10
7ab76cec 5164ppllibs=" -lppl_c -lppl -lgmpxx"
255b6be7 5165pplinc=
5166
5167
5168# Check whether --with-ppl or --without-ppl was given.
5169if test "${with_ppl+set}" = set; then
5170 withval="$with_ppl"
5171
63d7f4db 5172else
5173 with_ppl=no
255b6be7 5174fi;
5175
5176# Check whether --with-ppl_include or --without-ppl_include was given.
5177if test "${with_ppl_include+set}" = set; then
5178 withval="$with_ppl_include"
5179
5180fi;
5181
5182# Check whether --with-ppl_lib or --without-ppl_lib was given.
5183if test "${with_ppl_lib+set}" = set; then
5184 withval="$with_ppl_lib"
5185
5186fi;
5187
4aa0552b 5188case $with_ppl in
5189 no)
5190 ppllibs=
5191 ;;
5192 *)
7ab76cec 5193 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
4aa0552b 5194 pplinc="-I$with_ppl/include $pplinc"
5195 LIBS="$ppllibs $LIBS"
5196 ;;
5197esac
255b6be7 5198if test "x$with_ppl_include" != x; then
5199 pplinc="-I$with_ppl_include $pplinc"
5200fi
5201if test "x$with_ppl_lib" != x; then
7ab76cec 5202 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
255b6be7 5203 LIBS="$ppllibs $LIBS"
5204fi
5205if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
7ab76cec 5206 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
255b6be7 5207 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5208 LIBS="$ppllibs $LIBS"
5209fi
5210
5362e323 5211# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
5212if test "${enable_ppl_version_check+set}" = set; then
5213 enableval="$enable_ppl_version_check"
5214 ENABLE_PPL_CHECK=$enableval
5215else
5216 ENABLE_PPL_CHECK=yes
255b6be7 5217fi;
5218
5362e323 5219if test "${ENABLE_PPL_CHECK}" = "yes"; then
5220 saved_CFLAGS="$CFLAGS"
5221 CFLAGS="$CFLAGS $pplinc $gmpinc"
5222 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
255b6be7 5223echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
5362e323 5224 cat >conftest.$ac_ext <<_ACEOF
255b6be7 5225/* confdefs.h. */
5226_ACEOF
5227cat confdefs.h >>conftest.$ac_ext
5228cat >>conftest.$ac_ext <<_ACEOF
5229/* end confdefs.h. */
5230#include "ppl_c.h"
5231int
5232main ()
5233{
5234
5362e323 5235 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5236 choke me
5237 #endif
255b6be7 5238
5239 ;
5240 return 0;
5241}
5242_ACEOF
5243rm -f conftest.$ac_objext
5244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245 (eval $ac_compile) 2>conftest.er1
5246 ac_status=$?
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } &&
5252 { ac_try='test -z "$ac_c_werror_flag"
5253 || test ! -s conftest.err'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 (eval $ac_try) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; } &&
5259 { ac_try='test -s conftest.$ac_objext'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
5265 echo "$as_me:$LINENO: result: yes" >&5
5266echo "${ECHO_T}yes" >&6
5267else
5268 echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271echo "$as_me:$LINENO: result: no" >&5
5362e323 5272echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
255b6be7 5273fi
5274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5362e323 5275 CFLAGS="$saved_CFLAGS"
5276fi
5277
5278# Flags needed for PPL
5279
5280
255b6be7 5281
255b6be7 5282
5362e323 5283# Check for CLOOG
a565a5fa 5284clooglibs=" -lcloog "
5362e323 5285clooginc=" -DCLOOG_PPL_BACKEND "
5286
5287
5288# Check whether --with-cloog or --without-cloog was given.
5289if test "${with_cloog+set}" = set; then
5290 withval="$with_cloog"
5291
63d7f4db 5292else
5293 with_cloog=no
5362e323 5294fi;
5295
5296# Check whether --with-cloog_include or --without-cloog_include was given.
5297if test "${with_cloog_include+set}" = set; then
5298 withval="$with_cloog_include"
5299
5300fi;
5301
5302# Check whether --with-cloog_lib or --without-cloog_lib was given.
5303if test "${with_cloog_lib+set}" = set; then
5304 withval="$with_cloog_lib"
5305
5306fi;
5307
4aa0552b 5308case $with_cloog in
5309 no)
5310 clooglibs=
5311 clooginc=
5312 ;;
5313 *)
5314 clooglibs="-L$with_cloog/lib -lcloog"
5315 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5316 LIBS="$clooglibs $LIBS"
5317 ;;
5318esac
5362e323 5319if test "x$with_cloog_include" != x; then
5320 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5321fi
5322if test "x$with_cloog_lib" != x; then
5323 clooglibs="-L$with_cloog_lib -lcloog"
5324 LIBS="$clooglibs $LIBS"
5325fi
5326if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5327 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5328 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5329 LIBS="$clooglibs $LIBS"
5330fi
5331
5332# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5333if test "${enable_cloog_version_check+set}" = set; then
5334 enableval="$enable_cloog_version_check"
5335 ENABLE_CLOOG_CHECK=$enableval
5336else
5337 ENABLE_CLOOG_CHECK=yes
5338fi;
5339
5340if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5341 saved_CFLAGS="$CFLAGS"
5342 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5343 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
255b6be7 5344echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
5362e323 5345 cat >conftest.$ac_ext <<_ACEOF
255b6be7 5346/* confdefs.h. */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h. */
5351#include "cloog/cloog.h"
5352int
5353main ()
5354{
5355
5362e323 5356 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5357 choke me
5358 #endif
255b6be7 5359
5360 ;
5361 return 0;
5362}
5363_ACEOF
5364rm -f conftest.$ac_objext
5365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -z "$ac_c_werror_flag"
5374 || test ! -s conftest.err'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 { ac_try='test -s conftest.$ac_objext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 echo "$as_me:$LINENO: result: yes" >&5
5387echo "${ECHO_T}yes" >&6
5388else
5389 echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
5392echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5394fi
5395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5362e323 5396 CFLAGS="$saved_CFLAGS"
5397fi
255b6be7 5398
5399# Flags needed for CLOOG
5400
5401
5402
5403
8e6391a6 5404# By default, C is the only stage 1 language.
9c3a0a29 5405stage1_languages=,c,
2d64c2fd 5406
7ab76cec 5407# Target libraries that we bootstrap.
5408bootstrap_target_libs=,target-libgcc,
5409
8e1fea1a 5410# Figure out what language subdirectories are present.
5411# Look if the user specified --enable-languages="..."; if not, use
5412# the environment variable $LANGUAGES if defined. $LANGUAGES might
5413# go away some day.
5414# NB: embedded tabs in this IF block -- do not untabify
5415if test -d ${srcdir}/gcc; then
5416 if test x"${enable_languages+set}" != xset; then
5417 if test x"${LANGUAGES+set}" = xset; then
5418 enable_languages="${LANGUAGES}"
5419 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5420 else
5421 enable_languages=all
5422 fi
5423 else
5424 if test x"${enable_languages}" = x ||
5425 test x"${enable_languages}" = xyes;
5426 then
5427 echo configure.in: --enable-languages needs at least one language argument 1>&2
5428 exit 1
5429 fi
5430 fi
5431 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5432
2c718da0 5433 # 'f95' is the old name for the 'fortran' language. We issue a warning
5434 # and make the substitution.
5435 case ,${enable_languages}, in
5436 *,f95,*)
5437 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5438 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5439 ;;
5440 esac
5441
8e1fea1a 5442 # First scan to see if an enabled language requires some other language.
5443 # We assume that a given config-lang.in will list all the language
5444 # front ends it requires, even if some are required indirectly.
5445 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5446 case ${lang_frag} in
5447 ..) ;;
5448 # The odd quoting in the next line works around
5449 # an apparent bug in bash 1.12 on linux.
5450 ${srcdir}/gcc/[*]/config-lang.in) ;;
5451 *)
5452 # From the config-lang.in, get $language, $lang_requires
5453 language=
5454 lang_requires=
5455 . ${lang_frag}
5456 for other in ${lang_requires} ; do
5457 case ,${enable_languages}, in
5458 *,$other,*) ;;
5459 *,all,*) ;;
5460 *,$language,*)
5461 echo " \`$other' language required by \`$language'; enabling" 1>&2
5462 enable_languages="${enable_languages},${other}"
5463 ;;
5464 esac
5465 done
5466 ;;
5467 esac
5468 done
5469
9c3a0a29 5470 new_enable_languages=,c,
8e1fea1a 5471 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9c3a0a29 5472 potential_languages=,c,
8e1fea1a 5473
5474 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5475 case ${lang_frag} in
5476 ..) ;;
5477 # The odd quoting in the next line works around
5478 # an apparent bug in bash 1.12 on linux.
5479 ${srcdir}/gcc/[*]/config-lang.in) ;;
5480 *)
b30fcfae 5481 # From the config-lang.in, get $language, $target_libs,
2d64c2fd 5482 # $lang_dirs, $boot_language, and $build_by_default
8e1fea1a 5483 language=
5484 target_libs=
5485 lang_dirs=
5dee13c2 5486 subdir_requires=
9c3a0a29 5487 boot_language=no
5488 build_by_default=yes
8e1fea1a 5489 . ${lang_frag}
9c3a0a29 5490 if test x${language} = x; then
5491 echo "${lang_frag} doesn't set \$language." 1>&2
5492 exit 1
5493 fi
5494
7ab76cec 5495 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5496 boot_language=yes
5497 fi
5498
9c3a0a29 5499 case ,${enable_languages}, in
5500 *,${language},*)
8e1fea1a 5501 # Language was explicitly selected; include it.
5502 add_this_lang=yes
5503 ;;
9c3a0a29 5504 *,all,*)
5505 # 'all' was selected, select it if it is a default language
5506 add_this_lang=${build_by_default}
8e1fea1a 5507 ;;
5508 *)
5509 add_this_lang=no
5510 ;;
5511 esac
4ee9c684 5512
5dee13c2 5513 # Disable languages that need other directories if these aren't available.
9333ae0b 5514 for i in $subdir_requires; do
3891e7d9 5515 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5dee13c2 5516 case ,${enable_languages}, in
5517 *,${language},*)
5518 # Specifically requested language; tell them.
b30fcfae 5519 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5520echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5521 { (exit 1); exit 1; }; }
5dee13c2 5522 ;;
5523 *)
5524 # Silently disable.
9c3a0a29 5525 add_this_lang=unsupported
5dee13c2 5526 ;;
5527 esac
5528 done
5529
9c3a0a29 5530 # Disable Ada if no preexisting GNAT is available.
5531 case ,${enable_languages},:${language}:${have_gnat} in
5532 *,${language},*:ada:no)
5533 # Specifically requested language; tell them.
b30fcfae 5534 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5535echo "$as_me: error: GNAT is required to build $language" >&2;}
5536 { (exit 1); exit 1; }; }
9c3a0a29 5537 ;;
5538 *:ada:no)
5539 # Silently disable.
5540 add_this_lang=unsupported
5541 ;;
5542 esac
5543
ff7dcf6a 5544 # Disable a language that is unsupported by the target.
5545 case " $unsupported_languages " in
5546 *" $language "*)
9c3a0a29 5547 add_this_lang=unsupported
ff7dcf6a 5548 ;;
5549 esac
5550
4ee9c684 5551 case $add_this_lang in
9c3a0a29 5552 unsupported)
8e1fea1a 5553 # Remove language-dependent dirs.
2d64c2fd 5554 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5555 ;;
9c3a0a29 5556 no)
5557 # Remove language-dependent dirs; still show language as supported.
5558 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5559 potential_languages="${potential_languages}${language},"
5560 ;;
5561 yes)
5562 new_enable_languages="${new_enable_languages}${language},"
5563 potential_languages="${potential_languages}${language},"
2d64c2fd 5564 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5565 case ${boot_language} in
5566 yes)
aff6cf7b 5567 # Add to (comma-separated) list of stage 1 languages.
9c3a0a29 5568 stage1_languages="${stage1_languages}${language},"
7ab76cec 5569 # We need to bootstrap any supporting libraries.
5570 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2d64c2fd 5571 ;;
5572 esac
5573 ;;
8e1fea1a 5574 esac
5575 ;;
5576 esac
5577 done
5578
5084f823 5579 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
9c3a0a29 5580if test "${enable_stage1_languages+set}" = set; then
5084f823 5581 enableval="$enable_stage1_languages"
5582 case ,${enable_stage1_languages}, in
9c3a0a29 5583 ,no,|,,)
5584 # Set it to something that will have no effect in the loop below
5585 enable_stage1_languages=c ;;
5586 ,yes,)
5587 enable_stage1_languages=`echo $new_enable_languages | \
5588 sed -e "s/^,//" -e "s/,$//" ` ;;
5589 *,all,*)
5590 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5591 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5592 esac
5593
5594 # Add "good" languages from enable_stage1_languages to stage1_languages,
5595 # while "bad" languages go in missing_languages. Leave no duplicates.
5596 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5597 case $potential_languages in
5598 *,$i,*)
5599 case $stage1_languages in
5600 *,$i,*) ;;
5601 *) stage1_languages="$stage1_languages$i," ;;
5602 esac ;;
5603 *)
5604 case $missing_languages in
5605 *,$i,*) ;;
5606 *) missing_languages="$missing_languages$i," ;;
5607 esac ;;
5608 esac
5609 done
5084f823 5610fi;
9c3a0a29 5611
5612 # Remove leading/trailing commas that were added for simplicity
5613 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
989edd2f 5614 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9c3a0a29 5615 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5616 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5617
8e1fea1a 5618 if test "x$missing_languages" != x; then
b30fcfae 5619 { { echo "$as_me:$LINENO: error:
e8bfe1fa 5620The following requested languages could not be built: ${missing_languages}
b30fcfae 5621Supported languages are: ${potential_languages}" >&5
5622echo "$as_me: error:
5623The following requested languages could not be built: ${missing_languages}
5624Supported languages are: ${potential_languages}" >&2;}
5625 { (exit 1); exit 1; }; }
8e1fea1a 5626 fi
8e1fea1a 5627 if test "x$new_enable_languages" != "x$enable_languages"; then
5628 echo The following languages will be built: ${new_enable_languages}
9c3a0a29 5629 enable_languages="$new_enable_languages"
8e1fea1a 5630 fi
9c3a0a29 5631
b30fcfae 5632
b0e9b581 5633 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8e1fea1a 5634fi
5635
50996fe5 5636# Handle --disable-<component> generically.
5637for dir in $configdirs $build_configdirs $target_configdirs ; do
5638 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
d2d2630b 5639 varname=`echo $dirname | sed -e s/+/_/g`
5640 if eval test x\${enable_${varname}} "=" xno ; then
50996fe5 5641 noconfigdirs="$noconfigdirs $dir"
5642 fi
5643done
5644
dd6d3a67 5645# Check for Boehm's garbage collector
5084f823 5646# Check whether --enable-objc-gc or --disable-objc-gc was given.
dd6d3a67 5647if test "${enable_objc_gc+set}" = set; then
5084f823 5648 enableval="$enable_objc_gc"
5649 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
dd6d3a67 5650 *,objc,*:*:yes:*target-boehm-gc*)
b30fcfae 5651 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5652echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5653 { (exit 1); exit 1; }; }
dd6d3a67 5654 ;;
5655esac
5084f823 5656fi;
dd6d3a67 5657
5658# Make sure we only build Boehm's garbage collector if required.
f1716c67 5659case ,${enable_languages},:${enable_objc_gc} in
5660 *,objc,*:yes)
dd6d3a67 5661 # Keep target-boehm-gc if requested for Objective-C.
5662 ;;
dd6d3a67 5663 *)
f1716c67 5664 # Otherwise remove target-boehm-gc depending on target-libjava.
5665 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5666 noconfigdirs="$noconfigdirs target-boehm-gc"
5667 fi
dd6d3a67 5668 ;;
5669esac
5670
e8eddfdd 5671# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5672# $build_configdirs and $target_configdirs.
8e1fea1a 5673# If we have the source for $noconfigdirs entries, add them to $notsupp.
5674
5675notsupp=""
5676for dir in . $skipdirs $noconfigdirs ; do
e8eddfdd 5677 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8e1fea1a 5678 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5679 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5680 if test -r $srcdir/$dirname/configure ; then
5681 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5682 true
5683 else
5684 notsupp="$notsupp $dir"
5685 fi
5686 fi
5687 fi
e8eddfdd 5688 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5689 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5690 if test -r $srcdir/$dirname/configure ; then
5691 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5692 true
5693 else
5694 notsupp="$notsupp $dir"
5695 fi
5696 fi
5697 fi
8e1fea1a 5698 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5699 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5700 if test -r $srcdir/$dirname/configure ; then
5701 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5702 true
5703 else
5704 notsupp="$notsupp $dir"
5705 fi
5706 fi
5707 fi
5708done
5709
5710# Sometimes the tools are distributed with libiberty but with no other
5711# libraries. In that case, we don't want to build target-libiberty.
0a2e6193 5712# Don't let libgcc imply libiberty either.
8e1fea1a 5713if test -n "${target_configdirs}" ; then
0a2e6193 5714 libgcc=
8e1fea1a 5715 others=
5716 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
0a2e6193 5717 if test "$i" = "libgcc"; then
5718 libgcc=target-libgcc
5719 elif test "$i" != "libiberty" ; then
8e1fea1a 5720 if test -r $srcdir/$i/configure ; then
5721 others=yes;
5722 break;
5723 fi
5724 fi
5725 done
5726 if test -z "${others}" ; then
0a2e6193 5727 target_configdirs=$libgcc
8e1fea1a 5728 fi
5729fi
5730
5731# Quietly strip out all directories which aren't configurable in this tree.
5732# This relies on all configurable subdirectories being autoconfiscated, which
5733# is now the case.
2f8725b0 5734build_configdirs_all="$build_configdirs"
5735build_configdirs=
5736for i in ${build_configdirs_all} ; do
b30fcfae 5737 j=`echo $i | sed -e s/build-//g`
2f8725b0 5738 if test -f ${srcdir}/$j/configure ; then
5739 build_configdirs="${build_configdirs} $i"
5740 fi
5741done
5742
8e1fea1a 5743configdirs_all="$configdirs"
5744configdirs=
5745for i in ${configdirs_all} ; do
5746 if test -f ${srcdir}/$i/configure ; then
5747 configdirs="${configdirs} $i"
5748 fi
5749done
2f8725b0 5750
8e1fea1a 5751target_configdirs_all="$target_configdirs"
5752target_configdirs=
5753for i in ${target_configdirs_all} ; do
b30fcfae 5754 j=`echo $i | sed -e s/target-//g`
8e1fea1a 5755 if test -f ${srcdir}/$j/configure ; then
5756 target_configdirs="${target_configdirs} $i"
5757 fi
5758done
5759
5760# Produce a warning message for the subdirs we can't configure.
5761# This isn't especially interesting in the Cygnus tree, but in the individual
5762# FSF releases, it's important to let people know when their machine isn't
5763# supported by the one or two programs in a package.
5764
5765if test -n "${notsupp}" && test -z "${norecursion}" ; then
5766 # If $appdirs is non-empty, at least one of those directories must still
5767 # be configured, or we error out. (E.g., if the gas release supports a
5768 # specified target in some subdirs but not the gas subdir, we shouldn't
5769 # pretend that all is well.)
5770 if test -n "$appdirs" ; then
5771 for dir in $appdirs ; do
5772 if test -r $dir/Makefile.in ; then
5773 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5774 appdirs=""
5775 break
5776 fi
2f8725b0 5777 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8e1fea1a 5778 appdirs=""
5779 break
5780 fi
5781 fi
5782 done
5783 if test -n "$appdirs" ; then
5784 echo "*** This configuration is not supported by this package." 1>&2
5785 exit 1
5786 fi
5787 fi
5788 # Okay, some application will build, or we don't care to check. Still
5789 # notify of subdirs not getting built.
5790 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5791 echo " ${notsupp}" 1>&2
5792 echo " (Any other directories should still work fine.)" 1>&2
5793fi
5794
5795case "$host" in
5796 *msdosdjgpp*)
5797 enable_gdbtk=no ;;
5798esac
5799
eae5b2bc 5800# To find our prefix, in gcc_cv_tool_prefix.
5801
5802# The user is always right.
5803if test "${PATH_SEPARATOR+set}" != set; then
5804 echo "#! /bin/sh" >conf$$.sh
5805 echo "exit 0" >>conf$$.sh
5806 chmod +x conf$$.sh
5807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5808 PATH_SEPARATOR=';'
5809 else
5810 PATH_SEPARATOR=:
5811 fi
5812 rm -f conf$$.sh
5813fi
5814
5815
5816
5817if test "x$exec_prefix" = xNONE; then
5818 if test "x$prefix" = xNONE; then
5819 gcc_cv_tool_prefix=$ac_default_prefix
5820 else
5821 gcc_cv_tool_prefix=$prefix
5822 fi
5823else
5824 gcc_cv_tool_prefix=$exec_prefix
5825fi
5826
5827# If there is no compiler in the tree, use the PATH only. In any
5828# case, if there is no compiler in the tree nobody should use
5829# AS_FOR_TARGET and LD_FOR_TARGET.
5830if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5831 gcc_version=`cat $srcdir/gcc/BASE-VER`
5832 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5833 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5834 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5835 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5836 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5837 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5838else
5839 gcc_cv_tool_dirs=
5840fi
5841
5842if test x$build = x$target && test -n "$md_exec_prefix"; then
5843 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5844fi
5845
5846
5847
8e1fea1a 5848copy_dirs=
5849
b30fcfae 5850
5084f823 5851# Check whether --with-build-sysroot or --without-build-sysroot was given.
ffa8502d 5852if test "${with_build_sysroot+set}" = set; then
5084f823 5853 withval="$with_build_sysroot"
5854 if test x"$withval" != x ; then
ffa8502d 5855 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5856 fi
5857else
5858 SYSROOT_CFLAGS_FOR_TARGET=
5084f823 5859fi;
ffa8502d 5860
5861
5f1f2de5 5862
5863# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5864if test "${with_debug_prefix_map+set}" = set; then
5865 withval="$with_debug_prefix_map"
5866 if test x"$withval" != x; then
5867 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5868 for debug_map in $withval; do
5869 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5870 done
5871 fi
5872else
5873 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5874fi;
5875
5876
c898f165 5877# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5878# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5879# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5880# We want to ensure that TARGET libraries (which we know are built with
5881# gcc) are built with "-O2 -g", so include those options when setting
5882# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5883if test "x$CFLAGS_FOR_TARGET" = x; then
5884 CFLAGS_FOR_TARGET=$CFLAGS
5885 case " $CFLAGS " in
5886 *" -O2 "*) ;;
5887 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5888 esac
5889 case " $CFLAGS " in
5890 *" -g "* | *" -g3 "*) ;;
5891 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5892 esac
5893fi
5894
5895
5896if test "x$CXXFLAGS_FOR_TARGET" = x; then
5897 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5898 case " $CXXFLAGS " in
5899 *" -O2 "*) ;;
5900 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5901 esac
5902 case " $CXXFLAGS " in
5903 *" -g "* | *" -g3 "*) ;;
5904 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5905 esac
5906fi
5907
5908
8e1fea1a 5909# Handle --with-headers=XXX. If the value is not "yes", the contents of
5910# the named directory are copied to $(tooldir)/sys-include.
5911if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5912 if test x${is_cross_compiler} = xno ; then
5913 echo 1>&2 '***' --with-headers is only supported when cross compiling
5914 exit 1
5915 fi
5916 if test x"${with_headers}" != xyes ; then
eae5b2bc 5917 x=${gcc_cv_tool_prefix}
b30fcfae 5918 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8e1fea1a 5919 fi
5920fi
5921
5922# Handle --with-libs=XXX. If the value is not "yes", the contents of
5923# the name directories are copied to $(tooldir)/lib. Multiple directories
5924# are permitted.
5925if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5926 if test x${is_cross_compiler} = xno ; then
5927 echo 1>&2 '***' --with-libs is only supported when cross compiling
5928 exit 1
5929 fi
5930 if test x"${with_libs}" != xyes ; then
5931 # Copy the libraries in reverse order, so that files in the first named
5932 # library override files in subsequent libraries.
eae5b2bc 5933 x=${gcc_cv_tool_prefix}
8e1fea1a 5934 for l in ${with_libs}; do
b30fcfae 5935 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8e1fea1a 5936 done
5937 fi
5938fi
5939
c47832b1 5940# Set with_gnu_as and with_gnu_ld as appropriate.
5941#
5942# This is done by determining whether or not the appropriate directory
5943# is available, and by checking whether or not specific configurations
5944# have requested that this magic not happen.
b30fcfae 5945#
5946# The command line options always override the explicit settings in
c47832b1 5947# configure.in, and the settings in configure.in override this magic.
5948#
b30fcfae 5949# If the default for a toolchain is to use GNU as and ld, and you don't
c47832b1 5950# want to do that, then you should use the --without-gnu-as and
5951# --without-gnu-ld options for the configure script.
5952
5953if test x${use_gnu_as} = x &&
5954 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5955 with_gnu_as=yes
5956 extra_host_args="$extra_host_args --with-gnu-as"
5957fi
5958
5959if test x${use_gnu_ld} = x &&
3d47fcf5 5960 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
c47832b1 5961 with_gnu_ld=yes
5962 extra_host_args="$extra_host_args --with-gnu-ld"
5963fi
5964
5965# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5966# can detect this case.
5967
5968if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5969 with_newlib=yes
5970 extra_host_args="$extra_host_args --with-newlib"
5971fi
5972
8e1fea1a 5973# Handle ${copy_dirs}
5974set fnord ${copy_dirs}
5975shift
5976while test $# != 0 ; do
5977 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5978 :
5979 else
5980 echo Copying $1 to $2
5981
5982 # Use the install script to create the directory and all required
5983 # parent directories.
5984 if test -d $2 ; then
5985 :
5986 else
5987 echo >config.temp
5988 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5989 fi
5990
5991 # Copy the directory, assuming we have tar.
5992 # FIXME: Should we use B in the second tar? Not all systems support it.
5993 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5994
5995 # It is the responsibility of the user to correctly adjust all
5996 # symlinks. If somebody can figure out how to handle them correctly
5997 # here, feel free to add the code.
5998
5999 echo $1 > $2/COPIED
6000 fi
6001 shift; shift
6002done
6003
c47832b1 6004# Determine a target-dependent exec_prefix that the installed
6005# gcc will search in. Keep this list sorted by triplet, with
6006# the *-*-osname triplets last.
6007md_exec_prefix=
6008case "${target}" in
6009 alpha*-*-*vms*)
6010 md_exec_prefix=/gnu/lib/gcc-lib
6011 ;;
09c2d953 6012 i[34567]86-pc-msdosdjgpp*)
c47832b1 6013 md_exec_prefix=/dev/env/DJDIR/bin
6014 ;;
09c2d953 6015 i[34567]86-*-sco3.2v5*)
c47832b1 6016 if test $with_gnu_as = yes; then
6017 md_exec_prefix=/usr/gnu/bin
6018 else
6019 md_exec_prefix=/usr/ccs/bin/elf
6020 fi
6021 ;;
6022
6023 mn10300-*-* | \
6024 powerpc-*-chorusos* | \
6025 powerpc*-*-eabi* | \
6026 powerpc*-*-sysv* | \
6027 powerpc*-*-kaos* | \
6028 s390x-ibm-tpf*)
6029 md_exec_prefix=/usr/ccs/bin
6030 ;;
6031 sparc64-*-elf*)
6032 ;;
6033 v850*-*-*)
6034 md_exec_prefix=/usr/ccs/bin
6035 ;;
c1d3813f 6036 xtensa*-*-elf*)
c47832b1 6037 ;;
6038
6039 *-*-beos* | \
6040 *-*-elf* | \
6041 *-*-hpux* | \
6042 *-*-netware* | \
6043 *-*-nto-qnx* | \
6044 *-*-rtems* | \
6045 *-*-solaris2* | \
09c2d953 6046 *-*-sysv[45]* | \
c47832b1 6047 *-*-vxworks* | \
6048 *-wrs-windiss)
6049 md_exec_prefix=/usr/ccs/bin
6050 ;;
6051esac
6052
71ab34df 6053extra_arflags_for_target=
6054extra_nmflags_for_target=
6055extra_ranlibflags_for_target=
6056target_makefile_frag=/dev/null
6057case "${target}" in
38d7211b 6058 mep*-*-*)
6059 target_makefile_frag="config/mt-mep"
6060 ;;
57c7de11 6061 spu-*-*)
6062 target_makefile_frag="config/mt-spu"
6063 ;;
f8520ad7 6064 mips*-sde-elf*)
6065 target_makefile_frag="config/mt-sde"
6066 ;;
3013c2c7 6067 mipsisa*-*-elfoabi*)
6068 target_makefile_frag="config/mt-mips-elfoabi"
6069 ;;
559b0712 6070 mips*-*-*linux* | mips*-*-gnu*)
6071 target_makefile_frag="config/mt-mips-gnu"
6072 ;;
634f7a13 6073 *-*-netware*)
71ab34df 6074 target_makefile_frag="config/mt-netware"
6075 ;;
3bef4012 6076 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
cb8a7007 6077 target_makefile_frag="config/mt-gnu"
71ab34df 6078 ;;
6079 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b30fcfae 6080 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
71ab34df 6081 # commands to handle both 32-bit and 64-bit objects. These flags are
6082 # harmless if we're using GNU nm or ar.
6083 extra_arflags_for_target=" -X32_64"
6084 extra_nmflags_for_target=" -B -X32_64"
6085 ;;
6086 *-*-darwin*)
6087 # ranlib from Darwin requires the -c flag to look at common symbols.
6088 extra_ranlibflags_for_target=" -c"
6089 ;;
6090 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6091 target_makefile_frag="config/mt-wince"
6092 ;;
6093esac
6094
6095alphaieee_frag=/dev/null
6096case $target in
6097 alpha*-*-*)
6098 # This just makes sure to use the -mieee option to build target libs.
6099 # This should probably be set individually by each library.
6100 alphaieee_frag="config/mt-alphaieee"
6101 ;;
6102esac
6103
6104# If --enable-target-optspace always use -Os instead of -O2 to build
6105# the target libraries, similarly if it is not specified, use -Os
6106# on selected platforms.
6107ospace_frag=/dev/null
6108case "${enable_target_optspace}:${target}" in
6109 yes:*)
6110 ospace_frag="config/mt-ospace"
6111 ;;
6112 :d30v-*)
6113 ospace_frag="config/mt-d30v"
6114 ;;
6115 :m32r-* | :d10v-* | :fr30-*)
6116 ospace_frag="config/mt-ospace"
6117 ;;
6118 no:* | :*)
6119 ;;
6120 *)
6121 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6122 ;;
6123esac
6124
71ab34df 6125# Default to using --with-stabs for certain targets.
6126if test x${with_stabs} = x ; then
6127 case "${target}" in
d74dd50d 6128 mips*-*-irix[56]*)
71ab34df 6129 ;;
6130 mips*-*-* | alpha*-*-osf*)
6131 with_stabs=yes;
6132 extra_host_args="${extra_host_args} --with-stabs"
6133 ;;
6134 esac
6135fi
6136
6137# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6138# them automatically.
6139case "${host}" in
b30fcfae 6140 hppa*64*-*-hpux11*)
71ab34df 6141 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6142 ;;
6143esac
6144
71ab34df 6145# Some systems (e.g., one of the i386-aix systems the gas testers are
6146# using) don't handle "\$" correctly, so don't use it here.
b30fcfae 6147tooldir='${exec_prefix}'/${target_noncanonical}
71ab34df 6148build_tooldir=${tooldir}
6149
71ab34df 6150# Create a .gdbinit file which runs the one in srcdir
6151# and tells GDB to look there for source files.
6152
6153if test -r ${srcdir}/.gdbinit ; then
6154 case ${srcdir} in
6155 .) ;;
6156 *) cat > ./.gdbinit <<EOF
6157# ${NO_EDIT}
6158dir ${srcdir}
6159dir .
6160source ${srcdir}/.gdbinit
6161EOF
6162 ;;
6163 esac
6164fi
6165
71ab34df 6166# Make sure that the compiler is able to generate an executable. If it
6167# can't, we are probably in trouble. We don't care whether we can run the
6168# executable--we might be using a cross compiler--we only care whether it
6169# can be created. At this point the main configure script has set CC.
6170we_are_ok=no
6171echo "int main () { return 0; }" > conftest.c
6172${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6173if test $? = 0 ; then
6174 if test -s conftest || test -s conftest.exe ; then
6175 we_are_ok=yes
6176 fi
b30fcfae 6177fi
71ab34df 6178case $we_are_ok in
6179 no)
6180 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6181 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6182 rm -f conftest*
6183 exit 1
6184 ;;
6185esac
6186rm -f conftest*
6187
6188# The Solaris /usr/ucb/cc compiler does not appear to work.
6189case "${host}" in
6190 sparc-sun-solaris2*)
6191 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6192 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6193 could_use=
6194 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6195 if test -d /opt/cygnus/bin ; then
6196 if test "$could_use" = "" ; then
6197 could_use="/opt/cygnus/bin"
6198 else
6199 could_use="$could_use or /opt/cygnus/bin"
6200 fi
6201 fi
6202 if test "$could_use" = "" ; then
6203 echo "Warning: compilation may fail because you're using"
6204 echo "/usr/ucb/cc. You should change your PATH or CC "
6205 echo "variable and rerun configure."
6206 else
6207 echo "Warning: compilation may fail because you're using"
6208 echo "/usr/ucb/cc, when you should use the C compiler from"
6209 echo "$could_use. You should change your"
6210 echo "PATH or CC variable and rerun configure."
6211 fi
6212 fi
6213 ;;
6214esac
6215
7d804f04 6216# Decide which environment variable is used to find dynamic libraries.
71ab34df 6217case "${host}" in
6218 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
697e01c8 6219 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7d804f04 6220 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
71ab34df 6221 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6222esac
6223
7d804f04 6224# On systems where the dynamic library environment variable is PATH,
6225# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6226# built executables to PATH.
6227if test "$RPATH_ENVVAR" = PATH; then
6228 GCC_SHLIB_SUBDIR=/shlib
6229else
6230 GCC_SHLIB_SUBDIR=
6231fi
6232
71ab34df 6233# Record target_configdirs and the configure arguments for target and
6234# build configuration in Makefile.
6235target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2f8725b0 6236build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
71ab34df 6237
71ab34df 6238# Determine whether gdb needs tk/tcl or not.
6239# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6240# and in that case we want gdb to be built without tk. Ugh!
6241# In fact I believe gdb is the *only* package directly dependent on tk,
6242# so we should be able to put the 'maybe's in unconditionally and
6243# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6244# 100% sure that that's safe though.
8fdaf281 6245
f843f075 6246gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
71ab34df 6247case "$enable_gdbtk" in
6248 no)
6249 GDB_TK="" ;;
8fdaf281 6250 yes)
6251 GDB_TK="${gdb_tk}" ;;
71ab34df 6252 *)
8fdaf281 6253 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6254 # distro. Eventually someone will fix this and move Insight, nee
6255 # gdbtk to a separate directory.
6256 if test -d ${srcdir}/gdb/gdbtk ; then
6257 GDB_TK="${gdb_tk}"
6258 else
6259 GDB_TK=""
6260 fi
6261 ;;
71ab34df 6262esac
415470be 6263CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6264INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
71ab34df 6265
01b41571 6266# Strip out unwanted targets.
6f4f34a7 6267
6268# While at that, we remove Makefiles if we were started for recursive
6269# configuration, so that the top-level Makefile reconfigures them,
6270# like we used to do when configure itself was recursive.
6f4f34a7 6271
01b41571 6272# Loop over modules. $extrasub must be used with care, limiting as
6273# much as possible the usage of range addresses. That's because autoconf
6274# splits the sed script to overcome limits in the number of commands,
6275# and relying on carefully-timed sed passes may turn out to be very hard
6276# to maintain later. In this particular case, you just have to be careful
6277# not to nest @if/@endif pairs, because configure will not warn you at all.
6f4f34a7 6278
5084f823 6279# Check whether --enable-bootstrap or --disable-bootstrap was given.
54f0538b 6280if test "${enable_bootstrap+set}" = set; then
5084f823 6281 enableval="$enable_bootstrap"
6282
54f0538b 6283else
3c782584 6284 enable_bootstrap=default
5084f823 6285fi;
54f0538b 6286
3c782584 6287# Issue errors and warnings for invalid/strange bootstrap combinations.
6288case "$configdirs" in
6289 *gcc*) have_compiler=yes ;;
6290 *) have_compiler=no ;;
6291esac
6292
6293case "$have_compiler:$host:$target:$enable_bootstrap" in
6294 *:*:*:no) ;;
6295
98777423 6296 # Default behavior. Enable bootstrap if we have a compiler
3c782584 6297 # and we are in a native configuration.
6298 yes:$build:$build:default)
98777423 6299 enable_bootstrap=yes ;;
3c782584 6300
6301 *:*:*:default)
6302 enable_bootstrap=no ;;
6303
6304 # We have a compiler and we are in a native configuration, bootstrap is ok
0c8a85c6 6305 yes:$build:$build:yes)
3c782584 6306 ;;
6307
6308 # Other configurations, but we have a compiler. Assume the user knows
6309 # what he's doing.
0c8a85c6 6310 yes:*:*:yes)
b30fcfae 6311 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
6312echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
3c782584 6313 ;;
6314
6315 # No compiler: if they passed --enable-bootstrap explicitly, fail
0c8a85c6 6316 no:*:*:yes)
b30fcfae 6317 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
6318echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
6319 { (exit 1); exit 1; }; } ;;
3c782584 6320
6321 # Fail if wrong command line
6322 *)
b30fcfae 6323 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
6324echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
6325 { (exit 1); exit 1; }; }
3c782584 6326 ;;
6327esac
6328
6329# Adjust the toplevel makefile according to whether bootstrap was selected.
54f0538b 6330case "$enable_bootstrap" in
6331 yes)
93f93279 6332 bootstrap_suffix=bootstrap ;;
54f0538b 6333 no)
93f93279 6334 bootstrap_suffix=no-bootstrap ;;
54f0538b 6335esac
6336
2f8725b0 6337for module in ${build_configdirs} ; do
93f93279 6338 if test -z "${no_recursion}" \
6339 && test -f ${build_subdir}/${module}/Makefile; then
6340 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6341 rm -f ${build_subdir}/${module}/Makefile
6342 fi
6343 extrasub="$extrasub
6344/^@if build-$module\$/d
6345/^@endif build-$module\$/d
6346/^@if build-$module-$bootstrap_suffix\$/d
6347/^@endif build-$module-$bootstrap_suffix\$/d"
6348done
6349for module in ${configdirs} ; do
9c19a746 6350 if test -z "${no_recursion}"; then
35d84d10 6351 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9c19a746 6352 if test -f ${file}; then
6353 echo 1>&2 "*** removing ${file} to force reconfigure"
6354 rm -f ${file}
6355 fi
6356 done
93f93279 6357 fi
6358 extrasub="$extrasub
6359/^@if $module\$/d
6360/^@endif $module\$/d
6361/^@if $module-$bootstrap_suffix\$/d
6362/^@endif $module-$bootstrap_suffix\$/d"
6363done
6364for module in ${target_configdirs} ; do
6365 if test -z "${no_recursion}" \
6366 && test -f ${target_subdir}/${module}/Makefile; then
6367 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6368 rm -f ${target_subdir}/${module}/Makefile
6369 fi
7ab76cec 6370
6371 # We only bootstrap target libraries listed in bootstrap_target_libs.
6372 case $bootstrap_target_libs in
6373 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6374 *) target_bootstrap_suffix=no-bootstrap ;;
6375 esac
6376
93f93279 6377 extrasub="$extrasub
6378/^@if target-$module\$/d
6379/^@endif target-$module\$/d
7ab76cec 6380/^@if target-$module-$target_bootstrap_suffix\$/d
6381/^@endif target-$module-$target_bootstrap_suffix\$/d"
93f93279 6382done
6383
01b41571 6384extrasub="$extrasub
6385/^@if /,/^@endif /d"
71ab34df 6386
6387# Create the serialization dependencies. This uses a temporary file.
6388
5084f823 6389# Check whether --enable-serial-configure or --disable-serial-configure was given.
11d8013a 6390if test "${enable_serial_configure+set}" = set; then
5084f823 6391 enableval="$enable_serial_configure"
11d8013a 6392
5084f823 6393fi;
11d8013a 6394
622c1fa9 6395case ${enable_serial_configure} in
6396 yes)
6397 enable_serial_build_configure=yes
6398 enable_serial_host_configure=yes
6399 enable_serial_target_configure=yes
6400 ;;
6401esac
6402
71ab34df 6403# These force 'configure's to be done one at a time, to avoid problems
6404# with contention over a shared config.cache.
6405rm -f serdep.tmp
11d8013a 6406echo '# serdep.tmp' > serdep.tmp
71ab34df 6407olditem=
622c1fa9 6408test "x${enable_serial_build_configure}" = xyes &&
71ab34df 6409for item in ${build_configdirs} ; do
6410 case ${olditem} in
6411 "") ;;
11d8013a 6412 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
71ab34df 6413 esac
6414 olditem=${item}
6415done
6416olditem=
622c1fa9 6417test "x${enable_serial_host_configure}" = xyes &&
71ab34df 6418for item in ${configdirs} ; do
6419 case ${olditem} in
6420 "") ;;
11d8013a 6421 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
71ab34df 6422 esac
6423 olditem=${item}
6424done
6425olditem=
622c1fa9 6426test "x${enable_serial_target_configure}" = xyes &&
71ab34df 6427for item in ${target_configdirs} ; do
6428 case ${olditem} in
6429 "") ;;
11d8013a 6430 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
71ab34df 6431 esac
6432 olditem=${item}
6433done
6434serialization_dependencies=serdep.tmp
6435
6436
11d8013a 6437# Base args. Strip norecursion, cache-file, srcdir, host, build,
b30fcfae 6438# target, nonopt, and variable assignments. These are the ones we
6439# might not want to pass down to subconfigures. Also strip
6440# program-prefix, program-suffix, and program-transform-name, so that
6441# we can pass down a consistent program-transform-name.
6442baseargs=
6443keep_next=no
6444skip_next=no
6445eval "set -- $ac_configure_args"
4ff792a4 6446for ac_arg
6447do
b30fcfae 6448 if test X"$skip_next" = X"yes"; then
6449 skip_next=no
6450 continue
6451 fi
6452 if test X"$keep_next" = X"yes"; then
6453 case $ac_arg in
6454 *\'*)
6455 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6456 esac
6457 baseargs="$baseargs '$ac_arg'"
6458 keep_next=no
6459 continue
6460 fi
6461
6462 # Handle separated arguments. Based on the logic generated by
6463 # autoconf 2.59.
6464 case $ac_arg in
6465 *=* | --config-cache | -C | -disable-* | --disable-* \
6466 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6467 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6468 | -with-* | --with-* | -without-* | --without-* | --x)
6469 separate_arg=no
6470 ;;
6471 -*)
6472 separate_arg=yes
6473 ;;
6474 *)
6475 separate_arg=no
6476 ;;
6477 esac
6478
6479 case "$ac_arg" in
6480 --no*)
6481 continue
6482 ;;
6483 --c* | \
6484 --sr* | \
6485 --ho* | \
6486 --bu* | \
6487 --t* | \
6488 --program-* | \
6489 -cache_file* | \
6490 -srcdir* | \
6491 -host* | \
6492 -build* | \
6493 -target* | \
6494 -program-prefix* | \
6495 -program-suffix* | \
6496 -program-transform-name* )
6497 skip_next=$separate_arg
6498 continue
6499 ;;
6500 -*)
6501 # An option. Add it.
6502 case $ac_arg in
6503 *\'*)
6504 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6505 esac
6506 baseargs="$baseargs '$ac_arg'"
6507 keep_next=$separate_arg
6508 ;;
6509 *)
6510 # Either a variable assignment, or a nonopt (triplet). Don't
6511 # pass it down; let the Makefile handle this.
6512 continue
6513 ;;
6514 esac
6515done
6516# Remove the initial space we just introduced and, as these will be
6517# expanded by make, quote '$'.
6518baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
71ab34df 6519
fbfea1fa 6520# Add in --program-transform-name, after --program-prefix and
6521# --program-suffix have been applied to it. Autoconf has already
6522# doubled dollar signs and backslashes in program_transform_name; we want
6523# the backslashes un-doubled, and then the entire thing wrapped in single
b30fcfae 6524# quotes, because this will be expanded first by make and then by the shell.
fbfea1fa 6525# Also, because we want to override the logic in subdir configure scripts to
6526# choose program_transform_name, replace any s,x,x, with s,y,y,.
6527sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6528${program_transform_name}
6529EOF_SED
6530gcc_transform_name=`cat conftestsed.out`
6531rm -f conftestsed.out
6532baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
af7bb0c0 6533if test "$silent" = yes; then
6534 baseargs="$baseargs --silent"
6535fi
fbfea1fa 6536
71ab34df 6537# For the build-side libraries, we just need to pretend we're native,
6538# and not use the same cache file. Multilibs are neither needed nor
6539# desired.
d45318b3 6540build_configargs="--cache-file=../config.cache ${baseargs}"
71ab34df 6541
6542# For host modules, accept cache file option, or specification as blank.
6543case "${cache_file}" in
6544"") # empty
6545 cache_file_option="" ;;
6546/* | [A-Za-z]:[\\/]* ) # absolute path
6547 cache_file_option="--cache-file=${cache_file}" ;;
6548*) # relative path
6549 cache_file_option="--cache-file=../${cache_file}" ;;
6550esac
6551
ba1081ef 6552# Host dirs don't like to share a cache file either, horribly enough.
6553# This seems to be due to autoconf 2.5x stupidity.
d45318b3 6554host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
71ab34df 6555
6556target_configargs=${baseargs}
6557
6558# Passing a --with-cross-host argument lets the target libraries know
6559# whether they are being built with a cross-compiler or being built
6560# native. However, it would be better to use other mechanisms to make the
6561# sorts of decisions they want to make on this basis. Please consider
6562# this option to be deprecated. FIXME.
6563if test x${is_cross_compiler} = xyes ; then
b30fcfae 6564 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
71ab34df 6565fi
6566
6567# Default to --enable-multilib.
6568if test x${enable_multilib} = x ; then
6569 target_configargs="--enable-multilib ${target_configargs}"
6570fi
6571
6572# Pass --with-newlib if appropriate. Note that target_configdirs has
6573# changed from the earlier setting of with_newlib.
6574if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6575 target_configargs="--with-newlib ${target_configargs}"
6576fi
6577
74fef112 6578# Different target subdirs use different values of certain variables
6579# (notably CXX). Worse, multilibs use *lots* of different values.
6580# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6581# it doesn't automatically accept command-line overrides of them.
6582# This means it's not safe for target subdirs to share a cache file,
6583# which is disgusting, but there you have it. Hopefully this can be
6584# fixed in future. It's still worthwhile to use a cache file for each
6585# directory. I think.
6586
a8abbd9d 6587# Pass the appropriate --build, --host, --target and --cache-file arguments.
6588# We need to pass --target, as newer autoconf's requires consistency
6589# for target_alias and gcc doesn't manage it consistently.
d45318b3 6590target_configargs="--cache-file=./config.cache ${target_configargs}"
71ab34df 6591
71ab34df 6592FLAGS_FOR_TARGET=
6593case " $target_configdirs " in
6594 *" newlib "*)
6595 case " $target_configargs " in
6596 *" --with-newlib "*)
6597 case "$target" in
6598 *-cygwin*)
d957c480 6599 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' ;;
71ab34df 6600 esac
6601
6602 # If we're not building GCC, don't discard standard headers.
6603 if test -d ${srcdir}/gcc; then
6604 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6605
6606 if test "${build}" != "${host}"; then
6607 # On Canadian crosses, CC_FOR_TARGET will have already been set
6608 # by `configure', so we won't have an opportunity to add -Bgcc/
6609 # to it. This is right: we don't want to search that directory
6610 # for binaries, but we want the header files in there, so add
6611 # them explicitly.
c1eb9e31 6612 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
71ab34df 6613
6614 # Someone might think of using the pre-installed headers on
6615 # Canadian crosses, in case the installed compiler is not fully
6616 # compatible with the compiler being built. In this case, it
6617 # would be better to flag an error than risking having
6618 # incompatible object files being constructed. We can't
6619 # guarantee that an error will be flagged, but let's hope the
6620 # compiler will do it, when presented with incompatible header
6621 # files.
6622 fi
6623 fi
6624
6625 case "${target}-${is_cross_compiler}" in
f74ea578 6626 i[3456789]86-*-linux*-no)
71ab34df 6627 # Here host == target, so we don't need to build gcc,
6628 # so we don't want to discard standard headers.
6629 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6630 ;;
6631 *)
6632 # If we're building newlib, use its generic headers last, but search
6633 # for any libc-related directories first (so make it the last -B
6634 # switch).
6635 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
1c5767f1 6636
6637 # If we're building libgloss, find the startup file, simulator library
6638 # and linker script.
6639 case " $target_configdirs " in
6640 *" libgloss "*)
6641 # Look for startup file, simulator library and maybe linker script.
6642 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6643 # Look for libnosys.a in case the target needs it.
6644 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6645 # Most targets have the linker script in the source directory.
6646 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6647 ;;
6648 esac
71ab34df 6649 ;;
6650 esac
6651 ;;
6652 esac
6653 ;;
6654esac
d6d689df 6655case "$target" in
6656*-mingw*)
6657 # Can't be handled as Cygwin above since Mingw does not use newlib.
6658 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' ;;
6659esac
71ab34df 6660
d8e9ea04 6661# Allow the user to override the flags for
6662# our build compiler if desired.
823e8b8d 6663if test x"${build}" = x"${host}" ; then
6664 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6665 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6666 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6667fi
d8e9ea04 6668
71ab34df 6669# On Canadian crosses, we'll be searching the right directories for
6670# the previously-installed cross compiler, so don't bother to add
6671# flags for directories within the install tree of the compiler
6672# being built; programs in there won't even run.
6673if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6674 # Search for pre-installed headers if nothing else fits.
5750c7d4 6675 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
71ab34df 6676fi
6677
6678if test "x${use_gnu_ld}" = x &&
6679 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6680 # Arrange for us to find uninstalled linker scripts.
c1eb9e31 6681 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
71ab34df 6682fi
6683
24714a39 6684# Search for other target-specific linker scripts and such.
6685case "${target}" in
38d7211b 6686 mep*)
6687 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6688 ;;
24714a39 6689esac
6690
71ab34df 6691# Makefile fragments.
03c65091 6692for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6693do
6694 eval fragval=\$$frag
6695 if test $fragval != /dev/null; then
6696 eval $frag=${srcdir}/$fragval
6697 fi
6698done
71ab34df 6699
6700
6701
6702
6703
6704# Miscellanea: directories, flags, etc.
6705
6706
6707
6708
6709
6710
6711
7d804f04 6712
2f8725b0 6713# Build module lists & subconfigure args.
71ab34df 6714
6715
6716
f5aebe3e 6717# Host module lists & subconfigure args.
6718
6719
6720
6721# Target module lists & subconfigure args.
6722
6723
6724
6725# Build tools.
6726
6727
6728
93c5e793 6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
f5aebe3e 6743# Generate default definitions for YACC, M4, LEX and other programs that run
6744# on the build machine. These are used if the Makefile can't locate these
6745# programs in objdir.
6746MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6747
6748for ac_prog in 'bison -y' byacc yacc
6749do
b30fcfae 6750 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6751set dummy $ac_prog; ac_word=$2
5084f823 6752echo "$as_me:$LINENO: checking for $ac_word" >&5
6753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6754if test "${ac_cv_prog_YACC+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6756else
6757 if test -n "$YACC"; then
6758 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6759else
b30fcfae 6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6767 ac_cv_prog_YACC="$ac_prog"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771done
6772done
6773
f5aebe3e 6774fi
6775fi
b30fcfae 6776YACC=$ac_cv_prog_YACC
f5aebe3e 6777if test -n "$YACC"; then
5084f823 6778 echo "$as_me:$LINENO: result: $YACC" >&5
6779echo "${ECHO_T}$YACC" >&6
f5aebe3e 6780else
5084f823 6781 echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6
f5aebe3e 6783fi
6784
b30fcfae 6785 test -n "$YACC" && break
f5aebe3e 6786done
6787test -n "$YACC" || YACC="$MISSING bison -y"
6788
6789case " $build_configdirs " in
6790 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6791 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6792esac
6793
6794for ac_prog in bison
6795do
b30fcfae 6796 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6797set dummy $ac_prog; ac_word=$2
5084f823 6798echo "$as_me:$LINENO: checking for $ac_word" >&5
6799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6800if test "${ac_cv_prog_BISON+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6802else
6803 if test -n "$BISON"; then
6804 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6805else
b30fcfae 6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6813 ac_cv_prog_BISON="$ac_prog"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817done
6818done
6819
f5aebe3e 6820fi
6821fi
b30fcfae 6822BISON=$ac_cv_prog_BISON
f5aebe3e 6823if test -n "$BISON"; then
5084f823 6824 echo "$as_me:$LINENO: result: $BISON" >&5
6825echo "${ECHO_T}$BISON" >&6
f5aebe3e 6826else
5084f823 6827 echo "$as_me:$LINENO: result: no" >&5
6828echo "${ECHO_T}no" >&6
f5aebe3e 6829fi
6830
b30fcfae 6831 test -n "$BISON" && break
f5aebe3e 6832done
6833test -n "$BISON" || BISON="$MISSING bison"
6834
6835case " $build_configdirs " in
6836 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6837esac
6838
6839for ac_prog in gm4 gnum4 m4
6840do
b30fcfae 6841 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6842set dummy $ac_prog; ac_word=$2
5084f823 6843echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6845if test "${ac_cv_prog_M4+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6847else
6848 if test -n "$M4"; then
6849 ac_cv_prog_M4="$M4" # Let the user override the test.
6850else
b30fcfae 6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6858 ac_cv_prog_M4="$ac_prog"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862done
6863done
6864
f5aebe3e 6865fi
6866fi
b30fcfae 6867M4=$ac_cv_prog_M4
f5aebe3e 6868if test -n "$M4"; then
5084f823 6869 echo "$as_me:$LINENO: result: $M4" >&5
6870echo "${ECHO_T}$M4" >&6
f5aebe3e 6871else
5084f823 6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
f5aebe3e 6874fi
6875
b30fcfae 6876 test -n "$M4" && break
f5aebe3e 6877done
6878test -n "$M4" || M4="$MISSING m4"
6879
6880case " $build_configdirs " in
6881 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6882esac
6883
6884for ac_prog in flex lex
6885do
b30fcfae 6886 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6887set dummy $ac_prog; ac_word=$2
5084f823 6888echo "$as_me:$LINENO: checking for $ac_word" >&5
6889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6890if test "${ac_cv_prog_LEX+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6892else
6893 if test -n "$LEX"; then
6894 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6895else
b30fcfae 6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6903 ac_cv_prog_LEX="$ac_prog"
6904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907done
6908done
6909
f5aebe3e 6910fi
6911fi
b30fcfae 6912LEX=$ac_cv_prog_LEX
f5aebe3e 6913if test -n "$LEX"; then
5084f823 6914 echo "$as_me:$LINENO: result: $LEX" >&5
6915echo "${ECHO_T}$LEX" >&6
f5aebe3e 6916else
5084f823 6917 echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6
f5aebe3e 6919fi
6920
b30fcfae 6921 test -n "$LEX" && break
f5aebe3e 6922done
6923test -n "$LEX" || LEX="$MISSING flex"
6924
6925case " $build_configdirs " in
6926 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6927 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6928esac
6929
6930for ac_prog in flex
6931do
b30fcfae 6932 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6933set dummy $ac_prog; ac_word=$2
5084f823 6934echo "$as_me:$LINENO: checking for $ac_word" >&5
6935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6936if test "${ac_cv_prog_FLEX+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6938else
6939 if test -n "$FLEX"; then
6940 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6941else
b30fcfae 6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6949 ac_cv_prog_FLEX="$ac_prog"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953done
6954done
6955
f5aebe3e 6956fi
6957fi
b30fcfae 6958FLEX=$ac_cv_prog_FLEX
f5aebe3e 6959if test -n "$FLEX"; then
5084f823 6960 echo "$as_me:$LINENO: result: $FLEX" >&5
6961echo "${ECHO_T}$FLEX" >&6
f5aebe3e 6962else
5084f823 6963 echo "$as_me:$LINENO: result: no" >&5
6964echo "${ECHO_T}no" >&6
f5aebe3e 6965fi
6966
b30fcfae 6967 test -n "$FLEX" && break
f5aebe3e 6968done
6969test -n "$FLEX" || FLEX="$MISSING flex"
6970
6971case " $build_configdirs " in
6972 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6973esac
6974
6975for ac_prog in makeinfo
6976do
b30fcfae 6977 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6978set dummy $ac_prog; ac_word=$2
5084f823 6979echo "$as_me:$LINENO: checking for $ac_word" >&5
6980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6981if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6983else
6984 if test -n "$MAKEINFO"; then
6985 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6986else
b30fcfae 6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6994 ac_cv_prog_MAKEINFO="$ac_prog"
6995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998done
6999done
7000
f5aebe3e 7001fi
7002fi
b30fcfae 7003MAKEINFO=$ac_cv_prog_MAKEINFO
f5aebe3e 7004if test -n "$MAKEINFO"; then
5084f823 7005 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7006echo "${ECHO_T}$MAKEINFO" >&6
f5aebe3e 7007else
5084f823 7008 echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6
f5aebe3e 7010fi
7011
b30fcfae 7012 test -n "$MAKEINFO" && break
f5aebe3e 7013done
7014test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7015
7016case " $build_configdirs " in
7017 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7018 *)
7019
03caadda 7020 # For an installed makeinfo, we require it to be from texinfo 4.7 or
f5aebe3e 7021 # higher, else we use the "missing" dummy.
7022 if ${MAKEINFO} --version \
03caadda 7023 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
f5aebe3e 7024 :
7025 else
7026 MAKEINFO="$MISSING makeinfo"
7027 fi
7028 ;;
7029
7030esac
71ab34df 7031
f5aebe3e 7032# FIXME: expect and dejagnu may become build tools?
71ab34df 7033
f5aebe3e 7034for ac_prog in expect
7035do
b30fcfae 7036 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7037set dummy $ac_prog; ac_word=$2
5084f823 7038echo "$as_me:$LINENO: checking for $ac_word" >&5
7039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7040if test "${ac_cv_prog_EXPECT+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 7042else
7043 if test -n "$EXPECT"; then
7044 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7045else
b30fcfae 7046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7053 ac_cv_prog_EXPECT="$ac_prog"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057done
7058done
7059
f5aebe3e 7060fi
7061fi
b30fcfae 7062EXPECT=$ac_cv_prog_EXPECT
f5aebe3e 7063if test -n "$EXPECT"; then
5084f823 7064 echo "$as_me:$LINENO: result: $EXPECT" >&5
7065echo "${ECHO_T}$EXPECT" >&6
f5aebe3e 7066else
5084f823 7067 echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6
f5aebe3e 7069fi
71ab34df 7070
b30fcfae 7071 test -n "$EXPECT" && break
f5aebe3e 7072done
7073test -n "$EXPECT" || EXPECT="expect"
71ab34df 7074
f5aebe3e 7075case " $configdirs " in
7076 *" expect "*)
7077 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7078 ;;
7079esac
71ab34df 7080
f5aebe3e 7081for ac_prog in runtest
7082do
b30fcfae 7083 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7084set dummy $ac_prog; ac_word=$2
5084f823 7085echo "$as_me:$LINENO: checking for $ac_word" >&5
7086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7087if test "${ac_cv_prog_RUNTEST+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 7089else
7090 if test -n "$RUNTEST"; then
7091 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
a4af6a58 7092else
b30fcfae 7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7100 ac_cv_prog_RUNTEST="$ac_prog"
7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7103 fi
7104done
7105done
7106
f5aebe3e 7107fi
7108fi
b30fcfae 7109RUNTEST=$ac_cv_prog_RUNTEST
f5aebe3e 7110if test -n "$RUNTEST"; then
5084f823 7111 echo "$as_me:$LINENO: result: $RUNTEST" >&5
7112echo "${ECHO_T}$RUNTEST" >&6
f5aebe3e 7113else
5084f823 7114 echo "$as_me:$LINENO: result: no" >&5
7115echo "${ECHO_T}no" >&6
f5aebe3e 7116fi
71ab34df 7117
b30fcfae 7118 test -n "$RUNTEST" && break
f5aebe3e 7119done
7120test -n "$RUNTEST" || RUNTEST="runtest"
71ab34df 7121
f5aebe3e 7122case " $configdirs " in
7123 *" dejagnu "*)
8d365775 7124 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
f5aebe3e 7125 ;;
7126esac
71ab34df 7127
7128
71ab34df 7129# Host tools.
bb612911 7130ncn_tool_prefix=
7131test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7132ncn_target_tool_prefix=
7133test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7134
95a05732 7135
7136
7137if test -n "$AR"; then
7138 ac_cv_prog_AR=$AR
7139elif test -n "$ac_cv_prog_AR"; then
7140 AR=$ac_cv_prog_AR
7141fi
7142
7143if test -n "$ac_cv_prog_AR"; then
7144 for ncn_progname in ar; do
7145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7146set dummy ${ncn_progname}; ac_word=$2
5084f823 7147echo "$as_me:$LINENO: checking for $ac_word" >&5
7148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7149if test "${ac_cv_prog_AR+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152 if test -n "$AR"; then
7153 ac_cv_prog_AR="$AR" # Let the user override the test.
7154else
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7162 ac_cv_prog_AR="${ncn_progname}"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166done
7167done
7168
7169fi
7170fi
7171AR=$ac_cv_prog_AR
7172if test -n "$AR"; then
5084f823 7173 echo "$as_me:$LINENO: result: $AR" >&5
7174echo "${ECHO_T}$AR" >&6
95a05732 7175else
5084f823 7176 echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6
95a05732 7178fi
7179
7180 done
7181fi
7182
7183for ncn_progname in ar; do
768691b5 7184 if test -n "$ncn_tool_prefix"; then
7185 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7186set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7187echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7189if test "${ac_cv_prog_AR+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7191else
7192 if test -n "$AR"; then
7193 ac_cv_prog_AR="$AR" # Let the user override the test.
7194else
b30fcfae 7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7202 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206done
7207done
7208
bb612911 7209fi
7210fi
b30fcfae 7211AR=$ac_cv_prog_AR
bb612911 7212if test -n "$AR"; then
5084f823 7213 echo "$as_me:$LINENO: result: $AR" >&5
7214echo "${ECHO_T}$AR" >&6
bb612911 7215else
5084f823 7216 echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6
bb612911 7218fi
7219
768691b5 7220 fi
7221 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7223set dummy ${ncn_progname}; ac_word=$2
5084f823 7224echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7226if test "${ac_cv_prog_AR+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7228else
768691b5 7229 if test -n "$AR"; then
ae48753c 7230 ac_cv_prog_AR="$AR" # Let the user override the test.
7231else
b30fcfae 7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7239 ac_cv_prog_AR="${ncn_progname}"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243done
7244done
7245
bb612911 7246fi
7247fi
b30fcfae 7248AR=$ac_cv_prog_AR
768691b5 7249if test -n "$AR"; then
5084f823 7250 echo "$as_me:$LINENO: result: $AR" >&5
7251echo "${ECHO_T}$AR" >&6
bb612911 7252else
5084f823 7253 echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6
bb612911 7255fi
b30fcfae 7256
768691b5 7257 fi
7258 test -n "$ac_cv_prog_AR" && break
7259done
7260
7261if test -z "$ac_cv_prog_AR" ; then
7262 set dummy ar
7263 if test $build = $host ; then
7264 AR="$2"
bb612911 7265 else
768691b5 7266 AR="${ncn_tool_prefix}$2"
bb612911 7267 fi
bb612911 7268fi
7269
95a05732 7270
7271
7272if test -n "$AS"; then
7273 ac_cv_prog_AS=$AS
7274elif test -n "$ac_cv_prog_AS"; then
7275 AS=$ac_cv_prog_AS
7276fi
7277
7278if test -n "$ac_cv_prog_AS"; then
7279 for ncn_progname in as; do
7280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7281set dummy ${ncn_progname}; ac_word=$2
5084f823 7282echo "$as_me:$LINENO: checking for $ac_word" >&5
7283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7284if test "${ac_cv_prog_AS+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286else
7287 if test -n "$AS"; then
7288 ac_cv_prog_AS="$AS" # Let the user override the test.
7289else
7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7297 ac_cv_prog_AS="${ncn_progname}"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301done
7302done
7303
7304fi
7305fi
7306AS=$ac_cv_prog_AS
7307if test -n "$AS"; then
5084f823 7308 echo "$as_me:$LINENO: result: $AS" >&5
7309echo "${ECHO_T}$AS" >&6
95a05732 7310else
5084f823 7311 echo "$as_me:$LINENO: result: no" >&5
7312echo "${ECHO_T}no" >&6
95a05732 7313fi
7314
7315 done
7316fi
7317
7318for ncn_progname in as; do
768691b5 7319 if test -n "$ncn_tool_prefix"; then
7320 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7321set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7322echo "$as_me:$LINENO: checking for $ac_word" >&5
7323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7324if test "${ac_cv_prog_AS+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7326else
7327 if test -n "$AS"; then
7328 ac_cv_prog_AS="$AS" # Let the user override the test.
a83ffacf 7329else
b30fcfae 7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7337 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343
bb612911 7344fi
7345fi
b30fcfae 7346AS=$ac_cv_prog_AS
bb612911 7347if test -n "$AS"; then
5084f823 7348 echo "$as_me:$LINENO: result: $AS" >&5
7349echo "${ECHO_T}$AS" >&6
bb612911 7350else
5084f823 7351 echo "$as_me:$LINENO: result: no" >&5
7352echo "${ECHO_T}no" >&6
bb612911 7353fi
7354
768691b5 7355 fi
7356 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7358set dummy ${ncn_progname}; ac_word=$2
5084f823 7359echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7361if test "${ac_cv_prog_AS+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7363else
768691b5 7364 if test -n "$AS"; then
7365 ac_cv_prog_AS="$AS" # Let the user override the test.
bb612911 7366else
b30fcfae 7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7374 ac_cv_prog_AS="${ncn_progname}"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378done
7379done
7380
bb612911 7381fi
7382fi
b30fcfae 7383AS=$ac_cv_prog_AS
768691b5 7384if test -n "$AS"; then
5084f823 7385 echo "$as_me:$LINENO: result: $AS" >&5
7386echo "${ECHO_T}$AS" >&6
bb612911 7387else
5084f823 7388 echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6
bb612911 7390fi
b30fcfae 7391
768691b5 7392 fi
7393 test -n "$ac_cv_prog_AS" && break
7394done
7395
7396if test -z "$ac_cv_prog_AS" ; then
7397 set dummy as
7398 if test $build = $host ; then
7399 AS="$2"
bb612911 7400 else
768691b5 7401 AS="${ncn_tool_prefix}$2"
bb612911 7402 fi
bb612911 7403fi
7404
95a05732 7405
7406
7407if test -n "$DLLTOOL"; then
7408 ac_cv_prog_DLLTOOL=$DLLTOOL
7409elif test -n "$ac_cv_prog_DLLTOOL"; then
7410 DLLTOOL=$ac_cv_prog_DLLTOOL
7411fi
7412
7413if test -n "$ac_cv_prog_DLLTOOL"; then
7414 for ncn_progname in dlltool; do
7415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7416set dummy ${ncn_progname}; ac_word=$2
5084f823 7417echo "$as_me:$LINENO: checking for $ac_word" >&5
7418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7419if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422 if test -n "$DLLTOOL"; then
7423 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7424else
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7432 ac_cv_prog_DLLTOOL="${ncn_progname}"
7433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
7436done
7437done
7438
7439fi
7440fi
7441DLLTOOL=$ac_cv_prog_DLLTOOL
7442if test -n "$DLLTOOL"; then
5084f823 7443 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7444echo "${ECHO_T}$DLLTOOL" >&6
95a05732 7445else
5084f823 7446 echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6
95a05732 7448fi
7449
7450 done
7451fi
7452
7453for ncn_progname in dlltool; do
768691b5 7454 if test -n "$ncn_tool_prefix"; then
7455 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7456set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7457echo "$as_me:$LINENO: checking for $ac_word" >&5
7458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7459if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7461else
7462 if test -n "$DLLTOOL"; then
7463 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7464else
b30fcfae 7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7472 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476done
7477done
7478
bb612911 7479fi
7480fi
b30fcfae 7481DLLTOOL=$ac_cv_prog_DLLTOOL
bb612911 7482if test -n "$DLLTOOL"; then
5084f823 7483 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7484echo "${ECHO_T}$DLLTOOL" >&6
bb612911 7485else
5084f823 7486 echo "$as_me:$LINENO: result: no" >&5
7487echo "${ECHO_T}no" >&6
bb612911 7488fi
7489
768691b5 7490 fi
7491 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7493set dummy ${ncn_progname}; ac_word=$2
5084f823 7494echo "$as_me:$LINENO: checking for $ac_word" >&5
7495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7496if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7498else
768691b5 7499 if test -n "$DLLTOOL"; then
7500 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
bb612911 7501else
b30fcfae 7502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7509 ac_cv_prog_DLLTOOL="${ncn_progname}"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7512 fi
7513done
7514done
7515
bb612911 7516fi
7517fi
b30fcfae 7518DLLTOOL=$ac_cv_prog_DLLTOOL
768691b5 7519if test -n "$DLLTOOL"; then
5084f823 7520 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7521echo "${ECHO_T}$DLLTOOL" >&6
bb612911 7522else
5084f823 7523 echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6
bb612911 7525fi
b30fcfae 7526
768691b5 7527 fi
7528 test -n "$ac_cv_prog_DLLTOOL" && break
7529done
7530
7531if test -z "$ac_cv_prog_DLLTOOL" ; then
7532 set dummy dlltool
7533 if test $build = $host ; then
7534 DLLTOOL="$2"
bb612911 7535 else
768691b5 7536 DLLTOOL="${ncn_tool_prefix}$2"
bb612911 7537 fi
bb612911 7538fi
7539
95a05732 7540
7541
7542if test -n "$LD"; then
7543 ac_cv_prog_LD=$LD
7544elif test -n "$ac_cv_prog_LD"; then
7545 LD=$ac_cv_prog_LD
7546fi
7547
7548if test -n "$ac_cv_prog_LD"; then
7549 for ncn_progname in ld; do
7550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7551set dummy ${ncn_progname}; ac_word=$2
5084f823 7552echo "$as_me:$LINENO: checking for $ac_word" >&5
7553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7554if test "${ac_cv_prog_LD+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556else
7557 if test -n "$LD"; then
7558 ac_cv_prog_LD="$LD" # Let the user override the test.
7559else
7560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7567 ac_cv_prog_LD="${ncn_progname}"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7570 fi
7571done
7572done
7573
7574fi
7575fi
7576LD=$ac_cv_prog_LD
7577if test -n "$LD"; then
5084f823 7578 echo "$as_me:$LINENO: result: $LD" >&5
7579echo "${ECHO_T}$LD" >&6
95a05732 7580else
5084f823 7581 echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6
95a05732 7583fi
7584
7585 done
7586fi
7587
7588for ncn_progname in ld; do
768691b5 7589 if test -n "$ncn_tool_prefix"; then
7590 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7591set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7592echo "$as_me:$LINENO: checking for $ac_word" >&5
7593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7594if test "${ac_cv_prog_LD+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7596else
7597 if test -n "$LD"; then
7598 ac_cv_prog_LD="$LD" # Let the user override the test.
7599else
b30fcfae 7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7607 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611done
7612done
7613
bb612911 7614fi
7615fi
b30fcfae 7616LD=$ac_cv_prog_LD
bb612911 7617if test -n "$LD"; then
5084f823 7618 echo "$as_me:$LINENO: result: $LD" >&5
7619echo "${ECHO_T}$LD" >&6
bb612911 7620else
5084f823 7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
bb612911 7623fi
7624
768691b5 7625 fi
7626 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7628set dummy ${ncn_progname}; ac_word=$2
5084f823 7629echo "$as_me:$LINENO: checking for $ac_word" >&5
7630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7631if test "${ac_cv_prog_LD+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7633else
768691b5 7634 if test -n "$LD"; then
7635 ac_cv_prog_LD="$LD" # Let the user override the test.
7172be51 7636else
b30fcfae 7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7644 ac_cv_prog_LD="${ncn_progname}"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648done
7649done
7650
bb612911 7651fi
7652fi
b30fcfae 7653LD=$ac_cv_prog_LD
768691b5 7654if test -n "$LD"; then
5084f823 7655 echo "$as_me:$LINENO: result: $LD" >&5
7656echo "${ECHO_T}$LD" >&6
bb612911 7657else
5084f823 7658 echo "$as_me:$LINENO: result: no" >&5
7659echo "${ECHO_T}no" >&6
bb612911 7660fi
b30fcfae 7661
768691b5 7662 fi
7663 test -n "$ac_cv_prog_LD" && break
7664done
7665
7666if test -z "$ac_cv_prog_LD" ; then
7667 set dummy ld
7668 if test $build = $host ; then
7669 LD="$2"
bb612911 7670 else
768691b5 7671 LD="${ncn_tool_prefix}$2"
bb612911 7672 fi
bb612911 7673fi
7674
95a05732 7675
7676
7677if test -n "$LIPO"; then
7678 ac_cv_prog_LIPO=$LIPO
7679elif test -n "$ac_cv_prog_LIPO"; then
7680 LIPO=$ac_cv_prog_LIPO
7681fi
7682
7683if test -n "$ac_cv_prog_LIPO"; then
7684 for ncn_progname in lipo; do
7685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7686set dummy ${ncn_progname}; ac_word=$2
5084f823 7687echo "$as_me:$LINENO: checking for $ac_word" >&5
7688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7689if test "${ac_cv_prog_LIPO+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691else
7692 if test -n "$LIPO"; then
7693 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7694else
7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7702 ac_cv_prog_LIPO="${ncn_progname}"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706done
7707done
7708
7709fi
7710fi
7711LIPO=$ac_cv_prog_LIPO
7712if test -n "$LIPO"; then
5084f823 7713 echo "$as_me:$LINENO: result: $LIPO" >&5
7714echo "${ECHO_T}$LIPO" >&6
95a05732 7715else
5084f823 7716 echo "$as_me:$LINENO: result: no" >&5
7717echo "${ECHO_T}no" >&6
95a05732 7718fi
7719
7720 done
7721fi
7722
7723for ncn_progname in lipo; do
f5aebe3e 7724 if test -n "$ncn_tool_prefix"; then
7725 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7726set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7727echo "$as_me:$LINENO: checking for $ac_word" >&5
7728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7729if test "${ac_cv_prog_LIPO+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 7731else
7732 if test -n "$LIPO"; then
7733 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7734else
b30fcfae 7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7742 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746done
7747done
7748
f5aebe3e 7749fi
7750fi
b30fcfae 7751LIPO=$ac_cv_prog_LIPO
f5aebe3e 7752if test -n "$LIPO"; then
5084f823 7753 echo "$as_me:$LINENO: result: $LIPO" >&5
7754echo "${ECHO_T}$LIPO" >&6
f5aebe3e 7755else
5084f823 7756 echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6
f5aebe3e 7758fi
7759
7760 fi
7761 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7763set dummy ${ncn_progname}; ac_word=$2
5084f823 7764echo "$as_me:$LINENO: checking for $ac_word" >&5
7765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7766if test "${ac_cv_prog_LIPO+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 7768else
7769 if test -n "$LIPO"; then
7770 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7771else
b30fcfae 7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7779 ac_cv_prog_LIPO="${ncn_progname}"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7782 fi
7783done
7784done
7785
f5aebe3e 7786fi
7787fi
b30fcfae 7788LIPO=$ac_cv_prog_LIPO
f5aebe3e 7789if test -n "$LIPO"; then
5084f823 7790 echo "$as_me:$LINENO: result: $LIPO" >&5
7791echo "${ECHO_T}$LIPO" >&6
f5aebe3e 7792else
5084f823 7793 echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6
f5aebe3e 7795fi
b30fcfae 7796
f5aebe3e 7797 fi
7798 test -n "$ac_cv_prog_LIPO" && break
7799done
7800
7801if test -z "$ac_cv_prog_LIPO" ; then
7802 set dummy lipo
7803 if test $build = $host ; then
7804 LIPO="$2"
7805 else
7806 LIPO="${ncn_tool_prefix}$2"
7807 fi
7808fi
7809
95a05732 7810
7811
7812if test -n "$NM"; then
7813 ac_cv_prog_NM=$NM
7814elif test -n "$ac_cv_prog_NM"; then
7815 NM=$ac_cv_prog_NM
7816fi
7817
7818if test -n "$ac_cv_prog_NM"; then
7819 for ncn_progname in nm; do
7820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7821set dummy ${ncn_progname}; ac_word=$2
5084f823 7822echo "$as_me:$LINENO: checking for $ac_word" >&5
7823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7824if test "${ac_cv_prog_NM+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7826else
7827 if test -n "$NM"; then
7828 ac_cv_prog_NM="$NM" # Let the user override the test.
7829else
b30fcfae 7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7837 ac_cv_prog_NM="${ncn_progname}"
b30fcfae 7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841done
7842done
7843
bb612911 7844fi
7845fi
b30fcfae 7846NM=$ac_cv_prog_NM
bb612911 7847if test -n "$NM"; then
5084f823 7848 echo "$as_me:$LINENO: result: $NM" >&5
7849echo "${ECHO_T}$NM" >&6
bb612911 7850else
5084f823 7851 echo "$as_me:$LINENO: result: no" >&5
7852echo "${ECHO_T}no" >&6
bb612911 7853fi
7854
95a05732 7855 done
7856fi
7857
7858for ncn_progname in nm; do
7859 if test -n "$ncn_tool_prefix"; then
7860 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7861set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7862echo "$as_me:$LINENO: checking for $ac_word" >&5
7863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7864if test "${ac_cv_prog_NM+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7866else
768691b5 7867 if test -n "$NM"; then
7868 ac_cv_prog_NM="$NM" # Let the user override the test.
bb612911 7869else
b30fcfae 7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7877 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
b30fcfae 7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881done
7882done
7883
bb612911 7884fi
7885fi
b30fcfae 7886NM=$ac_cv_prog_NM
768691b5 7887if test -n "$NM"; then
5084f823 7888 echo "$as_me:$LINENO: result: $NM" >&5
7889echo "${ECHO_T}$NM" >&6
bb612911 7890else
5084f823 7891 echo "$as_me:$LINENO: result: no" >&5
7892echo "${ECHO_T}no" >&6
bb612911 7893fi
b30fcfae 7894
768691b5 7895 fi
95a05732 7896 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7898set dummy ${ncn_progname}; ac_word=$2
5084f823 7899echo "$as_me:$LINENO: checking for $ac_word" >&5
7900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7901if test "${ac_cv_prog_NM+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903else
7904 if test -n "$NM"; then
7905 ac_cv_prog_NM="$NM" # Let the user override the test.
7906else
7907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908for as_dir in $PATH
7909do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7914 ac_cv_prog_NM="${ncn_progname}"
7915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918done
7919done
7920
7921fi
7922fi
7923NM=$ac_cv_prog_NM
7924if test -n "$NM"; then
5084f823 7925 echo "$as_me:$LINENO: result: $NM" >&5
7926echo "${ECHO_T}$NM" >&6
95a05732 7927else
5084f823 7928 echo "$as_me:$LINENO: result: no" >&5
7929echo "${ECHO_T}no" >&6
95a05732 7930fi
7931
7932 fi
7933 test -n "$ac_cv_prog_NM" && break
7934done
7935
7936if test -z "$ac_cv_prog_NM" ; then
7937 set dummy nm
7938 if test $build = $host ; then
7939 NM="$2"
7940 else
7941 NM="${ncn_tool_prefix}$2"
7942 fi
7943fi
7944
7945
7946
7947if test -n "$RANLIB"; then
7948 ac_cv_prog_RANLIB=$RANLIB
7949elif test -n "$ac_cv_prog_RANLIB"; then
7950 RANLIB=$ac_cv_prog_RANLIB
7951fi
7952
7953if test -n "$ac_cv_prog_RANLIB"; then
7954 for ncn_progname in ranlib; do
7955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7956set dummy ${ncn_progname}; ac_word=$2
5084f823 7957echo "$as_me:$LINENO: checking for $ac_word" >&5
7958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7959if test "${ac_cv_prog_RANLIB+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7961else
7962 if test -n "$RANLIB"; then
7963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7964else
7965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966for as_dir in $PATH
7967do
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7972 ac_cv_prog_RANLIB="${ncn_progname}"
7973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976done
7977done
7978
7979fi
7980fi
7981RANLIB=$ac_cv_prog_RANLIB
7982if test -n "$RANLIB"; then
5084f823 7983 echo "$as_me:$LINENO: result: $RANLIB" >&5
7984echo "${ECHO_T}$RANLIB" >&6
95a05732 7985else
5084f823 7986 echo "$as_me:$LINENO: result: no" >&5
7987echo "${ECHO_T}no" >&6
95a05732 7988fi
7989
7990 done
7991fi
bb612911 7992
95a05732 7993for ncn_progname in ranlib; do
768691b5 7994 if test -n "$ncn_tool_prefix"; then
7995 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7996set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7997echo "$as_me:$LINENO: checking for $ac_word" >&5
7998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7999if test "${ac_cv_prog_RANLIB+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8001else
8002 if test -n "$RANLIB"; then
8003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8004else
b30fcfae 8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8012 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8015 fi
8016done
8017done
8018
bb612911 8019fi
8020fi
b30fcfae 8021RANLIB=$ac_cv_prog_RANLIB
bb612911 8022if test -n "$RANLIB"; then
5084f823 8023 echo "$as_me:$LINENO: result: $RANLIB" >&5
8024echo "${ECHO_T}$RANLIB" >&6
bb612911 8025else
5084f823 8026 echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6
bb612911 8028fi
8029
768691b5 8030 fi
8031 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8033set dummy ${ncn_progname}; ac_word=$2
5084f823 8034echo "$as_me:$LINENO: checking for $ac_word" >&5
8035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8036if test "${ac_cv_prog_RANLIB+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8038else
768691b5 8039 if test -n "$RANLIB"; then
8040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
bb612911 8041else
b30fcfae 8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8049 ac_cv_prog_RANLIB="${ncn_progname}"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053done
8054done
8055
bb612911 8056fi
8057fi
b30fcfae 8058RANLIB=$ac_cv_prog_RANLIB
768691b5 8059if test -n "$RANLIB"; then
5084f823 8060 echo "$as_me:$LINENO: result: $RANLIB" >&5
8061echo "${ECHO_T}$RANLIB" >&6
bb612911 8062else
5084f823 8063 echo "$as_me:$LINENO: result: no" >&5
8064echo "${ECHO_T}no" >&6
bb612911 8065fi
b30fcfae 8066
bb612911 8067 fi
768691b5 8068 test -n "$ac_cv_prog_RANLIB" && break
8069done
8070
8071if test -z "$ac_cv_prog_RANLIB" ; then
8072 RANLIB=":"
bb612911 8073fi
8074
95a05732 8075
8076
8077if test -n "$STRIP"; then
8078 ac_cv_prog_STRIP=$STRIP
8079elif test -n "$ac_cv_prog_STRIP"; then
8080 STRIP=$ac_cv_prog_STRIP
8081fi
8082
8083if test -n "$ac_cv_prog_STRIP"; then
8084 for ncn_progname in strip; do
8085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8086set dummy ${ncn_progname}; ac_word=$2
5084f823 8087echo "$as_me:$LINENO: checking for $ac_word" >&5
8088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8089if test "${ac_cv_prog_STRIP+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092 if test -n "$STRIP"; then
8093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8094else
8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8102 ac_cv_prog_STRIP="${ncn_progname}"
8103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106done
8107done
8108
8109fi
8110fi
8111STRIP=$ac_cv_prog_STRIP
8112if test -n "$STRIP"; then
5084f823 8113 echo "$as_me:$LINENO: result: $STRIP" >&5
8114echo "${ECHO_T}$STRIP" >&6
95a05732 8115else
5084f823 8116 echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
95a05732 8118fi
8119
8120 done
8121fi
8122
8123for ncn_progname in strip; do
f5aebe3e 8124 if test -n "$ncn_tool_prefix"; then
8125 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8126set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8127echo "$as_me:$LINENO: checking for $ac_word" >&5
8128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8129if test "${ac_cv_prog_STRIP+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 8131else
8132 if test -n "$STRIP"; then
8133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8134else
b30fcfae 8135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136for as_dir in $PATH
8137do
8138 IFS=$as_save_IFS
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8142 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 break 2
8145 fi
8146done
8147done
8148
f5aebe3e 8149fi
8150fi
b30fcfae 8151STRIP=$ac_cv_prog_STRIP
f5aebe3e 8152if test -n "$STRIP"; then
5084f823 8153 echo "$as_me:$LINENO: result: $STRIP" >&5
8154echo "${ECHO_T}$STRIP" >&6
f5aebe3e 8155else
5084f823 8156 echo "$as_me:$LINENO: result: no" >&5
8157echo "${ECHO_T}no" >&6
f5aebe3e 8158fi
8159
8160 fi
8161 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8163set dummy ${ncn_progname}; ac_word=$2
5084f823 8164echo "$as_me:$LINENO: checking for $ac_word" >&5
8165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8166if test "${ac_cv_prog_STRIP+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 8168else
8169 if test -n "$STRIP"; then
8170 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8171else
b30fcfae 8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8179 ac_cv_prog_STRIP="${ncn_progname}"
8180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183done
8184done
8185
f5aebe3e 8186fi
8187fi
b30fcfae 8188STRIP=$ac_cv_prog_STRIP
f5aebe3e 8189if test -n "$STRIP"; then
5084f823 8190 echo "$as_me:$LINENO: result: $STRIP" >&5
8191echo "${ECHO_T}$STRIP" >&6
f5aebe3e 8192else
5084f823 8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
f5aebe3e 8195fi
b30fcfae 8196
f5aebe3e 8197 fi
8198 test -n "$ac_cv_prog_STRIP" && break
8199done
8200
8201if test -z "$ac_cv_prog_STRIP" ; then
8202 STRIP=":"
8203fi
8204
95a05732 8205
8206
8207if test -n "$WINDRES"; then
8208 ac_cv_prog_WINDRES=$WINDRES
8209elif test -n "$ac_cv_prog_WINDRES"; then
8210 WINDRES=$ac_cv_prog_WINDRES
8211fi
8212
8213if test -n "$ac_cv_prog_WINDRES"; then
8214 for ncn_progname in windres; do
8215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8216set dummy ${ncn_progname}; ac_word=$2
5084f823 8217echo "$as_me:$LINENO: checking for $ac_word" >&5
8218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8219if test "${ac_cv_prog_WINDRES+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222 if test -n "$WINDRES"; then
8223 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8224else
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8232 ac_cv_prog_WINDRES="${ncn_progname}"
8233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236done
8237done
8238
8239fi
8240fi
8241WINDRES=$ac_cv_prog_WINDRES
8242if test -n "$WINDRES"; then
5084f823 8243 echo "$as_me:$LINENO: result: $WINDRES" >&5
8244echo "${ECHO_T}$WINDRES" >&6
95a05732 8245else
5084f823 8246 echo "$as_me:$LINENO: result: no" >&5
8247echo "${ECHO_T}no" >&6
95a05732 8248fi
8249
8250 done
8251fi
8252
8253for ncn_progname in windres; do
768691b5 8254 if test -n "$ncn_tool_prefix"; then
8255 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8256set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8257echo "$as_me:$LINENO: checking for $ac_word" >&5
8258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8259if test "${ac_cv_prog_WINDRES+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8261else
8262 if test -n "$WINDRES"; then
8263 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8264else
b30fcfae 8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266for as_dir in $PATH
8267do
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8272 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8275 fi
8276done
8277done
8278
bb612911 8279fi
8280fi
b30fcfae 8281WINDRES=$ac_cv_prog_WINDRES
bb612911 8282if test -n "$WINDRES"; then
5084f823 8283 echo "$as_me:$LINENO: result: $WINDRES" >&5
8284echo "${ECHO_T}$WINDRES" >&6
bb612911 8285else
5084f823 8286 echo "$as_me:$LINENO: result: no" >&5
8287echo "${ECHO_T}no" >&6
bb612911 8288fi
8289
768691b5 8290 fi
8291 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8293set dummy ${ncn_progname}; ac_word=$2
5084f823 8294echo "$as_me:$LINENO: checking for $ac_word" >&5
8295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8296if test "${ac_cv_prog_WINDRES+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8298else
768691b5 8299 if test -n "$WINDRES"; then
8300 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
bb612911 8301else
b30fcfae 8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8309 ac_cv_prog_WINDRES="${ncn_progname}"
8310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8312 fi
8313done
8314done
8315
bb612911 8316fi
8317fi
b30fcfae 8318WINDRES=$ac_cv_prog_WINDRES
768691b5 8319if test -n "$WINDRES"; then
5084f823 8320 echo "$as_me:$LINENO: result: $WINDRES" >&5
8321echo "${ECHO_T}$WINDRES" >&6
bb612911 8322else
5084f823 8323 echo "$as_me:$LINENO: result: no" >&5
8324echo "${ECHO_T}no" >&6
bb612911 8325fi
b30fcfae 8326
768691b5 8327 fi
8328 test -n "$ac_cv_prog_WINDRES" && break
8329done
8330
8331if test -z "$ac_cv_prog_WINDRES" ; then
8332 set dummy windres
8333 if test $build = $host ; then
8334 WINDRES="$2"
bb612911 8335 else
768691b5 8336 WINDRES="${ncn_tool_prefix}$2"
bb612911 8337 fi
bb612911 8338fi
8339
95a05732 8340
8341
75d6a0a9 8342if test -n "$WINDMC"; then
8343 ac_cv_prog_WINDMC=$WINDMC
8344elif test -n "$ac_cv_prog_WINDMC"; then
8345 WINDMC=$ac_cv_prog_WINDMC
8346fi
8347
8348if test -n "$ac_cv_prog_WINDMC"; then
8349 for ncn_progname in windmc; do
8350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8351set dummy ${ncn_progname}; ac_word=$2
8352echo "$as_me:$LINENO: checking for $ac_word" >&5
8353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8354if test "${ac_cv_prog_WINDMC+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356else
8357 if test -n "$WINDMC"; then
8358 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8359else
8360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361for as_dir in $PATH
8362do
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367 ac_cv_prog_WINDMC="${ncn_progname}"
8368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8370 fi
8371done
8372done
8373
8374fi
8375fi
8376WINDMC=$ac_cv_prog_WINDMC
8377if test -n "$WINDMC"; then
8378 echo "$as_me:$LINENO: result: $WINDMC" >&5
8379echo "${ECHO_T}$WINDMC" >&6
8380else
8381 echo "$as_me:$LINENO: result: no" >&5
8382echo "${ECHO_T}no" >&6
8383fi
8384
8385 done
8386fi
8387
8388for ncn_progname in windmc; do
8389 if test -n "$ncn_tool_prefix"; then
8390 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8391set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8392echo "$as_me:$LINENO: checking for $ac_word" >&5
8393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8394if test "${ac_cv_prog_WINDMC+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396else
8397 if test -n "$WINDMC"; then
8398 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8399else
8400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401for as_dir in $PATH
8402do
8403 IFS=$as_save_IFS
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8407 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 break 2
8410 fi
8411done
8412done
8413
8414fi
8415fi
8416WINDMC=$ac_cv_prog_WINDMC
8417if test -n "$WINDMC"; then
8418 echo "$as_me:$LINENO: result: $WINDMC" >&5
8419echo "${ECHO_T}$WINDMC" >&6
8420else
8421 echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6
8423fi
8424
8425 fi
8426 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8428set dummy ${ncn_progname}; ac_word=$2
8429echo "$as_me:$LINENO: checking for $ac_word" >&5
8430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8431if test "${ac_cv_prog_WINDMC+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433else
8434 if test -n "$WINDMC"; then
8435 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8436else
8437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438for as_dir in $PATH
8439do
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444 ac_cv_prog_WINDMC="${ncn_progname}"
8445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 break 2
8447 fi
8448done
8449done
8450
8451fi
8452fi
8453WINDMC=$ac_cv_prog_WINDMC
8454if test -n "$WINDMC"; then
8455 echo "$as_me:$LINENO: result: $WINDMC" >&5
8456echo "${ECHO_T}$WINDMC" >&6
8457else
8458 echo "$as_me:$LINENO: result: no" >&5
8459echo "${ECHO_T}no" >&6
8460fi
8461
8462 fi
8463 test -n "$ac_cv_prog_WINDMC" && break
8464done
8465
8466if test -z "$ac_cv_prog_WINDMC" ; then
8467 set dummy windmc
8468 if test $build = $host ; then
8469 WINDMC="$2"
8470 else
8471 WINDMC="${ncn_tool_prefix}$2"
8472 fi
8473fi
8474
8475
8476
95a05732 8477if test -n "$OBJCOPY"; then
8478 ac_cv_prog_OBJCOPY=$OBJCOPY
8479elif test -n "$ac_cv_prog_OBJCOPY"; then
8480 OBJCOPY=$ac_cv_prog_OBJCOPY
8481fi
8482
8483if test -n "$ac_cv_prog_OBJCOPY"; then
8484 for ncn_progname in objcopy; do
8485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8486set dummy ${ncn_progname}; ac_word=$2
5084f823 8487echo "$as_me:$LINENO: checking for $ac_word" >&5
8488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8489if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491else
8492 if test -n "$OBJCOPY"; then
8493 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8494else
8495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496for as_dir in $PATH
8497do
8498 IFS=$as_save_IFS
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8502 ac_cv_prog_OBJCOPY="${ncn_progname}"
8503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8504 break 2
8505 fi
8506done
8507done
8508
8509fi
8510fi
8511OBJCOPY=$ac_cv_prog_OBJCOPY
8512if test -n "$OBJCOPY"; then
5084f823 8513 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8514echo "${ECHO_T}$OBJCOPY" >&6
95a05732 8515else
5084f823 8516 echo "$as_me:$LINENO: result: no" >&5
8517echo "${ECHO_T}no" >&6
95a05732 8518fi
8519
8520 done
8521fi
8522
8523for ncn_progname in objcopy; do
768691b5 8524 if test -n "$ncn_tool_prefix"; then
8525 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8526set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8527echo "$as_me:$LINENO: checking for $ac_word" >&5
8528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8529if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8531else
8532 if test -n "$OBJCOPY"; then
8533 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8534else
b30fcfae 8535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536for as_dir in $PATH
8537do
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8542 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 break 2
8545 fi
8546done
8547done
8548
bb612911 8549fi
8550fi
b30fcfae 8551OBJCOPY=$ac_cv_prog_OBJCOPY
bb612911 8552if test -n "$OBJCOPY"; then
5084f823 8553 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8554echo "${ECHO_T}$OBJCOPY" >&6
bb612911 8555else
5084f823 8556 echo "$as_me:$LINENO: result: no" >&5
8557echo "${ECHO_T}no" >&6
bb612911 8558fi
8559
768691b5 8560 fi
8561 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8563set dummy ${ncn_progname}; ac_word=$2
5084f823 8564echo "$as_me:$LINENO: checking for $ac_word" >&5
8565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8566if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8568else
768691b5 8569 if test -n "$OBJCOPY"; then
8570 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
bb612911 8571else
b30fcfae 8572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573for as_dir in $PATH
8574do
8575 IFS=$as_save_IFS
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8579 ac_cv_prog_OBJCOPY="${ncn_progname}"
8580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 break 2
8582 fi
8583done
8584done
8585
bb612911 8586fi
8587fi
b30fcfae 8588OBJCOPY=$ac_cv_prog_OBJCOPY
768691b5 8589if test -n "$OBJCOPY"; then
5084f823 8590 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8591echo "${ECHO_T}$OBJCOPY" >&6
bb612911 8592else
5084f823 8593 echo "$as_me:$LINENO: result: no" >&5
8594echo "${ECHO_T}no" >&6
bb612911 8595fi
b30fcfae 8596
768691b5 8597 fi
8598 test -n "$ac_cv_prog_OBJCOPY" && break
8599done
8600
8601if test -z "$ac_cv_prog_OBJCOPY" ; then
8602 set dummy objcopy
8603 if test $build = $host ; then
8604 OBJCOPY="$2"
bb612911 8605 else
768691b5 8606 OBJCOPY="${ncn_tool_prefix}$2"
bb612911 8607 fi
bb612911 8608fi
8609
95a05732 8610
8611
8612if test -n "$OBJDUMP"; then
8613 ac_cv_prog_OBJDUMP=$OBJDUMP
8614elif test -n "$ac_cv_prog_OBJDUMP"; then
8615 OBJDUMP=$ac_cv_prog_OBJDUMP
8616fi
8617
8618if test -n "$ac_cv_prog_OBJDUMP"; then
8619 for ncn_progname in objdump; do
8620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8621set dummy ${ncn_progname}; ac_word=$2
5084f823 8622echo "$as_me:$LINENO: checking for $ac_word" >&5
8623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8624if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626else
8627 if test -n "$OBJDUMP"; then
8628 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8629else
8630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631for as_dir in $PATH
8632do
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8637 ac_cv_prog_OBJDUMP="${ncn_progname}"
8638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8640 fi
8641done
8642done
8643
8644fi
8645fi
8646OBJDUMP=$ac_cv_prog_OBJDUMP
8647if test -n "$OBJDUMP"; then
5084f823 8648 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8649echo "${ECHO_T}$OBJDUMP" >&6
95a05732 8650else
5084f823 8651 echo "$as_me:$LINENO: result: no" >&5
8652echo "${ECHO_T}no" >&6
95a05732 8653fi
8654
8655 done
8656fi
8657
8658for ncn_progname in objdump; do
768691b5 8659 if test -n "$ncn_tool_prefix"; then
8660 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8661set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8662echo "$as_me:$LINENO: checking for $ac_word" >&5
8663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8664if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8666else
8667 if test -n "$OBJDUMP"; then
8668 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8669else
b30fcfae 8670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671for as_dir in $PATH
8672do
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8677 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 break 2
8680 fi
8681done
8682done
8683
bb612911 8684fi
8685fi
b30fcfae 8686OBJDUMP=$ac_cv_prog_OBJDUMP
bb612911 8687if test -n "$OBJDUMP"; then
5084f823 8688 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8689echo "${ECHO_T}$OBJDUMP" >&6
bb612911 8690else
5084f823 8691 echo "$as_me:$LINENO: result: no" >&5
8692echo "${ECHO_T}no" >&6
bb612911 8693fi
8694
768691b5 8695 fi
8696 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8698set dummy ${ncn_progname}; ac_word=$2
5084f823 8699echo "$as_me:$LINENO: checking for $ac_word" >&5
8700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8701if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8703else
768691b5 8704 if test -n "$OBJDUMP"; then
8705 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
bb612911 8706else
b30fcfae 8707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708for as_dir in $PATH
8709do
8710 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=.
8712 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8714 ac_cv_prog_OBJDUMP="${ncn_progname}"
8715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 break 2
8717 fi
8718done
8719done
8720
bb612911 8721fi
8722fi
b30fcfae 8723OBJDUMP=$ac_cv_prog_OBJDUMP
768691b5 8724if test -n "$OBJDUMP"; then
5084f823 8725 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8726echo "${ECHO_T}$OBJDUMP" >&6
bb612911 8727else
5084f823 8728 echo "$as_me:$LINENO: result: no" >&5
8729echo "${ECHO_T}no" >&6
bb612911 8730fi
b30fcfae 8731
768691b5 8732 fi
8733 test -n "$ac_cv_prog_OBJDUMP" && break
8734done
8735
8736if test -z "$ac_cv_prog_OBJDUMP" ; then
8737 set dummy objdump
8738 if test $build = $host ; then
8739 OBJDUMP="$2"
bb612911 8740 else
768691b5 8741 OBJDUMP="${ncn_tool_prefix}$2"
bb612911 8742 fi
bb612911 8743fi
8744
71ab34df 8745
8746
8747
8748
8749
f5aebe3e 8750# Target tools.
b30fcfae 8751
5084f823 8752# Check whether --with-build-time-tools or --without-build-time-tools was given.
c47832b1 8753if test "${with_build_time_tools+set}" = set; then
5084f823 8754 withval="$with_build_time_tools"
8755 case x"$withval" in
c47832b1 8756 x/*) ;;
8757 *)
8758 with_build_time_tools=
b30fcfae 8759 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8760echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
c47832b1 8761 ;;
8762 esac
bb612911 8763else
c47832b1 8764 with_build_time_tools=
5084f823 8765fi;
bb612911 8766
95a05732 8767
8768
8769if test -n "$CC_FOR_TARGET"; then
8770 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8771elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8772 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8773fi
8774
8775if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8776 for ncn_progname in cc gcc; do
8777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8778set dummy ${ncn_progname}; ac_word=$2
5084f823 8779echo "$as_me:$LINENO: checking for $ac_word" >&5
8780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8781if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8783else
8784 if test -n "$CC_FOR_TARGET"; then
8785 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8786else
8787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788for as_dir in $PATH
8789do
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8794 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 break 2
8797 fi
8798done
8799done
8800
8801fi
8802fi
8803CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8804if test -n "$CC_FOR_TARGET"; then
5084f823 8805 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8806echo "${ECHO_T}$CC_FOR_TARGET" >&6
95a05732 8807else
5084f823 8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
95a05732 8810fi
8811
8812 done
8813fi
8814
8815if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8816 for ncn_progname in cc gcc; do
5084f823 8817 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8818echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8819 if test -x $with_build_time_tools/${ncn_progname}; then
8820 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8821 echo "$as_me:$LINENO: result: yes" >&5
8822echo "${ECHO_T}yes" >&6
9886f3d1 8823 break
c47832b1 8824 else
5084f823 8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
9886f3d1 8827 fi
8828 done
ef8184c7 8829fi
8830
c47832b1 8831if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8832 for ncn_progname in cc gcc; do
8833 if test -n "$ncn_target_tool_prefix"; then
8834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8835set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8836echo "$as_me:$LINENO: checking for $ac_word" >&5
8837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8838if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8840else
8841 if test -n "$CC_FOR_TARGET"; then
8842 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8843else
b30fcfae 8844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845for as_dir in $PATH
8846do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8851 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 break 2
8854 fi
8855done
8856done
8857
ef8184c7 8858fi
8859fi
b30fcfae 8860CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
ef8184c7 8861if test -n "$CC_FOR_TARGET"; then
5084f823 8862 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8863echo "${ECHO_T}$CC_FOR_TARGET" >&6
ef8184c7 8864else
5084f823 8865 echo "$as_me:$LINENO: result: no" >&5
8866echo "${ECHO_T}no" >&6
ef8184c7 8867fi
8868
c47832b1 8869 fi
8870 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 8872set dummy ${ncn_progname}; ac_word=$2
5084f823 8873echo "$as_me:$LINENO: checking for $ac_word" >&5
8874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8875if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8877else
768691b5 8878 if test -n "$CC_FOR_TARGET"; then
8879 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
ef8184c7 8880else
b30fcfae 8881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882for as_dir in $PATH
8883do
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8888 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8891 fi
8892done
8893done
8894
ef8184c7 8895fi
8896fi
b30fcfae 8897CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
768691b5 8898if test -n "$CC_FOR_TARGET"; then
5084f823 8899 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8900echo "${ECHO_T}$CC_FOR_TARGET" >&6
ef8184c7 8901else
5084f823 8902 echo "$as_me:$LINENO: result: no" >&5
8903echo "${ECHO_T}no" >&6
ef8184c7 8904fi
b30fcfae 8905
c47832b1 8906 fi
8907 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8908 done
8909fi
b30fcfae 8910
768691b5 8911if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8912 set dummy cc gcc
8913 if test $build = $target ; then
8914 CC_FOR_TARGET="$2"
ef8184c7 8915 else
768691b5 8916 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 8917 fi
b7ef8464 8918else
8919 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
ef8184c7 8920fi
8921
95a05732 8922
8923
8924if test -n "$CXX_FOR_TARGET"; then
8925 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8926elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8927 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8928fi
8929
8930if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8931 for ncn_progname in c++ g++ cxx gxx; do
8932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8933set dummy ${ncn_progname}; ac_word=$2
5084f823 8934echo "$as_me:$LINENO: checking for $ac_word" >&5
8935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8936if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938else
8939 if test -n "$CXX_FOR_TARGET"; then
8940 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8941else
8942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943for as_dir in $PATH
8944do
8945 IFS=$as_save_IFS
8946 test -z "$as_dir" && as_dir=.
8947 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8949 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8951 break 2
8952 fi
8953done
8954done
8955
8956fi
8957fi
8958CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8959if test -n "$CXX_FOR_TARGET"; then
5084f823 8960 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8961echo "${ECHO_T}$CXX_FOR_TARGET" >&6
95a05732 8962else
5084f823 8963 echo "$as_me:$LINENO: result: no" >&5
8964echo "${ECHO_T}no" >&6
95a05732 8965fi
8966
8967 done
8968fi
8969
8970if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8971 for ncn_progname in c++ g++ cxx gxx; do
5084f823 8972 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8973echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8974 if test -x $with_build_time_tools/${ncn_progname}; then
8975 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8976 echo "$as_me:$LINENO: result: yes" >&5
8977echo "${ECHO_T}yes" >&6
c47832b1 8978 break
8979 else
5084f823 8980 echo "$as_me:$LINENO: result: no" >&5
8981echo "${ECHO_T}no" >&6
c47832b1 8982 fi
8983 done
8984fi
8985
8986if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8987 for ncn_progname in c++ g++ cxx gxx; do
8988 if test -n "$ncn_target_tool_prefix"; then
8989 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8990set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8991echo "$as_me:$LINENO: checking for $ac_word" >&5
8992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8993if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8995else
8996 if test -n "$CXX_FOR_TARGET"; then
8997 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8998else
b30fcfae 8999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000for as_dir in $PATH
9001do
9002 IFS=$as_save_IFS
9003 test -z "$as_dir" && as_dir=.
9004 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9006 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9008 break 2
9009 fi
9010done
9011done
9012
ef8184c7 9013fi
9014fi
b30fcfae 9015CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
ef8184c7 9016if test -n "$CXX_FOR_TARGET"; then
5084f823 9017 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9018echo "${ECHO_T}$CXX_FOR_TARGET" >&6
ef8184c7 9019else
5084f823 9020 echo "$as_me:$LINENO: result: no" >&5
9021echo "${ECHO_T}no" >&6
ef8184c7 9022fi
9023
c47832b1 9024 fi
9025 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9027set dummy ${ncn_progname}; ac_word=$2
5084f823 9028echo "$as_me:$LINENO: checking for $ac_word" >&5
9029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9030if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9032else
768691b5 9033 if test -n "$CXX_FOR_TARGET"; then
9034 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
ef8184c7 9035else
b30fcfae 9036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037for as_dir in $PATH
9038do
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
9041 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9043 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 break 2
9046 fi
9047done
9048done
9049
ef8184c7 9050fi
9051fi
b30fcfae 9052CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
768691b5 9053if test -n "$CXX_FOR_TARGET"; then
5084f823 9054 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9055echo "${ECHO_T}$CXX_FOR_TARGET" >&6
ef8184c7 9056else
5084f823 9057 echo "$as_me:$LINENO: result: no" >&5
9058echo "${ECHO_T}no" >&6
ef8184c7 9059fi
b30fcfae 9060
c47832b1 9061 fi
9062 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9063 done
9064fi
b30fcfae 9065
768691b5 9066if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9067 set dummy c++ g++ cxx gxx
9068 if test $build = $target ; then
9069 CXX_FOR_TARGET="$2"
ef8184c7 9070 else
768691b5 9071 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 9072 fi
b7ef8464 9073else
9074 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
bb612911 9075fi
9076
95a05732 9077
9078
9079if test -n "$GCC_FOR_TARGET"; then
9080 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9081elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9082 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9083fi
9084
9085if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9086 for ncn_progname in gcc; do
9087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9088set dummy ${ncn_progname}; ac_word=$2
5084f823 9089echo "$as_me:$LINENO: checking for $ac_word" >&5
9090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9091if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093else
9094 if test -n "$GCC_FOR_TARGET"; then
9095 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9096else
9097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098for as_dir in $PATH
9099do
9100 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9104 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9106 break 2
9107 fi
9108done
9109done
9110
9111fi
9112fi
9113GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9114if test -n "$GCC_FOR_TARGET"; then
5084f823 9115 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9116echo "${ECHO_T}$GCC_FOR_TARGET" >&6
95a05732 9117else
5084f823 9118 echo "$as_me:$LINENO: result: no" >&5
9119echo "${ECHO_T}no" >&6
95a05732 9120fi
9121
9122 done
9123fi
9124
9125if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9126 for ncn_progname in gcc; do
5084f823 9127 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9128echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9129 if test -x $with_build_time_tools/${ncn_progname}; then
9130 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9131 echo "$as_me:$LINENO: result: yes" >&5
9132echo "${ECHO_T}yes" >&6
c47832b1 9133 break
9134 else
5084f823 9135 echo "$as_me:$LINENO: result: no" >&5
9136echo "${ECHO_T}no" >&6
c47832b1 9137 fi
9138 done
9139fi
9140
9141if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9142 for ncn_progname in gcc; do
9143 if test -n "$ncn_target_tool_prefix"; then
9144 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9145set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9146echo "$as_me:$LINENO: checking for $ac_word" >&5
9147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9148if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9150else
c47832b1 9151 if test -n "$GCC_FOR_TARGET"; then
9152 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 9153else
b30fcfae 9154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155for as_dir in $PATH
9156do
9157 IFS=$as_save_IFS
9158 test -z "$as_dir" && as_dir=.
9159 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9161 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9163 break 2
9164 fi
9165done
9166done
9167
bb612911 9168fi
9169fi
b30fcfae 9170GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 9171if test -n "$GCC_FOR_TARGET"; then
5084f823 9172 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9173echo "${ECHO_T}$GCC_FOR_TARGET" >&6
bb612911 9174else
5084f823 9175 echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
bb612911 9177fi
9178
c47832b1 9179 fi
9180 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9182set dummy ${ncn_progname}; ac_word=$2
5084f823 9183echo "$as_me:$LINENO: checking for $ac_word" >&5
9184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9185if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9187else
c47832b1 9188 if test -n "$GCC_FOR_TARGET"; then
9189 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 9190else
b30fcfae 9191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192for as_dir in $PATH
9193do
9194 IFS=$as_save_IFS
9195 test -z "$as_dir" && as_dir=.
9196 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9198 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9200 break 2
9201 fi
9202done
9203done
9204
bb612911 9205fi
9206fi
b30fcfae 9207GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 9208if test -n "$GCC_FOR_TARGET"; then
5084f823 9209 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9210echo "${ECHO_T}$GCC_FOR_TARGET" >&6
bb612911 9211else
5084f823 9212 echo "$as_me:$LINENO: result: no" >&5
9213echo "${ECHO_T}no" >&6
bb612911 9214fi
b30fcfae 9215
c47832b1 9216 fi
9217 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9218 done
9219fi
b30fcfae 9220
c47832b1 9221if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9222 GCC_FOR_TARGET="${CC_FOR_TARGET}"
b7ef8464 9223else
9224 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
c47832b1 9225fi
9226
95a05732 9227
9228
9229if test -n "$GCJ_FOR_TARGET"; then
9230 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9231elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9232 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9233fi
9234
9235if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9236 for ncn_progname in gcj; do
9237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9238set dummy ${ncn_progname}; ac_word=$2
5084f823 9239echo "$as_me:$LINENO: checking for $ac_word" >&5
9240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9241if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243else
9244 if test -n "$GCJ_FOR_TARGET"; then
9245 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9246else
9247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248for as_dir in $PATH
9249do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9254 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9257 fi
9258done
9259done
9260
9261fi
9262fi
9263GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9264if test -n "$GCJ_FOR_TARGET"; then
5084f823 9265 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9266echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 9267else
5084f823 9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
95a05732 9270fi
9271
9272 done
9273fi
9274
9275if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9276 for ncn_progname in gcj; do
5084f823 9277 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9278echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9279 if test -x $with_build_time_tools/${ncn_progname}; then
9280 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9281 echo "$as_me:$LINENO: result: yes" >&5
9282echo "${ECHO_T}yes" >&6
c47832b1 9283 break
9284 else
5084f823 9285 echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6
c47832b1 9287 fi
9288 done
9289fi
9290
9291if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9292 for ncn_progname in gcj; do
9293 if test -n "$ncn_target_tool_prefix"; then
9294 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9295set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9296echo "$as_me:$LINENO: checking for $ac_word" >&5
9297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9298if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9300else
a4af6a58 9301 if test -n "$GCJ_FOR_TARGET"; then
9302 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9303else
b30fcfae 9304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305for as_dir in $PATH
9306do
9307 IFS=$as_save_IFS
9308 test -z "$as_dir" && as_dir=.
9309 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9311 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9313 break 2
9314 fi
9315done
9316done
9317
c47832b1 9318fi
9319fi
95a05732 9320GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9321if test -n "$GCJ_FOR_TARGET"; then
5084f823 9322 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9323echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 9324else
5084f823 9325 echo "$as_me:$LINENO: result: no" >&5
9326echo "${ECHO_T}no" >&6
95a05732 9327fi
9328
9329 fi
9330 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9332set dummy ${ncn_progname}; ac_word=$2
5084f823 9333echo "$as_me:$LINENO: checking for $ac_word" >&5
9334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9335if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9337else
9338 if test -n "$GCJ_FOR_TARGET"; then
9339 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9340else
9341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342for as_dir in $PATH
9343do
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9348 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9351 fi
9352done
9353done
9354
9355fi
9356fi
9357GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9358if test -n "$GCJ_FOR_TARGET"; then
5084f823 9359 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9360echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 9361else
5084f823 9362 echo "$as_me:$LINENO: result: no" >&5
9363echo "${ECHO_T}no" >&6
95a05732 9364fi
9365
9366 fi
9367 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9368 done
9369fi
9370
9371if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9372 set dummy gcj
9373 if test $build = $target ; then
9374 GCJ_FOR_TARGET="$2"
9375 else
9376 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9377 fi
b7ef8464 9378else
9379 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
95a05732 9380fi
9381
9382
9383
9384if test -n "$GFORTRAN_FOR_TARGET"; then
9385 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9386elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9387 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 9388fi
9389
95a05732 9390if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9391 for ncn_progname in gfortran; do
9392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
c47832b1 9393set dummy ${ncn_progname}; ac_word=$2
5084f823 9394echo "$as_me:$LINENO: checking for $ac_word" >&5
9395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9396if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
b30fcfae 9397 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9398else
95a05732 9399 if test -n "$GFORTRAN_FOR_TARGET"; then
9400 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
c47832b1 9401else
b30fcfae 9402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403for as_dir in $PATH
9404do
9405 IFS=$as_save_IFS
9406 test -z "$as_dir" && as_dir=.
9407 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9409 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
b30fcfae 9410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9411 break 2
9412 fi
9413done
9414done
9415
c47832b1 9416fi
9417fi
95a05732 9418GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9419if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 9420 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9421echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 9422else
5084f823 9423 echo "$as_me:$LINENO: result: no" >&5
9424echo "${ECHO_T}no" >&6
c47832b1 9425fi
b30fcfae 9426
c47832b1 9427 done
9428fi
b30fcfae 9429
95a05732 9430if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9431 for ncn_progname in gfortran; do
5084f823 9432 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9433echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9434 if test -x $with_build_time_tools/${ncn_progname}; then
9435 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9436 echo "$as_me:$LINENO: result: yes" >&5
9437echo "${ECHO_T}yes" >&6
c47832b1 9438 break
9439 else
5084f823 9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
c47832b1 9442 fi
9443 done
9444fi
9445
9446if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9447 for ncn_progname in gfortran; do
9448 if test -n "$ncn_target_tool_prefix"; then
9449 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9450set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9451echo "$as_me:$LINENO: checking for $ac_word" >&5
9452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9453if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9455else
9456 if test -n "$GFORTRAN_FOR_TARGET"; then
b30fcfae 9457 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9458else
9459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460for as_dir in $PATH
9461do
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
9464 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9466 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9468 break 2
9469 fi
9470done
9471done
9472
c47832b1 9473fi
9474fi
b30fcfae 9475GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 9476if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 9477 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9478echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 9479else
5084f823 9480 echo "$as_me:$LINENO: result: no" >&5
9481echo "${ECHO_T}no" >&6
c47832b1 9482fi
9483
9484 fi
9485 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9487set dummy ${ncn_progname}; ac_word=$2
5084f823 9488echo "$as_me:$LINENO: checking for $ac_word" >&5
9489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9490if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9492else
9493 if test -n "$GFORTRAN_FOR_TARGET"; then
9494 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9495else
b30fcfae 9496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497for as_dir in $PATH
9498do
9499 IFS=$as_save_IFS
9500 test -z "$as_dir" && as_dir=.
9501 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9503 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9505 break 2
9506 fi
9507done
9508done
9509
c47832b1 9510fi
9511fi
b30fcfae 9512GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 9513if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 9514 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9515echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 9516else
5084f823 9517 echo "$as_me:$LINENO: result: no" >&5
9518echo "${ECHO_T}no" >&6
c47832b1 9519fi
b30fcfae 9520
c47832b1 9521 fi
9522 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9523 done
9524fi
b30fcfae 9525
c47832b1 9526if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9527 set dummy gfortran
768691b5 9528 if test $build = $target ; then
c47832b1 9529 GFORTRAN_FOR_TARGET="$2"
bb612911 9530 else
c47832b1 9531 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9532 fi
b7ef8464 9533else
9534 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
c47832b1 9535fi
9536
9537
9538
c47832b1 9539cat > conftest.c << \EOF
9540#ifdef __GNUC__
9541 gcc_yay;
9542#endif
9543EOF
9544if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9545 have_gcc_for_target=yes
9546else
9547 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9548 have_gcc_for_target=no
9549fi
9550rm conftest.c
9551
9552
9553
9554
9555if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9556 if test -n "$with_build_time_tools"; then
5084f823 9557 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9558echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9559 if test -x $with_build_time_tools/ar; then
9560 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9561 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5084f823 9562 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9563echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
ab0da556 9564 else
5084f823 9565 echo "$as_me:$LINENO: result: no" >&5
9566echo "${ECHO_T}no" >&6
ab0da556 9567 fi
c47832b1 9568 elif test $build != $host && test $have_gcc_for_target = yes; then
9569 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
b7ef8464 9570 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9571 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c47832b1 9572 fi
9573fi
38d7211b 9574if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 9575 # Extract the first word of "ar", so it can be a program name with args.
9576set dummy ar; ac_word=$2
5084f823 9577echo "$as_me:$LINENO: checking for $ac_word" >&5
9578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9579if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9581else
b30fcfae 9582 case $AR_FOR_TARGET in
9583 [\\/]* | ?:[\\/]*)
c47832b1 9584 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9585 ;;
c47832b1 9586 *)
b30fcfae 9587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588for as_dir in $gcc_cv_tool_dirs
9589do
9590 IFS=$as_save_IFS
9591 test -z "$as_dir" && as_dir=.
9592 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9594 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9596 break 2
9597 fi
9598done
9599done
9600
c47832b1 9601 ;;
9602esac
9603fi
b30fcfae 9604AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5084f823 9605
c47832b1 9606if test -n "$AR_FOR_TARGET"; then
5084f823 9607 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9608echo "${ECHO_T}$AR_FOR_TARGET" >&6
c47832b1 9609else
5084f823 9610 echo "$as_me:$LINENO: result: no" >&5
9611echo "${ECHO_T}no" >&6
ef8184c7 9612fi
9613
c47832b1 9614fi
9615if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
95a05732 9616
9617
9618if test -n "$AR_FOR_TARGET"; then
9619 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9620elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9621 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9622fi
9623
9624if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9625 for ncn_progname in ar; do
9626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9627set dummy ${ncn_progname}; ac_word=$2
5084f823 9628echo "$as_me:$LINENO: checking for $ac_word" >&5
9629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9630if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9632else
9633 if test -n "$AR_FOR_TARGET"; then
9634 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9635else
9636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637for as_dir in $PATH
9638do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9643 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9646 fi
9647done
9648done
9649
9650fi
9651fi
9652AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9653if test -n "$AR_FOR_TARGET"; then
5084f823 9654 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9655echo "${ECHO_T}$AR_FOR_TARGET" >&6
95a05732 9656else
5084f823 9657 echo "$as_me:$LINENO: result: no" >&5
9658echo "${ECHO_T}no" >&6
95a05732 9659fi
9660
9661 done
9662fi
9663
9664if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9665 for ncn_progname in ar; do
5084f823 9666 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9667echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9668 if test -x $with_build_time_tools/${ncn_progname}; then
9669 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9670 echo "$as_me:$LINENO: result: yes" >&5
9671echo "${ECHO_T}yes" >&6
c47832b1 9672 break
9673 else
5084f823 9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
c47832b1 9676 fi
9677 done
9678fi
9679
9680if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9681 for ncn_progname in ar; do
9682 if test -n "$ncn_target_tool_prefix"; then
9683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9684set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9685echo "$as_me:$LINENO: checking for $ac_word" >&5
9686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9687if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9689else
c47832b1 9690 if test -n "$AR_FOR_TARGET"; then
9691 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ef8184c7 9692else
b30fcfae 9693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694for as_dir in $PATH
9695do
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9700 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9703 fi
9704done
9705done
9706
ef8184c7 9707fi
9708fi
b30fcfae 9709AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 9710if test -n "$AR_FOR_TARGET"; then
5084f823 9711 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9712echo "${ECHO_T}$AR_FOR_TARGET" >&6
ef8184c7 9713else
5084f823 9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
ef8184c7 9716fi
9717
c47832b1 9718 fi
9719 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9721set dummy ${ncn_progname}; ac_word=$2
5084f823 9722echo "$as_me:$LINENO: checking for $ac_word" >&5
9723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9724if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9726else
9727 if test -n "$AR_FOR_TARGET"; then
9728 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9729else
b30fcfae 9730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731for as_dir in $PATH
9732do
9733 IFS=$as_save_IFS
9734 test -z "$as_dir" && as_dir=.
9735 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9737 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 break 2
9740 fi
9741done
9742done
9743
c47832b1 9744fi
9745fi
b30fcfae 9746AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 9747if test -n "$AR_FOR_TARGET"; then
5084f823 9748 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9749echo "${ECHO_T}$AR_FOR_TARGET" >&6
c47832b1 9750else
5084f823 9751 echo "$as_me:$LINENO: result: no" >&5
9752echo "${ECHO_T}no" >&6
c47832b1 9753fi
b30fcfae 9754
c47832b1 9755 fi
9756 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9757 done
9758fi
b30fcfae 9759
c47832b1 9760if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9761 set dummy ar
9762 if test $build = $target ; then
9763 AR_FOR_TARGET="$2"
9764 else
9765 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
768691b5 9766 fi
b7ef8464 9767else
9768 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
c47832b1 9769fi
9770
ab0da556 9771else
9772 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 9773fi
9774
9775
9776
9777
9778if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9779 if test -n "$with_build_time_tools"; then
5084f823 9780 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9781echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9782 if test -x $with_build_time_tools/as; then
9783 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9784 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5084f823 9785 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9786echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
ab0da556 9787 else
5084f823 9788 echo "$as_me:$LINENO: result: no" >&5
9789echo "${ECHO_T}no" >&6
ab0da556 9790 fi
c47832b1 9791 elif test $build != $host && test $have_gcc_for_target = yes; then
9792 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
b7ef8464 9793 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9794 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c47832b1 9795 fi
9796fi
38d7211b 9797if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 9798 # Extract the first word of "as", so it can be a program name with args.
9799set dummy as; ac_word=$2
5084f823 9800echo "$as_me:$LINENO: checking for $ac_word" >&5
9801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9802if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9804else
b30fcfae 9805 case $AS_FOR_TARGET in
9806 [\\/]* | ?:[\\/]*)
c47832b1 9807 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9808 ;;
c47832b1 9809 *)
b30fcfae 9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811for as_dir in $gcc_cv_tool_dirs
9812do
9813 IFS=$as_save_IFS
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9817 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 break 2
9820 fi
9821done
9822done
9823
c47832b1 9824 ;;
9825esac
9826fi
b30fcfae 9827AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5084f823 9828
c47832b1 9829if test -n "$AS_FOR_TARGET"; then
5084f823 9830 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9831echo "${ECHO_T}$AS_FOR_TARGET" >&6
c47832b1 9832else
5084f823 9833 echo "$as_me:$LINENO: result: no" >&5
9834echo "${ECHO_T}no" >&6
c47832b1 9835fi
9836
9837fi
9838if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
95a05732 9839
9840
9841if test -n "$AS_FOR_TARGET"; then
9842 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9843elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9844 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9845fi
9846
9847if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9848 for ncn_progname in as; do
9849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9850set dummy ${ncn_progname}; ac_word=$2
5084f823 9851echo "$as_me:$LINENO: checking for $ac_word" >&5
9852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9853if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9855else
9856 if test -n "$AS_FOR_TARGET"; then
9857 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9858else
9859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860for as_dir in $PATH
9861do
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9866 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9869 fi
9870done
9871done
9872
9873fi
9874fi
9875AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9876if test -n "$AS_FOR_TARGET"; then
5084f823 9877 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9878echo "${ECHO_T}$AS_FOR_TARGET" >&6
95a05732 9879else
5084f823 9880 echo "$as_me:$LINENO: result: no" >&5
9881echo "${ECHO_T}no" >&6
95a05732 9882fi
9883
9884 done
9885fi
9886
9887if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9888 for ncn_progname in as; do
5084f823 9889 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9890echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9891 if test -x $with_build_time_tools/${ncn_progname}; then
9892 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9893 echo "$as_me:$LINENO: result: yes" >&5
9894echo "${ECHO_T}yes" >&6
c47832b1 9895 break
9896 else
5084f823 9897 echo "$as_me:$LINENO: result: no" >&5
9898echo "${ECHO_T}no" >&6
c47832b1 9899 fi
9900 done
9901fi
9902
9903if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9904 for ncn_progname in as; do
9905 if test -n "$ncn_target_tool_prefix"; then
9906 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9907set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9908echo "$as_me:$LINENO: checking for $ac_word" >&5
9909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9910if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9912else
9913 if test -n "$AS_FOR_TARGET"; then
9914 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9915else
b30fcfae 9916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917for as_dir in $PATH
9918do
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9923 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9926 fi
9927done
9928done
9929
c47832b1 9930fi
9931fi
b30fcfae 9932AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 9933if test -n "$AS_FOR_TARGET"; then
5084f823 9934 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9935echo "${ECHO_T}$AS_FOR_TARGET" >&6
c47832b1 9936else
5084f823 9937 echo "$as_me:$LINENO: result: no" >&5
9938echo "${ECHO_T}no" >&6
c47832b1 9939fi
9940
9941 fi
9942 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9944set dummy ${ncn_progname}; ac_word=$2
5084f823 9945echo "$as_me:$LINENO: checking for $ac_word" >&5
9946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9947if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9949else
c47832b1 9950 if test -n "$AS_FOR_TARGET"; then
9951 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ef8184c7 9952else
b30fcfae 9953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954for as_dir in $PATH
9955do
9956 IFS=$as_save_IFS
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9960 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9962 break 2
9963 fi
9964done
9965done
9966
ef8184c7 9967fi
9968fi
b30fcfae 9969AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 9970if test -n "$AS_FOR_TARGET"; then
5084f823 9971 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9972echo "${ECHO_T}$AS_FOR_TARGET" >&6
ef8184c7 9973else
5084f823 9974 echo "$as_me:$LINENO: result: no" >&5
9975echo "${ECHO_T}no" >&6
ef8184c7 9976fi
b30fcfae 9977
c47832b1 9978 fi
9979 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9980 done
9981fi
b30fcfae 9982
c47832b1 9983if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9984 set dummy as
9985 if test $build = $target ; then
9986 AS_FOR_TARGET="$2"
9987 else
9988 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 9989 fi
b7ef8464 9990else
9991 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
c47832b1 9992fi
768691b5 9993
ab0da556 9994else
9995 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
ef8184c7 9996fi
9997
c47832b1 9998
9999
10000
10001if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10002 if test -n "$with_build_time_tools"; then
5084f823 10003 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
10004echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10005 if test -x $with_build_time_tools/dlltool; then
10006 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10007 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5084f823 10008 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10009echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
ab0da556 10010 else
5084f823 10011 echo "$as_me:$LINENO: result: no" >&5
10012echo "${ECHO_T}no" >&6
ab0da556 10013 fi
c47832b1 10014 elif test $build != $host && test $have_gcc_for_target = yes; then
10015 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
b7ef8464 10016 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10017 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c47832b1 10018 fi
10019fi
38d7211b 10020if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10021 # Extract the first word of "dlltool", so it can be a program name with args.
10022set dummy dlltool; ac_word=$2
5084f823 10023echo "$as_me:$LINENO: checking for $ac_word" >&5
10024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10025if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 10027else
b30fcfae 10028 case $DLLTOOL_FOR_TARGET in
10029 [\\/]* | ?:[\\/]*)
c47832b1 10030 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10031 ;;
c47832b1 10032 *)
b30fcfae 10033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034for as_dir in $gcc_cv_tool_dirs
10035do
10036 IFS=$as_save_IFS
10037 test -z "$as_dir" && as_dir=.
10038 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10040 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 break 2
10043 fi
10044done
10045done
10046
c47832b1 10047 ;;
10048esac
ef8184c7 10049fi
b30fcfae 10050DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5084f823 10051
c47832b1 10052if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 10053 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10054echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 10055else
5084f823 10056 echo "$as_me:$LINENO: result: no" >&5
10057echo "${ECHO_T}no" >&6
ef8184c7 10058fi
10059
c47832b1 10060fi
10061if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
95a05732 10062
10063
10064if test -n "$DLLTOOL_FOR_TARGET"; then
10065 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10066elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10067 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10068fi
10069
10070if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10071 for ncn_progname in dlltool; do
10072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10073set dummy ${ncn_progname}; ac_word=$2
5084f823 10074echo "$as_me:$LINENO: checking for $ac_word" >&5
10075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10076if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078else
10079 if test -n "$DLLTOOL_FOR_TARGET"; then
10080 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10081else
10082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083for as_dir in $PATH
10084do
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
10087 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10089 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10091 break 2
10092 fi
10093done
10094done
10095
10096fi
10097fi
10098DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10099if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 10100 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10101echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
95a05732 10102else
5084f823 10103 echo "$as_me:$LINENO: result: no" >&5
10104echo "${ECHO_T}no" >&6
95a05732 10105fi
10106
10107 done
10108fi
10109
10110if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10111 for ncn_progname in dlltool; do
5084f823 10112 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10113echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10114 if test -x $with_build_time_tools/${ncn_progname}; then
10115 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10116 echo "$as_me:$LINENO: result: yes" >&5
10117echo "${ECHO_T}yes" >&6
c47832b1 10118 break
10119 else
5084f823 10120 echo "$as_me:$LINENO: result: no" >&5
10121echo "${ECHO_T}no" >&6
c47832b1 10122 fi
10123 done
10124fi
10125
10126if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10127 for ncn_progname in dlltool; do
10128 if test -n "$ncn_target_tool_prefix"; then
10129 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10130set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10131echo "$as_me:$LINENO: checking for $ac_word" >&5
10132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10133if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 10135else
c47832b1 10136 if test -n "$DLLTOOL_FOR_TARGET"; then
10137 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 10138else
b30fcfae 10139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140for as_dir in $PATH
10141do
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
10144 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10146 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10148 break 2
10149 fi
10150done
10151done
10152
ef8184c7 10153fi
10154fi
b30fcfae 10155DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 10156if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 10157 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10158echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 10159else
5084f823 10160 echo "$as_me:$LINENO: result: no" >&5
10161echo "${ECHO_T}no" >&6
ef8184c7 10162fi
ef8184c7 10163
c47832b1 10164 fi
10165 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10167set dummy ${ncn_progname}; ac_word=$2
5084f823 10168echo "$as_me:$LINENO: checking for $ac_word" >&5
10169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10170if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 10172else
c47832b1 10173 if test -n "$DLLTOOL_FOR_TARGET"; then
10174 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 10175else
b30fcfae 10176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177for as_dir in $PATH
10178do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10183 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10186 fi
10187done
10188done
10189
ef8184c7 10190fi
10191fi
b30fcfae 10192DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 10193if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 10194 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10195echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 10196else
5084f823 10197 echo "$as_me:$LINENO: result: no" >&5
10198echo "${ECHO_T}no" >&6
ef8184c7 10199fi
b30fcfae 10200
c47832b1 10201 fi
10202 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10203 done
10204fi
b30fcfae 10205
c47832b1 10206if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10207 set dummy dlltool
10208 if test $build = $target ; then
10209 DLLTOOL_FOR_TARGET="$2"
10210 else
10211 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10212 fi
b7ef8464 10213else
10214 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
c47832b1 10215fi
10216
ab0da556 10217else
10218 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 10219fi
10220
ef8184c7 10221
c47832b1 10222
10223
10224if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10225 if test -n "$with_build_time_tools"; then
5084f823 10226 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
10227echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10228 if test -x $with_build_time_tools/ld; then
10229 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10230 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5084f823 10231 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
10232echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
ab0da556 10233 else
5084f823 10234 echo "$as_me:$LINENO: result: no" >&5
10235echo "${ECHO_T}no" >&6
ab0da556 10236 fi
c47832b1 10237 elif test $build != $host && test $have_gcc_for_target = yes; then
10238 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
b7ef8464 10239 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10240 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
768691b5 10241 fi
c47832b1 10242fi
38d7211b 10243if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10244 # Extract the first word of "ld", so it can be a program name with args.
10245set dummy ld; ac_word=$2
5084f823 10246echo "$as_me:$LINENO: checking for $ac_word" >&5
10247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10248if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 10250else
b30fcfae 10251 case $LD_FOR_TARGET in
10252 [\\/]* | ?:[\\/]*)
c47832b1 10253 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10254 ;;
c47832b1 10255 *)
b30fcfae 10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257for as_dir in $gcc_cv_tool_dirs
10258do
10259 IFS=$as_save_IFS
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10263 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 break 2
10266 fi
10267done
10268done
10269
c47832b1 10270 ;;
10271esac
ef8184c7 10272fi
b30fcfae 10273LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5084f823 10274
c47832b1 10275if test -n "$LD_FOR_TARGET"; then
5084f823 10276 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10277echo "${ECHO_T}$LD_FOR_TARGET" >&6
ef8184c7 10278else
5084f823 10279 echo "$as_me:$LINENO: result: no" >&5
10280echo "${ECHO_T}no" >&6
ef8184c7 10281fi
768691b5 10282
c47832b1 10283fi
10284if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
95a05732 10285
10286
10287if test -n "$LD_FOR_TARGET"; then
10288 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10289elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10290 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10291fi
10292
10293if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10294 for ncn_progname in ld; do
10295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10296set dummy ${ncn_progname}; ac_word=$2
5084f823 10297echo "$as_me:$LINENO: checking for $ac_word" >&5
10298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10299if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301else
10302 if test -n "$LD_FOR_TARGET"; then
10303 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10304else
10305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306for as_dir in $PATH
10307do
10308 IFS=$as_save_IFS
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10312 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10314 break 2
10315 fi
10316done
10317done
10318
10319fi
10320fi
10321LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10322if test -n "$LD_FOR_TARGET"; then
5084f823 10323 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10324echo "${ECHO_T}$LD_FOR_TARGET" >&6
95a05732 10325else
5084f823 10326 echo "$as_me:$LINENO: result: no" >&5
10327echo "${ECHO_T}no" >&6
95a05732 10328fi
10329
10330 done
10331fi
10332
10333if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10334 for ncn_progname in ld; do
5084f823 10335 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10336echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10337 if test -x $with_build_time_tools/${ncn_progname}; then
10338 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10339 echo "$as_me:$LINENO: result: yes" >&5
10340echo "${ECHO_T}yes" >&6
c47832b1 10341 break
10342 else
5084f823 10343 echo "$as_me:$LINENO: result: no" >&5
10344echo "${ECHO_T}no" >&6
c47832b1 10345 fi
10346 done
bb612911 10347fi
10348
c47832b1 10349if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10350 for ncn_progname in ld; do
10351 if test -n "$ncn_target_tool_prefix"; then
10352 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10353set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10354echo "$as_me:$LINENO: checking for $ac_word" >&5
10355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10356if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10358else
ef8184c7 10359 if test -n "$LD_FOR_TARGET"; then
10360 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 10361else
b30fcfae 10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10369 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10372 fi
10373done
10374done
10375
bb612911 10376fi
10377fi
b30fcfae 10378LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
ef8184c7 10379if test -n "$LD_FOR_TARGET"; then
5084f823 10380 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10381echo "${ECHO_T}$LD_FOR_TARGET" >&6
bb612911 10382else
5084f823 10383 echo "$as_me:$LINENO: result: no" >&5
10384echo "${ECHO_T}no" >&6
bb612911 10385fi
10386
c47832b1 10387 fi
10388 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10390set dummy ${ncn_progname}; ac_word=$2
5084f823 10391echo "$as_me:$LINENO: checking for $ac_word" >&5
10392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10393if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10395else
768691b5 10396 if test -n "$LD_FOR_TARGET"; then
10397 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 10398else
b30fcfae 10399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400for as_dir in $PATH
10401do
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
10404 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10406 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10408 break 2
10409 fi
10410done
10411done
10412
bb612911 10413fi
10414fi
b30fcfae 10415LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
768691b5 10416if test -n "$LD_FOR_TARGET"; then
5084f823 10417 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10418echo "${ECHO_T}$LD_FOR_TARGET" >&6
bb612911 10419else
5084f823 10420 echo "$as_me:$LINENO: result: no" >&5
10421echo "${ECHO_T}no" >&6
bb612911 10422fi
b30fcfae 10423
c47832b1 10424 fi
10425 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10426 done
10427fi
b30fcfae 10428
768691b5 10429if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10430 set dummy ld
10431 if test $build = $target ; then
10432 LD_FOR_TARGET="$2"
bb612911 10433 else
768691b5 10434 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 10435 fi
b7ef8464 10436else
10437 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
bb612911 10438fi
10439
ab0da556 10440else
10441 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 10442fi
10443
10444
10445
10446
10447if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10448 if test -n "$with_build_time_tools"; then
5084f823 10449 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10450echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10451 if test -x $with_build_time_tools/lipo; then
10452 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10453 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5084f823 10454 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10455echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
ab0da556 10456 else
5084f823 10457 echo "$as_me:$LINENO: result: no" >&5
10458echo "${ECHO_T}no" >&6
ab0da556 10459 fi
c47832b1 10460 elif test $build != $host && test $have_gcc_for_target = yes; then
10461 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
b7ef8464 10462 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10463 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c47832b1 10464 fi
10465fi
95a05732 10466if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10467 # Extract the first word of "lipo", so it can be a program name with args.
10468set dummy lipo; ac_word=$2
5084f823 10469echo "$as_me:$LINENO: checking for $ac_word" >&5
10470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10471if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473else
10474 case $LIPO_FOR_TARGET in
10475 [\\/]* | ?:[\\/]*)
10476 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10477 ;;
10478 *)
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480for as_dir in $gcc_cv_tool_dirs
10481do
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10486 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 break 2
10489 fi
10490done
10491done
10492
10493 ;;
10494esac
10495fi
10496LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5084f823 10497
95a05732 10498if test -n "$LIPO_FOR_TARGET"; then
5084f823 10499 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10500echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
95a05732 10501else
5084f823 10502 echo "$as_me:$LINENO: result: no" >&5
10503echo "${ECHO_T}no" >&6
95a05732 10504fi
10505
10506fi
10507if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10508
10509
10510if test -n "$LIPO_FOR_TARGET"; then
10511 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10512elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10513 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10514fi
10515
10516if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10517 for ncn_progname in lipo; do
10518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10519set dummy ${ncn_progname}; ac_word=$2
5084f823 10520echo "$as_me:$LINENO: checking for $ac_word" >&5
10521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10522if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
b30fcfae 10523 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10524else
95a05732 10525 if test -n "$LIPO_FOR_TARGET"; then
10526 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10527else
10528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529for as_dir in $PATH
b30fcfae 10530do
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10535 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
b30fcfae 10536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10538 fi
10539done
10540done
10541
c47832b1 10542fi
95a05732 10543fi
10544LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
c47832b1 10545if test -n "$LIPO_FOR_TARGET"; then
5084f823 10546 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10547echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
c47832b1 10548else
5084f823 10549 echo "$as_me:$LINENO: result: no" >&5
10550echo "${ECHO_T}no" >&6
c47832b1 10551fi
10552
95a05732 10553 done
c47832b1 10554fi
95a05732 10555
10556if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10557 for ncn_progname in lipo; do
5084f823 10558 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10559echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10560 if test -x $with_build_time_tools/${ncn_progname}; then
10561 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10562 echo "$as_me:$LINENO: result: yes" >&5
10563echo "${ECHO_T}yes" >&6
c47832b1 10564 break
10565 else
5084f823 10566 echo "$as_me:$LINENO: result: no" >&5
10567echo "${ECHO_T}no" >&6
c47832b1 10568 fi
10569 done
10570fi
10571
10572if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10573 for ncn_progname in lipo; do
10574 if test -n "$ncn_target_tool_prefix"; then
10575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10576set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10577echo "$as_me:$LINENO: checking for $ac_word" >&5
10578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10579if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 10581else
10582 if test -n "$LIPO_FOR_TARGET"; then
10583 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10584else
b30fcfae 10585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586for as_dir in $PATH
10587do
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10592 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10595 fi
10596done
10597done
10598
9fec3fa8 10599fi
10600fi
b30fcfae 10601LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 10602if test -n "$LIPO_FOR_TARGET"; then
5084f823 10603 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10604echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9fec3fa8 10605else
5084f823 10606 echo "$as_me:$LINENO: result: no" >&5
10607echo "${ECHO_T}no" >&6
9fec3fa8 10608fi
10609
c47832b1 10610 fi
10611 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 10613set dummy ${ncn_progname}; ac_word=$2
5084f823 10614echo "$as_me:$LINENO: checking for $ac_word" >&5
10615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10616if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 10618else
10619 if test -n "$LIPO_FOR_TARGET"; then
9886f3d1 10620 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10621else
b30fcfae 10622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623for as_dir in $PATH
10624do
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10629 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 break 2
10632 fi
10633done
10634done
10635
9fec3fa8 10636fi
10637fi
b30fcfae 10638LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 10639if test -n "$LIPO_FOR_TARGET"; then
5084f823 10640 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10641echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9fec3fa8 10642else
5084f823 10643 echo "$as_me:$LINENO: result: no" >&5
10644echo "${ECHO_T}no" >&6
9fec3fa8 10645fi
b30fcfae 10646
c47832b1 10647 fi
10648 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10649 done
10650fi
b30fcfae 10651
9fec3fa8 10652if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10653 set dummy lipo
10654 if test $build = $target ; then
10655 LIPO_FOR_TARGET="$2"
10656 else
10657 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10658 fi
b7ef8464 10659else
10660 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9fec3fa8 10661fi
10662
ab0da556 10663else
10664 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
c47832b1 10665fi
10666
10667
10668
10669
10670if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10671 if test -n "$with_build_time_tools"; then
5084f823 10672 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10673echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10674 if test -x $with_build_time_tools/nm; then
10675 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10676 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5084f823 10677 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10678echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
ab0da556 10679 else
5084f823 10680 echo "$as_me:$LINENO: result: no" >&5
10681echo "${ECHO_T}no" >&6
ab0da556 10682 fi
c47832b1 10683 elif test $build != $host && test $have_gcc_for_target = yes; then
10684 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
b7ef8464 10685 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10686 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c47832b1 10687 fi
10688fi
38d7211b 10689if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10690 # Extract the first word of "nm", so it can be a program name with args.
10691set dummy nm; ac_word=$2
5084f823 10692echo "$as_me:$LINENO: checking for $ac_word" >&5
10693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10694if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10696else
b30fcfae 10697 case $NM_FOR_TARGET in
10698 [\\/]* | ?:[\\/]*)
c47832b1 10699 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10700 ;;
c47832b1 10701 *)
b30fcfae 10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703for as_dir in $gcc_cv_tool_dirs
10704do
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10709 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10712 fi
10713done
10714done
10715
c47832b1 10716 ;;
10717esac
10718fi
b30fcfae 10719NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
5084f823 10720
c47832b1 10721if test -n "$NM_FOR_TARGET"; then
5084f823 10722 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10723echo "${ECHO_T}$NM_FOR_TARGET" >&6
c47832b1 10724else
5084f823 10725 echo "$as_me:$LINENO: result: no" >&5
10726echo "${ECHO_T}no" >&6
c47832b1 10727fi
10728
10729fi
10730if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
95a05732 10731
10732
10733if test -n "$NM_FOR_TARGET"; then
10734 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10735elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10736 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10737fi
10738
10739if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10740 for ncn_progname in nm; do
10741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10742set dummy ${ncn_progname}; ac_word=$2
5084f823 10743echo "$as_me:$LINENO: checking for $ac_word" >&5
10744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10745if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747else
10748 if test -n "$NM_FOR_TARGET"; then
10749 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10750else
10751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752for as_dir in $PATH
10753do
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10758 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10761 fi
10762done
10763done
10764
10765fi
10766fi
10767NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10768if test -n "$NM_FOR_TARGET"; then
5084f823 10769 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10770echo "${ECHO_T}$NM_FOR_TARGET" >&6
95a05732 10771else
5084f823 10772 echo "$as_me:$LINENO: result: no" >&5
10773echo "${ECHO_T}no" >&6
95a05732 10774fi
10775
10776 done
10777fi
10778
10779if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10780 for ncn_progname in nm; do
5084f823 10781 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10782echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10783 if test -x $with_build_time_tools/${ncn_progname}; then
10784 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10785 echo "$as_me:$LINENO: result: yes" >&5
10786echo "${ECHO_T}yes" >&6
c47832b1 10787 break
10788 else
5084f823 10789 echo "$as_me:$LINENO: result: no" >&5
10790echo "${ECHO_T}no" >&6
c47832b1 10791 fi
10792 done
10793fi
10794
10795if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10796 for ncn_progname in nm; do
10797 if test -n "$ncn_target_tool_prefix"; then
10798 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 10799set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10800echo "$as_me:$LINENO: checking for $ac_word" >&5
10801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10802if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10804else
ef8184c7 10805 if test -n "$NM_FOR_TARGET"; then
10806 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 10807else
b30fcfae 10808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809for as_dir in $PATH
10810do
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10815 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10818 fi
10819done
10820done
10821
bb612911 10822fi
10823fi
b30fcfae 10824NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
ef8184c7 10825if test -n "$NM_FOR_TARGET"; then
5084f823 10826 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10827echo "${ECHO_T}$NM_FOR_TARGET" >&6
bb612911 10828else
5084f823 10829 echo "$as_me:$LINENO: result: no" >&5
10830echo "${ECHO_T}no" >&6
bb612911 10831fi
10832
c47832b1 10833 fi
10834 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10836set dummy ${ncn_progname}; ac_word=$2
5084f823 10837echo "$as_me:$LINENO: checking for $ac_word" >&5
10838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10839if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10841else
768691b5 10842 if test -n "$NM_FOR_TARGET"; then
10843 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 10844else
b30fcfae 10845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846for as_dir in $PATH
10847do
10848 IFS=$as_save_IFS
10849 test -z "$as_dir" && as_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10852 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 break 2
10855 fi
10856done
10857done
10858
bb612911 10859fi
10860fi
b30fcfae 10861NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
768691b5 10862if test -n "$NM_FOR_TARGET"; then
5084f823 10863 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10864echo "${ECHO_T}$NM_FOR_TARGET" >&6
bb612911 10865else
5084f823 10866 echo "$as_me:$LINENO: result: no" >&5
10867echo "${ECHO_T}no" >&6
bb612911 10868fi
b30fcfae 10869
c47832b1 10870 fi
10871 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10872 done
10873fi
b30fcfae 10874
768691b5 10875if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10876 set dummy nm
10877 if test $build = $target ; then
10878 NM_FOR_TARGET="$2"
bb612911 10879 else
768691b5 10880 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 10881 fi
b7ef8464 10882else
10883 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
bb612911 10884fi
10885
ab0da556 10886else
10887 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 10888fi
10889
10890
10891
10892
10893if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10894 if test -n "$with_build_time_tools"; then
5084f823 10895 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10896echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10897 if test -x $with_build_time_tools/objdump; then
10898 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10899 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5084f823 10900 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10901echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
ab0da556 10902 else
5084f823 10903 echo "$as_me:$LINENO: result: no" >&5
10904echo "${ECHO_T}no" >&6
ab0da556 10905 fi
c47832b1 10906 elif test $build != $host && test $have_gcc_for_target = yes; then
10907 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
b7ef8464 10908 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10909 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c47832b1 10910 fi
10911fi
38d7211b 10912if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10913 # Extract the first word of "objdump", so it can be a program name with args.
10914set dummy objdump; ac_word=$2
5084f823 10915echo "$as_me:$LINENO: checking for $ac_word" >&5
10916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10917if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10919else
b30fcfae 10920 case $OBJDUMP_FOR_TARGET in
10921 [\\/]* | ?:[\\/]*)
c47832b1 10922 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10923 ;;
c47832b1 10924 *)
b30fcfae 10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926for as_dir in $gcc_cv_tool_dirs
10927do
10928 IFS=$as_save_IFS
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10932 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10934 break 2
10935 fi
10936done
10937done
10938
c47832b1 10939 ;;
10940esac
10941fi
b30fcfae 10942OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
5084f823 10943
c47832b1 10944if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10945 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10946echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
c47832b1 10947else
5084f823 10948 echo "$as_me:$LINENO: result: no" >&5
10949echo "${ECHO_T}no" >&6
c47832b1 10950fi
10951
10952fi
10953if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
95a05732 10954
10955
10956if test -n "$OBJDUMP_FOR_TARGET"; then
10957 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10958elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10959 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10960fi
10961
10962if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10963 for ncn_progname in objdump; do
10964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10965set dummy ${ncn_progname}; ac_word=$2
5084f823 10966echo "$as_me:$LINENO: checking for $ac_word" >&5
10967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10968if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970else
10971 if test -n "$OBJDUMP_FOR_TARGET"; then
10972 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10973else
10974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975for as_dir in $PATH
10976do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10981 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10984 fi
10985done
10986done
10987
10988fi
10989fi
10990OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10991if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10992 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10993echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
95a05732 10994else
5084f823 10995 echo "$as_me:$LINENO: result: no" >&5
10996echo "${ECHO_T}no" >&6
95a05732 10997fi
10998
10999 done
11000fi
11001
11002if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11003 for ncn_progname in objdump; do
5084f823 11004 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11005echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 11006 if test -x $with_build_time_tools/${ncn_progname}; then
11007 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 11008 echo "$as_me:$LINENO: result: yes" >&5
11009echo "${ECHO_T}yes" >&6
c47832b1 11010 break
11011 else
5084f823 11012 echo "$as_me:$LINENO: result: no" >&5
11013echo "${ECHO_T}no" >&6
c47832b1 11014 fi
11015 done
11016fi
11017
11018if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11019 for ncn_progname in objdump; do
11020 if test -n "$ncn_target_tool_prefix"; then
11021 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11022set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 11023echo "$as_me:$LINENO: checking for $ac_word" >&5
11024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 11025if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
ae74ffb7 11027else
11028 if test -n "$OBJDUMP_FOR_TARGET"; then
11029 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11030else
b30fcfae 11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11038 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11041 fi
11042done
11043done
11044
ae74ffb7 11045fi
11046fi
b30fcfae 11047OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 11048if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 11049 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11050echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
ae74ffb7 11051else
5084f823 11052 echo "$as_me:$LINENO: result: no" >&5
11053echo "${ECHO_T}no" >&6
ae74ffb7 11054fi
11055
c47832b1 11056 fi
11057 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
ae74ffb7 11059set dummy ${ncn_progname}; ac_word=$2
5084f823 11060echo "$as_me:$LINENO: checking for $ac_word" >&5
11061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 11062if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
ae74ffb7 11064else
11065 if test -n "$OBJDUMP_FOR_TARGET"; then
11066 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11067else
b30fcfae 11068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069for as_dir in $PATH
11070do
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
11073 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11075 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 break 2
11078 fi
11079done
11080done
11081
ae74ffb7 11082fi
11083fi
b30fcfae 11084OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 11085if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 11086 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11087echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
ae74ffb7 11088else
5084f823 11089 echo "$as_me:$LINENO: result: no" >&5
11090echo "${ECHO_T}no" >&6
ae74ffb7 11091fi
b30fcfae 11092
c47832b1 11093 fi
11094 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11095 done
11096fi
b30fcfae 11097
ae74ffb7 11098if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11099 set dummy objdump
11100 if test $build = $target ; then
11101 OBJDUMP_FOR_TARGET="$2"
11102 else
11103 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11104 fi
b7ef8464 11105else
11106 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
ae74ffb7 11107fi
11108
ab0da556 11109else
11110 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 11111fi
11112
11113
11114
11115
11116if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11117 if test -n "$with_build_time_tools"; then
5084f823 11118 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
11119echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
ab0da556 11120 if test -x $with_build_time_tools/ranlib; then
11121 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11122 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5084f823 11123 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11124echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
ab0da556 11125 else
5084f823 11126 echo "$as_me:$LINENO: result: no" >&5
11127echo "${ECHO_T}no" >&6
ab0da556 11128 fi
c47832b1 11129 elif test $build != $host && test $have_gcc_for_target = yes; then
11130 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
b7ef8464 11131 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11132 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c47832b1 11133 fi
11134fi
38d7211b 11135if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11136 # Extract the first word of "ranlib", so it can be a program name with args.
11137set dummy ranlib; ac_word=$2
5084f823 11138echo "$as_me:$LINENO: checking for $ac_word" >&5
11139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 11140if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 11142else
b30fcfae 11143 case $RANLIB_FOR_TARGET in
11144 [\\/]* | ?:[\\/]*)
c47832b1 11145 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11146 ;;
c47832b1 11147 *)
b30fcfae 11148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149for as_dir in $gcc_cv_tool_dirs
11150do
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
11153 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11155 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 break 2
11158 fi
11159done
11160done
11161
c47832b1 11162 ;;
11163esac
11164fi
b30fcfae 11165RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
5084f823 11166
c47832b1 11167if test -n "$RANLIB_FOR_TARGET"; then
5084f823 11168 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11169echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
c47832b1 11170else
5084f823 11171 echo "$as_me:$LINENO: result: no" >&5
11172echo "${ECHO_T}no" >&6
c47832b1 11173fi
11174
11175fi
11176if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
95a05732 11177
11178
11179if test -n "$RANLIB_FOR_TARGET"; then
11180 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11181elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11182 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11183fi
11184
11185if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11186 for ncn_progname in ranlib; do
11187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11188set dummy ${ncn_progname}; ac_word=$2
5084f823 11189echo "$as_me:$LINENO: checking for $ac_word" >&5
11190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 11191if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193else
11194 if test -n "$RANLIB_FOR_TARGET"; then
11195 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11196else
11197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198for as_dir in $PATH
11199do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11204 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11207 fi
11208done
11209done
11210
11211fi
11212fi
11213RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11214if test -n "$RANLIB_FOR_TARGET"; then
5084f823 11215 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11216echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
95a05732 11217else
5084f823 11218 echo "$as_me:$LINENO: result: no" >&5
11219echo "${ECHO_T}no" >&6
95a05732 11220fi
11221
11222 done
11223fi
11224
11225if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11226 for ncn_progname in ranlib; do
5084f823 11227 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11228echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 11229 if test -x $with_build_time_tools/${ncn_progname}; then
11230 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 11231 echo "$as_me:$LINENO: result: yes" >&5
11232echo "${ECHO_T}yes" >&6
c47832b1 11233 break
11234 else
5084f823 11235 echo "$as_me:$LINENO: result: no" >&5
11236echo "${ECHO_T}no" >&6
c47832b1 11237 fi
11238 done
11239fi
11240
11241if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11242 for ncn_progname in ranlib; do
11243 if test -n "$ncn_target_tool_prefix"; then
11244 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
ae74ffb7 11245set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 11246echo "$as_me:$LINENO: checking for $ac_word" >&5
11247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 11248if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 11250else
ef8184c7 11251 if test -n "$RANLIB_FOR_TARGET"; then
11252 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 11253else
b30fcfae 11254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255for as_dir in $PATH
11256do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11261 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11264 fi
11265done
11266done
11267
bb612911 11268fi
11269fi
b30fcfae 11270RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
ef8184c7 11271if test -n "$RANLIB_FOR_TARGET"; then
5084f823 11272 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11273echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
bb612911 11274else
5084f823 11275 echo "$as_me:$LINENO: result: no" >&5
11276echo "${ECHO_T}no" >&6
bb612911 11277fi
11278
c47832b1 11279 fi
11280 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11282set dummy ${ncn_progname}; ac_word=$2
5084f823 11283echo "$as_me:$LINENO: checking for $ac_word" >&5
11284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 11285if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 11287else
768691b5 11288 if test -n "$RANLIB_FOR_TARGET"; then
11289 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 11290else
b30fcfae 11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11298 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 break 2
11301 fi
11302done
11303done
11304
bb612911 11305fi
11306fi
b30fcfae 11307RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
768691b5 11308if test -n "$RANLIB_FOR_TARGET"; then
5084f823 11309 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11310echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
bb612911 11311else
5084f823 11312 echo "$as_me:$LINENO: result: no" >&5
11313echo "${ECHO_T}no" >&6
bb612911 11314fi
b30fcfae 11315
c47832b1 11316 fi
11317 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11318 done
11319fi
b30fcfae 11320
c47832b1 11321if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11322 set dummy ranlib
11323 if test $build = $target ; then
11324 RANLIB_FOR_TARGET="$2"
11325 else
11326 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 11327 fi
b7ef8464 11328else
11329 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
c47832b1 11330fi
768691b5 11331
ab0da556 11332else
11333 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
bb612911 11334fi
11335
c47832b1 11336
11337
11338
11339if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11340 if test -n "$with_build_time_tools"; then
5084f823 11341 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11342echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
ab0da556 11343 if test -x $with_build_time_tools/strip; then
11344 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11345 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5084f823 11346 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11347echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
ab0da556 11348 else
5084f823 11349 echo "$as_me:$LINENO: result: no" >&5
11350echo "${ECHO_T}no" >&6
ab0da556 11351 fi
c47832b1 11352 elif test $build != $host && test $have_gcc_for_target = yes; then
11353 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
b7ef8464 11354 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11355 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c47832b1 11356 fi
11357fi
38d7211b 11358if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11359 # Extract the first word of "strip", so it can be a program name with args.
11360set dummy strip; ac_word=$2
5084f823 11361echo "$as_me:$LINENO: checking for $ac_word" >&5
11362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 11363if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 11365else
b30fcfae 11366 case $STRIP_FOR_TARGET in
11367 [\\/]* | ?:[\\/]*)
c47832b1 11368 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11369 ;;
c47832b1 11370 *)
b30fcfae 11371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372for as_dir in $gcc_cv_tool_dirs
11373do
11374 IFS=$as_save_IFS
11375 test -z "$as_dir" && as_dir=.
11376 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11378 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11380 break 2
11381 fi
11382done
11383done
11384
c47832b1 11385 ;;
11386esac
11387fi
b30fcfae 11388STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
5084f823 11389
c47832b1 11390if test -n "$STRIP_FOR_TARGET"; then
5084f823 11391 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11392echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
c47832b1 11393else
5084f823 11394 echo "$as_me:$LINENO: result: no" >&5
11395echo "${ECHO_T}no" >&6
c47832b1 11396fi
11397
11398fi
11399if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
95a05732 11400
11401
11402if test -n "$STRIP_FOR_TARGET"; then
11403 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11404elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11405 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11406fi
11407
11408if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11409 for ncn_progname in strip; do
11410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11411set dummy ${ncn_progname}; ac_word=$2
5084f823 11412echo "$as_me:$LINENO: checking for $ac_word" >&5
11413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 11414if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416else
11417 if test -n "$STRIP_FOR_TARGET"; then
11418 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11419else
11420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421for as_dir in $PATH
11422do
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11427 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11430 fi
11431done
11432done
11433
11434fi
11435fi
11436STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11437if test -n "$STRIP_FOR_TARGET"; then
5084f823 11438 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11439echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
95a05732 11440else
5084f823 11441 echo "$as_me:$LINENO: result: no" >&5
11442echo "${ECHO_T}no" >&6
95a05732 11443fi
11444
11445 done
11446fi
11447
11448if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11449 for ncn_progname in strip; do
5084f823 11450 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11451echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 11452 if test -x $with_build_time_tools/${ncn_progname}; then
11453 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 11454 echo "$as_me:$LINENO: result: yes" >&5
11455echo "${ECHO_T}yes" >&6
c47832b1 11456 break
11457 else
5084f823 11458 echo "$as_me:$LINENO: result: no" >&5
11459echo "${ECHO_T}no" >&6
c47832b1 11460 fi
11461 done
11462fi
11463
11464if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11465 for ncn_progname in strip; do
11466 if test -n "$ncn_target_tool_prefix"; then
11467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 11468set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 11469echo "$as_me:$LINENO: checking for $ac_word" >&5
11470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 11471if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
ae48753c 11473else
11474 if test -n "$STRIP_FOR_TARGET"; then
b30fcfae 11475 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11476else
11477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478for as_dir in $PATH
11479do
11480 IFS=$as_save_IFS
11481 test -z "$as_dir" && as_dir=.
11482 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11484 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11486 break 2
11487 fi
11488done
11489done
11490
9fec3fa8 11491fi
11492fi
b30fcfae 11493STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 11494if test -n "$STRIP_FOR_TARGET"; then
5084f823 11495 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11496echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9fec3fa8 11497else
5084f823 11498 echo "$as_me:$LINENO: result: no" >&5
11499echo "${ECHO_T}no" >&6
9fec3fa8 11500fi
11501
c47832b1 11502 fi
11503 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 11505set dummy ${ncn_progname}; ac_word=$2
5084f823 11506echo "$as_me:$LINENO: checking for $ac_word" >&5
11507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 11508if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 11510else
11511 if test -n "$STRIP_FOR_TARGET"; then
11512 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11513else
b30fcfae 11514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515for as_dir in $PATH
11516do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11521 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11524 fi
11525done
11526done
11527
9fec3fa8 11528fi
11529fi
b30fcfae 11530STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 11531if test -n "$STRIP_FOR_TARGET"; then
5084f823 11532 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11533echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9fec3fa8 11534else
5084f823 11535 echo "$as_me:$LINENO: result: no" >&5
11536echo "${ECHO_T}no" >&6
9fec3fa8 11537fi
b30fcfae 11538
c47832b1 11539 fi
11540 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11541 done
11542fi
b30fcfae 11543
9fec3fa8 11544if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11545 set dummy strip
11546 if test $build = $target ; then
11547 STRIP_FOR_TARGET="$2"
11548 else
11549 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11550 fi
b7ef8464 11551else
11552 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
9fec3fa8 11553fi
11554
ab0da556 11555else
11556 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 11557fi
11558
11559
11560
11561
11562if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11563 if test -n "$with_build_time_tools"; then
5084f823 11564 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11565echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
ab0da556 11566 if test -x $with_build_time_tools/windres; then
11567 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11568 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5084f823 11569 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11570echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
ab0da556 11571 else
5084f823 11572 echo "$as_me:$LINENO: result: no" >&5
11573echo "${ECHO_T}no" >&6
ab0da556 11574 fi
c47832b1 11575 elif test $build != $host && test $have_gcc_for_target = yes; then
11576 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
b7ef8464 11577 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11578 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c47832b1 11579 fi
11580fi
38d7211b 11581if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11582 # Extract the first word of "windres", so it can be a program name with args.
11583set dummy windres; ac_word=$2
5084f823 11584echo "$as_me:$LINENO: checking for $ac_word" >&5
11585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 11586if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 11588else
b30fcfae 11589 case $WINDRES_FOR_TARGET in
11590 [\\/]* | ?:[\\/]*)
c47832b1 11591 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11592 ;;
c47832b1 11593 *)
b30fcfae 11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595for as_dir in $gcc_cv_tool_dirs
11596do
11597 IFS=$as_save_IFS
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11601 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 break 2
11604 fi
11605done
11606done
11607
c47832b1 11608 ;;
11609esac
11610fi
b30fcfae 11611WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
5084f823 11612
c47832b1 11613if test -n "$WINDRES_FOR_TARGET"; then
5084f823 11614 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11615echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
c47832b1 11616else
5084f823 11617 echo "$as_me:$LINENO: result: no" >&5
11618echo "${ECHO_T}no" >&6
c47832b1 11619fi
11620
11621fi
11622if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
95a05732 11623
11624
11625if test -n "$WINDRES_FOR_TARGET"; then
11626 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11627elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11628 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11629fi
11630
11631if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11632 for ncn_progname in windres; do
11633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11634set dummy ${ncn_progname}; ac_word=$2
5084f823 11635echo "$as_me:$LINENO: checking for $ac_word" >&5
11636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 11637if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639else
11640 if test -n "$WINDRES_FOR_TARGET"; then
11641 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11642else
11643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644for as_dir in $PATH
11645do
11646 IFS=$as_save_IFS
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11650 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 break 2
11653 fi
11654done
11655done
11656
11657fi
11658fi
11659WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11660if test -n "$WINDRES_FOR_TARGET"; then
5084f823 11661 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11662echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
95a05732 11663else
5084f823 11664 echo "$as_me:$LINENO: result: no" >&5
11665echo "${ECHO_T}no" >&6
95a05732 11666fi
11667
11668 done
11669fi
11670
11671if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11672 for ncn_progname in windres; do
5084f823 11673 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11674echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 11675 if test -x $with_build_time_tools/${ncn_progname}; then
11676 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 11677 echo "$as_me:$LINENO: result: yes" >&5
11678echo "${ECHO_T}yes" >&6
c47832b1 11679 break
11680 else
5084f823 11681 echo "$as_me:$LINENO: result: no" >&5
11682echo "${ECHO_T}no" >&6
c47832b1 11683 fi
11684 done
11685fi
11686
11687if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11688 for ncn_progname in windres; do
11689 if test -n "$ncn_target_tool_prefix"; then
11690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11691set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 11692echo "$as_me:$LINENO: checking for $ac_word" >&5
11693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 11694if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 11696else
ef8184c7 11697 if test -n "$WINDRES_FOR_TARGET"; then
11698 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 11699else
b30fcfae 11700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701for as_dir in $PATH
11702do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11707 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11709 break 2
11710 fi
11711done
11712done
11713
bb612911 11714fi
11715fi
b30fcfae 11716WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
ef8184c7 11717if test -n "$WINDRES_FOR_TARGET"; then
5084f823 11718 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11719echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
bb612911 11720else
5084f823 11721 echo "$as_me:$LINENO: result: no" >&5
11722echo "${ECHO_T}no" >&6
bb612911 11723fi
11724
c47832b1 11725 fi
11726 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11728set dummy ${ncn_progname}; ac_word=$2
5084f823 11729echo "$as_me:$LINENO: checking for $ac_word" >&5
11730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 11731if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 11733else
768691b5 11734 if test -n "$WINDRES_FOR_TARGET"; then
11735 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 11736else
b30fcfae 11737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738for as_dir in $PATH
11739do
11740 IFS=$as_save_IFS
11741 test -z "$as_dir" && as_dir=.
11742 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 11743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11744 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11746 break 2
11747 fi
11748done
11749done
11750
bb612911 11751fi
11752fi
b30fcfae 11753WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
768691b5 11754if test -n "$WINDRES_FOR_TARGET"; then
5084f823 11755 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11756echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
bb612911 11757else
5084f823 11758 echo "$as_me:$LINENO: result: no" >&5
11759echo "${ECHO_T}no" >&6
bb612911 11760fi
b30fcfae 11761
c47832b1 11762 fi
11763 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11764 done
11765fi
b30fcfae 11766
768691b5 11767if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11768 set dummy windres
11769 if test $build = $target ; then
11770 WINDRES_FOR_TARGET="$2"
bb612911 11771 else
768691b5 11772 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 11773 fi
b7ef8464 11774else
11775 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
bb612911 11776fi
11777
ab0da556 11778else
11779 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 11780fi
11781
805e22b2 11782
75d6a0a9 11783
11784
11785if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11786 if test -n "$with_build_time_tools"; then
11787 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11788echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11789 if test -x $with_build_time_tools/windmc; then
11790 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11791 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11792 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11793echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11794 else
11795 echo "$as_me:$LINENO: result: no" >&5
11796echo "${ECHO_T}no" >&6
11797 fi
11798 elif test $build != $host && test $have_gcc_for_target = yes; then
11799 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
b7ef8464 11800 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11801 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
75d6a0a9 11802 fi
11803fi
11804if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11805 # Extract the first word of "windmc", so it can be a program name with args.
11806set dummy windmc; ac_word=$2
11807echo "$as_me:$LINENO: checking for $ac_word" >&5
11808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11809if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11811else
11812 case $WINDMC_FOR_TARGET in
11813 [\\/]* | ?:[\\/]*)
11814 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11815 ;;
11816 *)
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818for as_dir in $gcc_cv_tool_dirs
11819do
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11824 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11827 fi
11828done
11829done
11830
11831 ;;
11832esac
11833fi
11834WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11835
11836if test -n "$WINDMC_FOR_TARGET"; then
11837 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11838echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11839else
11840 echo "$as_me:$LINENO: result: no" >&5
11841echo "${ECHO_T}no" >&6
11842fi
11843
11844fi
11845if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11846
11847
11848if test -n "$WINDMC_FOR_TARGET"; then
11849 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11850elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11851 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11852fi
11853
11854if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11855 for ncn_progname in windmc; do
11856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11857set dummy ${ncn_progname}; ac_word=$2
11858echo "$as_me:$LINENO: checking for $ac_word" >&5
11859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11860if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862else
11863 if test -n "$WINDMC_FOR_TARGET"; then
11864 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11865else
11866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867for as_dir in $PATH
11868do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11873 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11876 fi
11877done
11878done
11879
11880fi
11881fi
11882WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11883if test -n "$WINDMC_FOR_TARGET"; then
11884 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11885echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11886else
11887 echo "$as_me:$LINENO: result: no" >&5
11888echo "${ECHO_T}no" >&6
11889fi
11890
11891 done
11892fi
11893
11894if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11895 for ncn_progname in windmc; do
11896 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11897echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11898 if test -x $with_build_time_tools/${ncn_progname}; then
11899 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11900 echo "$as_me:$LINENO: result: yes" >&5
11901echo "${ECHO_T}yes" >&6
11902 break
11903 else
11904 echo "$as_me:$LINENO: result: no" >&5
11905echo "${ECHO_T}no" >&6
11906 fi
11907 done
11908fi
11909
11910if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11911 for ncn_progname in windmc; do
11912 if test -n "$ncn_target_tool_prefix"; then
11913 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11914set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11915echo "$as_me:$LINENO: checking for $ac_word" >&5
11916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11917if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919else
11920 if test -n "$WINDMC_FOR_TARGET"; then
11921 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11922else
11923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924for as_dir in $PATH
11925do
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
11929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 break 2
11933 fi
11934done
11935done
11936
11937fi
11938fi
11939WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11940if test -n "$WINDMC_FOR_TARGET"; then
11941 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11942echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11943else
11944 echo "$as_me:$LINENO: result: no" >&5
11945echo "${ECHO_T}no" >&6
11946fi
11947
11948 fi
11949 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11951set dummy ${ncn_progname}; ac_word=$2
11952echo "$as_me:$LINENO: checking for $ac_word" >&5
11953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11954if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956else
11957 if test -n "$WINDMC_FOR_TARGET"; then
11958 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11959else
11960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961for as_dir in $PATH
11962do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11970 fi
11971done
11972done
11973
11974fi
11975fi
11976WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11977if test -n "$WINDMC_FOR_TARGET"; then
11978 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11979echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11980else
11981 echo "$as_me:$LINENO: result: no" >&5
11982echo "${ECHO_T}no" >&6
11983fi
11984
11985 fi
11986 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11987 done
11988fi
11989
11990if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11991 set dummy windmc
11992 if test $build = $target ; then
11993 WINDMC_FOR_TARGET="$2"
11994 else
11995 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11996 fi
b7ef8464 11997else
11998 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
75d6a0a9 11999fi
12000
12001else
12002 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12003fi
12004
12005
f5aebe3e 12006RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12007
5084f823 12008echo "$as_me:$LINENO: checking where to find the target ar" >&5
12009echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
f5aebe3e 12010if test "x${build}" != "x${host}" ; then
c47832b1 12011 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12012 # We already found the complete path
a6c599b5 12013 ac_dir=`dirname $AR_FOR_TARGET`
5084f823 12014 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12015echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12016 else
12017 # Canadian cross, just use what we found
5084f823 12018 echo "$as_me:$LINENO: result: pre-installed" >&5
12019echo "${ECHO_T}pre-installed" >&6
c47832b1 12020 fi
f5aebe3e 12021else
12022 ok=yes
12023 case " ${configdirs} " in
12024 *" binutils "*) ;;
12025 *) ok=no ;;
12026 esac
b30fcfae 12027
f5aebe3e 12028 if test $ok = yes; then
12029 # An in-tree tool is available and we can use it
12030 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5084f823 12031 echo "$as_me:$LINENO: result: just compiled" >&5
12032echo "${ECHO_T}just compiled" >&6
c47832b1 12033 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12034 # We already found the complete path
a6c599b5 12035 ac_dir=`dirname $AR_FOR_TARGET`
5084f823 12036 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12037echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12038 elif test "x$target" = "x$host"; then
12039 # We can use an host tool
12040 AR_FOR_TARGET='$(AR)'
5084f823 12041 echo "$as_me:$LINENO: result: host tool" >&5
12042echo "${ECHO_T}host tool" >&6
f5aebe3e 12043 else
12044 # We need a cross tool
5084f823 12045 echo "$as_me:$LINENO: result: pre-installed" >&5
12046echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12047 fi
12048fi
a83ffacf 12049
5084f823 12050echo "$as_me:$LINENO: checking where to find the target as" >&5
12051echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
f5aebe3e 12052if test "x${build}" != "x${host}" ; then
c47832b1 12053 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12054 # We already found the complete path
a6c599b5 12055 ac_dir=`dirname $AS_FOR_TARGET`
5084f823 12056 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12057echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12058 else
12059 # Canadian cross, just use what we found
5084f823 12060 echo "$as_me:$LINENO: result: pre-installed" >&5
12061echo "${ECHO_T}pre-installed" >&6
c47832b1 12062 fi
f5aebe3e 12063else
12064 ok=yes
12065 case " ${configdirs} " in
12066 *" gas "*) ;;
12067 *) ok=no ;;
12068 esac
b30fcfae 12069
f5aebe3e 12070 if test $ok = yes; then
12071 # An in-tree tool is available and we can use it
12072 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5084f823 12073 echo "$as_me:$LINENO: result: just compiled" >&5
12074echo "${ECHO_T}just compiled" >&6
c47832b1 12075 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12076 # We already found the complete path
a6c599b5 12077 ac_dir=`dirname $AS_FOR_TARGET`
5084f823 12078 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12079echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12080 elif test "x$target" = "x$host"; then
12081 # We can use an host tool
12082 AS_FOR_TARGET='$(AS)'
5084f823 12083 echo "$as_me:$LINENO: result: host tool" >&5
12084echo "${ECHO_T}host tool" >&6
f5aebe3e 12085 else
12086 # We need a cross tool
5084f823 12087 echo "$as_me:$LINENO: result: pre-installed" >&5
12088echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12089 fi
12090fi
a83ffacf 12091
5084f823 12092echo "$as_me:$LINENO: checking where to find the target cc" >&5
12093echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
f5aebe3e 12094if test "x${build}" != "x${host}" ; then
c47832b1 12095 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12096 # We already found the complete path
a6c599b5 12097 ac_dir=`dirname $CC_FOR_TARGET`
5084f823 12098 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12099echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12100 else
12101 # Canadian cross, just use what we found
5084f823 12102 echo "$as_me:$LINENO: result: pre-installed" >&5
12103echo "${ECHO_T}pre-installed" >&6
c47832b1 12104 fi
f5aebe3e 12105else
12106 ok=yes
12107 case " ${configdirs} " in
12108 *" gcc "*) ;;
12109 *) ok=no ;;
12110 esac
b30fcfae 12111
f5aebe3e 12112 if test $ok = yes; then
12113 # An in-tree tool is available and we can use it
12114 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 12115 echo "$as_me:$LINENO: result: just compiled" >&5
12116echo "${ECHO_T}just compiled" >&6
c47832b1 12117 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12118 # We already found the complete path
a6c599b5 12119 ac_dir=`dirname $CC_FOR_TARGET`
5084f823 12120 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12121echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12122 elif test "x$target" = "x$host"; then
12123 # We can use an host tool
12124 CC_FOR_TARGET='$(CC)'
5084f823 12125 echo "$as_me:$LINENO: result: host tool" >&5
12126echo "${ECHO_T}host tool" >&6
f5aebe3e 12127 else
12128 # We need a cross tool
5084f823 12129 echo "$as_me:$LINENO: result: pre-installed" >&5
12130echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12131 fi
12132fi
a83ffacf 12133
5084f823 12134echo "$as_me:$LINENO: checking where to find the target c++" >&5
12135echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
f5aebe3e 12136if test "x${build}" != "x${host}" ; then
c47832b1 12137 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12138 # We already found the complete path
a6c599b5 12139 ac_dir=`dirname $CXX_FOR_TARGET`
5084f823 12140 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12141echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12142 else
12143 # Canadian cross, just use what we found
5084f823 12144 echo "$as_me:$LINENO: result: pre-installed" >&5
12145echo "${ECHO_T}pre-installed" >&6
c47832b1 12146 fi
f5aebe3e 12147else
12148 ok=yes
12149 case " ${configdirs} " in
12150 *" gcc "*) ;;
12151 *) ok=no ;;
12152 esac
12153 case ,${enable_languages}, in
12154 *,c++,*) ;;
12155 *) ok=no ;;
12156 esac
12157 if test $ok = yes; then
12158 # An in-tree tool is available and we can use it
12159 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'
5084f823 12160 echo "$as_me:$LINENO: result: just compiled" >&5
12161echo "${ECHO_T}just compiled" >&6
c47832b1 12162 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12163 # We already found the complete path
a6c599b5 12164 ac_dir=`dirname $CXX_FOR_TARGET`
5084f823 12165 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12166echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12167 elif test "x$target" = "x$host"; then
12168 # We can use an host tool
12169 CXX_FOR_TARGET='$(CXX)'
5084f823 12170 echo "$as_me:$LINENO: result: host tool" >&5
12171echo "${ECHO_T}host tool" >&6
f5aebe3e 12172 else
12173 # We need a cross tool
5084f823 12174 echo "$as_me:$LINENO: result: pre-installed" >&5
12175echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12176 fi
12177fi
a83ffacf 12178
5084f823 12179echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
12180echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
f5aebe3e 12181if test "x${build}" != "x${host}" ; then
c47832b1 12182 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12183 # We already found the complete path
a6c599b5 12184 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5084f823 12185 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12186echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12187 else
12188 # Canadian cross, just use what we found
5084f823 12189 echo "$as_me:$LINENO: result: pre-installed" >&5
12190echo "${ECHO_T}pre-installed" >&6
c47832b1 12191 fi
f5aebe3e 12192else
12193 ok=yes
12194 case " ${configdirs} " in
12195 *" gcc "*) ;;
12196 *) ok=no ;;
12197 esac
12198 case ,${enable_languages}, in
12199 *,c++,*) ;;
12200 *) ok=no ;;
12201 esac
12202 if test $ok = yes; then
12203 # An in-tree tool is available and we can use it
12204 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'
5084f823 12205 echo "$as_me:$LINENO: result: just compiled" >&5
12206echo "${ECHO_T}just compiled" >&6
c47832b1 12207 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12208 # We already found the complete path
a6c599b5 12209 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5084f823 12210 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12211echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12212 elif test "x$target" = "x$host"; then
12213 # We can use an host tool
12214 RAW_CXX_FOR_TARGET='$(CXX)'
5084f823 12215 echo "$as_me:$LINENO: result: host tool" >&5
12216echo "${ECHO_T}host tool" >&6
f5aebe3e 12217 else
12218 # We need a cross tool
5084f823 12219 echo "$as_me:$LINENO: result: pre-installed" >&5
12220echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12221 fi
12222fi
a83ffacf 12223
5084f823 12224echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
12225echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
f5aebe3e 12226if test "x${build}" != "x${host}" ; then
c47832b1 12227 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12228 # We already found the complete path
a6c599b5 12229 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5084f823 12230 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12231echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12232 else
12233 # Canadian cross, just use what we found
5084f823 12234 echo "$as_me:$LINENO: result: pre-installed" >&5
12235echo "${ECHO_T}pre-installed" >&6
c47832b1 12236 fi
f5aebe3e 12237else
12238 ok=yes
12239 case " ${configdirs} " in
12240 *" binutils "*) ;;
12241 *) ok=no ;;
12242 esac
b30fcfae 12243
f5aebe3e 12244 if test $ok = yes; then
12245 # An in-tree tool is available and we can use it
12246 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5084f823 12247 echo "$as_me:$LINENO: result: just compiled" >&5
12248echo "${ECHO_T}just compiled" >&6
c47832b1 12249 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12250 # We already found the complete path
a6c599b5 12251 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5084f823 12252 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12253echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12254 elif test "x$target" = "x$host"; then
12255 # We can use an host tool
12256 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5084f823 12257 echo "$as_me:$LINENO: result: host tool" >&5
12258echo "${ECHO_T}host tool" >&6
f5aebe3e 12259 else
12260 # We need a cross tool
5084f823 12261 echo "$as_me:$LINENO: result: pre-installed" >&5
12262echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12263 fi
12264fi
a83ffacf 12265
5084f823 12266echo "$as_me:$LINENO: checking where to find the target gcc" >&5
12267echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
f5aebe3e 12268if test "x${build}" != "x${host}" ; then
c47832b1 12269 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12270 # We already found the complete path
a6c599b5 12271 ac_dir=`dirname $GCC_FOR_TARGET`
5084f823 12272 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12273echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12274 else
12275 # Canadian cross, just use what we found
5084f823 12276 echo "$as_me:$LINENO: result: pre-installed" >&5
12277echo "${ECHO_T}pre-installed" >&6
c47832b1 12278 fi
f5aebe3e 12279else
12280 ok=yes
12281 case " ${configdirs} " in
12282 *" gcc "*) ;;
12283 *) ok=no ;;
12284 esac
b30fcfae 12285
f5aebe3e 12286 if test $ok = yes; then
12287 # An in-tree tool is available and we can use it
12288 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 12289 echo "$as_me:$LINENO: result: just compiled" >&5
12290echo "${ECHO_T}just compiled" >&6
c47832b1 12291 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12292 # We already found the complete path
a6c599b5 12293 ac_dir=`dirname $GCC_FOR_TARGET`
5084f823 12294 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12295echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12296 elif test "x$target" = "x$host"; then
12297 # We can use an host tool
12298 GCC_FOR_TARGET='$()'
5084f823 12299 echo "$as_me:$LINENO: result: host tool" >&5
12300echo "${ECHO_T}host tool" >&6
f5aebe3e 12301 else
12302 # We need a cross tool
5084f823 12303 echo "$as_me:$LINENO: result: pre-installed" >&5
12304echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12305 fi
12306fi
a83ffacf 12307
5084f823 12308echo "$as_me:$LINENO: checking where to find the target gcj" >&5
12309echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
f5aebe3e 12310if test "x${build}" != "x${host}" ; then
c47832b1 12311 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12312 # We already found the complete path
a6c599b5 12313 ac_dir=`dirname $GCJ_FOR_TARGET`
5084f823 12314 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12315echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12316 else
12317 # Canadian cross, just use what we found
5084f823 12318 echo "$as_me:$LINENO: result: pre-installed" >&5
12319echo "${ECHO_T}pre-installed" >&6
c47832b1 12320 fi
f5aebe3e 12321else
12322 ok=yes
12323 case " ${configdirs} " in
12324 *" gcc "*) ;;
12325 *) ok=no ;;
12326 esac
12327 case ,${enable_languages}, in
12328 *,java,*) ;;
12329 *) ok=no ;;
12330 esac
12331 if test $ok = yes; then
12332 # An in-tree tool is available and we can use it
12333 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 12334 echo "$as_me:$LINENO: result: just compiled" >&5
12335echo "${ECHO_T}just compiled" >&6
c47832b1 12336 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12337 # We already found the complete path
a6c599b5 12338 ac_dir=`dirname $GCJ_FOR_TARGET`
5084f823 12339 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12340echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12341 elif test "x$target" = "x$host"; then
12342 # We can use an host tool
12343 GCJ_FOR_TARGET='$(GCJ)'
5084f823 12344 echo "$as_me:$LINENO: result: host tool" >&5
12345echo "${ECHO_T}host tool" >&6
f5aebe3e 12346 else
12347 # We need a cross tool
5084f823 12348 echo "$as_me:$LINENO: result: pre-installed" >&5
12349echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12350 fi
12351fi
a83ffacf 12352
5084f823 12353echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12354echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
f5aebe3e 12355if test "x${build}" != "x${host}" ; then
c47832b1 12356 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12357 # We already found the complete path
a6c599b5 12358 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5084f823 12359 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12360echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12361 else
12362 # Canadian cross, just use what we found
5084f823 12363 echo "$as_me:$LINENO: result: pre-installed" >&5
12364echo "${ECHO_T}pre-installed" >&6
c47832b1 12365 fi
f5aebe3e 12366else
12367 ok=yes
12368 case " ${configdirs} " in
12369 *" gcc "*) ;;
12370 *) ok=no ;;
12371 esac
12372 case ,${enable_languages}, in
12373 *,fortran,*) ;;
12374 *) ok=no ;;
12375 esac
12376 if test $ok = yes; then
12377 # An in-tree tool is available and we can use it
12378 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 12379 echo "$as_me:$LINENO: result: just compiled" >&5
12380echo "${ECHO_T}just compiled" >&6
c47832b1 12381 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12382 # We already found the complete path
a6c599b5 12383 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5084f823 12384 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12385echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12386 elif test "x$target" = "x$host"; then
12387 # We can use an host tool
12388 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5084f823 12389 echo "$as_me:$LINENO: result: host tool" >&5
12390echo "${ECHO_T}host tool" >&6
f5aebe3e 12391 else
12392 # We need a cross tool
5084f823 12393 echo "$as_me:$LINENO: result: pre-installed" >&5
12394echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12395 fi
12396fi
a83ffacf 12397
5084f823 12398echo "$as_me:$LINENO: checking where to find the target ld" >&5
12399echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
f5aebe3e 12400if test "x${build}" != "x${host}" ; then
c47832b1 12401 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12402 # We already found the complete path
a6c599b5 12403 ac_dir=`dirname $LD_FOR_TARGET`
5084f823 12404 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12405echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12406 else
12407 # Canadian cross, just use what we found
5084f823 12408 echo "$as_me:$LINENO: result: pre-installed" >&5
12409echo "${ECHO_T}pre-installed" >&6
c47832b1 12410 fi
f5aebe3e 12411else
12412 ok=yes
12413 case " ${configdirs} " in
12414 *" ld "*) ;;
12415 *) ok=no ;;
12416 esac
b30fcfae 12417
f5aebe3e 12418 if test $ok = yes; then
12419 # An in-tree tool is available and we can use it
12420 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5084f823 12421 echo "$as_me:$LINENO: result: just compiled" >&5
12422echo "${ECHO_T}just compiled" >&6
c47832b1 12423 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12424 # We already found the complete path
a6c599b5 12425 ac_dir=`dirname $LD_FOR_TARGET`
5084f823 12426 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12427echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12428 elif test "x$target" = "x$host"; then
12429 # We can use an host tool
12430 LD_FOR_TARGET='$(LD)'
5084f823 12431 echo "$as_me:$LINENO: result: host tool" >&5
12432echo "${ECHO_T}host tool" >&6
f5aebe3e 12433 else
12434 # We need a cross tool
5084f823 12435 echo "$as_me:$LINENO: result: pre-installed" >&5
12436echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12437 fi
12438fi
a83ffacf 12439
5084f823 12440echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12441echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
f5aebe3e 12442if test "x${build}" != "x${host}" ; then
c47832b1 12443 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12444 # We already found the complete path
a6c599b5 12445 ac_dir=`dirname $LIPO_FOR_TARGET`
5084f823 12446 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12447echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12448 else
12449 # Canadian cross, just use what we found
5084f823 12450 echo "$as_me:$LINENO: result: pre-installed" >&5
12451echo "${ECHO_T}pre-installed" >&6
c47832b1 12452 fi
f5aebe3e 12453else
c47832b1 12454 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12455 # We already found the complete path
a6c599b5 12456 ac_dir=`dirname $LIPO_FOR_TARGET`
5084f823 12457 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12458echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12459 elif test "x$target" = "x$host"; then
f5aebe3e 12460 # We can use an host tool
12461 LIPO_FOR_TARGET='$(LIPO)'
5084f823 12462 echo "$as_me:$LINENO: result: host tool" >&5
12463echo "${ECHO_T}host tool" >&6
f5aebe3e 12464 else
12465 # We need a cross tool
5084f823 12466 echo "$as_me:$LINENO: result: pre-installed" >&5
12467echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12468 fi
12469fi
a83ffacf 12470
5084f823 12471echo "$as_me:$LINENO: checking where to find the target nm" >&5
12472echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
f5aebe3e 12473if test "x${build}" != "x${host}" ; then
c47832b1 12474 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12475 # We already found the complete path
a6c599b5 12476 ac_dir=`dirname $NM_FOR_TARGET`
5084f823 12477 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12478echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12479 else
12480 # Canadian cross, just use what we found
5084f823 12481 echo "$as_me:$LINENO: result: pre-installed" >&5
12482echo "${ECHO_T}pre-installed" >&6
c47832b1 12483 fi
f5aebe3e 12484else
12485 ok=yes
12486 case " ${configdirs} " in
12487 *" binutils "*) ;;
12488 *) ok=no ;;
12489 esac
b30fcfae 12490
f5aebe3e 12491 if test $ok = yes; then
12492 # An in-tree tool is available and we can use it
12493 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5084f823 12494 echo "$as_me:$LINENO: result: just compiled" >&5
12495echo "${ECHO_T}just compiled" >&6
c47832b1 12496 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12497 # We already found the complete path
a6c599b5 12498 ac_dir=`dirname $NM_FOR_TARGET`
5084f823 12499 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12500echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12501 elif test "x$target" = "x$host"; then
12502 # We can use an host tool
12503 NM_FOR_TARGET='$(NM)'
5084f823 12504 echo "$as_me:$LINENO: result: host tool" >&5
12505echo "${ECHO_T}host tool" >&6
f5aebe3e 12506 else
12507 # We need a cross tool
5084f823 12508 echo "$as_me:$LINENO: result: pre-installed" >&5
12509echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12510 fi
12511fi
a83ffacf 12512
5084f823 12513echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12514echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
f5aebe3e 12515if test "x${build}" != "x${host}" ; then
c47832b1 12516 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12517 # We already found the complete path
a6c599b5 12518 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5084f823 12519 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12520echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12521 else
12522 # Canadian cross, just use what we found
5084f823 12523 echo "$as_me:$LINENO: result: pre-installed" >&5
12524echo "${ECHO_T}pre-installed" >&6
c47832b1 12525 fi
f5aebe3e 12526else
12527 ok=yes
12528 case " ${configdirs} " in
12529 *" binutils "*) ;;
12530 *) ok=no ;;
12531 esac
b30fcfae 12532
f5aebe3e 12533 if test $ok = yes; then
12534 # An in-tree tool is available and we can use it
12535 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5084f823 12536 echo "$as_me:$LINENO: result: just compiled" >&5
12537echo "${ECHO_T}just compiled" >&6
c47832b1 12538 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12539 # We already found the complete path
a6c599b5 12540 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5084f823 12541 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12542echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12543 elif test "x$target" = "x$host"; then
12544 # We can use an host tool
12545 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5084f823 12546 echo "$as_me:$LINENO: result: host tool" >&5
12547echo "${ECHO_T}host tool" >&6
f5aebe3e 12548 else
12549 # We need a cross tool
5084f823 12550 echo "$as_me:$LINENO: result: pre-installed" >&5
12551echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12552 fi
12553fi
a83ffacf 12554
5084f823 12555echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12556echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
f5aebe3e 12557if test "x${build}" != "x${host}" ; then
c47832b1 12558 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12559 # We already found the complete path
a6c599b5 12560 ac_dir=`dirname $RANLIB_FOR_TARGET`
5084f823 12561 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12562echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12563 else
12564 # Canadian cross, just use what we found
5084f823 12565 echo "$as_me:$LINENO: result: pre-installed" >&5
12566echo "${ECHO_T}pre-installed" >&6
c47832b1 12567 fi
f5aebe3e 12568else
12569 ok=yes
12570 case " ${configdirs} " in
12571 *" binutils "*) ;;
12572 *) ok=no ;;
12573 esac
b30fcfae 12574
f5aebe3e 12575 if test $ok = yes; then
12576 # An in-tree tool is available and we can use it
12577 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5084f823 12578 echo "$as_me:$LINENO: result: just compiled" >&5
12579echo "${ECHO_T}just compiled" >&6
c47832b1 12580 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12581 # We already found the complete path
a6c599b5 12582 ac_dir=`dirname $RANLIB_FOR_TARGET`
5084f823 12583 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12584echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12585 elif test "x$target" = "x$host"; then
12586 # We can use an host tool
12587 RANLIB_FOR_TARGET='$(RANLIB)'
5084f823 12588 echo "$as_me:$LINENO: result: host tool" >&5
12589echo "${ECHO_T}host tool" >&6
f5aebe3e 12590 else
12591 # We need a cross tool
5084f823 12592 echo "$as_me:$LINENO: result: pre-installed" >&5
12593echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12594 fi
12595fi
a83ffacf 12596
5084f823 12597echo "$as_me:$LINENO: checking where to find the target strip" >&5
12598echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
f5aebe3e 12599if test "x${build}" != "x${host}" ; then
c47832b1 12600 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12601 # We already found the complete path
a6c599b5 12602 ac_dir=`dirname $STRIP_FOR_TARGET`
5084f823 12603 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12604echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12605 else
12606 # Canadian cross, just use what we found
5084f823 12607 echo "$as_me:$LINENO: result: pre-installed" >&5
12608echo "${ECHO_T}pre-installed" >&6
c47832b1 12609 fi
f5aebe3e 12610else
12611 ok=yes
12612 case " ${configdirs} " in
12613 *" binutils "*) ;;
12614 *) ok=no ;;
12615 esac
b30fcfae 12616
f5aebe3e 12617 if test $ok = yes; then
12618 # An in-tree tool is available and we can use it
12619 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5084f823 12620 echo "$as_me:$LINENO: result: just compiled" >&5
12621echo "${ECHO_T}just compiled" >&6
c47832b1 12622 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12623 # We already found the complete path
a6c599b5 12624 ac_dir=`dirname $STRIP_FOR_TARGET`
5084f823 12625 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12626echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12627 elif test "x$target" = "x$host"; then
12628 # We can use an host tool
12629 STRIP_FOR_TARGET='$(STRIP)'
5084f823 12630 echo "$as_me:$LINENO: result: host tool" >&5
12631echo "${ECHO_T}host tool" >&6
f5aebe3e 12632 else
12633 # We need a cross tool
5084f823 12634 echo "$as_me:$LINENO: result: pre-installed" >&5
12635echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12636 fi
12637fi
a83ffacf 12638
5084f823 12639echo "$as_me:$LINENO: checking where to find the target windres" >&5
12640echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
f5aebe3e 12641if test "x${build}" != "x${host}" ; then
c47832b1 12642 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12643 # We already found the complete path
a6c599b5 12644 ac_dir=`dirname $WINDRES_FOR_TARGET`
5084f823 12645 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12646echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 12647 else
12648 # Canadian cross, just use what we found
5084f823 12649 echo "$as_me:$LINENO: result: pre-installed" >&5
12650echo "${ECHO_T}pre-installed" >&6
c47832b1 12651 fi
f5aebe3e 12652else
12653 ok=yes
12654 case " ${configdirs} " in
12655 *" binutils "*) ;;
12656 *) ok=no ;;
12657 esac
b30fcfae 12658
f5aebe3e 12659 if test $ok = yes; then
12660 # An in-tree tool is available and we can use it
12661 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5084f823 12662 echo "$as_me:$LINENO: result: just compiled" >&5
12663echo "${ECHO_T}just compiled" >&6
c47832b1 12664 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12665 # We already found the complete path
a6c599b5 12666 ac_dir=`dirname $WINDRES_FOR_TARGET`
5084f823 12667 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12668echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 12669 elif test "x$target" = "x$host"; then
12670 # We can use an host tool
12671 WINDRES_FOR_TARGET='$(WINDRES)'
5084f823 12672 echo "$as_me:$LINENO: result: host tool" >&5
12673echo "${ECHO_T}host tool" >&6
f5aebe3e 12674 else
12675 # We need a cross tool
5084f823 12676 echo "$as_me:$LINENO: result: pre-installed" >&5
12677echo "${ECHO_T}pre-installed" >&6
f5aebe3e 12678 fi
71ab34df 12679fi
49aae208 12680
75d6a0a9 12681echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12682echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12683if test "x${build}" != "x${host}" ; then
12684 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12685 # We already found the complete path
12686 ac_dir=`dirname $WINDMC_FOR_TARGET`
12687 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12688echo "${ECHO_T}pre-installed in $ac_dir" >&6
12689 else
12690 # Canadian cross, just use what we found
12691 echo "$as_me:$LINENO: result: pre-installed" >&5
12692echo "${ECHO_T}pre-installed" >&6
12693 fi
12694else
12695 ok=yes
12696 case " ${configdirs} " in
12697 *" binutils "*) ;;
12698 *) ok=no ;;
12699 esac
12700
12701 if test $ok = yes; then
12702 # An in-tree tool is available and we can use it
12703 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12704 echo "$as_me:$LINENO: result: just compiled" >&5
12705echo "${ECHO_T}just compiled" >&6
12706 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12707 # We already found the complete path
12708 ac_dir=`dirname $WINDMC_FOR_TARGET`
12709 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12710echo "${ECHO_T}pre-installed in $ac_dir" >&6
12711 elif test "x$target" = "x$host"; then
12712 # We can use an host tool
12713 WINDMC_FOR_TARGET='$(WINDMC)'
12714 echo "$as_me:$LINENO: result: host tool" >&5
12715echo "${ECHO_T}host tool" >&6
12716 else
12717 # We need a cross tool
12718 echo "$as_me:$LINENO: result: pre-installed" >&5
12719echo "${ECHO_T}pre-installed" >&6
12720 fi
12721fi
12722
49aae208 12723
12724
f5aebe3e 12725
a83ffacf 12726
71ab34df 12727# Certain tools may need extra flags.
12728AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12729RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12730NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12731
f5aebe3e 12732# When building target libraries, except in a Canadian cross, we use
12733# the same toolchain as the compiler we just built.
12734COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12735COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12736COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12737if test $host = $build; then
12738 case " $configdirs " in
12739 *" gcc "*)
12740 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12741 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12742 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12743 ;;
12744 esac
12745fi
12746
12747
12748
12749
12750
5084f823 12751echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12752echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12753# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3290c0cf 12754if test "${enable_maintainer_mode+set}" = set; then
5084f823 12755 enableval="$enable_maintainer_mode"
12756 USE_MAINTAINER_MODE=$enableval
3290c0cf 12757else
12758 USE_MAINTAINER_MODE=no
5084f823 12759fi;
12760echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12761echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3290c0cf 12762
12763
12764if test "$USE_MAINTAINER_MODE" = yes; then
12765 MAINTAINER_MODE_TRUE=
12766 MAINTAINER_MODE_FALSE='#'
12767else
12768 MAINTAINER_MODE_TRUE='#'
12769 MAINTAINER_MODE_FALSE=
b30fcfae 12770fi
3290c0cf 12771MAINT=$MAINTAINER_MODE_TRUE
12772
2d64c2fd 12773# ---------------------
12774# GCC bootstrap support
12775# ---------------------
12776
12777# Stage specific cflags for build.
12778stage1_cflags="-g"
12779case $build in
12780 vax-*-*)
12781 case ${GCC} in
12782 yes) stage1_cflags="-g -Wa,-J" ;;
12783 *) stage1_cflags="-g -J" ;;
12784 esac ;;
2d64c2fd 12785esac
12786
f508ba97 12787# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7ab76cec 12788if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
f508ba97 12789 saved_CFLAGS="$CFLAGS"
12790
12791 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12792 CFLAGS="$CFLAGS -fkeep-inline-functions"
5084f823 12793 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12794echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
b30fcfae 12795 cat >conftest.$ac_ext <<_ACEOF
12796/* confdefs.h. */
12797_ACEOF
12798cat confdefs.h >>conftest.$ac_ext
12799cat >>conftest.$ac_ext <<_ACEOF
12800/* end confdefs.h. */
12801
505abe0c 12802#if (__GNUC__ < 3) \
12803 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12804 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12805#error http://gcc.gnu.org/PR29382
12806#endif
12807
b30fcfae 12808int
12809main ()
12810{
12811
12812 ;
12813 return 0;
12814}
12815_ACEOF
12816rm -f conftest.$ac_objext
5084f823 12817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>conftest.er1
b30fcfae 12819 ac_status=$?
12820 grep -v '^ *+' conftest.er1 >conftest.err
12821 rm -f conftest.er1
12822 cat conftest.err >&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 12824 (exit $ac_status); } &&
12825 { ac_try='test -z "$ac_c_werror_flag"
12826 || test ! -s conftest.err'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; } &&
12832 { ac_try='test -s conftest.$ac_objext'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 echo "$as_me:$LINENO: result: yes" >&5
12839echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
b30fcfae 12840else
12841 echo "$as_me: failed program was:" >&5
12842sed 's/^/| /' conftest.$ac_ext >&5
12843
5084f823 12844echo "$as_me:$LINENO: result: no" >&5
12845echo "${ECHO_T}no" >&6
b30fcfae 12846fi
5084f823 12847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f508ba97 12848
12849 CFLAGS="$saved_CFLAGS"
12850fi
12851
12852
2d64c2fd 12853
39f34cfc 12854# Enable --enable-checking in stage1 of the compiler.
5084f823 12855# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
39f34cfc 12856if test "${enable_stage1_checking+set}" = set; then
5084f823 12857 enableval="$enable_stage1_checking"
12858 stage1_checking=--enable-checking=${enable_stage1_checking}
39f34cfc 12859else
f6be6a96 12860 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
f03e0ae4 12861 stage1_checking=--enable-checking=yes,types
39f34cfc 12862else
f6be6a96 12863 stage1_checking=--enable-checking=$enable_checking,types
39f34cfc 12864fi
5084f823 12865fi;
39f34cfc 12866
12867
2d64c2fd 12868# Enable -Werror in bootstrap stage2 and later.
5084f823 12869# Check whether --enable-werror or --disable-werror was given.
2d64c2fd 12870if test "${enable_werror+set}" = set; then
5084f823 12871 enableval="$enable_werror"
12872
2d64c2fd 12873else
dd979235 12874 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2d64c2fd 12875 enable_werror=yes
dc914c6d 12876else
12877 enable_werror=no
12878fi
5084f823 12879fi;
c0c5068d 12880case ${enable_werror} in
12881 yes) stage2_werror_flag="--enable-werror-always" ;;
12882 *) stage2_werror_flag="" ;;
2d64c2fd 12883esac
12884
12885
d06227a7 12886# Flags needed to enable html installing and building
b30fcfae 12887
5084f823 12888# Check whether --with-datarootdir or --without-datarootdir was given.
d06227a7 12889if test "${with_datarootdir+set}" = set; then
5084f823 12890 withval="$with_datarootdir"
12891 datarootdir="\${prefix}/${withval}"
d06227a7 12892else
12893 datarootdir="\${prefix}/share"
5084f823 12894fi;
d06227a7 12895
12896
5084f823 12897# Check whether --with-docdir or --without-docdir was given.
d06227a7 12898if test "${with_docdir+set}" = set; then
5084f823 12899 withval="$with_docdir"
12900 docdir="\${prefix}/${withval}"
d06227a7 12901else
12902 docdir="\${datarootdir}/doc"
5084f823 12903fi;
d06227a7 12904
12905
5084f823 12906# Check whether --with-pdfdir or --without-pdfdir was given.
130effca 12907if test "${with_pdfdir+set}" = set; then
5084f823 12908 withval="$with_pdfdir"
12909 pdfdir="\${prefix}/${withval}"
130effca 12910else
12911 pdfdir="\${docdir}"
5084f823 12912fi;
130effca 12913
12914
5084f823 12915# Check whether --with-htmldir or --without-htmldir was given.
d06227a7 12916if test "${with_htmldir+set}" = set; then
5084f823 12917 withval="$with_htmldir"
12918 htmldir="\${prefix}/${withval}"
d06227a7 12919else
12920 htmldir="\${docdir}"
5084f823 12921fi;
d06227a7 12922
12923
12924
12925
a6c599b5 12926
570af75a 12927
5084f823 12928 ac_config_files="$ac_config_files Makefile"
b30fcfae 12929cat >confcache <<\_ACEOF
71ab34df 12930# This file is a shell script that caches the results of configure
12931# tests run on this system so they can be shared between configure
b30fcfae 12932# scripts and configure runs, see configure's option --config-cache.
12933# It is not useful on other systems. If it contains results you don't
12934# want to keep, you may remove or edit it.
71ab34df 12935#
b30fcfae 12936# config.status only pays attention to the cache file if you give it
12937# the --recheck option to rerun configure.
71ab34df 12938#
b30fcfae 12939# `ac_cv_env_foo' variables (set or unset) will be overridden when
12940# loading this file, other *unset* `ac_cv_foo' will be assigned the
12941# following values.
12942
12943_ACEOF
12944
71ab34df 12945# The following way of writing the cache mishandles newlines in values,
12946# but we know of no workaround that is simple, portable, and efficient.
5084f823 12947# So, don't put newlines in cache variables' values.
71ab34df 12948# Ultrix sh set writes to stderr and can't be redirected directly,
12949# and sets the high bit in the cache file unless we assign to the vars.
5084f823 12950{
b30fcfae 12951 (set) 2>&1 |
5084f823 12952 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12953 *ac_space=\ *)
b30fcfae 12954 # `set' does not quote correctly, so add quotes (double-quote
12955 # substitution turns \\\\ into \\, and sed turns \\ into \).
12956 sed -n \
12957 "s/'/'\\\\''/g;
12958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5084f823 12959 ;;
b30fcfae 12960 *)
12961 # `set' quotes correctly as required by POSIX, so do not add quotes.
5084f823 12962 sed -n \
12963 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
b30fcfae 12964 ;;
5084f823 12965 esac;
12966} |
b30fcfae 12967 sed '
12968 t clear
5084f823 12969 : clear
b30fcfae 12970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12971 t end
5084f823 12972 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12973 : end' >>confcache
12974if diff $cache_file confcache >/dev/null 2>&1; then :; else
12975 if test -w $cache_file; then
12976 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
b30fcfae 12977 cat confcache >$cache_file
71ab34df 12978 else
5084f823 12979 echo "not updating unwritable cache $cache_file"
71ab34df 12980 fi
805e22b2 12981fi
71ab34df 12982rm -f confcache
a8298541 12983
71ab34df 12984test "x$prefix" = xNONE && prefix=$ac_default_prefix
12985# Let make expand exec_prefix.
12986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92424a17 12987
5084f823 12988# VPATH may cause trouble with some makes, so we remove $(srcdir),
12989# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12990# trailing colons and then remove the whole line if VPATH becomes empty
12991# (actually we leave an empty line to preserve line numbers).
12992if test "x$srcdir" = x.; then
12993 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12994s/:*\$(srcdir):*/:/;
12995s/:*\${srcdir}:*/:/;
12996s/:*@srcdir@:*/:/;
12997s/^\([^=]*=[ ]*\):*/\1/;
12998s/:*$//;
12999s/^[^=]*=[ ]*$//;
13000}'
13001fi
13002
71ab34df 13003# Transform confdefs.h into DEFS.
13004# Protect against shell expansion while executing Makefile rules.
13005# Protect against Makefile macro expansion.
b30fcfae 13006#
13007# If the first sed substitution is executed (which looks for macros that
5084f823 13008# take arguments), then we branch to the quote section. Otherwise,
b30fcfae 13009# look for a macro that doesn't take arguments.
5084f823 13010cat >confdef2opt.sed <<\_ACEOF
b30fcfae 13011t clear
5084f823 13012: clear
13013s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
b30fcfae 13014t quote
5084f823 13015s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
b30fcfae 13016t quote
5084f823 13017d
13018: quote
13019s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
13020s,\[,\\&,g
13021s,\],\\&,g
13022s,\$,$$,g
13023p
13024_ACEOF
13025# We use echo to avoid assuming a particular line-breaking character.
13026# The extra dot is to prevent the shell from consuming trailing
13027# line-breaks from the sub-command output. A line-break within
13028# single-quotes doesn't work because, if this script is created in a
13029# platform that uses two characters for line-breaks (e.g., DOS), tr
13030# would break.
13031ac_LF_and_DOT=`echo; echo .`
13032DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
13033rm -f confdef2opt.sed
b30fcfae 13034
13035
13036ac_libobjs=
13037ac_ltlibobjs=
13038for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13039 # 1. Remove the extension, and $U if already installed.
5084f823 13040 ac_i=`echo "$ac_i" |
13041 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13042 # 2. Add them.
13043 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13044 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
b30fcfae 13045done
13046LIBOBJS=$ac_libobjs
a4af6a58 13047
b30fcfae 13048LTLIBOBJS=$ac_ltlibobjs
a83ffacf 13049
ae48753c 13050
b30fcfae 13051
13052: ${CONFIG_STATUS=./config.status}
13053ac_clean_files_save=$ac_clean_files
13054ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13055{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13056echo "$as_me: creating $CONFIG_STATUS" >&6;}
13057cat >$CONFIG_STATUS <<_ACEOF
13058#! $SHELL
13059# Generated by $as_me.
71ab34df 13060# Run this file to recreate the current configuration.
71ab34df 13061# Compiler output produced by configure, useful for debugging
b30fcfae 13062# configure, is in config.log if it exists.
a83ffacf 13063
b30fcfae 13064debug=false
13065ac_cs_recheck=false
13066ac_cs_silent=false
13067SHELL=\${CONFIG_SHELL-$SHELL}
13068_ACEOF
13069
13070cat >>$CONFIG_STATUS <<\_ACEOF
13071## --------------------- ##
13072## M4sh Initialization. ##
13073## --------------------- ##
13074
5084f823 13075# Be Bourne compatible
b30fcfae 13076if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13077 emulate sh
13078 NULLCMD=:
13079 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13080 # is contrary to our usage. Disable this feature.
13081 alias -g '${1+"$@"}'='"$@"'
5084f823 13082elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13083 set -o posix
b30fcfae 13084fi
5084f823 13085DUALCASE=1; export DUALCASE # for MKS sh
b30fcfae 13086
13087# Support unset when possible.
13088if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13089 as_unset=unset
13090else
13091 as_unset=false
13092fi
13093
13094
13095# Work around bugs in pre-3.0 UWIN ksh.
5084f823 13096$as_unset ENV MAIL MAILPATH
b30fcfae 13097PS1='$ '
13098PS2='> '
13099PS4='+ '
13100
13101# NLS nuisances.
13102for as_var in \
13103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13105 LC_TELEPHONE LC_TIME
13106do
13107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13108 eval $as_var=C; export $as_var
13109 else
5084f823 13110 $as_unset $as_var
b30fcfae 13111 fi
13112done
13113
13114# Required to use basename.
5084f823 13115if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 13116 as_expr=expr
13117else
13118 as_expr=false
13119fi
13120
5084f823 13121if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
b30fcfae 13122 as_basename=basename
13123else
13124 as_basename=false
13125fi
13126
13127
13128# Name of the executable.
5084f823 13129as_me=`$as_basename "$0" ||
b30fcfae 13130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13131 X"$0" : 'X\(//\)$' \| \
5084f823 13132 X"$0" : 'X\(/\)$' \| \
13133 . : '\(.\)' 2>/dev/null ||
b30fcfae 13134echo X/"$0" |
5084f823 13135 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13136 /^X\/\(\/\/\)$/{ s//\1/; q; }
13137 /^X\/\(\/\).*/{ s//\1/; q; }
13138 s/.*/./; q'`
b30fcfae 13139
5084f823 13140
13141# PATH needs CR, and LINENO needs CR and PATH.
13142# Avoid depending upon Character Ranges.
13143as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13144as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13145as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13146as_cr_digits='0123456789'
13147as_cr_alnum=$as_cr_Letters$as_cr_digits
13148
13149# The user is always right.
13150if test "${PATH_SEPARATOR+set}" != set; then
13151 echo "#! /bin/sh" >conf$$.sh
13152 echo "exit 0" >>conf$$.sh
13153 chmod +x conf$$.sh
13154 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13155 PATH_SEPARATOR=';'
13156 else
13157 PATH_SEPARATOR=:
13158 fi
13159 rm -f conf$$.sh
13160fi
b30fcfae 13161
13162
5084f823 13163 as_lineno_1=$LINENO
13164 as_lineno_2=$LINENO
13165 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13166 test "x$as_lineno_1" != "x$as_lineno_2" &&
13167 test "x$as_lineno_3" = "x$as_lineno_2" || {
13168 # Find who we are. Look in the path if we contain no path at all
13169 # relative or not.
13170 case $0 in
13171 *[\\/]* ) as_myself=$0 ;;
13172 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13173for as_dir in $PATH
13174do
13175 IFS=$as_save_IFS
13176 test -z "$as_dir" && as_dir=.
13177 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13178done
b30fcfae 13179
5084f823 13180 ;;
13181 esac
13182 # We did not find ourselves, most probably we were run as `sh COMMAND'
13183 # in which case we are not to be found in the path.
13184 if test "x$as_myself" = x; then
13185 as_myself=$0
13186 fi
13187 if test ! -f "$as_myself"; then
13188 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13189echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13190 { (exit 1); exit 1; }; }
13191 fi
13192 case $CONFIG_SHELL in
13193 '')
13194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13196do
13197 IFS=$as_save_IFS
13198 test -z "$as_dir" && as_dir=.
13199 for as_base in sh bash ksh sh5; do
13200 case $as_dir in
13201 /*)
13202 if ("$as_dir/$as_base" -c '
b30fcfae 13203 as_lineno_1=$LINENO
13204 as_lineno_2=$LINENO
5084f823 13205 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
b30fcfae 13206 test "x$as_lineno_1" != "x$as_lineno_2" &&
5084f823 13207 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13208 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13209 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13210 CONFIG_SHELL=$as_dir/$as_base
13211 export CONFIG_SHELL
13212 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13213 fi;;
13214 esac
13215 done
13216done
13217;;
13218 esac
b30fcfae 13219
13220 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13221 # uniformly replaced by the line number. The first 'sed' inserts a
5084f823 13222 # line-number line before each line; the second 'sed' does the real
13223 # work. The second script uses 'N' to pair each line-number line
13224 # with the numbered line, and appends trailing '-' during
13225 # substitution so that $LINENO is not a special case at line end.
b30fcfae 13226 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5084f823 13227 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13228 sed '=' <$as_myself |
b30fcfae 13229 sed '
13230 N
5084f823 13231 s,$,-,
13232 : loop
13233 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
b30fcfae 13234 t loop
5084f823 13235 s,-$,,
13236 s,^['$as_cr_digits']*\n,,
b30fcfae 13237 ' >$as_me.lineno &&
5084f823 13238 chmod +x $as_me.lineno ||
13239 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13240echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
b30fcfae 13241 { (exit 1); exit 1; }; }
13242
13243 # Don't try to exec as it changes $[0], causing all sort of problems
13244 # (the dirname of $[0] is not the place where we might find the
5084f823 13245 # original and so on. Autoconf is especially sensible to this).
13246 . ./$as_me.lineno
b30fcfae 13247 # Exit status is that of the last command.
13248 exit
13249}
13250
13251
5084f823 13252case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13253 *c*,-n*) ECHO_N= ECHO_C='
13254' ECHO_T=' ' ;;
13255 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13256 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
b30fcfae 13257esac
13258
5084f823 13259if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 13260 as_expr=expr
13261else
13262 as_expr=false
13263fi
13264
13265rm -f conf$$ conf$$.exe conf$$.file
13266echo >conf$$.file
13267if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 13268 # We could just check for DJGPP; but this test a) works b) is more generic
13269 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13270 if test -f conf$$.exe; then
13271 # Don't use ln at all; we don't have any links
b30fcfae 13272 as_ln_s='cp -p'
5084f823 13273 else
13274 as_ln_s='ln -s'
13275 fi
b30fcfae 13276elif ln conf$$.file conf$$ 2>/dev/null; then
13277 as_ln_s=ln
13278else
13279 as_ln_s='cp -p'
13280fi
5084f823 13281rm -f conf$$ conf$$.exe conf$$.file
b30fcfae 13282
13283if mkdir -p . 2>/dev/null; then
13284 as_mkdir_p=:
13285else
13286 test -d ./-p && rmdir ./-p
13287 as_mkdir_p=false
13288fi
13289
5084f823 13290as_executable_p="test -f"
b30fcfae 13291
13292# Sed expression to map a string onto a valid CPP name.
13293as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13294
13295# Sed expression to map a string onto a valid variable name.
13296as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13297
13298
5084f823 13299# IFS
13300# We need space, tab and new line, in precisely that order.
13301as_nl='
13302'
13303IFS=" $as_nl"
13304
13305# CDPATH.
13306$as_unset CDPATH
13307
b30fcfae 13308exec 6>&1
13309
5084f823 13310# Open the log real soon, to keep \$[0] and so on meaningful, and to
b30fcfae 13311# report actual input values of CONFIG_FILES etc. instead of their
5084f823 13312# values after options handling. Logging --version etc. is OK.
13313exec 5>>config.log
13314{
13315 echo
13316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13317## Running $as_me. ##
13318_ASBOX
13319} >&5
13320cat >&5 <<_CSEOF
13321
b30fcfae 13322This file was extended by $as_me, which was
5084f823 13323generated by GNU Autoconf 2.59. Invocation command line was
b30fcfae 13324
13325 CONFIG_FILES = $CONFIG_FILES
13326 CONFIG_HEADERS = $CONFIG_HEADERS
13327 CONFIG_LINKS = $CONFIG_LINKS
13328 CONFIG_COMMANDS = $CONFIG_COMMANDS
13329 $ $0 $@
13330
5084f823 13331_CSEOF
13332echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13333echo >&5
b30fcfae 13334_ACEOF
13335
13336# Files that config.status was made for.
5084f823 13337if test -n "$ac_config_files"; then
13338 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13339fi
b30fcfae 13340
5084f823 13341if test -n "$ac_config_headers"; then
13342 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13343fi
13344
13345if test -n "$ac_config_links"; then
13346 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13347fi
13348
13349if test -n "$ac_config_commands"; then
13350 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13351fi
b30fcfae 13352
13353cat >>$CONFIG_STATUS <<\_ACEOF
5084f823 13354
b30fcfae 13355ac_cs_usage="\
13356\`$as_me' instantiates files from templates according to the
13357current configuration.
13358
13359Usage: $0 [OPTIONS] [FILE]...
13360
13361 -h, --help print this help, then exit
5084f823 13362 -V, --version print version number, then exit
b30fcfae 13363 -q, --quiet do not print progress messages
13364 -d, --debug don't remove temporary files
13365 --recheck update $as_me by reconfiguring in the same conditions
13366 --file=FILE[:TEMPLATE]
13367 instantiate the configuration file FILE
13368
13369Configuration files:
13370$config_files
13371
13372Report bugs to <bug-autoconf@gnu.org>."
570af75a 13373_ACEOF
5084f823 13374
b30fcfae 13375cat >>$CONFIG_STATUS <<_ACEOF
13376ac_cs_version="\\
13377config.status
5084f823 13378configured by $0, generated by GNU Autoconf 2.59,
13379 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
b30fcfae 13380
5084f823 13381Copyright (C) 2003 Free Software Foundation, Inc.
b30fcfae 13382This config.status script is free software; the Free Software Foundation
13383gives unlimited permission to copy, distribute and modify it."
5084f823 13384srcdir=$srcdir
13385INSTALL="$INSTALL"
b30fcfae 13386_ACEOF
13387
13388cat >>$CONFIG_STATUS <<\_ACEOF
13389# If no file are specified by the user, then we need to provide default
13390# value. By we need to know if files were specified by the user.
13391ac_need_defaults=:
13392while test $# != 0
b1660f25 13393do
b30fcfae 13394 case $1 in
13395 --*=*)
5084f823 13396 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
b30fcfae 13398 ac_shift=:
13399 ;;
5084f823 13400 -*)
b30fcfae 13401 ac_option=$1
13402 ac_optarg=$2
13403 ac_shift=shift
13404 ;;
5084f823 13405 *) # This is not an option, so the user has probably given explicit
13406 # arguments.
13407 ac_option=$1
13408 ac_need_defaults=false;;
b30fcfae 13409 esac
13410
13411 case $ac_option in
13412 # Handling of the options.
5084f823 13413_ACEOF
13414cat >>$CONFIG_STATUS <<\_ACEOF
71ab34df 13415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b30fcfae 13416 ac_cs_recheck=: ;;
5084f823 13417 --version | --vers* | -V )
13418 echo "$ac_cs_version"; exit 0 ;;
13419 --he | --h)
13420 # Conflict between --help and --header
13421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13422Try \`$0 --help' for more information." >&5
13423echo "$as_me: error: ambiguous option: $1
13424Try \`$0 --help' for more information." >&2;}
13425 { (exit 1); exit 1; }; };;
13426 --help | --hel | -h )
13427 echo "$ac_cs_usage"; exit 0 ;;
13428 --debug | --d* | -d )
b30fcfae 13429 debug=: ;;
13430 --file | --fil | --fi | --f )
13431 $ac_shift
13432 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13433 ac_need_defaults=false;;
5084f823 13434 --header | --heade | --head | --hea )
13435 $ac_shift
13436 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13437 ac_need_defaults=false;;
b30fcfae 13438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13440 ac_cs_silent=: ;;
13441
13442 # This is an error.
5084f823 13443 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13444Try \`$0 --help' for more information." >&5
13445echo "$as_me: error: unrecognized option: $1
13446Try \`$0 --help' for more information." >&2;}
b30fcfae 13447 { (exit 1); exit 1; }; } ;;
13448
5084f823 13449 *) ac_config_targets="$ac_config_targets $1" ;;
b30fcfae 13450
a83ffacf 13451 esac
b30fcfae 13452 shift
a83ffacf 13453done
13454
b30fcfae 13455ac_configure_extra_args=
a83ffacf 13456
b30fcfae 13457if $ac_cs_silent; then
13458 exec 6>/dev/null
13459 ac_configure_extra_args="$ac_configure_extra_args --silent"
13460fi
a83ffacf 13461
b30fcfae 13462_ACEOF
13463cat >>$CONFIG_STATUS <<_ACEOF
13464if \$ac_cs_recheck; then
5084f823 13465 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13466 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b30fcfae 13467fi
13468
13469_ACEOF
13470
b30fcfae 13471
570af75a 13472
5084f823 13473
13474
13475cat >>$CONFIG_STATUS <<\_ACEOF
b30fcfae 13476for ac_config_target in $ac_config_targets
13477do
5084f823 13478 case "$ac_config_target" in
13479 # Handling of arguments.
13480 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
b30fcfae 13481 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13482echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13483 { (exit 1); exit 1; }; };;
13484 esac
13485done
13486
13487# If the user did not use the arguments to specify the items to instantiate,
13488# then the envvar interface is used. Set only those that are not.
13489# We use the long form for the default assignment because of an extremely
13490# bizarre bug on SunOS 4.1.3.
13491if $ac_need_defaults; then
13492 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13493fi
13494
13495# Have a temporary directory for convenience. Make it in the build tree
5084f823 13496# simply because there is no reason to put it here, and in addition,
b30fcfae 13497# creating and moving files from /tmp can sometimes cause problems.
5084f823 13498# Create a temporary directory, and hook for its removal unless debugging.
b30fcfae 13499$debug ||
13500{
5084f823 13501 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
b30fcfae 13502 trap '{ (exit 1); exit 1; }' 1 2 13 15
13503}
5084f823 13504
b30fcfae 13505# Create a (secure) tmp directory for tmp files.
13506
13507{
5084f823 13508 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
b30fcfae 13509 test -n "$tmp" && test -d "$tmp"
13510} ||
13511{
5084f823 13512 tmp=./confstat$$-$RANDOM
13513 (umask 077 && mkdir $tmp)
b30fcfae 13514} ||
13515{
13516 echo "$me: cannot create a temporary directory in ." >&2
13517 { (exit 1); exit 1; }
13518}
13519
5084f823 13520_ACEOF
13521
13522cat >>$CONFIG_STATUS <<_ACEOF
13523
b30fcfae 13524#
5084f823 13525# CONFIG_FILES section.
b30fcfae 13526#
13527
13528# No need to generate the scripts if there are no CONFIG_FILES.
13529# This happens for instance when ./config.status config.h
5084f823 13530if test -n "\$CONFIG_FILES"; then
13531 # Protect against being on the right side of a sed subst in config.status.
13532 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13533 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13534s,@SHELL@,$SHELL,;t t
13535s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13536s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13537s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13538s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13539s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13540s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13541s,@exec_prefix@,$exec_prefix,;t t
13542s,@prefix@,$prefix,;t t
13543s,@program_transform_name@,$program_transform_name,;t t
13544s,@bindir@,$bindir,;t t
13545s,@sbindir@,$sbindir,;t t
13546s,@libexecdir@,$libexecdir,;t t
13547s,@datadir@,$datadir,;t t
13548s,@sysconfdir@,$sysconfdir,;t t
13549s,@sharedstatedir@,$sharedstatedir,;t t
13550s,@localstatedir@,$localstatedir,;t t
13551s,@libdir@,$libdir,;t t
13552s,@includedir@,$includedir,;t t
13553s,@oldincludedir@,$oldincludedir,;t t
13554s,@infodir@,$infodir,;t t
13555s,@mandir@,$mandir,;t t
13556s,@build_alias@,$build_alias,;t t
13557s,@host_alias@,$host_alias,;t t
13558s,@target_alias@,$target_alias,;t t
13559s,@DEFS@,$DEFS,;t t
13560s,@ECHO_C@,$ECHO_C,;t t
13561s,@ECHO_N@,$ECHO_N,;t t
13562s,@ECHO_T@,$ECHO_T,;t t
13563s,@LIBS@,$LIBS,;t t
4e8a889d 13564s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
5084f823 13565s,@build@,$build,;t t
13566s,@build_cpu@,$build_cpu,;t t
13567s,@build_vendor@,$build_vendor,;t t
13568s,@build_os@,$build_os,;t t
13569s,@build_noncanonical@,$build_noncanonical,;t t
13570s,@host_noncanonical@,$host_noncanonical,;t t
13571s,@target_noncanonical@,$target_noncanonical,;t t
13572s,@host@,$host,;t t
13573s,@host_cpu@,$host_cpu,;t t
13574s,@host_vendor@,$host_vendor,;t t
13575s,@host_os@,$host_os,;t t
13576s,@target@,$target,;t t
13577s,@target_cpu@,$target_cpu,;t t
13578s,@target_vendor@,$target_vendor,;t t
13579s,@target_os@,$target_os,;t t
13580s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13581s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13582s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13583s,@LN@,$LN,;t t
13584s,@LN_S@,$LN_S,;t t
5084f823 13585s,@build_libsubdir@,$build_libsubdir,;t t
13586s,@build_subdir@,$build_subdir,;t t
13587s,@host_subdir@,$host_subdir,;t t
13588s,@target_subdir@,$target_subdir,;t t
13589s,@CC@,$CC,;t t
13590s,@CFLAGS@,$CFLAGS,;t t
13591s,@LDFLAGS@,$LDFLAGS,;t t
13592s,@CPPFLAGS@,$CPPFLAGS,;t t
13593s,@ac_ct_CC@,$ac_ct_CC,;t t
13594s,@EXEEXT@,$EXEEXT,;t t
13595s,@OBJEXT@,$OBJEXT,;t t
13596s,@CXX@,$CXX,;t t
13597s,@CXXFLAGS@,$CXXFLAGS,;t t
13598s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13599s,@GNATBIND@,$GNATBIND,;t t
13600s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13601s,@GNATMAKE@,$GNATMAKE,;t t
13602s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13603s,@do_compare@,$do_compare,;t t
13604s,@gmplibs@,$gmplibs,;t t
13605s,@gmpinc@,$gmpinc,;t t
bff7ea4a 13606s,@extra_mpfr_configure_flags@,$extra_mpfr_configure_flags,;t t
7601a55c 13607s,@extra_mpc_gmp_configure_flags@,$extra_mpc_gmp_configure_flags,;t t
13608s,@extra_mpc_mpfr_configure_flags@,$extra_mpc_mpfr_configure_flags,;t t
7ab76cec 13609s,@stage1_ldflags@,$stage1_ldflags,;t t
13610s,@stage1_libs@,$stage1_libs,;t t
13611s,@poststage1_ldflags@,$poststage1_ldflags,;t t
13612s,@poststage1_libs@,$poststage1_libs,;t t
255b6be7 13613s,@ppllibs@,$ppllibs,;t t
13614s,@pplinc@,$pplinc,;t t
13615s,@clooglibs@,$clooglibs,;t t
13616s,@clooginc@,$clooginc,;t t
5084f823 13617s,@stage1_languages@,$stage1_languages,;t t
13618s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
5f1f2de5 13619s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
c898f165 13620s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13621s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
5084f823 13622s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
7d804f04 13623s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
5084f823 13624s,@tooldir@,$tooldir,;t t
13625s,@build_tooldir@,$build_tooldir,;t t
13626s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13627s,@GDB_TK@,$GDB_TK,;t t
13628s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13629s,@build_configargs@,$build_configargs,;t t
13630s,@build_configdirs@,$build_configdirs,;t t
13631s,@host_configargs@,$host_configargs,;t t
13632s,@configdirs@,$configdirs,;t t
13633s,@target_configargs@,$target_configargs,;t t
93c5e793 13634s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13635s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
5084f823 13636s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
93c5e793 13637s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13638s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13639s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13640s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13641s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13642s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13643s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13644s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13645s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13646s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13647s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13648s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
5084f823 13649s,@config_shell@,$config_shell,;t t
13650s,@YACC@,$YACC,;t t
13651s,@BISON@,$BISON,;t t
13652s,@M4@,$M4,;t t
13653s,@LEX@,$LEX,;t t
13654s,@FLEX@,$FLEX,;t t
13655s,@MAKEINFO@,$MAKEINFO,;t t
13656s,@EXPECT@,$EXPECT,;t t
13657s,@RUNTEST@,$RUNTEST,;t t
13658s,@AR@,$AR,;t t
13659s,@AS@,$AS,;t t
13660s,@DLLTOOL@,$DLLTOOL,;t t
13661s,@LD@,$LD,;t t
13662s,@LIPO@,$LIPO,;t t
13663s,@NM@,$NM,;t t
13664s,@RANLIB@,$RANLIB,;t t
13665s,@STRIP@,$STRIP,;t t
13666s,@WINDRES@,$WINDRES,;t t
75d6a0a9 13667s,@WINDMC@,$WINDMC,;t t
5084f823 13668s,@OBJCOPY@,$OBJCOPY,;t t
13669s,@OBJDUMP@,$OBJDUMP,;t t
5084f823 13670s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13671s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13672s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13673s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13674s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13675s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13676s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13677s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13678s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13679s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13680s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13681s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13682s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13683s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13684s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
75d6a0a9 13685s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
5084f823 13686s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13687s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13688s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13689s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13690s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13691s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13692s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13693s,@MAINT@,$MAINT,;t t
13694s,@stage1_cflags@,$stage1_cflags,;t t
13695s,@stage1_checking@,$stage1_checking,;t t
13696s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13697s,@datarootdir@,$datarootdir,;t t
13698s,@docdir@,$docdir,;t t
13699s,@pdfdir@,$pdfdir,;t t
13700s,@htmldir@,$htmldir,;t t
13701s,@LIBOBJS@,$LIBOBJS,;t t
13702s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13703/@serialization_dependencies@/r $serialization_dependencies
13704s,@serialization_dependencies@,,;t t
13705/@host_makefile_frag@/r $host_makefile_frag
13706s,@host_makefile_frag@,,;t t
13707/@target_makefile_frag@/r $target_makefile_frag
13708s,@target_makefile_frag@,,;t t
13709/@alphaieee_frag@/r $alphaieee_frag
13710s,@alphaieee_frag@,,;t t
13711/@ospace_frag@/r $ospace_frag
13712s,@ospace_frag@,,;t t
13713CEOF
a8298541 13714
b30fcfae 13715_ACEOF
13716
5084f823 13717 cat >>$CONFIG_STATUS <<\_ACEOF
13718 # Split the substitutions into bite-sized pieces for seds with
13719 # small command number limits, like on Digital OSF/1 and HP-UX.
13720 ac_max_sed_lines=48
13721 ac_sed_frag=1 # Number of current file.
13722 ac_beg=1 # First line for current file.
13723 ac_end=$ac_max_sed_lines # Line after last line for current file.
13724 ac_more_lines=:
13725 ac_sed_cmds=
13726 while $ac_more_lines; do
13727 if test $ac_beg -gt 1; then
13728 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13729 else
13730 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13731 fi
13732 if test ! -s $tmp/subs.frag; then
13733 ac_more_lines=false
13734 else
13735 # The purpose of the label and of the branching condition is to
13736 # speed up the sed processing (if there are no `@' at all, there
13737 # is no need to browse any of the substitutions).
13738 # These are the two extra sed commands mentioned above.
13739 (echo ':t
13740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13741 if test -z "$ac_sed_cmds"; then
13742 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13743 else
13744 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13745 fi
13746 ac_sed_frag=`expr $ac_sed_frag + 1`
13747 ac_beg=$ac_end
13748 ac_end=`expr $ac_end + $ac_max_sed_lines`
13749 fi
13750 done
13751 if test -z "$ac_sed_cmds"; then
13752 ac_sed_cmds=cat
570af75a 13753 fi
5084f823 13754fi # test -n "$CONFIG_FILES"
570af75a 13755
570af75a 13756_ACEOF
b30fcfae 13757cat >>$CONFIG_STATUS <<\_ACEOF
5084f823 13758for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13759 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13760 case $ac_file in
13761 - | *:- | *:-:* ) # input from stdin
13762 cat >$tmp/stdin
13763 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13764 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13765 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13767 * ) ac_file_in=$ac_file.in ;;
570af75a 13768 esac
13769
5084f823 13770 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13771 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
b30fcfae 13772$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13773 X"$ac_file" : 'X\(//\)[^/]' \| \
13774 X"$ac_file" : 'X\(//\)$' \| \
5084f823 13775 X"$ac_file" : 'X\(/\)' \| \
13776 . : '\(.\)' 2>/dev/null ||
b30fcfae 13777echo X"$ac_file" |
5084f823 13778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13780 /^X\(\/\/\)$/{ s//\1/; q; }
13781 /^X\(\/\).*/{ s//\1/; q; }
13782 s/.*/./; q'`
13783 { if $as_mkdir_p; then
13784 mkdir -p "$ac_dir"
13785 else
13786 as_dir="$ac_dir"
b30fcfae 13787 as_dirs=
5084f823 13788 while test ! -d "$as_dir"; do
13789 as_dirs="$as_dir $as_dirs"
13790 as_dir=`(dirname "$as_dir") 2>/dev/null ||
b30fcfae 13791$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13792 X"$as_dir" : 'X\(//\)[^/]' \| \
13793 X"$as_dir" : 'X\(//\)$' \| \
5084f823 13794 X"$as_dir" : 'X\(/\)' \| \
13795 . : '\(.\)' 2>/dev/null ||
b30fcfae 13796echo X"$as_dir" |
5084f823 13797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13798 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13799 /^X\(\/\/\)$/{ s//\1/; q; }
13800 /^X\(\/\).*/{ s//\1/; q; }
13801 s/.*/./; q'`
b30fcfae 13802 done
5084f823 13803 test ! -n "$as_dirs" || mkdir $as_dirs
13804 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13805echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
b30fcfae 13806 { (exit 1); exit 1; }; }; }
5084f823 13807
b30fcfae 13808 ac_builddir=.
a83ffacf 13809
5084f823 13810if test "$ac_dir" != .; then
b30fcfae 13811 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5084f823 13812 # A "../" for each directory in $ac_dir_suffix.
13813 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13814else
13815 ac_dir_suffix= ac_top_builddir=
13816fi
b30fcfae 13817
13818case $srcdir in
5084f823 13819 .) # No --srcdir option. We are building in place.
b30fcfae 13820 ac_srcdir=.
5084f823 13821 if test -z "$ac_top_builddir"; then
13822 ac_top_srcdir=.
13823 else
13824 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13825 fi ;;
13826 [\\/]* | ?:[\\/]* ) # Absolute path.
b30fcfae 13827 ac_srcdir=$srcdir$ac_dir_suffix;
5084f823 13828 ac_top_srcdir=$srcdir ;;
13829 *) # Relative path.
13830 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13831 ac_top_srcdir=$ac_top_builddir$srcdir ;;
b30fcfae 13832esac
b1660f25 13833
5084f823 13834# Do not use `cd foo && pwd` to compute absolute paths, because
13835# the directories may not exist.
13836case `pwd` in
13837.) ac_abs_builddir="$ac_dir";;
13838*)
13839 case "$ac_dir" in
13840 .) ac_abs_builddir=`pwd`;;
13841 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13842 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13843 esac;;
13844esac
13845case $ac_abs_builddir in
13846.) ac_abs_top_builddir=${ac_top_builddir}.;;
13847*)
13848 case ${ac_top_builddir}. in
13849 .) ac_abs_top_builddir=$ac_abs_builddir;;
13850 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13851 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13852 esac;;
13853esac
13854case $ac_abs_builddir in
13855.) ac_abs_srcdir=$ac_srcdir;;
13856*)
13857 case $ac_srcdir in
13858 .) ac_abs_srcdir=$ac_abs_builddir;;
13859 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13860 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13861 esac;;
13862esac
13863case $ac_abs_builddir in
13864.) ac_abs_top_srcdir=$ac_top_srcdir;;
13865*)
13866 case $ac_top_srcdir in
13867 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13868 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13869 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13870 esac;;
13871esac
a83ffacf 13872
b30fcfae 13873
13874 case $INSTALL in
13875 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5084f823 13876 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
71ab34df 13877 esac
570af75a 13878
5084f823 13879 if test x"$ac_file" != x-; then
13880 { echo "$as_me:$LINENO: creating $ac_file" >&5
13881echo "$as_me: creating $ac_file" >&6;}
13882 rm -f "$ac_file"
13883 fi
13884 # Let's still pretend it is `configure' which instantiates (i.e., don't
13885 # use $as_me), people would be surprised to read:
13886 # /* config.h. Generated by config.status. */
13887 if test x"$ac_file" = x-; then
13888 configure_input=
13889 else
13890 configure_input="$ac_file. "
13891 fi
13892 configure_input=$configure_input"Generated from `echo $ac_file_in |
13893 sed 's,.*/,,'` by configure."
13894
13895 # First look for the input files in the build tree, otherwise in the
13896 # src tree.
13897 ac_file_inputs=`IFS=:
13898 for f in $ac_file_in; do
13899 case $f in
13900 -) echo $tmp/stdin ;;
13901 [\\/$]*)
13902 # Absolute (can't be DOS-style, as IFS=:)
13903 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13904echo "$as_me: error: cannot find input file: $f" >&2;}
13905 { (exit 1); exit 1; }; }
13906 echo "$f";;
13907 *) # Relative
13908 if test -f "$f"; then
13909 # Build tree
13910 echo "$f"
13911 elif test -f "$srcdir/$f"; then
13912 # Source tree
13913 echo "$srcdir/$f"
13914 else
13915 # /dev/null tree
13916 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13917echo "$as_me: error: cannot find input file: $f" >&2;}
13918 { (exit 1); exit 1; }; }
13919 fi;;
13920 esac
13921 done` || { (exit 1); exit 1; }
570af75a 13922_ACEOF
b30fcfae 13923cat >>$CONFIG_STATUS <<_ACEOF
13924 sed "$ac_vpsub
13925$extrasub
13926_ACEOF
13927cat >>$CONFIG_STATUS <<\_ACEOF
13928:t
13929/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5084f823 13930s,@configure_input@,$configure_input,;t t
13931s,@srcdir@,$ac_srcdir,;t t
13932s,@abs_srcdir@,$ac_abs_srcdir,;t t
13933s,@top_srcdir@,$ac_top_srcdir,;t t
13934s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13935s,@builddir@,$ac_builddir,;t t
13936s,@abs_builddir@,$ac_abs_builddir,;t t
13937s,@top_builddir@,$ac_top_builddir,;t t
13938s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13939s,@INSTALL@,$ac_INSTALL,;t t
13940" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13941 rm -f $tmp/stdin
13942 if test x"$ac_file" != x-; then
13943 mv $tmp/out $ac_file
13944 else
13945 cat $tmp/out
13946 rm -f $tmp/out
13947 fi
570af75a 13948
5084f823 13949done
13950_ACEOF
570af75a 13951
5084f823 13952cat >>$CONFIG_STATUS <<\_ACEOF
a8298541 13953
b30fcfae 13954{ (exit 0); exit 0; }
13955_ACEOF
71ab34df 13956chmod +x $CONFIG_STATUS
b30fcfae 13957ac_clean_files=$ac_clean_files_save
13958
13959
13960# configure is writing to config.log, and then calls config.status.
13961# config.status does its own redirection, appending to config.log.
13962# Unfortunately, on DOS this fails, as config.log is still kept open
13963# by configure, so config.status won't be able to write to it; its
13964# output is simply discarded. So we exec the FD to /dev/null,
13965# effectively closing config.log, so it can be properly (re)opened and
13966# appended to by config.status. When coming back to configure, we
13967# need to make the FD available again.
13968if test "$no_create" != yes; then
13969 ac_cs_success=:
13970 ac_config_status_args=
13971 test "$silent" = yes &&
13972 ac_config_status_args="$ac_config_status_args --quiet"
13973 exec 5>/dev/null
13974 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13975 exec 5>>config.log
13976 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13977 # would make configure fail if this is the last instruction.
13978 $ac_cs_success || { (exit 1); exit 1; }
13979fi
a8298541 13980