1130561Sobrien#! /bin/sh
2130561Sobrien# Guess values for system-dependent variables and create Makefiles.
3218822Sdim# Generated by GNU Autoconf 2.59.
433965Sjdp#
5218822Sdim# Copyright (C) 2003 Free Software Foundation, Inc.
6130561Sobrien# This configure script is free software; the Free Software Foundation
7130561Sobrien# gives unlimited permission to copy, distribute and modify it.
8218822Sdim## --------------------- ##
9218822Sdim## M4sh Initialization.  ##
10218822Sdim## --------------------- ##
1133965Sjdp
12218822Sdim# Be Bourne compatible
13218822Sdimif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14218822Sdim  emulate sh
15218822Sdim  NULLCMD=:
16218822Sdim  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17218822Sdim  # is contrary to our usage.  Disable this feature.
18218822Sdim  alias -g '${1+"$@"}'='"$@"'
19218822Sdimelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20218822Sdim  set -o posix
21218822Sdimfi
22218822SdimDUALCASE=1; export DUALCASE # for MKS sh
23218822Sdim
24218822Sdim# Support unset when possible.
25218822Sdimif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26218822Sdim  as_unset=unset
27218822Sdimelse
28218822Sdim  as_unset=false
29218822Sdimfi
30218822Sdim
31218822Sdim
32218822Sdim# Work around bugs in pre-3.0 UWIN ksh.
33218822Sdim$as_unset ENV MAIL MAILPATH
34218822SdimPS1='$ '
35218822SdimPS2='> '
36218822SdimPS4='+ '
37218822Sdim
38218822Sdim# NLS nuisances.
39218822Sdimfor as_var in \
40218822Sdim  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41218822Sdim  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42218822Sdim  LC_TELEPHONE LC_TIME
43218822Sdimdo
44218822Sdim  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45218822Sdim    eval $as_var=C; export $as_var
46218822Sdim  else
47218822Sdim    $as_unset $as_var
48218822Sdim  fi
49218822Sdimdone
50218822Sdim
51218822Sdim# Required to use basename.
52218822Sdimif expr a : '\(a\)' >/dev/null 2>&1; then
53218822Sdim  as_expr=expr
54218822Sdimelse
55218822Sdim  as_expr=false
56218822Sdimfi
57218822Sdim
58218822Sdimif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59218822Sdim  as_basename=basename
60218822Sdimelse
61218822Sdim  as_basename=false
62218822Sdimfi
63218822Sdim
64218822Sdim
65218822Sdim# Name of the executable.
66218822Sdimas_me=`$as_basename "$0" ||
67218822Sdim$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68218822Sdim	 X"$0" : 'X\(//\)$' \| \
69218822Sdim	 X"$0" : 'X\(/\)$' \| \
70218822Sdim	 .     : '\(.\)' 2>/dev/null ||
71218822Sdimecho X/"$0" |
72218822Sdim    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73218822Sdim  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74218822Sdim  	  /^X\/\(\/\).*/{ s//\1/; q; }
75218822Sdim  	  s/.*/./; q'`
76218822Sdim
77218822Sdim
78218822Sdim# PATH needs CR, and LINENO needs CR and PATH.
79218822Sdim# Avoid depending upon Character Ranges.
80218822Sdimas_cr_letters='abcdefghijklmnopqrstuvwxyz'
81218822Sdimas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82218822Sdimas_cr_Letters=$as_cr_letters$as_cr_LETTERS
83218822Sdimas_cr_digits='0123456789'
84218822Sdimas_cr_alnum=$as_cr_Letters$as_cr_digits
85218822Sdim
86218822Sdim# The user is always right.
87218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
88218822Sdim  echo "#! /bin/sh" >conf$$.sh
89218822Sdim  echo  "exit 0"   >>conf$$.sh
90218822Sdim  chmod +x conf$$.sh
91218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92218822Sdim    PATH_SEPARATOR=';'
93218822Sdim  else
94218822Sdim    PATH_SEPARATOR=:
95218822Sdim  fi
96218822Sdim  rm -f conf$$.sh
97218822Sdimfi
98218822Sdim
99218822Sdim
100218822Sdim  as_lineno_1=$LINENO
101218822Sdim  as_lineno_2=$LINENO
102218822Sdim  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103218822Sdim  test "x$as_lineno_1" != "x$as_lineno_2" &&
104218822Sdim  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105218822Sdim  # Find who we are.  Look in the path if we contain no path at all
106218822Sdim  # relative or not.
107218822Sdim  case $0 in
108218822Sdim    *[\\/]* ) as_myself=$0 ;;
109218822Sdim    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110218822Sdimfor as_dir in $PATH
111218822Sdimdo
112218822Sdim  IFS=$as_save_IFS
113218822Sdim  test -z "$as_dir" && as_dir=.
114218822Sdim  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115218822Sdimdone
116218822Sdim
117218822Sdim       ;;
118218822Sdim  esac
119218822Sdim  # We did not find ourselves, most probably we were run as `sh COMMAND'
120218822Sdim  # in which case we are not to be found in the path.
121218822Sdim  if test "x$as_myself" = x; then
122218822Sdim    as_myself=$0
123218822Sdim  fi
124218822Sdim  if test ! -f "$as_myself"; then
125218822Sdim    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126218822Sdim   { (exit 1); exit 1; }; }
127218822Sdim  fi
128218822Sdim  case $CONFIG_SHELL in
129218822Sdim  '')
130218822Sdim    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131218822Sdimfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132218822Sdimdo
133218822Sdim  IFS=$as_save_IFS
134218822Sdim  test -z "$as_dir" && as_dir=.
135218822Sdim  for as_base in sh bash ksh sh5; do
136218822Sdim	 case $as_dir in
137218822Sdim	 /*)
138218822Sdim	   if ("$as_dir/$as_base" -c '
139218822Sdim  as_lineno_1=$LINENO
140218822Sdim  as_lineno_2=$LINENO
141218822Sdim  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142218822Sdim  test "x$as_lineno_1" != "x$as_lineno_2" &&
143218822Sdim  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144218822Sdim	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145218822Sdim	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146218822Sdim	     CONFIG_SHELL=$as_dir/$as_base
147218822Sdim	     export CONFIG_SHELL
148218822Sdim	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149218822Sdim	   fi;;
150218822Sdim	 esac
151218822Sdim       done
152218822Sdimdone
153218822Sdim;;
154218822Sdim  esac
155218822Sdim
156218822Sdim  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157218822Sdim  # uniformly replaced by the line number.  The first 'sed' inserts a
158218822Sdim  # line-number line before each line; the second 'sed' does the real
159218822Sdim  # work.  The second script uses 'N' to pair each line-number line
160218822Sdim  # with the numbered line, and appends trailing '-' during
161218822Sdim  # substitution so that $LINENO is not a special case at line end.
162218822Sdim  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163218822Sdim  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164218822Sdim  sed '=' <$as_myself |
165218822Sdim    sed '
166218822Sdim      N
167218822Sdim      s,$,-,
168218822Sdim      : loop
169218822Sdim      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170218822Sdim      t loop
171218822Sdim      s,-$,,
172218822Sdim      s,^['$as_cr_digits']*\n,,
173218822Sdim    ' >$as_me.lineno &&
174218822Sdim  chmod +x $as_me.lineno ||
175218822Sdim    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176218822Sdim   { (exit 1); exit 1; }; }
177218822Sdim
178218822Sdim  # Don't try to exec as it changes $[0], causing all sort of problems
179218822Sdim  # (the dirname of $[0] is not the place where we might find the
180218822Sdim  # original and so on.  Autoconf is especially sensible to this).
181218822Sdim  . ./$as_me.lineno
182218822Sdim  # Exit status is that of the last command.
183218822Sdim  exit
184218822Sdim}
185218822Sdim
186218822Sdim
187218822Sdimcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188218822Sdim  *c*,-n*) ECHO_N= ECHO_C='
189218822Sdim' ECHO_T='	' ;;
190218822Sdim  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191218822Sdim  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192218822Sdimesac
193218822Sdim
194218822Sdimif expr a : '\(a\)' >/dev/null 2>&1; then
195218822Sdim  as_expr=expr
196218822Sdimelse
197218822Sdim  as_expr=false
198218822Sdimfi
199218822Sdim
200218822Sdimrm -f conf$$ conf$$.exe conf$$.file
201218822Sdimecho >conf$$.file
202218822Sdimif ln -s conf$$.file conf$$ 2>/dev/null; then
203218822Sdim  # We could just check for DJGPP; but this test a) works b) is more generic
204218822Sdim  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205218822Sdim  if test -f conf$$.exe; then
206218822Sdim    # Don't use ln at all; we don't have any links
207218822Sdim    as_ln_s='cp -p'
208218822Sdim  else
209218822Sdim    as_ln_s='ln -s'
210218822Sdim  fi
211218822Sdimelif ln conf$$.file conf$$ 2>/dev/null; then
212218822Sdim  as_ln_s=ln
213218822Sdimelse
214218822Sdim  as_ln_s='cp -p'
215218822Sdimfi
216218822Sdimrm -f conf$$ conf$$.exe conf$$.file
217218822Sdim
218218822Sdimif mkdir -p . 2>/dev/null; then
219218822Sdim  as_mkdir_p=:
220218822Sdimelse
221218822Sdim  test -d ./-p && rmdir ./-p
222218822Sdim  as_mkdir_p=false
223218822Sdimfi
224218822Sdim
225218822Sdimas_executable_p="test -f"
226218822Sdim
227218822Sdim# Sed expression to map a string onto a valid CPP name.
228218822Sdimas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229218822Sdim
230218822Sdim# Sed expression to map a string onto a valid variable name.
231218822Sdimas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232218822Sdim
233218822Sdim
234218822Sdim# IFS
235218822Sdim# We need space, tab and new line, in precisely that order.
236218822Sdimas_nl='
237218822Sdim'
238218822SdimIFS=" 	$as_nl"
239218822Sdim
240218822Sdim# CDPATH.
241218822Sdim$as_unset CDPATH
242218822Sdim
243218822Sdim
244218822Sdim# Name of the host.
245218822Sdim# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246218822Sdim# so uname gets run too.
247218822Sdimac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248218822Sdim
249218822Sdimexec 6>&1
250218822Sdim
251218822Sdim#
252218822Sdim# Initializations.
253218822Sdim#
254130561Sobrienac_default_prefix=/usr/local
255218822Sdimac_config_libobj_dir=.
256218822Sdimcross_compiling=no
257218822Sdimsubdirs=
258218822SdimMFLAGS=
259218822SdimMAKEFLAGS=
260218822SdimSHELL=${CONFIG_SHELL-/bin/sh}
26133965Sjdp
262218822Sdim# Maximum number of lines to put in a shell here document.
263218822Sdim# This variable seems obsolete.  It should probably be removed, and
264218822Sdim# only ac_max_sed_lines should be used.
265218822Sdim: ${ac_max_here_lines=38}
266218822Sdim
267218822Sdim# Identity of this package.
268218822SdimPACKAGE_NAME=
269218822SdimPACKAGE_TARNAME=
270218822SdimPACKAGE_VERSION=
271218822SdimPACKAGE_STRING=
272218822SdimPACKAGE_BUGREPORT=
273218822Sdim
274218822Sdimac_unique_file="move-if-change"
275218822Sdimac_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 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 TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD 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 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'
276218822Sdimac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
277218822Sdim
278130561Sobrien# Initialize some variables set by options.
279218822Sdimac_init_help=
280218822Sdimac_init_version=false
281130561Sobrien# The variables have the same names as the options, with
282130561Sobrien# dashes changed to underlines.
283218822Sdimcache_file=/dev/null
284130561Sobrienexec_prefix=NONE
285130561Sobrienno_create=
286130561Sobrienno_recursion=
287130561Sobrienprefix=NONE
288130561Sobrienprogram_prefix=NONE
289130561Sobrienprogram_suffix=NONE
290130561Sobrienprogram_transform_name=s,x,x,
291130561Sobriensilent=
29233965Sjdpsite=
29333965Sjdpsrcdir=
294130561Sobrienverbose=
295130561Sobrienx_includes=NONE
296130561Sobrienx_libraries=NONE
297218822Sdim
298218822Sdim# Installation directory options.
299218822Sdim# These are left unexpanded so users can "make install exec_prefix=/foo"
300218822Sdim# and all the variables that are supposed to be based on exec_prefix
301218822Sdim# by default will actually change.
302218822Sdim# Use braces instead of parens because sh, perl, etc. also accept them.
30338889Sjdpbindir='${exec_prefix}/bin'
30438889Sjdpsbindir='${exec_prefix}/sbin'
30538889Sjdplibexecdir='${exec_prefix}/libexec'
30638889Sjdpdatadir='${prefix}/share'
30738889Sjdpsysconfdir='${prefix}/etc'
30838889Sjdpsharedstatedir='${prefix}/com'
30938889Sjdplocalstatedir='${prefix}/var'
31038889Sjdplibdir='${exec_prefix}/lib'
31138889Sjdpincludedir='${prefix}/include'
31238889Sjdpoldincludedir='/usr/include'
31338889Sjdpinfodir='${prefix}/info'
31438889Sjdpmandir='${prefix}/man'
31533965Sjdp
316130561Sobrienac_prev=
317130561Sobrienfor ac_option
318130561Sobriendo
319130561Sobrien  # If the previous option needs an argument, assign it.
320130561Sobrien  if test -n "$ac_prev"; then
321130561Sobrien    eval "$ac_prev=\$ac_option"
322130561Sobrien    ac_prev=
323130561Sobrien    continue
324130561Sobrien  fi
325130561Sobrien
326218822Sdim  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327130561Sobrien
328130561Sobrien  # Accept the important Cygnus configure options, so we can diagnose typos.
329130561Sobrien
330218822Sdim  case $ac_option in
331130561Sobrien
332130561Sobrien  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333130561Sobrien    ac_prev=bindir ;;
334130561Sobrien  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335218822Sdim    bindir=$ac_optarg ;;
336130561Sobrien
337130561Sobrien  -build | --build | --buil | --bui | --bu)
338218822Sdim    ac_prev=build_alias ;;
339130561Sobrien  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340218822Sdim    build_alias=$ac_optarg ;;
341130561Sobrien
342130561Sobrien  -cache-file | --cache-file | --cache-fil | --cache-fi \
343130561Sobrien  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344130561Sobrien    ac_prev=cache_file ;;
345130561Sobrien  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346130561Sobrien  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347218822Sdim    cache_file=$ac_optarg ;;
348130561Sobrien
349218822Sdim  --config-cache | -C)
350218822Sdim    cache_file=config.cache ;;
351218822Sdim
352130561Sobrien  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353130561Sobrien    ac_prev=datadir ;;
354130561Sobrien  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355130561Sobrien  | --da=*)
356218822Sdim    datadir=$ac_optarg ;;
357130561Sobrien
358130561Sobrien  -disable-* | --disable-*)
359218822Sdim    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360130561Sobrien    # Reject names that are not valid shell variable names.
361218822Sdim    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362218822Sdim      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363218822Sdim   { (exit 1); exit 1; }; }
364218822Sdim    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365218822Sdim    eval "enable_$ac_feature=no" ;;
366130561Sobrien
367130561Sobrien  -enable-* | --enable-*)
368218822Sdim    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369130561Sobrien    # Reject names that are not valid shell variable names.
370218822Sdim    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371218822Sdim      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372218822Sdim   { (exit 1); exit 1; }; }
373218822Sdim    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374218822Sdim    case $ac_option in
375218822Sdim      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376130561Sobrien      *) ac_optarg=yes ;;
377130561Sobrien    esac
378218822Sdim    eval "enable_$ac_feature='$ac_optarg'" ;;
379130561Sobrien
380130561Sobrien  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381130561Sobrien  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382130561Sobrien  | --exec | --exe | --ex)
383130561Sobrien    ac_prev=exec_prefix ;;
384130561Sobrien  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385130561Sobrien  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386130561Sobrien  | --exec=* | --exe=* | --ex=*)
387218822Sdim    exec_prefix=$ac_optarg ;;
388130561Sobrien
389130561Sobrien  -gas | --gas | --ga | --g)
390130561Sobrien    # Obsolete; use --with-gas.
391130561Sobrien    with_gas=yes ;;
392130561Sobrien
393218822Sdim  -help | --help | --hel | --he | -h)
394218822Sdim    ac_init_help=long ;;
395218822Sdim  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396218822Sdim    ac_init_help=recursive ;;
397218822Sdim  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398218822Sdim    ac_init_help=short ;;
399130561Sobrien
400130561Sobrien  -host | --host | --hos | --ho)
401218822Sdim    ac_prev=host_alias ;;
402130561Sobrien  -host=* | --host=* | --hos=* | --ho=*)
403218822Sdim    host_alias=$ac_optarg ;;
404130561Sobrien
405130561Sobrien  -includedir | --includedir | --includedi | --included | --include \
406130561Sobrien  | --includ | --inclu | --incl | --inc)
407130561Sobrien    ac_prev=includedir ;;
408130561Sobrien  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409130561Sobrien  | --includ=* | --inclu=* | --incl=* | --inc=*)
410218822Sdim    includedir=$ac_optarg ;;
411130561Sobrien
412130561Sobrien  -infodir | --infodir | --infodi | --infod | --info | --inf)
413130561Sobrien    ac_prev=infodir ;;
414130561Sobrien  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415218822Sdim    infodir=$ac_optarg ;;
416130561Sobrien
417130561Sobrien  -libdir | --libdir | --libdi | --libd)
418130561Sobrien    ac_prev=libdir ;;
419130561Sobrien  -libdir=* | --libdir=* | --libdi=* | --libd=*)
420218822Sdim    libdir=$ac_optarg ;;
421130561Sobrien
422130561Sobrien  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423130561Sobrien  | --libexe | --libex | --libe)
424130561Sobrien    ac_prev=libexecdir ;;
425130561Sobrien  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426130561Sobrien  | --libexe=* | --libex=* | --libe=*)
427218822Sdim    libexecdir=$ac_optarg ;;
428130561Sobrien
429130561Sobrien  -localstatedir | --localstatedir | --localstatedi | --localstated \
430130561Sobrien  | --localstate | --localstat | --localsta | --localst \
431130561Sobrien  | --locals | --local | --loca | --loc | --lo)
432130561Sobrien    ac_prev=localstatedir ;;
433130561Sobrien  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434130561Sobrien  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435130561Sobrien  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436218822Sdim    localstatedir=$ac_optarg ;;
437130561Sobrien
438130561Sobrien  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439130561Sobrien    ac_prev=mandir ;;
440130561Sobrien  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441218822Sdim    mandir=$ac_optarg ;;
442130561Sobrien
443130561Sobrien  -nfp | --nfp | --nf)
444130561Sobrien    # Obsolete; use --without-fp.
445130561Sobrien    with_fp=no ;;
446130561Sobrien
447130561Sobrien  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448218822Sdim  | --no-cr | --no-c | -n)
449130561Sobrien    no_create=yes ;;
450130561Sobrien
451130561Sobrien  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452130561Sobrien  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453130561Sobrien    no_recursion=yes ;;
454130561Sobrien
455130561Sobrien  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456130561Sobrien  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457130561Sobrien  | --oldin | --oldi | --old | --ol | --o)
458130561Sobrien    ac_prev=oldincludedir ;;
459130561Sobrien  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460130561Sobrien  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461130561Sobrien  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462218822Sdim    oldincludedir=$ac_optarg ;;
463130561Sobrien
464130561Sobrien  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465130561Sobrien    ac_prev=prefix ;;
466130561Sobrien  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467218822Sdim    prefix=$ac_optarg ;;
468130561Sobrien
469130561Sobrien  -program-prefix | --program-prefix | --program-prefi | --program-pref \
470130561Sobrien  | --program-pre | --program-pr | --program-p)
471130561Sobrien    ac_prev=program_prefix ;;
472130561Sobrien  -program-prefix=* | --program-prefix=* | --program-prefi=* \
473130561Sobrien  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474218822Sdim    program_prefix=$ac_optarg ;;
475130561Sobrien
476130561Sobrien  -program-suffix | --program-suffix | --program-suffi | --program-suff \
477130561Sobrien  | --program-suf | --program-su | --program-s)
478130561Sobrien    ac_prev=program_suffix ;;
479130561Sobrien  -program-suffix=* | --program-suffix=* | --program-suffi=* \
480130561Sobrien  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481218822Sdim    program_suffix=$ac_optarg ;;
482130561Sobrien
483130561Sobrien  -program-transform-name | --program-transform-name \
484130561Sobrien  | --program-transform-nam | --program-transform-na \
485130561Sobrien  | --program-transform-n | --program-transform- \
486130561Sobrien  | --program-transform | --program-transfor \
487130561Sobrien  | --program-transfo | --program-transf \
488130561Sobrien  | --program-trans | --program-tran \
489130561Sobrien  | --progr-tra | --program-tr | --program-t)
490130561Sobrien    ac_prev=program_transform_name ;;
491130561Sobrien  -program-transform-name=* | --program-transform-name=* \
492130561Sobrien  | --program-transform-nam=* | --program-transform-na=* \
493130561Sobrien  | --program-transform-n=* | --program-transform-=* \
494130561Sobrien  | --program-transform=* | --program-transfor=* \
495130561Sobrien  | --program-transfo=* | --program-transf=* \
496130561Sobrien  | --program-trans=* | --program-tran=* \
497130561Sobrien  | --progr-tra=* | --program-tr=* | --program-t=*)
498218822Sdim    program_transform_name=$ac_optarg ;;
499130561Sobrien
500130561Sobrien  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501130561Sobrien  | -silent | --silent | --silen | --sile | --sil)
502130561Sobrien    silent=yes ;;
503130561Sobrien
504130561Sobrien  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505130561Sobrien    ac_prev=sbindir ;;
506130561Sobrien  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507130561Sobrien  | --sbi=* | --sb=*)
508218822Sdim    sbindir=$ac_optarg ;;
509130561Sobrien
510130561Sobrien  -sharedstatedir | --sharedstatedir | --sharedstatedi \
511130561Sobrien  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512130561Sobrien  | --sharedst | --shareds | --shared | --share | --shar \
513130561Sobrien  | --sha | --sh)
514130561Sobrien    ac_prev=sharedstatedir ;;
515130561Sobrien  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516130561Sobrien  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517130561Sobrien  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518130561Sobrien  | --sha=* | --sh=*)
519218822Sdim    sharedstatedir=$ac_optarg ;;
520130561Sobrien
521130561Sobrien  -site | --site | --sit)
522130561Sobrien    ac_prev=site ;;
523130561Sobrien  -site=* | --site=* | --sit=*)
524218822Sdim    site=$ac_optarg ;;
525130561Sobrien
526130561Sobrien  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527130561Sobrien    ac_prev=srcdir ;;
528130561Sobrien  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529218822Sdim    srcdir=$ac_optarg ;;
530130561Sobrien
531130561Sobrien  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532130561Sobrien  | --syscon | --sysco | --sysc | --sys | --sy)
533130561Sobrien    ac_prev=sysconfdir ;;
534130561Sobrien  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535130561Sobrien  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536218822Sdim    sysconfdir=$ac_optarg ;;
537130561Sobrien
538130561Sobrien  -target | --target | --targe | --targ | --tar | --ta | --t)
539218822Sdim    ac_prev=target_alias ;;
540130561Sobrien  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541218822Sdim    target_alias=$ac_optarg ;;
542130561Sobrien
543130561Sobrien  -v | -verbose | --verbose | --verbos | --verbo | --verb)
544130561Sobrien    verbose=yes ;;
545130561Sobrien
546218822Sdim  -version | --version | --versio | --versi | --vers | -V)
547218822Sdim    ac_init_version=: ;;
548130561Sobrien
549130561Sobrien  -with-* | --with-*)
550218822Sdim    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551130561Sobrien    # Reject names that are not valid shell variable names.
552218822Sdim    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553218822Sdim      { echo "$as_me: error: invalid package name: $ac_package" >&2
554218822Sdim   { (exit 1); exit 1; }; }
555130561Sobrien    ac_package=`echo $ac_package| sed 's/-/_/g'`
556218822Sdim    case $ac_option in
557218822Sdim      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558130561Sobrien      *) ac_optarg=yes ;;
559130561Sobrien    esac
560218822Sdim    eval "with_$ac_package='$ac_optarg'" ;;
561130561Sobrien
562130561Sobrien  -without-* | --without-*)
563218822Sdim    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564130561Sobrien    # Reject names that are not valid shell variable names.
565218822Sdim    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566218822Sdim      { echo "$as_me: error: invalid package name: $ac_package" >&2
567218822Sdim   { (exit 1); exit 1; }; }
568218822Sdim    ac_package=`echo $ac_package | sed 's/-/_/g'`
569218822Sdim    eval "with_$ac_package=no" ;;
570130561Sobrien
571130561Sobrien  --x)
572130561Sobrien    # Obsolete; use --with-x.
573130561Sobrien    with_x=yes ;;
574130561Sobrien
575130561Sobrien  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576130561Sobrien  | --x-incl | --x-inc | --x-in | --x-i)
577130561Sobrien    ac_prev=x_includes ;;
578130561Sobrien  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579130561Sobrien  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580218822Sdim    x_includes=$ac_optarg ;;
581130561Sobrien
582130561Sobrien  -x-libraries | --x-libraries | --x-librarie | --x-librari \
583130561Sobrien  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584130561Sobrien    ac_prev=x_libraries ;;
585130561Sobrien  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586130561Sobrien  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587218822Sdim    x_libraries=$ac_optarg ;;
588130561Sobrien
589218822Sdim  -*) { echo "$as_me: error: unrecognized option: $ac_option
590218822SdimTry \`$0 --help' for more information." >&2
591218822Sdim   { (exit 1); exit 1; }; }
592130561Sobrien    ;;
593130561Sobrien
594218822Sdim  *=*)
595218822Sdim    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596218822Sdim    # Reject names that are not valid shell variable names.
597218822Sdim    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598218822Sdim      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599218822Sdim   { (exit 1); exit 1; }; }
600218822Sdim    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601218822Sdim    eval "$ac_envvar='$ac_optarg'"
602218822Sdim    export $ac_envvar ;;
603218822Sdim
604130561Sobrien  *)
605218822Sdim    # FIXME: should be removed in autoconf 3.0.
606218822Sdim    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607218822Sdim    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608218822Sdim      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609218822Sdim    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610130561Sobrien    ;;
611130561Sobrien
612130561Sobrien  esac
613130561Sobriendone
614130561Sobrien
615130561Sobrienif test -n "$ac_prev"; then
616218822Sdim  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617218822Sdim  { echo "$as_me: error: missing argument to $ac_option" >&2
618218822Sdim   { (exit 1); exit 1; }; }
619130561Sobrienfi
620130561Sobrien
621218822Sdim# Be sure to have absolute paths.
622218822Sdimfor ac_var in exec_prefix prefix
623218822Sdimdo
624218822Sdim  eval ac_val=$`echo $ac_var`
625218822Sdim  case $ac_val in
626218822Sdim    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627218822Sdim    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628218822Sdim   { (exit 1); exit 1; }; };;
629218822Sdim  esac
630218822Sdimdone
631130561Sobrien
632218822Sdim# Be sure to have absolute paths.
633218822Sdimfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634218822Sdim	      localstatedir libdir includedir oldincludedir infodir mandir
635130561Sobriendo
636218822Sdim  eval ac_val=$`echo $ac_var`
637218822Sdim  case $ac_val in
638218822Sdim    [\\/$]* | ?:[\\/]* ) ;;
639218822Sdim    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640218822Sdim   { (exit 1); exit 1; }; };;
641130561Sobrien  esac
642130561Sobriendone
643130561Sobrien
644218822Sdim# There might be people who depend on the old broken behavior: `$host'
645218822Sdim# used to hold the argument of --host etc.
646218822Sdim# FIXME: To remove some day.
647218822Sdimbuild=$build_alias
648218822Sdimhost=$host_alias
649218822Sdimtarget=$target_alias
650130561Sobrien
651218822Sdim# FIXME: To remove some day.
652218822Sdimif test "x$host_alias" != x; then
653218822Sdim  if test "x$build_alias" = x; then
654218822Sdim    cross_compiling=maybe
655218822Sdim    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656218822Sdim    If a cross compiler is detected then cross compile mode will be used." >&2
657218822Sdim  elif test "x$build_alias" != "x$host_alias"; then
658218822Sdim    cross_compiling=yes
659218822Sdim  fi
660218822Sdimfi
661130561Sobrien
662218822Sdimac_tool_prefix=
663218822Sdimtest -n "$host_alias" && ac_tool_prefix=$host_alias-
664130561Sobrien
665218822Sdimtest "$silent" = yes && exec 6>/dev/null
666218822Sdim
667218822Sdim
668130561Sobrien# Find the source files, if location was not specified.
669130561Sobrienif test -z "$srcdir"; then
670130561Sobrien  ac_srcdir_defaulted=yes
671130561Sobrien  # Try the directory containing this script, then its parent.
672218822Sdim  ac_confdir=`(dirname "$0") 2>/dev/null ||
673218822Sdim$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674218822Sdim	 X"$0" : 'X\(//\)[^/]' \| \
675218822Sdim	 X"$0" : 'X\(//\)$' \| \
676218822Sdim	 X"$0" : 'X\(/\)' \| \
677218822Sdim	 .     : '\(.\)' 2>/dev/null ||
678218822Sdimecho X"$0" |
679218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
682218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
683218822Sdim  	  s/.*/./; q'`
684130561Sobrien  srcdir=$ac_confdir
685130561Sobrien  if test ! -r $srcdir/$ac_unique_file; then
686130561Sobrien    srcdir=..
687130561Sobrien  fi
688130561Sobrienelse
689130561Sobrien  ac_srcdir_defaulted=no
690130561Sobrienfi
691130561Sobrienif test ! -r $srcdir/$ac_unique_file; then
692130561Sobrien  if test "$ac_srcdir_defaulted" = yes; then
693218822Sdim    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694218822Sdim   { (exit 1); exit 1; }; }
695130561Sobrien  else
696218822Sdim    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697218822Sdim   { (exit 1); exit 1; }; }
698130561Sobrien  fi
699130561Sobrienfi
700218822Sdim(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701218822Sdim  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702218822Sdim   { (exit 1); exit 1; }; }
703218822Sdimsrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704218822Sdimac_env_build_alias_set=${build_alias+set}
705218822Sdimac_env_build_alias_value=$build_alias
706218822Sdimac_cv_env_build_alias_set=${build_alias+set}
707218822Sdimac_cv_env_build_alias_value=$build_alias
708218822Sdimac_env_host_alias_set=${host_alias+set}
709218822Sdimac_env_host_alias_value=$host_alias
710218822Sdimac_cv_env_host_alias_set=${host_alias+set}
711218822Sdimac_cv_env_host_alias_value=$host_alias
712218822Sdimac_env_target_alias_set=${target_alias+set}
713218822Sdimac_env_target_alias_value=$target_alias
714218822Sdimac_cv_env_target_alias_set=${target_alias+set}
715218822Sdimac_cv_env_target_alias_value=$target_alias
716218822Sdimac_env_CC_set=${CC+set}
717218822Sdimac_env_CC_value=$CC
718218822Sdimac_cv_env_CC_set=${CC+set}
719218822Sdimac_cv_env_CC_value=$CC
720218822Sdimac_env_CFLAGS_set=${CFLAGS+set}
721218822Sdimac_env_CFLAGS_value=$CFLAGS
722218822Sdimac_cv_env_CFLAGS_set=${CFLAGS+set}
723218822Sdimac_cv_env_CFLAGS_value=$CFLAGS
724218822Sdimac_env_LDFLAGS_set=${LDFLAGS+set}
725218822Sdimac_env_LDFLAGS_value=$LDFLAGS
726218822Sdimac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727218822Sdimac_cv_env_LDFLAGS_value=$LDFLAGS
728218822Sdimac_env_CPPFLAGS_set=${CPPFLAGS+set}
729218822Sdimac_env_CPPFLAGS_value=$CPPFLAGS
730218822Sdimac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731218822Sdimac_cv_env_CPPFLAGS_value=$CPPFLAGS
732218822Sdimac_env_CXX_set=${CXX+set}
733218822Sdimac_env_CXX_value=$CXX
734218822Sdimac_cv_env_CXX_set=${CXX+set}
735218822Sdimac_cv_env_CXX_value=$CXX
736218822Sdimac_env_CXXFLAGS_set=${CXXFLAGS+set}
737218822Sdimac_env_CXXFLAGS_value=$CXXFLAGS
738218822Sdimac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739218822Sdimac_cv_env_CXXFLAGS_value=$CXXFLAGS
740218822Sdimac_env_AR_set=${AR+set}
741218822Sdimac_env_AR_value=$AR
742218822Sdimac_cv_env_AR_set=${AR+set}
743218822Sdimac_cv_env_AR_value=$AR
744218822Sdimac_env_AS_set=${AS+set}
745218822Sdimac_env_AS_value=$AS
746218822Sdimac_cv_env_AS_set=${AS+set}
747218822Sdimac_cv_env_AS_value=$AS
748218822Sdimac_env_DLLTOOL_set=${DLLTOOL+set}
749218822Sdimac_env_DLLTOOL_value=$DLLTOOL
750218822Sdimac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751218822Sdimac_cv_env_DLLTOOL_value=$DLLTOOL
752218822Sdimac_env_LD_set=${LD+set}
753218822Sdimac_env_LD_value=$LD
754218822Sdimac_cv_env_LD_set=${LD+set}
755218822Sdimac_cv_env_LD_value=$LD
756218822Sdimac_env_LIPO_set=${LIPO+set}
757218822Sdimac_env_LIPO_value=$LIPO
758218822Sdimac_cv_env_LIPO_set=${LIPO+set}
759218822Sdimac_cv_env_LIPO_value=$LIPO
760218822Sdimac_env_NM_set=${NM+set}
761218822Sdimac_env_NM_value=$NM
762218822Sdimac_cv_env_NM_set=${NM+set}
763218822Sdimac_cv_env_NM_value=$NM
764218822Sdimac_env_RANLIB_set=${RANLIB+set}
765218822Sdimac_env_RANLIB_value=$RANLIB
766218822Sdimac_cv_env_RANLIB_set=${RANLIB+set}
767218822Sdimac_cv_env_RANLIB_value=$RANLIB
768218822Sdimac_env_STRIP_set=${STRIP+set}
769218822Sdimac_env_STRIP_value=$STRIP
770218822Sdimac_cv_env_STRIP_set=${STRIP+set}
771218822Sdimac_cv_env_STRIP_value=$STRIP
772218822Sdimac_env_WINDRES_set=${WINDRES+set}
773218822Sdimac_env_WINDRES_value=$WINDRES
774218822Sdimac_cv_env_WINDRES_set=${WINDRES+set}
775218822Sdimac_cv_env_WINDRES_value=$WINDRES
776218822Sdimac_env_OBJCOPY_set=${OBJCOPY+set}
777218822Sdimac_env_OBJCOPY_value=$OBJCOPY
778218822Sdimac_cv_env_OBJCOPY_set=${OBJCOPY+set}
779218822Sdimac_cv_env_OBJCOPY_value=$OBJCOPY
780218822Sdimac_env_OBJDUMP_set=${OBJDUMP+set}
781218822Sdimac_env_OBJDUMP_value=$OBJDUMP
782218822Sdimac_cv_env_OBJDUMP_set=${OBJDUMP+set}
783218822Sdimac_cv_env_OBJDUMP_value=$OBJDUMP
784218822Sdimac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
785218822Sdimac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
786218822Sdimac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
787218822Sdimac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
788218822Sdimac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
789218822Sdimac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
790218822Sdimac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
791218822Sdimac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
792218822Sdimac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
793218822Sdimac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
794218822Sdimac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
795218822Sdimac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
796218822Sdimac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
797218822Sdimac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
798218822Sdimac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
799218822Sdimac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
800218822Sdimac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
801218822Sdimac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
802218822Sdimac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
803218822Sdimac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
804218822Sdimac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
805218822Sdimac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
806218822Sdimac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
807218822Sdimac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
808218822Sdimac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
809218822Sdimac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
810218822Sdimac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
811218822Sdimac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
812218822Sdimac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
813218822Sdimac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
814218822Sdimac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
815218822Sdimac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
816218822Sdimac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
817218822Sdimac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
818218822Sdimac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
819218822Sdimac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
820218822Sdimac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
821218822Sdimac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
822218822Sdimac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
823218822Sdimac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
824218822Sdimac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
825218822Sdimac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
826218822Sdimac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
827218822Sdimac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
828218822Sdimac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
829218822Sdimac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
830218822Sdimac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
831218822Sdimac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
832218822Sdimac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
833218822Sdimac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
834218822Sdimac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
835218822Sdimac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
836218822Sdimac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
837218822Sdimac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
838218822Sdimac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
839218822Sdimac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
840218822Sdimac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
841218822Sdimac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
842218822Sdimac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
843218822Sdimac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
844130561Sobrien
845218822Sdim#
846218822Sdim# Report the --help message.
847218822Sdim#
848218822Sdimif test "$ac_init_help" = "long"; then
849218822Sdim  # Omit some internal or obsolete options to make the list less imposing.
850218822Sdim  # This message is too long to be a string in the A/UX 3.1 sh.
851218822Sdim  cat <<_ACEOF
852218822Sdim\`configure' configures this package to adapt to many kinds of systems.
853218822Sdim
854218822SdimUsage: $0 [OPTION]... [VAR=VALUE]...
855218822Sdim
856218822SdimTo assign environment variables (e.g., CC, CFLAGS...), specify them as
857218822SdimVAR=VALUE.  See below for descriptions of some of the useful variables.
858218822Sdim
859218822SdimDefaults for the options are specified in brackets.
860218822Sdim
861218822SdimConfiguration:
862218822Sdim  -h, --help              display this help and exit
863218822Sdim      --help=short        display options specific to this package
864218822Sdim      --help=recursive    display the short help of all the included packages
865218822Sdim  -V, --version           display version information and exit
866218822Sdim  -q, --quiet, --silent   do not print \`checking...' messages
867218822Sdim      --cache-file=FILE   cache test results in FILE [disabled]
868218822Sdim  -C, --config-cache      alias for \`--cache-file=config.cache'
869218822Sdim  -n, --no-create         do not create output files
870218822Sdim      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
871218822Sdim
872218822Sdim_ACEOF
873218822Sdim
874218822Sdim  cat <<_ACEOF
875218822SdimInstallation directories:
876218822Sdim  --prefix=PREFIX         install architecture-independent files in PREFIX
877218822Sdim			  [$ac_default_prefix]
878218822Sdim  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
879218822Sdim			  [PREFIX]
880218822Sdim
881218822SdimBy default, \`make install' will install all the files in
882218822Sdim\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
883218822Sdiman installation prefix other than \`$ac_default_prefix' using \`--prefix',
884218822Sdimfor instance \`--prefix=\$HOME'.
885218822Sdim
886218822SdimFor better control, use the options below.
887218822Sdim
888218822SdimFine tuning of the installation directories:
889218822Sdim  --bindir=DIR           user executables [EPREFIX/bin]
890218822Sdim  --sbindir=DIR          system admin executables [EPREFIX/sbin]
891218822Sdim  --libexecdir=DIR       program executables [EPREFIX/libexec]
892218822Sdim  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
893218822Sdim  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
894218822Sdim  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
895218822Sdim  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
896218822Sdim  --libdir=DIR           object code libraries [EPREFIX/lib]
897218822Sdim  --includedir=DIR       C header files [PREFIX/include]
898218822Sdim  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
899218822Sdim  --infodir=DIR          info documentation [PREFIX/info]
900218822Sdim  --mandir=DIR           man documentation [PREFIX/man]
901218822Sdim_ACEOF
902218822Sdim
903218822Sdim  cat <<\_ACEOF
904218822Sdim
905218822SdimProgram names:
906218822Sdim  --program-prefix=PREFIX            prepend PREFIX to installed program names
907218822Sdim  --program-suffix=SUFFIX            append SUFFIX to installed program names
908218822Sdim  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
909218822Sdim
910218822SdimSystem types:
911218822Sdim  --build=BUILD     configure for building on BUILD [guessed]
912218822Sdim  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
913218822Sdim  --target=TARGET   configure for building compilers for TARGET [HOST]
914218822Sdim_ACEOF
915218822Sdimfi
916218822Sdim
917218822Sdimif test -n "$ac_init_help"; then
918218822Sdim
919218822Sdim  cat <<\_ACEOF
920218822Sdim
921218822SdimOptional Features:
922218822Sdim  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
923218822Sdim  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
924218822Sdim  --enable-libada        Builds libada directory
925218822Sdim  --enable-libssp        Builds libssp directory
926218822Sdim  --enable-stage1-languages=all   choose additional languages to build during
927218822Sdim                          stage1.  Mostly useful for compiler development.
928218822Sdim  --enable-objc-gc       enable the use of Boehm's garbage collector with
929218822Sdim                          the GNU Objective-C runtime.
930218822Sdim  --enable-bootstrap           Enable bootstrapping yes if native build
931218822Sdim  --enable-serial-{host,target,build}-configure
932218822Sdim                          Force sequential configuration of
933218822Sdim                          sub-packages for the host, target or build
934218822Sdim			  machine, or all sub-packages
935218822Sdim  --enable-maintainer-mode enable make rules and dependencies not useful
936218822Sdim                          (and sometimes confusing) to the casual installer
937218822Sdim  --enable-stage1-checking=all   choose additional checking for stage1
938218822Sdim                          of the compiler.
939218822Sdim  --enable-werror         enable -Werror in bootstrap stage2 and later
940218822Sdim
941218822SdimOptional Packages:
942218822Sdim  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
943218822Sdim  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
944218822Sdim  --with-build-libsubdir=DIR  Directory where to find libraries for build system
945218822Sdim  --with-mpfr-dir=PATH    This option has been REMOVED
946218822Sdim  --with-mpfr=PATH        Specify prefix directory for installed MPFR package
947218822Sdim                          Equivalent to --with-mpfr-include=PATH/include
948218822Sdim                          plus --with-mpfr-lib=PATH/lib
949218822Sdim  --with-mpfr-include=PATH
950218822Sdim                          Specify directory for installed MPFR include files
951218822Sdim  --with-mpfr-lib=PATH    Specify the directory for the installed MPFR library
952218822Sdim  --with-gmp-dir=PATH     This option has been REMOVED
953218822Sdim  --with-gmp=PATH         Specify prefix directory for the installed GMP package
954218822Sdim                          Equivalent to --with-gmp-include=PATH/include
955218822Sdim                          plus --with-gmp-lib=PATH/lib
956218822Sdim  --with-gmp-include=PATH Specify directory for installed GMP include files
957218822Sdim  --with-gmp-lib=PATH     Specify the directory for the installed GMP library
958218822Sdim  --with-build-sysroot=sysroot
959218822Sdim                          use sysroot as the system root during the build
960218822Sdim  --with-build-time-tools=path
961218822Sdim                          use given path to find target tools during the build
962218822Sdim  --with-datarootdir	Use datarootdir as the data root directory.
963218822Sdim  --with-docdir	Install documentation in this directory.
964218822Sdim  --with-pdfdir	Install pdf in this directory.
965218822Sdim  --with-htmldir	Install html in this directory.
966218822Sdim
967218822SdimSome influential environment variables:
968218822Sdim  CC          C compiler command
969218822Sdim  CFLAGS      C compiler flags
970218822Sdim  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
971218822Sdim              nonstandard directory <lib dir>
972218822Sdim  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
973218822Sdim              headers in a nonstandard directory <include dir>
974218822Sdim  CXX         C++ compiler command
975218822Sdim  CXXFLAGS    C++ compiler flags
976218822Sdim  AR          AR for the host
977218822Sdim  AS          AS for the host
978218822Sdim  DLLTOOL     DLLTOOL for the host
979218822Sdim  LD          LD for the host
980218822Sdim  LIPO        LIPO for the host
981218822Sdim  NM          NM for the host
982218822Sdim  RANLIB      RANLIB for the host
983218822Sdim  STRIP       STRIP for the host
984218822Sdim  WINDRES     WINDRES for the host
985218822Sdim  OBJCOPY     OBJCOPY for the host
986218822Sdim  OBJDUMP     OBJDUMP for the host
987218822Sdim  CC_FOR_TARGET
988218822Sdim              CC for the target
989218822Sdim  CXX_FOR_TARGET
990218822Sdim              CXX for the target
991218822Sdim  GCC_FOR_TARGET
992218822Sdim              GCC for the target
993218822Sdim  GCJ_FOR_TARGET
994218822Sdim              GCJ for the target
995218822Sdim  GFORTRAN_FOR_TARGET
996218822Sdim              GFORTRAN for the target
997218822Sdim  AR_FOR_TARGET
998218822Sdim              AR for the target
999218822Sdim  AS_FOR_TARGET
1000218822Sdim              AS for the target
1001218822Sdim  DLLTOOL_FOR_TARGET
1002218822Sdim              DLLTOOL for the target
1003218822Sdim  LD_FOR_TARGET
1004218822Sdim              LD for the target
1005218822Sdim  LIPO_FOR_TARGET
1006218822Sdim              LIPO for the target
1007218822Sdim  NM_FOR_TARGET
1008218822Sdim              NM for the target
1009218822Sdim  OBJDUMP_FOR_TARGET
1010218822Sdim              OBJDUMP for the target
1011218822Sdim  RANLIB_FOR_TARGET
1012218822Sdim              RANLIB for the target
1013218822Sdim  STRIP_FOR_TARGET
1014218822Sdim              STRIP for the target
1015218822Sdim  WINDRES_FOR_TARGET
1016218822Sdim              WINDRES for the target
1017218822Sdim
1018218822SdimUse these variables to override the choices made by `configure' or to help
1019218822Sdimit to find libraries and programs with nonstandard names/locations.
1020218822Sdim
1021218822Sdim_ACEOF
1022218822Sdimfi
1023218822Sdim
1024218822Sdimif test "$ac_init_help" = "recursive"; then
1025218822Sdim  # If there are subdirs, report their specific --help.
1026218822Sdim  ac_popdir=`pwd`
1027218822Sdim  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1028218822Sdim    test -d $ac_dir || continue
1029218822Sdim    ac_builddir=.
1030218822Sdim
1031218822Sdimif test "$ac_dir" != .; then
1032218822Sdim  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1033218822Sdim  # A "../" for each directory in $ac_dir_suffix.
1034218822Sdim  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1035218822Sdimelse
1036218822Sdim  ac_dir_suffix= ac_top_builddir=
1037218822Sdimfi
1038218822Sdim
1039218822Sdimcase $srcdir in
1040218822Sdim  .)  # No --srcdir option.  We are building in place.
1041218822Sdim    ac_srcdir=.
1042218822Sdim    if test -z "$ac_top_builddir"; then
1043218822Sdim       ac_top_srcdir=.
1044218822Sdim    else
1045218822Sdim       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1046218822Sdim    fi ;;
1047218822Sdim  [\\/]* | ?:[\\/]* )  # Absolute path.
1048218822Sdim    ac_srcdir=$srcdir$ac_dir_suffix;
1049218822Sdim    ac_top_srcdir=$srcdir ;;
1050218822Sdim  *) # Relative path.
1051218822Sdim    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1052218822Sdim    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1053218822Sdimesac
1054218822Sdim
1055218822Sdim# Do not use `cd foo && pwd` to compute absolute paths, because
1056218822Sdim# the directories may not exist.
1057218822Sdimcase `pwd` in
1058218822Sdim.) ac_abs_builddir="$ac_dir";;
1059218822Sdim*)
1060218822Sdim  case "$ac_dir" in
1061218822Sdim  .) ac_abs_builddir=`pwd`;;
1062218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1063218822Sdim  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1064218822Sdim  esac;;
1065218822Sdimesac
1066218822Sdimcase $ac_abs_builddir in
1067218822Sdim.) ac_abs_top_builddir=${ac_top_builddir}.;;
1068218822Sdim*)
1069218822Sdim  case ${ac_top_builddir}. in
1070218822Sdim  .) ac_abs_top_builddir=$ac_abs_builddir;;
1071218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1072218822Sdim  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1073218822Sdim  esac;;
1074218822Sdimesac
1075218822Sdimcase $ac_abs_builddir in
1076218822Sdim.) ac_abs_srcdir=$ac_srcdir;;
1077218822Sdim*)
1078218822Sdim  case $ac_srcdir in
1079218822Sdim  .) ac_abs_srcdir=$ac_abs_builddir;;
1080218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1081218822Sdim  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1082218822Sdim  esac;;
1083218822Sdimesac
1084218822Sdimcase $ac_abs_builddir in
1085218822Sdim.) ac_abs_top_srcdir=$ac_top_srcdir;;
1086218822Sdim*)
1087218822Sdim  case $ac_top_srcdir in
1088218822Sdim  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1089218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1090218822Sdim  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1091218822Sdim  esac;;
1092218822Sdimesac
1093218822Sdim
1094218822Sdim    cd $ac_dir
1095218822Sdim    # Check for guested configure; otherwise get Cygnus style configure.
1096218822Sdim    if test -f $ac_srcdir/configure.gnu; then
1097218822Sdim      echo
1098218822Sdim      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1099218822Sdim    elif test -f $ac_srcdir/configure; then
1100218822Sdim      echo
1101218822Sdim      $SHELL $ac_srcdir/configure  --help=recursive
1102218822Sdim    elif test -f $ac_srcdir/configure.ac ||
1103218822Sdim	   test -f $ac_srcdir/configure.in; then
1104218822Sdim      echo
1105218822Sdim      $ac_configure --help
1106218822Sdim    else
1107218822Sdim      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1108218822Sdim    fi
1109218822Sdim    cd $ac_popdir
1110218822Sdim  done
1111218822Sdimfi
1112218822Sdim
1113218822Sdimtest -n "$ac_init_help" && exit 0
1114218822Sdimif $ac_init_version; then
1115218822Sdim  cat <<\_ACEOF
1116218822Sdim
1117218822SdimCopyright (C) 2003 Free Software Foundation, Inc.
1118218822SdimThis configure script is free software; the Free Software Foundation
1119218822Sdimgives unlimited permission to copy, distribute and modify it.
1120218822Sdim_ACEOF
1121218822Sdim  exit 0
1122218822Sdimfi
1123218822Sdimexec 5>config.log
1124218822Sdimcat >&5 <<_ACEOF
1125218822SdimThis file contains any messages produced by compilers while
1126218822Sdimrunning configure, to aid debugging if configure makes a mistake.
1127218822Sdim
1128218822SdimIt was created by $as_me, which was
1129218822Sdimgenerated by GNU Autoconf 2.59.  Invocation command line was
1130218822Sdim
1131218822Sdim  $ $0 $@
1132218822Sdim
1133218822Sdim_ACEOF
1134218822Sdim{
1135218822Sdimcat <<_ASUNAME
1136218822Sdim## --------- ##
1137218822Sdim## Platform. ##
1138218822Sdim## --------- ##
1139218822Sdim
1140218822Sdimhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1141218822Sdimuname -m = `(uname -m) 2>/dev/null || echo unknown`
1142218822Sdimuname -r = `(uname -r) 2>/dev/null || echo unknown`
1143218822Sdimuname -s = `(uname -s) 2>/dev/null || echo unknown`
1144218822Sdimuname -v = `(uname -v) 2>/dev/null || echo unknown`
1145218822Sdim
1146218822Sdim/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1147218822Sdim/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1148218822Sdim
1149218822Sdim/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1150218822Sdim/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1151218822Sdim/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1152218822Sdimhostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1153218822Sdim/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1154218822Sdim/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1155218822Sdim/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1156218822Sdim
1157218822Sdim_ASUNAME
1158218822Sdim
1159218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1160218822Sdimfor as_dir in $PATH
1161218822Sdimdo
1162218822Sdim  IFS=$as_save_IFS
1163218822Sdim  test -z "$as_dir" && as_dir=.
1164218822Sdim  echo "PATH: $as_dir"
1165218822Sdimdone
1166218822Sdim
1167218822Sdim} >&5
1168218822Sdim
1169218822Sdimcat >&5 <<_ACEOF
1170218822Sdim
1171218822Sdim
1172218822Sdim## ----------- ##
1173218822Sdim## Core tests. ##
1174218822Sdim## ----------- ##
1175218822Sdim
1176218822Sdim_ACEOF
1177218822Sdim
1178218822Sdim
1179218822Sdim# Keep a trace of the command line.
1180218822Sdim# Strip out --no-create and --no-recursion so they do not pile up.
1181218822Sdim# Strip out --silent because we don't want to record it for future runs.
1182218822Sdim# Also quote any args containing shell meta-characters.
1183218822Sdim# Make two passes to allow for proper duplicate-argument suppression.
1184218822Sdimac_configure_args=
1185218822Sdimac_configure_args0=
1186218822Sdimac_configure_args1=
1187218822Sdimac_sep=
1188218822Sdimac_must_keep_next=false
1189218822Sdimfor ac_pass in 1 2
1190218822Sdimdo
1191218822Sdim  for ac_arg
1192218822Sdim  do
1193218822Sdim    case $ac_arg in
1194218822Sdim    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1195218822Sdim    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196218822Sdim    | -silent | --silent | --silen | --sile | --sil)
1197218822Sdim      continue ;;
1198218822Sdim    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199218822Sdim      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1200218822Sdim    esac
1201218822Sdim    case $ac_pass in
1202218822Sdim    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1203218822Sdim    2)
1204218822Sdim      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1205218822Sdim      if test $ac_must_keep_next = true; then
1206218822Sdim	ac_must_keep_next=false # Got value, back to normal.
1207218822Sdim      else
1208218822Sdim	case $ac_arg in
1209218822Sdim	  *=* | --config-cache | -C | -disable-* | --disable-* \
1210218822Sdim	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1211218822Sdim	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1212218822Sdim	  | -with-* | --with-* | -without-* | --without-* | --x)
1213218822Sdim	    case "$ac_configure_args0 " in
1214218822Sdim	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1215218822Sdim	    esac
1216218822Sdim	    ;;
1217218822Sdim	  -* ) ac_must_keep_next=true ;;
1218218822Sdim	esac
1219218822Sdim      fi
1220218822Sdim      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1221218822Sdim      # Get rid of the leading space.
1222218822Sdim      ac_sep=" "
1223218822Sdim      ;;
1224218822Sdim    esac
1225218822Sdim  done
1226218822Sdimdone
1227218822Sdim$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1228218822Sdim$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1229218822Sdim
1230218822Sdim# When interrupted or exit'd, cleanup temporary files, and complete
1231218822Sdim# config.log.  We remove comments because anyway the quotes in there
1232218822Sdim# would cause problems or look ugly.
1233218822Sdim# WARNING: Be sure not to use single quotes in there, as some shells,
1234218822Sdim# such as our DU 5.0 friend, will then `close' the trap.
1235218822Sdimtrap 'exit_status=$?
1236218822Sdim  # Save into config.log some information that might help in debugging.
1237218822Sdim  {
1238218822Sdim    echo
1239218822Sdim
1240218822Sdim    cat <<\_ASBOX
1241218822Sdim## ---------------- ##
1242218822Sdim## Cache variables. ##
1243218822Sdim## ---------------- ##
1244218822Sdim_ASBOX
1245218822Sdim    echo
1246218822Sdim    # The following way of writing the cache mishandles newlines in values,
1247218822Sdim{
1248218822Sdim  (set) 2>&1 |
1249218822Sdim    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1250218822Sdim    *ac_space=\ *)
1251218822Sdim      sed -n \
1252218822Sdim	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1253218822Sdim	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1254218822Sdim      ;;
1255218822Sdim    *)
1256218822Sdim      sed -n \
1257218822Sdim	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1258218822Sdim      ;;
1259218822Sdim    esac;
1260218822Sdim}
1261218822Sdim    echo
1262218822Sdim
1263218822Sdim    cat <<\_ASBOX
1264218822Sdim## ----------------- ##
1265218822Sdim## Output variables. ##
1266218822Sdim## ----------------- ##
1267218822Sdim_ASBOX
1268218822Sdim    echo
1269218822Sdim    for ac_var in $ac_subst_vars
1270218822Sdim    do
1271218822Sdim      eval ac_val=$`echo $ac_var`
1272218822Sdim      echo "$ac_var='"'"'$ac_val'"'"'"
1273218822Sdim    done | sort
1274218822Sdim    echo
1275218822Sdim
1276218822Sdim    if test -n "$ac_subst_files"; then
1277218822Sdim      cat <<\_ASBOX
1278218822Sdim## ------------- ##
1279218822Sdim## Output files. ##
1280218822Sdim## ------------- ##
1281218822Sdim_ASBOX
1282218822Sdim      echo
1283218822Sdim      for ac_var in $ac_subst_files
1284218822Sdim      do
1285218822Sdim	eval ac_val=$`echo $ac_var`
1286218822Sdim	echo "$ac_var='"'"'$ac_val'"'"'"
1287218822Sdim      done | sort
1288218822Sdim      echo
1289218822Sdim    fi
1290218822Sdim
1291218822Sdim    if test -s confdefs.h; then
1292218822Sdim      cat <<\_ASBOX
1293218822Sdim## ----------- ##
1294218822Sdim## confdefs.h. ##
1295218822Sdim## ----------- ##
1296218822Sdim_ASBOX
1297218822Sdim      echo
1298218822Sdim      sed "/^$/d" confdefs.h | sort
1299218822Sdim      echo
1300218822Sdim    fi
1301218822Sdim    test "$ac_signal" != 0 &&
1302218822Sdim      echo "$as_me: caught signal $ac_signal"
1303218822Sdim    echo "$as_me: exit $exit_status"
1304218822Sdim  } >&5
1305218822Sdim  rm -f core *.core &&
1306218822Sdim  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1307218822Sdim    exit $exit_status
1308218822Sdim     ' 0
1309218822Sdimfor ac_signal in 1 2 13 15; do
1310218822Sdim  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1311218822Sdimdone
1312218822Sdimac_signal=0
1313218822Sdim
1314218822Sdim# confdefs.h avoids OS command line length limits that DEFS can exceed.
1315218822Sdimrm -rf conftest* confdefs.h
1316218822Sdim# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1317218822Sdimecho >confdefs.h
1318218822Sdim
1319218822Sdim# Predefined preprocessor variables.
1320218822Sdim
1321218822Sdimcat >>confdefs.h <<_ACEOF
1322218822Sdim#define PACKAGE_NAME "$PACKAGE_NAME"
1323218822Sdim_ACEOF
1324218822Sdim
1325218822Sdim
1326218822Sdimcat >>confdefs.h <<_ACEOF
1327218822Sdim#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1328218822Sdim_ACEOF
1329218822Sdim
1330218822Sdim
1331218822Sdimcat >>confdefs.h <<_ACEOF
1332218822Sdim#define PACKAGE_VERSION "$PACKAGE_VERSION"
1333218822Sdim_ACEOF
1334218822Sdim
1335218822Sdim
1336218822Sdimcat >>confdefs.h <<_ACEOF
1337218822Sdim#define PACKAGE_STRING "$PACKAGE_STRING"
1338218822Sdim_ACEOF
1339218822Sdim
1340218822Sdim
1341218822Sdimcat >>confdefs.h <<_ACEOF
1342218822Sdim#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1343218822Sdim_ACEOF
1344218822Sdim
1345218822Sdim
1346218822Sdim# Let the site file select an alternate cache file if it wants to.
1347130561Sobrien# Prefer explicitly selected file to automatically selected ones.
1348130561Sobrienif test -z "$CONFIG_SITE"; then
1349130561Sobrien  if test "x$prefix" != xNONE; then
1350130561Sobrien    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1351130561Sobrien  else
1352130561Sobrien    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1353130561Sobrien  fi
1354130561Sobrienfi
1355130561Sobrienfor ac_site_file in $CONFIG_SITE; do
1356130561Sobrien  if test -r "$ac_site_file"; then
1357218822Sdim    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1358218822Sdimecho "$as_me: loading site script $ac_site_file" >&6;}
1359218822Sdim    sed 's/^/| /' "$ac_site_file" >&5
1360130561Sobrien    . "$ac_site_file"
1361130561Sobrien  fi
1362130561Sobriendone
1363130561Sobrien
1364130561Sobrienif test -r "$cache_file"; then
1365218822Sdim  # Some versions of bash will fail to source /dev/null (special
1366218822Sdim  # files actually), so we avoid doing that.
1367218822Sdim  if test -f "$cache_file"; then
1368218822Sdim    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1369218822Sdimecho "$as_me: loading cache $cache_file" >&6;}
1370218822Sdim    case $cache_file in
1371218822Sdim      [\\/]* | ?:[\\/]* ) . $cache_file;;
1372218822Sdim      *)                      . ./$cache_file;;
1373218822Sdim    esac
1374218822Sdim  fi
1375130561Sobrienelse
1376218822Sdim  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1377218822Sdimecho "$as_me: creating cache $cache_file" >&6;}
1378218822Sdim  >$cache_file
1379130561Sobrienfi
1380130561Sobrien
1381218822Sdim# Check that the precious variables saved in the cache have kept the same
1382218822Sdim# value.
1383218822Sdimac_cache_corrupted=false
1384218822Sdimfor ac_var in `(set) 2>&1 |
1385218822Sdim	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1386218822Sdim  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1387218822Sdim  eval ac_new_set=\$ac_env_${ac_var}_set
1388218822Sdim  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1389218822Sdim  eval ac_new_val="\$ac_env_${ac_var}_value"
1390218822Sdim  case $ac_old_set,$ac_new_set in
1391218822Sdim    set,)
1392218822Sdim      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1393218822Sdimecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1394218822Sdim      ac_cache_corrupted=: ;;
1395218822Sdim    ,set)
1396218822Sdim      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1397218822Sdimecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1398218822Sdim      ac_cache_corrupted=: ;;
1399218822Sdim    ,);;
1400218822Sdim    *)
1401218822Sdim      if test "x$ac_old_val" != "x$ac_new_val"; then
1402218822Sdim	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1403218822Sdimecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1404218822Sdim	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1405218822Sdimecho "$as_me:   former value:  $ac_old_val" >&2;}
1406218822Sdim	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1407218822Sdimecho "$as_me:   current value: $ac_new_val" >&2;}
1408218822Sdim	ac_cache_corrupted=:
1409218822Sdim      fi;;
1410218822Sdim  esac
1411218822Sdim  # Pass precious variables to config.status.
1412218822Sdim  if test "$ac_new_set" = set; then
1413218822Sdim    case $ac_new_val in
1414218822Sdim    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1415218822Sdim      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1416218822Sdim    *) ac_arg=$ac_var=$ac_new_val ;;
1417218822Sdim    esac
1418218822Sdim    case " $ac_configure_args " in
1419218822Sdim      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1420218822Sdim      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1421218822Sdim    esac
1422218822Sdim  fi
1423218822Sdimdone
1424218822Sdimif $ac_cache_corrupted; then
1425218822Sdim  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1426218822Sdimecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1427218822Sdim  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1428218822Sdimecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1429218822Sdim   { (exit 1); exit 1; }; }
1430218822Sdimfi
1431218822Sdim
1432130561Sobrienac_ext=c
1433130561Sobrienac_cpp='$CPP $CPPFLAGS'
1434218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
1437130561Sobrien
1438130561Sobrien
1439130561Sobrien
1440130561Sobrien
1441218822Sdim
1442218822Sdim
1443218822Sdim
1444218822Sdim
1445218822Sdim
1446218822Sdim
1447218822Sdim
1448218822Sdim
1449218822Sdim
1450218822Sdim
1451218822Sdim
1452218822Sdim
1453218822Sdim
1454218822Sdim
1455218822Sdim
1456218822Sdim
1457218822Sdim
1458218822Sdim# Find the build, host, and target systems.
1459130561Sobrienac_aux_dir=
1460130561Sobrienfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1461130561Sobrien  if test -f $ac_dir/install-sh; then
1462130561Sobrien    ac_aux_dir=$ac_dir
1463130561Sobrien    ac_install_sh="$ac_aux_dir/install-sh -c"
1464130561Sobrien    break
1465130561Sobrien  elif test -f $ac_dir/install.sh; then
1466130561Sobrien    ac_aux_dir=$ac_dir
1467130561Sobrien    ac_install_sh="$ac_aux_dir/install.sh -c"
1468130561Sobrien    break
1469218822Sdim  elif test -f $ac_dir/shtool; then
1470218822Sdim    ac_aux_dir=$ac_dir
1471218822Sdim    ac_install_sh="$ac_aux_dir/shtool install -c"
1472218822Sdim    break
1473130561Sobrien  fi
1474130561Sobriendone
1475130561Sobrienif test -z "$ac_aux_dir"; then
1476218822Sdim  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1477218822Sdimecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1478218822Sdim   { (exit 1); exit 1; }; }
1479130561Sobrienfi
1480218822Sdimac_config_guess="$SHELL $ac_aux_dir/config.guess"
1481218822Sdimac_config_sub="$SHELL $ac_aux_dir/config.sub"
1482218822Sdimac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1483130561Sobrien
1484218822Sdim# Make sure we can run config.sub.
1485218822Sdim$ac_config_sub sun4 >/dev/null 2>&1 ||
1486218822Sdim  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1487218822Sdimecho "$as_me: error: cannot run $ac_config_sub" >&2;}
1488218822Sdim   { (exit 1); exit 1; }; }
1489130561Sobrien
1490218822Sdimecho "$as_me:$LINENO: checking build system type" >&5
1491218822Sdimecho $ECHO_N "checking build system type... $ECHO_C" >&6
1492218822Sdimif test "${ac_cv_build+set}" = set; then
1493218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1494218822Sdimelse
1495218822Sdim  ac_cv_build_alias=$build_alias
1496218822Sdimtest -z "$ac_cv_build_alias" &&
1497218822Sdim  ac_cv_build_alias=`$ac_config_guess`
1498218822Sdimtest -z "$ac_cv_build_alias" &&
1499218822Sdim  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1500218822Sdimecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
1501218822Sdim   { (exit 1); exit 1; }; }
1502218822Sdimac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1503218822Sdim  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1504218822Sdimecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1505218822Sdim   { (exit 1); exit 1; }; }
1506130561Sobrien
1507130561Sobrienfi
1508218822Sdimecho "$as_me:$LINENO: result: $ac_cv_build" >&5
1509218822Sdimecho "${ECHO_T}$ac_cv_build" >&6
1510218822Sdimbuild=$ac_cv_build
1511218822Sdimbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512218822Sdimbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513218822Sdimbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1514130561Sobrien
1515130561Sobrien
1516218822Sdim case ${build_alias} in
1517218822Sdim  "") build_noncanonical=${build} ;;
1518218822Sdim  *) build_noncanonical=${build_alias} ;;
1519130561Sobrienesac
1520130561Sobrien
1521130561Sobrien
1522130561Sobrien
1523218822Sdim case ${host_alias} in
1524218822Sdim  "") host_noncanonical=${build_noncanonical} ;;
1525218822Sdim  *) host_noncanonical=${host_alias} ;;
1526130561Sobrienesac
1527130561Sobrien
1528130561Sobrien
1529130561Sobrien
1530218822Sdim case ${target_alias} in
1531218822Sdim  "") target_noncanonical=${host_noncanonical} ;;
1532218822Sdim  *) target_noncanonical=${target_alias} ;;
1533130561Sobrienesac
1534130561Sobrien
1535130561Sobrien
1536218822Sdim
1537218822Sdim
1538218822Sdimtest "$host_noncanonical" = "$target_noncanonical" &&
1539130561Sobrien  test "$program_prefix$program_suffix$program_transform_name" = \
1540130561Sobrien    NONENONEs,x,x, &&
1541218822Sdim  program_transform_name=s,y,y,
1542130561Sobrien
1543218822Sdimecho "$as_me:$LINENO: checking host system type" >&5
1544218822Sdimecho $ECHO_N "checking host system type... $ECHO_C" >&6
1545218822Sdimif test "${ac_cv_host+set}" = set; then
1546218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1547130561Sobrienelse
1548218822Sdim  ac_cv_host_alias=$host_alias
1549218822Sdimtest -z "$ac_cv_host_alias" &&
1550218822Sdim  ac_cv_host_alias=$ac_cv_build_alias
1551218822Sdimac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552218822Sdim  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553218822Sdimecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554218822Sdim   { (exit 1); exit 1; }; }
1555218822Sdim
1556130561Sobrienfi
1557218822Sdimecho "$as_me:$LINENO: result: $ac_cv_host" >&5
1558218822Sdimecho "${ECHO_T}$ac_cv_host" >&6
1559218822Sdimhost=$ac_cv_host
1560218822Sdimhost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561218822Sdimhost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562218822Sdimhost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563218822Sdim
1564218822Sdim
1565218822Sdimecho "$as_me:$LINENO: checking target system type" >&5
1566218822Sdimecho $ECHO_N "checking target system type... $ECHO_C" >&6
1567218822Sdimif test "${ac_cv_target+set}" = set; then
1568218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1569218822Sdimelse
1570218822Sdim  ac_cv_target_alias=$target_alias
1571218822Sdimtest "x$ac_cv_target_alias" = "x" &&
1572218822Sdim  ac_cv_target_alias=$ac_cv_host_alias
1573218822Sdimac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574218822Sdim  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575218822Sdimecho "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576218822Sdim   { (exit 1); exit 1; }; }
1577218822Sdim
1578218822Sdimfi
1579218822Sdimecho "$as_me:$LINENO: result: $ac_cv_target" >&5
1580218822Sdimecho "${ECHO_T}$ac_cv_target" >&6
1581218822Sdimtarget=$ac_cv_target
1582218822Sdimtarget_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583218822Sdimtarget_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584218822Sdimtarget_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585218822Sdim
1586218822Sdim
1587218822Sdim# The aliases save the names the user supplied, while $host etc.
1588218822Sdim# will get canonicalized.
1589218822Sdimtest -n "$target_alias" &&
1590218822Sdim  test "$program_prefix$program_suffix$program_transform_name" = \
1591218822Sdim    NONENONEs,x,x, &&
1592218822Sdim  program_prefix=${target_alias}-
1593130561Sobrientest "$program_prefix" != NONE &&
1594218822Sdim  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1595130561Sobrien# Use a double $ so make ignores it.
1596130561Sobrientest "$program_suffix" != NONE &&
1597218822Sdim  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1598218822Sdim# Double any \ or $.  echo might interpret backslashes.
1599218822Sdim# By default was `s,x,x', remove it if useless.
1600218822Sdimcat <<\_ACEOF >conftest.sed
1601218822Sdims/[\\$]/&&/g;s/;s,x,x,$//
1602218822Sdim_ACEOF
1603218822Sdimprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1604218822Sdimrm conftest.sed
1605130561Sobrien
1606130561Sobrien
1607130561Sobrien
1608130561Sobrien# Get 'install' or 'install-sh' and its variants.
1609130561Sobrien# Find a good install program.  We prefer a C program (faster),
1610130561Sobrien# so one script is as good as another.  But avoid the broken or
1611130561Sobrien# incompatible versions:
1612130561Sobrien# SysV /etc/install, /usr/sbin/install
1613130561Sobrien# SunOS /usr/etc/install
1614130561Sobrien# IRIX /sbin/install
1615130561Sobrien# AIX /bin/install
1616218822Sdim# AmigaOS /C/install, which installs bootblocks on floppy discs
1617130561Sobrien# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1618130561Sobrien# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1619130561Sobrien# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1620218822Sdim# OS/2's system install, which has a completely different semantic
1621130561Sobrien# ./install, which can be erroneously created by make from ./install.sh.
1622218822Sdimecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1623218822Sdimecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1624130561Sobrienif test -z "$INSTALL"; then
1625218822Sdimif test "${ac_cv_path_install+set}" = set; then
1626218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1627130561Sobrienelse
1628218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629218822Sdimfor as_dir in $PATH
1630218822Sdimdo
1631218822Sdim  IFS=$as_save_IFS
1632218822Sdim  test -z "$as_dir" && as_dir=.
1633218822Sdim  # Account for people who put trailing slashes in PATH elements.
1634218822Sdimcase $as_dir/ in
1635218822Sdim  ./ | .// | /cC/* | \
1636218822Sdim  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1637218822Sdim  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1638218822Sdim  /usr/ucb/* ) ;;
1639218822Sdim  *)
1640218822Sdim    # OSF1 and SCO ODT 3.0 have their own names for install.
1641218822Sdim    # Don't use installbsd from OSF since it installs stuff as root
1642218822Sdim    # by default.
1643218822Sdim    for ac_prog in ginstall scoinst install; do
1644218822Sdim      for ac_exec_ext in '' $ac_executable_extensions; do
1645218822Sdim	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1646130561Sobrien	  if test $ac_prog = install &&
1647218822Sdim	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1648130561Sobrien	    # AIX install.  It has an incompatible calling convention.
1649130561Sobrien	    :
1650218822Sdim	  elif test $ac_prog = install &&
1651218822Sdim	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1652218822Sdim	    # program-specific install script used by HP pwplus--don't use.
1653218822Sdim	    :
1654130561Sobrien	  else
1655218822Sdim	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1656218822Sdim	    break 3
1657130561Sobrien	  fi
1658130561Sobrien	fi
1659130561Sobrien      done
1660218822Sdim    done
1661218822Sdim    ;;
1662218822Sdimesac
1663218822Sdimdone
1664130561Sobrien
1665218822Sdim
1666130561Sobrienfi
1667130561Sobrien  if test "${ac_cv_path_install+set}" = set; then
1668218822Sdim    INSTALL=$ac_cv_path_install
1669130561Sobrien  else
1670130561Sobrien    # As a last resort, use the slow shell script.  We don't cache a
1671130561Sobrien    # path for INSTALL within a source directory, because that will
1672130561Sobrien    # break other packages using the cache if that directory is
1673130561Sobrien    # removed, or if the path is relative.
1674218822Sdim    INSTALL=$ac_install_sh
1675130561Sobrien  fi
1676130561Sobrienfi
1677218822Sdimecho "$as_me:$LINENO: result: $INSTALL" >&5
1678218822Sdimecho "${ECHO_T}$INSTALL" >&6
1679130561Sobrien
1680130561Sobrien# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1681130561Sobrien# It thinks the first close brace ends the variable substitution.
1682130561Sobrientest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1683130561Sobrien
1684218822Sdimtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1685130561Sobrien
1686130561Sobrientest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1687130561Sobrien
1688218822Sdimecho "$as_me:$LINENO: checking whether ln works" >&5
1689218822Sdimecho $ECHO_N "checking whether ln works... $ECHO_C" >&6
1690218822Sdimif test "${acx_cv_prog_LN+set}" = set; then
1691218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
1692218822Sdimelse
1693218822Sdim  rm -f conftestdata_t
1694218822Sdimecho >conftestdata_f
1695218822Sdimif ln conftestdata_f conftestdata_t 2>/dev/null
1696218822Sdimthen
1697218822Sdim  acx_cv_prog_LN=ln
1698218822Sdimelse
1699218822Sdim  acx_cv_prog_LN=no
1700218822Sdimfi
1701218822Sdimrm -f conftestdata_f conftestdata_t
1702130561Sobrien
1703218822Sdimfi
1704218822Sdimif test $acx_cv_prog_LN = no; then
1705218822Sdim  LN="cp"
1706218822Sdim  echo "$as_me:$LINENO: result: no, using $LN" >&5
1707218822Sdimecho "${ECHO_T}no, using $LN" >&6
1708218822Sdimelse
1709218822Sdim  LN="$acx_cv_prog_LN"
1710218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
1711218822Sdimecho "${ECHO_T}yes" >&6
1712218822Sdimfi
1713130561Sobrien
1714218822Sdimecho "$as_me:$LINENO: checking whether ln -s works" >&5
1715218822Sdimecho $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1716218822SdimLN_S=$as_ln_s
1717218822Sdimif test "$LN_S" = "ln -s"; then
1718218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
1719218822Sdimecho "${ECHO_T}yes" >&6
1720218822Sdimelse
1721218822Sdim  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1722218822Sdimecho "${ECHO_T}no, using $LN_S" >&6
1723218822Sdimfi
1724130561Sobrien
1725130561Sobrien
172633965Sjdp### we might need to use some other shell than /bin/sh for running subshells
172738889Sjdp### If we are on Windows, search for the shell.  This will permit people
172838889Sjdp### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
172938889Sjdp### without also having to set CONFIG_SHELL.  This code will work when
173038889Sjdp### using bash, which sets OSTYPE.
173138889Sjdpcase "${OSTYPE}" in
173238889Sjdp*win32*)
1733130561Sobrien  if test x${CONFIG_SHELL} = x ; then
1734130561Sobrien    if test ! -f /bin/sh ; then
1735130561Sobrien      if test x${SHELL} != x && test -f ${SHELL} ; then
173638889Sjdp	CONFIG_SHELL=${SHELL}
173738889Sjdp	export CONFIG_SHELL
173838889Sjdp      else
173938889Sjdp	for prog in sh sh.exe bash bash.exe; do
174038889Sjdp	  IFS="${IFS=	}"; save_ifs="$IFS"; IFS="${IFS}:"
174138889Sjdp	  for dir in $PATH; do
174238889Sjdp	    test -z "$dir" && dir=.
174338889Sjdp	    if test -f $dir/$prog; then
174438889Sjdp	      CONFIG_SHELL=$dir/$prog
174538889Sjdp	      export CONFIG_SHELL
174638889Sjdp	      break
174738889Sjdp	    fi
174838889Sjdp	  done
174938889Sjdp	  IFS="$save_ifs"
175038889Sjdp	  test -n "${CONFIG_SHELL}" && break
175138889Sjdp	done
175238889Sjdp      fi
175338889Sjdp    fi
175438889Sjdp  fi
175538889Sjdp  ;;
175638889Sjdpesac
175738889Sjdp
175833965Sjdpconfig_shell=${CONFIG_SHELL-/bin/sh}
175933965Sjdp
176033965Sjdpprogname=$0
176133965Sjdp# if PWD already has a value, it is probably wrong.
1762130561Sobrienif test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
176333965Sjdp
1764218822Sdim# Export original configure arguments for use by sub-configures.
1765218822Sdim# Quote arguments with shell meta charatcers.
1766218822SdimTOPLEVEL_CONFIGURE_ARGUMENTS=
1767218822Sdimset -- "$progname" "$@"
1768218822Sdimfor ac_arg
1769218822Sdimdo
1770218822Sdim  case "$ac_arg" in
1771218822Sdim  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1772218822Sdim    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1773218822Sdim    # if the argument is of the form -foo=baz, quote the baz part only
1774218822Sdim    ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1775218822Sdim  *) ;;
1776218822Sdim  esac
1777218822Sdim  # Add the quoted argument to the list.
1778218822Sdim  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1779218822Sdimdone
1780218822Sdim# Remove the initial space we just introduced and, as these will be
1781218822Sdim# expanded by make, quote '$'.
1782218822SdimTOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
178333965Sjdp
1784104834Sobrien
1785130561Sobrienmoveifchange=${srcdir}/move-if-change
178633965Sjdp
1787218822Sdimsrcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1788218822Sdim
1789218822Sdim# We pass INSTALL explicitly to sub-makes.  Make sure that it is not
1790218822Sdim# a relative path.
1791218822Sdimif test "$INSTALL" = "${srcdir}/install-sh -c"; then
1792218822Sdim  INSTALL="${srcpwd}/install-sh -c"
1793218822Sdimfi
1794218822Sdim
1795130561Sobrien# Set srcdir to "." if that's what it is.
1796130561Sobrien# This is important for multilib support.
1797130561Sobrienpwd=`${PWDCMD-pwd}`
1798130561Sobrienif test "${pwd}" = "${srcpwd}" ; then
1799130561Sobrien  srcdir=.
1800130561Sobrienfi
180133965Sjdp
1802130561Sobrientopsrcdir=$srcpwd
180333965Sjdp
1804130561Sobrienextra_host_args=
180533965Sjdp
1806130561Sobrien### To add a new directory to the tree, first choose whether it is a target
1807130561Sobrien### or a host dependent tool.  Then put it into the appropriate list
1808130561Sobrien### (library or tools, host or target), doing a dependency sort.
180933965Sjdp
1810218822Sdim# Subdirs will be configured in the order listed in build_configdirs,
1811130561Sobrien# configdirs, or target_configdirs; see the serialization section below.
181233965Sjdp
1813218822Sdim# Dependency sorting is only needed when *configuration* must be done in
1814218822Sdim# a particular order.  In all cases a dependency should be specified in
1815130561Sobrien# the Makefile, whether or not it's implicitly specified here.
181633965Sjdp
1817130561Sobrien# Double entries in build_configdirs, configdirs, or target_configdirs may
1818130561Sobrien# cause circular dependencies and break everything horribly.
181933965Sjdp
1820218822Sdim# these library is used by various programs built for the build
1821218822Sdim# environment
1822218822Sdim#
1823218822Sdimbuild_libs="build-libiberty"
1824218822Sdim
1825218822Sdim# these tools are built for the build environment
1826218822Sdimbuild_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1827218822Sdim
1828130561Sobrien# these libraries are used by various programs built for the host environment
1829130561Sobrien#
1830218822Sdimhost_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
183133965Sjdp
1832130561Sobrien# these tools are built for the host environment
1833130561Sobrien# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1834130561Sobrien# know that we are building the simulator.
1835130561Sobrien# binutils, gas and ld appear in that order because it makes sense to run
1836130561Sobrien# "make check" in that particular order.
1837218822Sdimhost_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"
183833965Sjdp
1839130561Sobrien# libgcj represents the runtime libraries only used by gcj.
1840130561Sobrienlibgcj="target-libffi \
1841130561Sobrien	target-zlib \
1842130561Sobrien	target-qthreads \
1843130561Sobrien	target-libjava"
1844130561Sobrien
1845130561Sobrien# these libraries are built for the target environment, and are built after
1846130561Sobrien# the host libraries and the host tools (which may be a cross compiler)
184733965Sjdp#
1848218822Sdimtarget_libraries="target-libgcc \
1849218822Sdim		target-libiberty \
1850130561Sobrien		target-libgloss \
1851130561Sobrien		target-newlib \
1852130561Sobrien		target-libstdc++-v3 \
1853218822Sdim		target-libmudflap \
1854218822Sdim		target-libssp \
1855218822Sdim		target-libgfortran \
1856218822Sdim		target-boehm-gc \
1857130561Sobrien		${libgcj} \
1858130561Sobrien		target-libobjc \
1859218822Sdim		target-libada \
1860218822Sdim		target-libgomp"
186133965Sjdp
1862130561Sobrien# these tools are built using the target libraries, and are intended to
1863130561Sobrien# run only in the target environment
1864130561Sobrien#
1865130561Sobrien# note: any program that *uses* libraries that are in the "target_libraries"
1866130561Sobrien# list belongs in this list.  those programs are also very likely
1867130561Sobrien# candidates for the "native_only" list which follows
1868130561Sobrien#
1869130561Sobrientarget_tools="target-examples target-groff target-gperf target-rda"
187033965Sjdp
1871130561Sobrien################################################################################
187233965Sjdp
1873130561Sobrien## All tools belong in one of the four categories, and are assigned above
1874130561Sobrien## We assign ${configdirs} this way to remove all embedded newlines.  This
1875130561Sobrien## is important because configure will choke if they ever get through.
1876130561Sobrien## ${configdirs} is directories we build using the host tools.
1877130561Sobrien## ${target_configdirs} is directories we build using the target tools.
1878130561Sobrienconfigdirs=`echo ${host_libs} ${host_tools}`
1879130561Sobrientarget_configdirs=`echo ${target_libraries} ${target_tools}`
1880218822Sdimbuild_configdirs=`echo ${build_libs} ${build_tools}`
1881130561Sobrien
1882130561Sobrien################################################################################
1883130561Sobrien
1884130561Sobriensrcname="gnu development package"
1885130561Sobrien
1886130561Sobrien# This gets set non-empty for some net releases of packages.
1887130561Sobrienappdirs=""
1888130561Sobrien
1889130561Sobrien# Define is_cross_compiler to save on calls to 'test'.
1890130561Sobrienis_cross_compiler=
1891130561Sobrienif test x"${host}" = x"${target}" ; then
1892130561Sobrien  is_cross_compiler=no
1893130561Sobrienelse
1894130561Sobrien  is_cross_compiler=yes
1895218822Sdimfi
1896130561Sobrien
1897130561Sobrien# Find the build and target subdir names.
189833965Sjdp
1899218822Sdim# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1900218822Sdim# have matching libraries, they should use host libraries: Makefile.tpl
1901218822Sdim# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1902218822Sdim# However, they still use the build modules, because the corresponding
1903218822Sdim# host modules (e.g. bison) are only built for the host when bootstrap
1904218822Sdim# finishes. So:
1905218822Sdim# - build_subdir is where we find build modules, and never changes.
1906218822Sdim# - build_libsubdir is where we find build libraries, and can be overridden.
190733965Sjdp
1908218822Sdim# Prefix 'build-' so this never conflicts with target_subdir.
1909218822Sdimbuild_subdir="build-${build_noncanonical}"
191033965Sjdp
1911218822Sdim# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1912218822Sdimif test "${with_build_libsubdir+set}" = set; then
1913218822Sdim  withval="$with_build_libsubdir"
1914218822Sdim  build_libsubdir="$withval"
1915218822Sdimelse
1916218822Sdim  build_libsubdir="$build_subdir"
1917218822Sdimfi;
1918218822Sdim# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1919218822Sdimif ( test $srcdir = . && test -d gcc ) \
1920218822Sdim   || test -d $srcdir/../host-${host_noncanonical}; then
1921218822Sdim  host_subdir="host-${host_noncanonical}"
1922218822Sdimelse
1923218822Sdim  host_subdir=.
1924218822Sdimfi
1925130561Sobrien# No prefix.
1926130561Sobrientarget_subdir=${target_noncanonical}
192733965Sjdp
1928218822Sdim
1929130561Sobrien# Skipdirs are removed silently.
1930130561Sobrienskipdirs=
1931130561Sobrien# Noconfigdirs are removed loudly.
1932130561Sobriennoconfigdirs=""
193360484Sobrien
1934130561Sobrienuse_gnu_ld=
1935130561Sobrien# Make sure we don't let GNU ld be added if we didn't want it.
1936130561Sobrienif test x$with_gnu_ld = xno ; then
1937130561Sobrien  use_gnu_ld=no
1938130561Sobrien  noconfigdirs="$noconfigdirs ld"
193933965Sjdpfi
194033965Sjdp
1941130561Sobrienuse_gnu_as=
1942130561Sobrien# Make sure we don't let GNU as be added if we didn't want it.
1943130561Sobrienif test x$with_gnu_as = xno ; then
1944130561Sobrien  use_gnu_as=no
1945130561Sobrien  noconfigdirs="$noconfigdirs gas"
194633965Sjdpfi
194733965Sjdp
1948218822Sdim# some tools are so dependent upon X11 that if we're not building with X,
1949130561Sobrien# it's not even worth trying to configure, much less build, that tool.
1950130561Sobrien
1951130561Sobriencase ${with_x} in
1952130561Sobrien  yes | "") ;; # the default value for this tree is that X11 is available
1953130561Sobrien  no)
1954218822Sdim    skipdirs="${skipdirs} tk itcl libgui"
1955130561Sobrien    # We won't be able to build gdbtk without X.
1956218822Sdim    enable_gdbtk=no
1957130561Sobrien    ;;
1958130561Sobrien  *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
195933965Sjdpesac
196033965Sjdp
1961130561Sobrien# Some tools are only suitable for building in a "native" situation.
1962218822Sdim# Remove these if host!=target.
1963218822Sdimnative_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"
196433965Sjdp
1965130561Sobrien# Similarly, some are only suitable for cross toolchains.
1966130561Sobrien# Remove these if host=target.
1967130561Sobriencross_only="target-libgloss target-newlib target-opcodes"
196833965Sjdp
1969130561Sobriencase $is_cross_compiler in
1970130561Sobrien  no) skipdirs="${skipdirs} ${cross_only}" ;;
1971130561Sobrien  yes) skipdirs="${skipdirs} ${native_only}" ;;
197233965Sjdpesac
197333965Sjdp
1974130561Sobrien# If both --with-headers and --with-libs are specified, default to
1975130561Sobrien# --without-newlib.
1976218822Sdimif test x"${with_headers}" != x && test x"${with_headers}" != xno \
1977218822Sdim   && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1978130561Sobrien  if test x"${with_newlib}" = x ; then
1979130561Sobrien    with_newlib=no
1980130561Sobrien  fi
198160484Sobrienfi
198260484Sobrien
1983130561Sobrien# Recognize --with-newlib/--without-newlib.
1984130561Sobriencase ${with_newlib} in
1985130561Sobrien  no) skipdirs="${skipdirs} target-newlib" ;;
1986130561Sobrien  yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
198733965Sjdpesac
198833965Sjdp
1989130561Sobrien# Configure extra directories which are host specific
1990130561Sobrien
1991130561Sobriencase "${host}" in
1992130561Sobrien  *-cygwin*)
1993130561Sobrien    configdirs="$configdirs libtermcap" ;;
199433965Sjdpesac
199533965Sjdp
1996218822Sdim# A target can indicate whether a language isn't supported for some reason.
1997218822Sdim# Only spaces may be used in this macro; not newlines or tabs.
1998218822Sdimunsupported_languages=
1999218822Sdim
2000218822Sdim# Remove more programs from consideration, based on the host or
2001130561Sobrien# target this usually means that a port of the program doesn't
2002130561Sobrien# exist yet.
2003130561Sobrien
2004130561Sobriencase "${host}" in
2005130561Sobrien  hppa*64*-*-*)
2006130561Sobrien    noconfigdirs="$noconfigdirs byacc"
2007130561Sobrien    ;;
2008130561Sobrien  i[3456789]86-*-vsta)
2009218822Sdim    noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2010130561Sobrien    ;;
2011130561Sobrien  i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2012218822Sdim    noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2013130561Sobrien    ;;
2014218822Sdim  x86_64-*-mingw*)
2015218822Sdim    noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2016218822Sdim    ;;
2017130561Sobrien  i[3456789]86-*-mingw32*)
2018218822Sdim    # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2019218822Sdim    noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2020130561Sobrien    ;;
2021130561Sobrien  i[3456789]86-*-beos*)
2022218822Sdim    noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2023130561Sobrien    ;;
2024130561Sobrien  *-*-cygwin*)
2025130561Sobrien    noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2026130561Sobrien    ;;
2027130561Sobrien  *-*-netbsd*)
2028130561Sobrien    noconfigdirs="$noconfigdirs rcs"
2029130561Sobrien    ;;
2030130561Sobrien  ppc*-*-pe)
2031218822Sdim    noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2032130561Sobrien    ;;
2033130561Sobrien  powerpc-*-beos*)
2034218822Sdim    noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2035130561Sobrien    ;;
203633965Sjdpesac
203733965Sjdp
2038218822Sdim
2039130561Sobrien# Check whether --enable-libada or --disable-libada was given.
2040130561Sobrienif test "${enable_libada+set}" = set; then
2041130561Sobrien  enableval="$enable_libada"
2042130561Sobrien  ENABLE_LIBADA=$enableval
204333965Sjdpelse
2044130561Sobrien  ENABLE_LIBADA=yes
2045218822Sdimfi;
2046130561Sobrienif test "${ENABLE_LIBADA}" != "yes" ; then
2047218822Sdim  noconfigdirs="$noconfigdirs gnattools"
2048130561Sobrienfi
204933965Sjdp
2050218822Sdim# Check whether --enable-libssp or --disable-libssp was given.
2051218822Sdimif test "${enable_libssp+set}" = set; then
2052218822Sdim  enableval="$enable_libssp"
2053218822Sdim  ENABLE_LIBSSP=$enableval
2054218822Sdimelse
2055218822Sdim  ENABLE_LIBSSP=yes
2056218822Sdimfi;
2057218822Sdim
2058130561Sobrien# Save it here so that, even in case of --enable-libgcj, if the Java
2059130561Sobrien# front-end isn't enabled, we still get libgcj disabled.
2060130561Sobrienlibgcj_saved=$libgcj
2061130561Sobriencase $enable_libgcj in
2062130561Sobrienyes)
2063130561Sobrien  # If we reset it here, it won't get added to noconfigdirs in the
2064130561Sobrien  # target-specific build rules, so it will be forcibly enabled
2065130561Sobrien  # (unless the Java language itself isn't enabled).
2066130561Sobrien  libgcj=
2067130561Sobrien  ;;
2068130561Sobrienno)
2069130561Sobrien  # Make sure we get it printed in the list of not supported target libs.
2070130561Sobrien  noconfigdirs="$noconfigdirs ${libgcj}"
2071130561Sobrien  ;;
2072130561Sobrienesac
207360484Sobrien
2074218822Sdim
2075218822Sdim# Disable libmudflap on some systems.
2076218822Sdimif test x$enable_libmudflap = x ; then
2077218822Sdim    case "${target}" in
2078218822Sdim    *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc* | *-*-uclinux*)
2079218822Sdim        # Enable libmudflap by default in GNU and friends.
2080218822Sdim	;;
2081218822Sdim    *-*-freebsd*)
2082218822Sdim        # Enable libmudflap by default in FreeBSD.
2083218822Sdim	;;
2084218822Sdim    *)
2085218822Sdim        # Disable it by default everywhere else.
2086218822Sdim	noconfigdirs="$noconfigdirs target-libmudflap"
2087218822Sdim	;;
2088218822Sdim    esac
2089218822Sdimfi
2090218822Sdim
2091218822Sdim# Disable libgomp on non POSIX hosted systems.
2092218822Sdimif test x$enable_libgomp = x ; then
2093218822Sdim    # Enable libgomp by default on hosted POSIX systems.
2094218822Sdim    case "${target}" in
2095218822Sdim    *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2096218822Sdim	;;
2097218822Sdim    *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2098218822Sdim	;;
2099218822Sdim    *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2100218822Sdim	;;
2101218822Sdim    *-*-darwin* | *-*-aix*)
2102218822Sdim	;;
2103218822Sdim    *)
2104218822Sdim	noconfigdirs="$noconfigdirs target-libgomp"
2105218822Sdim	;;
2106218822Sdim    esac
2107218822Sdimfi
2108218822Sdim
2109218822Sdim
2110130561Sobriencase "${target}" in
2111130561Sobrien  *-*-chorusos)
2112130561Sobrien    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2113130561Sobrien    ;;
2114218822Sdim  powerpc-*-darwin* | i[3456789]86-*-darwin*)
2115130561Sobrien    noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2116218822Sdim    noconfigdirs="$noconfigdirs sim target-rda"
2117130561Sobrien    ;;
2118130561Sobrien  *-*-darwin*)
2119218822Sdim    noconfigdirs="$noconfigdirs ld gas gdb gprof"
2120218822Sdim    noconfigdirs="$noconfigdirs sim target-rda"
2121218822Sdim    noconfigdirs="$noconfigdirs ${libgcj}"
2122130561Sobrien    ;;
2123130561Sobrien  *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2124130561Sobrien    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2125130561Sobrien    ;;
2126218822Sdim  *-*-freebsd*)
2127218822Sdim    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2128218822Sdim    if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2129218822Sdim	&& test -f /usr/local/include/gmp.h; then
2130218822Sdim      with_gmp=/usr/local
2131218822Sdim    fi
2132218822Sdim
2133218822Sdim    # Skip some stuff that's unsupported on some FreeBSD configurations.
2134218822Sdim    case "${target}" in
2135218822Sdim      i*86-*-*) ;;
2136218822Sdim      alpha*-*-*) ;;
2137218822Sdim      *)
2138218822Sdim	noconfigdirs="$noconfigdirs ${libgcj}"
2139218822Sdim	;;
2140218822Sdim    esac
2141218822Sdim    ;;
2142130561Sobrien  *-*-kaos*)
2143130561Sobrien    # Remove unsupported stuff on all kaOS configurations.
2144218822Sdim    skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2145130561Sobrien    skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2146130561Sobrien    skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2147130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss"
2148130561Sobrien    ;;
2149130561Sobrien  *-*-netbsd*)
2150130561Sobrien    # Skip some stuff on all NetBSD configurations.
2151130561Sobrien    noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
215233965Sjdp
2153130561Sobrien    # Skip some stuff that's unsupported on some NetBSD configurations.
2154130561Sobrien    case "${target}" in
2155130561Sobrien      i*86-*-netbsdelf*) ;;
2156130561Sobrien      arm*-*-netbsdelf*) ;;
2157130561Sobrien      *)
2158130561Sobrien	noconfigdirs="$noconfigdirs ${libgcj}"
2159130561Sobrien	;;
2160130561Sobrien    esac
2161130561Sobrien    ;;
2162218822Sdim  *-*-netware*)
2163218822Sdim    noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2164130561Sobrien    ;;
2165130561Sobrien  *-*-rtems*)
2166130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2167130561Sobrien    ;;
2168218822Sdim    # The tpf target doesn't support gdb yet.
2169218822Sdim  *-*-tpf*)
2170218822Sdim    noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2171218822Sdim    ;;
2172130561Sobrien  *-*-uclinux*)
2173130561Sobrien    noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2174130561Sobrien    ;;
2175130561Sobrien  *-*-vxworks*)
2176218822Sdim    noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2177130561Sobrien    ;;
2178130561Sobrien  alpha*-dec-osf*)
2179130561Sobrien    # ld works, but does not support shared libraries.
2180130561Sobrien    # newlib is not 64 bit ready.  I'm not sure about fileutils.
2181130561Sobrien    # gas doesn't generate exception information.
2182130561Sobrien    noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2183130561Sobrien    ;;
2184130561Sobrien  alpha*-*-*vms*)
2185130561Sobrien    noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2186130561Sobrien    ;;
2187130561Sobrien  alpha*-*-linux*)
2188130561Sobrien    # newlib is not 64 bit ready
2189130561Sobrien    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2190130561Sobrien    ;;
2191130561Sobrien  alpha*-*-*)
2192130561Sobrien    # newlib is not 64 bit ready
2193130561Sobrien    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2194130561Sobrien    ;;
2195130561Sobrien  am33_2.0-*-linux*)
2196130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2197130561Sobrien    ;;
2198130561Sobrien  sh-*-linux*)
2199130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2200218822Sdim    ;;
2201130561Sobrien  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2202130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2203130561Sobrien    noconfigdirs="$noconfigdirs target-examples"
2204130561Sobrien    noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2205218822Sdim    noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2206130561Sobrien    noconfigdirs="$noconfigdirs expect dejagnu"
2207130561Sobrien    # the C++ libraries don't build on top of CE's C libraries
2208130561Sobrien    noconfigdirs="$noconfigdirs target-libstdc++-v3"
2209130561Sobrien    noconfigdirs="$noconfigdirs target-newlib"
2210130561Sobrien    case "${host}" in
2211130561Sobrien      *-*-cygwin*) ;; # keep gdb and readline
2212130561Sobrien      *) noconfigdirs="$noconfigdirs gdb readline"
2213130561Sobrien	 ;;
2214130561Sobrien    esac
2215130561Sobrien    ;;
2216130561Sobrien  arc-*-*)
2217130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2218130561Sobrien    ;;
2219218822Sdim  arm-semi-aof )
2220218822Sdim    ;;
2221130561Sobrien  arm-*-coff | strongarm-*-coff | xscale-*-coff)
2222130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2223130561Sobrien    ;;
2224218822Sdim  arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2225130561Sobrien    noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2226130561Sobrien    ;;
2227218822Sdim  arm*-*-linux-gnueabi)
2228218822Sdim    noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2229218822Sdim    noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2230218822Sdim    case ${with_newlib} in
2231218822Sdim      no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2232218822Sdim    esac
2233218822Sdim    ;;
2234218822Sdim  arm*-*-symbianelf*)
2235218822Sdim    noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2236218822Sdim    ;;
2237130561Sobrien  arm-*-pe*)
2238130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2239130561Sobrien    ;;
2240130561Sobrien  thumb-*-coff)
2241130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2242130561Sobrien    ;;
2243130561Sobrien  thumb-*-elf)
2244130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2245130561Sobrien    ;;
2246130561Sobrien  thumb-*-pe)
2247130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2248130561Sobrien    ;;
2249130561Sobrien  arm-*-riscix*)
2250130561Sobrien    noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2251130561Sobrien    ;;
2252130561Sobrien  avr-*-*)
2253130561Sobrien    noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2254130561Sobrien    ;;
2255218822Sdim  bfin-*-*)
2256218822Sdim    noconfigdirs="$noconfigdirs gdb"
2257218822Sdim    if test x${is_cross_compiler} != xno ; then
2258218822Sdim      target_configdirs="${target_configdirs} target-bsp target-cygmon"
2259218822Sdim    fi
2260218822Sdim    ;;
2261130561Sobrien  c4x-*-* | tic4x-*-*)
2262130561Sobrien    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2263130561Sobrien    ;;
2264130561Sobrien  c54x*-*-* | tic54x-*-*)
2265130561Sobrien    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2266130561Sobrien    ;;
2267218822Sdim  cris-*-* | crisv32-*-*)
2268218822Sdim    unsupported_languages="$unsupported_languages java"
2269218822Sdim    case "${target}" in
2270218822Sdim      *-*-aout)
2271218822Sdim	unsupported_languages="$unsupported_languages fortran"
2272218822Sdim	noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2273218822Sdim      *-*-elf)
2274218822Sdim	unsupported_languages="$unsupported_languages fortran"
2275218822Sdim	noconfigdirs="$noconfigdirs target-boehm-gc";;
2276218822Sdim      *-*-linux*)
2277218822Sdim	noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2278218822Sdim      *)
2279218822Sdim	unsupported_languages="$unsupported_languages fortran"
2280218822Sdim	noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2281218822Sdim    esac
2282130561Sobrien    ;;
2283218822Sdim  crx-*-*)
2284218822Sdim    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2285218822Sdim    ;;
2286130561Sobrien  d10v-*-*)
2287130561Sobrien    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2288130561Sobrien    ;;
2289130561Sobrien  d30v-*-*)
2290130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj} gdb"
2291130561Sobrien    ;;
2292130561Sobrien  fr30-*-elf*)
2293130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj} gdb"
2294130561Sobrien    ;;
2295130561Sobrien  frv-*-*)
2296130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2297130561Sobrien    ;;
2298130561Sobrien  h8300*-*-*)
2299218822Sdim    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2300130561Sobrien    ;;
2301130561Sobrien  h8500-*-*)
2302218822Sdim    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2303130561Sobrien    ;;
2304218822Sdim  hppa1.1-*-osf* | hppa1.1-*-bsd* )
2305218822Sdim    ;;
2306130561Sobrien  hppa*64*-*-linux* | parisc*64*-*-linux*)
2307130561Sobrien    # In this case, it's because the hppa64-linux target is for
2308130561Sobrien    # the kernel only at this point and has no libc, and thus no
2309130561Sobrien    # headers, crt*.o, etc., all of which are needed by these.
2310130561Sobrien    noconfigdirs="$noconfigdirs target-zlib"
2311130561Sobrien    ;;
2312218822Sdim  parisc*-*-linux* | hppa*-*-linux*)
2313218822Sdim    ;;
2314130561Sobrien  hppa*-*-*elf* | \
2315130561Sobrien  hppa*-*-lites* | \
2316130561Sobrien  hppa*-*-openbsd* | \
2317130561Sobrien  hppa*64*-*-*)
2318130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2319130561Sobrien    ;;
2320218822Sdim  hppa*-hp-hpux11*)
2321218822Sdim    noconfigdirs="$noconfigdirs ld shellutils"
2322218822Sdim    ;;
2323130561Sobrien  hppa*-*-*)
2324130561Sobrien    # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2325130561Sobrien    # build on HP-UX 10.20.
2326130561Sobrien    noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2327130561Sobrien    ;;
2328130561Sobrien  i960-*-*)
2329130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj} gdb"
2330130561Sobrien    ;;
2331130561Sobrien  ia64*-*-elf*)
2332130561Sobrien    # No gdb support yet.
2333218822Sdim    noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2334130561Sobrien    ;;
2335130561Sobrien  ia64*-**-hpux*)
2336130561Sobrien    # No gdb or ld support yet.
2337218822Sdim    noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2338130561Sobrien    ;;
2339218822Sdim  i370-*-opened*)
2340218822Sdim    ;;
2341130561Sobrien  i[3456789]86-*-coff | i[3456789]86-*-elf)
2342130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2343130561Sobrien    ;;
2344130561Sobrien  i[3456789]86-*-linux*)
2345130561Sobrien    # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2346130561Sobrien    # not build java stuff by default.
2347130561Sobrien    case "${target}" in
2348130561Sobrien      *-*-*libc1*)
2349130561Sobrien	noconfigdirs="$noconfigdirs ${libgcj}";;
2350130561Sobrien    esac
235160484Sobrien
2352130561Sobrien    # This section makes it possible to build newlib natively on linux.
2353130561Sobrien    # If we are using a cross compiler then don't configure newlib.
2354130561Sobrien    if test x${is_cross_compiler} != xno ; then
2355130561Sobrien      noconfigdirs="$noconfigdirs target-newlib"
2356130561Sobrien    fi
2357130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss"
2358130561Sobrien    # If we are not using a cross compiler, do configure newlib.
2359130561Sobrien    # Note however, that newlib will only be configured in this situation
2360130561Sobrien    # if the --with-newlib option has been given, because otherwise
2361130561Sobrien    # 'target-newlib' will appear in skipdirs.
2362130561Sobrien    ;;
2363130561Sobrien  i[3456789]86-*-mingw32*)
2364218822Sdim    target_configdirs="$target_configdirs target-winsup"
2365218822Sdim    noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2366218822Sdim    ;;
2367218822Sdim  x86_64-*-mingw*)
2368218822Sdim    target_configdirs="$target_configdirs target-winsup"
2369218822Sdim    noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2370218822Sdim    ;;
2371130561Sobrien  *-*-cygwin*)
2372130561Sobrien    target_configdirs="$target_configdirs target-libtermcap target-winsup"
2373130561Sobrien    noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2374218822Sdim    # always build newlib if winsup directory is present.
2375218822Sdim    if test -d "$srcdir/winsup/cygwin"; then
2376218822Sdim      skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2377218822Sdim    elif test -d "$srcdir/newlib"; then
2378218822Sdim      echo "Warning: winsup/cygwin is missing so newlib can't be built."
2379218822Sdim    fi
2380218822Sdim    ;;
2381218822Sdim  i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2382218822Sdim  i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2383218822Sdim    ;;
2384130561Sobrien  i[3456789]86-*-pe)
2385130561Sobrien    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2386130561Sobrien    ;;
2387130561Sobrien  i[3456789]86-*-sco3.2v5*)
2388130561Sobrien    # The linker does not yet know about weak symbols in COFF,
2389130561Sobrien    # and is not configured to handle mixed ELF and COFF.
2390130561Sobrien    noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2391130561Sobrien    ;;
2392130561Sobrien  i[3456789]86-*-sco*)
2393130561Sobrien    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2394130561Sobrien    ;;
2395130561Sobrien  i[3456789]86-*-solaris2*)
2396130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss"
2397130561Sobrien    ;;
2398130561Sobrien  i[3456789]86-*-sysv4*)
2399130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2400130561Sobrien    ;;
2401130561Sobrien  i[3456789]86-*-beos*)
2402130561Sobrien    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2403130561Sobrien    ;;
2404218822Sdim  i[3456789]86-*-rdos*)
2405218822Sdim    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2406218822Sdim    ;;
2407130561Sobrien  m32r-*-*)
2408130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2409130561Sobrien    ;;
2410130561Sobrien  m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2411130561Sobrien    noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2412130561Sobrien    ;;
2413130561Sobrien  m68k-*-elf*)
2414130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2415130561Sobrien    ;;
2416130561Sobrien  m68k-*-coff*)
2417130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2418130561Sobrien    ;;
2419130561Sobrien  mcore-*-pe*)
2420130561Sobrien  # The EPOC C++ environment does not support exceptions or rtti,
2421130561Sobrien  # and so building libstdc++-v3 tends not to always work.
2422130561Sobrien    noconfigdirs="$noconfigdirs target-libstdc++-v3"
2423130561Sobrien    ;;
2424130561Sobrien  mmix-*-*)
2425218822Sdim    noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2426218822Sdim    unsupported_languages="$unsupported_languages fortran java"
2427130561Sobrien    ;;
2428130561Sobrien  mn10200-*-*)
2429130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2430130561Sobrien    ;;
2431130561Sobrien  mn10300-*-*)
2432130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2433130561Sobrien    ;;
2434218822Sdim  mt-*-*)
2435218822Sdim    noconfigdirs="$noconfigdirs sim"
2436218822Sdim    ;;
2437130561Sobrien  powerpc-*-aix*)
2438130561Sobrien    # copied from rs6000-*-* entry
2439218822Sdim    noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2440130561Sobrien    ;;
2441130561Sobrien  powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2442130561Sobrien    target_configdirs="$target_configdirs target-winsup"
2443218822Sdim    noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2444130561Sobrien    # always build newlib.
2445130561Sobrien    skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2446130561Sobrien    ;;
2447130561Sobrien    # This is temporary until we can link against shared libraries
2448130561Sobrien  powerpcle-*-solaris*)
2449218822Sdim    noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2450130561Sobrien    ;;
2451130561Sobrien  powerpc-*-beos*)
2452130561Sobrien    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2453130561Sobrien    ;;
2454130561Sobrien  powerpc-*-eabi)
2455130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2456130561Sobrien    ;;
2457218822Sdim  powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2458218822Sdim    ;;
2459130561Sobrien  rs6000-*-lynxos*)
2460130561Sobrien    noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2461130561Sobrien    ;;
2462130561Sobrien  rs6000-*-aix*)
2463218822Sdim    noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2464130561Sobrien    ;;
2465130561Sobrien  rs6000-*-*)
2466130561Sobrien    noconfigdirs="$noconfigdirs gprof ${libgcj}"
2467130561Sobrien    ;;
2468130561Sobrien  m68k-apollo-*)
2469130561Sobrien    noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2470130561Sobrien    ;;
2471130561Sobrien  mips*-*-irix5*)
2472130561Sobrien    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2473130561Sobrien    ;;
2474130561Sobrien  mips*-*-irix6*)
2475130561Sobrien    # Linking libjava exceeds command-line length limits on at least
2476130561Sobrien    # IRIX 6.2, but not on IRIX 6.5.
2477130561Sobrien    # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2478130561Sobrien    # <oldham@codesourcery.com>
2479130561Sobrien    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2480130561Sobrien    ;;
2481130561Sobrien  mips*-*-bsd*)
2482130561Sobrien    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2483130561Sobrien    ;;
2484218822Sdim  mips64*-*-linux*)
2485218822Sdim    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2486130561Sobrien    ;;
2487130561Sobrien  mips*-*-linux*)
2488130561Sobrien    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2489130561Sobrien    ;;
2490130561Sobrien  mips*-*-*)
2491130561Sobrien    noconfigdirs="$noconfigdirs gprof ${libgcj}"
2492130561Sobrien    ;;
2493130561Sobrien  romp-*-*)
2494130561Sobrien    noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2495130561Sobrien    ;;
2496218822Sdim  sh-*-* | sh64-*-*)
2497130561Sobrien    case "${host}" in
2498130561Sobrien      i[3456789]86-*-vsta) ;; # don't add gprof back in
2499130561Sobrien      i[3456789]86-*-go32*) ;; # don't add gprof back in
2500130561Sobrien      i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2501130561Sobrien      *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2502130561Sobrien    esac
2503130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2504130561Sobrien    ;;
2505130561Sobrien  sparc-*-elf*)
2506130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2507130561Sobrien    ;;
2508130561Sobrien  sparc64-*-elf*)
2509130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2510130561Sobrien    ;;
2511130561Sobrien  sparclite-*-*)
2512130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2513130561Sobrien    ;;
2514130561Sobrien  sparc-*-sunos4*)
2515130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2516130561Sobrien    if test x${is_cross_compiler} != xno ; then
2517130561Sobrien           noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2518130561Sobrien    else
2519130561Sobrien           use_gnu_ld=no
2520130561Sobrien    fi
2521130561Sobrien    ;;
2522218822Sdim  sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2523218822Sdim    noconfigdirs="$noconfigdirs ${libgcj}"
2524218822Sdim    ;;
2525130561Sobrien  sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2526130561Sobrien    ;;
2527218822Sdim  spu-*-*)
2528218822Sdim    skipdirs="target-libssp"
2529218822Sdim    ;;
2530130561Sobrien  v810-*-*)
2531130561Sobrien    noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2532130561Sobrien    ;;
2533130561Sobrien  v850-*-*)
2534130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2535130561Sobrien    ;;
2536130561Sobrien  v850e-*-*)
2537130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2538130561Sobrien    ;;
2539130561Sobrien  v850ea-*-*)
2540130561Sobrien    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2541130561Sobrien    ;;
2542130561Sobrien  vax-*-vms)
2543130561Sobrien    noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2544130561Sobrien    ;;
2545130561Sobrien  vax-*-*)
2546130561Sobrien    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2547130561Sobrien    ;;
2548130561Sobrien  xtensa-*-*)
2549130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2550130561Sobrien    ;;
2551130561Sobrien  ip2k-*-*)
2552130561Sobrien    noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2553130561Sobrien    ;;
2554218822Sdim  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2555130561Sobrien    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2556130561Sobrien    ;;
2557130561Sobrien  *-*-lynxos*)
2558130561Sobrien    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2559218822Sdim    ;;
2560130561Sobrien  *-*-*)
2561130561Sobrien    noconfigdirs="$noconfigdirs ${libgcj}"
2562130561Sobrien    ;;
256333965Sjdpesac
256433965Sjdp
2565130561Sobrien# If we aren't building newlib, then don't build libgloss, since libgloss
2566130561Sobrien# depends upon some newlib header files.
2567130561Sobriencase "${noconfigdirs}" in
2568130561Sobrien  *target-libgloss*) ;;
2569130561Sobrien  *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
257033965Sjdpesac
257133965Sjdp
2572218822Sdim# Work in distributions that contain no compiler tools, like Autoconf.
2573218822Sdimtentative_cc=""
2574218822Sdimhost_makefile_frag=/dev/null
2575218822Sdimif test -d ${srcdir}/config ; then
2576218822Sdimcase "${host}" in
2577218822Sdim  m68k-hp-hpux*)
2578218822Sdim    # Avoid "too much defining" errors from HPUX compiler.
2579218822Sdim    tentative_cc="cc -Wp,-H256000"
2580218822Sdim    # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2581218822Sdim    # If it's HP/UX ar, this should be harmless.
2582218822Sdim    RANLIB="ar ts"
2583218822Sdim    ;;
2584218822Sdim  m68k-apollo-sysv*)
2585218822Sdim    tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2586218822Sdim    ;;
2587218822Sdim  m68k-apollo-bsd*)
2588218822Sdim    #None of the Apollo compilers can compile gas or binutils.  The preprocessor
2589218822Sdim    # chokes on bfd, the compiler won't let you assign integers to enums, and
2590218822Sdim    # other problems.  Defining CC to gcc is a questionable way to say "don't use
2591218822Sdim    # the apollo compiler" (the preferred version of GCC could be called cc,
2592218822Sdim    # or whatever), but I'm not sure leaving CC as cc is any better...
2593218822Sdim    #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2594218822Sdim    # Used to have BISON=yacc.
2595218822Sdim    tentative_cc=gcc
2596218822Sdim    ;;
2597218822Sdim  m88k-dg-dgux*)
2598218822Sdim    tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2599218822Sdim    ;;
2600218822Sdim  m88k-harris-cxux*)
2601218822Sdim    # Under CX/UX, we want to tell the compiler to use ANSI mode.
2602218822Sdim    tentative_cc="cc -Xa"
2603218822Sdim    host_makefile_frag="config/mh-cxux"
2604218822Sdim    ;;
2605218822Sdim  m88k-motorola-sysv*)
2606218822Sdim    ;;
2607218822Sdim  mips*-dec-ultrix*)
2608218822Sdim    tentative_cc="cc -Wf,-XNg1000"
2609218822Sdim    host_makefile_frag="config/mh-decstation"
2610218822Sdim    ;;
2611218822Sdim  mips*-nec-sysv4*)
2612218822Sdim    # The C compiler on NEC MIPS SVR4 needs bigger tables.
2613218822Sdim    tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2614218822Sdim    host_makefile_frag="config/mh-necv4"
2615218822Sdim    ;;
2616218822Sdim  mips*-sgi-irix4*)
2617218822Sdim    # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
2618218822Sdim    # environment.  Also bump switch table size so that cp-parse will
2619218822Sdim    # compile.  Bump string length limit so linker builds.
2620218822Sdim    tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2621218822Sdim    ;;
2622218822Sdim  mips*-*-sysv4*)
2623218822Sdim    host_makefile_frag="config/mh-sysv4"
2624218822Sdim    ;;
2625218822Sdim  mips*-*-sysv*)
2626218822Sdim    # This is for a MIPS running RISC/os 4.52C.
2627218822Sdim
2628218822Sdim    # This is needed for GDB, but needs to be in the top-level make because
2629218822Sdim    # if a library is compiled with the bsd headers and gets linked with the
2630218822Sdim    # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2631218822Sdim    # a different size).
2632218822Sdim    # ptrace(2) apparently has problems in the BSD environment.  No workaround is
2633218822Sdim    # known except to select the sysv environment.  Could we use /proc instead?
2634218822Sdim    # These "sysv environments" and "bsd environments" often end up being a pain.
2635218822Sdim    #
2636218822Sdim    # This is not part of CFLAGS because perhaps not all C compilers have this
2637218822Sdim    # option.
2638218822Sdim    tentative_cc="cc -systype sysv"
2639218822Sdim    ;;
2640218822Sdim  i370-ibm-opened*)
2641218822Sdim    tentative_cc="c89"
2642218822Sdim    ;;
2643218822Sdim  i[3456789]86-*-sysv5*)
2644218822Sdim    host_makefile_frag="config/mh-sysv5"
2645218822Sdim    ;;
2646218822Sdim  i[3456789]86-*-dgux*)
2647218822Sdim    tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2648218822Sdim    host_makefile_frag="config/mh-dgux386"
2649218822Sdim    ;;
2650218822Sdim  i[3456789]86-ncr-sysv4.3*)
2651218822Sdim    # The MetaWare compiler will generate a copyright message unless you
2652218822Sdim    # turn it off by adding the -Hnocopyr flag.
2653218822Sdim    tentative_cc="cc -Hnocopyr"
2654218822Sdim    ;;
2655218822Sdim  i[3456789]86-ncr-sysv4*)
2656218822Sdim    # for an NCR 3000 (i486/SVR4) system.
2657218822Sdim    # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2658218822Sdim    # This compiler not only emits obnoxious copyright messages every time
2659218822Sdim    # you run it, but it chokes and dies on a whole bunch of GNU source
2660218822Sdim    # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2661218822Sdim    tentative_cc="/usr/ccs/ATT/cc"
2662218822Sdim    host_makefile_frag="config/mh-ncr3000"
2663218822Sdim    ;;
2664218822Sdim  i[3456789]86-*-sco3.2v5*)
2665218822Sdim    ;;
2666218822Sdim  i[3456789]86-*-sco*)
2667218822Sdim    # The native C compiler botches some simple uses of const.  Unfortunately,
2668218822Sdim    # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2669218822Sdim    tentative_cc="cc -Dconst="
2670218822Sdim    host_makefile_frag="config/mh-sco"
2671218822Sdim    ;;
2672218822Sdim  i[3456789]86-*-udk*)
2673218822Sdim    host_makefile_frag="config/mh-sysv5"
2674218822Sdim    ;;
2675218822Sdim  i[3456789]86-*-solaris2*)
2676218822Sdim    host_makefile_frag="config/mh-sysv4"
2677218822Sdim    ;;
2678218822Sdim  i[3456789]86-*-msdosdjgpp*)
2679218822Sdim    host_makefile_frag="config/mh-djgpp"
2680218822Sdim    ;;
2681218822Sdim  *-cygwin*)
2682218822Sdim    host_makefile_frag="config/mh-cygwin"
2683218822Sdim    ;;
2684218822Sdim  *-mingw32*)
2685218822Sdim    ;;
2686218822Sdim  *-mingw64*)
2687218822Sdim    ;;
2688218822Sdim  *-interix*)
2689218822Sdim    host_makefile_frag="config/mh-interix"
2690218822Sdim    ;;
2691218822Sdim  vax-*-ultrix2*)
2692218822Sdim    # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2693218822Sdim    tentative_cc=gcc
2694218822Sdim    ;;
2695218822Sdim  *-*-solaris2*)
2696218822Sdim    host_makefile_frag="config/mh-solaris"
2697218822Sdim    ;;
2698218822Sdim  m68k-sun-sunos*)
2699218822Sdim    # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2700218822Sdim    # without overflowing the jump tables (-J says to use a 32 bit table)
2701218822Sdim    tentative_cc="cc -J"
2702218822Sdim    ;;
2703218822Sdim  *-hp-hpux*)
2704218822Sdim    tentative_cc="cc -Wp,-H256000"
2705218822Sdim    ;;
2706218822Sdim  *-*-hiux*)
2707218822Sdim    tentative_cc="cc -Wp,-H256000"
2708218822Sdim    ;;
2709218822Sdim  rs6000-*-lynxos*)
2710218822Sdim    # /bin/cc is less than useful for our purposes.  Always use GCC
2711218822Sdim    tentative_cc="/usr/cygnus/progressive/bin/gcc"
2712218822Sdim    host_makefile_frag="config/mh-lynxrs6k"
2713218822Sdim    ;;
2714218822Sdim  powerpc-*-darwin*)
2715218822Sdim    host_makefile_frag="config/mh-ppc-darwin"
2716218822Sdim    ;;
2717218822Sdim  powerpc-*-aix*)
2718218822Sdim    host_makefile_frag="config/mh-ppc-aix"
2719218822Sdim    ;;
2720218822Sdim  rs6000-*-aix*)
2721218822Sdim    host_makefile_frag="config/mh-ppc-aix"
2722218822Sdim    ;;
2723218822Sdim  *-*-lynxos*)
2724218822Sdim    # /bin/cc is less than useful for our purposes.  Always use GCC
2725218822Sdim    tentative_cc="/bin/gcc"
2726218822Sdim    ;;
2727218822Sdim  *-*-sysv4*)
2728218822Sdim    host_makefile_frag="config/mh-sysv4"
2729218822Sdim    ;;
2730218822Sdim  # This is placed last to prevent interfering with the cases above.
2731218822Sdim  i[3456789]86-*-*)
2732218822Sdim    # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2733218822Sdim    host_makefile_frag="config/mh-x86omitfp"
2734218822Sdim    ;;
2735218822Sdimesac
2736218822Sdimfi
2737218822Sdim
2738218822Sdim# If we aren't going to be using gcc, see if we can extract a definition
2739218822Sdim# of CC from the fragment.
2740218822Sdim# Actually, use the 'pre-extracted' version above.
2741218822Sdimif test -z "${CC}" && test "${build}" = "${host}" ; then
2742218822Sdim  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}:"
2743218822Sdim  found=
2744218822Sdim  for dir in $PATH; do
2745218822Sdim    test -z "$dir" && dir=.
2746218822Sdim    if test -f $dir/gcc; then
2747218822Sdim      found=yes
2748218822Sdim      break
2749218822Sdim    fi
2750218822Sdim  done
2751218822Sdim  IFS="$save_ifs"
2752218822Sdim  if test -z "${found}" && test -n "${tentative_cc}" ; then
2753218822Sdim    CC=$tentative_cc
2754218822Sdim  fi
2755218822Sdimfi
2756218822Sdim
2757218822Sdimif test "${build}" != "${host}" ; then
2758218822Sdim  CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2759218822Sdimelse
2760218822Sdim  CC_FOR_BUILD="\$(CC)"
2761218822Sdimfi
2762218822Sdim
2763218822Sdimac_ext=c
2764218822Sdimac_cpp='$CPP $CPPFLAGS'
2765218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
2768218822Sdimif test -n "$ac_tool_prefix"; then
2769218822Sdim  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770218822Sdimset dummy ${ac_tool_prefix}gcc; ac_word=$2
2771218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
2772218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
2774218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2775218822Sdimelse
2776218822Sdim  if test -n "$CC"; then
2777218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
2778218822Sdimelse
2779218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780218822Sdimfor as_dir in $PATH
2781218822Sdimdo
2782218822Sdim  IFS=$as_save_IFS
2783218822Sdim  test -z "$as_dir" && as_dir=.
2784218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
2785218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786218822Sdim    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2787218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788218822Sdim    break 2
2789218822Sdim  fi
2790218822Sdimdone
2791218822Sdimdone
2792218822Sdim
2793218822Sdimfi
2794218822Sdimfi
2795218822SdimCC=$ac_cv_prog_CC
2796218822Sdimif test -n "$CC"; then
2797218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
2798218822Sdimecho "${ECHO_T}$CC" >&6
2799218822Sdimelse
2800218822Sdim  echo "$as_me:$LINENO: result: no" >&5
2801218822Sdimecho "${ECHO_T}no" >&6
2802218822Sdimfi
2803218822Sdim
2804218822Sdimfi
2805218822Sdimif test -z "$ac_cv_prog_CC"; then
2806218822Sdim  ac_ct_CC=$CC
2807218822Sdim  # Extract the first word of "gcc", so it can be a program name with args.
2808218822Sdimset dummy gcc; ac_word=$2
2809218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
2810218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2812218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2813218822Sdimelse
2814218822Sdim  if test -n "$ac_ct_CC"; then
2815218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2816218822Sdimelse
2817218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818218822Sdimfor as_dir in $PATH
2819218822Sdimdo
2820218822Sdim  IFS=$as_save_IFS
2821218822Sdim  test -z "$as_dir" && as_dir=.
2822218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
2823218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824218822Sdim    ac_cv_prog_ac_ct_CC="gcc"
2825218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826218822Sdim    break 2
2827218822Sdim  fi
2828218822Sdimdone
2829218822Sdimdone
2830218822Sdim
2831218822Sdimfi
2832218822Sdimfi
2833218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
2834218822Sdimif test -n "$ac_ct_CC"; then
2835218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2836218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
2837218822Sdimelse
2838218822Sdim  echo "$as_me:$LINENO: result: no" >&5
2839218822Sdimecho "${ECHO_T}no" >&6
2840218822Sdimfi
2841218822Sdim
2842218822Sdim  CC=$ac_ct_CC
2843218822Sdimelse
2844218822Sdim  CC="$ac_cv_prog_CC"
2845218822Sdimfi
2846218822Sdim
2847218822Sdimif test -z "$CC"; then
2848218822Sdim  if test -n "$ac_tool_prefix"; then
2849218822Sdim  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2850218822Sdimset dummy ${ac_tool_prefix}cc; ac_word=$2
2851218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
2852218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
2854218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2855218822Sdimelse
2856218822Sdim  if test -n "$CC"; then
2857218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
2858218822Sdimelse
2859218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860218822Sdimfor as_dir in $PATH
2861218822Sdimdo
2862218822Sdim  IFS=$as_save_IFS
2863218822Sdim  test -z "$as_dir" && as_dir=.
2864218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
2865218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866218822Sdim    ac_cv_prog_CC="${ac_tool_prefix}cc"
2867218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868218822Sdim    break 2
2869218822Sdim  fi
2870218822Sdimdone
2871218822Sdimdone
2872218822Sdim
2873218822Sdimfi
2874218822Sdimfi
2875218822SdimCC=$ac_cv_prog_CC
2876218822Sdimif test -n "$CC"; then
2877218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
2878218822Sdimecho "${ECHO_T}$CC" >&6
2879218822Sdimelse
2880218822Sdim  echo "$as_me:$LINENO: result: no" >&5
2881218822Sdimecho "${ECHO_T}no" >&6
2882218822Sdimfi
2883218822Sdim
2884218822Sdimfi
2885218822Sdimif test -z "$ac_cv_prog_CC"; then
2886218822Sdim  ac_ct_CC=$CC
2887218822Sdim  # Extract the first word of "cc", so it can be a program name with args.
2888218822Sdimset dummy cc; ac_word=$2
2889218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
2890218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2891218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2892218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2893218822Sdimelse
2894218822Sdim  if test -n "$ac_ct_CC"; then
2895218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896218822Sdimelse
2897218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898218822Sdimfor as_dir in $PATH
2899218822Sdimdo
2900218822Sdim  IFS=$as_save_IFS
2901218822Sdim  test -z "$as_dir" && as_dir=.
2902218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
2903218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904218822Sdim    ac_cv_prog_ac_ct_CC="cc"
2905218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906218822Sdim    break 2
2907218822Sdim  fi
2908218822Sdimdone
2909218822Sdimdone
2910218822Sdim
2911218822Sdimfi
2912218822Sdimfi
2913218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
2914218822Sdimif test -n "$ac_ct_CC"; then
2915218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2916218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
2917218822Sdimelse
2918218822Sdim  echo "$as_me:$LINENO: result: no" >&5
2919218822Sdimecho "${ECHO_T}no" >&6
2920218822Sdimfi
2921218822Sdim
2922218822Sdim  CC=$ac_ct_CC
2923218822Sdimelse
2924218822Sdim  CC="$ac_cv_prog_CC"
2925218822Sdimfi
2926218822Sdim
2927218822Sdimfi
2928218822Sdimif test -z "$CC"; then
2929218822Sdim  # Extract the first word of "cc", so it can be a program name with args.
2930218822Sdimset dummy cc; ac_word=$2
2931218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
2932218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
2934218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2935218822Sdimelse
2936218822Sdim  if test -n "$CC"; then
2937218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
2938218822Sdimelse
2939218822Sdim  ac_prog_rejected=no
2940218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941218822Sdimfor as_dir in $PATH
2942218822Sdimdo
2943218822Sdim  IFS=$as_save_IFS
2944218822Sdim  test -z "$as_dir" && as_dir=.
2945218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
2946218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947218822Sdim    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2948218822Sdim       ac_prog_rejected=yes
2949218822Sdim       continue
2950218822Sdim     fi
2951218822Sdim    ac_cv_prog_CC="cc"
2952218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953218822Sdim    break 2
2954218822Sdim  fi
2955218822Sdimdone
2956218822Sdimdone
2957218822Sdim
2958218822Sdimif test $ac_prog_rejected = yes; then
2959218822Sdim  # We found a bogon in the path, so make sure we never use it.
2960218822Sdim  set dummy $ac_cv_prog_CC
2961218822Sdim  shift
2962218822Sdim  if test $# != 0; then
2963218822Sdim    # We chose a different compiler from the bogus one.
2964218822Sdim    # However, it has the same basename, so the bogon will be chosen
2965218822Sdim    # first if we set CC to just the basename; use the full file name.
2966218822Sdim    shift
2967218822Sdim    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2968218822Sdim  fi
2969218822Sdimfi
2970218822Sdimfi
2971218822Sdimfi
2972218822SdimCC=$ac_cv_prog_CC
2973218822Sdimif test -n "$CC"; then
2974218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
2975218822Sdimecho "${ECHO_T}$CC" >&6
2976218822Sdimelse
2977218822Sdim  echo "$as_me:$LINENO: result: no" >&5
2978218822Sdimecho "${ECHO_T}no" >&6
2979218822Sdimfi
2980218822Sdim
2981218822Sdimfi
2982218822Sdimif test -z "$CC"; then
2983218822Sdim  if test -n "$ac_tool_prefix"; then
2984218822Sdim  for ac_prog in cl
2985218822Sdim  do
2986218822Sdim    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987218822Sdimset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
2989218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990218822Sdimif test "${ac_cv_prog_CC+set}" = set; then
2991218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
2992218822Sdimelse
2993218822Sdim  if test -n "$CC"; then
2994218822Sdim  ac_cv_prog_CC="$CC" # Let the user override the test.
2995218822Sdimelse
2996218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997218822Sdimfor as_dir in $PATH
2998218822Sdimdo
2999218822Sdim  IFS=$as_save_IFS
3000218822Sdim  test -z "$as_dir" && as_dir=.
3001218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3002218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003218822Sdim    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3004218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005218822Sdim    break 2
3006218822Sdim  fi
3007218822Sdimdone
3008218822Sdimdone
3009218822Sdim
3010218822Sdimfi
3011218822Sdimfi
3012218822SdimCC=$ac_cv_prog_CC
3013218822Sdimif test -n "$CC"; then
3014218822Sdim  echo "$as_me:$LINENO: result: $CC" >&5
3015218822Sdimecho "${ECHO_T}$CC" >&6
3016218822Sdimelse
3017218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3018218822Sdimecho "${ECHO_T}no" >&6
3019218822Sdimfi
3020218822Sdim
3021218822Sdim    test -n "$CC" && break
3022218822Sdim  done
3023218822Sdimfi
3024218822Sdimif test -z "$CC"; then
3025218822Sdim  ac_ct_CC=$CC
3026218822Sdim  for ac_prog in cl
3027218822Sdimdo
3028218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
3029218822Sdimset dummy $ac_prog; ac_word=$2
3030218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3031218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032218822Sdimif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3033218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3034218822Sdimelse
3035218822Sdim  if test -n "$ac_ct_CC"; then
3036218822Sdim  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037218822Sdimelse
3038218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039218822Sdimfor as_dir in $PATH
3040218822Sdimdo
3041218822Sdim  IFS=$as_save_IFS
3042218822Sdim  test -z "$as_dir" && as_dir=.
3043218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3044218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045218822Sdim    ac_cv_prog_ac_ct_CC="$ac_prog"
3046218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047218822Sdim    break 2
3048218822Sdim  fi
3049218822Sdimdone
3050218822Sdimdone
3051218822Sdim
3052218822Sdimfi
3053218822Sdimfi
3054218822Sdimac_ct_CC=$ac_cv_prog_ac_ct_CC
3055218822Sdimif test -n "$ac_ct_CC"; then
3056218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3057218822Sdimecho "${ECHO_T}$ac_ct_CC" >&6
3058218822Sdimelse
3059218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3060218822Sdimecho "${ECHO_T}no" >&6
3061218822Sdimfi
3062218822Sdim
3063218822Sdim  test -n "$ac_ct_CC" && break
3064218822Sdimdone
3065218822Sdim
3066218822Sdim  CC=$ac_ct_CC
3067218822Sdimfi
3068218822Sdim
3069218822Sdimfi
3070218822Sdim
3071218822Sdim
3072218822Sdimtest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3073218822SdimSee \`config.log' for more details." >&5
3074218822Sdimecho "$as_me: error: no acceptable C compiler found in \$PATH
3075218822SdimSee \`config.log' for more details." >&2;}
3076218822Sdim   { (exit 1); exit 1; }; }
3077218822Sdim
3078218822Sdim# Provide some information about the compiler.
3079218822Sdimecho "$as_me:$LINENO:" \
3080218822Sdim     "checking for C compiler version" >&5
3081218822Sdimac_compiler=`set X $ac_compile; echo $2`
3082218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3083218822Sdim  (eval $ac_compiler --version </dev/null >&5) 2>&5
3084218822Sdim  ac_status=$?
3085218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086218822Sdim  (exit $ac_status); }
3087218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3088218822Sdim  (eval $ac_compiler -v </dev/null >&5) 2>&5
3089218822Sdim  ac_status=$?
3090218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091218822Sdim  (exit $ac_status); }
3092218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3093218822Sdim  (eval $ac_compiler -V </dev/null >&5) 2>&5
3094218822Sdim  ac_status=$?
3095218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096218822Sdim  (exit $ac_status); }
3097218822Sdim
3098218822Sdimcat >conftest.$ac_ext <<_ACEOF
3099218822Sdim/* confdefs.h.  */
3100218822Sdim_ACEOF
3101218822Sdimcat confdefs.h >>conftest.$ac_ext
3102218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3103218822Sdim/* end confdefs.h.  */
3104218822Sdim
3105218822Sdimint
3106218822Sdimmain ()
3107218822Sdim{
3108218822Sdim
3109218822Sdim  ;
3110218822Sdim  return 0;
3111218822Sdim}
3112218822Sdim_ACEOF
3113218822Sdimac_clean_files_save=$ac_clean_files
3114218822Sdimac_clean_files="$ac_clean_files a.out a.exe b.out"
3115218822Sdim# Try to create an executable without -o first, disregard a.out.
3116218822Sdim# It will help us diagnose broken compilers, and finding out an intuition
3117218822Sdim# of exeext.
3118218822Sdimecho "$as_me:$LINENO: checking for C compiler default output file name" >&5
3119218822Sdimecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3120218822Sdimac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3121218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3122218822Sdim  (eval $ac_link_default) 2>&5
3123218822Sdim  ac_status=$?
3124218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125218822Sdim  (exit $ac_status); }; then
3126218822Sdim  # Find the output, starting from the most likely.  This scheme is
3127218822Sdim# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3128218822Sdim# resort.
3129218822Sdim
3130218822Sdim# Be careful to initialize this variable, since it used to be cached.
3131218822Sdim# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3132218822Sdimac_cv_exeext=
3133218822Sdim# b.out is created by i960 compilers.
3134218822Sdimfor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3135218822Sdimdo
3136218822Sdim  test -f "$ac_file" || continue
3137218822Sdim  case $ac_file in
3138218822Sdim    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3139218822Sdim	;;
3140218822Sdim    conftest.$ac_ext )
3141218822Sdim	# This is the source file.
3142218822Sdim	;;
3143218822Sdim    [ab].out )
3144218822Sdim	# We found the default executable, but exeext='' is most
3145218822Sdim	# certainly right.
3146218822Sdim	break;;
3147218822Sdim    *.* )
3148218822Sdim	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149218822Sdim	# FIXME: I believe we export ac_cv_exeext for Libtool,
3150218822Sdim	# but it would be cool to find out if it's true.  Does anybody
3151218822Sdim	# maintain Libtool? --akim.
3152218822Sdim	export ac_cv_exeext
3153218822Sdim	break;;
3154218822Sdim    * )
3155218822Sdim	break;;
3156218822Sdim  esac
3157218822Sdimdone
3158218822Sdimelse
3159218822Sdim  echo "$as_me: failed program was:" >&5
3160218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3161218822Sdim
3162218822Sdim{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3163218822SdimSee \`config.log' for more details." >&5
3164218822Sdimecho "$as_me: error: C compiler cannot create executables
3165218822SdimSee \`config.log' for more details." >&2;}
3166218822Sdim   { (exit 77); exit 77; }; }
3167218822Sdimfi
3168218822Sdim
3169218822Sdimac_exeext=$ac_cv_exeext
3170218822Sdimecho "$as_me:$LINENO: result: $ac_file" >&5
3171218822Sdimecho "${ECHO_T}$ac_file" >&6
3172218822Sdim
3173218822Sdim# Check the compiler produces executables we can run.  If not, either
3174218822Sdim# the compiler is broken, or we cross compile.
3175218822Sdimecho "$as_me:$LINENO: checking whether the C compiler works" >&5
3176218822Sdimecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3177218822Sdim# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3178218822Sdim# If not cross compiling, check that we can run a simple program.
3179218822Sdimif test "$cross_compiling" != yes; then
3180218822Sdim  if { ac_try='./$ac_file'
3181218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182218822Sdim  (eval $ac_try) 2>&5
3183218822Sdim  ac_status=$?
3184218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185218822Sdim  (exit $ac_status); }; }; then
3186218822Sdim    cross_compiling=no
3187218822Sdim  else
3188218822Sdim    if test "$cross_compiling" = maybe; then
3189218822Sdim	cross_compiling=yes
3190218822Sdim    else
3191218822Sdim	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3192218822SdimIf you meant to cross compile, use \`--host'.
3193218822SdimSee \`config.log' for more details." >&5
3194218822Sdimecho "$as_me: error: cannot run C compiled programs.
3195218822SdimIf you meant to cross compile, use \`--host'.
3196218822SdimSee \`config.log' for more details." >&2;}
3197218822Sdim   { (exit 1); exit 1; }; }
3198218822Sdim    fi
3199218822Sdim  fi
3200218822Sdimfi
3201218822Sdimecho "$as_me:$LINENO: result: yes" >&5
3202218822Sdimecho "${ECHO_T}yes" >&6
3203218822Sdim
3204218822Sdimrm -f a.out a.exe conftest$ac_cv_exeext b.out
3205218822Sdimac_clean_files=$ac_clean_files_save
3206218822Sdim# Check the compiler produces executables we can run.  If not, either
3207218822Sdim# the compiler is broken, or we cross compile.
3208218822Sdimecho "$as_me:$LINENO: checking whether we are cross compiling" >&5
3209218822Sdimecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3210218822Sdimecho "$as_me:$LINENO: result: $cross_compiling" >&5
3211218822Sdimecho "${ECHO_T}$cross_compiling" >&6
3212218822Sdim
3213218822Sdimecho "$as_me:$LINENO: checking for suffix of executables" >&5
3214218822Sdimecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3215218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3216218822Sdim  (eval $ac_link) 2>&5
3217218822Sdim  ac_status=$?
3218218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219218822Sdim  (exit $ac_status); }; then
3220218822Sdim  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221218822Sdim# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3222218822Sdim# work properly (i.e., refer to `conftest.exe'), while it won't with
3223218822Sdim# `rm'.
3224218822Sdimfor ac_file in conftest.exe conftest conftest.*; do
3225218822Sdim  test -f "$ac_file" || continue
3226218822Sdim  case $ac_file in
3227218822Sdim    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3228218822Sdim    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229218822Sdim	  export ac_cv_exeext
3230218822Sdim	  break;;
3231218822Sdim    * ) break;;
3232218822Sdim  esac
3233218822Sdimdone
3234218822Sdimelse
3235218822Sdim  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3236218822SdimSee \`config.log' for more details." >&5
3237218822Sdimecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
3238218822SdimSee \`config.log' for more details." >&2;}
3239218822Sdim   { (exit 1); exit 1; }; }
3240218822Sdimfi
3241218822Sdim
3242218822Sdimrm -f conftest$ac_cv_exeext
3243218822Sdimecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3244218822Sdimecho "${ECHO_T}$ac_cv_exeext" >&6
3245218822Sdim
3246218822Sdimrm -f conftest.$ac_ext
3247218822SdimEXEEXT=$ac_cv_exeext
3248218822Sdimac_exeext=$EXEEXT
3249218822Sdimecho "$as_me:$LINENO: checking for suffix of object files" >&5
3250218822Sdimecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3251218822Sdimif test "${ac_cv_objext+set}" = set; then
3252218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3253218822Sdimelse
3254218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3255218822Sdim/* confdefs.h.  */
3256218822Sdim_ACEOF
3257218822Sdimcat confdefs.h >>conftest.$ac_ext
3258218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3259218822Sdim/* end confdefs.h.  */
3260218822Sdim
3261218822Sdimint
3262218822Sdimmain ()
3263218822Sdim{
3264218822Sdim
3265218822Sdim  ;
3266218822Sdim  return 0;
3267218822Sdim}
3268218822Sdim_ACEOF
3269218822Sdimrm -f conftest.o conftest.obj
3270218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271218822Sdim  (eval $ac_compile) 2>&5
3272218822Sdim  ac_status=$?
3273218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274218822Sdim  (exit $ac_status); }; then
3275218822Sdim  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3276218822Sdim  case $ac_file in
3277218822Sdim    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3278218822Sdim    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279218822Sdim       break;;
3280218822Sdim  esac
3281218822Sdimdone
3282218822Sdimelse
3283218822Sdim  echo "$as_me: failed program was:" >&5
3284218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3285218822Sdim
3286218822Sdim{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3287218822SdimSee \`config.log' for more details." >&5
3288218822Sdimecho "$as_me: error: cannot compute suffix of object files: cannot compile
3289218822SdimSee \`config.log' for more details." >&2;}
3290218822Sdim   { (exit 1); exit 1; }; }
3291218822Sdimfi
3292218822Sdim
3293218822Sdimrm -f conftest.$ac_cv_objext conftest.$ac_ext
3294218822Sdimfi
3295218822Sdimecho "$as_me:$LINENO: result: $ac_cv_objext" >&5
3296218822Sdimecho "${ECHO_T}$ac_cv_objext" >&6
3297218822SdimOBJEXT=$ac_cv_objext
3298218822Sdimac_objext=$OBJEXT
3299218822Sdimecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3300218822Sdimecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3301218822Sdimif test "${ac_cv_c_compiler_gnu+set}" = set; then
3302218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3303218822Sdimelse
3304218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3305218822Sdim/* confdefs.h.  */
3306218822Sdim_ACEOF
3307218822Sdimcat confdefs.h >>conftest.$ac_ext
3308218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3309218822Sdim/* end confdefs.h.  */
3310218822Sdim
3311218822Sdimint
3312218822Sdimmain ()
3313218822Sdim{
3314218822Sdim#ifndef __GNUC__
3315218822Sdim       choke me
3316218822Sdim#endif
3317218822Sdim
3318218822Sdim  ;
3319218822Sdim  return 0;
3320218822Sdim}
3321218822Sdim_ACEOF
3322218822Sdimrm -f conftest.$ac_objext
3323218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324218822Sdim  (eval $ac_compile) 2>conftest.er1
3325218822Sdim  ac_status=$?
3326218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3327218822Sdim  rm -f conftest.er1
3328218822Sdim  cat conftest.err >&5
3329218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330218822Sdim  (exit $ac_status); } &&
3331218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3332218822Sdim			 || test ! -s conftest.err'
3333218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334218822Sdim  (eval $ac_try) 2>&5
3335218822Sdim  ac_status=$?
3336218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337218822Sdim  (exit $ac_status); }; } &&
3338218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3339218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340218822Sdim  (eval $ac_try) 2>&5
3341218822Sdim  ac_status=$?
3342218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343218822Sdim  (exit $ac_status); }; }; then
3344218822Sdim  ac_compiler_gnu=yes
3345218822Sdimelse
3346218822Sdim  echo "$as_me: failed program was:" >&5
3347218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3348218822Sdim
3349218822Sdimac_compiler_gnu=no
3350218822Sdimfi
3351218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352218822Sdimac_cv_c_compiler_gnu=$ac_compiler_gnu
3353218822Sdim
3354218822Sdimfi
3355218822Sdimecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3356218822Sdimecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3357218822SdimGCC=`test $ac_compiler_gnu = yes && echo yes`
3358218822Sdimac_test_CFLAGS=${CFLAGS+set}
3359218822Sdimac_save_CFLAGS=$CFLAGS
3360218822SdimCFLAGS="-g"
3361218822Sdimecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3362218822Sdimecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3363218822Sdimif test "${ac_cv_prog_cc_g+set}" = set; then
3364218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3365218822Sdimelse
3366218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3367218822Sdim/* confdefs.h.  */
3368218822Sdim_ACEOF
3369218822Sdimcat confdefs.h >>conftest.$ac_ext
3370218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3371218822Sdim/* end confdefs.h.  */
3372218822Sdim
3373218822Sdimint
3374218822Sdimmain ()
3375218822Sdim{
3376218822Sdim
3377218822Sdim  ;
3378218822Sdim  return 0;
3379218822Sdim}
3380218822Sdim_ACEOF
3381218822Sdimrm -f conftest.$ac_objext
3382218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383218822Sdim  (eval $ac_compile) 2>conftest.er1
3384218822Sdim  ac_status=$?
3385218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3386218822Sdim  rm -f conftest.er1
3387218822Sdim  cat conftest.err >&5
3388218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389218822Sdim  (exit $ac_status); } &&
3390218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3391218822Sdim			 || test ! -s conftest.err'
3392218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393218822Sdim  (eval $ac_try) 2>&5
3394218822Sdim  ac_status=$?
3395218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396218822Sdim  (exit $ac_status); }; } &&
3397218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3398218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399218822Sdim  (eval $ac_try) 2>&5
3400218822Sdim  ac_status=$?
3401218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402218822Sdim  (exit $ac_status); }; }; then
3403218822Sdim  ac_cv_prog_cc_g=yes
3404218822Sdimelse
3405218822Sdim  echo "$as_me: failed program was:" >&5
3406218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3407218822Sdim
3408218822Sdimac_cv_prog_cc_g=no
3409218822Sdimfi
3410218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3411218822Sdimfi
3412218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3413218822Sdimecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
3414218822Sdimif test "$ac_test_CFLAGS" = set; then
3415218822Sdim  CFLAGS=$ac_save_CFLAGS
3416218822Sdimelif test $ac_cv_prog_cc_g = yes; then
3417218822Sdim  if test "$GCC" = yes; then
3418218822Sdim    CFLAGS="-g -O2"
3419218822Sdim  else
3420218822Sdim    CFLAGS="-g"
3421218822Sdim  fi
3422218822Sdimelse
3423218822Sdim  if test "$GCC" = yes; then
3424218822Sdim    CFLAGS="-O2"
3425218822Sdim  else
3426218822Sdim    CFLAGS=
3427218822Sdim  fi
3428218822Sdimfi
3429218822Sdimecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3430218822Sdimecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3431218822Sdimif test "${ac_cv_prog_cc_stdc+set}" = set; then
3432218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3433218822Sdimelse
3434218822Sdim  ac_cv_prog_cc_stdc=no
3435218822Sdimac_save_CC=$CC
3436218822Sdimcat >conftest.$ac_ext <<_ACEOF
3437218822Sdim/* confdefs.h.  */
3438218822Sdim_ACEOF
3439218822Sdimcat confdefs.h >>conftest.$ac_ext
3440218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3441218822Sdim/* end confdefs.h.  */
3442218822Sdim#include <stdarg.h>
3443218822Sdim#include <stdio.h>
3444218822Sdim#include <sys/types.h>
3445218822Sdim#include <sys/stat.h>
3446218822Sdim/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3447218822Sdimstruct buf { int x; };
3448218822SdimFILE * (*rcsopen) (struct buf *, struct stat *, int);
3449218822Sdimstatic char *e (p, i)
3450218822Sdim     char **p;
3451218822Sdim     int i;
3452218822Sdim{
3453218822Sdim  return p[i];
3454218822Sdim}
3455218822Sdimstatic char *f (char * (*g) (char **, int), char **p, ...)
3456218822Sdim{
3457218822Sdim  char *s;
3458218822Sdim  va_list v;
3459218822Sdim  va_start (v,p);
3460218822Sdim  s = g (p, va_arg (v,int));
3461218822Sdim  va_end (v);
3462218822Sdim  return s;
3463218822Sdim}
3464218822Sdim
3465218822Sdim/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3466218822Sdim   function prototypes and stuff, but not '\xHH' hex character constants.
3467218822Sdim   These don't provoke an error unfortunately, instead are silently treated
3468218822Sdim   as 'x'.  The following induces an error, until -std1 is added to get
3469218822Sdim   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3470218822Sdim   array size at least.  It's necessary to write '\x00'==0 to get something
3471218822Sdim   that's true only with -std1.  */
3472218822Sdimint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473218822Sdim
3474218822Sdimint test (int i, double x);
3475218822Sdimstruct s1 {int (*f) (int a);};
3476218822Sdimstruct s2 {int (*f) (double a);};
3477218822Sdimint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3478218822Sdimint argc;
3479218822Sdimchar **argv;
3480218822Sdimint
3481218822Sdimmain ()
3482218822Sdim{
3483218822Sdimreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3484218822Sdim  ;
3485218822Sdim  return 0;
3486218822Sdim}
3487218822Sdim_ACEOF
3488218822Sdim# Don't try gcc -ansi; that turns off useful extensions and
3489218822Sdim# breaks some systems' header files.
3490218822Sdim# AIX			-qlanglvl=ansi
3491218822Sdim# Ultrix and OSF/1	-std1
3492218822Sdim# HP-UX 10.20 and later	-Ae
3493218822Sdim# HP-UX older versions	-Aa -D_HPUX_SOURCE
3494218822Sdim# SVR4			-Xc -D__EXTENSIONS__
3495218822Sdimfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3496218822Sdimdo
3497218822Sdim  CC="$ac_save_CC $ac_arg"
3498218822Sdim  rm -f conftest.$ac_objext
3499218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500218822Sdim  (eval $ac_compile) 2>conftest.er1
3501218822Sdim  ac_status=$?
3502218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3503218822Sdim  rm -f conftest.er1
3504218822Sdim  cat conftest.err >&5
3505218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506218822Sdim  (exit $ac_status); } &&
3507218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3508218822Sdim			 || test ! -s conftest.err'
3509218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510218822Sdim  (eval $ac_try) 2>&5
3511218822Sdim  ac_status=$?
3512218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513218822Sdim  (exit $ac_status); }; } &&
3514218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3515218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516218822Sdim  (eval $ac_try) 2>&5
3517218822Sdim  ac_status=$?
3518218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519218822Sdim  (exit $ac_status); }; }; then
3520218822Sdim  ac_cv_prog_cc_stdc=$ac_arg
3521218822Sdimbreak
3522218822Sdimelse
3523218822Sdim  echo "$as_me: failed program was:" >&5
3524218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3525218822Sdim
3526218822Sdimfi
3527218822Sdimrm -f conftest.err conftest.$ac_objext
3528218822Sdimdone
3529218822Sdimrm -f conftest.$ac_ext conftest.$ac_objext
3530218822SdimCC=$ac_save_CC
3531218822Sdim
3532218822Sdimfi
3533218822Sdim
3534218822Sdimcase "x$ac_cv_prog_cc_stdc" in
3535218822Sdim  x|xno)
3536218822Sdim    echo "$as_me:$LINENO: result: none needed" >&5
3537218822Sdimecho "${ECHO_T}none needed" >&6 ;;
3538218822Sdim  *)
3539218822Sdim    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3540218822Sdimecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3541218822Sdim    CC="$CC $ac_cv_prog_cc_stdc" ;;
3542218822Sdimesac
3543218822Sdim
3544218822Sdim# Some people use a C++ compiler to compile C.  Since we use `exit',
3545218822Sdim# in C++ we need to declare it.  In case someone uses the same compiler
3546218822Sdim# for both compiling C and C++ we need to have the C++ compiler decide
3547218822Sdim# the declaration of exit, since it's the most demanding environment.
3548218822Sdimcat >conftest.$ac_ext <<_ACEOF
3549218822Sdim#ifndef __cplusplus
3550218822Sdim  choke me
3551218822Sdim#endif
3552218822Sdim_ACEOF
3553218822Sdimrm -f conftest.$ac_objext
3554218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555218822Sdim  (eval $ac_compile) 2>conftest.er1
3556218822Sdim  ac_status=$?
3557218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3558218822Sdim  rm -f conftest.er1
3559218822Sdim  cat conftest.err >&5
3560218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561218822Sdim  (exit $ac_status); } &&
3562218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3563218822Sdim			 || test ! -s conftest.err'
3564218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565218822Sdim  (eval $ac_try) 2>&5
3566218822Sdim  ac_status=$?
3567218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568218822Sdim  (exit $ac_status); }; } &&
3569218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3570218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571218822Sdim  (eval $ac_try) 2>&5
3572218822Sdim  ac_status=$?
3573218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574218822Sdim  (exit $ac_status); }; }; then
3575218822Sdim  for ac_declaration in \
3576218822Sdim   '' \
3577218822Sdim   'extern "C" void std::exit (int) throw (); using std::exit;' \
3578218822Sdim   'extern "C" void std::exit (int); using std::exit;' \
3579218822Sdim   'extern "C" void exit (int) throw ();' \
3580218822Sdim   'extern "C" void exit (int);' \
3581218822Sdim   'void exit (int);'
3582218822Sdimdo
3583218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3584218822Sdim/* confdefs.h.  */
3585218822Sdim_ACEOF
3586218822Sdimcat confdefs.h >>conftest.$ac_ext
3587218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3588218822Sdim/* end confdefs.h.  */
3589218822Sdim$ac_declaration
3590218822Sdim#include <stdlib.h>
3591218822Sdimint
3592218822Sdimmain ()
3593218822Sdim{
3594218822Sdimexit (42);
3595218822Sdim  ;
3596218822Sdim  return 0;
3597218822Sdim}
3598218822Sdim_ACEOF
3599218822Sdimrm -f conftest.$ac_objext
3600218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601218822Sdim  (eval $ac_compile) 2>conftest.er1
3602218822Sdim  ac_status=$?
3603218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3604218822Sdim  rm -f conftest.er1
3605218822Sdim  cat conftest.err >&5
3606218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607218822Sdim  (exit $ac_status); } &&
3608218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3609218822Sdim			 || test ! -s conftest.err'
3610218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611218822Sdim  (eval $ac_try) 2>&5
3612218822Sdim  ac_status=$?
3613218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614218822Sdim  (exit $ac_status); }; } &&
3615218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3616218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617218822Sdim  (eval $ac_try) 2>&5
3618218822Sdim  ac_status=$?
3619218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620218822Sdim  (exit $ac_status); }; }; then
3621218822Sdim  :
3622218822Sdimelse
3623218822Sdim  echo "$as_me: failed program was:" >&5
3624218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3625218822Sdim
3626218822Sdimcontinue
3627218822Sdimfi
3628218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3629218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3630218822Sdim/* confdefs.h.  */
3631218822Sdim_ACEOF
3632218822Sdimcat confdefs.h >>conftest.$ac_ext
3633218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3634218822Sdim/* end confdefs.h.  */
3635218822Sdim$ac_declaration
3636218822Sdimint
3637218822Sdimmain ()
3638218822Sdim{
3639218822Sdimexit (42);
3640218822Sdim  ;
3641218822Sdim  return 0;
3642218822Sdim}
3643218822Sdim_ACEOF
3644218822Sdimrm -f conftest.$ac_objext
3645218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646218822Sdim  (eval $ac_compile) 2>conftest.er1
3647218822Sdim  ac_status=$?
3648218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3649218822Sdim  rm -f conftest.er1
3650218822Sdim  cat conftest.err >&5
3651218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652218822Sdim  (exit $ac_status); } &&
3653218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
3654218822Sdim			 || test ! -s conftest.err'
3655218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656218822Sdim  (eval $ac_try) 2>&5
3657218822Sdim  ac_status=$?
3658218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659218822Sdim  (exit $ac_status); }; } &&
3660218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3661218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662218822Sdim  (eval $ac_try) 2>&5
3663218822Sdim  ac_status=$?
3664218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665218822Sdim  (exit $ac_status); }; }; then
3666218822Sdim  break
3667218822Sdimelse
3668218822Sdim  echo "$as_me: failed program was:" >&5
3669218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3670218822Sdim
3671218822Sdimfi
3672218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3673218822Sdimdone
3674218822Sdimrm -f conftest*
3675218822Sdimif test -n "$ac_declaration"; then
3676218822Sdim  echo '#ifdef __cplusplus' >>confdefs.h
3677218822Sdim  echo $ac_declaration      >>confdefs.h
3678218822Sdim  echo '#endif'             >>confdefs.h
3679218822Sdimfi
3680218822Sdim
3681218822Sdimelse
3682218822Sdim  echo "$as_me: failed program was:" >&5
3683218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3684218822Sdim
3685218822Sdimfi
3686218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687218822Sdimac_ext=c
3688218822Sdimac_cpp='$CPP $CPPFLAGS'
3689218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
3692218822Sdim
3693218822Sdimac_ext=cc
3694218822Sdimac_cpp='$CXXCPP $CPPFLAGS'
3695218822Sdimac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696218822Sdimac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697218822Sdimac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3698218822Sdimif test -n "$ac_tool_prefix"; then
3699218822Sdim  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3700218822Sdim  do
3701218822Sdim    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3702218822Sdimset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3703218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3704218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705218822Sdimif test "${ac_cv_prog_CXX+set}" = set; then
3706218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3707218822Sdimelse
3708218822Sdim  if test -n "$CXX"; then
3709218822Sdim  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3710218822Sdimelse
3711218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712218822Sdimfor as_dir in $PATH
3713218822Sdimdo
3714218822Sdim  IFS=$as_save_IFS
3715218822Sdim  test -z "$as_dir" && as_dir=.
3716218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3717218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718218822Sdim    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3719218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720218822Sdim    break 2
3721218822Sdim  fi
3722218822Sdimdone
3723218822Sdimdone
3724218822Sdim
3725218822Sdimfi
3726218822Sdimfi
3727218822SdimCXX=$ac_cv_prog_CXX
3728218822Sdimif test -n "$CXX"; then
3729218822Sdim  echo "$as_me:$LINENO: result: $CXX" >&5
3730218822Sdimecho "${ECHO_T}$CXX" >&6
3731218822Sdimelse
3732218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3733218822Sdimecho "${ECHO_T}no" >&6
3734218822Sdimfi
3735218822Sdim
3736218822Sdim    test -n "$CXX" && break
3737218822Sdim  done
3738218822Sdimfi
3739218822Sdimif test -z "$CXX"; then
3740218822Sdim  ac_ct_CXX=$CXX
3741218822Sdim  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3742218822Sdimdo
3743218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
3744218822Sdimset dummy $ac_prog; ac_word=$2
3745218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
3746218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747218822Sdimif test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3748218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3749218822Sdimelse
3750218822Sdim  if test -n "$ac_ct_CXX"; then
3751218822Sdim  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3752218822Sdimelse
3753218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754218822Sdimfor as_dir in $PATH
3755218822Sdimdo
3756218822Sdim  IFS=$as_save_IFS
3757218822Sdim  test -z "$as_dir" && as_dir=.
3758218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
3759218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760218822Sdim    ac_cv_prog_ac_ct_CXX="$ac_prog"
3761218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762218822Sdim    break 2
3763218822Sdim  fi
3764218822Sdimdone
3765218822Sdimdone
3766218822Sdim
3767218822Sdimfi
3768218822Sdimfi
3769218822Sdimac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3770218822Sdimif test -n "$ac_ct_CXX"; then
3771218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3772218822Sdimecho "${ECHO_T}$ac_ct_CXX" >&6
3773218822Sdimelse
3774218822Sdim  echo "$as_me:$LINENO: result: no" >&5
3775218822Sdimecho "${ECHO_T}no" >&6
3776218822Sdimfi
3777218822Sdim
3778218822Sdim  test -n "$ac_ct_CXX" && break
3779218822Sdimdone
3780218822Sdimtest -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3781218822Sdim
3782218822Sdim  CXX=$ac_ct_CXX
3783218822Sdimfi
3784218822Sdim
3785218822Sdim
3786218822Sdim# Provide some information about the compiler.
3787218822Sdimecho "$as_me:$LINENO:" \
3788218822Sdim     "checking for C++ compiler version" >&5
3789218822Sdimac_compiler=`set X $ac_compile; echo $2`
3790218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3791218822Sdim  (eval $ac_compiler --version </dev/null >&5) 2>&5
3792218822Sdim  ac_status=$?
3793218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794218822Sdim  (exit $ac_status); }
3795218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3796218822Sdim  (eval $ac_compiler -v </dev/null >&5) 2>&5
3797218822Sdim  ac_status=$?
3798218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799218822Sdim  (exit $ac_status); }
3800218822Sdim{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3801218822Sdim  (eval $ac_compiler -V </dev/null >&5) 2>&5
3802218822Sdim  ac_status=$?
3803218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804218822Sdim  (exit $ac_status); }
3805218822Sdim
3806218822Sdimecho "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3807218822Sdimecho $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3808218822Sdimif test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3809218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3810218822Sdimelse
3811218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3812218822Sdim/* confdefs.h.  */
3813218822Sdim_ACEOF
3814218822Sdimcat confdefs.h >>conftest.$ac_ext
3815218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3816218822Sdim/* end confdefs.h.  */
3817218822Sdim
3818218822Sdimint
3819218822Sdimmain ()
3820218822Sdim{
3821218822Sdim#ifndef __GNUC__
3822218822Sdim       choke me
3823218822Sdim#endif
3824218822Sdim
3825218822Sdim  ;
3826218822Sdim  return 0;
3827218822Sdim}
3828218822Sdim_ACEOF
3829218822Sdimrm -f conftest.$ac_objext
3830218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831218822Sdim  (eval $ac_compile) 2>conftest.er1
3832218822Sdim  ac_status=$?
3833218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3834218822Sdim  rm -f conftest.er1
3835218822Sdim  cat conftest.err >&5
3836218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837218822Sdim  (exit $ac_status); } &&
3838218822Sdim	 { ac_try='test -z "$ac_cxx_werror_flag"
3839218822Sdim			 || test ! -s conftest.err'
3840218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841218822Sdim  (eval $ac_try) 2>&5
3842218822Sdim  ac_status=$?
3843218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844218822Sdim  (exit $ac_status); }; } &&
3845218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3846218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847218822Sdim  (eval $ac_try) 2>&5
3848218822Sdim  ac_status=$?
3849218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850218822Sdim  (exit $ac_status); }; }; then
3851218822Sdim  ac_compiler_gnu=yes
3852218822Sdimelse
3853218822Sdim  echo "$as_me: failed program was:" >&5
3854218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3855218822Sdim
3856218822Sdimac_compiler_gnu=no
3857218822Sdimfi
3858218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859218822Sdimac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3860218822Sdim
3861218822Sdimfi
3862218822Sdimecho "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3863218822Sdimecho "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3864218822SdimGXX=`test $ac_compiler_gnu = yes && echo yes`
3865218822Sdimac_test_CXXFLAGS=${CXXFLAGS+set}
3866218822Sdimac_save_CXXFLAGS=$CXXFLAGS
3867218822SdimCXXFLAGS="-g"
3868218822Sdimecho "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3869218822Sdimecho $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3870218822Sdimif test "${ac_cv_prog_cxx_g+set}" = set; then
3871218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
3872218822Sdimelse
3873218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3874218822Sdim/* confdefs.h.  */
3875218822Sdim_ACEOF
3876218822Sdimcat confdefs.h >>conftest.$ac_ext
3877218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3878218822Sdim/* end confdefs.h.  */
3879218822Sdim
3880218822Sdimint
3881218822Sdimmain ()
3882218822Sdim{
3883218822Sdim
3884218822Sdim  ;
3885218822Sdim  return 0;
3886218822Sdim}
3887218822Sdim_ACEOF
3888218822Sdimrm -f conftest.$ac_objext
3889218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3890218822Sdim  (eval $ac_compile) 2>conftest.er1
3891218822Sdim  ac_status=$?
3892218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3893218822Sdim  rm -f conftest.er1
3894218822Sdim  cat conftest.err >&5
3895218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896218822Sdim  (exit $ac_status); } &&
3897218822Sdim	 { ac_try='test -z "$ac_cxx_werror_flag"
3898218822Sdim			 || test ! -s conftest.err'
3899218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900218822Sdim  (eval $ac_try) 2>&5
3901218822Sdim  ac_status=$?
3902218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903218822Sdim  (exit $ac_status); }; } &&
3904218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3905218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906218822Sdim  (eval $ac_try) 2>&5
3907218822Sdim  ac_status=$?
3908218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909218822Sdim  (exit $ac_status); }; }; then
3910218822Sdim  ac_cv_prog_cxx_g=yes
3911218822Sdimelse
3912218822Sdim  echo "$as_me: failed program was:" >&5
3913218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3914218822Sdim
3915218822Sdimac_cv_prog_cxx_g=no
3916218822Sdimfi
3917218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3918218822Sdimfi
3919218822Sdimecho "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3920218822Sdimecho "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3921218822Sdimif test "$ac_test_CXXFLAGS" = set; then
3922218822Sdim  CXXFLAGS=$ac_save_CXXFLAGS
3923218822Sdimelif test $ac_cv_prog_cxx_g = yes; then
3924218822Sdim  if test "$GXX" = yes; then
3925218822Sdim    CXXFLAGS="-g -O2"
3926218822Sdim  else
3927218822Sdim    CXXFLAGS="-g"
3928218822Sdim  fi
3929218822Sdimelse
3930218822Sdim  if test "$GXX" = yes; then
3931218822Sdim    CXXFLAGS="-O2"
3932218822Sdim  else
3933218822Sdim    CXXFLAGS=
3934218822Sdim  fi
3935218822Sdimfi
3936218822Sdimfor ac_declaration in \
3937218822Sdim   '' \
3938218822Sdim   'extern "C" void std::exit (int) throw (); using std::exit;' \
3939218822Sdim   'extern "C" void std::exit (int); using std::exit;' \
3940218822Sdim   'extern "C" void exit (int) throw ();' \
3941218822Sdim   'extern "C" void exit (int);' \
3942218822Sdim   'void exit (int);'
3943218822Sdimdo
3944218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3945218822Sdim/* confdefs.h.  */
3946218822Sdim_ACEOF
3947218822Sdimcat confdefs.h >>conftest.$ac_ext
3948218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3949218822Sdim/* end confdefs.h.  */
3950218822Sdim$ac_declaration
3951218822Sdim#include <stdlib.h>
3952218822Sdimint
3953218822Sdimmain ()
3954218822Sdim{
3955218822Sdimexit (42);
3956218822Sdim  ;
3957218822Sdim  return 0;
3958218822Sdim}
3959218822Sdim_ACEOF
3960218822Sdimrm -f conftest.$ac_objext
3961218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962218822Sdim  (eval $ac_compile) 2>conftest.er1
3963218822Sdim  ac_status=$?
3964218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
3965218822Sdim  rm -f conftest.er1
3966218822Sdim  cat conftest.err >&5
3967218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968218822Sdim  (exit $ac_status); } &&
3969218822Sdim	 { ac_try='test -z "$ac_cxx_werror_flag"
3970218822Sdim			 || test ! -s conftest.err'
3971218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972218822Sdim  (eval $ac_try) 2>&5
3973218822Sdim  ac_status=$?
3974218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975218822Sdim  (exit $ac_status); }; } &&
3976218822Sdim	 { ac_try='test -s conftest.$ac_objext'
3977218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978218822Sdim  (eval $ac_try) 2>&5
3979218822Sdim  ac_status=$?
3980218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981218822Sdim  (exit $ac_status); }; }; then
3982218822Sdim  :
3983218822Sdimelse
3984218822Sdim  echo "$as_me: failed program was:" >&5
3985218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
3986218822Sdim
3987218822Sdimcontinue
3988218822Sdimfi
3989218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3990218822Sdim  cat >conftest.$ac_ext <<_ACEOF
3991218822Sdim/* confdefs.h.  */
3992218822Sdim_ACEOF
3993218822Sdimcat confdefs.h >>conftest.$ac_ext
3994218822Sdimcat >>conftest.$ac_ext <<_ACEOF
3995218822Sdim/* end confdefs.h.  */
3996218822Sdim$ac_declaration
3997218822Sdimint
3998218822Sdimmain ()
3999218822Sdim{
4000218822Sdimexit (42);
4001218822Sdim  ;
4002218822Sdim  return 0;
4003218822Sdim}
4004218822Sdim_ACEOF
4005218822Sdimrm -f conftest.$ac_objext
4006218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4007218822Sdim  (eval $ac_compile) 2>conftest.er1
4008218822Sdim  ac_status=$?
4009218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
4010218822Sdim  rm -f conftest.er1
4011218822Sdim  cat conftest.err >&5
4012218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013218822Sdim  (exit $ac_status); } &&
4014218822Sdim	 { ac_try='test -z "$ac_cxx_werror_flag"
4015218822Sdim			 || test ! -s conftest.err'
4016218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017218822Sdim  (eval $ac_try) 2>&5
4018218822Sdim  ac_status=$?
4019218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020218822Sdim  (exit $ac_status); }; } &&
4021218822Sdim	 { ac_try='test -s conftest.$ac_objext'
4022218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023218822Sdim  (eval $ac_try) 2>&5
4024218822Sdim  ac_status=$?
4025218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026218822Sdim  (exit $ac_status); }; }; then
4027218822Sdim  break
4028218822Sdimelse
4029218822Sdim  echo "$as_me: failed program was:" >&5
4030218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
4031218822Sdim
4032218822Sdimfi
4033218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4034218822Sdimdone
4035218822Sdimrm -f conftest*
4036218822Sdimif test -n "$ac_declaration"; then
4037218822Sdim  echo '#ifdef __cplusplus' >>confdefs.h
4038218822Sdim  echo $ac_declaration      >>confdefs.h
4039218822Sdim  echo '#endif'             >>confdefs.h
4040218822Sdimfi
4041218822Sdim
4042218822Sdimac_ext=c
4043218822Sdimac_cpp='$CPP $CPPFLAGS'
4044218822Sdimac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045218822Sdimac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046218822Sdimac_compiler_gnu=$ac_cv_c_compiler_gnu
4047218822Sdim
4048218822Sdim
4049218822Sdim# We must set the default linker to the linker used by gcc for the correct
4050218822Sdim# operation of libtool.  If LD is not defined and we are using gcc, try to
4051218822Sdim# set the LD default to the ld used by gcc.
4052218822Sdimif test -z "$LD"; then
4053218822Sdim  if test "$GCC" = yes; then
4054218822Sdim    case $build in
4055218822Sdim    *-*-mingw*)
4056218822Sdim      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4057218822Sdim    *)
4058218822Sdim      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4059218822Sdim    esac
4060218822Sdim    case $gcc_prog_ld in
4061218822Sdim    # Accept absolute paths.
4062218822Sdim    [\\/]* | [A-Za-z]:[\\/]*)
4063218822Sdim      LD="$gcc_prog_ld" ;;
4064218822Sdim    esac
4065218822Sdim  fi
4066218822Sdimfi
4067218822Sdim
4068218822Sdim
4069218822Sdim
4070218822Sdim
4071218822Sdimif test -n "$ac_tool_prefix"; then
4072218822Sdim  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4073218822Sdimset dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4074218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
4075218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076218822Sdimif test "${ac_cv_prog_GNATBIND+set}" = set; then
4077218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4078218822Sdimelse
4079218822Sdim  if test -n "$GNATBIND"; then
4080218822Sdim  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4081218822Sdimelse
4082218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083218822Sdimfor as_dir in $PATH
4084218822Sdimdo
4085218822Sdim  IFS=$as_save_IFS
4086218822Sdim  test -z "$as_dir" && as_dir=.
4087218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
4088218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089218822Sdim    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4090218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091218822Sdim    break 2
4092218822Sdim  fi
4093218822Sdimdone
4094218822Sdimdone
4095218822Sdim
4096218822Sdimfi
4097218822Sdimfi
4098218822SdimGNATBIND=$ac_cv_prog_GNATBIND
4099218822Sdimif test -n "$GNATBIND"; then
4100218822Sdim  echo "$as_me:$LINENO: result: $GNATBIND" >&5
4101218822Sdimecho "${ECHO_T}$GNATBIND" >&6
4102218822Sdimelse
4103218822Sdim  echo "$as_me:$LINENO: result: no" >&5
4104218822Sdimecho "${ECHO_T}no" >&6
4105218822Sdimfi
4106218822Sdim
4107218822Sdimfi
4108218822Sdimif test -z "$ac_cv_prog_GNATBIND"; then
4109218822Sdim  ac_ct_GNATBIND=$GNATBIND
4110218822Sdim  # Extract the first word of "gnatbind", so it can be a program name with args.
4111218822Sdimset dummy gnatbind; ac_word=$2
4112218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
4113218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114218822Sdimif test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4115218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4116218822Sdimelse
4117218822Sdim  if test -n "$ac_ct_GNATBIND"; then
4118218822Sdim  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4119218822Sdimelse
4120218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121218822Sdimfor as_dir in $PATH
4122218822Sdimdo
4123218822Sdim  IFS=$as_save_IFS
4124218822Sdim  test -z "$as_dir" && as_dir=.
4125218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
4126218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127218822Sdim    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4128218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129218822Sdim    break 2
4130218822Sdim  fi
4131218822Sdimdone
4132218822Sdimdone
4133218822Sdim
4134218822Sdim  test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4135218822Sdimfi
4136218822Sdimfi
4137218822Sdimac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4138218822Sdimif test -n "$ac_ct_GNATBIND"; then
4139218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4140218822Sdimecho "${ECHO_T}$ac_ct_GNATBIND" >&6
4141218822Sdimelse
4142218822Sdim  echo "$as_me:$LINENO: result: no" >&5
4143218822Sdimecho "${ECHO_T}no" >&6
4144218822Sdimfi
4145218822Sdim
4146218822Sdim  GNATBIND=$ac_ct_GNATBIND
4147218822Sdimelse
4148218822Sdim  GNATBIND="$ac_cv_prog_GNATBIND"
4149218822Sdimfi
4150218822Sdim
4151218822Sdimif test -n "$ac_tool_prefix"; then
4152218822Sdim  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4153218822Sdimset dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4154218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
4155218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156218822Sdimif test "${ac_cv_prog_GNATMAKE+set}" = set; then
4157218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4158218822Sdimelse
4159218822Sdim  if test -n "$GNATMAKE"; then
4160218822Sdim  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4161218822Sdimelse
4162218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163218822Sdimfor as_dir in $PATH
4164218822Sdimdo
4165218822Sdim  IFS=$as_save_IFS
4166218822Sdim  test -z "$as_dir" && as_dir=.
4167218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
4168218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169218822Sdim    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4170218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171218822Sdim    break 2
4172218822Sdim  fi
4173218822Sdimdone
4174218822Sdimdone
4175218822Sdim
4176218822Sdimfi
4177218822Sdimfi
4178218822SdimGNATMAKE=$ac_cv_prog_GNATMAKE
4179218822Sdimif test -n "$GNATMAKE"; then
4180218822Sdim  echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4181218822Sdimecho "${ECHO_T}$GNATMAKE" >&6
4182218822Sdimelse
4183218822Sdim  echo "$as_me:$LINENO: result: no" >&5
4184218822Sdimecho "${ECHO_T}no" >&6
4185218822Sdimfi
4186218822Sdim
4187218822Sdimfi
4188218822Sdimif test -z "$ac_cv_prog_GNATMAKE"; then
4189218822Sdim  ac_ct_GNATMAKE=$GNATMAKE
4190218822Sdim  # Extract the first word of "gnatmake", so it can be a program name with args.
4191218822Sdimset dummy gnatmake; ac_word=$2
4192218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
4193218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194218822Sdimif test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4195218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4196218822Sdimelse
4197218822Sdim  if test -n "$ac_ct_GNATMAKE"; then
4198218822Sdim  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4199218822Sdimelse
4200218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201218822Sdimfor as_dir in $PATH
4202218822Sdimdo
4203218822Sdim  IFS=$as_save_IFS
4204218822Sdim  test -z "$as_dir" && as_dir=.
4205218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
4206218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207218822Sdim    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4208218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209218822Sdim    break 2
4210218822Sdim  fi
4211218822Sdimdone
4212218822Sdimdone
4213218822Sdim
4214218822Sdim  test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4215218822Sdimfi
4216218822Sdimfi
4217218822Sdimac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4218218822Sdimif test -n "$ac_ct_GNATMAKE"; then
4219218822Sdim  echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4220218822Sdimecho "${ECHO_T}$ac_ct_GNATMAKE" >&6
4221218822Sdimelse
4222218822Sdim  echo "$as_me:$LINENO: result: no" >&5
4223218822Sdimecho "${ECHO_T}no" >&6
4224218822Sdimfi
4225218822Sdim
4226218822Sdim  GNATMAKE=$ac_ct_GNATMAKE
4227218822Sdimelse
4228218822Sdim  GNATMAKE="$ac_cv_prog_GNATMAKE"
4229218822Sdimfi
4230218822Sdim
4231218822Sdimecho "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4232218822Sdimecho $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4233218822Sdimif test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4234218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4235218822Sdimelse
4236218822Sdim  cat >conftest.adb <<EOF
4237218822Sdimprocedure conftest is begin null; end conftest;
4238218822SdimEOF
4239218822Sdimacx_cv_cc_gcc_supports_ada=no
4240218822Sdim# There is a bug in old released versions of GCC which causes the
4241218822Sdim# driver to exit successfully when the appropriate language module
4242218822Sdim# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4243218822Sdim# Therefore we must check for the error message as well as an
4244218822Sdim# unsuccessful exit.
4245218822Sdim# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4246218822Sdim# given a .adb file, but produce no object file.  So we must check
4247218822Sdim# if an object file was really produced to guard against this.
4248218822Sdimerrors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4249218822Sdimif test x"$errors" = x && test -f conftest.$ac_objext; then
4250218822Sdim  acx_cv_cc_gcc_supports_ada=yes
4251218822Sdimfi
4252218822Sdimrm -f conftest.*
4253218822Sdimfi
4254218822Sdimecho "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4255218822Sdimecho "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4256218822Sdim
4257218822Sdimif test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4258218822Sdim  have_gnat=yes
4259218822Sdimelse
4260218822Sdim  have_gnat=no
4261218822Sdimfi
4262218822Sdim
4263218822Sdimecho "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4264218822Sdimecho $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4265218822Sdimif test "${gcc_cv_prog_cmp_skip+set}" = set; then
4266218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
4267218822Sdimelse
4268218822Sdim   echo abfoo >t1
4269218822Sdim  echo cdfoo >t2
4270218822Sdim  gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4271218822Sdim  if cmp t1 t2 2 2 > /dev/null 2>&1; then
4272218822Sdim    if cmp t1 t2 1 1 > /dev/null 2>&1; then
4273218822Sdim      :
4274218822Sdim    else
4275218822Sdim      gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4276218822Sdim    fi
4277218822Sdim  fi
4278218822Sdim  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4279218822Sdim    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4280218822Sdim      :
4281218822Sdim    else
4282218822Sdim      gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4283218822Sdim    fi
4284218822Sdim  fi
4285218822Sdim  rm t1 t2
4286218822Sdim
4287218822Sdimfi
4288218822Sdimecho "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4289218822Sdimecho "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4290218822Sdimdo_compare="$gcc_cv_prog_cmp_skip"
4291218822Sdim
4292218822Sdim
4293218822Sdim
4294218822Sdim# Check for GMP and MPFR
4295218822Sdimgmplibs="-lmpfr -lgmp"
4296218822Sdimgmpinc=
4297218822Sdimhave_gmp=no
4298218822Sdim
4299218822Sdim# Specify a location for mpfr
4300218822Sdim# check for this first so it ends up on the link line before gmp.
4301218822Sdim
4302218822Sdim# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4303218822Sdimif test "${with_mpfr_dir+set}" = set; then
4304218822Sdim  withval="$with_mpfr_dir"
4305218822Sdim  { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4306218822SdimUse --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4307218822Sdimecho "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4308218822SdimUse --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4309218822Sdim   { (exit 1); exit 1; }; }
4310218822Sdimfi;
4311218822Sdim
4312218822Sdim
4313218822Sdim# Check whether --with-mpfr or --without-mpfr was given.
4314218822Sdimif test "${with_mpfr+set}" = set; then
4315218822Sdim  withval="$with_mpfr"
4316218822Sdim
4317218822Sdimfi;
4318218822Sdim
4319218822Sdim# Check whether --with-mpfr_include or --without-mpfr_include was given.
4320218822Sdimif test "${with_mpfr_include+set}" = set; then
4321218822Sdim  withval="$with_mpfr_include"
4322218822Sdim
4323218822Sdimfi;
4324218822Sdim
4325218822Sdim# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4326218822Sdimif test "${with_mpfr_lib+set}" = set; then
4327218822Sdim  withval="$with_mpfr_lib"
4328218822Sdim
4329218822Sdimfi;
4330218822Sdim
4331218822Sdimif test "x$with_mpfr" != x; then
4332218822Sdim  gmplibs="-L$with_mpfr/lib $gmplibs"
4333218822Sdim  gmpinc="-I$with_mpfr/include"
4334218822Sdimfi
4335218822Sdimif test "x$with_mpfr_include" != x; then
4336218822Sdim  gmpinc="-I$with_mpfr_include"
4337218822Sdimfi
4338218822Sdimif test "x$with_mpfr_lib" != x; then
4339218822Sdim  gmplibs="-L$with_mpfr_lib $gmplibs"
4340218822Sdimfi
4341218822Sdimif test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4342218822Sdim  gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4343218822Sdim  gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4344218822Sdim  # Do not test the mpfr version.  Assume that it is sufficient, since
4345218822Sdim  # it is in the source tree, and the library has not been built yet
4346218822Sdim  # but it would be included on the link line in the version check below
4347218822Sdim  # hence making the test fail.
4348218822Sdim  have_gmp=yes
4349218822Sdimfi
4350218822Sdim
4351218822Sdim# Specify a location for gmp
4352218822Sdim
4353218822Sdim# Check whether --with-gmp-dir or --without-gmp-dir was given.
4354218822Sdimif test "${with_gmp_dir+set}" = set; then
4355218822Sdim  withval="$with_gmp_dir"
4356218822Sdim  { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4357218822SdimUse --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4358218822Sdimecho "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4359218822SdimUse --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4360218822Sdim   { (exit 1); exit 1; }; }
4361218822Sdimfi;
4362218822Sdim
4363218822Sdim
4364218822Sdim# Check whether --with-gmp or --without-gmp was given.
4365218822Sdimif test "${with_gmp+set}" = set; then
4366218822Sdim  withval="$with_gmp"
4367218822Sdim
4368218822Sdimfi;
4369218822Sdim
4370218822Sdim# Check whether --with-gmp_include or --without-gmp_include was given.
4371218822Sdimif test "${with_gmp_include+set}" = set; then
4372218822Sdim  withval="$with_gmp_include"
4373218822Sdim
4374218822Sdimfi;
4375218822Sdim
4376218822Sdim# Check whether --with-gmp_lib or --without-gmp_lib was given.
4377218822Sdimif test "${with_gmp_lib+set}" = set; then
4378218822Sdim  withval="$with_gmp_lib"
4379218822Sdim
4380218822Sdimfi;
4381218822Sdim
4382218822Sdim
4383218822Sdimif test "x$with_gmp" != x; then
4384218822Sdim  gmplibs="-L$with_gmp/lib $gmplibs"
4385218822Sdim  gmpinc="-I$with_gmp/include $gmpinc"
4386218822Sdimfi
4387218822Sdimif test "x$with_gmp_include" != x; then
4388218822Sdim  gmpinc="-I$with_gmp_include $gmpinc"
4389218822Sdimfi
4390218822Sdimif test "x$with_gmp_lib" != x; then
4391218822Sdim  gmplibs="-L$with_gmp_lib $gmplibs"
4392218822Sdimfi
4393218822Sdimif test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4394218822Sdim  gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4395218822Sdim  gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4396218822Sdim  # Do not test the gmp version.  Assume that it is sufficient, since
4397218822Sdim  # it is in the source tree, and the library has not been built yet
4398218822Sdim  # but it would be included on the link line in the version check below
4399218822Sdim  # hence making the test fail.
4400218822Sdim  have_gmp=yes
4401218822Sdimfi
4402218822Sdim
4403218822Sdimif test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4404218822Sdim  have_gmp=yes
4405218822Sdim  saved_CFLAGS="$CFLAGS"
4406218822Sdim  CFLAGS="$CFLAGS $gmpinc"
4407218822Sdim  # Check GMP actually works
4408218822Sdim  echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4409218822Sdimecho $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4410218822Sdim
4411218822Sdimcat >conftest.$ac_ext <<_ACEOF
4412218822Sdim/* confdefs.h.  */
4413218822Sdim_ACEOF
4414218822Sdimcat confdefs.h >>conftest.$ac_ext
4415218822Sdimcat >>conftest.$ac_ext <<_ACEOF
4416218822Sdim/* end confdefs.h.  */
4417218822Sdim#include "gmp.h"
4418218822Sdimint
4419218822Sdimmain ()
4420218822Sdim{
4421218822Sdim
4422218822Sdim  #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4423218822Sdim  choke me
4424218822Sdim  #endif
4425218822Sdim
4426218822Sdim  ;
4427218822Sdim  return 0;
4428218822Sdim}
4429218822Sdim_ACEOF
4430218822Sdimrm -f conftest.$ac_objext
4431218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432218822Sdim  (eval $ac_compile) 2>conftest.er1
4433218822Sdim  ac_status=$?
4434218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
4435218822Sdim  rm -f conftest.er1
4436218822Sdim  cat conftest.err >&5
4437218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438218822Sdim  (exit $ac_status); } &&
4439218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
4440218822Sdim			 || test ! -s conftest.err'
4441218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442218822Sdim  (eval $ac_try) 2>&5
4443218822Sdim  ac_status=$?
4444218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445218822Sdim  (exit $ac_status); }; } &&
4446218822Sdim	 { ac_try='test -s conftest.$ac_objext'
4447218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448218822Sdim  (eval $ac_try) 2>&5
4449218822Sdim  ac_status=$?
4450218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451218822Sdim  (exit $ac_status); }; }; then
4452218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
4453218822Sdimecho "${ECHO_T}yes" >&6
4454218822Sdimelse
4455218822Sdim  echo "$as_me: failed program was:" >&5
4456218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
4457218822Sdim
4458218822Sdimecho "$as_me:$LINENO: result: no" >&5
4459218822Sdimecho "${ECHO_T}no" >&6; have_gmp=no
4460218822Sdimfi
4461218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462218822Sdim
4463218822Sdim  if test x"$have_gmp" = xyes; then
4464218822Sdim    saved_LIBS="$LIBS"
4465218822Sdim    LIBS="$LIBS $gmplibs"
4466218822Sdim        echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4467218822Sdimecho $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4468218822Sdim    cat >conftest.$ac_ext <<_ACEOF
4469218822Sdim/* confdefs.h.  */
4470218822Sdim_ACEOF
4471218822Sdimcat confdefs.h >>conftest.$ac_ext
4472218822Sdimcat >>conftest.$ac_ext <<_ACEOF
4473218822Sdim/* end confdefs.h.  */
4474218822Sdim#include <gmp.h>
4475218822Sdim    #include <mpfr.h>
4476218822Sdimint
4477218822Sdimmain ()
4478218822Sdim{
4479218822Sdim
4480218822Sdim    #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4481218822Sdim    choke me
4482218822Sdim    #endif
4483218822Sdim    mpfr_t n;
4484218822Sdim    mpfr_t x;
4485218822Sdim    int t;
4486218822Sdim    mpfr_init (n);
4487218822Sdim    mpfr_init (x);
4488218822Sdim    mpfr_atan2 (n, n, x, GMP_RNDN);
4489218822Sdim    mpfr_erfc (n, x, GMP_RNDN);
4490218822Sdim    mpfr_subnormalize (x, t, GMP_RNDN);
4491218822Sdim
4492218822Sdim  ;
4493218822Sdim  return 0;
4494218822Sdim}
4495218822Sdim_ACEOF
4496218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
4497218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498218822Sdim  (eval $ac_link) 2>conftest.er1
4499218822Sdim  ac_status=$?
4500218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
4501218822Sdim  rm -f conftest.er1
4502218822Sdim  cat conftest.err >&5
4503218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504218822Sdim  (exit $ac_status); } &&
4505218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
4506218822Sdim			 || test ! -s conftest.err'
4507218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508218822Sdim  (eval $ac_try) 2>&5
4509218822Sdim  ac_status=$?
4510218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511218822Sdim  (exit $ac_status); }; } &&
4512218822Sdim	 { ac_try='test -s conftest$ac_exeext'
4513218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514218822Sdim  (eval $ac_try) 2>&5
4515218822Sdim  ac_status=$?
4516218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517218822Sdim  (exit $ac_status); }; }; then
4518218822Sdim  cat >conftest.$ac_ext <<_ACEOF
4519218822Sdim/* confdefs.h.  */
4520218822Sdim_ACEOF
4521218822Sdimcat confdefs.h >>conftest.$ac_ext
4522218822Sdimcat >>conftest.$ac_ext <<_ACEOF
4523218822Sdim/* end confdefs.h.  */
4524218822Sdim#include <gmp.h>
4525218822Sdim    #include <mpfr.h>
4526218822Sdimint
4527218822Sdimmain ()
4528218822Sdim{
4529218822Sdim
4530218822Sdim    #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4531218822Sdim    choke me
4532218822Sdim    #endif
4533218822Sdim    mpfr_t n; mpfr_init(n);
4534218822Sdim
4535218822Sdim  ;
4536218822Sdim  return 0;
4537218822Sdim}
4538218822Sdim_ACEOF
4539218822Sdimrm -f conftest.$ac_objext conftest$ac_exeext
4540218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541218822Sdim  (eval $ac_link) 2>conftest.er1
4542218822Sdim  ac_status=$?
4543218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
4544218822Sdim  rm -f conftest.er1
4545218822Sdim  cat conftest.err >&5
4546218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547218822Sdim  (exit $ac_status); } &&
4548218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
4549218822Sdim			 || test ! -s conftest.err'
4550218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551218822Sdim  (eval $ac_try) 2>&5
4552218822Sdim  ac_status=$?
4553218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554218822Sdim  (exit $ac_status); }; } &&
4555218822Sdim	 { ac_try='test -s conftest$ac_exeext'
4556218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557218822Sdim  (eval $ac_try) 2>&5
4558218822Sdim  ac_status=$?
4559218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560218822Sdim  (exit $ac_status); }; }; then
4561218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
4562218822Sdimecho "${ECHO_T}yes" >&6
4563218822Sdimelse
4564218822Sdim  echo "$as_me: failed program was:" >&5
4565218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
4566218822Sdim
4567218822Sdimecho "$as_me:$LINENO: result: buggy but acceptable" >&5
4568218822Sdimecho "${ECHO_T}buggy but acceptable" >&6
4569218822Sdimfi
4570218822Sdimrm -f conftest.err conftest.$ac_objext \
4571218822Sdim      conftest$ac_exeext conftest.$ac_ext
4572218822Sdimelse
4573218822Sdim  echo "$as_me: failed program was:" >&5
4574218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
4575218822Sdim
4576218822Sdimecho "$as_me:$LINENO: result: no" >&5
4577218822Sdimecho "${ECHO_T}no" >&6; have_gmp=no
4578218822Sdimfi
4579218822Sdimrm -f conftest.err conftest.$ac_objext \
4580218822Sdim      conftest$ac_exeext conftest.$ac_ext
4581218822Sdim      LIBS="$saved_LIBS"
4582218822Sdim  fi
4583218822Sdim  CFLAGS="$saved_CFLAGS"
4584218822Sdim
4585218822Sdim  if test x$have_gmp != xyes; then
4586218822Sdim    { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4587218822SdimTry the --with-gmp and/or --with-mpfr options to specify their locations.
4588218822SdimCopies of these libraries' source code can be found at their respective
4589218822Sdimhosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4590218822SdimSee also http://gcc.gnu.org/install/prerequisites.html for additional info.
4591218822SdimIf you obtained GMP and/or MPFR from a vendor distribution package, make
4592218822Sdimsure that you have installed both the libraries and the header files.
4593218822SdimThey may be located in separate packages." >&5
4594218822Sdimecho "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4595218822SdimTry the --with-gmp and/or --with-mpfr options to specify their locations.
4596218822SdimCopies of these libraries' source code can be found at their respective
4597218822Sdimhosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4598218822SdimSee also http://gcc.gnu.org/install/prerequisites.html for additional info.
4599218822SdimIf you obtained GMP and/or MPFR from a vendor distribution package, make
4600218822Sdimsure that you have installed both the libraries and the header files.
4601218822SdimThey may be located in separate packages." >&2;}
4602218822Sdim   { (exit 1); exit 1; }; }
4603218822Sdim  fi
4604218822Sdimfi
4605218822Sdim
4606218822Sdim# Flags needed for both GMP and/or MPFR
4607218822Sdim
4608218822Sdim
4609218822Sdim
4610218822Sdim# By default, C is the only stage 1 language.
4611218822Sdimstage1_languages=,c,
4612218822Sdim
4613130561Sobrien# Figure out what language subdirectories are present.
4614130561Sobrien# Look if the user specified --enable-languages="..."; if not, use
4615130561Sobrien# the environment variable $LANGUAGES if defined. $LANGUAGES might
4616130561Sobrien# go away some day.
4617130561Sobrien# NB:  embedded tabs in this IF block -- do not untabify
4618218822Sdimif test -d ${srcdir}/gcc; then
4619218822Sdim  if test x"${enable_languages+set}" != xset; then
4620218822Sdim    if test x"${LANGUAGES+set}" = xset; then
4621218822Sdim      enable_languages="${LANGUAGES}"
4622218822Sdim        echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4623218822Sdim    else
4624218822Sdim      enable_languages=all
4625218822Sdim    fi
4626130561Sobrien  else
4627218822Sdim    if test x"${enable_languages}" = x ||
4628218822Sdim       test x"${enable_languages}" = xyes;
4629218822Sdim       then
4630218822Sdim      echo configure.in: --enable-languages needs at least one language argument 1>&2
4631218822Sdim      exit 1
4632218822Sdim    fi
4633130561Sobrien  fi
4634218822Sdim  enable_languages=`echo "${enable_languages}" | sed -e 's/[ 	,][ 	,]*/,/g' -e 's/,$//'`
463533965Sjdp
4636218822Sdim  # 'f95' is the old name for the 'fortran' language. We issue a warning
4637218822Sdim  # and make the substitution.
4638218822Sdim  case ,${enable_languages}, in
4639218822Sdim    *,f95,*)
4640218822Sdim      echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4641218822Sdim      enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4642218822Sdim      ;;
4643218822Sdim  esac
4644218822Sdim
4645218822Sdim  # First scan to see if an enabled language requires some other language.
4646218822Sdim  # We assume that a given config-lang.in will list all the language
4647218822Sdim  # front ends it requires, even if some are required indirectly.
4648218822Sdim  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4649218822Sdim    case ${lang_frag} in
4650218822Sdim      ..) ;;
4651218822Sdim      # The odd quoting in the next line works around
4652218822Sdim      # an apparent bug in bash 1.12 on linux.
4653218822Sdim      ${srcdir}/gcc/[*]/config-lang.in) ;;
4654218822Sdim      *)
4655218822Sdim        # From the config-lang.in, get $language, $lang_requires
4656218822Sdim        language=
4657218822Sdim        lang_requires=
4658218822Sdim        . ${lang_frag}
4659218822Sdim        for other in ${lang_requires} ; do
4660218822Sdim          case ,${enable_languages}, in
4661218822Sdim	    *,$other,*) ;;
4662218822Sdim	    *,all,*) ;;
4663218822Sdim	    *,$language,*)
4664218822Sdim	      echo " \`$other' language required by \`$language'; enabling" 1>&2
4665218822Sdim	      enable_languages="${enable_languages},${other}"
4666218822Sdim	      ;;
4667218822Sdim	  esac
4668218822Sdim        done
4669218822Sdim        ;;
4670218822Sdim    esac
4671218822Sdim  done
4672218822Sdim
4673218822Sdim  new_enable_languages=,c,
4674218822Sdim  missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4675218822Sdim  potential_languages=,c,
4676218822Sdim
4677218822Sdim  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4678218822Sdim    case ${lang_frag} in
4679218822Sdim      ..) ;;
4680218822Sdim      # The odd quoting in the next line works around
4681218822Sdim      # an apparent bug in bash 1.12 on linux.
4682218822Sdim      ${srcdir}/gcc/[*]/config-lang.in) ;;
4683218822Sdim      *)
4684218822Sdim        # From the config-lang.in, get $language, $target_libs,
4685218822Sdim        # $lang_dirs, $boot_language, and $build_by_default
4686218822Sdim        language=
4687218822Sdim        target_libs=
4688218822Sdim        lang_dirs=
4689218822Sdim        subdir_requires=
4690218822Sdim        boot_language=no
4691218822Sdim        build_by_default=yes
4692218822Sdim        . ${lang_frag}
4693218822Sdim        if test x${language} = x; then
4694218822Sdim          echo "${lang_frag} doesn't set \$language." 1>&2
4695218822Sdim          exit 1
4696218822Sdim        fi
4697218822Sdim
4698130561Sobrien        case ,${enable_languages}, in
4699218822Sdim          *,${language},*)
4700218822Sdim            # Language was explicitly selected; include it.
4701218822Sdim            add_this_lang=yes
4702218822Sdim            ;;
4703218822Sdim          *,all,*)
4704218822Sdim            # 'all' was selected, select it if it is a default language
4705218822Sdim            add_this_lang=${build_by_default}
4706218822Sdim            ;;
4707218822Sdim          *)
4708218822Sdim            add_this_lang=no
4709218822Sdim            ;;
4710218822Sdim        esac
4711218822Sdim
4712218822Sdim        # Disable languages that need other directories if these aren't available.
4713218822Sdim	for i in $subdir_requires; do
4714218822Sdim	  test -f "$srcdir/gcc/$i/config-lang.in" && continue
4715218822Sdim	  case ,${enable_languages}, in
4716218822Sdim            *,${language},*)
4717218822Sdim              # Specifically requested language; tell them.
4718218822Sdim              { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4719218822Sdimecho "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4720218822Sdim   { (exit 1); exit 1; }; }
4721218822Sdim              ;;
4722218822Sdim            *)
4723218822Sdim              # Silently disable.
4724218822Sdim              add_this_lang=unsupported
4725218822Sdim              ;;
4726218822Sdim          esac
4727218822Sdim	done
4728218822Sdim
4729218822Sdim        # Disable Ada if no preexisting GNAT is available.
4730218822Sdim        case ,${enable_languages},:${language}:${have_gnat} in
4731218822Sdim          *,${language},*:ada:no)
4732218822Sdim            # Specifically requested language; tell them.
4733218822Sdim            { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4734218822Sdimecho "$as_me: error: GNAT is required to build $language" >&2;}
4735218822Sdim   { (exit 1); exit 1; }; }
4736218822Sdim            ;;
4737218822Sdim          *:ada:no)
4738218822Sdim            # Silently disable.
4739218822Sdim            add_this_lang=unsupported
4740218822Sdim            ;;
4741218822Sdim        esac
4742218822Sdim
4743218822Sdim	# Disable a language that is unsupported by the target.
4744218822Sdim	case " $unsupported_languages " in
4745218822Sdim	  *" $language "*)
4746218822Sdim	    add_this_lang=unsupported
4747130561Sobrien	    ;;
4748130561Sobrien	esac
4749218822Sdim
4750218822Sdim	case $add_this_lang in
4751218822Sdim	  unsupported)
4752218822Sdim            # Remove language-dependent dirs.
4753218822Sdim            eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4754218822Sdim	    ;;
4755218822Sdim	  no)
4756218822Sdim            # Remove language-dependent dirs; still show language as supported.
4757218822Sdim            eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4758218822Sdim            potential_languages="${potential_languages}${language},"
4759218822Sdim	    ;;
4760218822Sdim          yes)
4761218822Sdim	    new_enable_languages="${new_enable_languages}${language},"
4762218822Sdim            potential_languages="${potential_languages}${language},"
4763218822Sdim	    missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4764218822Sdim	    case ${boot_language} in
4765218822Sdim	      yes)
4766218822Sdim		# Add to (comma-separated) list of stage 1 languages.
4767218822Sdim		stage1_languages="${stage1_languages}${language},"
4768218822Sdim		;;
4769218822Sdim	    esac
4770218822Sdim	    ;;
4771218822Sdim        esac
4772218822Sdim        ;;
4773218822Sdim    esac
4774218822Sdim  done
4775218822Sdim
4776218822Sdim  # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4777218822Sdimif test "${enable_stage1_languages+set}" = set; then
4778218822Sdim  enableval="$enable_stage1_languages"
4779218822Sdim  case ,${enable_stage1_languages}, in
4780218822Sdim    ,no,|,,)
4781218822Sdim      # Set it to something that will have no effect in the loop below
4782218822Sdim      enable_stage1_languages=c ;;
4783218822Sdim    ,yes,)
4784218822Sdim      enable_stage1_languages=`echo $new_enable_languages | \
4785218822Sdim	sed -e "s/^,//" -e "s/,$//" ` ;;
4786218822Sdim    *,all,*)
4787218822Sdim      enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4788218822Sdim	sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4789130561Sobrien  esac
479033965Sjdp
4791218822Sdim  # Add "good" languages from enable_stage1_languages to stage1_languages,
4792218822Sdim  # while "bad" languages go in missing_languages.  Leave no duplicates.
4793218822Sdim  for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4794218822Sdim    case $potential_languages in
4795218822Sdim      *,$i,*)
4796218822Sdim        case $stage1_languages in
4797218822Sdim          *,$i,*) ;;
4798218822Sdim          *) stage1_languages="$stage1_languages$i," ;;
4799218822Sdim        esac ;;
4800218822Sdim      *)
4801218822Sdim        case $missing_languages in
4802218822Sdim          *,$i,*) ;;
4803218822Sdim          *) missing_languages="$missing_languages$i," ;;
4804218822Sdim        esac ;;
4805218822Sdim     esac
4806218822Sdim  done
4807218822Sdimfi;
4808218822Sdim
4809218822Sdim  # Remove leading/trailing commas that were added for simplicity
4810218822Sdim  potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4811218822Sdim  missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4812218822Sdim  stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4813218822Sdim  new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4814218822Sdim
4815218822Sdim  if test "x$missing_languages" != x; then
4816218822Sdim    { { echo "$as_me:$LINENO: error:
4817218822SdimThe following requested languages could not be built: ${missing_languages}
4818218822SdimSupported languages are: ${potential_languages}" >&5
4819218822Sdimecho "$as_me: error:
4820218822SdimThe following requested languages could not be built: ${missing_languages}
4821218822SdimSupported languages are: ${potential_languages}" >&2;}
4822218822Sdim   { (exit 1); exit 1; }; }
4823218822Sdim  fi
4824218822Sdim  if test "x$new_enable_languages" != "x$enable_languages"; then
4825218822Sdim    echo The following languages will be built: ${new_enable_languages}
4826218822Sdim    enable_languages="$new_enable_languages"
4827218822Sdim  fi
4828218822Sdim
4829218822Sdim
4830218822Sdim  ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
4831218822Sdimfi
4832218822Sdim
4833218822Sdim# Handle --disable-<component> generically.
4834218822Sdimfor dir in $configdirs $build_configdirs $target_configdirs ; do
4835218822Sdim  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4836218822Sdim  if eval test x\${enable_${dirname}} "=" xno ; then
4837218822Sdim    noconfigdirs="$noconfigdirs $dir"
4838218822Sdim  fi
4839130561Sobriendone
4840130561Sobrien
4841218822Sdim# Check for Boehm's garbage collector
4842218822Sdim# Check whether --enable-objc-gc or --disable-objc-gc was given.
4843218822Sdimif test "${enable_objc_gc+set}" = set; then
4844218822Sdim  enableval="$enable_objc_gc"
4845218822Sdim  case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4846218822Sdim  *,objc,*:*:yes:*target-boehm-gc*)
4847218822Sdim    { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4848218822Sdimecho "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4849218822Sdim   { (exit 1); exit 1; }; }
4850218822Sdim    ;;
4851218822Sdimesac
4852218822Sdimfi;
4853218822Sdim
4854218822Sdim# Make sure we only build Boehm's garbage collector if required.
4855218822Sdimcase ,${enable_languages},:${enable_objc_gc} in
4856218822Sdim  *,objc,*:yes)
4857218822Sdim    # Keep target-boehm-gc if requested for Objective-C.
4858218822Sdim    ;;
4859218822Sdim  *)
4860218822Sdim    # Otherwise remove target-boehm-gc depending on target-libjava.
4861218822Sdim    if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4862218822Sdim      noconfigdirs="$noconfigdirs target-boehm-gc"
4863218822Sdim    fi
4864218822Sdim    ;;
4865218822Sdimesac
4866218822Sdim
4867218822Sdim# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4868218822Sdim# $build_configdirs and $target_configdirs.
4869130561Sobrien# If we have the source for $noconfigdirs entries, add them to $notsupp.
4870130561Sobrien
4871130561Sobriennotsupp=""
4872130561Sobrienfor dir in . $skipdirs $noconfigdirs ; do
4873218822Sdim  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4874130561Sobrien  if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4875130561Sobrien    configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4876130561Sobrien    if test -r $srcdir/$dirname/configure ; then
4877130561Sobrien      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4878130561Sobrien	true
4879130561Sobrien      else
4880130561Sobrien	notsupp="$notsupp $dir"
4881130561Sobrien      fi
4882130561Sobrien    fi
4883130561Sobrien  fi
4884218822Sdim  if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4885218822Sdim    build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4886218822Sdim    if test -r $srcdir/$dirname/configure ; then
4887218822Sdim      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4888218822Sdim	true
4889218822Sdim      else
4890218822Sdim	notsupp="$notsupp $dir"
4891218822Sdim      fi
4892218822Sdim    fi
4893218822Sdim  fi
4894130561Sobrien  if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4895130561Sobrien    target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4896130561Sobrien    if test -r $srcdir/$dirname/configure ; then
4897130561Sobrien      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4898130561Sobrien	true
4899130561Sobrien      else
4900130561Sobrien	notsupp="$notsupp $dir"
4901130561Sobrien      fi
4902130561Sobrien    fi
4903130561Sobrien  fi
4904130561Sobriendone
4905130561Sobrien
4906130561Sobrien# Sometimes the tools are distributed with libiberty but with no other
4907130561Sobrien# libraries.  In that case, we don't want to build target-libiberty.
4908218822Sdim# Don't let libgcc imply libiberty either.
4909130561Sobrienif test -n "${target_configdirs}" ; then
4910218822Sdim  libgcc=
4911130561Sobrien  others=
4912130561Sobrien  for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4913218822Sdim    if test "$i" = "libgcc"; then
4914218822Sdim      libgcc=target-libgcc
4915218822Sdim    elif test "$i" != "libiberty" ; then
4916130561Sobrien      if test -r $srcdir/$i/configure ; then
4917130561Sobrien	others=yes;
4918130561Sobrien	break;
4919130561Sobrien      fi
4920130561Sobrien    fi
4921130561Sobrien  done
4922130561Sobrien  if test -z "${others}" ; then
4923218822Sdim    target_configdirs=$libgcc
4924130561Sobrien  fi
492533965Sjdpfi
492633965Sjdp
4927130561Sobrien# Quietly strip out all directories which aren't configurable in this tree.
4928130561Sobrien# This relies on all configurable subdirectories being autoconfiscated, which
4929130561Sobrien# is now the case.
4930218822Sdimbuild_configdirs_all="$build_configdirs"
4931218822Sdimbuild_configdirs=
4932218822Sdimfor i in ${build_configdirs_all} ; do
4933218822Sdim  j=`echo $i | sed -e s/build-//g`
4934218822Sdim  if test -f ${srcdir}/$j/configure ; then
4935218822Sdim    build_configdirs="${build_configdirs} $i"
4936218822Sdim  fi
4937218822Sdimdone
4938218822Sdim
4939130561Sobrienconfigdirs_all="$configdirs"
4940130561Sobrienconfigdirs=
4941130561Sobrienfor i in ${configdirs_all} ; do
4942130561Sobrien  if test -f ${srcdir}/$i/configure ; then
4943130561Sobrien    configdirs="${configdirs} $i"
4944130561Sobrien  fi
4945130561Sobriendone
4946218822Sdim
4947130561Sobrientarget_configdirs_all="$target_configdirs"
4948130561Sobrientarget_configdirs=
4949130561Sobrienfor i in ${target_configdirs_all} ; do
4950218822Sdim  j=`echo $i | sed -e s/target-//g`
4951130561Sobrien  if test -f ${srcdir}/$j/configure ; then
4952130561Sobrien    target_configdirs="${target_configdirs} $i"
4953130561Sobrien  fi
4954130561Sobriendone
495533965Sjdp
4956130561Sobrien# Produce a warning message for the subdirs we can't configure.
4957130561Sobrien# This isn't especially interesting in the Cygnus tree, but in the individual
4958130561Sobrien# FSF releases, it's important to let people know when their machine isn't
4959130561Sobrien# supported by the one or two programs in a package.
4960130561Sobrien
4961130561Sobrienif test -n "${notsupp}" && test -z "${norecursion}" ; then
4962130561Sobrien  # If $appdirs is non-empty, at least one of those directories must still
4963130561Sobrien  # be configured, or we error out.  (E.g., if the gas release supports a
4964130561Sobrien  # specified target in some subdirs but not the gas subdir, we shouldn't
4965130561Sobrien  # pretend that all is well.)
4966130561Sobrien  if test -n "$appdirs" ; then
4967130561Sobrien    for dir in $appdirs ; do
4968130561Sobrien      if test -r $dir/Makefile.in ; then
4969130561Sobrien	if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4970130561Sobrien	  appdirs=""
4971130561Sobrien	  break
4972130561Sobrien	fi
4973218822Sdim	if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4974130561Sobrien	  appdirs=""
4975130561Sobrien	  break
4976130561Sobrien	fi
4977130561Sobrien      fi
4978130561Sobrien    done
4979130561Sobrien    if test -n "$appdirs" ; then
4980130561Sobrien      echo "*** This configuration is not supported by this package." 1>&2
4981130561Sobrien      exit 1
4982130561Sobrien    fi
4983130561Sobrien  fi
4984130561Sobrien  # Okay, some application will build, or we don't care to check.  Still
4985130561Sobrien  # notify of subdirs not getting built.
4986130561Sobrien  echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4987130561Sobrien  echo "    ${notsupp}" 1>&2
4988130561Sobrien  echo "    (Any other directories should still work fine.)" 1>&2
4989130561Sobrienfi
4990130561Sobrien
4991130561Sobriencase "$host" in
4992130561Sobrien  *msdosdjgpp*)
4993130561Sobrien    enable_gdbtk=no ;;
499433965Sjdpesac
499533965Sjdp
4996218822Sdim# To find our prefix, in gcc_cv_tool_prefix.
4997218822Sdim
4998218822Sdim# The user is always right.
4999218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
5000218822Sdim  echo "#! /bin/sh" >conf$$.sh
5001218822Sdim  echo  "exit 0"   >>conf$$.sh
5002218822Sdim  chmod +x conf$$.sh
5003218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5004218822Sdim    PATH_SEPARATOR=';'
5005218822Sdim  else
5006218822Sdim    PATH_SEPARATOR=:
5007218822Sdim  fi
5008218822Sdim  rm -f conf$$.sh
5009218822Sdimfi
5010218822Sdim
5011218822Sdim
5012218822Sdim
5013218822Sdimif test "x$exec_prefix" = xNONE; then
5014218822Sdim        if test "x$prefix" = xNONE; then
5015218822Sdim                gcc_cv_tool_prefix=$ac_default_prefix
5016218822Sdim        else
5017218822Sdim                gcc_cv_tool_prefix=$prefix
5018218822Sdim        fi
5019218822Sdimelse
5020218822Sdim        gcc_cv_tool_prefix=$exec_prefix
5021218822Sdimfi
5022218822Sdim
5023218822Sdim# If there is no compiler in the tree, use the PATH only.  In any
5024218822Sdim# case, if there is no compiler in the tree nobody should use
5025218822Sdim# AS_FOR_TARGET and LD_FOR_TARGET.
5026218822Sdimif test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5027218822Sdim    gcc_version=`cat $srcdir/gcc/BASE-VER`
5028218822Sdim    gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5029218822Sdim    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5030218822Sdim    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5031218822Sdim    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5032218822Sdim    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5033218822Sdim    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5034218822Sdimelse
5035218822Sdim    gcc_cv_tool_dirs=
5036218822Sdimfi
5037218822Sdim
5038218822Sdimif test x$build = x$target && test -n "$md_exec_prefix"; then
5039218822Sdim        gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5040218822Sdimfi
5041218822Sdim
5042218822Sdim
5043218822Sdim
5044130561Sobriencopy_dirs=
504533965Sjdp
5046218822Sdim
5047218822Sdim# Check whether --with-build-sysroot or --without-build-sysroot was given.
5048218822Sdimif test "${with_build_sysroot+set}" = set; then
5049218822Sdim  withval="$with_build_sysroot"
5050218822Sdim  if test x"$withval" != x ; then
5051218822Sdim     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5052218822Sdim   fi
5053218822Sdimelse
5054218822Sdim  SYSROOT_CFLAGS_FOR_TARGET=
5055218822Sdimfi;
5056218822Sdim
5057218822Sdim
5058130561Sobrien# Handle --with-headers=XXX.  If the value is not "yes", the contents of
5059130561Sobrien# the named directory are copied to $(tooldir)/sys-include.
5060130561Sobrienif test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5061130561Sobrien  if test x${is_cross_compiler} = xno ; then
5062130561Sobrien    echo 1>&2 '***' --with-headers is only supported when cross compiling
5063130561Sobrien    exit 1
5064130561Sobrien  fi
5065130561Sobrien  if test x"${with_headers}" != xyes ; then
5066218822Sdim    x=${gcc_cv_tool_prefix}
5067218822Sdim    copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5068130561Sobrien  fi
506933965Sjdpfi
507033965Sjdp
5071130561Sobrien# Handle --with-libs=XXX.  If the value is not "yes", the contents of
5072130561Sobrien# the name directories are copied to $(tooldir)/lib.  Multiple directories
5073130561Sobrien# are permitted.
5074130561Sobrienif test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5075130561Sobrien  if test x${is_cross_compiler} = xno ; then
5076130561Sobrien    echo 1>&2 '***' --with-libs is only supported when cross compiling
5077130561Sobrien    exit 1
5078130561Sobrien  fi
5079130561Sobrien  if test x"${with_libs}" != xyes ; then
5080130561Sobrien    # Copy the libraries in reverse order, so that files in the first named
5081130561Sobrien    # library override files in subsequent libraries.
5082218822Sdim    x=${gcc_cv_tool_prefix}
5083130561Sobrien    for l in ${with_libs}; do
5084218822Sdim      copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5085130561Sobrien    done
5086130561Sobrien  fi
5087130561Sobrienfi
508833965Sjdp
5089218822Sdim# Set with_gnu_as and with_gnu_ld as appropriate.
5090218822Sdim#
5091218822Sdim# This is done by determining whether or not the appropriate directory
5092218822Sdim# is available, and by checking whether or not specific configurations
5093218822Sdim# have requested that this magic not happen.
5094218822Sdim#
5095218822Sdim# The command line options always override the explicit settings in
5096218822Sdim# configure.in, and the settings in configure.in override this magic.
5097218822Sdim#
5098218822Sdim# If the default for a toolchain is to use GNU as and ld, and you don't
5099218822Sdim# want to do that, then you should use the --without-gnu-as and
5100218822Sdim# --without-gnu-ld options for the configure script.
5101218822Sdim
5102218822Sdimif test x${use_gnu_as} = x &&
5103218822Sdim   echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5104218822Sdim  with_gnu_as=yes
5105218822Sdim  extra_host_args="$extra_host_args --with-gnu-as"
5106218822Sdimfi
5107218822Sdim
5108218822Sdimif test x${use_gnu_ld} = x &&
5109218822Sdim   echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5110218822Sdim  with_gnu_ld=yes
5111218822Sdim  extra_host_args="$extra_host_args --with-gnu-ld"
5112218822Sdimfi
5113218822Sdim
5114218822Sdim# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5115218822Sdim# can detect this case.
5116218822Sdim
5117218822Sdimif test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5118218822Sdim  with_newlib=yes
5119218822Sdim  extra_host_args="$extra_host_args --with-newlib"
5120218822Sdimfi
5121218822Sdim
5122130561Sobrien# Handle ${copy_dirs}
5123130561Sobrienset fnord ${copy_dirs}
5124130561Sobrienshift
5125130561Sobrienwhile test $# != 0 ; do
5126130561Sobrien  if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5127130561Sobrien    :
5128130561Sobrien  else
5129130561Sobrien    echo Copying $1 to $2
5130130561Sobrien
5131130561Sobrien    # Use the install script to create the directory and all required
5132130561Sobrien    # parent directories.
5133130561Sobrien    if test -d $2 ; then
5134130561Sobrien      :
5135130561Sobrien    else
5136130561Sobrien      echo >config.temp
5137130561Sobrien      ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
513833965Sjdp    fi
513933965Sjdp
5140130561Sobrien    # Copy the directory, assuming we have tar.
5141130561Sobrien    # FIXME: Should we use B in the second tar?  Not all systems support it.
5142130561Sobrien    (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5143130561Sobrien
5144130561Sobrien    # It is the responsibility of the user to correctly adjust all
5145130561Sobrien    # symlinks.  If somebody can figure out how to handle them correctly
5146130561Sobrien    # here, feel free to add the code.
5147130561Sobrien
5148130561Sobrien    echo $1 > $2/COPIED
5149130561Sobrien  fi
5150130561Sobrien  shift; shift
5151130561Sobriendone
5152130561Sobrien
5153218822Sdim# Determine a target-dependent exec_prefix that the installed
5154218822Sdim# gcc will search in.  Keep this list sorted by triplet, with
5155218822Sdim# the *-*-osname triplets last.
5156218822Sdimmd_exec_prefix=
5157218822Sdimcase "${target}" in
5158218822Sdim  alpha*-*-*vms*)
5159218822Sdim    md_exec_prefix=/gnu/lib/gcc-lib
5160130561Sobrien    ;;
5161218822Sdim  i3456786-pc-msdosdjgpp*)
5162218822Sdim    md_exec_prefix=/dev/env/DJDIR/bin
5163130561Sobrien    ;;
5164218822Sdim  i3456786-*-sco3.2v5*)
5165218822Sdim    if test $with_gnu_as = yes; then
5166218822Sdim      md_exec_prefix=/usr/gnu/bin
5167218822Sdim    else
5168218822Sdim      md_exec_prefix=/usr/ccs/bin/elf
5169218822Sdim    fi
5170130561Sobrien    ;;
5171218822Sdim
5172218822Sdim  mn10300-*-* | \
5173218822Sdim  powerpc-*-chorusos* | \
5174218822Sdim  powerpc*-*-eabi* | \
5175218822Sdim  powerpc*-*-sysv* | \
5176218822Sdim  powerpc*-*-kaos* | \
5177218822Sdim  s390x-ibm-tpf*)
5178218822Sdim    md_exec_prefix=/usr/ccs/bin
5179130561Sobrien    ;;
5180218822Sdim  sparc64-*-elf*)
5181130561Sobrien    ;;
5182218822Sdim  v850*-*-*)
5183218822Sdim    md_exec_prefix=/usr/ccs/bin
5184130561Sobrien    ;;
5185218822Sdim  xtensa-*-elf*)
5186130561Sobrien    ;;
5187130561Sobrien
5188218822Sdim  *-*-beos* | \
5189218822Sdim  *-*-elf* | \
5190218822Sdim  *-*-hpux* | \
5191218822Sdim  *-*-netware* | \
5192218822Sdim  *-*-nto-qnx* | \
5193218822Sdim  *-*-rtems* | \
5194218822Sdim  *-*-solaris2* | \
5195218822Sdim  *-*-sysv45* | \
5196218822Sdim  *-*-vxworks* | \
5197218822Sdim  *-wrs-windiss)
5198218822Sdim    md_exec_prefix=/usr/ccs/bin
5199130561Sobrien    ;;
5200130561Sobrienesac
520133965Sjdp
5202130561Sobrienextra_arflags_for_target=
5203130561Sobrienextra_nmflags_for_target=
5204130561Sobrienextra_ranlibflags_for_target=
5205130561Sobrientarget_makefile_frag=/dev/null
5206130561Sobriencase "${target}" in
5207218822Sdim  mep*-*-*)
5208218822Sdim    target_makefile_frag="config/mt-mep"
5209130561Sobrien    ;;
5210218822Sdim  spu-*-*)
5211218822Sdim    target_makefile_frag="config/mt-spu"
5212218822Sdim    ;;
5213218822Sdim  *-*-netware*)
5214130561Sobrien    target_makefile_frag="config/mt-netware"
5215130561Sobrien    ;;
5216218822Sdim  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5217218822Sdim    target_makefile_frag="config/mt-gnu"
5218130561Sobrien    ;;
5219130561Sobrien  *-*-aix4.[3456789]* | *-*-aix[56789].*)
5220218822Sdim    # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5221130561Sobrien    # commands to handle both 32-bit and 64-bit objects.  These flags are
5222130561Sobrien    # harmless if we're using GNU nm or ar.
5223130561Sobrien    extra_arflags_for_target=" -X32_64"
5224130561Sobrien    extra_nmflags_for_target=" -B -X32_64"
5225130561Sobrien    ;;
5226130561Sobrien  *-*-darwin*)
5227130561Sobrien    # ranlib from Darwin requires the -c flag to look at common symbols.
5228130561Sobrien    extra_ranlibflags_for_target=" -c"
5229130561Sobrien    ;;
5230130561Sobrien  mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5231130561Sobrien    target_makefile_frag="config/mt-wince"
5232130561Sobrien    ;;
5233130561Sobrienesac
5234130561Sobrien
5235130561Sobrienalphaieee_frag=/dev/null
5236130561Sobriencase $target in
5237130561Sobrien  alpha*-*-*)
5238130561Sobrien    # This just makes sure to use the -mieee option to build target libs.
5239130561Sobrien    # This should probably be set individually by each library.
5240130561Sobrien    alphaieee_frag="config/mt-alphaieee"
5241130561Sobrien    ;;
5242130561Sobrienesac
5243130561Sobrien
5244130561Sobrien# If --enable-target-optspace always use -Os instead of -O2 to build
5245130561Sobrien# the target libraries, similarly if it is not specified, use -Os
5246130561Sobrien# on selected platforms.
5247130561Sobrienospace_frag=/dev/null
5248130561Sobriencase "${enable_target_optspace}:${target}" in
5249130561Sobrien  yes:*)
5250130561Sobrien    ospace_frag="config/mt-ospace"
5251130561Sobrien    ;;
5252130561Sobrien  :d30v-*)
5253130561Sobrien    ospace_frag="config/mt-d30v"
5254130561Sobrien    ;;
5255130561Sobrien  :m32r-* | :d10v-* | :fr30-*)
5256130561Sobrien    ospace_frag="config/mt-ospace"
5257130561Sobrien    ;;
5258130561Sobrien  no:* | :*)
5259130561Sobrien    ;;
5260130561Sobrien  *)
5261130561Sobrien    echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5262130561Sobrien    ;;
5263130561Sobrienesac
5264130561Sobrien
5265130561Sobrien# Default to using --with-stabs for certain targets.
5266130561Sobrienif test x${with_stabs} = x ; then
5267130561Sobrien  case "${target}" in
5268130561Sobrien  mips*-*-irix[56]*)
5269130561Sobrien    ;;
5270130561Sobrien  mips*-*-* | alpha*-*-osf*)
5271130561Sobrien    with_stabs=yes;
5272130561Sobrien    extra_host_args="${extra_host_args} --with-stabs"
5273130561Sobrien    ;;
5274130561Sobrien  esac
527591041Sobrienfi
527633965Sjdp
5277130561Sobrien# hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
5278130561Sobrien# them automatically.
5279130561Sobriencase "${host}" in
5280218822Sdim  hppa*64*-*-hpux11*)
5281130561Sobrien    extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5282130561Sobrien    ;;
5283130561Sobrienesac
5284130561Sobrien
5285130561Sobrien# Some systems (e.g., one of the i386-aix systems the gas testers are
5286130561Sobrien# using) don't handle "\$" correctly, so don't use it here.
5287218822Sdimtooldir='${exec_prefix}'/${target_noncanonical}
5288130561Sobrienbuild_tooldir=${tooldir}
5289130561Sobrien
5290130561Sobrien# Create a .gdbinit file which runs the one in srcdir
5291130561Sobrien# and tells GDB to look there for source files.
529233965Sjdp
5293130561Sobrienif test -r ${srcdir}/.gdbinit ; then
5294130561Sobrien  case ${srcdir} in
5295130561Sobrien    .) ;;
5296130561Sobrien    *) cat > ./.gdbinit <<EOF
5297130561Sobrien# ${NO_EDIT}
5298130561Sobriendir ${srcdir}
5299130561Sobriendir .
5300130561Sobriensource ${srcdir}/.gdbinit
5301130561SobrienEOF
5302130561Sobrien    ;;
5303130561Sobrien  esac
5304130561Sobrienfi
5305130561Sobrien
5306130561Sobrien# Make sure that the compiler is able to generate an executable.  If it
5307130561Sobrien# can't, we are probably in trouble.  We don't care whether we can run the
5308130561Sobrien# executable--we might be using a cross compiler--we only care whether it
5309130561Sobrien# can be created.  At this point the main configure script has set CC.
5310130561Sobrienwe_are_ok=no
5311130561Sobrienecho "int main () { return 0; }" > conftest.c
5312130561Sobrien${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5313130561Sobrienif test $? = 0 ; then
5314130561Sobrien  if test -s conftest || test -s conftest.exe ; then
5315130561Sobrien    we_are_ok=yes
5316130561Sobrien  fi
5317218822Sdimfi
5318130561Sobriencase $we_are_ok in
5319130561Sobrien  no)
5320130561Sobrien    echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5321130561Sobrien    echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5322130561Sobrien    rm -f conftest*
5323130561Sobrien    exit 1
5324130561Sobrien    ;;
5325130561Sobrienesac
5326130561Sobrienrm -f conftest*
5327130561Sobrien
5328130561Sobrien# The Solaris /usr/ucb/cc compiler does not appear to work.
5329130561Sobriencase "${host}" in
5330130561Sobrien  sparc-sun-solaris2*)
5331130561Sobrien      CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5332130561Sobrien      if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5333130561Sobrien          could_use=
5334130561Sobrien          test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5335130561Sobrien          if test -d /opt/cygnus/bin ; then
5336130561Sobrien              if test "$could_use" = "" ; then
5337130561Sobrien                  could_use="/opt/cygnus/bin"
5338130561Sobrien              else
5339130561Sobrien                  could_use="$could_use or /opt/cygnus/bin"
5340130561Sobrien              fi
5341130561Sobrien          fi
5342130561Sobrien        if test "$could_use" = "" ; then
5343130561Sobrien            echo "Warning: compilation may fail because you're using"
5344130561Sobrien            echo "/usr/ucb/cc.  You should change your PATH or CC "
5345130561Sobrien            echo "variable and rerun configure."
534633965Sjdp        else
5347130561Sobrien            echo "Warning: compilation may fail because you're using"
5348130561Sobrien            echo "/usr/ucb/cc, when you should use the C compiler from"
5349130561Sobrien            echo "$could_use.  You should change your"
5350130561Sobrien            echo "PATH or CC variable and rerun configure."
535133965Sjdp        fi
5352130561Sobrien      fi
5353130561Sobrien  ;;
5354130561Sobrienesac
5355130561Sobrien
5356130561Sobriencase "${host}" in
5357130561Sobrien  *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5358218822Sdim  *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5359130561Sobrien  *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5360130561Sobrienesac
5361130561Sobrien
5362130561Sobrien# Record target_configdirs and the configure arguments for target and
5363130561Sobrien# build configuration in Makefile.
5364130561Sobrientarget_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5365218822Sdimbuild_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5366130561Sobrien
5367130561Sobrien# Determine whether gdb needs tk/tcl or not.
5368130561Sobrien# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5369130561Sobrien# and in that case we want gdb to be built without tk.  Ugh!
5370130561Sobrien# In fact I believe gdb is the *only* package directly dependent on tk,
5371130561Sobrien# so we should be able to put the 'maybe's in unconditionally and
5372130561Sobrien# leave out the maybe dependencies when enable_gdbtk is false.  I'm not
5373130561Sobrien# 100% sure that that's safe though.
5374130561Sobrien
5375218822Sdimgdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5376130561Sobriencase "$enable_gdbtk" in
5377130561Sobrien  no)
5378130561Sobrien    GDB_TK="" ;;
5379130561Sobrien  yes)
5380130561Sobrien    GDB_TK="${gdb_tk}" ;;
5381130561Sobrien  *)
5382130561Sobrien    # Only add the dependency on gdbtk when GDBtk is part of the gdb
5383130561Sobrien    # distro.  Eventually someone will fix this and move Insight, nee
5384130561Sobrien    # gdbtk to a separate directory.
5385130561Sobrien    if test -d ${srcdir}/gdb/gdbtk ; then
5386130561Sobrien      GDB_TK="${gdb_tk}"
5387130561Sobrien    else
5388130561Sobrien      GDB_TK=""
538933965Sjdp    fi
5390130561Sobrien    ;;
5391130561Sobrienesac
5392218822SdimCONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5393218822SdimINSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
539433965Sjdp
5395218822Sdim# Strip out unwanted targets.
539633965Sjdp
5397130561Sobrien# While at that, we remove Makefiles if we were started for recursive
5398130561Sobrien# configuration, so that the top-level Makefile reconfigures them,
5399130561Sobrien# like we used to do when configure itself was recursive.
540033965Sjdp
5401218822Sdim# Loop over modules.  $extrasub must be used with care, limiting as
5402218822Sdim# much as possible the usage of range addresses.  That's because autoconf
5403218822Sdim# splits the sed script to overcome limits in the number of commands,
5404218822Sdim# and relying on carefully-timed sed passes may turn out to be very hard
5405218822Sdim# to maintain later.  In this particular case, you just have to be careful
5406218822Sdim# not to nest @if/@endif pairs, because configure will not warn you at all.
540733965Sjdp
5408218822Sdim# Check whether --enable-bootstrap or --disable-bootstrap was given.
5409218822Sdimif test "${enable_bootstrap+set}" = set; then
5410218822Sdim  enableval="$enable_bootstrap"
5411218822Sdim
5412218822Sdimelse
5413218822Sdim  enable_bootstrap=default
5414218822Sdimfi;
5415218822Sdim
5416218822Sdim# Issue errors and warnings for invalid/strange bootstrap combinations.
5417218822Sdimcase "$configdirs" in
5418218822Sdim  *gcc*) have_compiler=yes ;;
5419218822Sdim  *) have_compiler=no ;;
5420218822Sdimesac
5421218822Sdim
5422218822Sdimcase "$have_compiler:$host:$target:$enable_bootstrap" in
5423218822Sdim  *:*:*:no) ;;
5424218822Sdim
5425218822Sdim  # Default behavior.  Enable bootstrap if we have a compiler
5426218822Sdim  # and we are in a native configuration.
5427218822Sdim  yes:$build:$build:default)
5428218822Sdim    enable_bootstrap=yes ;;
5429218822Sdim
5430218822Sdim  *:*:*:default)
5431218822Sdim    enable_bootstrap=no ;;
5432218822Sdim
5433218822Sdim  # We have a compiler and we are in a native configuration, bootstrap is ok
5434218822Sdim  yes:$build:$build:yes)
5435218822Sdim    ;;
5436218822Sdim
5437218822Sdim  # Other configurations, but we have a compiler.  Assume the user knows
5438218822Sdim  # what he's doing.
5439218822Sdim  yes:*:*:yes)
5440218822Sdim    { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5441218822Sdimecho "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5442218822Sdim    ;;
5443218822Sdim
5444218822Sdim  # No compiler: if they passed --enable-bootstrap explicitly, fail
5445218822Sdim  no:*:*:yes)
5446218822Sdim    { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5447218822Sdimecho "$as_me: error: cannot bootstrap without a compiler" >&2;}
5448218822Sdim   { (exit 1); exit 1; }; } ;;
5449218822Sdim
5450218822Sdim  # Fail if wrong command line
5451218822Sdim  *)
5452218822Sdim    { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5453218822Sdimecho "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5454218822Sdim   { (exit 1); exit 1; }; }
5455218822Sdim    ;;
5456218822Sdimesac
5457218822Sdim
5458218822Sdim# Adjust the toplevel makefile according to whether bootstrap was selected.
5459218822Sdimcase "$enable_bootstrap" in
5460218822Sdim  yes)
5461218822Sdim    bootstrap_suffix=bootstrap ;;
5462218822Sdim  no)
5463218822Sdim    bootstrap_suffix=no-bootstrap ;;
5464218822Sdimesac
5465218822Sdim
5466218822Sdimfor module in ${build_configdirs} ; do
5467130561Sobrien  if test -z "${no_recursion}" \
5468130561Sobrien     && test -f ${build_subdir}/${module}/Makefile; then
5469130561Sobrien    echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5470130561Sobrien    rm -f ${build_subdir}/${module}/Makefile
5471130561Sobrien  fi
5472218822Sdim  extrasub="$extrasub
5473218822Sdim/^@if build-$module\$/d
5474218822Sdim/^@endif build-$module\$/d
5475218822Sdim/^@if build-$module-$bootstrap_suffix\$/d
5476218822Sdim/^@endif build-$module-$bootstrap_suffix\$/d"
5477130561Sobriendone
5478130561Sobrienfor module in ${configdirs} ; do
5479218822Sdim  if test -z "${no_recursion}"; then
5480218822Sdim    for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5481218822Sdim      if test -f ${file}; then
5482218822Sdim	echo 1>&2 "*** removing ${file} to force reconfigure"
5483218822Sdim	rm -f ${file}
5484218822Sdim      fi
5485218822Sdim    done
5486130561Sobrien  fi
5487218822Sdim  extrasub="$extrasub
5488218822Sdim/^@if $module\$/d
5489218822Sdim/^@endif $module\$/d
5490218822Sdim/^@if $module-$bootstrap_suffix\$/d
5491218822Sdim/^@endif $module-$bootstrap_suffix\$/d"
5492130561Sobriendone
5493130561Sobrienfor module in ${target_configdirs} ; do
5494130561Sobrien  if test -z "${no_recursion}" \
5495130561Sobrien     && test -f ${target_subdir}/${module}/Makefile; then
5496130561Sobrien    echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5497130561Sobrien    rm -f ${target_subdir}/${module}/Makefile
5498130561Sobrien  fi
5499218822Sdim  extrasub="$extrasub
5500218822Sdim/^@if target-$module\$/d
5501218822Sdim/^@endif target-$module\$/d
5502218822Sdim/^@if target-$module-$bootstrap_suffix\$/d
5503218822Sdim/^@endif target-$module-$bootstrap_suffix\$/d"
5504130561Sobriendone
550533965Sjdp
5506218822Sdimextrasub="$extrasub
5507218822Sdim/^@if /,/^@endif /d"
550833965Sjdp
5509130561Sobrien# Create the serialization dependencies.  This uses a temporary file.
551033965Sjdp
5511130561Sobrien# Check whether --enable-serial-configure or --disable-serial-configure was given.
5512130561Sobrienif test "${enable_serial_configure+set}" = set; then
5513130561Sobrien  enableval="$enable_serial_configure"
551433965Sjdp
5515218822Sdimfi;
551633965Sjdp
5517130561Sobriencase ${enable_serial_configure} in
5518130561Sobrien  yes)
5519130561Sobrien    enable_serial_build_configure=yes
5520130561Sobrien    enable_serial_host_configure=yes
5521130561Sobrien    enable_serial_target_configure=yes
5522130561Sobrien    ;;
5523130561Sobrienesac
552433965Sjdp
5525130561Sobrien# These force 'configure's to be done one at a time, to avoid problems
5526130561Sobrien# with contention over a shared config.cache.
5527130561Sobrienrm -f serdep.tmp
5528130561Sobrienecho '# serdep.tmp' > serdep.tmp
5529130561Sobrienolditem=
5530130561Sobrientest "x${enable_serial_build_configure}" = xyes &&
5531130561Sobrienfor item in ${build_configdirs} ; do
5532130561Sobrien  case ${olditem} in
5533130561Sobrien    "") ;;
5534130561Sobrien    *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5535130561Sobrien  esac
5536130561Sobrien  olditem=${item}
5537130561Sobriendone
5538130561Sobrienolditem=
5539130561Sobrientest "x${enable_serial_host_configure}" = xyes &&
5540130561Sobrienfor item in ${configdirs} ; do
5541130561Sobrien  case ${olditem} in
5542130561Sobrien    "") ;;
5543130561Sobrien    *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5544130561Sobrien  esac
5545130561Sobrien  olditem=${item}
5546130561Sobriendone
5547130561Sobrienolditem=
5548130561Sobrientest "x${enable_serial_target_configure}" = xyes &&
5549130561Sobrienfor item in ${target_configdirs} ; do
5550130561Sobrien  case ${olditem} in
5551130561Sobrien    "") ;;
5552130561Sobrien    *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5553130561Sobrien  esac
5554130561Sobrien  olditem=${item}
5555130561Sobriendone
5556130561Sobrienserialization_dependencies=serdep.tmp
555733965Sjdp
555833965Sjdp
5559130561Sobrien# Base args.  Strip norecursion, cache-file, srcdir, host, build,
5560218822Sdim# target, nonopt, and variable assignments.  These are the ones we
5561218822Sdim# might not want to pass down to subconfigures.  Also strip
5562218822Sdim# program-prefix, program-suffix, and program-transform-name, so that
5563218822Sdim# we can pass down a consistent program-transform-name.
5564218822Sdimbaseargs=
5565218822Sdimkeep_next=no
5566218822Sdimskip_next=no
5567218822Sdimeval "set -- $ac_configure_args"
5568218822Sdimfor ac_arg
5569218822Sdimdo
5570218822Sdim  if test X"$skip_next" = X"yes"; then
5571218822Sdim    skip_next=no
5572218822Sdim    continue
5573218822Sdim  fi
5574218822Sdim  if test X"$keep_next" = X"yes"; then
5575218822Sdim    case $ac_arg in
5576218822Sdim      *\'*)
5577218822Sdim	ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5578218822Sdim    esac
5579218822Sdim    baseargs="$baseargs '$ac_arg'"
5580218822Sdim    keep_next=no
5581218822Sdim    continue
5582218822Sdim  fi
558333965Sjdp
5584218822Sdim  # Handle separated arguments.  Based on the logic generated by
5585218822Sdim  # autoconf 2.59.
5586218822Sdim  case $ac_arg in
5587218822Sdim    *=* | --config-cache | -C | -disable-* | --disable-* \
5588218822Sdim      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5589218822Sdim      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5590218822Sdim      | -with-* | --with-* | -without-* | --without-* | --x)
5591218822Sdim      separate_arg=no
5592218822Sdim      ;;
5593218822Sdim    -*)
5594218822Sdim      separate_arg=yes
5595218822Sdim      ;;
5596218822Sdim    *)
5597218822Sdim      separate_arg=no
5598218822Sdim      ;;
5599218822Sdim  esac
5600218822Sdim
5601218822Sdim  case "$ac_arg" in
5602218822Sdim    --no*)
5603218822Sdim      continue
5604218822Sdim      ;;
5605218822Sdim    --c* | \
5606218822Sdim    --sr* | \
5607218822Sdim    --ho* | \
5608218822Sdim    --bu* | \
5609218822Sdim    --t* | \
5610218822Sdim    --program-* | \
5611218822Sdim    -cache_file* | \
5612218822Sdim    -srcdir* | \
5613218822Sdim    -host* | \
5614218822Sdim    -build* | \
5615218822Sdim    -target* | \
5616218822Sdim    -program-prefix* | \
5617218822Sdim    -program-suffix* | \
5618218822Sdim    -program-transform-name* )
5619218822Sdim      skip_next=$separate_arg
5620218822Sdim      continue
5621218822Sdim      ;;
5622218822Sdim    -*)
5623218822Sdim      # An option.  Add it.
5624218822Sdim      case $ac_arg in
5625218822Sdim	*\'*)
5626218822Sdim	  ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5627218822Sdim      esac
5628218822Sdim      baseargs="$baseargs '$ac_arg'"
5629218822Sdim      keep_next=$separate_arg
5630218822Sdim      ;;
5631218822Sdim    *)
5632218822Sdim      # Either a variable assignment, or a nonopt (triplet).  Don't
5633218822Sdim      # pass it down; let the Makefile handle this.
5634218822Sdim      continue
5635218822Sdim      ;;
5636218822Sdim  esac
5637218822Sdimdone
5638218822Sdim# Remove the initial space we just introduced and, as these will be
5639218822Sdim# expanded by make, quote '$'.
5640218822Sdimbaseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5641218822Sdim
5642130561Sobrien# Add in --program-transform-name, after --program-prefix and
5643130561Sobrien# --program-suffix have been applied to it.  Autoconf has already
5644130561Sobrien# doubled dollar signs and backslashes in program_transform_name; we want
5645130561Sobrien# the backslashes un-doubled, and then the entire thing wrapped in single
5646218822Sdim# quotes, because this will be expanded first by make and then by the shell.
5647130561Sobrien# Also, because we want to override the logic in subdir configure scripts to
5648130561Sobrien# choose program_transform_name, replace any s,x,x, with s,y,y,.
5649130561Sobriensed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5650130561Sobrien${program_transform_name}
5651130561SobrienEOF_SED
5652130561Sobriengcc_transform_name=`cat conftestsed.out`
5653130561Sobrienrm -f conftestsed.out
5654130561Sobrienbaseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
565538889Sjdp
5656130561Sobrien# For the build-side libraries, we just need to pretend we're native,
5657130561Sobrien# and not use the same cache file.  Multilibs are neither needed nor
5658130561Sobrien# desired.
5659218822Sdimbuild_configargs="--cache-file=../config.cache ${baseargs}"
566033965Sjdp
5661130561Sobrien# For host modules, accept cache file option, or specification as blank.
5662130561Sobriencase "${cache_file}" in
5663130561Sobrien"") # empty
5664130561Sobrien  cache_file_option="" ;;
5665130561Sobrien/* | [A-Za-z]:[\\/]* ) # absolute path
5666130561Sobrien  cache_file_option="--cache-file=${cache_file}" ;;
5667130561Sobrien*) # relative path
5668130561Sobrien  cache_file_option="--cache-file=../${cache_file}" ;;
5669130561Sobrienesac
567033965Sjdp
5671130561Sobrien# Host dirs don't like to share a cache file either, horribly enough.
5672130561Sobrien# This seems to be due to autoconf 2.5x stupidity.
5673218822Sdimhost_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
567433965Sjdp
5675130561Sobrientarget_configargs=${baseargs}
567633965Sjdp
5677130561Sobrien# Passing a --with-cross-host argument lets the target libraries know
5678130561Sobrien# whether they are being built with a cross-compiler or being built
5679130561Sobrien# native.  However, it would be better to use other mechanisms to make the
5680130561Sobrien# sorts of decisions they want to make on this basis.  Please consider
5681130561Sobrien# this option to be deprecated.  FIXME.
5682130561Sobrienif test x${is_cross_compiler} = xyes ; then
5683218822Sdim  target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5684130561Sobrienfi
568533965Sjdp
5686130561Sobrien# Default to --enable-multilib.
5687130561Sobrienif test x${enable_multilib} = x ; then
5688130561Sobrien  target_configargs="--enable-multilib ${target_configargs}"
5689130561Sobrienfi
569033965Sjdp
5691130561Sobrien# Pass --with-newlib if appropriate.  Note that target_configdirs has
5692130561Sobrien# changed from the earlier setting of with_newlib.
5693130561Sobrienif test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5694130561Sobrien  target_configargs="--with-newlib ${target_configargs}"
5695130561Sobrienfi
569633965Sjdp
5697130561Sobrien# Different target subdirs use different values of certain variables
5698130561Sobrien# (notably CXX).  Worse, multilibs use *lots* of different values.
5699130561Sobrien# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5700130561Sobrien# it doesn't automatically accept command-line overrides of them.
5701130561Sobrien# This means it's not safe for target subdirs to share a cache file,
5702130561Sobrien# which is disgusting, but there you have it.  Hopefully this can be
5703130561Sobrien# fixed in future.  It's still worthwhile to use a cache file for each
5704130561Sobrien# directory.  I think.
570533965Sjdp
5706218822Sdim# Pass the appropriate --build, --host, --target and --cache-file arguments.
5707218822Sdim# We need to pass --target, as newer autoconf's requires consistency
5708218822Sdim# for target_alias and gcc doesn't manage it consistently.
5709218822Sdimtarget_configargs="--cache-file=./config.cache ${target_configargs}"
571033965Sjdp
5711130561SobrienFLAGS_FOR_TARGET=
5712130561Sobriencase " $target_configdirs " in
5713130561Sobrien *" newlib "*)
5714130561Sobrien  case " $target_configargs " in
5715130561Sobrien  *" --with-newlib "*)
5716130561Sobrien   case "$target" in
5717130561Sobrien   *-cygwin*)
5718130561Sobrien     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' ;;
5719130561Sobrien   esac
572038889Sjdp
5721130561Sobrien   # If we're not building GCC, don't discard standard headers.
5722130561Sobrien   if test -d ${srcdir}/gcc; then
5723130561Sobrien     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
572460484Sobrien
5725130561Sobrien     if test "${build}" != "${host}"; then
5726130561Sobrien       # On Canadian crosses, CC_FOR_TARGET will have already been set
5727130561Sobrien       # by `configure', so we won't have an opportunity to add -Bgcc/
5728130561Sobrien       # to it.  This is right: we don't want to search that directory
5729130561Sobrien       # for binaries, but we want the header files in there, so add
5730130561Sobrien       # them explicitly.
5731218822Sdim       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
573233965Sjdp
5733130561Sobrien       # Someone might think of using the pre-installed headers on
5734130561Sobrien       # Canadian crosses, in case the installed compiler is not fully
5735130561Sobrien       # compatible with the compiler being built.  In this case, it
5736130561Sobrien       # would be better to flag an error than risking having
5737130561Sobrien       # incompatible object files being constructed.  We can't
5738130561Sobrien       # guarantee that an error will be flagged, but let's hope the
5739130561Sobrien       # compiler will do it, when presented with incompatible header
5740130561Sobrien       # files.
5741130561Sobrien     fi
5742130561Sobrien   fi
574333965Sjdp
5744130561Sobrien   case "${target}-${is_cross_compiler}" in
5745130561Sobrien   i[3456789]86-*-linux*-no)
5746130561Sobrien      # Here host == target, so we don't need to build gcc,
5747130561Sobrien      # so we don't want to discard standard headers.
5748130561Sobrien      FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5749130561Sobrien      ;;
5750130561Sobrien   *)
5751130561Sobrien      # If we're building newlib, use its generic headers last, but search
5752130561Sobrien      # for any libc-related directories first (so make it the last -B
5753130561Sobrien      # switch).
5754130561Sobrien      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5755130561Sobrien      ;;
5756130561Sobrien   esac
5757130561Sobrien   ;;
5758130561Sobrien  esac
5759130561Sobrien  ;;
5760130561Sobrienesac
5761218822Sdimcase "$target" in
5762218822Sdim*-mingw*)
5763218822Sdim  # Can't be handled as Cygwin above since Mingw does not use newlib.
5764218822Sdim  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' ;;
5765218822Sdimesac
576633965Sjdp
5767130561Sobrien# Allow the user to override the flags for
5768130561Sobrien# our build compiler if desired.
5769130561SobrienCFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
577033965Sjdp
5771130561Sobrien# On Canadian crosses, we'll be searching the right directories for
5772130561Sobrien# the previously-installed cross compiler, so don't bother to add
5773130561Sobrien# flags for directories within the install tree of the compiler
5774130561Sobrien# being built; programs in there won't even run.
5775130561Sobrienif test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5776130561Sobrien  # Search for pre-installed headers if nothing else fits.
5777130561Sobrien  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5778130561Sobrienfi
577933965Sjdp
5780130561Sobrienif test "x${use_gnu_ld}" = x &&
5781130561Sobrien   echo " ${configdirs} " | grep " ld " > /dev/null ; then
5782130561Sobrien  # Arrange for us to find uninstalled linker scripts.
5783218822Sdim  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5784130561Sobrienfi
578533965Sjdp
5786218822Sdim# Search for other target-specific linker scripts and such.
5787218822Sdimcase "${target}" in
5788218822Sdim  m32c-*-* )
5789218822Sdim    if test -d ${srcdir}/libgloss/m32c; then
5790218822Sdim      # This is for crt0.o
5791218822Sdim      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5792218822Sdim      # This is for r8c.ld
5793218822Sdim      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5794218822Sdim      # This is for libnosys.a
5795218822Sdim      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5796218822Sdim    fi
5797218822Sdim    ;;
5798218822Sdim  mep*)
5799218822Sdim    FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5800218822Sdim    ;;
5801218822Sdimesac
580233965Sjdp
5803218822Sdim# Makefile fragments.
5804218822Sdimfor frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5805218822Sdimdo
5806218822Sdim  eval fragval=\$$frag
5807218822Sdim  if test $fragval != /dev/null; then
5808218822Sdim    eval $frag=${srcdir}/$fragval
5809218822Sdim  fi
5810218822Sdimdone
581133965Sjdp
581233965Sjdp
581333965Sjdp
581433965Sjdp
581533965Sjdp
5816218822Sdim# Miscellanea: directories, flags, etc.
581733965Sjdp
581833965Sjdp
581933965Sjdp
582060484Sobrien
582133965Sjdp
582233965Sjdp
582333965Sjdp
5824218822Sdim# Build module lists & subconfigure args.
582533965Sjdp
582633965Sjdp
582733965Sjdp
5828218822Sdim# Host module lists & subconfigure args.
5829130561Sobrien
5830130561Sobrien
5831130561Sobrien
5832218822Sdim# Target module lists & subconfigure args.
5833130561Sobrien
5834130561Sobrien
5835130561Sobrien
5836218822Sdim# Build tools.
5837130561Sobrien
5838130561Sobrien
5839130561Sobrien
5840218822Sdim# Generate default definitions for YACC, M4, LEX and other programs that run
5841218822Sdim# on the build machine.  These are used if the Makefile can't locate these
5842218822Sdim# programs in objdir.
5843218822SdimMISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5844130561Sobrien
5845218822Sdimfor ac_prog in 'bison -y' byacc yacc
5846218822Sdimdo
5847218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
5848218822Sdimset dummy $ac_prog; ac_word=$2
5849218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5850218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851218822Sdimif test "${ac_cv_prog_YACC+set}" = set; then
5852218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5853218822Sdimelse
5854218822Sdim  if test -n "$YACC"; then
5855218822Sdim  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5856218822Sdimelse
5857218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858218822Sdimfor as_dir in $PATH
5859218822Sdimdo
5860218822Sdim  IFS=$as_save_IFS
5861218822Sdim  test -z "$as_dir" && as_dir=.
5862218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5863218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864218822Sdim    ac_cv_prog_YACC="$ac_prog"
5865218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866218822Sdim    break 2
5867218822Sdim  fi
5868218822Sdimdone
5869218822Sdimdone
5870130561Sobrien
5871218822Sdimfi
5872218822Sdimfi
5873218822SdimYACC=$ac_cv_prog_YACC
5874218822Sdimif test -n "$YACC"; then
5875218822Sdim  echo "$as_me:$LINENO: result: $YACC" >&5
5876218822Sdimecho "${ECHO_T}$YACC" >&6
5877218822Sdimelse
5878218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5879218822Sdimecho "${ECHO_T}no" >&6
5880218822Sdimfi
5881130561Sobrien
5882218822Sdim  test -n "$YACC" && break
5883218822Sdimdone
5884218822Sdimtest -n "$YACC" || YACC="$MISSING bison -y"
5885130561Sobrien
5886218822Sdimcase " $build_configdirs " in
5887218822Sdim  *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5888218822Sdim  *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5889218822Sdimesac
5890130561Sobrien
5891218822Sdimfor ac_prog in bison
5892218822Sdimdo
5893218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
5894218822Sdimset dummy $ac_prog; ac_word=$2
5895218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5896218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897218822Sdimif test "${ac_cv_prog_BISON+set}" = set; then
5898218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5899218822Sdimelse
5900218822Sdim  if test -n "$BISON"; then
5901218822Sdim  ac_cv_prog_BISON="$BISON" # Let the user override the test.
5902218822Sdimelse
5903218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904218822Sdimfor as_dir in $PATH
5905218822Sdimdo
5906218822Sdim  IFS=$as_save_IFS
5907218822Sdim  test -z "$as_dir" && as_dir=.
5908218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5909218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910218822Sdim    ac_cv_prog_BISON="$ac_prog"
5911218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912218822Sdim    break 2
5913218822Sdim  fi
5914218822Sdimdone
5915218822Sdimdone
5916130561Sobrien
5917218822Sdimfi
5918218822Sdimfi
5919218822SdimBISON=$ac_cv_prog_BISON
5920218822Sdimif test -n "$BISON"; then
5921218822Sdim  echo "$as_me:$LINENO: result: $BISON" >&5
5922218822Sdimecho "${ECHO_T}$BISON" >&6
5923218822Sdimelse
5924218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5925218822Sdimecho "${ECHO_T}no" >&6
5926218822Sdimfi
5927130561Sobrien
5928218822Sdim  test -n "$BISON" && break
5929218822Sdimdone
5930218822Sdimtest -n "$BISON" || BISON="$MISSING bison"
5931130561Sobrien
5932218822Sdimcase " $build_configdirs " in
5933218822Sdim  *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5934218822Sdimesac
5935130561Sobrien
5936218822Sdimfor ac_prog in gm4 gnum4 m4
5937218822Sdimdo
5938218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
5939218822Sdimset dummy $ac_prog; ac_word=$2
5940218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5941218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942218822Sdimif test "${ac_cv_prog_M4+set}" = set; then
5943218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5944218822Sdimelse
5945218822Sdim  if test -n "$M4"; then
5946218822Sdim  ac_cv_prog_M4="$M4" # Let the user override the test.
5947218822Sdimelse
5948218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949218822Sdimfor as_dir in $PATH
5950218822Sdimdo
5951218822Sdim  IFS=$as_save_IFS
5952218822Sdim  test -z "$as_dir" && as_dir=.
5953218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5954218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955218822Sdim    ac_cv_prog_M4="$ac_prog"
5956218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957218822Sdim    break 2
5958218822Sdim  fi
5959218822Sdimdone
5960218822Sdimdone
5961130561Sobrien
5962218822Sdimfi
5963218822Sdimfi
5964218822SdimM4=$ac_cv_prog_M4
5965218822Sdimif test -n "$M4"; then
5966218822Sdim  echo "$as_me:$LINENO: result: $M4" >&5
5967218822Sdimecho "${ECHO_T}$M4" >&6
5968218822Sdimelse
5969218822Sdim  echo "$as_me:$LINENO: result: no" >&5
5970218822Sdimecho "${ECHO_T}no" >&6
5971218822Sdimfi
5972130561Sobrien
5973218822Sdim  test -n "$M4" && break
5974218822Sdimdone
5975218822Sdimtest -n "$M4" || M4="$MISSING m4"
5976130561Sobrien
5977218822Sdimcase " $build_configdirs " in
5978218822Sdim  *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5979218822Sdimesac
5980130561Sobrien
5981218822Sdimfor ac_prog in flex lex
5982218822Sdimdo
5983218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
5984218822Sdimset dummy $ac_prog; ac_word=$2
5985218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
5986218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5987218822Sdimif test "${ac_cv_prog_LEX+set}" = set; then
5988218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
5989218822Sdimelse
5990218822Sdim  if test -n "$LEX"; then
5991218822Sdim  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5992218822Sdimelse
5993218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994218822Sdimfor as_dir in $PATH
5995218822Sdimdo
5996218822Sdim  IFS=$as_save_IFS
5997218822Sdim  test -z "$as_dir" && as_dir=.
5998218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
5999218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000218822Sdim    ac_cv_prog_LEX="$ac_prog"
6001218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002218822Sdim    break 2
6003218822Sdim  fi
6004218822Sdimdone
6005218822Sdimdone
6006130561Sobrien
6007218822Sdimfi
6008218822Sdimfi
6009218822SdimLEX=$ac_cv_prog_LEX
6010218822Sdimif test -n "$LEX"; then
6011218822Sdim  echo "$as_me:$LINENO: result: $LEX" >&5
6012218822Sdimecho "${ECHO_T}$LEX" >&6
6013218822Sdimelse
6014218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6015218822Sdimecho "${ECHO_T}no" >&6
6016218822Sdimfi
6017130561Sobrien
6018218822Sdim  test -n "$LEX" && break
6019218822Sdimdone
6020218822Sdimtest -n "$LEX" || LEX="$MISSING flex"
6021130561Sobrien
6022218822Sdimcase " $build_configdirs " in
6023218822Sdim  *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6024218822Sdim  *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6025218822Sdimesac
6026130561Sobrien
6027218822Sdimfor ac_prog in flex
6028218822Sdimdo
6029218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
6030218822Sdimset dummy $ac_prog; ac_word=$2
6031218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6032218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033218822Sdimif test "${ac_cv_prog_FLEX+set}" = set; then
6034218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6035218822Sdimelse
6036218822Sdim  if test -n "$FLEX"; then
6037218822Sdim  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6038218822Sdimelse
6039218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040218822Sdimfor as_dir in $PATH
6041218822Sdimdo
6042218822Sdim  IFS=$as_save_IFS
6043218822Sdim  test -z "$as_dir" && as_dir=.
6044218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6045218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046218822Sdim    ac_cv_prog_FLEX="$ac_prog"
6047218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048218822Sdim    break 2
6049218822Sdim  fi
6050218822Sdimdone
6051218822Sdimdone
6052218822Sdim
6053218822Sdimfi
6054218822Sdimfi
6055218822SdimFLEX=$ac_cv_prog_FLEX
6056218822Sdimif test -n "$FLEX"; then
6057218822Sdim  echo "$as_me:$LINENO: result: $FLEX" >&5
6058218822Sdimecho "${ECHO_T}$FLEX" >&6
6059218822Sdimelse
6060218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6061218822Sdimecho "${ECHO_T}no" >&6
6062218822Sdimfi
6063218822Sdim
6064218822Sdim  test -n "$FLEX" && break
6065218822Sdimdone
6066218822Sdimtest -n "$FLEX" || FLEX="$MISSING flex"
6067218822Sdim
6068218822Sdimcase " $build_configdirs " in
6069218822Sdim  *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6070218822Sdimesac
6071218822Sdim
6072218822Sdimfor ac_prog in makeinfo
6073218822Sdimdo
6074218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
6075218822Sdimset dummy $ac_prog; ac_word=$2
6076218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6077218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6078218822Sdimif test "${ac_cv_prog_MAKEINFO+set}" = set; then
6079218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6080218822Sdimelse
6081218822Sdim  if test -n "$MAKEINFO"; then
6082218822Sdim  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6083218822Sdimelse
6084218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085218822Sdimfor as_dir in $PATH
6086218822Sdimdo
6087218822Sdim  IFS=$as_save_IFS
6088218822Sdim  test -z "$as_dir" && as_dir=.
6089218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6090218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091218822Sdim    ac_cv_prog_MAKEINFO="$ac_prog"
6092218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093218822Sdim    break 2
6094218822Sdim  fi
6095218822Sdimdone
6096218822Sdimdone
6097218822Sdim
6098218822Sdimfi
6099218822Sdimfi
6100218822SdimMAKEINFO=$ac_cv_prog_MAKEINFO
6101218822Sdimif test -n "$MAKEINFO"; then
6102218822Sdim  echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6103218822Sdimecho "${ECHO_T}$MAKEINFO" >&6
6104218822Sdimelse
6105218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6106218822Sdimecho "${ECHO_T}no" >&6
6107218822Sdimfi
6108218822Sdim
6109218822Sdim  test -n "$MAKEINFO" && break
6110218822Sdimdone
6111218822Sdimtest -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6112218822Sdim
6113218822Sdimcase " $build_configdirs " in
6114218822Sdim  *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6115218822Sdim  *)
6116218822Sdim
6117218822Sdim    # For an installed makeinfo, we require it to be from texinfo 4.4 or
6118218822Sdim    # higher, else we use the "missing" dummy.
6119218822Sdim    if ${MAKEINFO} --version \
6120218822Sdim       | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
6121218822Sdim      :
6122218822Sdim    else
6123218822Sdim      MAKEINFO="$MISSING makeinfo"
6124218822Sdim    fi
6125218822Sdim    ;;
6126218822Sdim
6127218822Sdimesac
6128218822Sdim
6129218822Sdim# FIXME: expect and dejagnu may become build tools?
6130218822Sdim
6131218822Sdimfor ac_prog in expect
6132218822Sdimdo
6133218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
6134218822Sdimset dummy $ac_prog; ac_word=$2
6135218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6136218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6137218822Sdimif test "${ac_cv_prog_EXPECT+set}" = set; then
6138218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6139218822Sdimelse
6140218822Sdim  if test -n "$EXPECT"; then
6141218822Sdim  ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6142218822Sdimelse
6143218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144218822Sdimfor as_dir in $PATH
6145218822Sdimdo
6146218822Sdim  IFS=$as_save_IFS
6147218822Sdim  test -z "$as_dir" && as_dir=.
6148218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6149218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150218822Sdim    ac_cv_prog_EXPECT="$ac_prog"
6151218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152218822Sdim    break 2
6153218822Sdim  fi
6154218822Sdimdone
6155218822Sdimdone
6156218822Sdim
6157218822Sdimfi
6158218822Sdimfi
6159218822SdimEXPECT=$ac_cv_prog_EXPECT
6160218822Sdimif test -n "$EXPECT"; then
6161218822Sdim  echo "$as_me:$LINENO: result: $EXPECT" >&5
6162218822Sdimecho "${ECHO_T}$EXPECT" >&6
6163218822Sdimelse
6164218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6165218822Sdimecho "${ECHO_T}no" >&6
6166218822Sdimfi
6167218822Sdim
6168218822Sdim  test -n "$EXPECT" && break
6169218822Sdimdone
6170218822Sdimtest -n "$EXPECT" || EXPECT="expect"
6171218822Sdim
6172218822Sdimcase " $configdirs " in
6173218822Sdim  *" expect "*)
6174218822Sdim    test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6175218822Sdim    ;;
6176218822Sdimesac
6177218822Sdim
6178218822Sdimfor ac_prog in runtest
6179218822Sdimdo
6180218822Sdim  # Extract the first word of "$ac_prog", so it can be a program name with args.
6181218822Sdimset dummy $ac_prog; ac_word=$2
6182218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6183218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6184218822Sdimif test "${ac_cv_prog_RUNTEST+set}" = set; then
6185218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6186218822Sdimelse
6187218822Sdim  if test -n "$RUNTEST"; then
6188218822Sdim  ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6189218822Sdimelse
6190218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191218822Sdimfor as_dir in $PATH
6192218822Sdimdo
6193218822Sdim  IFS=$as_save_IFS
6194218822Sdim  test -z "$as_dir" && as_dir=.
6195218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6196218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6197218822Sdim    ac_cv_prog_RUNTEST="$ac_prog"
6198218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199218822Sdim    break 2
6200218822Sdim  fi
6201218822Sdimdone
6202218822Sdimdone
6203218822Sdim
6204218822Sdimfi
6205218822Sdimfi
6206218822SdimRUNTEST=$ac_cv_prog_RUNTEST
6207218822Sdimif test -n "$RUNTEST"; then
6208218822Sdim  echo "$as_me:$LINENO: result: $RUNTEST" >&5
6209218822Sdimecho "${ECHO_T}$RUNTEST" >&6
6210218822Sdimelse
6211218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6212218822Sdimecho "${ECHO_T}no" >&6
6213218822Sdimfi
6214218822Sdim
6215218822Sdim  test -n "$RUNTEST" && break
6216218822Sdimdone
6217218822Sdimtest -n "$RUNTEST" || RUNTEST="runtest"
6218218822Sdim
6219218822Sdimcase " $configdirs " in
6220218822Sdim  *" dejagnu "*)
6221218822Sdim    test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6222218822Sdim    ;;
6223218822Sdimesac
6224218822Sdim
6225218822Sdim
6226130561Sobrien# Host tools.
6227130561Sobrienncn_tool_prefix=
6228130561Sobrientest -n "$host_alias" && ncn_tool_prefix=$host_alias-
6229130561Sobrienncn_target_tool_prefix=
6230130561Sobrientest -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6231130561Sobrien
6232218822Sdim
6233218822Sdim
6234218822Sdimif test -n "$AR"; then
6235218822Sdim  ac_cv_prog_AR=$AR
6236218822Sdimelif test -n "$ac_cv_prog_AR"; then
6237218822Sdim  AR=$ac_cv_prog_AR
6238218822Sdimfi
6239218822Sdim
6240218822Sdimif test -n "$ac_cv_prog_AR"; then
6241218822Sdim  for ncn_progname in ar; do
6242218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6243218822Sdimset dummy ${ncn_progname}; ac_word=$2
6244218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6245218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6246218822Sdimif test "${ac_cv_prog_AR+set}" = set; then
6247218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6248130561Sobrienelse
6249130561Sobrien  if test -n "$AR"; then
6250130561Sobrien  ac_cv_prog_AR="$AR" # Let the user override the test.
6251130561Sobrienelse
6252218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253218822Sdimfor as_dir in $PATH
6254218822Sdimdo
6255218822Sdim  IFS=$as_save_IFS
6256218822Sdim  test -z "$as_dir" && as_dir=.
6257218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6258218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259218822Sdim    ac_cv_prog_AR="${ncn_progname}"
6260218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261218822Sdim    break 2
6262218822Sdim  fi
6263218822Sdimdone
6264218822Sdimdone
6265218822Sdim
6266218822Sdimfi
6267218822Sdimfi
6268218822SdimAR=$ac_cv_prog_AR
6269218822Sdimif test -n "$AR"; then
6270218822Sdim  echo "$as_me:$LINENO: result: $AR" >&5
6271218822Sdimecho "${ECHO_T}$AR" >&6
6272218822Sdimelse
6273218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6274218822Sdimecho "${ECHO_T}no" >&6
6275218822Sdimfi
6276218822Sdim
6277130561Sobrien  done
627833965Sjdpfi
6279218822Sdim
6280218822Sdimfor ncn_progname in ar; do
6281218822Sdim  if test -n "$ncn_tool_prefix"; then
6282218822Sdim    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6283218822Sdimset dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6284218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6285218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6286218822Sdimif test "${ac_cv_prog_AR+set}" = set; then
6287218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6288218822Sdimelse
6289218822Sdim  if test -n "$AR"; then
6290218822Sdim  ac_cv_prog_AR="$AR" # Let the user override the test.
6291218822Sdimelse
6292218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293218822Sdimfor as_dir in $PATH
6294218822Sdimdo
6295218822Sdim  IFS=$as_save_IFS
6296218822Sdim  test -z "$as_dir" && as_dir=.
6297218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6298218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299218822Sdim    ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6300218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301218822Sdim    break 2
6302218822Sdim  fi
6303218822Sdimdone
6304218822Sdimdone
6305218822Sdim
6306130561Sobrienfi
6307218822Sdimfi
6308218822SdimAR=$ac_cv_prog_AR
6309130561Sobrienif test -n "$AR"; then
6310218822Sdim  echo "$as_me:$LINENO: result: $AR" >&5
6311218822Sdimecho "${ECHO_T}$AR" >&6
6312130561Sobrienelse
6313218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6314218822Sdimecho "${ECHO_T}no" >&6
6315130561Sobrienfi
631633965Sjdp
6317218822Sdim  fi
6318218822Sdim  if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6319218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6320218822Sdimset dummy ${ncn_progname}; ac_word=$2
6321218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6322218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323218822Sdimif test "${ac_cv_prog_AR+set}" = set; then
6324218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6325218822Sdimelse
6326218822Sdim  if test -n "$AR"; then
6327218822Sdim  ac_cv_prog_AR="$AR" # Let the user override the test.
6328218822Sdimelse
6329218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330218822Sdimfor as_dir in $PATH
6331218822Sdimdo
6332218822Sdim  IFS=$as_save_IFS
6333218822Sdim  test -z "$as_dir" && as_dir=.
6334218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6335218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336218822Sdim    ac_cv_prog_AR="${ncn_progname}"
6337218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338218822Sdim    break 2
6339218822Sdim  fi
6340218822Sdimdone
6341218822Sdimdone
6342218822Sdim
6343130561Sobrienfi
6344218822Sdimfi
6345218822SdimAR=$ac_cv_prog_AR
6346218822Sdimif test -n "$AR"; then
6347218822Sdim  echo "$as_me:$LINENO: result: $AR" >&5
6348218822Sdimecho "${ECHO_T}$AR" >&6
6349218822Sdimelse
6350218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6351218822Sdimecho "${ECHO_T}no" >&6
6352218822Sdimfi
6353218822Sdim
6354218822Sdim  fi
6355218822Sdim  test -n "$ac_cv_prog_AR" && break
6356218822Sdimdone
6357218822Sdim
6358130561Sobrienif test -z "$ac_cv_prog_AR" ; then
6359218822Sdim  set dummy ar
6360130561Sobrien  if test $build = $host ; then
6361218822Sdim    AR="$2"
6362218822Sdim  else
6363218822Sdim    AR="${ncn_tool_prefix}$2"
6364218822Sdim  fi
6365218822Sdimfi
6366218822Sdim
6367218822Sdim
6368218822Sdim
6369218822Sdimif test -n "$AS"; then
6370218822Sdim  ac_cv_prog_AS=$AS
6371218822Sdimelif test -n "$ac_cv_prog_AS"; then
6372218822Sdim  AS=$ac_cv_prog_AS
6373218822Sdimfi
6374218822Sdim
6375218822Sdimif test -n "$ac_cv_prog_AS"; then
6376218822Sdim  for ncn_progname in as; do
6377218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6378218822Sdimset dummy ${ncn_progname}; ac_word=$2
6379218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6380218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6381218822Sdimif test "${ac_cv_prog_AS+set}" = set; then
6382218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6383130561Sobrienelse
6384218822Sdim  if test -n "$AS"; then
6385218822Sdim  ac_cv_prog_AS="$AS" # Let the user override the test.
6386130561Sobrienelse
6387218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388218822Sdimfor as_dir in $PATH
6389218822Sdimdo
6390218822Sdim  IFS=$as_save_IFS
6391218822Sdim  test -z "$as_dir" && as_dir=.
6392218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6393218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394218822Sdim    ac_cv_prog_AS="${ncn_progname}"
6395218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396218822Sdim    break 2
6397218822Sdim  fi
6398218822Sdimdone
6399218822Sdimdone
6400218822Sdim
6401130561Sobrienfi
6402130561Sobrienfi
6403218822SdimAS=$ac_cv_prog_AS
6404218822Sdimif test -n "$AS"; then
6405218822Sdim  echo "$as_me:$LINENO: result: $AS" >&5
6406218822Sdimecho "${ECHO_T}$AS" >&6
6407130561Sobrienelse
6408218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6409218822Sdimecho "${ECHO_T}no" >&6
6410130561Sobrienfi
6411218822Sdim
6412218822Sdim  done
6413218822Sdimfi
6414218822Sdim
6415218822Sdimfor ncn_progname in as; do
6416218822Sdim  if test -n "$ncn_tool_prefix"; then
6417218822Sdim    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6418218822Sdimset dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6419218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6420218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6421218822Sdimif test "${ac_cv_prog_AS+set}" = set; then
6422218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6423218822Sdimelse
6424218822Sdim  if test -n "$AS"; then
6425218822Sdim  ac_cv_prog_AS="$AS" # Let the user override the test.
6426218822Sdimelse
6427218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428218822Sdimfor as_dir in $PATH
6429218822Sdimdo
6430218822Sdim  IFS=$as_save_IFS
6431218822Sdim  test -z "$as_dir" && as_dir=.
6432218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6433218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434218822Sdim    ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6435218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436218822Sdim    break 2
6437130561Sobrien  fi
6438218822Sdimdone
6439218822Sdimdone
6440218822Sdim
6441218822Sdimfi
6442218822Sdimfi
6443218822SdimAS=$ac_cv_prog_AS
6444218822Sdimif test -n "$AS"; then
6445218822Sdim  echo "$as_me:$LINENO: result: $AS" >&5
6446218822Sdimecho "${ECHO_T}$AS" >&6
6447130561Sobrienelse
6448218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6449218822Sdimecho "${ECHO_T}no" >&6
6450130561Sobrienfi
645133965Sjdp
6452218822Sdim  fi
6453218822Sdim  if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6454218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6455218822Sdimset dummy ${ncn_progname}; ac_word=$2
6456218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6457218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6458218822Sdimif test "${ac_cv_prog_AS+set}" = set; then
6459218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6460130561Sobrienelse
6461130561Sobrien  if test -n "$AS"; then
6462130561Sobrien  ac_cv_prog_AS="$AS" # Let the user override the test.
6463130561Sobrienelse
6464218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465218822Sdimfor as_dir in $PATH
6466218822Sdimdo
6467218822Sdim  IFS=$as_save_IFS
6468218822Sdim  test -z "$as_dir" && as_dir=.
6469218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6470218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471218822Sdim    ac_cv_prog_AS="${ncn_progname}"
6472218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473218822Sdim    break 2
6474218822Sdim  fi
6475218822Sdimdone
6476218822Sdimdone
6477218822Sdim
6478130561Sobrienfi
6479130561Sobrienfi
6480218822SdimAS=$ac_cv_prog_AS
6481130561Sobrienif test -n "$AS"; then
6482218822Sdim  echo "$as_me:$LINENO: result: $AS" >&5
6483218822Sdimecho "${ECHO_T}$AS" >&6
6484130561Sobrienelse
6485218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6486218822Sdimecho "${ECHO_T}no" >&6
6487130561Sobrienfi
648833965Sjdp
6489218822Sdim  fi
6490218822Sdim  test -n "$ac_cv_prog_AS" && break
6491218822Sdimdone
6492218822Sdim
6493130561Sobrienif test -z "$ac_cv_prog_AS" ; then
6494218822Sdim  set dummy as
6495130561Sobrien  if test $build = $host ; then
6496218822Sdim    AS="$2"
6497218822Sdim  else
6498218822Sdim    AS="${ncn_tool_prefix}$2"
6499218822Sdim  fi
6500218822Sdimfi
6501218822Sdim
6502218822Sdim
6503218822Sdim
6504218822Sdimif test -n "$DLLTOOL"; then
6505218822Sdim  ac_cv_prog_DLLTOOL=$DLLTOOL
6506218822Sdimelif test -n "$ac_cv_prog_DLLTOOL"; then
6507218822Sdim  DLLTOOL=$ac_cv_prog_DLLTOOL
6508218822Sdimfi
6509218822Sdim
6510218822Sdimif test -n "$ac_cv_prog_DLLTOOL"; then
6511218822Sdim  for ncn_progname in dlltool; do
6512218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6513218822Sdimset dummy ${ncn_progname}; ac_word=$2
6514218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6515218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6516218822Sdimif test "${ac_cv_prog_DLLTOOL+set}" = set; then
6517218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6518130561Sobrienelse
6519218822Sdim  if test -n "$DLLTOOL"; then
6520218822Sdim  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6521130561Sobrienelse
6522218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523218822Sdimfor as_dir in $PATH
6524218822Sdimdo
6525218822Sdim  IFS=$as_save_IFS
6526218822Sdim  test -z "$as_dir" && as_dir=.
6527218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6528218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529218822Sdim    ac_cv_prog_DLLTOOL="${ncn_progname}"
6530218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531218822Sdim    break 2
6532218822Sdim  fi
6533218822Sdimdone
6534218822Sdimdone
6535218822Sdim
6536130561Sobrienfi
6537130561Sobrienfi
6538218822SdimDLLTOOL=$ac_cv_prog_DLLTOOL
6539218822Sdimif test -n "$DLLTOOL"; then
6540218822Sdim  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6541218822Sdimecho "${ECHO_T}$DLLTOOL" >&6
6542130561Sobrienelse
6543218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6544218822Sdimecho "${ECHO_T}no" >&6
6545130561Sobrienfi
6546218822Sdim
6547218822Sdim  done
6548218822Sdimfi
6549218822Sdim
6550218822Sdimfor ncn_progname in dlltool; do
6551218822Sdim  if test -n "$ncn_tool_prefix"; then
6552218822Sdim    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6553218822Sdimset dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6554218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6555218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6556218822Sdimif test "${ac_cv_prog_DLLTOOL+set}" = set; then
6557218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6558218822Sdimelse
6559218822Sdim  if test -n "$DLLTOOL"; then
6560218822Sdim  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6561218822Sdimelse
6562218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563218822Sdimfor as_dir in $PATH
6564218822Sdimdo
6565218822Sdim  IFS=$as_save_IFS
6566218822Sdim  test -z "$as_dir" && as_dir=.
6567218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6568218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6569218822Sdim    ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6570218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571218822Sdim    break 2
6572130561Sobrien  fi
6573218822Sdimdone
6574218822Sdimdone
6575218822Sdim
6576218822Sdimfi
6577218822Sdimfi
6578218822SdimDLLTOOL=$ac_cv_prog_DLLTOOL
6579218822Sdimif test -n "$DLLTOOL"; then
6580218822Sdim  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6581218822Sdimecho "${ECHO_T}$DLLTOOL" >&6
6582130561Sobrienelse
6583218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6584218822Sdimecho "${ECHO_T}no" >&6
6585130561Sobrienfi
6586130561Sobrien
6587218822Sdim  fi
6588218822Sdim  if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6589218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6590218822Sdimset dummy ${ncn_progname}; ac_word=$2
6591218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6592218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593218822Sdimif test "${ac_cv_prog_DLLTOOL+set}" = set; then
6594218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6595130561Sobrienelse
6596130561Sobrien  if test -n "$DLLTOOL"; then
6597130561Sobrien  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6598130561Sobrienelse
6599218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600218822Sdimfor as_dir in $PATH
6601218822Sdimdo
6602218822Sdim  IFS=$as_save_IFS
6603218822Sdim  test -z "$as_dir" && as_dir=.
6604218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6605218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606218822Sdim    ac_cv_prog_DLLTOOL="${ncn_progname}"
6607218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608218822Sdim    break 2
6609218822Sdim  fi
6610218822Sdimdone
6611218822Sdimdone
6612218822Sdim
6613130561Sobrienfi
6614130561Sobrienfi
6615218822SdimDLLTOOL=$ac_cv_prog_DLLTOOL
6616130561Sobrienif test -n "$DLLTOOL"; then
6617218822Sdim  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6618218822Sdimecho "${ECHO_T}$DLLTOOL" >&6
6619130561Sobrienelse
6620218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6621218822Sdimecho "${ECHO_T}no" >&6
6622130561Sobrienfi
6623130561Sobrien
6624218822Sdim  fi
6625218822Sdim  test -n "$ac_cv_prog_DLLTOOL" && break
6626218822Sdimdone
6627218822Sdim
6628130561Sobrienif test -z "$ac_cv_prog_DLLTOOL" ; then
6629218822Sdim  set dummy dlltool
6630130561Sobrien  if test $build = $host ; then
6631218822Sdim    DLLTOOL="$2"
6632218822Sdim  else
6633218822Sdim    DLLTOOL="${ncn_tool_prefix}$2"
6634218822Sdim  fi
6635218822Sdimfi
6636218822Sdim
6637218822Sdim
6638218822Sdim
6639218822Sdimif test -n "$LD"; then
6640218822Sdim  ac_cv_prog_LD=$LD
6641218822Sdimelif test -n "$ac_cv_prog_LD"; then
6642218822Sdim  LD=$ac_cv_prog_LD
6643218822Sdimfi
6644218822Sdim
6645218822Sdimif test -n "$ac_cv_prog_LD"; then
6646218822Sdim  for ncn_progname in ld; do
6647218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6648218822Sdimset dummy ${ncn_progname}; ac_word=$2
6649218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6650218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6651218822Sdimif test "${ac_cv_prog_LD+set}" = set; then
6652218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6653130561Sobrienelse
6654218822Sdim  if test -n "$LD"; then
6655218822Sdim  ac_cv_prog_LD="$LD" # Let the user override the test.
6656130561Sobrienelse
6657218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658218822Sdimfor as_dir in $PATH
6659218822Sdimdo
6660218822Sdim  IFS=$as_save_IFS
6661218822Sdim  test -z "$as_dir" && as_dir=.
6662218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6663218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664218822Sdim    ac_cv_prog_LD="${ncn_progname}"
6665218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666218822Sdim    break 2
6667218822Sdim  fi
6668218822Sdimdone
6669218822Sdimdone
6670218822Sdim
6671130561Sobrienfi
6672130561Sobrienfi
6673218822SdimLD=$ac_cv_prog_LD
6674218822Sdimif test -n "$LD"; then
6675218822Sdim  echo "$as_me:$LINENO: result: $LD" >&5
6676218822Sdimecho "${ECHO_T}$LD" >&6
6677130561Sobrienelse
6678218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6679218822Sdimecho "${ECHO_T}no" >&6
6680130561Sobrienfi
6681218822Sdim
6682218822Sdim  done
6683218822Sdimfi
6684218822Sdim
6685218822Sdimfor ncn_progname in ld; do
6686218822Sdim  if test -n "$ncn_tool_prefix"; then
6687218822Sdim    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6688218822Sdimset dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6689218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6690218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6691218822Sdimif test "${ac_cv_prog_LD+set}" = set; then
6692218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6693218822Sdimelse
6694218822Sdim  if test -n "$LD"; then
6695218822Sdim  ac_cv_prog_LD="$LD" # Let the user override the test.
6696218822Sdimelse
6697218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698218822Sdimfor as_dir in $PATH
6699218822Sdimdo
6700218822Sdim  IFS=$as_save_IFS
6701218822Sdim  test -z "$as_dir" && as_dir=.
6702218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6703218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704218822Sdim    ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6705218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706218822Sdim    break 2
6707130561Sobrien  fi
6708218822Sdimdone
6709218822Sdimdone
6710218822Sdim
6711218822Sdimfi
6712218822Sdimfi
6713218822SdimLD=$ac_cv_prog_LD
6714218822Sdimif test -n "$LD"; then
6715218822Sdim  echo "$as_me:$LINENO: result: $LD" >&5
6716218822Sdimecho "${ECHO_T}$LD" >&6
6717130561Sobrienelse
6718218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6719218822Sdimecho "${ECHO_T}no" >&6
6720130561Sobrienfi
6721130561Sobrien
6722218822Sdim  fi
6723218822Sdim  if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6724218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6725218822Sdimset dummy ${ncn_progname}; ac_word=$2
6726218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6727218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6728218822Sdimif test "${ac_cv_prog_LD+set}" = set; then
6729218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6730130561Sobrienelse
6731130561Sobrien  if test -n "$LD"; then
6732130561Sobrien  ac_cv_prog_LD="$LD" # Let the user override the test.
6733130561Sobrienelse
6734218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735218822Sdimfor as_dir in $PATH
6736218822Sdimdo
6737218822Sdim  IFS=$as_save_IFS
6738218822Sdim  test -z "$as_dir" && as_dir=.
6739218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6740218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741218822Sdim    ac_cv_prog_LD="${ncn_progname}"
6742218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743218822Sdim    break 2
6744218822Sdim  fi
6745218822Sdimdone
6746218822Sdimdone
6747218822Sdim
6748130561Sobrienfi
6749130561Sobrienfi
6750218822SdimLD=$ac_cv_prog_LD
6751130561Sobrienif test -n "$LD"; then
6752218822Sdim  echo "$as_me:$LINENO: result: $LD" >&5
6753218822Sdimecho "${ECHO_T}$LD" >&6
6754130561Sobrienelse
6755218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6756218822Sdimecho "${ECHO_T}no" >&6
6757130561Sobrienfi
6758130561Sobrien
6759218822Sdim  fi
6760218822Sdim  test -n "$ac_cv_prog_LD" && break
6761218822Sdimdone
6762218822Sdim
6763130561Sobrienif test -z "$ac_cv_prog_LD" ; then
6764218822Sdim  set dummy ld
6765130561Sobrien  if test $build = $host ; then
6766218822Sdim    LD="$2"
6767218822Sdim  else
6768218822Sdim    LD="${ncn_tool_prefix}$2"
6769218822Sdim  fi
6770218822Sdimfi
6771218822Sdim
6772218822Sdim
6773218822Sdim
6774218822Sdimif test -n "$LIPO"; then
6775218822Sdim  ac_cv_prog_LIPO=$LIPO
6776218822Sdimelif test -n "$ac_cv_prog_LIPO"; then
6777218822Sdim  LIPO=$ac_cv_prog_LIPO
6778218822Sdimfi
6779218822Sdim
6780218822Sdimif test -n "$ac_cv_prog_LIPO"; then
6781218822Sdim  for ncn_progname in lipo; do
6782218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6783218822Sdimset dummy ${ncn_progname}; ac_word=$2
6784218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6785218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6786218822Sdimif test "${ac_cv_prog_LIPO+set}" = set; then
6787218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6788130561Sobrienelse
6789218822Sdim  if test -n "$LIPO"; then
6790218822Sdim  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6791130561Sobrienelse
6792218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793218822Sdimfor as_dir in $PATH
6794218822Sdimdo
6795218822Sdim  IFS=$as_save_IFS
6796218822Sdim  test -z "$as_dir" && as_dir=.
6797218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6798218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799218822Sdim    ac_cv_prog_LIPO="${ncn_progname}"
6800218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801218822Sdim    break 2
6802218822Sdim  fi
6803218822Sdimdone
6804218822Sdimdone
6805218822Sdim
6806218822Sdimfi
6807218822Sdimfi
6808218822SdimLIPO=$ac_cv_prog_LIPO
6809218822Sdimif test -n "$LIPO"; then
6810218822Sdim  echo "$as_me:$LINENO: result: $LIPO" >&5
6811218822Sdimecho "${ECHO_T}$LIPO" >&6
6812218822Sdimelse
6813218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6814218822Sdimecho "${ECHO_T}no" >&6
6815218822Sdimfi
6816218822Sdim
6817130561Sobrien  done
6818130561Sobrienfi
6819218822Sdim
6820218822Sdimfor ncn_progname in lipo; do
6821218822Sdim  if test -n "$ncn_tool_prefix"; then
6822218822Sdim    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6823218822Sdimset dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6824218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6825218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6826218822Sdimif test "${ac_cv_prog_LIPO+set}" = set; then
6827218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6828218822Sdimelse
6829218822Sdim  if test -n "$LIPO"; then
6830218822Sdim  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6831218822Sdimelse
6832218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833218822Sdimfor as_dir in $PATH
6834218822Sdimdo
6835218822Sdim  IFS=$as_save_IFS
6836218822Sdim  test -z "$as_dir" && as_dir=.
6837218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6838218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839218822Sdim    ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6840218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841218822Sdim    break 2
6842218822Sdim  fi
6843218822Sdimdone
6844218822Sdimdone
6845218822Sdim
6846130561Sobrienfi
6847218822Sdimfi
6848218822SdimLIPO=$ac_cv_prog_LIPO
6849218822Sdimif test -n "$LIPO"; then
6850218822Sdim  echo "$as_me:$LINENO: result: $LIPO" >&5
6851218822Sdimecho "${ECHO_T}$LIPO" >&6
6852130561Sobrienelse
6853218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6854218822Sdimecho "${ECHO_T}no" >&6
6855130561Sobrienfi
6856218822Sdim
6857130561Sobrien  fi
6858218822Sdim  if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6859218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6860218822Sdimset dummy ${ncn_progname}; ac_word=$2
6861218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6862218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6863218822Sdimif test "${ac_cv_prog_LIPO+set}" = set; then
6864218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6865130561Sobrienelse
6866218822Sdim  if test -n "$LIPO"; then
6867218822Sdim  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6868218822Sdimelse
6869218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870218822Sdimfor as_dir in $PATH
6871218822Sdimdo
6872218822Sdim  IFS=$as_save_IFS
6873218822Sdim  test -z "$as_dir" && as_dir=.
6874218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6875218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876218822Sdim    ac_cv_prog_LIPO="${ncn_progname}"
6877218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878218822Sdim    break 2
6879218822Sdim  fi
6880218822Sdimdone
6881218822Sdimdone
6882218822Sdim
6883130561Sobrienfi
6884218822Sdimfi
6885218822SdimLIPO=$ac_cv_prog_LIPO
6886218822Sdimif test -n "$LIPO"; then
6887218822Sdim  echo "$as_me:$LINENO: result: $LIPO" >&5
6888218822Sdimecho "${ECHO_T}$LIPO" >&6
6889218822Sdimelse
6890218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6891218822Sdimecho "${ECHO_T}no" >&6
6892218822Sdimfi
6893130561Sobrien
6894218822Sdim  fi
6895218822Sdim  test -n "$ac_cv_prog_LIPO" && break
6896218822Sdimdone
6897218822Sdim
6898218822Sdimif test -z "$ac_cv_prog_LIPO" ; then
6899218822Sdim  set dummy lipo
6900218822Sdim  if test $build = $host ; then
6901218822Sdim    LIPO="$2"
6902218822Sdim  else
6903218822Sdim    LIPO="${ncn_tool_prefix}$2"
6904218822Sdim  fi
6905218822Sdimfi
6906218822Sdim
6907218822Sdim
6908218822Sdim
6909218822Sdimif test -n "$NM"; then
6910218822Sdim  ac_cv_prog_NM=$NM
6911218822Sdimelif test -n "$ac_cv_prog_NM"; then
6912218822Sdim  NM=$ac_cv_prog_NM
6913218822Sdimfi
6914218822Sdim
6915218822Sdimif test -n "$ac_cv_prog_NM"; then
6916218822Sdim  for ncn_progname in nm; do
6917218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6918218822Sdimset dummy ${ncn_progname}; ac_word=$2
6919218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6920218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6921218822Sdimif test "${ac_cv_prog_NM+set}" = set; then
6922218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6923130561Sobrienelse
6924130561Sobrien  if test -n "$NM"; then
6925130561Sobrien  ac_cv_prog_NM="$NM" # Let the user override the test.
6926130561Sobrienelse
6927218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928218822Sdimfor as_dir in $PATH
6929218822Sdimdo
6930218822Sdim  IFS=$as_save_IFS
6931218822Sdim  test -z "$as_dir" && as_dir=.
6932218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6933218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934218822Sdim    ac_cv_prog_NM="${ncn_progname}"
6935218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936218822Sdim    break 2
6937218822Sdim  fi
6938218822Sdimdone
6939218822Sdimdone
6940218822Sdim
6941218822Sdimfi
6942218822Sdimfi
6943218822SdimNM=$ac_cv_prog_NM
6944218822Sdimif test -n "$NM"; then
6945218822Sdim  echo "$as_me:$LINENO: result: $NM" >&5
6946218822Sdimecho "${ECHO_T}$NM" >&6
6947218822Sdimelse
6948218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6949218822Sdimecho "${ECHO_T}no" >&6
6950218822Sdimfi
6951218822Sdim
6952130561Sobrien  done
6953130561Sobrienfi
6954218822Sdim
6955218822Sdimfor ncn_progname in nm; do
6956218822Sdim  if test -n "$ncn_tool_prefix"; then
6957218822Sdim    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6958218822Sdimset dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6959218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6960218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6961218822Sdimif test "${ac_cv_prog_NM+set}" = set; then
6962218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
6963218822Sdimelse
6964218822Sdim  if test -n "$NM"; then
6965218822Sdim  ac_cv_prog_NM="$NM" # Let the user override the test.
6966218822Sdimelse
6967218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968218822Sdimfor as_dir in $PATH
6969218822Sdimdo
6970218822Sdim  IFS=$as_save_IFS
6971218822Sdim  test -z "$as_dir" && as_dir=.
6972218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
6973218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974218822Sdim    ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6975218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976218822Sdim    break 2
6977218822Sdim  fi
6978218822Sdimdone
6979218822Sdimdone
6980218822Sdim
6981130561Sobrienfi
6982218822Sdimfi
6983218822SdimNM=$ac_cv_prog_NM
6984130561Sobrienif test -n "$NM"; then
6985218822Sdim  echo "$as_me:$LINENO: result: $NM" >&5
6986218822Sdimecho "${ECHO_T}$NM" >&6
6987130561Sobrienelse
6988218822Sdim  echo "$as_me:$LINENO: result: no" >&5
6989218822Sdimecho "${ECHO_T}no" >&6
6990130561Sobrienfi
6991130561Sobrien
6992218822Sdim  fi
6993218822Sdim  if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6994218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6995218822Sdimset dummy ${ncn_progname}; ac_word=$2
6996218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
6997218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6998218822Sdimif test "${ac_cv_prog_NM+set}" = set; then
6999218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7000218822Sdimelse
7001218822Sdim  if test -n "$NM"; then
7002218822Sdim  ac_cv_prog_NM="$NM" # Let the user override the test.
7003218822Sdimelse
7004218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005218822Sdimfor as_dir in $PATH
7006218822Sdimdo
7007218822Sdim  IFS=$as_save_IFS
7008218822Sdim  test -z "$as_dir" && as_dir=.
7009218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7010218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011218822Sdim    ac_cv_prog_NM="${ncn_progname}"
7012218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013218822Sdim    break 2
7014218822Sdim  fi
7015218822Sdimdone
7016218822Sdimdone
7017218822Sdim
7018130561Sobrienfi
7019218822Sdimfi
7020218822SdimNM=$ac_cv_prog_NM
7021218822Sdimif test -n "$NM"; then
7022218822Sdim  echo "$as_me:$LINENO: result: $NM" >&5
7023218822Sdimecho "${ECHO_T}$NM" >&6
7024218822Sdimelse
7025218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7026218822Sdimecho "${ECHO_T}no" >&6
7027218822Sdimfi
7028218822Sdim
7029218822Sdim  fi
7030218822Sdim  test -n "$ac_cv_prog_NM" && break
7031218822Sdimdone
7032218822Sdim
7033130561Sobrienif test -z "$ac_cv_prog_NM" ; then
7034218822Sdim  set dummy nm
7035130561Sobrien  if test $build = $host ; then
7036218822Sdim    NM="$2"
7037218822Sdim  else
7038218822Sdim    NM="${ncn_tool_prefix}$2"
7039218822Sdim  fi
7040218822Sdimfi
7041218822Sdim
7042218822Sdim
7043218822Sdim
7044218822Sdimif test -n "$RANLIB"; then
7045218822Sdim  ac_cv_prog_RANLIB=$RANLIB
7046218822Sdimelif test -n "$ac_cv_prog_RANLIB"; then
7047218822Sdim  RANLIB=$ac_cv_prog_RANLIB
7048218822Sdimfi
7049218822Sdim
7050218822Sdimif test -n "$ac_cv_prog_RANLIB"; then
7051218822Sdim  for ncn_progname in ranlib; do
7052218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7053218822Sdimset dummy ${ncn_progname}; ac_word=$2
7054218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7055218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7056218822Sdimif test "${ac_cv_prog_RANLIB+set}" = set; then
7057218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7058130561Sobrienelse
7059218822Sdim  if test -n "$RANLIB"; then
7060218822Sdim  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7061130561Sobrienelse
7062218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063218822Sdimfor as_dir in $PATH
7064218822Sdimdo
7065218822Sdim  IFS=$as_save_IFS
7066218822Sdim  test -z "$as_dir" && as_dir=.
7067218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7068218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069218822Sdim    ac_cv_prog_RANLIB="${ncn_progname}"
7070218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071218822Sdim    break 2
7072218822Sdim  fi
7073218822Sdimdone
7074218822Sdimdone
7075218822Sdim
7076130561Sobrienfi
7077130561Sobrienfi
7078218822SdimRANLIB=$ac_cv_prog_RANLIB
7079218822Sdimif test -n "$RANLIB"; then
7080218822Sdim  echo "$as_me:$LINENO: result: $RANLIB" >&5
7081218822Sdimecho "${ECHO_T}$RANLIB" >&6
7082130561Sobrienelse
7083218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7084218822Sdimecho "${ECHO_T}no" >&6
7085130561Sobrienfi
7086218822Sdim
7087218822Sdim  done
7088218822Sdimfi
7089218822Sdim
7090218822Sdimfor ncn_progname in ranlib; do
7091218822Sdim  if test -n "$ncn_tool_prefix"; then
7092218822Sdim    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7093218822Sdimset dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7094218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7095218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7096218822Sdimif test "${ac_cv_prog_RANLIB+set}" = set; then
7097218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7098218822Sdimelse
7099218822Sdim  if test -n "$RANLIB"; then
7100218822Sdim  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7101218822Sdimelse
7102218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103218822Sdimfor as_dir in $PATH
7104218822Sdimdo
7105218822Sdim  IFS=$as_save_IFS
7106218822Sdim  test -z "$as_dir" && as_dir=.
7107218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7108218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109218822Sdim    ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7110218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111218822Sdim    break 2
7112130561Sobrien  fi
7113218822Sdimdone
7114218822Sdimdone
7115218822Sdim
7116218822Sdimfi
7117218822Sdimfi
7118218822SdimRANLIB=$ac_cv_prog_RANLIB
7119218822Sdimif test -n "$RANLIB"; then
7120218822Sdim  echo "$as_me:$LINENO: result: $RANLIB" >&5
7121218822Sdimecho "${ECHO_T}$RANLIB" >&6
7122130561Sobrienelse
7123218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7124218822Sdimecho "${ECHO_T}no" >&6
7125130561Sobrienfi
7126130561Sobrien
7127218822Sdim  fi
7128218822Sdim  if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7129218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7130218822Sdimset dummy ${ncn_progname}; ac_word=$2
7131218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7132218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133218822Sdimif test "${ac_cv_prog_RANLIB+set}" = set; then
7134218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7135130561Sobrienelse
7136130561Sobrien  if test -n "$RANLIB"; then
7137130561Sobrien  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7138130561Sobrienelse
7139218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140218822Sdimfor as_dir in $PATH
7141218822Sdimdo
7142218822Sdim  IFS=$as_save_IFS
7143218822Sdim  test -z "$as_dir" && as_dir=.
7144218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7145218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146218822Sdim    ac_cv_prog_RANLIB="${ncn_progname}"
7147218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148218822Sdim    break 2
7149218822Sdim  fi
7150218822Sdimdone
7151218822Sdimdone
7152218822Sdim
7153130561Sobrienfi
7154130561Sobrienfi
7155218822SdimRANLIB=$ac_cv_prog_RANLIB
7156130561Sobrienif test -n "$RANLIB"; then
7157218822Sdim  echo "$as_me:$LINENO: result: $RANLIB" >&5
7158218822Sdimecho "${ECHO_T}$RANLIB" >&6
7159130561Sobrienelse
7160218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7161218822Sdimecho "${ECHO_T}no" >&6
7162130561Sobrienfi
7163130561Sobrien
7164218822Sdim  fi
7165218822Sdim  test -n "$ac_cv_prog_RANLIB" && break
7166218822Sdimdone
7167218822Sdim
7168218822Sdimif test -z "$ac_cv_prog_RANLIB" ; then
7169218822Sdim  RANLIB=":"
7170130561Sobrienfi
7171218822Sdim
7172218822Sdim
7173218822Sdim
7174218822Sdimif test -n "$STRIP"; then
7175218822Sdim  ac_cv_prog_STRIP=$STRIP
7176218822Sdimelif test -n "$ac_cv_prog_STRIP"; then
7177218822Sdim  STRIP=$ac_cv_prog_STRIP
7178218822Sdimfi
7179218822Sdim
7180218822Sdimif test -n "$ac_cv_prog_STRIP"; then
7181218822Sdim  for ncn_progname in strip; do
7182218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7183218822Sdimset dummy ${ncn_progname}; ac_word=$2
7184218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7185218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186218822Sdimif test "${ac_cv_prog_STRIP+set}" = set; then
7187218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7188130561Sobrienelse
7189218822Sdim  if test -n "$STRIP"; then
7190218822Sdim  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7191130561Sobrienelse
7192218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193218822Sdimfor as_dir in $PATH
7194218822Sdimdo
7195218822Sdim  IFS=$as_save_IFS
7196218822Sdim  test -z "$as_dir" && as_dir=.
7197218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7198218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199218822Sdim    ac_cv_prog_STRIP="${ncn_progname}"
7200218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201218822Sdim    break 2
7202218822Sdim  fi
7203218822Sdimdone
7204218822Sdimdone
7205218822Sdim
7206218822Sdimfi
7207218822Sdimfi
7208218822SdimSTRIP=$ac_cv_prog_STRIP
7209218822Sdimif test -n "$STRIP"; then
7210218822Sdim  echo "$as_me:$LINENO: result: $STRIP" >&5
7211218822Sdimecho "${ECHO_T}$STRIP" >&6
7212218822Sdimelse
7213218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7214218822Sdimecho "${ECHO_T}no" >&6
7215218822Sdimfi
7216218822Sdim
7217130561Sobrien  done
7218130561Sobrienfi
7219218822Sdim
7220218822Sdimfor ncn_progname in strip; do
7221218822Sdim  if test -n "$ncn_tool_prefix"; then
7222218822Sdim    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7223218822Sdimset dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7224218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7225218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226218822Sdimif test "${ac_cv_prog_STRIP+set}" = set; then
7227218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7228218822Sdimelse
7229218822Sdim  if test -n "$STRIP"; then
7230218822Sdim  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7231218822Sdimelse
7232218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233218822Sdimfor as_dir in $PATH
7234218822Sdimdo
7235218822Sdim  IFS=$as_save_IFS
7236218822Sdim  test -z "$as_dir" && as_dir=.
7237218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7238218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239218822Sdim    ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7240218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241218822Sdim    break 2
7242218822Sdim  fi
7243218822Sdimdone
7244218822Sdimdone
7245218822Sdim
7246130561Sobrienfi
7247218822Sdimfi
7248218822SdimSTRIP=$ac_cv_prog_STRIP
7249218822Sdimif test -n "$STRIP"; then
7250218822Sdim  echo "$as_me:$LINENO: result: $STRIP" >&5
7251218822Sdimecho "${ECHO_T}$STRIP" >&6
7252130561Sobrienelse
7253218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7254218822Sdimecho "${ECHO_T}no" >&6
7255130561Sobrienfi
7256218822Sdim
7257130561Sobrien  fi
7258218822Sdim  if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7259218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7260218822Sdimset dummy ${ncn_progname}; ac_word=$2
7261218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7262218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263218822Sdimif test "${ac_cv_prog_STRIP+set}" = set; then
7264218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7265130561Sobrienelse
7266218822Sdim  if test -n "$STRIP"; then
7267218822Sdim  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7268218822Sdimelse
7269218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270218822Sdimfor as_dir in $PATH
7271218822Sdimdo
7272218822Sdim  IFS=$as_save_IFS
7273218822Sdim  test -z "$as_dir" && as_dir=.
7274218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7275218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276218822Sdim    ac_cv_prog_STRIP="${ncn_progname}"
7277218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278218822Sdim    break 2
7279218822Sdim  fi
7280218822Sdimdone
7281218822Sdimdone
7282218822Sdim
7283130561Sobrienfi
7284218822Sdimfi
7285218822SdimSTRIP=$ac_cv_prog_STRIP
7286218822Sdimif test -n "$STRIP"; then
7287218822Sdim  echo "$as_me:$LINENO: result: $STRIP" >&5
7288218822Sdimecho "${ECHO_T}$STRIP" >&6
7289218822Sdimelse
7290218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7291218822Sdimecho "${ECHO_T}no" >&6
7292218822Sdimfi
7293130561Sobrien
7294218822Sdim  fi
7295218822Sdim  test -n "$ac_cv_prog_STRIP" && break
7296218822Sdimdone
7297218822Sdim
7298218822Sdimif test -z "$ac_cv_prog_STRIP" ; then
7299218822Sdim  STRIP=":"
7300218822Sdimfi
7301218822Sdim
7302218822Sdim
7303218822Sdim
7304218822Sdimif test -n "$WINDRES"; then
7305218822Sdim  ac_cv_prog_WINDRES=$WINDRES
7306218822Sdimelif test -n "$ac_cv_prog_WINDRES"; then
7307218822Sdim  WINDRES=$ac_cv_prog_WINDRES
7308218822Sdimfi
7309218822Sdim
7310218822Sdimif test -n "$ac_cv_prog_WINDRES"; then
7311218822Sdim  for ncn_progname in windres; do
7312218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7313218822Sdimset dummy ${ncn_progname}; ac_word=$2
7314218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7315218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7316218822Sdimif test "${ac_cv_prog_WINDRES+set}" = set; then
7317218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7318130561Sobrienelse
7319130561Sobrien  if test -n "$WINDRES"; then
7320130561Sobrien  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7321130561Sobrienelse
7322218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323218822Sdimfor as_dir in $PATH
7324218822Sdimdo
7325218822Sdim  IFS=$as_save_IFS
7326218822Sdim  test -z "$as_dir" && as_dir=.
7327218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7328218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329218822Sdim    ac_cv_prog_WINDRES="${ncn_progname}"
7330218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331218822Sdim    break 2
7332218822Sdim  fi
7333218822Sdimdone
7334218822Sdimdone
7335218822Sdim
7336218822Sdimfi
7337218822Sdimfi
7338218822SdimWINDRES=$ac_cv_prog_WINDRES
7339218822Sdimif test -n "$WINDRES"; then
7340218822Sdim  echo "$as_me:$LINENO: result: $WINDRES" >&5
7341218822Sdimecho "${ECHO_T}$WINDRES" >&6
7342218822Sdimelse
7343218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7344218822Sdimecho "${ECHO_T}no" >&6
7345218822Sdimfi
7346218822Sdim
7347130561Sobrien  done
7348130561Sobrienfi
7349218822Sdim
7350218822Sdimfor ncn_progname in windres; do
7351218822Sdim  if test -n "$ncn_tool_prefix"; then
7352218822Sdim    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7353218822Sdimset dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7354218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7355218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7356218822Sdimif test "${ac_cv_prog_WINDRES+set}" = set; then
7357218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7358218822Sdimelse
7359218822Sdim  if test -n "$WINDRES"; then
7360218822Sdim  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7361218822Sdimelse
7362218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363218822Sdimfor as_dir in $PATH
7364218822Sdimdo
7365218822Sdim  IFS=$as_save_IFS
7366218822Sdim  test -z "$as_dir" && as_dir=.
7367218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7368218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369218822Sdim    ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7370218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371218822Sdim    break 2
7372218822Sdim  fi
7373218822Sdimdone
7374218822Sdimdone
7375218822Sdim
7376130561Sobrienfi
7377218822Sdimfi
7378218822SdimWINDRES=$ac_cv_prog_WINDRES
7379130561Sobrienif test -n "$WINDRES"; then
7380218822Sdim  echo "$as_me:$LINENO: result: $WINDRES" >&5
7381218822Sdimecho "${ECHO_T}$WINDRES" >&6
7382130561Sobrienelse
7383218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7384218822Sdimecho "${ECHO_T}no" >&6
7385130561Sobrienfi
7386130561Sobrien
7387218822Sdim  fi
7388218822Sdim  if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7389218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7390218822Sdimset dummy ${ncn_progname}; ac_word=$2
7391218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7392218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7393218822Sdimif test "${ac_cv_prog_WINDRES+set}" = set; then
7394218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7395218822Sdimelse
7396218822Sdim  if test -n "$WINDRES"; then
7397218822Sdim  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7398218822Sdimelse
7399218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400218822Sdimfor as_dir in $PATH
7401218822Sdimdo
7402218822Sdim  IFS=$as_save_IFS
7403218822Sdim  test -z "$as_dir" && as_dir=.
7404218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7405218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406218822Sdim    ac_cv_prog_WINDRES="${ncn_progname}"
7407218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408218822Sdim    break 2
7409218822Sdim  fi
7410218822Sdimdone
7411218822Sdimdone
7412218822Sdim
7413130561Sobrienfi
7414218822Sdimfi
7415218822SdimWINDRES=$ac_cv_prog_WINDRES
7416218822Sdimif test -n "$WINDRES"; then
7417218822Sdim  echo "$as_me:$LINENO: result: $WINDRES" >&5
7418218822Sdimecho "${ECHO_T}$WINDRES" >&6
7419218822Sdimelse
7420218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7421218822Sdimecho "${ECHO_T}no" >&6
7422218822Sdimfi
7423218822Sdim
7424218822Sdim  fi
7425218822Sdim  test -n "$ac_cv_prog_WINDRES" && break
7426218822Sdimdone
7427218822Sdim
7428130561Sobrienif test -z "$ac_cv_prog_WINDRES" ; then
7429218822Sdim  set dummy windres
7430130561Sobrien  if test $build = $host ; then
7431218822Sdim    WINDRES="$2"
7432218822Sdim  else
7433218822Sdim    WINDRES="${ncn_tool_prefix}$2"
7434218822Sdim  fi
7435218822Sdimfi
7436218822Sdim
7437218822Sdim
7438218822Sdim
7439218822Sdimif test -n "$OBJCOPY"; then
7440218822Sdim  ac_cv_prog_OBJCOPY=$OBJCOPY
7441218822Sdimelif test -n "$ac_cv_prog_OBJCOPY"; then
7442218822Sdim  OBJCOPY=$ac_cv_prog_OBJCOPY
7443218822Sdimfi
7444218822Sdim
7445218822Sdimif test -n "$ac_cv_prog_OBJCOPY"; then
7446218822Sdim  for ncn_progname in objcopy; do
7447218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7448218822Sdimset dummy ${ncn_progname}; ac_word=$2
7449218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7450218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7451218822Sdimif test "${ac_cv_prog_OBJCOPY+set}" = set; then
7452218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7453130561Sobrienelse
7454218822Sdim  if test -n "$OBJCOPY"; then
7455218822Sdim  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7456130561Sobrienelse
7457218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458218822Sdimfor as_dir in $PATH
7459218822Sdimdo
7460218822Sdim  IFS=$as_save_IFS
7461218822Sdim  test -z "$as_dir" && as_dir=.
7462218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7463218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464218822Sdim    ac_cv_prog_OBJCOPY="${ncn_progname}"
7465218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466218822Sdim    break 2
7467218822Sdim  fi
7468218822Sdimdone
7469218822Sdimdone
7470218822Sdim
7471130561Sobrienfi
7472130561Sobrienfi
7473218822SdimOBJCOPY=$ac_cv_prog_OBJCOPY
7474218822Sdimif test -n "$OBJCOPY"; then
7475218822Sdim  echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7476218822Sdimecho "${ECHO_T}$OBJCOPY" >&6
7477130561Sobrienelse
7478218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7479218822Sdimecho "${ECHO_T}no" >&6
7480130561Sobrienfi
7481218822Sdim
7482218822Sdim  done
7483218822Sdimfi
7484218822Sdim
7485218822Sdimfor ncn_progname in objcopy; do
7486218822Sdim  if test -n "$ncn_tool_prefix"; then
7487218822Sdim    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7488218822Sdimset dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7489218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7490218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7491218822Sdimif test "${ac_cv_prog_OBJCOPY+set}" = set; then
7492218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7493218822Sdimelse
7494218822Sdim  if test -n "$OBJCOPY"; then
7495218822Sdim  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7496218822Sdimelse
7497218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498218822Sdimfor as_dir in $PATH
7499218822Sdimdo
7500218822Sdim  IFS=$as_save_IFS
7501218822Sdim  test -z "$as_dir" && as_dir=.
7502218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7503218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504218822Sdim    ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7505218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506218822Sdim    break 2
7507130561Sobrien  fi
7508218822Sdimdone
7509218822Sdimdone
7510218822Sdim
7511218822Sdimfi
7512218822Sdimfi
7513218822SdimOBJCOPY=$ac_cv_prog_OBJCOPY
7514218822Sdimif test -n "$OBJCOPY"; then
7515218822Sdim  echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7516218822Sdimecho "${ECHO_T}$OBJCOPY" >&6
7517130561Sobrienelse
7518218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7519218822Sdimecho "${ECHO_T}no" >&6
7520130561Sobrienfi
7521130561Sobrien
7522218822Sdim  fi
7523218822Sdim  if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7524218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7525218822Sdimset dummy ${ncn_progname}; ac_word=$2
7526218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7527218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7528218822Sdimif test "${ac_cv_prog_OBJCOPY+set}" = set; then
7529218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7530130561Sobrienelse
7531130561Sobrien  if test -n "$OBJCOPY"; then
7532130561Sobrien  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7533130561Sobrienelse
7534218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535218822Sdimfor as_dir in $PATH
7536218822Sdimdo
7537218822Sdim  IFS=$as_save_IFS
7538218822Sdim  test -z "$as_dir" && as_dir=.
7539218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7540218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541218822Sdim    ac_cv_prog_OBJCOPY="${ncn_progname}"
7542218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543218822Sdim    break 2
7544218822Sdim  fi
7545218822Sdimdone
7546218822Sdimdone
7547218822Sdim
7548130561Sobrienfi
7549130561Sobrienfi
7550218822SdimOBJCOPY=$ac_cv_prog_OBJCOPY
7551130561Sobrienif test -n "$OBJCOPY"; then
7552218822Sdim  echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7553218822Sdimecho "${ECHO_T}$OBJCOPY" >&6
7554130561Sobrienelse
7555218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7556218822Sdimecho "${ECHO_T}no" >&6
7557130561Sobrienfi
7558130561Sobrien
7559218822Sdim  fi
7560218822Sdim  test -n "$ac_cv_prog_OBJCOPY" && break
7561218822Sdimdone
7562218822Sdim
7563130561Sobrienif test -z "$ac_cv_prog_OBJCOPY" ; then
7564218822Sdim  set dummy objcopy
7565130561Sobrien  if test $build = $host ; then
7566218822Sdim    OBJCOPY="$2"
7567218822Sdim  else
7568218822Sdim    OBJCOPY="${ncn_tool_prefix}$2"
7569218822Sdim  fi
7570218822Sdimfi
7571218822Sdim
7572218822Sdim
7573218822Sdim
7574218822Sdimif test -n "$OBJDUMP"; then
7575218822Sdim  ac_cv_prog_OBJDUMP=$OBJDUMP
7576218822Sdimelif test -n "$ac_cv_prog_OBJDUMP"; then
7577218822Sdim  OBJDUMP=$ac_cv_prog_OBJDUMP
7578218822Sdimfi
7579218822Sdim
7580218822Sdimif test -n "$ac_cv_prog_OBJDUMP"; then
7581218822Sdim  for ncn_progname in objdump; do
7582218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7583218822Sdimset dummy ${ncn_progname}; ac_word=$2
7584218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7585218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586218822Sdimif test "${ac_cv_prog_OBJDUMP+set}" = set; then
7587218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7588130561Sobrienelse
7589218822Sdim  if test -n "$OBJDUMP"; then
7590218822Sdim  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7591130561Sobrienelse
7592218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593218822Sdimfor as_dir in $PATH
7594218822Sdimdo
7595218822Sdim  IFS=$as_save_IFS
7596218822Sdim  test -z "$as_dir" && as_dir=.
7597218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7598218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599218822Sdim    ac_cv_prog_OBJDUMP="${ncn_progname}"
7600218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601218822Sdim    break 2
7602218822Sdim  fi
7603218822Sdimdone
7604218822Sdimdone
7605218822Sdim
7606130561Sobrienfi
7607130561Sobrienfi
7608218822SdimOBJDUMP=$ac_cv_prog_OBJDUMP
7609218822Sdimif test -n "$OBJDUMP"; then
7610218822Sdim  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7611218822Sdimecho "${ECHO_T}$OBJDUMP" >&6
7612130561Sobrienelse
7613218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7614218822Sdimecho "${ECHO_T}no" >&6
7615130561Sobrienfi
7616218822Sdim
7617218822Sdim  done
7618218822Sdimfi
7619218822Sdim
7620218822Sdimfor ncn_progname in objdump; do
7621218822Sdim  if test -n "$ncn_tool_prefix"; then
7622218822Sdim    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7623218822Sdimset dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7624218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7625218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7626218822Sdimif test "${ac_cv_prog_OBJDUMP+set}" = set; then
7627218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7628218822Sdimelse
7629218822Sdim  if test -n "$OBJDUMP"; then
7630218822Sdim  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7631218822Sdimelse
7632218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633218822Sdimfor as_dir in $PATH
7634218822Sdimdo
7635218822Sdim  IFS=$as_save_IFS
7636218822Sdim  test -z "$as_dir" && as_dir=.
7637218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7638218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639218822Sdim    ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7640218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641218822Sdim    break 2
7642130561Sobrien  fi
7643218822Sdimdone
7644218822Sdimdone
7645218822Sdim
7646218822Sdimfi
7647218822Sdimfi
7648218822SdimOBJDUMP=$ac_cv_prog_OBJDUMP
7649218822Sdimif test -n "$OBJDUMP"; then
7650218822Sdim  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7651218822Sdimecho "${ECHO_T}$OBJDUMP" >&6
7652130561Sobrienelse
7653218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7654218822Sdimecho "${ECHO_T}no" >&6
7655130561Sobrienfi
7656130561Sobrien
7657218822Sdim  fi
7658218822Sdim  if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7659218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7660218822Sdimset dummy ${ncn_progname}; ac_word=$2
7661218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7662218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7663218822Sdimif test "${ac_cv_prog_OBJDUMP+set}" = set; then
7664218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7665130561Sobrienelse
7666130561Sobrien  if test -n "$OBJDUMP"; then
7667130561Sobrien  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7668130561Sobrienelse
7669218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670218822Sdimfor as_dir in $PATH
7671218822Sdimdo
7672218822Sdim  IFS=$as_save_IFS
7673218822Sdim  test -z "$as_dir" && as_dir=.
7674218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7675218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676218822Sdim    ac_cv_prog_OBJDUMP="${ncn_progname}"
7677218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678218822Sdim    break 2
7679218822Sdim  fi
7680218822Sdimdone
7681218822Sdimdone
7682218822Sdim
7683218822Sdimfi
7684218822Sdimfi
7685218822SdimOBJDUMP=$ac_cv_prog_OBJDUMP
7686218822Sdimif test -n "$OBJDUMP"; then
7687218822Sdim  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7688218822Sdimecho "${ECHO_T}$OBJDUMP" >&6
7689218822Sdimelse
7690218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7691218822Sdimecho "${ECHO_T}no" >&6
7692218822Sdimfi
7693218822Sdim
7694218822Sdim  fi
7695218822Sdim  test -n "$ac_cv_prog_OBJDUMP" && break
7696218822Sdimdone
7697218822Sdim
7698218822Sdimif test -z "$ac_cv_prog_OBJDUMP" ; then
7699218822Sdim  set dummy objdump
7700218822Sdim  if test $build = $host ; then
7701218822Sdim    OBJDUMP="$2"
7702218822Sdim  else
7703218822Sdim    OBJDUMP="${ncn_tool_prefix}$2"
7704218822Sdim  fi
7705218822Sdimfi
7706218822Sdim
7707218822Sdim
7708218822Sdim
7709218822Sdim
7710218822Sdim
7711218822Sdim
7712218822Sdim
7713218822Sdim# Target tools.
7714218822Sdim
7715218822Sdim# Check whether --with-build-time-tools or --without-build-time-tools was given.
7716218822Sdimif test "${with_build_time_tools+set}" = set; then
7717218822Sdim  withval="$with_build_time_tools"
7718218822Sdim  case x"$withval" in
7719218822Sdim     x/*) ;;
7720218822Sdim     *)
7721218822Sdim       with_build_time_tools=
7722218822Sdim       { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7723218822Sdimecho "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
7724218822Sdim       ;;
7725218822Sdim   esac
7726218822Sdimelse
7727218822Sdim  with_build_time_tools=
7728218822Sdimfi;
7729218822Sdim
7730218822Sdim
7731218822Sdim
7732218822Sdimif test -n "$CC_FOR_TARGET"; then
7733218822Sdim  ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7734218822Sdimelif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7735218822Sdim  CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7736218822Sdimfi
7737218822Sdim
7738218822Sdimif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7739218822Sdim  for ncn_progname in cc gcc; do
7740218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7741218822Sdimset dummy ${ncn_progname}; ac_word=$2
7742218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7743218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7744218822Sdimif test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7745218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7746218822Sdimelse
7747218822Sdim  if test -n "$CC_FOR_TARGET"; then
7748218822Sdim  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7749218822Sdimelse
7750218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751218822Sdimfor as_dir in $PATH
7752218822Sdimdo
7753218822Sdim  IFS=$as_save_IFS
7754218822Sdim  test -z "$as_dir" && as_dir=.
7755218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7756218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757218822Sdim    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7758218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759218822Sdim    break 2
7760218822Sdim  fi
7761218822Sdimdone
7762218822Sdimdone
7763218822Sdim
7764218822Sdimfi
7765218822Sdimfi
7766218822SdimCC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7767218822Sdimif test -n "$CC_FOR_TARGET"; then
7768218822Sdim  echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7769218822Sdimecho "${ECHO_T}$CC_FOR_TARGET" >&6
7770218822Sdimelse
7771218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7772218822Sdimecho "${ECHO_T}no" >&6
7773218822Sdimfi
7774218822Sdim
7775218822Sdim  done
7776218822Sdimfi
7777218822Sdim
7778218822Sdimif test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
7779218822Sdim  for ncn_progname in cc gcc; do
7780218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7781218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7782218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
7783218822Sdim      ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7784218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
7785218822Sdimecho "${ECHO_T}yes" >&6
7786130561Sobrien      break
7787218822Sdim    else
7788218822Sdim      echo "$as_me:$LINENO: result: no" >&5
7789218822Sdimecho "${ECHO_T}no" >&6
7790130561Sobrien    fi
7791130561Sobrien  done
7792130561Sobrienfi
7793218822Sdim
7794218822Sdimif test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7795218822Sdim  for ncn_progname in cc gcc; do
7796218822Sdim    if test -n "$ncn_target_tool_prefix"; then
7797218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7798218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7799218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7800218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7801218822Sdimif test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7802218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7803218822Sdimelse
7804218822Sdim  if test -n "$CC_FOR_TARGET"; then
7805218822Sdim  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7806218822Sdimelse
7807218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808218822Sdimfor as_dir in $PATH
7809218822Sdimdo
7810218822Sdim  IFS=$as_save_IFS
7811218822Sdim  test -z "$as_dir" && as_dir=.
7812218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7813218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814218822Sdim    ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7815218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816218822Sdim    break 2
7817218822Sdim  fi
7818218822Sdimdone
7819218822Sdimdone
7820218822Sdim
7821130561Sobrienfi
7822218822Sdimfi
7823218822SdimCC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7824218822Sdimif test -n "$CC_FOR_TARGET"; then
7825218822Sdim  echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7826218822Sdimecho "${ECHO_T}$CC_FOR_TARGET" >&6
7827130561Sobrienelse
7828218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7829218822Sdimecho "${ECHO_T}no" >&6
7830130561Sobrienfi
7831130561Sobrien
7832218822Sdim    fi
7833218822Sdim    if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7834218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7835218822Sdimset dummy ${ncn_progname}; ac_word=$2
7836218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7837218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7838218822Sdimif test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7839218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7840218822Sdimelse
7841218822Sdim  if test -n "$CC_FOR_TARGET"; then
7842218822Sdim  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7843218822Sdimelse
7844218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845218822Sdimfor as_dir in $PATH
7846218822Sdimdo
7847218822Sdim  IFS=$as_save_IFS
7848218822Sdim  test -z "$as_dir" && as_dir=.
7849218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7850218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851218822Sdim    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7852218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853218822Sdim    break 2
7854218822Sdim  fi
7855218822Sdimdone
7856218822Sdimdone
7857218822Sdim
7858130561Sobrienfi
7859218822Sdimfi
7860218822SdimCC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7861218822Sdimif test -n "$CC_FOR_TARGET"; then
7862218822Sdim  echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7863218822Sdimecho "${ECHO_T}$CC_FOR_TARGET" >&6
7864130561Sobrienelse
7865218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7866218822Sdimecho "${ECHO_T}no" >&6
7867218822Sdimfi
7868218822Sdim
7869218822Sdim    fi
7870218822Sdim    test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7871218822Sdim  done
7872218822Sdimfi
7873218822Sdim
7874218822Sdimif test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7875218822Sdim  set dummy cc gcc
7876218822Sdim  if test $build = $target ; then
7877218822Sdim    CC_FOR_TARGET="$2"
7878218822Sdim  else
7879218822Sdim    CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
7880218822Sdim  fi
7881130561Sobrienelse
7882218822Sdim  CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
7883218822Sdimfi
7884218822Sdim
7885218822Sdim
7886218822Sdim
7887218822Sdimif test -n "$CXX_FOR_TARGET"; then
7888218822Sdim  ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
7889218822Sdimelif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7890218822Sdim  CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7891218822Sdimfi
7892218822Sdim
7893218822Sdimif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7894218822Sdim  for ncn_progname in c++ g++ cxx gxx; do
7895218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7896218822Sdimset dummy ${ncn_progname}; ac_word=$2
7897218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7898218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7899218822Sdimif test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7900218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7901218822Sdimelse
7902218822Sdim  if test -n "$CXX_FOR_TARGET"; then
7903218822Sdim  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7904218822Sdimelse
7905218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906218822Sdimfor as_dir in $PATH
7907218822Sdimdo
7908218822Sdim  IFS=$as_save_IFS
7909218822Sdim  test -z "$as_dir" && as_dir=.
7910218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7911218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912218822Sdim    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7913218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7914218822Sdim    break 2
7915218822Sdim  fi
7916218822Sdimdone
7917218822Sdimdone
7918218822Sdim
7919218822Sdimfi
7920218822Sdimfi
7921218822SdimCXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7922218822Sdimif test -n "$CXX_FOR_TARGET"; then
7923218822Sdim  echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7924218822Sdimecho "${ECHO_T}$CXX_FOR_TARGET" >&6
7925218822Sdimelse
7926218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7927218822Sdimecho "${ECHO_T}no" >&6
7928218822Sdimfi
7929218822Sdim
7930218822Sdim  done
7931218822Sdimfi
7932218822Sdim
7933218822Sdimif test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
7934218822Sdim  for ncn_progname in c++ g++ cxx gxx; do
7935218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7936218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7937218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
7938218822Sdim      ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7939218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
7940218822Sdimecho "${ECHO_T}yes" >&6
7941130561Sobrien      break
7942218822Sdim    else
7943218822Sdim      echo "$as_me:$LINENO: result: no" >&5
7944218822Sdimecho "${ECHO_T}no" >&6
7945130561Sobrien    fi
7946130561Sobrien  done
7947130561Sobrienfi
7948218822Sdim
7949218822Sdimif test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7950218822Sdim  for ncn_progname in c++ g++ cxx gxx; do
7951218822Sdim    if test -n "$ncn_target_tool_prefix"; then
7952218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7953218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7954218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7955218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7956218822Sdimif test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7957218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7958218822Sdimelse
7959218822Sdim  if test -n "$CXX_FOR_TARGET"; then
7960218822Sdim  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7961218822Sdimelse
7962218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963218822Sdimfor as_dir in $PATH
7964218822Sdimdo
7965218822Sdim  IFS=$as_save_IFS
7966218822Sdim  test -z "$as_dir" && as_dir=.
7967218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
7968218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969218822Sdim    ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7970218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971218822Sdim    break 2
7972218822Sdim  fi
7973218822Sdimdone
7974218822Sdimdone
7975218822Sdim
7976130561Sobrienfi
7977218822Sdimfi
7978218822SdimCXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7979218822Sdimif test -n "$CXX_FOR_TARGET"; then
7980218822Sdim  echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7981218822Sdimecho "${ECHO_T}$CXX_FOR_TARGET" >&6
7982130561Sobrienelse
7983218822Sdim  echo "$as_me:$LINENO: result: no" >&5
7984218822Sdimecho "${ECHO_T}no" >&6
7985130561Sobrienfi
7986218822Sdim
7987218822Sdim    fi
7988218822Sdim    if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7989218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7990218822Sdimset dummy ${ncn_progname}; ac_word=$2
7991218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
7992218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7993218822Sdimif test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7994218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
7995218822Sdimelse
7996218822Sdim  if test -n "$CXX_FOR_TARGET"; then
7997218822Sdim  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7998218822Sdimelse
7999218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000218822Sdimfor as_dir in $PATH
8001218822Sdimdo
8002218822Sdim  IFS=$as_save_IFS
8003218822Sdim  test -z "$as_dir" && as_dir=.
8004218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8005218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006218822Sdim    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8007218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008218822Sdim    break 2
8009218822Sdim  fi
8010218822Sdimdone
8011218822Sdimdone
8012218822Sdim
8013218822Sdimfi
8014218822Sdimfi
8015218822SdimCXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8016218822Sdimif test -n "$CXX_FOR_TARGET"; then
8017218822Sdim  echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8018218822Sdimecho "${ECHO_T}$CXX_FOR_TARGET" >&6
8019218822Sdimelse
8020218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8021218822Sdimecho "${ECHO_T}no" >&6
8022218822Sdimfi
8023218822Sdim
8024218822Sdim    fi
8025218822Sdim    test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8026218822Sdim  done
8027218822Sdimfi
8028218822Sdim
8029218822Sdimif test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8030218822Sdim  set dummy c++ g++ cxx gxx
8031218822Sdim  if test $build = $target ; then
8032218822Sdim    CXX_FOR_TARGET="$2"
8033130561Sobrien  else
8034218822Sdim    CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8035130561Sobrien  fi
8036130561Sobrienelse
8037218822Sdim  CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8038130561Sobrienfi
8039130561Sobrien
8040130561Sobrien
8041130561Sobrien
8042218822Sdimif test -n "$GCC_FOR_TARGET"; then
8043218822Sdim  ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8044218822Sdimelif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8045218822Sdim  GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8046218822Sdimfi
8047130561Sobrien
8048218822Sdimif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8049218822Sdim  for ncn_progname in gcc; do
8050218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8051218822Sdimset dummy ${ncn_progname}; ac_word=$2
8052218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8053218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8054218822Sdimif test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8055218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8056218822Sdimelse
8057218822Sdim  if test -n "$GCC_FOR_TARGET"; then
8058218822Sdim  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8059218822Sdimelse
8060218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061218822Sdimfor as_dir in $PATH
8062218822Sdimdo
8063218822Sdim  IFS=$as_save_IFS
8064218822Sdim  test -z "$as_dir" && as_dir=.
8065218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8066218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067218822Sdim    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8068218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069218822Sdim    break 2
8070218822Sdim  fi
8071218822Sdimdone
8072218822Sdimdone
8073130561Sobrien
8074218822Sdimfi
8075218822Sdimfi
8076218822SdimGCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8077218822Sdimif test -n "$GCC_FOR_TARGET"; then
8078218822Sdim  echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8079218822Sdimecho "${ECHO_T}$GCC_FOR_TARGET" >&6
8080218822Sdimelse
8081218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8082218822Sdimecho "${ECHO_T}no" >&6
8083218822Sdimfi
8084130561Sobrien
8085218822Sdim  done
8086218822Sdimfi
8087130561Sobrien
8088218822Sdimif test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8089218822Sdim  for ncn_progname in gcc; do
8090218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8091218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8092218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
8093218822Sdim      ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8094218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
8095218822Sdimecho "${ECHO_T}yes" >&6
8096218822Sdim      break
8097218822Sdim    else
8098218822Sdim      echo "$as_me:$LINENO: result: no" >&5
8099218822Sdimecho "${ECHO_T}no" >&6
8100218822Sdim    fi
8101218822Sdim  done
8102218822Sdimfi
8103130561Sobrien
8104218822Sdimif test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8105218822Sdim  for ncn_progname in gcc; do
8106218822Sdim    if test -n "$ncn_target_tool_prefix"; then
8107218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8108218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8109218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8110218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8111218822Sdimif test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8112218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8113218822Sdimelse
8114218822Sdim  if test -n "$GCC_FOR_TARGET"; then
8115218822Sdim  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8116218822Sdimelse
8117218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118218822Sdimfor as_dir in $PATH
8119218822Sdimdo
8120218822Sdim  IFS=$as_save_IFS
8121218822Sdim  test -z "$as_dir" && as_dir=.
8122218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8123218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124218822Sdim    ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8125218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8126218822Sdim    break 2
8127218822Sdim  fi
8128218822Sdimdone
8129218822Sdimdone
8130130561Sobrien
8131218822Sdimfi
8132218822Sdimfi
8133218822SdimGCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8134218822Sdimif test -n "$GCC_FOR_TARGET"; then
8135218822Sdim  echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8136218822Sdimecho "${ECHO_T}$GCC_FOR_TARGET" >&6
8137218822Sdimelse
8138218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8139218822Sdimecho "${ECHO_T}no" >&6
8140218822Sdimfi
8141130561Sobrien
8142218822Sdim    fi
8143218822Sdim    if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8144218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8145218822Sdimset dummy ${ncn_progname}; ac_word=$2
8146218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8147218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8148218822Sdimif test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8149218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8150130561Sobrienelse
8151218822Sdim  if test -n "$GCC_FOR_TARGET"; then
8152218822Sdim  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8153130561Sobrienelse
8154218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155218822Sdimfor as_dir in $PATH
8156218822Sdimdo
8157218822Sdim  IFS=$as_save_IFS
8158218822Sdim  test -z "$as_dir" && as_dir=.
8159218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8160218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8161218822Sdim    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8162218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8163218822Sdim    break 2
8164218822Sdim  fi
8165218822Sdimdone
8166218822Sdimdone
8167218822Sdim
8168218822Sdimfi
8169218822Sdimfi
8170218822SdimGCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8171218822Sdimif test -n "$GCC_FOR_TARGET"; then
8172218822Sdim  echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8173218822Sdimecho "${ECHO_T}$GCC_FOR_TARGET" >&6
8174218822Sdimelse
8175218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8176218822Sdimecho "${ECHO_T}no" >&6
8177218822Sdimfi
8178218822Sdim
8179218822Sdim    fi
8180218822Sdim    test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8181218822Sdim  done
8182218822Sdimfi
8183218822Sdim
8184218822Sdimif test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8185218822Sdim  GCC_FOR_TARGET="${CC_FOR_TARGET}"
8186218822Sdimelse
8187218822Sdim  GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8188218822Sdimfi
8189218822Sdim
8190218822Sdim
8191218822Sdim
8192218822Sdimif test -n "$GCJ_FOR_TARGET"; then
8193218822Sdim  ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8194218822Sdimelif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8195218822Sdim  GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8196218822Sdimfi
8197218822Sdim
8198218822Sdimif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8199218822Sdim  for ncn_progname in gcj; do
8200218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8201218822Sdimset dummy ${ncn_progname}; ac_word=$2
8202218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8203218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8204218822Sdimif test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8205218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8206218822Sdimelse
8207218822Sdim  if test -n "$GCJ_FOR_TARGET"; then
8208218822Sdim  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8209218822Sdimelse
8210218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211218822Sdimfor as_dir in $PATH
8212218822Sdimdo
8213218822Sdim  IFS=$as_save_IFS
8214218822Sdim  test -z "$as_dir" && as_dir=.
8215218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8216218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217218822Sdim    ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8218218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8219218822Sdim    break 2
8220218822Sdim  fi
8221218822Sdimdone
8222218822Sdimdone
8223218822Sdim
8224218822Sdimfi
8225218822Sdimfi
8226218822SdimGCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8227218822Sdimif test -n "$GCJ_FOR_TARGET"; then
8228218822Sdim  echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8229218822Sdimecho "${ECHO_T}$GCJ_FOR_TARGET" >&6
8230218822Sdimelse
8231218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8232218822Sdimecho "${ECHO_T}no" >&6
8233218822Sdimfi
8234218822Sdim
8235218822Sdim  done
8236218822Sdimfi
8237218822Sdim
8238218822Sdimif test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8239218822Sdim  for ncn_progname in gcj; do
8240218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8241218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8242218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
8243218822Sdim      ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8244218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
8245218822Sdimecho "${ECHO_T}yes" >&6
8246130561Sobrien      break
8247218822Sdim    else
8248218822Sdim      echo "$as_me:$LINENO: result: no" >&5
8249218822Sdimecho "${ECHO_T}no" >&6
8250130561Sobrien    fi
8251130561Sobrien  done
8252130561Sobrienfi
8253218822Sdim
8254218822Sdimif test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8255218822Sdim  for ncn_progname in gcj; do
8256218822Sdim    if test -n "$ncn_target_tool_prefix"; then
8257218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8258218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8259218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8260218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8261218822Sdimif test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8262218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8263218822Sdimelse
8264218822Sdim  if test -n "$GCJ_FOR_TARGET"; then
8265218822Sdim  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8266218822Sdimelse
8267218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268218822Sdimfor as_dir in $PATH
8269218822Sdimdo
8270218822Sdim  IFS=$as_save_IFS
8271218822Sdim  test -z "$as_dir" && as_dir=.
8272218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8273218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8274218822Sdim    ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8275218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8276218822Sdim    break 2
8277218822Sdim  fi
8278218822Sdimdone
8279218822Sdimdone
8280218822Sdim
8281130561Sobrienfi
8282218822Sdimfi
8283218822SdimGCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8284218822Sdimif test -n "$GCJ_FOR_TARGET"; then
8285218822Sdim  echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8286218822Sdimecho "${ECHO_T}$GCJ_FOR_TARGET" >&6
8287130561Sobrienelse
8288218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8289218822Sdimecho "${ECHO_T}no" >&6
8290130561Sobrienfi
8291130561Sobrien
8292218822Sdim    fi
8293218822Sdim    if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8294218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8295218822Sdimset dummy ${ncn_progname}; ac_word=$2
8296218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8297218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8298218822Sdimif test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8299218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8300218822Sdimelse
8301218822Sdim  if test -n "$GCJ_FOR_TARGET"; then
8302218822Sdim  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8303218822Sdimelse
8304218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305218822Sdimfor as_dir in $PATH
8306218822Sdimdo
8307218822Sdim  IFS=$as_save_IFS
8308218822Sdim  test -z "$as_dir" && as_dir=.
8309218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8310218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8311218822Sdim    ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8312218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313218822Sdim    break 2
8314218822Sdim  fi
8315218822Sdimdone
8316218822Sdimdone
8317218822Sdim
8318130561Sobrienfi
8319218822Sdimfi
8320218822SdimGCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8321218822Sdimif test -n "$GCJ_FOR_TARGET"; then
8322218822Sdim  echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8323218822Sdimecho "${ECHO_T}$GCJ_FOR_TARGET" >&6
8324218822Sdimelse
8325218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8326218822Sdimecho "${ECHO_T}no" >&6
8327218822Sdimfi
8328218822Sdim
8329218822Sdim    fi
8330218822Sdim    test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8331218822Sdim  done
8332218822Sdimfi
8333218822Sdim
8334218822Sdimif test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8335218822Sdim  set dummy gcj
8336130561Sobrien  if test $build = $target ; then
8337218822Sdim    GCJ_FOR_TARGET="$2"
8338218822Sdim  else
8339218822Sdim    GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8340218822Sdim  fi
8341130561Sobrienelse
8342218822Sdim  GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
8343218822Sdimfi
8344218822Sdim
8345218822Sdim
8346218822Sdim
8347218822Sdimif test -n "$GFORTRAN_FOR_TARGET"; then
8348218822Sdim  ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8349218822Sdimelif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8350218822Sdim  GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8351218822Sdimfi
8352218822Sdim
8353218822Sdimif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8354218822Sdim  for ncn_progname in gfortran; do
8355218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8356218822Sdimset dummy ${ncn_progname}; ac_word=$2
8357218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8358218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8359218822Sdimif test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8360218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8361130561Sobrienelse
8362218822Sdim  if test -n "$GFORTRAN_FOR_TARGET"; then
8363218822Sdim  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8364218822Sdimelse
8365218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366218822Sdimfor as_dir in $PATH
8367218822Sdimdo
8368218822Sdim  IFS=$as_save_IFS
8369218822Sdim  test -z "$as_dir" && as_dir=.
8370218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8371218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8372218822Sdim    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8373218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8374218822Sdim    break 2
8375218822Sdim  fi
8376218822Sdimdone
8377218822Sdimdone
8378218822Sdim
8379218822Sdimfi
8380218822Sdimfi
8381218822SdimGFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8382218822Sdimif test -n "$GFORTRAN_FOR_TARGET"; then
8383218822Sdim  echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8384218822Sdimecho "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8385218822Sdimelse
8386218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8387218822Sdimecho "${ECHO_T}no" >&6
8388218822Sdimfi
8389218822Sdim
8390218822Sdim  done
8391218822Sdimfi
8392218822Sdim
8393218822Sdimif test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8394218822Sdim  for ncn_progname in gfortran; do
8395218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8396218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8397218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
8398218822Sdim      ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8399218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
8400218822Sdimecho "${ECHO_T}yes" >&6
8401130561Sobrien      break
8402218822Sdim    else
8403218822Sdim      echo "$as_me:$LINENO: result: no" >&5
8404218822Sdimecho "${ECHO_T}no" >&6
8405130561Sobrien    fi
8406130561Sobrien  done
8407130561Sobrienfi
8408218822Sdim
8409218822Sdimif test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8410218822Sdim  for ncn_progname in gfortran; do
8411218822Sdim    if test -n "$ncn_target_tool_prefix"; then
8412218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8413218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8414218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8415218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8416218822Sdimif test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8417218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8418218822Sdimelse
8419218822Sdim  if test -n "$GFORTRAN_FOR_TARGET"; then
8420218822Sdim  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8421218822Sdimelse
8422218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423218822Sdimfor as_dir in $PATH
8424218822Sdimdo
8425218822Sdim  IFS=$as_save_IFS
8426218822Sdim  test -z "$as_dir" && as_dir=.
8427218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8428218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429218822Sdim    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8430218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8431218822Sdim    break 2
8432218822Sdim  fi
8433218822Sdimdone
8434218822Sdimdone
8435218822Sdim
8436130561Sobrienfi
8437218822Sdimfi
8438218822SdimGFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8439218822Sdimif test -n "$GFORTRAN_FOR_TARGET"; then
8440218822Sdim  echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8441218822Sdimecho "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8442130561Sobrienelse
8443218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8444218822Sdimecho "${ECHO_T}no" >&6
8445130561Sobrienfi
8446218822Sdim
8447218822Sdim    fi
8448218822Sdim    if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8449218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8450218822Sdimset dummy ${ncn_progname}; ac_word=$2
8451218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8452218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8453218822Sdimif test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8454218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8455218822Sdimelse
8456218822Sdim  if test -n "$GFORTRAN_FOR_TARGET"; then
8457218822Sdim  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8458218822Sdimelse
8459218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460218822Sdimfor as_dir in $PATH
8461218822Sdimdo
8462218822Sdim  IFS=$as_save_IFS
8463218822Sdim  test -z "$as_dir" && as_dir=.
8464218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8465218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8466218822Sdim    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8467218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468218822Sdim    break 2
8469218822Sdim  fi
8470218822Sdimdone
8471218822Sdimdone
8472218822Sdim
8473218822Sdimfi
8474218822Sdimfi
8475218822SdimGFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8476218822Sdimif test -n "$GFORTRAN_FOR_TARGET"; then
8477218822Sdim  echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8478218822Sdimecho "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8479218822Sdimelse
8480218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8481218822Sdimecho "${ECHO_T}no" >&6
8482218822Sdimfi
8483218822Sdim
8484218822Sdim    fi
8485218822Sdim    test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8486218822Sdim  done
8487218822Sdimfi
8488218822Sdim
8489218822Sdimif test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8490218822Sdim  set dummy gfortran
8491218822Sdim  if test $build = $target ; then
8492218822Sdim    GFORTRAN_FOR_TARGET="$2"
8493130561Sobrien  else
8494218822Sdim    GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8495130561Sobrien  fi
8496130561Sobrienelse
8497218822Sdim  GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
8498130561Sobrienfi
8499130561Sobrien
8500218822Sdim
8501218822Sdim
8502218822Sdimcat > conftest.c << \EOF
8503218822Sdim#ifdef __GNUC__
8504218822Sdim  gcc_yay;
8505218822Sdim#endif
8506218822SdimEOF
8507218822Sdimif ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8508218822Sdim  have_gcc_for_target=yes
8509130561Sobrienelse
8510218822Sdim  GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8511218822Sdim  have_gcc_for_target=no
8512218822Sdimfi
8513218822Sdimrm conftest.c
8514218822Sdim
8515218822Sdim
8516218822Sdim
8517218822Sdim
8518218822Sdimif test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8519218822Sdim  if test -n "$with_build_time_tools"; then
8520218822Sdim    echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8521218822Sdimecho $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
8522218822Sdim    if test -x $with_build_time_tools/ar; then
8523218822Sdim      AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8524218822Sdim      ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8525218822Sdim      echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8526218822Sdimecho "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
8527218822Sdim    else
8528218822Sdim      echo "$as_me:$LINENO: result: no" >&5
8529218822Sdimecho "${ECHO_T}no" >&6
8530218822Sdim    fi
8531218822Sdim  elif test $build != $host && test $have_gcc_for_target = yes; then
8532218822Sdim    AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8533218822Sdim    test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8534218822Sdim    test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8535218822Sdim  fi
8536218822Sdimfi
8537218822Sdimif test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8538218822Sdim  # Extract the first word of "ar", so it can be a program name with args.
8539218822Sdimset dummy ar; ac_word=$2
8540218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8541218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8542218822Sdimif test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8543218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8544130561Sobrienelse
8545218822Sdim  case $AR_FOR_TARGET in
8546218822Sdim  [\\/]* | ?:[\\/]*)
8547218822Sdim  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8548218822Sdim  ;;
8549218822Sdim  *)
8550218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551218822Sdimfor as_dir in $gcc_cv_tool_dirs
8552218822Sdimdo
8553218822Sdim  IFS=$as_save_IFS
8554218822Sdim  test -z "$as_dir" && as_dir=.
8555218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8556218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557218822Sdim    ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8558218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8559218822Sdim    break 2
8560218822Sdim  fi
8561218822Sdimdone
8562218822Sdimdone
8563218822Sdim
8564218822Sdim  ;;
8565218822Sdimesac
8566218822Sdimfi
8567218822SdimAR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8568218822Sdim
8569218822Sdimif test -n "$AR_FOR_TARGET"; then
8570218822Sdim  echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8571218822Sdimecho "${ECHO_T}$AR_FOR_TARGET" >&6
8572218822Sdimelse
8573218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8574218822Sdimecho "${ECHO_T}no" >&6
8575218822Sdimfi
8576218822Sdim
8577218822Sdimfi
8578218822Sdimif test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8579218822Sdim
8580218822Sdim
8581218822Sdimif test -n "$AR_FOR_TARGET"; then
8582218822Sdim  ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8583218822Sdimelif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8584218822Sdim  AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8585218822Sdimfi
8586218822Sdim
8587218822Sdimif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8588218822Sdim  for ncn_progname in ar; do
8589218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8590218822Sdimset dummy ${ncn_progname}; ac_word=$2
8591218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8592218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8593218822Sdimif test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8594218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8595218822Sdimelse
8596218822Sdim  if test -n "$AR_FOR_TARGET"; then
8597218822Sdim  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8598218822Sdimelse
8599218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600218822Sdimfor as_dir in $PATH
8601218822Sdimdo
8602218822Sdim  IFS=$as_save_IFS
8603218822Sdim  test -z "$as_dir" && as_dir=.
8604218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8605218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8606218822Sdim    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8607218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8608218822Sdim    break 2
8609218822Sdim  fi
8610218822Sdimdone
8611218822Sdimdone
8612218822Sdim
8613218822Sdimfi
8614218822Sdimfi
8615218822SdimAR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8616218822Sdimif test -n "$AR_FOR_TARGET"; then
8617218822Sdim  echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8618218822Sdimecho "${ECHO_T}$AR_FOR_TARGET" >&6
8619218822Sdimelse
8620218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8621218822Sdimecho "${ECHO_T}no" >&6
8622218822Sdimfi
8623218822Sdim
8624218822Sdim  done
8625218822Sdimfi
8626218822Sdim
8627218822Sdimif test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
8628218822Sdim  for ncn_progname in ar; do
8629218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8630218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8631218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
8632218822Sdim      ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8633218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
8634218822Sdimecho "${ECHO_T}yes" >&6
8635130561Sobrien      break
8636218822Sdim    else
8637218822Sdim      echo "$as_me:$LINENO: result: no" >&5
8638218822Sdimecho "${ECHO_T}no" >&6
8639130561Sobrien    fi
8640130561Sobrien  done
8641130561Sobrienfi
8642218822Sdim
8643218822Sdimif test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8644218822Sdim  for ncn_progname in ar; do
8645218822Sdim    if test -n "$ncn_target_tool_prefix"; then
8646218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8647218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8648218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8649218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8650218822Sdimif test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8651218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8652218822Sdimelse
8653218822Sdim  if test -n "$AR_FOR_TARGET"; then
8654218822Sdim  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8655218822Sdimelse
8656218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657218822Sdimfor as_dir in $PATH
8658218822Sdimdo
8659218822Sdim  IFS=$as_save_IFS
8660218822Sdim  test -z "$as_dir" && as_dir=.
8661218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8662218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8663218822Sdim    ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8664218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8665218822Sdim    break 2
8666218822Sdim  fi
8667218822Sdimdone
8668218822Sdimdone
8669218822Sdim
8670130561Sobrienfi
8671218822Sdimfi
8672218822SdimAR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8673218822Sdimif test -n "$AR_FOR_TARGET"; then
8674218822Sdim  echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8675218822Sdimecho "${ECHO_T}$AR_FOR_TARGET" >&6
8676130561Sobrienelse
8677218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8678218822Sdimecho "${ECHO_T}no" >&6
8679130561Sobrienfi
8680130561Sobrien
8681218822Sdim    fi
8682218822Sdim    if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8683218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8684218822Sdimset dummy ${ncn_progname}; ac_word=$2
8685218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8686218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8687218822Sdimif test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8688218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8689218822Sdimelse
8690218822Sdim  if test -n "$AR_FOR_TARGET"; then
8691218822Sdim  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8692218822Sdimelse
8693218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694218822Sdimfor as_dir in $PATH
8695218822Sdimdo
8696218822Sdim  IFS=$as_save_IFS
8697218822Sdim  test -z "$as_dir" && as_dir=.
8698218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8699218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8700218822Sdim    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8701218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8702218822Sdim    break 2
8703218822Sdim  fi
8704218822Sdimdone
8705218822Sdimdone
8706218822Sdim
8707130561Sobrienfi
8708218822Sdimfi
8709218822SdimAR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8710218822Sdimif test -n "$AR_FOR_TARGET"; then
8711218822Sdim  echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8712218822Sdimecho "${ECHO_T}$AR_FOR_TARGET" >&6
8713218822Sdimelse
8714218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8715218822Sdimecho "${ECHO_T}no" >&6
8716218822Sdimfi
8717218822Sdim
8718218822Sdim    fi
8719218822Sdim    test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8720218822Sdim  done
8721218822Sdimfi
8722218822Sdim
8723218822Sdimif test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8724218822Sdim  set dummy ar
8725130561Sobrien  if test $build = $target ; then
8726218822Sdim    AR_FOR_TARGET="$2"
8727218822Sdim  else
8728218822Sdim    AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
8729218822Sdim  fi
8730218822Sdimelse
8731218822Sdim  AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
8732218822Sdimfi
8733218822Sdim
8734218822Sdimelse
8735218822Sdim  AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8736218822Sdimfi
8737218822Sdim
8738218822Sdim
8739218822Sdim
8740218822Sdim
8741218822Sdimif test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8742218822Sdim  if test -n "$with_build_time_tools"; then
8743218822Sdim    echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8744218822Sdimecho $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
8745218822Sdim    if test -x $with_build_time_tools/as; then
8746218822Sdim      AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8747218822Sdim      ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8748218822Sdim      echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8749218822Sdimecho "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
8750218822Sdim    else
8751218822Sdim      echo "$as_me:$LINENO: result: no" >&5
8752218822Sdimecho "${ECHO_T}no" >&6
8753218822Sdim    fi
8754218822Sdim  elif test $build != $host && test $have_gcc_for_target = yes; then
8755218822Sdim    AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
8756218822Sdim    test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8757218822Sdim    test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8758218822Sdim  fi
8759218822Sdimfi
8760218822Sdimif test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8761218822Sdim  # Extract the first word of "as", so it can be a program name with args.
8762130561Sobrienset dummy as; ac_word=$2
8763218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8764218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8765218822Sdimif test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8766218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8767130561Sobrienelse
8768218822Sdim  case $AS_FOR_TARGET in
8769218822Sdim  [\\/]* | ?:[\\/]*)
8770218822Sdim  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8771218822Sdim  ;;
8772218822Sdim  *)
8773218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774218822Sdimfor as_dir in $gcc_cv_tool_dirs
8775218822Sdimdo
8776218822Sdim  IFS=$as_save_IFS
8777218822Sdim  test -z "$as_dir" && as_dir=.
8778218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8779218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780218822Sdim    ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8781218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782218822Sdim    break 2
8783218822Sdim  fi
8784218822Sdimdone
8785218822Sdimdone
8786218822Sdim
8787218822Sdim  ;;
8788218822Sdimesac
8789218822Sdimfi
8790218822SdimAS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8791218822Sdim
8792218822Sdimif test -n "$AS_FOR_TARGET"; then
8793218822Sdim  echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8794218822Sdimecho "${ECHO_T}$AS_FOR_TARGET" >&6
8795130561Sobrienelse
8796218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8797218822Sdimecho "${ECHO_T}no" >&6
8798218822Sdimfi
8799218822Sdim
8800218822Sdimfi
8801218822Sdimif test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8802218822Sdim
8803218822Sdim
8804218822Sdimif test -n "$AS_FOR_TARGET"; then
8805218822Sdim  ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8806218822Sdimelif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8807218822Sdim  AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8808218822Sdimfi
8809218822Sdim
8810218822Sdimif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8811218822Sdim  for ncn_progname in as; do
8812218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8813218822Sdimset dummy ${ncn_progname}; ac_word=$2
8814218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8815218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8816218822Sdimif test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8817218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8818218822Sdimelse
8819218822Sdim  if test -n "$AS_FOR_TARGET"; then
8820218822Sdim  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8821218822Sdimelse
8822218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823218822Sdimfor as_dir in $PATH
8824218822Sdimdo
8825218822Sdim  IFS=$as_save_IFS
8826218822Sdim  test -z "$as_dir" && as_dir=.
8827218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8828218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8829218822Sdim    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8830218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8831218822Sdim    break 2
8832218822Sdim  fi
8833218822Sdimdone
8834218822Sdimdone
8835218822Sdim
8836218822Sdimfi
8837218822Sdimfi
8838218822SdimAS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8839218822Sdimif test -n "$AS_FOR_TARGET"; then
8840218822Sdim  echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8841218822Sdimecho "${ECHO_T}$AS_FOR_TARGET" >&6
8842218822Sdimelse
8843218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8844218822Sdimecho "${ECHO_T}no" >&6
8845218822Sdimfi
8846218822Sdim
8847218822Sdim  done
8848218822Sdimfi
8849218822Sdim
8850218822Sdimif test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
8851218822Sdim  for ncn_progname in as; do
8852218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8853218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8854218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
8855218822Sdim      ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8856218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
8857218822Sdimecho "${ECHO_T}yes" >&6
8858130561Sobrien      break
8859218822Sdim    else
8860218822Sdim      echo "$as_me:$LINENO: result: no" >&5
8861218822Sdimecho "${ECHO_T}no" >&6
8862130561Sobrien    fi
8863130561Sobrien  done
8864130561Sobrienfi
8865218822Sdim
8866218822Sdimif test -z "$ac_cv_prog_AS_FOR_TARGET"; then
8867218822Sdim  for ncn_progname in as; do
8868218822Sdim    if test -n "$ncn_target_tool_prefix"; then
8869218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8870218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8871218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8872218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8873218822Sdimif test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8874218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8875218822Sdimelse
8876218822Sdim  if test -n "$AS_FOR_TARGET"; then
8877218822Sdim  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8878218822Sdimelse
8879218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880218822Sdimfor as_dir in $PATH
8881218822Sdimdo
8882218822Sdim  IFS=$as_save_IFS
8883218822Sdim  test -z "$as_dir" && as_dir=.
8884218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8885218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8886218822Sdim    ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8887218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8888218822Sdim    break 2
8889218822Sdim  fi
8890218822Sdimdone
8891218822Sdimdone
8892218822Sdim
8893130561Sobrienfi
8894218822Sdimfi
8895218822SdimAS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8896218822Sdimif test -n "$AS_FOR_TARGET"; then
8897218822Sdim  echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8898218822Sdimecho "${ECHO_T}$AS_FOR_TARGET" >&6
8899130561Sobrienelse
8900218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8901218822Sdimecho "${ECHO_T}no" >&6
8902130561Sobrienfi
8903218822Sdim
8904218822Sdim    fi
8905218822Sdim    if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
8906218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8907218822Sdimset dummy ${ncn_progname}; ac_word=$2
8908218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8909218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8910218822Sdimif test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8911218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8912218822Sdimelse
8913218822Sdim  if test -n "$AS_FOR_TARGET"; then
8914218822Sdim  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8915218822Sdimelse
8916218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917218822Sdimfor as_dir in $PATH
8918218822Sdimdo
8919218822Sdim  IFS=$as_save_IFS
8920218822Sdim  test -z "$as_dir" && as_dir=.
8921218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
8922218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923218822Sdim    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8924218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8925218822Sdim    break 2
8926218822Sdim  fi
8927218822Sdimdone
8928218822Sdimdone
8929218822Sdim
8930218822Sdimfi
8931218822Sdimfi
8932218822SdimAS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8933218822Sdimif test -n "$AS_FOR_TARGET"; then
8934218822Sdim  echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8935218822Sdimecho "${ECHO_T}$AS_FOR_TARGET" >&6
8936218822Sdimelse
8937218822Sdim  echo "$as_me:$LINENO: result: no" >&5
8938218822Sdimecho "${ECHO_T}no" >&6
8939218822Sdimfi
8940218822Sdim
8941218822Sdim    fi
8942218822Sdim    test -n "$ac_cv_prog_AS_FOR_TARGET" && break
8943218822Sdim  done
8944218822Sdimfi
8945218822Sdim
8946218822Sdimif test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
8947218822Sdim  set dummy as
8948218822Sdim  if test $build = $target ; then
8949218822Sdim    AS_FOR_TARGET="$2"
8950130561Sobrien  else
8951218822Sdim    AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
8952130561Sobrien  fi
8953130561Sobrienelse
8954130561Sobrien  AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
8955130561Sobrienfi
8956130561Sobrien
8957130561Sobrienelse
8958218822Sdim  AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8959218822Sdimfi
8960218822Sdim
8961218822Sdim
8962218822Sdim
8963218822Sdim
8964218822Sdimif test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
8965218822Sdim  if test -n "$with_build_time_tools"; then
8966218822Sdim    echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
8967218822Sdimecho $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
8968218822Sdim    if test -x $with_build_time_tools/dlltool; then
8969218822Sdim      DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
8970218822Sdim      ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
8971218822Sdim      echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
8972218822Sdimecho "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
8973218822Sdim    else
8974218822Sdim      echo "$as_me:$LINENO: result: no" >&5
8975218822Sdimecho "${ECHO_T}no" >&6
8976218822Sdim    fi
8977218822Sdim  elif test $build != $host && test $have_gcc_for_target = yes; then
8978218822Sdim    DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
8979218822Sdim    test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
8980218822Sdim    test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
8981218822Sdim  fi
8982218822Sdimfi
8983218822Sdimif test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8984218822Sdim  # Extract the first word of "dlltool", so it can be a program name with args.
8985218822Sdimset dummy dlltool; ac_word=$2
8986218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
8987218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8988218822Sdimif test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
8989218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
8990218822Sdimelse
8991218822Sdim  case $DLLTOOL_FOR_TARGET in
8992218822Sdim  [\\/]* | ?:[\\/]*)
8993218822Sdim  ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
8994218822Sdim  ;;
8995218822Sdim  *)
8996218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997218822Sdimfor as_dir in $gcc_cv_tool_dirs
8998218822Sdimdo
8999218822Sdim  IFS=$as_save_IFS
9000218822Sdim  test -z "$as_dir" && as_dir=.
9001218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9002218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9003218822Sdim    ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9004218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9005218822Sdim    break 2
9006218822Sdim  fi
9007218822Sdimdone
9008218822Sdimdone
9009218822Sdim
9010218822Sdim  ;;
9011218822Sdimesac
9012218822Sdimfi
9013218822SdimDLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9014218822Sdim
9015218822Sdimif test -n "$DLLTOOL_FOR_TARGET"; then
9016218822Sdim  echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9017218822Sdimecho "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9018218822Sdimelse
9019218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9020218822Sdimecho "${ECHO_T}no" >&6
9021218822Sdimfi
9022218822Sdim
9023218822Sdimfi
9024218822Sdimif test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9025218822Sdim
9026218822Sdim
9027218822Sdimif test -n "$DLLTOOL_FOR_TARGET"; then
9028218822Sdim  ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9029218822Sdimelif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9030218822Sdim  DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9031218822Sdimfi
9032218822Sdim
9033218822Sdimif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9034218822Sdim  for ncn_progname in dlltool; do
9035218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9036218822Sdimset dummy ${ncn_progname}; ac_word=$2
9037218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9038218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9039218822Sdimif test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9040218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9041218822Sdimelse
9042130561Sobrien  if test -n "$DLLTOOL_FOR_TARGET"; then
9043130561Sobrien  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9044130561Sobrienelse
9045218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046218822Sdimfor as_dir in $PATH
9047218822Sdimdo
9048218822Sdim  IFS=$as_save_IFS
9049218822Sdim  test -z "$as_dir" && as_dir=.
9050218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9051218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9052218822Sdim    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9053218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9054218822Sdim    break 2
9055218822Sdim  fi
9056218822Sdimdone
9057218822Sdimdone
9058218822Sdim
9059218822Sdimfi
9060218822Sdimfi
9061218822SdimDLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9062218822Sdimif test -n "$DLLTOOL_FOR_TARGET"; then
9063218822Sdim  echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9064218822Sdimecho "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9065218822Sdimelse
9066218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9067218822Sdimecho "${ECHO_T}no" >&6
9068218822Sdimfi
9069218822Sdim
9070218822Sdim  done
9071218822Sdimfi
9072218822Sdim
9073218822Sdimif test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9074218822Sdim  for ncn_progname in dlltool; do
9075218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9076218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9077218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
9078218822Sdim      ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9079218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
9080218822Sdimecho "${ECHO_T}yes" >&6
9081130561Sobrien      break
9082218822Sdim    else
9083218822Sdim      echo "$as_me:$LINENO: result: no" >&5
9084218822Sdimecho "${ECHO_T}no" >&6
9085130561Sobrien    fi
9086130561Sobrien  done
9087130561Sobrienfi
9088218822Sdim
9089218822Sdimif test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9090218822Sdim  for ncn_progname in dlltool; do
9091218822Sdim    if test -n "$ncn_target_tool_prefix"; then
9092218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9093218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9094218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9095218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9096218822Sdimif test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9097218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9098218822Sdimelse
9099218822Sdim  if test -n "$DLLTOOL_FOR_TARGET"; then
9100218822Sdim  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9101218822Sdimelse
9102218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103218822Sdimfor as_dir in $PATH
9104218822Sdimdo
9105218822Sdim  IFS=$as_save_IFS
9106218822Sdim  test -z "$as_dir" && as_dir=.
9107218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9108218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9109218822Sdim    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9110218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9111218822Sdim    break 2
9112218822Sdim  fi
9113218822Sdimdone
9114218822Sdimdone
9115218822Sdim
9116130561Sobrienfi
9117218822Sdimfi
9118218822SdimDLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9119130561Sobrienif test -n "$DLLTOOL_FOR_TARGET"; then
9120218822Sdim  echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9121218822Sdimecho "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9122130561Sobrienelse
9123218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9124218822Sdimecho "${ECHO_T}no" >&6
9125130561Sobrienfi
9126130561Sobrien
9127218822Sdim    fi
9128218822Sdim    if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9129218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9130218822Sdimset dummy ${ncn_progname}; ac_word=$2
9131218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9132218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9133218822Sdimif test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9134218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9135130561Sobrienelse
9136218822Sdim  if test -n "$DLLTOOL_FOR_TARGET"; then
9137218822Sdim  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9138130561Sobrienelse
9139218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140218822Sdimfor as_dir in $PATH
9141218822Sdimdo
9142218822Sdim  IFS=$as_save_IFS
9143218822Sdim  test -z "$as_dir" && as_dir=.
9144218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9145218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9146218822Sdim    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9147218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9148218822Sdim    break 2
9149218822Sdim  fi
9150218822Sdimdone
9151218822Sdimdone
9152218822Sdim
9153130561Sobrienfi
9154130561Sobrienfi
9155218822SdimDLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9156218822Sdimif test -n "$DLLTOOL_FOR_TARGET"; then
9157218822Sdim  echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9158218822Sdimecho "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9159130561Sobrienelse
9160218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9161218822Sdimecho "${ECHO_T}no" >&6
9162130561Sobrienfi
9163218822Sdim
9164218822Sdim    fi
9165218822Sdim    test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9166218822Sdim  done
9167218822Sdimfi
9168218822Sdim
9169218822Sdimif test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9170218822Sdim  set dummy dlltool
9171218822Sdim  if test $build = $target ; then
9172218822Sdim    DLLTOOL_FOR_TARGET="$2"
9173130561Sobrien  else
9174218822Sdim    DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9175130561Sobrien  fi
9176130561Sobrienelse
9177130561Sobrien  DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9178130561Sobrienfi
9179130561Sobrien
9180130561Sobrienelse
9181218822Sdim  DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9182218822Sdimfi
9183218822Sdim
9184218822Sdim
9185218822Sdim
9186218822Sdim
9187218822Sdimif test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9188218822Sdim  if test -n "$with_build_time_tools"; then
9189218822Sdim    echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9190218822Sdimecho $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9191218822Sdim    if test -x $with_build_time_tools/ld; then
9192218822Sdim      LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9193218822Sdim      ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9194218822Sdim      echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9195218822Sdimecho "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9196218822Sdim    else
9197218822Sdim      echo "$as_me:$LINENO: result: no" >&5
9198218822Sdimecho "${ECHO_T}no" >&6
9199218822Sdim    fi
9200218822Sdim  elif test $build != $host && test $have_gcc_for_target = yes; then
9201218822Sdim    LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9202218822Sdim    test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9203218822Sdim    test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9204218822Sdim  fi
9205218822Sdimfi
9206218822Sdimif test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9207218822Sdim  # Extract the first word of "ld", so it can be a program name with args.
9208218822Sdimset dummy ld; ac_word=$2
9209218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9210218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9211218822Sdimif test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9212218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9213218822Sdimelse
9214218822Sdim  case $LD_FOR_TARGET in
9215218822Sdim  [\\/]* | ?:[\\/]*)
9216218822Sdim  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9217218822Sdim  ;;
9218218822Sdim  *)
9219218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220218822Sdimfor as_dir in $gcc_cv_tool_dirs
9221218822Sdimdo
9222218822Sdim  IFS=$as_save_IFS
9223218822Sdim  test -z "$as_dir" && as_dir=.
9224218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9225218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9226218822Sdim    ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9227218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9228218822Sdim    break 2
9229218822Sdim  fi
9230218822Sdimdone
9231218822Sdimdone
9232218822Sdim
9233218822Sdim  ;;
9234218822Sdimesac
9235218822Sdimfi
9236218822SdimLD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9237218822Sdim
9238218822Sdimif test -n "$LD_FOR_TARGET"; then
9239218822Sdim  echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9240218822Sdimecho "${ECHO_T}$LD_FOR_TARGET" >&6
9241218822Sdimelse
9242218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9243218822Sdimecho "${ECHO_T}no" >&6
9244218822Sdimfi
9245218822Sdim
9246218822Sdimfi
9247218822Sdimif test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9248218822Sdim
9249218822Sdim
9250218822Sdimif test -n "$LD_FOR_TARGET"; then
9251218822Sdim  ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9252218822Sdimelif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9253218822Sdim  LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9254218822Sdimfi
9255218822Sdim
9256218822Sdimif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9257218822Sdim  for ncn_progname in ld; do
9258218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9259218822Sdimset dummy ${ncn_progname}; ac_word=$2
9260218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9261218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9262218822Sdimif test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9263218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9264218822Sdimelse
9265130561Sobrien  if test -n "$LD_FOR_TARGET"; then
9266130561Sobrien  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9267130561Sobrienelse
9268218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269218822Sdimfor as_dir in $PATH
9270218822Sdimdo
9271218822Sdim  IFS=$as_save_IFS
9272218822Sdim  test -z "$as_dir" && as_dir=.
9273218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9274218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9275218822Sdim    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9276218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9277218822Sdim    break 2
9278218822Sdim  fi
9279218822Sdimdone
9280218822Sdimdone
9281218822Sdim
9282218822Sdimfi
9283218822Sdimfi
9284218822SdimLD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9285218822Sdimif test -n "$LD_FOR_TARGET"; then
9286218822Sdim  echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9287218822Sdimecho "${ECHO_T}$LD_FOR_TARGET" >&6
9288218822Sdimelse
9289218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9290218822Sdimecho "${ECHO_T}no" >&6
9291218822Sdimfi
9292218822Sdim
9293218822Sdim  done
9294218822Sdimfi
9295218822Sdim
9296218822Sdimif test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9297218822Sdim  for ncn_progname in ld; do
9298218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9299218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9300218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
9301218822Sdim      ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9302218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
9303218822Sdimecho "${ECHO_T}yes" >&6
9304130561Sobrien      break
9305218822Sdim    else
9306218822Sdim      echo "$as_me:$LINENO: result: no" >&5
9307218822Sdimecho "${ECHO_T}no" >&6
9308130561Sobrien    fi
9309130561Sobrien  done
9310130561Sobrienfi
9311218822Sdim
9312218822Sdimif test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9313218822Sdim  for ncn_progname in ld; do
9314218822Sdim    if test -n "$ncn_target_tool_prefix"; then
9315218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9316218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9317218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9318218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9319218822Sdimif test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9320218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9321218822Sdimelse
9322218822Sdim  if test -n "$LD_FOR_TARGET"; then
9323218822Sdim  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9324218822Sdimelse
9325218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326218822Sdimfor as_dir in $PATH
9327218822Sdimdo
9328218822Sdim  IFS=$as_save_IFS
9329218822Sdim  test -z "$as_dir" && as_dir=.
9330218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9331218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332218822Sdim    ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9333218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9334218822Sdim    break 2
9335218822Sdim  fi
9336218822Sdimdone
9337218822Sdimdone
9338218822Sdim
9339130561Sobrienfi
9340218822Sdimfi
9341218822SdimLD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9342130561Sobrienif test -n "$LD_FOR_TARGET"; then
9343218822Sdim  echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9344218822Sdimecho "${ECHO_T}$LD_FOR_TARGET" >&6
9345130561Sobrienelse
9346218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9347218822Sdimecho "${ECHO_T}no" >&6
9348130561Sobrienfi
9349130561Sobrien
9350218822Sdim    fi
9351218822Sdim    if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9352218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9353218822Sdimset dummy ${ncn_progname}; ac_word=$2
9354218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9355218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9356218822Sdimif test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9357218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9358218822Sdimelse
9359218822Sdim  if test -n "$LD_FOR_TARGET"; then
9360218822Sdim  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9361218822Sdimelse
9362218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363218822Sdimfor as_dir in $PATH
9364218822Sdimdo
9365218822Sdim  IFS=$as_save_IFS
9366218822Sdim  test -z "$as_dir" && as_dir=.
9367218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9368218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9369218822Sdim    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9370218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9371218822Sdim    break 2
9372218822Sdim  fi
9373218822Sdimdone
9374218822Sdimdone
9375218822Sdim
9376130561Sobrienfi
9377218822Sdimfi
9378218822SdimLD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9379218822Sdimif test -n "$LD_FOR_TARGET"; then
9380218822Sdim  echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9381218822Sdimecho "${ECHO_T}$LD_FOR_TARGET" >&6
9382218822Sdimelse
9383218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9384218822Sdimecho "${ECHO_T}no" >&6
9385218822Sdimfi
9386218822Sdim
9387218822Sdim    fi
9388218822Sdim    test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9389218822Sdim  done
9390218822Sdimfi
9391218822Sdim
9392130561Sobrienif test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9393218822Sdim  set dummy ld
9394130561Sobrien  if test $build = $target ; then
9395218822Sdim    LD_FOR_TARGET="$2"
9396218822Sdim  else
9397218822Sdim    LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9398218822Sdim  fi
9399130561Sobrienelse
9400218822Sdim  LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
9401218822Sdimfi
9402218822Sdim
9403130561Sobrienelse
9404218822Sdim  LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9405218822Sdimfi
9406218822Sdim
9407218822Sdim
9408218822Sdim
9409218822Sdim
9410218822Sdimif test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9411218822Sdim  if test -n "$with_build_time_tools"; then
9412218822Sdim    echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9413218822Sdimecho $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
9414218822Sdim    if test -x $with_build_time_tools/lipo; then
9415218822Sdim      LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9416218822Sdim      ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9417218822Sdim      echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9418218822Sdimecho "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
9419218822Sdim    else
9420218822Sdim      echo "$as_me:$LINENO: result: no" >&5
9421218822Sdimecho "${ECHO_T}no" >&6
9422218822Sdim    fi
9423218822Sdim  elif test $build != $host && test $have_gcc_for_target = yes; then
9424218822Sdim    LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9425218822Sdim    test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9426218822Sdim    test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9427218822Sdim  fi
9428218822Sdimfi
9429218822Sdimif test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9430218822Sdim  # Extract the first word of "lipo", so it can be a program name with args.
9431218822Sdimset dummy lipo; ac_word=$2
9432218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9433218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9434218822Sdimif test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9435218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9436218822Sdimelse
9437218822Sdim  case $LIPO_FOR_TARGET in
9438218822Sdim  [\\/]* | ?:[\\/]*)
9439218822Sdim  ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9440218822Sdim  ;;
9441218822Sdim  *)
9442218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443218822Sdimfor as_dir in $gcc_cv_tool_dirs
9444218822Sdimdo
9445218822Sdim  IFS=$as_save_IFS
9446218822Sdim  test -z "$as_dir" && as_dir=.
9447218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9448218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9449218822Sdim    ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9450218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9451218822Sdim    break 2
9452218822Sdim  fi
9453218822Sdimdone
9454218822Sdimdone
9455218822Sdim
9456218822Sdim  ;;
9457218822Sdimesac
9458218822Sdimfi
9459218822SdimLIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9460218822Sdim
9461218822Sdimif test -n "$LIPO_FOR_TARGET"; then
9462218822Sdim  echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9463218822Sdimecho "${ECHO_T}$LIPO_FOR_TARGET" >&6
9464218822Sdimelse
9465218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9466218822Sdimecho "${ECHO_T}no" >&6
9467218822Sdimfi
9468218822Sdim
9469218822Sdimfi
9470218822Sdimif test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9471218822Sdim
9472218822Sdim
9473218822Sdimif test -n "$LIPO_FOR_TARGET"; then
9474218822Sdim  ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9475218822Sdimelif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9476218822Sdim  LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9477218822Sdimfi
9478218822Sdim
9479218822Sdimif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9480218822Sdim  for ncn_progname in lipo; do
9481218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9482218822Sdimset dummy ${ncn_progname}; ac_word=$2
9483218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9484218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9485218822Sdimif test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9486218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9487218822Sdimelse
9488218822Sdim  if test -n "$LIPO_FOR_TARGET"; then
9489218822Sdim  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9490218822Sdimelse
9491218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492218822Sdimfor as_dir in $PATH
9493218822Sdimdo
9494218822Sdim  IFS=$as_save_IFS
9495218822Sdim  test -z "$as_dir" && as_dir=.
9496218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9497218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9498218822Sdim    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9499218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9500218822Sdim    break 2
9501218822Sdim  fi
9502218822Sdimdone
9503218822Sdimdone
9504218822Sdim
9505218822Sdimfi
9506218822Sdimfi
9507218822SdimLIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9508218822Sdimif test -n "$LIPO_FOR_TARGET"; then
9509218822Sdim  echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9510218822Sdimecho "${ECHO_T}$LIPO_FOR_TARGET" >&6
9511218822Sdimelse
9512218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9513218822Sdimecho "${ECHO_T}no" >&6
9514218822Sdimfi
9515218822Sdim
9516218822Sdim  done
9517218822Sdimfi
9518218822Sdim
9519218822Sdimif test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
9520218822Sdim  for ncn_progname in lipo; do
9521218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9522218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9523218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
9524218822Sdim      ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9525218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
9526218822Sdimecho "${ECHO_T}yes" >&6
9527130561Sobrien      break
9528218822Sdim    else
9529218822Sdim      echo "$as_me:$LINENO: result: no" >&5
9530218822Sdimecho "${ECHO_T}no" >&6
9531130561Sobrien    fi
9532130561Sobrien  done
9533130561Sobrienfi
9534218822Sdim
9535218822Sdimif test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9536218822Sdim  for ncn_progname in lipo; do
9537218822Sdim    if test -n "$ncn_target_tool_prefix"; then
9538218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9539218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9540218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9541218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9542218822Sdimif test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9543218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9544218822Sdimelse
9545218822Sdim  if test -n "$LIPO_FOR_TARGET"; then
9546218822Sdim  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9547218822Sdimelse
9548218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549218822Sdimfor as_dir in $PATH
9550218822Sdimdo
9551218822Sdim  IFS=$as_save_IFS
9552218822Sdim  test -z "$as_dir" && as_dir=.
9553218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9554218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9555218822Sdim    ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9556218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9557218822Sdim    break 2
9558218822Sdim  fi
9559218822Sdimdone
9560218822Sdimdone
9561218822Sdim
9562130561Sobrienfi
9563218822Sdimfi
9564218822SdimLIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9565218822Sdimif test -n "$LIPO_FOR_TARGET"; then
9566218822Sdim  echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9567218822Sdimecho "${ECHO_T}$LIPO_FOR_TARGET" >&6
9568130561Sobrienelse
9569218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9570218822Sdimecho "${ECHO_T}no" >&6
9571130561Sobrienfi
9572218822Sdim
9573218822Sdim    fi
9574218822Sdim    if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9575218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9576218822Sdimset dummy ${ncn_progname}; ac_word=$2
9577218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9578218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9579218822Sdimif test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9580218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9581218822Sdimelse
9582218822Sdim  if test -n "$LIPO_FOR_TARGET"; then
9583218822Sdim  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9584218822Sdimelse
9585218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586218822Sdimfor as_dir in $PATH
9587218822Sdimdo
9588218822Sdim  IFS=$as_save_IFS
9589218822Sdim  test -z "$as_dir" && as_dir=.
9590218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9591218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9592218822Sdim    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9593218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9594218822Sdim    break 2
9595218822Sdim  fi
9596218822Sdimdone
9597218822Sdimdone
9598218822Sdim
9599218822Sdimfi
9600218822Sdimfi
9601218822SdimLIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9602218822Sdimif test -n "$LIPO_FOR_TARGET"; then
9603218822Sdim  echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9604218822Sdimecho "${ECHO_T}$LIPO_FOR_TARGET" >&6
9605218822Sdimelse
9606218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9607218822Sdimecho "${ECHO_T}no" >&6
9608218822Sdimfi
9609218822Sdim
9610218822Sdim    fi
9611218822Sdim    test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9612218822Sdim  done
9613218822Sdimfi
9614218822Sdim
9615218822Sdimif test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9616218822Sdim  set dummy lipo
9617218822Sdim  if test $build = $target ; then
9618218822Sdim    LIPO_FOR_TARGET="$2"
9619130561Sobrien  else
9620218822Sdim    LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9621130561Sobrien  fi
9622130561Sobrienelse
9623218822Sdim  LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9624130561Sobrienfi
9625130561Sobrien
9626130561Sobrienelse
9627218822Sdim  LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9628218822Sdimfi
9629218822Sdim
9630218822Sdim
9631218822Sdim
9632218822Sdim
9633218822Sdimif test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9634218822Sdim  if test -n "$with_build_time_tools"; then
9635218822Sdim    echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9636218822Sdimecho $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
9637218822Sdim    if test -x $with_build_time_tools/nm; then
9638218822Sdim      NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9639218822Sdim      ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9640218822Sdim      echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9641218822Sdimecho "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
9642218822Sdim    else
9643218822Sdim      echo "$as_me:$LINENO: result: no" >&5
9644218822Sdimecho "${ECHO_T}no" >&6
9645218822Sdim    fi
9646218822Sdim  elif test $build != $host && test $have_gcc_for_target = yes; then
9647218822Sdim    NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9648218822Sdim    test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9649218822Sdim    test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9650218822Sdim  fi
9651218822Sdimfi
9652218822Sdimif test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9653218822Sdim  # Extract the first word of "nm", so it can be a program name with args.
9654218822Sdimset dummy nm; ac_word=$2
9655218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9656218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9657218822Sdimif test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9658218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9659218822Sdimelse
9660218822Sdim  case $NM_FOR_TARGET in
9661218822Sdim  [\\/]* | ?:[\\/]*)
9662218822Sdim  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9663218822Sdim  ;;
9664218822Sdim  *)
9665218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666218822Sdimfor as_dir in $gcc_cv_tool_dirs
9667218822Sdimdo
9668218822Sdim  IFS=$as_save_IFS
9669218822Sdim  test -z "$as_dir" && as_dir=.
9670218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9671218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9672218822Sdim    ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9673218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9674218822Sdim    break 2
9675218822Sdim  fi
9676218822Sdimdone
9677218822Sdimdone
9678218822Sdim
9679218822Sdim  ;;
9680218822Sdimesac
9681218822Sdimfi
9682218822SdimNM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9683218822Sdim
9684218822Sdimif test -n "$NM_FOR_TARGET"; then
9685218822Sdim  echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9686218822Sdimecho "${ECHO_T}$NM_FOR_TARGET" >&6
9687218822Sdimelse
9688218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9689218822Sdimecho "${ECHO_T}no" >&6
9690218822Sdimfi
9691218822Sdim
9692218822Sdimfi
9693218822Sdimif test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9694218822Sdim
9695218822Sdim
9696218822Sdimif test -n "$NM_FOR_TARGET"; then
9697218822Sdim  ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9698218822Sdimelif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9699218822Sdim  NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9700218822Sdimfi
9701218822Sdim
9702218822Sdimif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9703218822Sdim  for ncn_progname in nm; do
9704218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9705218822Sdimset dummy ${ncn_progname}; ac_word=$2
9706218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9707218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9708218822Sdimif test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9709218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9710218822Sdimelse
9711130561Sobrien  if test -n "$NM_FOR_TARGET"; then
9712130561Sobrien  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9713130561Sobrienelse
9714218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715218822Sdimfor as_dir in $PATH
9716218822Sdimdo
9717218822Sdim  IFS=$as_save_IFS
9718218822Sdim  test -z "$as_dir" && as_dir=.
9719218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9720218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9721218822Sdim    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9722218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9723218822Sdim    break 2
9724218822Sdim  fi
9725218822Sdimdone
9726218822Sdimdone
9727218822Sdim
9728218822Sdimfi
9729218822Sdimfi
9730218822SdimNM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9731218822Sdimif test -n "$NM_FOR_TARGET"; then
9732218822Sdim  echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9733218822Sdimecho "${ECHO_T}$NM_FOR_TARGET" >&6
9734218822Sdimelse
9735218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9736218822Sdimecho "${ECHO_T}no" >&6
9737218822Sdimfi
9738218822Sdim
9739218822Sdim  done
9740218822Sdimfi
9741218822Sdim
9742218822Sdimif test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
9743218822Sdim  for ncn_progname in nm; do
9744218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9745218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9746218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
9747218822Sdim      ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9748218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
9749218822Sdimecho "${ECHO_T}yes" >&6
9750130561Sobrien      break
9751218822Sdim    else
9752218822Sdim      echo "$as_me:$LINENO: result: no" >&5
9753218822Sdimecho "${ECHO_T}no" >&6
9754130561Sobrien    fi
9755130561Sobrien  done
9756130561Sobrienfi
9757218822Sdim
9758218822Sdimif test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9759218822Sdim  for ncn_progname in nm; do
9760218822Sdim    if test -n "$ncn_target_tool_prefix"; then
9761218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9762218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9763218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9764218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9765218822Sdimif test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9766218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9767218822Sdimelse
9768218822Sdim  if test -n "$NM_FOR_TARGET"; then
9769218822Sdim  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9770218822Sdimelse
9771218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772218822Sdimfor as_dir in $PATH
9773218822Sdimdo
9774218822Sdim  IFS=$as_save_IFS
9775218822Sdim  test -z "$as_dir" && as_dir=.
9776218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9777218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9778218822Sdim    ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9779218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9780218822Sdim    break 2
9781218822Sdim  fi
9782218822Sdimdone
9783218822Sdimdone
9784218822Sdim
9785130561Sobrienfi
9786218822Sdimfi
9787218822SdimNM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9788130561Sobrienif test -n "$NM_FOR_TARGET"; then
9789218822Sdim  echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9790218822Sdimecho "${ECHO_T}$NM_FOR_TARGET" >&6
9791130561Sobrienelse
9792218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9793218822Sdimecho "${ECHO_T}no" >&6
9794130561Sobrienfi
9795130561Sobrien
9796218822Sdim    fi
9797218822Sdim    if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9798218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9799218822Sdimset dummy ${ncn_progname}; ac_word=$2
9800218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9801218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9802218822Sdimif test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9803218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9804218822Sdimelse
9805218822Sdim  if test -n "$NM_FOR_TARGET"; then
9806218822Sdim  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9807218822Sdimelse
9808218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809218822Sdimfor as_dir in $PATH
9810218822Sdimdo
9811218822Sdim  IFS=$as_save_IFS
9812218822Sdim  test -z "$as_dir" && as_dir=.
9813218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9814218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9815218822Sdim    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9816218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9817218822Sdim    break 2
9818218822Sdim  fi
9819218822Sdimdone
9820218822Sdimdone
9821218822Sdim
9822130561Sobrienfi
9823218822Sdimfi
9824218822SdimNM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9825218822Sdimif test -n "$NM_FOR_TARGET"; then
9826218822Sdim  echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9827218822Sdimecho "${ECHO_T}$NM_FOR_TARGET" >&6
9828218822Sdimelse
9829218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9830218822Sdimecho "${ECHO_T}no" >&6
9831218822Sdimfi
9832218822Sdim
9833218822Sdim    fi
9834218822Sdim    test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9835218822Sdim  done
9836218822Sdimfi
9837218822Sdim
9838130561Sobrienif test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9839218822Sdim  set dummy nm
9840130561Sobrien  if test $build = $target ; then
9841218822Sdim    NM_FOR_TARGET="$2"
9842218822Sdim  else
9843218822Sdim    NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
9844218822Sdim  fi
9845130561Sobrienelse
9846218822Sdim  NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
9847218822Sdimfi
9848218822Sdim
9849130561Sobrienelse
9850218822Sdim  NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9851218822Sdimfi
9852218822Sdim
9853218822Sdim
9854218822Sdim
9855218822Sdim
9856218822Sdimif test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9857218822Sdim  if test -n "$with_build_time_tools"; then
9858218822Sdim    echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
9859218822Sdimecho $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
9860218822Sdim    if test -x $with_build_time_tools/objdump; then
9861218822Sdim      OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
9862218822Sdim      ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9863218822Sdim      echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
9864218822Sdimecho "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
9865218822Sdim    else
9866218822Sdim      echo "$as_me:$LINENO: result: no" >&5
9867218822Sdimecho "${ECHO_T}no" >&6
9868218822Sdim    fi
9869218822Sdim  elif test $build != $host && test $have_gcc_for_target = yes; then
9870218822Sdim    OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
9871218822Sdim    test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
9872218822Sdim    test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9873218822Sdim  fi
9874218822Sdimfi
9875218822Sdimif test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9876218822Sdim  # Extract the first word of "objdump", so it can be a program name with args.
9877218822Sdimset dummy objdump; ac_word=$2
9878218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9879218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9880218822Sdimif test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
9881218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9882218822Sdimelse
9883218822Sdim  case $OBJDUMP_FOR_TARGET in
9884218822Sdim  [\\/]* | ?:[\\/]*)
9885218822Sdim  ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
9886218822Sdim  ;;
9887218822Sdim  *)
9888218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889218822Sdimfor as_dir in $gcc_cv_tool_dirs
9890218822Sdimdo
9891218822Sdim  IFS=$as_save_IFS
9892218822Sdim  test -z "$as_dir" && as_dir=.
9893218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9894218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9895218822Sdim    ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9896218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9897218822Sdim    break 2
9898218822Sdim  fi
9899218822Sdimdone
9900218822Sdimdone
9901218822Sdim
9902218822Sdim  ;;
9903218822Sdimesac
9904218822Sdimfi
9905218822SdimOBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
9906218822Sdim
9907218822Sdimif test -n "$OBJDUMP_FOR_TARGET"; then
9908218822Sdim  echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9909218822Sdimecho "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
9910218822Sdimelse
9911218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9912218822Sdimecho "${ECHO_T}no" >&6
9913218822Sdimfi
9914218822Sdim
9915218822Sdimfi
9916218822Sdimif test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9917218822Sdim
9918218822Sdim
9919218822Sdimif test -n "$OBJDUMP_FOR_TARGET"; then
9920218822Sdim  ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9921218822Sdimelif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9922218822Sdim  OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9923218822Sdimfi
9924218822Sdim
9925218822Sdimif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9926218822Sdim  for ncn_progname in objdump; do
9927218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9928218822Sdimset dummy ${ncn_progname}; ac_word=$2
9929218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9930218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9931218822Sdimif test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9932218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9933218822Sdimelse
9934218822Sdim  if test -n "$OBJDUMP_FOR_TARGET"; then
9935218822Sdim  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9936218822Sdimelse
9937218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938218822Sdimfor as_dir in $PATH
9939218822Sdimdo
9940218822Sdim  IFS=$as_save_IFS
9941218822Sdim  test -z "$as_dir" && as_dir=.
9942218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
9943218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9944218822Sdim    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
9945218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9946218822Sdim    break 2
9947218822Sdim  fi
9948218822Sdimdone
9949218822Sdimdone
9950218822Sdim
9951218822Sdimfi
9952218822Sdimfi
9953218822SdimOBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9954218822Sdimif test -n "$OBJDUMP_FOR_TARGET"; then
9955218822Sdim  echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9956218822Sdimecho "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
9957218822Sdimelse
9958218822Sdim  echo "$as_me:$LINENO: result: no" >&5
9959218822Sdimecho "${ECHO_T}no" >&6
9960218822Sdimfi
9961218822Sdim
9962218822Sdim  done
9963218822Sdimfi
9964218822Sdim
9965218822Sdimif test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
9966218822Sdim  for ncn_progname in objdump; do
9967218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9968218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9969218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
9970218822Sdim      ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9971218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
9972218822Sdimecho "${ECHO_T}yes" >&6
9973130561Sobrien      break
9974218822Sdim    else
9975218822Sdim      echo "$as_me:$LINENO: result: no" >&5
9976218822Sdimecho "${ECHO_T}no" >&6
9977130561Sobrien    fi
9978130561Sobrien  done
9979130561Sobrienfi
9980218822Sdim
9981218822Sdimif test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9982218822Sdim  for ncn_progname in objdump; do
9983218822Sdim    if test -n "$ncn_target_tool_prefix"; then
9984218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9985218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9986218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
9987218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9988218822Sdimif test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9989218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
9990218822Sdimelse
9991218822Sdim  if test -n "$OBJDUMP_FOR_TARGET"; then
9992218822Sdim  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9993218822Sdimelse
9994218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995218822Sdimfor as_dir in $PATH
9996218822Sdimdo
9997218822Sdim  IFS=$as_save_IFS
9998218822Sdim  test -z "$as_dir" && as_dir=.
9999218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10000218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001218822Sdim    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10002218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10003218822Sdim    break 2
10004218822Sdim  fi
10005218822Sdimdone
10006218822Sdimdone
10007218822Sdim
10008130561Sobrienfi
10009218822Sdimfi
10010218822SdimOBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10011218822Sdimif test -n "$OBJDUMP_FOR_TARGET"; then
10012218822Sdim  echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10013218822Sdimecho "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10014130561Sobrienelse
10015218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10016218822Sdimecho "${ECHO_T}no" >&6
10017130561Sobrienfi
10018218822Sdim
10019218822Sdim    fi
10020218822Sdim    if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10021218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10022218822Sdimset dummy ${ncn_progname}; ac_word=$2
10023218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10024218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10025218822Sdimif test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10026218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10027218822Sdimelse
10028218822Sdim  if test -n "$OBJDUMP_FOR_TARGET"; then
10029218822Sdim  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10030218822Sdimelse
10031218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032218822Sdimfor as_dir in $PATH
10033218822Sdimdo
10034218822Sdim  IFS=$as_save_IFS
10035218822Sdim  test -z "$as_dir" && as_dir=.
10036218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10037218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10038218822Sdim    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10039218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10040218822Sdim    break 2
10041218822Sdim  fi
10042218822Sdimdone
10043218822Sdimdone
10044218822Sdim
10045218822Sdimfi
10046218822Sdimfi
10047218822SdimOBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10048218822Sdimif test -n "$OBJDUMP_FOR_TARGET"; then
10049218822Sdim  echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10050218822Sdimecho "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10051218822Sdimelse
10052218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10053218822Sdimecho "${ECHO_T}no" >&6
10054218822Sdimfi
10055218822Sdim
10056218822Sdim    fi
10057218822Sdim    test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10058218822Sdim  done
10059218822Sdimfi
10060218822Sdim
10061218822Sdimif test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10062218822Sdim  set dummy objdump
10063218822Sdim  if test $build = $target ; then
10064218822Sdim    OBJDUMP_FOR_TARGET="$2"
10065130561Sobrien  else
10066218822Sdim    OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10067130561Sobrien  fi
10068130561Sobrienelse
10069218822Sdim  OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10070130561Sobrienfi
10071130561Sobrien
10072130561Sobrienelse
10073218822Sdim  OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10074218822Sdimfi
10075218822Sdim
10076218822Sdim
10077218822Sdim
10078218822Sdim
10079218822Sdimif test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10080218822Sdim  if test -n "$with_build_time_tools"; then
10081218822Sdim    echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10082218822Sdimecho $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10083218822Sdim    if test -x $with_build_time_tools/ranlib; then
10084218822Sdim      RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10085218822Sdim      ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10086218822Sdim      echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10087218822Sdimecho "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10088218822Sdim    else
10089218822Sdim      echo "$as_me:$LINENO: result: no" >&5
10090218822Sdimecho "${ECHO_T}no" >&6
10091218822Sdim    fi
10092218822Sdim  elif test $build != $host && test $have_gcc_for_target = yes; then
10093218822Sdim    RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10094218822Sdim    test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10095218822Sdim    test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10096218822Sdim  fi
10097218822Sdimfi
10098218822Sdimif test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10099218822Sdim  # Extract the first word of "ranlib", so it can be a program name with args.
10100218822Sdimset dummy ranlib; ac_word=$2
10101218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10102218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10103218822Sdimif test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10104218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10105218822Sdimelse
10106218822Sdim  case $RANLIB_FOR_TARGET in
10107218822Sdim  [\\/]* | ?:[\\/]*)
10108218822Sdim  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10109218822Sdim  ;;
10110218822Sdim  *)
10111218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112218822Sdimfor as_dir in $gcc_cv_tool_dirs
10113218822Sdimdo
10114218822Sdim  IFS=$as_save_IFS
10115218822Sdim  test -z "$as_dir" && as_dir=.
10116218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10117218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118218822Sdim    ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10119218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10120218822Sdim    break 2
10121218822Sdim  fi
10122218822Sdimdone
10123218822Sdimdone
10124218822Sdim
10125218822Sdim  ;;
10126218822Sdimesac
10127218822Sdimfi
10128218822SdimRANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10129218822Sdim
10130218822Sdimif test -n "$RANLIB_FOR_TARGET"; then
10131218822Sdim  echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10132218822Sdimecho "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10133218822Sdimelse
10134218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10135218822Sdimecho "${ECHO_T}no" >&6
10136218822Sdimfi
10137218822Sdim
10138218822Sdimfi
10139218822Sdimif test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10140218822Sdim
10141218822Sdim
10142218822Sdimif test -n "$RANLIB_FOR_TARGET"; then
10143218822Sdim  ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10144218822Sdimelif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10145218822Sdim  RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10146218822Sdimfi
10147218822Sdim
10148218822Sdimif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10149218822Sdim  for ncn_progname in ranlib; do
10150218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10151218822Sdimset dummy ${ncn_progname}; ac_word=$2
10152218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10153218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10154218822Sdimif test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10155218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10156218822Sdimelse
10157130561Sobrien  if test -n "$RANLIB_FOR_TARGET"; then
10158130561Sobrien  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10159130561Sobrienelse
10160218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161218822Sdimfor as_dir in $PATH
10162218822Sdimdo
10163218822Sdim  IFS=$as_save_IFS
10164218822Sdim  test -z "$as_dir" && as_dir=.
10165218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10166218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10167218822Sdim    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10168218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10169218822Sdim    break 2
10170218822Sdim  fi
10171218822Sdimdone
10172218822Sdimdone
10173218822Sdim
10174218822Sdimfi
10175218822Sdimfi
10176218822SdimRANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10177218822Sdimif test -n "$RANLIB_FOR_TARGET"; then
10178218822Sdim  echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10179218822Sdimecho "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10180218822Sdimelse
10181218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10182218822Sdimecho "${ECHO_T}no" >&6
10183218822Sdimfi
10184218822Sdim
10185218822Sdim  done
10186218822Sdimfi
10187218822Sdim
10188218822Sdimif test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10189218822Sdim  for ncn_progname in ranlib; do
10190218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10191218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10192218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
10193218822Sdim      ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10194218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
10195218822Sdimecho "${ECHO_T}yes" >&6
10196130561Sobrien      break
10197218822Sdim    else
10198218822Sdim      echo "$as_me:$LINENO: result: no" >&5
10199218822Sdimecho "${ECHO_T}no" >&6
10200130561Sobrien    fi
10201130561Sobrien  done
10202130561Sobrienfi
10203218822Sdim
10204218822Sdimif test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10205218822Sdim  for ncn_progname in ranlib; do
10206218822Sdim    if test -n "$ncn_target_tool_prefix"; then
10207218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10208218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10209218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10210218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10211218822Sdimif test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10212218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10213218822Sdimelse
10214218822Sdim  if test -n "$RANLIB_FOR_TARGET"; then
10215218822Sdim  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10216218822Sdimelse
10217218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218218822Sdimfor as_dir in $PATH
10219218822Sdimdo
10220218822Sdim  IFS=$as_save_IFS
10221218822Sdim  test -z "$as_dir" && as_dir=.
10222218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10223218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10224218822Sdim    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10225218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10226218822Sdim    break 2
10227218822Sdim  fi
10228218822Sdimdone
10229218822Sdimdone
10230218822Sdim
10231130561Sobrienfi
10232218822Sdimfi
10233218822SdimRANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10234130561Sobrienif test -n "$RANLIB_FOR_TARGET"; then
10235218822Sdim  echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10236218822Sdimecho "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10237130561Sobrienelse
10238218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10239218822Sdimecho "${ECHO_T}no" >&6
10240130561Sobrienfi
10241130561Sobrien
10242218822Sdim    fi
10243218822Sdim    if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10244218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10245218822Sdimset dummy ${ncn_progname}; ac_word=$2
10246218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10247218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10248218822Sdimif test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10249218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10250218822Sdimelse
10251218822Sdim  if test -n "$RANLIB_FOR_TARGET"; then
10252218822Sdim  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10253218822Sdimelse
10254218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255218822Sdimfor as_dir in $PATH
10256218822Sdimdo
10257218822Sdim  IFS=$as_save_IFS
10258218822Sdim  test -z "$as_dir" && as_dir=.
10259218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10260218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10261218822Sdim    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10262218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10263218822Sdim    break 2
10264218822Sdim  fi
10265218822Sdimdone
10266218822Sdimdone
10267218822Sdim
10268130561Sobrienfi
10269218822Sdimfi
10270218822SdimRANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10271218822Sdimif test -n "$RANLIB_FOR_TARGET"; then
10272218822Sdim  echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10273218822Sdimecho "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10274218822Sdimelse
10275218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10276218822Sdimecho "${ECHO_T}no" >&6
10277218822Sdimfi
10278218822Sdim
10279218822Sdim    fi
10280218822Sdim    test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10281218822Sdim  done
10282218822Sdimfi
10283218822Sdim
10284130561Sobrienif test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10285218822Sdim  set dummy ranlib
10286130561Sobrien  if test $build = $target ; then
10287218822Sdim    RANLIB_FOR_TARGET="$2"
10288218822Sdim  else
10289218822Sdim    RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10290218822Sdim  fi
10291130561Sobrienelse
10292218822Sdim  RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10293218822Sdimfi
10294218822Sdim
10295130561Sobrienelse
10296218822Sdim  RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10297218822Sdimfi
10298218822Sdim
10299218822Sdim
10300218822Sdim
10301218822Sdim
10302218822Sdimif test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10303218822Sdim  if test -n "$with_build_time_tools"; then
10304218822Sdim    echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10305218822Sdimecho $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10306218822Sdim    if test -x $with_build_time_tools/strip; then
10307218822Sdim      STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10308218822Sdim      ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10309218822Sdim      echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10310218822Sdimecho "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10311218822Sdim    else
10312218822Sdim      echo "$as_me:$LINENO: result: no" >&5
10313218822Sdimecho "${ECHO_T}no" >&6
10314218822Sdim    fi
10315218822Sdim  elif test $build != $host && test $have_gcc_for_target = yes; then
10316218822Sdim    STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10317218822Sdim    test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10318218822Sdim    test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10319218822Sdim  fi
10320218822Sdimfi
10321218822Sdimif test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10322218822Sdim  # Extract the first word of "strip", so it can be a program name with args.
10323218822Sdimset dummy strip; ac_word=$2
10324218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10325218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10326218822Sdimif test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10327218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10328218822Sdimelse
10329218822Sdim  case $STRIP_FOR_TARGET in
10330218822Sdim  [\\/]* | ?:[\\/]*)
10331218822Sdim  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10332218822Sdim  ;;
10333218822Sdim  *)
10334218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335218822Sdimfor as_dir in $gcc_cv_tool_dirs
10336218822Sdimdo
10337218822Sdim  IFS=$as_save_IFS
10338218822Sdim  test -z "$as_dir" && as_dir=.
10339218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10340218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10341218822Sdim    ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10342218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10343218822Sdim    break 2
10344218822Sdim  fi
10345218822Sdimdone
10346218822Sdimdone
10347218822Sdim
10348218822Sdim  ;;
10349218822Sdimesac
10350218822Sdimfi
10351218822SdimSTRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10352218822Sdim
10353218822Sdimif test -n "$STRIP_FOR_TARGET"; then
10354218822Sdim  echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10355218822Sdimecho "${ECHO_T}$STRIP_FOR_TARGET" >&6
10356218822Sdimelse
10357218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10358218822Sdimecho "${ECHO_T}no" >&6
10359218822Sdimfi
10360218822Sdim
10361218822Sdimfi
10362218822Sdimif test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10363218822Sdim
10364218822Sdim
10365218822Sdimif test -n "$STRIP_FOR_TARGET"; then
10366218822Sdim  ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10367218822Sdimelif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10368218822Sdim  STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10369218822Sdimfi
10370218822Sdim
10371218822Sdimif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10372218822Sdim  for ncn_progname in strip; do
10373218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10374218822Sdimset dummy ${ncn_progname}; ac_word=$2
10375218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10376218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10377218822Sdimif test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10378218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10379218822Sdimelse
10380218822Sdim  if test -n "$STRIP_FOR_TARGET"; then
10381218822Sdim  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10382218822Sdimelse
10383218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384218822Sdimfor as_dir in $PATH
10385218822Sdimdo
10386218822Sdim  IFS=$as_save_IFS
10387218822Sdim  test -z "$as_dir" && as_dir=.
10388218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10389218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10390218822Sdim    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10391218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10392218822Sdim    break 2
10393218822Sdim  fi
10394218822Sdimdone
10395218822Sdimdone
10396218822Sdim
10397218822Sdimfi
10398218822Sdimfi
10399218822SdimSTRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10400218822Sdimif test -n "$STRIP_FOR_TARGET"; then
10401218822Sdim  echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10402218822Sdimecho "${ECHO_T}$STRIP_FOR_TARGET" >&6
10403218822Sdimelse
10404218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10405218822Sdimecho "${ECHO_T}no" >&6
10406218822Sdimfi
10407218822Sdim
10408218822Sdim  done
10409218822Sdimfi
10410218822Sdim
10411218822Sdimif test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10412218822Sdim  for ncn_progname in strip; do
10413218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10414218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10415218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
10416218822Sdim      ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10417218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
10418218822Sdimecho "${ECHO_T}yes" >&6
10419130561Sobrien      break
10420218822Sdim    else
10421218822Sdim      echo "$as_me:$LINENO: result: no" >&5
10422218822Sdimecho "${ECHO_T}no" >&6
10423130561Sobrien    fi
10424130561Sobrien  done
10425130561Sobrienfi
10426218822Sdim
10427218822Sdimif test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10428218822Sdim  for ncn_progname in strip; do
10429218822Sdim    if test -n "$ncn_target_tool_prefix"; then
10430218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10431218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10432218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10433218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10434218822Sdimif test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10435218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10436218822Sdimelse
10437218822Sdim  if test -n "$STRIP_FOR_TARGET"; then
10438218822Sdim  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10439218822Sdimelse
10440218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441218822Sdimfor as_dir in $PATH
10442218822Sdimdo
10443218822Sdim  IFS=$as_save_IFS
10444218822Sdim  test -z "$as_dir" && as_dir=.
10445218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10446218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10447218822Sdim    ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10448218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10449218822Sdim    break 2
10450218822Sdim  fi
10451218822Sdimdone
10452218822Sdimdone
10453218822Sdim
10454130561Sobrienfi
10455218822Sdimfi
10456218822SdimSTRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10457218822Sdimif test -n "$STRIP_FOR_TARGET"; then
10458218822Sdim  echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10459218822Sdimecho "${ECHO_T}$STRIP_FOR_TARGET" >&6
10460130561Sobrienelse
10461218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10462218822Sdimecho "${ECHO_T}no" >&6
10463130561Sobrienfi
10464218822Sdim
10465218822Sdim    fi
10466218822Sdim    if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10467218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10468218822Sdimset dummy ${ncn_progname}; ac_word=$2
10469218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10470218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10471218822Sdimif test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10472218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10473218822Sdimelse
10474218822Sdim  if test -n "$STRIP_FOR_TARGET"; then
10475218822Sdim  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10476218822Sdimelse
10477218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478218822Sdimfor as_dir in $PATH
10479218822Sdimdo
10480218822Sdim  IFS=$as_save_IFS
10481218822Sdim  test -z "$as_dir" && as_dir=.
10482218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10483218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484218822Sdim    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10485218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10486218822Sdim    break 2
10487218822Sdim  fi
10488218822Sdimdone
10489218822Sdimdone
10490218822Sdim
10491218822Sdimfi
10492218822Sdimfi
10493218822SdimSTRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10494218822Sdimif test -n "$STRIP_FOR_TARGET"; then
10495218822Sdim  echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10496218822Sdimecho "${ECHO_T}$STRIP_FOR_TARGET" >&6
10497218822Sdimelse
10498218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10499218822Sdimecho "${ECHO_T}no" >&6
10500218822Sdimfi
10501218822Sdim
10502218822Sdim    fi
10503218822Sdim    test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10504218822Sdim  done
10505218822Sdimfi
10506218822Sdim
10507218822Sdimif test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10508218822Sdim  set dummy strip
10509218822Sdim  if test $build = $target ; then
10510218822Sdim    STRIP_FOR_TARGET="$2"
10511130561Sobrien  else
10512218822Sdim    STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10513130561Sobrien  fi
10514130561Sobrienelse
10515218822Sdim  STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
10516130561Sobrienfi
10517130561Sobrien
10518130561Sobrienelse
10519218822Sdim  STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10520218822Sdimfi
10521218822Sdim
10522218822Sdim
10523218822Sdim
10524218822Sdim
10525218822Sdimif test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10526218822Sdim  if test -n "$with_build_time_tools"; then
10527218822Sdim    echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10528218822Sdimecho $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
10529218822Sdim    if test -x $with_build_time_tools/windres; then
10530218822Sdim      WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10531218822Sdim      ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10532218822Sdim      echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10533218822Sdimecho "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
10534218822Sdim    else
10535218822Sdim      echo "$as_me:$LINENO: result: no" >&5
10536218822Sdimecho "${ECHO_T}no" >&6
10537218822Sdim    fi
10538218822Sdim  elif test $build != $host && test $have_gcc_for_target = yes; then
10539218822Sdim    WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10540218822Sdim    test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10541218822Sdim    test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10542218822Sdim  fi
10543218822Sdimfi
10544218822Sdimif test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10545218822Sdim  # Extract the first word of "windres", so it can be a program name with args.
10546218822Sdimset dummy windres; ac_word=$2
10547218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10548218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10549218822Sdimif test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10550218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10551218822Sdimelse
10552218822Sdim  case $WINDRES_FOR_TARGET in
10553218822Sdim  [\\/]* | ?:[\\/]*)
10554218822Sdim  ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10555218822Sdim  ;;
10556218822Sdim  *)
10557218822Sdim  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558218822Sdimfor as_dir in $gcc_cv_tool_dirs
10559218822Sdimdo
10560218822Sdim  IFS=$as_save_IFS
10561218822Sdim  test -z "$as_dir" && as_dir=.
10562218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10563218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10564218822Sdim    ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10565218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10566218822Sdim    break 2
10567218822Sdim  fi
10568218822Sdimdone
10569218822Sdimdone
10570218822Sdim
10571218822Sdim  ;;
10572218822Sdimesac
10573218822Sdimfi
10574218822SdimWINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10575218822Sdim
10576218822Sdimif test -n "$WINDRES_FOR_TARGET"; then
10577218822Sdim  echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10578218822Sdimecho "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10579218822Sdimelse
10580218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10581218822Sdimecho "${ECHO_T}no" >&6
10582218822Sdimfi
10583218822Sdim
10584218822Sdimfi
10585218822Sdimif test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10586218822Sdim
10587218822Sdim
10588218822Sdimif test -n "$WINDRES_FOR_TARGET"; then
10589218822Sdim  ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10590218822Sdimelif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10591218822Sdim  WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10592218822Sdimfi
10593218822Sdim
10594218822Sdimif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10595218822Sdim  for ncn_progname in windres; do
10596218822Sdim    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10597218822Sdimset dummy ${ncn_progname}; ac_word=$2
10598218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10599218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10600218822Sdimif test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10601218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10602218822Sdimelse
10603130561Sobrien  if test -n "$WINDRES_FOR_TARGET"; then
10604130561Sobrien  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10605130561Sobrienelse
10606218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10607218822Sdimfor as_dir in $PATH
10608218822Sdimdo
10609218822Sdim  IFS=$as_save_IFS
10610218822Sdim  test -z "$as_dir" && as_dir=.
10611218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10612218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10613218822Sdim    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10614218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10615218822Sdim    break 2
10616218822Sdim  fi
10617218822Sdimdone
10618218822Sdimdone
10619218822Sdim
10620218822Sdimfi
10621218822Sdimfi
10622218822SdimWINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10623218822Sdimif test -n "$WINDRES_FOR_TARGET"; then
10624218822Sdim  echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10625218822Sdimecho "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10626218822Sdimelse
10627218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10628218822Sdimecho "${ECHO_T}no" >&6
10629218822Sdimfi
10630218822Sdim
10631218822Sdim  done
10632218822Sdimfi
10633218822Sdim
10634218822Sdimif test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
10635218822Sdim  for ncn_progname in windres; do
10636218822Sdim    echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10637218822Sdimecho $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10638218822Sdim    if test -x $with_build_time_tools/${ncn_progname}; then
10639218822Sdim      ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10640218822Sdim      echo "$as_me:$LINENO: result: yes" >&5
10641218822Sdimecho "${ECHO_T}yes" >&6
10642130561Sobrien      break
10643218822Sdim    else
10644218822Sdim      echo "$as_me:$LINENO: result: no" >&5
10645218822Sdimecho "${ECHO_T}no" >&6
10646130561Sobrien    fi
10647130561Sobrien  done
10648130561Sobrienfi
10649218822Sdim
10650218822Sdimif test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10651218822Sdim  for ncn_progname in windres; do
10652218822Sdim    if test -n "$ncn_target_tool_prefix"; then
10653218822Sdim      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10654218822Sdimset dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10655218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10656218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10657218822Sdimif test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10658218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10659218822Sdimelse
10660218822Sdim  if test -n "$WINDRES_FOR_TARGET"; then
10661218822Sdim  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10662218822Sdimelse
10663218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664218822Sdimfor as_dir in $PATH
10665218822Sdimdo
10666218822Sdim  IFS=$as_save_IFS
10667218822Sdim  test -z "$as_dir" && as_dir=.
10668218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10669218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10670218822Sdim    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10671218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10672218822Sdim    break 2
10673218822Sdim  fi
10674218822Sdimdone
10675218822Sdimdone
10676218822Sdim
10677130561Sobrienfi
10678218822Sdimfi
10679218822SdimWINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10680130561Sobrienif test -n "$WINDRES_FOR_TARGET"; then
10681218822Sdim  echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10682218822Sdimecho "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10683130561Sobrienelse
10684218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10685218822Sdimecho "${ECHO_T}no" >&6
10686130561Sobrienfi
10687130561Sobrien
10688218822Sdim    fi
10689218822Sdim    if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10690218822Sdim      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10691218822Sdimset dummy ${ncn_progname}; ac_word=$2
10692218822Sdimecho "$as_me:$LINENO: checking for $ac_word" >&5
10693218822Sdimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10694218822Sdimif test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10695218822Sdim  echo $ECHO_N "(cached) $ECHO_C" >&6
10696218822Sdimelse
10697218822Sdim  if test -n "$WINDRES_FOR_TARGET"; then
10698218822Sdim  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10699218822Sdimelse
10700218822Sdimas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701218822Sdimfor as_dir in $PATH
10702218822Sdimdo
10703218822Sdim  IFS=$as_save_IFS
10704218822Sdim  test -z "$as_dir" && as_dir=.
10705218822Sdim  for ac_exec_ext in '' $ac_executable_extensions; do
10706218822Sdim  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707218822Sdim    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10708218822Sdim    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10709218822Sdim    break 2
10710218822Sdim  fi
10711218822Sdimdone
10712218822Sdimdone
10713218822Sdim
10714130561Sobrienfi
10715218822Sdimfi
10716218822SdimWINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10717218822Sdimif test -n "$WINDRES_FOR_TARGET"; then
10718218822Sdim  echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10719218822Sdimecho "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10720218822Sdimelse
10721218822Sdim  echo "$as_me:$LINENO: result: no" >&5
10722218822Sdimecho "${ECHO_T}no" >&6
10723218822Sdimfi
10724218822Sdim
10725218822Sdim    fi
10726218822Sdim    test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10727218822Sdim  done
10728218822Sdimfi
10729218822Sdim
10730130561Sobrienif test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10731218822Sdim  set dummy windres
10732130561Sobrien  if test $build = $target ; then
10733218822Sdim    WINDRES_FOR_TARGET="$2"
10734218822Sdim  else
10735218822Sdim    WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
10736218822Sdim  fi
10737130561Sobrienelse
10738218822Sdim  WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
10739218822Sdimfi
10740218822Sdim
10741130561Sobrienelse
10742218822Sdim  WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10743130561Sobrienfi
10744218822Sdim
10745218822Sdim
10746218822SdimRAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
10747218822Sdim
10748218822Sdimecho "$as_me:$LINENO: checking where to find the target ar" >&5
10749218822Sdimecho $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
10750218822Sdimif test "x${build}" != "x${host}" ; then
10751218822Sdim  if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10752218822Sdim    # We already found the complete path
10753218822Sdim    ac_dir=`dirname $AR_FOR_TARGET`
10754218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10755218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10756218822Sdim  else
10757218822Sdim    # Canadian cross, just use what we found
10758218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
10759218822Sdimecho "${ECHO_T}pre-installed" >&6
10760218822Sdim  fi
10761218822Sdimelse
10762218822Sdim  ok=yes
10763218822Sdim  case " ${configdirs} " in
10764218822Sdim    *" binutils "*) ;;
10765218822Sdim    *) ok=no ;;
10766218822Sdim  esac
10767218822Sdim
10768218822Sdim  if test $ok = yes; then
10769218822Sdim    # An in-tree tool is available and we can use it
10770218822Sdim    AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
10771218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
10772218822Sdimecho "${ECHO_T}just compiled" >&6
10773218822Sdim  elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10774218822Sdim    # We already found the complete path
10775218822Sdim    ac_dir=`dirname $AR_FOR_TARGET`
10776218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10777218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10778218822Sdim  elif test "x$target" = "x$host"; then
10779218822Sdim    # We can use an host tool
10780218822Sdim    AR_FOR_TARGET='$(AR)'
10781218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
10782218822Sdimecho "${ECHO_T}host tool" >&6
10783218822Sdim  else
10784218822Sdim    # We need a cross tool
10785218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
10786218822Sdimecho "${ECHO_T}pre-installed" >&6
10787218822Sdim  fi
10788130561Sobrienfi
10789218822Sdim
10790218822Sdimecho "$as_me:$LINENO: checking where to find the target as" >&5
10791218822Sdimecho $ECHO_N "checking where to find the target as... $ECHO_C" >&6
10792218822Sdimif test "x${build}" != "x${host}" ; then
10793218822Sdim  if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10794218822Sdim    # We already found the complete path
10795218822Sdim    ac_dir=`dirname $AS_FOR_TARGET`
10796218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10797218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10798218822Sdim  else
10799218822Sdim    # Canadian cross, just use what we found
10800218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
10801218822Sdimecho "${ECHO_T}pre-installed" >&6
10802218822Sdim  fi
10803130561Sobrienelse
10804218822Sdim  ok=yes
10805218822Sdim  case " ${configdirs} " in
10806218822Sdim    *" gas "*) ;;
10807218822Sdim    *) ok=no ;;
10808218822Sdim  esac
10809218822Sdim
10810218822Sdim  if test $ok = yes; then
10811218822Sdim    # An in-tree tool is available and we can use it
10812218822Sdim    AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
10813218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
10814218822Sdimecho "${ECHO_T}just compiled" >&6
10815218822Sdim  elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10816218822Sdim    # We already found the complete path
10817218822Sdim    ac_dir=`dirname $AS_FOR_TARGET`
10818218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10819218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10820218822Sdim  elif test "x$target" = "x$host"; then
10821218822Sdim    # We can use an host tool
10822218822Sdim    AS_FOR_TARGET='$(AS)'
10823218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
10824218822Sdimecho "${ECHO_T}host tool" >&6
10825218822Sdim  else
10826218822Sdim    # We need a cross tool
10827218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
10828218822Sdimecho "${ECHO_T}pre-installed" >&6
10829218822Sdim  fi
10830130561Sobrienfi
10831218822Sdim
10832218822Sdimecho "$as_me:$LINENO: checking where to find the target cc" >&5
10833218822Sdimecho $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
10834218822Sdimif test "x${build}" != "x${host}" ; then
10835218822Sdim  if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10836218822Sdim    # We already found the complete path
10837218822Sdim    ac_dir=`dirname $CC_FOR_TARGET`
10838218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10839218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10840130561Sobrien  else
10841218822Sdim    # Canadian cross, just use what we found
10842218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
10843218822Sdimecho "${ECHO_T}pre-installed" >&6
10844130561Sobrien  fi
10845130561Sobrienelse
10846218822Sdim  ok=yes
10847218822Sdim  case " ${configdirs} " in
10848218822Sdim    *" gcc "*) ;;
10849218822Sdim    *) ok=no ;;
10850218822Sdim  esac
10851218822Sdim
10852218822Sdim  if test $ok = yes; then
10853218822Sdim    # An in-tree tool is available and we can use it
10854218822Sdim    CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
10855218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
10856218822Sdimecho "${ECHO_T}just compiled" >&6
10857218822Sdim  elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10858218822Sdim    # We already found the complete path
10859218822Sdim    ac_dir=`dirname $CC_FOR_TARGET`
10860218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10861218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10862218822Sdim  elif test "x$target" = "x$host"; then
10863218822Sdim    # We can use an host tool
10864218822Sdim    CC_FOR_TARGET='$(CC)'
10865218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
10866218822Sdimecho "${ECHO_T}host tool" >&6
10867218822Sdim  else
10868218822Sdim    # We need a cross tool
10869218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
10870218822Sdimecho "${ECHO_T}pre-installed" >&6
10871218822Sdim  fi
10872130561Sobrienfi
10873130561Sobrien
10874218822Sdimecho "$as_me:$LINENO: checking where to find the target c++" >&5
10875218822Sdimecho $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
10876218822Sdimif test "x${build}" != "x${host}" ; then
10877218822Sdim  if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10878218822Sdim    # We already found the complete path
10879218822Sdim    ac_dir=`dirname $CXX_FOR_TARGET`
10880218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10881218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10882218822Sdim  else
10883218822Sdim    # Canadian cross, just use what we found
10884218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
10885218822Sdimecho "${ECHO_T}pre-installed" >&6
10886218822Sdim  fi
10887218822Sdimelse
10888218822Sdim  ok=yes
10889218822Sdim  case " ${configdirs} " in
10890218822Sdim    *" gcc "*) ;;
10891218822Sdim    *) ok=no ;;
10892218822Sdim  esac
10893218822Sdim  case ,${enable_languages}, in
10894218822Sdim    *,c++,*) ;;
10895218822Sdim    *) ok=no ;;
10896218822Sdim  esac
10897218822Sdim  if test $ok = yes; then
10898218822Sdim    # An in-tree tool is available and we can use it
10899218822Sdim    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'
10900218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
10901218822Sdimecho "${ECHO_T}just compiled" >&6
10902218822Sdim  elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10903218822Sdim    # We already found the complete path
10904218822Sdim    ac_dir=`dirname $CXX_FOR_TARGET`
10905218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10906218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10907218822Sdim  elif test "x$target" = "x$host"; then
10908218822Sdim    # We can use an host tool
10909218822Sdim    CXX_FOR_TARGET='$(CXX)'
10910218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
10911218822Sdimecho "${ECHO_T}host tool" >&6
10912218822Sdim  else
10913218822Sdim    # We need a cross tool
10914218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
10915218822Sdimecho "${ECHO_T}pre-installed" >&6
10916218822Sdim  fi
10917218822Sdimfi
10918130561Sobrien
10919218822Sdimecho "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
10920218822Sdimecho $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
10921218822Sdimif test "x${build}" != "x${host}" ; then
10922218822Sdim  if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10923218822Sdim    # We already found the complete path
10924218822Sdim    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
10925218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10926218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10927218822Sdim  else
10928218822Sdim    # Canadian cross, just use what we found
10929218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
10930218822Sdimecho "${ECHO_T}pre-installed" >&6
10931218822Sdim  fi
10932218822Sdimelse
10933218822Sdim  ok=yes
10934218822Sdim  case " ${configdirs} " in
10935218822Sdim    *" gcc "*) ;;
10936218822Sdim    *) ok=no ;;
10937218822Sdim  esac
10938218822Sdim  case ,${enable_languages}, in
10939218822Sdim    *,c++,*) ;;
10940218822Sdim    *) ok=no ;;
10941218822Sdim  esac
10942218822Sdim  if test $ok = yes; then
10943218822Sdim    # An in-tree tool is available and we can use it
10944218822Sdim    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'
10945218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
10946218822Sdimecho "${ECHO_T}just compiled" >&6
10947218822Sdim  elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10948218822Sdim    # We already found the complete path
10949218822Sdim    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
10950218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10951218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10952218822Sdim  elif test "x$target" = "x$host"; then
10953218822Sdim    # We can use an host tool
10954218822Sdim    RAW_CXX_FOR_TARGET='$(CXX)'
10955218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
10956218822Sdimecho "${ECHO_T}host tool" >&6
10957218822Sdim  else
10958218822Sdim    # We need a cross tool
10959218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
10960218822Sdimecho "${ECHO_T}pre-installed" >&6
10961218822Sdim  fi
10962218822Sdimfi
10963130561Sobrien
10964218822Sdimecho "$as_me:$LINENO: checking where to find the target dlltool" >&5
10965218822Sdimecho $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
10966218822Sdimif test "x${build}" != "x${host}" ; then
10967218822Sdim  if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10968218822Sdim    # We already found the complete path
10969218822Sdim    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
10970218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10971218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10972218822Sdim  else
10973218822Sdim    # Canadian cross, just use what we found
10974218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
10975218822Sdimecho "${ECHO_T}pre-installed" >&6
10976218822Sdim  fi
10977218822Sdimelse
10978218822Sdim  ok=yes
10979218822Sdim  case " ${configdirs} " in
10980218822Sdim    *" binutils "*) ;;
10981218822Sdim    *) ok=no ;;
10982218822Sdim  esac
10983130561Sobrien
10984218822Sdim  if test $ok = yes; then
10985218822Sdim    # An in-tree tool is available and we can use it
10986218822Sdim    DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
10987218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
10988218822Sdimecho "${ECHO_T}just compiled" >&6
10989218822Sdim  elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10990218822Sdim    # We already found the complete path
10991218822Sdim    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
10992218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10993218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
10994218822Sdim  elif test "x$target" = "x$host"; then
10995218822Sdim    # We can use an host tool
10996218822Sdim    DLLTOOL_FOR_TARGET='$(DLLTOOL)'
10997218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
10998218822Sdimecho "${ECHO_T}host tool" >&6
10999218822Sdim  else
11000218822Sdim    # We need a cross tool
11001218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11002218822Sdimecho "${ECHO_T}pre-installed" >&6
11003218822Sdim  fi
11004218822Sdimfi
11005130561Sobrien
11006218822Sdimecho "$as_me:$LINENO: checking where to find the target gcc" >&5
11007218822Sdimecho $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11008218822Sdimif test "x${build}" != "x${host}" ; then
11009218822Sdim  if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11010218822Sdim    # We already found the complete path
11011218822Sdim    ac_dir=`dirname $GCC_FOR_TARGET`
11012218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11013218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11014218822Sdim  else
11015218822Sdim    # Canadian cross, just use what we found
11016218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11017218822Sdimecho "${ECHO_T}pre-installed" >&6
11018218822Sdim  fi
11019218822Sdimelse
11020218822Sdim  ok=yes
11021218822Sdim  case " ${configdirs} " in
11022218822Sdim    *" gcc "*) ;;
11023218822Sdim    *) ok=no ;;
11024218822Sdim  esac
11025130561Sobrien
11026218822Sdim  if test $ok = yes; then
11027218822Sdim    # An in-tree tool is available and we can use it
11028218822Sdim    GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11029218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
11030218822Sdimecho "${ECHO_T}just compiled" >&6
11031218822Sdim  elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11032218822Sdim    # We already found the complete path
11033218822Sdim    ac_dir=`dirname $GCC_FOR_TARGET`
11034218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11035218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11036218822Sdim  elif test "x$target" = "x$host"; then
11037218822Sdim    # We can use an host tool
11038218822Sdim    GCC_FOR_TARGET='$()'
11039218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
11040218822Sdimecho "${ECHO_T}host tool" >&6
11041218822Sdim  else
11042218822Sdim    # We need a cross tool
11043218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11044218822Sdimecho "${ECHO_T}pre-installed" >&6
11045218822Sdim  fi
11046218822Sdimfi
11047130561Sobrien
11048218822Sdimecho "$as_me:$LINENO: checking where to find the target gcj" >&5
11049218822Sdimecho $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11050218822Sdimif test "x${build}" != "x${host}" ; then
11051218822Sdim  if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11052218822Sdim    # We already found the complete path
11053218822Sdim    ac_dir=`dirname $GCJ_FOR_TARGET`
11054218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11055218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11056218822Sdim  else
11057218822Sdim    # Canadian cross, just use what we found
11058218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11059218822Sdimecho "${ECHO_T}pre-installed" >&6
11060218822Sdim  fi
11061218822Sdimelse
11062218822Sdim  ok=yes
11063218822Sdim  case " ${configdirs} " in
11064218822Sdim    *" gcc "*) ;;
11065218822Sdim    *) ok=no ;;
11066218822Sdim  esac
11067218822Sdim  case ,${enable_languages}, in
11068218822Sdim    *,java,*) ;;
11069218822Sdim    *) ok=no ;;
11070218822Sdim  esac
11071218822Sdim  if test $ok = yes; then
11072218822Sdim    # An in-tree tool is available and we can use it
11073218822Sdim    GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11074218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
11075218822Sdimecho "${ECHO_T}just compiled" >&6
11076218822Sdim  elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11077218822Sdim    # We already found the complete path
11078218822Sdim    ac_dir=`dirname $GCJ_FOR_TARGET`
11079218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11080218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11081218822Sdim  elif test "x$target" = "x$host"; then
11082218822Sdim    # We can use an host tool
11083218822Sdim    GCJ_FOR_TARGET='$(GCJ)'
11084218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
11085218822Sdimecho "${ECHO_T}host tool" >&6
11086218822Sdim  else
11087218822Sdim    # We need a cross tool
11088218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11089218822Sdimecho "${ECHO_T}pre-installed" >&6
11090218822Sdim  fi
11091218822Sdimfi
11092130561Sobrien
11093218822Sdimecho "$as_me:$LINENO: checking where to find the target gfortran" >&5
11094218822Sdimecho $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11095218822Sdimif test "x${build}" != "x${host}" ; then
11096218822Sdim  if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11097218822Sdim    # We already found the complete path
11098218822Sdim    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11099218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11100218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11101218822Sdim  else
11102218822Sdim    # Canadian cross, just use what we found
11103218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11104218822Sdimecho "${ECHO_T}pre-installed" >&6
11105218822Sdim  fi
11106218822Sdimelse
11107218822Sdim  ok=yes
11108218822Sdim  case " ${configdirs} " in
11109218822Sdim    *" gcc "*) ;;
11110218822Sdim    *) ok=no ;;
11111218822Sdim  esac
11112218822Sdim  case ,${enable_languages}, in
11113218822Sdim    *,fortran,*) ;;
11114218822Sdim    *) ok=no ;;
11115218822Sdim  esac
11116218822Sdim  if test $ok = yes; then
11117218822Sdim    # An in-tree tool is available and we can use it
11118218822Sdim    GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11119218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
11120218822Sdimecho "${ECHO_T}just compiled" >&6
11121218822Sdim  elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11122218822Sdim    # We already found the complete path
11123218822Sdim    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11124218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11125218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11126218822Sdim  elif test "x$target" = "x$host"; then
11127218822Sdim    # We can use an host tool
11128218822Sdim    GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11129218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
11130218822Sdimecho "${ECHO_T}host tool" >&6
11131218822Sdim  else
11132218822Sdim    # We need a cross tool
11133218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11134218822Sdimecho "${ECHO_T}pre-installed" >&6
11135218822Sdim  fi
11136218822Sdimfi
11137130561Sobrien
11138218822Sdimecho "$as_me:$LINENO: checking where to find the target ld" >&5
11139218822Sdimecho $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
11140218822Sdimif test "x${build}" != "x${host}" ; then
11141218822Sdim  if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11142218822Sdim    # We already found the complete path
11143218822Sdim    ac_dir=`dirname $LD_FOR_TARGET`
11144218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11145218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11146218822Sdim  else
11147218822Sdim    # Canadian cross, just use what we found
11148218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11149218822Sdimecho "${ECHO_T}pre-installed" >&6
11150218822Sdim  fi
11151218822Sdimelse
11152218822Sdim  ok=yes
11153218822Sdim  case " ${configdirs} " in
11154218822Sdim    *" ld "*) ;;
11155218822Sdim    *) ok=no ;;
11156218822Sdim  esac
11157130561Sobrien
11158218822Sdim  if test $ok = yes; then
11159218822Sdim    # An in-tree tool is available and we can use it
11160218822Sdim    LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11161218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
11162218822Sdimecho "${ECHO_T}just compiled" >&6
11163218822Sdim  elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11164218822Sdim    # We already found the complete path
11165218822Sdim    ac_dir=`dirname $LD_FOR_TARGET`
11166218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11167218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11168218822Sdim  elif test "x$target" = "x$host"; then
11169218822Sdim    # We can use an host tool
11170218822Sdim    LD_FOR_TARGET='$(LD)'
11171218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
11172218822Sdimecho "${ECHO_T}host tool" >&6
11173218822Sdim  else
11174218822Sdim    # We need a cross tool
11175218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11176218822Sdimecho "${ECHO_T}pre-installed" >&6
11177218822Sdim  fi
11178218822Sdimfi
11179130561Sobrien
11180218822Sdimecho "$as_me:$LINENO: checking where to find the target lipo" >&5
11181218822Sdimecho $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
11182218822Sdimif test "x${build}" != "x${host}" ; then
11183218822Sdim  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11184218822Sdim    # We already found the complete path
11185218822Sdim    ac_dir=`dirname $LIPO_FOR_TARGET`
11186218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11187218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11188218822Sdim  else
11189218822Sdim    # Canadian cross, just use what we found
11190218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11191218822Sdimecho "${ECHO_T}pre-installed" >&6
11192218822Sdim  fi
11193218822Sdimelse
11194218822Sdim  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11195218822Sdim    # We already found the complete path
11196218822Sdim    ac_dir=`dirname $LIPO_FOR_TARGET`
11197218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11198218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11199218822Sdim  elif test "x$target" = "x$host"; then
11200218822Sdim    # We can use an host tool
11201218822Sdim    LIPO_FOR_TARGET='$(LIPO)'
11202218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
11203218822Sdimecho "${ECHO_T}host tool" >&6
11204218822Sdim  else
11205218822Sdim    # We need a cross tool
11206218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11207218822Sdimecho "${ECHO_T}pre-installed" >&6
11208218822Sdim  fi
11209130561Sobrienfi
11210218822Sdim
11211218822Sdimecho "$as_me:$LINENO: checking where to find the target nm" >&5
11212218822Sdimecho $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
11213218822Sdimif test "x${build}" != "x${host}" ; then
11214218822Sdim  if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11215218822Sdim    # We already found the complete path
11216218822Sdim    ac_dir=`dirname $NM_FOR_TARGET`
11217218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11218218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11219218822Sdim  else
11220218822Sdim    # Canadian cross, just use what we found
11221218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11222218822Sdimecho "${ECHO_T}pre-installed" >&6
11223218822Sdim  fi
11224218822Sdimelse
11225218822Sdim  ok=yes
11226218822Sdim  case " ${configdirs} " in
11227218822Sdim    *" binutils "*) ;;
11228218822Sdim    *) ok=no ;;
11229218822Sdim  esac
11230218822Sdim
11231218822Sdim  if test $ok = yes; then
11232218822Sdim    # An in-tree tool is available and we can use it
11233218822Sdim    NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11234218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
11235218822Sdimecho "${ECHO_T}just compiled" >&6
11236218822Sdim  elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11237218822Sdim    # We already found the complete path
11238218822Sdim    ac_dir=`dirname $NM_FOR_TARGET`
11239218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11240218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11241218822Sdim  elif test "x$target" = "x$host"; then
11242218822Sdim    # We can use an host tool
11243218822Sdim    NM_FOR_TARGET='$(NM)'
11244218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
11245218822Sdimecho "${ECHO_T}host tool" >&6
11246218822Sdim  else
11247218822Sdim    # We need a cross tool
11248218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11249218822Sdimecho "${ECHO_T}pre-installed" >&6
11250218822Sdim  fi
11251218822Sdimfi
11252218822Sdim
11253218822Sdimecho "$as_me:$LINENO: checking where to find the target objdump" >&5
11254218822Sdimecho $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
11255218822Sdimif test "x${build}" != "x${host}" ; then
11256218822Sdim  if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11257218822Sdim    # We already found the complete path
11258218822Sdim    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11259218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11260218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11261218822Sdim  else
11262218822Sdim    # Canadian cross, just use what we found
11263218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11264218822Sdimecho "${ECHO_T}pre-installed" >&6
11265218822Sdim  fi
11266218822Sdimelse
11267218822Sdim  ok=yes
11268218822Sdim  case " ${configdirs} " in
11269218822Sdim    *" binutils "*) ;;
11270218822Sdim    *) ok=no ;;
11271218822Sdim  esac
11272218822Sdim
11273218822Sdim  if test $ok = yes; then
11274218822Sdim    # An in-tree tool is available and we can use it
11275218822Sdim    OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11276218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
11277218822Sdimecho "${ECHO_T}just compiled" >&6
11278218822Sdim  elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11279218822Sdim    # We already found the complete path
11280218822Sdim    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11281218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11282218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11283218822Sdim  elif test "x$target" = "x$host"; then
11284218822Sdim    # We can use an host tool
11285218822Sdim    OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11286218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
11287218822Sdimecho "${ECHO_T}host tool" >&6
11288218822Sdim  else
11289218822Sdim    # We need a cross tool
11290218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11291218822Sdimecho "${ECHO_T}pre-installed" >&6
11292218822Sdim  fi
11293218822Sdimfi
11294218822Sdim
11295218822Sdimecho "$as_me:$LINENO: checking where to find the target ranlib" >&5
11296218822Sdimecho $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
11297218822Sdimif test "x${build}" != "x${host}" ; then
11298218822Sdim  if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11299218822Sdim    # We already found the complete path
11300218822Sdim    ac_dir=`dirname $RANLIB_FOR_TARGET`
11301218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11302218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11303218822Sdim  else
11304218822Sdim    # Canadian cross, just use what we found
11305218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11306218822Sdimecho "${ECHO_T}pre-installed" >&6
11307218822Sdim  fi
11308218822Sdimelse
11309218822Sdim  ok=yes
11310218822Sdim  case " ${configdirs} " in
11311218822Sdim    *" binutils "*) ;;
11312218822Sdim    *) ok=no ;;
11313218822Sdim  esac
11314218822Sdim
11315218822Sdim  if test $ok = yes; then
11316218822Sdim    # An in-tree tool is available and we can use it
11317218822Sdim    RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11318218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
11319218822Sdimecho "${ECHO_T}just compiled" >&6
11320218822Sdim  elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11321218822Sdim    # We already found the complete path
11322218822Sdim    ac_dir=`dirname $RANLIB_FOR_TARGET`
11323218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11324218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11325218822Sdim  elif test "x$target" = "x$host"; then
11326218822Sdim    # We can use an host tool
11327218822Sdim    RANLIB_FOR_TARGET='$(RANLIB)'
11328218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
11329218822Sdimecho "${ECHO_T}host tool" >&6
11330218822Sdim  else
11331218822Sdim    # We need a cross tool
11332218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11333218822Sdimecho "${ECHO_T}pre-installed" >&6
11334218822Sdim  fi
11335218822Sdimfi
11336218822Sdim
11337218822Sdimecho "$as_me:$LINENO: checking where to find the target strip" >&5
11338218822Sdimecho $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
11339218822Sdimif test "x${build}" != "x${host}" ; then
11340218822Sdim  if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11341218822Sdim    # We already found the complete path
11342218822Sdim    ac_dir=`dirname $STRIP_FOR_TARGET`
11343218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11344218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11345218822Sdim  else
11346218822Sdim    # Canadian cross, just use what we found
11347218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11348218822Sdimecho "${ECHO_T}pre-installed" >&6
11349218822Sdim  fi
11350218822Sdimelse
11351218822Sdim  ok=yes
11352218822Sdim  case " ${configdirs} " in
11353218822Sdim    *" binutils "*) ;;
11354218822Sdim    *) ok=no ;;
11355218822Sdim  esac
11356218822Sdim
11357218822Sdim  if test $ok = yes; then
11358218822Sdim    # An in-tree tool is available and we can use it
11359218822Sdim    STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11360218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
11361218822Sdimecho "${ECHO_T}just compiled" >&6
11362218822Sdim  elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11363218822Sdim    # We already found the complete path
11364218822Sdim    ac_dir=`dirname $STRIP_FOR_TARGET`
11365218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11366218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11367218822Sdim  elif test "x$target" = "x$host"; then
11368218822Sdim    # We can use an host tool
11369218822Sdim    STRIP_FOR_TARGET='$(STRIP)'
11370218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
11371218822Sdimecho "${ECHO_T}host tool" >&6
11372218822Sdim  else
11373218822Sdim    # We need a cross tool
11374218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11375218822Sdimecho "${ECHO_T}pre-installed" >&6
11376218822Sdim  fi
11377218822Sdimfi
11378218822Sdim
11379218822Sdimecho "$as_me:$LINENO: checking where to find the target windres" >&5
11380218822Sdimecho $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
11381218822Sdimif test "x${build}" != "x${host}" ; then
11382218822Sdim  if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11383218822Sdim    # We already found the complete path
11384218822Sdim    ac_dir=`dirname $WINDRES_FOR_TARGET`
11385218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11386218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11387218822Sdim  else
11388218822Sdim    # Canadian cross, just use what we found
11389218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11390218822Sdimecho "${ECHO_T}pre-installed" >&6
11391218822Sdim  fi
11392218822Sdimelse
11393218822Sdim  ok=yes
11394218822Sdim  case " ${configdirs} " in
11395218822Sdim    *" binutils "*) ;;
11396218822Sdim    *) ok=no ;;
11397218822Sdim  esac
11398218822Sdim
11399218822Sdim  if test $ok = yes; then
11400218822Sdim    # An in-tree tool is available and we can use it
11401218822Sdim    WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
11402218822Sdim    echo "$as_me:$LINENO: result: just compiled" >&5
11403218822Sdimecho "${ECHO_T}just compiled" >&6
11404218822Sdim  elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11405218822Sdim    # We already found the complete path
11406218822Sdim    ac_dir=`dirname $WINDRES_FOR_TARGET`
11407218822Sdim    echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11408218822Sdimecho "${ECHO_T}pre-installed in $ac_dir" >&6
11409218822Sdim  elif test "x$target" = "x$host"; then
11410218822Sdim    # We can use an host tool
11411218822Sdim    WINDRES_FOR_TARGET='$(WINDRES)'
11412218822Sdim    echo "$as_me:$LINENO: result: host tool" >&5
11413218822Sdimecho "${ECHO_T}host tool" >&6
11414218822Sdim  else
11415218822Sdim    # We need a cross tool
11416218822Sdim    echo "$as_me:$LINENO: result: pre-installed" >&5
11417218822Sdimecho "${ECHO_T}pre-installed" >&6
11418218822Sdim  fi
11419218822Sdimfi
11420218822Sdim
11421218822Sdim
11422218822Sdim
11423218822Sdim
11424218822Sdim
11425130561Sobrien# Certain tools may need extra flags.
11426130561SobrienAR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11427130561SobrienRANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11428130561SobrienNM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11429130561Sobrien
11430218822Sdim# When building target libraries, except in a Canadian cross, we use
11431218822Sdim# the same toolchain as the compiler we just built.
11432218822SdimCOMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11433218822SdimCOMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11434218822SdimCOMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11435218822Sdimif test $host = $build; then
11436218822Sdim  case " $configdirs " in
11437218822Sdim    *" gcc "*)
11438218822Sdim      COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11439218822Sdim      COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11440218822Sdim      COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11441218822Sdim      ;;
11442218822Sdim  esac
11443218822Sdimfi
11444218822Sdim
11445218822Sdim
11446218822Sdim
11447218822Sdim
11448218822Sdim
11449218822Sdimecho "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11450218822Sdimecho $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11451130561Sobrien# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11452130561Sobrienif test "${enable_maintainer_mode+set}" = set; then
11453130561Sobrien  enableval="$enable_maintainer_mode"
11454130561Sobrien  USE_MAINTAINER_MODE=$enableval
11455130561Sobrienelse
11456130561Sobrien  USE_MAINTAINER_MODE=no
11457218822Sdimfi;
11458218822Sdimecho "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11459218822Sdimecho "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11460130561Sobrien
11461130561Sobrien
11462130561Sobrienif test "$USE_MAINTAINER_MODE" = yes; then
11463130561Sobrien  MAINTAINER_MODE_TRUE=
11464130561Sobrien  MAINTAINER_MODE_FALSE='#'
11465130561Sobrienelse
11466130561Sobrien  MAINTAINER_MODE_TRUE='#'
11467130561Sobrien  MAINTAINER_MODE_FALSE=
11468218822Sdimfi
11469130561SobrienMAINT=$MAINTAINER_MODE_TRUE
11470130561Sobrien
11471218822Sdim# ---------------------
11472218822Sdim# GCC bootstrap support
11473218822Sdim# ---------------------
11474218822Sdim
11475218822Sdim# Stage specific cflags for build.
11476218822Sdimstage1_cflags="-g"
11477218822Sdimcase $build in
11478218822Sdim  vax-*-*)
11479218822Sdim    case ${GCC} in
11480218822Sdim      yes) stage1_cflags="-g -Wa,-J" ;;
11481218822Sdim      *) stage1_cflags="-g -J" ;;
11482218822Sdim    esac ;;
11483218822Sdimesac
11484218822Sdim
11485218822Sdim# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11486218822Sdimif test "$GCC" = yes; then
11487218822Sdim  saved_CFLAGS="$CFLAGS"
11488218822Sdim
11489218822Sdim  # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11490218822Sdim  CFLAGS="$CFLAGS -fkeep-inline-functions"
11491218822Sdim  echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11492218822Sdimecho $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11493218822Sdim  cat >conftest.$ac_ext <<_ACEOF
11494218822Sdim/* confdefs.h.  */
11495218822Sdim_ACEOF
11496218822Sdimcat confdefs.h >>conftest.$ac_ext
11497218822Sdimcat >>conftest.$ac_ext <<_ACEOF
11498218822Sdim/* end confdefs.h.  */
11499218822Sdim
11500218822Sdim#if (__GNUC__ < 3) \
11501218822Sdim    || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11502218822Sdim			  || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11503218822Sdim#error http://gcc.gnu.org/PR29382
11504218822Sdim#endif
11505218822Sdim
11506218822Sdimint
11507218822Sdimmain ()
11508218822Sdim{
11509218822Sdim
11510218822Sdim  ;
11511218822Sdim  return 0;
11512218822Sdim}
11513218822Sdim_ACEOF
11514218822Sdimrm -f conftest.$ac_objext
11515218822Sdimif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11516218822Sdim  (eval $ac_compile) 2>conftest.er1
11517218822Sdim  ac_status=$?
11518218822Sdim  grep -v '^ *+' conftest.er1 >conftest.err
11519218822Sdim  rm -f conftest.er1
11520218822Sdim  cat conftest.err >&5
11521218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522218822Sdim  (exit $ac_status); } &&
11523218822Sdim	 { ac_try='test -z "$ac_c_werror_flag"
11524218822Sdim			 || test ! -s conftest.err'
11525218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526218822Sdim  (eval $ac_try) 2>&5
11527218822Sdim  ac_status=$?
11528218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529218822Sdim  (exit $ac_status); }; } &&
11530218822Sdim	 { ac_try='test -s conftest.$ac_objext'
11531218822Sdim  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532218822Sdim  (eval $ac_try) 2>&5
11533218822Sdim  ac_status=$?
11534218822Sdim  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535218822Sdim  (exit $ac_status); }; }; then
11536218822Sdim  echo "$as_me:$LINENO: result: yes" >&5
11537218822Sdimecho "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11538218822Sdimelse
11539218822Sdim  echo "$as_me: failed program was:" >&5
11540218822Sdimsed 's/^/| /' conftest.$ac_ext >&5
11541218822Sdim
11542218822Sdimecho "$as_me:$LINENO: result: no" >&5
11543218822Sdimecho "${ECHO_T}no" >&6
11544218822Sdimfi
11545218822Sdimrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11546218822Sdim
11547218822Sdim  CFLAGS="$saved_CFLAGS"
11548218822Sdimfi
11549218822Sdim
11550218822Sdim
11551218822Sdim
11552218822Sdim# Enable --enable-checking in stage1 of the compiler.
11553218822Sdim# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11554218822Sdimif test "${enable_stage1_checking+set}" = set; then
11555218822Sdim  enableval="$enable_stage1_checking"
11556218822Sdim  stage1_checking=--enable-checking=${enable_stage1_checking}
11557218822Sdimelse
11558218822Sdim  if test "x$enable_checking" = xno; then
11559218822Sdim  stage1_checking=--enable-checking
11560218822Sdimelse
11561218822Sdim  stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11562218822Sdimfi
11563218822Sdimfi;
11564218822Sdim
11565218822Sdim
11566218822Sdim# Enable -Werror in bootstrap stage2 and later.
11567218822Sdim# Check whether --enable-werror or --disable-werror was given.
11568218822Sdimif test "${enable_werror+set}" = set; then
11569218822Sdim  enableval="$enable_werror"
11570218822Sdim
11571218822Sdimelse
11572218822Sdim  if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
11573218822Sdim  enable_werror=yes
11574218822Sdimelse
11575218822Sdim  enable_werror=no
11576218822Sdimfi
11577218822Sdimfi;
11578218822Sdimcase ${enable_werror} in
11579218822Sdim  yes) stage2_werror_flag="--enable-werror-always" ;;
11580218822Sdim  *) stage2_werror_flag="" ;;
11581218822Sdimesac
11582218822Sdim
11583218822Sdim
11584218822Sdim# Flags needed to enable html installing and building
11585218822Sdim
11586218822Sdim# Check whether --with-datarootdir or --without-datarootdir was given.
11587218822Sdimif test "${with_datarootdir+set}" = set; then
11588218822Sdim  withval="$with_datarootdir"
11589218822Sdim  datarootdir="\${prefix}/${withval}"
11590218822Sdimelse
11591218822Sdim  datarootdir="\${prefix}/share"
11592218822Sdimfi;
11593218822Sdim
11594218822Sdim
11595218822Sdim# Check whether --with-docdir or --without-docdir was given.
11596218822Sdimif test "${with_docdir+set}" = set; then
11597218822Sdim  withval="$with_docdir"
11598218822Sdim  docdir="\${prefix}/${withval}"
11599218822Sdimelse
11600218822Sdim  docdir="\${datarootdir}/doc"
11601218822Sdimfi;
11602218822Sdim
11603218822Sdim
11604218822Sdim# Check whether --with-pdfdir or --without-pdfdir was given.
11605218822Sdimif test "${with_pdfdir+set}" = set; then
11606218822Sdim  withval="$with_pdfdir"
11607218822Sdim  pdfdir="\${prefix}/${withval}"
11608218822Sdimelse
11609218822Sdim  pdfdir="\${docdir}"
11610218822Sdimfi;
11611218822Sdim
11612218822Sdim
11613218822Sdim# Check whether --with-htmldir or --without-htmldir was given.
11614218822Sdimif test "${with_htmldir+set}" = set; then
11615218822Sdim  withval="$with_htmldir"
11616218822Sdim  htmldir="\${prefix}/${withval}"
11617218822Sdimelse
11618218822Sdim  htmldir="\${docdir}"
11619218822Sdimfi;
11620218822Sdim
11621218822Sdim
11622218822Sdim
11623218822Sdim
11624218822Sdim
11625218822Sdim
11626218822Sdim          ac_config_files="$ac_config_files Makefile"
11627218822Sdimcat >confcache <<\_ACEOF
11628130561Sobrien# This file is a shell script that caches the results of configure
11629130561Sobrien# tests run on this system so they can be shared between configure
11630218822Sdim# scripts and configure runs, see configure's option --config-cache.
11631218822Sdim# It is not useful on other systems.  If it contains results you don't
11632218822Sdim# want to keep, you may remove or edit it.
1163333965Sjdp#
11634218822Sdim# config.status only pays attention to the cache file if you give it
11635218822Sdim# the --recheck option to rerun configure.
1163633965Sjdp#
11637218822Sdim# `ac_cv_env_foo' variables (set or unset) will be overridden when
11638218822Sdim# loading this file, other *unset* `ac_cv_foo' will be assigned the
11639218822Sdim# following values.
11640218822Sdim
11641218822Sdim_ACEOF
11642218822Sdim
11643130561Sobrien# The following way of writing the cache mishandles newlines in values,
11644130561Sobrien# but we know of no workaround that is simple, portable, and efficient.
11645130561Sobrien# So, don't put newlines in cache variables' values.
11646130561Sobrien# Ultrix sh set writes to stderr and can't be redirected directly,
11647130561Sobrien# and sets the high bit in the cache file unless we assign to the vars.
11648218822Sdim{
11649218822Sdim  (set) 2>&1 |
11650218822Sdim    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11651218822Sdim    *ac_space=\ *)
11652218822Sdim      # `set' does not quote correctly, so add quotes (double-quote
11653218822Sdim      # substitution turns \\\\ into \\, and sed turns \\ into \).
11654218822Sdim      sed -n \
11655218822Sdim	"s/'/'\\\\''/g;
11656218822Sdim	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11657218822Sdim      ;;
11658218822Sdim    *)
11659218822Sdim      # `set' quotes correctly as required by POSIX, so do not add quotes.
11660218822Sdim      sed -n \
11661218822Sdim	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11662218822Sdim      ;;
11663218822Sdim    esac;
11664218822Sdim} |
11665218822Sdim  sed '
11666218822Sdim     t clear
11667218822Sdim     : clear
11668218822Sdim     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11669218822Sdim     t end
11670218822Sdim     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11671218822Sdim     : end' >>confcache
11672218822Sdimif diff $cache_file confcache >/dev/null 2>&1; then :; else
11673130561Sobrien  if test -w $cache_file; then
11674218822Sdim    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11675218822Sdim    cat confcache >$cache_file
11676130561Sobrien  else
11677130561Sobrien    echo "not updating unwritable cache $cache_file"
11678130561Sobrien  fi
11679130561Sobrienfi
11680130561Sobrienrm -f confcache
1168133965Sjdp
11682130561Sobrientest "x$prefix" = xNONE && prefix=$ac_default_prefix
11683130561Sobrien# Let make expand exec_prefix.
11684130561Sobrientest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11685130561Sobrien
11686218822Sdim# VPATH may cause trouble with some makes, so we remove $(srcdir),
11687218822Sdim# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11688218822Sdim# trailing colons and then remove the whole line if VPATH becomes empty
11689218822Sdim# (actually we leave an empty line to preserve line numbers).
11690130561Sobrienif test "x$srcdir" = x.; then
11691218822Sdim  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11692218822Sdims/:*\$(srcdir):*/:/;
11693218822Sdims/:*\${srcdir}:*/:/;
11694218822Sdims/:*@srcdir@:*/:/;
11695218822Sdims/^\([^=]*=[	 ]*\):*/\1/;
11696218822Sdims/:*$//;
11697218822Sdims/^[^=]*=[	 ]*$//;
11698218822Sdim}'
11699130561Sobrienfi
11700130561Sobrien
11701130561Sobrien# Transform confdefs.h into DEFS.
11702130561Sobrien# Protect against shell expansion while executing Makefile rules.
11703130561Sobrien# Protect against Makefile macro expansion.
11704218822Sdim#
11705218822Sdim# If the first sed substitution is executed (which looks for macros that
11706218822Sdim# take arguments), then we branch to the quote section.  Otherwise,
11707218822Sdim# look for a macro that doesn't take arguments.
11708218822Sdimcat >confdef2opt.sed <<\_ACEOF
11709218822Sdimt clear
11710218822Sdim: clear
11711218822Sdims,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
11712218822Sdimt quote
11713218822Sdims,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
11714218822Sdimt quote
11715218822Sdimd
11716218822Sdim: quote
11717218822Sdims,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
11718218822Sdims,\[,\\&,g
11719218822Sdims,\],\\&,g
11720218822Sdims,\$,$$,g
11721218822Sdimp
11722218822Sdim_ACEOF
11723218822Sdim# We use echo to avoid assuming a particular line-breaking character.
11724218822Sdim# The extra dot is to prevent the shell from consuming trailing
11725218822Sdim# line-breaks from the sub-command output.  A line-break within
11726218822Sdim# single-quotes doesn't work because, if this script is created in a
11727218822Sdim# platform that uses two characters for line-breaks (e.g., DOS), tr
11728218822Sdim# would break.
11729218822Sdimac_LF_and_DOT=`echo; echo .`
11730218822SdimDEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11731218822Sdimrm -f confdef2opt.sed
11732130561Sobrien
11733130561Sobrien
11734218822Sdimac_libobjs=
11735218822Sdimac_ltlibobjs=
11736218822Sdimfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11737218822Sdim  # 1. Remove the extension, and $U if already installed.
11738218822Sdim  ac_i=`echo "$ac_i" |
11739218822Sdim	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11740218822Sdim  # 2. Add them.
11741218822Sdim  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11742218822Sdim  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11743218822Sdimdone
11744218822SdimLIBOBJS=$ac_libobjs
11745218822Sdim
11746218822SdimLTLIBOBJS=$ac_ltlibobjs
11747218822Sdim
11748218822Sdim
11749218822Sdim
11750130561Sobrien: ${CONFIG_STATUS=./config.status}
11751218822Sdimac_clean_files_save=$ac_clean_files
11752218822Sdimac_clean_files="$ac_clean_files $CONFIG_STATUS"
11753218822Sdim{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11754218822Sdimecho "$as_me: creating $CONFIG_STATUS" >&6;}
11755218822Sdimcat >$CONFIG_STATUS <<_ACEOF
11756218822Sdim#! $SHELL
11757218822Sdim# Generated by $as_me.
11758130561Sobrien# Run this file to recreate the current configuration.
11759130561Sobrien# Compiler output produced by configure, useful for debugging
11760218822Sdim# configure, is in config.log if it exists.
11761130561Sobrien
11762218822Sdimdebug=false
11763218822Sdimac_cs_recheck=false
11764218822Sdimac_cs_silent=false
11765218822SdimSHELL=\${CONFIG_SHELL-$SHELL}
11766218822Sdim_ACEOF
11767218822Sdim
11768218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
11769218822Sdim## --------------------- ##
11770218822Sdim## M4sh Initialization.  ##
11771218822Sdim## --------------------- ##
11772218822Sdim
11773218822Sdim# Be Bourne compatible
11774218822Sdimif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11775218822Sdim  emulate sh
11776218822Sdim  NULLCMD=:
11777218822Sdim  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11778218822Sdim  # is contrary to our usage.  Disable this feature.
11779218822Sdim  alias -g '${1+"$@"}'='"$@"'
11780218822Sdimelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11781218822Sdim  set -o posix
11782218822Sdimfi
11783218822SdimDUALCASE=1; export DUALCASE # for MKS sh
11784218822Sdim
11785218822Sdim# Support unset when possible.
11786218822Sdimif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11787218822Sdim  as_unset=unset
11788218822Sdimelse
11789218822Sdim  as_unset=false
11790218822Sdimfi
11791218822Sdim
11792218822Sdim
11793218822Sdim# Work around bugs in pre-3.0 UWIN ksh.
11794218822Sdim$as_unset ENV MAIL MAILPATH
11795218822SdimPS1='$ '
11796218822SdimPS2='> '
11797218822SdimPS4='+ '
11798218822Sdim
11799218822Sdim# NLS nuisances.
11800218822Sdimfor as_var in \
11801218822Sdim  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11802218822Sdim  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11803218822Sdim  LC_TELEPHONE LC_TIME
11804130561Sobriendo
11805218822Sdim  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11806218822Sdim    eval $as_var=C; export $as_var
11807218822Sdim  else
11808218822Sdim    $as_unset $as_var
11809218822Sdim  fi
11810218822Sdimdone
11811218822Sdim
11812218822Sdim# Required to use basename.
11813218822Sdimif expr a : '\(a\)' >/dev/null 2>&1; then
11814218822Sdim  as_expr=expr
11815218822Sdimelse
11816218822Sdim  as_expr=false
11817218822Sdimfi
11818218822Sdim
11819218822Sdimif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11820218822Sdim  as_basename=basename
11821218822Sdimelse
11822218822Sdim  as_basename=false
11823218822Sdimfi
11824218822Sdim
11825218822Sdim
11826218822Sdim# Name of the executable.
11827218822Sdimas_me=`$as_basename "$0" ||
11828218822Sdim$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11829218822Sdim	 X"$0" : 'X\(//\)$' \| \
11830218822Sdim	 X"$0" : 'X\(/\)$' \| \
11831218822Sdim	 .     : '\(.\)' 2>/dev/null ||
11832218822Sdimecho X/"$0" |
11833218822Sdim    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11834218822Sdim  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
11835218822Sdim  	  /^X\/\(\/\).*/{ s//\1/; q; }
11836218822Sdim  	  s/.*/./; q'`
11837218822Sdim
11838218822Sdim
11839218822Sdim# PATH needs CR, and LINENO needs CR and PATH.
11840218822Sdim# Avoid depending upon Character Ranges.
11841218822Sdimas_cr_letters='abcdefghijklmnopqrstuvwxyz'
11842218822Sdimas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11843218822Sdimas_cr_Letters=$as_cr_letters$as_cr_LETTERS
11844218822Sdimas_cr_digits='0123456789'
11845218822Sdimas_cr_alnum=$as_cr_Letters$as_cr_digits
11846218822Sdim
11847218822Sdim# The user is always right.
11848218822Sdimif test "${PATH_SEPARATOR+set}" != set; then
11849218822Sdim  echo "#! /bin/sh" >conf$$.sh
11850218822Sdim  echo  "exit 0"   >>conf$$.sh
11851218822Sdim  chmod +x conf$$.sh
11852218822Sdim  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11853218822Sdim    PATH_SEPARATOR=';'
11854218822Sdim  else
11855218822Sdim    PATH_SEPARATOR=:
11856218822Sdim  fi
11857218822Sdim  rm -f conf$$.sh
11858218822Sdimfi
11859218822Sdim
11860218822Sdim
11861218822Sdim  as_lineno_1=$LINENO
11862218822Sdim  as_lineno_2=$LINENO
11863218822Sdim  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11864218822Sdim  test "x$as_lineno_1" != "x$as_lineno_2" &&
11865218822Sdim  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11866218822Sdim  # Find who we are.  Look in the path if we contain no path at all
11867218822Sdim  # relative or not.
11868218822Sdim  case $0 in
11869218822Sdim    *[\\/]* ) as_myself=$0 ;;
11870218822Sdim    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871218822Sdimfor as_dir in $PATH
11872218822Sdimdo
11873218822Sdim  IFS=$as_save_IFS
11874218822Sdim  test -z "$as_dir" && as_dir=.
11875218822Sdim  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11876218822Sdimdone
11877218822Sdim
11878218822Sdim       ;;
11879218822Sdim  esac
11880218822Sdim  # We did not find ourselves, most probably we were run as `sh COMMAND'
11881218822Sdim  # in which case we are not to be found in the path.
11882218822Sdim  if test "x$as_myself" = x; then
11883218822Sdim    as_myself=$0
11884218822Sdim  fi
11885218822Sdim  if test ! -f "$as_myself"; then
11886218822Sdim    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11887218822Sdimecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11888218822Sdim   { (exit 1); exit 1; }; }
11889218822Sdim  fi
11890218822Sdim  case $CONFIG_SHELL in
11891218822Sdim  '')
11892218822Sdim    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893218822Sdimfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11894218822Sdimdo
11895218822Sdim  IFS=$as_save_IFS
11896218822Sdim  test -z "$as_dir" && as_dir=.
11897218822Sdim  for as_base in sh bash ksh sh5; do
11898218822Sdim	 case $as_dir in
11899218822Sdim	 /*)
11900218822Sdim	   if ("$as_dir/$as_base" -c '
11901218822Sdim  as_lineno_1=$LINENO
11902218822Sdim  as_lineno_2=$LINENO
11903218822Sdim  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11904218822Sdim  test "x$as_lineno_1" != "x$as_lineno_2" &&
11905218822Sdim  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11906218822Sdim	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11907218822Sdim	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11908218822Sdim	     CONFIG_SHELL=$as_dir/$as_base
11909218822Sdim	     export CONFIG_SHELL
11910218822Sdim	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11911218822Sdim	   fi;;
11912218822Sdim	 esac
11913218822Sdim       done
11914218822Sdimdone
11915218822Sdim;;
11916218822Sdim  esac
11917218822Sdim
11918218822Sdim  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11919218822Sdim  # uniformly replaced by the line number.  The first 'sed' inserts a
11920218822Sdim  # line-number line before each line; the second 'sed' does the real
11921218822Sdim  # work.  The second script uses 'N' to pair each line-number line
11922218822Sdim  # with the numbered line, and appends trailing '-' during
11923218822Sdim  # substitution so that $LINENO is not a special case at line end.
11924218822Sdim  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11925218822Sdim  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11926218822Sdim  sed '=' <$as_myself |
11927218822Sdim    sed '
11928218822Sdim      N
11929218822Sdim      s,$,-,
11930218822Sdim      : loop
11931218822Sdim      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11932218822Sdim      t loop
11933218822Sdim      s,-$,,
11934218822Sdim      s,^['$as_cr_digits']*\n,,
11935218822Sdim    ' >$as_me.lineno &&
11936218822Sdim  chmod +x $as_me.lineno ||
11937218822Sdim    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11938218822Sdimecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11939218822Sdim   { (exit 1); exit 1; }; }
11940218822Sdim
11941218822Sdim  # Don't try to exec as it changes $[0], causing all sort of problems
11942218822Sdim  # (the dirname of $[0] is not the place where we might find the
11943218822Sdim  # original and so on.  Autoconf is especially sensible to this).
11944218822Sdim  . ./$as_me.lineno
11945218822Sdim  # Exit status is that of the last command.
11946218822Sdim  exit
11947218822Sdim}
11948218822Sdim
11949218822Sdim
11950218822Sdimcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11951218822Sdim  *c*,-n*) ECHO_N= ECHO_C='
11952218822Sdim' ECHO_T='	' ;;
11953218822Sdim  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11954218822Sdim  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11955218822Sdimesac
11956218822Sdim
11957218822Sdimif expr a : '\(a\)' >/dev/null 2>&1; then
11958218822Sdim  as_expr=expr
11959218822Sdimelse
11960218822Sdim  as_expr=false
11961218822Sdimfi
11962218822Sdim
11963218822Sdimrm -f conf$$ conf$$.exe conf$$.file
11964218822Sdimecho >conf$$.file
11965218822Sdimif ln -s conf$$.file conf$$ 2>/dev/null; then
11966218822Sdim  # We could just check for DJGPP; but this test a) works b) is more generic
11967218822Sdim  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11968218822Sdim  if test -f conf$$.exe; then
11969218822Sdim    # Don't use ln at all; we don't have any links
11970218822Sdim    as_ln_s='cp -p'
11971218822Sdim  else
11972218822Sdim    as_ln_s='ln -s'
11973218822Sdim  fi
11974218822Sdimelif ln conf$$.file conf$$ 2>/dev/null; then
11975218822Sdim  as_ln_s=ln
11976218822Sdimelse
11977218822Sdim  as_ln_s='cp -p'
11978218822Sdimfi
11979218822Sdimrm -f conf$$ conf$$.exe conf$$.file
11980218822Sdim
11981218822Sdimif mkdir -p . 2>/dev/null; then
11982218822Sdim  as_mkdir_p=:
11983218822Sdimelse
11984218822Sdim  test -d ./-p && rmdir ./-p
11985218822Sdim  as_mkdir_p=false
11986218822Sdimfi
11987218822Sdim
11988218822Sdimas_executable_p="test -f"
11989218822Sdim
11990218822Sdim# Sed expression to map a string onto a valid CPP name.
11991218822Sdimas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11992218822Sdim
11993218822Sdim# Sed expression to map a string onto a valid variable name.
11994218822Sdimas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11995218822Sdim
11996218822Sdim
11997218822Sdim# IFS
11998218822Sdim# We need space, tab and new line, in precisely that order.
11999218822Sdimas_nl='
12000218822Sdim'
12001218822SdimIFS=" 	$as_nl"
12002218822Sdim
12003218822Sdim# CDPATH.
12004218822Sdim$as_unset CDPATH
12005218822Sdim
12006218822Sdimexec 6>&1
12007218822Sdim
12008218822Sdim# Open the log real soon, to keep \$[0] and so on meaningful, and to
12009218822Sdim# report actual input values of CONFIG_FILES etc. instead of their
12010218822Sdim# values after options handling.  Logging --version etc. is OK.
12011218822Sdimexec 5>>config.log
12012218822Sdim{
12013218822Sdim  echo
12014218822Sdim  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12015218822Sdim## Running $as_me. ##
12016218822Sdim_ASBOX
12017218822Sdim} >&5
12018218822Sdimcat >&5 <<_CSEOF
12019218822Sdim
12020218822SdimThis file was extended by $as_me, which was
12021218822Sdimgenerated by GNU Autoconf 2.59.  Invocation command line was
12022218822Sdim
12023218822Sdim  CONFIG_FILES    = $CONFIG_FILES
12024218822Sdim  CONFIG_HEADERS  = $CONFIG_HEADERS
12025218822Sdim  CONFIG_LINKS    = $CONFIG_LINKS
12026218822Sdim  CONFIG_COMMANDS = $CONFIG_COMMANDS
12027218822Sdim  $ $0 $@
12028218822Sdim
12029218822Sdim_CSEOF
12030218822Sdimecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12031218822Sdimecho >&5
12032218822Sdim_ACEOF
12033218822Sdim
12034218822Sdim# Files that config.status was made for.
12035218822Sdimif test -n "$ac_config_files"; then
12036218822Sdim  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12037218822Sdimfi
12038218822Sdim
12039218822Sdimif test -n "$ac_config_headers"; then
12040218822Sdim  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12041218822Sdimfi
12042218822Sdim
12043218822Sdimif test -n "$ac_config_links"; then
12044218822Sdim  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12045218822Sdimfi
12046218822Sdim
12047218822Sdimif test -n "$ac_config_commands"; then
12048218822Sdim  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12049218822Sdimfi
12050218822Sdim
12051218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
12052218822Sdim
12053218822Sdimac_cs_usage="\
12054218822Sdim\`$as_me' instantiates files from templates according to the
12055218822Sdimcurrent configuration.
12056218822Sdim
12057218822SdimUsage: $0 [OPTIONS] [FILE]...
12058218822Sdim
12059218822Sdim  -h, --help       print this help, then exit
12060218822Sdim  -V, --version    print version number, then exit
12061218822Sdim  -q, --quiet      do not print progress messages
12062218822Sdim  -d, --debug      don't remove temporary files
12063218822Sdim      --recheck    update $as_me by reconfiguring in the same conditions
12064218822Sdim  --file=FILE[:TEMPLATE]
12065218822Sdim		   instantiate the configuration file FILE
12066218822Sdim
12067218822SdimConfiguration files:
12068218822Sdim$config_files
12069218822Sdim
12070218822SdimReport bugs to <bug-autoconf@gnu.org>."
12071218822Sdim_ACEOF
12072218822Sdim
12073218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
12074218822Sdimac_cs_version="\\
12075218822Sdimconfig.status
12076218822Sdimconfigured by $0, generated by GNU Autoconf 2.59,
12077218822Sdim  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12078218822Sdim
12079218822SdimCopyright (C) 2003 Free Software Foundation, Inc.
12080218822SdimThis config.status script is free software; the Free Software Foundation
12081218822Sdimgives unlimited permission to copy, distribute and modify it."
12082218822Sdimsrcdir=$srcdir
12083218822SdimINSTALL="$INSTALL"
12084218822Sdim_ACEOF
12085218822Sdim
12086218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
12087218822Sdim# If no file are specified by the user, then we need to provide default
12088218822Sdim# value.  By we need to know if files were specified by the user.
12089218822Sdimac_need_defaults=:
12090218822Sdimwhile test $# != 0
12091218822Sdimdo
12092218822Sdim  case $1 in
12093218822Sdim  --*=*)
12094218822Sdim    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12095218822Sdim    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12096218822Sdim    ac_shift=:
12097218822Sdim    ;;
12098218822Sdim  -*)
12099218822Sdim    ac_option=$1
12100218822Sdim    ac_optarg=$2
12101218822Sdim    ac_shift=shift
12102218822Sdim    ;;
12103218822Sdim  *) # This is not an option, so the user has probably given explicit
12104218822Sdim     # arguments.
12105218822Sdim     ac_option=$1
12106218822Sdim     ac_need_defaults=false;;
12107218822Sdim  esac
12108218822Sdim
12109218822Sdim  case $ac_option in
12110218822Sdim  # Handling of the options.
12111218822Sdim_ACEOF
12112218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
12113130561Sobrien  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12114218822Sdim    ac_cs_recheck=: ;;
12115218822Sdim  --version | --vers* | -V )
12116218822Sdim    echo "$ac_cs_version"; exit 0 ;;
12117218822Sdim  --he | --h)
12118218822Sdim    # Conflict between --help and --header
12119218822Sdim    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12120218822SdimTry \`$0 --help' for more information." >&5
12121218822Sdimecho "$as_me: error: ambiguous option: $1
12122218822SdimTry \`$0 --help' for more information." >&2;}
12123218822Sdim   { (exit 1); exit 1; }; };;
12124218822Sdim  --help | --hel | -h )
12125218822Sdim    echo "$ac_cs_usage"; exit 0 ;;
12126218822Sdim  --debug | --d* | -d )
12127218822Sdim    debug=: ;;
12128218822Sdim  --file | --fil | --fi | --f )
12129218822Sdim    $ac_shift
12130218822Sdim    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12131218822Sdim    ac_need_defaults=false;;
12132218822Sdim  --header | --heade | --head | --hea )
12133218822Sdim    $ac_shift
12134218822Sdim    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12135218822Sdim    ac_need_defaults=false;;
12136218822Sdim  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12137218822Sdim  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12138218822Sdim    ac_cs_silent=: ;;
12139218822Sdim
12140218822Sdim  # This is an error.
12141218822Sdim  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12142218822SdimTry \`$0 --help' for more information." >&5
12143218822Sdimecho "$as_me: error: unrecognized option: $1
12144218822SdimTry \`$0 --help' for more information." >&2;}
12145218822Sdim   { (exit 1); exit 1; }; } ;;
12146218822Sdim
12147218822Sdim  *) ac_config_targets="$ac_config_targets $1" ;;
12148218822Sdim
12149130561Sobrien  esac
12150218822Sdim  shift
12151130561Sobriendone
12152130561Sobrien
12153218822Sdimac_configure_extra_args=
12154130561Sobrien
12155218822Sdimif $ac_cs_silent; then
12156218822Sdim  exec 6>/dev/null
12157218822Sdim  ac_configure_extra_args="$ac_configure_extra_args --silent"
12158218822Sdimfi
12159130561Sobrien
12160218822Sdim_ACEOF
12161218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
12162218822Sdimif \$ac_cs_recheck; then
12163218822Sdim  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12164218822Sdim  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12165218822Sdimfi
12166218822Sdim
12167218822Sdim_ACEOF
12168218822Sdim
12169218822Sdim
12170218822Sdim
12171218822Sdim
12172218822Sdim
12173218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
12174218822Sdimfor ac_config_target in $ac_config_targets
12175218822Sdimdo
12176218822Sdim  case "$ac_config_target" in
12177218822Sdim  # Handling of arguments.
12178218822Sdim  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12179218822Sdim  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12180218822Sdimecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
12181218822Sdim   { (exit 1); exit 1; }; };;
12182218822Sdim  esac
12183218822Sdimdone
12184218822Sdim
12185218822Sdim# If the user did not use the arguments to specify the items to instantiate,
12186218822Sdim# then the envvar interface is used.  Set only those that are not.
12187218822Sdim# We use the long form for the default assignment because of an extremely
12188218822Sdim# bizarre bug on SunOS 4.1.3.
12189218822Sdimif $ac_need_defaults; then
12190218822Sdim  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12191218822Sdimfi
12192218822Sdim
12193218822Sdim# Have a temporary directory for convenience.  Make it in the build tree
12194218822Sdim# simply because there is no reason to put it here, and in addition,
12195218822Sdim# creating and moving files from /tmp can sometimes cause problems.
12196218822Sdim# Create a temporary directory, and hook for its removal unless debugging.
12197218822Sdim$debug ||
12198218822Sdim{
12199218822Sdim  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12200218822Sdim  trap '{ (exit 1); exit 1; }' 1 2 13 15
12201218822Sdim}
12202218822Sdim
12203218822Sdim# Create a (secure) tmp directory for tmp files.
12204218822Sdim
12205218822Sdim{
12206218822Sdim  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12207218822Sdim  test -n "$tmp" && test -d "$tmp"
12208218822Sdim}  ||
12209218822Sdim{
12210218822Sdim  tmp=./confstat$$-$RANDOM
12211218822Sdim  (umask 077 && mkdir $tmp)
12212218822Sdim} ||
12213218822Sdim{
12214218822Sdim   echo "$me: cannot create a temporary directory in ." >&2
12215218822Sdim   { (exit 1); exit 1; }
12216218822Sdim}
12217218822Sdim
12218218822Sdim_ACEOF
12219218822Sdim
12220218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
12221218822Sdim
12222218822Sdim#
12223218822Sdim# CONFIG_FILES section.
12224218822Sdim#
12225218822Sdim
12226218822Sdim# No need to generate the scripts if there are no CONFIG_FILES.
12227218822Sdim# This happens for instance when ./config.status config.h
12228218822Sdimif test -n "\$CONFIG_FILES"; then
12229218822Sdim  # Protect against being on the right side of a sed subst in config.status.
12230218822Sdim  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12231218822Sdim   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12232218822Sdims,@SHELL@,$SHELL,;t t
12233218822Sdims,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12234218822Sdims,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12235218822Sdims,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12236218822Sdims,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12237218822Sdims,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12238218822Sdims,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12239218822Sdims,@exec_prefix@,$exec_prefix,;t t
12240218822Sdims,@prefix@,$prefix,;t t
12241218822Sdims,@program_transform_name@,$program_transform_name,;t t
12242218822Sdims,@bindir@,$bindir,;t t
12243218822Sdims,@sbindir@,$sbindir,;t t
12244218822Sdims,@libexecdir@,$libexecdir,;t t
12245218822Sdims,@datadir@,$datadir,;t t
12246218822Sdims,@sysconfdir@,$sysconfdir,;t t
12247218822Sdims,@sharedstatedir@,$sharedstatedir,;t t
12248218822Sdims,@localstatedir@,$localstatedir,;t t
12249218822Sdims,@libdir@,$libdir,;t t
12250218822Sdims,@includedir@,$includedir,;t t
12251218822Sdims,@oldincludedir@,$oldincludedir,;t t
12252218822Sdims,@infodir@,$infodir,;t t
12253218822Sdims,@mandir@,$mandir,;t t
12254218822Sdims,@build_alias@,$build_alias,;t t
12255218822Sdims,@host_alias@,$host_alias,;t t
12256218822Sdims,@target_alias@,$target_alias,;t t
12257218822Sdims,@DEFS@,$DEFS,;t t
12258218822Sdims,@ECHO_C@,$ECHO_C,;t t
12259218822Sdims,@ECHO_N@,$ECHO_N,;t t
12260218822Sdims,@ECHO_T@,$ECHO_T,;t t
12261218822Sdims,@LIBS@,$LIBS,;t t
12262218822Sdims,@build@,$build,;t t
12263218822Sdims,@build_cpu@,$build_cpu,;t t
12264218822Sdims,@build_vendor@,$build_vendor,;t t
12265218822Sdims,@build_os@,$build_os,;t t
12266218822Sdims,@build_noncanonical@,$build_noncanonical,;t t
12267218822Sdims,@host_noncanonical@,$host_noncanonical,;t t
12268218822Sdims,@target_noncanonical@,$target_noncanonical,;t t
12269218822Sdims,@host@,$host,;t t
12270218822Sdims,@host_cpu@,$host_cpu,;t t
12271218822Sdims,@host_vendor@,$host_vendor,;t t
12272218822Sdims,@host_os@,$host_os,;t t
12273218822Sdims,@target@,$target,;t t
12274218822Sdims,@target_cpu@,$target_cpu,;t t
12275218822Sdims,@target_vendor@,$target_vendor,;t t
12276218822Sdims,@target_os@,$target_os,;t t
12277218822Sdims,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12278218822Sdims,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12279218822Sdims,@INSTALL_DATA@,$INSTALL_DATA,;t t
12280218822Sdims,@LN@,$LN,;t t
12281218822Sdims,@LN_S@,$LN_S,;t t
12282218822Sdims,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12283218822Sdims,@build_libsubdir@,$build_libsubdir,;t t
12284218822Sdims,@build_subdir@,$build_subdir,;t t
12285218822Sdims,@host_subdir@,$host_subdir,;t t
12286218822Sdims,@target_subdir@,$target_subdir,;t t
12287218822Sdims,@CC@,$CC,;t t
12288218822Sdims,@CFLAGS@,$CFLAGS,;t t
12289218822Sdims,@LDFLAGS@,$LDFLAGS,;t t
12290218822Sdims,@CPPFLAGS@,$CPPFLAGS,;t t
12291218822Sdims,@ac_ct_CC@,$ac_ct_CC,;t t
12292218822Sdims,@EXEEXT@,$EXEEXT,;t t
12293218822Sdims,@OBJEXT@,$OBJEXT,;t t
12294218822Sdims,@CXX@,$CXX,;t t
12295218822Sdims,@CXXFLAGS@,$CXXFLAGS,;t t
12296218822Sdims,@ac_ct_CXX@,$ac_ct_CXX,;t t
12297218822Sdims,@GNATBIND@,$GNATBIND,;t t
12298218822Sdims,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12299218822Sdims,@GNATMAKE@,$GNATMAKE,;t t
12300218822Sdims,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12301218822Sdims,@do_compare@,$do_compare,;t t
12302218822Sdims,@gmplibs@,$gmplibs,;t t
12303218822Sdims,@gmpinc@,$gmpinc,;t t
12304218822Sdims,@stage1_languages@,$stage1_languages,;t t
12305218822Sdims,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12306218822Sdims,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12307218822Sdims,@tooldir@,$tooldir,;t t
12308218822Sdims,@build_tooldir@,$build_tooldir,;t t
12309218822Sdims,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12310218822Sdims,@GDB_TK@,$GDB_TK,;t t
12311218822Sdims,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12312218822Sdims,@build_configargs@,$build_configargs,;t t
12313218822Sdims,@build_configdirs@,$build_configdirs,;t t
12314218822Sdims,@host_configargs@,$host_configargs,;t t
12315218822Sdims,@configdirs@,$configdirs,;t t
12316218822Sdims,@target_configargs@,$target_configargs,;t t
12317218822Sdims,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12318218822Sdims,@config_shell@,$config_shell,;t t
12319218822Sdims,@YACC@,$YACC,;t t
12320218822Sdims,@BISON@,$BISON,;t t
12321218822Sdims,@M4@,$M4,;t t
12322218822Sdims,@LEX@,$LEX,;t t
12323218822Sdims,@FLEX@,$FLEX,;t t
12324218822Sdims,@MAKEINFO@,$MAKEINFO,;t t
12325218822Sdims,@EXPECT@,$EXPECT,;t t
12326218822Sdims,@RUNTEST@,$RUNTEST,;t t
12327218822Sdims,@AR@,$AR,;t t
12328218822Sdims,@AS@,$AS,;t t
12329218822Sdims,@DLLTOOL@,$DLLTOOL,;t t
12330218822Sdims,@LD@,$LD,;t t
12331218822Sdims,@LIPO@,$LIPO,;t t
12332218822Sdims,@NM@,$NM,;t t
12333218822Sdims,@RANLIB@,$RANLIB,;t t
12334218822Sdims,@STRIP@,$STRIP,;t t
12335218822Sdims,@WINDRES@,$WINDRES,;t t
12336218822Sdims,@OBJCOPY@,$OBJCOPY,;t t
12337218822Sdims,@OBJDUMP@,$OBJDUMP,;t t
12338218822Sdims,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12339218822Sdims,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12340218822Sdims,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12341218822Sdims,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12342218822Sdims,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12343218822Sdims,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12344218822Sdims,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12345218822Sdims,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12346218822Sdims,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12347218822Sdims,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12348218822Sdims,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12349218822Sdims,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12350218822Sdims,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12351218822Sdims,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12352218822Sdims,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12353218822Sdims,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12354218822Sdims,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12355218822Sdims,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12356218822Sdims,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12357218822Sdims,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12358218822Sdims,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12359218822Sdims,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12360218822Sdims,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12361218822Sdims,@MAINT@,$MAINT,;t t
12362218822Sdims,@stage1_cflags@,$stage1_cflags,;t t
12363218822Sdims,@stage1_checking@,$stage1_checking,;t t
12364218822Sdims,@stage2_werror_flag@,$stage2_werror_flag,;t t
12365218822Sdims,@datarootdir@,$datarootdir,;t t
12366218822Sdims,@docdir@,$docdir,;t t
12367218822Sdims,@pdfdir@,$pdfdir,;t t
12368218822Sdims,@htmldir@,$htmldir,;t t
12369218822Sdims,@LIBOBJS@,$LIBOBJS,;t t
12370218822Sdims,@LTLIBOBJS@,$LTLIBOBJS,;t t
12371130561Sobrien/@serialization_dependencies@/r $serialization_dependencies
12372218822Sdims,@serialization_dependencies@,,;t t
12373130561Sobrien/@host_makefile_frag@/r $host_makefile_frag
12374218822Sdims,@host_makefile_frag@,,;t t
12375130561Sobrien/@target_makefile_frag@/r $target_makefile_frag
12376218822Sdims,@target_makefile_frag@,,;t t
12377130561Sobrien/@alphaieee_frag@/r $alphaieee_frag
12378218822Sdims,@alphaieee_frag@,,;t t
12379130561Sobrien/@ospace_frag@/r $ospace_frag
12380218822Sdims,@ospace_frag@,,;t t
12381130561SobrienCEOF
12382130561Sobrien
12383218822Sdim_ACEOF
12384130561Sobrien
12385218822Sdim  cat >>$CONFIG_STATUS <<\_ACEOF
12386218822Sdim  # Split the substitutions into bite-sized pieces for seds with
12387218822Sdim  # small command number limits, like on Digital OSF/1 and HP-UX.
12388218822Sdim  ac_max_sed_lines=48
12389218822Sdim  ac_sed_frag=1 # Number of current file.
12390218822Sdim  ac_beg=1 # First line for current file.
12391218822Sdim  ac_end=$ac_max_sed_lines # Line after last line for current file.
12392218822Sdim  ac_more_lines=:
12393218822Sdim  ac_sed_cmds=
12394218822Sdim  while $ac_more_lines; do
12395218822Sdim    if test $ac_beg -gt 1; then
12396218822Sdim      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12397130561Sobrien    else
12398218822Sdim      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12399130561Sobrien    fi
12400218822Sdim    if test ! -s $tmp/subs.frag; then
12401218822Sdim      ac_more_lines=false
12402218822Sdim    else
12403218822Sdim      # The purpose of the label and of the branching condition is to
12404218822Sdim      # speed up the sed processing (if there are no `@' at all, there
12405218822Sdim      # is no need to browse any of the substitutions).
12406218822Sdim      # These are the two extra sed commands mentioned above.
12407218822Sdim      (echo ':t
12408218822Sdim  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12409218822Sdim      if test -z "$ac_sed_cmds"; then
12410218822Sdim	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12411218822Sdim      else
12412218822Sdim	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12413218822Sdim      fi
12414218822Sdim      ac_sed_frag=`expr $ac_sed_frag + 1`
12415218822Sdim      ac_beg=$ac_end
12416218822Sdim      ac_end=`expr $ac_end + $ac_max_sed_lines`
12417218822Sdim    fi
12418218822Sdim  done
12419218822Sdim  if test -z "$ac_sed_cmds"; then
12420218822Sdim    ac_sed_cmds=cat
12421130561Sobrien  fi
12422218822Sdimfi # test -n "$CONFIG_FILES"
12423130561Sobrien
12424218822Sdim_ACEOF
12425218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
12426218822Sdimfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12427130561Sobrien  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12428218822Sdim  case $ac_file in
12429218822Sdim  - | *:- | *:-:* ) # input from stdin
12430218822Sdim	cat >$tmp/stdin
12431218822Sdim	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12432218822Sdim	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12433218822Sdim  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12434218822Sdim	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12435218822Sdim  * )   ac_file_in=$ac_file.in ;;
12436130561Sobrien  esac
12437130561Sobrien
12438218822Sdim  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12439218822Sdim  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12440218822Sdim$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12441218822Sdim	 X"$ac_file" : 'X\(//\)[^/]' \| \
12442218822Sdim	 X"$ac_file" : 'X\(//\)$' \| \
12443218822Sdim	 X"$ac_file" : 'X\(/\)' \| \
12444218822Sdim	 .     : '\(.\)' 2>/dev/null ||
12445218822Sdimecho X"$ac_file" |
12446218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12447218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12448218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
12449218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
12450218822Sdim  	  s/.*/./; q'`
12451218822Sdim  { if $as_mkdir_p; then
12452218822Sdim    mkdir -p "$ac_dir"
12453130561Sobrien  else
12454218822Sdim    as_dir="$ac_dir"
12455218822Sdim    as_dirs=
12456218822Sdim    while test ! -d "$as_dir"; do
12457218822Sdim      as_dirs="$as_dir $as_dirs"
12458218822Sdim      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12459218822Sdim$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12460218822Sdim	 X"$as_dir" : 'X\(//\)[^/]' \| \
12461218822Sdim	 X"$as_dir" : 'X\(//\)$' \| \
12462218822Sdim	 X"$as_dir" : 'X\(/\)' \| \
12463218822Sdim	 .     : '\(.\)' 2>/dev/null ||
12464218822Sdimecho X"$as_dir" |
12465218822Sdim    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12466218822Sdim  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12467218822Sdim  	  /^X\(\/\/\)$/{ s//\1/; q; }
12468218822Sdim  	  /^X\(\/\).*/{ s//\1/; q; }
12469218822Sdim  	  s/.*/./; q'`
12470218822Sdim    done
12471218822Sdim    test ! -n "$as_dirs" || mkdir $as_dirs
12472218822Sdim  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12473218822Sdimecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12474218822Sdim   { (exit 1); exit 1; }; }; }
12475130561Sobrien
12476218822Sdim  ac_builddir=.
12477218822Sdim
12478218822Sdimif test "$ac_dir" != .; then
12479218822Sdim  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12480218822Sdim  # A "../" for each directory in $ac_dir_suffix.
12481218822Sdim  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12482218822Sdimelse
12483218822Sdim  ac_dir_suffix= ac_top_builddir=
12484218822Sdimfi
12485218822Sdim
12486218822Sdimcase $srcdir in
12487218822Sdim  .)  # No --srcdir option.  We are building in place.
12488218822Sdim    ac_srcdir=.
12489218822Sdim    if test -z "$ac_top_builddir"; then
12490218822Sdim       ac_top_srcdir=.
12491218822Sdim    else
12492218822Sdim       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12493218822Sdim    fi ;;
12494218822Sdim  [\\/]* | ?:[\\/]* )  # Absolute path.
12495218822Sdim    ac_srcdir=$srcdir$ac_dir_suffix;
12496218822Sdim    ac_top_srcdir=$srcdir ;;
12497130561Sobrien  *) # Relative path.
12498218822Sdim    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12499218822Sdim    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12500218822Sdimesac
12501130561Sobrien
12502218822Sdim# Do not use `cd foo && pwd` to compute absolute paths, because
12503218822Sdim# the directories may not exist.
12504218822Sdimcase `pwd` in
12505218822Sdim.) ac_abs_builddir="$ac_dir";;
12506218822Sdim*)
12507218822Sdim  case "$ac_dir" in
12508218822Sdim  .) ac_abs_builddir=`pwd`;;
12509218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12510218822Sdim  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12511218822Sdim  esac;;
12512218822Sdimesac
12513218822Sdimcase $ac_abs_builddir in
12514218822Sdim.) ac_abs_top_builddir=${ac_top_builddir}.;;
12515218822Sdim*)
12516218822Sdim  case ${ac_top_builddir}. in
12517218822Sdim  .) ac_abs_top_builddir=$ac_abs_builddir;;
12518218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12519218822Sdim  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12520218822Sdim  esac;;
12521218822Sdimesac
12522218822Sdimcase $ac_abs_builddir in
12523218822Sdim.) ac_abs_srcdir=$ac_srcdir;;
12524218822Sdim*)
12525218822Sdim  case $ac_srcdir in
12526218822Sdim  .) ac_abs_srcdir=$ac_abs_builddir;;
12527218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12528218822Sdim  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12529218822Sdim  esac;;
12530218822Sdimesac
12531218822Sdimcase $ac_abs_builddir in
12532218822Sdim.) ac_abs_top_srcdir=$ac_top_srcdir;;
12533218822Sdim*)
12534218822Sdim  case $ac_top_srcdir in
12535218822Sdim  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12536218822Sdim  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12537218822Sdim  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12538218822Sdim  esac;;
12539218822Sdimesac
12540130561Sobrien
12541218822Sdim
12542218822Sdim  case $INSTALL in
12543218822Sdim  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12544218822Sdim  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12545130561Sobrien  esac
12546130561Sobrien
12547218822Sdim  if test x"$ac_file" != x-; then
12548218822Sdim    { echo "$as_me:$LINENO: creating $ac_file" >&5
12549218822Sdimecho "$as_me: creating $ac_file" >&6;}
12550218822Sdim    rm -f "$ac_file"
12551218822Sdim  fi
12552218822Sdim  # Let's still pretend it is `configure' which instantiates (i.e., don't
12553218822Sdim  # use $as_me), people would be surprised to read:
12554218822Sdim  #    /* config.h.  Generated by config.status.  */
12555218822Sdim  if test x"$ac_file" = x-; then
12556218822Sdim    configure_input=
12557218822Sdim  else
12558218822Sdim    configure_input="$ac_file.  "
12559218822Sdim  fi
12560218822Sdim  configure_input=$configure_input"Generated from `echo $ac_file_in |
12561218822Sdim				     sed 's,.*/,,'` by configure."
12562130561Sobrien
12563218822Sdim  # First look for the input files in the build tree, otherwise in the
12564218822Sdim  # src tree.
12565218822Sdim  ac_file_inputs=`IFS=:
12566218822Sdim    for f in $ac_file_in; do
12567218822Sdim      case $f in
12568218822Sdim      -) echo $tmp/stdin ;;
12569218822Sdim      [\\/$]*)
12570218822Sdim	 # Absolute (can't be DOS-style, as IFS=:)
12571218822Sdim	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12572218822Sdimecho "$as_me: error: cannot find input file: $f" >&2;}
12573218822Sdim   { (exit 1); exit 1; }; }
12574218822Sdim	 echo "$f";;
12575218822Sdim      *) # Relative
12576218822Sdim	 if test -f "$f"; then
12577218822Sdim	   # Build tree
12578218822Sdim	   echo "$f"
12579218822Sdim	 elif test -f "$srcdir/$f"; then
12580218822Sdim	   # Source tree
12581218822Sdim	   echo "$srcdir/$f"
12582218822Sdim	 else
12583218822Sdim	   # /dev/null tree
12584218822Sdim	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12585218822Sdimecho "$as_me: error: cannot find input file: $f" >&2;}
12586218822Sdim   { (exit 1); exit 1; }; }
12587218822Sdim	 fi;;
12588218822Sdim      esac
12589218822Sdim    done` || { (exit 1); exit 1; }
12590218822Sdim_ACEOF
12591218822Sdimcat >>$CONFIG_STATUS <<_ACEOF
12592218822Sdim  sed "$ac_vpsub
12593218822Sdim$extrasub
12594218822Sdim_ACEOF
12595218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
12596218822Sdim:t
12597218822Sdim/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12598218822Sdims,@configure_input@,$configure_input,;t t
12599218822Sdims,@srcdir@,$ac_srcdir,;t t
12600218822Sdims,@abs_srcdir@,$ac_abs_srcdir,;t t
12601218822Sdims,@top_srcdir@,$ac_top_srcdir,;t t
12602218822Sdims,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12603218822Sdims,@builddir@,$ac_builddir,;t t
12604218822Sdims,@abs_builddir@,$ac_abs_builddir,;t t
12605218822Sdims,@top_builddir@,$ac_top_builddir,;t t
12606218822Sdims,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12607218822Sdims,@INSTALL@,$ac_INSTALL,;t t
12608218822Sdim" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12609218822Sdim  rm -f $tmp/stdin
12610218822Sdim  if test x"$ac_file" != x-; then
12611218822Sdim    mv $tmp/out $ac_file
12612218822Sdim  else
12613218822Sdim    cat $tmp/out
12614218822Sdim    rm -f $tmp/out
12615218822Sdim  fi
12616130561Sobrien
12617218822Sdimdone
12618218822Sdim_ACEOF
12619130561Sobrien
12620218822Sdimcat >>$CONFIG_STATUS <<\_ACEOF
12621218822Sdim
12622218822Sdim{ (exit 0); exit 0; }
12623218822Sdim_ACEOF
12624130561Sobrienchmod +x $CONFIG_STATUS
12625218822Sdimac_clean_files=$ac_clean_files_save
12626130561Sobrien
12627218822Sdim
12628218822Sdim# configure is writing to config.log, and then calls config.status.
12629218822Sdim# config.status does its own redirection, appending to config.log.
12630218822Sdim# Unfortunately, on DOS this fails, as config.log is still kept open
12631218822Sdim# by configure, so config.status won't be able to write to it; its
12632218822Sdim# output is simply discarded.  So we exec the FD to /dev/null,
12633218822Sdim# effectively closing config.log, so it can be properly (re)opened and
12634218822Sdim# appended to by config.status.  When coming back to configure, we
12635218822Sdim# need to make the FD available again.
12636218822Sdimif test "$no_create" != yes; then
12637218822Sdim  ac_cs_success=:
12638218822Sdim  ac_config_status_args=
12639218822Sdim  test "$silent" = yes &&
12640218822Sdim    ac_config_status_args="$ac_config_status_args --quiet"
12641218822Sdim  exec 5>/dev/null
12642218822Sdim  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12643218822Sdim  exec 5>>config.log
12644218822Sdim  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12645218822Sdim  # would make configure fail if this is the last instruction.
12646218822Sdim  $ac_cs_success || { (exit 1); exit 1; }
12647218822Sdimfi
12648218822Sdim
12649