Home | History | Annotate | Line # | Download | only in dist
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69.
      4 #
      5 #
      6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      7 #
      8 #
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 ## -------------------- ##
     12 ## M4sh Initialization. ##
     13 ## -------------------- ##
     14 
     15 # Be more Bourne compatible
     16 DUALCASE=1; export DUALCASE # for MKS sh
     17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     18   emulate sh
     19   NULLCMD=:
     20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     21   # is contrary to our usage.  Disable this feature.
     22   alias -g '${1+"$@"}'='"$@"'
     23   setopt NO_GLOB_SUBST
     24 else
     25   case `(set -o) 2>/dev/null` in #(
     26   *posix*) :
     27     set -o posix ;; #(
     28   *) :
     29      ;;
     30 esac
     31 fi
     32 
     33 
     34 as_nl='
     35 '
     36 export as_nl
     37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     41 # Prefer a ksh shell builtin over an external printf program on Solaris,
     42 # but without wasting forks for bash or zsh.
     43 if test -z "$BASH_VERSION$ZSH_VERSION" \
     44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     45   as_echo='print -r --'
     46   as_echo_n='print -rn --'
     47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     48   as_echo='printf %s\n'
     49   as_echo_n='printf %s'
     50 else
     51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     53     as_echo_n='/usr/ucb/echo -n'
     54   else
     55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     56     as_echo_n_body='eval
     57       arg=$1;
     58       case $arg in #(
     59       *"$as_nl"*)
     60 	expr "X$arg" : "X\\(.*\\)$as_nl";
     61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     62       esac;
     63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     64     '
     65     export as_echo_n_body
     66     as_echo_n='sh -c $as_echo_n_body as_echo'
     67   fi
     68   export as_echo_body
     69   as_echo='sh -c $as_echo_body as_echo'
     70 fi
     71 
     72 # The user is always right.
     73 if test "${PATH_SEPARATOR+set}" != set; then
     74   PATH_SEPARATOR=:
     75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     77       PATH_SEPARATOR=';'
     78   }
     79 fi
     80 
     81 
     82 # IFS
     83 # We need space, tab and new line, in precisely that order.  Quoting is
     84 # there to prevent editors from complaining about space-tab.
     85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     86 # splitting by setting IFS to empty value.)
     87 IFS=" ""	$as_nl"
     88 
     89 # Find who we are.  Look in the path if we contain no directory separator.
     90 as_myself=
     91 case $0 in #((
     92   *[\\/]* ) as_myself=$0 ;;
     93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94 for as_dir in $PATH
     95 do
     96   IFS=$as_save_IFS
     97   test -z "$as_dir" && as_dir=.
     98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     99   done
    100 IFS=$as_save_IFS
    101 
    102      ;;
    103 esac
    104 # We did not find ourselves, most probably we were run as `sh COMMAND'
    105 # in which case we are not to be found in the path.
    106 if test "x$as_myself" = x; then
    107   as_myself=$0
    108 fi
    109 if test ! -f "$as_myself"; then
    110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   exit 1
    112 fi
    113 
    114 # Unset variables that we do not need and which cause bugs (e.g. in
    115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    116 # suppresses any "Segmentation fault" message there.  '((' could
    117 # trigger a bug in pdksh 5.2.14.
    118 for as_var in BASH_ENV ENV MAIL MAILPATH
    119 do eval test x\${$as_var+set} = xset \
    120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    121 done
    122 PS1='$ '
    123 PS2='> '
    124 PS4='+ '
    125 
    126 # NLS nuisances.
    127 LC_ALL=C
    128 export LC_ALL
    129 LANGUAGE=C
    130 export LANGUAGE
    131 
    132 # CDPATH.
    133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    134 
    135 # Use a proper internal environment variable to ensure we don't fall
    136   # into an infinite loop, continuously re-executing ourselves.
    137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    138     _as_can_reexec=no; export _as_can_reexec;
    139     # We cannot yet assume a decent shell, so we have to provide a
    140 # neutralization value for shells without unset; and this also
    141 # works around shells that cannot unset nonexistent variables.
    142 # Preserve -v and -x to the replacement shell.
    143 BASH_ENV=/dev/null
    144 ENV=/dev/null
    145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    146 case $- in # ((((
    147   *v*x* | *x*v* ) as_opts=-vx ;;
    148   *v* ) as_opts=-v ;;
    149   *x* ) as_opts=-x ;;
    150   * ) as_opts= ;;
    151 esac
    152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    153 # Admittedly, this is quite paranoid, since all the known shells bail
    154 # out after a failed `exec'.
    155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    156 as_fn_exit 255
    157   fi
    158   # We don't want this to propagate to other subprocesses.
    159           { _as_can_reexec=; unset _as_can_reexec;}
    160 if test "x$CONFIG_SHELL" = x; then
    161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    162   emulate sh
    163   NULLCMD=:
    164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    165   # is contrary to our usage.  Disable this feature.
    166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    167   setopt NO_GLOB_SUBST
    168 else
    169   case \`(set -o) 2>/dev/null\` in #(
    170   *posix*) :
    171     set -o posix ;; #(
    172   *) :
    173      ;;
    174 esac
    175 fi
    176 "
    177   as_required="as_fn_return () { (exit \$1); }
    178 as_fn_success () { as_fn_return 0; }
    179 as_fn_failure () { as_fn_return 1; }
    180 as_fn_ret_success () { return 0; }
    181 as_fn_ret_failure () { return 1; }
    182 
    183 exitcode=0
    184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    189 
    190 else
    191   exitcode=1; echo positional parameters were not saved.
    192 fi
    193 test x\$exitcode = x0 || exit 1
    194 test -x / || exit 1"
    195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    199 test \$(( 1 + 1 )) = 2 || exit 1"
    200   if (eval "$as_required") 2>/dev/null; then :
    201   as_have_required=yes
    202 else
    203   as_have_required=no
    204 fi
    205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    206 
    207 else
    208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    209 as_found=false
    210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    211 do
    212   IFS=$as_save_IFS
    213   test -z "$as_dir" && as_dir=.
    214   as_found=:
    215   case $as_dir in #(
    216 	 /*)
    217 	   for as_base in sh bash ksh sh5; do
    218 	     # Try only shells that exist, to save several forks.
    219 	     as_shell=$as_dir/$as_base
    220 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    221 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    222   CONFIG_SHELL=$as_shell as_have_required=yes
    223 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   break 2
    225 fi
    226 fi
    227 	   done;;
    228        esac
    229   as_found=false
    230 done
    231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    232 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    233   CONFIG_SHELL=$SHELL as_have_required=yes
    234 fi; }
    235 IFS=$as_save_IFS
    236 
    237 
    238       if test "x$CONFIG_SHELL" != x; then :
    239   export CONFIG_SHELL
    240              # We cannot yet assume a decent shell, so we have to provide a
    241 # neutralization value for shells without unset; and this also
    242 # works around shells that cannot unset nonexistent variables.
    243 # Preserve -v and -x to the replacement shell.
    244 BASH_ENV=/dev/null
    245 ENV=/dev/null
    246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    247 case $- in # ((((
    248   *v*x* | *x*v* ) as_opts=-vx ;;
    249   *v* ) as_opts=-v ;;
    250   *x* ) as_opts=-x ;;
    251   * ) as_opts= ;;
    252 esac
    253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    254 # Admittedly, this is quite paranoid, since all the known shells bail
    255 # out after a failed `exec'.
    256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    257 exit 255
    258 fi
    259 
    260     if test x$as_have_required = xno; then :
    261   $as_echo "$0: This script requires a shell more modern than all"
    262   $as_echo "$0: the shells that I found on your system."
    263   if test x${ZSH_VERSION+set} = xset ; then
    264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    266   else
    267     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    268 $0: including any error possibly output before this
    269 $0: message. Then install a modern shell, or manually run
    270 $0: the script under such a shell if you do have one."
    271   fi
    272   exit 1
    273 fi
    274 fi
    275 fi
    276 SHELL=${CONFIG_SHELL-/bin/sh}
    277 export SHELL
    278 # Unset more variables known to interfere with behavior of common tools.
    279 CLICOLOR_FORCE= GREP_OPTIONS=
    280 unset CLICOLOR_FORCE GREP_OPTIONS
    281 
    282 ## --------------------- ##
    283 ## M4sh Shell Functions. ##
    284 ## --------------------- ##
    285 # as_fn_unset VAR
    286 # ---------------
    287 # Portably unset VAR.
    288 as_fn_unset ()
    289 {
    290   { eval $1=; unset $1;}
    291 }
    292 as_unset=as_fn_unset
    293 
    294 # as_fn_set_status STATUS
    295 # -----------------------
    296 # Set $? to STATUS, without forking.
    297 as_fn_set_status ()
    298 {
    299   return $1
    300 } # as_fn_set_status
    301 
    302 # as_fn_exit STATUS
    303 # -----------------
    304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    305 as_fn_exit ()
    306 {
    307   set +e
    308   as_fn_set_status $1
    309   exit $1
    310 } # as_fn_exit
    311 
    312 # as_fn_mkdir_p
    313 # -------------
    314 # Create "$as_dir" as a directory, including parents if necessary.
    315 as_fn_mkdir_p ()
    316 {
    317 
    318   case $as_dir in #(
    319   -*) as_dir=./$as_dir;;
    320   esac
    321   test -d "$as_dir" || eval $as_mkdir_p || {
    322     as_dirs=
    323     while :; do
    324       case $as_dir in #(
    325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    326       *) as_qdir=$as_dir;;
    327       esac
    328       as_dirs="'$as_qdir' $as_dirs"
    329       as_dir=`$as_dirname -- "$as_dir" ||
    330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    331 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    332 	 X"$as_dir" : 'X\(//\)$' \| \
    333 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    334 $as_echo X"$as_dir" |
    335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    336 	    s//\1/
    337 	    q
    338 	  }
    339 	  /^X\(\/\/\)[^/].*/{
    340 	    s//\1/
    341 	    q
    342 	  }
    343 	  /^X\(\/\/\)$/{
    344 	    s//\1/
    345 	    q
    346 	  }
    347 	  /^X\(\/\).*/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  s/.*/./; q'`
    352       test -d "$as_dir" && break
    353     done
    354     test -z "$as_dirs" || eval "mkdir $as_dirs"
    355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    356 
    357 
    358 } # as_fn_mkdir_p
    359 
    360 # as_fn_executable_p FILE
    361 # -----------------------
    362 # Test if FILE is an executable regular file.
    363 as_fn_executable_p ()
    364 {
    365   test -f "$1" && test -x "$1"
    366 } # as_fn_executable_p
    367 # as_fn_append VAR VALUE
    368 # ----------------------
    369 # Append the text in VALUE to the end of the definition contained in VAR. Take
    370 # advantage of any shell optimizations that allow amortized linear growth over
    371 # repeated appends, instead of the typical quadratic growth present in naive
    372 # implementations.
    373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    374   eval 'as_fn_append ()
    375   {
    376     eval $1+=\$2
    377   }'
    378 else
    379   as_fn_append ()
    380   {
    381     eval $1=\$$1\$2
    382   }
    383 fi # as_fn_append
    384 
    385 # as_fn_arith ARG...
    386 # ------------------
    387 # Perform arithmetic evaluation on the ARGs, and store the result in the
    388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    389 # must be portable across $(()) and expr.
    390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    391   eval 'as_fn_arith ()
    392   {
    393     as_val=$(( $* ))
    394   }'
    395 else
    396   as_fn_arith ()
    397   {
    398     as_val=`expr "$@" || test $? -eq 1`
    399   }
    400 fi # as_fn_arith
    401 
    402 
    403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    404 # ----------------------------------------
    405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    407 # script with STATUS, using 1 if that was 0.
    408 as_fn_error ()
    409 {
    410   as_status=$1; test $as_status -eq 0 && as_status=1
    411   if test "$4"; then
    412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    414   fi
    415   $as_echo "$as_me: error: $2" >&2
    416   as_fn_exit $as_status
    417 } # as_fn_error
    418 
    419 if expr a : '\(a\)' >/dev/null 2>&1 &&
    420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    421   as_expr=expr
    422 else
    423   as_expr=false
    424 fi
    425 
    426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    427   as_basename=basename
    428 else
    429   as_basename=false
    430 fi
    431 
    432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    433   as_dirname=dirname
    434 else
    435   as_dirname=false
    436 fi
    437 
    438 as_me=`$as_basename -- "$0" ||
    439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    440 	 X"$0" : 'X\(//\)$' \| \
    441 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    442 $as_echo X/"$0" |
    443     sed '/^.*\/\([^/][^/]*\)\/*$/{
    444 	    s//\1/
    445 	    q
    446 	  }
    447 	  /^X\/\(\/\/\)$/{
    448 	    s//\1/
    449 	    q
    450 	  }
    451 	  /^X\/\(\/\).*/{
    452 	    s//\1/
    453 	    q
    454 	  }
    455 	  s/.*/./; q'`
    456 
    457 # Avoid depending upon Character Ranges.
    458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    461 as_cr_digits='0123456789'
    462 as_cr_alnum=$as_cr_Letters$as_cr_digits
    463 
    464 
    465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    470   sed -n '
    471     p
    472     /[$]LINENO/=
    473   ' <$as_myself |
    474     sed '
    475       s/[$]LINENO.*/&-/
    476       t lineno
    477       b
    478       :lineno
    479       N
    480       :loop
    481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    482       t loop
    483       s/-\n.*//
    484     ' >$as_me.lineno &&
    485   chmod +x "$as_me.lineno" ||
    486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    487 
    488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    489   # already done that, so ensure we don't try to do so again and fall
    490   # in an infinite loop.  This has already happened in practice.
    491   _as_can_reexec=no; export _as_can_reexec
    492   # Don't try to exec as it changes $[0], causing all sort of problems
    493   # (the dirname of $[0] is not the place where we might find the
    494   # original and so on.  Autoconf is especially sensitive to this).
    495   . "./$as_me.lineno"
    496   # Exit status is that of the last command.
    497   exit
    498 }
    499 
    500 ECHO_C= ECHO_N= ECHO_T=
    501 case `echo -n x` in #(((((
    502 -n*)
    503   case `echo 'xy\c'` in
    504   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    505   xy)  ECHO_C='\c';;
    506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    507        ECHO_T='	';;
    508   esac;;
    509 *)
    510   ECHO_N='-n';;
    511 esac
    512 
    513 rm -f conf$$ conf$$.exe conf$$.file
    514 if test -d conf$$.dir; then
    515   rm -f conf$$.dir/conf$$.file
    516 else
    517   rm -f conf$$.dir
    518   mkdir conf$$.dir 2>/dev/null
    519 fi
    520 if (echo >conf$$.file) 2>/dev/null; then
    521   if ln -s conf$$.file conf$$ 2>/dev/null; then
    522     as_ln_s='ln -s'
    523     # ... but there are two gotchas:
    524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    526     # In both cases, we have to default to `cp -pR'.
    527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    528       as_ln_s='cp -pR'
    529   elif ln conf$$.file conf$$ 2>/dev/null; then
    530     as_ln_s=ln
    531   else
    532     as_ln_s='cp -pR'
    533   fi
    534 else
    535   as_ln_s='cp -pR'
    536 fi
    537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    538 rmdir conf$$.dir 2>/dev/null
    539 
    540 if mkdir -p . 2>/dev/null; then
    541   as_mkdir_p='mkdir -p "$as_dir"'
    542 else
    543   test -d ./-p && rmdir ./-p
    544   as_mkdir_p=false
    545 fi
    546 
    547 as_test_x='test -x'
    548 as_executable_p=as_fn_executable_p
    549 
    550 # Sed expression to map a string onto a valid CPP name.
    551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    552 
    553 # Sed expression to map a string onto a valid variable name.
    554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    555 
    556 
    557 test -n "$DJDIR" || exec 7<&0 </dev/null
    558 exec 6>&1
    559 
    560 # Name of the host.
    561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    562 # so uname gets run too.
    563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    564 
    565 #
    566 # Initializations.
    567 #
    568 ac_default_prefix=/usr/local
    569 ac_clean_files=
    570 ac_config_libobj_dir=.
    571 LIBOBJS=
    572 cross_compiling=no
    573 subdirs=
    574 MFLAGS=
    575 MAKEFLAGS=
    576 
    577 # Identity of this package.
    578 PACKAGE_NAME=
    579 PACKAGE_TARNAME=
    580 PACKAGE_VERSION=
    581 PACKAGE_STRING=
    582 PACKAGE_BUGREPORT=
    583 PACKAGE_URL=
    584 
    585 ac_unique_file="move-if-change"
    586 enable_option_checking=no
    587 ac_subst_vars='LTLIBOBJS
    588 LIBOBJS
    589 compare_exclusions
    590 stage2_werror_flag
    591 stage1_checking
    592 stage1_cflags
    593 MAINT
    594 MAINTAINER_MODE_FALSE
    595 MAINTAINER_MODE_TRUE
    596 COMPILER_NM_FOR_TARGET
    597 COMPILER_LD_FOR_TARGET
    598 COMPILER_AS_FOR_TARGET
    599 RANLIB_PLUGIN_OPTION_FOR_TARGET
    600 NM_PLUGIN_OPTION_FOR_TARGET
    601 AR_PLUGIN_OPTION_FOR_TARGET
    602 LLVM_CONFIG_FOR_TARGET
    603 FLAGS_FOR_TARGET
    604 RAW_CXX_FOR_TARGET
    605 WINDMC_FOR_TARGET
    606 WINDRES_FOR_TARGET
    607 STRIP_FOR_TARGET
    608 READELF_FOR_TARGET
    609 RANLIB_FOR_TARGET
    610 OTOOL_FOR_TARGET
    611 OBJDUMP_FOR_TARGET
    612 OBJCOPY_FOR_TARGET
    613 NM_FOR_TARGET
    614 LIPO_FOR_TARGET
    615 LD_FOR_TARGET
    616 DSYMUTIL_FOR_TARGET
    617 DLLTOOL_FOR_TARGET
    618 AS_FOR_TARGET
    619 AR_FOR_TARGET
    620 GM2_FOR_TARGET
    621 GDC_FOR_TARGET
    622 GOC_FOR_TARGET
    623 GFORTRAN_FOR_TARGET
    624 GCC_FOR_TARGET
    625 CXX_FOR_TARGET
    626 CC_FOR_TARGET
    627 RANLIB_PLUGIN_OPTION
    628 NM_PLUGIN_OPTION
    629 AR_PLUGIN_OPTION
    630 LLVM_CONFIG
    631 EGREP
    632 GREP
    633 CPP
    634 PKG_CONFIG_PATH
    635 GDCFLAGS
    636 READELF
    637 OTOOL
    638 OBJDUMP
    639 OBJCOPY
    640 WINDMC
    641 WINDRES
    642 STRIP
    643 RANLIB
    644 NM
    645 LIPO
    646 LD
    647 DSYMUTIL
    648 DLLTOOL
    649 AS
    650 AR
    651 RUNTEST
    652 EXPECT
    653 MAKEINFO
    654 FLEX
    655 LEX
    656 M4
    657 BISON
    658 YACC
    659 WINDRES_FOR_BUILD
    660 WINDMC_FOR_BUILD
    661 RANLIB_FOR_BUILD
    662 NM_FOR_BUILD
    663 LD_FOR_BUILD
    664 LDFLAGS_FOR_BUILD
    665 GNATMAKE_FOR_BUILD
    666 GDC_FOR_BUILD
    667 GOC_FOR_BUILD
    668 GFORTRAN_FOR_BUILD
    669 DSYMUTIL_FOR_BUILD
    670 DLLTOOL_FOR_BUILD
    671 CXX_FOR_BUILD
    672 CXXFLAGS_FOR_BUILD
    673 CPPFLAGS_FOR_BUILD
    674 CPP_FOR_BUILD
    675 CFLAGS_FOR_BUILD
    676 CC_FOR_BUILD
    677 AS_FOR_BUILD
    678 AR_FOR_BUILD
    679 target_configdirs
    680 configdirs
    681 build_configdirs
    682 INSTALL_GDB_TK
    683 GDB_TK
    684 CONFIGURE_GDB_TK
    685 build_tooldir
    686 tooldir
    687 GCC_SHLIB_SUBDIR
    688 RPATH_ENVVAR
    689 target_configargs
    690 host_configargs
    691 build_configargs
    692 BUILD_CONFIG
    693 LDFLAGS_FOR_TARGET
    694 CXXFLAGS_FOR_TARGET
    695 CFLAGS_FOR_TARGET
    696 DEBUG_PREFIX_CFLAGS_FOR_TARGET
    697 SYSROOT_CFLAGS_FOR_TARGET
    698 get_gcc_base_ver
    699 extra_host_zlib_configure_flags
    700 extra_host_libiberty_configure_flags
    701 stage1_languages
    702 host_libs_picflag
    703 CRAB1_LIBS
    704 enable_libgdiagnostics
    705 PICFLAG
    706 host_shared
    707 gcc_host_pie
    708 host_pie
    709 extra_linker_plugin_flags
    710 extra_linker_plugin_configure_flags
    711 islinc
    712 isllibs
    713 poststage1_ldflags
    714 poststage1_libs
    715 stage1_ldflags
    716 stage1_libs
    717 extra_isl_gmp_configure_flags
    718 extra_mpc_mpfr_configure_flags
    719 extra_mpc_gmp_configure_flags
    720 extra_mpfr_configure_flags
    721 gmpinc
    722 gmplibs
    723 PGO_BUILD_LTO_CFLAGS
    724 PGO_BUILD_USE_CFLAGS
    725 PGO_BUILD_GEN_CFLAGS
    726 HAVE_CXX14_FOR_BUILD
    727 HAVE_CXX14
    728 do_compare
    729 CARGO
    730 GDC
    731 GNATMAKE
    732 GNATBIND
    733 ac_ct_CXX
    734 CXXFLAGS
    735 CXX
    736 OBJEXT
    737 EXEEXT
    738 ac_ct_CC
    739 CPPFLAGS
    740 LDFLAGS
    741 CFLAGS
    742 CC
    743 cpu_type
    744 target_subdir
    745 host_subdir
    746 build_subdir
    747 build_libsubdir
    748 AWK
    749 SED
    750 LN_S
    751 LN
    752 INSTALL_DATA
    753 INSTALL_SCRIPT
    754 INSTALL_PROGRAM
    755 target_os
    756 target_vendor
    757 target_cpu
    758 target
    759 host_os
    760 host_vendor
    761 host_cpu
    762 host
    763 target_noncanonical
    764 host_noncanonical
    765 build_noncanonical
    766 build_os
    767 build_vendor
    768 build_cpu
    769 build
    770 TOPLEVEL_CONFIGURE_ARGUMENTS
    771 target_alias
    772 host_alias
    773 build_alias
    774 LIBS
    775 ECHO_T
    776 ECHO_N
    777 ECHO_C
    778 DEFS
    779 mandir
    780 localedir
    781 libdir
    782 psdir
    783 pdfdir
    784 dvidir
    785 htmldir
    786 infodir
    787 docdir
    788 oldincludedir
    789 includedir
    790 localstatedir
    791 sharedstatedir
    792 sysconfdir
    793 datadir
    794 datarootdir
    795 libexecdir
    796 sbindir
    797 bindir
    798 program_transform_name
    799 prefix
    800 exec_prefix
    801 PACKAGE_URL
    802 PACKAGE_BUGREPORT
    803 PACKAGE_STRING
    804 PACKAGE_VERSION
    805 PACKAGE_TARNAME
    806 PACKAGE_NAME
    807 PATH_SEPARATOR
    808 SHELL'
    809 ac_subst_files='serialization_dependencies
    810 host_makefile_frag
    811 target_makefile_frag
    812 alphaieee_frag
    813 ospace_frag'
    814 ac_user_opts='
    815 enable_option_checking
    816 with_build_libsubdir
    817 with_system_zlib
    818 with_zstd
    819 enable_as_accelerator_for
    820 enable_offload_targets
    821 enable_offload_defaulted
    822 enable_gold
    823 enable_ld
    824 enable_gprofng
    825 enable_compressed_debug_sections
    826 enable_default_compressed_debug_sections_algorithm
    827 enable_year2038
    828 enable_libquadmath
    829 enable_libquadmath_support
    830 enable_libada
    831 enable_libgm2
    832 enable_libssp
    833 enable_libstdcxx
    834 enable_bootstrap
    835 enable_pgo_build
    836 with_mpc
    837 with_mpc_include
    838 with_mpc_lib
    839 with_mpfr
    840 with_mpfr_include
    841 with_mpfr_lib
    842 with_gmp
    843 with_gmp_include
    844 with_gmp_lib
    845 with_stage1_libs
    846 with_static_standard_libraries
    847 with_stage1_ldflags
    848 with_boot_libs
    849 with_boot_ldflags
    850 with_isl
    851 with_isl_include
    852 with_isl_lib
    853 enable_isl_version_check
    854 enable_lto
    855 enable_linker_plugin_configure_flags
    856 enable_linker_plugin_flags
    857 enable_host_pie
    858 enable_host_shared
    859 enable_libgdiagnostics
    860 enable_stage1_languages
    861 enable_objc_gc
    862 with_target_bdw_gc
    863 with_target_bdw_gc_include
    864 with_target_bdw_gc_lib
    865 with_gcc_major_version_only
    866 with_build_sysroot
    867 with_debug_prefix_map
    868 with_build_config
    869 enable_vtable_verify
    870 enable_serial_configure
    871 with_build_time_tools
    872 enable_maintainer_mode
    873 enable_stage1_checking
    874 enable_werror
    875 '
    876       ac_precious_vars='build_alias
    877 host_alias
    878 target_alias
    879 CC
    880 CFLAGS
    881 LDFLAGS
    882 LIBS
    883 CPPFLAGS
    884 CXX
    885 CXXFLAGS
    886 CCC
    887 build_configargs
    888 host_configargs
    889 target_configargs
    890 AR
    891 AS
    892 DLLTOOL
    893 DSYMUTIL
    894 LD
    895 LIPO
    896 NM
    897 RANLIB
    898 STRIP
    899 WINDRES
    900 WINDMC
    901 OBJCOPY
    902 OBJDUMP
    903 OTOOL
    904 READELF
    905 CPP
    906 CC_FOR_TARGET
    907 CXX_FOR_TARGET
    908 GCC_FOR_TARGET
    909 GFORTRAN_FOR_TARGET
    910 GOC_FOR_TARGET
    911 GDC_FOR_TARGET
    912 GM2_FOR_TARGET
    913 AR_FOR_TARGET
    914 AS_FOR_TARGET
    915 DLLTOOL_FOR_TARGET
    916 DSYMUTIL_FOR_TARGET
    917 LD_FOR_TARGET
    918 LIPO_FOR_TARGET
    919 NM_FOR_TARGET
    920 OBJCOPY_FOR_TARGET
    921 OBJDUMP_FOR_TARGET
    922 OTOOL_FOR_TARGET
    923 RANLIB_FOR_TARGET
    924 READELF_FOR_TARGET
    925 STRIP_FOR_TARGET
    926 WINDRES_FOR_TARGET
    927 WINDMC_FOR_TARGET'
    928 
    929 
    930 # Initialize some variables set by options.
    931 ac_init_help=
    932 ac_init_version=false
    933 ac_unrecognized_opts=
    934 ac_unrecognized_sep=
    935 # The variables have the same names as the options, with
    936 # dashes changed to underlines.
    937 cache_file=/dev/null
    938 exec_prefix=NONE
    939 no_create=
    940 no_recursion=
    941 prefix=NONE
    942 program_prefix=NONE
    943 program_suffix=NONE
    944 program_transform_name=s,x,x,
    945 silent=
    946 site=
    947 srcdir=
    948 verbose=
    949 x_includes=NONE
    950 x_libraries=NONE
    951 
    952 # Installation directory options.
    953 # These are left unexpanded so users can "make install exec_prefix=/foo"
    954 # and all the variables that are supposed to be based on exec_prefix
    955 # by default will actually change.
    956 # Use braces instead of parens because sh, perl, etc. also accept them.
    957 # (The list follows the same order as the GNU Coding Standards.)
    958 bindir='${exec_prefix}/bin'
    959 sbindir='${exec_prefix}/sbin'
    960 libexecdir='${exec_prefix}/libexec'
    961 datarootdir='${prefix}/share'
    962 datadir='${datarootdir}'
    963 sysconfdir='${prefix}/etc'
    964 sharedstatedir='${prefix}/com'
    965 localstatedir='${prefix}/var'
    966 includedir='${prefix}/include'
    967 oldincludedir='/usr/include'
    968 docdir='${datarootdir}/doc/${PACKAGE}'
    969 infodir='${datarootdir}/info'
    970 htmldir='${docdir}'
    971 dvidir='${docdir}'
    972 pdfdir='${docdir}'
    973 psdir='${docdir}'
    974 libdir='${exec_prefix}/lib'
    975 localedir='${datarootdir}/locale'
    976 mandir='${datarootdir}/man'
    977 
    978 ac_prev=
    979 ac_dashdash=
    980 for ac_option
    981 do
    982   # If the previous option needs an argument, assign it.
    983   if test -n "$ac_prev"; then
    984     eval $ac_prev=\$ac_option
    985     ac_prev=
    986     continue
    987   fi
    988 
    989   case $ac_option in
    990   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    991   *=)   ac_optarg= ;;
    992   *)    ac_optarg=yes ;;
    993   esac
    994 
    995   # Accept the important Cygnus configure options, so we can diagnose typos.
    996 
    997   case $ac_dashdash$ac_option in
    998   --)
    999     ac_dashdash=yes ;;
   1000 
   1001   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1002     ac_prev=bindir ;;
   1003   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1004     bindir=$ac_optarg ;;
   1005 
   1006   -build | --build | --buil | --bui | --bu)
   1007     ac_prev=build_alias ;;
   1008   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1009     build_alias=$ac_optarg ;;
   1010 
   1011   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1012   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1013     ac_prev=cache_file ;;
   1014   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1015   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1016     cache_file=$ac_optarg ;;
   1017 
   1018   --config-cache | -C)
   1019     cache_file=config.cache ;;
   1020 
   1021   -datadir | --datadir | --datadi | --datad)
   1022     ac_prev=datadir ;;
   1023   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1024     datadir=$ac_optarg ;;
   1025 
   1026   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1027   | --dataroo | --dataro | --datar)
   1028     ac_prev=datarootdir ;;
   1029   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1030   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1031     datarootdir=$ac_optarg ;;
   1032 
   1033   -disable-* | --disable-*)
   1034     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1035     # Reject names that are not valid shell variable names.
   1036     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1037       as_fn_error $? "invalid feature name: $ac_useropt"
   1038     ac_useropt_orig=$ac_useropt
   1039     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1040     case $ac_user_opts in
   1041       *"
   1042 "enable_$ac_useropt"
   1043 "*) ;;
   1044       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1045 	 ac_unrecognized_sep=', ';;
   1046     esac
   1047     eval enable_$ac_useropt=no ;;
   1048 
   1049   -docdir | --docdir | --docdi | --doc | --do)
   1050     ac_prev=docdir ;;
   1051   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1052     docdir=$ac_optarg ;;
   1053 
   1054   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1055     ac_prev=dvidir ;;
   1056   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1057     dvidir=$ac_optarg ;;
   1058 
   1059   -enable-* | --enable-*)
   1060     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1061     # Reject names that are not valid shell variable names.
   1062     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1063       as_fn_error $? "invalid feature name: $ac_useropt"
   1064     ac_useropt_orig=$ac_useropt
   1065     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1066     case $ac_user_opts in
   1067       *"
   1068 "enable_$ac_useropt"
   1069 "*) ;;
   1070       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1071 	 ac_unrecognized_sep=', ';;
   1072     esac
   1073     eval enable_$ac_useropt=\$ac_optarg ;;
   1074 
   1075   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1076   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1077   | --exec | --exe | --ex)
   1078     ac_prev=exec_prefix ;;
   1079   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1080   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1081   | --exec=* | --exe=* | --ex=*)
   1082     exec_prefix=$ac_optarg ;;
   1083 
   1084   -gas | --gas | --ga | --g)
   1085     # Obsolete; use --with-gas.
   1086     with_gas=yes ;;
   1087 
   1088   -help | --help | --hel | --he | -h)
   1089     ac_init_help=long ;;
   1090   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1091     ac_init_help=recursive ;;
   1092   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1093     ac_init_help=short ;;
   1094 
   1095   -host | --host | --hos | --ho)
   1096     ac_prev=host_alias ;;
   1097   -host=* | --host=* | --hos=* | --ho=*)
   1098     host_alias=$ac_optarg ;;
   1099 
   1100   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1101     ac_prev=htmldir ;;
   1102   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1103   | --ht=*)
   1104     htmldir=$ac_optarg ;;
   1105 
   1106   -includedir | --includedir | --includedi | --included | --include \
   1107   | --includ | --inclu | --incl | --inc)
   1108     ac_prev=includedir ;;
   1109   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1110   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1111     includedir=$ac_optarg ;;
   1112 
   1113   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1114     ac_prev=infodir ;;
   1115   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1116     infodir=$ac_optarg ;;
   1117 
   1118   -libdir | --libdir | --libdi | --libd)
   1119     ac_prev=libdir ;;
   1120   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1121     libdir=$ac_optarg ;;
   1122 
   1123   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1124   | --libexe | --libex | --libe)
   1125     ac_prev=libexecdir ;;
   1126   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1127   | --libexe=* | --libex=* | --libe=*)
   1128     libexecdir=$ac_optarg ;;
   1129 
   1130   -localedir | --localedir | --localedi | --localed | --locale)
   1131     ac_prev=localedir ;;
   1132   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1133     localedir=$ac_optarg ;;
   1134 
   1135   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1136   | --localstate | --localstat | --localsta | --localst | --locals)
   1137     ac_prev=localstatedir ;;
   1138   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1139   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1140     localstatedir=$ac_optarg ;;
   1141 
   1142   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1143     ac_prev=mandir ;;
   1144   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1145     mandir=$ac_optarg ;;
   1146 
   1147   -nfp | --nfp | --nf)
   1148     # Obsolete; use --without-fp.
   1149     with_fp=no ;;
   1150 
   1151   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1152   | --no-cr | --no-c | -n)
   1153     no_create=yes ;;
   1154 
   1155   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1156   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1157     no_recursion=yes ;;
   1158 
   1159   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1160   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1161   | --oldin | --oldi | --old | --ol | --o)
   1162     ac_prev=oldincludedir ;;
   1163   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1164   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1165   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1166     oldincludedir=$ac_optarg ;;
   1167 
   1168   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1169     ac_prev=prefix ;;
   1170   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1171     prefix=$ac_optarg ;;
   1172 
   1173   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1174   | --program-pre | --program-pr | --program-p)
   1175     ac_prev=program_prefix ;;
   1176   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1177   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1178     program_prefix=$ac_optarg ;;
   1179 
   1180   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1181   | --program-suf | --program-su | --program-s)
   1182     ac_prev=program_suffix ;;
   1183   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1184   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1185     program_suffix=$ac_optarg ;;
   1186 
   1187   -program-transform-name | --program-transform-name \
   1188   | --program-transform-nam | --program-transform-na \
   1189   | --program-transform-n | --program-transform- \
   1190   | --program-transform | --program-transfor \
   1191   | --program-transfo | --program-transf \
   1192   | --program-trans | --program-tran \
   1193   | --progr-tra | --program-tr | --program-t)
   1194     ac_prev=program_transform_name ;;
   1195   -program-transform-name=* | --program-transform-name=* \
   1196   | --program-transform-nam=* | --program-transform-na=* \
   1197   | --program-transform-n=* | --program-transform-=* \
   1198   | --program-transform=* | --program-transfor=* \
   1199   | --program-transfo=* | --program-transf=* \
   1200   | --program-trans=* | --program-tran=* \
   1201   | --progr-tra=* | --program-tr=* | --program-t=*)
   1202     program_transform_name=$ac_optarg ;;
   1203 
   1204   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1205     ac_prev=pdfdir ;;
   1206   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1207     pdfdir=$ac_optarg ;;
   1208 
   1209   -psdir | --psdir | --psdi | --psd | --ps)
   1210     ac_prev=psdir ;;
   1211   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1212     psdir=$ac_optarg ;;
   1213 
   1214   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1215   | -silent | --silent | --silen | --sile | --sil)
   1216     silent=yes ;;
   1217 
   1218   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1219     ac_prev=sbindir ;;
   1220   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1221   | --sbi=* | --sb=*)
   1222     sbindir=$ac_optarg ;;
   1223 
   1224   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1225   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1226   | --sharedst | --shareds | --shared | --share | --shar \
   1227   | --sha | --sh)
   1228     ac_prev=sharedstatedir ;;
   1229   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1230   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1231   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1232   | --sha=* | --sh=*)
   1233     sharedstatedir=$ac_optarg ;;
   1234 
   1235   -site | --site | --sit)
   1236     ac_prev=site ;;
   1237   -site=* | --site=* | --sit=*)
   1238     site=$ac_optarg ;;
   1239 
   1240   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1241     ac_prev=srcdir ;;
   1242   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1243     srcdir=$ac_optarg ;;
   1244 
   1245   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1246   | --syscon | --sysco | --sysc | --sys | --sy)
   1247     ac_prev=sysconfdir ;;
   1248   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1249   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1250     sysconfdir=$ac_optarg ;;
   1251 
   1252   -target | --target | --targe | --targ | --tar | --ta | --t)
   1253     ac_prev=target_alias ;;
   1254   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1255     target_alias=$ac_optarg ;;
   1256 
   1257   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1258     verbose=yes ;;
   1259 
   1260   -version | --version | --versio | --versi | --vers | -V)
   1261     ac_init_version=: ;;
   1262 
   1263   -with-* | --with-*)
   1264     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1265     # Reject names that are not valid shell variable names.
   1266     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1267       as_fn_error $? "invalid package name: $ac_useropt"
   1268     ac_useropt_orig=$ac_useropt
   1269     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1270     case $ac_user_opts in
   1271       *"
   1272 "with_$ac_useropt"
   1273 "*) ;;
   1274       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1275 	 ac_unrecognized_sep=', ';;
   1276     esac
   1277     eval with_$ac_useropt=\$ac_optarg ;;
   1278 
   1279   -without-* | --without-*)
   1280     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1281     # Reject names that are not valid shell variable names.
   1282     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1283       as_fn_error $? "invalid package name: $ac_useropt"
   1284     ac_useropt_orig=$ac_useropt
   1285     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1286     case $ac_user_opts in
   1287       *"
   1288 "with_$ac_useropt"
   1289 "*) ;;
   1290       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1291 	 ac_unrecognized_sep=', ';;
   1292     esac
   1293     eval with_$ac_useropt=no ;;
   1294 
   1295   --x)
   1296     # Obsolete; use --with-x.
   1297     with_x=yes ;;
   1298 
   1299   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1300   | --x-incl | --x-inc | --x-in | --x-i)
   1301     ac_prev=x_includes ;;
   1302   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1303   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1304     x_includes=$ac_optarg ;;
   1305 
   1306   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1307   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1308     ac_prev=x_libraries ;;
   1309   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1310   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1311     x_libraries=$ac_optarg ;;
   1312 
   1313   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1314 Try \`$0 --help' for more information"
   1315     ;;
   1316 
   1317   *=*)
   1318     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1319     # Reject names that are not valid shell variable names.
   1320     case $ac_envvar in #(
   1321       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1322       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1323     esac
   1324     eval $ac_envvar=\$ac_optarg
   1325     export $ac_envvar ;;
   1326 
   1327   *)
   1328     # FIXME: should be removed in autoconf 3.0.
   1329     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1330     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1331       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1332     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1333     ;;
   1334 
   1335   esac
   1336 done
   1337 
   1338 if test -n "$ac_prev"; then
   1339   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1340   as_fn_error $? "missing argument to $ac_option"
   1341 fi
   1342 
   1343 if test -n "$ac_unrecognized_opts"; then
   1344   case $enable_option_checking in
   1345     no) ;;
   1346     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1347     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1348   esac
   1349 fi
   1350 
   1351 # Check all directory arguments for consistency.
   1352 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1353 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1354 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1355 		libdir localedir mandir
   1356 do
   1357   eval ac_val=\$$ac_var
   1358   # Remove trailing slashes.
   1359   case $ac_val in
   1360     */ )
   1361       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1362       eval $ac_var=\$ac_val;;
   1363   esac
   1364   # Be sure to have absolute directory names.
   1365   case $ac_val in
   1366     [\\/$]* | ?:[\\/]* )  continue;;
   1367     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1368   esac
   1369   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1370 done
   1371 
   1372 # There might be people who depend on the old broken behavior: `$host'
   1373 # used to hold the argument of --host etc.
   1374 # FIXME: To remove some day.
   1375 build=$build_alias
   1376 host=$host_alias
   1377 target=$target_alias
   1378 
   1379 # FIXME: To remove some day.
   1380 if test "x$host_alias" != x; then
   1381   if test "x$build_alias" = x; then
   1382     cross_compiling=maybe
   1383   elif test "x$build_alias" != "x$host_alias"; then
   1384     cross_compiling=yes
   1385   fi
   1386 fi
   1387 
   1388 ac_tool_prefix=
   1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1390 
   1391 test "$silent" = yes && exec 6>/dev/null
   1392 
   1393 
   1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1395 ac_ls_di=`ls -di .` &&
   1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1397   as_fn_error $? "working directory cannot be determined"
   1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1399   as_fn_error $? "pwd does not report name of working directory"
   1400 
   1401 
   1402 # Find the source files, if location was not specified.
   1403 if test -z "$srcdir"; then
   1404   ac_srcdir_defaulted=yes
   1405   # Try the directory containing this script, then the parent directory.
   1406   ac_confdir=`$as_dirname -- "$as_myself" ||
   1407 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1408 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1409 	 X"$as_myself" : 'X\(//\)$' \| \
   1410 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1411 $as_echo X"$as_myself" |
   1412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1413 	    s//\1/
   1414 	    q
   1415 	  }
   1416 	  /^X\(\/\/\)[^/].*/{
   1417 	    s//\1/
   1418 	    q
   1419 	  }
   1420 	  /^X\(\/\/\)$/{
   1421 	    s//\1/
   1422 	    q
   1423 	  }
   1424 	  /^X\(\/\).*/{
   1425 	    s//\1/
   1426 	    q
   1427 	  }
   1428 	  s/.*/./; q'`
   1429   srcdir=$ac_confdir
   1430   if test ! -r "$srcdir/$ac_unique_file"; then
   1431     srcdir=..
   1432   fi
   1433 else
   1434   ac_srcdir_defaulted=no
   1435 fi
   1436 if test ! -r "$srcdir/$ac_unique_file"; then
   1437   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1438   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1439 fi
   1440 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1441 ac_abs_confdir=`(
   1442 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1443 	pwd)`
   1444 # When building in place, set srcdir=.
   1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1446   srcdir=.
   1447 fi
   1448 # Remove unnecessary trailing slashes from srcdir.
   1449 # Double slashes in file names in object file debugging info
   1450 # mess up M-x gdb in Emacs.
   1451 case $srcdir in
   1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1453 esac
   1454 case $srcdir in
   1455   *" "*)
   1456     as_fn_error $? "path to source, $srcdir, contains spaces"
   1457     ;;
   1458 esac
   1459 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
   1460 
   1461 for ac_var in $ac_precious_vars; do
   1462   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1463   eval ac_env_${ac_var}_value=\$${ac_var}
   1464   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1465   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1466 done
   1467 
   1468 #
   1469 # Report the --help message.
   1470 #
   1471 if test "$ac_init_help" = "long"; then
   1472   # Omit some internal or obsolete options to make the list less imposing.
   1473   # This message is too long to be a string in the A/UX 3.1 sh.
   1474   cat <<_ACEOF
   1475 \`configure' configures this package to adapt to many kinds of systems.
   1476 
   1477 Usage: $0 [OPTION]... [VAR=VALUE]...
   1478 
   1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1480 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1481 
   1482 Defaults for the options are specified in brackets.
   1483 
   1484 Configuration:
   1485   -h, --help              display this help and exit
   1486       --help=short        display options specific to this package
   1487       --help=recursive    display the short help of all the included packages
   1488   -V, --version           display version information and exit
   1489   -q, --quiet, --silent   do not print \`checking ...' messages
   1490       --cache-file=FILE   cache test results in FILE [disabled]
   1491   -C, --config-cache      alias for \`--cache-file=config.cache'
   1492   -n, --no-create         do not create output files
   1493       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1494 
   1495 Installation directories:
   1496   --prefix=PREFIX         install architecture-independent files in PREFIX
   1497                           [$ac_default_prefix]
   1498   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1499                           [PREFIX]
   1500 
   1501 By default, \`make install' will install all the files in
   1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1504 for instance \`--prefix=\$HOME'.
   1505 
   1506 For better control, use the options below.
   1507 
   1508 Fine tuning of the installation directories:
   1509   --bindir=DIR            user executables [EPREFIX/bin]
   1510   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1511   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1512   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1513   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1514   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1515   --libdir=DIR            object code libraries [EPREFIX/lib]
   1516   --includedir=DIR        C header files [PREFIX/include]
   1517   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1518   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1519   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1520   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1521   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1522   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1523   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1524   --htmldir=DIR           html documentation [DOCDIR]
   1525   --dvidir=DIR            dvi documentation [DOCDIR]
   1526   --pdfdir=DIR            pdf documentation [DOCDIR]
   1527   --psdir=DIR             ps documentation [DOCDIR]
   1528 _ACEOF
   1529 
   1530   cat <<\_ACEOF
   1531 
   1532 Program names:
   1533   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1534   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1535   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1536 
   1537 System types:
   1538   --build=BUILD     configure for building on BUILD [guessed]
   1539   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1540   --target=TARGET   configure for building compilers for TARGET [HOST]
   1541 _ACEOF
   1542 fi
   1543 
   1544 if test -n "$ac_init_help"; then
   1545 
   1546   cat <<\_ACEOF
   1547 
   1548 Optional Features:
   1549   --disable-option-checking  ignore unrecognized --enable/--with options
   1550   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1551   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1552   --enable-as-accelerator-for=ARG
   1553                           build as offload target compiler. Specify offload
   1554                           host triple by ARG
   1555   --enable-offload-targets=LIST
   1556                           enable offloading to devices from comma-separated
   1557                           LIST of TARGET[=DIR]. Use optional path to find
   1558                           offload target compiler during the build
   1559   --enable-offload-defaulted
   1560 		If enabled, configured but not installed offload compilers and
   1561 		libgomp plugins are silently ignored.  Useful for distribution
   1562 		compilers where those are in separate optional packages.
   1563 
   1564   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
   1565   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
   1566   --disable-gprofng       do not build gprofng
   1567   --enable-compressed-debug-sections={all,gas,gold,ld,none}
   1568                           Enable compressed debug sections for gas, gold or ld
   1569                           by default
   1570   --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
   1571                           Default compression algorithm for
   1572                           --enable-compressed-debug-sections.
   1573   --enable-year2038       enable support for timestamps past the year 2038
   1574   --disable-libquadmath   do not build libquadmath directory
   1575   --disable-libquadmath-support
   1576                           disable libquadmath support for Fortran
   1577   --enable-libada         build libada directory
   1578   --enable-libgm2         build libgm2 directory
   1579   --enable-libssp         build libssp directory
   1580   --disable-libstdcxx     do not build libstdc++-v3 directory
   1581   --enable-bootstrap      enable bootstrapping [yes if native build]
   1582   --enable-pgo-build[=lto]
   1583                           enable the PGO build
   1584   --disable-isl-version-check
   1585                           disable check for isl version
   1586   --enable-lto            enable link time optimization support
   1587   --enable-linker-plugin-configure-flags=FLAGS
   1588                           additional flags for configuring linker plugins
   1589                           [none]
   1590   --enable-linker-plugin-flags=FLAGS
   1591                           additional flags for configuring and building linker
   1592                           plugins [none]
   1593   --enable-host-pie       build position independent host executables
   1594   --enable-host-shared    build host code as shared libraries
   1595   --enable-libgdiagnostics
   1596                           build libgdiagnostics shared library
   1597   --enable-stage1-languages[=all]
   1598                           choose additional languages to build during stage1.
   1599                           Mostly useful for compiler development
   1600   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
   1601                           Objective-C runtime
   1602   --enable-vtable-verify  Enable vtable verification feature
   1603   --enable-serial-[{host,target,build}-]configure
   1604                           force sequential configuration of sub-packages for
   1605                           the host, target or build machine, or all
   1606                           sub-packages
   1607   --enable-maintainer-mode
   1608                           enable make rules and dependencies not useful (and
   1609                           sometimes confusing) to the casual installer
   1610   --enable-stage1-checking[=all]
   1611                           choose additional checking for stage1 of the
   1612                           compiler
   1613   --enable-werror         enable -Werror in bootstrap stage2 and later
   1614 
   1615 Optional Packages:
   1616   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1617   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1618   --with-build-libsubdir=DIR  Directory where to find libraries for build system
   1619   --with-system-zlib      use installed libz
   1620   --with-zstd             Support zstd compressed debug sections
   1621                           (default=auto)
   1622   --with-mpc=PATH         specify prefix directory for installed MPC package.
   1623                           Equivalent to --with-mpc-include=PATH/include plus
   1624                           --with-mpc-lib=PATH/lib
   1625   --with-mpc-include=PATH specify directory for installed MPC include files
   1626   --with-mpc-lib=PATH     specify directory for the installed MPC library
   1627   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
   1628                           Equivalent to --with-mpfr-include=PATH/include plus
   1629                           --with-mpfr-lib=PATH/lib
   1630   --with-mpfr-include=PATH
   1631                           specify directory for installed MPFR include files
   1632   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
   1633   --with-gmp=PATH         specify prefix directory for the installed GMP
   1634                           package. Equivalent to
   1635                           --with-gmp-include=PATH/include plus
   1636                           --with-gmp-lib=PATH/lib
   1637   --with-gmp-include=PATH specify directory for installed GMP include files
   1638   --with-gmp-lib=PATH     specify directory for the installed GMP library
   1639   --with-stage1-libs=LIBS libraries for stage1
   1640   --with-static-standard-libraries
   1641                           use -static-libstdc++ and -static-libgcc
   1642                           (default=auto)
   1643   --with-stage1-ldflags=FLAGS
   1644                           linker flags for stage1
   1645   --with-boot-libs=LIBS   libraries for stage2 and later
   1646   --with-boot-ldflags=FLAGS
   1647                           linker flags for stage2 and later
   1648   --with-isl=PATH         Specify prefix directory for the installed isl
   1649                           package. Equivalent to
   1650                           --with-isl-include=PATH/include plus
   1651                           --with-isl-lib=PATH/lib
   1652   --with-isl-include=PATH Specify directory for installed isl include files
   1653   --with-isl-lib=PATH     Specify the directory for the installed isl library
   1654   --with-target-bdw-gc=PATHLIST
   1655                           specify prefix directory for installed bdw-gc
   1656                           package. Equivalent to
   1657                           --with-target-bdw-gc-include=PATH/include plus
   1658                           --with-target-bdw-gc-lib=PATH/lib
   1659   --with-target-bdw-gc-include=PATHLIST
   1660                           specify directories for installed bdw-gc include
   1661                           files
   1662   --with-target-bdw-gc-lib=PATHLIST
   1663                           specify directories for installed bdw-gc library
   1664   --with-gcc-major-version-only
   1665                           use only GCC major number in filesystem paths
   1666   --with-build-sysroot=SYSROOT
   1667                           use sysroot as the system root during the build
   1668   --with-debug-prefix-map='A=B C=D ...'
   1669                           map A to B, C to D ... in debug information
   1670   --with-build-config='NAME NAME2...'
   1671                           use config/NAME.mk build configuration
   1672   --with-build-time-tools=PATH
   1673                           use given path to find target tools during the build
   1674 
   1675 Some influential environment variables:
   1676   CC          C compiler command
   1677   CFLAGS      C compiler flags
   1678   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1679               nonstandard directory <lib dir>
   1680   LIBS        libraries to pass to the linker, e.g. -l<library>
   1681   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1682               you have headers in a nonstandard directory <include dir>
   1683   CXX         C++ compiler command
   1684   CXXFLAGS    C++ compiler flags
   1685   build_configargs
   1686               additional configure arguments for build directories
   1687   host_configargs
   1688               additional configure arguments for host directories
   1689   target_configargs
   1690               additional configure arguments for target directories
   1691   AR          AR for the host
   1692   AS          AS for the host
   1693   DLLTOOL     DLLTOOL for the host
   1694   DSYMUTIL    DSYMUTIL for the host
   1695   LD          LD for the host
   1696   LIPO        LIPO for the host
   1697   NM          NM for the host
   1698   RANLIB      RANLIB for the host
   1699   STRIP       STRIP for the host
   1700   WINDRES     WINDRES for the host
   1701   WINDMC      WINDMC for the host
   1702   OBJCOPY     OBJCOPY for the host
   1703   OBJDUMP     OBJDUMP for the host
   1704   OTOOL       OTOOL for the host
   1705   READELF     READELF for the host
   1706   CPP         C preprocessor
   1707   CC_FOR_TARGET
   1708               CC for the target
   1709   CXX_FOR_TARGET
   1710               CXX for the target
   1711   GCC_FOR_TARGET
   1712               GCC for the target
   1713   GFORTRAN_FOR_TARGET
   1714               GFORTRAN for the target
   1715   GOC_FOR_TARGET
   1716               GOC for the target
   1717   GDC_FOR_TARGET
   1718               GDC for the target
   1719   GM2_FOR_TARGET
   1720               GM2 for the target
   1721   AR_FOR_TARGET
   1722               AR for the target
   1723   AS_FOR_TARGET
   1724               AS for the target
   1725   DLLTOOL_FOR_TARGET
   1726               DLLTOOL for the target
   1727   DSYMUTIL_FOR_TARGET
   1728               DSYMUTIL for the target
   1729   LD_FOR_TARGET
   1730               LD for the target
   1731   LIPO_FOR_TARGET
   1732               LIPO for the target
   1733   NM_FOR_TARGET
   1734               NM for the target
   1735   OBJCOPY_FOR_TARGET
   1736               OBJCOPY for the target
   1737   OBJDUMP_FOR_TARGET
   1738               OBJDUMP for the target
   1739   OTOOL_FOR_TARGET
   1740               OTOOL for the target
   1741   RANLIB_FOR_TARGET
   1742               RANLIB for the target
   1743   READELF_FOR_TARGET
   1744               READELF for the target
   1745   STRIP_FOR_TARGET
   1746               STRIP for the target
   1747   WINDRES_FOR_TARGET
   1748               WINDRES for the target
   1749   WINDMC_FOR_TARGET
   1750               WINDMC for the target
   1751 
   1752 Use these variables to override the choices made by `configure' or to help
   1753 it to find libraries and programs with nonstandard names/locations.
   1754 
   1755 Report bugs to the package provider.
   1756 _ACEOF
   1757 ac_status=$?
   1758 fi
   1759 
   1760 if test "$ac_init_help" = "recursive"; then
   1761   # If there are subdirs, report their specific --help.
   1762   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1763     test -d "$ac_dir" ||
   1764       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1765       continue
   1766     ac_builddir=.
   1767 
   1768 case "$ac_dir" in
   1769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1770 *)
   1771   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1772   # A ".." for each directory in $ac_dir_suffix.
   1773   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1774   case $ac_top_builddir_sub in
   1775   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1776   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1777   esac ;;
   1778 esac
   1779 ac_abs_top_builddir=$ac_pwd
   1780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1781 # for backward compatibility:
   1782 ac_top_builddir=$ac_top_build_prefix
   1783 
   1784 case $srcdir in
   1785   .)  # We are building in place.
   1786     ac_srcdir=.
   1787     ac_top_srcdir=$ac_top_builddir_sub
   1788     ac_abs_top_srcdir=$ac_pwd ;;
   1789   [\\/]* | ?:[\\/]* )  # Absolute name.
   1790     ac_srcdir=$srcdir$ac_dir_suffix;
   1791     ac_top_srcdir=$srcdir
   1792     ac_abs_top_srcdir=$srcdir ;;
   1793   *) # Relative name.
   1794     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1795     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1796     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1797 esac
   1798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1799 
   1800     cd "$ac_dir" || { ac_status=$?; continue; }
   1801     # Check for guested configure.
   1802     if test -f "$ac_srcdir/configure.gnu"; then
   1803       echo &&
   1804       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1805     elif test -f "$ac_srcdir/configure"; then
   1806       echo &&
   1807       $SHELL "$ac_srcdir/configure" --help=recursive
   1808     else
   1809       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1810     fi || ac_status=$?
   1811     cd "$ac_pwd" || { ac_status=$?; break; }
   1812   done
   1813 fi
   1814 
   1815 test -n "$ac_init_help" && exit $ac_status
   1816 if $ac_init_version; then
   1817   cat <<\_ACEOF
   1818 configure
   1819 generated by GNU Autoconf 2.69
   1820 
   1821 Copyright (C) 2012 Free Software Foundation, Inc.
   1822 This configure script is free software; the Free Software Foundation
   1823 gives unlimited permission to copy, distribute and modify it.
   1824 _ACEOF
   1825   exit
   1826 fi
   1827 
   1828 ## ------------------------ ##
   1829 ## Autoconf initialization. ##
   1830 ## ------------------------ ##
   1831 
   1832 # ac_fn_c_try_compile LINENO
   1833 # --------------------------
   1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1835 ac_fn_c_try_compile ()
   1836 {
   1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1838   rm -f conftest.$ac_objext
   1839   if { { ac_try="$ac_compile"
   1840 case "(($ac_try" in
   1841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1842   *) ac_try_echo=$ac_try;;
   1843 esac
   1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1845 $as_echo "$ac_try_echo"; } >&5
   1846   (eval "$ac_compile") 2>conftest.err
   1847   ac_status=$?
   1848   if test -s conftest.err; then
   1849     grep -v '^ *+' conftest.err >conftest.er1
   1850     cat conftest.er1 >&5
   1851     mv -f conftest.er1 conftest.err
   1852   fi
   1853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1854   test $ac_status = 0; } && {
   1855 	 test -z "$ac_c_werror_flag" ||
   1856 	 test ! -s conftest.err
   1857        } && test -s conftest.$ac_objext; then :
   1858   ac_retval=0
   1859 else
   1860   $as_echo "$as_me: failed program was:" >&5
   1861 sed 's/^/| /' conftest.$ac_ext >&5
   1862 
   1863 	ac_retval=1
   1864 fi
   1865   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1866   as_fn_set_status $ac_retval
   1867 
   1868 } # ac_fn_c_try_compile
   1869 
   1870 # ac_fn_cxx_try_compile LINENO
   1871 # ----------------------------
   1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1873 ac_fn_cxx_try_compile ()
   1874 {
   1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1876   rm -f conftest.$ac_objext
   1877   if { { ac_try="$ac_compile"
   1878 case "(($ac_try" in
   1879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1880   *) ac_try_echo=$ac_try;;
   1881 esac
   1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1883 $as_echo "$ac_try_echo"; } >&5
   1884   (eval "$ac_compile") 2>conftest.err
   1885   ac_status=$?
   1886   if test -s conftest.err; then
   1887     grep -v '^ *+' conftest.err >conftest.er1
   1888     cat conftest.er1 >&5
   1889     mv -f conftest.er1 conftest.err
   1890   fi
   1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1892   test $ac_status = 0; } && {
   1893 	 test -z "$ac_cxx_werror_flag" ||
   1894 	 test ! -s conftest.err
   1895        } && test -s conftest.$ac_objext; then :
   1896   ac_retval=0
   1897 else
   1898   $as_echo "$as_me: failed program was:" >&5
   1899 sed 's/^/| /' conftest.$ac_ext >&5
   1900 
   1901 	ac_retval=1
   1902 fi
   1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1904   as_fn_set_status $ac_retval
   1905 
   1906 } # ac_fn_cxx_try_compile
   1907 
   1908 # ac_fn_cxx_try_link LINENO
   1909 # -------------------------
   1910 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1911 ac_fn_cxx_try_link ()
   1912 {
   1913   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1914   rm -f conftest.$ac_objext conftest$ac_exeext
   1915   if { { ac_try="$ac_link"
   1916 case "(($ac_try" in
   1917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1918   *) ac_try_echo=$ac_try;;
   1919 esac
   1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1921 $as_echo "$ac_try_echo"; } >&5
   1922   (eval "$ac_link") 2>conftest.err
   1923   ac_status=$?
   1924   if test -s conftest.err; then
   1925     grep -v '^ *+' conftest.err >conftest.er1
   1926     cat conftest.er1 >&5
   1927     mv -f conftest.er1 conftest.err
   1928   fi
   1929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1930   test $ac_status = 0; } && {
   1931 	 test -z "$ac_cxx_werror_flag" ||
   1932 	 test ! -s conftest.err
   1933        } && test -s conftest$ac_exeext && {
   1934 	 test "$cross_compiling" = yes ||
   1935 	 test -x conftest$ac_exeext
   1936        }; then :
   1937   ac_retval=0
   1938 else
   1939   $as_echo "$as_me: failed program was:" >&5
   1940 sed 's/^/| /' conftest.$ac_ext >&5
   1941 
   1942 	ac_retval=1
   1943 fi
   1944   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1945   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1946   # interfere with the next link command; also delete a directory that is
   1947   # left behind by Apple's compiler.  We do this before executing the actions.
   1948   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1950   as_fn_set_status $ac_retval
   1951 
   1952 } # ac_fn_cxx_try_link
   1953 
   1954 # ac_fn_c_try_link LINENO
   1955 # -----------------------
   1956 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1957 ac_fn_c_try_link ()
   1958 {
   1959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1960   rm -f conftest.$ac_objext conftest$ac_exeext
   1961   if { { ac_try="$ac_link"
   1962 case "(($ac_try" in
   1963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1964   *) ac_try_echo=$ac_try;;
   1965 esac
   1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1967 $as_echo "$ac_try_echo"; } >&5
   1968   (eval "$ac_link") 2>conftest.err
   1969   ac_status=$?
   1970   if test -s conftest.err; then
   1971     grep -v '^ *+' conftest.err >conftest.er1
   1972     cat conftest.er1 >&5
   1973     mv -f conftest.er1 conftest.err
   1974   fi
   1975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1976   test $ac_status = 0; } && {
   1977 	 test -z "$ac_c_werror_flag" ||
   1978 	 test ! -s conftest.err
   1979        } && test -s conftest$ac_exeext && {
   1980 	 test "$cross_compiling" = yes ||
   1981 	 test -x conftest$ac_exeext
   1982        }; then :
   1983   ac_retval=0
   1984 else
   1985   $as_echo "$as_me: failed program was:" >&5
   1986 sed 's/^/| /' conftest.$ac_ext >&5
   1987 
   1988 	ac_retval=1
   1989 fi
   1990   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1991   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1992   # interfere with the next link command; also delete a directory that is
   1993   # left behind by Apple's compiler.  We do this before executing the actions.
   1994   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1995   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1996   as_fn_set_status $ac_retval
   1997 
   1998 } # ac_fn_c_try_link
   1999 
   2000 # ac_fn_c_try_cpp LINENO
   2001 # ----------------------
   2002 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   2003 ac_fn_c_try_cpp ()
   2004 {
   2005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2006   if { { ac_try="$ac_cpp conftest.$ac_ext"
   2007 case "(($ac_try" in
   2008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2009   *) ac_try_echo=$ac_try;;
   2010 esac
   2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2012 $as_echo "$ac_try_echo"; } >&5
   2013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   2014   ac_status=$?
   2015   if test -s conftest.err; then
   2016     grep -v '^ *+' conftest.err >conftest.er1
   2017     cat conftest.er1 >&5
   2018     mv -f conftest.er1 conftest.err
   2019   fi
   2020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2021   test $ac_status = 0; } > conftest.i && {
   2022 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   2023 	 test ! -s conftest.err
   2024        }; then :
   2025   ac_retval=0
   2026 else
   2027   $as_echo "$as_me: failed program was:" >&5
   2028 sed 's/^/| /' conftest.$ac_ext >&5
   2029 
   2030     ac_retval=1
   2031 fi
   2032   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2033   as_fn_set_status $ac_retval
   2034 
   2035 } # ac_fn_c_try_cpp
   2036 cat >config.log <<_ACEOF
   2037 This file contains any messages produced by compilers while
   2038 running configure, to aid debugging if configure makes a mistake.
   2039 
   2040 It was created by $as_me, which was
   2041 generated by GNU Autoconf 2.69.  Invocation command line was
   2042 
   2043   $ $0 $@
   2044 
   2045 _ACEOF
   2046 exec 5>>config.log
   2047 {
   2048 cat <<_ASUNAME
   2049 ## --------- ##
   2050 ## Platform. ##
   2051 ## --------- ##
   2052 
   2053 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2054 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2055 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2056 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2057 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2058 
   2059 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2060 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2061 
   2062 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2063 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2064 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2065 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2066 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2067 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2068 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2069 
   2070 _ASUNAME
   2071 
   2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2073 for as_dir in $PATH
   2074 do
   2075   IFS=$as_save_IFS
   2076   test -z "$as_dir" && as_dir=.
   2077     $as_echo "PATH: $as_dir"
   2078   done
   2079 IFS=$as_save_IFS
   2080 
   2081 } >&5
   2082 
   2083 cat >&5 <<_ACEOF
   2084 
   2085 
   2086 ## ----------- ##
   2087 ## Core tests. ##
   2088 ## ----------- ##
   2089 
   2090 _ACEOF
   2091 
   2092 
   2093 # Keep a trace of the command line.
   2094 # Strip out --no-create and --no-recursion so they do not pile up.
   2095 # Strip out --silent because we don't want to record it for future runs.
   2096 # Also quote any args containing shell meta-characters.
   2097 # Make two passes to allow for proper duplicate-argument suppression.
   2098 ac_configure_args=
   2099 ac_configure_args0=
   2100 ac_configure_args1=
   2101 ac_must_keep_next=false
   2102 for ac_pass in 1 2
   2103 do
   2104   for ac_arg
   2105   do
   2106     case $ac_arg in
   2107     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2108     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2109     | -silent | --silent | --silen | --sile | --sil)
   2110       continue ;;
   2111     *\'*)
   2112       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2113     esac
   2114     case $ac_pass in
   2115     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2116     2)
   2117       as_fn_append ac_configure_args1 " '$ac_arg'"
   2118       if test $ac_must_keep_next = true; then
   2119 	ac_must_keep_next=false # Got value, back to normal.
   2120       else
   2121 	case $ac_arg in
   2122 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2123 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2124 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2125 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2126 	    case "$ac_configure_args0 " in
   2127 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2128 	    esac
   2129 	    ;;
   2130 	  -* ) ac_must_keep_next=true ;;
   2131 	esac
   2132       fi
   2133       as_fn_append ac_configure_args " '$ac_arg'"
   2134       ;;
   2135     esac
   2136   done
   2137 done
   2138 { ac_configure_args0=; unset ac_configure_args0;}
   2139 { ac_configure_args1=; unset ac_configure_args1;}
   2140 
   2141 # When interrupted or exit'd, cleanup temporary files, and complete
   2142 # config.log.  We remove comments because anyway the quotes in there
   2143 # would cause problems or look ugly.
   2144 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2145 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2146 trap 'exit_status=$?
   2147   # Save into config.log some information that might help in debugging.
   2148   {
   2149     echo
   2150 
   2151     $as_echo "## ---------------- ##
   2152 ## Cache variables. ##
   2153 ## ---------------- ##"
   2154     echo
   2155     # The following way of writing the cache mishandles newlines in values,
   2156 (
   2157   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2158     eval ac_val=\$$ac_var
   2159     case $ac_val in #(
   2160     *${as_nl}*)
   2161       case $ac_var in #(
   2162       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2163 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2164       esac
   2165       case $ac_var in #(
   2166       _ | IFS | as_nl) ;; #(
   2167       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2168       *) { eval $ac_var=; unset $ac_var;} ;;
   2169       esac ;;
   2170     esac
   2171   done
   2172   (set) 2>&1 |
   2173     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2174     *${as_nl}ac_space=\ *)
   2175       sed -n \
   2176 	"s/'\''/'\''\\\\'\'''\''/g;
   2177 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2178       ;; #(
   2179     *)
   2180       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2181       ;;
   2182     esac |
   2183     sort
   2184 )
   2185     echo
   2186 
   2187     $as_echo "## ----------------- ##
   2188 ## Output variables. ##
   2189 ## ----------------- ##"
   2190     echo
   2191     for ac_var in $ac_subst_vars
   2192     do
   2193       eval ac_val=\$$ac_var
   2194       case $ac_val in
   2195       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2196       esac
   2197       $as_echo "$ac_var='\''$ac_val'\''"
   2198     done | sort
   2199     echo
   2200 
   2201     if test -n "$ac_subst_files"; then
   2202       $as_echo "## ------------------- ##
   2203 ## File substitutions. ##
   2204 ## ------------------- ##"
   2205       echo
   2206       for ac_var in $ac_subst_files
   2207       do
   2208 	eval ac_val=\$$ac_var
   2209 	case $ac_val in
   2210 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2211 	esac
   2212 	$as_echo "$ac_var='\''$ac_val'\''"
   2213       done | sort
   2214       echo
   2215     fi
   2216 
   2217     if test -s confdefs.h; then
   2218       $as_echo "## ----------- ##
   2219 ## confdefs.h. ##
   2220 ## ----------- ##"
   2221       echo
   2222       cat confdefs.h
   2223       echo
   2224     fi
   2225     test "$ac_signal" != 0 &&
   2226       $as_echo "$as_me: caught signal $ac_signal"
   2227     $as_echo "$as_me: exit $exit_status"
   2228   } >&5
   2229   rm -f core *.core core.conftest.* &&
   2230     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2231     exit $exit_status
   2232 ' 0
   2233 for ac_signal in 1 2 13 15; do
   2234   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2235 done
   2236 ac_signal=0
   2237 
   2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2239 rm -f -r conftest* confdefs.h
   2240 
   2241 $as_echo "/* confdefs.h */" > confdefs.h
   2242 
   2243 # Predefined preprocessor variables.
   2244 
   2245 cat >>confdefs.h <<_ACEOF
   2246 #define PACKAGE_NAME "$PACKAGE_NAME"
   2247 _ACEOF
   2248 
   2249 cat >>confdefs.h <<_ACEOF
   2250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2251 _ACEOF
   2252 
   2253 cat >>confdefs.h <<_ACEOF
   2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2255 _ACEOF
   2256 
   2257 cat >>confdefs.h <<_ACEOF
   2258 #define PACKAGE_STRING "$PACKAGE_STRING"
   2259 _ACEOF
   2260 
   2261 cat >>confdefs.h <<_ACEOF
   2262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2263 _ACEOF
   2264 
   2265 cat >>confdefs.h <<_ACEOF
   2266 #define PACKAGE_URL "$PACKAGE_URL"
   2267 _ACEOF
   2268 
   2269 
   2270 # Let the site file select an alternate cache file if it wants to.
   2271 # Prefer an explicitly selected file to automatically selected ones.
   2272 ac_site_file1=NONE
   2273 ac_site_file2=NONE
   2274 if test -n "$CONFIG_SITE"; then
   2275   # We do not want a PATH search for config.site.
   2276   case $CONFIG_SITE in #((
   2277     -*)  ac_site_file1=./$CONFIG_SITE;;
   2278     */*) ac_site_file1=$CONFIG_SITE;;
   2279     *)   ac_site_file1=./$CONFIG_SITE;;
   2280   esac
   2281 elif test "x$prefix" != xNONE; then
   2282   ac_site_file1=$prefix/share/config.site
   2283   ac_site_file2=$prefix/etc/config.site
   2284 else
   2285   ac_site_file1=$ac_default_prefix/share/config.site
   2286   ac_site_file2=$ac_default_prefix/etc/config.site
   2287 fi
   2288 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2289 do
   2290   test "x$ac_site_file" = xNONE && continue
   2291   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2292     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2293 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2294     sed 's/^/| /' "$ac_site_file" >&5
   2295     . "$ac_site_file" \
   2296       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2298 as_fn_error $? "failed to load site script $ac_site_file
   2299 See \`config.log' for more details" "$LINENO" 5; }
   2300   fi
   2301 done
   2302 
   2303 if test -r "$cache_file"; then
   2304   # Some versions of bash will fail to source /dev/null (special files
   2305   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2306   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2307     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2308 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2309     case $cache_file in
   2310       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2311       *)                      . "./$cache_file";;
   2312     esac
   2313   fi
   2314 else
   2315   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2316 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2317   >$cache_file
   2318 fi
   2319 
   2320 # Check that the precious variables saved in the cache have kept the same
   2321 # value.
   2322 ac_cache_corrupted=false
   2323 for ac_var in $ac_precious_vars; do
   2324   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2325   eval ac_new_set=\$ac_env_${ac_var}_set
   2326   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2327   eval ac_new_val=\$ac_env_${ac_var}_value
   2328   case $ac_old_set,$ac_new_set in
   2329     set,)
   2330       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2331 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2332       ac_cache_corrupted=: ;;
   2333     ,set)
   2334       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2335 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2336       ac_cache_corrupted=: ;;
   2337     ,);;
   2338     *)
   2339       if test "x$ac_old_val" != "x$ac_new_val"; then
   2340 	# differences in whitespace do not lead to failure.
   2341 	ac_old_val_w=`echo x $ac_old_val`
   2342 	ac_new_val_w=`echo x $ac_new_val`
   2343 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2344 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2345 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2346 	  ac_cache_corrupted=:
   2347 	else
   2348 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2349 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2350 	  eval $ac_var=\$ac_old_val
   2351 	fi
   2352 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2353 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2354 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2355 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2356       fi;;
   2357   esac
   2358   # Pass precious variables to config.status.
   2359   if test "$ac_new_set" = set; then
   2360     case $ac_new_val in
   2361     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2362     *) ac_arg=$ac_var=$ac_new_val ;;
   2363     esac
   2364     case " $ac_configure_args " in
   2365       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2366       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2367     esac
   2368   fi
   2369 done
   2370 if $ac_cache_corrupted; then
   2371   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2373   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2374 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2375   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2376 fi
   2377 ## -------------------- ##
   2378 ## Main body of script. ##
   2379 ## -------------------- ##
   2380 
   2381 ac_ext=c
   2382 ac_cpp='$CPP $CPPFLAGS'
   2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2386 
   2387 
   2388 
   2389 
   2390 
   2391 
   2392 
   2393 
   2394 
   2395 progname=$0
   2396 # if PWD already has a value, it is probably wrong.
   2397 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
   2398 
   2399 # Export original configure arguments for use by sub-configures.
   2400 # Quote arguments with shell meta charatcers.
   2401 TOPLEVEL_CONFIGURE_ARGUMENTS=
   2402 set -- "$progname" "$@"
   2403 for ac_arg
   2404 do
   2405   case "$ac_arg" in
   2406   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
   2407     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
   2408     # if the argument is of the form -foo=baz, quote the baz part only
   2409     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
   2410   *) ;;
   2411   esac
   2412   # Add the quoted argument to the list.
   2413   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
   2414 done
   2415 if test "$silent" = yes; then
   2416   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
   2417 fi
   2418 # Remove the initial space we just introduced and, as these will be
   2419 # expanded by make, quote '$'.
   2420 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
   2421 
   2422 
   2423 # Find the build, host, and target systems.
   2424 ac_aux_dir=
   2425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2426   if test -f "$ac_dir/install-sh"; then
   2427     ac_aux_dir=$ac_dir
   2428     ac_install_sh="$ac_aux_dir/install-sh -c"
   2429     break
   2430   elif test -f "$ac_dir/install.sh"; then
   2431     ac_aux_dir=$ac_dir
   2432     ac_install_sh="$ac_aux_dir/install.sh -c"
   2433     break
   2434   elif test -f "$ac_dir/shtool"; then
   2435     ac_aux_dir=$ac_dir
   2436     ac_install_sh="$ac_aux_dir/shtool install -c"
   2437     break
   2438   fi
   2439 done
   2440 if test -z "$ac_aux_dir"; then
   2441   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2442 fi
   2443 
   2444 # These three variables are undocumented and unsupported,
   2445 # and are intended to be withdrawn in a future Autoconf release.
   2446 # They can cause serious problems if a builder's source tree is in a directory
   2447 # whose full name contains unusual characters.
   2448 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2449 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2450 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2451 
   2452 
   2453 # Make sure we can run config.sub.
   2454 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2455   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2456 
   2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2458 $as_echo_n "checking build system type... " >&6; }
   2459 if ${ac_cv_build+:} false; then :
   2460   $as_echo_n "(cached) " >&6
   2461 else
   2462   ac_build_alias=$build_alias
   2463 test "x$ac_build_alias" = x &&
   2464   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2465 test "x$ac_build_alias" = x &&
   2466   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2467 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2468   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2469 
   2470 fi
   2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2472 $as_echo "$ac_cv_build" >&6; }
   2473 case $ac_cv_build in
   2474 *-*-*) ;;
   2475 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2476 esac
   2477 build=$ac_cv_build
   2478 ac_save_IFS=$IFS; IFS='-'
   2479 set x $ac_cv_build
   2480 shift
   2481 build_cpu=$1
   2482 build_vendor=$2
   2483 shift; shift
   2484 # Remember, the first character of IFS is used to create $*,
   2485 # except with old shells:
   2486 build_os=$*
   2487 IFS=$ac_save_IFS
   2488 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2489 
   2490 
   2491  case ${build_alias} in
   2492   "") build_noncanonical=${build} ;;
   2493   *) build_noncanonical=${build_alias} ;;
   2494 esac
   2495 
   2496 
   2497 
   2498  case ${host_alias} in
   2499   "") host_noncanonical=${build_noncanonical} ;;
   2500   *) host_noncanonical=${host_alias} ;;
   2501 esac
   2502 
   2503 
   2504 
   2505  case ${target_alias} in
   2506   "") target_noncanonical=${host_noncanonical} ;;
   2507   *) target_noncanonical=${target_alias} ;;
   2508 esac
   2509 
   2510 
   2511 
   2512 
   2513 test "$host_noncanonical" = "$target_noncanonical" &&
   2514   test "$program_prefix$program_suffix$program_transform_name" = \
   2515     NONENONEs,x,x, &&
   2516   program_transform_name=s,y,y,
   2517 
   2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2519 $as_echo_n "checking host system type... " >&6; }
   2520 if ${ac_cv_host+:} false; then :
   2521   $as_echo_n "(cached) " >&6
   2522 else
   2523   if test "x$host_alias" = x; then
   2524   ac_cv_host=$ac_cv_build
   2525 else
   2526   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2527     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2528 fi
   2529 
   2530 fi
   2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2532 $as_echo "$ac_cv_host" >&6; }
   2533 case $ac_cv_host in
   2534 *-*-*) ;;
   2535 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2536 esac
   2537 host=$ac_cv_host
   2538 ac_save_IFS=$IFS; IFS='-'
   2539 set x $ac_cv_host
   2540 shift
   2541 host_cpu=$1
   2542 host_vendor=$2
   2543 shift; shift
   2544 # Remember, the first character of IFS is used to create $*,
   2545 # except with old shells:
   2546 host_os=$*
   2547 IFS=$ac_save_IFS
   2548 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2549 
   2550 
   2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   2552 $as_echo_n "checking target system type... " >&6; }
   2553 if ${ac_cv_target+:} false; then :
   2554   $as_echo_n "(cached) " >&6
   2555 else
   2556   if test "x$target_alias" = x; then
   2557   ac_cv_target=$ac_cv_host
   2558 else
   2559   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   2560     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   2561 fi
   2562 
   2563 fi
   2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   2565 $as_echo "$ac_cv_target" >&6; }
   2566 case $ac_cv_target in
   2567 *-*-*) ;;
   2568 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   2569 esac
   2570 target=$ac_cv_target
   2571 ac_save_IFS=$IFS; IFS='-'
   2572 set x $ac_cv_target
   2573 shift
   2574 target_cpu=$1
   2575 target_vendor=$2
   2576 shift; shift
   2577 # Remember, the first character of IFS is used to create $*,
   2578 # except with old shells:
   2579 target_os=$*
   2580 IFS=$ac_save_IFS
   2581 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   2582 
   2583 
   2584 # The aliases save the names the user supplied, while $host etc.
   2585 # will get canonicalized.
   2586 test -n "$target_alias" &&
   2587   test "$program_prefix$program_suffix$program_transform_name" = \
   2588     NONENONEs,x,x, &&
   2589   program_prefix=${target_alias}-
   2590 test "$program_prefix" != NONE &&
   2591   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2592 # Use a double $ so make ignores it.
   2593 test "$program_suffix" != NONE &&
   2594   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   2595 # Double any \ or $.
   2596 # By default was `s,x,x', remove it if useless.
   2597 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   2598 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   2599 
   2600 
   2601 
   2602 # Get 'install' or 'install-sh' and its variants.
   2603 # Find a good install program.  We prefer a C program (faster),
   2604 # so one script is as good as another.  But avoid the broken or
   2605 # incompatible versions:
   2606 # SysV /etc/install, /usr/sbin/install
   2607 # SunOS /usr/etc/install
   2608 # IRIX /sbin/install
   2609 # AIX /bin/install
   2610 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2614 # OS/2's system install, which has a completely different semantic
   2615 # ./install, which can be erroneously created by make from ./install.sh.
   2616 # Reject install programs that cannot install multiple files.
   2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   2618 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2619 if test -z "$INSTALL"; then
   2620 if ${ac_cv_path_install+:} false; then :
   2621   $as_echo_n "(cached) " >&6
   2622 else
   2623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2624 for as_dir in $PATH
   2625 do
   2626   IFS=$as_save_IFS
   2627   test -z "$as_dir" && as_dir=.
   2628     # Account for people who put trailing slashes in PATH elements.
   2629 case $as_dir/ in #((
   2630   ./ | .// | /[cC]/* | \
   2631   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2632   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   2633   /usr/ucb/* ) ;;
   2634   *)
   2635     # OSF1 and SCO ODT 3.0 have their own names for install.
   2636     # Don't use installbsd from OSF since it installs stuff as root
   2637     # by default.
   2638     for ac_prog in ginstall scoinst install; do
   2639       for ac_exec_ext in '' $ac_executable_extensions; do
   2640 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   2641 	  if test $ac_prog = install &&
   2642 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2643 	    # AIX install.  It has an incompatible calling convention.
   2644 	    :
   2645 	  elif test $ac_prog = install &&
   2646 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2647 	    # program-specific install script used by HP pwplus--don't use.
   2648 	    :
   2649 	  else
   2650 	    rm -rf conftest.one conftest.two conftest.dir
   2651 	    echo one > conftest.one
   2652 	    echo two > conftest.two
   2653 	    mkdir conftest.dir
   2654 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   2655 	      test -s conftest.one && test -s conftest.two &&
   2656 	      test -s conftest.dir/conftest.one &&
   2657 	      test -s conftest.dir/conftest.two
   2658 	    then
   2659 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2660 	      break 3
   2661 	    fi
   2662 	  fi
   2663 	fi
   2664       done
   2665     done
   2666     ;;
   2667 esac
   2668 
   2669   done
   2670 IFS=$as_save_IFS
   2671 
   2672 rm -rf conftest.one conftest.two conftest.dir
   2673 
   2674 fi
   2675   if test "${ac_cv_path_install+set}" = set; then
   2676     INSTALL=$ac_cv_path_install
   2677   else
   2678     # As a last resort, use the slow shell script.  Don't cache a
   2679     # value for INSTALL within a source directory, because that will
   2680     # break other packages using the cache if that directory is
   2681     # removed, or if the value is a relative name.
   2682     INSTALL=$ac_install_sh
   2683   fi
   2684 fi
   2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   2686 $as_echo "$INSTALL" >&6; }
   2687 
   2688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2689 # It thinks the first close brace ends the variable substitution.
   2690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2691 
   2692 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2693 
   2694 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2695 
   2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
   2697 $as_echo_n "checking whether ln works... " >&6; }
   2698 if ${acx_cv_prog_LN+:} false; then :
   2699   $as_echo_n "(cached) " >&6
   2700 else
   2701   rm -f conftestdata_t
   2702 echo >conftestdata_f
   2703 if ln conftestdata_f conftestdata_t 2>/dev/null
   2704 then
   2705   acx_cv_prog_LN=ln
   2706 else
   2707   acx_cv_prog_LN=no
   2708 fi
   2709 rm -f conftestdata_f conftestdata_t
   2710 
   2711 fi
   2712 if test $acx_cv_prog_LN = no; then
   2713   LN="cp"
   2714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
   2715 $as_echo "no, using $LN" >&6; }
   2716 else
   2717   LN="$acx_cv_prog_LN"
   2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2719 $as_echo "yes" >&6; }
   2720 fi
   2721 
   2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   2723 $as_echo_n "checking whether ln -s works... " >&6; }
   2724 LN_S=$as_ln_s
   2725 if test "$LN_S" = "ln -s"; then
   2726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2727 $as_echo "yes" >&6; }
   2728 else
   2729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   2730 $as_echo "no, using $LN_S" >&6; }
   2731 fi
   2732 
   2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   2734 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   2735 if ${ac_cv_path_SED+:} false; then :
   2736   $as_echo_n "(cached) " >&6
   2737 else
   2738             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   2739      for ac_i in 1 2 3 4 5 6 7; do
   2740        ac_script="$ac_script$as_nl$ac_script"
   2741      done
   2742      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   2743      { ac_script=; unset ac_script;}
   2744      if test -z "$SED"; then
   2745   ac_path_SED_found=false
   2746   # Loop through the user's path and test for each of PROGNAME-LIST
   2747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2748 for as_dir in $PATH
   2749 do
   2750   IFS=$as_save_IFS
   2751   test -z "$as_dir" && as_dir=.
   2752     for ac_prog in sed gsed; do
   2753     for ac_exec_ext in '' $ac_executable_extensions; do
   2754       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   2755       as_fn_executable_p "$ac_path_SED" || continue
   2756 # Check for GNU ac_path_SED and select it if it is found.
   2757   # Check for GNU $ac_path_SED
   2758 case `"$ac_path_SED" --version 2>&1` in
   2759 *GNU*)
   2760   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   2761 *)
   2762   ac_count=0
   2763   $as_echo_n 0123456789 >"conftest.in"
   2764   while :
   2765   do
   2766     cat "conftest.in" "conftest.in" >"conftest.tmp"
   2767     mv "conftest.tmp" "conftest.in"
   2768     cp "conftest.in" "conftest.nl"
   2769     $as_echo '' >> "conftest.nl"
   2770     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   2771     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   2772     as_fn_arith $ac_count + 1 && ac_count=$as_val
   2773     if test $ac_count -gt ${ac_path_SED_max-0}; then
   2774       # Best one so far, save it but keep looking for a better one
   2775       ac_cv_path_SED="$ac_path_SED"
   2776       ac_path_SED_max=$ac_count
   2777     fi
   2778     # 10*(2^10) chars as input seems more than enough
   2779     test $ac_count -gt 10 && break
   2780   done
   2781   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   2782 esac
   2783 
   2784       $ac_path_SED_found && break 3
   2785     done
   2786   done
   2787   done
   2788 IFS=$as_save_IFS
   2789   if test -z "$ac_cv_path_SED"; then
   2790     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   2791   fi
   2792 else
   2793   ac_cv_path_SED=$SED
   2794 fi
   2795 
   2796 fi
   2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   2798 $as_echo "$ac_cv_path_SED" >&6; }
   2799  SED="$ac_cv_path_SED"
   2800   rm -f conftest.sed
   2801 
   2802 for ac_prog in gawk mawk nawk awk
   2803 do
   2804   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2805 set dummy $ac_prog; ac_word=$2
   2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2807 $as_echo_n "checking for $ac_word... " >&6; }
   2808 if ${ac_cv_prog_AWK+:} false; then :
   2809   $as_echo_n "(cached) " >&6
   2810 else
   2811   if test -n "$AWK"; then
   2812   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2813 else
   2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2815 for as_dir in $PATH
   2816 do
   2817   IFS=$as_save_IFS
   2818   test -z "$as_dir" && as_dir=.
   2819     for ac_exec_ext in '' $ac_executable_extensions; do
   2820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2821     ac_cv_prog_AWK="$ac_prog"
   2822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2823     break 2
   2824   fi
   2825 done
   2826   done
   2827 IFS=$as_save_IFS
   2828 
   2829 fi
   2830 fi
   2831 AWK=$ac_cv_prog_AWK
   2832 if test -n "$AWK"; then
   2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   2834 $as_echo "$AWK" >&6; }
   2835 else
   2836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2837 $as_echo "no" >&6; }
   2838 fi
   2839 
   2840 
   2841   test -n "$AWK" && break
   2842 done
   2843 
   2844 
   2845 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
   2846 
   2847 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
   2848 # a relative path.
   2849 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
   2850   INSTALL="${srcpwd}/install-sh -c"
   2851 fi
   2852 
   2853 # Set srcdir to "." if that's what it is.
   2854 # This is important for multilib support.
   2855 pwd=`${PWDCMD-pwd}`
   2856 if test "${pwd}" = "${srcpwd}" ; then
   2857   srcdir=.
   2858 fi
   2859 
   2860 topsrcdir=$srcpwd
   2861 
   2862 extra_host_args=
   2863 
   2864 ### To add a new directory to the tree, first choose whether it is a target
   2865 ### or a host dependent tool.  Then put it into the appropriate list
   2866 ### (library or tools, host or target), doing a dependency sort.
   2867 
   2868 # Subdirs will be configured in the order listed in build_configdirs,
   2869 # configdirs, or target_configdirs; see the serialization section below.
   2870 
   2871 # Dependency sorting is only needed when *configuration* must be done in
   2872 # a particular order.  In all cases a dependency should be specified in
   2873 # the Makefile, whether or not it's implicitly specified here.
   2874 
   2875 # Double entries in build_configdirs, configdirs, or target_configdirs may
   2876 # cause circular dependencies and break everything horribly.
   2877 
   2878 # these library is used by various programs built for the build
   2879 # environment
   2880 #
   2881 build_libs="build-libiberty build-libcpp"
   2882 
   2883 # these tools are built for the build environment
   2884 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
   2885 
   2886 # these libraries are used by various programs built for the host environment
   2887 #f
   2888 host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
   2889 
   2890 # these tools are built for the host environment
   2891 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
   2892 # know that we are building the simulator.
   2893 # binutils, gas and ld appear in that order because it makes sense to run
   2894 # "make check" in that particular order.
   2895 # If --enable-gold is used, "gold" may replace "ld".
   2896 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
   2897 
   2898 # these libraries are built for the target environment, and are built after
   2899 # the host libraries and the host tools (which may be a cross compiler)
   2900 # Note that libiberty is not a target library.
   2901 target_libraries="target-libgcc \
   2902 		target-libbacktrace \
   2903 		target-libgloss \
   2904 		target-newlib \
   2905 		target-libgomp \
   2906 		target-libatomic \
   2907 		target-libitm \
   2908 		target-libstdc++-v3 \
   2909 		target-libsanitizer \
   2910 		target-libvtv \
   2911 		target-libssp \
   2912 		target-libquadmath \
   2913 		target-libgfortran \
   2914 		target-libffi \
   2915 		target-libobjc \
   2916 		target-libgcobol \
   2917 		target-libada \
   2918 		target-libgm2 \
   2919 		target-libgo \
   2920 		target-libgrust \
   2921 		target-libphobos \
   2922 		target-zlib"
   2923 
   2924 # these tools are built using the target libraries, and are intended to
   2925 # run only in the target environment
   2926 #
   2927 # note: any program that *uses* libraries that are in the "target_libraries"
   2928 # list belongs in this list.
   2929 #
   2930 target_tools="target-rda"
   2931 
   2932 ################################################################################
   2933 
   2934 ## All tools belong in one of the four categories, and are assigned above
   2935 ## We assign ${configdirs} this way to remove all embedded newlines.  This
   2936 ## is important because configure will choke if they ever get through.
   2937 ## ${configdirs} is directories we build using the host tools.
   2938 ## ${target_configdirs} is directories we build using the target tools.
   2939 configdirs=`echo ${host_libs} ${host_tools}`
   2940 target_configdirs=`echo ${target_libraries} ${target_tools}`
   2941 build_configdirs=`echo ${build_libs} ${build_tools}`
   2942 
   2943 
   2944 
   2945 ################################################################################
   2946 
   2947 srcname="gnu development package"
   2948 
   2949 # This gets set non-empty for some net releases of packages.
   2950 appdirs=""
   2951 
   2952 # Define is_cross_compiler to save on calls to 'test'.
   2953 is_cross_compiler=
   2954 if test x"${host}" = x"${target}" ; then
   2955   is_cross_compiler=no
   2956 else
   2957   is_cross_compiler=yes
   2958 fi
   2959 
   2960 # Find the build and target subdir names.
   2961 
   2962 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
   2963 # have matching libraries, they should use host libraries: Makefile.tpl
   2964 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
   2965 # However, they still use the build modules, because the corresponding
   2966 # host modules (e.g. bison) are only built for the host when bootstrap
   2967 # finishes. So:
   2968 # - build_subdir is where we find build modules, and never changes.
   2969 # - build_libsubdir is where we find build libraries, and can be overridden.
   2970 
   2971 # Prefix 'build-' so this never conflicts with target_subdir.
   2972 build_subdir="build-${build_noncanonical}"
   2973 
   2974 # Check whether --with-build-libsubdir was given.
   2975 if test "${with_build_libsubdir+set}" = set; then :
   2976   withval=$with_build_libsubdir; build_libsubdir="$withval"
   2977 else
   2978   build_libsubdir="$build_subdir"
   2979 fi
   2980 
   2981 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
   2982 if ( test $srcdir = . && test -d gcc ) \
   2983    || test -d $srcdir/../host-${host_noncanonical}; then
   2984   host_subdir="host-${host_noncanonical}"
   2985 else
   2986   host_subdir=.
   2987 fi
   2988 # No prefix.
   2989 target_subdir=${target_noncanonical}
   2990 
   2991 # Be sure to cover against remnants of an in-tree build.
   2992 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
   2993   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
   2994 Use a pristine source tree when building in a separate tree" "$LINENO" 5
   2995 fi
   2996 
   2997 # Skipdirs are removed silently.
   2998 skipdirs=
   2999 # Noconfigdirs are removed loudly.
   3000 noconfigdirs=""
   3001 
   3002 use_gnu_ld=
   3003 # Make sure we don't let GNU ld be added if we didn't want it.
   3004 if test x$with_gnu_ld = xno ; then
   3005   use_gnu_ld=no
   3006   noconfigdirs="$noconfigdirs ld gold"
   3007 fi
   3008 
   3009 use_gnu_as=
   3010 # Make sure we don't let GNU as be added if we didn't want it.
   3011 if test x$with_gnu_as = xno ; then
   3012   use_gnu_as=no
   3013   noconfigdirs="$noconfigdirs gas"
   3014 fi
   3015 
   3016 use_included_zlib=
   3017 
   3018 # Check whether --with-system-zlib was given.
   3019 if test "${with_system_zlib+set}" = set; then :
   3020   withval=$with_system_zlib;
   3021 fi
   3022 
   3023 # Make sure we don't let ZLIB be added if we didn't want it.
   3024 if test x$with_system_zlib = xyes ; then
   3025   use_included_zlib=no
   3026   noconfigdirs="$noconfigdirs zlib"
   3027 fi
   3028 
   3029 # Don't compile the bundled readline/libreadline.a if --with-system-readline
   3030 # is provided.
   3031 if test x$with_system_readline = xyes ; then
   3032   noconfigdirs="$noconfigdirs readline"
   3033 fi
   3034 
   3035 
   3036 # Check whether --with-zstd was given.
   3037 if test "${with_zstd+set}" = set; then :
   3038   withval=$with_zstd;
   3039 fi
   3040 
   3041 
   3042 # some tools are so dependent upon X11 that if we're not building with X,
   3043 # it's not even worth trying to configure, much less build, that tool.
   3044 
   3045 case ${with_x} in
   3046   yes | "") ;; # the default value for this tree is that X11 is available
   3047   no)
   3048     skipdirs="${skipdirs} tk itcl libgui"
   3049     # We won't be able to build gdbtk without X.
   3050     enable_gdbtk=no
   3051     ;;
   3052   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
   3053 esac
   3054 
   3055 # Some are only suitable for cross toolchains.
   3056 # Remove these if host=target.
   3057 cross_only="target-libgloss target-newlib target-opcodes"
   3058 
   3059 case $is_cross_compiler in
   3060   no) skipdirs="${skipdirs} ${cross_only}" ;;
   3061 esac
   3062 
   3063 # If both --with-headers and --with-libs are specified, default to
   3064 # --without-newlib.
   3065 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
   3066    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
   3067   if test x"${with_newlib}" = x ; then
   3068     with_newlib=no
   3069   fi
   3070 fi
   3071 
   3072 # Recognize --with-newlib/--without-newlib.
   3073 case ${with_newlib} in
   3074   no) skipdirs="${skipdirs} target-newlib" ;;
   3075   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
   3076 esac
   3077 
   3078 # Check whether --enable-as-accelerator-for was given.
   3079 if test "${enable_as_accelerator_for+set}" = set; then :
   3080   enableval=$enable_as_accelerator_for;
   3081 fi
   3082 
   3083 
   3084 # Check whether --enable-offload-targets was given.
   3085 if test "${enable_offload_targets+set}" = set; then :
   3086   enableval=$enable_offload_targets;
   3087   if test x"$enable_offload_targets" = x; then
   3088     as_fn_error $? "no offload targets specified" "$LINENO" 5
   3089   fi
   3090 
   3091 else
   3092   enable_offload_targets=
   3093 fi
   3094 
   3095 
   3096 # Check whether --enable-offload-defaulted was given.
   3097 if test "${enable_offload_defaulted+set}" = set; then :
   3098   enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
   3099 else
   3100   enable_offload_defaulted=
   3101 fi
   3102 
   3103 
   3104 # Handle --enable-gold, --enable-ld.
   3105 # --disable-gold [--enable-ld]
   3106 #     Build only ld.  Default option.
   3107 # --enable-gold [--enable-ld]
   3108 #     Build both gold and ld.  Install gold as "ld.gold", install ld
   3109 #     as "ld.bfd" and "ld".
   3110 # --enable-gold=default [--enable-ld]
   3111 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
   3112 #     install ld as "ld.bfd".
   3113 # --enable-gold[=default] --disable-ld
   3114 #     Build only gold, which is then installed as both "ld.gold" and "ld".
   3115 # --enable-gold --enable-ld=default
   3116 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
   3117 #     and ld.bfd).
   3118 #     In other words, ld is default
   3119 # --enable-gold=default --enable-ld=default
   3120 #     Error.
   3121 
   3122 default_ld=
   3123 # Check whether --enable-gold was given.
   3124 if test "${enable_gold+set}" = set; then :
   3125   enableval=$enable_gold; ENABLE_GOLD=$enableval
   3126 else
   3127   ENABLE_GOLD=no
   3128 fi
   3129 
   3130 case "${ENABLE_GOLD}" in
   3131   yes|default)
   3132     # Check for ELF target.
   3133     is_elf=no
   3134     case "${target}" in
   3135       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
   3136       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
   3137       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
   3138       | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
   3139         case "${target}" in
   3140           *-*-linux*aout* | *-*-linux*oldld*)
   3141             ;;
   3142           *)
   3143             is_elf=yes
   3144             ;;
   3145         esac
   3146     esac
   3147 
   3148     if test "$is_elf" = "yes"; then
   3149       # Check for target supported by gold.
   3150       case "${target}" in
   3151         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
   3152         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
   3153 	  configdirs="$configdirs gold"
   3154 	  if test x${ENABLE_GOLD} = xdefault; then
   3155 	    default_ld=gold
   3156 	  fi
   3157 	  ENABLE_GOLD=yes
   3158           ;;
   3159       esac
   3160     fi
   3161     ;;
   3162   no)
   3163     ;;
   3164   *)
   3165     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
   3166     ;;
   3167 esac
   3168 
   3169 # Check whether --enable-ld was given.
   3170 if test "${enable_ld+set}" = set; then :
   3171   enableval=$enable_ld; ENABLE_LD=$enableval
   3172 else
   3173   ENABLE_LD=yes
   3174 fi
   3175 
   3176 
   3177 case "${ENABLE_LD}" in
   3178   default)
   3179     if test x${default_ld} != x; then
   3180       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
   3181     fi
   3182     ;;
   3183   yes)
   3184     ;;
   3185   no)
   3186     if test x${ENABLE_GOLD} != xyes; then
   3187       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
   3188 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
   3189     fi
   3190     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
   3191     ;;
   3192   *)
   3193     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
   3194     ;;
   3195 esac
   3196 
   3197 # Check whether --enable-gprofng was given.
   3198 if test "${enable_gprofng+set}" = set; then :
   3199   enableval=$enable_gprofng; enable_gprofng=$enableval
   3200 else
   3201   enable_gprofng=yes
   3202 fi
   3203 
   3204 if test "$enable_gprofng" = "yes"; then
   3205   case "${target}" in
   3206     *-musl*)
   3207       ;;
   3208     x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux* | riscv64-*-linux*)
   3209     configdirs="$configdirs gprofng"
   3210     ;;
   3211   esac
   3212 fi
   3213 
   3214 
   3215 # PR gas/19109
   3216 # Decide the default method for compressing debug sections.
   3217 # Provide a configure time option to override our default.
   3218 # Check whether --enable-compressed_debug_sections was given.
   3219 if test "${enable_compressed_debug_sections+set}" = set; then :
   3220   enableval=$enable_compressed_debug_sections;
   3221   if test x"$enable_compressed_debug_sections" = xyes; then
   3222     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
   3223   fi
   3224 
   3225 else
   3226   enable_compressed_debug_sections=
   3227 fi
   3228 
   3229 
   3230 # Select default compression algorithm.
   3231 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
   3232 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
   3233   enableval=$enable_default_compressed_debug_sections_algorithm;
   3234 else
   3235   default_compressed_debug_sections_algorithm=
   3236 fi
   3237 
   3238 
   3239 # Configure extra directories which are host specific
   3240 
   3241 case "${host}" in
   3242   *-cygwin*)
   3243     configdirs="$configdirs libtermcap" ;;
   3244 esac
   3245 
   3246 # A target can indicate whether a language isn't supported for some reason.
   3247 # Only spaces may be used in this macro; not newlines or tabs.
   3248 unsupported_languages=
   3249 
   3250 # Remove more programs from consideration, based on the host or
   3251 # target this usually means that a port of the program doesn't
   3252 # exist yet.
   3253 
   3254 case "${host}" in
   3255   i[3456789]86-*-msdosdjgpp*)
   3256     noconfigdirs="$noconfigdirs tcl tk itcl"
   3257     ;;
   3258 esac
   3259 
   3260 # Default to --disable-year2038 until we can handle differences between
   3261 # projects that use gnulib (which understands year 2038) and projects that
   3262 # do not (like BFD).
   3263 # Check whether --enable-year2038 was given.
   3264 if test "${enable_year2038+set}" = set; then :
   3265   enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
   3266 else
   3267   ENABLE_YEAR2038=no
   3268 fi
   3269 
   3270 enable_year2038=
   3271 if test "${ENABLE_YEAR2038}" = "no" ; then
   3272   enable_year2038=no
   3273 fi
   3274 
   3275 # Check whether --enable-libquadmath was given.
   3276 if test "${enable_libquadmath+set}" = set; then :
   3277   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
   3278 else
   3279   ENABLE_LIBQUADMATH=yes
   3280 fi
   3281 
   3282 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
   3283   noconfigdirs="$noconfigdirs target-libquadmath"
   3284 fi
   3285 
   3286 
   3287 # Check whether --enable-libquadmath-support was given.
   3288 if test "${enable_libquadmath_support+set}" = set; then :
   3289   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
   3290 else
   3291   ENABLE_LIBQUADMATH_SUPPORT=yes
   3292 fi
   3293 
   3294 enable_libquadmath_support=
   3295 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
   3296   enable_libquadmath_support=no
   3297 fi
   3298 
   3299 
   3300 # Check whether --enable-libada was given.
   3301 if test "${enable_libada+set}" = set; then :
   3302   enableval=$enable_libada; ENABLE_LIBADA=$enableval
   3303 else
   3304   ENABLE_LIBADA=yes
   3305 fi
   3306 
   3307 if test "${ENABLE_LIBADA}" != "yes" ; then
   3308   noconfigdirs="$noconfigdirs gnattools"
   3309 fi
   3310 
   3311 # Check whether --enable-libgm2 was given.
   3312 if test "${enable_libgm2+set}" = set; then :
   3313   enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
   3314 else
   3315   ENABLE_LIBGM2=no
   3316 fi
   3317 
   3318 if test "${ENABLE_LIBGM2}" != "yes" ; then
   3319   noconfigdirs="$noconfigdirs gm2tools"
   3320 fi
   3321 
   3322 # Check whether --enable-libssp was given.
   3323 if test "${enable_libssp+set}" = set; then :
   3324   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
   3325 else
   3326   ENABLE_LIBSSP=yes
   3327 fi
   3328 
   3329 
   3330 # Check whether --enable-libstdcxx was given.
   3331 if test "${enable_libstdcxx+set}" = set; then :
   3332   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
   3333 else
   3334   ENABLE_LIBSTDCXX=default
   3335 fi
   3336 
   3337 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
   3338   noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3339 fi
   3340 
   3341 # Enable libgomp by default on hosted POSIX systems, and a few others.
   3342 if test x$enable_libgomp = x ; then
   3343     case "${target}" in
   3344     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
   3345 	;;
   3346     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
   3347 	;;
   3348     *-*-solaris2* | *-*-hpux11*)
   3349 	;;
   3350     *-*-darwin* | *-*-aix*)
   3351 	;;
   3352     nvptx*-*-* | amdgcn*-*-*)
   3353 	;;
   3354     *)
   3355 	noconfigdirs="$noconfigdirs target-libgomp"
   3356 	;;
   3357     esac
   3358 fi
   3359 
   3360 # Disable libatomic on unsupported systems.
   3361 if test -d ${srcdir}/libatomic; then
   3362     if test x$enable_libatomic = x; then
   3363 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
   3364 $as_echo_n "checking for libatomic support... " >&6; }
   3365 	if (srcdir=${srcdir}/libatomic; \
   3366 		. ${srcdir}/configure.tgt; \
   3367 		test -n "$UNSUPPORTED")
   3368 	then
   3369 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3370 $as_echo "no" >&6; }
   3371 	    noconfigdirs="$noconfigdirs target-libatomic"
   3372 	else
   3373 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3374 $as_echo "yes" >&6; }
   3375 	fi
   3376     fi
   3377 fi
   3378 
   3379 # Disable libitm on unsupported systems.
   3380 if test -d ${srcdir}/libitm; then
   3381     if test x$enable_libitm = x; then
   3382 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
   3383 $as_echo_n "checking for libitm support... " >&6; }
   3384 	if (srcdir=${srcdir}/libitm; \
   3385 		. ${srcdir}/configure.tgt; \
   3386 		test -n "$UNSUPPORTED")
   3387 	then
   3388 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3389 $as_echo "no" >&6; }
   3390 	    noconfigdirs="$noconfigdirs target-libitm"
   3391 	else
   3392 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3393 $as_echo "yes" >&6; }
   3394 	fi
   3395     fi
   3396 fi
   3397 
   3398 # Disable libsanitizer on unsupported systems.
   3399 if test -d ${srcdir}/libsanitizer; then
   3400     if test x$enable_libsanitizer = x; then
   3401 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
   3402 $as_echo_n "checking for libsanitizer support... " >&6; }
   3403 	if (srcdir=${srcdir}/libsanitizer; \
   3404 		. ${srcdir}/configure.tgt; \
   3405 		test -n "$UNSUPPORTED")
   3406 	then
   3407 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3408 $as_echo "no" >&6; }
   3409 	    noconfigdirs="$noconfigdirs target-libsanitizer"
   3410 	else
   3411 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3412 $as_echo "yes" >&6; }
   3413 	fi
   3414     fi
   3415 fi
   3416 
   3417 # Disable libvtv on unsupported systems.
   3418 if test -d ${srcdir}/libvtv; then
   3419     if test x$enable_libvtv = x; then
   3420 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
   3421 $as_echo_n "checking for libvtv support... " >&6; }
   3422 	if (srcdir=${srcdir}/libvtv; \
   3423 		. ${srcdir}/configure.tgt; \
   3424 		test "$VTV_SUPPORTED" != "yes")
   3425 	then
   3426 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3427 $as_echo "no" >&6; }
   3428 	    noconfigdirs="$noconfigdirs target-libvtv"
   3429 	else
   3430 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3431 $as_echo "yes" >&6; }
   3432 	fi
   3433     fi
   3434 fi
   3435 
   3436 # Disable libquadmath for some systems.
   3437 case "${target}" in
   3438   avr-*-*)
   3439     noconfigdirs="$noconfigdirs target-libquadmath"
   3440     ;;
   3441   # libquadmath is unused on AIX and libquadmath build process use of
   3442   # LD_LIBRARY_PATH can break AIX bootstrap.
   3443   powerpc-*-aix* | rs6000-*-aix*)
   3444     noconfigdirs="$noconfigdirs target-libquadmath"
   3445     ;;
   3446 esac
   3447 
   3448 cpu_type=`echo ${host} | sed 's/-.*$//'`
   3449 # Special case cpu_type for x86_64 as it shares AUTO_PROFILE from i386.
   3450 if test "${cpu_type}" = "x86_64" ; then
   3451   cpu_type="i386"
   3452 fi
   3453 
   3454 
   3455 # Disable libssp for some systems.
   3456 case "${target}" in
   3457   avr-*-*)
   3458     # No hosted I/O support.
   3459     noconfigdirs="$noconfigdirs target-libssp"
   3460     ;;
   3461   bpf-*-*)
   3462     noconfigdirs="$noconfigdirs target-libssp"
   3463     ;;
   3464   powerpc-*-aix* | rs6000-*-aix*)
   3465     noconfigdirs="$noconfigdirs target-libssp"
   3466     ;;
   3467   pru-*-*)
   3468     # No hosted I/O support.
   3469     noconfigdirs="$noconfigdirs target-libssp"
   3470     ;;
   3471   rl78-*-*)
   3472     # libssp uses a misaligned load to trigger a fault, but the RL78
   3473     # doesn't fault for those - instead, it gives a build-time error
   3474     # for explicit misaligned loads.
   3475     noconfigdirs="$noconfigdirs target-libssp"
   3476     ;;
   3477   visium-*-*)
   3478     # No hosted I/O support.
   3479     noconfigdirs="$noconfigdirs target-libssp"
   3480     ;;
   3481 esac
   3482 
   3483 # Disable libstdc++-v3 for some systems.
   3484 # Allow user to override this if they pass --enable-libstdcxx
   3485 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
   3486   case "${target}" in
   3487     *-*-vxworks*)
   3488       # VxWorks uses the Dinkumware C++ library.
   3489       noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3490       ;;
   3491     arm*-wince-pe*)
   3492       # the C++ libraries don't build on top of CE's C libraries
   3493       noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3494       ;;
   3495     avr-*-*)
   3496       noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3497       ;;
   3498     bpf-*-*)
   3499       noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3500       ;;
   3501     ft32-*-*)
   3502       noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3503       ;;
   3504   esac
   3505 fi
   3506 
   3507 # Disable Ada/GNAT on systems where it is known to not work.
   3508 # For testing, you can override this with --enable-languages=ada.
   3509 case ,${enable_languages}, in
   3510   *,ada,*)
   3511     ;;
   3512   *)
   3513       case "${target}" in
   3514         amdgcn*-*-* \
   3515         | nvptx*-*-* )
   3516           unsupported_languages="$unsupported_languages ada"
   3517           ;;
   3518       esac
   3519       ;;
   3520 esac
   3521 
   3522 # Disable C++ on systems where it is known to not work.
   3523 # For testing, you can override this with --enable-languages=c++.
   3524 case ,${enable_languages}, in
   3525   *,c++,*)
   3526     ;;
   3527   *)
   3528       case "${target}" in
   3529         bpf-*-*)
   3530           unsupported_languages="$unsupported_languages c++"
   3531           ;;
   3532       esac
   3533       ;;
   3534 esac
   3535 
   3536 # Disable Objc on systems where it is known to not work.
   3537 # For testing, you can override this with --enable-languages=objc.
   3538 case ,${enable_languages}, in
   3539   *,objc,*)
   3540     ;;
   3541   *)
   3542       case "${target}" in
   3543         bpf-*-*)
   3544           unsupported_languages="$unsupported_languages objc"
   3545           ;;
   3546       esac
   3547       ;;
   3548 esac
   3549 
   3550 # Disable libobjc for some systems where it is known to not work.
   3551 case "${target}" in
   3552   amdgcn*-*-*)
   3553     noconfigdirs="$noconfigdirs target-libobjc"
   3554     ;;
   3555   nvptx*-*-*)
   3556     noconfigdirs="$noconfigdirs target-libobjc"
   3557     ;;
   3558 esac
   3559 
   3560 # Disable D on systems where it is known to not work.
   3561 # For testing, you can override this with --enable-languages=d.
   3562 case ,${enable_languages}, in
   3563   *,d,*)
   3564     ;;
   3565   *)
   3566     case "${target}" in
   3567       bpf-*-*)
   3568 	unsupported_languages="$unsupported_languages d"
   3569 	;;
   3570     esac
   3571     ;;
   3572 esac
   3573 
   3574 # Disable libphobos on unsupported systems.
   3575 # For testing, you can override this with --enable-libphobos.
   3576 if test -d ${srcdir}/libphobos; then
   3577     if test x$enable_libphobos = x; then
   3578 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
   3579 $as_echo_n "checking for libphobos support... " >&6; }
   3580 	if (srcdir=${srcdir}/libphobos; \
   3581 		. ${srcdir}/configure.tgt; \
   3582 		test "$LIBPHOBOS_SUPPORTED" != "yes")
   3583 	then
   3584 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3585 $as_echo "no" >&6; }
   3586 	    noconfigdirs="$noconfigdirs target-libphobos"
   3587 	else
   3588 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3589 $as_echo "yes" >&6; }
   3590 	fi
   3591     fi
   3592 fi
   3593 
   3594 # Disable libgcobol on unsupported systems.
   3595 # For testing, you can override this with --enable-libgcobol.
   3596 if test -d ${srcdir}/libgcobol; then
   3597     if test x$enable_libgcobol = x; then
   3598 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcobol support" >&5
   3599 $as_echo_n "checking for libgcobol support... " >&6; }
   3600 	if (srcdir=${srcdir}/libgcobol; \
   3601 		. ${srcdir}/configure.tgt; \
   3602 		test -n "$UNSUPPORTED")
   3603 	then
   3604 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3605 $as_echo "no" >&6; }
   3606 	    noconfigdirs="$noconfigdirs target-libgcobol"
   3607 	else
   3608 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3609 $as_echo "yes" >&6; }
   3610 	fi
   3611     fi
   3612 fi
   3613 
   3614 # Disable Fortran for some systems.
   3615 case "${target}" in
   3616   mmix-*-*)
   3617     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
   3618     unsupported_languages="$unsupported_languages fortran"
   3619     ;;
   3620   bpf-*-*)
   3621     unsupported_languages="$unsupported_languages fortran"
   3622     ;;
   3623 esac
   3624 
   3625 # Always enable COBOL for --enable-languages=*cobol*
   3626 # Otherwise, enable COBOL only for known architectures
   3627 case ,${enable_languages}, in
   3628   *,cobol,*)
   3629     case ,${enable_languages}, in
   3630       *,c++,*)
   3631         ;;
   3632       *)
   3633         # We have an explicit cobol, but no c++.  We need c++, because cobol
   3634         # requires libstdc++
   3635         enable_languages="$enable_languages,c++"
   3636         ;;
   3637     esac
   3638     ;;
   3639   *)
   3640     case "${target}" in
   3641       aarch64-*-linux*|x86_64-*-linux*)
   3642         ;;
   3643       *-*-*)
   3644         unsupported_languages="$unsupported_languages cobol"
   3645         ;;
   3646     esac
   3647     case "${host}" in
   3648       aarch64-*-linux*|x86_64-*-linux*)
   3649         ;;
   3650       *-*-*)
   3651         unsupported_languages="$unsupported_languages cobol"
   3652         ;;
   3653     esac
   3654     ;;
   3655 esac
   3656 
   3657 # Disable libffi for some systems.
   3658 case "${target}" in
   3659   powerpc-*-darwin*)
   3660     ;;
   3661   i[3456789]86-*-darwin*)
   3662     ;;
   3663   x86_64-*-darwin[912]*)
   3664     ;;
   3665   *-*-darwin*)
   3666     noconfigdirs="$noconfigdirs target-libffi"
   3667     ;;
   3668   *-*-netware*)
   3669     noconfigdirs="$noconfigdirs target-libffi"
   3670     ;;
   3671   *-*-phoenix*)
   3672     noconfigdirs="$noconfigdirs target-libffi"
   3673     ;;
   3674   *-*-rtems*)
   3675     noconfigdirs="$noconfigdirs target-libffi"
   3676     ;;
   3677   *-*-tpf*)
   3678     noconfigdirs="$noconfigdirs target-libffi"
   3679     ;;
   3680   *-*-uclinux*)
   3681     noconfigdirs="$noconfigdirs target-libffi"
   3682     ;;
   3683   *-*-vxworks*)
   3684     noconfigdirs="$noconfigdirs target-libffi"
   3685     ;;
   3686   aarch64*-*-freebsd*)
   3687     noconfigdirs="$noconfigdirs target-libffi"
   3688     ;;
   3689   alpha*-*-*vms*)
   3690     noconfigdirs="$noconfigdirs target-libffi"
   3691     ;;
   3692   amdgcn*-*-*)
   3693     noconfigdirs="$noconfigdirs target-libffi"
   3694     ;;
   3695   arm*-*-freebsd*)
   3696     noconfigdirs="$noconfigdirs target-libffi"
   3697     ;;
   3698   arm-wince-pe)
   3699     noconfigdirs="$noconfigdirs target-libffi"
   3700     ;;
   3701   arm*-*-symbianelf*)
   3702     noconfigdirs="$noconfigdirs target-libffi"
   3703     ;;
   3704   bpf-*-*)
   3705     noconfigdirs="$noconfigdirs target-libffi"
   3706     ;;
   3707   cris-*-* | crisv32-*-*)
   3708     case "${target}" in
   3709       *-*-linux*)
   3710 	;;
   3711       *) # See PR46792 regarding target-libffi.
   3712 	noconfigdirs="$noconfigdirs target-libffi";;
   3713     esac
   3714     ;;
   3715   hppa*64*-*-hpux*)
   3716     noconfigdirs="$noconfigdirs target-libffi"
   3717     ;;
   3718   hppa*-hp-hpux11*)
   3719     ;;
   3720   hppa*-*-hpux*)
   3721     noconfigdirs="$noconfigdirs target-libffi"
   3722     ;;
   3723   ia64*-*-*vms*)
   3724     noconfigdirs="$noconfigdirs target-libffi"
   3725     ;;
   3726   i[3456789]86-w64-mingw*)
   3727     noconfigdirs="$noconfigdirs target-libffi"
   3728     ;;
   3729   i[3456789]86-*-mingw*)
   3730     noconfigdirs="$noconfigdirs target-libffi"
   3731     ;;
   3732   x86_64-*-mingw*)
   3733     noconfigdirs="$noconfigdirs target-libffi"
   3734     ;;
   3735   mmix-*-*)
   3736     noconfigdirs="$noconfigdirs target-libffi"
   3737     ;;
   3738   nvptx*-*-*)
   3739     noconfigdirs="$noconfigdirs target-libffi"
   3740     ;;
   3741   powerpc-*-aix*)
   3742     ;;
   3743   rs6000-*-aix*)
   3744     ;;
   3745   ft32-*-*)
   3746     noconfigdirs="$noconfigdirs target-libffi"
   3747     ;;
   3748   *-*-lynxos*)
   3749     noconfigdirs="$noconfigdirs target-libffi"
   3750     ;;
   3751 esac
   3752 
   3753 # Disable the go frontend on systems where it is known to not work. Please keep
   3754 # this in sync with contrib/config-list.mk.
   3755 case "${target}" in
   3756 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
   3757     unsupported_languages="$unsupported_languages go"
   3758     ;;
   3759 esac
   3760 
   3761 # Only allow gdbserver on some systems.
   3762 if test -d ${srcdir}/gdbserver; then
   3763     if test x$enable_gdbserver = x; then
   3764 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
   3765 $as_echo_n "checking for gdbserver support... " >&6; }
   3766 	if (srcdir=${srcdir}/gdbserver; \
   3767 		. ${srcdir}/configure.srv; \
   3768 		test -n "$UNSUPPORTED")
   3769 	then
   3770 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3771 $as_echo "no" >&6; }
   3772 	    noconfigdirs="$noconfigdirs gdbserver"
   3773 	else
   3774 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3775 $as_echo "yes" >&6; }
   3776 	fi
   3777     fi
   3778 fi
   3779 
   3780 # Disable libgo for some systems where it is known to not work.
   3781 # For testing, you can easily override this with --enable-libgo.
   3782 if test x$enable_libgo = x; then
   3783     case "${target}" in
   3784     *-*-darwin*)
   3785 	# PR 46986
   3786 	noconfigdirs="$noconfigdirs target-libgo"
   3787 	;;
   3788     *-*-cygwin* | *-*-mingw*)
   3789 	noconfigdirs="$noconfigdirs target-libgo"
   3790 	;;
   3791     amdgcn*-*-*)
   3792 	noconfigdirs="$noconfigdirs target-libgo"
   3793 	;;
   3794     bpf-*-*)
   3795         noconfigdirs="$noconfigdirs target-libgo"
   3796         ;;
   3797     nvptx*-*-*)
   3798 	noconfigdirs="$noconfigdirs target-libgo"
   3799 	;;
   3800     esac
   3801 fi
   3802 
   3803 # Default libgloss CPU subdirectory.
   3804 libgloss_dir="$target_cpu"
   3805 
   3806 case "${target}" in
   3807   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
   3808     libgloss_dir=wince
   3809     ;;
   3810   aarch64*-*-* )
   3811     libgloss_dir=aarch64
   3812     ;;
   3813   arm*-*-*)
   3814     libgloss_dir=arm
   3815     ;;
   3816   cris-*-* | crisv32-*-*)
   3817     libgloss_dir=cris
   3818     ;;
   3819   kvx-*-elf)
   3820     libgloss_dir=kvx-elf
   3821     ;;
   3822   kvx-*-mbr)
   3823     libgloss_dir=kvx-mbr
   3824     ;;
   3825   kvx-*-cos)
   3826     libgloss_dir=kvx-cos
   3827     ;;
   3828   hppa*-*-*)
   3829     libgloss_dir=pa
   3830     ;;
   3831   i[3456789]86-*-*)
   3832     libgloss_dir=i386
   3833     ;;
   3834   loongarch*-*-*)
   3835     libgloss_dir=loongarch
   3836     ;;
   3837   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
   3838     libgloss_dir=m68hc11
   3839     ;;
   3840   m68*-*-* | fido-*-*)
   3841     libgloss_dir=m68k
   3842     ;;
   3843   mips*-*-*)
   3844     libgloss_dir=mips
   3845     ;;
   3846   powerpc*-*-*)
   3847     libgloss_dir=rs6000
   3848     ;;
   3849   pru-*-*)
   3850     libgloss_dir=pru
   3851     ;;
   3852   sparc*-*-*)
   3853     libgloss_dir=sparc
   3854     ;;
   3855 esac
   3856 
   3857 # Disable newlib and libgloss for various target OSes.
   3858 case "${target}" in
   3859   alpha*-dec-osf*)
   3860     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3861     ;;
   3862   i[3456789]86-*-linux*)
   3863     # This section makes it possible to build newlib natively on linux.
   3864     # If we are using a cross compiler then don't configure newlib.
   3865     if test x${is_cross_compiler} != xno ; then
   3866       noconfigdirs="$noconfigdirs target-newlib"
   3867     fi
   3868     noconfigdirs="$noconfigdirs target-libgloss"
   3869     # If we are not using a cross compiler, do configure newlib.
   3870     # Note however, that newlib will only be configured in this situation
   3871     # if the --with-newlib option has been given, because otherwise
   3872     # 'target-newlib' will appear in skipdirs.
   3873     ;;
   3874   i[3456789]86-*-rdos*)
   3875     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3876     ;;
   3877   sh*-*-pe|mips*-*-pe|arm-wince-pe)
   3878     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3879     ;;
   3880   sparc-*-sunos4*)
   3881     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3882     ;;
   3883   bpf-*-*)
   3884     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3885     ;;
   3886   *-*-aix*)
   3887     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3888     ;;
   3889   *-*-beos*)
   3890     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3891     ;;
   3892   *-*-chorusos)
   3893     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3894     ;;
   3895   *-*-dragonfly*)
   3896     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3897     ;;
   3898   *-*-freebsd*)
   3899     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3900     ;;
   3901   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
   3902     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3903     ;;
   3904   *-*-lynxos*)
   3905     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3906     ;;
   3907   *-*-mingw*)
   3908     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3909     ;;
   3910   *-*-netbsd*)
   3911     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3912     ;;
   3913   *-*-netware*)
   3914     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3915     ;;
   3916   *-*-tpf*)
   3917     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3918     ;;
   3919   *-*-uclinux*)
   3920     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3921     ;;
   3922   *-*-vxworks*)
   3923     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3924     ;;
   3925 esac
   3926 
   3927 # The ARM simulator has been deprecated for all ARM targets.
   3928 case "${target}" in
   3929   arm*-*-*)
   3930     noconfigdirs="$noconfigdirs sim"
   3931     ;;
   3932 esac
   3933 
   3934 case "${target}" in
   3935   *-*-chorusos)
   3936     ;;
   3937   aarch64-*-darwin*)
   3938     noconfigdirs="$noconfigdirs ld gas gdb gprof"
   3939     noconfigdirs="$noconfigdirs sim target-rda"
   3940     ;;
   3941   amdgcn*-*-*)
   3942     ;;
   3943   arm-*-darwin*)
   3944     noconfigdirs="$noconfigdirs ld gas gdb gprof"
   3945     noconfigdirs="$noconfigdirs target-rda"
   3946     ;;
   3947   powerpc-*-darwin*)
   3948     noconfigdirs="$noconfigdirs ld gas gdb gprof"
   3949     noconfigdirs="$noconfigdirs sim target-rda"
   3950     ;;
   3951   i[3456789]86-*-darwin*)
   3952     noconfigdirs="$noconfigdirs ld gprof"
   3953     noconfigdirs="$noconfigdirs sim target-rda"
   3954     ;;
   3955   x86_64-*-darwin[912]*)
   3956     noconfigdirs="$noconfigdirs ld gas gprof"
   3957     noconfigdirs="$noconfigdirs sim target-rda"
   3958     ;;
   3959   *-*-darwin*)
   3960     noconfigdirs="$noconfigdirs ld gas gdb gprof"
   3961     noconfigdirs="$noconfigdirs sim target-rda"
   3962     ;;
   3963   *-*-dragonfly*)
   3964     ;;
   3965   *-*-freebsd*)
   3966     if test "x$with_gmp" = x \
   3967 	&& ! test -d ${srcdir}/gmp \
   3968 	&& test -f /usr/local/include/gmp.h; then
   3969       with_gmp=/usr/local
   3970     fi
   3971     ;;
   3972   *-*-kaos*)
   3973     # Remove unsupported stuff on all kaOS configurations.
   3974     noconfigdirs="$noconfigdirs target-libgloss"
   3975     ;;
   3976   *-*-netbsd*)
   3977     ;;
   3978   *-*-netware*)
   3979     ;;
   3980   *-*-phoenix*)
   3981     noconfigdirs="$noconfigdirs target-libgloss"
   3982     ;;
   3983   *-*-rtems*)
   3984     noconfigdirs="$noconfigdirs target-libgloss"
   3985     ;;
   3986     # The tpf target doesn't support gdb yet.
   3987   *-*-tpf*)
   3988     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
   3989     ;;
   3990   *-*-uclinux*)
   3991     noconfigdirs="$noconfigdirs target-rda"
   3992     ;;
   3993   *-*-vxworks*)
   3994     ;;
   3995   alpha*-dec-osf*)
   3996     # ld works, but does not support shared libraries.
   3997     # gas doesn't generate exception information.
   3998     noconfigdirs="$noconfigdirs gas ld"
   3999     ;;
   4000   alpha*-*-*vms*)
   4001     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
   4002     ;;
   4003   alpha*-*-*)
   4004     # newlib is not 64 bit ready
   4005     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   4006     ;;
   4007   bpf-*-*)
   4008     noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
   4009     ;;
   4010   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
   4011     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
   4012     ;;
   4013   arc*-*-*)
   4014     noconfigdirs="$noconfigdirs sim"
   4015     ;;
   4016   arm-*-pe*)
   4017     noconfigdirs="$noconfigdirs target-libgloss"
   4018     ;;
   4019   arm-*-riscix*)
   4020     noconfigdirs="$noconfigdirs ld target-libgloss"
   4021     ;;
   4022   avr-*-*)
   4023     if test x${with_avrlibc} != xno; then
   4024       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   4025     fi
   4026     ;;
   4027   c4x-*-* | tic4x-*-*)
   4028     noconfigdirs="$noconfigdirs target-libgloss"
   4029     ;;
   4030   tic54x-*-*)
   4031     noconfigdirs="$noconfigdirs target-libgloss gdb"
   4032     ;;
   4033   d10v-*-*)
   4034     noconfigdirs="$noconfigdirs target-libgloss"
   4035     ;;
   4036   d30v-*-*)
   4037     noconfigdirs="$noconfigdirs gdb"
   4038     ;;
   4039   fr30-*-elf*)
   4040     noconfigdirs="$noconfigdirs gdb"
   4041     ;;
   4042   ft32-*-*)
   4043     noconfigdirs="$noconfigdirs target-rda gprof"
   4044     ;;
   4045   moxie-*-*)
   4046     noconfigdirs="$noconfigdirs"
   4047     ;;
   4048   h8300*-*-*)
   4049     noconfigdirs="$noconfigdirs target-libgloss"
   4050     ;;
   4051   h8500-*-*)
   4052     noconfigdirs="$noconfigdirs target-libgloss"
   4053     ;;
   4054   hppa1.1-*-osf* | hppa1.1-*-bsd* )
   4055     ;;
   4056   hppa*64*-*-hpux*)
   4057     noconfigdirs="$noconfigdirs gdb"
   4058     ;;
   4059   hppa*-*-hpux11*)
   4060     noconfigdirs="$noconfigdirs gdb ld"
   4061     ;;
   4062   hppa*64*-*-linux*)
   4063     ;;
   4064   hppa*-*-linux*)
   4065     ;;
   4066   hppa*-*-*elf* | \
   4067   hppa*-*-lites* | \
   4068   hppa*-*-openbsd* | \
   4069   hppa*64*-*-*)
   4070     ;;
   4071   hppa*-*-pro*)
   4072     ;;
   4073   hppa*-*-*)
   4074     noconfigdirs="$noconfigdirs ld"
   4075     ;;
   4076   i960-*-*)
   4077     noconfigdirs="$noconfigdirs gdb"
   4078     ;;
   4079   ia64*-*-elf*)
   4080     # No gdb support yet.
   4081     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
   4082     ;;
   4083   ia64*-**-hpux*)
   4084     # No ld support yet.
   4085     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
   4086     ;;
   4087   ia64*-*-*vms*)
   4088     # No ld support yet.
   4089     noconfigdirs="$noconfigdirs libgui itcl ld"
   4090     ;;
   4091   i[3456789]86-w64-mingw*)
   4092     ;;
   4093   i[3456789]86-*-mingw*)
   4094     target_configdirs="$target_configdirs target-winsup"
   4095     ;;
   4096   *-*-cygwin*)
   4097     target_configdirs="$target_configdirs target-libtermcap target-winsup"
   4098     noconfigdirs="$noconfigdirs target-libgloss"
   4099     # always build newlib if winsup directory is present.
   4100     if test -d "$srcdir/winsup/cygwin"; then
   4101       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
   4102     elif test -d "$srcdir/newlib"; then
   4103       echo "Warning: winsup/cygwin is missing so newlib can't be built."
   4104     fi
   4105     ;;
   4106   i[3456789]86-*-pe)
   4107     noconfigdirs="$noconfigdirs target-libgloss"
   4108     ;;
   4109   i[3456789]86-*-sco3.2v5*)
   4110     # The linker does not yet know about weak symbols in COFF,
   4111     # and is not configured to handle mixed ELF and COFF.
   4112     noconfigdirs="$noconfigdirs ld target-libgloss"
   4113     ;;
   4114   i[3456789]86-*-sco*)
   4115     noconfigdirs="$noconfigdirs gprof target-libgloss"
   4116     ;;
   4117   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
   4118     noconfigdirs="$noconfigdirs target-libgloss"
   4119     ;;
   4120   i[3456789]86-*-sysv4*)
   4121     noconfigdirs="$noconfigdirs target-libgloss"
   4122     ;;
   4123   i[3456789]86-*-beos*)
   4124     noconfigdirs="$noconfigdirs gdb"
   4125     ;;
   4126   i[3456789]86-*-rdos*)
   4127     noconfigdirs="$noconfigdirs gdb"
   4128     ;;
   4129   kvx-*-*)
   4130     noconfigdirs="$noconfigdirs gdb gdbserver sim"
   4131     ;;
   4132   mmix-*-*)
   4133     noconfigdirs="$noconfigdirs gdb"
   4134     ;;
   4135   mt-*-*)
   4136     noconfigdirs="$noconfigdirs sim"
   4137     ;;
   4138   nfp-*-*)
   4139     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
   4140     noconfigdirs="$noconfigdirs $target_libraries"
   4141     ;;
   4142   pdp11-*-*)
   4143     noconfigdirs="$noconfigdirs gdb gprof"
   4144     ;;
   4145   powerpc-*-aix*)
   4146     # copied from rs6000-*-* entry
   4147     noconfigdirs="$noconfigdirs gprof"
   4148     ;;
   4149   powerpc*-*-winnt* | powerpc*-*-pe*)
   4150     target_configdirs="$target_configdirs target-winsup"
   4151     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
   4152     # always build newlib.
   4153     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
   4154     ;;
   4155   powerpc-*-beos*)
   4156     noconfigdirs="$noconfigdirs gdb"
   4157     ;;
   4158   rs6000-*-lynxos*)
   4159     noconfigdirs="$noconfigdirs gprof"
   4160     ;;
   4161   rs6000-*-aix*)
   4162     noconfigdirs="$noconfigdirs gprof"
   4163     ;;
   4164   rs6000-*-*)
   4165     noconfigdirs="$noconfigdirs gprof"
   4166     ;;
   4167   m68k-apollo-*)
   4168     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
   4169     ;;
   4170   microblaze*)
   4171     noconfigdirs="$noconfigdirs gprof"
   4172     ;;
   4173   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
   4174     if test x$with_newlib = xyes; then
   4175       noconfigdirs="$noconfigdirs gprof"
   4176     fi
   4177     ;;
   4178   mips*-*-irix5*)
   4179     noconfigdirs="$noconfigdirs gprof target-libgloss"
   4180     ;;
   4181   mips*-*-irix6*)
   4182     noconfigdirs="$noconfigdirs gprof target-libgloss"
   4183     ;;
   4184   mips*-*-bsd*)
   4185     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
   4186     ;;
   4187   mips*-*-linux*)
   4188     ;;
   4189   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
   4190   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
   4191     noconfigdirs="$noconfigdirs ld gas gprof"
   4192     ;;
   4193   mips*-*-*)
   4194     noconfigdirs="$noconfigdirs gprof"
   4195     ;;
   4196   nvptx*-*-*)
   4197     noconfigdirs="$noconfigdirs target-libssp"
   4198     ;;
   4199   sh-*-*)
   4200     case "${target}" in
   4201       sh*-*-elf)
   4202          ;;
   4203       *)
   4204          noconfigdirs="$noconfigdirs target-libgloss" ;;
   4205     esac
   4206     ;;
   4207   sparc-*-sunos4*)
   4208     if test x${is_cross_compiler} = xno ; then
   4209            use_gnu_ld=no
   4210     fi
   4211     ;;
   4212   tic6x-*-*)
   4213     noconfigdirs="$noconfigdirs sim"
   4214     ;;
   4215   tilepro*-*-* | tilegx*-*-*)
   4216     noconfigdirs="$noconfigdirs sim"
   4217     ;;
   4218   v810-*-*)
   4219     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
   4220     ;;
   4221   vax-*-*)
   4222     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   4223     ;;
   4224   wasm32-*-*)
   4225     noconfigdirs="$noconfigdirs ld"
   4226     ;;
   4227   loongarch*-*-linux*)
   4228     ;;
   4229   loongarch*-*-*)
   4230     noconfigdirs="$noconfigdirs gprof"
   4231     ;;
   4232 esac
   4233 
   4234 # If we aren't building newlib, then don't build libgloss, since libgloss
   4235 # depends upon some newlib header files.
   4236 case "${noconfigdirs}" in
   4237   *target-libgloss*) ;;
   4238   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
   4239 esac
   4240 
   4241 # Work in distributions that contain no compiler tools, like Autoconf.
   4242 host_makefile_frag=/dev/null
   4243 if test -d ${srcdir}/config ; then
   4244 case "${host}" in
   4245   i[3456789]86-*-msdosdjgpp*)
   4246     host_makefile_frag="config/mh-djgpp"
   4247     ;;
   4248   *-cygwin*)
   4249 
   4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
   4251 $as_echo_n "checking to see if cat works as expected... " >&6; }
   4252 echo a >cygwin-cat-check
   4253 if test `cat cygwin-cat-check` = a ; then
   4254   rm cygwin-cat-check
   4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4256 $as_echo "yes" >&6; }
   4257 else
   4258   rm cygwin-cat-check
   4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4260 $as_echo "no" >&6; }
   4261   as_fn_error $? "The cat command does not ignore carriage return characters.
   4262   Please either mount the build directory in binary mode or run the following
   4263   commands before running any configure script:
   4264 set -o igncr
   4265 export SHELLOPTS
   4266   " "$LINENO" 5
   4267 fi
   4268 
   4269     host_makefile_frag="config/mh-cygwin"
   4270     ;;
   4271   *-mingw*)
   4272     host_makefile_frag="config/mh-mingw"
   4273     ;;
   4274   alpha*-linux*)
   4275     host_makefile_frag="config/mh-alpha-linux"
   4276     ;;
   4277   hppa*-hp-hpux*)
   4278     host_makefile_frag="config/mh-pa"
   4279     ;;
   4280   hppa*-*)
   4281     host_makefile_frag="config/mh-pa"
   4282     ;;
   4283   i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
   4284     host_makefile_frag="config/mh-darwin"
   4285     ;;
   4286   powerpc-*-aix*)
   4287     host_makefile_frag="config/mh-ppc-aix"
   4288     ;;
   4289   rs6000-*-aix*)
   4290     host_makefile_frag="config/mh-ppc-aix"
   4291     ;;
   4292 esac
   4293 fi
   4294 
   4295 if test "${build}" != "${host}" ; then
   4296   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
   4297   AS_FOR_BUILD=${AS_FOR_BUILD-as}
   4298   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
   4299   CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
   4300   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
   4301   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
   4302   DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
   4303   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
   4304   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
   4305   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
   4306   GNATMAKE_FOR_BUILD=${GNATMAKE_FOR_BUILD-gnatmake}
   4307   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
   4308   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
   4309   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
   4310   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
   4311   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
   4312 else
   4313   AR_FOR_BUILD="\$(AR)"
   4314   AS_FOR_BUILD="\$(AS)"
   4315   CC_FOR_BUILD="\$(CC)"
   4316   CXX_FOR_BUILD="\$(CXX)"
   4317   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
   4318   DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
   4319   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
   4320   GOC_FOR_BUILD="\$(GOC)"
   4321   GDC_FOR_BUILD="\$(GDC)"
   4322   GNATMAKE_FOR_BUILD="\$(GNATMAKE)"
   4323   LD_FOR_BUILD="\$(LD)"
   4324   NM_FOR_BUILD="\$(NM)"
   4325   RANLIB_FOR_BUILD="\$(RANLIB)"
   4326   WINDRES_FOR_BUILD="\$(WINDRES)"
   4327   WINDMC_FOR_BUILD="\$(WINDMC)"
   4328 fi
   4329 
   4330 ac_ext=c
   4331 ac_cpp='$CPP $CPPFLAGS'
   4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4335 if test -n "$ac_tool_prefix"; then
   4336   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   4337 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4339 $as_echo_n "checking for $ac_word... " >&6; }
   4340 if ${ac_cv_prog_CC+:} false; then :
   4341   $as_echo_n "(cached) " >&6
   4342 else
   4343   if test -n "$CC"; then
   4344   ac_cv_prog_CC="$CC" # Let the user override the test.
   4345 else
   4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4347 for as_dir in $PATH
   4348 do
   4349   IFS=$as_save_IFS
   4350   test -z "$as_dir" && as_dir=.
   4351     for ac_exec_ext in '' $ac_executable_extensions; do
   4352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4353     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   4354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4355     break 2
   4356   fi
   4357 done
   4358   done
   4359 IFS=$as_save_IFS
   4360 
   4361 fi
   4362 fi
   4363 CC=$ac_cv_prog_CC
   4364 if test -n "$CC"; then
   4365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4366 $as_echo "$CC" >&6; }
   4367 else
   4368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4369 $as_echo "no" >&6; }
   4370 fi
   4371 
   4372 
   4373 fi
   4374 if test -z "$ac_cv_prog_CC"; then
   4375   ac_ct_CC=$CC
   4376   # Extract the first word of "gcc", so it can be a program name with args.
   4377 set dummy gcc; ac_word=$2
   4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4379 $as_echo_n "checking for $ac_word... " >&6; }
   4380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4381   $as_echo_n "(cached) " >&6
   4382 else
   4383   if test -n "$ac_ct_CC"; then
   4384   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4385 else
   4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4387 for as_dir in $PATH
   4388 do
   4389   IFS=$as_save_IFS
   4390   test -z "$as_dir" && as_dir=.
   4391     for ac_exec_ext in '' $ac_executable_extensions; do
   4392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4393     ac_cv_prog_ac_ct_CC="gcc"
   4394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4395     break 2
   4396   fi
   4397 done
   4398   done
   4399 IFS=$as_save_IFS
   4400 
   4401 fi
   4402 fi
   4403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4404 if test -n "$ac_ct_CC"; then
   4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4406 $as_echo "$ac_ct_CC" >&6; }
   4407 else
   4408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4409 $as_echo "no" >&6; }
   4410 fi
   4411 
   4412   if test "x$ac_ct_CC" = x; then
   4413     CC=""
   4414   else
   4415     case $cross_compiling:$ac_tool_warned in
   4416 yes:)
   4417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4419 ac_tool_warned=yes ;;
   4420 esac
   4421     CC=$ac_ct_CC
   4422   fi
   4423 else
   4424   CC="$ac_cv_prog_CC"
   4425 fi
   4426 
   4427 if test -z "$CC"; then
   4428           if test -n "$ac_tool_prefix"; then
   4429     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   4430 set dummy ${ac_tool_prefix}cc; ac_word=$2
   4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4432 $as_echo_n "checking for $ac_word... " >&6; }
   4433 if ${ac_cv_prog_CC+:} false; then :
   4434   $as_echo_n "(cached) " >&6
   4435 else
   4436   if test -n "$CC"; then
   4437   ac_cv_prog_CC="$CC" # Let the user override the test.
   4438 else
   4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4440 for as_dir in $PATH
   4441 do
   4442   IFS=$as_save_IFS
   4443   test -z "$as_dir" && as_dir=.
   4444     for ac_exec_ext in '' $ac_executable_extensions; do
   4445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4446     ac_cv_prog_CC="${ac_tool_prefix}cc"
   4447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4448     break 2
   4449   fi
   4450 done
   4451   done
   4452 IFS=$as_save_IFS
   4453 
   4454 fi
   4455 fi
   4456 CC=$ac_cv_prog_CC
   4457 if test -n "$CC"; then
   4458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4459 $as_echo "$CC" >&6; }
   4460 else
   4461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4462 $as_echo "no" >&6; }
   4463 fi
   4464 
   4465 
   4466   fi
   4467 fi
   4468 if test -z "$CC"; then
   4469   # Extract the first word of "cc", so it can be a program name with args.
   4470 set dummy cc; ac_word=$2
   4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4472 $as_echo_n "checking for $ac_word... " >&6; }
   4473 if ${ac_cv_prog_CC+:} false; then :
   4474   $as_echo_n "(cached) " >&6
   4475 else
   4476   if test -n "$CC"; then
   4477   ac_cv_prog_CC="$CC" # Let the user override the test.
   4478 else
   4479   ac_prog_rejected=no
   4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4481 for as_dir in $PATH
   4482 do
   4483   IFS=$as_save_IFS
   4484   test -z "$as_dir" && as_dir=.
   4485     for ac_exec_ext in '' $ac_executable_extensions; do
   4486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4487     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4488        ac_prog_rejected=yes
   4489        continue
   4490      fi
   4491     ac_cv_prog_CC="cc"
   4492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4493     break 2
   4494   fi
   4495 done
   4496   done
   4497 IFS=$as_save_IFS
   4498 
   4499 if test $ac_prog_rejected = yes; then
   4500   # We found a bogon in the path, so make sure we never use it.
   4501   set dummy $ac_cv_prog_CC
   4502   shift
   4503   if test $# != 0; then
   4504     # We chose a different compiler from the bogus one.
   4505     # However, it has the same basename, so the bogon will be chosen
   4506     # first if we set CC to just the basename; use the full file name.
   4507     shift
   4508     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   4509   fi
   4510 fi
   4511 fi
   4512 fi
   4513 CC=$ac_cv_prog_CC
   4514 if test -n "$CC"; then
   4515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4516 $as_echo "$CC" >&6; }
   4517 else
   4518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4519 $as_echo "no" >&6; }
   4520 fi
   4521 
   4522 
   4523 fi
   4524 if test -z "$CC"; then
   4525   if test -n "$ac_tool_prefix"; then
   4526   for ac_prog in cl.exe
   4527   do
   4528     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4531 $as_echo_n "checking for $ac_word... " >&6; }
   4532 if ${ac_cv_prog_CC+:} false; then :
   4533   $as_echo_n "(cached) " >&6
   4534 else
   4535   if test -n "$CC"; then
   4536   ac_cv_prog_CC="$CC" # Let the user override the test.
   4537 else
   4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4539 for as_dir in $PATH
   4540 do
   4541   IFS=$as_save_IFS
   4542   test -z "$as_dir" && as_dir=.
   4543     for ac_exec_ext in '' $ac_executable_extensions; do
   4544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4545     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   4546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4547     break 2
   4548   fi
   4549 done
   4550   done
   4551 IFS=$as_save_IFS
   4552 
   4553 fi
   4554 fi
   4555 CC=$ac_cv_prog_CC
   4556 if test -n "$CC"; then
   4557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4558 $as_echo "$CC" >&6; }
   4559 else
   4560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4561 $as_echo "no" >&6; }
   4562 fi
   4563 
   4564 
   4565     test -n "$CC" && break
   4566   done
   4567 fi
   4568 if test -z "$CC"; then
   4569   ac_ct_CC=$CC
   4570   for ac_prog in cl.exe
   4571 do
   4572   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4573 set dummy $ac_prog; ac_word=$2
   4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4575 $as_echo_n "checking for $ac_word... " >&6; }
   4576 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4577   $as_echo_n "(cached) " >&6
   4578 else
   4579   if test -n "$ac_ct_CC"; then
   4580   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4581 else
   4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4583 for as_dir in $PATH
   4584 do
   4585   IFS=$as_save_IFS
   4586   test -z "$as_dir" && as_dir=.
   4587     for ac_exec_ext in '' $ac_executable_extensions; do
   4588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4589     ac_cv_prog_ac_ct_CC="$ac_prog"
   4590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4591     break 2
   4592   fi
   4593 done
   4594   done
   4595 IFS=$as_save_IFS
   4596 
   4597 fi
   4598 fi
   4599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4600 if test -n "$ac_ct_CC"; then
   4601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4602 $as_echo "$ac_ct_CC" >&6; }
   4603 else
   4604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4605 $as_echo "no" >&6; }
   4606 fi
   4607 
   4608 
   4609   test -n "$ac_ct_CC" && break
   4610 done
   4611 
   4612   if test "x$ac_ct_CC" = x; then
   4613     CC=""
   4614   else
   4615     case $cross_compiling:$ac_tool_warned in
   4616 yes:)
   4617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4619 ac_tool_warned=yes ;;
   4620 esac
   4621     CC=$ac_ct_CC
   4622   fi
   4623 fi
   4624 
   4625 fi
   4626 
   4627 
   4628 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4630 as_fn_error $? "no acceptable C compiler found in \$PATH
   4631 See \`config.log' for more details" "$LINENO" 5; }
   4632 
   4633 # Provide some information about the compiler.
   4634 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   4635 set X $ac_compile
   4636 ac_compiler=$2
   4637 for ac_option in --version -v -V -qversion; do
   4638   { { ac_try="$ac_compiler $ac_option >&5"
   4639 case "(($ac_try" in
   4640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4641   *) ac_try_echo=$ac_try;;
   4642 esac
   4643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4644 $as_echo "$ac_try_echo"; } >&5
   4645   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   4646   ac_status=$?
   4647   if test -s conftest.err; then
   4648     sed '10a\
   4649 ... rest of stderr output deleted ...
   4650          10q' conftest.err >conftest.er1
   4651     cat conftest.er1 >&5
   4652   fi
   4653   rm -f conftest.er1 conftest.err
   4654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4655   test $ac_status = 0; }
   4656 done
   4657 
   4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4659 /* end confdefs.h.  */
   4660 
   4661 int
   4662 main ()
   4663 {
   4664 
   4665   ;
   4666   return 0;
   4667 }
   4668 _ACEOF
   4669 ac_clean_files_save=$ac_clean_files
   4670 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   4671 # Try to create an executable without -o first, disregard a.out.
   4672 # It will help us diagnose broken compilers, and finding out an intuition
   4673 # of exeext.
   4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   4675 $as_echo_n "checking whether the C compiler works... " >&6; }
   4676 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   4677 
   4678 # The possible output files:
   4679 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   4680 
   4681 ac_rmfiles=
   4682 for ac_file in $ac_files
   4683 do
   4684   case $ac_file in
   4685     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4686     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   4687   esac
   4688 done
   4689 rm -f $ac_rmfiles
   4690 
   4691 if { { ac_try="$ac_link_default"
   4692 case "(($ac_try" in
   4693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4694   *) ac_try_echo=$ac_try;;
   4695 esac
   4696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4697 $as_echo "$ac_try_echo"; } >&5
   4698   (eval "$ac_link_default") 2>&5
   4699   ac_status=$?
   4700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4701   test $ac_status = 0; }; then :
   4702   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   4703 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   4704 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   4705 # so that the user can short-circuit this test for compilers unknown to
   4706 # Autoconf.
   4707 for ac_file in $ac_files ''
   4708 do
   4709   test -f "$ac_file" || continue
   4710   case $ac_file in
   4711     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   4712 	;;
   4713     [ab].out )
   4714 	# We found the default executable, but exeext='' is most
   4715 	# certainly right.
   4716 	break;;
   4717     *.* )
   4718 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   4719 	then :; else
   4720 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4721 	fi
   4722 	# We set ac_cv_exeext here because the later test for it is not
   4723 	# safe: cross compilers may not add the suffix if given an `-o'
   4724 	# argument, so we may need to know it at that point already.
   4725 	# Even if this section looks crufty: it has the advantage of
   4726 	# actually working.
   4727 	break;;
   4728     * )
   4729 	break;;
   4730   esac
   4731 done
   4732 test "$ac_cv_exeext" = no && ac_cv_exeext=
   4733 
   4734 else
   4735   ac_file=''
   4736 fi
   4737 if test -z "$ac_file"; then :
   4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4739 $as_echo "no" >&6; }
   4740 $as_echo "$as_me: failed program was:" >&5
   4741 sed 's/^/| /' conftest.$ac_ext >&5
   4742 
   4743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4745 as_fn_error 77 "C compiler cannot create executables
   4746 See \`config.log' for more details" "$LINENO" 5; }
   4747 else
   4748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4749 $as_echo "yes" >&6; }
   4750 fi
   4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   4752 $as_echo_n "checking for C compiler default output file name... " >&6; }
   4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   4754 $as_echo "$ac_file" >&6; }
   4755 ac_exeext=$ac_cv_exeext
   4756 
   4757 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   4758 ac_clean_files=$ac_clean_files_save
   4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   4760 $as_echo_n "checking for suffix of executables... " >&6; }
   4761 if { { ac_try="$ac_link"
   4762 case "(($ac_try" in
   4763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4764   *) ac_try_echo=$ac_try;;
   4765 esac
   4766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4767 $as_echo "$ac_try_echo"; } >&5
   4768   (eval "$ac_link") 2>&5
   4769   ac_status=$?
   4770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4771   test $ac_status = 0; }; then :
   4772   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   4773 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   4774 # work properly (i.e., refer to `conftest.exe'), while it won't with
   4775 # `rm'.
   4776 for ac_file in conftest.exe conftest conftest.*; do
   4777   test -f "$ac_file" || continue
   4778   case $ac_file in
   4779     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4780     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4781 	  break;;
   4782     * ) break;;
   4783   esac
   4784 done
   4785 else
   4786   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4788 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   4789 See \`config.log' for more details" "$LINENO" 5; }
   4790 fi
   4791 rm -f conftest conftest$ac_cv_exeext
   4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   4793 $as_echo "$ac_cv_exeext" >&6; }
   4794 
   4795 rm -f conftest.$ac_ext
   4796 EXEEXT=$ac_cv_exeext
   4797 ac_exeext=$EXEEXT
   4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4799 /* end confdefs.h.  */
   4800 #include <stdio.h>
   4801 int
   4802 main ()
   4803 {
   4804 FILE *f = fopen ("conftest.out", "w");
   4805  return ferror (f) || fclose (f) != 0;
   4806 
   4807   ;
   4808   return 0;
   4809 }
   4810 _ACEOF
   4811 ac_clean_files="$ac_clean_files conftest.out"
   4812 # Check that the compiler produces executables we can run.  If not, either
   4813 # the compiler is broken, or we cross compile.
   4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   4815 $as_echo_n "checking whether we are cross compiling... " >&6; }
   4816 if test "$cross_compiling" != yes; then
   4817   { { ac_try="$ac_link"
   4818 case "(($ac_try" in
   4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4820   *) ac_try_echo=$ac_try;;
   4821 esac
   4822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4823 $as_echo "$ac_try_echo"; } >&5
   4824   (eval "$ac_link") 2>&5
   4825   ac_status=$?
   4826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4827   test $ac_status = 0; }
   4828   if { ac_try='./conftest$ac_cv_exeext'
   4829   { { case "(($ac_try" in
   4830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4831   *) ac_try_echo=$ac_try;;
   4832 esac
   4833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4834 $as_echo "$ac_try_echo"; } >&5
   4835   (eval "$ac_try") 2>&5
   4836   ac_status=$?
   4837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4838   test $ac_status = 0; }; }; then
   4839     cross_compiling=no
   4840   else
   4841     if test "$cross_compiling" = maybe; then
   4842 	cross_compiling=yes
   4843     else
   4844 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4846 as_fn_error $? "cannot run C compiled programs.
   4847 If you meant to cross compile, use \`--host'.
   4848 See \`config.log' for more details" "$LINENO" 5; }
   4849     fi
   4850   fi
   4851 fi
   4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   4853 $as_echo "$cross_compiling" >&6; }
   4854 
   4855 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   4856 ac_clean_files=$ac_clean_files_save
   4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   4858 $as_echo_n "checking for suffix of object files... " >&6; }
   4859 if ${ac_cv_objext+:} false; then :
   4860   $as_echo_n "(cached) " >&6
   4861 else
   4862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4863 /* end confdefs.h.  */
   4864 
   4865 int
   4866 main ()
   4867 {
   4868 
   4869   ;
   4870   return 0;
   4871 }
   4872 _ACEOF
   4873 rm -f conftest.o conftest.obj
   4874 if { { ac_try="$ac_compile"
   4875 case "(($ac_try" in
   4876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4877   *) ac_try_echo=$ac_try;;
   4878 esac
   4879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4880 $as_echo "$ac_try_echo"; } >&5
   4881   (eval "$ac_compile") 2>&5
   4882   ac_status=$?
   4883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4884   test $ac_status = 0; }; then :
   4885   for ac_file in conftest.o conftest.obj conftest.*; do
   4886   test -f "$ac_file" || continue;
   4887   case $ac_file in
   4888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   4889     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   4890        break;;
   4891   esac
   4892 done
   4893 else
   4894   $as_echo "$as_me: failed program was:" >&5
   4895 sed 's/^/| /' conftest.$ac_ext >&5
   4896 
   4897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4899 as_fn_error $? "cannot compute suffix of object files: cannot compile
   4900 See \`config.log' for more details" "$LINENO" 5; }
   4901 fi
   4902 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   4903 fi
   4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   4905 $as_echo "$ac_cv_objext" >&6; }
   4906 OBJEXT=$ac_cv_objext
   4907 ac_objext=$OBJEXT
   4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   4909 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   4910 if ${ac_cv_c_compiler_gnu+:} false; then :
   4911   $as_echo_n "(cached) " >&6
   4912 else
   4913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4914 /* end confdefs.h.  */
   4915 
   4916 int
   4917 main ()
   4918 {
   4919 #ifndef __GNUC__
   4920        choke me
   4921 #endif
   4922 
   4923   ;
   4924   return 0;
   4925 }
   4926 _ACEOF
   4927 if ac_fn_c_try_compile "$LINENO"; then :
   4928   ac_compiler_gnu=yes
   4929 else
   4930   ac_compiler_gnu=no
   4931 fi
   4932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4933 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   4934 
   4935 fi
   4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   4937 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   4938 if test $ac_compiler_gnu = yes; then
   4939   GCC=yes
   4940 else
   4941   GCC=
   4942 fi
   4943 ac_test_CFLAGS=${CFLAGS+set}
   4944 ac_save_CFLAGS=$CFLAGS
   4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   4946 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   4947 if ${ac_cv_prog_cc_g+:} false; then :
   4948   $as_echo_n "(cached) " >&6
   4949 else
   4950   ac_save_c_werror_flag=$ac_c_werror_flag
   4951    ac_c_werror_flag=yes
   4952    ac_cv_prog_cc_g=no
   4953    CFLAGS="-g"
   4954    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4955 /* end confdefs.h.  */
   4956 
   4957 int
   4958 main ()
   4959 {
   4960 
   4961   ;
   4962   return 0;
   4963 }
   4964 _ACEOF
   4965 if ac_fn_c_try_compile "$LINENO"; then :
   4966   ac_cv_prog_cc_g=yes
   4967 else
   4968   CFLAGS=""
   4969       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4970 /* end confdefs.h.  */
   4971 
   4972 int
   4973 main ()
   4974 {
   4975 
   4976   ;
   4977   return 0;
   4978 }
   4979 _ACEOF
   4980 if ac_fn_c_try_compile "$LINENO"; then :
   4981 
   4982 else
   4983   ac_c_werror_flag=$ac_save_c_werror_flag
   4984 	 CFLAGS="-g"
   4985 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4986 /* end confdefs.h.  */
   4987 
   4988 int
   4989 main ()
   4990 {
   4991 
   4992   ;
   4993   return 0;
   4994 }
   4995 _ACEOF
   4996 if ac_fn_c_try_compile "$LINENO"; then :
   4997   ac_cv_prog_cc_g=yes
   4998 fi
   4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5000 fi
   5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5002 fi
   5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5004    ac_c_werror_flag=$ac_save_c_werror_flag
   5005 fi
   5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   5007 $as_echo "$ac_cv_prog_cc_g" >&6; }
   5008 if test "$ac_test_CFLAGS" = set; then
   5009   CFLAGS=$ac_save_CFLAGS
   5010 elif test $ac_cv_prog_cc_g = yes; then
   5011   if test "$GCC" = yes; then
   5012     CFLAGS="-g -O2"
   5013   else
   5014     CFLAGS="-g"
   5015   fi
   5016 else
   5017   if test "$GCC" = yes; then
   5018     CFLAGS="-O2"
   5019   else
   5020     CFLAGS=
   5021   fi
   5022 fi
   5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   5024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   5025 if ${ac_cv_prog_cc_c89+:} false; then :
   5026   $as_echo_n "(cached) " >&6
   5027 else
   5028   ac_cv_prog_cc_c89=no
   5029 ac_save_CC=$CC
   5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5031 /* end confdefs.h.  */
   5032 #include <stdarg.h>
   5033 #include <stdio.h>
   5034 struct stat;
   5035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   5036 struct buf { int x; };
   5037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   5038 static char *e (p, i)
   5039      char **p;
   5040      int i;
   5041 {
   5042   return p[i];
   5043 }
   5044 static char *f (char * (*g) (char **, int), char **p, ...)
   5045 {
   5046   char *s;
   5047   va_list v;
   5048   va_start (v,p);
   5049   s = g (p, va_arg (v,int));
   5050   va_end (v);
   5051   return s;
   5052 }
   5053 
   5054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   5055    function prototypes and stuff, but not '\xHH' hex character constants.
   5056    These don't provoke an error unfortunately, instead are silently treated
   5057    as 'x'.  The following induces an error, until -std is added to get
   5058    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   5059    array size at least.  It's necessary to write '\x00'==0 to get something
   5060    that's true only with -std.  */
   5061 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   5062 
   5063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   5064    inside strings and character constants.  */
   5065 #define FOO(x) 'x'
   5066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   5067 
   5068 int test (int i, double x);
   5069 struct s1 {int (*f) (int a);};
   5070 struct s2 {int (*f) (double a);};
   5071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   5072 int argc;
   5073 char **argv;
   5074 int
   5075 main ()
   5076 {
   5077 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   5078   ;
   5079   return 0;
   5080 }
   5081 _ACEOF
   5082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   5083 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   5084 do
   5085   CC="$ac_save_CC $ac_arg"
   5086   if ac_fn_c_try_compile "$LINENO"; then :
   5087   ac_cv_prog_cc_c89=$ac_arg
   5088 fi
   5089 rm -f core conftest.err conftest.$ac_objext
   5090   test "x$ac_cv_prog_cc_c89" != "xno" && break
   5091 done
   5092 rm -f conftest.$ac_ext
   5093 CC=$ac_save_CC
   5094 
   5095 fi
   5096 # AC_CACHE_VAL
   5097 case "x$ac_cv_prog_cc_c89" in
   5098   x)
   5099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5100 $as_echo "none needed" >&6; } ;;
   5101   xno)
   5102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5103 $as_echo "unsupported" >&6; } ;;
   5104   *)
   5105     CC="$CC $ac_cv_prog_cc_c89"
   5106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   5107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   5108 esac
   5109 if test "x$ac_cv_prog_cc_c89" != xno; then :
   5110 
   5111 fi
   5112 
   5113 ac_ext=c
   5114 ac_cpp='$CPP $CPPFLAGS'
   5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5118 
   5119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   5120 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   5121 if ${ac_cv_prog_cc_c99+:} false; then :
   5122   $as_echo_n "(cached) " >&6
   5123 else
   5124   ac_cv_prog_cc_c99=no
   5125 ac_save_CC=$CC
   5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5127 /* end confdefs.h.  */
   5128 #include <stdarg.h>
   5129 #include <stdbool.h>
   5130 #include <stdlib.h>
   5131 #include <wchar.h>
   5132 #include <stdio.h>
   5133 
   5134 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   5135 #define debug(...) fprintf (stderr, __VA_ARGS__)
   5136 #define showlist(...) puts (#__VA_ARGS__)
   5137 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   5138 static void
   5139 test_varargs_macros (void)
   5140 {
   5141   int x = 1234;
   5142   int y = 5678;
   5143   debug ("Flag");
   5144   debug ("X = %d\n", x);
   5145   showlist (The first, second, and third items.);
   5146   report (x>y, "x is %d but y is %d", x, y);
   5147 }
   5148 
   5149 // Check long long types.
   5150 #define BIG64 18446744073709551615ull
   5151 #define BIG32 4294967295ul
   5152 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   5153 #if !BIG_OK
   5154   your preprocessor is broken;
   5155 #endif
   5156 #if BIG_OK
   5157 #else
   5158   your preprocessor is broken;
   5159 #endif
   5160 static long long int bignum = -9223372036854775807LL;
   5161 static unsigned long long int ubignum = BIG64;
   5162 
   5163 struct incomplete_array
   5164 {
   5165   int datasize;
   5166   double data[];
   5167 };
   5168 
   5169 struct named_init {
   5170   int number;
   5171   const wchar_t *name;
   5172   double average;
   5173 };
   5174 
   5175 typedef const char *ccp;
   5176 
   5177 static inline int
   5178 test_restrict (ccp restrict text)
   5179 {
   5180   // See if C++-style comments work.
   5181   // Iterate through items via the restricted pointer.
   5182   // Also check for declarations in for loops.
   5183   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   5184     continue;
   5185   return 0;
   5186 }
   5187 
   5188 // Check varargs and va_copy.
   5189 static void
   5190 test_varargs (const char *format, ...)
   5191 {
   5192   va_list args;
   5193   va_start (args, format);
   5194   va_list args_copy;
   5195   va_copy (args_copy, args);
   5196 
   5197   const char *str;
   5198   int number;
   5199   float fnumber;
   5200 
   5201   while (*format)
   5202     {
   5203       switch (*format++)
   5204 	{
   5205 	case 's': // string
   5206 	  str = va_arg (args_copy, const char *);
   5207 	  break;
   5208 	case 'd': // int
   5209 	  number = va_arg (args_copy, int);
   5210 	  break;
   5211 	case 'f': // float
   5212 	  fnumber = va_arg (args_copy, double);
   5213 	  break;
   5214 	default:
   5215 	  break;
   5216 	}
   5217     }
   5218   va_end (args_copy);
   5219   va_end (args);
   5220 }
   5221 
   5222 int
   5223 main ()
   5224 {
   5225 
   5226   // Check bool.
   5227   _Bool success = false;
   5228 
   5229   // Check restrict.
   5230   if (test_restrict ("String literal") == 0)
   5231     success = true;
   5232   char *restrict newvar = "Another string";
   5233 
   5234   // Check varargs.
   5235   test_varargs ("s, d' f .", "string", 65, 34.234);
   5236   test_varargs_macros ();
   5237 
   5238   // Check flexible array members.
   5239   struct incomplete_array *ia =
   5240     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   5241   ia->datasize = 10;
   5242   for (int i = 0; i < ia->datasize; ++i)
   5243     ia->data[i] = i * 1.234;
   5244 
   5245   // Check named initializers.
   5246   struct named_init ni = {
   5247     .number = 34,
   5248     .name = L"Test wide string",
   5249     .average = 543.34343,
   5250   };
   5251 
   5252   ni.number = 58;
   5253 
   5254   int dynamic_array[ni.number];
   5255   dynamic_array[ni.number - 1] = 543;
   5256 
   5257   // work around unused variable warnings
   5258   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   5259 	  || dynamic_array[ni.number - 1] != 543);
   5260 
   5261   ;
   5262   return 0;
   5263 }
   5264 _ACEOF
   5265 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   5266 do
   5267   CC="$ac_save_CC $ac_arg"
   5268   if ac_fn_c_try_compile "$LINENO"; then :
   5269   ac_cv_prog_cc_c99=$ac_arg
   5270 fi
   5271 rm -f core conftest.err conftest.$ac_objext
   5272   test "x$ac_cv_prog_cc_c99" != "xno" && break
   5273 done
   5274 rm -f conftest.$ac_ext
   5275 CC=$ac_save_CC
   5276 
   5277 fi
   5278 # AC_CACHE_VAL
   5279 case "x$ac_cv_prog_cc_c99" in
   5280   x)
   5281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5282 $as_echo "none needed" >&6; } ;;
   5283   xno)
   5284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5285 $as_echo "unsupported" >&6; } ;;
   5286   *)
   5287     CC="$CC $ac_cv_prog_cc_c99"
   5288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   5289 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   5290 esac
   5291 if test "x$ac_cv_prog_cc_c99" != xno; then :
   5292 
   5293 fi
   5294 
   5295 
   5296 ac_ext=cpp
   5297 ac_cpp='$CXXCPP $CPPFLAGS'
   5298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5301 if test -z "$CXX"; then
   5302   if test -n "$CCC"; then
   5303     CXX=$CCC
   5304   else
   5305     if test -n "$ac_tool_prefix"; then
   5306   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   5307   do
   5308     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5311 $as_echo_n "checking for $ac_word... " >&6; }
   5312 if ${ac_cv_prog_CXX+:} false; then :
   5313   $as_echo_n "(cached) " >&6
   5314 else
   5315   if test -n "$CXX"; then
   5316   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   5317 else
   5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5319 for as_dir in $PATH
   5320 do
   5321   IFS=$as_save_IFS
   5322   test -z "$as_dir" && as_dir=.
   5323     for ac_exec_ext in '' $ac_executable_extensions; do
   5324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5325     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   5326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5327     break 2
   5328   fi
   5329 done
   5330   done
   5331 IFS=$as_save_IFS
   5332 
   5333 fi
   5334 fi
   5335 CXX=$ac_cv_prog_CXX
   5336 if test -n "$CXX"; then
   5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   5338 $as_echo "$CXX" >&6; }
   5339 else
   5340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5341 $as_echo "no" >&6; }
   5342 fi
   5343 
   5344 
   5345     test -n "$CXX" && break
   5346   done
   5347 fi
   5348 if test -z "$CXX"; then
   5349   ac_ct_CXX=$CXX
   5350   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   5351 do
   5352   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5353 set dummy $ac_prog; ac_word=$2
   5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5355 $as_echo_n "checking for $ac_word... " >&6; }
   5356 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   5357   $as_echo_n "(cached) " >&6
   5358 else
   5359   if test -n "$ac_ct_CXX"; then
   5360   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   5361 else
   5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5363 for as_dir in $PATH
   5364 do
   5365   IFS=$as_save_IFS
   5366   test -z "$as_dir" && as_dir=.
   5367     for ac_exec_ext in '' $ac_executable_extensions; do
   5368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5369     ac_cv_prog_ac_ct_CXX="$ac_prog"
   5370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5371     break 2
   5372   fi
   5373 done
   5374   done
   5375 IFS=$as_save_IFS
   5376 
   5377 fi
   5378 fi
   5379 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   5380 if test -n "$ac_ct_CXX"; then
   5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   5382 $as_echo "$ac_ct_CXX" >&6; }
   5383 else
   5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5385 $as_echo "no" >&6; }
   5386 fi
   5387 
   5388 
   5389   test -n "$ac_ct_CXX" && break
   5390 done
   5391 
   5392   if test "x$ac_ct_CXX" = x; then
   5393     CXX="g++"
   5394   else
   5395     case $cross_compiling:$ac_tool_warned in
   5396 yes:)
   5397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5399 ac_tool_warned=yes ;;
   5400 esac
   5401     CXX=$ac_ct_CXX
   5402   fi
   5403 fi
   5404 
   5405   fi
   5406 fi
   5407 # Provide some information about the compiler.
   5408 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   5409 set X $ac_compile
   5410 ac_compiler=$2
   5411 for ac_option in --version -v -V -qversion; do
   5412   { { ac_try="$ac_compiler $ac_option >&5"
   5413 case "(($ac_try" in
   5414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5415   *) ac_try_echo=$ac_try;;
   5416 esac
   5417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5418 $as_echo "$ac_try_echo"; } >&5
   5419   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   5420   ac_status=$?
   5421   if test -s conftest.err; then
   5422     sed '10a\
   5423 ... rest of stderr output deleted ...
   5424          10q' conftest.err >conftest.er1
   5425     cat conftest.er1 >&5
   5426   fi
   5427   rm -f conftest.er1 conftest.err
   5428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5429   test $ac_status = 0; }
   5430 done
   5431 
   5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   5433 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   5434 if ${ac_cv_cxx_compiler_gnu+:} false; then :
   5435   $as_echo_n "(cached) " >&6
   5436 else
   5437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5438 /* end confdefs.h.  */
   5439 
   5440 int
   5441 main ()
   5442 {
   5443 #ifndef __GNUC__
   5444        choke me
   5445 #endif
   5446 
   5447   ;
   5448   return 0;
   5449 }
   5450 _ACEOF
   5451 if ac_fn_cxx_try_compile "$LINENO"; then :
   5452   ac_compiler_gnu=yes
   5453 else
   5454   ac_compiler_gnu=no
   5455 fi
   5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5457 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   5458 
   5459 fi
   5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   5461 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   5462 if test $ac_compiler_gnu = yes; then
   5463   GXX=yes
   5464 else
   5465   GXX=
   5466 fi
   5467 ac_test_CXXFLAGS=${CXXFLAGS+set}
   5468 ac_save_CXXFLAGS=$CXXFLAGS
   5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   5470 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   5471 if ${ac_cv_prog_cxx_g+:} false; then :
   5472   $as_echo_n "(cached) " >&6
   5473 else
   5474   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   5475    ac_cxx_werror_flag=yes
   5476    ac_cv_prog_cxx_g=no
   5477    CXXFLAGS="-g"
   5478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5479 /* end confdefs.h.  */
   5480 
   5481 int
   5482 main ()
   5483 {
   5484 
   5485   ;
   5486   return 0;
   5487 }
   5488 _ACEOF
   5489 if ac_fn_cxx_try_compile "$LINENO"; then :
   5490   ac_cv_prog_cxx_g=yes
   5491 else
   5492   CXXFLAGS=""
   5493       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5494 /* end confdefs.h.  */
   5495 
   5496 int
   5497 main ()
   5498 {
   5499 
   5500   ;
   5501   return 0;
   5502 }
   5503 _ACEOF
   5504 if ac_fn_cxx_try_compile "$LINENO"; then :
   5505 
   5506 else
   5507   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   5508 	 CXXFLAGS="-g"
   5509 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5510 /* end confdefs.h.  */
   5511 
   5512 int
   5513 main ()
   5514 {
   5515 
   5516   ;
   5517   return 0;
   5518 }
   5519 _ACEOF
   5520 if ac_fn_cxx_try_compile "$LINENO"; then :
   5521   ac_cv_prog_cxx_g=yes
   5522 fi
   5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5524 fi
   5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5526 fi
   5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5528    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   5529 fi
   5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   5531 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   5532 if test "$ac_test_CXXFLAGS" = set; then
   5533   CXXFLAGS=$ac_save_CXXFLAGS
   5534 elif test $ac_cv_prog_cxx_g = yes; then
   5535   if test "$GXX" = yes; then
   5536     CXXFLAGS="-g -O2"
   5537   else
   5538     CXXFLAGS="-g"
   5539   fi
   5540 else
   5541   if test "$GXX" = yes; then
   5542     CXXFLAGS="-O2"
   5543   else
   5544     CXXFLAGS=
   5545   fi
   5546 fi
   5547 ac_ext=c
   5548 ac_cpp='$CPP $CPPFLAGS'
   5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5552 
   5553 
   5554 # We must set the default linker to the linker used by gcc for the correct
   5555 # operation of libtool.  If LD is not defined and we are using gcc, try to
   5556 # set the LD default to the ld used by gcc.
   5557 if test -z "$LD"; then
   5558   if test "$GCC" = yes; then
   5559     case $build in
   5560     *-*-mingw*)
   5561       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
   5562     *)
   5563       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
   5564     esac
   5565     case $gcc_prog_ld in
   5566     # Accept absolute paths.
   5567     [\\/]* | [A-Za-z]:[\\/]*)
   5568       LD="$gcc_prog_ld" ;;
   5569     esac
   5570   fi
   5571 fi
   5572 
   5573 # Check whether -static-libstdc++ -static-libgcc is supported.
   5574 have_static_libs=no
   5575 if test "$GCC" = yes; then
   5576   saved_LDFLAGS="$LDFLAGS"
   5577 
   5578   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
   5579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
   5580 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
   5581   ac_ext=cpp
   5582 ac_cpp='$CXXCPP $CPPFLAGS'
   5583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5586 
   5587 
   5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5589 /* end confdefs.h.  */
   5590 
   5591 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
   5592 #error -static-libstdc++ not implemented
   5593 #endif
   5594 int main() {}
   5595 _ACEOF
   5596 if ac_fn_cxx_try_link "$LINENO"; then :
   5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5598 $as_echo "yes" >&6; }; have_static_libs=yes
   5599 else
   5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5601 $as_echo "no" >&6; }
   5602 fi
   5603 rm -f core conftest.err conftest.$ac_objext \
   5604     conftest$ac_exeext conftest.$ac_ext
   5605   ac_ext=c
   5606 ac_cpp='$CPP $CPPFLAGS'
   5607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5610 
   5611 
   5612   LDFLAGS="$saved_LDFLAGS"
   5613 fi
   5614 
   5615 
   5616 
   5617 
   5618 if test -n "$ac_tool_prefix"; then
   5619   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
   5620 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
   5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5622 $as_echo_n "checking for $ac_word... " >&6; }
   5623 if ${ac_cv_prog_GNATBIND+:} false; then :
   5624   $as_echo_n "(cached) " >&6
   5625 else
   5626   if test -n "$GNATBIND"; then
   5627   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
   5628 else
   5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5630 for as_dir in $PATH
   5631 do
   5632   IFS=$as_save_IFS
   5633   test -z "$as_dir" && as_dir=.
   5634     for ac_exec_ext in '' $ac_executable_extensions; do
   5635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5636     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
   5637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5638     break 2
   5639   fi
   5640 done
   5641   done
   5642 IFS=$as_save_IFS
   5643 
   5644 fi
   5645 fi
   5646 GNATBIND=$ac_cv_prog_GNATBIND
   5647 if test -n "$GNATBIND"; then
   5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
   5649 $as_echo "$GNATBIND" >&6; }
   5650 else
   5651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5652 $as_echo "no" >&6; }
   5653 fi
   5654 
   5655 
   5656 fi
   5657 if test -z "$ac_cv_prog_GNATBIND"; then
   5658   ac_ct_GNATBIND=$GNATBIND
   5659   # Extract the first word of "gnatbind", so it can be a program name with args.
   5660 set dummy gnatbind; ac_word=$2
   5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5662 $as_echo_n "checking for $ac_word... " >&6; }
   5663 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
   5664   $as_echo_n "(cached) " >&6
   5665 else
   5666   if test -n "$ac_ct_GNATBIND"; then
   5667   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
   5668 else
   5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5670 for as_dir in $PATH
   5671 do
   5672   IFS=$as_save_IFS
   5673   test -z "$as_dir" && as_dir=.
   5674     for ac_exec_ext in '' $ac_executable_extensions; do
   5675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5676     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
   5677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5678     break 2
   5679   fi
   5680 done
   5681   done
   5682 IFS=$as_save_IFS
   5683 
   5684 fi
   5685 fi
   5686 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
   5687 if test -n "$ac_ct_GNATBIND"; then
   5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
   5689 $as_echo "$ac_ct_GNATBIND" >&6; }
   5690 else
   5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5692 $as_echo "no" >&6; }
   5693 fi
   5694 
   5695   if test "x$ac_ct_GNATBIND" = x; then
   5696     GNATBIND="no"
   5697   else
   5698     case $cross_compiling:$ac_tool_warned in
   5699 yes:)
   5700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5702 ac_tool_warned=yes ;;
   5703 esac
   5704     GNATBIND=$ac_ct_GNATBIND
   5705   fi
   5706 else
   5707   GNATBIND="$ac_cv_prog_GNATBIND"
   5708 fi
   5709 
   5710 if test -n "$ac_tool_prefix"; then
   5711   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
   5712 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
   5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5714 $as_echo_n "checking for $ac_word... " >&6; }
   5715 if ${ac_cv_prog_GNATMAKE+:} false; then :
   5716   $as_echo_n "(cached) " >&6
   5717 else
   5718   if test -n "$GNATMAKE"; then
   5719   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
   5720 else
   5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5722 for as_dir in $PATH
   5723 do
   5724   IFS=$as_save_IFS
   5725   test -z "$as_dir" && as_dir=.
   5726     for ac_exec_ext in '' $ac_executable_extensions; do
   5727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5728     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
   5729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5730     break 2
   5731   fi
   5732 done
   5733   done
   5734 IFS=$as_save_IFS
   5735 
   5736 fi
   5737 fi
   5738 GNATMAKE=$ac_cv_prog_GNATMAKE
   5739 if test -n "$GNATMAKE"; then
   5740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
   5741 $as_echo "$GNATMAKE" >&6; }
   5742 else
   5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5744 $as_echo "no" >&6; }
   5745 fi
   5746 
   5747 
   5748 fi
   5749 if test -z "$ac_cv_prog_GNATMAKE"; then
   5750   ac_ct_GNATMAKE=$GNATMAKE
   5751   # Extract the first word of "gnatmake", so it can be a program name with args.
   5752 set dummy gnatmake; ac_word=$2
   5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5754 $as_echo_n "checking for $ac_word... " >&6; }
   5755 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
   5756   $as_echo_n "(cached) " >&6
   5757 else
   5758   if test -n "$ac_ct_GNATMAKE"; then
   5759   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
   5760 else
   5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5762 for as_dir in $PATH
   5763 do
   5764   IFS=$as_save_IFS
   5765   test -z "$as_dir" && as_dir=.
   5766     for ac_exec_ext in '' $ac_executable_extensions; do
   5767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5768     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
   5769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5770     break 2
   5771   fi
   5772 done
   5773   done
   5774 IFS=$as_save_IFS
   5775 
   5776 fi
   5777 fi
   5778 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
   5779 if test -n "$ac_ct_GNATMAKE"; then
   5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
   5781 $as_echo "$ac_ct_GNATMAKE" >&6; }
   5782 else
   5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5784 $as_echo "no" >&6; }
   5785 fi
   5786 
   5787   if test "x$ac_ct_GNATMAKE" = x; then
   5788     GNATMAKE="no"
   5789   else
   5790     case $cross_compiling:$ac_tool_warned in
   5791 yes:)
   5792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5794 ac_tool_warned=yes ;;
   5795 esac
   5796     GNATMAKE=$ac_ct_GNATMAKE
   5797   fi
   5798 else
   5799   GNATMAKE="$ac_cv_prog_GNATMAKE"
   5800 fi
   5801 
   5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
   5803 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
   5804 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
   5805   $as_echo_n "(cached) " >&6
   5806 else
   5807   cat >conftest.adb <<EOF
   5808 pragma Warnings (Off);
   5809 with System.CRTL;
   5810 pragma Warnings (On);
   5811 use type System.CRTL.int64;
   5812 procedure conftest is begin null; end conftest;
   5813 EOF
   5814 acx_cv_cc_gcc_supports_ada=no
   5815 # There is a bug in old released versions of GCC which causes the
   5816 # driver to exit successfully when the appropriate language module
   5817 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
   5818 # Therefore we must check for the error message as well as an
   5819 # unsuccessful exit.
   5820 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
   5821 # given a .adb file, but produce no object file.  So we must check
   5822 # if an object file was really produced to guard against this.
   5823 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
   5824 if test x"$errors" = x && test -f conftest.$ac_objext; then
   5825   acx_cv_cc_gcc_supports_ada=yes
   5826 fi
   5827 rm -f conftest.*
   5828 fi
   5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
   5830 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
   5831 
   5832 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
   5833   have_gnat=yes
   5834 else
   5835   have_gnat=no
   5836 fi
   5837 
   5838 
   5839 
   5840 if test -n "$ac_tool_prefix"; then
   5841   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
   5842 set dummy ${ac_tool_prefix}gdc; ac_word=$2
   5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5844 $as_echo_n "checking for $ac_word... " >&6; }
   5845 if ${ac_cv_prog_GDC+:} false; then :
   5846   $as_echo_n "(cached) " >&6
   5847 else
   5848   if test -n "$GDC"; then
   5849   ac_cv_prog_GDC="$GDC" # Let the user override the test.
   5850 else
   5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5852 for as_dir in $PATH
   5853 do
   5854   IFS=$as_save_IFS
   5855   test -z "$as_dir" && as_dir=.
   5856     for ac_exec_ext in '' $ac_executable_extensions; do
   5857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5858     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
   5859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5860     break 2
   5861   fi
   5862 done
   5863   done
   5864 IFS=$as_save_IFS
   5865 
   5866 fi
   5867 fi
   5868 GDC=$ac_cv_prog_GDC
   5869 if test -n "$GDC"; then
   5870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
   5871 $as_echo "$GDC" >&6; }
   5872 else
   5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5874 $as_echo "no" >&6; }
   5875 fi
   5876 
   5877 
   5878 fi
   5879 if test -z "$ac_cv_prog_GDC"; then
   5880   ac_ct_GDC=$GDC
   5881   # Extract the first word of "gdc", so it can be a program name with args.
   5882 set dummy gdc; ac_word=$2
   5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5884 $as_echo_n "checking for $ac_word... " >&6; }
   5885 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
   5886   $as_echo_n "(cached) " >&6
   5887 else
   5888   if test -n "$ac_ct_GDC"; then
   5889   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
   5890 else
   5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5892 for as_dir in $PATH
   5893 do
   5894   IFS=$as_save_IFS
   5895   test -z "$as_dir" && as_dir=.
   5896     for ac_exec_ext in '' $ac_executable_extensions; do
   5897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5898     ac_cv_prog_ac_ct_GDC="gdc"
   5899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5900     break 2
   5901   fi
   5902 done
   5903   done
   5904 IFS=$as_save_IFS
   5905 
   5906 fi
   5907 fi
   5908 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
   5909 if test -n "$ac_ct_GDC"; then
   5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
   5911 $as_echo "$ac_ct_GDC" >&6; }
   5912 else
   5913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5914 $as_echo "no" >&6; }
   5915 fi
   5916 
   5917   if test "x$ac_ct_GDC" = x; then
   5918     GDC="no"
   5919   else
   5920     case $cross_compiling:$ac_tool_warned in
   5921 yes:)
   5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5924 ac_tool_warned=yes ;;
   5925 esac
   5926     GDC=$ac_ct_GDC
   5927   fi
   5928 else
   5929   GDC="$ac_cv_prog_GDC"
   5930 fi
   5931 
   5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
   5933 $as_echo_n "checking whether the D compiler works... " >&6; }
   5934 if ${acx_cv_d_compiler_works+:} false; then :
   5935   $as_echo_n "(cached) " >&6
   5936 else
   5937   cat >conftest.d <<EOF
   5938 module conftest; int main() { return 0; }
   5939 EOF
   5940 acx_cv_d_compiler_works=no
   5941 if test "x$GDC" != xno; then
   5942   errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
   5943   if test x"$errors" = x && test -f conftest.$ac_objext; then
   5944     acx_cv_d_compiler_works=yes
   5945   fi
   5946   rm -f conftest.*
   5947 fi
   5948 fi
   5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
   5950 $as_echo "$acx_cv_d_compiler_works" >&6; }
   5951 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
   5952   have_gdc=yes
   5953 else
   5954   have_gdc=no
   5955 fi
   5956 
   5957 for ac_prog in cargo
   5958 do
   5959   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5960 set dummy $ac_prog; ac_word=$2
   5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5962 $as_echo_n "checking for $ac_word... " >&6; }
   5963 if ${ac_cv_prog_CARGO+:} false; then :
   5964   $as_echo_n "(cached) " >&6
   5965 else
   5966   if test -n "$CARGO"; then
   5967   ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
   5968 else
   5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5970 for as_dir in $PATH
   5971 do
   5972   IFS=$as_save_IFS
   5973   test -z "$as_dir" && as_dir=.
   5974     for ac_exec_ext in '' $ac_executable_extensions; do
   5975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5976     ac_cv_prog_CARGO="$ac_prog"
   5977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5978     break 2
   5979   fi
   5980 done
   5981   done
   5982 IFS=$as_save_IFS
   5983 
   5984 fi
   5985 fi
   5986 CARGO=$ac_cv_prog_CARGO
   5987 if test -n "$CARGO"; then
   5988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
   5989 $as_echo "$CARGO" >&6; }
   5990 else
   5991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5992 $as_echo "no" >&6; }
   5993 fi
   5994 
   5995 
   5996   test -n "$CARGO" && break
   5997 done
   5998 test -n "$CARGO" || CARGO="no"
   5999 
   6000 if test "x$CARGO" != xno; then
   6001   have_cargo=yes
   6002 else
   6003   have_cargo=no
   6004 fi
   6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
   6006 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
   6007 if ${gcc_cv_prog_cmp_skip+:} false; then :
   6008   $as_echo_n "(cached) " >&6
   6009 else
   6010    echo abfoo >t1
   6011   echo cdfoo >t2
   6012   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
   6013   if cmp t1 t2 2 2 > /dev/null 2>&1; then
   6014     if cmp t1 t2 1 1 > /dev/null 2>&1; then
   6015       :
   6016     else
   6017       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
   6018     fi
   6019   fi
   6020   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
   6021     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
   6022       :
   6023     else
   6024       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
   6025     fi
   6026   fi
   6027   rm t1 t2
   6028 
   6029 fi
   6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
   6031 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
   6032 do_compare="$gcc_cv_prog_cmp_skip"
   6033 
   6034 
   6035 
   6036 # Check whether --enable-bootstrap was given.
   6037 if test "${enable_bootstrap+set}" = set; then :
   6038   enableval=$enable_bootstrap;
   6039 else
   6040   enable_bootstrap=default
   6041 fi
   6042 
   6043 
   6044 # Issue errors and warnings for invalid/strange bootstrap combinations.
   6045 if test -r $srcdir/gcc/configure; then
   6046   have_compiler=yes
   6047 else
   6048   have_compiler=no
   6049 fi
   6050 
   6051 case "$have_compiler:$host:$target:$enable_bootstrap" in
   6052   *:*:*:no) ;;
   6053 
   6054   # Default behavior.  Enable bootstrap if we have a compiler
   6055   # and we are in a native configuration.
   6056   yes:$build:$build:default)
   6057     enable_bootstrap=yes ;;
   6058 
   6059   *:*:*:default)
   6060     enable_bootstrap=no ;;
   6061 
   6062   # We have a compiler and we are in a native configuration, bootstrap is ok
   6063   yes:$build:$build:yes)
   6064     ;;
   6065 
   6066   # Other configurations, but we have a compiler.  Assume the user knows
   6067   # what he's doing.
   6068   yes:*:*:yes)
   6069     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
   6070 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
   6071     ;;
   6072 
   6073   # No compiler: if they passed --enable-bootstrap explicitly, fail
   6074   no:*:*:yes)
   6075     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
   6076 
   6077   # Fail if wrong command line
   6078   *)
   6079     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
   6080     ;;
   6081 esac
   6082 
   6083 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
   6084 # C++14 compiler can still start the bootstrap.  Otherwise, if building GCC,
   6085 # require C++14 (or higher).
   6086 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
   6087   CXX="$CXX -std=c++14"
   6088 elif test "$have_compiler" = yes; then
   6089     ax_cxx_compile_alternatives="14 1y"    ax_cxx_compile_cxx14_required=true
   6090   ac_ext=cpp
   6091 ac_cpp='$CXXCPP $CPPFLAGS'
   6092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6095   ac_success=no
   6096 
   6097       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
   6098 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
   6099 if ${ax_cv_cxx_compile_cxx14+:} false; then :
   6100   $as_echo_n "(cached) " >&6
   6101 else
   6102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6103 /* end confdefs.h.  */
   6104 
   6105 
   6106 // If the compiler admits that it is not ready for C++11, why torture it?
   6107 // Hopefully, this will speed up the test.
   6108 
   6109 #ifndef __cplusplus
   6110 
   6111 #error "This is not a C++ compiler"
   6112 
   6113 #elif __cplusplus < 201103L
   6114 
   6115 #error "This is not a C++11 compiler"
   6116 
   6117 #else
   6118 
   6119 namespace cxx11
   6120 {
   6121 
   6122   namespace test_static_assert
   6123   {
   6124 
   6125     template <typename T>
   6126     struct check
   6127     {
   6128       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   6129     };
   6130 
   6131   }
   6132 
   6133   namespace test_final_override
   6134   {
   6135 
   6136     struct Base
   6137     {
   6138       virtual ~Base() {}
   6139       virtual void f() {}
   6140     };
   6141 
   6142     struct Derived : public Base
   6143     {
   6144       virtual ~Derived() override {}
   6145       virtual void f() override {}
   6146     };
   6147 
   6148   }
   6149 
   6150   namespace test_double_right_angle_brackets
   6151   {
   6152 
   6153     template < typename T >
   6154     struct check {};
   6155 
   6156     typedef check<void> single_type;
   6157     typedef check<check<void>> double_type;
   6158     typedef check<check<check<void>>> triple_type;
   6159     typedef check<check<check<check<void>>>> quadruple_type;
   6160 
   6161   }
   6162 
   6163   namespace test_decltype
   6164   {
   6165 
   6166     int
   6167     f()
   6168     {
   6169       int a = 1;
   6170       decltype(a) b = 2;
   6171       return a + b;
   6172     }
   6173 
   6174   }
   6175 
   6176   namespace test_type_deduction
   6177   {
   6178 
   6179     template < typename T1, typename T2 >
   6180     struct is_same
   6181     {
   6182       static const bool value = false;
   6183     };
   6184 
   6185     template < typename T >
   6186     struct is_same<T, T>
   6187     {
   6188       static const bool value = true;
   6189     };
   6190 
   6191     template < typename T1, typename T2 >
   6192     auto
   6193     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   6194     {
   6195       return a1 + a2;
   6196     }
   6197 
   6198     int
   6199     test(const int c, volatile int v)
   6200     {
   6201       static_assert(is_same<int, decltype(0)>::value == true, "");
   6202       static_assert(is_same<int, decltype(c)>::value == false, "");
   6203       static_assert(is_same<int, decltype(v)>::value == false, "");
   6204       auto ac = c;
   6205       auto av = v;
   6206       auto sumi = ac + av + 'x';
   6207       auto sumf = ac + av + 1.0;
   6208       static_assert(is_same<int, decltype(ac)>::value == true, "");
   6209       static_assert(is_same<int, decltype(av)>::value == true, "");
   6210       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   6211       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   6212       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   6213       return (sumf > 0.0) ? sumi : add(c, v);
   6214     }
   6215 
   6216   }
   6217 
   6218   namespace test_noexcept
   6219   {
   6220 
   6221     int f() { return 0; }
   6222     int g() noexcept { return 0; }
   6223 
   6224     static_assert(noexcept(f()) == false, "");
   6225     static_assert(noexcept(g()) == true, "");
   6226 
   6227   }
   6228 
   6229   namespace test_constexpr
   6230   {
   6231 
   6232     template < typename CharT >
   6233     unsigned long constexpr
   6234     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   6235     {
   6236       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   6237     }
   6238 
   6239     template < typename CharT >
   6240     unsigned long constexpr
   6241     strlen_c(const CharT *const s) noexcept
   6242     {
   6243       return strlen_c_r(s, 0UL);
   6244     }
   6245 
   6246     static_assert(strlen_c("") == 0UL, "");
   6247     static_assert(strlen_c("1") == 1UL, "");
   6248     static_assert(strlen_c("example") == 7UL, "");
   6249     static_assert(strlen_c("another\0example") == 7UL, "");
   6250 
   6251   }
   6252 
   6253   namespace test_rvalue_references
   6254   {
   6255 
   6256     template < int N >
   6257     struct answer
   6258     {
   6259       static constexpr int value = N;
   6260     };
   6261 
   6262     answer<1> f(int&)       { return answer<1>(); }
   6263     answer<2> f(const int&) { return answer<2>(); }
   6264     answer<3> f(int&&)      { return answer<3>(); }
   6265 
   6266     void
   6267     test()
   6268     {
   6269       int i = 0;
   6270       const int c = 0;
   6271       static_assert(decltype(f(i))::value == 1, "");
   6272       static_assert(decltype(f(c))::value == 2, "");
   6273       static_assert(decltype(f(0))::value == 3, "");
   6274     }
   6275 
   6276   }
   6277 
   6278   namespace test_uniform_initialization
   6279   {
   6280 
   6281     struct test
   6282     {
   6283       static const int zero {};
   6284       static const int one {1};
   6285     };
   6286 
   6287     static_assert(test::zero == 0, "");
   6288     static_assert(test::one == 1, "");
   6289 
   6290   }
   6291 
   6292   namespace test_lambdas
   6293   {
   6294 
   6295     void
   6296     test1()
   6297     {
   6298       auto lambda1 = [](){};
   6299       auto lambda2 = lambda1;
   6300       lambda1();
   6301       lambda2();
   6302     }
   6303 
   6304     int
   6305     test2()
   6306     {
   6307       auto a = [](int i, int j){ return i + j; }(1, 2);
   6308       auto b = []() -> int { return '0'; }();
   6309       auto c = [=](){ return a + b; }();
   6310       auto d = [&](){ return c; }();
   6311       auto e = [a, &b](int x) mutable {
   6312         const auto identity = [](int y){ return y; };
   6313         for (auto i = 0; i < a; ++i)
   6314           a += b--;
   6315         return x + identity(a + b);
   6316       }(0);
   6317       return a + b + c + d + e;
   6318     }
   6319 
   6320     int
   6321     test3()
   6322     {
   6323       const auto nullary = [](){ return 0; };
   6324       const auto unary = [](int x){ return x; };
   6325       using nullary_t = decltype(nullary);
   6326       using unary_t = decltype(unary);
   6327       const auto higher1st = [](nullary_t f){ return f(); };
   6328       const auto higher2nd = [unary](nullary_t f1){
   6329         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   6330       };
   6331       return higher1st(nullary) + higher2nd(nullary)(unary);
   6332     }
   6333 
   6334   }
   6335 
   6336   namespace test_variadic_templates
   6337   {
   6338 
   6339     template <int...>
   6340     struct sum;
   6341 
   6342     template <int N0, int... N1toN>
   6343     struct sum<N0, N1toN...>
   6344     {
   6345       static constexpr auto value = N0 + sum<N1toN...>::value;
   6346     };
   6347 
   6348     template <>
   6349     struct sum<>
   6350     {
   6351       static constexpr auto value = 0;
   6352     };
   6353 
   6354     static_assert(sum<>::value == 0, "");
   6355     static_assert(sum<1>::value == 1, "");
   6356     static_assert(sum<23>::value == 23, "");
   6357     static_assert(sum<1, 2>::value == 3, "");
   6358     static_assert(sum<5, 5, 11>::value == 21, "");
   6359     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   6360 
   6361   }
   6362 
   6363   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   6364   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   6365   // because of this.
   6366   namespace test_template_alias_sfinae
   6367   {
   6368 
   6369     struct foo {};
   6370 
   6371     template<typename T>
   6372     using member = typename T::member_type;
   6373 
   6374     template<typename T>
   6375     void func(...) {}
   6376 
   6377     template<typename T>
   6378     void func(member<T>*) {}
   6379 
   6380     void test();
   6381 
   6382     void test() { func<foo>(0); }
   6383 
   6384   }
   6385 
   6386 }  // namespace cxx11
   6387 
   6388 #endif  // __cplusplus >= 201103L
   6389 
   6390 
   6391 
   6392 
   6393 // If the compiler admits that it is not ready for C++14, why torture it?
   6394 // Hopefully, this will speed up the test.
   6395 
   6396 #ifndef __cplusplus
   6397 
   6398 #error "This is not a C++ compiler"
   6399 
   6400 #elif __cplusplus < 201402L
   6401 
   6402 #error "This is not a C++14 compiler"
   6403 
   6404 #else
   6405 
   6406 namespace cxx14
   6407 {
   6408 
   6409   namespace test_polymorphic_lambdas
   6410   {
   6411 
   6412     int
   6413     test()
   6414     {
   6415       const auto lambda = [](auto&&... args){
   6416         const auto istiny = [](auto x){
   6417           return (sizeof(x) == 1UL) ? 1 : 0;
   6418         };
   6419         const int aretiny[] = { istiny(args)... };
   6420         return aretiny[0];
   6421       };
   6422       return lambda(1, 1L, 1.0f, '1');
   6423     }
   6424 
   6425   }
   6426 
   6427   namespace test_binary_literals
   6428   {
   6429 
   6430     constexpr auto ivii = 0b0000000000101010;
   6431     static_assert(ivii == 42, "wrong value");
   6432 
   6433   }
   6434 
   6435   namespace test_generalized_constexpr
   6436   {
   6437 
   6438     template < typename CharT >
   6439     constexpr unsigned long
   6440     strlen_c(const CharT *const s) noexcept
   6441     {
   6442       auto length = 0UL;
   6443       for (auto p = s; *p; ++p)
   6444         ++length;
   6445       return length;
   6446     }
   6447 
   6448     static_assert(strlen_c("") == 0UL, "");
   6449     static_assert(strlen_c("x") == 1UL, "");
   6450     static_assert(strlen_c("test") == 4UL, "");
   6451     static_assert(strlen_c("another\0test") == 7UL, "");
   6452 
   6453   }
   6454 
   6455   namespace test_lambda_init_capture
   6456   {
   6457 
   6458     int
   6459     test()
   6460     {
   6461       auto x = 0;
   6462       const auto lambda1 = [a = x](int b){ return a + b; };
   6463       const auto lambda2 = [a = lambda1(x)](){ return a; };
   6464       return lambda2();
   6465     }
   6466 
   6467   }
   6468 
   6469   namespace test_digit_separators
   6470   {
   6471 
   6472     constexpr auto ten_million = 100'000'000;
   6473     static_assert(ten_million == 100000000, "");
   6474 
   6475   }
   6476 
   6477   namespace test_return_type_deduction
   6478   {
   6479 
   6480     auto f(int& x) { return x; }
   6481     decltype(auto) g(int& x) { return x; }
   6482 
   6483     template < typename T1, typename T2 >
   6484     struct is_same
   6485     {
   6486       static constexpr auto value = false;
   6487     };
   6488 
   6489     template < typename T >
   6490     struct is_same<T, T>
   6491     {
   6492       static constexpr auto value = true;
   6493     };
   6494 
   6495     int
   6496     test()
   6497     {
   6498       auto x = 0;
   6499       static_assert(is_same<int, decltype(f(x))>::value, "");
   6500       static_assert(is_same<int&, decltype(g(x))>::value, "");
   6501       return x;
   6502     }
   6503 
   6504   }
   6505 
   6506 }  // namespace cxx14
   6507 
   6508 #endif  // __cplusplus >= 201402L
   6509 
   6510 
   6511 
   6512 _ACEOF
   6513 if ac_fn_cxx_try_compile "$LINENO"; then :
   6514   ax_cv_cxx_compile_cxx14=yes
   6515 else
   6516   ax_cv_cxx_compile_cxx14=no
   6517 fi
   6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6519 fi
   6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
   6521 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
   6522     if test x$ax_cv_cxx_compile_cxx14 = xyes; then
   6523       ac_success=yes
   6524     fi
   6525 
   6526     if test x$ac_success = xno; then
   6527     for alternative in ${ax_cxx_compile_alternatives}; do
   6528       switch="-std=gnu++${alternative}"
   6529       cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
   6530       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
   6531 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
   6532 if eval \${$cachevar+:} false; then :
   6533   $as_echo_n "(cached) " >&6
   6534 else
   6535   ac_save_CXX="$CXX"
   6536          CXX="$CXX $switch"
   6537          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6538 /* end confdefs.h.  */
   6539 
   6540 
   6541 // If the compiler admits that it is not ready for C++11, why torture it?
   6542 // Hopefully, this will speed up the test.
   6543 
   6544 #ifndef __cplusplus
   6545 
   6546 #error "This is not a C++ compiler"
   6547 
   6548 #elif __cplusplus < 201103L
   6549 
   6550 #error "This is not a C++11 compiler"
   6551 
   6552 #else
   6553 
   6554 namespace cxx11
   6555 {
   6556 
   6557   namespace test_static_assert
   6558   {
   6559 
   6560     template <typename T>
   6561     struct check
   6562     {
   6563       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   6564     };
   6565 
   6566   }
   6567 
   6568   namespace test_final_override
   6569   {
   6570 
   6571     struct Base
   6572     {
   6573       virtual ~Base() {}
   6574       virtual void f() {}
   6575     };
   6576 
   6577     struct Derived : public Base
   6578     {
   6579       virtual ~Derived() override {}
   6580       virtual void f() override {}
   6581     };
   6582 
   6583   }
   6584 
   6585   namespace test_double_right_angle_brackets
   6586   {
   6587 
   6588     template < typename T >
   6589     struct check {};
   6590 
   6591     typedef check<void> single_type;
   6592     typedef check<check<void>> double_type;
   6593     typedef check<check<check<void>>> triple_type;
   6594     typedef check<check<check<check<void>>>> quadruple_type;
   6595 
   6596   }
   6597 
   6598   namespace test_decltype
   6599   {
   6600 
   6601     int
   6602     f()
   6603     {
   6604       int a = 1;
   6605       decltype(a) b = 2;
   6606       return a + b;
   6607     }
   6608 
   6609   }
   6610 
   6611   namespace test_type_deduction
   6612   {
   6613 
   6614     template < typename T1, typename T2 >
   6615     struct is_same
   6616     {
   6617       static const bool value = false;
   6618     };
   6619 
   6620     template < typename T >
   6621     struct is_same<T, T>
   6622     {
   6623       static const bool value = true;
   6624     };
   6625 
   6626     template < typename T1, typename T2 >
   6627     auto
   6628     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   6629     {
   6630       return a1 + a2;
   6631     }
   6632 
   6633     int
   6634     test(const int c, volatile int v)
   6635     {
   6636       static_assert(is_same<int, decltype(0)>::value == true, "");
   6637       static_assert(is_same<int, decltype(c)>::value == false, "");
   6638       static_assert(is_same<int, decltype(v)>::value == false, "");
   6639       auto ac = c;
   6640       auto av = v;
   6641       auto sumi = ac + av + 'x';
   6642       auto sumf = ac + av + 1.0;
   6643       static_assert(is_same<int, decltype(ac)>::value == true, "");
   6644       static_assert(is_same<int, decltype(av)>::value == true, "");
   6645       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   6646       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   6647       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   6648       return (sumf > 0.0) ? sumi : add(c, v);
   6649     }
   6650 
   6651   }
   6652 
   6653   namespace test_noexcept
   6654   {
   6655 
   6656     int f() { return 0; }
   6657     int g() noexcept { return 0; }
   6658 
   6659     static_assert(noexcept(f()) == false, "");
   6660     static_assert(noexcept(g()) == true, "");
   6661 
   6662   }
   6663 
   6664   namespace test_constexpr
   6665   {
   6666 
   6667     template < typename CharT >
   6668     unsigned long constexpr
   6669     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   6670     {
   6671       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   6672     }
   6673 
   6674     template < typename CharT >
   6675     unsigned long constexpr
   6676     strlen_c(const CharT *const s) noexcept
   6677     {
   6678       return strlen_c_r(s, 0UL);
   6679     }
   6680 
   6681     static_assert(strlen_c("") == 0UL, "");
   6682     static_assert(strlen_c("1") == 1UL, "");
   6683     static_assert(strlen_c("example") == 7UL, "");
   6684     static_assert(strlen_c("another\0example") == 7UL, "");
   6685 
   6686   }
   6687 
   6688   namespace test_rvalue_references
   6689   {
   6690 
   6691     template < int N >
   6692     struct answer
   6693     {
   6694       static constexpr int value = N;
   6695     };
   6696 
   6697     answer<1> f(int&)       { return answer<1>(); }
   6698     answer<2> f(const int&) { return answer<2>(); }
   6699     answer<3> f(int&&)      { return answer<3>(); }
   6700 
   6701     void
   6702     test()
   6703     {
   6704       int i = 0;
   6705       const int c = 0;
   6706       static_assert(decltype(f(i))::value == 1, "");
   6707       static_assert(decltype(f(c))::value == 2, "");
   6708       static_assert(decltype(f(0))::value == 3, "");
   6709     }
   6710 
   6711   }
   6712 
   6713   namespace test_uniform_initialization
   6714   {
   6715 
   6716     struct test
   6717     {
   6718       static const int zero {};
   6719       static const int one {1};
   6720     };
   6721 
   6722     static_assert(test::zero == 0, "");
   6723     static_assert(test::one == 1, "");
   6724 
   6725   }
   6726 
   6727   namespace test_lambdas
   6728   {
   6729 
   6730     void
   6731     test1()
   6732     {
   6733       auto lambda1 = [](){};
   6734       auto lambda2 = lambda1;
   6735       lambda1();
   6736       lambda2();
   6737     }
   6738 
   6739     int
   6740     test2()
   6741     {
   6742       auto a = [](int i, int j){ return i + j; }(1, 2);
   6743       auto b = []() -> int { return '0'; }();
   6744       auto c = [=](){ return a + b; }();
   6745       auto d = [&](){ return c; }();
   6746       auto e = [a, &b](int x) mutable {
   6747         const auto identity = [](int y){ return y; };
   6748         for (auto i = 0; i < a; ++i)
   6749           a += b--;
   6750         return x + identity(a + b);
   6751       }(0);
   6752       return a + b + c + d + e;
   6753     }
   6754 
   6755     int
   6756     test3()
   6757     {
   6758       const auto nullary = [](){ return 0; };
   6759       const auto unary = [](int x){ return x; };
   6760       using nullary_t = decltype(nullary);
   6761       using unary_t = decltype(unary);
   6762       const auto higher1st = [](nullary_t f){ return f(); };
   6763       const auto higher2nd = [unary](nullary_t f1){
   6764         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   6765       };
   6766       return higher1st(nullary) + higher2nd(nullary)(unary);
   6767     }
   6768 
   6769   }
   6770 
   6771   namespace test_variadic_templates
   6772   {
   6773 
   6774     template <int...>
   6775     struct sum;
   6776 
   6777     template <int N0, int... N1toN>
   6778     struct sum<N0, N1toN...>
   6779     {
   6780       static constexpr auto value = N0 + sum<N1toN...>::value;
   6781     };
   6782 
   6783     template <>
   6784     struct sum<>
   6785     {
   6786       static constexpr auto value = 0;
   6787     };
   6788 
   6789     static_assert(sum<>::value == 0, "");
   6790     static_assert(sum<1>::value == 1, "");
   6791     static_assert(sum<23>::value == 23, "");
   6792     static_assert(sum<1, 2>::value == 3, "");
   6793     static_assert(sum<5, 5, 11>::value == 21, "");
   6794     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   6795 
   6796   }
   6797 
   6798   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   6799   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   6800   // because of this.
   6801   namespace test_template_alias_sfinae
   6802   {
   6803 
   6804     struct foo {};
   6805 
   6806     template<typename T>
   6807     using member = typename T::member_type;
   6808 
   6809     template<typename T>
   6810     void func(...) {}
   6811 
   6812     template<typename T>
   6813     void func(member<T>*) {}
   6814 
   6815     void test();
   6816 
   6817     void test() { func<foo>(0); }
   6818 
   6819   }
   6820 
   6821 }  // namespace cxx11
   6822 
   6823 #endif  // __cplusplus >= 201103L
   6824 
   6825 
   6826 
   6827 
   6828 // If the compiler admits that it is not ready for C++14, why torture it?
   6829 // Hopefully, this will speed up the test.
   6830 
   6831 #ifndef __cplusplus
   6832 
   6833 #error "This is not a C++ compiler"
   6834 
   6835 #elif __cplusplus < 201402L
   6836 
   6837 #error "This is not a C++14 compiler"
   6838 
   6839 #else
   6840 
   6841 namespace cxx14
   6842 {
   6843 
   6844   namespace test_polymorphic_lambdas
   6845   {
   6846 
   6847     int
   6848     test()
   6849     {
   6850       const auto lambda = [](auto&&... args){
   6851         const auto istiny = [](auto x){
   6852           return (sizeof(x) == 1UL) ? 1 : 0;
   6853         };
   6854         const int aretiny[] = { istiny(args)... };
   6855         return aretiny[0];
   6856       };
   6857       return lambda(1, 1L, 1.0f, '1');
   6858     }
   6859 
   6860   }
   6861 
   6862   namespace test_binary_literals
   6863   {
   6864 
   6865     constexpr auto ivii = 0b0000000000101010;
   6866     static_assert(ivii == 42, "wrong value");
   6867 
   6868   }
   6869 
   6870   namespace test_generalized_constexpr
   6871   {
   6872 
   6873     template < typename CharT >
   6874     constexpr unsigned long
   6875     strlen_c(const CharT *const s) noexcept
   6876     {
   6877       auto length = 0UL;
   6878       for (auto p = s; *p; ++p)
   6879         ++length;
   6880       return length;
   6881     }
   6882 
   6883     static_assert(strlen_c("") == 0UL, "");
   6884     static_assert(strlen_c("x") == 1UL, "");
   6885     static_assert(strlen_c("test") == 4UL, "");
   6886     static_assert(strlen_c("another\0test") == 7UL, "");
   6887 
   6888   }
   6889 
   6890   namespace test_lambda_init_capture
   6891   {
   6892 
   6893     int
   6894     test()
   6895     {
   6896       auto x = 0;
   6897       const auto lambda1 = [a = x](int b){ return a + b; };
   6898       const auto lambda2 = [a = lambda1(x)](){ return a; };
   6899       return lambda2();
   6900     }
   6901 
   6902   }
   6903 
   6904   namespace test_digit_separators
   6905   {
   6906 
   6907     constexpr auto ten_million = 100'000'000;
   6908     static_assert(ten_million == 100000000, "");
   6909 
   6910   }
   6911 
   6912   namespace test_return_type_deduction
   6913   {
   6914 
   6915     auto f(int& x) { return x; }
   6916     decltype(auto) g(int& x) { return x; }
   6917 
   6918     template < typename T1, typename T2 >
   6919     struct is_same
   6920     {
   6921       static constexpr auto value = false;
   6922     };
   6923 
   6924     template < typename T >
   6925     struct is_same<T, T>
   6926     {
   6927       static constexpr auto value = true;
   6928     };
   6929 
   6930     int
   6931     test()
   6932     {
   6933       auto x = 0;
   6934       static_assert(is_same<int, decltype(f(x))>::value, "");
   6935       static_assert(is_same<int&, decltype(g(x))>::value, "");
   6936       return x;
   6937     }
   6938 
   6939   }
   6940 
   6941 }  // namespace cxx14
   6942 
   6943 #endif  // __cplusplus >= 201402L
   6944 
   6945 
   6946 
   6947 _ACEOF
   6948 if ac_fn_cxx_try_compile "$LINENO"; then :
   6949   eval $cachevar=yes
   6950 else
   6951   eval $cachevar=no
   6952 fi
   6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6954          CXX="$ac_save_CXX"
   6955 fi
   6956 eval ac_res=\$$cachevar
   6957 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6958 $as_echo "$ac_res" >&6; }
   6959       if eval test x\$$cachevar = xyes; then
   6960         CXX="$CXX $switch"
   6961         if test -n "$CXXCPP" ; then
   6962           CXXCPP="$CXXCPP $switch"
   6963         fi
   6964         ac_success=yes
   6965         break
   6966       fi
   6967     done
   6968   fi
   6969 
   6970     if test x$ac_success = xno; then
   6971                 for alternative in ${ax_cxx_compile_alternatives}; do
   6972       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
   6973         cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
   6974         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
   6975 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
   6976 if eval \${$cachevar+:} false; then :
   6977   $as_echo_n "(cached) " >&6
   6978 else
   6979   ac_save_CXX="$CXX"
   6980            CXX="$CXX $switch"
   6981            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6982 /* end confdefs.h.  */
   6983 
   6984 
   6985 // If the compiler admits that it is not ready for C++11, why torture it?
   6986 // Hopefully, this will speed up the test.
   6987 
   6988 #ifndef __cplusplus
   6989 
   6990 #error "This is not a C++ compiler"
   6991 
   6992 #elif __cplusplus < 201103L
   6993 
   6994 #error "This is not a C++11 compiler"
   6995 
   6996 #else
   6997 
   6998 namespace cxx11
   6999 {
   7000 
   7001   namespace test_static_assert
   7002   {
   7003 
   7004     template <typename T>
   7005     struct check
   7006     {
   7007       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   7008     };
   7009 
   7010   }
   7011 
   7012   namespace test_final_override
   7013   {
   7014 
   7015     struct Base
   7016     {
   7017       virtual ~Base() {}
   7018       virtual void f() {}
   7019     };
   7020 
   7021     struct Derived : public Base
   7022     {
   7023       virtual ~Derived() override {}
   7024       virtual void f() override {}
   7025     };
   7026 
   7027   }
   7028 
   7029   namespace test_double_right_angle_brackets
   7030   {
   7031 
   7032     template < typename T >
   7033     struct check {};
   7034 
   7035     typedef check<void> single_type;
   7036     typedef check<check<void>> double_type;
   7037     typedef check<check<check<void>>> triple_type;
   7038     typedef check<check<check<check<void>>>> quadruple_type;
   7039 
   7040   }
   7041 
   7042   namespace test_decltype
   7043   {
   7044 
   7045     int
   7046     f()
   7047     {
   7048       int a = 1;
   7049       decltype(a) b = 2;
   7050       return a + b;
   7051     }
   7052 
   7053   }
   7054 
   7055   namespace test_type_deduction
   7056   {
   7057 
   7058     template < typename T1, typename T2 >
   7059     struct is_same
   7060     {
   7061       static const bool value = false;
   7062     };
   7063 
   7064     template < typename T >
   7065     struct is_same<T, T>
   7066     {
   7067       static const bool value = true;
   7068     };
   7069 
   7070     template < typename T1, typename T2 >
   7071     auto
   7072     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   7073     {
   7074       return a1 + a2;
   7075     }
   7076 
   7077     int
   7078     test(const int c, volatile int v)
   7079     {
   7080       static_assert(is_same<int, decltype(0)>::value == true, "");
   7081       static_assert(is_same<int, decltype(c)>::value == false, "");
   7082       static_assert(is_same<int, decltype(v)>::value == false, "");
   7083       auto ac = c;
   7084       auto av = v;
   7085       auto sumi = ac + av + 'x';
   7086       auto sumf = ac + av + 1.0;
   7087       static_assert(is_same<int, decltype(ac)>::value == true, "");
   7088       static_assert(is_same<int, decltype(av)>::value == true, "");
   7089       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   7090       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   7091       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   7092       return (sumf > 0.0) ? sumi : add(c, v);
   7093     }
   7094 
   7095   }
   7096 
   7097   namespace test_noexcept
   7098   {
   7099 
   7100     int f() { return 0; }
   7101     int g() noexcept { return 0; }
   7102 
   7103     static_assert(noexcept(f()) == false, "");
   7104     static_assert(noexcept(g()) == true, "");
   7105 
   7106   }
   7107 
   7108   namespace test_constexpr
   7109   {
   7110 
   7111     template < typename CharT >
   7112     unsigned long constexpr
   7113     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   7114     {
   7115       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   7116     }
   7117 
   7118     template < typename CharT >
   7119     unsigned long constexpr
   7120     strlen_c(const CharT *const s) noexcept
   7121     {
   7122       return strlen_c_r(s, 0UL);
   7123     }
   7124 
   7125     static_assert(strlen_c("") == 0UL, "");
   7126     static_assert(strlen_c("1") == 1UL, "");
   7127     static_assert(strlen_c("example") == 7UL, "");
   7128     static_assert(strlen_c("another\0example") == 7UL, "");
   7129 
   7130   }
   7131 
   7132   namespace test_rvalue_references
   7133   {
   7134 
   7135     template < int N >
   7136     struct answer
   7137     {
   7138       static constexpr int value = N;
   7139     };
   7140 
   7141     answer<1> f(int&)       { return answer<1>(); }
   7142     answer<2> f(const int&) { return answer<2>(); }
   7143     answer<3> f(int&&)      { return answer<3>(); }
   7144 
   7145     void
   7146     test()
   7147     {
   7148       int i = 0;
   7149       const int c = 0;
   7150       static_assert(decltype(f(i))::value == 1, "");
   7151       static_assert(decltype(f(c))::value == 2, "");
   7152       static_assert(decltype(f(0))::value == 3, "");
   7153     }
   7154 
   7155   }
   7156 
   7157   namespace test_uniform_initialization
   7158   {
   7159 
   7160     struct test
   7161     {
   7162       static const int zero {};
   7163       static const int one {1};
   7164     };
   7165 
   7166     static_assert(test::zero == 0, "");
   7167     static_assert(test::one == 1, "");
   7168 
   7169   }
   7170 
   7171   namespace test_lambdas
   7172   {
   7173 
   7174     void
   7175     test1()
   7176     {
   7177       auto lambda1 = [](){};
   7178       auto lambda2 = lambda1;
   7179       lambda1();
   7180       lambda2();
   7181     }
   7182 
   7183     int
   7184     test2()
   7185     {
   7186       auto a = [](int i, int j){ return i + j; }(1, 2);
   7187       auto b = []() -> int { return '0'; }();
   7188       auto c = [=](){ return a + b; }();
   7189       auto d = [&](){ return c; }();
   7190       auto e = [a, &b](int x) mutable {
   7191         const auto identity = [](int y){ return y; };
   7192         for (auto i = 0; i < a; ++i)
   7193           a += b--;
   7194         return x + identity(a + b);
   7195       }(0);
   7196       return a + b + c + d + e;
   7197     }
   7198 
   7199     int
   7200     test3()
   7201     {
   7202       const auto nullary = [](){ return 0; };
   7203       const auto unary = [](int x){ return x; };
   7204       using nullary_t = decltype(nullary);
   7205       using unary_t = decltype(unary);
   7206       const auto higher1st = [](nullary_t f){ return f(); };
   7207       const auto higher2nd = [unary](nullary_t f1){
   7208         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   7209       };
   7210       return higher1st(nullary) + higher2nd(nullary)(unary);
   7211     }
   7212 
   7213   }
   7214 
   7215   namespace test_variadic_templates
   7216   {
   7217 
   7218     template <int...>
   7219     struct sum;
   7220 
   7221     template <int N0, int... N1toN>
   7222     struct sum<N0, N1toN...>
   7223     {
   7224       static constexpr auto value = N0 + sum<N1toN...>::value;
   7225     };
   7226 
   7227     template <>
   7228     struct sum<>
   7229     {
   7230       static constexpr auto value = 0;
   7231     };
   7232 
   7233     static_assert(sum<>::value == 0, "");
   7234     static_assert(sum<1>::value == 1, "");
   7235     static_assert(sum<23>::value == 23, "");
   7236     static_assert(sum<1, 2>::value == 3, "");
   7237     static_assert(sum<5, 5, 11>::value == 21, "");
   7238     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   7239 
   7240   }
   7241 
   7242   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   7243   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   7244   // because of this.
   7245   namespace test_template_alias_sfinae
   7246   {
   7247 
   7248     struct foo {};
   7249 
   7250     template<typename T>
   7251     using member = typename T::member_type;
   7252 
   7253     template<typename T>
   7254     void func(...) {}
   7255 
   7256     template<typename T>
   7257     void func(member<T>*) {}
   7258 
   7259     void test();
   7260 
   7261     void test() { func<foo>(0); }
   7262 
   7263   }
   7264 
   7265 }  // namespace cxx11
   7266 
   7267 #endif  // __cplusplus >= 201103L
   7268 
   7269 
   7270 
   7271 
   7272 // If the compiler admits that it is not ready for C++14, why torture it?
   7273 // Hopefully, this will speed up the test.
   7274 
   7275 #ifndef __cplusplus
   7276 
   7277 #error "This is not a C++ compiler"
   7278 
   7279 #elif __cplusplus < 201402L
   7280 
   7281 #error "This is not a C++14 compiler"
   7282 
   7283 #else
   7284 
   7285 namespace cxx14
   7286 {
   7287 
   7288   namespace test_polymorphic_lambdas
   7289   {
   7290 
   7291     int
   7292     test()
   7293     {
   7294       const auto lambda = [](auto&&... args){
   7295         const auto istiny = [](auto x){
   7296           return (sizeof(x) == 1UL) ? 1 : 0;
   7297         };
   7298         const int aretiny[] = { istiny(args)... };
   7299         return aretiny[0];
   7300       };
   7301       return lambda(1, 1L, 1.0f, '1');
   7302     }
   7303 
   7304   }
   7305 
   7306   namespace test_binary_literals
   7307   {
   7308 
   7309     constexpr auto ivii = 0b0000000000101010;
   7310     static_assert(ivii == 42, "wrong value");
   7311 
   7312   }
   7313 
   7314   namespace test_generalized_constexpr
   7315   {
   7316 
   7317     template < typename CharT >
   7318     constexpr unsigned long
   7319     strlen_c(const CharT *const s) noexcept
   7320     {
   7321       auto length = 0UL;
   7322       for (auto p = s; *p; ++p)
   7323         ++length;
   7324       return length;
   7325     }
   7326 
   7327     static_assert(strlen_c("") == 0UL, "");
   7328     static_assert(strlen_c("x") == 1UL, "");
   7329     static_assert(strlen_c("test") == 4UL, "");
   7330     static_assert(strlen_c("another\0test") == 7UL, "");
   7331 
   7332   }
   7333 
   7334   namespace test_lambda_init_capture
   7335   {
   7336 
   7337     int
   7338     test()
   7339     {
   7340       auto x = 0;
   7341       const auto lambda1 = [a = x](int b){ return a + b; };
   7342       const auto lambda2 = [a = lambda1(x)](){ return a; };
   7343       return lambda2();
   7344     }
   7345 
   7346   }
   7347 
   7348   namespace test_digit_separators
   7349   {
   7350 
   7351     constexpr auto ten_million = 100'000'000;
   7352     static_assert(ten_million == 100000000, "");
   7353 
   7354   }
   7355 
   7356   namespace test_return_type_deduction
   7357   {
   7358 
   7359     auto f(int& x) { return x; }
   7360     decltype(auto) g(int& x) { return x; }
   7361 
   7362     template < typename T1, typename T2 >
   7363     struct is_same
   7364     {
   7365       static constexpr auto value = false;
   7366     };
   7367 
   7368     template < typename T >
   7369     struct is_same<T, T>
   7370     {
   7371       static constexpr auto value = true;
   7372     };
   7373 
   7374     int
   7375     test()
   7376     {
   7377       auto x = 0;
   7378       static_assert(is_same<int, decltype(f(x))>::value, "");
   7379       static_assert(is_same<int&, decltype(g(x))>::value, "");
   7380       return x;
   7381     }
   7382 
   7383   }
   7384 
   7385 }  // namespace cxx14
   7386 
   7387 #endif  // __cplusplus >= 201402L
   7388 
   7389 
   7390 
   7391 _ACEOF
   7392 if ac_fn_cxx_try_compile "$LINENO"; then :
   7393   eval $cachevar=yes
   7394 else
   7395   eval $cachevar=no
   7396 fi
   7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7398            CXX="$ac_save_CXX"
   7399 fi
   7400 eval ac_res=\$$cachevar
   7401 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7402 $as_echo "$ac_res" >&6; }
   7403         if eval test x\$$cachevar = xyes; then
   7404           CXX="$CXX $switch"
   7405           if test -n "$CXXCPP" ; then
   7406             CXXCPP="$CXXCPP $switch"
   7407           fi
   7408           ac_success=yes
   7409           break
   7410         fi
   7411       done
   7412       if test x$ac_success = xyes; then
   7413         break
   7414       fi
   7415     done
   7416   fi
   7417 
   7418   ac_ext=c
   7419 ac_cpp='$CPP $CPPFLAGS'
   7420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7423 
   7424   if test x$ax_cxx_compile_cxx14_required = xtrue; then
   7425     if test x$ac_success = xno; then
   7426       as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
   7427     fi
   7428   fi
   7429   if test x$ac_success = xno; then
   7430     HAVE_CXX14=0
   7431     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
   7432 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
   7433   else
   7434     HAVE_CXX14=1
   7435 
   7436 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
   7437 
   7438   fi
   7439 
   7440 
   7441 
   7442   if test "${build}" != "${host}"; then
   7443       ax_cxx_compile_alternatives="14 1y"    ax_cxx_compile_cxx14_required=true
   7444   ac_ext=cpp
   7445 ac_cpp='$CXXCPP $CPPFLAGS'
   7446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7449   ac_success=no
   7450       ax_cv_cxx_compile_cxx14_orig_cxx="$CXX"
   7451     ax_cv_cxx_compile_cxx14_orig_cxxflags="$CXXFLAGS"
   7452     ax_cv_cxx_compile_cxx14_orig_cppflags="$CPPFLAGS"
   7453     CXX="$CXX_FOR_BUILD"
   7454     CXXFLAGS="$CXXFLAGS_FOR_BUILD"
   7455     CPPFLAGS="$CPPFLAGS_FOR_BUILD"
   7456       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
   7457 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
   7458 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false; then :
   7459   $as_echo_n "(cached) " >&6
   7460 else
   7461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7462 /* end confdefs.h.  */
   7463 
   7464 
   7465 // If the compiler admits that it is not ready for C++11, why torture it?
   7466 // Hopefully, this will speed up the test.
   7467 
   7468 #ifndef __cplusplus
   7469 
   7470 #error "This is not a C++ compiler"
   7471 
   7472 #elif __cplusplus < 201103L
   7473 
   7474 #error "This is not a C++11 compiler"
   7475 
   7476 #else
   7477 
   7478 namespace cxx11
   7479 {
   7480 
   7481   namespace test_static_assert
   7482   {
   7483 
   7484     template <typename T>
   7485     struct check
   7486     {
   7487       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   7488     };
   7489 
   7490   }
   7491 
   7492   namespace test_final_override
   7493   {
   7494 
   7495     struct Base
   7496     {
   7497       virtual ~Base() {}
   7498       virtual void f() {}
   7499     };
   7500 
   7501     struct Derived : public Base
   7502     {
   7503       virtual ~Derived() override {}
   7504       virtual void f() override {}
   7505     };
   7506 
   7507   }
   7508 
   7509   namespace test_double_right_angle_brackets
   7510   {
   7511 
   7512     template < typename T >
   7513     struct check {};
   7514 
   7515     typedef check<void> single_type;
   7516     typedef check<check<void>> double_type;
   7517     typedef check<check<check<void>>> triple_type;
   7518     typedef check<check<check<check<void>>>> quadruple_type;
   7519 
   7520   }
   7521 
   7522   namespace test_decltype
   7523   {
   7524 
   7525     int
   7526     f()
   7527     {
   7528       int a = 1;
   7529       decltype(a) b = 2;
   7530       return a + b;
   7531     }
   7532 
   7533   }
   7534 
   7535   namespace test_type_deduction
   7536   {
   7537 
   7538     template < typename T1, typename T2 >
   7539     struct is_same
   7540     {
   7541       static const bool value = false;
   7542     };
   7543 
   7544     template < typename T >
   7545     struct is_same<T, T>
   7546     {
   7547       static const bool value = true;
   7548     };
   7549 
   7550     template < typename T1, typename T2 >
   7551     auto
   7552     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   7553     {
   7554       return a1 + a2;
   7555     }
   7556 
   7557     int
   7558     test(const int c, volatile int v)
   7559     {
   7560       static_assert(is_same<int, decltype(0)>::value == true, "");
   7561       static_assert(is_same<int, decltype(c)>::value == false, "");
   7562       static_assert(is_same<int, decltype(v)>::value == false, "");
   7563       auto ac = c;
   7564       auto av = v;
   7565       auto sumi = ac + av + 'x';
   7566       auto sumf = ac + av + 1.0;
   7567       static_assert(is_same<int, decltype(ac)>::value == true, "");
   7568       static_assert(is_same<int, decltype(av)>::value == true, "");
   7569       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   7570       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   7571       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   7572       return (sumf > 0.0) ? sumi : add(c, v);
   7573     }
   7574 
   7575   }
   7576 
   7577   namespace test_noexcept
   7578   {
   7579 
   7580     int f() { return 0; }
   7581     int g() noexcept { return 0; }
   7582 
   7583     static_assert(noexcept(f()) == false, "");
   7584     static_assert(noexcept(g()) == true, "");
   7585 
   7586   }
   7587 
   7588   namespace test_constexpr
   7589   {
   7590 
   7591     template < typename CharT >
   7592     unsigned long constexpr
   7593     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   7594     {
   7595       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   7596     }
   7597 
   7598     template < typename CharT >
   7599     unsigned long constexpr
   7600     strlen_c(const CharT *const s) noexcept
   7601     {
   7602       return strlen_c_r(s, 0UL);
   7603     }
   7604 
   7605     static_assert(strlen_c("") == 0UL, "");
   7606     static_assert(strlen_c("1") == 1UL, "");
   7607     static_assert(strlen_c("example") == 7UL, "");
   7608     static_assert(strlen_c("another\0example") == 7UL, "");
   7609 
   7610   }
   7611 
   7612   namespace test_rvalue_references
   7613   {
   7614 
   7615     template < int N >
   7616     struct answer
   7617     {
   7618       static constexpr int value = N;
   7619     };
   7620 
   7621     answer<1> f(int&)       { return answer<1>(); }
   7622     answer<2> f(const int&) { return answer<2>(); }
   7623     answer<3> f(int&&)      { return answer<3>(); }
   7624 
   7625     void
   7626     test()
   7627     {
   7628       int i = 0;
   7629       const int c = 0;
   7630       static_assert(decltype(f(i))::value == 1, "");
   7631       static_assert(decltype(f(c))::value == 2, "");
   7632       static_assert(decltype(f(0))::value == 3, "");
   7633     }
   7634 
   7635   }
   7636 
   7637   namespace test_uniform_initialization
   7638   {
   7639 
   7640     struct test
   7641     {
   7642       static const int zero {};
   7643       static const int one {1};
   7644     };
   7645 
   7646     static_assert(test::zero == 0, "");
   7647     static_assert(test::one == 1, "");
   7648 
   7649   }
   7650 
   7651   namespace test_lambdas
   7652   {
   7653 
   7654     void
   7655     test1()
   7656     {
   7657       auto lambda1 = [](){};
   7658       auto lambda2 = lambda1;
   7659       lambda1();
   7660       lambda2();
   7661     }
   7662 
   7663     int
   7664     test2()
   7665     {
   7666       auto a = [](int i, int j){ return i + j; }(1, 2);
   7667       auto b = []() -> int { return '0'; }();
   7668       auto c = [=](){ return a + b; }();
   7669       auto d = [&](){ return c; }();
   7670       auto e = [a, &b](int x) mutable {
   7671         const auto identity = [](int y){ return y; };
   7672         for (auto i = 0; i < a; ++i)
   7673           a += b--;
   7674         return x + identity(a + b);
   7675       }(0);
   7676       return a + b + c + d + e;
   7677     }
   7678 
   7679     int
   7680     test3()
   7681     {
   7682       const auto nullary = [](){ return 0; };
   7683       const auto unary = [](int x){ return x; };
   7684       using nullary_t = decltype(nullary);
   7685       using unary_t = decltype(unary);
   7686       const auto higher1st = [](nullary_t f){ return f(); };
   7687       const auto higher2nd = [unary](nullary_t f1){
   7688         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   7689       };
   7690       return higher1st(nullary) + higher2nd(nullary)(unary);
   7691     }
   7692 
   7693   }
   7694 
   7695   namespace test_variadic_templates
   7696   {
   7697 
   7698     template <int...>
   7699     struct sum;
   7700 
   7701     template <int N0, int... N1toN>
   7702     struct sum<N0, N1toN...>
   7703     {
   7704       static constexpr auto value = N0 + sum<N1toN...>::value;
   7705     };
   7706 
   7707     template <>
   7708     struct sum<>
   7709     {
   7710       static constexpr auto value = 0;
   7711     };
   7712 
   7713     static_assert(sum<>::value == 0, "");
   7714     static_assert(sum<1>::value == 1, "");
   7715     static_assert(sum<23>::value == 23, "");
   7716     static_assert(sum<1, 2>::value == 3, "");
   7717     static_assert(sum<5, 5, 11>::value == 21, "");
   7718     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   7719 
   7720   }
   7721 
   7722   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   7723   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   7724   // because of this.
   7725   namespace test_template_alias_sfinae
   7726   {
   7727 
   7728     struct foo {};
   7729 
   7730     template<typename T>
   7731     using member = typename T::member_type;
   7732 
   7733     template<typename T>
   7734     void func(...) {}
   7735 
   7736     template<typename T>
   7737     void func(member<T>*) {}
   7738 
   7739     void test();
   7740 
   7741     void test() { func<foo>(0); }
   7742 
   7743   }
   7744 
   7745 }  // namespace cxx11
   7746 
   7747 #endif  // __cplusplus >= 201103L
   7748 
   7749 
   7750 
   7751 
   7752 // If the compiler admits that it is not ready for C++14, why torture it?
   7753 // Hopefully, this will speed up the test.
   7754 
   7755 #ifndef __cplusplus
   7756 
   7757 #error "This is not a C++ compiler"
   7758 
   7759 #elif __cplusplus < 201402L
   7760 
   7761 #error "This is not a C++14 compiler"
   7762 
   7763 #else
   7764 
   7765 namespace cxx14
   7766 {
   7767 
   7768   namespace test_polymorphic_lambdas
   7769   {
   7770 
   7771     int
   7772     test()
   7773     {
   7774       const auto lambda = [](auto&&... args){
   7775         const auto istiny = [](auto x){
   7776           return (sizeof(x) == 1UL) ? 1 : 0;
   7777         };
   7778         const int aretiny[] = { istiny(args)... };
   7779         return aretiny[0];
   7780       };
   7781       return lambda(1, 1L, 1.0f, '1');
   7782     }
   7783 
   7784   }
   7785 
   7786   namespace test_binary_literals
   7787   {
   7788 
   7789     constexpr auto ivii = 0b0000000000101010;
   7790     static_assert(ivii == 42, "wrong value");
   7791 
   7792   }
   7793 
   7794   namespace test_generalized_constexpr
   7795   {
   7796 
   7797     template < typename CharT >
   7798     constexpr unsigned long
   7799     strlen_c(const CharT *const s) noexcept
   7800     {
   7801       auto length = 0UL;
   7802       for (auto p = s; *p; ++p)
   7803         ++length;
   7804       return length;
   7805     }
   7806 
   7807     static_assert(strlen_c("") == 0UL, "");
   7808     static_assert(strlen_c("x") == 1UL, "");
   7809     static_assert(strlen_c("test") == 4UL, "");
   7810     static_assert(strlen_c("another\0test") == 7UL, "");
   7811 
   7812   }
   7813 
   7814   namespace test_lambda_init_capture
   7815   {
   7816 
   7817     int
   7818     test()
   7819     {
   7820       auto x = 0;
   7821       const auto lambda1 = [a = x](int b){ return a + b; };
   7822       const auto lambda2 = [a = lambda1(x)](){ return a; };
   7823       return lambda2();
   7824     }
   7825 
   7826   }
   7827 
   7828   namespace test_digit_separators
   7829   {
   7830 
   7831     constexpr auto ten_million = 100'000'000;
   7832     static_assert(ten_million == 100000000, "");
   7833 
   7834   }
   7835 
   7836   namespace test_return_type_deduction
   7837   {
   7838 
   7839     auto f(int& x) { return x; }
   7840     decltype(auto) g(int& x) { return x; }
   7841 
   7842     template < typename T1, typename T2 >
   7843     struct is_same
   7844     {
   7845       static constexpr auto value = false;
   7846     };
   7847 
   7848     template < typename T >
   7849     struct is_same<T, T>
   7850     {
   7851       static constexpr auto value = true;
   7852     };
   7853 
   7854     int
   7855     test()
   7856     {
   7857       auto x = 0;
   7858       static_assert(is_same<int, decltype(f(x))>::value, "");
   7859       static_assert(is_same<int&, decltype(g(x))>::value, "");
   7860       return x;
   7861     }
   7862 
   7863   }
   7864 
   7865 }  // namespace cxx14
   7866 
   7867 #endif  // __cplusplus >= 201402L
   7868 
   7869 
   7870 
   7871 _ACEOF
   7872 if ac_fn_cxx_try_compile "$LINENO"; then :
   7873   ax_cv_cxx_compile_cxx14_FOR_BUILD=yes
   7874 else
   7875   ax_cv_cxx_compile_cxx14_FOR_BUILD=no
   7876 fi
   7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7878 fi
   7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
   7880 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
   7881     if test x$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes; then
   7882       ac_success=yes
   7883     fi
   7884 
   7885     if test x$ac_success = xno; then
   7886     for alternative in ${ax_cxx_compile_alternatives}; do
   7887       switch="-std=gnu++${alternative}"
   7888       cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
   7889       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
   7890 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
   7891 if eval \${$cachevar+:} false; then :
   7892   $as_echo_n "(cached) " >&6
   7893 else
   7894   ac_save_CXX="$CXX"
   7895          CXX="$CXX $switch"
   7896          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7897 /* end confdefs.h.  */
   7898 
   7899 
   7900 // If the compiler admits that it is not ready for C++11, why torture it?
   7901 // Hopefully, this will speed up the test.
   7902 
   7903 #ifndef __cplusplus
   7904 
   7905 #error "This is not a C++ compiler"
   7906 
   7907 #elif __cplusplus < 201103L
   7908 
   7909 #error "This is not a C++11 compiler"
   7910 
   7911 #else
   7912 
   7913 namespace cxx11
   7914 {
   7915 
   7916   namespace test_static_assert
   7917   {
   7918 
   7919     template <typename T>
   7920     struct check
   7921     {
   7922       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   7923     };
   7924 
   7925   }
   7926 
   7927   namespace test_final_override
   7928   {
   7929 
   7930     struct Base
   7931     {
   7932       virtual ~Base() {}
   7933       virtual void f() {}
   7934     };
   7935 
   7936     struct Derived : public Base
   7937     {
   7938       virtual ~Derived() override {}
   7939       virtual void f() override {}
   7940     };
   7941 
   7942   }
   7943 
   7944   namespace test_double_right_angle_brackets
   7945   {
   7946 
   7947     template < typename T >
   7948     struct check {};
   7949 
   7950     typedef check<void> single_type;
   7951     typedef check<check<void>> double_type;
   7952     typedef check<check<check<void>>> triple_type;
   7953     typedef check<check<check<check<void>>>> quadruple_type;
   7954 
   7955   }
   7956 
   7957   namespace test_decltype
   7958   {
   7959 
   7960     int
   7961     f()
   7962     {
   7963       int a = 1;
   7964       decltype(a) b = 2;
   7965       return a + b;
   7966     }
   7967 
   7968   }
   7969 
   7970   namespace test_type_deduction
   7971   {
   7972 
   7973     template < typename T1, typename T2 >
   7974     struct is_same
   7975     {
   7976       static const bool value = false;
   7977     };
   7978 
   7979     template < typename T >
   7980     struct is_same<T, T>
   7981     {
   7982       static const bool value = true;
   7983     };
   7984 
   7985     template < typename T1, typename T2 >
   7986     auto
   7987     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   7988     {
   7989       return a1 + a2;
   7990     }
   7991 
   7992     int
   7993     test(const int c, volatile int v)
   7994     {
   7995       static_assert(is_same<int, decltype(0)>::value == true, "");
   7996       static_assert(is_same<int, decltype(c)>::value == false, "");
   7997       static_assert(is_same<int, decltype(v)>::value == false, "");
   7998       auto ac = c;
   7999       auto av = v;
   8000       auto sumi = ac + av + 'x';
   8001       auto sumf = ac + av + 1.0;
   8002       static_assert(is_same<int, decltype(ac)>::value == true, "");
   8003       static_assert(is_same<int, decltype(av)>::value == true, "");
   8004       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   8005       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   8006       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   8007       return (sumf > 0.0) ? sumi : add(c, v);
   8008     }
   8009 
   8010   }
   8011 
   8012   namespace test_noexcept
   8013   {
   8014 
   8015     int f() { return 0; }
   8016     int g() noexcept { return 0; }
   8017 
   8018     static_assert(noexcept(f()) == false, "");
   8019     static_assert(noexcept(g()) == true, "");
   8020 
   8021   }
   8022 
   8023   namespace test_constexpr
   8024   {
   8025 
   8026     template < typename CharT >
   8027     unsigned long constexpr
   8028     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   8029     {
   8030       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   8031     }
   8032 
   8033     template < typename CharT >
   8034     unsigned long constexpr
   8035     strlen_c(const CharT *const s) noexcept
   8036     {
   8037       return strlen_c_r(s, 0UL);
   8038     }
   8039 
   8040     static_assert(strlen_c("") == 0UL, "");
   8041     static_assert(strlen_c("1") == 1UL, "");
   8042     static_assert(strlen_c("example") == 7UL, "");
   8043     static_assert(strlen_c("another\0example") == 7UL, "");
   8044 
   8045   }
   8046 
   8047   namespace test_rvalue_references
   8048   {
   8049 
   8050     template < int N >
   8051     struct answer
   8052     {
   8053       static constexpr int value = N;
   8054     };
   8055 
   8056     answer<1> f(int&)       { return answer<1>(); }
   8057     answer<2> f(const int&) { return answer<2>(); }
   8058     answer<3> f(int&&)      { return answer<3>(); }
   8059 
   8060     void
   8061     test()
   8062     {
   8063       int i = 0;
   8064       const int c = 0;
   8065       static_assert(decltype(f(i))::value == 1, "");
   8066       static_assert(decltype(f(c))::value == 2, "");
   8067       static_assert(decltype(f(0))::value == 3, "");
   8068     }
   8069 
   8070   }
   8071 
   8072   namespace test_uniform_initialization
   8073   {
   8074 
   8075     struct test
   8076     {
   8077       static const int zero {};
   8078       static const int one {1};
   8079     };
   8080 
   8081     static_assert(test::zero == 0, "");
   8082     static_assert(test::one == 1, "");
   8083 
   8084   }
   8085 
   8086   namespace test_lambdas
   8087   {
   8088 
   8089     void
   8090     test1()
   8091     {
   8092       auto lambda1 = [](){};
   8093       auto lambda2 = lambda1;
   8094       lambda1();
   8095       lambda2();
   8096     }
   8097 
   8098     int
   8099     test2()
   8100     {
   8101       auto a = [](int i, int j){ return i + j; }(1, 2);
   8102       auto b = []() -> int { return '0'; }();
   8103       auto c = [=](){ return a + b; }();
   8104       auto d = [&](){ return c; }();
   8105       auto e = [a, &b](int x) mutable {
   8106         const auto identity = [](int y){ return y; };
   8107         for (auto i = 0; i < a; ++i)
   8108           a += b--;
   8109         return x + identity(a + b);
   8110       }(0);
   8111       return a + b + c + d + e;
   8112     }
   8113 
   8114     int
   8115     test3()
   8116     {
   8117       const auto nullary = [](){ return 0; };
   8118       const auto unary = [](int x){ return x; };
   8119       using nullary_t = decltype(nullary);
   8120       using unary_t = decltype(unary);
   8121       const auto higher1st = [](nullary_t f){ return f(); };
   8122       const auto higher2nd = [unary](nullary_t f1){
   8123         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   8124       };
   8125       return higher1st(nullary) + higher2nd(nullary)(unary);
   8126     }
   8127 
   8128   }
   8129 
   8130   namespace test_variadic_templates
   8131   {
   8132 
   8133     template <int...>
   8134     struct sum;
   8135 
   8136     template <int N0, int... N1toN>
   8137     struct sum<N0, N1toN...>
   8138     {
   8139       static constexpr auto value = N0 + sum<N1toN...>::value;
   8140     };
   8141 
   8142     template <>
   8143     struct sum<>
   8144     {
   8145       static constexpr auto value = 0;
   8146     };
   8147 
   8148     static_assert(sum<>::value == 0, "");
   8149     static_assert(sum<1>::value == 1, "");
   8150     static_assert(sum<23>::value == 23, "");
   8151     static_assert(sum<1, 2>::value == 3, "");
   8152     static_assert(sum<5, 5, 11>::value == 21, "");
   8153     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   8154 
   8155   }
   8156 
   8157   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   8158   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   8159   // because of this.
   8160   namespace test_template_alias_sfinae
   8161   {
   8162 
   8163     struct foo {};
   8164 
   8165     template<typename T>
   8166     using member = typename T::member_type;
   8167 
   8168     template<typename T>
   8169     void func(...) {}
   8170 
   8171     template<typename T>
   8172     void func(member<T>*) {}
   8173 
   8174     void test();
   8175 
   8176     void test() { func<foo>(0); }
   8177 
   8178   }
   8179 
   8180 }  // namespace cxx11
   8181 
   8182 #endif  // __cplusplus >= 201103L
   8183 
   8184 
   8185 
   8186 
   8187 // If the compiler admits that it is not ready for C++14, why torture it?
   8188 // Hopefully, this will speed up the test.
   8189 
   8190 #ifndef __cplusplus
   8191 
   8192 #error "This is not a C++ compiler"
   8193 
   8194 #elif __cplusplus < 201402L
   8195 
   8196 #error "This is not a C++14 compiler"
   8197 
   8198 #else
   8199 
   8200 namespace cxx14
   8201 {
   8202 
   8203   namespace test_polymorphic_lambdas
   8204   {
   8205 
   8206     int
   8207     test()
   8208     {
   8209       const auto lambda = [](auto&&... args){
   8210         const auto istiny = [](auto x){
   8211           return (sizeof(x) == 1UL) ? 1 : 0;
   8212         };
   8213         const int aretiny[] = { istiny(args)... };
   8214         return aretiny[0];
   8215       };
   8216       return lambda(1, 1L, 1.0f, '1');
   8217     }
   8218 
   8219   }
   8220 
   8221   namespace test_binary_literals
   8222   {
   8223 
   8224     constexpr auto ivii = 0b0000000000101010;
   8225     static_assert(ivii == 42, "wrong value");
   8226 
   8227   }
   8228 
   8229   namespace test_generalized_constexpr
   8230   {
   8231 
   8232     template < typename CharT >
   8233     constexpr unsigned long
   8234     strlen_c(const CharT *const s) noexcept
   8235     {
   8236       auto length = 0UL;
   8237       for (auto p = s; *p; ++p)
   8238         ++length;
   8239       return length;
   8240     }
   8241 
   8242     static_assert(strlen_c("") == 0UL, "");
   8243     static_assert(strlen_c("x") == 1UL, "");
   8244     static_assert(strlen_c("test") == 4UL, "");
   8245     static_assert(strlen_c("another\0test") == 7UL, "");
   8246 
   8247   }
   8248 
   8249   namespace test_lambda_init_capture
   8250   {
   8251 
   8252     int
   8253     test()
   8254     {
   8255       auto x = 0;
   8256       const auto lambda1 = [a = x](int b){ return a + b; };
   8257       const auto lambda2 = [a = lambda1(x)](){ return a; };
   8258       return lambda2();
   8259     }
   8260 
   8261   }
   8262 
   8263   namespace test_digit_separators
   8264   {
   8265 
   8266     constexpr auto ten_million = 100'000'000;
   8267     static_assert(ten_million == 100000000, "");
   8268 
   8269   }
   8270 
   8271   namespace test_return_type_deduction
   8272   {
   8273 
   8274     auto f(int& x) { return x; }
   8275     decltype(auto) g(int& x) { return x; }
   8276 
   8277     template < typename T1, typename T2 >
   8278     struct is_same
   8279     {
   8280       static constexpr auto value = false;
   8281     };
   8282 
   8283     template < typename T >
   8284     struct is_same<T, T>
   8285     {
   8286       static constexpr auto value = true;
   8287     };
   8288 
   8289     int
   8290     test()
   8291     {
   8292       auto x = 0;
   8293       static_assert(is_same<int, decltype(f(x))>::value, "");
   8294       static_assert(is_same<int&, decltype(g(x))>::value, "");
   8295       return x;
   8296     }
   8297 
   8298   }
   8299 
   8300 }  // namespace cxx14
   8301 
   8302 #endif  // __cplusplus >= 201402L
   8303 
   8304 
   8305 
   8306 _ACEOF
   8307 if ac_fn_cxx_try_compile "$LINENO"; then :
   8308   eval $cachevar=yes
   8309 else
   8310   eval $cachevar=no
   8311 fi
   8312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8313          CXX="$ac_save_CXX"
   8314 fi
   8315 eval ac_res=\$$cachevar
   8316 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   8317 $as_echo "$ac_res" >&6; }
   8318       if eval test x\$$cachevar = xyes; then
   8319         CXX="$CXX $switch"
   8320         if test -n "$CXXCPP" ; then
   8321           CXXCPP="$CXXCPP $switch"
   8322         fi
   8323         ac_success=yes
   8324         break
   8325       fi
   8326     done
   8327   fi
   8328 
   8329     if test x$ac_success = xno; then
   8330                 for alternative in ${ax_cxx_compile_alternatives}; do
   8331       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
   8332         cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
   8333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
   8334 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
   8335 if eval \${$cachevar+:} false; then :
   8336   $as_echo_n "(cached) " >&6
   8337 else
   8338   ac_save_CXX="$CXX"
   8339            CXX="$CXX $switch"
   8340            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8341 /* end confdefs.h.  */
   8342 
   8343 
   8344 // If the compiler admits that it is not ready for C++11, why torture it?
   8345 // Hopefully, this will speed up the test.
   8346 
   8347 #ifndef __cplusplus
   8348 
   8349 #error "This is not a C++ compiler"
   8350 
   8351 #elif __cplusplus < 201103L
   8352 
   8353 #error "This is not a C++11 compiler"
   8354 
   8355 #else
   8356 
   8357 namespace cxx11
   8358 {
   8359 
   8360   namespace test_static_assert
   8361   {
   8362 
   8363     template <typename T>
   8364     struct check
   8365     {
   8366       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   8367     };
   8368 
   8369   }
   8370 
   8371   namespace test_final_override
   8372   {
   8373 
   8374     struct Base
   8375     {
   8376       virtual ~Base() {}
   8377       virtual void f() {}
   8378     };
   8379 
   8380     struct Derived : public Base
   8381     {
   8382       virtual ~Derived() override {}
   8383       virtual void f() override {}
   8384     };
   8385 
   8386   }
   8387 
   8388   namespace test_double_right_angle_brackets
   8389   {
   8390 
   8391     template < typename T >
   8392     struct check {};
   8393 
   8394     typedef check<void> single_type;
   8395     typedef check<check<void>> double_type;
   8396     typedef check<check<check<void>>> triple_type;
   8397     typedef check<check<check<check<void>>>> quadruple_type;
   8398 
   8399   }
   8400 
   8401   namespace test_decltype
   8402   {
   8403 
   8404     int
   8405     f()
   8406     {
   8407       int a = 1;
   8408       decltype(a) b = 2;
   8409       return a + b;
   8410     }
   8411 
   8412   }
   8413 
   8414   namespace test_type_deduction
   8415   {
   8416 
   8417     template < typename T1, typename T2 >
   8418     struct is_same
   8419     {
   8420       static const bool value = false;
   8421     };
   8422 
   8423     template < typename T >
   8424     struct is_same<T, T>
   8425     {
   8426       static const bool value = true;
   8427     };
   8428 
   8429     template < typename T1, typename T2 >
   8430     auto
   8431     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   8432     {
   8433       return a1 + a2;
   8434     }
   8435 
   8436     int
   8437     test(const int c, volatile int v)
   8438     {
   8439       static_assert(is_same<int, decltype(0)>::value == true, "");
   8440       static_assert(is_same<int, decltype(c)>::value == false, "");
   8441       static_assert(is_same<int, decltype(v)>::value == false, "");
   8442       auto ac = c;
   8443       auto av = v;
   8444       auto sumi = ac + av + 'x';
   8445       auto sumf = ac + av + 1.0;
   8446       static_assert(is_same<int, decltype(ac)>::value == true, "");
   8447       static_assert(is_same<int, decltype(av)>::value == true, "");
   8448       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   8449       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   8450       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   8451       return (sumf > 0.0) ? sumi : add(c, v);
   8452     }
   8453 
   8454   }
   8455 
   8456   namespace test_noexcept
   8457   {
   8458 
   8459     int f() { return 0; }
   8460     int g() noexcept { return 0; }
   8461 
   8462     static_assert(noexcept(f()) == false, "");
   8463     static_assert(noexcept(g()) == true, "");
   8464 
   8465   }
   8466 
   8467   namespace test_constexpr
   8468   {
   8469 
   8470     template < typename CharT >
   8471     unsigned long constexpr
   8472     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   8473     {
   8474       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   8475     }
   8476 
   8477     template < typename CharT >
   8478     unsigned long constexpr
   8479     strlen_c(const CharT *const s) noexcept
   8480     {
   8481       return strlen_c_r(s, 0UL);
   8482     }
   8483 
   8484     static_assert(strlen_c("") == 0UL, "");
   8485     static_assert(strlen_c("1") == 1UL, "");
   8486     static_assert(strlen_c("example") == 7UL, "");
   8487     static_assert(strlen_c("another\0example") == 7UL, "");
   8488 
   8489   }
   8490 
   8491   namespace test_rvalue_references
   8492   {
   8493 
   8494     template < int N >
   8495     struct answer
   8496     {
   8497       static constexpr int value = N;
   8498     };
   8499 
   8500     answer<1> f(int&)       { return answer<1>(); }
   8501     answer<2> f(const int&) { return answer<2>(); }
   8502     answer<3> f(int&&)      { return answer<3>(); }
   8503 
   8504     void
   8505     test()
   8506     {
   8507       int i = 0;
   8508       const int c = 0;
   8509       static_assert(decltype(f(i))::value == 1, "");
   8510       static_assert(decltype(f(c))::value == 2, "");
   8511       static_assert(decltype(f(0))::value == 3, "");
   8512     }
   8513 
   8514   }
   8515 
   8516   namespace test_uniform_initialization
   8517   {
   8518 
   8519     struct test
   8520     {
   8521       static const int zero {};
   8522       static const int one {1};
   8523     };
   8524 
   8525     static_assert(test::zero == 0, "");
   8526     static_assert(test::one == 1, "");
   8527 
   8528   }
   8529 
   8530   namespace test_lambdas
   8531   {
   8532 
   8533     void
   8534     test1()
   8535     {
   8536       auto lambda1 = [](){};
   8537       auto lambda2 = lambda1;
   8538       lambda1();
   8539       lambda2();
   8540     }
   8541 
   8542     int
   8543     test2()
   8544     {
   8545       auto a = [](int i, int j){ return i + j; }(1, 2);
   8546       auto b = []() -> int { return '0'; }();
   8547       auto c = [=](){ return a + b; }();
   8548       auto d = [&](){ return c; }();
   8549       auto e = [a, &b](int x) mutable {
   8550         const auto identity = [](int y){ return y; };
   8551         for (auto i = 0; i < a; ++i)
   8552           a += b--;
   8553         return x + identity(a + b);
   8554       }(0);
   8555       return a + b + c + d + e;
   8556     }
   8557 
   8558     int
   8559     test3()
   8560     {
   8561       const auto nullary = [](){ return 0; };
   8562       const auto unary = [](int x){ return x; };
   8563       using nullary_t = decltype(nullary);
   8564       using unary_t = decltype(unary);
   8565       const auto higher1st = [](nullary_t f){ return f(); };
   8566       const auto higher2nd = [unary](nullary_t f1){
   8567         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   8568       };
   8569       return higher1st(nullary) + higher2nd(nullary)(unary);
   8570     }
   8571 
   8572   }
   8573 
   8574   namespace test_variadic_templates
   8575   {
   8576 
   8577     template <int...>
   8578     struct sum;
   8579 
   8580     template <int N0, int... N1toN>
   8581     struct sum<N0, N1toN...>
   8582     {
   8583       static constexpr auto value = N0 + sum<N1toN...>::value;
   8584     };
   8585 
   8586     template <>
   8587     struct sum<>
   8588     {
   8589       static constexpr auto value = 0;
   8590     };
   8591 
   8592     static_assert(sum<>::value == 0, "");
   8593     static_assert(sum<1>::value == 1, "");
   8594     static_assert(sum<23>::value == 23, "");
   8595     static_assert(sum<1, 2>::value == 3, "");
   8596     static_assert(sum<5, 5, 11>::value == 21, "");
   8597     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   8598 
   8599   }
   8600 
   8601   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   8602   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   8603   // because of this.
   8604   namespace test_template_alias_sfinae
   8605   {
   8606 
   8607     struct foo {};
   8608 
   8609     template<typename T>
   8610     using member = typename T::member_type;
   8611 
   8612     template<typename T>
   8613     void func(...) {}
   8614 
   8615     template<typename T>
   8616     void func(member<T>*) {}
   8617 
   8618     void test();
   8619 
   8620     void test() { func<foo>(0); }
   8621 
   8622   }
   8623 
   8624 }  // namespace cxx11
   8625 
   8626 #endif  // __cplusplus >= 201103L
   8627 
   8628 
   8629 
   8630 
   8631 // If the compiler admits that it is not ready for C++14, why torture it?
   8632 // Hopefully, this will speed up the test.
   8633 
   8634 #ifndef __cplusplus
   8635 
   8636 #error "This is not a C++ compiler"
   8637 
   8638 #elif __cplusplus < 201402L
   8639 
   8640 #error "This is not a C++14 compiler"
   8641 
   8642 #else
   8643 
   8644 namespace cxx14
   8645 {
   8646 
   8647   namespace test_polymorphic_lambdas
   8648   {
   8649 
   8650     int
   8651     test()
   8652     {
   8653       const auto lambda = [](auto&&... args){
   8654         const auto istiny = [](auto x){
   8655           return (sizeof(x) == 1UL) ? 1 : 0;
   8656         };
   8657         const int aretiny[] = { istiny(args)... };
   8658         return aretiny[0];
   8659       };
   8660       return lambda(1, 1L, 1.0f, '1');
   8661     }
   8662 
   8663   }
   8664 
   8665   namespace test_binary_literals
   8666   {
   8667 
   8668     constexpr auto ivii = 0b0000000000101010;
   8669     static_assert(ivii == 42, "wrong value");
   8670 
   8671   }
   8672 
   8673   namespace test_generalized_constexpr
   8674   {
   8675 
   8676     template < typename CharT >
   8677     constexpr unsigned long
   8678     strlen_c(const CharT *const s) noexcept
   8679     {
   8680       auto length = 0UL;
   8681       for (auto p = s; *p; ++p)
   8682         ++length;
   8683       return length;
   8684     }
   8685 
   8686     static_assert(strlen_c("") == 0UL, "");
   8687     static_assert(strlen_c("x") == 1UL, "");
   8688     static_assert(strlen_c("test") == 4UL, "");
   8689     static_assert(strlen_c("another\0test") == 7UL, "");
   8690 
   8691   }
   8692 
   8693   namespace test_lambda_init_capture
   8694   {
   8695 
   8696     int
   8697     test()
   8698     {
   8699       auto x = 0;
   8700       const auto lambda1 = [a = x](int b){ return a + b; };
   8701       const auto lambda2 = [a = lambda1(x)](){ return a; };
   8702       return lambda2();
   8703     }
   8704 
   8705   }
   8706 
   8707   namespace test_digit_separators
   8708   {
   8709 
   8710     constexpr auto ten_million = 100'000'000;
   8711     static_assert(ten_million == 100000000, "");
   8712 
   8713   }
   8714 
   8715   namespace test_return_type_deduction
   8716   {
   8717 
   8718     auto f(int& x) { return x; }
   8719     decltype(auto) g(int& x) { return x; }
   8720 
   8721     template < typename T1, typename T2 >
   8722     struct is_same
   8723     {
   8724       static constexpr auto value = false;
   8725     };
   8726 
   8727     template < typename T >
   8728     struct is_same<T, T>
   8729     {
   8730       static constexpr auto value = true;
   8731     };
   8732 
   8733     int
   8734     test()
   8735     {
   8736       auto x = 0;
   8737       static_assert(is_same<int, decltype(f(x))>::value, "");
   8738       static_assert(is_same<int&, decltype(g(x))>::value, "");
   8739       return x;
   8740     }
   8741 
   8742   }
   8743 
   8744 }  // namespace cxx14
   8745 
   8746 #endif  // __cplusplus >= 201402L
   8747 
   8748 
   8749 
   8750 _ACEOF
   8751 if ac_fn_cxx_try_compile "$LINENO"; then :
   8752   eval $cachevar=yes
   8753 else
   8754   eval $cachevar=no
   8755 fi
   8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8757            CXX="$ac_save_CXX"
   8758 fi
   8759 eval ac_res=\$$cachevar
   8760 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   8761 $as_echo "$ac_res" >&6; }
   8762         if eval test x\$$cachevar = xyes; then
   8763           CXX="$CXX $switch"
   8764           if test -n "$CXXCPP" ; then
   8765             CXXCPP="$CXXCPP $switch"
   8766           fi
   8767           ac_success=yes
   8768           break
   8769         fi
   8770       done
   8771       if test x$ac_success = xyes; then
   8772         break
   8773       fi
   8774     done
   8775   fi
   8776       CXX_FOR_BUILD="$CXX"
   8777     CXXFLAGS_FOR_BUILD="$CXXFLAGS"
   8778     CPPFLAGS_FOR_BUILD="$CPPFLAGS"
   8779     CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
   8780     CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
   8781     CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
   8782   ac_ext=c
   8783 ac_cpp='$CPP $CPPFLAGS'
   8784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8787 
   8788   if test x$ax_cxx_compile_cxx14_required = xtrue; then
   8789     if test x$ac_success = xno; then
   8790       as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
   8791     fi
   8792   fi
   8793   if test x$ac_success = xno; then
   8794     HAVE_CXX14_FOR_BUILD=0
   8795     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
   8796 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
   8797   else
   8798     HAVE_CXX14_FOR_BUILD=1
   8799 
   8800 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
   8801 
   8802   fi
   8803 
   8804 
   8805   fi
   8806 fi
   8807 
   8808 # Check whether --enable-pgo-build was given.
   8809 if test "${enable_pgo_build+set}" = set; then :
   8810   enableval=$enable_pgo_build; enable_pgo_build=$enableval
   8811 else
   8812   enable_pgo_build=no
   8813 fi
   8814 
   8815 
   8816 # Issue errors and warnings for invalid/strange PGO build combinations.
   8817 case "$have_compiler:$host:$target:$enable_pgo_build" in
   8818   *:*:*:no) ;;
   8819 
   8820   # Allow the PGO build only if we aren't building a compiler and
   8821   # we are in a native configuration.
   8822   no:$build:$build:yes | no:$build:$build:lto) ;;
   8823 
   8824   # Disallow the PGO bootstrap if we are building a compiler.
   8825   yes:*:*:yes | yes:*:*:lto)
   8826     as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
   8827 
   8828   *)
   8829     as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
   8830     ;;
   8831 esac
   8832 
   8833 if test "$enable_pgo_build" != "no"; then
   8834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
   8835 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
   8836   old_CFLAGS="$CFLAGS"
   8837   PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
   8838   CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
   8839 
   8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8841 /* end confdefs.h.  */
   8842 int foo;
   8843 _ACEOF
   8844 if ac_fn_c_try_compile "$LINENO"; then :
   8845 
   8846 else
   8847   PGO_BUILD_GEN_CFLAGS=
   8848 fi
   8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8850   CFLAGS="$old_CFLAGS"
   8851   if test -n "$PGO_BUILD_GEN_CFLAGS"; then
   8852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8853 $as_echo "yes" >&6; }
   8854     PGO_BUILD_USE_CFLAGS="-fprofile-use"
   8855   else
   8856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8857 $as_echo "no" >&6; }
   8858     as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
   8859   fi
   8860 
   8861   if test "$enable_pgo_build" = "lto"; then
   8862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
   8863 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
   8864     old_CFLAGS="$CFLAGS"
   8865     PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
   8866     CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
   8867     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8868 /* end confdefs.h.  */
   8869 int foo;
   8870 _ACEOF
   8871 if ac_fn_c_try_compile "$LINENO"; then :
   8872 
   8873 else
   8874   PGO_BUILD_LTO_CFLAGS=
   8875 fi
   8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8877     CFLAGS="$old_CFLAGS"
   8878     if test -n "$PGO_BUILD_LTO_CFLAGS"; then
   8879       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8880 $as_echo "yes" >&6; }
   8881     else
   8882       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8883 $as_echo "no" >&6; }
   8884       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
   8885 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
   8886     fi
   8887   fi
   8888 fi
   8889 
   8890 
   8891 
   8892 
   8893 # Used for setting $lt_cv_objdir
   8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   8895 $as_echo_n "checking for objdir... " >&6; }
   8896 if ${lt_cv_objdir+:} false; then :
   8897   $as_echo_n "(cached) " >&6
   8898 else
   8899   rm -f .libs 2>/dev/null
   8900 mkdir .libs 2>/dev/null
   8901 if test -d .libs; then
   8902   lt_cv_objdir=.libs
   8903 else
   8904   # MS-DOS does not allow filenames that begin with a dot.
   8905   lt_cv_objdir=_libs
   8906 fi
   8907 rmdir .libs 2>/dev/null
   8908 fi
   8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   8910 $as_echo "$lt_cv_objdir" >&6; }
   8911 objdir=$lt_cv_objdir
   8912 
   8913 
   8914 
   8915 
   8916 
   8917 cat >>confdefs.h <<_ACEOF
   8918 #define LT_OBJDIR "$lt_cv_objdir/"
   8919 _ACEOF
   8920 
   8921 
   8922 
   8923 # Check for GMP, MPFR and MPC
   8924 require_gmp=no
   8925 require_mpc=no
   8926 if test -d ${srcdir}/gcc ; then
   8927   require_gmp=yes
   8928   require_mpc=yes
   8929 fi
   8930 if test -d ${srcdir}/gdb ; then
   8931   if test "x$enable_gdb" != xno; then
   8932    require_gmp=yes
   8933   fi
   8934 fi
   8935 
   8936 gmplibs="-lmpfr -lgmp"
   8937 if test x"$require_mpc" = "xyes" ; then
   8938   gmplibs="-lmpc $gmplibs"
   8939 fi
   8940 gmpinc=
   8941 have_gmp=no
   8942 
   8943 # Specify a location for mpc
   8944 # check for this first so it ends up on the link line before mpfr.
   8945 
   8946 # Check whether --with-mpc was given.
   8947 if test "${with_mpc+set}" = set; then :
   8948   withval=$with_mpc;
   8949 fi
   8950 
   8951 
   8952 # Check whether --with-mpc-include was given.
   8953 if test "${with_mpc_include+set}" = set; then :
   8954   withval=$with_mpc_include;
   8955 fi
   8956 
   8957 
   8958 # Check whether --with-mpc-lib was given.
   8959 if test "${with_mpc_lib+set}" = set; then :
   8960   withval=$with_mpc_lib;
   8961 fi
   8962 
   8963 
   8964 if test "x$with_mpc" != x; then
   8965   gmplibs="-L$with_mpc/lib $gmplibs"
   8966   gmpinc="-I$with_mpc/include $gmpinc"
   8967 fi
   8968 if test "x$with_mpc_include" != x; then
   8969   gmpinc="-I$with_mpc_include $gmpinc"
   8970 fi
   8971 if test "x$with_mpc_lib" != x; then
   8972   gmplibs="-L$with_mpc_lib $gmplibs"
   8973 fi
   8974 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
   8975   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
   8976   gmpinc='-I$$s/mpc/src '"$gmpinc"
   8977   # Do not test the mpc version.  Assume that it is sufficient, since
   8978   # it is in the source tree, and the library has not been built yet
   8979   # but it would be included on the link line in the version check below
   8980   # hence making the test fail.
   8981   have_gmp=yes
   8982 fi
   8983 
   8984 # Specify a location for mpfr
   8985 # check for this first so it ends up on the link line before gmp.
   8986 
   8987 # Check whether --with-mpfr was given.
   8988 if test "${with_mpfr+set}" = set; then :
   8989   withval=$with_mpfr;
   8990 fi
   8991 
   8992 
   8993 # Check whether --with-mpfr-include was given.
   8994 if test "${with_mpfr_include+set}" = set; then :
   8995   withval=$with_mpfr_include;
   8996 fi
   8997 
   8998 
   8999 # Check whether --with-mpfr-lib was given.
   9000 if test "${with_mpfr_lib+set}" = set; then :
   9001   withval=$with_mpfr_lib;
   9002 fi
   9003 
   9004 
   9005 if test "x$with_mpfr" != x; then
   9006   gmplibs="-L$with_mpfr/lib $gmplibs"
   9007   gmpinc="-I$with_mpfr/include $gmpinc"
   9008 fi
   9009 if test "x$with_mpfr_include" != x; then
   9010   gmpinc="-I$with_mpfr_include $gmpinc"
   9011 fi
   9012 if test "x$with_mpfr_lib" != x; then
   9013   gmplibs="-L$with_mpfr_lib $gmplibs"
   9014 fi
   9015 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
   9016   # MPFR v3.1.0 moved the sources into a src sub-directory.
   9017   if ! test -d ${srcdir}/mpfr/src; then
   9018     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
   9019   fi
   9020   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
   9021   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
   9022   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
   9023   # Do not test the mpfr version.  Assume that it is sufficient, since
   9024   # it is in the source tree, and the library has not been built yet
   9025   # but it would be included on the link line in the version check below
   9026   # hence making the test fail.
   9027   have_gmp=yes
   9028 fi
   9029 
   9030 # Specify a location for gmp
   9031 
   9032 # Check whether --with-gmp was given.
   9033 if test "${with_gmp+set}" = set; then :
   9034   withval=$with_gmp;
   9035 fi
   9036 
   9037 
   9038 # Check whether --with-gmp-include was given.
   9039 if test "${with_gmp_include+set}" = set; then :
   9040   withval=$with_gmp_include;
   9041 fi
   9042 
   9043 
   9044 # Check whether --with-gmp-lib was given.
   9045 if test "${with_gmp_lib+set}" = set; then :
   9046   withval=$with_gmp_lib;
   9047 fi
   9048 
   9049 
   9050 
   9051 if test "x$with_gmp" != x; then
   9052   gmplibs="-L$with_gmp/lib $gmplibs"
   9053   gmpinc="-I$with_gmp/include $gmpinc"
   9054 fi
   9055 if test "x$with_gmp_include" != x; then
   9056   gmpinc="-I$with_gmp_include $gmpinc"
   9057 fi
   9058 if test "x$with_gmp_lib" != x; then
   9059   gmplibs="-L$with_gmp_lib $gmplibs"
   9060 fi
   9061 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
   9062   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
   9063   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
   9064   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
   9065   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
   9066   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
   9067   # Do not test the gmp version.  Assume that it is sufficient, since
   9068   # it is in the source tree, and the library has not been built yet
   9069   # but it would be included on the link line in the version check below
   9070   # hence making the test fail.
   9071   have_gmp=yes
   9072 fi
   9073 
   9074 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
   9075   have_gmp=yes
   9076   saved_CFLAGS="$CFLAGS"
   9077   CFLAGS="$CFLAGS $gmpinc"
   9078   # Check for the recommended and required versions of GMP.
   9079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
   9080 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
   9081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9082 /* end confdefs.h.  */
   9083 #include "gmp.h"
   9084 int
   9085 main ()
   9086 {
   9087 
   9088   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
   9089   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
   9090   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
   9091   choke me
   9092   #endif
   9093 
   9094   ;
   9095   return 0;
   9096 }
   9097 _ACEOF
   9098 if ac_fn_c_try_compile "$LINENO"; then :
   9099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9100 /* end confdefs.h.  */
   9101 #include <gmp.h>
   9102 int
   9103 main ()
   9104 {
   9105 
   9106   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
   9107   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
   9108   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
   9109   choke me
   9110   #endif
   9111 
   9112   ;
   9113   return 0;
   9114 }
   9115 _ACEOF
   9116 if ac_fn_c_try_compile "$LINENO"; then :
   9117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9118 $as_echo "yes" >&6; }
   9119 else
   9120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
   9121 $as_echo "buggy but acceptable" >&6; }
   9122 fi
   9123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9124 else
   9125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9126 $as_echo "no" >&6; }; have_gmp=no
   9127 fi
   9128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9129 
   9130   # If we have GMP, check the MPFR version.
   9131   if test x"$have_gmp" = xyes; then
   9132     # Check for the recommended and required versions of MPFR.
   9133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
   9134 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
   9135     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9136 /* end confdefs.h.  */
   9137 #include <gmp.h>
   9138     #include <mpfr.h>
   9139 int
   9140 main ()
   9141 {
   9142 
   9143     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
   9144     choke me
   9145     #endif
   9146 
   9147   ;
   9148   return 0;
   9149 }
   9150 _ACEOF
   9151 if ac_fn_c_try_compile "$LINENO"; then :
   9152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9153 /* end confdefs.h.  */
   9154 #include <gmp.h>
   9155     #include <mpfr.h>
   9156 int
   9157 main ()
   9158 {
   9159 
   9160     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
   9161     choke me
   9162     #endif
   9163 
   9164   ;
   9165   return 0;
   9166 }
   9167 _ACEOF
   9168 if ac_fn_c_try_compile "$LINENO"; then :
   9169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9170 $as_echo "yes" >&6; }
   9171 else
   9172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
   9173 $as_echo "buggy but acceptable" >&6; }
   9174 fi
   9175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9176 else
   9177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9178 $as_echo "no" >&6; }; have_gmp=no
   9179 fi
   9180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9181   fi
   9182 
   9183   # Check for the MPC header version.
   9184   if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
   9185     # Check for the recommended and required versions of MPC.
   9186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
   9187 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
   9188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9189 /* end confdefs.h.  */
   9190 #include <mpc.h>
   9191 int
   9192 main ()
   9193 {
   9194 
   9195     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
   9196     choke me
   9197     #endif
   9198 
   9199   ;
   9200   return 0;
   9201 }
   9202 _ACEOF
   9203 if ac_fn_c_try_compile "$LINENO"; then :
   9204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9205 /* end confdefs.h.  */
   9206 #include <mpc.h>
   9207 int
   9208 main ()
   9209 {
   9210 
   9211     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
   9212     choke me
   9213     #endif
   9214 
   9215   ;
   9216   return 0;
   9217 }
   9218 _ACEOF
   9219 if ac_fn_c_try_compile "$LINENO"; then :
   9220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9221 $as_echo "yes" >&6; }
   9222 else
   9223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
   9224 $as_echo "buggy but acceptable" >&6; }
   9225 fi
   9226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9227 else
   9228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9229 $as_echo "no" >&6; }; have_gmp=no
   9230 fi
   9231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9232   fi
   9233 
   9234   # Now check the MPFR library.
   9235   if test x"$have_gmp" = xyes; then
   9236     saved_LIBS="$LIBS"
   9237     LIBS="$LIBS $gmplibs"
   9238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
   9239 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
   9240     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9241 /* end confdefs.h.  */
   9242 #include <mpfr.h>
   9243 int
   9244 main ()
   9245 {
   9246 
   9247     mpfr_t n;
   9248     mpfr_t x;
   9249     int t;
   9250     mpfr_init (n);
   9251     mpfr_init (x);
   9252     mpfr_atan2 (n, n, x, MPFR_RNDN);
   9253     mpfr_erfc (n, x, MPFR_RNDN);
   9254     mpfr_subnormalize (x, t, MPFR_RNDN);
   9255     mpfr_clear(n);
   9256     mpfr_clear(x);
   9257 
   9258   ;
   9259   return 0;
   9260 }
   9261 _ACEOF
   9262 if ac_fn_c_try_link "$LINENO"; then :
   9263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9264 $as_echo "yes" >&6; }
   9265 else
   9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9267 $as_echo "no" >&6; }; have_gmp=no
   9268 fi
   9269 rm -f core conftest.err conftest.$ac_objext \
   9270     conftest$ac_exeext conftest.$ac_ext
   9271     LIBS="$saved_LIBS"
   9272   fi
   9273 
   9274   # Now check the MPC library
   9275   if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
   9276     saved_LIBS="$LIBS"
   9277     LIBS="$LIBS $gmplibs"
   9278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
   9279 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
   9280     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9281 /* end confdefs.h.  */
   9282 #include <mpc.h>
   9283 int
   9284 main ()
   9285 {
   9286 
   9287     mpc_t c;
   9288     mpc_init2 (c, 53);
   9289     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
   9290     mpc_cosh (c, c, MPC_RNDNN);
   9291     mpc_pow (c, c, c, MPC_RNDNN);
   9292     mpc_acosh (c, c, MPC_RNDNN);
   9293     mpc_clear (c);
   9294 
   9295   ;
   9296   return 0;
   9297 }
   9298 _ACEOF
   9299 if ac_fn_c_try_link "$LINENO"; then :
   9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9301 $as_echo "yes" >&6; }
   9302 else
   9303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9304 $as_echo "no" >&6; }; have_gmp=no
   9305 fi
   9306 rm -f core conftest.err conftest.$ac_objext \
   9307     conftest$ac_exeext conftest.$ac_ext
   9308     LIBS="$saved_LIBS"
   9309   fi
   9310 
   9311   CFLAGS="$saved_CFLAGS"
   9312 
   9313 # The library versions listed in the error message below should match
   9314 # the HARD-minimums enforced above.
   9315   if test x$have_gmp != xyes; then
   9316     if test -d ${srcdir}/gcc ; then
   9317       as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
   9318 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
   9319 their locations.  Source code for these libraries can be found at
   9320 their respective hosting sites as well as at
   9321 https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
   9322 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
   9323 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
   9324 make sure that you have installed both the libraries and the header
   9325 files.  They may be located in separate packages." "$LINENO" 5
   9326     else
   9327       as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
   9328 Try the --with-gmp and/or --with-mpfr options to specify
   9329 their locations.  If you obtained GMP and/or MPFR from a vendor
   9330 distribution package, make sure that you have installed both the libraries
   9331 and the header files.  They may be located in separate packages." "$LINENO" 5
   9332     fi
   9333   fi
   9334 fi
   9335 
   9336 # Flags needed for both GMP, MPFR and/or MPC.
   9337 
   9338 
   9339 
   9340 
   9341 
   9342 
   9343 
   9344 # Libraries to use for stage1 or when not bootstrapping.
   9345 
   9346 # Check whether --with-stage1-libs was given.
   9347 if test "${with_stage1_libs+set}" = set; then :
   9348   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
   9349    stage1_libs=
   9350  else
   9351    stage1_libs=$withval
   9352  fi
   9353 else
   9354   stage1_libs=
   9355 fi
   9356 
   9357 
   9358 
   9359 # Whether or not to use -static-libstdc++ and -static-libgcc.  The
   9360 # default is yes if gcc is being built; no otherwise.  The reason for
   9361 # this default is that gdb is sometimes linked against GNU Source
   9362 # Highlight, which is a shared library that uses C++ exceptions.  In
   9363 # this case, -static-libstdc++ will cause crashes.
   9364 
   9365 # Check whether --with-static-standard-libraries was given.
   9366 if test "${with_static_standard_libraries+set}" = set; then :
   9367   withval=$with_static_standard_libraries;
   9368 else
   9369   with_static_standard_libraries=auto
   9370 fi
   9371 
   9372 if test "$with_static_standard_libraries" = auto; then
   9373   with_static_standard_libraries=$have_compiler
   9374 fi
   9375 
   9376 # Linker flags to use for stage1 or when not bootstrapping.
   9377 
   9378 # Check whether --with-stage1-ldflags was given.
   9379 if test "${with_stage1_ldflags+set}" = set; then :
   9380   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
   9381    stage1_ldflags=
   9382  else
   9383    stage1_ldflags=$withval
   9384  fi
   9385 else
   9386   stage1_ldflags=
   9387  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
   9388  # if supported.  But if the user explicitly specified the libraries to use,
   9389  # trust that they are doing what they want.
   9390  if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
   9391      -a "$have_static_libs" = yes; then
   9392    stage1_ldflags="-static-libstdc++ -static-libgcc"
   9393  fi
   9394 fi
   9395 
   9396 
   9397 
   9398 # Libraries to use for stage2 and later builds.
   9399 
   9400 # Check whether --with-boot-libs was given.
   9401 if test "${with_boot_libs+set}" = set; then :
   9402   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
   9403    poststage1_libs=
   9404  else
   9405    poststage1_libs=$withval
   9406  fi
   9407 else
   9408   poststage1_libs=
   9409 fi
   9410 
   9411 
   9412 
   9413 # Linker flags to use for stage2 and later builds.
   9414 
   9415 # Check whether --with-boot-ldflags was given.
   9416 if test "${with_boot_ldflags+set}" = set; then :
   9417   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
   9418    poststage1_ldflags=
   9419  else
   9420    poststage1_ldflags=$withval
   9421  fi
   9422 else
   9423   poststage1_ldflags=
   9424  # In stages 2 and 3, default to linking libstdc++ and libgcc
   9425  # statically.  But if the user explicitly specified the libraries to
   9426  # use, trust that they are doing what they want.
   9427  if test "$poststage1_libs" = ""; then
   9428    poststage1_ldflags="-static-libstdc++ -static-libgcc"
   9429  fi
   9430 fi
   9431 
   9432 case $target in
   9433   *-darwin2* | *-darwin1[56789]*)
   9434     # For these versions, we default to using embedded rpaths.
   9435     if test "x$enable_darwin_at_rpath" != "xno"; then
   9436       poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
   9437     fi
   9438   ;;
   9439   *-darwin*)
   9440     # For these versions, we only use embedded rpaths on demand.
   9441     if test "x$enable_darwin_at_rpath" = "xyes"; then
   9442       poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
   9443     fi
   9444   ;;
   9445 esac
   9446 
   9447 
   9448 # GCC GRAPHITE dependency isl.
   9449 # Basic setup is inlined here, actual checks are in config/isl.m4
   9450 
   9451 
   9452 # Check whether --with-isl was given.
   9453 if test "${with_isl+set}" = set; then :
   9454   withval=$with_isl;
   9455 fi
   9456 
   9457 
   9458 # Treat --without-isl as a request to disable
   9459 # GRAPHITE support and skip all following checks.
   9460 if test "x$with_isl" != "xno"; then
   9461   # Check for isl
   9462 
   9463 
   9464 # Check whether --with-isl-include was given.
   9465 if test "${with_isl_include+set}" = set; then :
   9466   withval=$with_isl_include;
   9467 fi
   9468 
   9469 
   9470 # Check whether --with-isl-lib was given.
   9471 if test "${with_isl_lib+set}" = set; then :
   9472   withval=$with_isl_lib;
   9473 fi
   9474 
   9475 
   9476   # Check whether --enable-isl-version-check was given.
   9477 if test "${enable_isl_version_check+set}" = set; then :
   9478   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
   9479 else
   9480   ENABLE_ISL_CHECK=yes
   9481 fi
   9482 
   9483 
   9484   # Initialize isllibs and islinc.
   9485   case $with_isl in
   9486     no)
   9487       isllibs=
   9488       islinc=
   9489       ;;
   9490     "" | yes)
   9491       ;;
   9492     *)
   9493       isllibs="-L$with_isl/lib"
   9494       islinc="-I$with_isl/include"
   9495       ;;
   9496   esac
   9497   if test "x${with_isl_include}" != x ; then
   9498     islinc="-I$with_isl_include"
   9499   fi
   9500   if test "x${with_isl_lib}" != x; then
   9501     isllibs="-L$with_isl_lib"
   9502   fi
   9503         if test "x${islinc}" = x && test "x${isllibs}" = x \
   9504      && test -d ${srcdir}/isl; then
   9505     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
   9506     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
   9507     ENABLE_ISL_CHECK=no
   9508     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
   9509 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
   9510   fi
   9511 
   9512   isllibs="${isllibs} -lisl"
   9513 
   9514 
   9515 
   9516   if test "${ENABLE_ISL_CHECK}" = yes ; then
   9517     _isl_saved_CFLAGS=$CFLAGS
   9518     _isl_saved_LDFLAGS=$LDFLAGS
   9519     _isl_saved_LIBS=$LIBS
   9520 
   9521     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
   9522     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
   9523     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
   9524 
   9525     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
   9526 $as_echo_n "checking for isl 0.15 or later... " >&6; }
   9527     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9528 /* end confdefs.h.  */
   9529 #include <isl/schedule.h>
   9530 int
   9531 main ()
   9532 {
   9533 isl_options_set_schedule_serialize_sccs (NULL, 0);
   9534   ;
   9535   return 0;
   9536 }
   9537 _ACEOF
   9538 if ac_fn_c_try_link "$LINENO"; then :
   9539   gcc_cv_isl=yes
   9540 else
   9541   gcc_cv_isl=no
   9542 fi
   9543 rm -f core conftest.err conftest.$ac_objext \
   9544     conftest$ac_exeext conftest.$ac_ext
   9545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
   9546 $as_echo "$gcc_cv_isl" >&6; }
   9547 
   9548     if test "${gcc_cv_isl}" = no ; then
   9549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
   9550 $as_echo "required isl version is 0.15 or later" >&6; }
   9551     fi
   9552 
   9553     CFLAGS=$_isl_saved_CFLAGS
   9554     LDFLAGS=$_isl_saved_LDFLAGS
   9555     LIBS=$_isl_saved_LIBS
   9556   fi
   9557 
   9558 
   9559 
   9560 
   9561 
   9562 
   9563   if test "x${with_isl}" = xno; then
   9564     graphite_requested=no
   9565   elif test "x${with_isl}" != x \
   9566     || test "x${with_isl_include}" != x \
   9567     || test "x${with_isl_lib}" != x ; then
   9568     graphite_requested=yes
   9569   else
   9570     graphite_requested=no
   9571   fi
   9572 
   9573 
   9574 
   9575   if test "${gcc_cv_isl}" = no ; then
   9576     isllibs=
   9577     islinc=
   9578   fi
   9579 
   9580   if test "${graphite_requested}" = yes \
   9581     && test "x${isllibs}" = x \
   9582     && test "x${islinc}" = x ; then
   9583 
   9584     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
   9585   fi
   9586 
   9587 
   9588 fi
   9589 
   9590 # If the isl check failed, disable builds of in-tree variant of isl
   9591 if test "x$with_isl" = xno ||
   9592    test "x$gcc_cv_isl" = xno; then
   9593   noconfigdirs="$noconfigdirs isl"
   9594   islinc=
   9595 fi
   9596 
   9597 
   9598 
   9599 
   9600 # Check for LTO support.
   9601 # Check whether --enable-lto was given.
   9602 if test "${enable_lto+set}" = set; then :
   9603   enableval=$enable_lto; enable_lto=$enableval
   9604 else
   9605   enable_lto=yes; default_enable_lto=yes
   9606 fi
   9607 
   9608 
   9609 
   9610 
   9611 
   9612 target_elf=no
   9613 case $target in
   9614   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
   9615   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
   9616   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
   9617   nvptx-*-none)
   9618     target_elf=no
   9619     ;;
   9620   *)
   9621     target_elf=yes
   9622     ;;
   9623 esac
   9624 
   9625 if test $target_elf = yes; then :
   9626   # ELF platforms build the lto-plugin always.
   9627   build_lto_plugin=yes
   9628 
   9629 else
   9630   if test x"$default_enable_lto" = x"yes" ; then
   9631     case $target in
   9632       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
   9633       # On other non-ELF platforms, LTO has yet to be validated.
   9634       *) enable_lto=no ;;
   9635     esac
   9636   else
   9637   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
   9638   # It would also be nice to check the binutils support, but we don't
   9639   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
   9640   # warn during gcc/ subconfigure; unless you're bootstrapping with
   9641   # -flto it won't be needed until after installation anyway.
   9642     case $target in
   9643       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
   9644       *) if test x"$enable_lto" = x"yes"; then
   9645 	as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
   9646         fi
   9647       ;;
   9648     esac
   9649   fi
   9650   # Among non-ELF, only Windows platforms support the lto-plugin so far.
   9651   # Build it unless LTO was explicitly disabled.
   9652   case $target in
   9653     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
   9654     *) ;;
   9655   esac
   9656 
   9657 fi
   9658 
   9659 
   9660 # Check whether --enable-linker-plugin-configure-flags was given.
   9661 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
   9662   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
   9663 else
   9664   extra_linker_plugin_configure_flags=
   9665 fi
   9666 
   9667 
   9668 # Check whether --enable-linker-plugin-flags was given.
   9669 if test "${enable_linker_plugin_flags+set}" = set; then :
   9670   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
   9671 else
   9672   extra_linker_plugin_flags=
   9673 fi
   9674 
   9675 
   9676 
   9677 # Handle --enable-host-pie
   9678 # If host PIE executables are the default (or must be forced on) for some host,
   9679 # we must pass that configuration to the gcc directory.
   9680 gcc_host_pie=
   9681 # Check whether --enable-host-pie was given.
   9682 if test "${enable_host_pie+set}" = set; then :
   9683   enableval=$enable_host_pie; host_pie=$enableval
   9684  case $host in
   9685    *-*-darwin2*)
   9686      if test x$host_pie != xyes ; then
   9687        # for Darwin20+ this is required.
   9688        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
   9689 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
   9690        host_pie=yes
   9691        gcc_host_pie=--enable-host-pie
   9692      fi ;;
   9693   *) ;;
   9694  esac
   9695 else
   9696   case $host in
   9697   *-*-darwin2*)
   9698     # Default to PIE (mandatory for aarch64).
   9699     host_pie=yes
   9700     gcc_host_pie=--enable-host-pie
   9701     ;;
   9702   *) host_pie=no ;;
   9703  esac
   9704 fi
   9705 
   9706 
   9707 
   9708 
   9709 
   9710 # Enable --enable-host-shared.
   9711 # Checked early to determine whether jit is an 'all' language
   9712 # Check whether --enable-host-shared was given.
   9713 if test "${enable_host_shared+set}" = set; then :
   9714   enableval=$enable_host_shared; host_shared=$enableval
   9715  case $host in
   9716    x86_64-*-darwin* | aarch64-*-darwin*)
   9717      if test x$host_shared != xyes ; then
   9718        # PIC is the default, and actually cannot be switched off.
   9719        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
   9720 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
   9721        host_shared=yes
   9722      fi ;;
   9723    *-*-darwin*)
   9724      if test x$host_pie = xyes -a x$host_shared != xyes ; then
   9725        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
   9726 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
   9727        host_shared=yes
   9728      fi ;;
   9729   *) ;;
   9730  esac
   9731 else
   9732   case $host in
   9733   # 64B x86_64 and Aarch64 Darwin default to PIC.
   9734   x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
   9735   # 32B and powerpc64 Darwin must use PIC to link PIE exes.
   9736   *-*-darwin*) host_shared=$host_pie ;;
   9737   *) host_shared=no;;
   9738  esac
   9739 fi
   9740 
   9741 
   9742 
   9743 
   9744 if test x$host_shared = xyes; then
   9745   case $host in
   9746     *-*-darwin*)
   9747       # Since host shared is the default for 64b Darwin, and also enabled for
   9748       # host_pie, ensure that we present the PIE flag when host_pie is active.
   9749       if test x$host_pie = xyes; then
   9750         PICFLAG=-fPIE
   9751       fi
   9752       ;;
   9753     *)
   9754       PICFLAG=-fPIC
   9755       ;;
   9756   esac
   9757 elif test x$host_pie = xyes; then
   9758   PICFLAG=-fPIE
   9759 else
   9760   PICFLAG=
   9761 fi
   9762 
   9763 
   9764 
   9765 
   9766 # Check for libgdiagnostics support.
   9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libgdiagnostics" >&5
   9768 $as_echo_n "checking whether to enable libgdiagnostics... " >&6; }
   9769 # Check whether --enable-libgdiagnostics was given.
   9770 if test "${enable_libgdiagnostics+set}" = set; then :
   9771   enableval=$enable_libgdiagnostics; enable_libgdiagnostics=$enableval
   9772 else
   9773   enable_libgdiagnostics=no
   9774 fi
   9775 
   9776 
   9777 if test x$enable_libgdiagnostics = xyes; then
   9778   # Disable libgdiagnostics if -enable-host-shared not specified
   9779   # but not if building for Mingw. All code in Windows
   9780   # is position independent code (PIC).
   9781   case $target in
   9782      *mingw*) ;;
   9783      *)
   9784        if test x$host_shared != xyes; then
   9785 	 as_fn_error $? "
   9786 Enabling libgdiagnostics requires --enable-host-shared.
   9787 
   9788 --enable-host-shared typically slows the rest of the compiler down by
   9789 a few %, so you must explicitly enable it.
   9790 
   9791 If you want to build both libgdiagnostics and the regular compiler, it is often
   9792 best to do this via two separate configure/builds, in separate
   9793 directories, to avoid imposing the performance cost of
   9794 --enable-host-shared on the regular compiler." "$LINENO" 5
   9795        fi
   9796        ;;
   9797    esac
   9798 fi
   9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libgdiagnostics" >&5
   9800 $as_echo "$enable_libgdiagnostics" >&6; }
   9801 
   9802 
   9803 
   9804 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
   9805 # default, so we check for them here
   9806 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
   9807 # build of the Rust frontend in case a dep is missing.
   9808 missing_rust_dynlibs=none
   9809 
   9810 save_LIBS="$LIBS"
   9811 LIBS=
   9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   9813 $as_echo_n "checking for library containing dlopen... " >&6; }
   9814 if ${ac_cv_search_dlopen+:} false; then :
   9815   $as_echo_n "(cached) " >&6
   9816 else
   9817   ac_func_search_save_LIBS=$LIBS
   9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9819 /* end confdefs.h.  */
   9820 
   9821 /* Override any GCC internal prototype to avoid an error.
   9822    Use char because int might match the return type of a GCC
   9823    builtin and then its argument prototype would still apply.  */
   9824 #ifdef __cplusplus
   9825 extern "C"
   9826 #endif
   9827 char dlopen ();
   9828 int
   9829 main ()
   9830 {
   9831 return dlopen ();
   9832   ;
   9833   return 0;
   9834 }
   9835 _ACEOF
   9836 for ac_lib in '' dl; do
   9837   if test -z "$ac_lib"; then
   9838     ac_res="none required"
   9839   else
   9840     ac_res=-l$ac_lib
   9841     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9842   fi
   9843   if ac_fn_c_try_link "$LINENO"; then :
   9844   ac_cv_search_dlopen=$ac_res
   9845 fi
   9846 rm -f core conftest.err conftest.$ac_objext \
   9847     conftest$ac_exeext
   9848   if ${ac_cv_search_dlopen+:} false; then :
   9849   break
   9850 fi
   9851 done
   9852 if ${ac_cv_search_dlopen+:} false; then :
   9853 
   9854 else
   9855   ac_cv_search_dlopen=no
   9856 fi
   9857 rm conftest.$ac_ext
   9858 LIBS=$ac_func_search_save_LIBS
   9859 fi
   9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   9861 $as_echo "$ac_cv_search_dlopen" >&6; }
   9862 ac_res=$ac_cv_search_dlopen
   9863 if test "$ac_res" != no; then :
   9864   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9865 
   9866 fi
   9867 
   9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
   9869 $as_echo_n "checking for library containing pthread_create... " >&6; }
   9870 if ${ac_cv_search_pthread_create+:} false; then :
   9871   $as_echo_n "(cached) " >&6
   9872 else
   9873   ac_func_search_save_LIBS=$LIBS
   9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9875 /* end confdefs.h.  */
   9876 
   9877 /* Override any GCC internal prototype to avoid an error.
   9878    Use char because int might match the return type of a GCC
   9879    builtin and then its argument prototype would still apply.  */
   9880 #ifdef __cplusplus
   9881 extern "C"
   9882 #endif
   9883 char pthread_create ();
   9884 int
   9885 main ()
   9886 {
   9887 return pthread_create ();
   9888   ;
   9889   return 0;
   9890 }
   9891 _ACEOF
   9892 for ac_lib in '' pthread; do
   9893   if test -z "$ac_lib"; then
   9894     ac_res="none required"
   9895   else
   9896     ac_res=-l$ac_lib
   9897     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9898   fi
   9899   if ac_fn_c_try_link "$LINENO"; then :
   9900   ac_cv_search_pthread_create=$ac_res
   9901 fi
   9902 rm -f core conftest.err conftest.$ac_objext \
   9903     conftest$ac_exeext
   9904   if ${ac_cv_search_pthread_create+:} false; then :
   9905   break
   9906 fi
   9907 done
   9908 if ${ac_cv_search_pthread_create+:} false; then :
   9909 
   9910 else
   9911   ac_cv_search_pthread_create=no
   9912 fi
   9913 rm conftest.$ac_ext
   9914 LIBS=$ac_func_search_save_LIBS
   9915 fi
   9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
   9917 $as_echo "$ac_cv_search_pthread_create" >&6; }
   9918 ac_res=$ac_cv_search_pthread_create
   9919 if test "$ac_res" != no; then :
   9920   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9921 
   9922 fi
   9923 
   9924 CRAB1_LIBS="$LIBS"
   9925 LIBS="$save_LIBS"
   9926 
   9927 if test "$ac_cv_search_dlopen" = no; then
   9928     missing_rust_dynlibs="libdl"
   9929 fi
   9930 
   9931 if test "$ac_cv_search_pthread_create" = no; then
   9932     missing_rust_dynlibs="$missing_rust_dynlibs, libpthread"
   9933 fi
   9934 
   9935 CRAB1_LIBS="$CRAB1_LIBS"
   9936 
   9937 
   9938 # If we are building PIC/PIE host executables, and we are building dependent
   9939 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
   9940 # code.
   9941 host_libs_picflag=
   9942 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
   9943 host_libs_picflag='--with-pic'
   9944 fi
   9945 
   9946 
   9947 # By default, C and C++ are the only stage 1 languages.
   9948 stage1_languages=,c,
   9949 
   9950 # Target libraries that we bootstrap.
   9951 bootstrap_target_libs=,target-libgcc,
   9952 
   9953 # Figure out what language subdirectories are present.
   9954 # Look if the user specified --enable-languages="..."; if not, use
   9955 # the environment variable $LANGUAGES if defined. $LANGUAGES might
   9956 # go away some day.
   9957 # NB:  embedded tabs in this IF block -- do not untabify
   9958 if test -d ${srcdir}/gcc; then
   9959   if test x"${enable_languages+set}" != xset; then
   9960     if test x"${LANGUAGES+set}" = xset; then
   9961       enable_languages="${LANGUAGES}"
   9962         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
   9963     else
   9964       enable_languages=default
   9965     fi
   9966   else
   9967     if test x"${enable_languages}" = x ||
   9968        test x"${enable_languages}" = xyes;
   9969        then
   9970       echo configure.ac: --enable-languages needs at least one language argument 1>&2
   9971       exit 1
   9972     fi
   9973   fi
   9974   enable_languages=`echo "${enable_languages}" | sed -e 's/[ 	,][ 	,]*/,/g' -e 's/,$//'`
   9975 
   9976   # 'f95' is the old name for the 'fortran' language. We issue a warning
   9977   # and make the substitution.
   9978   case ,${enable_languages}, in
   9979     *,f95,*)
   9980       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
   9981       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
   9982       ;;
   9983   esac
   9984 
   9985   # If bootstrapping, C++ must be enabled.
   9986   case ",$enable_languages,:$enable_bootstrap" in
   9987     *,c++,*:*) ;;
   9988     *:yes)
   9989       if test -f ${srcdir}/gcc/cp/config-lang.in; then
   9990         enable_languages="${enable_languages},c++"
   9991       else
   9992         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
   9993       fi
   9994       ;;
   9995   esac
   9996 
   9997   # First scan to see if an enabled language requires some other language.
   9998   # We assume that a given config-lang.in will list all the language
   9999   # front ends it requires, even if some are required indirectly.
   10000   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
   10001     case ${lang_frag} in
   10002       ..) ;;
   10003       # The odd quoting in the next line works around
   10004       # an apparent bug in bash 1.12 on linux.
   10005       ${srcdir}/gcc/[*]/config-lang.in) ;;
   10006       *)
   10007         # From the config-lang.in, get $language, $lang_requires, and
   10008         # $lang_requires_boot_languages.
   10009         language=
   10010         lang_requires=
   10011         lang_requires_boot_languages=
   10012         # set srcdir during sourcing lang_frag to the gcc dir.
   10013         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
   10014         # pollutes this shell
   10015         saved_srcdir=${srcdir}
   10016         srcdir=${srcdir}/gcc . ${lang_frag}
   10017         srcdir=${saved_srcdir}
   10018         for other in ${lang_requires} ${lang_requires_boot_languages}; do
   10019           case ,${enable_languages}, in
   10020 	    *,$other,*) ;;
   10021 	    *,default,*) ;;
   10022 	    *,all,*) ;;
   10023 	    *,$language,*)
   10024 	      echo " \`$other' language required by \`$language'; enabling" 1>&2
   10025 	      enable_languages="${enable_languages},${other}"
   10026 	      ;;
   10027 	  esac
   10028         done
   10029 	for other in ${lang_requires_boot_languages} ; do
   10030 	  if test "$other" != "c"; then
   10031 	    case ,${enable_stage1_languages}, in
   10032 	      *,$other,*) ;;
   10033 	      *,default,*) ;;
   10034 	      *,all,*) ;;
   10035 	      *)
   10036 		case ,${enable_languages}, in
   10037 		  *,$language,*)
   10038 		    echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
   10039 		    enable_stage1_languages="$enable_stage1_languages,${other}"
   10040 		    ;;
   10041 		esac
   10042 		;;
   10043 	    esac
   10044           fi
   10045         done
   10046         ;;
   10047     esac
   10048   done
   10049 
   10050   new_enable_languages=,c,
   10051 
   10052   # If LTO is enabled, add the LTO front end.
   10053   if test "$enable_lto" = "yes" ; then
   10054     case ,${enable_languages}, in
   10055       *,lto,*) ;;
   10056       *) enable_languages="${enable_languages},lto" ;;
   10057     esac
   10058     if test "${build_lto_plugin}" = "yes" ; then
   10059       configdirs="$configdirs lto-plugin"
   10060     fi
   10061   fi
   10062 
   10063   # If we're building an offloading compiler, add the LTO front end.
   10064   if test x"$enable_as_accelerator_for" != x ; then
   10065     case ,${enable_languages}, in
   10066       *,lto,*) ;;
   10067       *) enable_languages="${enable_languages},lto" ;;
   10068     esac
   10069   fi
   10070 
   10071   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
   10072   potential_languages=,c,
   10073 
   10074   enabled_target_libs=
   10075   disabled_target_libs=
   10076 
   10077   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
   10078     case ${lang_frag} in
   10079       ..) ;;
   10080       # The odd quoting in the next line works around
   10081       # an apparent bug in bash 1.12 on linux.
   10082       ${srcdir}/gcc/[*]/config-lang.in) ;;
   10083       *)
   10084         # From the config-lang.in, get $language, $target_libs,
   10085         # $lang_dirs, $boot_language, and $build_by_default
   10086         language=
   10087         target_libs=
   10088         lang_dirs=
   10089         subdir_requires=
   10090         boot_language=no
   10091         build_by_default=yes
   10092         # set srcdir during sourcing.  See above about save & restore
   10093         saved_srcdir=${srcdir}
   10094         srcdir=${srcdir}/gcc . ${lang_frag}
   10095         srcdir=${saved_srcdir}
   10096         if test x${language} = x; then
   10097           echo "${lang_frag} doesn't set \$language." 1>&2
   10098           exit 1
   10099         fi
   10100 
   10101 	if test "$language" = "c++"; then
   10102 	  boot_language=yes
   10103 	fi
   10104 
   10105         add_this_lang=no
   10106         # C is always enabled, so no need to add it again
   10107         if test "$language" != "c"; then
   10108           case ,${enable_languages}, in
   10109             *,${language},*)
   10110               # Language was explicitly selected; include it
   10111 	      add_this_lang=yes
   10112               ;;
   10113 	    *,all,*)
   10114 	      # All languages are enabled
   10115 	      add_this_lang=all
   10116               ;;
   10117             *,default,*)
   10118               # 'default' was selected, select it if it is a default language
   10119 	      add_this_lang=${build_by_default}
   10120               ;;
   10121           esac
   10122         fi
   10123 
   10124         # Disable languages that need other directories if these aren't available.
   10125 	for i in $subdir_requires; do
   10126 	  test -f "$srcdir/gcc/$i/config-lang.in" && continue
   10127 	  case ${add_this_lang} in
   10128 	    yes)
   10129               # Specifically requested language; tell them.
   10130               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
   10131               ;;
   10132             all)
   10133               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
   10134 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
   10135               add_this_lang=unsupported
   10136               ;;
   10137             *)
   10138               # Silently disable.
   10139               add_this_lang=unsupported
   10140               ;;
   10141           esac
   10142 	done
   10143 
   10144         # Disable Ada if no preexisting GNAT is available.
   10145         case ${add_this_lang}:${language}:${have_gnat} in
   10146           yes:ada:no)
   10147             # Specifically requested language; tell them.
   10148             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
   10149             ;;
   10150           all:ada:no)
   10151             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
   10152 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
   10153             add_this_lang=unsupported
   10154             ;;
   10155           *:ada:no)
   10156             # Silently disable.
   10157             add_this_lang=unsupported
   10158             ;;
   10159         esac
   10160 
   10161         # Disable D if no preexisting GDC is available.
   10162         case ${add_this_lang}:${language}:${have_gdc} in
   10163           yes:d:no)
   10164             # Specifically requested language; tell them.
   10165             as_fn_error $? "GDC is required to build $language" "$LINENO" 5
   10166            ;;
   10167           all:d:no)
   10168             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
   10169 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
   10170             add_this_lang=unsupported
   10171             ;;
   10172           *:d:no)
   10173             # Silently disable.
   10174             add_this_lang=unsupported
   10175             ;;
   10176         esac
   10177 
   10178         # Disable Rust if we are missing some required C libraries for the Rust runtime.
   10179         case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
   10180           *:rust:none)
   10181             # Nothing to do - we're not missing any C libraries
   10182             ;;
   10183           yes:rust:*)
   10184             as_fn_error $? "some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
   10185             add_this_lang=unsupported
   10186             ;;
   10187           all:rust:*)
   10188             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
   10189 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
   10190             add_this_lang=unsupported
   10191             ;;
   10192           *:rust:*)
   10193             # Silently disable.
   10194             add_this_lang=unsupported
   10195             ;;
   10196         esac
   10197 
   10198         # Disable jit if -enable-host-shared not specified
   10199         # but not if building for Mingw. All code in Windows
   10200         # is position independent code (PIC).
   10201         case $target in
   10202           *mingw*) ;;
   10203           *)
   10204           case ${add_this_lang}:${language}:${host_shared} in
   10205             yes:jit:no)
   10206 	           # PR jit/64780: explicitly specify --enable-host-shared
   10207 	    as_fn_error $? "
   10208 Enabling language \"jit\" requires --enable-host-shared.
   10209 
   10210 --enable-host-shared typically slows the rest of the compiler down by
   10211 a few %, so you must explicitly enable it.
   10212 
   10213 If you want to build both the jit and the regular compiler, it is often
   10214 best to do this via two separate configure/builds, in separate
   10215 directories, to avoid imposing the performance cost of
   10216 --enable-host-shared on the regular compiler." "$LINENO" 5
   10217 	            ;;
   10218             all:jit:no)
   10219 	      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
   10220 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
   10221               add_this_lang=unsupported
   10222               ;;
   10223             *:jit:no)
   10224               # Silently disable.
   10225               add_this_lang=unsupported
   10226               ;;
   10227 	        esac
   10228           ;;
   10229         esac
   10230 
   10231         # Pre-conditions to consider whether cargo being supported.
   10232         if test x"$have_cargo" = xyes \
   10233           && test x"$build" != x"$host"; then
   10234           # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
   10235           # "'cargo' should build for the host system" is resolved:
   10236           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
   10237 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
   10238           have_cargo=no
   10239         else
   10240           # Assume that cargo-produced object files are compatible with what
   10241           # we're going to build here.
   10242           :
   10243         fi
   10244         # Disable Rust if cargo is unavailable.
   10245         case ${add_this_lang}:${language}:${have_cargo} in
   10246           yes:rust:no)
   10247             # Specifically requested language; tell them.
   10248             as_fn_error $? "cargo is required to build $language" "$LINENO" 5
   10249             ;;
   10250           all:rust:no)
   10251             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
   10252 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
   10253             add_this_lang=unsupported
   10254             ;;
   10255           *:rust:no)
   10256             # Silently disable.
   10257             add_this_lang=unsupported
   10258             ;;
   10259         esac
   10260 
   10261 
   10262         # Disable a language that is unsupported by the target.
   10263 	case "${add_this_lang}: $unsupported_languages " in
   10264 	  no:*) ;;
   10265 	  unsupported:*) ;;
   10266 	  *:*" $language "*)
   10267 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
   10268 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
   10269 	    add_this_lang=unsupported
   10270 	    ;;
   10271 	esac
   10272 
   10273 	case $add_this_lang in
   10274 	  unsupported)
   10275             # Remove language-dependent dirs.
   10276 	    disabled_target_libs="$disabled_target_libs $target_libs"
   10277 	    noconfigdirs="$noconfigdirs $lang_dirs"
   10278 	    ;;
   10279 	  no)
   10280             # Remove language-dependent dirs; still show language as supported.
   10281 	    disabled_target_libs="$disabled_target_libs $target_libs"
   10282 	    noconfigdirs="$noconfigdirs $lang_dirs"
   10283             potential_languages="${potential_languages}${language},"
   10284 	    ;;
   10285           all|yes)
   10286 	    new_enable_languages="${new_enable_languages}${language},"
   10287             potential_languages="${potential_languages}${language},"
   10288 	    missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
   10289 	    enabled_target_libs="$enabled_target_libs $target_libs"
   10290 	    case "${boot_language}:,$enable_stage1_languages," in
   10291 	      yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
   10292 		# Add to (comma-separated) list of stage 1 languages.
   10293 		case ",$stage1_languages," in
   10294 		  *,$language,* | ,yes, | ,all,) ;;
   10295 		  *) stage1_languages="${stage1_languages}${language}," ;;
   10296 		esac
   10297 		# We need to bootstrap any supporting libraries.
   10298 		bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
   10299 		;;
   10300 	    esac
   10301 	    ;;
   10302         esac
   10303         ;;
   10304     esac
   10305   done
   10306 
   10307   # Add target libraries which are only needed for disabled languages
   10308   # to noconfigdirs.
   10309   if test -n "$disabled_target_libs"; then
   10310     for dir in $disabled_target_libs; do
   10311       case " $enabled_target_libs " in
   10312       *" ${dir} "*) ;;
   10313       *) noconfigdirs="$noconfigdirs $dir" ;;
   10314       esac
   10315     done
   10316   fi
   10317 
   10318   # Check whether --enable-stage1-languages was given.
   10319 if test "${enable_stage1_languages+set}" = set; then :
   10320   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
   10321     ,no,|,,)
   10322       # Set it to something that will have no effect in the loop below
   10323       enable_stage1_languages=c ;;
   10324     ,yes,)
   10325       enable_stage1_languages=`echo $new_enable_languages | \
   10326 	sed -e "s/^,//" -e "s/,$//" ` ;;
   10327     *,all,*)
   10328       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
   10329 	sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
   10330   esac
   10331 
   10332   # Add "good" languages from enable_stage1_languages to stage1_languages,
   10333   # while "bad" languages go in missing_languages.  Leave no duplicates.
   10334   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
   10335     case $potential_languages in
   10336       *,$i,*)
   10337         case $stage1_languages in
   10338           *,$i,*) ;;
   10339           *) stage1_languages="$stage1_languages$i," ;;
   10340         esac ;;
   10341       *)
   10342         case $missing_languages in
   10343           *,$i,*) ;;
   10344           *) missing_languages="$missing_languages$i," ;;
   10345         esac ;;
   10346      esac
   10347   done
   10348 fi
   10349 
   10350 
   10351   # Remove leading/trailing commas that were added for simplicity
   10352   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
   10353   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
   10354   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
   10355   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
   10356 
   10357   if test "x$missing_languages" != x; then
   10358     as_fn_error $? "
   10359 The following requested languages could not be built: ${missing_languages}
   10360 Supported languages are: ${potential_languages}" "$LINENO" 5
   10361   fi
   10362   if test "x$new_enable_languages" != "x$enable_languages"; then
   10363     echo The following languages will be built: ${new_enable_languages}
   10364     enable_languages="$new_enable_languages"
   10365   fi
   10366 
   10367 
   10368   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
   10369 fi
   10370 
   10371 # Handle --disable-<component> generically.
   10372 for dir in $configdirs $build_configdirs $target_configdirs ; do
   10373   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
   10374   varname=`echo $dirname | sed -e s/+/_/g`
   10375   if eval test x\${enable_${varname}} "=" xno ; then
   10376     noconfigdirs="$noconfigdirs $dir"
   10377   fi
   10378 done
   10379 
   10380 # Check for Boehm's garbage collector
   10381 # Check whether --enable-objc-gc was given.
   10382 if test "${enable_objc_gc+set}" = set; then :
   10383   enableval=$enable_objc_gc;
   10384 fi
   10385 
   10386 
   10387 # Check whether --with-target-bdw-gc was given.
   10388 if test "${with_target_bdw_gc+set}" = set; then :
   10389   withval=$with_target_bdw_gc;
   10390 fi
   10391 
   10392 
   10393 # Check whether --with-target-bdw-gc-include was given.
   10394 if test "${with_target_bdw_gc_include+set}" = set; then :
   10395   withval=$with_target_bdw_gc_include;
   10396 fi
   10397 
   10398 
   10399 # Check whether --with-target-bdw-gc-lib was given.
   10400 if test "${with_target_bdw_gc_lib+set}" = set; then :
   10401   withval=$with_target_bdw_gc_lib;
   10402 fi
   10403 
   10404 
   10405 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
   10406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
   10407 $as_echo_n "checking for bdw garbage collector... " >&6; }
   10408   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
   10409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
   10410 $as_echo "using bdw-gc in default locations" >&6; }
   10411   else
   10412         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
   10413       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
   10414     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
   10415       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
   10416     else
   10417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
   10418 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
   10419     fi
   10420   fi
   10421 esac
   10422 
   10423 # Disable libitm, libsanitizer, libvtv if we're not building C++
   10424 case ,${enable_languages}, in
   10425   *,c++,*)
   10426     # Disable libitm, libsanitizer if we're not building libstdc++
   10427     case "${noconfigdirs}" in
   10428       *target-libstdc++-v3*)
   10429         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
   10430         ;;
   10431       *) ;;
   10432     esac
   10433     ;;
   10434   *)
   10435     noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
   10436     ;;
   10437 esac
   10438 
   10439 case ,${enable_languages}, in
   10440   *,rust,*)
   10441     case " ${noconfigdirs} " in
   10442       *\ target-libstdc++-v3\ *)
   10443         # Disable target libgrust if we're not building target libstdc++.
   10444         noconfigdirs="$noconfigdirs target-libgrust"
   10445         ;;
   10446       *)
   10447 	case "${target}" in
   10448 	  amdgcn*-*-* \
   10449 	  | nvptx*-*-* )
   10450 	    # Build fails in 'libgrust/libproc_macro_internal/':
   10451 	    #     sorry, unimplemented: exception handling not supported
   10452 	    noconfigdirs="$noconfigdirs target-libgrust"
   10453 	    ;;
   10454 	esac
   10455 	;;
   10456     esac
   10457     ;;
   10458 esac
   10459 
   10460 # If gcc/ is not in the source tree then we'll not be building a
   10461 # target compiler, assume in that case we don't want to build any
   10462 # target libraries or tools.
   10463 #
   10464 # This was added primarily for the benefit for binutils-gdb who reuse
   10465 # this configure script, but don't always have target tools available.
   10466 if test ! -d ${srcdir}/gcc; then
   10467    skipdirs="${skipdirs} ${target_configdirs}"
   10468 fi
   10469 
   10470 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
   10471 # $build_configdirs and $target_configdirs.
   10472 # If we have the source for $noconfigdirs entries, add them to $notsupp.
   10473 
   10474 notsupp=""
   10475 for dir in . $skipdirs $noconfigdirs ; do
   10476   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
   10477   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10478     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
   10479     if test -r $srcdir/$dirname/configure ; then
   10480       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10481 	true
   10482       else
   10483 	notsupp="$notsupp $dir"
   10484       fi
   10485     fi
   10486   fi
   10487   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10488     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
   10489     if test -r $srcdir/$dirname/configure ; then
   10490       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10491 	true
   10492       else
   10493 	notsupp="$notsupp $dir"
   10494       fi
   10495     fi
   10496   fi
   10497   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10498     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
   10499     if test -r $srcdir/$dirname/configure ; then
   10500       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10501 	true
   10502       else
   10503 	notsupp="$notsupp $dir"
   10504       fi
   10505     fi
   10506   fi
   10507 done
   10508 
   10509 # Quietly strip out all directories which aren't configurable in this tree.
   10510 # This relies on all configurable subdirectories being autoconfiscated, which
   10511 # is now the case.
   10512 build_configdirs_all="$build_configdirs"
   10513 build_configdirs=
   10514 for i in ${build_configdirs_all} ; do
   10515   j=`echo $i | sed -e s/build-//g`
   10516   if test -f ${srcdir}/$j/configure ; then
   10517     build_configdirs="${build_configdirs} $i"
   10518   fi
   10519 done
   10520 
   10521 configdirs_all="$configdirs"
   10522 configdirs=
   10523 for i in ${configdirs_all} ; do
   10524   if test -f ${srcdir}/$i/configure ; then
   10525     configdirs="${configdirs} $i"
   10526   fi
   10527 done
   10528 
   10529 target_configdirs_all="$target_configdirs"
   10530 target_configdirs=
   10531 for i in ${target_configdirs_all} ; do
   10532   j=`echo $i | sed -e s/target-//g`
   10533   if test -f ${srcdir}/$j/configure ; then
   10534     target_configdirs="${target_configdirs} $i"
   10535   fi
   10536 done
   10537 
   10538 # libiberty-linker-plugin is special: it doesn't have its own source directory,
   10539 # so we have to add it after the preceding checks.
   10540 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
   10541 then
   10542   case " $configdirs " in
   10543     *" libiberty "*)
   10544       # If we can build libiberty, we can also build libiberty-linker-plugin.
   10545       configdirs="$configdirs libiberty-linker-plugin"
   10546       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
   10547         --with-libiberty=../libiberty-linker-plugin";;
   10548     *)
   10549       as_fn_error $? "libiberty missing" "$LINENO" 5;;
   10550   esac
   10551 fi
   10552 
   10553 # Sometimes we have special requirements for the host libiberty.
   10554 extra_host_libiberty_configure_flags=
   10555 case " $configdirs " in
   10556   *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
   10557     # When these are to be built as shared libraries, the same applies to
   10558     # libiberty.
   10559     extra_host_libiberty_configure_flags=--enable-shared
   10560     ;;
   10561 esac
   10562 
   10563 
   10564 # Sometimes we have special requirements for the host zlib.
   10565 extra_host_zlib_configure_flags=
   10566 case " $configdirs " in
   10567   *" bfd "*)
   10568     # When bfd is to be built as a shared library, the same applies to
   10569     # zlib.
   10570     if test "$enable_shared" = "yes"; then
   10571       extra_host_zlib_configure_flags=--enable-host-shared
   10572     fi
   10573     ;;
   10574 esac
   10575 
   10576 
   10577 # Produce a warning message for the subdirs we can't configure.
   10578 # This isn't especially interesting in the Cygnus tree, but in the individual
   10579 # FSF releases, it's important to let people know when their machine isn't
   10580 # supported by the one or two programs in a package.
   10581 
   10582 if test -n "${notsupp}" && test -z "${norecursion}" ; then
   10583   # If $appdirs is non-empty, at least one of those directories must still
   10584   # be configured, or we error out.  (E.g., if the gas release supports a
   10585   # specified target in some subdirs but not the gas subdir, we shouldn't
   10586   # pretend that all is well.)
   10587   if test -n "$appdirs" ; then
   10588     for dir in $appdirs ; do
   10589       if test -r $dir/Makefile.in ; then
   10590 	if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10591 	  appdirs=""
   10592 	  break
   10593 	fi
   10594 	if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
   10595 	  appdirs=""
   10596 	  break
   10597 	fi
   10598       fi
   10599     done
   10600     if test -n "$appdirs" ; then
   10601       echo "*** This configuration is not supported by this package." 1>&2
   10602       exit 1
   10603     fi
   10604   fi
   10605   # Okay, some application will build, or we don't care to check.  Still
   10606   # notify of subdirs not getting built.
   10607   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
   10608   echo "    ${notsupp}" 1>&2
   10609   echo "    (Any other directories should still work fine.)" 1>&2
   10610 fi
   10611 
   10612 case "$host" in
   10613   *msdosdjgpp*)
   10614     enable_gdbtk=no ;;
   10615 esac
   10616 
   10617 # To find our prefix, in gcc_cv_tool_prefix.
   10618 
   10619 # The user is always right.
   10620 if test "${PATH_SEPARATOR+set}" != set; then
   10621   echo "#! /bin/sh" >conf$$.sh
   10622   echo  "exit 0"   >>conf$$.sh
   10623   chmod +x conf$$.sh
   10624   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   10625     PATH_SEPARATOR=';'
   10626   else
   10627     PATH_SEPARATOR=:
   10628   fi
   10629   rm -f conf$$.sh
   10630 fi
   10631 
   10632 
   10633   get_gcc_base_ver="cat"
   10634 
   10635 # Check whether --with-gcc-major-version-only was given.
   10636 if test "${with_gcc_major_version_only+set}" = set; then :
   10637   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
   10638         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
   10639       fi
   10640 
   10641 fi
   10642 
   10643 
   10644 
   10645 
   10646 
   10647 
   10648 if test "x$exec_prefix" = xNONE; then
   10649         if test "x$prefix" = xNONE; then
   10650                 gcc_cv_tool_prefix=$ac_default_prefix
   10651         else
   10652                 gcc_cv_tool_prefix=$prefix
   10653         fi
   10654 else
   10655         gcc_cv_tool_prefix=$exec_prefix
   10656 fi
   10657 
   10658 # If there is no compiler in the tree, use the PATH only.  In any
   10659 # case, if there is no compiler in the tree nobody should use
   10660 # AS_FOR_TARGET and LD_FOR_TARGET.
   10661 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
   10662     if test x$with_gcc_major_version_only = xyes ; then
   10663                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
   10664             else
   10665         gcc_version=`cat $srcdir/gcc/BASE-VER`
   10666     fi
   10667     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
   10668     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
   10669     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
   10670     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
   10671     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
   10672     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
   10673 else
   10674     gcc_cv_tool_dirs=
   10675 fi
   10676 
   10677 if test x$build = x$target && test -n "$md_exec_prefix"; then
   10678         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
   10679 fi
   10680 
   10681 
   10682 
   10683 copy_dirs=
   10684 
   10685 
   10686 # Check whether --with-build-sysroot was given.
   10687 if test "${with_build_sysroot+set}" = set; then :
   10688   withval=$with_build_sysroot; if test x"$withval" != x ; then
   10689      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
   10690    fi
   10691 else
   10692   SYSROOT_CFLAGS_FOR_TARGET=
   10693 fi
   10694 
   10695 
   10696 
   10697 
   10698 # Check whether --with-debug-prefix-map was given.
   10699 if test "${with_debug_prefix_map+set}" = set; then :
   10700   withval=$with_debug_prefix_map; if test x"$withval" != x; then
   10701      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
   10702      for debug_map in $withval; do
   10703        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
   10704      done
   10705    fi
   10706 else
   10707   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
   10708 fi
   10709 
   10710 
   10711 
   10712 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
   10713 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
   10714 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
   10715 # We want to ensure that TARGET libraries (which we know are built with
   10716 # gcc) are built with "-O2 -g", so include those options when setting
   10717 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
   10718 if test "x$CFLAGS_FOR_TARGET" = x; then
   10719   if test "x${is_cross_compiler}" = xyes; then
   10720     CFLAGS_FOR_TARGET="-g -O2"
   10721   else
   10722     CFLAGS_FOR_TARGET=$CFLAGS
   10723     case " $CFLAGS " in
   10724       *" -O2 "*) ;;
   10725       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
   10726     esac
   10727     case " $CFLAGS " in
   10728       *" -g "* | *" -g3 "*) ;;
   10729       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
   10730     esac
   10731   fi
   10732 fi
   10733 
   10734 
   10735 if test "x$CXXFLAGS_FOR_TARGET" = x; then
   10736   if test "x${is_cross_compiler}" = xyes; then
   10737     CXXFLAGS_FOR_TARGET="-g -O2"
   10738   else
   10739     CXXFLAGS_FOR_TARGET=$CXXFLAGS
   10740     case " $CXXFLAGS " in
   10741       *" -O2 "*) ;;
   10742       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
   10743     esac
   10744     case " $CXXFLAGS " in
   10745       *" -g "* | *" -g3 "*) ;;
   10746       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
   10747     esac
   10748   fi
   10749 fi
   10750 
   10751 
   10752 
   10753 
   10754 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
   10755 # the named directory are copied to $(tooldir)/sys-include.
   10756 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
   10757   if test x${is_cross_compiler} = xno ; then
   10758     echo 1>&2 '***' --with-headers is only supported when cross compiling
   10759     exit 1
   10760   fi
   10761   if test x"${with_headers}" != xyes ; then
   10762     x=${gcc_cv_tool_prefix}
   10763     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
   10764   fi
   10765 fi
   10766 
   10767 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
   10768 # the name directories are copied to $(tooldir)/lib.  Multiple directories
   10769 # are permitted.
   10770 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
   10771   if test x${is_cross_compiler} = xno ; then
   10772     echo 1>&2 '***' --with-libs is only supported when cross compiling
   10773     exit 1
   10774   fi
   10775   if test x"${with_libs}" != xyes ; then
   10776     # Copy the libraries in reverse order, so that files in the first named
   10777     # library override files in subsequent libraries.
   10778     x=${gcc_cv_tool_prefix}
   10779     for l in ${with_libs}; do
   10780       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
   10781     done
   10782   fi
   10783 fi
   10784 
   10785 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
   10786 #
   10787 # This is done by determining whether or not the appropriate directory
   10788 # is available, and by checking whether or not specific configurations
   10789 # have requested that this magic not happen.
   10790 #
   10791 # The command line options always override the explicit settings in
   10792 # configure.ac, and the settings in configure.ac override this magic.
   10793 #
   10794 # If the default for a toolchain is to use GNU as and ld, and you don't
   10795 # want to do that, then you should use the --without-gnu-as and
   10796 # --without-gnu-ld options for the configure script.  Similarly, if
   10797 # the default is to use the included zlib and you don't want to do that,
   10798 # you should use the --with-system-zlib option for the configure script.
   10799 
   10800 if test x${use_gnu_as} = x &&
   10801    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
   10802   with_gnu_as=yes
   10803   extra_host_args="$extra_host_args --with-gnu-as"
   10804 fi
   10805 
   10806 if test x${use_gnu_ld} = x &&
   10807    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
   10808   with_gnu_ld=yes
   10809   extra_host_args="$extra_host_args --with-gnu-ld"
   10810 fi
   10811 
   10812 if test x${use_included_zlib} = x &&
   10813    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
   10814   :
   10815 else
   10816   with_system_zlib=yes
   10817   extra_host_args="$extra_host_args --with-system-zlib"
   10818 fi
   10819 
   10820 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
   10821 # can detect this case.
   10822 
   10823 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
   10824   with_newlib=yes
   10825   extra_host_args="$extra_host_args --with-newlib"
   10826 fi
   10827 
   10828 # Handle ${copy_dirs}
   10829 set fnord ${copy_dirs}
   10830 shift
   10831 while test $# != 0 ; do
   10832   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
   10833     :
   10834   else
   10835     echo Copying $1 to $2
   10836 
   10837     # Use the install script to create the directory and all required
   10838     # parent directories.
   10839     if test -d $2 ; then
   10840       :
   10841     else
   10842       echo >config.temp
   10843       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
   10844     fi
   10845 
   10846     # Copy the directory, assuming we have tar.
   10847     # FIXME: Should we use B in the second tar?  Not all systems support it.
   10848     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
   10849 
   10850     # It is the responsibility of the user to correctly adjust all
   10851     # symlinks.  If somebody can figure out how to handle them correctly
   10852     # here, feel free to add the code.
   10853 
   10854     echo $1 > $2/COPIED
   10855   fi
   10856   shift; shift
   10857 done
   10858 
   10859 # Determine a target-dependent exec_prefix that the installed
   10860 # gcc will search in.  Keep this list sorted by triplet, with
   10861 # the *-*-osname triplets last.
   10862 md_exec_prefix=
   10863 case "${target}" in
   10864   i[34567]86-pc-msdosdjgpp*)
   10865     md_exec_prefix=/dev/env/DJDIR/bin
   10866     ;;
   10867   *-*-hpux* | \
   10868   *-*-nto-qnx* | \
   10869   *-*-solaris2*)
   10870     md_exec_prefix=/usr/ccs/bin
   10871     ;;
   10872 esac
   10873 
   10874 extra_arflags_for_target=
   10875 extra_nmflags_for_target=
   10876 extra_ranlibflags_for_target=
   10877 target_makefile_frag=/dev/null
   10878 case "${target}" in
   10879   spu-*-*)
   10880     target_makefile_frag="config/mt-spu"
   10881     ;;
   10882   loongarch*-*linux* | loongarch*-*gnu*)
   10883     target_makefile_frag="config/mt-loongarch-gnu"
   10884     ;;
   10885   loongarch*-*elf*)
   10886     target_makefile_frag="config/mt-loongarch-elf"
   10887     ;;
   10888   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
   10889     target_makefile_frag="config/mt-sde"
   10890     ;;
   10891   mipsisa*-*-elfoabi*)
   10892     target_makefile_frag="config/mt-mips-elfoabi"
   10893     ;;
   10894   mips*-*-*linux* | mips*-*-gnu*)
   10895     target_makefile_frag="config/mt-mips-gnu"
   10896     ;;
   10897   *-*-linux-android*)
   10898     target_makefile_frag="config/mt-android"
   10899     ;;
   10900   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
   10901     target_makefile_frag="config/mt-gnu"
   10902     ;;
   10903   *-*-aix4.[3456789]* | *-*-aix[56789].*)
   10904     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
   10905     # commands to handle both 32-bit and 64-bit objects.  These flags are
   10906     # harmless if we're using GNU nm or ar.
   10907     extra_arflags_for_target=" -X32_64"
   10908     extra_nmflags_for_target=" -B -X32_64"
   10909     ;;
   10910 esac
   10911 
   10912 alphaieee_frag=/dev/null
   10913 case $target in
   10914   alpha*-*-*)
   10915     # This just makes sure to use the -mieee option to build target libs.
   10916     # This should probably be set individually by each library.
   10917     alphaieee_frag="config/mt-alphaieee"
   10918     ;;
   10919 esac
   10920 
   10921 # If --enable-target-optspace always use -Os instead of -O2 to build
   10922 # the target libraries, similarly if it is not specified, use -Os
   10923 # on selected platforms.
   10924 ospace_frag=/dev/null
   10925 case "${enable_target_optspace}:${target}" in
   10926   yes:*)
   10927     ospace_frag="config/mt-ospace"
   10928     ;;
   10929   :d30v-*)
   10930     ospace_frag="config/mt-d30v"
   10931     ;;
   10932   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
   10933     ospace_frag="config/mt-ospace"
   10934     ;;
   10935   no:* | :*)
   10936     ;;
   10937   *)
   10938     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
   10939     ;;
   10940 esac
   10941 
   10942 # Some systems (e.g., one of the i386-aix systems the gas testers are
   10943 # using) don't handle "\$" correctly, so don't use it here.
   10944 tooldir='${exec_prefix}'/${target_noncanonical}
   10945 build_tooldir=${tooldir}
   10946 
   10947 # Create a .gdbinit file which runs the one in srcdir
   10948 # and tells GDB to look there for source files.
   10949 
   10950 if test -r ${srcdir}/.gdbinit ; then
   10951   case ${srcdir} in
   10952     .) ;;
   10953     *) cat > ./.gdbinit <<EOF
   10954 # ${NO_EDIT}
   10955 dir ${srcdir}
   10956 dir .
   10957 source ${srcdir}/.gdbinit
   10958 EOF
   10959     ;;
   10960   esac
   10961 fi
   10962 
   10963 # Make sure that the compiler is able to generate an executable.  If it
   10964 # can't, we are probably in trouble.  We don't care whether we can run the
   10965 # executable--we might be using a cross compiler--we only care whether it
   10966 # can be created.  At this point the main configure script has set CC.
   10967 we_are_ok=no
   10968 echo "int main () { return 0; }" > conftest.c
   10969 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
   10970 if test $? = 0 ; then
   10971   if test -s conftest || test -s conftest.exe ; then
   10972     we_are_ok=yes
   10973   fi
   10974 fi
   10975 case $we_are_ok in
   10976   no)
   10977     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
   10978     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
   10979     rm -f conftest*
   10980     exit 1
   10981     ;;
   10982 esac
   10983 rm -f conftest*
   10984 
   10985 # Decide which environment variable is used to find dynamic libraries.
   10986 case "${host}" in
   10987   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
   10988   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
   10989   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
   10990   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
   10991 esac
   10992 
   10993 # On systems where the dynamic library environment variable is PATH,
   10994 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
   10995 # built executables to PATH.
   10996 if test "$RPATH_ENVVAR" = PATH; then
   10997   GCC_SHLIB_SUBDIR=/shlib
   10998 else
   10999   GCC_SHLIB_SUBDIR=
   11000 fi
   11001 
   11002 # Adjust the toplevel makefile according to whether bootstrap was selected.
   11003 case $enable_bootstrap in
   11004   yes)
   11005     bootstrap_suffix=bootstrap
   11006     BUILD_CONFIG=bootstrap-debug
   11007     ;;
   11008   no)
   11009     bootstrap_suffix=no-bootstrap
   11010     BUILD_CONFIG=
   11011     ;;
   11012 esac
   11013 
   11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
   11015 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
   11016 
   11017 
   11018 # Check whether --with-build-config was given.
   11019 if test "${with_build_config+set}" = set; then :
   11020   withval=$with_build_config; case $with_build_config in
   11021    yes) with_build_config= ;;
   11022    no) with_build_config= BUILD_CONFIG= ;;
   11023    esac
   11024 fi
   11025 
   11026 
   11027 if test "x${with_build_config}" != x; then
   11028   BUILD_CONFIG=$with_build_config
   11029 else
   11030   case $BUILD_CONFIG in
   11031   bootstrap-debug)
   11032     if echo "int f (void) { return 0; }" > conftest.c &&
   11033        ${CC} -c conftest.c &&
   11034        mv conftest.o conftest.o.g0 &&
   11035        ${CC} -c -g conftest.c &&
   11036        mv conftest.o conftest.o.g &&
   11037        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
   11038       :
   11039     else
   11040       BUILD_CONFIG=
   11041     fi
   11042     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
   11043     ;;
   11044   esac
   11045 fi
   11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
   11047 $as_echo "$BUILD_CONFIG" >&6; }
   11048 
   11049 
   11050 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
   11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
   11052 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
   11053 # Check whether --enable-vtable-verify was given.
   11054 if test "${enable_vtable_verify+set}" = set; then :
   11055   enableval=$enable_vtable_verify; case "$enableval" in
   11056  yes) enable_vtable_verify=yes ;;
   11057  no)  enable_vtable_verify=no ;;
   11058  *)   enable_vtable_verify=no;;
   11059  esac
   11060 else
   11061   enable_vtable_verify=no
   11062 fi
   11063 
   11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
   11065 $as_echo "$enable_vtable_verify" >&6; }
   11066 
   11067 # Record target_configdirs and the configure arguments for target and
   11068 # build configuration in Makefile.
   11069 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
   11070 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
   11071 bootstrap_fixincludes=no
   11072 
   11073 # If we are building libgomp, bootstrap it.
   11074 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
   11075   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
   11076 fi
   11077 
   11078 # If we are building libatomic, bootstrap it.
   11079 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1 ; then
   11080   bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
   11081 fi
   11082 
   11083 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
   11084 # or bootstrap-ubsan, bootstrap it.
   11085 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
   11086   case "$BUILD_CONFIG" in
   11087     *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
   11088       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
   11089       bootstrap_fixincludes=yes
   11090       ;;
   11091   esac
   11092 fi
   11093 
   11094 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
   11095 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
   11096    test "$enable_vtable_verify" != no; then
   11097   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
   11098 fi
   11099 
   11100 # If we are building libatomic and the list of enabled languages includes the
   11101 # D frontend, bootstrap it.
   11102 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
   11103   case ,${enable_languages}, in
   11104     *,d,*)
   11105       bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
   11106       ;;
   11107   esac
   11108 fi
   11109 
   11110 # Determine whether gdb needs tk/tcl or not.
   11111 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
   11112 # and in that case we want gdb to be built without tk.  Ugh!
   11113 # In fact I believe gdb is the *only* package directly dependent on tk,
   11114 # so we should be able to put the 'maybe's in unconditionally and
   11115 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
   11116 # 100% sure that that's safe though.
   11117 
   11118 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
   11119 case "$enable_gdbtk" in
   11120   no)
   11121     GDB_TK="" ;;
   11122   yes)
   11123     GDB_TK="${gdb_tk}" ;;
   11124   *)
   11125     # Only add the dependency on gdbtk when GDBtk is part of the gdb
   11126     # distro.  Eventually someone will fix this and move Insight, nee
   11127     # gdbtk to a separate directory.
   11128     if test -d ${srcdir}/gdb/gdbtk ; then
   11129       GDB_TK="${gdb_tk}"
   11130     else
   11131       GDB_TK=""
   11132     fi
   11133     ;;
   11134 esac
   11135 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
   11136 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
   11137 
   11138 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
   11139 # else does, only include them if one of these is built.  The Makefile
   11140 # provides the ordering, so it's enough here to add to the list.
   11141 case " ${configdirs} " in
   11142   *\ gdb\ *)
   11143     configdirs="${configdirs} gnulib gdbsupport"
   11144     ;;
   11145   *\ gdbserver\ *)
   11146     configdirs="${configdirs} gnulib gdbsupport"
   11147     ;;
   11148   *\ sim\ *)
   11149     configdirs="${configdirs} gnulib"
   11150     ;;
   11151 esac
   11152 
   11153 # Strip out unwanted targets.
   11154 
   11155 # While at that, we remove Makefiles if we were started for recursive
   11156 # configuration, so that the top-level Makefile reconfigures them,
   11157 # like we used to do when configure itself was recursive.
   11158 
   11159 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
   11160 # but now we're fixing up the Makefile ourselves with the additional
   11161 # commands passed to AC_CONFIG_FILES.  Use separate variables
   11162 # extrasub-{build,host,target} not because there is any reason to split
   11163 # the substitutions up that way, but only to remain below the limit of
   11164 # 99 commands in a script, for HP-UX sed.
   11165 
   11166 # Do not nest @if/@endif or @unless/@endunless pairs, because
   11167 # configure will not warn you at all.
   11168 
   11169 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
   11170   yes:yes:*\ gold\ *:*,c++,*) ;;
   11171   yes:yes:*\ gold\ *:*)
   11172     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
   11173     ;;
   11174 esac
   11175 
   11176 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
   11177 # Note C++ is always enabled for stage1 now.
   11178 case "$enable_bootstrap:${noconfigdirs}" in
   11179   yes:*target-libstdc++-v3*)
   11180     as_fn_error $? "bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
   11181     ;;
   11182 esac
   11183 
   11184 
   11185 extrasub_build=
   11186 for module in ${build_configdirs} ; do
   11187   if test -z "${no_recursion}" \
   11188      && test -f ${build_subdir}/${module}/Makefile; then
   11189     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
   11190     rm -f ${build_subdir}/${module}/Makefile
   11191   fi
   11192   extrasub_build="$extrasub_build
   11193 /^@if build-$module\$/d
   11194 /^@endif build-$module\$/d
   11195 /^@unless build-$module\$/,/^@endunless build-$module\$/d
   11196 /^@if build-$module-$bootstrap_suffix\$/d
   11197 /^@endif build-$module-$bootstrap_suffix\$/d
   11198 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
   11199 done
   11200 extrasub_host=
   11201 for module in ${configdirs} ; do
   11202   if test -z "${no_recursion}"; then
   11203     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
   11204       if test -f ${file}; then
   11205 	echo 1>&2 "*** removing ${file} to force reconfigure"
   11206 	rm -f ${file}
   11207       fi
   11208     done
   11209   fi
   11210   case ${module},${bootstrap_fixincludes} in
   11211     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
   11212     *) host_bootstrap_suffix=$bootstrap_suffix ;;
   11213   esac
   11214   extrasub_host="$extrasub_host
   11215 /^@if $module\$/d
   11216 /^@endif $module\$/d
   11217 /^@unless $module\$/,/^@endunless $module\$/d
   11218 /^@if $module-$host_bootstrap_suffix\$/d
   11219 /^@endif $module-$host_bootstrap_suffix\$/d
   11220 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
   11221 done
   11222 extrasub_target=
   11223 for module in ${target_configdirs} ; do
   11224   if test -z "${no_recursion}" \
   11225      && test -f ${target_subdir}/${module}/Makefile; then
   11226     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
   11227     rm -f ${target_subdir}/${module}/Makefile
   11228   fi
   11229 
   11230   # We only bootstrap target libraries listed in bootstrap_target_libs.
   11231   case $bootstrap_target_libs in
   11232     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
   11233     *) target_bootstrap_suffix=no-bootstrap ;;
   11234   esac
   11235 
   11236   extrasub_target="$extrasub_target
   11237 /^@if target-$module\$/d
   11238 /^@endif target-$module\$/d
   11239 /^@unless target-$module\$/,/^@endunless target-$module\$/d
   11240 /^@if target-$module-$target_bootstrap_suffix\$/d
   11241 /^@endif target-$module-$target_bootstrap_suffix\$/d
   11242 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
   11243 done
   11244 
   11245 # Do the final fixup along with target modules.
   11246 extrasub_target="$extrasub_target
   11247 /^@if /,/^@endif /d
   11248 /^@unless /d
   11249 /^@endunless /d"
   11250 
   11251 if test "$enable_pgo_build" != "no"; then
   11252   extrasub_build="$extrasub_build
   11253 /^@if pgo-build\$/d
   11254 /^@endif pgo-build\$/d"
   11255 fi
   11256 
   11257 # Create the serialization dependencies.  This uses a temporary file.
   11258 
   11259 # Check whether --enable-serial-configure was given.
   11260 if test "${enable_serial_configure+set}" = set; then :
   11261   enableval=$enable_serial_configure;
   11262 fi
   11263 
   11264 
   11265 case ${enable_serial_configure} in
   11266   yes)
   11267     enable_serial_build_configure=yes
   11268     enable_serial_host_configure=yes
   11269     enable_serial_target_configure=yes
   11270     ;;
   11271 esac
   11272 
   11273 # These force 'configure's to be done one at a time, to avoid problems
   11274 # with contention over a shared config.cache.
   11275 rm -f serdep.tmp
   11276 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
   11277 echo '# serdep.tmp' > serdep.tmp
   11278 fi
   11279 olditem=
   11280 test "x${enable_serial_build_configure}" = xyes &&
   11281 for item in ${build_configdirs} ; do
   11282   case ${olditem} in
   11283     "") ;;
   11284     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
   11285   esac
   11286   olditem=${item}
   11287 done
   11288 olditem=
   11289 test "x${enable_serial_host_configure}" = xyes &&
   11290 for item in ${configdirs} ; do
   11291   case ${olditem} in
   11292     "") ;;
   11293     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
   11294   esac
   11295   olditem=${item}
   11296 done
   11297 olditem=
   11298 test "x${enable_serial_target_configure}" = xyes &&
   11299 for item in ${target_configdirs} ; do
   11300   case ${olditem} in
   11301     "") ;;
   11302     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
   11303   esac
   11304   olditem=${item}
   11305 done
   11306 serialization_dependencies=serdep.tmp
   11307 
   11308 
   11309 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
   11310 # target, nonopt, and variable assignments.  These are the ones we
   11311 # might not want to pass down to subconfigures.  The exception being
   11312 # --cache-file=/dev/null, which is used to turn off the use of cache
   11313 # files altogether, and which should be passed on to subconfigures.
   11314 # Also strip program-prefix, program-suffix, and program-transform-name,
   11315 # so that we can pass down a consistent program-transform-name.
   11316 hbaseargs=
   11317 bbaseargs=
   11318 tbaseargs=
   11319 keep_next=no
   11320 skip_next=no
   11321 eval "set -- $ac_configure_args"
   11322 for ac_arg
   11323 do
   11324   if test X"$skip_next" = X"yes"; then
   11325     skip_next=no
   11326     continue
   11327   fi
   11328   if test X"$keep_next" = X"yes"; then
   11329     case $ac_arg in
   11330       *\'*)
   11331 	ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   11332     esac
   11333     hbaseargs="$hbaseargs '$ac_arg'"
   11334     bbaseargs="$bbaseargs '$ac_arg'"
   11335     tbaseargs="$tbaseargs '$ac_arg'"
   11336     keep_next=no
   11337     continue
   11338   fi
   11339 
   11340   # Handle separated arguments.  Based on the logic generated by
   11341   # autoconf 2.59.
   11342   case $ac_arg in
   11343     *=* | --config-cache | -C | -disable-* | --disable-* \
   11344       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   11345       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   11346       | -with-* | --with-* | -without-* | --without-* | --x)
   11347       separate_arg=no
   11348       ;;
   11349     -*)
   11350       separate_arg=yes
   11351       ;;
   11352     *)
   11353       separate_arg=no
   11354       ;;
   11355   esac
   11356 
   11357   skip_targ=no
   11358   skip_barg=no
   11359   case $ac_arg in
   11360 
   11361   --with-* | --without-*)
   11362     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
   11363 
   11364     case $libopt in
   11365     *[-_]include)
   11366       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
   11367       ;;
   11368     *[-_]lib)
   11369       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
   11370       ;;
   11371     *[-_]prefix)
   11372       lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
   11373       ;;
   11374     *[-_]type)
   11375       lib=`echo "$libopt" | sed 's,[-_]type$,,'`
   11376       ;;
   11377     *)
   11378       lib=$libopt
   11379       ;;
   11380     esac
   11381 
   11382 
   11383     case $lib in
   11384     mpc | mpfr | gmp | isl)
   11385       # If we're processing --with-$lib, --with-$lib-include or
   11386       # --with-$lib-lib, for one of the libs above, and target is
   11387       # different from host, don't pass the current argument to any
   11388       # target library's configure.
   11389       if test x$is_cross_compiler = xyes; then
   11390         skip_targ=yes
   11391       fi
   11392       ;;
   11393     libintl | libiconv)
   11394       # We don't want libintl (and co.) in anything but the host arguments.
   11395       skip_targ=yes
   11396       skip_barg=yes
   11397       ;;
   11398     esac
   11399     ;;
   11400   esac
   11401 
   11402   case "$ac_arg" in
   11403     --cache-file=/dev/null | \
   11404     -cache-file=/dev/null )
   11405       # Handled here to avoid the test to skip args below.
   11406       hbaseargs="$hbaseargs '$ac_arg'"
   11407       bbaseargs="$bbaseargs '$ac_arg'"
   11408       tbaseargs="$tbaseargs '$ac_arg'"
   11409       # Assert: $separate_arg should always be no.
   11410       keep_next=$separate_arg
   11411       ;;
   11412     --no*)
   11413       continue
   11414       ;;
   11415     --c* | \
   11416     --sr* | \
   11417     --ho* | \
   11418     --bu* | \
   11419     --t* | \
   11420     --program-* | \
   11421     -cache_file* | \
   11422     -srcdir* | \
   11423     -host* | \
   11424     -build* | \
   11425     -target* | \
   11426     -program-prefix* | \
   11427     -program-suffix* | \
   11428     -program-transform-name* )
   11429       skip_next=$separate_arg
   11430       continue
   11431       ;;
   11432     -*)
   11433       # An option.  Add it.
   11434       case $ac_arg in
   11435 	*\'*)
   11436 	  ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   11437       esac
   11438       hbaseargs="$hbaseargs '$ac_arg'"
   11439       if test X"$skip_barg" = Xno; then
   11440 	bbaseargs="$bbaseargs '$ac_arg'"
   11441       fi
   11442       if test X"$skip_targ" = Xno; then
   11443         tbaseargs="$tbaseargs '$ac_arg'"
   11444       fi
   11445       keep_next=$separate_arg
   11446       ;;
   11447     *)
   11448       # Either a variable assignment, or a nonopt (triplet).  Don't
   11449       # pass it down; let the Makefile handle this.
   11450       continue
   11451       ;;
   11452   esac
   11453 done
   11454 # Remove the initial space we just introduced and, as these will be
   11455 # expanded by make, quote '$'.
   11456 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
   11457 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
   11458 
   11459 # Add in --program-transform-name, after --program-prefix and
   11460 # --program-suffix have been applied to it.  Autoconf has already
   11461 # doubled dollar signs and backslashes in program_transform_name; we want
   11462 # the backslashes un-doubled, and then the entire thing wrapped in single
   11463 # quotes, because this will be expanded first by make and then by the shell.
   11464 # Also, because we want to override the logic in subdir configure scripts to
   11465 # choose program_transform_name, replace any s,x,x, with s,y,y,.
   11466 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
   11467 ${program_transform_name}
   11468 EOF_SED
   11469 gcc_transform_name=`cat conftestsed.out`
   11470 rm -f conftestsed.out
   11471 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
   11472 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
   11473 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
   11474 if test "$silent" = yes; then
   11475   bbaseargs="$bbaseargs --silent"
   11476   hbaseargs="$hbaseargs --silent"
   11477   tbaseargs="$tbaseargs --silent"
   11478 fi
   11479 
   11480 bbaseargs="$bbaseargs --disable-option-checking"
   11481 hbaseargs="$hbaseargs --disable-option-checking"
   11482 tbaseargs="$tbaseargs --disable-option-checking"
   11483 
   11484 if test "$enable_year2038" = no; then
   11485   bbaseargs="$bbaseargs --disable-year2038"
   11486   hbaseargs="$hbaseargs --disable-year2038"
   11487   tbaseargs="$tbaseargs --disable-year2038"
   11488 fi
   11489 
   11490 # Record and document user additions to sub configure arguments.
   11491 
   11492 
   11493 
   11494 
   11495 # For the build-side libraries, we just need to pretend we're native,
   11496 # and not use the same cache file.  Multilibs are neither needed nor
   11497 # desired.  We can't even use the same cache file for all build-side
   11498 # libraries, as they're compiled differently; some with C, some with
   11499 # C++ or with different feature-enabling options.
   11500 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
   11501 
   11502 # For host modules, accept cache file option, or specification as blank.
   11503 case "${cache_file}" in
   11504 "") # empty
   11505   cache_file_option="" ;;
   11506 /* | [A-Za-z]:[\\/]* ) # absolute path
   11507   cache_file_option="--cache-file=${cache_file}" ;;
   11508 *) # relative path
   11509   cache_file_option="--cache-file=../${cache_file}" ;;
   11510 esac
   11511 
   11512 # Host dirs don't like to share a cache file either, horribly enough.
   11513 # This seems to be due to autoconf 2.5x stupidity.
   11514 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
   11515 
   11516 target_configargs="$target_configargs ${tbaseargs}"
   11517 
   11518 # Passing a --with-cross-host argument lets the target libraries know
   11519 # whether they are being built with a cross-compiler or being built
   11520 # native.  However, it would be better to use other mechanisms to make the
   11521 # sorts of decisions they want to make on this basis.  Please consider
   11522 # this option to be deprecated.  FIXME.
   11523 if test x${is_cross_compiler} = xyes ; then
   11524   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
   11525 fi
   11526 
   11527 # Special user-friendly check for native x86_64-linux build, if
   11528 # multilib is not explicitly enabled.
   11529 case "$target:$have_compiler:$host:$target:$enable_multilib" in
   11530   x86_64-*linux*:yes:$build:$build:)
   11531     # Make sure we have a development environment that handles 32-bit
   11532     dev64=no
   11533     echo "int main () { return 0; }" > conftest.c
   11534     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
   11535     if test $? = 0 ; then
   11536       if test -s conftest || test -s conftest.exe ; then
   11537 	dev64=yes
   11538       fi
   11539     fi
   11540     rm -f conftest*
   11541     if test x${dev64} != xyes ; then
   11542       as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
   11543     fi
   11544     ;;
   11545 esac
   11546 
   11547 # Default to --enable-multilib.
   11548 if test x${enable_multilib} = x ; then
   11549   target_configargs="--enable-multilib ${target_configargs}"
   11550 fi
   11551 
   11552 # Pass --with-newlib if appropriate.  Note that target_configdirs has
   11553 # changed from the earlier setting of with_newlib.
   11554 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
   11555   target_configargs="--with-newlib ${target_configargs}"
   11556 fi
   11557 
   11558 # Different target subdirs use different values of certain variables
   11559 # (notably CXX).  Worse, multilibs use *lots* of different values.
   11560 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
   11561 # it doesn't automatically accept command-line overrides of them.
   11562 # This means it's not safe for target subdirs to share a cache file,
   11563 # which is disgusting, but there you have it.  Hopefully this can be
   11564 # fixed in future.  It's still worthwhile to use a cache file for each
   11565 # directory.  I think.
   11566 
   11567 # Pass the appropriate --build, --host, --target and --cache-file arguments.
   11568 # We need to pass --target, as newer autoconf's requires consistency
   11569 # for target_alias and gcc doesn't manage it consistently.
   11570 target_configargs="--cache-file=./config.cache ${target_configargs}"
   11571 
   11572 FLAGS_FOR_TARGET=
   11573 case " $target_configdirs " in
   11574  *" newlib "*)
   11575   case " $target_configargs " in
   11576   *" --with-newlib "*)
   11577    case "$target" in
   11578     *-cygwin*)
   11579       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
   11580       ;;
   11581    esac
   11582 
   11583    # If we're not building GCC, don't discard standard headers.
   11584    if test -d ${srcdir}/gcc; then
   11585      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
   11586 
   11587      if test "${build}" != "${host}"; then
   11588        # On Canadian crosses, CC_FOR_TARGET will have already been set
   11589        # by `configure', so we won't have an opportunity to add -Bgcc/
   11590        # to it.  This is right: we don't want to search that directory
   11591        # for binaries, but we want the header files in there, so add
   11592        # them explicitly.
   11593        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
   11594 
   11595        # Someone might think of using the pre-installed headers on
   11596        # Canadian crosses, in case the installed compiler is not fully
   11597        # compatible with the compiler being built.  In this case, it
   11598        # would be better to flag an error than risking having
   11599        # incompatible object files being constructed.  We can't
   11600        # guarantee that an error will be flagged, but let's hope the
   11601        # compiler will do it, when presented with incompatible header
   11602        # files.
   11603      fi
   11604    fi
   11605 
   11606    case "${target}-${is_cross_compiler}" in
   11607    i[3456789]86-*-linux*-no)
   11608       # Here host == target, so we don't need to build gcc,
   11609       # so we don't want to discard standard headers.
   11610       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
   11611       ;;
   11612    *)
   11613       # If we're building newlib, use its generic headers last, but search
   11614       # for any libc-related directories first (so make it the last -B
   11615       # switch).
   11616       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
   11617 
   11618       # If we're building libgloss, find the startup file, simulator library
   11619       # and linker script.
   11620       case " $target_configdirs " in
   11621 	*" libgloss "*)
   11622 	# Look for startup file, simulator library and maybe linker script.
   11623 	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
   11624 	# Look for libnosys.a in case the target needs it.
   11625 	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
   11626 	# Most targets have the linker script in the source directory.
   11627 	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
   11628 	;;
   11629       esac
   11630       ;;
   11631    esac
   11632    ;;
   11633   esac
   11634   ;;
   11635 esac
   11636 
   11637 case "$target" in
   11638   x86_64-*mingw* | *-w64-mingw*)
   11639   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
   11640   # however, use a symlink named 'mingw' in ${prefix} .
   11641     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
   11642     ;;
   11643   *-mingw*)
   11644   # MinGW can't be handled as Cygwin above since it does not use newlib.
   11645     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'
   11646     ;;
   11647 esac
   11648 
   11649 # Allow the user to override the flags for
   11650 # our build compiler if desired.
   11651 if test x"${build}" = x"${host}" ; then
   11652   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
   11653   CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
   11654   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
   11655   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
   11656 fi
   11657 
   11658 if test -d ${srcdir}/gcc; then
   11659   # On Canadian crosses, we'll be searching the right directories for the
   11660   # previously-installed cross compiler, so don't bother to add flags for
   11661   # executable directories within the install tree of the compiler being built;
   11662   # programs in there won't even run.
   11663   if test "${build}" = "${host}"; then
   11664     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/'
   11665   fi
   11666 
   11667   # Search for pre-installed headers if nothing else fits.
   11668   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
   11669 fi
   11670 
   11671 if test "x${use_gnu_ld}" = x &&
   11672    echo " ${configdirs} " | grep " ld " > /dev/null ; then
   11673   # Arrange for us to find uninstalled linker scripts.
   11674   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
   11675 fi
   11676 
   11677 # Search for other target-specific linker scripts and such.
   11678 case "${target}" in
   11679   mep*)
   11680     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
   11681     ;;
   11682   # The VxWorks support for shared libraries is getting in
   11683   # incrementally.  Make sure it doesn't get activated implicitly:
   11684   *vxworks*)
   11685     if test "${enable_shared-unset}" = unset ; then
   11686       enable_shared=no
   11687       # So the build of libraries knows ...
   11688       target_configargs="${target_configargs} --disable-shared"
   11689       # So gcc knows ...
   11690       host_configargs="${host_configargs} --disable-shared"
   11691     fi
   11692     ;;
   11693 esac
   11694 
   11695 # Makefile fragments.
   11696 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
   11697 do
   11698   eval fragval=\$$frag
   11699   if test $fragval != /dev/null; then
   11700     eval $frag=${srcdir}/$fragval
   11701   fi
   11702 done
   11703 
   11704 
   11705 
   11706 
   11707 
   11708 # Miscellanea: directories, flags, etc.
   11709 
   11710 
   11711 
   11712 
   11713 
   11714 
   11715 
   11716 
   11717 # Build module lists & subconfigure args.
   11718 
   11719 
   11720 
   11721 # Host module lists & subconfigure args.
   11722 
   11723 
   11724 
   11725 
   11726 # Target module lists & subconfigure args.
   11727 
   11728 
   11729 
   11730 # Build tools.
   11731 
   11732 
   11733 
   11734 
   11735 
   11736 
   11737 
   11738 
   11739 
   11740 
   11741 
   11742 
   11743 
   11744 
   11745 
   11746 
   11747 
   11748 
   11749 
   11750 
   11751 
   11752 # Generate default definitions for YACC, M4, LEX and other programs that run
   11753 # on the build machine.  These are used if the Makefile can't locate these
   11754 # programs in objdir.
   11755 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
   11756 
   11757 for ac_prog in 'bison -y' byacc yacc
   11758 do
   11759   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11760 set dummy $ac_prog; ac_word=$2
   11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11762 $as_echo_n "checking for $ac_word... " >&6; }
   11763 if ${ac_cv_prog_YACC+:} false; then :
   11764   $as_echo_n "(cached) " >&6
   11765 else
   11766   if test -n "$YACC"; then
   11767   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   11768 else
   11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11770 for as_dir in $PATH
   11771 do
   11772   IFS=$as_save_IFS
   11773   test -z "$as_dir" && as_dir=.
   11774     for ac_exec_ext in '' $ac_executable_extensions; do
   11775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11776     ac_cv_prog_YACC="$ac_prog"
   11777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11778     break 2
   11779   fi
   11780 done
   11781   done
   11782 IFS=$as_save_IFS
   11783 
   11784 fi
   11785 fi
   11786 YACC=$ac_cv_prog_YACC
   11787 if test -n "$YACC"; then
   11788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   11789 $as_echo "$YACC" >&6; }
   11790 else
   11791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11792 $as_echo "no" >&6; }
   11793 fi
   11794 
   11795 
   11796   test -n "$YACC" && break
   11797 done
   11798 test -n "$YACC" || YACC="$MISSING bison -y"
   11799 
   11800 case " $build_configdirs " in
   11801   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
   11802 esac
   11803 
   11804 for ac_prog in bison
   11805 do
   11806   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11807 set dummy $ac_prog; ac_word=$2
   11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11809 $as_echo_n "checking for $ac_word... " >&6; }
   11810 if ${ac_cv_prog_BISON+:} false; then :
   11811   $as_echo_n "(cached) " >&6
   11812 else
   11813   if test -n "$BISON"; then
   11814   ac_cv_prog_BISON="$BISON" # Let the user override the test.
   11815 else
   11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11817 for as_dir in $PATH
   11818 do
   11819   IFS=$as_save_IFS
   11820   test -z "$as_dir" && as_dir=.
   11821     for ac_exec_ext in '' $ac_executable_extensions; do
   11822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11823     ac_cv_prog_BISON="$ac_prog"
   11824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11825     break 2
   11826   fi
   11827 done
   11828   done
   11829 IFS=$as_save_IFS
   11830 
   11831 fi
   11832 fi
   11833 BISON=$ac_cv_prog_BISON
   11834 if test -n "$BISON"; then
   11835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
   11836 $as_echo "$BISON" >&6; }
   11837 else
   11838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11839 $as_echo "no" >&6; }
   11840 fi
   11841 
   11842 
   11843   test -n "$BISON" && break
   11844 done
   11845 test -n "$BISON" || BISON="$MISSING bison"
   11846 
   11847 case " $build_configdirs " in
   11848   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
   11849 esac
   11850 
   11851 for ac_prog in gm4 gnum4 m4
   11852 do
   11853   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11854 set dummy $ac_prog; ac_word=$2
   11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11856 $as_echo_n "checking for $ac_word... " >&6; }
   11857 if ${ac_cv_prog_M4+:} false; then :
   11858   $as_echo_n "(cached) " >&6
   11859 else
   11860   if test -n "$M4"; then
   11861   ac_cv_prog_M4="$M4" # Let the user override the test.
   11862 else
   11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11864 for as_dir in $PATH
   11865 do
   11866   IFS=$as_save_IFS
   11867   test -z "$as_dir" && as_dir=.
   11868     for ac_exec_ext in '' $ac_executable_extensions; do
   11869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11870     ac_cv_prog_M4="$ac_prog"
   11871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11872     break 2
   11873   fi
   11874 done
   11875   done
   11876 IFS=$as_save_IFS
   11877 
   11878 fi
   11879 fi
   11880 M4=$ac_cv_prog_M4
   11881 if test -n "$M4"; then
   11882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
   11883 $as_echo "$M4" >&6; }
   11884 else
   11885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11886 $as_echo "no" >&6; }
   11887 fi
   11888 
   11889 
   11890   test -n "$M4" && break
   11891 done
   11892 test -n "$M4" || M4="$MISSING m4"
   11893 
   11894 case " $build_configdirs " in
   11895   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
   11896 esac
   11897 
   11898 for ac_prog in flex lex
   11899 do
   11900   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11901 set dummy $ac_prog; ac_word=$2
   11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11903 $as_echo_n "checking for $ac_word... " >&6; }
   11904 if ${ac_cv_prog_LEX+:} false; then :
   11905   $as_echo_n "(cached) " >&6
   11906 else
   11907   if test -n "$LEX"; then
   11908   ac_cv_prog_LEX="$LEX" # Let the user override the test.
   11909 else
   11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11911 for as_dir in $PATH
   11912 do
   11913   IFS=$as_save_IFS
   11914   test -z "$as_dir" && as_dir=.
   11915     for ac_exec_ext in '' $ac_executable_extensions; do
   11916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11917     ac_cv_prog_LEX="$ac_prog"
   11918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11919     break 2
   11920   fi
   11921 done
   11922   done
   11923 IFS=$as_save_IFS
   11924 
   11925 fi
   11926 fi
   11927 LEX=$ac_cv_prog_LEX
   11928 if test -n "$LEX"; then
   11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
   11930 $as_echo "$LEX" >&6; }
   11931 else
   11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11933 $as_echo "no" >&6; }
   11934 fi
   11935 
   11936 
   11937   test -n "$LEX" && break
   11938 done
   11939 test -n "$LEX" || LEX="$MISSING flex"
   11940 
   11941 case " $build_configdirs " in
   11942   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
   11943   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
   11944 esac
   11945 
   11946 for ac_prog in flex
   11947 do
   11948   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11949 set dummy $ac_prog; ac_word=$2
   11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11951 $as_echo_n "checking for $ac_word... " >&6; }
   11952 if ${ac_cv_prog_FLEX+:} false; then :
   11953   $as_echo_n "(cached) " >&6
   11954 else
   11955   if test -n "$FLEX"; then
   11956   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
   11957 else
   11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11959 for as_dir in $PATH
   11960 do
   11961   IFS=$as_save_IFS
   11962   test -z "$as_dir" && as_dir=.
   11963     for ac_exec_ext in '' $ac_executable_extensions; do
   11964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11965     ac_cv_prog_FLEX="$ac_prog"
   11966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11967     break 2
   11968   fi
   11969 done
   11970   done
   11971 IFS=$as_save_IFS
   11972 
   11973 fi
   11974 fi
   11975 FLEX=$ac_cv_prog_FLEX
   11976 if test -n "$FLEX"; then
   11977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
   11978 $as_echo "$FLEX" >&6; }
   11979 else
   11980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11981 $as_echo "no" >&6; }
   11982 fi
   11983 
   11984 
   11985   test -n "$FLEX" && break
   11986 done
   11987 test -n "$FLEX" || FLEX="$MISSING flex"
   11988 
   11989 case " $build_configdirs " in
   11990   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
   11991 esac
   11992 
   11993 for ac_prog in makeinfo
   11994 do
   11995   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11996 set dummy $ac_prog; ac_word=$2
   11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11998 $as_echo_n "checking for $ac_word... " >&6; }
   11999 if ${ac_cv_prog_MAKEINFO+:} false; then :
   12000   $as_echo_n "(cached) " >&6
   12001 else
   12002   if test -n "$MAKEINFO"; then
   12003   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
   12004 else
   12005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12006 for as_dir in $PATH
   12007 do
   12008   IFS=$as_save_IFS
   12009   test -z "$as_dir" && as_dir=.
   12010     for ac_exec_ext in '' $ac_executable_extensions; do
   12011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12012     ac_cv_prog_MAKEINFO="$ac_prog"
   12013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12014     break 2
   12015   fi
   12016 done
   12017   done
   12018 IFS=$as_save_IFS
   12019 
   12020 fi
   12021 fi
   12022 MAKEINFO=$ac_cv_prog_MAKEINFO
   12023 if test -n "$MAKEINFO"; then
   12024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
   12025 $as_echo "$MAKEINFO" >&6; }
   12026 else
   12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12028 $as_echo "no" >&6; }
   12029 fi
   12030 
   12031 
   12032   test -n "$MAKEINFO" && break
   12033 done
   12034 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
   12035 
   12036 case " $build_configdirs " in
   12037   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
   12038   *)
   12039 
   12040     # For an installed makeinfo, we require it to be from texinfo 4.7 or
   12041     # higher, else we use the "missing" dummy.
   12042     if ${MAKEINFO} --version \
   12043        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
   12044       :
   12045     else
   12046       MAKEINFO="$MISSING makeinfo"
   12047     fi
   12048     ;;
   12049 
   12050 esac
   12051 
   12052 # FIXME: expect and dejagnu may become build tools?
   12053 
   12054 for ac_prog in expect
   12055 do
   12056   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12057 set dummy $ac_prog; ac_word=$2
   12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12059 $as_echo_n "checking for $ac_word... " >&6; }
   12060 if ${ac_cv_prog_EXPECT+:} false; then :
   12061   $as_echo_n "(cached) " >&6
   12062 else
   12063   if test -n "$EXPECT"; then
   12064   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
   12065 else
   12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12067 for as_dir in $PATH
   12068 do
   12069   IFS=$as_save_IFS
   12070   test -z "$as_dir" && as_dir=.
   12071     for ac_exec_ext in '' $ac_executable_extensions; do
   12072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12073     ac_cv_prog_EXPECT="$ac_prog"
   12074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12075     break 2
   12076   fi
   12077 done
   12078   done
   12079 IFS=$as_save_IFS
   12080 
   12081 fi
   12082 fi
   12083 EXPECT=$ac_cv_prog_EXPECT
   12084 if test -n "$EXPECT"; then
   12085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
   12086 $as_echo "$EXPECT" >&6; }
   12087 else
   12088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12089 $as_echo "no" >&6; }
   12090 fi
   12091 
   12092 
   12093   test -n "$EXPECT" && break
   12094 done
   12095 test -n "$EXPECT" || EXPECT="expect"
   12096 
   12097 case " $configdirs " in
   12098   *" expect "*)
   12099     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
   12100     ;;
   12101 esac
   12102 
   12103 for ac_prog in runtest
   12104 do
   12105   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12106 set dummy $ac_prog; ac_word=$2
   12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12108 $as_echo_n "checking for $ac_word... " >&6; }
   12109 if ${ac_cv_prog_RUNTEST+:} false; then :
   12110   $as_echo_n "(cached) " >&6
   12111 else
   12112   if test -n "$RUNTEST"; then
   12113   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
   12114 else
   12115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12116 for as_dir in $PATH
   12117 do
   12118   IFS=$as_save_IFS
   12119   test -z "$as_dir" && as_dir=.
   12120     for ac_exec_ext in '' $ac_executable_extensions; do
   12121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12122     ac_cv_prog_RUNTEST="$ac_prog"
   12123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12124     break 2
   12125   fi
   12126 done
   12127   done
   12128 IFS=$as_save_IFS
   12129 
   12130 fi
   12131 fi
   12132 RUNTEST=$ac_cv_prog_RUNTEST
   12133 if test -n "$RUNTEST"; then
   12134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
   12135 $as_echo "$RUNTEST" >&6; }
   12136 else
   12137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12138 $as_echo "no" >&6; }
   12139 fi
   12140 
   12141 
   12142   test -n "$RUNTEST" && break
   12143 done
   12144 test -n "$RUNTEST" || RUNTEST="runtest"
   12145 
   12146 case " $configdirs " in
   12147   *" dejagnu "*)
   12148     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
   12149     ;;
   12150 esac
   12151 
   12152 
   12153 # Host tools.
   12154 ncn_tool_prefix=
   12155 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
   12156 ncn_target_tool_prefix=
   12157 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
   12158 
   12159 
   12160 
   12161 if test -n "$AR"; then
   12162   ac_cv_prog_AR=$AR
   12163 elif test -n "$ac_cv_prog_AR"; then
   12164   AR=$ac_cv_prog_AR
   12165 fi
   12166 
   12167 if test -n "$ac_cv_prog_AR"; then
   12168   for ncn_progname in ar; do
   12169     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12170 set dummy ${ncn_progname}; ac_word=$2
   12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12172 $as_echo_n "checking for $ac_word... " >&6; }
   12173 if ${ac_cv_prog_AR+:} false; then :
   12174   $as_echo_n "(cached) " >&6
   12175 else
   12176   if test -n "$AR"; then
   12177   ac_cv_prog_AR="$AR" # Let the user override the test.
   12178 else
   12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12180 for as_dir in $PATH
   12181 do
   12182   IFS=$as_save_IFS
   12183   test -z "$as_dir" && as_dir=.
   12184     for ac_exec_ext in '' $ac_executable_extensions; do
   12185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12186     ac_cv_prog_AR="${ncn_progname}"
   12187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12188     break 2
   12189   fi
   12190 done
   12191   done
   12192 IFS=$as_save_IFS
   12193 
   12194 fi
   12195 fi
   12196 AR=$ac_cv_prog_AR
   12197 if test -n "$AR"; then
   12198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12199 $as_echo "$AR" >&6; }
   12200 else
   12201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12202 $as_echo "no" >&6; }
   12203 fi
   12204 
   12205 
   12206   done
   12207 fi
   12208 
   12209 for ncn_progname in ar; do
   12210   if test -n "$ncn_tool_prefix"; then
   12211     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12212 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12214 $as_echo_n "checking for $ac_word... " >&6; }
   12215 if ${ac_cv_prog_AR+:} false; then :
   12216   $as_echo_n "(cached) " >&6
   12217 else
   12218   if test -n "$AR"; then
   12219   ac_cv_prog_AR="$AR" # Let the user override the test.
   12220 else
   12221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12222 for as_dir in $PATH
   12223 do
   12224   IFS=$as_save_IFS
   12225   test -z "$as_dir" && as_dir=.
   12226     for ac_exec_ext in '' $ac_executable_extensions; do
   12227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12228     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
   12229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12230     break 2
   12231   fi
   12232 done
   12233   done
   12234 IFS=$as_save_IFS
   12235 
   12236 fi
   12237 fi
   12238 AR=$ac_cv_prog_AR
   12239 if test -n "$AR"; then
   12240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12241 $as_echo "$AR" >&6; }
   12242 else
   12243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12244 $as_echo "no" >&6; }
   12245 fi
   12246 
   12247 
   12248   fi
   12249   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
   12250     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12251 set dummy ${ncn_progname}; ac_word=$2
   12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12253 $as_echo_n "checking for $ac_word... " >&6; }
   12254 if ${ac_cv_prog_AR+:} false; then :
   12255   $as_echo_n "(cached) " >&6
   12256 else
   12257   if test -n "$AR"; then
   12258   ac_cv_prog_AR="$AR" # Let the user override the test.
   12259 else
   12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12261 for as_dir in $PATH
   12262 do
   12263   IFS=$as_save_IFS
   12264   test -z "$as_dir" && as_dir=.
   12265     for ac_exec_ext in '' $ac_executable_extensions; do
   12266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12267     ac_cv_prog_AR="${ncn_progname}"
   12268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12269     break 2
   12270   fi
   12271 done
   12272   done
   12273 IFS=$as_save_IFS
   12274 
   12275 fi
   12276 fi
   12277 AR=$ac_cv_prog_AR
   12278 if test -n "$AR"; then
   12279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12280 $as_echo "$AR" >&6; }
   12281 else
   12282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12283 $as_echo "no" >&6; }
   12284 fi
   12285 
   12286 
   12287   fi
   12288   test -n "$ac_cv_prog_AR" && break
   12289 done
   12290 
   12291 if test -z "$ac_cv_prog_AR" ; then
   12292   set dummy ar
   12293   if test $build = $host ; then
   12294     AR="$2"
   12295   else
   12296     AR="${ncn_tool_prefix}$2"
   12297   fi
   12298 fi
   12299 
   12300 
   12301 
   12302 if test -n "$AS"; then
   12303   ac_cv_prog_AS=$AS
   12304 elif test -n "$ac_cv_prog_AS"; then
   12305   AS=$ac_cv_prog_AS
   12306 fi
   12307 
   12308 if test -n "$ac_cv_prog_AS"; then
   12309   for ncn_progname in as; do
   12310     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12311 set dummy ${ncn_progname}; ac_word=$2
   12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12313 $as_echo_n "checking for $ac_word... " >&6; }
   12314 if ${ac_cv_prog_AS+:} false; then :
   12315   $as_echo_n "(cached) " >&6
   12316 else
   12317   if test -n "$AS"; then
   12318   ac_cv_prog_AS="$AS" # Let the user override the test.
   12319 else
   12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12321 for as_dir in $PATH
   12322 do
   12323   IFS=$as_save_IFS
   12324   test -z "$as_dir" && as_dir=.
   12325     for ac_exec_ext in '' $ac_executable_extensions; do
   12326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12327     ac_cv_prog_AS="${ncn_progname}"
   12328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12329     break 2
   12330   fi
   12331 done
   12332   done
   12333 IFS=$as_save_IFS
   12334 
   12335 fi
   12336 fi
   12337 AS=$ac_cv_prog_AS
   12338 if test -n "$AS"; then
   12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
   12340 $as_echo "$AS" >&6; }
   12341 else
   12342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12343 $as_echo "no" >&6; }
   12344 fi
   12345 
   12346 
   12347   done
   12348 fi
   12349 
   12350 for ncn_progname in as; do
   12351   if test -n "$ncn_tool_prefix"; then
   12352     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12353 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12355 $as_echo_n "checking for $ac_word... " >&6; }
   12356 if ${ac_cv_prog_AS+:} false; then :
   12357   $as_echo_n "(cached) " >&6
   12358 else
   12359   if test -n "$AS"; then
   12360   ac_cv_prog_AS="$AS" # Let the user override the test.
   12361 else
   12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12363 for as_dir in $PATH
   12364 do
   12365   IFS=$as_save_IFS
   12366   test -z "$as_dir" && as_dir=.
   12367     for ac_exec_ext in '' $ac_executable_extensions; do
   12368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12369     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
   12370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12371     break 2
   12372   fi
   12373 done
   12374   done
   12375 IFS=$as_save_IFS
   12376 
   12377 fi
   12378 fi
   12379 AS=$ac_cv_prog_AS
   12380 if test -n "$AS"; then
   12381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
   12382 $as_echo "$AS" >&6; }
   12383 else
   12384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12385 $as_echo "no" >&6; }
   12386 fi
   12387 
   12388 
   12389   fi
   12390   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
   12391     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12392 set dummy ${ncn_progname}; ac_word=$2
   12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12394 $as_echo_n "checking for $ac_word... " >&6; }
   12395 if ${ac_cv_prog_AS+:} false; then :
   12396   $as_echo_n "(cached) " >&6
   12397 else
   12398   if test -n "$AS"; then
   12399   ac_cv_prog_AS="$AS" # Let the user override the test.
   12400 else
   12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12402 for as_dir in $PATH
   12403 do
   12404   IFS=$as_save_IFS
   12405   test -z "$as_dir" && as_dir=.
   12406     for ac_exec_ext in '' $ac_executable_extensions; do
   12407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12408     ac_cv_prog_AS="${ncn_progname}"
   12409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12410     break 2
   12411   fi
   12412 done
   12413   done
   12414 IFS=$as_save_IFS
   12415 
   12416 fi
   12417 fi
   12418 AS=$ac_cv_prog_AS
   12419 if test -n "$AS"; then
   12420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
   12421 $as_echo "$AS" >&6; }
   12422 else
   12423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12424 $as_echo "no" >&6; }
   12425 fi
   12426 
   12427 
   12428   fi
   12429   test -n "$ac_cv_prog_AS" && break
   12430 done
   12431 
   12432 if test -z "$ac_cv_prog_AS" ; then
   12433   set dummy as
   12434   if test $build = $host ; then
   12435     AS="$2"
   12436   else
   12437     AS="${ncn_tool_prefix}$2"
   12438   fi
   12439 fi
   12440 
   12441 
   12442 
   12443 if test -n "$DLLTOOL"; then
   12444   ac_cv_prog_DLLTOOL=$DLLTOOL
   12445 elif test -n "$ac_cv_prog_DLLTOOL"; then
   12446   DLLTOOL=$ac_cv_prog_DLLTOOL
   12447 fi
   12448 
   12449 if test -n "$ac_cv_prog_DLLTOOL"; then
   12450   for ncn_progname in dlltool; do
   12451     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12452 set dummy ${ncn_progname}; ac_word=$2
   12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12454 $as_echo_n "checking for $ac_word... " >&6; }
   12455 if ${ac_cv_prog_DLLTOOL+:} false; then :
   12456   $as_echo_n "(cached) " >&6
   12457 else
   12458   if test -n "$DLLTOOL"; then
   12459   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   12460 else
   12461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12462 for as_dir in $PATH
   12463 do
   12464   IFS=$as_save_IFS
   12465   test -z "$as_dir" && as_dir=.
   12466     for ac_exec_ext in '' $ac_executable_extensions; do
   12467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12468     ac_cv_prog_DLLTOOL="${ncn_progname}"
   12469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12470     break 2
   12471   fi
   12472 done
   12473   done
   12474 IFS=$as_save_IFS
   12475 
   12476 fi
   12477 fi
   12478 DLLTOOL=$ac_cv_prog_DLLTOOL
   12479 if test -n "$DLLTOOL"; then
   12480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   12481 $as_echo "$DLLTOOL" >&6; }
   12482 else
   12483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12484 $as_echo "no" >&6; }
   12485 fi
   12486 
   12487 
   12488   done
   12489 fi
   12490 
   12491 for ncn_progname in dlltool; do
   12492   if test -n "$ncn_tool_prefix"; then
   12493     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12494 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12496 $as_echo_n "checking for $ac_word... " >&6; }
   12497 if ${ac_cv_prog_DLLTOOL+:} false; then :
   12498   $as_echo_n "(cached) " >&6
   12499 else
   12500   if test -n "$DLLTOOL"; then
   12501   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   12502 else
   12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12504 for as_dir in $PATH
   12505 do
   12506   IFS=$as_save_IFS
   12507   test -z "$as_dir" && as_dir=.
   12508     for ac_exec_ext in '' $ac_executable_extensions; do
   12509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12510     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
   12511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12512     break 2
   12513   fi
   12514 done
   12515   done
   12516 IFS=$as_save_IFS
   12517 
   12518 fi
   12519 fi
   12520 DLLTOOL=$ac_cv_prog_DLLTOOL
   12521 if test -n "$DLLTOOL"; then
   12522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   12523 $as_echo "$DLLTOOL" >&6; }
   12524 else
   12525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12526 $as_echo "no" >&6; }
   12527 fi
   12528 
   12529 
   12530   fi
   12531   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
   12532     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12533 set dummy ${ncn_progname}; ac_word=$2
   12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12535 $as_echo_n "checking for $ac_word... " >&6; }
   12536 if ${ac_cv_prog_DLLTOOL+:} false; then :
   12537   $as_echo_n "(cached) " >&6
   12538 else
   12539   if test -n "$DLLTOOL"; then
   12540   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   12541 else
   12542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12543 for as_dir in $PATH
   12544 do
   12545   IFS=$as_save_IFS
   12546   test -z "$as_dir" && as_dir=.
   12547     for ac_exec_ext in '' $ac_executable_extensions; do
   12548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12549     ac_cv_prog_DLLTOOL="${ncn_progname}"
   12550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12551     break 2
   12552   fi
   12553 done
   12554   done
   12555 IFS=$as_save_IFS
   12556 
   12557 fi
   12558 fi
   12559 DLLTOOL=$ac_cv_prog_DLLTOOL
   12560 if test -n "$DLLTOOL"; then
   12561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   12562 $as_echo "$DLLTOOL" >&6; }
   12563 else
   12564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12565 $as_echo "no" >&6; }
   12566 fi
   12567 
   12568 
   12569   fi
   12570   test -n "$ac_cv_prog_DLLTOOL" && break
   12571 done
   12572 
   12573 if test -z "$ac_cv_prog_DLLTOOL" ; then
   12574   set dummy dlltool
   12575   if test $build = $host ; then
   12576     DLLTOOL="$2"
   12577   else
   12578     DLLTOOL="${ncn_tool_prefix}$2"
   12579   fi
   12580 fi
   12581 
   12582 
   12583 
   12584 if test -n "$DSYMUTIL"; then
   12585   ac_cv_prog_DSYMUTIL=$DSYMUTIL
   12586 elif test -n "$ac_cv_prog_DSYMUTIL"; then
   12587   DSYMUTIL=$ac_cv_prog_DSYMUTIL
   12588 fi
   12589 
   12590 if test -n "$ac_cv_prog_DSYMUTIL"; then
   12591   for ncn_progname in dsymutil; do
   12592     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12593 set dummy ${ncn_progname}; ac_word=$2
   12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12595 $as_echo_n "checking for $ac_word... " >&6; }
   12596 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   12597   $as_echo_n "(cached) " >&6
   12598 else
   12599   if test -n "$DSYMUTIL"; then
   12600   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   12601 else
   12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12603 for as_dir in $PATH
   12604 do
   12605   IFS=$as_save_IFS
   12606   test -z "$as_dir" && as_dir=.
   12607     for ac_exec_ext in '' $ac_executable_extensions; do
   12608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12609     ac_cv_prog_DSYMUTIL="${ncn_progname}"
   12610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12611     break 2
   12612   fi
   12613 done
   12614   done
   12615 IFS=$as_save_IFS
   12616 
   12617 fi
   12618 fi
   12619 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   12620 if test -n "$DSYMUTIL"; then
   12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   12622 $as_echo "$DSYMUTIL" >&6; }
   12623 else
   12624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12625 $as_echo "no" >&6; }
   12626 fi
   12627 
   12628 
   12629   done
   12630 fi
   12631 
   12632 for ncn_progname in dsymutil; do
   12633   if test -n "$ncn_tool_prefix"; then
   12634     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12635 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12637 $as_echo_n "checking for $ac_word... " >&6; }
   12638 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   12639   $as_echo_n "(cached) " >&6
   12640 else
   12641   if test -n "$DSYMUTIL"; then
   12642   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   12643 else
   12644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12645 for as_dir in $PATH
   12646 do
   12647   IFS=$as_save_IFS
   12648   test -z "$as_dir" && as_dir=.
   12649     for ac_exec_ext in '' $ac_executable_extensions; do
   12650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12651     ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
   12652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12653     break 2
   12654   fi
   12655 done
   12656   done
   12657 IFS=$as_save_IFS
   12658 
   12659 fi
   12660 fi
   12661 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   12662 if test -n "$DSYMUTIL"; then
   12663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   12664 $as_echo "$DSYMUTIL" >&6; }
   12665 else
   12666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12667 $as_echo "no" >&6; }
   12668 fi
   12669 
   12670 
   12671   fi
   12672   if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
   12673     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12674 set dummy ${ncn_progname}; ac_word=$2
   12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12676 $as_echo_n "checking for $ac_word... " >&6; }
   12677 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   12678   $as_echo_n "(cached) " >&6
   12679 else
   12680   if test -n "$DSYMUTIL"; then
   12681   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   12682 else
   12683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12684 for as_dir in $PATH
   12685 do
   12686   IFS=$as_save_IFS
   12687   test -z "$as_dir" && as_dir=.
   12688     for ac_exec_ext in '' $ac_executable_extensions; do
   12689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12690     ac_cv_prog_DSYMUTIL="${ncn_progname}"
   12691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12692     break 2
   12693   fi
   12694 done
   12695   done
   12696 IFS=$as_save_IFS
   12697 
   12698 fi
   12699 fi
   12700 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   12701 if test -n "$DSYMUTIL"; then
   12702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   12703 $as_echo "$DSYMUTIL" >&6; }
   12704 else
   12705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12706 $as_echo "no" >&6; }
   12707 fi
   12708 
   12709 
   12710   fi
   12711   test -n "$ac_cv_prog_DSYMUTIL" && break
   12712 done
   12713 
   12714 if test -z "$ac_cv_prog_DSYMUTIL" ; then
   12715   set dummy dsymutil
   12716   if test $build = $host ; then
   12717     DSYMUTIL="$2"
   12718   else
   12719     DSYMUTIL="${ncn_tool_prefix}$2"
   12720   fi
   12721 fi
   12722 
   12723 
   12724 
   12725 if test -n "$LD"; then
   12726   ac_cv_prog_LD=$LD
   12727 elif test -n "$ac_cv_prog_LD"; then
   12728   LD=$ac_cv_prog_LD
   12729 fi
   12730 
   12731 if test -n "$ac_cv_prog_LD"; then
   12732   for ncn_progname in ld; do
   12733     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12734 set dummy ${ncn_progname}; ac_word=$2
   12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12736 $as_echo_n "checking for $ac_word... " >&6; }
   12737 if ${ac_cv_prog_LD+:} false; then :
   12738   $as_echo_n "(cached) " >&6
   12739 else
   12740   if test -n "$LD"; then
   12741   ac_cv_prog_LD="$LD" # Let the user override the test.
   12742 else
   12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12744 for as_dir in $PATH
   12745 do
   12746   IFS=$as_save_IFS
   12747   test -z "$as_dir" && as_dir=.
   12748     for ac_exec_ext in '' $ac_executable_extensions; do
   12749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12750     ac_cv_prog_LD="${ncn_progname}"
   12751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12752     break 2
   12753   fi
   12754 done
   12755   done
   12756 IFS=$as_save_IFS
   12757 
   12758 fi
   12759 fi
   12760 LD=$ac_cv_prog_LD
   12761 if test -n "$LD"; then
   12762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   12763 $as_echo "$LD" >&6; }
   12764 else
   12765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12766 $as_echo "no" >&6; }
   12767 fi
   12768 
   12769 
   12770   done
   12771 fi
   12772 
   12773 for ncn_progname in ld; do
   12774   if test -n "$ncn_tool_prefix"; then
   12775     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12776 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12778 $as_echo_n "checking for $ac_word... " >&6; }
   12779 if ${ac_cv_prog_LD+:} false; then :
   12780   $as_echo_n "(cached) " >&6
   12781 else
   12782   if test -n "$LD"; then
   12783   ac_cv_prog_LD="$LD" # Let the user override the test.
   12784 else
   12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12786 for as_dir in $PATH
   12787 do
   12788   IFS=$as_save_IFS
   12789   test -z "$as_dir" && as_dir=.
   12790     for ac_exec_ext in '' $ac_executable_extensions; do
   12791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12792     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
   12793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12794     break 2
   12795   fi
   12796 done
   12797   done
   12798 IFS=$as_save_IFS
   12799 
   12800 fi
   12801 fi
   12802 LD=$ac_cv_prog_LD
   12803 if test -n "$LD"; then
   12804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   12805 $as_echo "$LD" >&6; }
   12806 else
   12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12808 $as_echo "no" >&6; }
   12809 fi
   12810 
   12811 
   12812   fi
   12813   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
   12814     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12815 set dummy ${ncn_progname}; ac_word=$2
   12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12817 $as_echo_n "checking for $ac_word... " >&6; }
   12818 if ${ac_cv_prog_LD+:} false; then :
   12819   $as_echo_n "(cached) " >&6
   12820 else
   12821   if test -n "$LD"; then
   12822   ac_cv_prog_LD="$LD" # Let the user override the test.
   12823 else
   12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12825 for as_dir in $PATH
   12826 do
   12827   IFS=$as_save_IFS
   12828   test -z "$as_dir" && as_dir=.
   12829     for ac_exec_ext in '' $ac_executable_extensions; do
   12830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12831     ac_cv_prog_LD="${ncn_progname}"
   12832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12833     break 2
   12834   fi
   12835 done
   12836   done
   12837 IFS=$as_save_IFS
   12838 
   12839 fi
   12840 fi
   12841 LD=$ac_cv_prog_LD
   12842 if test -n "$LD"; then
   12843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   12844 $as_echo "$LD" >&6; }
   12845 else
   12846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12847 $as_echo "no" >&6; }
   12848 fi
   12849 
   12850 
   12851   fi
   12852   test -n "$ac_cv_prog_LD" && break
   12853 done
   12854 
   12855 if test -z "$ac_cv_prog_LD" ; then
   12856   set dummy ld
   12857   if test $build = $host ; then
   12858     LD="$2"
   12859   else
   12860     LD="${ncn_tool_prefix}$2"
   12861   fi
   12862 fi
   12863 
   12864 
   12865 
   12866 if test -n "$LIPO"; then
   12867   ac_cv_prog_LIPO=$LIPO
   12868 elif test -n "$ac_cv_prog_LIPO"; then
   12869   LIPO=$ac_cv_prog_LIPO
   12870 fi
   12871 
   12872 if test -n "$ac_cv_prog_LIPO"; then
   12873   for ncn_progname in lipo; do
   12874     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12875 set dummy ${ncn_progname}; ac_word=$2
   12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12877 $as_echo_n "checking for $ac_word... " >&6; }
   12878 if ${ac_cv_prog_LIPO+:} false; then :
   12879   $as_echo_n "(cached) " >&6
   12880 else
   12881   if test -n "$LIPO"; then
   12882   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   12883 else
   12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12885 for as_dir in $PATH
   12886 do
   12887   IFS=$as_save_IFS
   12888   test -z "$as_dir" && as_dir=.
   12889     for ac_exec_ext in '' $ac_executable_extensions; do
   12890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12891     ac_cv_prog_LIPO="${ncn_progname}"
   12892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12893     break 2
   12894   fi
   12895 done
   12896   done
   12897 IFS=$as_save_IFS
   12898 
   12899 fi
   12900 fi
   12901 LIPO=$ac_cv_prog_LIPO
   12902 if test -n "$LIPO"; then
   12903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   12904 $as_echo "$LIPO" >&6; }
   12905 else
   12906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12907 $as_echo "no" >&6; }
   12908 fi
   12909 
   12910 
   12911   done
   12912 fi
   12913 
   12914 for ncn_progname in lipo; do
   12915   if test -n "$ncn_tool_prefix"; then
   12916     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12917 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12919 $as_echo_n "checking for $ac_word... " >&6; }
   12920 if ${ac_cv_prog_LIPO+:} false; then :
   12921   $as_echo_n "(cached) " >&6
   12922 else
   12923   if test -n "$LIPO"; then
   12924   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   12925 else
   12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12927 for as_dir in $PATH
   12928 do
   12929   IFS=$as_save_IFS
   12930   test -z "$as_dir" && as_dir=.
   12931     for ac_exec_ext in '' $ac_executable_extensions; do
   12932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12933     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
   12934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12935     break 2
   12936   fi
   12937 done
   12938   done
   12939 IFS=$as_save_IFS
   12940 
   12941 fi
   12942 fi
   12943 LIPO=$ac_cv_prog_LIPO
   12944 if test -n "$LIPO"; then
   12945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   12946 $as_echo "$LIPO" >&6; }
   12947 else
   12948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12949 $as_echo "no" >&6; }
   12950 fi
   12951 
   12952 
   12953   fi
   12954   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
   12955     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12956 set dummy ${ncn_progname}; ac_word=$2
   12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12958 $as_echo_n "checking for $ac_word... " >&6; }
   12959 if ${ac_cv_prog_LIPO+:} false; then :
   12960   $as_echo_n "(cached) " >&6
   12961 else
   12962   if test -n "$LIPO"; then
   12963   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   12964 else
   12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12966 for as_dir in $PATH
   12967 do
   12968   IFS=$as_save_IFS
   12969   test -z "$as_dir" && as_dir=.
   12970     for ac_exec_ext in '' $ac_executable_extensions; do
   12971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12972     ac_cv_prog_LIPO="${ncn_progname}"
   12973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12974     break 2
   12975   fi
   12976 done
   12977   done
   12978 IFS=$as_save_IFS
   12979 
   12980 fi
   12981 fi
   12982 LIPO=$ac_cv_prog_LIPO
   12983 if test -n "$LIPO"; then
   12984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   12985 $as_echo "$LIPO" >&6; }
   12986 else
   12987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12988 $as_echo "no" >&6; }
   12989 fi
   12990 
   12991 
   12992   fi
   12993   test -n "$ac_cv_prog_LIPO" && break
   12994 done
   12995 
   12996 if test -z "$ac_cv_prog_LIPO" ; then
   12997   set dummy lipo
   12998   if test $build = $host ; then
   12999     LIPO="$2"
   13000   else
   13001     LIPO="${ncn_tool_prefix}$2"
   13002   fi
   13003 fi
   13004 
   13005 
   13006 
   13007 if test -n "$NM"; then
   13008   ac_cv_prog_NM=$NM
   13009 elif test -n "$ac_cv_prog_NM"; then
   13010   NM=$ac_cv_prog_NM
   13011 fi
   13012 
   13013 if test -n "$ac_cv_prog_NM"; then
   13014   for ncn_progname in nm; do
   13015     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13016 set dummy ${ncn_progname}; ac_word=$2
   13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13018 $as_echo_n "checking for $ac_word... " >&6; }
   13019 if ${ac_cv_prog_NM+:} false; then :
   13020   $as_echo_n "(cached) " >&6
   13021 else
   13022   if test -n "$NM"; then
   13023   ac_cv_prog_NM="$NM" # Let the user override the test.
   13024 else
   13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13026 for as_dir in $PATH
   13027 do
   13028   IFS=$as_save_IFS
   13029   test -z "$as_dir" && as_dir=.
   13030     for ac_exec_ext in '' $ac_executable_extensions; do
   13031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13032     ac_cv_prog_NM="${ncn_progname}"
   13033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13034     break 2
   13035   fi
   13036 done
   13037   done
   13038 IFS=$as_save_IFS
   13039 
   13040 fi
   13041 fi
   13042 NM=$ac_cv_prog_NM
   13043 if test -n "$NM"; then
   13044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
   13045 $as_echo "$NM" >&6; }
   13046 else
   13047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13048 $as_echo "no" >&6; }
   13049 fi
   13050 
   13051 
   13052   done
   13053 fi
   13054 
   13055 for ncn_progname in nm; do
   13056   if test -n "$ncn_tool_prefix"; then
   13057     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13058 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13060 $as_echo_n "checking for $ac_word... " >&6; }
   13061 if ${ac_cv_prog_NM+:} false; then :
   13062   $as_echo_n "(cached) " >&6
   13063 else
   13064   if test -n "$NM"; then
   13065   ac_cv_prog_NM="$NM" # Let the user override the test.
   13066 else
   13067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13068 for as_dir in $PATH
   13069 do
   13070   IFS=$as_save_IFS
   13071   test -z "$as_dir" && as_dir=.
   13072     for ac_exec_ext in '' $ac_executable_extensions; do
   13073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13074     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
   13075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13076     break 2
   13077   fi
   13078 done
   13079   done
   13080 IFS=$as_save_IFS
   13081 
   13082 fi
   13083 fi
   13084 NM=$ac_cv_prog_NM
   13085 if test -n "$NM"; then
   13086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
   13087 $as_echo "$NM" >&6; }
   13088 else
   13089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13090 $as_echo "no" >&6; }
   13091 fi
   13092 
   13093 
   13094   fi
   13095   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
   13096     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13097 set dummy ${ncn_progname}; ac_word=$2
   13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13099 $as_echo_n "checking for $ac_word... " >&6; }
   13100 if ${ac_cv_prog_NM+:} false; then :
   13101   $as_echo_n "(cached) " >&6
   13102 else
   13103   if test -n "$NM"; then
   13104   ac_cv_prog_NM="$NM" # Let the user override the test.
   13105 else
   13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13107 for as_dir in $PATH
   13108 do
   13109   IFS=$as_save_IFS
   13110   test -z "$as_dir" && as_dir=.
   13111     for ac_exec_ext in '' $ac_executable_extensions; do
   13112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13113     ac_cv_prog_NM="${ncn_progname}"
   13114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13115     break 2
   13116   fi
   13117 done
   13118   done
   13119 IFS=$as_save_IFS
   13120 
   13121 fi
   13122 fi
   13123 NM=$ac_cv_prog_NM
   13124 if test -n "$NM"; then
   13125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
   13126 $as_echo "$NM" >&6; }
   13127 else
   13128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13129 $as_echo "no" >&6; }
   13130 fi
   13131 
   13132 
   13133   fi
   13134   test -n "$ac_cv_prog_NM" && break
   13135 done
   13136 
   13137 if test -z "$ac_cv_prog_NM" ; then
   13138   set dummy nm
   13139   if test $build = $host ; then
   13140     NM="$2"
   13141   else
   13142     NM="${ncn_tool_prefix}$2"
   13143   fi
   13144 fi
   13145 
   13146 
   13147 
   13148 if test -n "$RANLIB"; then
   13149   ac_cv_prog_RANLIB=$RANLIB
   13150 elif test -n "$ac_cv_prog_RANLIB"; then
   13151   RANLIB=$ac_cv_prog_RANLIB
   13152 fi
   13153 
   13154 if test -n "$ac_cv_prog_RANLIB"; then
   13155   for ncn_progname in ranlib; do
   13156     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13157 set dummy ${ncn_progname}; ac_word=$2
   13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13159 $as_echo_n "checking for $ac_word... " >&6; }
   13160 if ${ac_cv_prog_RANLIB+:} false; then :
   13161   $as_echo_n "(cached) " >&6
   13162 else
   13163   if test -n "$RANLIB"; then
   13164   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   13165 else
   13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13167 for as_dir in $PATH
   13168 do
   13169   IFS=$as_save_IFS
   13170   test -z "$as_dir" && as_dir=.
   13171     for ac_exec_ext in '' $ac_executable_extensions; do
   13172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13173     ac_cv_prog_RANLIB="${ncn_progname}"
   13174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13175     break 2
   13176   fi
   13177 done
   13178   done
   13179 IFS=$as_save_IFS
   13180 
   13181 fi
   13182 fi
   13183 RANLIB=$ac_cv_prog_RANLIB
   13184 if test -n "$RANLIB"; then
   13185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   13186 $as_echo "$RANLIB" >&6; }
   13187 else
   13188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13189 $as_echo "no" >&6; }
   13190 fi
   13191 
   13192 
   13193   done
   13194 fi
   13195 
   13196 for ncn_progname in ranlib; do
   13197   if test -n "$ncn_tool_prefix"; then
   13198     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13199 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13201 $as_echo_n "checking for $ac_word... " >&6; }
   13202 if ${ac_cv_prog_RANLIB+:} false; then :
   13203   $as_echo_n "(cached) " >&6
   13204 else
   13205   if test -n "$RANLIB"; then
   13206   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   13207 else
   13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13209 for as_dir in $PATH
   13210 do
   13211   IFS=$as_save_IFS
   13212   test -z "$as_dir" && as_dir=.
   13213     for ac_exec_ext in '' $ac_executable_extensions; do
   13214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13215     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
   13216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13217     break 2
   13218   fi
   13219 done
   13220   done
   13221 IFS=$as_save_IFS
   13222 
   13223 fi
   13224 fi
   13225 RANLIB=$ac_cv_prog_RANLIB
   13226 if test -n "$RANLIB"; then
   13227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   13228 $as_echo "$RANLIB" >&6; }
   13229 else
   13230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13231 $as_echo "no" >&6; }
   13232 fi
   13233 
   13234 
   13235   fi
   13236   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
   13237     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13238 set dummy ${ncn_progname}; ac_word=$2
   13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13240 $as_echo_n "checking for $ac_word... " >&6; }
   13241 if ${ac_cv_prog_RANLIB+:} false; then :
   13242   $as_echo_n "(cached) " >&6
   13243 else
   13244   if test -n "$RANLIB"; then
   13245   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   13246 else
   13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13248 for as_dir in $PATH
   13249 do
   13250   IFS=$as_save_IFS
   13251   test -z "$as_dir" && as_dir=.
   13252     for ac_exec_ext in '' $ac_executable_extensions; do
   13253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13254     ac_cv_prog_RANLIB="${ncn_progname}"
   13255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13256     break 2
   13257   fi
   13258 done
   13259   done
   13260 IFS=$as_save_IFS
   13261 
   13262 fi
   13263 fi
   13264 RANLIB=$ac_cv_prog_RANLIB
   13265 if test -n "$RANLIB"; then
   13266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   13267 $as_echo "$RANLIB" >&6; }
   13268 else
   13269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13270 $as_echo "no" >&6; }
   13271 fi
   13272 
   13273 
   13274   fi
   13275   test -n "$ac_cv_prog_RANLIB" && break
   13276 done
   13277 
   13278 if test -z "$ac_cv_prog_RANLIB" ; then
   13279   RANLIB="true"
   13280 fi
   13281 
   13282 
   13283 
   13284 if test -n "$STRIP"; then
   13285   ac_cv_prog_STRIP=$STRIP
   13286 elif test -n "$ac_cv_prog_STRIP"; then
   13287   STRIP=$ac_cv_prog_STRIP
   13288 fi
   13289 
   13290 if test -n "$ac_cv_prog_STRIP"; then
   13291   for ncn_progname in strip; do
   13292     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13293 set dummy ${ncn_progname}; ac_word=$2
   13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13295 $as_echo_n "checking for $ac_word... " >&6; }
   13296 if ${ac_cv_prog_STRIP+:} false; then :
   13297   $as_echo_n "(cached) " >&6
   13298 else
   13299   if test -n "$STRIP"; then
   13300   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   13301 else
   13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13303 for as_dir in $PATH
   13304 do
   13305   IFS=$as_save_IFS
   13306   test -z "$as_dir" && as_dir=.
   13307     for ac_exec_ext in '' $ac_executable_extensions; do
   13308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13309     ac_cv_prog_STRIP="${ncn_progname}"
   13310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13311     break 2
   13312   fi
   13313 done
   13314   done
   13315 IFS=$as_save_IFS
   13316 
   13317 fi
   13318 fi
   13319 STRIP=$ac_cv_prog_STRIP
   13320 if test -n "$STRIP"; then
   13321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   13322 $as_echo "$STRIP" >&6; }
   13323 else
   13324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13325 $as_echo "no" >&6; }
   13326 fi
   13327 
   13328 
   13329   done
   13330 fi
   13331 
   13332 for ncn_progname in strip; do
   13333   if test -n "$ncn_tool_prefix"; then
   13334     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13335 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13337 $as_echo_n "checking for $ac_word... " >&6; }
   13338 if ${ac_cv_prog_STRIP+:} false; then :
   13339   $as_echo_n "(cached) " >&6
   13340 else
   13341   if test -n "$STRIP"; then
   13342   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   13343 else
   13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13345 for as_dir in $PATH
   13346 do
   13347   IFS=$as_save_IFS
   13348   test -z "$as_dir" && as_dir=.
   13349     for ac_exec_ext in '' $ac_executable_extensions; do
   13350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13351     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
   13352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13353     break 2
   13354   fi
   13355 done
   13356   done
   13357 IFS=$as_save_IFS
   13358 
   13359 fi
   13360 fi
   13361 STRIP=$ac_cv_prog_STRIP
   13362 if test -n "$STRIP"; then
   13363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   13364 $as_echo "$STRIP" >&6; }
   13365 else
   13366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13367 $as_echo "no" >&6; }
   13368 fi
   13369 
   13370 
   13371   fi
   13372   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
   13373     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13374 set dummy ${ncn_progname}; ac_word=$2
   13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13376 $as_echo_n "checking for $ac_word... " >&6; }
   13377 if ${ac_cv_prog_STRIP+:} false; then :
   13378   $as_echo_n "(cached) " >&6
   13379 else
   13380   if test -n "$STRIP"; then
   13381   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   13382 else
   13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13384 for as_dir in $PATH
   13385 do
   13386   IFS=$as_save_IFS
   13387   test -z "$as_dir" && as_dir=.
   13388     for ac_exec_ext in '' $ac_executable_extensions; do
   13389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13390     ac_cv_prog_STRIP="${ncn_progname}"
   13391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13392     break 2
   13393   fi
   13394 done
   13395   done
   13396 IFS=$as_save_IFS
   13397 
   13398 fi
   13399 fi
   13400 STRIP=$ac_cv_prog_STRIP
   13401 if test -n "$STRIP"; then
   13402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   13403 $as_echo "$STRIP" >&6; }
   13404 else
   13405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13406 $as_echo "no" >&6; }
   13407 fi
   13408 
   13409 
   13410   fi
   13411   test -n "$ac_cv_prog_STRIP" && break
   13412 done
   13413 
   13414 if test -z "$ac_cv_prog_STRIP" ; then
   13415   STRIP="true"
   13416 fi
   13417 
   13418 
   13419 
   13420 if test -n "$WINDRES"; then
   13421   ac_cv_prog_WINDRES=$WINDRES
   13422 elif test -n "$ac_cv_prog_WINDRES"; then
   13423   WINDRES=$ac_cv_prog_WINDRES
   13424 fi
   13425 
   13426 if test -n "$ac_cv_prog_WINDRES"; then
   13427   for ncn_progname in windres; do
   13428     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13429 set dummy ${ncn_progname}; ac_word=$2
   13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13431 $as_echo_n "checking for $ac_word... " >&6; }
   13432 if ${ac_cv_prog_WINDRES+:} false; then :
   13433   $as_echo_n "(cached) " >&6
   13434 else
   13435   if test -n "$WINDRES"; then
   13436   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   13437 else
   13438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13439 for as_dir in $PATH
   13440 do
   13441   IFS=$as_save_IFS
   13442   test -z "$as_dir" && as_dir=.
   13443     for ac_exec_ext in '' $ac_executable_extensions; do
   13444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13445     ac_cv_prog_WINDRES="${ncn_progname}"
   13446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13447     break 2
   13448   fi
   13449 done
   13450   done
   13451 IFS=$as_save_IFS
   13452 
   13453 fi
   13454 fi
   13455 WINDRES=$ac_cv_prog_WINDRES
   13456 if test -n "$WINDRES"; then
   13457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   13458 $as_echo "$WINDRES" >&6; }
   13459 else
   13460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13461 $as_echo "no" >&6; }
   13462 fi
   13463 
   13464 
   13465   done
   13466 fi
   13467 
   13468 for ncn_progname in windres; do
   13469   if test -n "$ncn_tool_prefix"; then
   13470     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13471 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13473 $as_echo_n "checking for $ac_word... " >&6; }
   13474 if ${ac_cv_prog_WINDRES+:} false; then :
   13475   $as_echo_n "(cached) " >&6
   13476 else
   13477   if test -n "$WINDRES"; then
   13478   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   13479 else
   13480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13481 for as_dir in $PATH
   13482 do
   13483   IFS=$as_save_IFS
   13484   test -z "$as_dir" && as_dir=.
   13485     for ac_exec_ext in '' $ac_executable_extensions; do
   13486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13487     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
   13488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13489     break 2
   13490   fi
   13491 done
   13492   done
   13493 IFS=$as_save_IFS
   13494 
   13495 fi
   13496 fi
   13497 WINDRES=$ac_cv_prog_WINDRES
   13498 if test -n "$WINDRES"; then
   13499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   13500 $as_echo "$WINDRES" >&6; }
   13501 else
   13502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13503 $as_echo "no" >&6; }
   13504 fi
   13505 
   13506 
   13507   fi
   13508   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
   13509     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13510 set dummy ${ncn_progname}; ac_word=$2
   13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13512 $as_echo_n "checking for $ac_word... " >&6; }
   13513 if ${ac_cv_prog_WINDRES+:} false; then :
   13514   $as_echo_n "(cached) " >&6
   13515 else
   13516   if test -n "$WINDRES"; then
   13517   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   13518 else
   13519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13520 for as_dir in $PATH
   13521 do
   13522   IFS=$as_save_IFS
   13523   test -z "$as_dir" && as_dir=.
   13524     for ac_exec_ext in '' $ac_executable_extensions; do
   13525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13526     ac_cv_prog_WINDRES="${ncn_progname}"
   13527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13528     break 2
   13529   fi
   13530 done
   13531   done
   13532 IFS=$as_save_IFS
   13533 
   13534 fi
   13535 fi
   13536 WINDRES=$ac_cv_prog_WINDRES
   13537 if test -n "$WINDRES"; then
   13538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   13539 $as_echo "$WINDRES" >&6; }
   13540 else
   13541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13542 $as_echo "no" >&6; }
   13543 fi
   13544 
   13545 
   13546   fi
   13547   test -n "$ac_cv_prog_WINDRES" && break
   13548 done
   13549 
   13550 if test -z "$ac_cv_prog_WINDRES" ; then
   13551   set dummy windres
   13552   if test $build = $host ; then
   13553     WINDRES="$2"
   13554   else
   13555     WINDRES="${ncn_tool_prefix}$2"
   13556   fi
   13557 fi
   13558 
   13559 
   13560 
   13561 if test -n "$WINDMC"; then
   13562   ac_cv_prog_WINDMC=$WINDMC
   13563 elif test -n "$ac_cv_prog_WINDMC"; then
   13564   WINDMC=$ac_cv_prog_WINDMC
   13565 fi
   13566 
   13567 if test -n "$ac_cv_prog_WINDMC"; then
   13568   for ncn_progname in windmc; do
   13569     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13570 set dummy ${ncn_progname}; ac_word=$2
   13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13572 $as_echo_n "checking for $ac_word... " >&6; }
   13573 if ${ac_cv_prog_WINDMC+:} false; then :
   13574   $as_echo_n "(cached) " >&6
   13575 else
   13576   if test -n "$WINDMC"; then
   13577   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
   13578 else
   13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13580 for as_dir in $PATH
   13581 do
   13582   IFS=$as_save_IFS
   13583   test -z "$as_dir" && as_dir=.
   13584     for ac_exec_ext in '' $ac_executable_extensions; do
   13585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13586     ac_cv_prog_WINDMC="${ncn_progname}"
   13587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13588     break 2
   13589   fi
   13590 done
   13591   done
   13592 IFS=$as_save_IFS
   13593 
   13594 fi
   13595 fi
   13596 WINDMC=$ac_cv_prog_WINDMC
   13597 if test -n "$WINDMC"; then
   13598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
   13599 $as_echo "$WINDMC" >&6; }
   13600 else
   13601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13602 $as_echo "no" >&6; }
   13603 fi
   13604 
   13605 
   13606   done
   13607 fi
   13608 
   13609 for ncn_progname in windmc; do
   13610   if test -n "$ncn_tool_prefix"; then
   13611     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13612 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13614 $as_echo_n "checking for $ac_word... " >&6; }
   13615 if ${ac_cv_prog_WINDMC+:} false; then :
   13616   $as_echo_n "(cached) " >&6
   13617 else
   13618   if test -n "$WINDMC"; then
   13619   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
   13620 else
   13621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13622 for as_dir in $PATH
   13623 do
   13624   IFS=$as_save_IFS
   13625   test -z "$as_dir" && as_dir=.
   13626     for ac_exec_ext in '' $ac_executable_extensions; do
   13627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13628     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
   13629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13630     break 2
   13631   fi
   13632 done
   13633   done
   13634 IFS=$as_save_IFS
   13635 
   13636 fi
   13637 fi
   13638 WINDMC=$ac_cv_prog_WINDMC
   13639 if test -n "$WINDMC"; then
   13640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
   13641 $as_echo "$WINDMC" >&6; }
   13642 else
   13643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13644 $as_echo "no" >&6; }
   13645 fi
   13646 
   13647 
   13648   fi
   13649   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
   13650     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13651 set dummy ${ncn_progname}; ac_word=$2
   13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13653 $as_echo_n "checking for $ac_word... " >&6; }
   13654 if ${ac_cv_prog_WINDMC+:} false; then :
   13655   $as_echo_n "(cached) " >&6
   13656 else
   13657   if test -n "$WINDMC"; then
   13658   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
   13659 else
   13660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13661 for as_dir in $PATH
   13662 do
   13663   IFS=$as_save_IFS
   13664   test -z "$as_dir" && as_dir=.
   13665     for ac_exec_ext in '' $ac_executable_extensions; do
   13666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13667     ac_cv_prog_WINDMC="${ncn_progname}"
   13668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13669     break 2
   13670   fi
   13671 done
   13672   done
   13673 IFS=$as_save_IFS
   13674 
   13675 fi
   13676 fi
   13677 WINDMC=$ac_cv_prog_WINDMC
   13678 if test -n "$WINDMC"; then
   13679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
   13680 $as_echo "$WINDMC" >&6; }
   13681 else
   13682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13683 $as_echo "no" >&6; }
   13684 fi
   13685 
   13686 
   13687   fi
   13688   test -n "$ac_cv_prog_WINDMC" && break
   13689 done
   13690 
   13691 if test -z "$ac_cv_prog_WINDMC" ; then
   13692   set dummy windmc
   13693   if test $build = $host ; then
   13694     WINDMC="$2"
   13695   else
   13696     WINDMC="${ncn_tool_prefix}$2"
   13697   fi
   13698 fi
   13699 
   13700 
   13701 
   13702 if test -n "$OBJCOPY"; then
   13703   ac_cv_prog_OBJCOPY=$OBJCOPY
   13704 elif test -n "$ac_cv_prog_OBJCOPY"; then
   13705   OBJCOPY=$ac_cv_prog_OBJCOPY
   13706 fi
   13707 
   13708 if test -n "$ac_cv_prog_OBJCOPY"; then
   13709   for ncn_progname in objcopy; do
   13710     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13711 set dummy ${ncn_progname}; ac_word=$2
   13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13713 $as_echo_n "checking for $ac_word... " >&6; }
   13714 if ${ac_cv_prog_OBJCOPY+:} false; then :
   13715   $as_echo_n "(cached) " >&6
   13716 else
   13717   if test -n "$OBJCOPY"; then
   13718   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
   13719 else
   13720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13721 for as_dir in $PATH
   13722 do
   13723   IFS=$as_save_IFS
   13724   test -z "$as_dir" && as_dir=.
   13725     for ac_exec_ext in '' $ac_executable_extensions; do
   13726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13727     ac_cv_prog_OBJCOPY="${ncn_progname}"
   13728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13729     break 2
   13730   fi
   13731 done
   13732   done
   13733 IFS=$as_save_IFS
   13734 
   13735 fi
   13736 fi
   13737 OBJCOPY=$ac_cv_prog_OBJCOPY
   13738 if test -n "$OBJCOPY"; then
   13739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
   13740 $as_echo "$OBJCOPY" >&6; }
   13741 else
   13742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13743 $as_echo "no" >&6; }
   13744 fi
   13745 
   13746 
   13747   done
   13748 fi
   13749 
   13750 for ncn_progname in objcopy; do
   13751   if test -n "$ncn_tool_prefix"; then
   13752     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13753 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13755 $as_echo_n "checking for $ac_word... " >&6; }
   13756 if ${ac_cv_prog_OBJCOPY+:} false; then :
   13757   $as_echo_n "(cached) " >&6
   13758 else
   13759   if test -n "$OBJCOPY"; then
   13760   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
   13761 else
   13762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13763 for as_dir in $PATH
   13764 do
   13765   IFS=$as_save_IFS
   13766   test -z "$as_dir" && as_dir=.
   13767     for ac_exec_ext in '' $ac_executable_extensions; do
   13768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13769     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
   13770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13771     break 2
   13772   fi
   13773 done
   13774   done
   13775 IFS=$as_save_IFS
   13776 
   13777 fi
   13778 fi
   13779 OBJCOPY=$ac_cv_prog_OBJCOPY
   13780 if test -n "$OBJCOPY"; then
   13781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
   13782 $as_echo "$OBJCOPY" >&6; }
   13783 else
   13784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13785 $as_echo "no" >&6; }
   13786 fi
   13787 
   13788 
   13789   fi
   13790   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
   13791     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13792 set dummy ${ncn_progname}; ac_word=$2
   13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13794 $as_echo_n "checking for $ac_word... " >&6; }
   13795 if ${ac_cv_prog_OBJCOPY+:} false; then :
   13796   $as_echo_n "(cached) " >&6
   13797 else
   13798   if test -n "$OBJCOPY"; then
   13799   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
   13800 else
   13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13802 for as_dir in $PATH
   13803 do
   13804   IFS=$as_save_IFS
   13805   test -z "$as_dir" && as_dir=.
   13806     for ac_exec_ext in '' $ac_executable_extensions; do
   13807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13808     ac_cv_prog_OBJCOPY="${ncn_progname}"
   13809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13810     break 2
   13811   fi
   13812 done
   13813   done
   13814 IFS=$as_save_IFS
   13815 
   13816 fi
   13817 fi
   13818 OBJCOPY=$ac_cv_prog_OBJCOPY
   13819 if test -n "$OBJCOPY"; then
   13820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
   13821 $as_echo "$OBJCOPY" >&6; }
   13822 else
   13823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13824 $as_echo "no" >&6; }
   13825 fi
   13826 
   13827 
   13828   fi
   13829   test -n "$ac_cv_prog_OBJCOPY" && break
   13830 done
   13831 
   13832 if test -z "$ac_cv_prog_OBJCOPY" ; then
   13833   set dummy objcopy
   13834   if test $build = $host ; then
   13835     OBJCOPY="$2"
   13836   else
   13837     OBJCOPY="${ncn_tool_prefix}$2"
   13838   fi
   13839 fi
   13840 
   13841 
   13842 
   13843 if test -n "$OBJDUMP"; then
   13844   ac_cv_prog_OBJDUMP=$OBJDUMP
   13845 elif test -n "$ac_cv_prog_OBJDUMP"; then
   13846   OBJDUMP=$ac_cv_prog_OBJDUMP
   13847 fi
   13848 
   13849 if test -n "$ac_cv_prog_OBJDUMP"; then
   13850   for ncn_progname in objdump; do
   13851     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13852 set dummy ${ncn_progname}; ac_word=$2
   13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13854 $as_echo_n "checking for $ac_word... " >&6; }
   13855 if ${ac_cv_prog_OBJDUMP+:} false; then :
   13856   $as_echo_n "(cached) " >&6
   13857 else
   13858   if test -n "$OBJDUMP"; then
   13859   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   13860 else
   13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13862 for as_dir in $PATH
   13863 do
   13864   IFS=$as_save_IFS
   13865   test -z "$as_dir" && as_dir=.
   13866     for ac_exec_ext in '' $ac_executable_extensions; do
   13867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13868     ac_cv_prog_OBJDUMP="${ncn_progname}"
   13869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13870     break 2
   13871   fi
   13872 done
   13873   done
   13874 IFS=$as_save_IFS
   13875 
   13876 fi
   13877 fi
   13878 OBJDUMP=$ac_cv_prog_OBJDUMP
   13879 if test -n "$OBJDUMP"; then
   13880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   13881 $as_echo "$OBJDUMP" >&6; }
   13882 else
   13883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13884 $as_echo "no" >&6; }
   13885 fi
   13886 
   13887 
   13888   done
   13889 fi
   13890 
   13891 for ncn_progname in objdump; do
   13892   if test -n "$ncn_tool_prefix"; then
   13893     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13894 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13896 $as_echo_n "checking for $ac_word... " >&6; }
   13897 if ${ac_cv_prog_OBJDUMP+:} false; then :
   13898   $as_echo_n "(cached) " >&6
   13899 else
   13900   if test -n "$OBJDUMP"; then
   13901   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   13902 else
   13903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13904 for as_dir in $PATH
   13905 do
   13906   IFS=$as_save_IFS
   13907   test -z "$as_dir" && as_dir=.
   13908     for ac_exec_ext in '' $ac_executable_extensions; do
   13909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13910     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
   13911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13912     break 2
   13913   fi
   13914 done
   13915   done
   13916 IFS=$as_save_IFS
   13917 
   13918 fi
   13919 fi
   13920 OBJDUMP=$ac_cv_prog_OBJDUMP
   13921 if test -n "$OBJDUMP"; then
   13922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   13923 $as_echo "$OBJDUMP" >&6; }
   13924 else
   13925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13926 $as_echo "no" >&6; }
   13927 fi
   13928 
   13929 
   13930   fi
   13931   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
   13932     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13933 set dummy ${ncn_progname}; ac_word=$2
   13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13935 $as_echo_n "checking for $ac_word... " >&6; }
   13936 if ${ac_cv_prog_OBJDUMP+:} false; then :
   13937   $as_echo_n "(cached) " >&6
   13938 else
   13939   if test -n "$OBJDUMP"; then
   13940   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   13941 else
   13942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13943 for as_dir in $PATH
   13944 do
   13945   IFS=$as_save_IFS
   13946   test -z "$as_dir" && as_dir=.
   13947     for ac_exec_ext in '' $ac_executable_extensions; do
   13948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13949     ac_cv_prog_OBJDUMP="${ncn_progname}"
   13950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13951     break 2
   13952   fi
   13953 done
   13954   done
   13955 IFS=$as_save_IFS
   13956 
   13957 fi
   13958 fi
   13959 OBJDUMP=$ac_cv_prog_OBJDUMP
   13960 if test -n "$OBJDUMP"; then
   13961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   13962 $as_echo "$OBJDUMP" >&6; }
   13963 else
   13964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13965 $as_echo "no" >&6; }
   13966 fi
   13967 
   13968 
   13969   fi
   13970   test -n "$ac_cv_prog_OBJDUMP" && break
   13971 done
   13972 
   13973 if test -z "$ac_cv_prog_OBJDUMP" ; then
   13974   set dummy objdump
   13975   if test $build = $host ; then
   13976     OBJDUMP="$2"
   13977   else
   13978     OBJDUMP="${ncn_tool_prefix}$2"
   13979   fi
   13980 fi
   13981 
   13982 
   13983 
   13984 if test -n "$OTOOL"; then
   13985   ac_cv_prog_OTOOL=$OTOOL
   13986 elif test -n "$ac_cv_prog_OTOOL"; then
   13987   OTOOL=$ac_cv_prog_OTOOL
   13988 fi
   13989 
   13990 if test -n "$ac_cv_prog_OTOOL"; then
   13991   for ncn_progname in otool; do
   13992     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13993 set dummy ${ncn_progname}; ac_word=$2
   13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13995 $as_echo_n "checking for $ac_word... " >&6; }
   13996 if ${ac_cv_prog_OTOOL+:} false; then :
   13997   $as_echo_n "(cached) " >&6
   13998 else
   13999   if test -n "$OTOOL"; then
   14000   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   14001 else
   14002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14003 for as_dir in $PATH
   14004 do
   14005   IFS=$as_save_IFS
   14006   test -z "$as_dir" && as_dir=.
   14007     for ac_exec_ext in '' $ac_executable_extensions; do
   14008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14009     ac_cv_prog_OTOOL="${ncn_progname}"
   14010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14011     break 2
   14012   fi
   14013 done
   14014   done
   14015 IFS=$as_save_IFS
   14016 
   14017 fi
   14018 fi
   14019 OTOOL=$ac_cv_prog_OTOOL
   14020 if test -n "$OTOOL"; then
   14021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   14022 $as_echo "$OTOOL" >&6; }
   14023 else
   14024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14025 $as_echo "no" >&6; }
   14026 fi
   14027 
   14028 
   14029   done
   14030 fi
   14031 
   14032 for ncn_progname in otool; do
   14033   if test -n "$ncn_tool_prefix"; then
   14034     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   14035 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14037 $as_echo_n "checking for $ac_word... " >&6; }
   14038 if ${ac_cv_prog_OTOOL+:} false; then :
   14039   $as_echo_n "(cached) " >&6
   14040 else
   14041   if test -n "$OTOOL"; then
   14042   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   14043 else
   14044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14045 for as_dir in $PATH
   14046 do
   14047   IFS=$as_save_IFS
   14048   test -z "$as_dir" && as_dir=.
   14049     for ac_exec_ext in '' $ac_executable_extensions; do
   14050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14051     ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
   14052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14053     break 2
   14054   fi
   14055 done
   14056   done
   14057 IFS=$as_save_IFS
   14058 
   14059 fi
   14060 fi
   14061 OTOOL=$ac_cv_prog_OTOOL
   14062 if test -n "$OTOOL"; then
   14063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   14064 $as_echo "$OTOOL" >&6; }
   14065 else
   14066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14067 $as_echo "no" >&6; }
   14068 fi
   14069 
   14070 
   14071   fi
   14072   if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
   14073     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14074 set dummy ${ncn_progname}; ac_word=$2
   14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14076 $as_echo_n "checking for $ac_word... " >&6; }
   14077 if ${ac_cv_prog_OTOOL+:} false; then :
   14078   $as_echo_n "(cached) " >&6
   14079 else
   14080   if test -n "$OTOOL"; then
   14081   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   14082 else
   14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14084 for as_dir in $PATH
   14085 do
   14086   IFS=$as_save_IFS
   14087   test -z "$as_dir" && as_dir=.
   14088     for ac_exec_ext in '' $ac_executable_extensions; do
   14089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14090     ac_cv_prog_OTOOL="${ncn_progname}"
   14091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14092     break 2
   14093   fi
   14094 done
   14095   done
   14096 IFS=$as_save_IFS
   14097 
   14098 fi
   14099 fi
   14100 OTOOL=$ac_cv_prog_OTOOL
   14101 if test -n "$OTOOL"; then
   14102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   14103 $as_echo "$OTOOL" >&6; }
   14104 else
   14105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14106 $as_echo "no" >&6; }
   14107 fi
   14108 
   14109 
   14110   fi
   14111   test -n "$ac_cv_prog_OTOOL" && break
   14112 done
   14113 
   14114 if test -z "$ac_cv_prog_OTOOL" ; then
   14115   set dummy otool
   14116   if test $build = $host ; then
   14117     OTOOL="$2"
   14118   else
   14119     OTOOL="${ncn_tool_prefix}$2"
   14120   fi
   14121 fi
   14122 
   14123 
   14124 
   14125 if test -n "$READELF"; then
   14126   ac_cv_prog_READELF=$READELF
   14127 elif test -n "$ac_cv_prog_READELF"; then
   14128   READELF=$ac_cv_prog_READELF
   14129 fi
   14130 
   14131 if test -n "$ac_cv_prog_READELF"; then
   14132   for ncn_progname in readelf; do
   14133     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14134 set dummy ${ncn_progname}; ac_word=$2
   14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14136 $as_echo_n "checking for $ac_word... " >&6; }
   14137 if ${ac_cv_prog_READELF+:} false; then :
   14138   $as_echo_n "(cached) " >&6
   14139 else
   14140   if test -n "$READELF"; then
   14141   ac_cv_prog_READELF="$READELF" # Let the user override the test.
   14142 else
   14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14144 for as_dir in $PATH
   14145 do
   14146   IFS=$as_save_IFS
   14147   test -z "$as_dir" && as_dir=.
   14148     for ac_exec_ext in '' $ac_executable_extensions; do
   14149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14150     ac_cv_prog_READELF="${ncn_progname}"
   14151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14152     break 2
   14153   fi
   14154 done
   14155   done
   14156 IFS=$as_save_IFS
   14157 
   14158 fi
   14159 fi
   14160 READELF=$ac_cv_prog_READELF
   14161 if test -n "$READELF"; then
   14162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
   14163 $as_echo "$READELF" >&6; }
   14164 else
   14165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14166 $as_echo "no" >&6; }
   14167 fi
   14168 
   14169 
   14170   done
   14171 fi
   14172 
   14173 for ncn_progname in readelf; do
   14174   if test -n "$ncn_tool_prefix"; then
   14175     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   14176 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14178 $as_echo_n "checking for $ac_word... " >&6; }
   14179 if ${ac_cv_prog_READELF+:} false; then :
   14180   $as_echo_n "(cached) " >&6
   14181 else
   14182   if test -n "$READELF"; then
   14183   ac_cv_prog_READELF="$READELF" # Let the user override the test.
   14184 else
   14185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14186 for as_dir in $PATH
   14187 do
   14188   IFS=$as_save_IFS
   14189   test -z "$as_dir" && as_dir=.
   14190     for ac_exec_ext in '' $ac_executable_extensions; do
   14191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14192     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
   14193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14194     break 2
   14195   fi
   14196 done
   14197   done
   14198 IFS=$as_save_IFS
   14199 
   14200 fi
   14201 fi
   14202 READELF=$ac_cv_prog_READELF
   14203 if test -n "$READELF"; then
   14204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
   14205 $as_echo "$READELF" >&6; }
   14206 else
   14207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14208 $as_echo "no" >&6; }
   14209 fi
   14210 
   14211 
   14212   fi
   14213   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
   14214     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14215 set dummy ${ncn_progname}; ac_word=$2
   14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14217 $as_echo_n "checking for $ac_word... " >&6; }
   14218 if ${ac_cv_prog_READELF+:} false; then :
   14219   $as_echo_n "(cached) " >&6
   14220 else
   14221   if test -n "$READELF"; then
   14222   ac_cv_prog_READELF="$READELF" # Let the user override the test.
   14223 else
   14224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14225 for as_dir in $PATH
   14226 do
   14227   IFS=$as_save_IFS
   14228   test -z "$as_dir" && as_dir=.
   14229     for ac_exec_ext in '' $ac_executable_extensions; do
   14230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14231     ac_cv_prog_READELF="${ncn_progname}"
   14232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14233     break 2
   14234   fi
   14235 done
   14236   done
   14237 IFS=$as_save_IFS
   14238 
   14239 fi
   14240 fi
   14241 READELF=$ac_cv_prog_READELF
   14242 if test -n "$READELF"; then
   14243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
   14244 $as_echo "$READELF" >&6; }
   14245 else
   14246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14247 $as_echo "no" >&6; }
   14248 fi
   14249 
   14250 
   14251   fi
   14252   test -n "$ac_cv_prog_READELF" && break
   14253 done
   14254 
   14255 if test -z "$ac_cv_prog_READELF" ; then
   14256   set dummy readelf
   14257   if test $build = $host ; then
   14258     READELF="$2"
   14259   else
   14260     READELF="${ncn_tool_prefix}$2"
   14261   fi
   14262 fi
   14263 
   14264 
   14265 
   14266 
   14267 
   14268 
   14269 
   14270 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
   14271 
   14272 
   14273 # Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the
   14274 # wrong PLUGIN_OPTION with clang.
   14275 ac_ext=c
   14276 ac_cpp='$CPP $CPPFLAGS'
   14277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   14281 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   14282 # On Suns, sometimes $CPP names a directory.
   14283 if test -n "$CPP" && test -d "$CPP"; then
   14284   CPP=
   14285 fi
   14286 if test -z "$CPP"; then
   14287   if ${ac_cv_prog_CPP+:} false; then :
   14288   $as_echo_n "(cached) " >&6
   14289 else
   14290       # Double quotes because CPP needs to be expanded
   14291     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   14292     do
   14293       ac_preproc_ok=false
   14294 for ac_c_preproc_warn_flag in '' yes
   14295 do
   14296   # Use a header file that comes with gcc, so configuring glibc
   14297   # with a fresh cross-compiler works.
   14298   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   14299   # <limits.h> exists even on freestanding compilers.
   14300   # On the NeXT, cc -E runs the code through the compiler's parser,
   14301   # not just through cpp. "Syntax error" is here to catch this case.
   14302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14303 /* end confdefs.h.  */
   14304 #ifdef __STDC__
   14305 # include <limits.h>
   14306 #else
   14307 # include <assert.h>
   14308 #endif
   14309 		     Syntax error
   14310 _ACEOF
   14311 if ac_fn_c_try_cpp "$LINENO"; then :
   14312 
   14313 else
   14314   # Broken: fails on valid input.
   14315 continue
   14316 fi
   14317 rm -f conftest.err conftest.i conftest.$ac_ext
   14318 
   14319   # OK, works on sane cases.  Now check whether nonexistent headers
   14320   # can be detected and how.
   14321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14322 /* end confdefs.h.  */
   14323 #include <ac_nonexistent.h>
   14324 _ACEOF
   14325 if ac_fn_c_try_cpp "$LINENO"; then :
   14326   # Broken: success on invalid input.
   14327 continue
   14328 else
   14329   # Passes both tests.
   14330 ac_preproc_ok=:
   14331 break
   14332 fi
   14333 rm -f conftest.err conftest.i conftest.$ac_ext
   14334 
   14335 done
   14336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   14337 rm -f conftest.i conftest.err conftest.$ac_ext
   14338 if $ac_preproc_ok; then :
   14339   break
   14340 fi
   14341 
   14342     done
   14343     ac_cv_prog_CPP=$CPP
   14344 
   14345 fi
   14346   CPP=$ac_cv_prog_CPP
   14347 else
   14348   ac_cv_prog_CPP=$CPP
   14349 fi
   14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   14351 $as_echo "$CPP" >&6; }
   14352 ac_preproc_ok=false
   14353 for ac_c_preproc_warn_flag in '' yes
   14354 do
   14355   # Use a header file that comes with gcc, so configuring glibc
   14356   # with a fresh cross-compiler works.
   14357   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   14358   # <limits.h> exists even on freestanding compilers.
   14359   # On the NeXT, cc -E runs the code through the compiler's parser,
   14360   # not just through cpp. "Syntax error" is here to catch this case.
   14361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14362 /* end confdefs.h.  */
   14363 #ifdef __STDC__
   14364 # include <limits.h>
   14365 #else
   14366 # include <assert.h>
   14367 #endif
   14368 		     Syntax error
   14369 _ACEOF
   14370 if ac_fn_c_try_cpp "$LINENO"; then :
   14371 
   14372 else
   14373   # Broken: fails on valid input.
   14374 continue
   14375 fi
   14376 rm -f conftest.err conftest.i conftest.$ac_ext
   14377 
   14378   # OK, works on sane cases.  Now check whether nonexistent headers
   14379   # can be detected and how.
   14380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14381 /* end confdefs.h.  */
   14382 #include <ac_nonexistent.h>
   14383 _ACEOF
   14384 if ac_fn_c_try_cpp "$LINENO"; then :
   14385   # Broken: success on invalid input.
   14386 continue
   14387 else
   14388   # Passes both tests.
   14389 ac_preproc_ok=:
   14390 break
   14391 fi
   14392 rm -f conftest.err conftest.i conftest.$ac_ext
   14393 
   14394 done
   14395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   14396 rm -f conftest.i conftest.err conftest.$ac_ext
   14397 if $ac_preproc_ok; then :
   14398 
   14399 else
   14400   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14402 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   14403 See \`config.log' for more details" "$LINENO" 5; }
   14404 fi
   14405 
   14406 ac_ext=c
   14407 ac_cpp='$CPP $CPPFLAGS'
   14408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14411 
   14412 
   14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   14414 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   14415 if ${ac_cv_path_GREP+:} false; then :
   14416   $as_echo_n "(cached) " >&6
   14417 else
   14418   if test -z "$GREP"; then
   14419   ac_path_GREP_found=false
   14420   # Loop through the user's path and test for each of PROGNAME-LIST
   14421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   14423 do
   14424   IFS=$as_save_IFS
   14425   test -z "$as_dir" && as_dir=.
   14426     for ac_prog in grep ggrep; do
   14427     for ac_exec_ext in '' $ac_executable_extensions; do
   14428       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   14429       as_fn_executable_p "$ac_path_GREP" || continue
   14430 # Check for GNU ac_path_GREP and select it if it is found.
   14431   # Check for GNU $ac_path_GREP
   14432 case `"$ac_path_GREP" --version 2>&1` in
   14433 *GNU*)
   14434   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   14435 *)
   14436   ac_count=0
   14437   $as_echo_n 0123456789 >"conftest.in"
   14438   while :
   14439   do
   14440     cat "conftest.in" "conftest.in" >"conftest.tmp"
   14441     mv "conftest.tmp" "conftest.in"
   14442     cp "conftest.in" "conftest.nl"
   14443     $as_echo 'GREP' >> "conftest.nl"
   14444     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   14445     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   14446     as_fn_arith $ac_count + 1 && ac_count=$as_val
   14447     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   14448       # Best one so far, save it but keep looking for a better one
   14449       ac_cv_path_GREP="$ac_path_GREP"
   14450       ac_path_GREP_max=$ac_count
   14451     fi
   14452     # 10*(2^10) chars as input seems more than enough
   14453     test $ac_count -gt 10 && break
   14454   done
   14455   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   14456 esac
   14457 
   14458       $ac_path_GREP_found && break 3
   14459     done
   14460   done
   14461   done
   14462 IFS=$as_save_IFS
   14463   if test -z "$ac_cv_path_GREP"; then
   14464     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   14465   fi
   14466 else
   14467   ac_cv_path_GREP=$GREP
   14468 fi
   14469 
   14470 fi
   14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   14472 $as_echo "$ac_cv_path_GREP" >&6; }
   14473  GREP="$ac_cv_path_GREP"
   14474 
   14475 
   14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   14477 $as_echo_n "checking for egrep... " >&6; }
   14478 if ${ac_cv_path_EGREP+:} false; then :
   14479   $as_echo_n "(cached) " >&6
   14480 else
   14481   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   14482    then ac_cv_path_EGREP="$GREP -E"
   14483    else
   14484      if test -z "$EGREP"; then
   14485   ac_path_EGREP_found=false
   14486   # Loop through the user's path and test for each of PROGNAME-LIST
   14487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14488 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   14489 do
   14490   IFS=$as_save_IFS
   14491   test -z "$as_dir" && as_dir=.
   14492     for ac_prog in egrep; do
   14493     for ac_exec_ext in '' $ac_executable_extensions; do
   14494       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   14495       as_fn_executable_p "$ac_path_EGREP" || continue
   14496 # Check for GNU ac_path_EGREP and select it if it is found.
   14497   # Check for GNU $ac_path_EGREP
   14498 case `"$ac_path_EGREP" --version 2>&1` in
   14499 *GNU*)
   14500   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   14501 *)
   14502   ac_count=0
   14503   $as_echo_n 0123456789 >"conftest.in"
   14504   while :
   14505   do
   14506     cat "conftest.in" "conftest.in" >"conftest.tmp"
   14507     mv "conftest.tmp" "conftest.in"
   14508     cp "conftest.in" "conftest.nl"
   14509     $as_echo 'EGREP' >> "conftest.nl"
   14510     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   14511     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   14512     as_fn_arith $ac_count + 1 && ac_count=$as_val
   14513     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   14514       # Best one so far, save it but keep looking for a better one
   14515       ac_cv_path_EGREP="$ac_path_EGREP"
   14516       ac_path_EGREP_max=$ac_count
   14517     fi
   14518     # 10*(2^10) chars as input seems more than enough
   14519     test $ac_count -gt 10 && break
   14520   done
   14521   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   14522 esac
   14523 
   14524       $ac_path_EGREP_found && break 3
   14525     done
   14526   done
   14527   done
   14528 IFS=$as_save_IFS
   14529   if test -z "$ac_cv_path_EGREP"; then
   14530     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   14531   fi
   14532 else
   14533   ac_cv_path_EGREP=$EGREP
   14534 fi
   14535 
   14536    fi
   14537 fi
   14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   14539 $as_echo "$ac_cv_path_EGREP" >&6; }
   14540  EGREP="$ac_cv_path_EGREP"
   14541 
   14542 
   14543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
   14544 $as_echo_n "checking for clang... " >&6; }
   14545 if ${clang_cv_is_clang+:} false; then :
   14546   $as_echo_n "(cached) " >&6
   14547 else
   14548 
   14549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14550 /* end confdefs.h.  */
   14551 
   14552 #ifdef __clang__
   14553   yes
   14554 #endif
   14555 
   14556 _ACEOF
   14557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14558   $EGREP "yes" >/dev/null 2>&1; then :
   14559   clang_cv_is_clang=yes
   14560 else
   14561   clang_cv_is_clang=no
   14562 fi
   14563 rm -f conftest*
   14564 
   14565 fi
   14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
   14567 $as_echo "$clang_cv_is_clang" >&6; }
   14568   if test -n "$ac_tool_prefix"; then
   14569   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
   14570 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
   14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14572 $as_echo_n "checking for $ac_word... " >&6; }
   14573 if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
   14574   $as_echo_n "(cached) " >&6
   14575 else
   14576   if test -n "$LLVM_CONFIG"; then
   14577   ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
   14578 else
   14579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14580 for as_dir in $PATH
   14581 do
   14582   IFS=$as_save_IFS
   14583   test -z "$as_dir" && as_dir=.
   14584     for ac_exec_ext in '' $ac_executable_extensions; do
   14585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14586     ac_cv_prog_LLVM_CONFIG="${ac_tool_prefix}llvm-config"
   14587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14588     break 2
   14589   fi
   14590 done
   14591   done
   14592 IFS=$as_save_IFS
   14593 
   14594 fi
   14595 fi
   14596 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
   14597 if test -n "$LLVM_CONFIG"; then
   14598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
   14599 $as_echo "$LLVM_CONFIG" >&6; }
   14600 else
   14601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14602 $as_echo "no" >&6; }
   14603 fi
   14604 
   14605 
   14606 fi
   14607 if test -z "$ac_cv_prog_LLVM_CONFIG"; then
   14608   ac_ct_LLVM_CONFIG=$LLVM_CONFIG
   14609   # Extract the first word of "llvm-config", so it can be a program name with args.
   14610 set dummy llvm-config; ac_word=$2
   14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14612 $as_echo_n "checking for $ac_word... " >&6; }
   14613 if ${ac_cv_prog_ac_ct_LLVM_CONFIG+:} false; then :
   14614   $as_echo_n "(cached) " >&6
   14615 else
   14616   if test -n "$ac_ct_LLVM_CONFIG"; then
   14617   ac_cv_prog_ac_ct_LLVM_CONFIG="$ac_ct_LLVM_CONFIG" # Let the user override the test.
   14618 else
   14619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14620 for as_dir in $PATH
   14621 do
   14622   IFS=$as_save_IFS
   14623   test -z "$as_dir" && as_dir=.
   14624     for ac_exec_ext in '' $ac_executable_extensions; do
   14625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14626     ac_cv_prog_ac_ct_LLVM_CONFIG="llvm-config"
   14627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14628     break 2
   14629   fi
   14630 done
   14631   done
   14632 IFS=$as_save_IFS
   14633 
   14634 fi
   14635 fi
   14636 ac_ct_LLVM_CONFIG=$ac_cv_prog_ac_ct_LLVM_CONFIG
   14637 if test -n "$ac_ct_LLVM_CONFIG"; then
   14638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LLVM_CONFIG" >&5
   14639 $as_echo "$ac_ct_LLVM_CONFIG" >&6; }
   14640 else
   14641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14642 $as_echo "no" >&6; }
   14643 fi
   14644 
   14645   if test "x$ac_ct_LLVM_CONFIG" = x; then
   14646     LLVM_CONFIG=""
   14647   else
   14648     case $cross_compiling:$ac_tool_warned in
   14649 yes:)
   14650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14652 ac_tool_warned=yes ;;
   14653 esac
   14654     LLVM_CONFIG=$ac_ct_LLVM_CONFIG
   14655   fi
   14656 else
   14657   LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
   14658 fi
   14659 
   14660   plugin_file=
   14661   if test $clang_cv_is_clang = yes; then
   14662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
   14663 $as_echo_n "checking for clang plugin file... " >&6; }
   14664     plugin_names="LLVMgold.so"
   14665     for plugin in $plugin_names; do
   14666       plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
   14667       if test "$plugin_file" != "$plugin"; then
   14668 	break;
   14669       fi
   14670       if test -n "${LLVM_CONFIG}"; then
   14671 	plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
   14672 	if test -f "$plugin_file"; then
   14673 	  break;
   14674 	fi
   14675       fi
   14676       plugin_file=
   14677     done
   14678     if test -z "$plugin_file"; then
   14679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14680 $as_echo "no" >&6; }
   14681     else
   14682       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
   14683 $as_echo "$plugin_file" >&6; }
   14684             if test -n "$ac_tool_prefix"; then
   14685   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   14686 set dummy ${ac_tool_prefix}ar; ac_word=$2
   14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14688 $as_echo_n "checking for $ac_word... " >&6; }
   14689 if ${ac_cv_prog_AR+:} false; then :
   14690   $as_echo_n "(cached) " >&6
   14691 else
   14692   if test -n "$AR"; then
   14693   ac_cv_prog_AR="$AR" # Let the user override the test.
   14694 else
   14695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14696 for as_dir in $PATH
   14697 do
   14698   IFS=$as_save_IFS
   14699   test -z "$as_dir" && as_dir=.
   14700     for ac_exec_ext in '' $ac_executable_extensions; do
   14701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14702     ac_cv_prog_AR="${ac_tool_prefix}ar"
   14703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14704     break 2
   14705   fi
   14706 done
   14707   done
   14708 IFS=$as_save_IFS
   14709 
   14710 fi
   14711 fi
   14712 AR=$ac_cv_prog_AR
   14713 if test -n "$AR"; then
   14714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   14715 $as_echo "$AR" >&6; }
   14716 else
   14717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14718 $as_echo "no" >&6; }
   14719 fi
   14720 
   14721 
   14722 fi
   14723 if test -z "$ac_cv_prog_AR"; then
   14724   ac_ct_AR=$AR
   14725   # Extract the first word of "ar", so it can be a program name with args.
   14726 set dummy ar; ac_word=$2
   14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14728 $as_echo_n "checking for $ac_word... " >&6; }
   14729 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   14730   $as_echo_n "(cached) " >&6
   14731 else
   14732   if test -n "$ac_ct_AR"; then
   14733   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   14734 else
   14735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14736 for as_dir in $PATH
   14737 do
   14738   IFS=$as_save_IFS
   14739   test -z "$as_dir" && as_dir=.
   14740     for ac_exec_ext in '' $ac_executable_extensions; do
   14741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14742     ac_cv_prog_ac_ct_AR="ar"
   14743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14744     break 2
   14745   fi
   14746 done
   14747   done
   14748 IFS=$as_save_IFS
   14749 
   14750 fi
   14751 fi
   14752 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   14753 if test -n "$ac_ct_AR"; then
   14754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   14755 $as_echo "$ac_ct_AR" >&6; }
   14756 else
   14757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14758 $as_echo "no" >&6; }
   14759 fi
   14760 
   14761   if test "x$ac_ct_AR" = x; then
   14762     AR=""
   14763   else
   14764     case $cross_compiling:$ac_tool_warned in
   14765 yes:)
   14766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14768 ac_tool_warned=yes ;;
   14769 esac
   14770     AR=$ac_ct_AR
   14771   fi
   14772 else
   14773   AR="$ac_cv_prog_AR"
   14774 fi
   14775 
   14776       if test -z "${AR}"; then
   14777 	as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
   14778       fi
   14779       plugin_option="--plugin $plugin_file"
   14780       touch conftest.c
   14781       ${AR} $plugin_option rc conftest.a conftest.c
   14782       if test "$?" != 0; then
   14783 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
   14784 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
   14785 	plugin_file=
   14786       fi
   14787       rm -f conftest.*
   14788     fi
   14789   fi
   14790   PLUGIN_FILE="$plugin_file"
   14791 
   14792 if test -n "$PLUGIN_FILE"; then
   14793   PLUGIN_OPTION="--plugin $PLUGIN_FILE"
   14794 else
   14795   if test -n "$ac_tool_prefix"; then
   14796   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   14797 set dummy ${ac_tool_prefix}ar; ac_word=$2
   14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14799 $as_echo_n "checking for $ac_word... " >&6; }
   14800 if ${ac_cv_prog_AR+:} false; then :
   14801   $as_echo_n "(cached) " >&6
   14802 else
   14803   if test -n "$AR"; then
   14804   ac_cv_prog_AR="$AR" # Let the user override the test.
   14805 else
   14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14807 for as_dir in $PATH
   14808 do
   14809   IFS=$as_save_IFS
   14810   test -z "$as_dir" && as_dir=.
   14811     for ac_exec_ext in '' $ac_executable_extensions; do
   14812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14813     ac_cv_prog_AR="${ac_tool_prefix}ar"
   14814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14815     break 2
   14816   fi
   14817 done
   14818   done
   14819 IFS=$as_save_IFS
   14820 
   14821 fi
   14822 fi
   14823 AR=$ac_cv_prog_AR
   14824 if test -n "$AR"; then
   14825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   14826 $as_echo "$AR" >&6; }
   14827 else
   14828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14829 $as_echo "no" >&6; }
   14830 fi
   14831 
   14832 
   14833 fi
   14834 if test -z "$ac_cv_prog_AR"; then
   14835   ac_ct_AR=$AR
   14836   # Extract the first word of "ar", so it can be a program name with args.
   14837 set dummy ar; ac_word=$2
   14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14839 $as_echo_n "checking for $ac_word... " >&6; }
   14840 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   14841   $as_echo_n "(cached) " >&6
   14842 else
   14843   if test -n "$ac_ct_AR"; then
   14844   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   14845 else
   14846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14847 for as_dir in $PATH
   14848 do
   14849   IFS=$as_save_IFS
   14850   test -z "$as_dir" && as_dir=.
   14851     for ac_exec_ext in '' $ac_executable_extensions; do
   14852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14853     ac_cv_prog_ac_ct_AR="ar"
   14854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14855     break 2
   14856   fi
   14857 done
   14858   done
   14859 IFS=$as_save_IFS
   14860 
   14861 fi
   14862 fi
   14863 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   14864 if test -n "$ac_ct_AR"; then
   14865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   14866 $as_echo "$ac_ct_AR" >&6; }
   14867 else
   14868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14869 $as_echo "no" >&6; }
   14870 fi
   14871 
   14872   if test "x$ac_ct_AR" = x; then
   14873     AR=""
   14874   else
   14875     case $cross_compiling:$ac_tool_warned in
   14876 yes:)
   14877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14879 ac_tool_warned=yes ;;
   14880 esac
   14881     AR=$ac_ct_AR
   14882   fi
   14883 else
   14884   AR="$ac_cv_prog_AR"
   14885 fi
   14886 
   14887 if test -z "${AR}"; then
   14888   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
   14889 fi
   14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
   14891 $as_echo_n "checking for -plugin option... " >&6; }
   14892 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
   14893 plugin_option=
   14894 for plugin in $plugin_names; do
   14895   plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
   14896   if test x$plugin_so = x$plugin; then
   14897     plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
   14898   fi
   14899   if test x$plugin_so != x$plugin; then
   14900     plugin_option="--plugin $plugin_so"
   14901     break
   14902   fi
   14903 done
   14904 if test -z "$plugin_option"; then
   14905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14906 $as_echo "no" >&6; }
   14907 else
   14908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
   14909 $as_echo "$plugin_option" >&6; }
   14910     touch conftest.c
   14911   ${AR} $plugin_option rc conftest.a conftest.c
   14912   if test "$?" != 0; then
   14913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
   14914 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
   14915     plugin_option=
   14916   fi
   14917   rm -f conftest.*
   14918 fi
   14919 PLUGIN_OPTION="$plugin_option"
   14920 
   14921 fi
   14922 AR_PLUGIN_OPTION=
   14923 NM_PLUGIN_OPTION=
   14924 RANLIB_PLUGIN_OPTION=
   14925 if test -n "$PLUGIN_OPTION"; then
   14926   if $AR --help 2>&1 | grep -q "\--plugin"; then
   14927     AR_PLUGIN_OPTION="$PLUGIN_OPTION"
   14928   fi
   14929   if $NM --help 2>&1 | grep -q "\--plugin"; then
   14930     NM_PLUGIN_OPTION="$PLUGIN_OPTION"
   14931   fi
   14932   if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
   14933     RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
   14934   fi
   14935 fi
   14936 
   14937 
   14938 
   14939 
   14940 # Target tools.
   14941 
   14942 # Check whether --with-build-time-tools was given.
   14943 if test "${with_build_time_tools+set}" = set; then :
   14944   withval=$with_build_time_tools; case x"$withval" in
   14945      x/*) ;;
   14946      *)
   14947        with_build_time_tools=
   14948        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
   14949 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
   14950        ;;
   14951    esac
   14952 else
   14953   with_build_time_tools=
   14954 fi
   14955 
   14956 
   14957 
   14958 
   14959 if test -n "$CC_FOR_TARGET"; then
   14960   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
   14961 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
   14962   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
   14963 fi
   14964 
   14965 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
   14966   for ncn_progname in cc gcc; do
   14967     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14968 set dummy ${ncn_progname}; ac_word=$2
   14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14970 $as_echo_n "checking for $ac_word... " >&6; }
   14971 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
   14972   $as_echo_n "(cached) " >&6
   14973 else
   14974   if test -n "$CC_FOR_TARGET"; then
   14975   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
   14976 else
   14977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14978 for as_dir in $PATH
   14979 do
   14980   IFS=$as_save_IFS
   14981   test -z "$as_dir" && as_dir=.
   14982     for ac_exec_ext in '' $ac_executable_extensions; do
   14983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14984     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
   14985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14986     break 2
   14987   fi
   14988 done
   14989   done
   14990 IFS=$as_save_IFS
   14991 
   14992 fi
   14993 fi
   14994 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
   14995 if test -n "$CC_FOR_TARGET"; then
   14996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
   14997 $as_echo "$CC_FOR_TARGET" >&6; }
   14998 else
   14999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15000 $as_echo "no" >&6; }
   15001 fi
   15002 
   15003 
   15004   done
   15005 fi
   15006 
   15007 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15008   for ncn_progname in cc gcc; do
   15009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15010 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15011     if test -x $with_build_time_tools/${ncn_progname}; then
   15012       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15014 $as_echo "yes" >&6; }
   15015       break
   15016     else
   15017       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15018 $as_echo "no" >&6; }
   15019     fi
   15020   done
   15021 fi
   15022 
   15023 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
   15024   for ncn_progname in cc gcc; do
   15025     if test -n "$ncn_target_tool_prefix"; then
   15026       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   15027 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15029 $as_echo_n "checking for $ac_word... " >&6; }
   15030 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
   15031   $as_echo_n "(cached) " >&6
   15032 else
   15033   if test -n "$CC_FOR_TARGET"; then
   15034   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
   15035 else
   15036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15037 for as_dir in $PATH
   15038 do
   15039   IFS=$as_save_IFS
   15040   test -z "$as_dir" && as_dir=.
   15041     for ac_exec_ext in '' $ac_executable_extensions; do
   15042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15043     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   15044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15045     break 2
   15046   fi
   15047 done
   15048   done
   15049 IFS=$as_save_IFS
   15050 
   15051 fi
   15052 fi
   15053 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
   15054 if test -n "$CC_FOR_TARGET"; then
   15055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
   15056 $as_echo "$CC_FOR_TARGET" >&6; }
   15057 else
   15058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15059 $as_echo "no" >&6; }
   15060 fi
   15061 
   15062 
   15063     fi
   15064     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
   15065       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15066 set dummy ${ncn_progname}; ac_word=$2
   15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15068 $as_echo_n "checking for $ac_word... " >&6; }
   15069 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
   15070   $as_echo_n "(cached) " >&6
   15071 else
   15072   if test -n "$CC_FOR_TARGET"; then
   15073   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
   15074 else
   15075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15076 for as_dir in $PATH
   15077 do
   15078   IFS=$as_save_IFS
   15079   test -z "$as_dir" && as_dir=.
   15080     for ac_exec_ext in '' $ac_executable_extensions; do
   15081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15082     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
   15083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15084     break 2
   15085   fi
   15086 done
   15087   done
   15088 IFS=$as_save_IFS
   15089 
   15090 fi
   15091 fi
   15092 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
   15093 if test -n "$CC_FOR_TARGET"; then
   15094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
   15095 $as_echo "$CC_FOR_TARGET" >&6; }
   15096 else
   15097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15098 $as_echo "no" >&6; }
   15099 fi
   15100 
   15101 
   15102     fi
   15103     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
   15104   done
   15105 fi
   15106 
   15107 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
   15108   set dummy cc gcc
   15109   if test $build = $target ; then
   15110     CC_FOR_TARGET="$2"
   15111   else
   15112     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
   15113   fi
   15114 else
   15115   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
   15116 fi
   15117 
   15118 
   15119 
   15120 if test -n "$CXX_FOR_TARGET"; then
   15121   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
   15122 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
   15123   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
   15124 fi
   15125 
   15126 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
   15127   for ncn_progname in c++ g++ cxx gxx; do
   15128     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15129 set dummy ${ncn_progname}; ac_word=$2
   15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15131 $as_echo_n "checking for $ac_word... " >&6; }
   15132 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
   15133   $as_echo_n "(cached) " >&6
   15134 else
   15135   if test -n "$CXX_FOR_TARGET"; then
   15136   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
   15137 else
   15138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15139 for as_dir in $PATH
   15140 do
   15141   IFS=$as_save_IFS
   15142   test -z "$as_dir" && as_dir=.
   15143     for ac_exec_ext in '' $ac_executable_extensions; do
   15144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15145     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
   15146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15147     break 2
   15148   fi
   15149 done
   15150   done
   15151 IFS=$as_save_IFS
   15152 
   15153 fi
   15154 fi
   15155 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
   15156 if test -n "$CXX_FOR_TARGET"; then
   15157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
   15158 $as_echo "$CXX_FOR_TARGET" >&6; }
   15159 else
   15160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15161 $as_echo "no" >&6; }
   15162 fi
   15163 
   15164 
   15165   done
   15166 fi
   15167 
   15168 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15169   for ncn_progname in c++ g++ cxx gxx; do
   15170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15171 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15172     if test -x $with_build_time_tools/${ncn_progname}; then
   15173       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15175 $as_echo "yes" >&6; }
   15176       break
   15177     else
   15178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15179 $as_echo "no" >&6; }
   15180     fi
   15181   done
   15182 fi
   15183 
   15184 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
   15185   for ncn_progname in c++ g++ cxx gxx; do
   15186     if test -n "$ncn_target_tool_prefix"; then
   15187       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   15188 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15190 $as_echo_n "checking for $ac_word... " >&6; }
   15191 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
   15192   $as_echo_n "(cached) " >&6
   15193 else
   15194   if test -n "$CXX_FOR_TARGET"; then
   15195   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
   15196 else
   15197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15198 for as_dir in $PATH
   15199 do
   15200   IFS=$as_save_IFS
   15201   test -z "$as_dir" && as_dir=.
   15202     for ac_exec_ext in '' $ac_executable_extensions; do
   15203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15204     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   15205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15206     break 2
   15207   fi
   15208 done
   15209   done
   15210 IFS=$as_save_IFS
   15211 
   15212 fi
   15213 fi
   15214 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
   15215 if test -n "$CXX_FOR_TARGET"; then
   15216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
   15217 $as_echo "$CXX_FOR_TARGET" >&6; }
   15218 else
   15219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15220 $as_echo "no" >&6; }
   15221 fi
   15222 
   15223 
   15224     fi
   15225     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
   15226       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15227 set dummy ${ncn_progname}; ac_word=$2
   15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15229 $as_echo_n "checking for $ac_word... " >&6; }
   15230 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
   15231   $as_echo_n "(cached) " >&6
   15232 else
   15233   if test -n "$CXX_FOR_TARGET"; then
   15234   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
   15235 else
   15236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15237 for as_dir in $PATH
   15238 do
   15239   IFS=$as_save_IFS
   15240   test -z "$as_dir" && as_dir=.
   15241     for ac_exec_ext in '' $ac_executable_extensions; do
   15242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15243     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
   15244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15245     break 2
   15246   fi
   15247 done
   15248   done
   15249 IFS=$as_save_IFS
   15250 
   15251 fi
   15252 fi
   15253 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
   15254 if test -n "$CXX_FOR_TARGET"; then
   15255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
   15256 $as_echo "$CXX_FOR_TARGET" >&6; }
   15257 else
   15258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15259 $as_echo "no" >&6; }
   15260 fi
   15261 
   15262 
   15263     fi
   15264     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
   15265   done
   15266 fi
   15267 
   15268 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
   15269   set dummy c++ g++ cxx gxx
   15270   if test $build = $target ; then
   15271     CXX_FOR_TARGET="$2"
   15272   else
   15273     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
   15274   fi
   15275 else
   15276   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
   15277 fi
   15278 
   15279 
   15280 
   15281 if test -n "$GCC_FOR_TARGET"; then
   15282   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
   15283 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
   15284   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
   15285 fi
   15286 
   15287 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
   15288   for ncn_progname in gcc; do
   15289     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15290 set dummy ${ncn_progname}; ac_word=$2
   15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15292 $as_echo_n "checking for $ac_word... " >&6; }
   15293 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
   15294   $as_echo_n "(cached) " >&6
   15295 else
   15296   if test -n "$GCC_FOR_TARGET"; then
   15297   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
   15298 else
   15299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15300 for as_dir in $PATH
   15301 do
   15302   IFS=$as_save_IFS
   15303   test -z "$as_dir" && as_dir=.
   15304     for ac_exec_ext in '' $ac_executable_extensions; do
   15305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15306     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
   15307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15308     break 2
   15309   fi
   15310 done
   15311   done
   15312 IFS=$as_save_IFS
   15313 
   15314 fi
   15315 fi
   15316 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
   15317 if test -n "$GCC_FOR_TARGET"; then
   15318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
   15319 $as_echo "$GCC_FOR_TARGET" >&6; }
   15320 else
   15321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15322 $as_echo "no" >&6; }
   15323 fi
   15324 
   15325 
   15326   done
   15327 fi
   15328 
   15329 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15330   for ncn_progname in gcc; do
   15331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15332 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15333     if test -x $with_build_time_tools/${ncn_progname}; then
   15334       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15335       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15336 $as_echo "yes" >&6; }
   15337       break
   15338     else
   15339       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15340 $as_echo "no" >&6; }
   15341     fi
   15342   done
   15343 fi
   15344 
   15345 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
   15346   for ncn_progname in gcc; do
   15347     if test -n "$ncn_target_tool_prefix"; then
   15348       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   15349 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15351 $as_echo_n "checking for $ac_word... " >&6; }
   15352 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
   15353   $as_echo_n "(cached) " >&6
   15354 else
   15355   if test -n "$GCC_FOR_TARGET"; then
   15356   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
   15357 else
   15358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15359 for as_dir in $PATH
   15360 do
   15361   IFS=$as_save_IFS
   15362   test -z "$as_dir" && as_dir=.
   15363     for ac_exec_ext in '' $ac_executable_extensions; do
   15364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15365     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   15366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15367     break 2
   15368   fi
   15369 done
   15370   done
   15371 IFS=$as_save_IFS
   15372 
   15373 fi
   15374 fi
   15375 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
   15376 if test -n "$GCC_FOR_TARGET"; then
   15377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
   15378 $as_echo "$GCC_FOR_TARGET" >&6; }
   15379 else
   15380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15381 $as_echo "no" >&6; }
   15382 fi
   15383 
   15384 
   15385     fi
   15386     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
   15387       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15388 set dummy ${ncn_progname}; ac_word=$2
   15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15390 $as_echo_n "checking for $ac_word... " >&6; }
   15391 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
   15392   $as_echo_n "(cached) " >&6
   15393 else
   15394   if test -n "$GCC_FOR_TARGET"; then
   15395   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
   15396 else
   15397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15398 for as_dir in $PATH
   15399 do
   15400   IFS=$as_save_IFS
   15401   test -z "$as_dir" && as_dir=.
   15402     for ac_exec_ext in '' $ac_executable_extensions; do
   15403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15404     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
   15405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15406     break 2
   15407   fi
   15408 done
   15409   done
   15410 IFS=$as_save_IFS
   15411 
   15412 fi
   15413 fi
   15414 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
   15415 if test -n "$GCC_FOR_TARGET"; then
   15416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
   15417 $as_echo "$GCC_FOR_TARGET" >&6; }
   15418 else
   15419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15420 $as_echo "no" >&6; }
   15421 fi
   15422 
   15423 
   15424     fi
   15425     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
   15426   done
   15427 fi
   15428 
   15429 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
   15430   GCC_FOR_TARGET="${CC_FOR_TARGET}"
   15431 else
   15432   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
   15433 fi
   15434 
   15435 
   15436 
   15437 if test -n "$GFORTRAN_FOR_TARGET"; then
   15438   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
   15439 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
   15440   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
   15441 fi
   15442 
   15443 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
   15444   for ncn_progname in gfortran; do
   15445     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15446 set dummy ${ncn_progname}; ac_word=$2
   15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15448 $as_echo_n "checking for $ac_word... " >&6; }
   15449 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
   15450   $as_echo_n "(cached) " >&6
   15451 else
   15452   if test -n "$GFORTRAN_FOR_TARGET"; then
   15453   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
   15454 else
   15455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15456 for as_dir in $PATH
   15457 do
   15458   IFS=$as_save_IFS
   15459   test -z "$as_dir" && as_dir=.
   15460     for ac_exec_ext in '' $ac_executable_extensions; do
   15461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15462     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
   15463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15464     break 2
   15465   fi
   15466 done
   15467   done
   15468 IFS=$as_save_IFS
   15469 
   15470 fi
   15471 fi
   15472 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
   15473 if test -n "$GFORTRAN_FOR_TARGET"; then
   15474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
   15475 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
   15476 else
   15477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15478 $as_echo "no" >&6; }
   15479 fi
   15480 
   15481 
   15482   done
   15483 fi
   15484 
   15485 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15486   for ncn_progname in gfortran; do
   15487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15488 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15489     if test -x $with_build_time_tools/${ncn_progname}; then
   15490       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15492 $as_echo "yes" >&6; }
   15493       break
   15494     else
   15495       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15496 $as_echo "no" >&6; }
   15497     fi
   15498   done
   15499 fi
   15500 
   15501 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
   15502   for ncn_progname in gfortran; do
   15503     if test -n "$ncn_target_tool_prefix"; then
   15504       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   15505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15507 $as_echo_n "checking for $ac_word... " >&6; }
   15508 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
   15509   $as_echo_n "(cached) " >&6
   15510 else
   15511   if test -n "$GFORTRAN_FOR_TARGET"; then
   15512   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
   15513 else
   15514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15515 for as_dir in $PATH
   15516 do
   15517   IFS=$as_save_IFS
   15518   test -z "$as_dir" && as_dir=.
   15519     for ac_exec_ext in '' $ac_executable_extensions; do
   15520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15521     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   15522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15523     break 2
   15524   fi
   15525 done
   15526   done
   15527 IFS=$as_save_IFS
   15528 
   15529 fi
   15530 fi
   15531 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
   15532 if test -n "$GFORTRAN_FOR_TARGET"; then
   15533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
   15534 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
   15535 else
   15536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15537 $as_echo "no" >&6; }
   15538 fi
   15539 
   15540 
   15541     fi
   15542     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
   15543       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15544 set dummy ${ncn_progname}; ac_word=$2
   15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15546 $as_echo_n "checking for $ac_word... " >&6; }
   15547 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
   15548   $as_echo_n "(cached) " >&6
   15549 else
   15550   if test -n "$GFORTRAN_FOR_TARGET"; then
   15551   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
   15552 else
   15553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15554 for as_dir in $PATH
   15555 do
   15556   IFS=$as_save_IFS
   15557   test -z "$as_dir" && as_dir=.
   15558     for ac_exec_ext in '' $ac_executable_extensions; do
   15559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15560     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
   15561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15562     break 2
   15563   fi
   15564 done
   15565   done
   15566 IFS=$as_save_IFS
   15567 
   15568 fi
   15569 fi
   15570 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
   15571 if test -n "$GFORTRAN_FOR_TARGET"; then
   15572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
   15573 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
   15574 else
   15575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15576 $as_echo "no" >&6; }
   15577 fi
   15578 
   15579 
   15580     fi
   15581     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
   15582   done
   15583 fi
   15584 
   15585 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
   15586   set dummy gfortran
   15587   if test $build = $target ; then
   15588     GFORTRAN_FOR_TARGET="$2"
   15589   else
   15590     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
   15591   fi
   15592 else
   15593   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
   15594 fi
   15595 
   15596 
   15597 
   15598 if test -n "$GOC_FOR_TARGET"; then
   15599   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
   15600 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
   15601   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
   15602 fi
   15603 
   15604 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
   15605   for ncn_progname in gccgo; do
   15606     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15607 set dummy ${ncn_progname}; ac_word=$2
   15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15609 $as_echo_n "checking for $ac_word... " >&6; }
   15610 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
   15611   $as_echo_n "(cached) " >&6
   15612 else
   15613   if test -n "$GOC_FOR_TARGET"; then
   15614   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
   15615 else
   15616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15617 for as_dir in $PATH
   15618 do
   15619   IFS=$as_save_IFS
   15620   test -z "$as_dir" && as_dir=.
   15621     for ac_exec_ext in '' $ac_executable_extensions; do
   15622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15623     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
   15624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15625     break 2
   15626   fi
   15627 done
   15628   done
   15629 IFS=$as_save_IFS
   15630 
   15631 fi
   15632 fi
   15633 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
   15634 if test -n "$GOC_FOR_TARGET"; then
   15635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
   15636 $as_echo "$GOC_FOR_TARGET" >&6; }
   15637 else
   15638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15639 $as_echo "no" >&6; }
   15640 fi
   15641 
   15642 
   15643   done
   15644 fi
   15645 
   15646 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15647   for ncn_progname in gccgo; do
   15648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15649 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15650     if test -x $with_build_time_tools/${ncn_progname}; then
   15651       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15652       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15653 $as_echo "yes" >&6; }
   15654       break
   15655     else
   15656       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15657 $as_echo "no" >&6; }
   15658     fi
   15659   done
   15660 fi
   15661 
   15662 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
   15663   for ncn_progname in gccgo; do
   15664     if test -n "$ncn_target_tool_prefix"; then
   15665       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   15666 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15668 $as_echo_n "checking for $ac_word... " >&6; }
   15669 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
   15670   $as_echo_n "(cached) " >&6
   15671 else
   15672   if test -n "$GOC_FOR_TARGET"; then
   15673   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
   15674 else
   15675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15676 for as_dir in $PATH
   15677 do
   15678   IFS=$as_save_IFS
   15679   test -z "$as_dir" && as_dir=.
   15680     for ac_exec_ext in '' $ac_executable_extensions; do
   15681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15682     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   15683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15684     break 2
   15685   fi
   15686 done
   15687   done
   15688 IFS=$as_save_IFS
   15689 
   15690 fi
   15691 fi
   15692 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
   15693 if test -n "$GOC_FOR_TARGET"; then
   15694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
   15695 $as_echo "$GOC_FOR_TARGET" >&6; }
   15696 else
   15697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15698 $as_echo "no" >&6; }
   15699 fi
   15700 
   15701 
   15702     fi
   15703     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
   15704       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15705 set dummy ${ncn_progname}; ac_word=$2
   15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15707 $as_echo_n "checking for $ac_word... " >&6; }
   15708 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
   15709   $as_echo_n "(cached) " >&6
   15710 else
   15711   if test -n "$GOC_FOR_TARGET"; then
   15712   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
   15713 else
   15714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15715 for as_dir in $PATH
   15716 do
   15717   IFS=$as_save_IFS
   15718   test -z "$as_dir" && as_dir=.
   15719     for ac_exec_ext in '' $ac_executable_extensions; do
   15720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15721     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
   15722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15723     break 2
   15724   fi
   15725 done
   15726   done
   15727 IFS=$as_save_IFS
   15728 
   15729 fi
   15730 fi
   15731 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
   15732 if test -n "$GOC_FOR_TARGET"; then
   15733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
   15734 $as_echo "$GOC_FOR_TARGET" >&6; }
   15735 else
   15736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15737 $as_echo "no" >&6; }
   15738 fi
   15739 
   15740 
   15741     fi
   15742     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
   15743   done
   15744 fi
   15745 
   15746 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
   15747   set dummy gccgo
   15748   if test $build = $target ; then
   15749     GOC_FOR_TARGET="$2"
   15750   else
   15751     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
   15752   fi
   15753 else
   15754   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
   15755 fi
   15756 
   15757 
   15758 
   15759 if test -n "$GDC_FOR_TARGET"; then
   15760   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
   15761 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
   15762   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
   15763 fi
   15764 
   15765 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
   15766   for ncn_progname in gdc; do
   15767     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15768 set dummy ${ncn_progname}; ac_word=$2
   15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15770 $as_echo_n "checking for $ac_word... " >&6; }
   15771 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
   15772   $as_echo_n "(cached) " >&6
   15773 else
   15774   if test -n "$GDC_FOR_TARGET"; then
   15775   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
   15776 else
   15777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15778 for as_dir in $PATH
   15779 do
   15780   IFS=$as_save_IFS
   15781   test -z "$as_dir" && as_dir=.
   15782     for ac_exec_ext in '' $ac_executable_extensions; do
   15783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15784     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
   15785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15786     break 2
   15787   fi
   15788 done
   15789   done
   15790 IFS=$as_save_IFS
   15791 
   15792 fi
   15793 fi
   15794 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
   15795 if test -n "$GDC_FOR_TARGET"; then
   15796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
   15797 $as_echo "$GDC_FOR_TARGET" >&6; }
   15798 else
   15799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15800 $as_echo "no" >&6; }
   15801 fi
   15802 
   15803 
   15804   done
   15805 fi
   15806 
   15807 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15808   for ncn_progname in gdc; do
   15809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15810 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15811     if test -x $with_build_time_tools/${ncn_progname}; then
   15812       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15813       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15814 $as_echo "yes" >&6; }
   15815       break
   15816     else
   15817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15818 $as_echo "no" >&6; }
   15819     fi
   15820   done
   15821 fi
   15822 
   15823 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
   15824   for ncn_progname in gdc; do
   15825     if test -n "$ncn_target_tool_prefix"; then
   15826       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   15827 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15829 $as_echo_n "checking for $ac_word... " >&6; }
   15830 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
   15831   $as_echo_n "(cached) " >&6
   15832 else
   15833   if test -n "$GDC_FOR_TARGET"; then
   15834   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
   15835 else
   15836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15837 for as_dir in $PATH
   15838 do
   15839   IFS=$as_save_IFS
   15840   test -z "$as_dir" && as_dir=.
   15841     for ac_exec_ext in '' $ac_executable_extensions; do
   15842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15843     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   15844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15845     break 2
   15846   fi
   15847 done
   15848   done
   15849 IFS=$as_save_IFS
   15850 
   15851 fi
   15852 fi
   15853 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
   15854 if test -n "$GDC_FOR_TARGET"; then
   15855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
   15856 $as_echo "$GDC_FOR_TARGET" >&6; }
   15857 else
   15858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15859 $as_echo "no" >&6; }
   15860 fi
   15861 
   15862 
   15863     fi
   15864     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
   15865       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15866 set dummy ${ncn_progname}; ac_word=$2
   15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15868 $as_echo_n "checking for $ac_word... " >&6; }
   15869 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
   15870   $as_echo_n "(cached) " >&6
   15871 else
   15872   if test -n "$GDC_FOR_TARGET"; then
   15873   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
   15874 else
   15875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15876 for as_dir in $PATH
   15877 do
   15878   IFS=$as_save_IFS
   15879   test -z "$as_dir" && as_dir=.
   15880     for ac_exec_ext in '' $ac_executable_extensions; do
   15881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15882     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
   15883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15884     break 2
   15885   fi
   15886 done
   15887   done
   15888 IFS=$as_save_IFS
   15889 
   15890 fi
   15891 fi
   15892 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
   15893 if test -n "$GDC_FOR_TARGET"; then
   15894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
   15895 $as_echo "$GDC_FOR_TARGET" >&6; }
   15896 else
   15897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15898 $as_echo "no" >&6; }
   15899 fi
   15900 
   15901 
   15902     fi
   15903     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
   15904   done
   15905 fi
   15906 
   15907 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
   15908   set dummy gdc
   15909   if test $build = $target ; then
   15910     GDC_FOR_TARGET="$2"
   15911   else
   15912     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
   15913   fi
   15914 else
   15915   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
   15916 fi
   15917 
   15918 
   15919 
   15920 if test -n "$GM2_FOR_TARGET"; then
   15921   ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
   15922 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
   15923   GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
   15924 fi
   15925 
   15926 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
   15927   for ncn_progname in gm2; do
   15928     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15929 set dummy ${ncn_progname}; ac_word=$2
   15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15931 $as_echo_n "checking for $ac_word... " >&6; }
   15932 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
   15933   $as_echo_n "(cached) " >&6
   15934 else
   15935   if test -n "$GM2_FOR_TARGET"; then
   15936   ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
   15937 else
   15938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15939 for as_dir in $PATH
   15940 do
   15941   IFS=$as_save_IFS
   15942   test -z "$as_dir" && as_dir=.
   15943     for ac_exec_ext in '' $ac_executable_extensions; do
   15944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15945     ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
   15946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15947     break 2
   15948   fi
   15949 done
   15950   done
   15951 IFS=$as_save_IFS
   15952 
   15953 fi
   15954 fi
   15955 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
   15956 if test -n "$GM2_FOR_TARGET"; then
   15957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
   15958 $as_echo "$GM2_FOR_TARGET" >&6; }
   15959 else
   15960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15961 $as_echo "no" >&6; }
   15962 fi
   15963 
   15964 
   15965   done
   15966 fi
   15967 
   15968 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15969   for ncn_progname in gm2; do
   15970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15971 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15972     if test -x $with_build_time_tools/${ncn_progname}; then
   15973       ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15975 $as_echo "yes" >&6; }
   15976       break
   15977     else
   15978       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15979 $as_echo "no" >&6; }
   15980     fi
   15981   done
   15982 fi
   15983 
   15984 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
   15985   for ncn_progname in gm2; do
   15986     if test -n "$ncn_target_tool_prefix"; then
   15987       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   15988 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15990 $as_echo_n "checking for $ac_word... " >&6; }
   15991 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
   15992   $as_echo_n "(cached) " >&6
   15993 else
   15994   if test -n "$GM2_FOR_TARGET"; then
   15995   ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
   15996 else
   15997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15998 for as_dir in $PATH
   15999 do
   16000   IFS=$as_save_IFS
   16001   test -z "$as_dir" && as_dir=.
   16002     for ac_exec_ext in '' $ac_executable_extensions; do
   16003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16004     ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   16005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16006     break 2
   16007   fi
   16008 done
   16009   done
   16010 IFS=$as_save_IFS
   16011 
   16012 fi
   16013 fi
   16014 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
   16015 if test -n "$GM2_FOR_TARGET"; then
   16016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
   16017 $as_echo "$GM2_FOR_TARGET" >&6; }
   16018 else
   16019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16020 $as_echo "no" >&6; }
   16021 fi
   16022 
   16023 
   16024     fi
   16025     if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
   16026       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16027 set dummy ${ncn_progname}; ac_word=$2
   16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16029 $as_echo_n "checking for $ac_word... " >&6; }
   16030 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
   16031   $as_echo_n "(cached) " >&6
   16032 else
   16033   if test -n "$GM2_FOR_TARGET"; then
   16034   ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
   16035 else
   16036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16037 for as_dir in $PATH
   16038 do
   16039   IFS=$as_save_IFS
   16040   test -z "$as_dir" && as_dir=.
   16041     for ac_exec_ext in '' $ac_executable_extensions; do
   16042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16043     ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
   16044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16045     break 2
   16046   fi
   16047 done
   16048   done
   16049 IFS=$as_save_IFS
   16050 
   16051 fi
   16052 fi
   16053 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
   16054 if test -n "$GM2_FOR_TARGET"; then
   16055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
   16056 $as_echo "$GM2_FOR_TARGET" >&6; }
   16057 else
   16058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16059 $as_echo "no" >&6; }
   16060 fi
   16061 
   16062 
   16063     fi
   16064     test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
   16065   done
   16066 fi
   16067 
   16068 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
   16069   set dummy gm2
   16070   if test $build = $target ; then
   16071     GM2_FOR_TARGET="$2"
   16072   else
   16073     GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
   16074   fi
   16075 else
   16076   GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
   16077 fi
   16078 
   16079 
   16080 
   16081 cat > conftest.c << \EOF
   16082 #ifdef __GNUC__
   16083   gcc_yay;
   16084 #endif
   16085 EOF
   16086 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
   16087   have_gcc_for_target=yes
   16088 else
   16089   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
   16090   have_gcc_for_target=no
   16091 fi
   16092 rm conftest.c
   16093 
   16094 
   16095 
   16096 
   16097 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
   16098   if test -n "$with_build_time_tools"; then
   16099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
   16100 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
   16101     if test -x $with_build_time_tools/ar; then
   16102       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
   16103       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
   16104       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
   16105 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
   16106     else
   16107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16108 $as_echo "no" >&6; }
   16109     fi
   16110   elif test $build != $host && test $have_gcc_for_target = yes; then
   16111     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
   16112     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
   16113     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
   16114   fi
   16115 fi
   16116 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   16117   # Extract the first word of "ar", so it can be a program name with args.
   16118 set dummy ar; ac_word=$2
   16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16120 $as_echo_n "checking for $ac_word... " >&6; }
   16121 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
   16122   $as_echo_n "(cached) " >&6
   16123 else
   16124   case $AR_FOR_TARGET in
   16125   [\\/]* | ?:[\\/]*)
   16126   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
   16127   ;;
   16128   *)
   16129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16130 for as_dir in $gcc_cv_tool_dirs
   16131 do
   16132   IFS=$as_save_IFS
   16133   test -z "$as_dir" && as_dir=.
   16134     for ac_exec_ext in '' $ac_executable_extensions; do
   16135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16136     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   16137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16138     break 2
   16139   fi
   16140 done
   16141   done
   16142 IFS=$as_save_IFS
   16143 
   16144   ;;
   16145 esac
   16146 fi
   16147 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
   16148 if test -n "$AR_FOR_TARGET"; then
   16149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
   16150 $as_echo "$AR_FOR_TARGET" >&6; }
   16151 else
   16152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16153 $as_echo "no" >&6; }
   16154 fi
   16155 
   16156 
   16157 fi
   16158 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
   16159 
   16160 
   16161 if test -n "$AR_FOR_TARGET"; then
   16162   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
   16163 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
   16164   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
   16165 fi
   16166 
   16167 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
   16168   for ncn_progname in ar; do
   16169     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16170 set dummy ${ncn_progname}; ac_word=$2
   16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16172 $as_echo_n "checking for $ac_word... " >&6; }
   16173 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
   16174   $as_echo_n "(cached) " >&6
   16175 else
   16176   if test -n "$AR_FOR_TARGET"; then
   16177   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
   16178 else
   16179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16180 for as_dir in $PATH
   16181 do
   16182   IFS=$as_save_IFS
   16183   test -z "$as_dir" && as_dir=.
   16184     for ac_exec_ext in '' $ac_executable_extensions; do
   16185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16186     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
   16187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16188     break 2
   16189   fi
   16190 done
   16191   done
   16192 IFS=$as_save_IFS
   16193 
   16194 fi
   16195 fi
   16196 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
   16197 if test -n "$AR_FOR_TARGET"; then
   16198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
   16199 $as_echo "$AR_FOR_TARGET" >&6; }
   16200 else
   16201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16202 $as_echo "no" >&6; }
   16203 fi
   16204 
   16205 
   16206   done
   16207 fi
   16208 
   16209 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
   16210   for ncn_progname in ar; do
   16211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   16212 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   16213     if test -x $with_build_time_tools/${ncn_progname}; then
   16214       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   16215       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16216 $as_echo "yes" >&6; }
   16217       break
   16218     else
   16219       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16220 $as_echo "no" >&6; }
   16221     fi
   16222   done
   16223 fi
   16224 
   16225 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
   16226   for ncn_progname in ar; do
   16227     if test -n "$ncn_target_tool_prefix"; then
   16228       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   16229 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16231 $as_echo_n "checking for $ac_word... " >&6; }
   16232 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
   16233   $as_echo_n "(cached) " >&6
   16234 else
   16235   if test -n "$AR_FOR_TARGET"; then
   16236   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
   16237 else
   16238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16239 for as_dir in $PATH
   16240 do
   16241   IFS=$as_save_IFS
   16242   test -z "$as_dir" && as_dir=.
   16243     for ac_exec_ext in '' $ac_executable_extensions; do
   16244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16245     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   16246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16247     break 2
   16248   fi
   16249 done
   16250   done
   16251 IFS=$as_save_IFS
   16252 
   16253 fi
   16254 fi
   16255 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
   16256 if test -n "$AR_FOR_TARGET"; then
   16257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
   16258 $as_echo "$AR_FOR_TARGET" >&6; }
   16259 else
   16260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16261 $as_echo "no" >&6; }
   16262 fi
   16263 
   16264 
   16265     fi
   16266     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
   16267       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16268 set dummy ${ncn_progname}; ac_word=$2
   16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16270 $as_echo_n "checking for $ac_word... " >&6; }
   16271 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
   16272   $as_echo_n "(cached) " >&6
   16273 else
   16274   if test -n "$AR_FOR_TARGET"; then
   16275   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
   16276 else
   16277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16278 for as_dir in $PATH
   16279 do
   16280   IFS=$as_save_IFS
   16281   test -z "$as_dir" && as_dir=.
   16282     for ac_exec_ext in '' $ac_executable_extensions; do
   16283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16284     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
   16285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16286     break 2
   16287   fi
   16288 done
   16289   done
   16290 IFS=$as_save_IFS
   16291 
   16292 fi
   16293 fi
   16294 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
   16295 if test -n "$AR_FOR_TARGET"; then
   16296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
   16297 $as_echo "$AR_FOR_TARGET" >&6; }
   16298 else
   16299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16300 $as_echo "no" >&6; }
   16301 fi
   16302 
   16303 
   16304     fi
   16305     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
   16306   done
   16307 fi
   16308 
   16309 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
   16310   set dummy ar
   16311   if test $build = $target ; then
   16312     AR_FOR_TARGET="$2"
   16313   else
   16314     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
   16315   fi
   16316 else
   16317   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
   16318 fi
   16319 
   16320 else
   16321   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
   16322 fi
   16323 
   16324 
   16325 
   16326 
   16327 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
   16328   if test -n "$with_build_time_tools"; then
   16329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
   16330 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
   16331     if test -x $with_build_time_tools/as; then
   16332       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
   16333       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
   16334       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
   16335 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
   16336     else
   16337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16338 $as_echo "no" >&6; }
   16339     fi
   16340   elif test $build != $host && test $have_gcc_for_target = yes; then
   16341     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
   16342     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
   16343     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
   16344   fi
   16345 fi
   16346 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   16347   # Extract the first word of "as", so it can be a program name with args.
   16348 set dummy as; ac_word=$2
   16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16350 $as_echo_n "checking for $ac_word... " >&6; }
   16351 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
   16352   $as_echo_n "(cached) " >&6
   16353 else
   16354   case $AS_FOR_TARGET in
   16355   [\\/]* | ?:[\\/]*)
   16356   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
   16357   ;;
   16358   *)
   16359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16360 for as_dir in $gcc_cv_tool_dirs
   16361 do
   16362   IFS=$as_save_IFS
   16363   test -z "$as_dir" && as_dir=.
   16364     for ac_exec_ext in '' $ac_executable_extensions; do
   16365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16366     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   16367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16368     break 2
   16369   fi
   16370 done
   16371   done
   16372 IFS=$as_save_IFS
   16373 
   16374   ;;
   16375 esac
   16376 fi
   16377 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
   16378 if test -n "$AS_FOR_TARGET"; then
   16379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
   16380 $as_echo "$AS_FOR_TARGET" >&6; }
   16381 else
   16382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16383 $as_echo "no" >&6; }
   16384 fi
   16385 
   16386 
   16387 fi
   16388 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
   16389 
   16390 
   16391 if test -n "$AS_FOR_TARGET"; then
   16392   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
   16393 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
   16394   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
   16395 fi
   16396 
   16397 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
   16398   for ncn_progname in as; do
   16399     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16400 set dummy ${ncn_progname}; ac_word=$2
   16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16402 $as_echo_n "checking for $ac_word... " >&6; }
   16403 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
   16404   $as_echo_n "(cached) " >&6
   16405 else
   16406   if test -n "$AS_FOR_TARGET"; then
   16407   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
   16408 else
   16409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16410 for as_dir in $PATH
   16411 do
   16412   IFS=$as_save_IFS
   16413   test -z "$as_dir" && as_dir=.
   16414     for ac_exec_ext in '' $ac_executable_extensions; do
   16415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16416     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
   16417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16418     break 2
   16419   fi
   16420 done
   16421   done
   16422 IFS=$as_save_IFS
   16423 
   16424 fi
   16425 fi
   16426 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
   16427 if test -n "$AS_FOR_TARGET"; then
   16428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
   16429 $as_echo "$AS_FOR_TARGET" >&6; }
   16430 else
   16431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16432 $as_echo "no" >&6; }
   16433 fi
   16434 
   16435 
   16436   done
   16437 fi
   16438 
   16439 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
   16440   for ncn_progname in as; do
   16441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   16442 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   16443     if test -x $with_build_time_tools/${ncn_progname}; then
   16444       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   16445       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16446 $as_echo "yes" >&6; }
   16447       break
   16448     else
   16449       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16450 $as_echo "no" >&6; }
   16451     fi
   16452   done
   16453 fi
   16454 
   16455 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
   16456   for ncn_progname in as; do
   16457     if test -n "$ncn_target_tool_prefix"; then
   16458       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   16459 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16461 $as_echo_n "checking for $ac_word... " >&6; }
   16462 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
   16463   $as_echo_n "(cached) " >&6
   16464 else
   16465   if test -n "$AS_FOR_TARGET"; then
   16466   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
   16467 else
   16468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16469 for as_dir in $PATH
   16470 do
   16471   IFS=$as_save_IFS
   16472   test -z "$as_dir" && as_dir=.
   16473     for ac_exec_ext in '' $ac_executable_extensions; do
   16474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16475     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   16476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16477     break 2
   16478   fi
   16479 done
   16480   done
   16481 IFS=$as_save_IFS
   16482 
   16483 fi
   16484 fi
   16485 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
   16486 if test -n "$AS_FOR_TARGET"; then
   16487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
   16488 $as_echo "$AS_FOR_TARGET" >&6; }
   16489 else
   16490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16491 $as_echo "no" >&6; }
   16492 fi
   16493 
   16494 
   16495     fi
   16496     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
   16497       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16498 set dummy ${ncn_progname}; ac_word=$2
   16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16500 $as_echo_n "checking for $ac_word... " >&6; }
   16501 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
   16502   $as_echo_n "(cached) " >&6
   16503 else
   16504   if test -n "$AS_FOR_TARGET"; then
   16505   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
   16506 else
   16507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16508 for as_dir in $PATH
   16509 do
   16510   IFS=$as_save_IFS
   16511   test -z "$as_dir" && as_dir=.
   16512     for ac_exec_ext in '' $ac_executable_extensions; do
   16513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16514     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
   16515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16516     break 2
   16517   fi
   16518 done
   16519   done
   16520 IFS=$as_save_IFS
   16521 
   16522 fi
   16523 fi
   16524 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
   16525 if test -n "$AS_FOR_TARGET"; then
   16526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
   16527 $as_echo "$AS_FOR_TARGET" >&6; }
   16528 else
   16529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16530 $as_echo "no" >&6; }
   16531 fi
   16532 
   16533 
   16534     fi
   16535     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
   16536   done
   16537 fi
   16538 
   16539 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
   16540   set dummy as
   16541   if test $build = $target ; then
   16542     AS_FOR_TARGET="$2"
   16543   else
   16544     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
   16545   fi
   16546 else
   16547   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
   16548 fi
   16549 
   16550 else
   16551   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
   16552 fi
   16553 
   16554 
   16555 
   16556 
   16557 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
   16558   if test -n "$with_build_time_tools"; then
   16559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
   16560 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
   16561     if test -x $with_build_time_tools/dlltool; then
   16562       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
   16563       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
   16564       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
   16565 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
   16566     else
   16567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16568 $as_echo "no" >&6; }
   16569     fi
   16570   elif test $build != $host && test $have_gcc_for_target = yes; then
   16571     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
   16572     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
   16573     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
   16574   fi
   16575 fi
   16576 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   16577   # Extract the first word of "dlltool", so it can be a program name with args.
   16578 set dummy dlltool; ac_word=$2
   16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16580 $as_echo_n "checking for $ac_word... " >&6; }
   16581 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
   16582   $as_echo_n "(cached) " >&6
   16583 else
   16584   case $DLLTOOL_FOR_TARGET in
   16585   [\\/]* | ?:[\\/]*)
   16586   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
   16587   ;;
   16588   *)
   16589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16590 for as_dir in $gcc_cv_tool_dirs
   16591 do
   16592   IFS=$as_save_IFS
   16593   test -z "$as_dir" && as_dir=.
   16594     for ac_exec_ext in '' $ac_executable_extensions; do
   16595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16596     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   16597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16598     break 2
   16599   fi
   16600 done
   16601   done
   16602 IFS=$as_save_IFS
   16603 
   16604   ;;
   16605 esac
   16606 fi
   16607 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
   16608 if test -n "$DLLTOOL_FOR_TARGET"; then
   16609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
   16610 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
   16611 else
   16612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16613 $as_echo "no" >&6; }
   16614 fi
   16615 
   16616 
   16617 fi
   16618 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
   16619 
   16620 
   16621 if test -n "$DLLTOOL_FOR_TARGET"; then
   16622   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
   16623 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
   16624   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
   16625 fi
   16626 
   16627 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
   16628   for ncn_progname in dlltool; do
   16629     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16630 set dummy ${ncn_progname}; ac_word=$2
   16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16632 $as_echo_n "checking for $ac_word... " >&6; }
   16633 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
   16634   $as_echo_n "(cached) " >&6
   16635 else
   16636   if test -n "$DLLTOOL_FOR_TARGET"; then
   16637   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
   16638 else
   16639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16640 for as_dir in $PATH
   16641 do
   16642   IFS=$as_save_IFS
   16643   test -z "$as_dir" && as_dir=.
   16644     for ac_exec_ext in '' $ac_executable_extensions; do
   16645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16646     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
   16647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16648     break 2
   16649   fi
   16650 done
   16651   done
   16652 IFS=$as_save_IFS
   16653 
   16654 fi
   16655 fi
   16656 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
   16657 if test -n "$DLLTOOL_FOR_TARGET"; then
   16658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
   16659 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
   16660 else
   16661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16662 $as_echo "no" >&6; }
   16663 fi
   16664 
   16665 
   16666   done
   16667 fi
   16668 
   16669 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
   16670   for ncn_progname in dlltool; do
   16671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   16672 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   16673     if test -x $with_build_time_tools/${ncn_progname}; then
   16674       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   16675       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16676 $as_echo "yes" >&6; }
   16677       break
   16678     else
   16679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16680 $as_echo "no" >&6; }
   16681     fi
   16682   done
   16683 fi
   16684 
   16685 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
   16686   for ncn_progname in dlltool; do
   16687     if test -n "$ncn_target_tool_prefix"; then
   16688       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   16689 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16691 $as_echo_n "checking for $ac_word... " >&6; }
   16692 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
   16693   $as_echo_n "(cached) " >&6
   16694 else
   16695   if test -n "$DLLTOOL_FOR_TARGET"; then
   16696   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
   16697 else
   16698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16699 for as_dir in $PATH
   16700 do
   16701   IFS=$as_save_IFS
   16702   test -z "$as_dir" && as_dir=.
   16703     for ac_exec_ext in '' $ac_executable_extensions; do
   16704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16705     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   16706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16707     break 2
   16708   fi
   16709 done
   16710   done
   16711 IFS=$as_save_IFS
   16712 
   16713 fi
   16714 fi
   16715 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
   16716 if test -n "$DLLTOOL_FOR_TARGET"; then
   16717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
   16718 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
   16719 else
   16720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16721 $as_echo "no" >&6; }
   16722 fi
   16723 
   16724 
   16725     fi
   16726     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
   16727       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16728 set dummy ${ncn_progname}; ac_word=$2
   16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16730 $as_echo_n "checking for $ac_word... " >&6; }
   16731 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
   16732   $as_echo_n "(cached) " >&6
   16733 else
   16734   if test -n "$DLLTOOL_FOR_TARGET"; then
   16735   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
   16736 else
   16737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16738 for as_dir in $PATH
   16739 do
   16740   IFS=$as_save_IFS
   16741   test -z "$as_dir" && as_dir=.
   16742     for ac_exec_ext in '' $ac_executable_extensions; do
   16743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16744     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
   16745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16746     break 2
   16747   fi
   16748 done
   16749   done
   16750 IFS=$as_save_IFS
   16751 
   16752 fi
   16753 fi
   16754 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
   16755 if test -n "$DLLTOOL_FOR_TARGET"; then
   16756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
   16757 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
   16758 else
   16759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16760 $as_echo "no" >&6; }
   16761 fi
   16762 
   16763 
   16764     fi
   16765     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
   16766   done
   16767 fi
   16768 
   16769 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
   16770   set dummy dlltool
   16771   if test $build = $target ; then
   16772     DLLTOOL_FOR_TARGET="$2"
   16773   else
   16774     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
   16775   fi
   16776 else
   16777   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
   16778 fi
   16779 
   16780 else
   16781   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
   16782 fi
   16783 
   16784 
   16785 
   16786 
   16787 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
   16788   if test -n "$with_build_time_tools"; then
   16789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
   16790 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
   16791     if test -x $with_build_time_tools/dsymutil; then
   16792       DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
   16793       ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
   16794       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
   16795 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
   16796     else
   16797       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16798 $as_echo "no" >&6; }
   16799     fi
   16800   elif test $build != $host && test $have_gcc_for_target = yes; then
   16801     DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
   16802     test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
   16803     test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
   16804   fi
   16805 fi
   16806 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   16807   # Extract the first word of "dsymutil", so it can be a program name with args.
   16808 set dummy dsymutil; ac_word=$2
   16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16810 $as_echo_n "checking for $ac_word... " >&6; }
   16811 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
   16812   $as_echo_n "(cached) " >&6
   16813 else
   16814   case $DSYMUTIL_FOR_TARGET in
   16815   [\\/]* | ?:[\\/]*)
   16816   ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
   16817   ;;
   16818   *)
   16819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16820 for as_dir in $gcc_cv_tool_dirs
   16821 do
   16822   IFS=$as_save_IFS
   16823   test -z "$as_dir" && as_dir=.
   16824     for ac_exec_ext in '' $ac_executable_extensions; do
   16825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16826     ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   16827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16828     break 2
   16829   fi
   16830 done
   16831   done
   16832 IFS=$as_save_IFS
   16833 
   16834   ;;
   16835 esac
   16836 fi
   16837 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
   16838 if test -n "$DSYMUTIL_FOR_TARGET"; then
   16839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
   16840 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
   16841 else
   16842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16843 $as_echo "no" >&6; }
   16844 fi
   16845 
   16846 
   16847 fi
   16848 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
   16849 
   16850 
   16851 if test -n "$DSYMUTIL_FOR_TARGET"; then
   16852   ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
   16853 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
   16854   DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
   16855 fi
   16856 
   16857 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
   16858   for ncn_progname in dsymutil; do
   16859     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16860 set dummy ${ncn_progname}; ac_word=$2
   16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16862 $as_echo_n "checking for $ac_word... " >&6; }
   16863 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
   16864   $as_echo_n "(cached) " >&6
   16865 else
   16866   if test -n "$DSYMUTIL_FOR_TARGET"; then
   16867   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
   16868 else
   16869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16870 for as_dir in $PATH
   16871 do
   16872   IFS=$as_save_IFS
   16873   test -z "$as_dir" && as_dir=.
   16874     for ac_exec_ext in '' $ac_executable_extensions; do
   16875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16876     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
   16877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16878     break 2
   16879   fi
   16880 done
   16881   done
   16882 IFS=$as_save_IFS
   16883 
   16884 fi
   16885 fi
   16886 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
   16887 if test -n "$DSYMUTIL_FOR_TARGET"; then
   16888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
   16889 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
   16890 else
   16891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16892 $as_echo "no" >&6; }
   16893 fi
   16894 
   16895 
   16896   done
   16897 fi
   16898 
   16899 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
   16900   for ncn_progname in dsymutil; do
   16901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   16902 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   16903     if test -x $with_build_time_tools/${ncn_progname}; then
   16904       ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   16905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16906 $as_echo "yes" >&6; }
   16907       break
   16908     else
   16909       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16910 $as_echo "no" >&6; }
   16911     fi
   16912   done
   16913 fi
   16914 
   16915 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
   16916   for ncn_progname in dsymutil; do
   16917     if test -n "$ncn_target_tool_prefix"; then
   16918       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   16919 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16921 $as_echo_n "checking for $ac_word... " >&6; }
   16922 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
   16923   $as_echo_n "(cached) " >&6
   16924 else
   16925   if test -n "$DSYMUTIL_FOR_TARGET"; then
   16926   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
   16927 else
   16928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16929 for as_dir in $PATH
   16930 do
   16931   IFS=$as_save_IFS
   16932   test -z "$as_dir" && as_dir=.
   16933     for ac_exec_ext in '' $ac_executable_extensions; do
   16934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16935     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   16936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16937     break 2
   16938   fi
   16939 done
   16940   done
   16941 IFS=$as_save_IFS
   16942 
   16943 fi
   16944 fi
   16945 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
   16946 if test -n "$DSYMUTIL_FOR_TARGET"; then
   16947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
   16948 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
   16949 else
   16950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16951 $as_echo "no" >&6; }
   16952 fi
   16953 
   16954 
   16955     fi
   16956     if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
   16957       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16958 set dummy ${ncn_progname}; ac_word=$2
   16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16960 $as_echo_n "checking for $ac_word... " >&6; }
   16961 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
   16962   $as_echo_n "(cached) " >&6
   16963 else
   16964   if test -n "$DSYMUTIL_FOR_TARGET"; then
   16965   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
   16966 else
   16967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16968 for as_dir in $PATH
   16969 do
   16970   IFS=$as_save_IFS
   16971   test -z "$as_dir" && as_dir=.
   16972     for ac_exec_ext in '' $ac_executable_extensions; do
   16973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16974     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
   16975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16976     break 2
   16977   fi
   16978 done
   16979   done
   16980 IFS=$as_save_IFS
   16981 
   16982 fi
   16983 fi
   16984 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
   16985 if test -n "$DSYMUTIL_FOR_TARGET"; then
   16986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
   16987 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
   16988 else
   16989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16990 $as_echo "no" >&6; }
   16991 fi
   16992 
   16993 
   16994     fi
   16995     test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
   16996   done
   16997 fi
   16998 
   16999 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
   17000   set dummy dsymutil
   17001   if test $build = $target ; then
   17002     DSYMUTIL_FOR_TARGET="$2"
   17003   else
   17004     DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
   17005   fi
   17006 else
   17007   DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
   17008 fi
   17009 
   17010 else
   17011   DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
   17012 fi
   17013 
   17014 
   17015 
   17016 
   17017 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
   17018   if test -n "$with_build_time_tools"; then
   17019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
   17020 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
   17021     if test -x $with_build_time_tools/ld; then
   17022       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
   17023       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
   17024       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
   17025 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
   17026     else
   17027       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17028 $as_echo "no" >&6; }
   17029     fi
   17030   elif test $build != $host && test $have_gcc_for_target = yes; then
   17031     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
   17032     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
   17033     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
   17034   fi
   17035 fi
   17036 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   17037   # Extract the first word of "ld", so it can be a program name with args.
   17038 set dummy ld; ac_word=$2
   17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17040 $as_echo_n "checking for $ac_word... " >&6; }
   17041 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
   17042   $as_echo_n "(cached) " >&6
   17043 else
   17044   case $LD_FOR_TARGET in
   17045   [\\/]* | ?:[\\/]*)
   17046   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
   17047   ;;
   17048   *)
   17049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17050 for as_dir in $gcc_cv_tool_dirs
   17051 do
   17052   IFS=$as_save_IFS
   17053   test -z "$as_dir" && as_dir=.
   17054     for ac_exec_ext in '' $ac_executable_extensions; do
   17055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17056     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   17057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17058     break 2
   17059   fi
   17060 done
   17061   done
   17062 IFS=$as_save_IFS
   17063 
   17064   ;;
   17065 esac
   17066 fi
   17067 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
   17068 if test -n "$LD_FOR_TARGET"; then
   17069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
   17070 $as_echo "$LD_FOR_TARGET" >&6; }
   17071 else
   17072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17073 $as_echo "no" >&6; }
   17074 fi
   17075 
   17076 
   17077 fi
   17078 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
   17079 
   17080 
   17081 if test -n "$LD_FOR_TARGET"; then
   17082   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
   17083 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
   17084   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
   17085 fi
   17086 
   17087 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
   17088   for ncn_progname in ld; do
   17089     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17090 set dummy ${ncn_progname}; ac_word=$2
   17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17092 $as_echo_n "checking for $ac_word... " >&6; }
   17093 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
   17094   $as_echo_n "(cached) " >&6
   17095 else
   17096   if test -n "$LD_FOR_TARGET"; then
   17097   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
   17098 else
   17099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17100 for as_dir in $PATH
   17101 do
   17102   IFS=$as_save_IFS
   17103   test -z "$as_dir" && as_dir=.
   17104     for ac_exec_ext in '' $ac_executable_extensions; do
   17105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17106     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
   17107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17108     break 2
   17109   fi
   17110 done
   17111   done
   17112 IFS=$as_save_IFS
   17113 
   17114 fi
   17115 fi
   17116 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
   17117 if test -n "$LD_FOR_TARGET"; then
   17118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
   17119 $as_echo "$LD_FOR_TARGET" >&6; }
   17120 else
   17121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17122 $as_echo "no" >&6; }
   17123 fi
   17124 
   17125 
   17126   done
   17127 fi
   17128 
   17129 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
   17130   for ncn_progname in ld; do
   17131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   17132 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   17133     if test -x $with_build_time_tools/${ncn_progname}; then
   17134       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   17135       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17136 $as_echo "yes" >&6; }
   17137       break
   17138     else
   17139       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17140 $as_echo "no" >&6; }
   17141     fi
   17142   done
   17143 fi
   17144 
   17145 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
   17146   for ncn_progname in ld; do
   17147     if test -n "$ncn_target_tool_prefix"; then
   17148       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   17149 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17151 $as_echo_n "checking for $ac_word... " >&6; }
   17152 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
   17153   $as_echo_n "(cached) " >&6
   17154 else
   17155   if test -n "$LD_FOR_TARGET"; then
   17156   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
   17157 else
   17158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17159 for as_dir in $PATH
   17160 do
   17161   IFS=$as_save_IFS
   17162   test -z "$as_dir" && as_dir=.
   17163     for ac_exec_ext in '' $ac_executable_extensions; do
   17164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17165     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   17166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17167     break 2
   17168   fi
   17169 done
   17170   done
   17171 IFS=$as_save_IFS
   17172 
   17173 fi
   17174 fi
   17175 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
   17176 if test -n "$LD_FOR_TARGET"; then
   17177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
   17178 $as_echo "$LD_FOR_TARGET" >&6; }
   17179 else
   17180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17181 $as_echo "no" >&6; }
   17182 fi
   17183 
   17184 
   17185     fi
   17186     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
   17187       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17188 set dummy ${ncn_progname}; ac_word=$2
   17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17190 $as_echo_n "checking for $ac_word... " >&6; }
   17191 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
   17192   $as_echo_n "(cached) " >&6
   17193 else
   17194   if test -n "$LD_FOR_TARGET"; then
   17195   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
   17196 else
   17197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17198 for as_dir in $PATH
   17199 do
   17200   IFS=$as_save_IFS
   17201   test -z "$as_dir" && as_dir=.
   17202     for ac_exec_ext in '' $ac_executable_extensions; do
   17203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17204     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
   17205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17206     break 2
   17207   fi
   17208 done
   17209   done
   17210 IFS=$as_save_IFS
   17211 
   17212 fi
   17213 fi
   17214 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
   17215 if test -n "$LD_FOR_TARGET"; then
   17216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
   17217 $as_echo "$LD_FOR_TARGET" >&6; }
   17218 else
   17219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17220 $as_echo "no" >&6; }
   17221 fi
   17222 
   17223 
   17224     fi
   17225     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
   17226   done
   17227 fi
   17228 
   17229 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
   17230   set dummy ld
   17231   if test $build = $target ; then
   17232     LD_FOR_TARGET="$2"
   17233   else
   17234     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
   17235   fi
   17236 else
   17237   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
   17238 fi
   17239 
   17240 else
   17241   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
   17242 fi
   17243 
   17244 
   17245 
   17246 
   17247 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
   17248   if test -n "$with_build_time_tools"; then
   17249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
   17250 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
   17251     if test -x $with_build_time_tools/lipo; then
   17252       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
   17253       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
   17254       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
   17255 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
   17256     else
   17257       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17258 $as_echo "no" >&6; }
   17259     fi
   17260   elif test $build != $host && test $have_gcc_for_target = yes; then
   17261     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
   17262     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
   17263     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
   17264   fi
   17265 fi
   17266 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   17267   # Extract the first word of "lipo", so it can be a program name with args.
   17268 set dummy lipo; ac_word=$2
   17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17270 $as_echo_n "checking for $ac_word... " >&6; }
   17271 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
   17272   $as_echo_n "(cached) " >&6
   17273 else
   17274   case $LIPO_FOR_TARGET in
   17275   [\\/]* | ?:[\\/]*)
   17276   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
   17277   ;;
   17278   *)
   17279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17280 for as_dir in $gcc_cv_tool_dirs
   17281 do
   17282   IFS=$as_save_IFS
   17283   test -z "$as_dir" && as_dir=.
   17284     for ac_exec_ext in '' $ac_executable_extensions; do
   17285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17286     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   17287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17288     break 2
   17289   fi
   17290 done
   17291   done
   17292 IFS=$as_save_IFS
   17293 
   17294   ;;
   17295 esac
   17296 fi
   17297 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
   17298 if test -n "$LIPO_FOR_TARGET"; then
   17299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
   17300 $as_echo "$LIPO_FOR_TARGET" >&6; }
   17301 else
   17302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17303 $as_echo "no" >&6; }
   17304 fi
   17305 
   17306 
   17307 fi
   17308 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
   17309 
   17310 
   17311 if test -n "$LIPO_FOR_TARGET"; then
   17312   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
   17313 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
   17314   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
   17315 fi
   17316 
   17317 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
   17318   for ncn_progname in lipo; do
   17319     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17320 set dummy ${ncn_progname}; ac_word=$2
   17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17322 $as_echo_n "checking for $ac_word... " >&6; }
   17323 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
   17324   $as_echo_n "(cached) " >&6
   17325 else
   17326   if test -n "$LIPO_FOR_TARGET"; then
   17327   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
   17328 else
   17329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17330 for as_dir in $PATH
   17331 do
   17332   IFS=$as_save_IFS
   17333   test -z "$as_dir" && as_dir=.
   17334     for ac_exec_ext in '' $ac_executable_extensions; do
   17335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17336     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
   17337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17338     break 2
   17339   fi
   17340 done
   17341   done
   17342 IFS=$as_save_IFS
   17343 
   17344 fi
   17345 fi
   17346 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
   17347 if test -n "$LIPO_FOR_TARGET"; then
   17348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
   17349 $as_echo "$LIPO_FOR_TARGET" >&6; }
   17350 else
   17351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17352 $as_echo "no" >&6; }
   17353 fi
   17354 
   17355 
   17356   done
   17357 fi
   17358 
   17359 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
   17360   for ncn_progname in lipo; do
   17361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   17362 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   17363     if test -x $with_build_time_tools/${ncn_progname}; then
   17364       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   17365       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17366 $as_echo "yes" >&6; }
   17367       break
   17368     else
   17369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17370 $as_echo "no" >&6; }
   17371     fi
   17372   done
   17373 fi
   17374 
   17375 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
   17376   for ncn_progname in lipo; do
   17377     if test -n "$ncn_target_tool_prefix"; then
   17378       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   17379 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17381 $as_echo_n "checking for $ac_word... " >&6; }
   17382 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
   17383   $as_echo_n "(cached) " >&6
   17384 else
   17385   if test -n "$LIPO_FOR_TARGET"; then
   17386   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
   17387 else
   17388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17389 for as_dir in $PATH
   17390 do
   17391   IFS=$as_save_IFS
   17392   test -z "$as_dir" && as_dir=.
   17393     for ac_exec_ext in '' $ac_executable_extensions; do
   17394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17395     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   17396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17397     break 2
   17398   fi
   17399 done
   17400   done
   17401 IFS=$as_save_IFS
   17402 
   17403 fi
   17404 fi
   17405 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
   17406 if test -n "$LIPO_FOR_TARGET"; then
   17407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
   17408 $as_echo "$LIPO_FOR_TARGET" >&6; }
   17409 else
   17410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17411 $as_echo "no" >&6; }
   17412 fi
   17413 
   17414 
   17415     fi
   17416     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
   17417       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17418 set dummy ${ncn_progname}; ac_word=$2
   17419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17420 $as_echo_n "checking for $ac_word... " >&6; }
   17421 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
   17422   $as_echo_n "(cached) " >&6
   17423 else
   17424   if test -n "$LIPO_FOR_TARGET"; then
   17425   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
   17426 else
   17427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17428 for as_dir in $PATH
   17429 do
   17430   IFS=$as_save_IFS
   17431   test -z "$as_dir" && as_dir=.
   17432     for ac_exec_ext in '' $ac_executable_extensions; do
   17433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17434     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
   17435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17436     break 2
   17437   fi
   17438 done
   17439   done
   17440 IFS=$as_save_IFS
   17441 
   17442 fi
   17443 fi
   17444 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
   17445 if test -n "$LIPO_FOR_TARGET"; then
   17446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
   17447 $as_echo "$LIPO_FOR_TARGET" >&6; }
   17448 else
   17449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17450 $as_echo "no" >&6; }
   17451 fi
   17452 
   17453 
   17454     fi
   17455     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
   17456   done
   17457 fi
   17458 
   17459 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
   17460   set dummy lipo
   17461   if test $build = $target ; then
   17462     LIPO_FOR_TARGET="$2"
   17463   else
   17464     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
   17465   fi
   17466 else
   17467   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
   17468 fi
   17469 
   17470 else
   17471   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
   17472 fi
   17473 
   17474 
   17475 
   17476 
   17477 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
   17478   if test -n "$with_build_time_tools"; then
   17479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
   17480 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
   17481     if test -x $with_build_time_tools/nm; then
   17482       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
   17483       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
   17484       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
   17485 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
   17486     else
   17487       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17488 $as_echo "no" >&6; }
   17489     fi
   17490   elif test $build != $host && test $have_gcc_for_target = yes; then
   17491     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
   17492     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
   17493     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
   17494   fi
   17495 fi
   17496 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   17497   # Extract the first word of "nm", so it can be a program name with args.
   17498 set dummy nm; ac_word=$2
   17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17500 $as_echo_n "checking for $ac_word... " >&6; }
   17501 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
   17502   $as_echo_n "(cached) " >&6
   17503 else
   17504   case $NM_FOR_TARGET in
   17505   [\\/]* | ?:[\\/]*)
   17506   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
   17507   ;;
   17508   *)
   17509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17510 for as_dir in $gcc_cv_tool_dirs
   17511 do
   17512   IFS=$as_save_IFS
   17513   test -z "$as_dir" && as_dir=.
   17514     for ac_exec_ext in '' $ac_executable_extensions; do
   17515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17516     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   17517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17518     break 2
   17519   fi
   17520 done
   17521   done
   17522 IFS=$as_save_IFS
   17523 
   17524   ;;
   17525 esac
   17526 fi
   17527 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
   17528 if test -n "$NM_FOR_TARGET"; then
   17529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
   17530 $as_echo "$NM_FOR_TARGET" >&6; }
   17531 else
   17532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17533 $as_echo "no" >&6; }
   17534 fi
   17535 
   17536 
   17537 fi
   17538 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
   17539 
   17540 
   17541 if test -n "$NM_FOR_TARGET"; then
   17542   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
   17543 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
   17544   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
   17545 fi
   17546 
   17547 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
   17548   for ncn_progname in nm; do
   17549     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17550 set dummy ${ncn_progname}; ac_word=$2
   17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17552 $as_echo_n "checking for $ac_word... " >&6; }
   17553 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
   17554   $as_echo_n "(cached) " >&6
   17555 else
   17556   if test -n "$NM_FOR_TARGET"; then
   17557   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
   17558 else
   17559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17560 for as_dir in $PATH
   17561 do
   17562   IFS=$as_save_IFS
   17563   test -z "$as_dir" && as_dir=.
   17564     for ac_exec_ext in '' $ac_executable_extensions; do
   17565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17566     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
   17567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17568     break 2
   17569   fi
   17570 done
   17571   done
   17572 IFS=$as_save_IFS
   17573 
   17574 fi
   17575 fi
   17576 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
   17577 if test -n "$NM_FOR_TARGET"; then
   17578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
   17579 $as_echo "$NM_FOR_TARGET" >&6; }
   17580 else
   17581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17582 $as_echo "no" >&6; }
   17583 fi
   17584 
   17585 
   17586   done
   17587 fi
   17588 
   17589 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
   17590   for ncn_progname in nm; do
   17591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   17592 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   17593     if test -x $with_build_time_tools/${ncn_progname}; then
   17594       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   17595       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17596 $as_echo "yes" >&6; }
   17597       break
   17598     else
   17599       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17600 $as_echo "no" >&6; }
   17601     fi
   17602   done
   17603 fi
   17604 
   17605 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
   17606   for ncn_progname in nm; do
   17607     if test -n "$ncn_target_tool_prefix"; then
   17608       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   17609 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17611 $as_echo_n "checking for $ac_word... " >&6; }
   17612 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
   17613   $as_echo_n "(cached) " >&6
   17614 else
   17615   if test -n "$NM_FOR_TARGET"; then
   17616   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
   17617 else
   17618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17619 for as_dir in $PATH
   17620 do
   17621   IFS=$as_save_IFS
   17622   test -z "$as_dir" && as_dir=.
   17623     for ac_exec_ext in '' $ac_executable_extensions; do
   17624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17625     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   17626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17627     break 2
   17628   fi
   17629 done
   17630   done
   17631 IFS=$as_save_IFS
   17632 
   17633 fi
   17634 fi
   17635 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
   17636 if test -n "$NM_FOR_TARGET"; then
   17637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
   17638 $as_echo "$NM_FOR_TARGET" >&6; }
   17639 else
   17640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17641 $as_echo "no" >&6; }
   17642 fi
   17643 
   17644 
   17645     fi
   17646     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
   17647       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17648 set dummy ${ncn_progname}; ac_word=$2
   17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17650 $as_echo_n "checking for $ac_word... " >&6; }
   17651 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
   17652   $as_echo_n "(cached) " >&6
   17653 else
   17654   if test -n "$NM_FOR_TARGET"; then
   17655   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
   17656 else
   17657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17658 for as_dir in $PATH
   17659 do
   17660   IFS=$as_save_IFS
   17661   test -z "$as_dir" && as_dir=.
   17662     for ac_exec_ext in '' $ac_executable_extensions; do
   17663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17664     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
   17665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17666     break 2
   17667   fi
   17668 done
   17669   done
   17670 IFS=$as_save_IFS
   17671 
   17672 fi
   17673 fi
   17674 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
   17675 if test -n "$NM_FOR_TARGET"; then
   17676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
   17677 $as_echo "$NM_FOR_TARGET" >&6; }
   17678 else
   17679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17680 $as_echo "no" >&6; }
   17681 fi
   17682 
   17683 
   17684     fi
   17685     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
   17686   done
   17687 fi
   17688 
   17689 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
   17690   set dummy nm
   17691   if test $build = $target ; then
   17692     NM_FOR_TARGET="$2"
   17693   else
   17694     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
   17695   fi
   17696 else
   17697   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
   17698 fi
   17699 
   17700 else
   17701   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
   17702 fi
   17703 
   17704 
   17705 
   17706 
   17707 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
   17708   if test -n "$with_build_time_tools"; then
   17709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
   17710 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
   17711     if test -x $with_build_time_tools/objcopy; then
   17712       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
   17713       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
   17714       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
   17715 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
   17716     else
   17717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17718 $as_echo "no" >&6; }
   17719     fi
   17720   elif test $build != $host && test $have_gcc_for_target = yes; then
   17721     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
   17722     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
   17723     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
   17724   fi
   17725 fi
   17726 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   17727   # Extract the first word of "objcopy", so it can be a program name with args.
   17728 set dummy objcopy; ac_word=$2
   17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17730 $as_echo_n "checking for $ac_word... " >&6; }
   17731 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
   17732   $as_echo_n "(cached) " >&6
   17733 else
   17734   case $OBJCOPY_FOR_TARGET in
   17735   [\\/]* | ?:[\\/]*)
   17736   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
   17737   ;;
   17738   *)
   17739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17740 for as_dir in $gcc_cv_tool_dirs
   17741 do
   17742   IFS=$as_save_IFS
   17743   test -z "$as_dir" && as_dir=.
   17744     for ac_exec_ext in '' $ac_executable_extensions; do
   17745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17746     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   17747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17748     break 2
   17749   fi
   17750 done
   17751   done
   17752 IFS=$as_save_IFS
   17753 
   17754   ;;
   17755 esac
   17756 fi
   17757 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
   17758 if test -n "$OBJCOPY_FOR_TARGET"; then
   17759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
   17760 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
   17761 else
   17762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17763 $as_echo "no" >&6; }
   17764 fi
   17765 
   17766 
   17767 fi
   17768 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
   17769 
   17770 
   17771 if test -n "$OBJCOPY_FOR_TARGET"; then
   17772   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
   17773 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
   17774   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
   17775 fi
   17776 
   17777 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
   17778   for ncn_progname in objcopy; do
   17779     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17780 set dummy ${ncn_progname}; ac_word=$2
   17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17782 $as_echo_n "checking for $ac_word... " >&6; }
   17783 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
   17784   $as_echo_n "(cached) " >&6
   17785 else
   17786   if test -n "$OBJCOPY_FOR_TARGET"; then
   17787   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
   17788 else
   17789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17790 for as_dir in $PATH
   17791 do
   17792   IFS=$as_save_IFS
   17793   test -z "$as_dir" && as_dir=.
   17794     for ac_exec_ext in '' $ac_executable_extensions; do
   17795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17796     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
   17797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17798     break 2
   17799   fi
   17800 done
   17801   done
   17802 IFS=$as_save_IFS
   17803 
   17804 fi
   17805 fi
   17806 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
   17807 if test -n "$OBJCOPY_FOR_TARGET"; then
   17808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
   17809 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
   17810 else
   17811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17812 $as_echo "no" >&6; }
   17813 fi
   17814 
   17815 
   17816   done
   17817 fi
   17818 
   17819 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
   17820   for ncn_progname in objcopy; do
   17821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   17822 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   17823     if test -x $with_build_time_tools/${ncn_progname}; then
   17824       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   17825       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17826 $as_echo "yes" >&6; }
   17827       break
   17828     else
   17829       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17830 $as_echo "no" >&6; }
   17831     fi
   17832   done
   17833 fi
   17834 
   17835 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
   17836   for ncn_progname in objcopy; do
   17837     if test -n "$ncn_target_tool_prefix"; then
   17838       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   17839 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17841 $as_echo_n "checking for $ac_word... " >&6; }
   17842 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
   17843   $as_echo_n "(cached) " >&6
   17844 else
   17845   if test -n "$OBJCOPY_FOR_TARGET"; then
   17846   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
   17847 else
   17848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17849 for as_dir in $PATH
   17850 do
   17851   IFS=$as_save_IFS
   17852   test -z "$as_dir" && as_dir=.
   17853     for ac_exec_ext in '' $ac_executable_extensions; do
   17854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17855     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   17856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17857     break 2
   17858   fi
   17859 done
   17860   done
   17861 IFS=$as_save_IFS
   17862 
   17863 fi
   17864 fi
   17865 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
   17866 if test -n "$OBJCOPY_FOR_TARGET"; then
   17867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
   17868 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
   17869 else
   17870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17871 $as_echo "no" >&6; }
   17872 fi
   17873 
   17874 
   17875     fi
   17876     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
   17877       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17878 set dummy ${ncn_progname}; ac_word=$2
   17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17880 $as_echo_n "checking for $ac_word... " >&6; }
   17881 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
   17882   $as_echo_n "(cached) " >&6
   17883 else
   17884   if test -n "$OBJCOPY_FOR_TARGET"; then
   17885   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
   17886 else
   17887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17888 for as_dir in $PATH
   17889 do
   17890   IFS=$as_save_IFS
   17891   test -z "$as_dir" && as_dir=.
   17892     for ac_exec_ext in '' $ac_executable_extensions; do
   17893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17894     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
   17895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17896     break 2
   17897   fi
   17898 done
   17899   done
   17900 IFS=$as_save_IFS
   17901 
   17902 fi
   17903 fi
   17904 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
   17905 if test -n "$OBJCOPY_FOR_TARGET"; then
   17906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
   17907 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
   17908 else
   17909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17910 $as_echo "no" >&6; }
   17911 fi
   17912 
   17913 
   17914     fi
   17915     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
   17916   done
   17917 fi
   17918 
   17919 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
   17920   set dummy objcopy
   17921   if test $build = $target ; then
   17922     OBJCOPY_FOR_TARGET="$2"
   17923   else
   17924     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
   17925   fi
   17926 else
   17927   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
   17928 fi
   17929 
   17930 else
   17931   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
   17932 fi
   17933 
   17934 
   17935 
   17936 
   17937 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
   17938   if test -n "$with_build_time_tools"; then
   17939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
   17940 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
   17941     if test -x $with_build_time_tools/objdump; then
   17942       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
   17943       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
   17944       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
   17945 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
   17946     else
   17947       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17948 $as_echo "no" >&6; }
   17949     fi
   17950   elif test $build != $host && test $have_gcc_for_target = yes; then
   17951     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
   17952     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
   17953     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
   17954   fi
   17955 fi
   17956 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   17957   # Extract the first word of "objdump", so it can be a program name with args.
   17958 set dummy objdump; ac_word=$2
   17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17960 $as_echo_n "checking for $ac_word... " >&6; }
   17961 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
   17962   $as_echo_n "(cached) " >&6
   17963 else
   17964   case $OBJDUMP_FOR_TARGET in
   17965   [\\/]* | ?:[\\/]*)
   17966   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
   17967   ;;
   17968   *)
   17969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17970 for as_dir in $gcc_cv_tool_dirs
   17971 do
   17972   IFS=$as_save_IFS
   17973   test -z "$as_dir" && as_dir=.
   17974     for ac_exec_ext in '' $ac_executable_extensions; do
   17975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17976     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   17977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17978     break 2
   17979   fi
   17980 done
   17981   done
   17982 IFS=$as_save_IFS
   17983 
   17984   ;;
   17985 esac
   17986 fi
   17987 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
   17988 if test -n "$OBJDUMP_FOR_TARGET"; then
   17989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
   17990 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
   17991 else
   17992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17993 $as_echo "no" >&6; }
   17994 fi
   17995 
   17996 
   17997 fi
   17998 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
   17999 
   18000 
   18001 if test -n "$OBJDUMP_FOR_TARGET"; then
   18002   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
   18003 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
   18004   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
   18005 fi
   18006 
   18007 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
   18008   for ncn_progname in objdump; do
   18009     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18010 set dummy ${ncn_progname}; ac_word=$2
   18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18012 $as_echo_n "checking for $ac_word... " >&6; }
   18013 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
   18014   $as_echo_n "(cached) " >&6
   18015 else
   18016   if test -n "$OBJDUMP_FOR_TARGET"; then
   18017   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
   18018 else
   18019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18020 for as_dir in $PATH
   18021 do
   18022   IFS=$as_save_IFS
   18023   test -z "$as_dir" && as_dir=.
   18024     for ac_exec_ext in '' $ac_executable_extensions; do
   18025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18026     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
   18027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18028     break 2
   18029   fi
   18030 done
   18031   done
   18032 IFS=$as_save_IFS
   18033 
   18034 fi
   18035 fi
   18036 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
   18037 if test -n "$OBJDUMP_FOR_TARGET"; then
   18038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
   18039 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
   18040 else
   18041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18042 $as_echo "no" >&6; }
   18043 fi
   18044 
   18045 
   18046   done
   18047 fi
   18048 
   18049 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
   18050   for ncn_progname in objdump; do
   18051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   18052 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   18053     if test -x $with_build_time_tools/${ncn_progname}; then
   18054       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   18055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18056 $as_echo "yes" >&6; }
   18057       break
   18058     else
   18059       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18060 $as_echo "no" >&6; }
   18061     fi
   18062   done
   18063 fi
   18064 
   18065 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
   18066   for ncn_progname in objdump; do
   18067     if test -n "$ncn_target_tool_prefix"; then
   18068       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   18069 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18071 $as_echo_n "checking for $ac_word... " >&6; }
   18072 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
   18073   $as_echo_n "(cached) " >&6
   18074 else
   18075   if test -n "$OBJDUMP_FOR_TARGET"; then
   18076   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
   18077 else
   18078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18079 for as_dir in $PATH
   18080 do
   18081   IFS=$as_save_IFS
   18082   test -z "$as_dir" && as_dir=.
   18083     for ac_exec_ext in '' $ac_executable_extensions; do
   18084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18085     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   18086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18087     break 2
   18088   fi
   18089 done
   18090   done
   18091 IFS=$as_save_IFS
   18092 
   18093 fi
   18094 fi
   18095 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
   18096 if test -n "$OBJDUMP_FOR_TARGET"; then
   18097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
   18098 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
   18099 else
   18100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18101 $as_echo "no" >&6; }
   18102 fi
   18103 
   18104 
   18105     fi
   18106     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
   18107       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18108 set dummy ${ncn_progname}; ac_word=$2
   18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18110 $as_echo_n "checking for $ac_word... " >&6; }
   18111 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
   18112   $as_echo_n "(cached) " >&6
   18113 else
   18114   if test -n "$OBJDUMP_FOR_TARGET"; then
   18115   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
   18116 else
   18117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18118 for as_dir in $PATH
   18119 do
   18120   IFS=$as_save_IFS
   18121   test -z "$as_dir" && as_dir=.
   18122     for ac_exec_ext in '' $ac_executable_extensions; do
   18123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18124     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
   18125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18126     break 2
   18127   fi
   18128 done
   18129   done
   18130 IFS=$as_save_IFS
   18131 
   18132 fi
   18133 fi
   18134 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
   18135 if test -n "$OBJDUMP_FOR_TARGET"; then
   18136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
   18137 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
   18138 else
   18139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18140 $as_echo "no" >&6; }
   18141 fi
   18142 
   18143 
   18144     fi
   18145     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
   18146   done
   18147 fi
   18148 
   18149 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
   18150   set dummy objdump
   18151   if test $build = $target ; then
   18152     OBJDUMP_FOR_TARGET="$2"
   18153   else
   18154     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
   18155   fi
   18156 else
   18157   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
   18158 fi
   18159 
   18160 else
   18161   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
   18162 fi
   18163 
   18164 
   18165 
   18166 
   18167 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
   18168   if test -n "$with_build_time_tools"; then
   18169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
   18170 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
   18171     if test -x $with_build_time_tools/otool; then
   18172       OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
   18173       ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
   18174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
   18175 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
   18176     else
   18177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18178 $as_echo "no" >&6; }
   18179     fi
   18180   elif test $build != $host && test $have_gcc_for_target = yes; then
   18181     OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
   18182     test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
   18183     test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
   18184   fi
   18185 fi
   18186 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   18187   # Extract the first word of "otool", so it can be a program name with args.
   18188 set dummy otool; ac_word=$2
   18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18190 $as_echo_n "checking for $ac_word... " >&6; }
   18191 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
   18192   $as_echo_n "(cached) " >&6
   18193 else
   18194   case $OTOOL_FOR_TARGET in
   18195   [\\/]* | ?:[\\/]*)
   18196   ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
   18197   ;;
   18198   *)
   18199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18200 for as_dir in $gcc_cv_tool_dirs
   18201 do
   18202   IFS=$as_save_IFS
   18203   test -z "$as_dir" && as_dir=.
   18204     for ac_exec_ext in '' $ac_executable_extensions; do
   18205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18206     ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   18207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18208     break 2
   18209   fi
   18210 done
   18211   done
   18212 IFS=$as_save_IFS
   18213 
   18214   ;;
   18215 esac
   18216 fi
   18217 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
   18218 if test -n "$OTOOL_FOR_TARGET"; then
   18219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
   18220 $as_echo "$OTOOL_FOR_TARGET" >&6; }
   18221 else
   18222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18223 $as_echo "no" >&6; }
   18224 fi
   18225 
   18226 
   18227 fi
   18228 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
   18229 
   18230 
   18231 if test -n "$OTOOL_FOR_TARGET"; then
   18232   ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
   18233 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
   18234   OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
   18235 fi
   18236 
   18237 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
   18238   for ncn_progname in otool; do
   18239     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18240 set dummy ${ncn_progname}; ac_word=$2
   18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18242 $as_echo_n "checking for $ac_word... " >&6; }
   18243 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
   18244   $as_echo_n "(cached) " >&6
   18245 else
   18246   if test -n "$OTOOL_FOR_TARGET"; then
   18247   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
   18248 else
   18249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18250 for as_dir in $PATH
   18251 do
   18252   IFS=$as_save_IFS
   18253   test -z "$as_dir" && as_dir=.
   18254     for ac_exec_ext in '' $ac_executable_extensions; do
   18255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18256     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
   18257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18258     break 2
   18259   fi
   18260 done
   18261   done
   18262 IFS=$as_save_IFS
   18263 
   18264 fi
   18265 fi
   18266 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
   18267 if test -n "$OTOOL_FOR_TARGET"; then
   18268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
   18269 $as_echo "$OTOOL_FOR_TARGET" >&6; }
   18270 else
   18271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18272 $as_echo "no" >&6; }
   18273 fi
   18274 
   18275 
   18276   done
   18277 fi
   18278 
   18279 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
   18280   for ncn_progname in otool; do
   18281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   18282 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   18283     if test -x $with_build_time_tools/${ncn_progname}; then
   18284       ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   18285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18286 $as_echo "yes" >&6; }
   18287       break
   18288     else
   18289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18290 $as_echo "no" >&6; }
   18291     fi
   18292   done
   18293 fi
   18294 
   18295 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
   18296   for ncn_progname in otool; do
   18297     if test -n "$ncn_target_tool_prefix"; then
   18298       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   18299 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18301 $as_echo_n "checking for $ac_word... " >&6; }
   18302 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
   18303   $as_echo_n "(cached) " >&6
   18304 else
   18305   if test -n "$OTOOL_FOR_TARGET"; then
   18306   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
   18307 else
   18308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18309 for as_dir in $PATH
   18310 do
   18311   IFS=$as_save_IFS
   18312   test -z "$as_dir" && as_dir=.
   18313     for ac_exec_ext in '' $ac_executable_extensions; do
   18314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18315     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   18316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18317     break 2
   18318   fi
   18319 done
   18320   done
   18321 IFS=$as_save_IFS
   18322 
   18323 fi
   18324 fi
   18325 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
   18326 if test -n "$OTOOL_FOR_TARGET"; then
   18327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
   18328 $as_echo "$OTOOL_FOR_TARGET" >&6; }
   18329 else
   18330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18331 $as_echo "no" >&6; }
   18332 fi
   18333 
   18334 
   18335     fi
   18336     if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
   18337       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18338 set dummy ${ncn_progname}; ac_word=$2
   18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18340 $as_echo_n "checking for $ac_word... " >&6; }
   18341 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
   18342   $as_echo_n "(cached) " >&6
   18343 else
   18344   if test -n "$OTOOL_FOR_TARGET"; then
   18345   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
   18346 else
   18347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18348 for as_dir in $PATH
   18349 do
   18350   IFS=$as_save_IFS
   18351   test -z "$as_dir" && as_dir=.
   18352     for ac_exec_ext in '' $ac_executable_extensions; do
   18353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18354     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
   18355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18356     break 2
   18357   fi
   18358 done
   18359   done
   18360 IFS=$as_save_IFS
   18361 
   18362 fi
   18363 fi
   18364 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
   18365 if test -n "$OTOOL_FOR_TARGET"; then
   18366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
   18367 $as_echo "$OTOOL_FOR_TARGET" >&6; }
   18368 else
   18369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18370 $as_echo "no" >&6; }
   18371 fi
   18372 
   18373 
   18374     fi
   18375     test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
   18376   done
   18377 fi
   18378 
   18379 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
   18380   set dummy otool
   18381   if test $build = $target ; then
   18382     OTOOL_FOR_TARGET="$2"
   18383   else
   18384     OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
   18385   fi
   18386 else
   18387   OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
   18388 fi
   18389 
   18390 else
   18391   OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
   18392 fi
   18393 
   18394 
   18395 
   18396 
   18397 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
   18398   if test -n "$with_build_time_tools"; then
   18399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
   18400 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
   18401     if test -x $with_build_time_tools/ranlib; then
   18402       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
   18403       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
   18404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
   18405 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
   18406     else
   18407       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18408 $as_echo "no" >&6; }
   18409     fi
   18410   elif test $build != $host && test $have_gcc_for_target = yes; then
   18411     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
   18412     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
   18413     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
   18414   fi
   18415 fi
   18416 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   18417   # Extract the first word of "ranlib", so it can be a program name with args.
   18418 set dummy ranlib; ac_word=$2
   18419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18420 $as_echo_n "checking for $ac_word... " >&6; }
   18421 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
   18422   $as_echo_n "(cached) " >&6
   18423 else
   18424   case $RANLIB_FOR_TARGET in
   18425   [\\/]* | ?:[\\/]*)
   18426   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
   18427   ;;
   18428   *)
   18429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18430 for as_dir in $gcc_cv_tool_dirs
   18431 do
   18432   IFS=$as_save_IFS
   18433   test -z "$as_dir" && as_dir=.
   18434     for ac_exec_ext in '' $ac_executable_extensions; do
   18435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18436     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   18437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18438     break 2
   18439   fi
   18440 done
   18441   done
   18442 IFS=$as_save_IFS
   18443 
   18444   ;;
   18445 esac
   18446 fi
   18447 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
   18448 if test -n "$RANLIB_FOR_TARGET"; then
   18449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
   18450 $as_echo "$RANLIB_FOR_TARGET" >&6; }
   18451 else
   18452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18453 $as_echo "no" >&6; }
   18454 fi
   18455 
   18456 
   18457 fi
   18458 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
   18459 
   18460 
   18461 if test -n "$RANLIB_FOR_TARGET"; then
   18462   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
   18463 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
   18464   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
   18465 fi
   18466 
   18467 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
   18468   for ncn_progname in ranlib; do
   18469     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18470 set dummy ${ncn_progname}; ac_word=$2
   18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18472 $as_echo_n "checking for $ac_word... " >&6; }
   18473 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
   18474   $as_echo_n "(cached) " >&6
   18475 else
   18476   if test -n "$RANLIB_FOR_TARGET"; then
   18477   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
   18478 else
   18479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18480 for as_dir in $PATH
   18481 do
   18482   IFS=$as_save_IFS
   18483   test -z "$as_dir" && as_dir=.
   18484     for ac_exec_ext in '' $ac_executable_extensions; do
   18485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18486     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
   18487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18488     break 2
   18489   fi
   18490 done
   18491   done
   18492 IFS=$as_save_IFS
   18493 
   18494 fi
   18495 fi
   18496 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
   18497 if test -n "$RANLIB_FOR_TARGET"; then
   18498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
   18499 $as_echo "$RANLIB_FOR_TARGET" >&6; }
   18500 else
   18501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18502 $as_echo "no" >&6; }
   18503 fi
   18504 
   18505 
   18506   done
   18507 fi
   18508 
   18509 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
   18510   for ncn_progname in ranlib; do
   18511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   18512 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   18513     if test -x $with_build_time_tools/${ncn_progname}; then
   18514       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   18515       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18516 $as_echo "yes" >&6; }
   18517       break
   18518     else
   18519       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18520 $as_echo "no" >&6; }
   18521     fi
   18522   done
   18523 fi
   18524 
   18525 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
   18526   for ncn_progname in ranlib; do
   18527     if test -n "$ncn_target_tool_prefix"; then
   18528       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   18529 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   18530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18531 $as_echo_n "checking for $ac_word... " >&6; }
   18532 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
   18533   $as_echo_n "(cached) " >&6
   18534 else
   18535   if test -n "$RANLIB_FOR_TARGET"; then
   18536   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
   18537 else
   18538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18539 for as_dir in $PATH
   18540 do
   18541   IFS=$as_save_IFS
   18542   test -z "$as_dir" && as_dir=.
   18543     for ac_exec_ext in '' $ac_executable_extensions; do
   18544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18545     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   18546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18547     break 2
   18548   fi
   18549 done
   18550   done
   18551 IFS=$as_save_IFS
   18552 
   18553 fi
   18554 fi
   18555 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
   18556 if test -n "$RANLIB_FOR_TARGET"; then
   18557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
   18558 $as_echo "$RANLIB_FOR_TARGET" >&6; }
   18559 else
   18560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18561 $as_echo "no" >&6; }
   18562 fi
   18563 
   18564 
   18565     fi
   18566     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
   18567       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18568 set dummy ${ncn_progname}; ac_word=$2
   18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18570 $as_echo_n "checking for $ac_word... " >&6; }
   18571 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
   18572   $as_echo_n "(cached) " >&6
   18573 else
   18574   if test -n "$RANLIB_FOR_TARGET"; then
   18575   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
   18576 else
   18577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18578 for as_dir in $PATH
   18579 do
   18580   IFS=$as_save_IFS
   18581   test -z "$as_dir" && as_dir=.
   18582     for ac_exec_ext in '' $ac_executable_extensions; do
   18583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18584     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
   18585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18586     break 2
   18587   fi
   18588 done
   18589   done
   18590 IFS=$as_save_IFS
   18591 
   18592 fi
   18593 fi
   18594 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
   18595 if test -n "$RANLIB_FOR_TARGET"; then
   18596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
   18597 $as_echo "$RANLIB_FOR_TARGET" >&6; }
   18598 else
   18599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18600 $as_echo "no" >&6; }
   18601 fi
   18602 
   18603 
   18604     fi
   18605     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
   18606   done
   18607 fi
   18608 
   18609 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
   18610   set dummy ranlib
   18611   if test $build = $target ; then
   18612     RANLIB_FOR_TARGET="$2"
   18613   else
   18614     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
   18615   fi
   18616 else
   18617   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
   18618 fi
   18619 
   18620 else
   18621   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
   18622 fi
   18623 
   18624 
   18625 
   18626 
   18627 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
   18628   if test -n "$with_build_time_tools"; then
   18629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
   18630 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
   18631     if test -x $with_build_time_tools/readelf; then
   18632       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
   18633       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
   18634       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
   18635 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
   18636     else
   18637       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18638 $as_echo "no" >&6; }
   18639     fi
   18640   elif test $build != $host && test $have_gcc_for_target = yes; then
   18641     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
   18642     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
   18643     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
   18644   fi
   18645 fi
   18646 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   18647   # Extract the first word of "readelf", so it can be a program name with args.
   18648 set dummy readelf; ac_word=$2
   18649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18650 $as_echo_n "checking for $ac_word... " >&6; }
   18651 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
   18652   $as_echo_n "(cached) " >&6
   18653 else
   18654   case $READELF_FOR_TARGET in
   18655   [\\/]* | ?:[\\/]*)
   18656   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
   18657   ;;
   18658   *)
   18659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18660 for as_dir in $gcc_cv_tool_dirs
   18661 do
   18662   IFS=$as_save_IFS
   18663   test -z "$as_dir" && as_dir=.
   18664     for ac_exec_ext in '' $ac_executable_extensions; do
   18665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18666     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   18667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18668     break 2
   18669   fi
   18670 done
   18671   done
   18672 IFS=$as_save_IFS
   18673 
   18674   ;;
   18675 esac
   18676 fi
   18677 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
   18678 if test -n "$READELF_FOR_TARGET"; then
   18679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
   18680 $as_echo "$READELF_FOR_TARGET" >&6; }
   18681 else
   18682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18683 $as_echo "no" >&6; }
   18684 fi
   18685 
   18686 
   18687 fi
   18688 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
   18689 
   18690 
   18691 if test -n "$READELF_FOR_TARGET"; then
   18692   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
   18693 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
   18694   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
   18695 fi
   18696 
   18697 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
   18698   for ncn_progname in readelf; do
   18699     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18700 set dummy ${ncn_progname}; ac_word=$2
   18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18702 $as_echo_n "checking for $ac_word... " >&6; }
   18703 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
   18704   $as_echo_n "(cached) " >&6
   18705 else
   18706   if test -n "$READELF_FOR_TARGET"; then
   18707   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
   18708 else
   18709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18710 for as_dir in $PATH
   18711 do
   18712   IFS=$as_save_IFS
   18713   test -z "$as_dir" && as_dir=.
   18714     for ac_exec_ext in '' $ac_executable_extensions; do
   18715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18716     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
   18717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18718     break 2
   18719   fi
   18720 done
   18721   done
   18722 IFS=$as_save_IFS
   18723 
   18724 fi
   18725 fi
   18726 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
   18727 if test -n "$READELF_FOR_TARGET"; then
   18728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
   18729 $as_echo "$READELF_FOR_TARGET" >&6; }
   18730 else
   18731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18732 $as_echo "no" >&6; }
   18733 fi
   18734 
   18735 
   18736   done
   18737 fi
   18738 
   18739 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
   18740   for ncn_progname in readelf; do
   18741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   18742 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   18743     if test -x $with_build_time_tools/${ncn_progname}; then
   18744       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   18745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18746 $as_echo "yes" >&6; }
   18747       break
   18748     else
   18749       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18750 $as_echo "no" >&6; }
   18751     fi
   18752   done
   18753 fi
   18754 
   18755 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
   18756   for ncn_progname in readelf; do
   18757     if test -n "$ncn_target_tool_prefix"; then
   18758       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   18759 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18761 $as_echo_n "checking for $ac_word... " >&6; }
   18762 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
   18763   $as_echo_n "(cached) " >&6
   18764 else
   18765   if test -n "$READELF_FOR_TARGET"; then
   18766   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
   18767 else
   18768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18769 for as_dir in $PATH
   18770 do
   18771   IFS=$as_save_IFS
   18772   test -z "$as_dir" && as_dir=.
   18773     for ac_exec_ext in '' $ac_executable_extensions; do
   18774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18775     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   18776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18777     break 2
   18778   fi
   18779 done
   18780   done
   18781 IFS=$as_save_IFS
   18782 
   18783 fi
   18784 fi
   18785 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
   18786 if test -n "$READELF_FOR_TARGET"; then
   18787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
   18788 $as_echo "$READELF_FOR_TARGET" >&6; }
   18789 else
   18790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18791 $as_echo "no" >&6; }
   18792 fi
   18793 
   18794 
   18795     fi
   18796     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
   18797       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18798 set dummy ${ncn_progname}; ac_word=$2
   18799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18800 $as_echo_n "checking for $ac_word... " >&6; }
   18801 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
   18802   $as_echo_n "(cached) " >&6
   18803 else
   18804   if test -n "$READELF_FOR_TARGET"; then
   18805   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
   18806 else
   18807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18808 for as_dir in $PATH
   18809 do
   18810   IFS=$as_save_IFS
   18811   test -z "$as_dir" && as_dir=.
   18812     for ac_exec_ext in '' $ac_executable_extensions; do
   18813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18814     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
   18815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18816     break 2
   18817   fi
   18818 done
   18819   done
   18820 IFS=$as_save_IFS
   18821 
   18822 fi
   18823 fi
   18824 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
   18825 if test -n "$READELF_FOR_TARGET"; then
   18826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
   18827 $as_echo "$READELF_FOR_TARGET" >&6; }
   18828 else
   18829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18830 $as_echo "no" >&6; }
   18831 fi
   18832 
   18833 
   18834     fi
   18835     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
   18836   done
   18837 fi
   18838 
   18839 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
   18840   set dummy readelf
   18841   if test $build = $target ; then
   18842     READELF_FOR_TARGET="$2"
   18843   else
   18844     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
   18845   fi
   18846 else
   18847   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
   18848 fi
   18849 
   18850 else
   18851   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
   18852 fi
   18853 
   18854 
   18855 
   18856 
   18857 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
   18858   if test -n "$with_build_time_tools"; then
   18859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
   18860 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
   18861     if test -x $with_build_time_tools/strip; then
   18862       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
   18863       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
   18864       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
   18865 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
   18866     else
   18867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18868 $as_echo "no" >&6; }
   18869     fi
   18870   elif test $build != $host && test $have_gcc_for_target = yes; then
   18871     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
   18872     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
   18873     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
   18874   fi
   18875 fi
   18876 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   18877   # Extract the first word of "strip", so it can be a program name with args.
   18878 set dummy strip; ac_word=$2
   18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18880 $as_echo_n "checking for $ac_word... " >&6; }
   18881 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
   18882   $as_echo_n "(cached) " >&6
   18883 else
   18884   case $STRIP_FOR_TARGET in
   18885   [\\/]* | ?:[\\/]*)
   18886   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
   18887   ;;
   18888   *)
   18889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18890 for as_dir in $gcc_cv_tool_dirs
   18891 do
   18892   IFS=$as_save_IFS
   18893   test -z "$as_dir" && as_dir=.
   18894     for ac_exec_ext in '' $ac_executable_extensions; do
   18895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18896     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   18897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18898     break 2
   18899   fi
   18900 done
   18901   done
   18902 IFS=$as_save_IFS
   18903 
   18904   ;;
   18905 esac
   18906 fi
   18907 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
   18908 if test -n "$STRIP_FOR_TARGET"; then
   18909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
   18910 $as_echo "$STRIP_FOR_TARGET" >&6; }
   18911 else
   18912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18913 $as_echo "no" >&6; }
   18914 fi
   18915 
   18916 
   18917 fi
   18918 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
   18919 
   18920 
   18921 if test -n "$STRIP_FOR_TARGET"; then
   18922   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
   18923 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
   18924   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
   18925 fi
   18926 
   18927 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
   18928   for ncn_progname in strip; do
   18929     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18930 set dummy ${ncn_progname}; ac_word=$2
   18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18932 $as_echo_n "checking for $ac_word... " >&6; }
   18933 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
   18934   $as_echo_n "(cached) " >&6
   18935 else
   18936   if test -n "$STRIP_FOR_TARGET"; then
   18937   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
   18938 else
   18939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18940 for as_dir in $PATH
   18941 do
   18942   IFS=$as_save_IFS
   18943   test -z "$as_dir" && as_dir=.
   18944     for ac_exec_ext in '' $ac_executable_extensions; do
   18945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18946     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
   18947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18948     break 2
   18949   fi
   18950 done
   18951   done
   18952 IFS=$as_save_IFS
   18953 
   18954 fi
   18955 fi
   18956 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
   18957 if test -n "$STRIP_FOR_TARGET"; then
   18958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
   18959 $as_echo "$STRIP_FOR_TARGET" >&6; }
   18960 else
   18961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18962 $as_echo "no" >&6; }
   18963 fi
   18964 
   18965 
   18966   done
   18967 fi
   18968 
   18969 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
   18970   for ncn_progname in strip; do
   18971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   18972 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   18973     if test -x $with_build_time_tools/${ncn_progname}; then
   18974       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   18975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18976 $as_echo "yes" >&6; }
   18977       break
   18978     else
   18979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18980 $as_echo "no" >&6; }
   18981     fi
   18982   done
   18983 fi
   18984 
   18985 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
   18986   for ncn_progname in strip; do
   18987     if test -n "$ncn_target_tool_prefix"; then
   18988       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   18989 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18991 $as_echo_n "checking for $ac_word... " >&6; }
   18992 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
   18993   $as_echo_n "(cached) " >&6
   18994 else
   18995   if test -n "$STRIP_FOR_TARGET"; then
   18996   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
   18997 else
   18998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18999 for as_dir in $PATH
   19000 do
   19001   IFS=$as_save_IFS
   19002   test -z "$as_dir" && as_dir=.
   19003     for ac_exec_ext in '' $ac_executable_extensions; do
   19004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19005     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   19006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19007     break 2
   19008   fi
   19009 done
   19010   done
   19011 IFS=$as_save_IFS
   19012 
   19013 fi
   19014 fi
   19015 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
   19016 if test -n "$STRIP_FOR_TARGET"; then
   19017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
   19018 $as_echo "$STRIP_FOR_TARGET" >&6; }
   19019 else
   19020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19021 $as_echo "no" >&6; }
   19022 fi
   19023 
   19024 
   19025     fi
   19026     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
   19027       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   19028 set dummy ${ncn_progname}; ac_word=$2
   19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19030 $as_echo_n "checking for $ac_word... " >&6; }
   19031 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
   19032   $as_echo_n "(cached) " >&6
   19033 else
   19034   if test -n "$STRIP_FOR_TARGET"; then
   19035   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
   19036 else
   19037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19038 for as_dir in $PATH
   19039 do
   19040   IFS=$as_save_IFS
   19041   test -z "$as_dir" && as_dir=.
   19042     for ac_exec_ext in '' $ac_executable_extensions; do
   19043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19044     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
   19045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19046     break 2
   19047   fi
   19048 done
   19049   done
   19050 IFS=$as_save_IFS
   19051 
   19052 fi
   19053 fi
   19054 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
   19055 if test -n "$STRIP_FOR_TARGET"; then
   19056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
   19057 $as_echo "$STRIP_FOR_TARGET" >&6; }
   19058 else
   19059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19060 $as_echo "no" >&6; }
   19061 fi
   19062 
   19063 
   19064     fi
   19065     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
   19066   done
   19067 fi
   19068 
   19069 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
   19070   set dummy strip
   19071   if test $build = $target ; then
   19072     STRIP_FOR_TARGET="$2"
   19073   else
   19074     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
   19075   fi
   19076 else
   19077   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
   19078 fi
   19079 
   19080 else
   19081   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
   19082 fi
   19083 
   19084 
   19085 
   19086 
   19087 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
   19088   if test -n "$with_build_time_tools"; then
   19089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
   19090 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
   19091     if test -x $with_build_time_tools/windres; then
   19092       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
   19093       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
   19094       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
   19095 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
   19096     else
   19097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19098 $as_echo "no" >&6; }
   19099     fi
   19100   elif test $build != $host && test $have_gcc_for_target = yes; then
   19101     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
   19102     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
   19103     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
   19104   fi
   19105 fi
   19106 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   19107   # Extract the first word of "windres", so it can be a program name with args.
   19108 set dummy windres; ac_word=$2
   19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19110 $as_echo_n "checking for $ac_word... " >&6; }
   19111 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
   19112   $as_echo_n "(cached) " >&6
   19113 else
   19114   case $WINDRES_FOR_TARGET in
   19115   [\\/]* | ?:[\\/]*)
   19116   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
   19117   ;;
   19118   *)
   19119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19120 for as_dir in $gcc_cv_tool_dirs
   19121 do
   19122   IFS=$as_save_IFS
   19123   test -z "$as_dir" && as_dir=.
   19124     for ac_exec_ext in '' $ac_executable_extensions; do
   19125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19126     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   19127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19128     break 2
   19129   fi
   19130 done
   19131   done
   19132 IFS=$as_save_IFS
   19133 
   19134   ;;
   19135 esac
   19136 fi
   19137 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
   19138 if test -n "$WINDRES_FOR_TARGET"; then
   19139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
   19140 $as_echo "$WINDRES_FOR_TARGET" >&6; }
   19141 else
   19142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19143 $as_echo "no" >&6; }
   19144 fi
   19145 
   19146 
   19147 fi
   19148 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
   19149 
   19150 
   19151 if test -n "$WINDRES_FOR_TARGET"; then
   19152   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
   19153 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
   19154   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
   19155 fi
   19156 
   19157 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
   19158   for ncn_progname in windres; do
   19159     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   19160 set dummy ${ncn_progname}; ac_word=$2
   19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19162 $as_echo_n "checking for $ac_word... " >&6; }
   19163 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
   19164   $as_echo_n "(cached) " >&6
   19165 else
   19166   if test -n "$WINDRES_FOR_TARGET"; then
   19167   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
   19168 else
   19169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19170 for as_dir in $PATH
   19171 do
   19172   IFS=$as_save_IFS
   19173   test -z "$as_dir" && as_dir=.
   19174     for ac_exec_ext in '' $ac_executable_extensions; do
   19175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19176     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
   19177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19178     break 2
   19179   fi
   19180 done
   19181   done
   19182 IFS=$as_save_IFS
   19183 
   19184 fi
   19185 fi
   19186 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
   19187 if test -n "$WINDRES_FOR_TARGET"; then
   19188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
   19189 $as_echo "$WINDRES_FOR_TARGET" >&6; }
   19190 else
   19191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19192 $as_echo "no" >&6; }
   19193 fi
   19194 
   19195 
   19196   done
   19197 fi
   19198 
   19199 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
   19200   for ncn_progname in windres; do
   19201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   19202 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   19203     if test -x $with_build_time_tools/${ncn_progname}; then
   19204       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   19205       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19206 $as_echo "yes" >&6; }
   19207       break
   19208     else
   19209       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19210 $as_echo "no" >&6; }
   19211     fi
   19212   done
   19213 fi
   19214 
   19215 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
   19216   for ncn_progname in windres; do
   19217     if test -n "$ncn_target_tool_prefix"; then
   19218       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   19219 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19221 $as_echo_n "checking for $ac_word... " >&6; }
   19222 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
   19223   $as_echo_n "(cached) " >&6
   19224 else
   19225   if test -n "$WINDRES_FOR_TARGET"; then
   19226   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
   19227 else
   19228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19229 for as_dir in $PATH
   19230 do
   19231   IFS=$as_save_IFS
   19232   test -z "$as_dir" && as_dir=.
   19233     for ac_exec_ext in '' $ac_executable_extensions; do
   19234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19235     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   19236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19237     break 2
   19238   fi
   19239 done
   19240   done
   19241 IFS=$as_save_IFS
   19242 
   19243 fi
   19244 fi
   19245 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
   19246 if test -n "$WINDRES_FOR_TARGET"; then
   19247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
   19248 $as_echo "$WINDRES_FOR_TARGET" >&6; }
   19249 else
   19250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19251 $as_echo "no" >&6; }
   19252 fi
   19253 
   19254 
   19255     fi
   19256     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
   19257       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   19258 set dummy ${ncn_progname}; ac_word=$2
   19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19260 $as_echo_n "checking for $ac_word... " >&6; }
   19261 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
   19262   $as_echo_n "(cached) " >&6
   19263 else
   19264   if test -n "$WINDRES_FOR_TARGET"; then
   19265   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
   19266 else
   19267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19268 for as_dir in $PATH
   19269 do
   19270   IFS=$as_save_IFS
   19271   test -z "$as_dir" && as_dir=.
   19272     for ac_exec_ext in '' $ac_executable_extensions; do
   19273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19274     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
   19275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19276     break 2
   19277   fi
   19278 done
   19279   done
   19280 IFS=$as_save_IFS
   19281 
   19282 fi
   19283 fi
   19284 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
   19285 if test -n "$WINDRES_FOR_TARGET"; then
   19286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
   19287 $as_echo "$WINDRES_FOR_TARGET" >&6; }
   19288 else
   19289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19290 $as_echo "no" >&6; }
   19291 fi
   19292 
   19293 
   19294     fi
   19295     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
   19296   done
   19297 fi
   19298 
   19299 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
   19300   set dummy windres
   19301   if test $build = $target ; then
   19302     WINDRES_FOR_TARGET="$2"
   19303   else
   19304     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
   19305   fi
   19306 else
   19307   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
   19308 fi
   19309 
   19310 else
   19311   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
   19312 fi
   19313 
   19314 
   19315 
   19316 
   19317 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
   19318   if test -n "$with_build_time_tools"; then
   19319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
   19320 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
   19321     if test -x $with_build_time_tools/windmc; then
   19322       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
   19323       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
   19324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
   19325 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
   19326     else
   19327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19328 $as_echo "no" >&6; }
   19329     fi
   19330   elif test $build != $host && test $have_gcc_for_target = yes; then
   19331     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
   19332     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
   19333     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
   19334   fi
   19335 fi
   19336 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   19337   # Extract the first word of "windmc", so it can be a program name with args.
   19338 set dummy windmc; ac_word=$2
   19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19340 $as_echo_n "checking for $ac_word... " >&6; }
   19341 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
   19342   $as_echo_n "(cached) " >&6
   19343 else
   19344   case $WINDMC_FOR_TARGET in
   19345   [\\/]* | ?:[\\/]*)
   19346   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
   19347   ;;
   19348   *)
   19349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19350 for as_dir in $gcc_cv_tool_dirs
   19351 do
   19352   IFS=$as_save_IFS
   19353   test -z "$as_dir" && as_dir=.
   19354     for ac_exec_ext in '' $ac_executable_extensions; do
   19355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19356     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   19357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19358     break 2
   19359   fi
   19360 done
   19361   done
   19362 IFS=$as_save_IFS
   19363 
   19364   ;;
   19365 esac
   19366 fi
   19367 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
   19368 if test -n "$WINDMC_FOR_TARGET"; then
   19369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
   19370 $as_echo "$WINDMC_FOR_TARGET" >&6; }
   19371 else
   19372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19373 $as_echo "no" >&6; }
   19374 fi
   19375 
   19376 
   19377 fi
   19378 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
   19379 
   19380 
   19381 if test -n "$WINDMC_FOR_TARGET"; then
   19382   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
   19383 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
   19384   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
   19385 fi
   19386 
   19387 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
   19388   for ncn_progname in windmc; do
   19389     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   19390 set dummy ${ncn_progname}; ac_word=$2
   19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19392 $as_echo_n "checking for $ac_word... " >&6; }
   19393 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
   19394   $as_echo_n "(cached) " >&6
   19395 else
   19396   if test -n "$WINDMC_FOR_TARGET"; then
   19397   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
   19398 else
   19399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19400 for as_dir in $PATH
   19401 do
   19402   IFS=$as_save_IFS
   19403   test -z "$as_dir" && as_dir=.
   19404     for ac_exec_ext in '' $ac_executable_extensions; do
   19405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19406     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
   19407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19408     break 2
   19409   fi
   19410 done
   19411   done
   19412 IFS=$as_save_IFS
   19413 
   19414 fi
   19415 fi
   19416 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
   19417 if test -n "$WINDMC_FOR_TARGET"; then
   19418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
   19419 $as_echo "$WINDMC_FOR_TARGET" >&6; }
   19420 else
   19421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19422 $as_echo "no" >&6; }
   19423 fi
   19424 
   19425 
   19426   done
   19427 fi
   19428 
   19429 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
   19430   for ncn_progname in windmc; do
   19431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   19432 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   19433     if test -x $with_build_time_tools/${ncn_progname}; then
   19434       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   19435       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19436 $as_echo "yes" >&6; }
   19437       break
   19438     else
   19439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19440 $as_echo "no" >&6; }
   19441     fi
   19442   done
   19443 fi
   19444 
   19445 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
   19446   for ncn_progname in windmc; do
   19447     if test -n "$ncn_target_tool_prefix"; then
   19448       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   19449 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19451 $as_echo_n "checking for $ac_word... " >&6; }
   19452 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
   19453   $as_echo_n "(cached) " >&6
   19454 else
   19455   if test -n "$WINDMC_FOR_TARGET"; then
   19456   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
   19457 else
   19458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19459 for as_dir in $PATH
   19460 do
   19461   IFS=$as_save_IFS
   19462   test -z "$as_dir" && as_dir=.
   19463     for ac_exec_ext in '' $ac_executable_extensions; do
   19464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19465     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   19466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19467     break 2
   19468   fi
   19469 done
   19470   done
   19471 IFS=$as_save_IFS
   19472 
   19473 fi
   19474 fi
   19475 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
   19476 if test -n "$WINDMC_FOR_TARGET"; then
   19477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
   19478 $as_echo "$WINDMC_FOR_TARGET" >&6; }
   19479 else
   19480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19481 $as_echo "no" >&6; }
   19482 fi
   19483 
   19484 
   19485     fi
   19486     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
   19487       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   19488 set dummy ${ncn_progname}; ac_word=$2
   19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19490 $as_echo_n "checking for $ac_word... " >&6; }
   19491 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
   19492   $as_echo_n "(cached) " >&6
   19493 else
   19494   if test -n "$WINDMC_FOR_TARGET"; then
   19495   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
   19496 else
   19497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19498 for as_dir in $PATH
   19499 do
   19500   IFS=$as_save_IFS
   19501   test -z "$as_dir" && as_dir=.
   19502     for ac_exec_ext in '' $ac_executable_extensions; do
   19503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19504     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
   19505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19506     break 2
   19507   fi
   19508 done
   19509   done
   19510 IFS=$as_save_IFS
   19511 
   19512 fi
   19513 fi
   19514 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
   19515 if test -n "$WINDMC_FOR_TARGET"; then
   19516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
   19517 $as_echo "$WINDMC_FOR_TARGET" >&6; }
   19518 else
   19519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19520 $as_echo "no" >&6; }
   19521 fi
   19522 
   19523 
   19524     fi
   19525     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
   19526   done
   19527 fi
   19528 
   19529 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
   19530   set dummy windmc
   19531   if test $build = $target ; then
   19532     WINDMC_FOR_TARGET="$2"
   19533   else
   19534     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
   19535   fi
   19536 else
   19537   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
   19538 fi
   19539 
   19540 else
   19541   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
   19542 fi
   19543 
   19544 
   19545 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
   19546 
   19547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
   19548 $as_echo_n "checking where to find the target ar... " >&6; }
   19549 if test "x${build}" != "x${host}" ; then
   19550   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
   19551     # We already found the complete path
   19552     ac_dir=`dirname $AR_FOR_TARGET`
   19553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19554 $as_echo "pre-installed in $ac_dir" >&6; }
   19555   else
   19556     # Canadian cross, just use what we found
   19557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19558 $as_echo "pre-installed" >&6; }
   19559   fi
   19560 else
   19561   ok=yes
   19562   case " ${configdirs} " in
   19563     *" binutils "*) ;;
   19564     *) ok=no ;;
   19565   esac
   19566 
   19567   if test $ok = yes; then
   19568     # An in-tree tool is available and we can use it
   19569     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
   19570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19571 $as_echo "just compiled" >&6; }
   19572   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
   19573     # We already found the complete path
   19574     ac_dir=`dirname $AR_FOR_TARGET`
   19575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19576 $as_echo "pre-installed in $ac_dir" >&6; }
   19577   elif test "x$target" = "x$host"; then
   19578     # We can use an host tool
   19579     AR_FOR_TARGET='$(AR)'
   19580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19581 $as_echo "host tool" >&6; }
   19582   else
   19583     # We need a cross tool
   19584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19585 $as_echo "pre-installed" >&6; }
   19586   fi
   19587 fi
   19588 
   19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
   19590 $as_echo_n "checking where to find the target as... " >&6; }
   19591 if test "x${build}" != "x${host}" ; then
   19592   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
   19593     # We already found the complete path
   19594     ac_dir=`dirname $AS_FOR_TARGET`
   19595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19596 $as_echo "pre-installed in $ac_dir" >&6; }
   19597   else
   19598     # Canadian cross, just use what we found
   19599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19600 $as_echo "pre-installed" >&6; }
   19601   fi
   19602 else
   19603   ok=yes
   19604   case " ${configdirs} " in
   19605     *" gas "*) ;;
   19606     *) ok=no ;;
   19607   esac
   19608 
   19609   if test $ok = yes; then
   19610     # An in-tree tool is available and we can use it
   19611     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
   19612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19613 $as_echo "just compiled" >&6; }
   19614   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
   19615     # We already found the complete path
   19616     ac_dir=`dirname $AS_FOR_TARGET`
   19617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19618 $as_echo "pre-installed in $ac_dir" >&6; }
   19619   elif test "x$target" = "x$host"; then
   19620     # We can use an host tool
   19621     AS_FOR_TARGET='$(AS)'
   19622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19623 $as_echo "host tool" >&6; }
   19624   else
   19625     # We need a cross tool
   19626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19627 $as_echo "pre-installed" >&6; }
   19628   fi
   19629 fi
   19630 
   19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
   19632 $as_echo_n "checking where to find the target cc... " >&6; }
   19633 if test "x${build}" != "x${host}" ; then
   19634   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
   19635     # We already found the complete path
   19636     ac_dir=`dirname $CC_FOR_TARGET`
   19637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19638 $as_echo "pre-installed in $ac_dir" >&6; }
   19639   else
   19640     # Canadian cross, just use what we found
   19641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19642 $as_echo "pre-installed" >&6; }
   19643   fi
   19644 else
   19645   ok=yes
   19646   case " ${configdirs} " in
   19647     *" gcc "*) ;;
   19648     *) ok=no ;;
   19649   esac
   19650 
   19651   if test $ok = yes; then
   19652     # An in-tree tool is available and we can use it
   19653     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
   19654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19655 $as_echo "just compiled" >&6; }
   19656   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
   19657     # We already found the complete path
   19658     ac_dir=`dirname $CC_FOR_TARGET`
   19659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19660 $as_echo "pre-installed in $ac_dir" >&6; }
   19661   elif test "x$target" = "x$host"; then
   19662     # We can use an host tool
   19663     CC_FOR_TARGET='$(CC)'
   19664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19665 $as_echo "host tool" >&6; }
   19666   else
   19667     # We need a cross tool
   19668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19669 $as_echo "pre-installed" >&6; }
   19670   fi
   19671 fi
   19672 
   19673 case $target in
   19674   *-*-darwin*)
   19675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
   19676 $as_echo_n "checking where to find the target c++... " >&6; }
   19677 if test "x${build}" != "x${host}" ; then
   19678   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
   19679     # We already found the complete path
   19680     ac_dir=`dirname $CXX_FOR_TARGET`
   19681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19682 $as_echo "pre-installed in $ac_dir" >&6; }
   19683   else
   19684     # Canadian cross, just use what we found
   19685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19686 $as_echo "pre-installed" >&6; }
   19687   fi
   19688 else
   19689   ok=yes
   19690   case " ${configdirs} " in
   19691     *" gcc "*) ;;
   19692     *) ok=no ;;
   19693   esac
   19694   case ,${enable_languages}, in
   19695     *,c++,*) ;;
   19696     *) ok=no ;;
   19697   esac
   19698   if test $ok = yes; then
   19699     # An in-tree tool is available and we can use it
   19700     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
   19701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19702 $as_echo "just compiled" >&6; }
   19703   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
   19704     # We already found the complete path
   19705     ac_dir=`dirname $CXX_FOR_TARGET`
   19706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19707 $as_echo "pre-installed in $ac_dir" >&6; }
   19708   elif test "x$target" = "x$host"; then
   19709     # We can use an host tool
   19710     CXX_FOR_TARGET='$(CXX)'
   19711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19712 $as_echo "host tool" >&6; }
   19713   else
   19714     # We need a cross tool
   19715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19716 $as_echo "pre-installed" >&6; }
   19717   fi
   19718 fi
   19719 
   19720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
   19721 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
   19722 if test "x${build}" != "x${host}" ; then
   19723   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
   19724     # We already found the complete path
   19725     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
   19726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19727 $as_echo "pre-installed in $ac_dir" >&6; }
   19728   else
   19729     # Canadian cross, just use what we found
   19730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19731 $as_echo "pre-installed" >&6; }
   19732   fi
   19733 else
   19734   ok=yes
   19735   case " ${configdirs} " in
   19736     *" gcc "*) ;;
   19737     *) ok=no ;;
   19738   esac
   19739   case ,${enable_languages}, in
   19740     *,c++,*) ;;
   19741     *) ok=no ;;
   19742   esac
   19743   if test $ok = yes; then
   19744     # An in-tree tool is available and we can use it
   19745     RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
   19746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19747 $as_echo "just compiled" >&6; }
   19748   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
   19749     # We already found the complete path
   19750     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
   19751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19752 $as_echo "pre-installed in $ac_dir" >&6; }
   19753   elif test "x$target" = "x$host"; then
   19754     # We can use an host tool
   19755     RAW_CXX_FOR_TARGET='$(CXX)'
   19756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19757 $as_echo "host tool" >&6; }
   19758   else
   19759     # We need a cross tool
   19760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19761 $as_echo "pre-installed" >&6; }
   19762   fi
   19763 fi
   19764 
   19765   ;;
   19766   *)
   19767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
   19768 $as_echo_n "checking where to find the target c++... " >&6; }
   19769 if test "x${build}" != "x${host}" ; then
   19770   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
   19771     # We already found the complete path
   19772     ac_dir=`dirname $CXX_FOR_TARGET`
   19773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19774 $as_echo "pre-installed in $ac_dir" >&6; }
   19775   else
   19776     # Canadian cross, just use what we found
   19777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19778 $as_echo "pre-installed" >&6; }
   19779   fi
   19780 else
   19781   ok=yes
   19782   case " ${configdirs} " in
   19783     *" gcc "*) ;;
   19784     *) ok=no ;;
   19785   esac
   19786   case ,${enable_languages}, in
   19787     *,c++,*) ;;
   19788     *) ok=no ;;
   19789   esac
   19790   if test $ok = yes; then
   19791     # An in-tree tool is available and we can use it
   19792     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
   19793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19794 $as_echo "just compiled" >&6; }
   19795   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
   19796     # We already found the complete path
   19797     ac_dir=`dirname $CXX_FOR_TARGET`
   19798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19799 $as_echo "pre-installed in $ac_dir" >&6; }
   19800   elif test "x$target" = "x$host"; then
   19801     # We can use an host tool
   19802     CXX_FOR_TARGET='$(CXX)'
   19803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19804 $as_echo "host tool" >&6; }
   19805   else
   19806     # We need a cross tool
   19807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19808 $as_echo "pre-installed" >&6; }
   19809   fi
   19810 fi
   19811 
   19812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
   19813 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
   19814 if test "x${build}" != "x${host}" ; then
   19815   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
   19816     # We already found the complete path
   19817     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
   19818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19819 $as_echo "pre-installed in $ac_dir" >&6; }
   19820   else
   19821     # Canadian cross, just use what we found
   19822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19823 $as_echo "pre-installed" >&6; }
   19824   fi
   19825 else
   19826   ok=yes
   19827   case " ${configdirs} " in
   19828     *" gcc "*) ;;
   19829     *) ok=no ;;
   19830   esac
   19831   case ,${enable_languages}, in
   19832     *,c++,*) ;;
   19833     *) ok=no ;;
   19834   esac
   19835   if test $ok = yes; then
   19836     # An in-tree tool is available and we can use it
   19837     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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
   19838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19839 $as_echo "just compiled" >&6; }
   19840   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
   19841     # We already found the complete path
   19842     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
   19843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19844 $as_echo "pre-installed in $ac_dir" >&6; }
   19845   elif test "x$target" = "x$host"; then
   19846     # We can use an host tool
   19847     RAW_CXX_FOR_TARGET='$(CXX)'
   19848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19849 $as_echo "host tool" >&6; }
   19850   else
   19851     # We need a cross tool
   19852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19853 $as_echo "pre-installed" >&6; }
   19854   fi
   19855 fi
   19856 
   19857   ;;
   19858 esac
   19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
   19860 $as_echo_n "checking where to find the target dlltool... " >&6; }
   19861 if test "x${build}" != "x${host}" ; then
   19862   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
   19863     # We already found the complete path
   19864     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
   19865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19866 $as_echo "pre-installed in $ac_dir" >&6; }
   19867   else
   19868     # Canadian cross, just use what we found
   19869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19870 $as_echo "pre-installed" >&6; }
   19871   fi
   19872 else
   19873   ok=yes
   19874   case " ${configdirs} " in
   19875     *" binutils "*) ;;
   19876     *) ok=no ;;
   19877   esac
   19878 
   19879   if test $ok = yes; then
   19880     # An in-tree tool is available and we can use it
   19881     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
   19882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19883 $as_echo "just compiled" >&6; }
   19884   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
   19885     # We already found the complete path
   19886     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
   19887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19888 $as_echo "pre-installed in $ac_dir" >&6; }
   19889   elif test "x$target" = "x$host"; then
   19890     # We can use an host tool
   19891     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
   19892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19893 $as_echo "host tool" >&6; }
   19894   else
   19895     # We need a cross tool
   19896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19897 $as_echo "pre-installed" >&6; }
   19898   fi
   19899 fi
   19900 
   19901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
   19902 $as_echo_n "checking where to find the target dsymutil... " >&6; }
   19903 if test "x${build}" != "x${host}" ; then
   19904   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
   19905     # We already found the complete path
   19906     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
   19907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19908 $as_echo "pre-installed in $ac_dir" >&6; }
   19909   else
   19910     # Canadian cross, just use what we found
   19911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19912 $as_echo "pre-installed" >&6; }
   19913   fi
   19914 else
   19915   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
   19916     # We already found the complete path
   19917     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
   19918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19919 $as_echo "pre-installed in $ac_dir" >&6; }
   19920   elif test "x$target" = "x$host"; then
   19921     # We can use an host tool
   19922     DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
   19923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19924 $as_echo "host tool" >&6; }
   19925   else
   19926     # We need a cross tool
   19927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19928 $as_echo "pre-installed" >&6; }
   19929   fi
   19930 fi
   19931 
   19932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
   19933 $as_echo_n "checking where to find the target gcc... " >&6; }
   19934 if test "x${build}" != "x${host}" ; then
   19935   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
   19936     # We already found the complete path
   19937     ac_dir=`dirname $GCC_FOR_TARGET`
   19938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19939 $as_echo "pre-installed in $ac_dir" >&6; }
   19940   else
   19941     # Canadian cross, just use what we found
   19942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19943 $as_echo "pre-installed" >&6; }
   19944   fi
   19945 else
   19946   ok=yes
   19947   case " ${configdirs} " in
   19948     *" gcc "*) ;;
   19949     *) ok=no ;;
   19950   esac
   19951 
   19952   if test $ok = yes; then
   19953     # An in-tree tool is available and we can use it
   19954     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
   19955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19956 $as_echo "just compiled" >&6; }
   19957   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
   19958     # We already found the complete path
   19959     ac_dir=`dirname $GCC_FOR_TARGET`
   19960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19961 $as_echo "pre-installed in $ac_dir" >&6; }
   19962   elif test "x$target" = "x$host"; then
   19963     # We can use an host tool
   19964     GCC_FOR_TARGET='$()'
   19965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19966 $as_echo "host tool" >&6; }
   19967   else
   19968     # We need a cross tool
   19969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19970 $as_echo "pre-installed" >&6; }
   19971   fi
   19972 fi
   19973 
   19974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
   19975 $as_echo_n "checking where to find the target gfortran... " >&6; }
   19976 if test "x${build}" != "x${host}" ; then
   19977   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
   19978     # We already found the complete path
   19979     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
   19980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19981 $as_echo "pre-installed in $ac_dir" >&6; }
   19982   else
   19983     # Canadian cross, just use what we found
   19984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19985 $as_echo "pre-installed" >&6; }
   19986   fi
   19987 else
   19988   ok=yes
   19989   case " ${configdirs} " in
   19990     *" gcc "*) ;;
   19991     *) ok=no ;;
   19992   esac
   19993   case ,${enable_languages}, in
   19994     *,fortran,*) ;;
   19995     *) ok=no ;;
   19996   esac
   19997   if test $ok = yes; then
   19998     # An in-tree tool is available and we can use it
   19999     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
   20000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20001 $as_echo "just compiled" >&6; }
   20002   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
   20003     # We already found the complete path
   20004     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
   20005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20006 $as_echo "pre-installed in $ac_dir" >&6; }
   20007   elif test "x$target" = "x$host"; then
   20008     # We can use an host tool
   20009     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
   20010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20011 $as_echo "host tool" >&6; }
   20012   else
   20013     # We need a cross tool
   20014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20015 $as_echo "pre-installed" >&6; }
   20016   fi
   20017 fi
   20018 
   20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
   20020 $as_echo_n "checking where to find the target gccgo... " >&6; }
   20021 if test "x${build}" != "x${host}" ; then
   20022   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
   20023     # We already found the complete path
   20024     ac_dir=`dirname $GOC_FOR_TARGET`
   20025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20026 $as_echo "pre-installed in $ac_dir" >&6; }
   20027   else
   20028     # Canadian cross, just use what we found
   20029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20030 $as_echo "pre-installed" >&6; }
   20031   fi
   20032 else
   20033   ok=yes
   20034   case " ${configdirs} " in
   20035     *" gcc "*) ;;
   20036     *) ok=no ;;
   20037   esac
   20038   case ,${enable_languages}, in
   20039     *,go,*) ;;
   20040     *) ok=no ;;
   20041   esac
   20042   if test $ok = yes; then
   20043     # An in-tree tool is available and we can use it
   20044     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
   20045     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20046 $as_echo "just compiled" >&6; }
   20047   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
   20048     # We already found the complete path
   20049     ac_dir=`dirname $GOC_FOR_TARGET`
   20050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20051 $as_echo "pre-installed in $ac_dir" >&6; }
   20052   elif test "x$target" = "x$host"; then
   20053     # We can use an host tool
   20054     GOC_FOR_TARGET='$(GOC)'
   20055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20056 $as_echo "host tool" >&6; }
   20057   else
   20058     # We need a cross tool
   20059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20060 $as_echo "pre-installed" >&6; }
   20061   fi
   20062 fi
   20063 
   20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
   20065 $as_echo_n "checking where to find the target gdc... " >&6; }
   20066 if test "x${build}" != "x${host}" ; then
   20067   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
   20068     # We already found the complete path
   20069     ac_dir=`dirname $GDC_FOR_TARGET`
   20070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20071 $as_echo "pre-installed in $ac_dir" >&6; }
   20072   else
   20073     # Canadian cross, just use what we found
   20074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20075 $as_echo "pre-installed" >&6; }
   20076   fi
   20077 else
   20078   ok=yes
   20079   case " ${configdirs} " in
   20080     *" gcc "*) ;;
   20081     *) ok=no ;;
   20082   esac
   20083   case ,${enable_languages}, in
   20084     *,d,*) ;;
   20085     *) ok=no ;;
   20086   esac
   20087   if test $ok = yes; then
   20088     # An in-tree tool is available and we can use it
   20089     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
   20090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20091 $as_echo "just compiled" >&6; }
   20092   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
   20093     # We already found the complete path
   20094     ac_dir=`dirname $GDC_FOR_TARGET`
   20095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20096 $as_echo "pre-installed in $ac_dir" >&6; }
   20097   elif test "x$target" = "x$host"; then
   20098     # We can use an host tool
   20099     GDC_FOR_TARGET='$(GDC)'
   20100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20101 $as_echo "host tool" >&6; }
   20102   else
   20103     # We need a cross tool
   20104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20105 $as_echo "pre-installed" >&6; }
   20106   fi
   20107 fi
   20108 
   20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
   20110 $as_echo_n "checking where to find the target gm2... " >&6; }
   20111 if test "x${build}" != "x${host}" ; then
   20112   if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
   20113     # We already found the complete path
   20114     ac_dir=`dirname $GM2_FOR_TARGET`
   20115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20116 $as_echo "pre-installed in $ac_dir" >&6; }
   20117   else
   20118     # Canadian cross, just use what we found
   20119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20120 $as_echo "pre-installed" >&6; }
   20121   fi
   20122 else
   20123   ok=yes
   20124   case " ${configdirs} " in
   20125     *" gcc "*) ;;
   20126     *) ok=no ;;
   20127   esac
   20128   case ,${enable_languages}, in
   20129     *,m2,*) ;;
   20130     *) ok=no ;;
   20131   esac
   20132   if test $ok = yes; then
   20133     # An in-tree tool is available and we can use it
   20134     GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
   20135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20136 $as_echo "just compiled" >&6; }
   20137   elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
   20138     # We already found the complete path
   20139     ac_dir=`dirname $GM2_FOR_TARGET`
   20140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20141 $as_echo "pre-installed in $ac_dir" >&6; }
   20142   elif test "x$target" = "x$host"; then
   20143     # We can use an host tool
   20144     GM2_FOR_TARGET='$(GM2)'
   20145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20146 $as_echo "host tool" >&6; }
   20147   else
   20148     # We need a cross tool
   20149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20150 $as_echo "pre-installed" >&6; }
   20151   fi
   20152 fi
   20153 
   20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
   20155 $as_echo_n "checking where to find the target ld... " >&6; }
   20156 if test "x${build}" != "x${host}" ; then
   20157   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
   20158     # We already found the complete path
   20159     ac_dir=`dirname $LD_FOR_TARGET`
   20160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20161 $as_echo "pre-installed in $ac_dir" >&6; }
   20162   else
   20163     # Canadian cross, just use what we found
   20164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20165 $as_echo "pre-installed" >&6; }
   20166   fi
   20167 else
   20168   ok=yes
   20169   case " ${configdirs} " in
   20170     *" ld "*) ;;
   20171     *) ok=no ;;
   20172   esac
   20173 
   20174   if test $ok = yes; then
   20175     # An in-tree tool is available and we can use it
   20176     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
   20177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20178 $as_echo "just compiled" >&6; }
   20179   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
   20180     # We already found the complete path
   20181     ac_dir=`dirname $LD_FOR_TARGET`
   20182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20183 $as_echo "pre-installed in $ac_dir" >&6; }
   20184   elif test "x$target" = "x$host"; then
   20185     # We can use an host tool
   20186     LD_FOR_TARGET='$(LD)'
   20187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20188 $as_echo "host tool" >&6; }
   20189   else
   20190     # We need a cross tool
   20191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20192 $as_echo "pre-installed" >&6; }
   20193   fi
   20194 fi
   20195 
   20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
   20197 $as_echo_n "checking where to find the target lipo... " >&6; }
   20198 if test "x${build}" != "x${host}" ; then
   20199   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
   20200     # We already found the complete path
   20201     ac_dir=`dirname $LIPO_FOR_TARGET`
   20202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20203 $as_echo "pre-installed in $ac_dir" >&6; }
   20204   else
   20205     # Canadian cross, just use what we found
   20206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20207 $as_echo "pre-installed" >&6; }
   20208   fi
   20209 else
   20210   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
   20211     # We already found the complete path
   20212     ac_dir=`dirname $LIPO_FOR_TARGET`
   20213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20214 $as_echo "pre-installed in $ac_dir" >&6; }
   20215   elif test "x$target" = "x$host"; then
   20216     # We can use an host tool
   20217     LIPO_FOR_TARGET='$(LIPO)'
   20218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20219 $as_echo "host tool" >&6; }
   20220   else
   20221     # We need a cross tool
   20222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20223 $as_echo "pre-installed" >&6; }
   20224   fi
   20225 fi
   20226 
   20227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
   20228 $as_echo_n "checking where to find the target nm... " >&6; }
   20229 if test "x${build}" != "x${host}" ; then
   20230   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
   20231     # We already found the complete path
   20232     ac_dir=`dirname $NM_FOR_TARGET`
   20233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20234 $as_echo "pre-installed in $ac_dir" >&6; }
   20235   else
   20236     # Canadian cross, just use what we found
   20237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20238 $as_echo "pre-installed" >&6; }
   20239   fi
   20240 else
   20241   ok=yes
   20242   case " ${configdirs} " in
   20243     *" binutils "*) ;;
   20244     *) ok=no ;;
   20245   esac
   20246 
   20247   if test $ok = yes; then
   20248     # An in-tree tool is available and we can use it
   20249     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
   20250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20251 $as_echo "just compiled" >&6; }
   20252   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
   20253     # We already found the complete path
   20254     ac_dir=`dirname $NM_FOR_TARGET`
   20255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20256 $as_echo "pre-installed in $ac_dir" >&6; }
   20257   elif test "x$target" = "x$host"; then
   20258     # We can use an host tool
   20259     NM_FOR_TARGET='$(NM)'
   20260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20261 $as_echo "host tool" >&6; }
   20262   else
   20263     # We need a cross tool
   20264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20265 $as_echo "pre-installed" >&6; }
   20266   fi
   20267 fi
   20268 
   20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
   20270 $as_echo_n "checking where to find the target objcopy... " >&6; }
   20271 if test "x${build}" != "x${host}" ; then
   20272   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
   20273     # We already found the complete path
   20274     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
   20275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20276 $as_echo "pre-installed in $ac_dir" >&6; }
   20277   else
   20278     # Canadian cross, just use what we found
   20279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20280 $as_echo "pre-installed" >&6; }
   20281   fi
   20282 else
   20283   ok=yes
   20284   case " ${configdirs} " in
   20285     *" binutils "*) ;;
   20286     *) ok=no ;;
   20287   esac
   20288 
   20289   if test $ok = yes; then
   20290     # An in-tree tool is available and we can use it
   20291     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
   20292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20293 $as_echo "just compiled" >&6; }
   20294   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
   20295     # We already found the complete path
   20296     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
   20297     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20298 $as_echo "pre-installed in $ac_dir" >&6; }
   20299   elif test "x$target" = "x$host"; then
   20300     # We can use an host tool
   20301     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
   20302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20303 $as_echo "host tool" >&6; }
   20304   else
   20305     # We need a cross tool
   20306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20307 $as_echo "pre-installed" >&6; }
   20308   fi
   20309 fi
   20310 
   20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
   20312 $as_echo_n "checking where to find the target objdump... " >&6; }
   20313 if test "x${build}" != "x${host}" ; then
   20314   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
   20315     # We already found the complete path
   20316     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
   20317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20318 $as_echo "pre-installed in $ac_dir" >&6; }
   20319   else
   20320     # Canadian cross, just use what we found
   20321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20322 $as_echo "pre-installed" >&6; }
   20323   fi
   20324 else
   20325   ok=yes
   20326   case " ${configdirs} " in
   20327     *" binutils "*) ;;
   20328     *) ok=no ;;
   20329   esac
   20330 
   20331   if test $ok = yes; then
   20332     # An in-tree tool is available and we can use it
   20333     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
   20334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20335 $as_echo "just compiled" >&6; }
   20336   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
   20337     # We already found the complete path
   20338     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
   20339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20340 $as_echo "pre-installed in $ac_dir" >&6; }
   20341   elif test "x$target" = "x$host"; then
   20342     # We can use an host tool
   20343     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
   20344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20345 $as_echo "host tool" >&6; }
   20346   else
   20347     # We need a cross tool
   20348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20349 $as_echo "pre-installed" >&6; }
   20350   fi
   20351 fi
   20352 
   20353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
   20354 $as_echo_n "checking where to find the target otool... " >&6; }
   20355 if test "x${build}" != "x${host}" ; then
   20356   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
   20357     # We already found the complete path
   20358     ac_dir=`dirname $OTOOL_FOR_TARGET`
   20359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20360 $as_echo "pre-installed in $ac_dir" >&6; }
   20361   else
   20362     # Canadian cross, just use what we found
   20363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20364 $as_echo "pre-installed" >&6; }
   20365   fi
   20366 else
   20367   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
   20368     # We already found the complete path
   20369     ac_dir=`dirname $OTOOL_FOR_TARGET`
   20370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20371 $as_echo "pre-installed in $ac_dir" >&6; }
   20372   elif test "x$target" = "x$host"; then
   20373     # We can use an host tool
   20374     OTOOL_FOR_TARGET='$(OTOOL)'
   20375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20376 $as_echo "host tool" >&6; }
   20377   else
   20378     # We need a cross tool
   20379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20380 $as_echo "pre-installed" >&6; }
   20381   fi
   20382 fi
   20383 
   20384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
   20385 $as_echo_n "checking where to find the target ranlib... " >&6; }
   20386 if test "x${build}" != "x${host}" ; then
   20387   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
   20388     # We already found the complete path
   20389     ac_dir=`dirname $RANLIB_FOR_TARGET`
   20390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20391 $as_echo "pre-installed in $ac_dir" >&6; }
   20392   else
   20393     # Canadian cross, just use what we found
   20394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20395 $as_echo "pre-installed" >&6; }
   20396   fi
   20397 else
   20398   ok=yes
   20399   case " ${configdirs} " in
   20400     *" binutils "*) ;;
   20401     *) ok=no ;;
   20402   esac
   20403 
   20404   if test $ok = yes; then
   20405     # An in-tree tool is available and we can use it
   20406     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
   20407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20408 $as_echo "just compiled" >&6; }
   20409   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
   20410     # We already found the complete path
   20411     ac_dir=`dirname $RANLIB_FOR_TARGET`
   20412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20413 $as_echo "pre-installed in $ac_dir" >&6; }
   20414   elif test "x$target" = "x$host"; then
   20415     # We can use an host tool
   20416     RANLIB_FOR_TARGET='$(RANLIB)'
   20417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20418 $as_echo "host tool" >&6; }
   20419   else
   20420     # We need a cross tool
   20421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20422 $as_echo "pre-installed" >&6; }
   20423   fi
   20424 fi
   20425 
   20426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
   20427 $as_echo_n "checking where to find the target readelf... " >&6; }
   20428 if test "x${build}" != "x${host}" ; then
   20429   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
   20430     # We already found the complete path
   20431     ac_dir=`dirname $READELF_FOR_TARGET`
   20432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20433 $as_echo "pre-installed in $ac_dir" >&6; }
   20434   else
   20435     # Canadian cross, just use what we found
   20436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20437 $as_echo "pre-installed" >&6; }
   20438   fi
   20439 else
   20440   ok=yes
   20441   case " ${configdirs} " in
   20442     *" binutils "*) ;;
   20443     *) ok=no ;;
   20444   esac
   20445 
   20446   if test $ok = yes; then
   20447     # An in-tree tool is available and we can use it
   20448     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
   20449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20450 $as_echo "just compiled" >&6; }
   20451   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
   20452     # We already found the complete path
   20453     ac_dir=`dirname $READELF_FOR_TARGET`
   20454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20455 $as_echo "pre-installed in $ac_dir" >&6; }
   20456   elif test "x$target" = "x$host"; then
   20457     # We can use an host tool
   20458     READELF_FOR_TARGET='$(READELF)'
   20459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20460 $as_echo "host tool" >&6; }
   20461   else
   20462     # We need a cross tool
   20463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20464 $as_echo "pre-installed" >&6; }
   20465   fi
   20466 fi
   20467 
   20468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
   20469 $as_echo_n "checking where to find the target strip... " >&6; }
   20470 if test "x${build}" != "x${host}" ; then
   20471   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
   20472     # We already found the complete path
   20473     ac_dir=`dirname $STRIP_FOR_TARGET`
   20474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20475 $as_echo "pre-installed in $ac_dir" >&6; }
   20476   else
   20477     # Canadian cross, just use what we found
   20478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20479 $as_echo "pre-installed" >&6; }
   20480   fi
   20481 else
   20482   ok=yes
   20483   case " ${configdirs} " in
   20484     *" binutils "*) ;;
   20485     *) ok=no ;;
   20486   esac
   20487 
   20488   if test $ok = yes; then
   20489     # An in-tree tool is available and we can use it
   20490     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
   20491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20492 $as_echo "just compiled" >&6; }
   20493   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
   20494     # We already found the complete path
   20495     ac_dir=`dirname $STRIP_FOR_TARGET`
   20496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20497 $as_echo "pre-installed in $ac_dir" >&6; }
   20498   elif test "x$target" = "x$host"; then
   20499     # We can use an host tool
   20500     STRIP_FOR_TARGET='$(STRIP)'
   20501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20502 $as_echo "host tool" >&6; }
   20503   else
   20504     # We need a cross tool
   20505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20506 $as_echo "pre-installed" >&6; }
   20507   fi
   20508 fi
   20509 
   20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
   20511 $as_echo_n "checking where to find the target windres... " >&6; }
   20512 if test "x${build}" != "x${host}" ; then
   20513   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
   20514     # We already found the complete path
   20515     ac_dir=`dirname $WINDRES_FOR_TARGET`
   20516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20517 $as_echo "pre-installed in $ac_dir" >&6; }
   20518   else
   20519     # Canadian cross, just use what we found
   20520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20521 $as_echo "pre-installed" >&6; }
   20522   fi
   20523 else
   20524   ok=yes
   20525   case " ${configdirs} " in
   20526     *" binutils "*) ;;
   20527     *) ok=no ;;
   20528   esac
   20529 
   20530   if test $ok = yes; then
   20531     # An in-tree tool is available and we can use it
   20532     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
   20533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20534 $as_echo "just compiled" >&6; }
   20535   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
   20536     # We already found the complete path
   20537     ac_dir=`dirname $WINDRES_FOR_TARGET`
   20538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20539 $as_echo "pre-installed in $ac_dir" >&6; }
   20540   elif test "x$target" = "x$host"; then
   20541     # We can use an host tool
   20542     WINDRES_FOR_TARGET='$(WINDRES)'
   20543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20544 $as_echo "host tool" >&6; }
   20545   else
   20546     # We need a cross tool
   20547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20548 $as_echo "pre-installed" >&6; }
   20549   fi
   20550 fi
   20551 
   20552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
   20553 $as_echo_n "checking where to find the target windmc... " >&6; }
   20554 if test "x${build}" != "x${host}" ; then
   20555   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
   20556     # We already found the complete path
   20557     ac_dir=`dirname $WINDMC_FOR_TARGET`
   20558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20559 $as_echo "pre-installed in $ac_dir" >&6; }
   20560   else
   20561     # Canadian cross, just use what we found
   20562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20563 $as_echo "pre-installed" >&6; }
   20564   fi
   20565 else
   20566   ok=yes
   20567   case " ${configdirs} " in
   20568     *" binutils "*) ;;
   20569     *) ok=no ;;
   20570   esac
   20571 
   20572   if test $ok = yes; then
   20573     # An in-tree tool is available and we can use it
   20574     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
   20575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   20576 $as_echo "just compiled" >&6; }
   20577   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
   20578     # We already found the complete path
   20579     ac_dir=`dirname $WINDMC_FOR_TARGET`
   20580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20581 $as_echo "pre-installed in $ac_dir" >&6; }
   20582   elif test "x$target" = "x$host"; then
   20583     # We can use an host tool
   20584     WINDMC_FOR_TARGET='$(WINDMC)'
   20585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20586 $as_echo "host tool" >&6; }
   20587   else
   20588     # We need a cross tool
   20589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20590 $as_echo "pre-installed" >&6; }
   20591   fi
   20592 fi
   20593 
   20594 
   20595 
   20596 
   20597 
   20598 # Certain tools may need extra flags.
   20599 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
   20600 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
   20601 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
   20602 
   20603 # Try CLANG_PLUGIN_FILE_FOR_TARGET first since GCC_PLUGIN_OPTION_FOR_TARGET
   20604 # may return the wrong PLUGIN_OPTION_FOR_TARGET with clang.
   20605   COMPILER_FOR_TARGET="${CC_FOR_TARGET}"
   20606   if test x"${COMPILER_FOR_TARGET}" = x"\$(CC)"; then
   20607     COMPILER_FOR_TARGET="$CC"
   20608   fi
   20609   saved_CC="$CC"
   20610   CC="$COMPILER_FOR_TARGET"
   20611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang for target" >&5
   20612 $as_echo_n "checking for clang for target... " >&6; }
   20613 if ${clang_target_cv_working+:} false; then :
   20614   $as_echo_n "(cached) " >&6
   20615 else
   20616 
   20617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20618 /* end confdefs.h.  */
   20619 
   20620 #ifndef __clang__
   20621 #error Not clang
   20622 #endif
   20623 
   20624 int
   20625 main ()
   20626 {
   20627 
   20628   ;
   20629   return 0;
   20630 }
   20631 _ACEOF
   20632 if ac_fn_c_try_compile "$LINENO"; then :
   20633   clang_target_cv_working=yes
   20634 else
   20635   clang_target_cv_working=no
   20636 fi
   20637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20638 fi
   20639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_target_cv_working" >&5
   20640 $as_echo "$clang_target_cv_working" >&6; }
   20641   CC="$saved_CC"
   20642   plugin_file=
   20643   if test $clang_target_cv_working = yes; then
   20644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target llvm-config" >&5
   20645 $as_echo_n "checking where to find the target llvm-config... " >&6; }
   20646 if test "x${build}" != "x${host}" ; then
   20647   if expr "x$LLVM_CONFIG_FOR_TARGET" : "x/" > /dev/null; then
   20648     # We already found the complete path
   20649     ac_dir=`dirname $LLVM_CONFIG_FOR_TARGET`
   20650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20651 $as_echo "pre-installed in $ac_dir" >&6; }
   20652   else
   20653     # Canadian cross, just use what we found
   20654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20655 $as_echo "pre-installed" >&6; }
   20656   fi
   20657 else
   20658   if expr "x$LLVM_CONFIG_FOR_TARGET" : "x/" > /dev/null; then
   20659     # We already found the complete path
   20660     ac_dir=`dirname $LLVM_CONFIG_FOR_TARGET`
   20661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   20662 $as_echo "pre-installed in $ac_dir" >&6; }
   20663   elif test "x$target" = "x$host"; then
   20664     # We can use an host tool
   20665     LLVM_CONFIG_FOR_TARGET='$(LLVM_CONFIG)'
   20666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   20667 $as_echo "host tool" >&6; }
   20668   else
   20669     # We need a cross tool
   20670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   20671 $as_echo "pre-installed" >&6; }
   20672   fi
   20673 fi
   20674 
   20675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file for target" >&5
   20676 $as_echo_n "checking for clang plugin file for target... " >&6; }
   20677     plugin_names="LLVMgold.so"
   20678     for plugin in $plugin_names; do
   20679       plugin_file=`${COMPILER_FOR_TARGET} ${CFLAGS_FOR_TARGET} --print-file-name $plugin`
   20680       if test "$plugin_file" != "$plugin"; then
   20681 	break;
   20682       fi
   20683       if test -n "${LLVM_CONFIG_FOR_TARGET}"; then
   20684 	plugin_file=`${LLVM_CONFIG_FOR_TARGET} --libdir`/$plugin
   20685 	if test -f "$plugin_file"; then
   20686 	  break;
   20687 	fi
   20688       fi
   20689       plugin_file=
   20690     done
   20691     if test -z "$plugin_file"; then
   20692       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20693 $as_echo "no" >&6; }
   20694     else
   20695       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
   20696 $as_echo "$plugin_file" >&6; }
   20697     fi
   20698   fi
   20699   PLUGIN_FILE_FOR_TARGET="$plugin_file"
   20700 
   20701 if test -n "$PLUGIN_FILE_FOR_TARGET"; then
   20702   PLUGIN_OPTION_FOR_TARGET="--plugin $PLUGIN_FILE_FOR_TARGET"
   20703 else
   20704   COMPILER_FOR_TARGET="${CC_FOR_TARGET}"
   20705 if test x"${COMPILER_FOR_TARGET}" = x"\$(CC)"; then
   20706   COMPILER_FOR_TARGET="$CC"
   20707 fi
   20708 saved_CC="$CC"
   20709 CC="$COMPILER_FOR_TARGET"
   20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc for target" >&5
   20711 $as_echo_n "checking for gcc for target... " >&6; }
   20712 if ${gcc_target_cv_working+:} false; then :
   20713   $as_echo_n "(cached) " >&6
   20714 else
   20715 
   20716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20717 /* end confdefs.h.  */
   20718 
   20719 int
   20720 main ()
   20721 {
   20722 
   20723   ;
   20724   return 0;
   20725 }
   20726 _ACEOF
   20727 if ac_fn_c_try_compile "$LINENO"; then :
   20728   gcc_target_cv_working=yes
   20729 else
   20730   gcc_target_cv_working=no
   20731 fi
   20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20733 fi
   20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_target_cv_working" >&5
   20735 $as_echo "$gcc_target_cv_working" >&6; }
   20736 CC="$saved_CC"
   20737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target -plugin option" >&5
   20738 $as_echo_n "checking for target -plugin option... " >&6; }
   20739 plugin_option=
   20740 if test $gcc_target_cv_working = yes; then
   20741   plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
   20742   for plugin in $plugin_names; do
   20743     plugin_so=`${COMPILER_FOR_TARGET} ${CFLAGS_FOR_TARGET} --print-prog-name $plugin`
   20744     if test x$plugin_so = x$plugin; then
   20745       plugin_so=`${COMPILER_FOR_TARGET} ${CFLAGS_FOR_TARGET} --print-file-name $plugin`
   20746     fi
   20747     if test x$plugin_so != x$plugin; then
   20748       plugin_option="--plugin $plugin_so"
   20749       break
   20750     fi
   20751   done
   20752 fi
   20753 if test -z "$plugin_option"; then
   20754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20755 $as_echo "no" >&6; }
   20756 else
   20757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
   20758 $as_echo "$plugin_option" >&6; }
   20759 fi
   20760 PLUGIN_OPTION_FOR_TARGET="$plugin_option"
   20761 
   20762 fi
   20763 if test -n "$PLUGIN_OPTION_FOR_TARGET"; then
   20764   AR_PLUGIN_OPTION_FOR_TARGET="$PLUGIN_OPTION_FOR_TARGET"
   20765   NM_PLUGIN_OPTION_FOR_TARGET="$PLUGIN_OPTION_FOR_TARGET"
   20766   RANLIB_PLUGIN_OPTION_FOR_TARGET="$PLUGIN_OPTION_FOR_TARGET"
   20767 else
   20768   AR_PLUGIN_OPTION_FOR_TARGET=
   20769   NM_PLUGIN_OPTION_FOR_TARGET=
   20770   RANLIB_PLUGIN_OPTION_FOR_TARGET=
   20771 fi
   20772 
   20773 
   20774 
   20775 
   20776 # When building target libraries, except in a Canadian cross, we use
   20777 # the same toolchain as the compiler we just built.
   20778 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
   20779 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
   20780 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
   20781 if test $host = $build; then
   20782   case " $configdirs " in
   20783     *" gcc "*)
   20784       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
   20785       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
   20786       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
   20787       ;;
   20788   esac
   20789 fi
   20790 
   20791 
   20792 
   20793 
   20794 
   20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   20796 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   20797 # Check whether --enable-maintainer-mode was given.
   20798 if test "${enable_maintainer_mode+set}" = set; then :
   20799   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   20800 else
   20801   USE_MAINTAINER_MODE=no
   20802 fi
   20803 
   20804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   20805 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   20806 
   20807 
   20808 if test "$USE_MAINTAINER_MODE" = yes; then
   20809   MAINTAINER_MODE_TRUE=
   20810   MAINTAINER_MODE_FALSE='#'
   20811 else
   20812   MAINTAINER_MODE_TRUE='#'
   20813   MAINTAINER_MODE_FALSE=
   20814 fi
   20815 MAINT=$MAINTAINER_MODE_TRUE
   20816 
   20817 # ---------------------
   20818 # GCC bootstrap support
   20819 # ---------------------
   20820 
   20821 # Stage specific cflags for build.
   20822 stage1_cflags="-g"
   20823 case $build in
   20824   vax-*-*)
   20825     case ${GCC} in
   20826       yes) stage1_cflags="-g -Wa,-J" ;;
   20827       *) stage1_cflags="-g -J" ;;
   20828     esac ;;
   20829 esac
   20830 
   20831 
   20832 
   20833 # Enable --enable-checking in stage1 of the compiler.
   20834 # Check whether --enable-stage1-checking was given.
   20835 if test "${enable_stage1_checking+set}" = set; then :
   20836   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
   20837 else
   20838   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
   20839   # For --disable-checking or implicit --enable-checking=release, avoid
   20840   # setting --enable-checking=gc in the default stage1 checking for LTO
   20841   # bootstraps.  See PR62077.
   20842   case $BUILD_CONFIG in
   20843     *lto*)
   20844       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
   20845     *)
   20846       stage1_checking=--enable-checking=yes,types;;
   20847   esac
   20848   if test "x$enable_checking" = x && \
   20849      test -d ${srcdir}/gcc && \
   20850      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
   20851     stage1_checking=--enable-checking=yes,types,extra
   20852   fi
   20853 else
   20854   stage1_checking=--enable-checking=$enable_checking,types
   20855 fi
   20856 fi
   20857 
   20858 
   20859 
   20860 # Enable -Werror in bootstrap stage2 and later.
   20861 # Check whether --enable-werror was given.
   20862 if test "${enable_werror+set}" = set; then :
   20863   enableval=$enable_werror;
   20864 case ${enable_werror} in
   20865   yes) stage2_werror_flag="--enable-werror-always" ;;
   20866   *) stage2_werror_flag="" ;;
   20867 esac
   20868 
   20869 else
   20870 
   20871 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
   20872   case $BUILD_CONFIG in
   20873   bootstrap-debug)
   20874       stage2_werror_flag="--enable-werror-always" ;;
   20875   "")
   20876       stage2_werror_flag="--enable-werror-always" ;;
   20877   esac
   20878 fi
   20879 
   20880 fi
   20881 
   20882 
   20883 
   20884 
   20885 # Specify what files to not compare during bootstrap.
   20886 
   20887 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
   20888 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
   20889 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
   20890 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
   20891 compare_exclusions="$compare_exclusions | gcc/cobol/parse\$(objext)"
   20892 case "$target" in
   20893   hppa*64*-*-hpux*) ;;
   20894   powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
   20895 esac
   20896 
   20897 
   20898 ac_config_files="$ac_config_files Makefile"
   20899 
   20900 cat >confcache <<\_ACEOF
   20901 # This file is a shell script that caches the results of configure
   20902 # tests run on this system so they can be shared between configure
   20903 # scripts and configure runs, see configure's option --config-cache.
   20904 # It is not useful on other systems.  If it contains results you don't
   20905 # want to keep, you may remove or edit it.
   20906 #
   20907 # config.status only pays attention to the cache file if you give it
   20908 # the --recheck option to rerun configure.
   20909 #
   20910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   20911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   20912 # following values.
   20913 
   20914 _ACEOF
   20915 
   20916 # The following way of writing the cache mishandles newlines in values,
   20917 # but we know of no workaround that is simple, portable, and efficient.
   20918 # So, we kill variables containing newlines.
   20919 # Ultrix sh set writes to stderr and can't be redirected directly,
   20920 # and sets the high bit in the cache file unless we assign to the vars.
   20921 (
   20922   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   20923     eval ac_val=\$$ac_var
   20924     case $ac_val in #(
   20925     *${as_nl}*)
   20926       case $ac_var in #(
   20927       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   20928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   20929       esac
   20930       case $ac_var in #(
   20931       _ | IFS | as_nl) ;; #(
   20932       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   20933       *) { eval $ac_var=; unset $ac_var;} ;;
   20934       esac ;;
   20935     esac
   20936   done
   20937 
   20938   (set) 2>&1 |
   20939     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   20940     *${as_nl}ac_space=\ *)
   20941       # `set' does not quote correctly, so add quotes: double-quote
   20942       # substitution turns \\\\ into \\, and sed turns \\ into \.
   20943       sed -n \
   20944 	"s/'/'\\\\''/g;
   20945 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   20946       ;; #(
   20947     *)
   20948       # `set' quotes correctly as required by POSIX, so do not add quotes.
   20949       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   20950       ;;
   20951     esac |
   20952     sort
   20953 ) |
   20954   sed '
   20955      /^ac_cv_env_/b end
   20956      t clear
   20957      :clear
   20958      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   20959      t end
   20960      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   20961      :end' >>confcache
   20962 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   20963   if test -w "$cache_file"; then
   20964     if test "x$cache_file" != "x/dev/null"; then
   20965       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   20966 $as_echo "$as_me: updating cache $cache_file" >&6;}
   20967       if test ! -f "$cache_file" || test -h "$cache_file"; then
   20968 	cat confcache >"$cache_file"
   20969       else
   20970         case $cache_file in #(
   20971         */* | ?:*)
   20972 	  mv -f confcache "$cache_file"$$ &&
   20973 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   20974         *)
   20975 	  mv -f confcache "$cache_file" ;;
   20976 	esac
   20977       fi
   20978     fi
   20979   else
   20980     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   20981 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   20982   fi
   20983 fi
   20984 rm -f confcache
   20985 
   20986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   20987 # Let make expand exec_prefix.
   20988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   20989 
   20990 # Transform confdefs.h into DEFS.
   20991 # Protect against shell expansion while executing Makefile rules.
   20992 # Protect against Makefile macro expansion.
   20993 #
   20994 # If the first sed substitution is executed (which looks for macros that
   20995 # take arguments), then branch to the quote section.  Otherwise,
   20996 # look for a macro that doesn't take arguments.
   20997 ac_script='
   20998 :mline
   20999 /\\$/{
   21000  N
   21001  s,\\\n,,
   21002  b mline
   21003 }
   21004 t clear
   21005 :clear
   21006 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
   21007 t quote
   21008 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
   21009 t quote
   21010 b any
   21011 :quote
   21012 s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
   21013 s/\[/\\&/g
   21014 s/\]/\\&/g
   21015 s/\$/$$/g
   21016 H
   21017 :any
   21018 ${
   21019 	g
   21020 	s/^\n//
   21021 	s/\n/ /g
   21022 	p
   21023 }
   21024 '
   21025 DEFS=`sed -n "$ac_script" confdefs.h`
   21026 
   21027 
   21028 ac_libobjs=
   21029 ac_ltlibobjs=
   21030 U=
   21031 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   21032   # 1. Remove the extension, and $U if already installed.
   21033   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   21034   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   21035   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   21036   #    will be set to the directory where LIBOBJS objects are built.
   21037   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   21038   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   21039 done
   21040 LIBOBJS=$ac_libobjs
   21041 
   21042 LTLIBOBJS=$ac_ltlibobjs
   21043 
   21044 
   21045 
   21046 : "${CONFIG_STATUS=./config.status}"
   21047 ac_write_fail=0
   21048 ac_clean_files_save=$ac_clean_files
   21049 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   21050 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   21051 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   21052 as_write_fail=0
   21053 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   21054 #! $SHELL
   21055 # Generated by $as_me.
   21056 # Run this file to recreate the current configuration.
   21057 # Compiler output produced by configure, useful for debugging
   21058 # configure, is in config.log if it exists.
   21059 
   21060 debug=false
   21061 ac_cs_recheck=false
   21062 ac_cs_silent=false
   21063 
   21064 SHELL=\${CONFIG_SHELL-$SHELL}
   21065 export SHELL
   21066 _ASEOF
   21067 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   21068 ## -------------------- ##
   21069 ## M4sh Initialization. ##
   21070 ## -------------------- ##
   21071 
   21072 # Be more Bourne compatible
   21073 DUALCASE=1; export DUALCASE # for MKS sh
   21074 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   21075   emulate sh
   21076   NULLCMD=:
   21077   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   21078   # is contrary to our usage.  Disable this feature.
   21079   alias -g '${1+"$@"}'='"$@"'
   21080   setopt NO_GLOB_SUBST
   21081 else
   21082   case `(set -o) 2>/dev/null` in #(
   21083   *posix*) :
   21084     set -o posix ;; #(
   21085   *) :
   21086      ;;
   21087 esac
   21088 fi
   21089 
   21090 
   21091 as_nl='
   21092 '
   21093 export as_nl
   21094 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   21095 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   21096 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   21097 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   21098 # Prefer a ksh shell builtin over an external printf program on Solaris,
   21099 # but without wasting forks for bash or zsh.
   21100 if test -z "$BASH_VERSION$ZSH_VERSION" \
   21101     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   21102   as_echo='print -r --'
   21103   as_echo_n='print -rn --'
   21104 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   21105   as_echo='printf %s\n'
   21106   as_echo_n='printf %s'
   21107 else
   21108   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   21109     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   21110     as_echo_n='/usr/ucb/echo -n'
   21111   else
   21112     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   21113     as_echo_n_body='eval
   21114       arg=$1;
   21115       case $arg in #(
   21116       *"$as_nl"*)
   21117 	expr "X$arg" : "X\\(.*\\)$as_nl";
   21118 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   21119       esac;
   21120       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   21121     '
   21122     export as_echo_n_body
   21123     as_echo_n='sh -c $as_echo_n_body as_echo'
   21124   fi
   21125   export as_echo_body
   21126   as_echo='sh -c $as_echo_body as_echo'
   21127 fi
   21128 
   21129 # The user is always right.
   21130 if test "${PATH_SEPARATOR+set}" != set; then
   21131   PATH_SEPARATOR=:
   21132   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   21133     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   21134       PATH_SEPARATOR=';'
   21135   }
   21136 fi
   21137 
   21138 
   21139 # IFS
   21140 # We need space, tab and new line, in precisely that order.  Quoting is
   21141 # there to prevent editors from complaining about space-tab.
   21142 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   21143 # splitting by setting IFS to empty value.)
   21144 IFS=" ""	$as_nl"
   21145 
   21146 # Find who we are.  Look in the path if we contain no directory separator.
   21147 as_myself=
   21148 case $0 in #((
   21149   *[\\/]* ) as_myself=$0 ;;
   21150   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21151 for as_dir in $PATH
   21152 do
   21153   IFS=$as_save_IFS
   21154   test -z "$as_dir" && as_dir=.
   21155     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   21156   done
   21157 IFS=$as_save_IFS
   21158 
   21159      ;;
   21160 esac
   21161 # We did not find ourselves, most probably we were run as `sh COMMAND'
   21162 # in which case we are not to be found in the path.
   21163 if test "x$as_myself" = x; then
   21164   as_myself=$0
   21165 fi
   21166 if test ! -f "$as_myself"; then
   21167   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   21168   exit 1
   21169 fi
   21170 
   21171 # Unset variables that we do not need and which cause bugs (e.g. in
   21172 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   21173 # suppresses any "Segmentation fault" message there.  '((' could
   21174 # trigger a bug in pdksh 5.2.14.
   21175 for as_var in BASH_ENV ENV MAIL MAILPATH
   21176 do eval test x\${$as_var+set} = xset \
   21177   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   21178 done
   21179 PS1='$ '
   21180 PS2='> '
   21181 PS4='+ '
   21182 
   21183 # NLS nuisances.
   21184 LC_ALL=C
   21185 export LC_ALL
   21186 LANGUAGE=C
   21187 export LANGUAGE
   21188 
   21189 # CDPATH.
   21190 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   21191 
   21192 
   21193 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   21194 # ----------------------------------------
   21195 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   21196 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   21197 # script with STATUS, using 1 if that was 0.
   21198 as_fn_error ()
   21199 {
   21200   as_status=$1; test $as_status -eq 0 && as_status=1
   21201   if test "$4"; then
   21202     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   21203     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   21204   fi
   21205   $as_echo "$as_me: error: $2" >&2
   21206   as_fn_exit $as_status
   21207 } # as_fn_error
   21208 
   21209 
   21210 # as_fn_set_status STATUS
   21211 # -----------------------
   21212 # Set $? to STATUS, without forking.
   21213 as_fn_set_status ()
   21214 {
   21215   return $1
   21216 } # as_fn_set_status
   21217 
   21218 # as_fn_exit STATUS
   21219 # -----------------
   21220 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   21221 as_fn_exit ()
   21222 {
   21223   set +e
   21224   as_fn_set_status $1
   21225   exit $1
   21226 } # as_fn_exit
   21227 
   21228 # as_fn_unset VAR
   21229 # ---------------
   21230 # Portably unset VAR.
   21231 as_fn_unset ()
   21232 {
   21233   { eval $1=; unset $1;}
   21234 }
   21235 as_unset=as_fn_unset
   21236 # as_fn_append VAR VALUE
   21237 # ----------------------
   21238 # Append the text in VALUE to the end of the definition contained in VAR. Take
   21239 # advantage of any shell optimizations that allow amortized linear growth over
   21240 # repeated appends, instead of the typical quadratic growth present in naive
   21241 # implementations.
   21242 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   21243   eval 'as_fn_append ()
   21244   {
   21245     eval $1+=\$2
   21246   }'
   21247 else
   21248   as_fn_append ()
   21249   {
   21250     eval $1=\$$1\$2
   21251   }
   21252 fi # as_fn_append
   21253 
   21254 # as_fn_arith ARG...
   21255 # ------------------
   21256 # Perform arithmetic evaluation on the ARGs, and store the result in the
   21257 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   21258 # must be portable across $(()) and expr.
   21259 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   21260   eval 'as_fn_arith ()
   21261   {
   21262     as_val=$(( $* ))
   21263   }'
   21264 else
   21265   as_fn_arith ()
   21266   {
   21267     as_val=`expr "$@" || test $? -eq 1`
   21268   }
   21269 fi # as_fn_arith
   21270 
   21271 
   21272 if expr a : '\(a\)' >/dev/null 2>&1 &&
   21273    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   21274   as_expr=expr
   21275 else
   21276   as_expr=false
   21277 fi
   21278 
   21279 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   21280   as_basename=basename
   21281 else
   21282   as_basename=false
   21283 fi
   21284 
   21285 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   21286   as_dirname=dirname
   21287 else
   21288   as_dirname=false
   21289 fi
   21290 
   21291 as_me=`$as_basename -- "$0" ||
   21292 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   21293 	 X"$0" : 'X\(//\)$' \| \
   21294 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   21295 $as_echo X/"$0" |
   21296     sed '/^.*\/\([^/][^/]*\)\/*$/{
   21297 	    s//\1/
   21298 	    q
   21299 	  }
   21300 	  /^X\/\(\/\/\)$/{
   21301 	    s//\1/
   21302 	    q
   21303 	  }
   21304 	  /^X\/\(\/\).*/{
   21305 	    s//\1/
   21306 	    q
   21307 	  }
   21308 	  s/.*/./; q'`
   21309 
   21310 # Avoid depending upon Character Ranges.
   21311 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   21312 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   21313 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   21314 as_cr_digits='0123456789'
   21315 as_cr_alnum=$as_cr_Letters$as_cr_digits
   21316 
   21317 ECHO_C= ECHO_N= ECHO_T=
   21318 case `echo -n x` in #(((((
   21319 -n*)
   21320   case `echo 'xy\c'` in
   21321   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   21322   xy)  ECHO_C='\c';;
   21323   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   21324        ECHO_T='	';;
   21325   esac;;
   21326 *)
   21327   ECHO_N='-n';;
   21328 esac
   21329 
   21330 rm -f conf$$ conf$$.exe conf$$.file
   21331 if test -d conf$$.dir; then
   21332   rm -f conf$$.dir/conf$$.file
   21333 else
   21334   rm -f conf$$.dir
   21335   mkdir conf$$.dir 2>/dev/null
   21336 fi
   21337 if (echo >conf$$.file) 2>/dev/null; then
   21338   if ln -s conf$$.file conf$$ 2>/dev/null; then
   21339     as_ln_s='ln -s'
   21340     # ... but there are two gotchas:
   21341     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   21342     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   21343     # In both cases, we have to default to `cp -pR'.
   21344     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   21345       as_ln_s='cp -pR'
   21346   elif ln conf$$.file conf$$ 2>/dev/null; then
   21347     as_ln_s=ln
   21348   else
   21349     as_ln_s='cp -pR'
   21350   fi
   21351 else
   21352   as_ln_s='cp -pR'
   21353 fi
   21354 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   21355 rmdir conf$$.dir 2>/dev/null
   21356 
   21357 
   21358 # as_fn_mkdir_p
   21359 # -------------
   21360 # Create "$as_dir" as a directory, including parents if necessary.
   21361 as_fn_mkdir_p ()
   21362 {
   21363 
   21364   case $as_dir in #(
   21365   -*) as_dir=./$as_dir;;
   21366   esac
   21367   test -d "$as_dir" || eval $as_mkdir_p || {
   21368     as_dirs=
   21369     while :; do
   21370       case $as_dir in #(
   21371       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   21372       *) as_qdir=$as_dir;;
   21373       esac
   21374       as_dirs="'$as_qdir' $as_dirs"
   21375       as_dir=`$as_dirname -- "$as_dir" ||
   21376 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21377 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   21378 	 X"$as_dir" : 'X\(//\)$' \| \
   21379 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   21380 $as_echo X"$as_dir" |
   21381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21382 	    s//\1/
   21383 	    q
   21384 	  }
   21385 	  /^X\(\/\/\)[^/].*/{
   21386 	    s//\1/
   21387 	    q
   21388 	  }
   21389 	  /^X\(\/\/\)$/{
   21390 	    s//\1/
   21391 	    q
   21392 	  }
   21393 	  /^X\(\/\).*/{
   21394 	    s//\1/
   21395 	    q
   21396 	  }
   21397 	  s/.*/./; q'`
   21398       test -d "$as_dir" && break
   21399     done
   21400     test -z "$as_dirs" || eval "mkdir $as_dirs"
   21401   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   21402 
   21403 
   21404 } # as_fn_mkdir_p
   21405 if mkdir -p . 2>/dev/null; then
   21406   as_mkdir_p='mkdir -p "$as_dir"'
   21407 else
   21408   test -d ./-p && rmdir ./-p
   21409   as_mkdir_p=false
   21410 fi
   21411 
   21412 
   21413 # as_fn_executable_p FILE
   21414 # -----------------------
   21415 # Test if FILE is an executable regular file.
   21416 as_fn_executable_p ()
   21417 {
   21418   test -f "$1" && test -x "$1"
   21419 } # as_fn_executable_p
   21420 as_test_x='test -x'
   21421 as_executable_p=as_fn_executable_p
   21422 
   21423 # Sed expression to map a string onto a valid CPP name.
   21424 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   21425 
   21426 # Sed expression to map a string onto a valid variable name.
   21427 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   21428 
   21429 
   21430 exec 6>&1
   21431 ## ----------------------------------- ##
   21432 ## Main body of $CONFIG_STATUS script. ##
   21433 ## ----------------------------------- ##
   21434 _ASEOF
   21435 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   21436 
   21437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21438 # Save the log message, to keep $0 and so on meaningful, and to
   21439 # report actual input values of CONFIG_FILES etc. instead of their
   21440 # values after options handling.
   21441 ac_log="
   21442 This file was extended by $as_me, which was
   21443 generated by GNU Autoconf 2.69.  Invocation command line was
   21444 
   21445   CONFIG_FILES    = $CONFIG_FILES
   21446   CONFIG_HEADERS  = $CONFIG_HEADERS
   21447   CONFIG_LINKS    = $CONFIG_LINKS
   21448   CONFIG_COMMANDS = $CONFIG_COMMANDS
   21449   $ $0 $@
   21450 
   21451 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   21452 "
   21453 
   21454 _ACEOF
   21455 
   21456 case $ac_config_files in *"
   21457 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   21458 esac
   21459 
   21460 
   21461 
   21462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21463 # Files that config.status was made for.
   21464 config_files="$ac_config_files"
   21465 
   21466 _ACEOF
   21467 
   21468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21469 ac_cs_usage="\
   21470 \`$as_me' instantiates files and other configuration actions
   21471 from templates according to the current configuration.  Unless the files
   21472 and actions are specified as TAGs, all are instantiated by default.
   21473 
   21474 Usage: $0 [OPTION]... [TAG]...
   21475 
   21476   -h, --help       print this help, then exit
   21477   -V, --version    print version number and configuration settings, then exit
   21478       --config     print configuration, then exit
   21479   -q, --quiet, --silent
   21480                    do not print progress messages
   21481   -d, --debug      don't remove temporary files
   21482       --recheck    update $as_me by reconfiguring in the same conditions
   21483       --file=FILE[:TEMPLATE]
   21484                    instantiate the configuration file FILE
   21485 
   21486 Configuration files:
   21487 $config_files
   21488 
   21489 Report bugs to the package provider."
   21490 
   21491 _ACEOF
   21492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21493 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   21494 ac_cs_version="\\
   21495 config.status
   21496 configured by $0, generated by GNU Autoconf 2.69,
   21497   with options \\"\$ac_cs_config\\"
   21498 
   21499 Copyright (C) 2012 Free Software Foundation, Inc.
   21500 This config.status script is free software; the Free Software Foundation
   21501 gives unlimited permission to copy, distribute and modify it."
   21502 
   21503 ac_pwd='$ac_pwd'
   21504 srcdir='$srcdir'
   21505 INSTALL='$INSTALL'
   21506 AWK='$AWK'
   21507 test -n "\$AWK" || AWK=awk
   21508 _ACEOF
   21509 
   21510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21511 # The default lists apply if the user does not specify any file.
   21512 ac_need_defaults=:
   21513 while test $# != 0
   21514 do
   21515   case $1 in
   21516   --*=?*)
   21517     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   21518     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   21519     ac_shift=:
   21520     ;;
   21521   --*=)
   21522     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   21523     ac_optarg=
   21524     ac_shift=:
   21525     ;;
   21526   *)
   21527     ac_option=$1
   21528     ac_optarg=$2
   21529     ac_shift=shift
   21530     ;;
   21531   esac
   21532 
   21533   case $ac_option in
   21534   # Handling of the options.
   21535   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   21536     ac_cs_recheck=: ;;
   21537   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   21538     $as_echo "$ac_cs_version"; exit ;;
   21539   --config | --confi | --conf | --con | --co | --c )
   21540     $as_echo "$ac_cs_config"; exit ;;
   21541   --debug | --debu | --deb | --de | --d | -d )
   21542     debug=: ;;
   21543   --file | --fil | --fi | --f )
   21544     $ac_shift
   21545     case $ac_optarg in
   21546     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   21547     '') as_fn_error $? "missing file argument" ;;
   21548     esac
   21549     as_fn_append CONFIG_FILES " '$ac_optarg'"
   21550     ac_need_defaults=false;;
   21551   --he | --h |  --help | --hel | -h )
   21552     $as_echo "$ac_cs_usage"; exit ;;
   21553   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   21554   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   21555     ac_cs_silent=: ;;
   21556 
   21557   # This is an error.
   21558   -*) as_fn_error $? "unrecognized option: \`$1'
   21559 Try \`$0 --help' for more information." ;;
   21560 
   21561   *) as_fn_append ac_config_targets " $1"
   21562      ac_need_defaults=false ;;
   21563 
   21564   esac
   21565   shift
   21566 done
   21567 
   21568 ac_configure_extra_args=
   21569 
   21570 if $ac_cs_silent; then
   21571   exec 6>/dev/null
   21572   ac_configure_extra_args="$ac_configure_extra_args --silent"
   21573 fi
   21574 
   21575 _ACEOF
   21576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21577 if \$ac_cs_recheck; then
   21578   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   21579   shift
   21580   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   21581   CONFIG_SHELL='$SHELL'
   21582   export CONFIG_SHELL
   21583   exec "\$@"
   21584 fi
   21585 
   21586 _ACEOF
   21587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21588 exec 5>>config.log
   21589 {
   21590   echo
   21591   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   21592 ## Running $as_me. ##
   21593 _ASBOX
   21594   $as_echo "$ac_log"
   21595 } >&5
   21596 
   21597 _ACEOF
   21598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21599 #
   21600 # INIT-COMMANDS
   21601 #
   21602 extrasub_build="$extrasub_build"
   21603    extrasub_host="$extrasub_host"
   21604    extrasub_target="$extrasub_target"
   21605 
   21606 _ACEOF
   21607 
   21608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21609 
   21610 # Handling of arguments.
   21611 for ac_config_target in $ac_config_targets
   21612 do
   21613   case $ac_config_target in
   21614     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   21615 
   21616   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   21617   esac
   21618 done
   21619 
   21620 
   21621 # If the user did not use the arguments to specify the items to instantiate,
   21622 # then the envvar interface is used.  Set only those that are not.
   21623 # We use the long form for the default assignment because of an extremely
   21624 # bizarre bug on SunOS 4.1.3.
   21625 if $ac_need_defaults; then
   21626   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   21627 fi
   21628 
   21629 # Have a temporary directory for convenience.  Make it in the build tree
   21630 # simply because there is no reason against having it here, and in addition,
   21631 # creating and moving files from /tmp can sometimes cause problems.
   21632 # Hook for its removal unless debugging.
   21633 # Note that there is a small window in which the directory will not be cleaned:
   21634 # after its creation but before its name has been assigned to `$tmp'.
   21635 $debug ||
   21636 {
   21637   tmp= ac_tmp=
   21638   trap 'exit_status=$?
   21639   : "${ac_tmp:=$tmp}"
   21640   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   21641 ' 0
   21642   trap 'as_fn_exit 1' 1 2 13 15
   21643 }
   21644 # Create a (secure) tmp directory for tmp files.
   21645 
   21646 {
   21647   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   21648   test -d "$tmp"
   21649 }  ||
   21650 {
   21651   tmp=./conf$$-$RANDOM
   21652   (umask 077 && mkdir "$tmp")
   21653 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   21654 ac_tmp=$tmp
   21655 
   21656 # Set up the scripts for CONFIG_FILES section.
   21657 # No need to generate them if there are no CONFIG_FILES.
   21658 # This happens for instance with `./config.status config.h'.
   21659 if test -n "$CONFIG_FILES"; then
   21660 
   21661 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   21662   ac_cs_awk_getline=:
   21663   ac_cs_awk_pipe_init=
   21664   ac_cs_awk_read_file='
   21665       while ((getline aline < (F[key])) > 0)
   21666 	print(aline)
   21667       close(F[key])'
   21668   ac_cs_awk_pipe_fini=
   21669 else
   21670   ac_cs_awk_getline=false
   21671   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   21672   ac_cs_awk_read_file='
   21673       print "|#_!!_#|"
   21674       print "cat " F[key] " &&"
   21675       '$ac_cs_awk_pipe_init
   21676   # The final `:' finishes the AND list.
   21677   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   21678 fi
   21679 ac_cr=`echo X | tr X '\015'`
   21680 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   21681 # But we know of no other shell where ac_cr would be empty at this
   21682 # point, so we can use a bashism as a fallback.
   21683 if test "x$ac_cr" = x; then
   21684   eval ac_cr=\$\'\\r\'
   21685 fi
   21686 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   21687 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   21688   ac_cs_awk_cr='\\r'
   21689 else
   21690   ac_cs_awk_cr=$ac_cr
   21691 fi
   21692 
   21693 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   21694 _ACEOF
   21695 
   21696 # Create commands to substitute file output variables.
   21697 {
   21698   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   21699   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   21700   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   21701   echo "_ACAWK" &&
   21702   echo "_ACEOF"
   21703 } >conf$$files.sh &&
   21704 . ./conf$$files.sh ||
   21705   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   21706 rm -f conf$$files.sh
   21707 
   21708 {
   21709   echo "cat >conf$$subs.awk <<_ACEOF" &&
   21710   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   21711   echo "_ACEOF"
   21712 } >conf$$subs.sh ||
   21713   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   21714 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   21715 ac_delim='%!_!# '
   21716 for ac_last_try in false false false false false :; do
   21717   . ./conf$$subs.sh ||
   21718     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   21719 
   21720   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   21721   if test $ac_delim_n = $ac_delim_num; then
   21722     break
   21723   elif $ac_last_try; then
   21724     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   21725   else
   21726     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   21727   fi
   21728 done
   21729 rm -f conf$$subs.sh
   21730 
   21731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21732 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   21733 _ACEOF
   21734 sed -n '
   21735 h
   21736 s/^/S["/; s/!.*/"]=/
   21737 p
   21738 g
   21739 s/^[^!]*!//
   21740 :repl
   21741 t repl
   21742 s/'"$ac_delim"'$//
   21743 t delim
   21744 :nl
   21745 h
   21746 s/\(.\{148\}\)..*/\1/
   21747 t more1
   21748 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   21749 p
   21750 n
   21751 b repl
   21752 :more1
   21753 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   21754 p
   21755 g
   21756 s/.\{148\}//
   21757 t nl
   21758 :delim
   21759 h
   21760 s/\(.\{148\}\)..*/\1/
   21761 t more2
   21762 s/["\\]/\\&/g; s/^/"/; s/$/"/
   21763 p
   21764 b
   21765 :more2
   21766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   21767 p
   21768 g
   21769 s/.\{148\}//
   21770 t delim
   21771 ' <conf$$subs.awk | sed '
   21772 /^[^""]/{
   21773   N
   21774   s/\n//
   21775 }
   21776 ' >>$CONFIG_STATUS || ac_write_fail=1
   21777 rm -f conf$$subs.awk
   21778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21779 _ACAWK
   21780 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   21781   for (key in S) S_is_set[key] = 1
   21782   FS = ""
   21783   \$ac_cs_awk_pipe_init
   21784 }
   21785 {
   21786   line = $ 0
   21787   nfields = split(line, field, "@")
   21788   substed = 0
   21789   len = length(field[1])
   21790   for (i = 2; i < nfields; i++) {
   21791     key = field[i]
   21792     keylen = length(key)
   21793     if (S_is_set[key]) {
   21794       value = S[key]
   21795       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   21796       len += length(value) + length(field[++i])
   21797       substed = 1
   21798     } else
   21799       len += 1 + keylen
   21800   }
   21801   if (nfields == 3 && !substed) {
   21802     key = field[2]
   21803     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   21804       \$ac_cs_awk_read_file
   21805       next
   21806     }
   21807   }
   21808   print line
   21809 }
   21810 \$ac_cs_awk_pipe_fini
   21811 _ACAWK
   21812 _ACEOF
   21813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21814 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   21815   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   21816 else
   21817   cat
   21818 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   21819   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   21820 _ACEOF
   21821 
   21822 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   21823 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   21824 # trailing colons and then remove the whole line if VPATH becomes empty
   21825 # (actually we leave an empty line to preserve line numbers).
   21826 if test "x$srcdir" = x.; then
   21827   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   21828 h
   21829 s///
   21830 s/^/:/
   21831 s/[	 ]*$/:/
   21832 s/:\$(srcdir):/:/g
   21833 s/:\${srcdir}:/:/g
   21834 s/:@srcdir@:/:/g
   21835 s/^:*//
   21836 s/:*$//
   21837 x
   21838 s/\(=[	 ]*\).*/\1/
   21839 G
   21840 s/\n//
   21841 s/^[^=]*=[	 ]*$//
   21842 }'
   21843 fi
   21844 
   21845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21846 fi # test -n "$CONFIG_FILES"
   21847 
   21848 
   21849 eval set X "  :F $CONFIG_FILES      "
   21850 shift
   21851 for ac_tag
   21852 do
   21853   case $ac_tag in
   21854   :[FHLC]) ac_mode=$ac_tag; continue;;
   21855   esac
   21856   case $ac_mode$ac_tag in
   21857   :[FHL]*:*);;
   21858   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   21859   :[FH]-) ac_tag=-:-;;
   21860   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   21861   esac
   21862   ac_save_IFS=$IFS
   21863   IFS=:
   21864   set x $ac_tag
   21865   IFS=$ac_save_IFS
   21866   shift
   21867   ac_file=$1
   21868   shift
   21869 
   21870   case $ac_mode in
   21871   :L) ac_source=$1;;
   21872   :[FH])
   21873     ac_file_inputs=
   21874     for ac_f
   21875     do
   21876       case $ac_f in
   21877       -) ac_f="$ac_tmp/stdin";;
   21878       *) # Look for the file first in the build tree, then in the source tree
   21879 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   21880 	 # because $ac_f cannot contain `:'.
   21881 	 test -f "$ac_f" ||
   21882 	   case $ac_f in
   21883 	   [\\/$]*) false;;
   21884 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   21885 	   esac ||
   21886 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   21887       esac
   21888       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   21889       as_fn_append ac_file_inputs " '$ac_f'"
   21890     done
   21891 
   21892     # Let's still pretend it is `configure' which instantiates (i.e., don't
   21893     # use $as_me), people would be surprised to read:
   21894     #    /* config.h.  Generated by config.status.  */
   21895     configure_input='Generated from '`
   21896 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   21897 	`' by configure.'
   21898     if test x"$ac_file" != x-; then
   21899       configure_input="$ac_file.  $configure_input"
   21900       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   21901 $as_echo "$as_me: creating $ac_file" >&6;}
   21902     fi
   21903     # Neutralize special characters interpreted by sed in replacement strings.
   21904     case $configure_input in #(
   21905     *\&* | *\|* | *\\* )
   21906        ac_sed_conf_input=`$as_echo "$configure_input" |
   21907        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   21908     *) ac_sed_conf_input=$configure_input;;
   21909     esac
   21910 
   21911     case $ac_tag in
   21912     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   21913       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   21914     esac
   21915     ;;
   21916   esac
   21917 
   21918   ac_dir=`$as_dirname -- "$ac_file" ||
   21919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21920 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   21921 	 X"$ac_file" : 'X\(//\)$' \| \
   21922 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   21923 $as_echo X"$ac_file" |
   21924     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21925 	    s//\1/
   21926 	    q
   21927 	  }
   21928 	  /^X\(\/\/\)[^/].*/{
   21929 	    s//\1/
   21930 	    q
   21931 	  }
   21932 	  /^X\(\/\/\)$/{
   21933 	    s//\1/
   21934 	    q
   21935 	  }
   21936 	  /^X\(\/\).*/{
   21937 	    s//\1/
   21938 	    q
   21939 	  }
   21940 	  s/.*/./; q'`
   21941   as_dir="$ac_dir"; as_fn_mkdir_p
   21942   ac_builddir=.
   21943 
   21944 case "$ac_dir" in
   21945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   21946 *)
   21947   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   21948   # A ".." for each directory in $ac_dir_suffix.
   21949   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   21950   case $ac_top_builddir_sub in
   21951   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   21952   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   21953   esac ;;
   21954 esac
   21955 ac_abs_top_builddir=$ac_pwd
   21956 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   21957 # for backward compatibility:
   21958 ac_top_builddir=$ac_top_build_prefix
   21959 
   21960 case $srcdir in
   21961   .)  # We are building in place.
   21962     ac_srcdir=.
   21963     ac_top_srcdir=$ac_top_builddir_sub
   21964     ac_abs_top_srcdir=$ac_pwd ;;
   21965   [\\/]* | ?:[\\/]* )  # Absolute name.
   21966     ac_srcdir=$srcdir$ac_dir_suffix;
   21967     ac_top_srcdir=$srcdir
   21968     ac_abs_top_srcdir=$srcdir ;;
   21969   *) # Relative name.
   21970     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   21971     ac_top_srcdir=$ac_top_build_prefix$srcdir
   21972     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   21973 esac
   21974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   21975 
   21976 
   21977   case $ac_mode in
   21978   :F)
   21979   #
   21980   # CONFIG_FILE
   21981   #
   21982 
   21983   case $INSTALL in
   21984   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   21985   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   21986   esac
   21987 _ACEOF
   21988 
   21989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21990 # If the template does not know about datarootdir, expand it.
   21991 # FIXME: This hack should be removed a few years after 2.60.
   21992 ac_datarootdir_hack=; ac_datarootdir_seen=
   21993 ac_sed_dataroot='
   21994 /datarootdir/ {
   21995   p
   21996   q
   21997 }
   21998 /@datadir@/p
   21999 /@docdir@/p
   22000 /@infodir@/p
   22001 /@localedir@/p
   22002 /@mandir@/p'
   22003 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   22004 *datarootdir*) ac_datarootdir_seen=yes;;
   22005 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   22006   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   22007 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   22008 _ACEOF
   22009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22010   ac_datarootdir_hack='
   22011   s&@datadir@&$datadir&g
   22012   s&@docdir@&$docdir&g
   22013   s&@infodir@&$infodir&g
   22014   s&@localedir@&$localedir&g
   22015   s&@mandir@&$mandir&g
   22016   s&\\\${datarootdir}&$datarootdir&g' ;;
   22017 esac
   22018 _ACEOF
   22019 
   22020 # Neutralize VPATH when `$srcdir' = `.'.
   22021 # Shell code in configure.ac might set extrasub.
   22022 # FIXME: do we really want to maintain this feature?
   22023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   22024 ac_sed_extra="$ac_vpsub
   22025 $extrasub
   22026 _ACEOF
   22027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   22028 :t
   22029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   22030 s|@configure_input@|$ac_sed_conf_input|;t t
   22031 s&@top_builddir@&$ac_top_builddir_sub&;t t
   22032 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   22033 s&@srcdir@&$ac_srcdir&;t t
   22034 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   22035 s&@top_srcdir@&$ac_top_srcdir&;t t
   22036 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   22037 s&@builddir@&$ac_builddir&;t t
   22038 s&@abs_builddir@&$ac_abs_builddir&;t t
   22039 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   22040 s&@INSTALL@&$ac_INSTALL&;t t
   22041 $ac_datarootdir_hack
   22042 "
   22043 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   22044 if $ac_cs_awk_getline; then
   22045   $AWK -f "$ac_tmp/subs.awk"
   22046 else
   22047   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   22048 fi \
   22049   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   22050 
   22051 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   22052   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   22053   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   22054       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   22055   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   22056 which seems to be undefined.  Please make sure it is defined" >&5
   22057 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   22058 which seems to be undefined.  Please make sure it is defined" >&2;}
   22059 
   22060   rm -f "$ac_tmp/stdin"
   22061   case $ac_file in
   22062   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   22063   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   22064   esac \
   22065   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   22066  ;;
   22067 
   22068 
   22069 
   22070   esac
   22071 
   22072 
   22073   case $ac_file$ac_mode in
   22074     "Makefile":F) sed "$extrasub_build" Makefile |
   22075    sed "$extrasub_host" |
   22076    sed "$extrasub_target" > mf$$
   22077    mv -f mf$$ Makefile ;;
   22078 
   22079   esac
   22080 done # for ac_tag
   22081 
   22082 
   22083 as_fn_exit 0
   22084 _ACEOF
   22085 ac_clean_files=$ac_clean_files_save
   22086 
   22087 test $ac_write_fail = 0 ||
   22088   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   22089 
   22090 
   22091 # configure is writing to config.log, and then calls config.status.
   22092 # config.status does its own redirection, appending to config.log.
   22093 # Unfortunately, on DOS this fails, as config.log is still kept open
   22094 # by configure, so config.status won't be able to write to it; its
   22095 # output is simply discarded.  So we exec the FD to /dev/null,
   22096 # effectively closing config.log, so it can be properly (re)opened and
   22097 # appended to by config.status.  When coming back to configure, we
   22098 # need to make the FD available again.
   22099 if test "$no_create" != yes; then
   22100   ac_cs_success=:
   22101   ac_config_status_args=
   22102   test "$silent" = yes &&
   22103     ac_config_status_args="$ac_config_status_args --quiet"
   22104   exec 5>/dev/null
   22105   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   22106   exec 5>>config.log
   22107   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   22108   # would make configure fail if this is the last instruction.
   22109   $ac_cs_success || as_fn_exit 1
   22110 fi
   22111 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   22112   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   22113 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   22114 fi
   22115 
   22116