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 FLAGS_FOR_TARGET
    600 RAW_CXX_FOR_TARGET
    601 WINDMC_FOR_TARGET
    602 WINDRES_FOR_TARGET
    603 STRIP_FOR_TARGET
    604 READELF_FOR_TARGET
    605 RANLIB_FOR_TARGET
    606 OTOOL_FOR_TARGET
    607 OBJDUMP_FOR_TARGET
    608 OBJCOPY_FOR_TARGET
    609 NM_FOR_TARGET
    610 LIPO_FOR_TARGET
    611 LD_FOR_TARGET
    612 DSYMUTIL_FOR_TARGET
    613 DLLTOOL_FOR_TARGET
    614 AS_FOR_TARGET
    615 AR_FOR_TARGET
    616 GM2_FOR_TARGET
    617 GDC_FOR_TARGET
    618 GOC_FOR_TARGET
    619 GFORTRAN_FOR_TARGET
    620 GCC_FOR_TARGET
    621 CXX_FOR_TARGET
    622 CC_FOR_TARGET
    623 RANLIB_PLUGIN_OPTION
    624 AR_PLUGIN_OPTION
    625 PKG_CONFIG_PATH
    626 GDCFLAGS
    627 READELF
    628 OTOOL
    629 OBJDUMP
    630 OBJCOPY
    631 WINDMC
    632 WINDRES
    633 STRIP
    634 RANLIB
    635 NM
    636 LIPO
    637 LD
    638 DSYMUTIL
    639 DLLTOOL
    640 AS
    641 AR
    642 RUNTEST
    643 EXPECT
    644 MAKEINFO
    645 FLEX
    646 LEX
    647 M4
    648 BISON
    649 YACC
    650 WINDRES_FOR_BUILD
    651 WINDMC_FOR_BUILD
    652 RANLIB_FOR_BUILD
    653 NM_FOR_BUILD
    654 LD_FOR_BUILD
    655 LDFLAGS_FOR_BUILD
    656 GDC_FOR_BUILD
    657 GOC_FOR_BUILD
    658 GFORTRAN_FOR_BUILD
    659 DSYMUTIL_FOR_BUILD
    660 DLLTOOL_FOR_BUILD
    661 CXX_FOR_BUILD
    662 CXXFLAGS_FOR_BUILD
    663 CPPFLAGS_FOR_BUILD
    664 CPP_FOR_BUILD
    665 CFLAGS_FOR_BUILD
    666 CC_FOR_BUILD
    667 AS_FOR_BUILD
    668 AR_FOR_BUILD
    669 target_configdirs
    670 configdirs
    671 build_configdirs
    672 INSTALL_GDB_TK
    673 GDB_TK
    674 CONFIGURE_GDB_TK
    675 build_tooldir
    676 tooldir
    677 GCC_SHLIB_SUBDIR
    678 RPATH_ENVVAR
    679 target_configargs
    680 host_configargs
    681 build_configargs
    682 BUILD_CONFIG
    683 LDFLAGS_FOR_TARGET
    684 CXXFLAGS_FOR_TARGET
    685 CFLAGS_FOR_TARGET
    686 DEBUG_PREFIX_CFLAGS_FOR_TARGET
    687 SYSROOT_CFLAGS_FOR_TARGET
    688 get_gcc_base_ver
    689 extra_host_zlib_configure_flags
    690 extra_host_libiberty_configure_flags
    691 stage1_languages
    692 host_libs_picflag
    693 CRAB1_LIBS
    694 enable_libdiagnostics
    695 PICFLAG
    696 host_shared
    697 gcc_host_pie
    698 host_pie
    699 extra_linker_plugin_flags
    700 extra_linker_plugin_configure_flags
    701 islinc
    702 isllibs
    703 poststage1_ldflags
    704 poststage1_libs
    705 stage1_ldflags
    706 stage1_libs
    707 extra_isl_gmp_configure_flags
    708 extra_mpc_mpfr_configure_flags
    709 extra_mpc_gmp_configure_flags
    710 extra_mpfr_configure_flags
    711 gmpinc
    712 gmplibs
    713 PGO_BUILD_LTO_CFLAGS
    714 PGO_BUILD_USE_CFLAGS
    715 PGO_BUILD_GEN_CFLAGS
    716 HAVE_CXX14_FOR_BUILD
    717 HAVE_CXX14
    718 do_compare
    719 CARGO
    720 GDC
    721 GNATMAKE
    722 GNATBIND
    723 ac_ct_CXX
    724 CXXFLAGS
    725 CXX
    726 OBJEXT
    727 EXEEXT
    728 ac_ct_CC
    729 CPPFLAGS
    730 LDFLAGS
    731 CFLAGS
    732 CC
    733 target_subdir
    734 host_subdir
    735 build_subdir
    736 build_libsubdir
    737 AWK
    738 SED
    739 LN_S
    740 LN
    741 INSTALL_DATA
    742 INSTALL_SCRIPT
    743 INSTALL_PROGRAM
    744 target_os
    745 target_vendor
    746 target_cpu
    747 target
    748 host_os
    749 host_vendor
    750 host_cpu
    751 host
    752 target_noncanonical
    753 host_noncanonical
    754 build_noncanonical
    755 build_os
    756 build_vendor
    757 build_cpu
    758 build
    759 TOPLEVEL_CONFIGURE_ARGUMENTS
    760 target_alias
    761 host_alias
    762 build_alias
    763 LIBS
    764 ECHO_T
    765 ECHO_N
    766 ECHO_C
    767 DEFS
    768 mandir
    769 localedir
    770 libdir
    771 psdir
    772 pdfdir
    773 dvidir
    774 htmldir
    775 infodir
    776 docdir
    777 oldincludedir
    778 includedir
    779 localstatedir
    780 sharedstatedir
    781 sysconfdir
    782 datadir
    783 datarootdir
    784 libexecdir
    785 sbindir
    786 bindir
    787 program_transform_name
    788 prefix
    789 exec_prefix
    790 PACKAGE_URL
    791 PACKAGE_BUGREPORT
    792 PACKAGE_STRING
    793 PACKAGE_VERSION
    794 PACKAGE_TARNAME
    795 PACKAGE_NAME
    796 PATH_SEPARATOR
    797 SHELL'
    798 ac_subst_files='serialization_dependencies
    799 host_makefile_frag
    800 target_makefile_frag
    801 alphaieee_frag
    802 ospace_frag'
    803 ac_user_opts='
    804 enable_option_checking
    805 with_build_libsubdir
    806 with_system_zlib
    807 with_zstd
    808 enable_as_accelerator_for
    809 enable_offload_targets
    810 enable_offload_defaulted
    811 enable_gold
    812 enable_ld
    813 enable_gprofng
    814 enable_compressed_debug_sections
    815 enable_default_compressed_debug_sections_algorithm
    816 enable_year2038
    817 enable_libquadmath
    818 enable_libquadmath_support
    819 enable_libada
    820 enable_libgm2
    821 enable_libssp
    822 enable_libstdcxx
    823 enable_bootstrap
    824 enable_pgo_build
    825 with_mpc
    826 with_mpc_include
    827 with_mpc_lib
    828 with_mpfr
    829 with_mpfr_include
    830 with_mpfr_lib
    831 with_gmp
    832 with_gmp_include
    833 with_gmp_lib
    834 with_stage1_libs
    835 with_static_standard_libraries
    836 with_stage1_ldflags
    837 with_boot_libs
    838 with_boot_ldflags
    839 with_isl
    840 with_isl_include
    841 with_isl_lib
    842 enable_isl_version_check
    843 enable_lto
    844 enable_linker_plugin_configure_flags
    845 enable_linker_plugin_flags
    846 enable_host_pie
    847 enable_host_shared
    848 enable_libdiagnostics
    849 enable_stage1_languages
    850 enable_objc_gc
    851 with_target_bdw_gc
    852 with_target_bdw_gc_include
    853 with_target_bdw_gc_lib
    854 with_gcc_major_version_only
    855 with_build_sysroot
    856 with_debug_prefix_map
    857 with_build_config
    858 enable_vtable_verify
    859 enable_serial_configure
    860 with_build_time_tools
    861 enable_maintainer_mode
    862 enable_stage1_checking
    863 enable_werror
    864 '
    865       ac_precious_vars='build_alias
    866 host_alias
    867 target_alias
    868 CC
    869 CFLAGS
    870 LDFLAGS
    871 LIBS
    872 CPPFLAGS
    873 CXX
    874 CXXFLAGS
    875 CCC
    876 build_configargs
    877 host_configargs
    878 target_configargs
    879 AR
    880 AS
    881 DLLTOOL
    882 DSYMUTIL
    883 LD
    884 LIPO
    885 NM
    886 RANLIB
    887 STRIP
    888 WINDRES
    889 WINDMC
    890 OBJCOPY
    891 OBJDUMP
    892 OTOOL
    893 READELF
    894 CC_FOR_TARGET
    895 CXX_FOR_TARGET
    896 GCC_FOR_TARGET
    897 GFORTRAN_FOR_TARGET
    898 GOC_FOR_TARGET
    899 GDC_FOR_TARGET
    900 GM2_FOR_TARGET
    901 AR_FOR_TARGET
    902 AS_FOR_TARGET
    903 DLLTOOL_FOR_TARGET
    904 DSYMUTIL_FOR_TARGET
    905 LD_FOR_TARGET
    906 LIPO_FOR_TARGET
    907 NM_FOR_TARGET
    908 OBJCOPY_FOR_TARGET
    909 OBJDUMP_FOR_TARGET
    910 OTOOL_FOR_TARGET
    911 RANLIB_FOR_TARGET
    912 READELF_FOR_TARGET
    913 STRIP_FOR_TARGET
    914 WINDRES_FOR_TARGET
    915 WINDMC_FOR_TARGET'
    916 
    917 
    918 # Initialize some variables set by options.
    919 ac_init_help=
    920 ac_init_version=false
    921 ac_unrecognized_opts=
    922 ac_unrecognized_sep=
    923 # The variables have the same names as the options, with
    924 # dashes changed to underlines.
    925 cache_file=/dev/null
    926 exec_prefix=NONE
    927 no_create=
    928 no_recursion=
    929 prefix=NONE
    930 program_prefix=NONE
    931 program_suffix=NONE
    932 program_transform_name=s,x,x,
    933 silent=
    934 site=
    935 srcdir=
    936 verbose=
    937 x_includes=NONE
    938 x_libraries=NONE
    939 
    940 # Installation directory options.
    941 # These are left unexpanded so users can "make install exec_prefix=/foo"
    942 # and all the variables that are supposed to be based on exec_prefix
    943 # by default will actually change.
    944 # Use braces instead of parens because sh, perl, etc. also accept them.
    945 # (The list follows the same order as the GNU Coding Standards.)
    946 bindir='${exec_prefix}/bin'
    947 sbindir='${exec_prefix}/sbin'
    948 libexecdir='${exec_prefix}/libexec'
    949 datarootdir='${prefix}/share'
    950 datadir='${datarootdir}'
    951 sysconfdir='${prefix}/etc'
    952 sharedstatedir='${prefix}/com'
    953 localstatedir='${prefix}/var'
    954 includedir='${prefix}/include'
    955 oldincludedir='/usr/include'
    956 docdir='${datarootdir}/doc/${PACKAGE}'
    957 infodir='${datarootdir}/info'
    958 htmldir='${docdir}'
    959 dvidir='${docdir}'
    960 pdfdir='${docdir}'
    961 psdir='${docdir}'
    962 libdir='${exec_prefix}/lib'
    963 localedir='${datarootdir}/locale'
    964 mandir='${datarootdir}/man'
    965 
    966 ac_prev=
    967 ac_dashdash=
    968 for ac_option
    969 do
    970   # If the previous option needs an argument, assign it.
    971   if test -n "$ac_prev"; then
    972     eval $ac_prev=\$ac_option
    973     ac_prev=
    974     continue
    975   fi
    976 
    977   case $ac_option in
    978   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    979   *=)   ac_optarg= ;;
    980   *)    ac_optarg=yes ;;
    981   esac
    982 
    983   # Accept the important Cygnus configure options, so we can diagnose typos.
    984 
    985   case $ac_dashdash$ac_option in
    986   --)
    987     ac_dashdash=yes ;;
    988 
    989   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    990     ac_prev=bindir ;;
    991   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    992     bindir=$ac_optarg ;;
    993 
    994   -build | --build | --buil | --bui | --bu)
    995     ac_prev=build_alias ;;
    996   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    997     build_alias=$ac_optarg ;;
    998 
    999   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1000   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1001     ac_prev=cache_file ;;
   1002   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1003   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1004     cache_file=$ac_optarg ;;
   1005 
   1006   --config-cache | -C)
   1007     cache_file=config.cache ;;
   1008 
   1009   -datadir | --datadir | --datadi | --datad)
   1010     ac_prev=datadir ;;
   1011   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1012     datadir=$ac_optarg ;;
   1013 
   1014   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1015   | --dataroo | --dataro | --datar)
   1016     ac_prev=datarootdir ;;
   1017   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1018   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1019     datarootdir=$ac_optarg ;;
   1020 
   1021   -disable-* | --disable-*)
   1022     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1023     # Reject names that are not valid shell variable names.
   1024     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1025       as_fn_error $? "invalid feature name: $ac_useropt"
   1026     ac_useropt_orig=$ac_useropt
   1027     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1028     case $ac_user_opts in
   1029       *"
   1030 "enable_$ac_useropt"
   1031 "*) ;;
   1032       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1033 	 ac_unrecognized_sep=', ';;
   1034     esac
   1035     eval enable_$ac_useropt=no ;;
   1036 
   1037   -docdir | --docdir | --docdi | --doc | --do)
   1038     ac_prev=docdir ;;
   1039   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1040     docdir=$ac_optarg ;;
   1041 
   1042   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1043     ac_prev=dvidir ;;
   1044   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1045     dvidir=$ac_optarg ;;
   1046 
   1047   -enable-* | --enable-*)
   1048     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1049     # Reject names that are not valid shell variable names.
   1050     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1051       as_fn_error $? "invalid feature name: $ac_useropt"
   1052     ac_useropt_orig=$ac_useropt
   1053     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1054     case $ac_user_opts in
   1055       *"
   1056 "enable_$ac_useropt"
   1057 "*) ;;
   1058       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1059 	 ac_unrecognized_sep=', ';;
   1060     esac
   1061     eval enable_$ac_useropt=\$ac_optarg ;;
   1062 
   1063   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1064   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1065   | --exec | --exe | --ex)
   1066     ac_prev=exec_prefix ;;
   1067   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1068   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1069   | --exec=* | --exe=* | --ex=*)
   1070     exec_prefix=$ac_optarg ;;
   1071 
   1072   -gas | --gas | --ga | --g)
   1073     # Obsolete; use --with-gas.
   1074     with_gas=yes ;;
   1075 
   1076   -help | --help | --hel | --he | -h)
   1077     ac_init_help=long ;;
   1078   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1079     ac_init_help=recursive ;;
   1080   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1081     ac_init_help=short ;;
   1082 
   1083   -host | --host | --hos | --ho)
   1084     ac_prev=host_alias ;;
   1085   -host=* | --host=* | --hos=* | --ho=*)
   1086     host_alias=$ac_optarg ;;
   1087 
   1088   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1089     ac_prev=htmldir ;;
   1090   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1091   | --ht=*)
   1092     htmldir=$ac_optarg ;;
   1093 
   1094   -includedir | --includedir | --includedi | --included | --include \
   1095   | --includ | --inclu | --incl | --inc)
   1096     ac_prev=includedir ;;
   1097   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1098   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1099     includedir=$ac_optarg ;;
   1100 
   1101   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1102     ac_prev=infodir ;;
   1103   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1104     infodir=$ac_optarg ;;
   1105 
   1106   -libdir | --libdir | --libdi | --libd)
   1107     ac_prev=libdir ;;
   1108   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1109     libdir=$ac_optarg ;;
   1110 
   1111   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1112   | --libexe | --libex | --libe)
   1113     ac_prev=libexecdir ;;
   1114   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1115   | --libexe=* | --libex=* | --libe=*)
   1116     libexecdir=$ac_optarg ;;
   1117 
   1118   -localedir | --localedir | --localedi | --localed | --locale)
   1119     ac_prev=localedir ;;
   1120   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1121     localedir=$ac_optarg ;;
   1122 
   1123   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1124   | --localstate | --localstat | --localsta | --localst | --locals)
   1125     ac_prev=localstatedir ;;
   1126   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1127   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1128     localstatedir=$ac_optarg ;;
   1129 
   1130   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1131     ac_prev=mandir ;;
   1132   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1133     mandir=$ac_optarg ;;
   1134 
   1135   -nfp | --nfp | --nf)
   1136     # Obsolete; use --without-fp.
   1137     with_fp=no ;;
   1138 
   1139   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1140   | --no-cr | --no-c | -n)
   1141     no_create=yes ;;
   1142 
   1143   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1144   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1145     no_recursion=yes ;;
   1146 
   1147   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1148   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1149   | --oldin | --oldi | --old | --ol | --o)
   1150     ac_prev=oldincludedir ;;
   1151   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1152   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1153   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1154     oldincludedir=$ac_optarg ;;
   1155 
   1156   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1157     ac_prev=prefix ;;
   1158   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1159     prefix=$ac_optarg ;;
   1160 
   1161   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1162   | --program-pre | --program-pr | --program-p)
   1163     ac_prev=program_prefix ;;
   1164   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1165   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1166     program_prefix=$ac_optarg ;;
   1167 
   1168   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1169   | --program-suf | --program-su | --program-s)
   1170     ac_prev=program_suffix ;;
   1171   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1172   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1173     program_suffix=$ac_optarg ;;
   1174 
   1175   -program-transform-name | --program-transform-name \
   1176   | --program-transform-nam | --program-transform-na \
   1177   | --program-transform-n | --program-transform- \
   1178   | --program-transform | --program-transfor \
   1179   | --program-transfo | --program-transf \
   1180   | --program-trans | --program-tran \
   1181   | --progr-tra | --program-tr | --program-t)
   1182     ac_prev=program_transform_name ;;
   1183   -program-transform-name=* | --program-transform-name=* \
   1184   | --program-transform-nam=* | --program-transform-na=* \
   1185   | --program-transform-n=* | --program-transform-=* \
   1186   | --program-transform=* | --program-transfor=* \
   1187   | --program-transfo=* | --program-transf=* \
   1188   | --program-trans=* | --program-tran=* \
   1189   | --progr-tra=* | --program-tr=* | --program-t=*)
   1190     program_transform_name=$ac_optarg ;;
   1191 
   1192   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1193     ac_prev=pdfdir ;;
   1194   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1195     pdfdir=$ac_optarg ;;
   1196 
   1197   -psdir | --psdir | --psdi | --psd | --ps)
   1198     ac_prev=psdir ;;
   1199   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1200     psdir=$ac_optarg ;;
   1201 
   1202   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1203   | -silent | --silent | --silen | --sile | --sil)
   1204     silent=yes ;;
   1205 
   1206   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1207     ac_prev=sbindir ;;
   1208   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1209   | --sbi=* | --sb=*)
   1210     sbindir=$ac_optarg ;;
   1211 
   1212   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1213   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1214   | --sharedst | --shareds | --shared | --share | --shar \
   1215   | --sha | --sh)
   1216     ac_prev=sharedstatedir ;;
   1217   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1218   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1219   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1220   | --sha=* | --sh=*)
   1221     sharedstatedir=$ac_optarg ;;
   1222 
   1223   -site | --site | --sit)
   1224     ac_prev=site ;;
   1225   -site=* | --site=* | --sit=*)
   1226     site=$ac_optarg ;;
   1227 
   1228   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1229     ac_prev=srcdir ;;
   1230   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1231     srcdir=$ac_optarg ;;
   1232 
   1233   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1234   | --syscon | --sysco | --sysc | --sys | --sy)
   1235     ac_prev=sysconfdir ;;
   1236   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1237   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1238     sysconfdir=$ac_optarg ;;
   1239 
   1240   -target | --target | --targe | --targ | --tar | --ta | --t)
   1241     ac_prev=target_alias ;;
   1242   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1243     target_alias=$ac_optarg ;;
   1244 
   1245   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1246     verbose=yes ;;
   1247 
   1248   -version | --version | --versio | --versi | --vers | -V)
   1249     ac_init_version=: ;;
   1250 
   1251   -with-* | --with-*)
   1252     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1253     # Reject names that are not valid shell variable names.
   1254     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1255       as_fn_error $? "invalid package name: $ac_useropt"
   1256     ac_useropt_orig=$ac_useropt
   1257     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1258     case $ac_user_opts in
   1259       *"
   1260 "with_$ac_useropt"
   1261 "*) ;;
   1262       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1263 	 ac_unrecognized_sep=', ';;
   1264     esac
   1265     eval with_$ac_useropt=\$ac_optarg ;;
   1266 
   1267   -without-* | --without-*)
   1268     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1269     # Reject names that are not valid shell variable names.
   1270     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1271       as_fn_error $? "invalid package name: $ac_useropt"
   1272     ac_useropt_orig=$ac_useropt
   1273     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1274     case $ac_user_opts in
   1275       *"
   1276 "with_$ac_useropt"
   1277 "*) ;;
   1278       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1279 	 ac_unrecognized_sep=', ';;
   1280     esac
   1281     eval with_$ac_useropt=no ;;
   1282 
   1283   --x)
   1284     # Obsolete; use --with-x.
   1285     with_x=yes ;;
   1286 
   1287   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1288   | --x-incl | --x-inc | --x-in | --x-i)
   1289     ac_prev=x_includes ;;
   1290   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1291   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1292     x_includes=$ac_optarg ;;
   1293 
   1294   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1295   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1296     ac_prev=x_libraries ;;
   1297   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1298   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1299     x_libraries=$ac_optarg ;;
   1300 
   1301   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1302 Try \`$0 --help' for more information"
   1303     ;;
   1304 
   1305   *=*)
   1306     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1307     # Reject names that are not valid shell variable names.
   1308     case $ac_envvar in #(
   1309       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1310       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1311     esac
   1312     eval $ac_envvar=\$ac_optarg
   1313     export $ac_envvar ;;
   1314 
   1315   *)
   1316     # FIXME: should be removed in autoconf 3.0.
   1317     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1318     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1319       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1320     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1321     ;;
   1322 
   1323   esac
   1324 done
   1325 
   1326 if test -n "$ac_prev"; then
   1327   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1328   as_fn_error $? "missing argument to $ac_option"
   1329 fi
   1330 
   1331 if test -n "$ac_unrecognized_opts"; then
   1332   case $enable_option_checking in
   1333     no) ;;
   1334     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1335     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1336   esac
   1337 fi
   1338 
   1339 # Check all directory arguments for consistency.
   1340 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1341 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1342 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1343 		libdir localedir mandir
   1344 do
   1345   eval ac_val=\$$ac_var
   1346   # Remove trailing slashes.
   1347   case $ac_val in
   1348     */ )
   1349       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1350       eval $ac_var=\$ac_val;;
   1351   esac
   1352   # Be sure to have absolute directory names.
   1353   case $ac_val in
   1354     [\\/$]* | ?:[\\/]* )  continue;;
   1355     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1356   esac
   1357   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1358 done
   1359 
   1360 # There might be people who depend on the old broken behavior: `$host'
   1361 # used to hold the argument of --host etc.
   1362 # FIXME: To remove some day.
   1363 build=$build_alias
   1364 host=$host_alias
   1365 target=$target_alias
   1366 
   1367 # FIXME: To remove some day.
   1368 if test "x$host_alias" != x; then
   1369   if test "x$build_alias" = x; then
   1370     cross_compiling=maybe
   1371   elif test "x$build_alias" != "x$host_alias"; then
   1372     cross_compiling=yes
   1373   fi
   1374 fi
   1375 
   1376 ac_tool_prefix=
   1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1378 
   1379 test "$silent" = yes && exec 6>/dev/null
   1380 
   1381 
   1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1383 ac_ls_di=`ls -di .` &&
   1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1385   as_fn_error $? "working directory cannot be determined"
   1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1387   as_fn_error $? "pwd does not report name of working directory"
   1388 
   1389 
   1390 # Find the source files, if location was not specified.
   1391 if test -z "$srcdir"; then
   1392   ac_srcdir_defaulted=yes
   1393   # Try the directory containing this script, then the parent directory.
   1394   ac_confdir=`$as_dirname -- "$as_myself" ||
   1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1396 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1397 	 X"$as_myself" : 'X\(//\)$' \| \
   1398 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1399 $as_echo X"$as_myself" |
   1400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1401 	    s//\1/
   1402 	    q
   1403 	  }
   1404 	  /^X\(\/\/\)[^/].*/{
   1405 	    s//\1/
   1406 	    q
   1407 	  }
   1408 	  /^X\(\/\/\)$/{
   1409 	    s//\1/
   1410 	    q
   1411 	  }
   1412 	  /^X\(\/\).*/{
   1413 	    s//\1/
   1414 	    q
   1415 	  }
   1416 	  s/.*/./; q'`
   1417   srcdir=$ac_confdir
   1418   if test ! -r "$srcdir/$ac_unique_file"; then
   1419     srcdir=..
   1420   fi
   1421 else
   1422   ac_srcdir_defaulted=no
   1423 fi
   1424 if test ! -r "$srcdir/$ac_unique_file"; then
   1425   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1426   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1427 fi
   1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1429 ac_abs_confdir=`(
   1430 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1431 	pwd)`
   1432 # When building in place, set srcdir=.
   1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1434   srcdir=.
   1435 fi
   1436 # Remove unnecessary trailing slashes from srcdir.
   1437 # Double slashes in file names in object file debugging info
   1438 # mess up M-x gdb in Emacs.
   1439 case $srcdir in
   1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1441 esac
   1442 case $srcdir in
   1443   *" "*)
   1444     as_fn_error $? "path to source, $srcdir, contains spaces"
   1445     ;;
   1446 esac
   1447 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
   1448 
   1449 for ac_var in $ac_precious_vars; do
   1450   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1451   eval ac_env_${ac_var}_value=\$${ac_var}
   1452   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1453   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1454 done
   1455 
   1456 #
   1457 # Report the --help message.
   1458 #
   1459 if test "$ac_init_help" = "long"; then
   1460   # Omit some internal or obsolete options to make the list less imposing.
   1461   # This message is too long to be a string in the A/UX 3.1 sh.
   1462   cat <<_ACEOF
   1463 \`configure' configures this package to adapt to many kinds of systems.
   1464 
   1465 Usage: $0 [OPTION]... [VAR=VALUE]...
   1466 
   1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1468 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1469 
   1470 Defaults for the options are specified in brackets.
   1471 
   1472 Configuration:
   1473   -h, --help              display this help and exit
   1474       --help=short        display options specific to this package
   1475       --help=recursive    display the short help of all the included packages
   1476   -V, --version           display version information and exit
   1477   -q, --quiet, --silent   do not print \`checking ...' messages
   1478       --cache-file=FILE   cache test results in FILE [disabled]
   1479   -C, --config-cache      alias for \`--cache-file=config.cache'
   1480   -n, --no-create         do not create output files
   1481       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1482 
   1483 Installation directories:
   1484   --prefix=PREFIX         install architecture-independent files in PREFIX
   1485                           [$ac_default_prefix]
   1486   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1487                           [PREFIX]
   1488 
   1489 By default, \`make install' will install all the files in
   1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1492 for instance \`--prefix=\$HOME'.
   1493 
   1494 For better control, use the options below.
   1495 
   1496 Fine tuning of the installation directories:
   1497   --bindir=DIR            user executables [EPREFIX/bin]
   1498   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1499   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1500   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1501   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1502   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1503   --libdir=DIR            object code libraries [EPREFIX/lib]
   1504   --includedir=DIR        C header files [PREFIX/include]
   1505   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1506   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1507   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1508   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1509   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1510   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1511   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1512   --htmldir=DIR           html documentation [DOCDIR]
   1513   --dvidir=DIR            dvi documentation [DOCDIR]
   1514   --pdfdir=DIR            pdf documentation [DOCDIR]
   1515   --psdir=DIR             ps documentation [DOCDIR]
   1516 _ACEOF
   1517 
   1518   cat <<\_ACEOF
   1519 
   1520 Program names:
   1521   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1522   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1523   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1524 
   1525 System types:
   1526   --build=BUILD     configure for building on BUILD [guessed]
   1527   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1528   --target=TARGET   configure for building compilers for TARGET [HOST]
   1529 _ACEOF
   1530 fi
   1531 
   1532 if test -n "$ac_init_help"; then
   1533 
   1534   cat <<\_ACEOF
   1535 
   1536 Optional Features:
   1537   --disable-option-checking  ignore unrecognized --enable/--with options
   1538   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1539   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1540   --enable-as-accelerator-for=ARG
   1541                           build as offload target compiler. Specify offload
   1542                           host triple by ARG
   1543   --enable-offload-targets=LIST
   1544                           enable offloading to devices from comma-separated
   1545                           LIST of TARGET[=DIR]. Use optional path to find
   1546                           offload target compiler during the build
   1547   --enable-offload-defaulted
   1548 		If enabled, configured but not installed offload compilers and
   1549 		libgomp plugins are silently ignored.  Useful for distribution
   1550 		compilers where those are in separate optional packages.
   1551 
   1552   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
   1553   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
   1554   --disable-gprofng       do not build gprofng
   1555   --enable-compressed-debug-sections={all,gas,gold,ld,none}
   1556                           Enable compressed debug sections for gas, gold or ld
   1557                           by default
   1558   --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
   1559                           Default compression algorithm for
   1560                           --enable-compressed-debug-sections.
   1561   --enable-year2038       enable support for timestamps past the year 2038
   1562   --disable-libquadmath   do not build libquadmath directory
   1563   --disable-libquadmath-support
   1564                           disable libquadmath support for Fortran
   1565   --enable-libada         build libada directory
   1566   --enable-libgm2         build libgm2 directory
   1567   --enable-libssp         build libssp directory
   1568   --disable-libstdcxx     do not build libstdc++-v3 directory
   1569   --enable-bootstrap      enable bootstrapping [yes if native build]
   1570   --enable-pgo-build[=lto]
   1571                           enable the PGO build
   1572   --disable-isl-version-check
   1573                           disable check for isl version
   1574   --enable-lto            enable link time optimization support
   1575   --enable-linker-plugin-configure-flags=FLAGS
   1576                           additional flags for configuring linker plugins
   1577                           [none]
   1578   --enable-linker-plugin-flags=FLAGS
   1579                           additional flags for configuring and building linker
   1580                           plugins [none]
   1581   --enable-host-pie       build position independent host executables
   1582   --enable-host-shared    build host code as shared libraries
   1583   --enable-libdiagnostics build libdiagnostics shared library
   1584   --enable-stage1-languages[=all]
   1585                           choose additional languages to build during stage1.
   1586                           Mostly useful for compiler development
   1587   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
   1588                           Objective-C runtime
   1589   --enable-vtable-verify  Enable vtable verification feature
   1590   --enable-serial-[{host,target,build}-]configure
   1591                           force sequential configuration of sub-packages for
   1592                           the host, target or build machine, or all
   1593                           sub-packages
   1594   --enable-maintainer-mode
   1595                           enable make rules and dependencies not useful (and
   1596                           sometimes confusing) to the casual installer
   1597   --enable-stage1-checking[=all]
   1598                           choose additional checking for stage1 of the
   1599                           compiler
   1600   --enable-werror         enable -Werror in bootstrap stage2 and later
   1601 
   1602 Optional Packages:
   1603   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1604   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1605   --with-build-libsubdir=DIR  Directory where to find libraries for build system
   1606   --with-system-zlib      use installed libz
   1607   --with-zstd             Support zstd compressed debug sections
   1608                           (default=auto)
   1609   --with-mpc=PATH         specify prefix directory for installed MPC package.
   1610                           Equivalent to --with-mpc-include=PATH/include plus
   1611                           --with-mpc-lib=PATH/lib
   1612   --with-mpc-include=PATH specify directory for installed MPC include files
   1613   --with-mpc-lib=PATH     specify directory for the installed MPC library
   1614   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
   1615                           Equivalent to --with-mpfr-include=PATH/include plus
   1616                           --with-mpfr-lib=PATH/lib
   1617   --with-mpfr-include=PATH
   1618                           specify directory for installed MPFR include files
   1619   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
   1620   --with-gmp=PATH         specify prefix directory for the installed GMP
   1621                           package. Equivalent to
   1622                           --with-gmp-include=PATH/include plus
   1623                           --with-gmp-lib=PATH/lib
   1624   --with-gmp-include=PATH specify directory for installed GMP include files
   1625   --with-gmp-lib=PATH     specify directory for the installed GMP library
   1626   --with-stage1-libs=LIBS libraries for stage1
   1627   --with-static-standard-libraries
   1628                           use -static-libstdc++ and -static-libgcc
   1629                           (default=auto)
   1630   --with-stage1-ldflags=FLAGS
   1631                           linker flags for stage1
   1632   --with-boot-libs=LIBS   libraries for stage2 and later
   1633   --with-boot-ldflags=FLAGS
   1634                           linker flags for stage2 and later
   1635   --with-isl=PATH         Specify prefix directory for the installed isl
   1636                           package. Equivalent to
   1637                           --with-isl-include=PATH/include plus
   1638                           --with-isl-lib=PATH/lib
   1639   --with-isl-include=PATH Specify directory for installed isl include files
   1640   --with-isl-lib=PATH     Specify the directory for the installed isl library
   1641   --with-target-bdw-gc=PATHLIST
   1642                           specify prefix directory for installed bdw-gc
   1643                           package. Equivalent to
   1644                           --with-target-bdw-gc-include=PATH/include plus
   1645                           --with-target-bdw-gc-lib=PATH/lib
   1646   --with-target-bdw-gc-include=PATHLIST
   1647                           specify directories for installed bdw-gc include
   1648                           files
   1649   --with-target-bdw-gc-lib=PATHLIST
   1650                           specify directories for installed bdw-gc library
   1651   --with-gcc-major-version-only
   1652                           use only GCC major number in filesystem paths
   1653   --with-build-sysroot=SYSROOT
   1654                           use sysroot as the system root during the build
   1655   --with-debug-prefix-map='A=B C=D ...'
   1656                           map A to B, C to D ... in debug information
   1657   --with-build-config='NAME NAME2...'
   1658                           use config/NAME.mk build configuration
   1659   --with-build-time-tools=PATH
   1660                           use given path to find target tools during the build
   1661 
   1662 Some influential environment variables:
   1663   CC          C compiler command
   1664   CFLAGS      C compiler flags
   1665   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1666               nonstandard directory <lib dir>
   1667   LIBS        libraries to pass to the linker, e.g. -l<library>
   1668   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1669               you have headers in a nonstandard directory <include dir>
   1670   CXX         C++ compiler command
   1671   CXXFLAGS    C++ compiler flags
   1672   build_configargs
   1673               additional configure arguments for build directories
   1674   host_configargs
   1675               additional configure arguments for host directories
   1676   target_configargs
   1677               additional configure arguments for target directories
   1678   AR          AR for the host
   1679   AS          AS for the host
   1680   DLLTOOL     DLLTOOL for the host
   1681   DSYMUTIL    DSYMUTIL for the host
   1682   LD          LD for the host
   1683   LIPO        LIPO for the host
   1684   NM          NM for the host
   1685   RANLIB      RANLIB for the host
   1686   STRIP       STRIP for the host
   1687   WINDRES     WINDRES for the host
   1688   WINDMC      WINDMC for the host
   1689   OBJCOPY     OBJCOPY for the host
   1690   OBJDUMP     OBJDUMP for the host
   1691   OTOOL       OTOOL for the host
   1692   READELF     READELF for the host
   1693   CC_FOR_TARGET
   1694               CC for the target
   1695   CXX_FOR_TARGET
   1696               CXX for the target
   1697   GCC_FOR_TARGET
   1698               GCC for the target
   1699   GFORTRAN_FOR_TARGET
   1700               GFORTRAN for the target
   1701   GOC_FOR_TARGET
   1702               GOC for the target
   1703   GDC_FOR_TARGET
   1704               GDC for the target
   1705   GM2_FOR_TARGET
   1706               GM2 for the target
   1707   AR_FOR_TARGET
   1708               AR for the target
   1709   AS_FOR_TARGET
   1710               AS for the target
   1711   DLLTOOL_FOR_TARGET
   1712               DLLTOOL for the target
   1713   DSYMUTIL_FOR_TARGET
   1714               DSYMUTIL for the target
   1715   LD_FOR_TARGET
   1716               LD for the target
   1717   LIPO_FOR_TARGET
   1718               LIPO for the target
   1719   NM_FOR_TARGET
   1720               NM for the target
   1721   OBJCOPY_FOR_TARGET
   1722               OBJCOPY for the target
   1723   OBJDUMP_FOR_TARGET
   1724               OBJDUMP for the target
   1725   OTOOL_FOR_TARGET
   1726               OTOOL for the target
   1727   RANLIB_FOR_TARGET
   1728               RANLIB for the target
   1729   READELF_FOR_TARGET
   1730               READELF for the target
   1731   STRIP_FOR_TARGET
   1732               STRIP for the target
   1733   WINDRES_FOR_TARGET
   1734               WINDRES for the target
   1735   WINDMC_FOR_TARGET
   1736               WINDMC for the target
   1737 
   1738 Use these variables to override the choices made by `configure' or to help
   1739 it to find libraries and programs with nonstandard names/locations.
   1740 
   1741 Report bugs to the package provider.
   1742 _ACEOF
   1743 ac_status=$?
   1744 fi
   1745 
   1746 if test "$ac_init_help" = "recursive"; then
   1747   # If there are subdirs, report their specific --help.
   1748   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1749     test -d "$ac_dir" ||
   1750       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1751       continue
   1752     ac_builddir=.
   1753 
   1754 case "$ac_dir" in
   1755 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1756 *)
   1757   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1758   # A ".." for each directory in $ac_dir_suffix.
   1759   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1760   case $ac_top_builddir_sub in
   1761   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1762   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1763   esac ;;
   1764 esac
   1765 ac_abs_top_builddir=$ac_pwd
   1766 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1767 # for backward compatibility:
   1768 ac_top_builddir=$ac_top_build_prefix
   1769 
   1770 case $srcdir in
   1771   .)  # We are building in place.
   1772     ac_srcdir=.
   1773     ac_top_srcdir=$ac_top_builddir_sub
   1774     ac_abs_top_srcdir=$ac_pwd ;;
   1775   [\\/]* | ?:[\\/]* )  # Absolute name.
   1776     ac_srcdir=$srcdir$ac_dir_suffix;
   1777     ac_top_srcdir=$srcdir
   1778     ac_abs_top_srcdir=$srcdir ;;
   1779   *) # Relative name.
   1780     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1781     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1782     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1783 esac
   1784 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1785 
   1786     cd "$ac_dir" || { ac_status=$?; continue; }
   1787     # Check for guested configure.
   1788     if test -f "$ac_srcdir/configure.gnu"; then
   1789       echo &&
   1790       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1791     elif test -f "$ac_srcdir/configure"; then
   1792       echo &&
   1793       $SHELL "$ac_srcdir/configure" --help=recursive
   1794     else
   1795       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1796     fi || ac_status=$?
   1797     cd "$ac_pwd" || { ac_status=$?; break; }
   1798   done
   1799 fi
   1800 
   1801 test -n "$ac_init_help" && exit $ac_status
   1802 if $ac_init_version; then
   1803   cat <<\_ACEOF
   1804 configure
   1805 generated by GNU Autoconf 2.69
   1806 
   1807 Copyright (C) 2012 Free Software Foundation, Inc.
   1808 This configure script is free software; the Free Software Foundation
   1809 gives unlimited permission to copy, distribute and modify it.
   1810 _ACEOF
   1811   exit
   1812 fi
   1813 
   1814 ## ------------------------ ##
   1815 ## Autoconf initialization. ##
   1816 ## ------------------------ ##
   1817 
   1818 # ac_fn_c_try_compile LINENO
   1819 # --------------------------
   1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1821 ac_fn_c_try_compile ()
   1822 {
   1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1824   rm -f conftest.$ac_objext
   1825   if { { ac_try="$ac_compile"
   1826 case "(($ac_try" in
   1827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1828   *) ac_try_echo=$ac_try;;
   1829 esac
   1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1831 $as_echo "$ac_try_echo"; } >&5
   1832   (eval "$ac_compile") 2>conftest.err
   1833   ac_status=$?
   1834   if test -s conftest.err; then
   1835     grep -v '^ *+' conftest.err >conftest.er1
   1836     cat conftest.er1 >&5
   1837     mv -f conftest.er1 conftest.err
   1838   fi
   1839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1840   test $ac_status = 0; } && {
   1841 	 test -z "$ac_c_werror_flag" ||
   1842 	 test ! -s conftest.err
   1843        } && test -s conftest.$ac_objext; then :
   1844   ac_retval=0
   1845 else
   1846   $as_echo "$as_me: failed program was:" >&5
   1847 sed 's/^/| /' conftest.$ac_ext >&5
   1848 
   1849 	ac_retval=1
   1850 fi
   1851   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1852   as_fn_set_status $ac_retval
   1853 
   1854 } # ac_fn_c_try_compile
   1855 
   1856 # ac_fn_cxx_try_compile LINENO
   1857 # ----------------------------
   1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1859 ac_fn_cxx_try_compile ()
   1860 {
   1861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1862   rm -f conftest.$ac_objext
   1863   if { { ac_try="$ac_compile"
   1864 case "(($ac_try" in
   1865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1866   *) ac_try_echo=$ac_try;;
   1867 esac
   1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1869 $as_echo "$ac_try_echo"; } >&5
   1870   (eval "$ac_compile") 2>conftest.err
   1871   ac_status=$?
   1872   if test -s conftest.err; then
   1873     grep -v '^ *+' conftest.err >conftest.er1
   1874     cat conftest.er1 >&5
   1875     mv -f conftest.er1 conftest.err
   1876   fi
   1877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1878   test $ac_status = 0; } && {
   1879 	 test -z "$ac_cxx_werror_flag" ||
   1880 	 test ! -s conftest.err
   1881        } && test -s conftest.$ac_objext; then :
   1882   ac_retval=0
   1883 else
   1884   $as_echo "$as_me: failed program was:" >&5
   1885 sed 's/^/| /' conftest.$ac_ext >&5
   1886 
   1887 	ac_retval=1
   1888 fi
   1889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1890   as_fn_set_status $ac_retval
   1891 
   1892 } # ac_fn_cxx_try_compile
   1893 
   1894 # ac_fn_cxx_try_link LINENO
   1895 # -------------------------
   1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1897 ac_fn_cxx_try_link ()
   1898 {
   1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1900   rm -f conftest.$ac_objext conftest$ac_exeext
   1901   if { { ac_try="$ac_link"
   1902 case "(($ac_try" in
   1903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1904   *) ac_try_echo=$ac_try;;
   1905 esac
   1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1907 $as_echo "$ac_try_echo"; } >&5
   1908   (eval "$ac_link") 2>conftest.err
   1909   ac_status=$?
   1910   if test -s conftest.err; then
   1911     grep -v '^ *+' conftest.err >conftest.er1
   1912     cat conftest.er1 >&5
   1913     mv -f conftest.er1 conftest.err
   1914   fi
   1915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1916   test $ac_status = 0; } && {
   1917 	 test -z "$ac_cxx_werror_flag" ||
   1918 	 test ! -s conftest.err
   1919        } && test -s conftest$ac_exeext && {
   1920 	 test "$cross_compiling" = yes ||
   1921 	 test -x conftest$ac_exeext
   1922        }; then :
   1923   ac_retval=0
   1924 else
   1925   $as_echo "$as_me: failed program was:" >&5
   1926 sed 's/^/| /' conftest.$ac_ext >&5
   1927 
   1928 	ac_retval=1
   1929 fi
   1930   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1931   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1932   # interfere with the next link command; also delete a directory that is
   1933   # left behind by Apple's compiler.  We do this before executing the actions.
   1934   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1936   as_fn_set_status $ac_retval
   1937 
   1938 } # ac_fn_cxx_try_link
   1939 
   1940 # ac_fn_c_try_link LINENO
   1941 # -----------------------
   1942 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1943 ac_fn_c_try_link ()
   1944 {
   1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1946   rm -f conftest.$ac_objext conftest$ac_exeext
   1947   if { { ac_try="$ac_link"
   1948 case "(($ac_try" in
   1949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1950   *) ac_try_echo=$ac_try;;
   1951 esac
   1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1953 $as_echo "$ac_try_echo"; } >&5
   1954   (eval "$ac_link") 2>conftest.err
   1955   ac_status=$?
   1956   if test -s conftest.err; then
   1957     grep -v '^ *+' conftest.err >conftest.er1
   1958     cat conftest.er1 >&5
   1959     mv -f conftest.er1 conftest.err
   1960   fi
   1961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1962   test $ac_status = 0; } && {
   1963 	 test -z "$ac_c_werror_flag" ||
   1964 	 test ! -s conftest.err
   1965        } && test -s conftest$ac_exeext && {
   1966 	 test "$cross_compiling" = yes ||
   1967 	 test -x conftest$ac_exeext
   1968        }; then :
   1969   ac_retval=0
   1970 else
   1971   $as_echo "$as_me: failed program was:" >&5
   1972 sed 's/^/| /' conftest.$ac_ext >&5
   1973 
   1974 	ac_retval=1
   1975 fi
   1976   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1977   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1978   # interfere with the next link command; also delete a directory that is
   1979   # left behind by Apple's compiler.  We do this before executing the actions.
   1980   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1981   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1982   as_fn_set_status $ac_retval
   1983 
   1984 } # ac_fn_c_try_link
   1985 cat >config.log <<_ACEOF
   1986 This file contains any messages produced by compilers while
   1987 running configure, to aid debugging if configure makes a mistake.
   1988 
   1989 It was created by $as_me, which was
   1990 generated by GNU Autoconf 2.69.  Invocation command line was
   1991 
   1992   $ $0 $@
   1993 
   1994 _ACEOF
   1995 exec 5>>config.log
   1996 {
   1997 cat <<_ASUNAME
   1998 ## --------- ##
   1999 ## Platform. ##
   2000 ## --------- ##
   2001 
   2002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2007 
   2008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2009 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2010 
   2011 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2012 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2014 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2015 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2016 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2017 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2018 
   2019 _ASUNAME
   2020 
   2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2022 for as_dir in $PATH
   2023 do
   2024   IFS=$as_save_IFS
   2025   test -z "$as_dir" && as_dir=.
   2026     $as_echo "PATH: $as_dir"
   2027   done
   2028 IFS=$as_save_IFS
   2029 
   2030 } >&5
   2031 
   2032 cat >&5 <<_ACEOF
   2033 
   2034 
   2035 ## ----------- ##
   2036 ## Core tests. ##
   2037 ## ----------- ##
   2038 
   2039 _ACEOF
   2040 
   2041 
   2042 # Keep a trace of the command line.
   2043 # Strip out --no-create and --no-recursion so they do not pile up.
   2044 # Strip out --silent because we don't want to record it for future runs.
   2045 # Also quote any args containing shell meta-characters.
   2046 # Make two passes to allow for proper duplicate-argument suppression.
   2047 ac_configure_args=
   2048 ac_configure_args0=
   2049 ac_configure_args1=
   2050 ac_must_keep_next=false
   2051 for ac_pass in 1 2
   2052 do
   2053   for ac_arg
   2054   do
   2055     case $ac_arg in
   2056     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2057     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2058     | -silent | --silent | --silen | --sile | --sil)
   2059       continue ;;
   2060     *\'*)
   2061       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2062     esac
   2063     case $ac_pass in
   2064     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2065     2)
   2066       as_fn_append ac_configure_args1 " '$ac_arg'"
   2067       if test $ac_must_keep_next = true; then
   2068 	ac_must_keep_next=false # Got value, back to normal.
   2069       else
   2070 	case $ac_arg in
   2071 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2072 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2073 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2074 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2075 	    case "$ac_configure_args0 " in
   2076 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2077 	    esac
   2078 	    ;;
   2079 	  -* ) ac_must_keep_next=true ;;
   2080 	esac
   2081       fi
   2082       as_fn_append ac_configure_args " '$ac_arg'"
   2083       ;;
   2084     esac
   2085   done
   2086 done
   2087 { ac_configure_args0=; unset ac_configure_args0;}
   2088 { ac_configure_args1=; unset ac_configure_args1;}
   2089 
   2090 # When interrupted or exit'd, cleanup temporary files, and complete
   2091 # config.log.  We remove comments because anyway the quotes in there
   2092 # would cause problems or look ugly.
   2093 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2094 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2095 trap 'exit_status=$?
   2096   # Save into config.log some information that might help in debugging.
   2097   {
   2098     echo
   2099 
   2100     $as_echo "## ---------------- ##
   2101 ## Cache variables. ##
   2102 ## ---------------- ##"
   2103     echo
   2104     # The following way of writing the cache mishandles newlines in values,
   2105 (
   2106   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2107     eval ac_val=\$$ac_var
   2108     case $ac_val in #(
   2109     *${as_nl}*)
   2110       case $ac_var in #(
   2111       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2113       esac
   2114       case $ac_var in #(
   2115       _ | IFS | as_nl) ;; #(
   2116       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2117       *) { eval $ac_var=; unset $ac_var;} ;;
   2118       esac ;;
   2119     esac
   2120   done
   2121   (set) 2>&1 |
   2122     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2123     *${as_nl}ac_space=\ *)
   2124       sed -n \
   2125 	"s/'\''/'\''\\\\'\'''\''/g;
   2126 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2127       ;; #(
   2128     *)
   2129       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2130       ;;
   2131     esac |
   2132     sort
   2133 )
   2134     echo
   2135 
   2136     $as_echo "## ----------------- ##
   2137 ## Output variables. ##
   2138 ## ----------------- ##"
   2139     echo
   2140     for ac_var in $ac_subst_vars
   2141     do
   2142       eval ac_val=\$$ac_var
   2143       case $ac_val in
   2144       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2145       esac
   2146       $as_echo "$ac_var='\''$ac_val'\''"
   2147     done | sort
   2148     echo
   2149 
   2150     if test -n "$ac_subst_files"; then
   2151       $as_echo "## ------------------- ##
   2152 ## File substitutions. ##
   2153 ## ------------------- ##"
   2154       echo
   2155       for ac_var in $ac_subst_files
   2156       do
   2157 	eval ac_val=\$$ac_var
   2158 	case $ac_val in
   2159 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2160 	esac
   2161 	$as_echo "$ac_var='\''$ac_val'\''"
   2162       done | sort
   2163       echo
   2164     fi
   2165 
   2166     if test -s confdefs.h; then
   2167       $as_echo "## ----------- ##
   2168 ## confdefs.h. ##
   2169 ## ----------- ##"
   2170       echo
   2171       cat confdefs.h
   2172       echo
   2173     fi
   2174     test "$ac_signal" != 0 &&
   2175       $as_echo "$as_me: caught signal $ac_signal"
   2176     $as_echo "$as_me: exit $exit_status"
   2177   } >&5
   2178   rm -f core *.core core.conftest.* &&
   2179     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2180     exit $exit_status
   2181 ' 0
   2182 for ac_signal in 1 2 13 15; do
   2183   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2184 done
   2185 ac_signal=0
   2186 
   2187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2188 rm -f -r conftest* confdefs.h
   2189 
   2190 $as_echo "/* confdefs.h */" > confdefs.h
   2191 
   2192 # Predefined preprocessor variables.
   2193 
   2194 cat >>confdefs.h <<_ACEOF
   2195 #define PACKAGE_NAME "$PACKAGE_NAME"
   2196 _ACEOF
   2197 
   2198 cat >>confdefs.h <<_ACEOF
   2199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2200 _ACEOF
   2201 
   2202 cat >>confdefs.h <<_ACEOF
   2203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2204 _ACEOF
   2205 
   2206 cat >>confdefs.h <<_ACEOF
   2207 #define PACKAGE_STRING "$PACKAGE_STRING"
   2208 _ACEOF
   2209 
   2210 cat >>confdefs.h <<_ACEOF
   2211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2212 _ACEOF
   2213 
   2214 cat >>confdefs.h <<_ACEOF
   2215 #define PACKAGE_URL "$PACKAGE_URL"
   2216 _ACEOF
   2217 
   2218 
   2219 # Let the site file select an alternate cache file if it wants to.
   2220 # Prefer an explicitly selected file to automatically selected ones.
   2221 ac_site_file1=NONE
   2222 ac_site_file2=NONE
   2223 if test -n "$CONFIG_SITE"; then
   2224   # We do not want a PATH search for config.site.
   2225   case $CONFIG_SITE in #((
   2226     -*)  ac_site_file1=./$CONFIG_SITE;;
   2227     */*) ac_site_file1=$CONFIG_SITE;;
   2228     *)   ac_site_file1=./$CONFIG_SITE;;
   2229   esac
   2230 elif test "x$prefix" != xNONE; then
   2231   ac_site_file1=$prefix/share/config.site
   2232   ac_site_file2=$prefix/etc/config.site
   2233 else
   2234   ac_site_file1=$ac_default_prefix/share/config.site
   2235   ac_site_file2=$ac_default_prefix/etc/config.site
   2236 fi
   2237 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2238 do
   2239   test "x$ac_site_file" = xNONE && continue
   2240   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2241     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2242 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2243     sed 's/^/| /' "$ac_site_file" >&5
   2244     . "$ac_site_file" \
   2245       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2247 as_fn_error $? "failed to load site script $ac_site_file
   2248 See \`config.log' for more details" "$LINENO" 5; }
   2249   fi
   2250 done
   2251 
   2252 if test -r "$cache_file"; then
   2253   # Some versions of bash will fail to source /dev/null (special files
   2254   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2255   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2256     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2257 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2258     case $cache_file in
   2259       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2260       *)                      . "./$cache_file";;
   2261     esac
   2262   fi
   2263 else
   2264   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2265 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2266   >$cache_file
   2267 fi
   2268 
   2269 # Check that the precious variables saved in the cache have kept the same
   2270 # value.
   2271 ac_cache_corrupted=false
   2272 for ac_var in $ac_precious_vars; do
   2273   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2274   eval ac_new_set=\$ac_env_${ac_var}_set
   2275   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2276   eval ac_new_val=\$ac_env_${ac_var}_value
   2277   case $ac_old_set,$ac_new_set in
   2278     set,)
   2279       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2280 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2281       ac_cache_corrupted=: ;;
   2282     ,set)
   2283       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2284 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2285       ac_cache_corrupted=: ;;
   2286     ,);;
   2287     *)
   2288       if test "x$ac_old_val" != "x$ac_new_val"; then
   2289 	# differences in whitespace do not lead to failure.
   2290 	ac_old_val_w=`echo x $ac_old_val`
   2291 	ac_new_val_w=`echo x $ac_new_val`
   2292 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2293 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2294 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2295 	  ac_cache_corrupted=:
   2296 	else
   2297 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2298 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2299 	  eval $ac_var=\$ac_old_val
   2300 	fi
   2301 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2302 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2303 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2304 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2305       fi;;
   2306   esac
   2307   # Pass precious variables to config.status.
   2308   if test "$ac_new_set" = set; then
   2309     case $ac_new_val in
   2310     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2311     *) ac_arg=$ac_var=$ac_new_val ;;
   2312     esac
   2313     case " $ac_configure_args " in
   2314       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2315       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2316     esac
   2317   fi
   2318 done
   2319 if $ac_cache_corrupted; then
   2320   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2322   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2323 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2324   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2325 fi
   2326 ## -------------------- ##
   2327 ## Main body of script. ##
   2328 ## -------------------- ##
   2329 
   2330 ac_ext=c
   2331 ac_cpp='$CPP $CPPFLAGS'
   2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2335 
   2336 
   2337 
   2338 
   2339 
   2340 
   2341 
   2342 
   2343 
   2344 progname=$0
   2345 # if PWD already has a value, it is probably wrong.
   2346 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
   2347 
   2348 # Export original configure arguments for use by sub-configures.
   2349 # Quote arguments with shell meta charatcers.
   2350 TOPLEVEL_CONFIGURE_ARGUMENTS=
   2351 set -- "$progname" "$@"
   2352 for ac_arg
   2353 do
   2354   case "$ac_arg" in
   2355   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
   2356     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
   2357     # if the argument is of the form -foo=baz, quote the baz part only
   2358     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
   2359   *) ;;
   2360   esac
   2361   # Add the quoted argument to the list.
   2362   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
   2363 done
   2364 if test "$silent" = yes; then
   2365   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
   2366 fi
   2367 # Remove the initial space we just introduced and, as these will be
   2368 # expanded by make, quote '$'.
   2369 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
   2370 
   2371 
   2372 # Find the build, host, and target systems.
   2373 ac_aux_dir=
   2374 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2375   if test -f "$ac_dir/install-sh"; then
   2376     ac_aux_dir=$ac_dir
   2377     ac_install_sh="$ac_aux_dir/install-sh -c"
   2378     break
   2379   elif test -f "$ac_dir/install.sh"; then
   2380     ac_aux_dir=$ac_dir
   2381     ac_install_sh="$ac_aux_dir/install.sh -c"
   2382     break
   2383   elif test -f "$ac_dir/shtool"; then
   2384     ac_aux_dir=$ac_dir
   2385     ac_install_sh="$ac_aux_dir/shtool install -c"
   2386     break
   2387   fi
   2388 done
   2389 if test -z "$ac_aux_dir"; then
   2390   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2391 fi
   2392 
   2393 # These three variables are undocumented and unsupported,
   2394 # and are intended to be withdrawn in a future Autoconf release.
   2395 # They can cause serious problems if a builder's source tree is in a directory
   2396 # whose full name contains unusual characters.
   2397 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2398 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2399 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2400 
   2401 
   2402 # Make sure we can run config.sub.
   2403 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2404   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2405 
   2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2407 $as_echo_n "checking build system type... " >&6; }
   2408 if ${ac_cv_build+:} false; then :
   2409   $as_echo_n "(cached) " >&6
   2410 else
   2411   ac_build_alias=$build_alias
   2412 test "x$ac_build_alias" = x &&
   2413   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2414 test "x$ac_build_alias" = x &&
   2415   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2416 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2417   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2418 
   2419 fi
   2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2421 $as_echo "$ac_cv_build" >&6; }
   2422 case $ac_cv_build in
   2423 *-*-*) ;;
   2424 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2425 esac
   2426 build=$ac_cv_build
   2427 ac_save_IFS=$IFS; IFS='-'
   2428 set x $ac_cv_build
   2429 shift
   2430 build_cpu=$1
   2431 build_vendor=$2
   2432 shift; shift
   2433 # Remember, the first character of IFS is used to create $*,
   2434 # except with old shells:
   2435 build_os=$*
   2436 IFS=$ac_save_IFS
   2437 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2438 
   2439 
   2440  case ${build_alias} in
   2441   "") build_noncanonical=${build} ;;
   2442   *) build_noncanonical=${build_alias} ;;
   2443 esac
   2444 
   2445 
   2446 
   2447  case ${host_alias} in
   2448   "") host_noncanonical=${build_noncanonical} ;;
   2449   *) host_noncanonical=${host_alias} ;;
   2450 esac
   2451 
   2452 
   2453 
   2454  case ${target_alias} in
   2455   "") target_noncanonical=${host_noncanonical} ;;
   2456   *) target_noncanonical=${target_alias} ;;
   2457 esac
   2458 
   2459 
   2460 
   2461 
   2462 test "$host_noncanonical" = "$target_noncanonical" &&
   2463   test "$program_prefix$program_suffix$program_transform_name" = \
   2464     NONENONEs,x,x, &&
   2465   program_transform_name=s,y,y,
   2466 
   2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2468 $as_echo_n "checking host system type... " >&6; }
   2469 if ${ac_cv_host+:} false; then :
   2470   $as_echo_n "(cached) " >&6
   2471 else
   2472   if test "x$host_alias" = x; then
   2473   ac_cv_host=$ac_cv_build
   2474 else
   2475   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2476     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2477 fi
   2478 
   2479 fi
   2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2481 $as_echo "$ac_cv_host" >&6; }
   2482 case $ac_cv_host in
   2483 *-*-*) ;;
   2484 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2485 esac
   2486 host=$ac_cv_host
   2487 ac_save_IFS=$IFS; IFS='-'
   2488 set x $ac_cv_host
   2489 shift
   2490 host_cpu=$1
   2491 host_vendor=$2
   2492 shift; shift
   2493 # Remember, the first character of IFS is used to create $*,
   2494 # except with old shells:
   2495 host_os=$*
   2496 IFS=$ac_save_IFS
   2497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2498 
   2499 
   2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   2501 $as_echo_n "checking target system type... " >&6; }
   2502 if ${ac_cv_target+:} false; then :
   2503   $as_echo_n "(cached) " >&6
   2504 else
   2505   if test "x$target_alias" = x; then
   2506   ac_cv_target=$ac_cv_host
   2507 else
   2508   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   2509     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   2510 fi
   2511 
   2512 fi
   2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   2514 $as_echo "$ac_cv_target" >&6; }
   2515 case $ac_cv_target in
   2516 *-*-*) ;;
   2517 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   2518 esac
   2519 target=$ac_cv_target
   2520 ac_save_IFS=$IFS; IFS='-'
   2521 set x $ac_cv_target
   2522 shift
   2523 target_cpu=$1
   2524 target_vendor=$2
   2525 shift; shift
   2526 # Remember, the first character of IFS is used to create $*,
   2527 # except with old shells:
   2528 target_os=$*
   2529 IFS=$ac_save_IFS
   2530 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   2531 
   2532 
   2533 # The aliases save the names the user supplied, while $host etc.
   2534 # will get canonicalized.
   2535 test -n "$target_alias" &&
   2536   test "$program_prefix$program_suffix$program_transform_name" = \
   2537     NONENONEs,x,x, &&
   2538   program_prefix=${target_alias}-
   2539 test "$program_prefix" != NONE &&
   2540   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2541 # Use a double $ so make ignores it.
   2542 test "$program_suffix" != NONE &&
   2543   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   2544 # Double any \ or $.
   2545 # By default was `s,x,x', remove it if useless.
   2546 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   2547 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   2548 
   2549 
   2550 
   2551 # Get 'install' or 'install-sh' and its variants.
   2552 # Find a good install program.  We prefer a C program (faster),
   2553 # so one script is as good as another.  But avoid the broken or
   2554 # incompatible versions:
   2555 # SysV /etc/install, /usr/sbin/install
   2556 # SunOS /usr/etc/install
   2557 # IRIX /sbin/install
   2558 # AIX /bin/install
   2559 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2563 # OS/2's system install, which has a completely different semantic
   2564 # ./install, which can be erroneously created by make from ./install.sh.
   2565 # Reject install programs that cannot install multiple files.
   2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   2567 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2568 if test -z "$INSTALL"; then
   2569 if ${ac_cv_path_install+:} false; then :
   2570   $as_echo_n "(cached) " >&6
   2571 else
   2572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2573 for as_dir in $PATH
   2574 do
   2575   IFS=$as_save_IFS
   2576   test -z "$as_dir" && as_dir=.
   2577     # Account for people who put trailing slashes in PATH elements.
   2578 case $as_dir/ in #((
   2579   ./ | .// | /[cC]/* | \
   2580   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2581   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   2582   /usr/ucb/* ) ;;
   2583   *)
   2584     # OSF1 and SCO ODT 3.0 have their own names for install.
   2585     # Don't use installbsd from OSF since it installs stuff as root
   2586     # by default.
   2587     for ac_prog in ginstall scoinst install; do
   2588       for ac_exec_ext in '' $ac_executable_extensions; do
   2589 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   2590 	  if test $ac_prog = install &&
   2591 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2592 	    # AIX install.  It has an incompatible calling convention.
   2593 	    :
   2594 	  elif test $ac_prog = install &&
   2595 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2596 	    # program-specific install script used by HP pwplus--don't use.
   2597 	    :
   2598 	  else
   2599 	    rm -rf conftest.one conftest.two conftest.dir
   2600 	    echo one > conftest.one
   2601 	    echo two > conftest.two
   2602 	    mkdir conftest.dir
   2603 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   2604 	      test -s conftest.one && test -s conftest.two &&
   2605 	      test -s conftest.dir/conftest.one &&
   2606 	      test -s conftest.dir/conftest.two
   2607 	    then
   2608 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2609 	      break 3
   2610 	    fi
   2611 	  fi
   2612 	fi
   2613       done
   2614     done
   2615     ;;
   2616 esac
   2617 
   2618   done
   2619 IFS=$as_save_IFS
   2620 
   2621 rm -rf conftest.one conftest.two conftest.dir
   2622 
   2623 fi
   2624   if test "${ac_cv_path_install+set}" = set; then
   2625     INSTALL=$ac_cv_path_install
   2626   else
   2627     # As a last resort, use the slow shell script.  Don't cache a
   2628     # value for INSTALL within a source directory, because that will
   2629     # break other packages using the cache if that directory is
   2630     # removed, or if the value is a relative name.
   2631     INSTALL=$ac_install_sh
   2632   fi
   2633 fi
   2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   2635 $as_echo "$INSTALL" >&6; }
   2636 
   2637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2638 # It thinks the first close brace ends the variable substitution.
   2639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2640 
   2641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2642 
   2643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2644 
   2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
   2646 $as_echo_n "checking whether ln works... " >&6; }
   2647 if ${acx_cv_prog_LN+:} false; then :
   2648   $as_echo_n "(cached) " >&6
   2649 else
   2650   rm -f conftestdata_t
   2651 echo >conftestdata_f
   2652 if ln conftestdata_f conftestdata_t 2>/dev/null
   2653 then
   2654   acx_cv_prog_LN=ln
   2655 else
   2656   acx_cv_prog_LN=no
   2657 fi
   2658 rm -f conftestdata_f conftestdata_t
   2659 
   2660 fi
   2661 if test $acx_cv_prog_LN = no; then
   2662   LN="cp"
   2663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
   2664 $as_echo "no, using $LN" >&6; }
   2665 else
   2666   LN="$acx_cv_prog_LN"
   2667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2668 $as_echo "yes" >&6; }
   2669 fi
   2670 
   2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   2672 $as_echo_n "checking whether ln -s works... " >&6; }
   2673 LN_S=$as_ln_s
   2674 if test "$LN_S" = "ln -s"; then
   2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2676 $as_echo "yes" >&6; }
   2677 else
   2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   2679 $as_echo "no, using $LN_S" >&6; }
   2680 fi
   2681 
   2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   2683 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   2684 if ${ac_cv_path_SED+:} false; then :
   2685   $as_echo_n "(cached) " >&6
   2686 else
   2687             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   2688      for ac_i in 1 2 3 4 5 6 7; do
   2689        ac_script="$ac_script$as_nl$ac_script"
   2690      done
   2691      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   2692      { ac_script=; unset ac_script;}
   2693      if test -z "$SED"; then
   2694   ac_path_SED_found=false
   2695   # Loop through the user's path and test for each of PROGNAME-LIST
   2696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2697 for as_dir in $PATH
   2698 do
   2699   IFS=$as_save_IFS
   2700   test -z "$as_dir" && as_dir=.
   2701     for ac_prog in sed gsed; do
   2702     for ac_exec_ext in '' $ac_executable_extensions; do
   2703       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   2704       as_fn_executable_p "$ac_path_SED" || continue
   2705 # Check for GNU ac_path_SED and select it if it is found.
   2706   # Check for GNU $ac_path_SED
   2707 case `"$ac_path_SED" --version 2>&1` in
   2708 *GNU*)
   2709   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   2710 *)
   2711   ac_count=0
   2712   $as_echo_n 0123456789 >"conftest.in"
   2713   while :
   2714   do
   2715     cat "conftest.in" "conftest.in" >"conftest.tmp"
   2716     mv "conftest.tmp" "conftest.in"
   2717     cp "conftest.in" "conftest.nl"
   2718     $as_echo '' >> "conftest.nl"
   2719     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   2720     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   2721     as_fn_arith $ac_count + 1 && ac_count=$as_val
   2722     if test $ac_count -gt ${ac_path_SED_max-0}; then
   2723       # Best one so far, save it but keep looking for a better one
   2724       ac_cv_path_SED="$ac_path_SED"
   2725       ac_path_SED_max=$ac_count
   2726     fi
   2727     # 10*(2^10) chars as input seems more than enough
   2728     test $ac_count -gt 10 && break
   2729   done
   2730   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   2731 esac
   2732 
   2733       $ac_path_SED_found && break 3
   2734     done
   2735   done
   2736   done
   2737 IFS=$as_save_IFS
   2738   if test -z "$ac_cv_path_SED"; then
   2739     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   2740   fi
   2741 else
   2742   ac_cv_path_SED=$SED
   2743 fi
   2744 
   2745 fi
   2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   2747 $as_echo "$ac_cv_path_SED" >&6; }
   2748  SED="$ac_cv_path_SED"
   2749   rm -f conftest.sed
   2750 
   2751 for ac_prog in gawk mawk nawk awk
   2752 do
   2753   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2754 set dummy $ac_prog; ac_word=$2
   2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2756 $as_echo_n "checking for $ac_word... " >&6; }
   2757 if ${ac_cv_prog_AWK+:} false; then :
   2758   $as_echo_n "(cached) " >&6
   2759 else
   2760   if test -n "$AWK"; then
   2761   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2762 else
   2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2764 for as_dir in $PATH
   2765 do
   2766   IFS=$as_save_IFS
   2767   test -z "$as_dir" && as_dir=.
   2768     for ac_exec_ext in '' $ac_executable_extensions; do
   2769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2770     ac_cv_prog_AWK="$ac_prog"
   2771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2772     break 2
   2773   fi
   2774 done
   2775   done
   2776 IFS=$as_save_IFS
   2777 
   2778 fi
   2779 fi
   2780 AWK=$ac_cv_prog_AWK
   2781 if test -n "$AWK"; then
   2782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   2783 $as_echo "$AWK" >&6; }
   2784 else
   2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2786 $as_echo "no" >&6; }
   2787 fi
   2788 
   2789 
   2790   test -n "$AWK" && break
   2791 done
   2792 
   2793 
   2794 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
   2795 
   2796 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
   2797 # a relative path.
   2798 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
   2799   INSTALL="${srcpwd}/install-sh -c"
   2800 fi
   2801 
   2802 # Set srcdir to "." if that's what it is.
   2803 # This is important for multilib support.
   2804 pwd=`${PWDCMD-pwd}`
   2805 if test "${pwd}" = "${srcpwd}" ; then
   2806   srcdir=.
   2807 fi
   2808 
   2809 topsrcdir=$srcpwd
   2810 
   2811 extra_host_args=
   2812 
   2813 ### To add a new directory to the tree, first choose whether it is a target
   2814 ### or a host dependent tool.  Then put it into the appropriate list
   2815 ### (library or tools, host or target), doing a dependency sort.
   2816 
   2817 # Subdirs will be configured in the order listed in build_configdirs,
   2818 # configdirs, or target_configdirs; see the serialization section below.
   2819 
   2820 # Dependency sorting is only needed when *configuration* must be done in
   2821 # a particular order.  In all cases a dependency should be specified in
   2822 # the Makefile, whether or not it's implicitly specified here.
   2823 
   2824 # Double entries in build_configdirs, configdirs, or target_configdirs may
   2825 # cause circular dependencies and break everything horribly.
   2826 
   2827 # these library is used by various programs built for the build
   2828 # environment
   2829 #
   2830 build_libs="build-libiberty build-libcpp"
   2831 
   2832 # these tools are built for the build environment
   2833 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
   2834 
   2835 # these libraries are used by various programs built for the host environment
   2836 #f
   2837 host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
   2838 
   2839 # these tools are built for the host environment
   2840 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
   2841 # know that we are building the simulator.
   2842 # binutils, gas and ld appear in that order because it makes sense to run
   2843 # "make check" in that particular order.
   2844 # If --enable-gold is used, "gold" may replace "ld".
   2845 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"
   2846 
   2847 # these libraries are built for the target environment, and are built after
   2848 # the host libraries and the host tools (which may be a cross compiler)
   2849 # Note that libiberty is not a target library.
   2850 target_libraries="target-libgcc \
   2851 		target-libbacktrace \
   2852 		target-libgloss \
   2853 		target-newlib \
   2854 		target-libgomp \
   2855 		target-libatomic \
   2856 		target-libitm \
   2857 		target-libstdc++-v3 \
   2858 		target-libsanitizer \
   2859 		target-libvtv \
   2860 		target-libssp \
   2861 		target-libquadmath \
   2862 		target-libgfortran \
   2863 		target-libffi \
   2864 		target-libobjc \
   2865 		target-libada \
   2866 		target-libgm2 \
   2867 		target-libgo \
   2868 		target-libgrust \
   2869 		target-libphobos \
   2870 		target-zlib"
   2871 
   2872 # these tools are built using the target libraries, and are intended to
   2873 # run only in the target environment
   2874 #
   2875 # note: any program that *uses* libraries that are in the "target_libraries"
   2876 # list belongs in this list.
   2877 #
   2878 target_tools="target-rda"
   2879 
   2880 ################################################################################
   2881 
   2882 ## All tools belong in one of the four categories, and are assigned above
   2883 ## We assign ${configdirs} this way to remove all embedded newlines.  This
   2884 ## is important because configure will choke if they ever get through.
   2885 ## ${configdirs} is directories we build using the host tools.
   2886 ## ${target_configdirs} is directories we build using the target tools.
   2887 configdirs=`echo ${host_libs} ${host_tools}`
   2888 target_configdirs=`echo ${target_libraries} ${target_tools}`
   2889 build_configdirs=`echo ${build_libs} ${build_tools}`
   2890 
   2891 
   2892 
   2893 ################################################################################
   2894 
   2895 srcname="gnu development package"
   2896 
   2897 # This gets set non-empty for some net releases of packages.
   2898 appdirs=""
   2899 
   2900 # Define is_cross_compiler to save on calls to 'test'.
   2901 is_cross_compiler=
   2902 if test x"${host}" = x"${target}" ; then
   2903   is_cross_compiler=no
   2904 else
   2905   is_cross_compiler=yes
   2906 fi
   2907 
   2908 # Find the build and target subdir names.
   2909 
   2910 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
   2911 # have matching libraries, they should use host libraries: Makefile.tpl
   2912 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
   2913 # However, they still use the build modules, because the corresponding
   2914 # host modules (e.g. bison) are only built for the host when bootstrap
   2915 # finishes. So:
   2916 # - build_subdir is where we find build modules, and never changes.
   2917 # - build_libsubdir is where we find build libraries, and can be overridden.
   2918 
   2919 # Prefix 'build-' so this never conflicts with target_subdir.
   2920 build_subdir="build-${build_noncanonical}"
   2921 
   2922 # Check whether --with-build-libsubdir was given.
   2923 if test "${with_build_libsubdir+set}" = set; then :
   2924   withval=$with_build_libsubdir; build_libsubdir="$withval"
   2925 else
   2926   build_libsubdir="$build_subdir"
   2927 fi
   2928 
   2929 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
   2930 if ( test $srcdir = . && test -d gcc ) \
   2931    || test -d $srcdir/../host-${host_noncanonical}; then
   2932   host_subdir="host-${host_noncanonical}"
   2933 else
   2934   host_subdir=.
   2935 fi
   2936 # No prefix.
   2937 target_subdir=${target_noncanonical}
   2938 
   2939 # Be sure to cover against remnants of an in-tree build.
   2940 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
   2941   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
   2942 Use a pristine source tree when building in a separate tree" "$LINENO" 5
   2943 fi
   2944 
   2945 # Skipdirs are removed silently.
   2946 skipdirs=
   2947 # Noconfigdirs are removed loudly.
   2948 noconfigdirs=""
   2949 
   2950 use_gnu_ld=
   2951 # Make sure we don't let GNU ld be added if we didn't want it.
   2952 if test x$with_gnu_ld = xno ; then
   2953   use_gnu_ld=no
   2954   noconfigdirs="$noconfigdirs ld gold"
   2955 fi
   2956 
   2957 use_gnu_as=
   2958 # Make sure we don't let GNU as be added if we didn't want it.
   2959 if test x$with_gnu_as = xno ; then
   2960   use_gnu_as=no
   2961   noconfigdirs="$noconfigdirs gas"
   2962 fi
   2963 
   2964 use_included_zlib=
   2965 
   2966 # Check whether --with-system-zlib was given.
   2967 if test "${with_system_zlib+set}" = set; then :
   2968   withval=$with_system_zlib;
   2969 fi
   2970 
   2971 # Make sure we don't let ZLIB be added if we didn't want it.
   2972 if test x$with_system_zlib = xyes ; then
   2973   use_included_zlib=no
   2974   noconfigdirs="$noconfigdirs zlib"
   2975 fi
   2976 
   2977 # Don't compile the bundled readline/libreadline.a if --with-system-readline
   2978 # is provided.
   2979 if test x$with_system_readline = xyes ; then
   2980   noconfigdirs="$noconfigdirs readline"
   2981 fi
   2982 
   2983 
   2984 # Check whether --with-zstd was given.
   2985 if test "${with_zstd+set}" = set; then :
   2986   withval=$with_zstd;
   2987 fi
   2988 
   2989 
   2990 # some tools are so dependent upon X11 that if we're not building with X,
   2991 # it's not even worth trying to configure, much less build, that tool.
   2992 
   2993 case ${with_x} in
   2994   yes | "") ;; # the default value for this tree is that X11 is available
   2995   no)
   2996     skipdirs="${skipdirs} tk itcl libgui"
   2997     # We won't be able to build gdbtk without X.
   2998     enable_gdbtk=no
   2999     ;;
   3000   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
   3001 esac
   3002 
   3003 # Some are only suitable for cross toolchains.
   3004 # Remove these if host=target.
   3005 cross_only="target-libgloss target-newlib target-opcodes"
   3006 
   3007 case $is_cross_compiler in
   3008   no) skipdirs="${skipdirs} ${cross_only}" ;;
   3009 esac
   3010 
   3011 # If both --with-headers and --with-libs are specified, default to
   3012 # --without-newlib.
   3013 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
   3014    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
   3015   if test x"${with_newlib}" = x ; then
   3016     with_newlib=no
   3017   fi
   3018 fi
   3019 
   3020 # Recognize --with-newlib/--without-newlib.
   3021 case ${with_newlib} in
   3022   no) skipdirs="${skipdirs} target-newlib" ;;
   3023   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
   3024 esac
   3025 
   3026 # Check whether --enable-as-accelerator-for was given.
   3027 if test "${enable_as_accelerator_for+set}" = set; then :
   3028   enableval=$enable_as_accelerator_for;
   3029 fi
   3030 
   3031 
   3032 # Check whether --enable-offload-targets was given.
   3033 if test "${enable_offload_targets+set}" = set; then :
   3034   enableval=$enable_offload_targets;
   3035   if test x"$enable_offload_targets" = x; then
   3036     as_fn_error $? "no offload targets specified" "$LINENO" 5
   3037   fi
   3038 
   3039 else
   3040   enable_offload_targets=
   3041 fi
   3042 
   3043 
   3044 # Check whether --enable-offload-defaulted was given.
   3045 if test "${enable_offload_defaulted+set}" = set; then :
   3046   enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
   3047 else
   3048   enable_offload_defaulted=
   3049 fi
   3050 
   3051 
   3052 # Handle --enable-gold, --enable-ld.
   3053 # --disable-gold [--enable-ld]
   3054 #     Build only ld.  Default option.
   3055 # --enable-gold [--enable-ld]
   3056 #     Build both gold and ld.  Install gold as "ld.gold", install ld
   3057 #     as "ld.bfd" and "ld".
   3058 # --enable-gold=default [--enable-ld]
   3059 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
   3060 #     install ld as "ld.bfd".
   3061 # --enable-gold[=default] --disable-ld
   3062 #     Build only gold, which is then installed as both "ld.gold" and "ld".
   3063 # --enable-gold --enable-ld=default
   3064 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
   3065 #     and ld.bfd).
   3066 #     In other words, ld is default
   3067 # --enable-gold=default --enable-ld=default
   3068 #     Error.
   3069 
   3070 default_ld=
   3071 # Check whether --enable-gold was given.
   3072 if test "${enable_gold+set}" = set; then :
   3073   enableval=$enable_gold; ENABLE_GOLD=$enableval
   3074 else
   3075   ENABLE_GOLD=no
   3076 fi
   3077 
   3078 case "${ENABLE_GOLD}" in
   3079   yes|default)
   3080     # Check for ELF target.
   3081     is_elf=no
   3082     case "${target}" in
   3083       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
   3084       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
   3085       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
   3086       | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
   3087         case "${target}" in
   3088           *-*-linux*aout* | *-*-linux*oldld*)
   3089             ;;
   3090           *)
   3091             is_elf=yes
   3092             ;;
   3093         esac
   3094     esac
   3095 
   3096     if test "$is_elf" = "yes"; then
   3097       # Check for target supported by gold.
   3098       case "${target}" in
   3099         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
   3100         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
   3101 	  configdirs="$configdirs gold"
   3102 	  if test x${ENABLE_GOLD} = xdefault; then
   3103 	    default_ld=gold
   3104 	  fi
   3105 	  ENABLE_GOLD=yes
   3106           ;;
   3107       esac
   3108     fi
   3109     ;;
   3110   no)
   3111     ;;
   3112   *)
   3113     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
   3114     ;;
   3115 esac
   3116 
   3117 # Check whether --enable-ld was given.
   3118 if test "${enable_ld+set}" = set; then :
   3119   enableval=$enable_ld; ENABLE_LD=$enableval
   3120 else
   3121   ENABLE_LD=yes
   3122 fi
   3123 
   3124 
   3125 case "${ENABLE_LD}" in
   3126   default)
   3127     if test x${default_ld} != x; then
   3128       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
   3129     fi
   3130     ;;
   3131   yes)
   3132     ;;
   3133   no)
   3134     if test x${ENABLE_GOLD} != xyes; then
   3135       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
   3136 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
   3137     fi
   3138     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
   3139     ;;
   3140   *)
   3141     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
   3142     ;;
   3143 esac
   3144 
   3145 # Check whether --enable-gprofng was given.
   3146 if test "${enable_gprofng+set}" = set; then :
   3147   enableval=$enable_gprofng; enable_gprofng=$enableval
   3148 else
   3149   enable_gprofng=yes
   3150 fi
   3151 
   3152 if test "$enable_gprofng" = "yes"; then
   3153   case "${target}" in
   3154     *-musl*)
   3155       ;;
   3156     x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux* | riscv64-*-linux*)
   3157     configdirs="$configdirs gprofng"
   3158     ;;
   3159   esac
   3160 fi
   3161 
   3162 
   3163 # PR gas/19109
   3164 # Decide the default method for compressing debug sections.
   3165 # Provide a configure time option to override our default.
   3166 # Check whether --enable-compressed_debug_sections was given.
   3167 if test "${enable_compressed_debug_sections+set}" = set; then :
   3168   enableval=$enable_compressed_debug_sections;
   3169   if test x"$enable_compressed_debug_sections" = xyes; then
   3170     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
   3171   fi
   3172 
   3173 else
   3174   enable_compressed_debug_sections=
   3175 fi
   3176 
   3177 
   3178 # Select default compression algorithm.
   3179 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
   3180 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
   3181   enableval=$enable_default_compressed_debug_sections_algorithm;
   3182 else
   3183   default_compressed_debug_sections_algorithm=
   3184 fi
   3185 
   3186 
   3187 # Configure extra directories which are host specific
   3188 
   3189 case "${host}" in
   3190   *-cygwin*)
   3191     configdirs="$configdirs libtermcap" ;;
   3192 esac
   3193 
   3194 # A target can indicate whether a language isn't supported for some reason.
   3195 # Only spaces may be used in this macro; not newlines or tabs.
   3196 unsupported_languages=
   3197 
   3198 # Remove more programs from consideration, based on the host or
   3199 # target this usually means that a port of the program doesn't
   3200 # exist yet.
   3201 
   3202 case "${host}" in
   3203   i[3456789]86-*-msdosdjgpp*)
   3204     noconfigdirs="$noconfigdirs tcl tk itcl"
   3205     ;;
   3206 esac
   3207 
   3208 # Default to --disable-year2038 until we can handle differences between
   3209 # projects that use gnulib (which understands year 2038) and projects that
   3210 # do not (like BFD).
   3211 # Check whether --enable-year2038 was given.
   3212 if test "${enable_year2038+set}" = set; then :
   3213   enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
   3214 else
   3215   ENABLE_YEAR2038=no
   3216 fi
   3217 
   3218 enable_year2038=
   3219 if test "${ENABLE_YEAR2038}" = "no" ; then
   3220   enable_year2038=no
   3221 fi
   3222 
   3223 # Check whether --enable-libquadmath was given.
   3224 if test "${enable_libquadmath+set}" = set; then :
   3225   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
   3226 else
   3227   ENABLE_LIBQUADMATH=yes
   3228 fi
   3229 
   3230 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
   3231   noconfigdirs="$noconfigdirs target-libquadmath"
   3232 fi
   3233 
   3234 
   3235 # Check whether --enable-libquadmath-support was given.
   3236 if test "${enable_libquadmath_support+set}" = set; then :
   3237   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
   3238 else
   3239   ENABLE_LIBQUADMATH_SUPPORT=yes
   3240 fi
   3241 
   3242 enable_libquadmath_support=
   3243 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
   3244   enable_libquadmath_support=no
   3245 fi
   3246 
   3247 
   3248 # Check whether --enable-libada was given.
   3249 if test "${enable_libada+set}" = set; then :
   3250   enableval=$enable_libada; ENABLE_LIBADA=$enableval
   3251 else
   3252   ENABLE_LIBADA=yes
   3253 fi
   3254 
   3255 if test "${ENABLE_LIBADA}" != "yes" ; then
   3256   noconfigdirs="$noconfigdirs gnattools"
   3257 fi
   3258 
   3259 # Check whether --enable-libgm2 was given.
   3260 if test "${enable_libgm2+set}" = set; then :
   3261   enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
   3262 else
   3263   ENABLE_LIBGM2=no
   3264 fi
   3265 
   3266 if test "${ENABLE_LIBGM2}" != "yes" ; then
   3267   noconfigdirs="$noconfigdirs gm2tools"
   3268 fi
   3269 
   3270 # Check whether --enable-libssp was given.
   3271 if test "${enable_libssp+set}" = set; then :
   3272   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
   3273 else
   3274   ENABLE_LIBSSP=yes
   3275 fi
   3276 
   3277 
   3278 # Check whether --enable-libstdcxx was given.
   3279 if test "${enable_libstdcxx+set}" = set; then :
   3280   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
   3281 else
   3282   ENABLE_LIBSTDCXX=default
   3283 fi
   3284 
   3285 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
   3286   noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3287 fi
   3288 
   3289 # Enable libgomp by default on hosted POSIX systems, and a few others.
   3290 if test x$enable_libgomp = x ; then
   3291     case "${target}" in
   3292     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
   3293 	;;
   3294     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
   3295 	;;
   3296     *-*-solaris2* | *-*-hpux11*)
   3297 	;;
   3298     *-*-darwin* | *-*-aix*)
   3299 	;;
   3300     nvptx*-*-* | amdgcn*-*-*)
   3301 	;;
   3302     *)
   3303 	noconfigdirs="$noconfigdirs target-libgomp"
   3304 	;;
   3305     esac
   3306 fi
   3307 
   3308 # Disable libatomic on unsupported systems.
   3309 if test -d ${srcdir}/libatomic; then
   3310     if test x$enable_libatomic = x; then
   3311 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
   3312 $as_echo_n "checking for libatomic support... " >&6; }
   3313 	if (srcdir=${srcdir}/libatomic; \
   3314 		. ${srcdir}/configure.tgt; \
   3315 		test -n "$UNSUPPORTED")
   3316 	then
   3317 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3318 $as_echo "no" >&6; }
   3319 	    noconfigdirs="$noconfigdirs target-libatomic"
   3320 	else
   3321 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3322 $as_echo "yes" >&6; }
   3323 	fi
   3324     fi
   3325 fi
   3326 
   3327 # Disable libitm on unsupported systems.
   3328 if test -d ${srcdir}/libitm; then
   3329     if test x$enable_libitm = x; then
   3330 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
   3331 $as_echo_n "checking for libitm support... " >&6; }
   3332 	if (srcdir=${srcdir}/libitm; \
   3333 		. ${srcdir}/configure.tgt; \
   3334 		test -n "$UNSUPPORTED")
   3335 	then
   3336 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3337 $as_echo "no" >&6; }
   3338 	    noconfigdirs="$noconfigdirs target-libitm"
   3339 	else
   3340 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3341 $as_echo "yes" >&6; }
   3342 	fi
   3343     fi
   3344 fi
   3345 
   3346 # Disable libsanitizer on unsupported systems.
   3347 if test -d ${srcdir}/libsanitizer; then
   3348     if test x$enable_libsanitizer = x; then
   3349 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
   3350 $as_echo_n "checking for libsanitizer support... " >&6; }
   3351 	if (srcdir=${srcdir}/libsanitizer; \
   3352 		. ${srcdir}/configure.tgt; \
   3353 		test -n "$UNSUPPORTED")
   3354 	then
   3355 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3356 $as_echo "no" >&6; }
   3357 	    noconfigdirs="$noconfigdirs target-libsanitizer"
   3358 	else
   3359 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3360 $as_echo "yes" >&6; }
   3361 	fi
   3362     fi
   3363 fi
   3364 
   3365 # Disable libvtv on unsupported systems.
   3366 if test -d ${srcdir}/libvtv; then
   3367     if test x$enable_libvtv = x; then
   3368 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
   3369 $as_echo_n "checking for libvtv support... " >&6; }
   3370 	if (srcdir=${srcdir}/libvtv; \
   3371 		. ${srcdir}/configure.tgt; \
   3372 		test "$VTV_SUPPORTED" != "yes")
   3373 	then
   3374 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3375 $as_echo "no" >&6; }
   3376 	    noconfigdirs="$noconfigdirs target-libvtv"
   3377 	else
   3378 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3379 $as_echo "yes" >&6; }
   3380 	fi
   3381     fi
   3382 fi
   3383 
   3384 # Disable libquadmath for some systems.
   3385 case "${target}" in
   3386   avr-*-*)
   3387     noconfigdirs="$noconfigdirs target-libquadmath"
   3388     ;;
   3389   # libquadmath is unused on AIX and libquadmath build process use of
   3390   # LD_LIBRARY_PATH can break AIX bootstrap.
   3391   powerpc-*-aix* | rs6000-*-aix*)
   3392     noconfigdirs="$noconfigdirs target-libquadmath"
   3393     ;;
   3394 esac
   3395 
   3396 # Disable libssp for some systems.
   3397 case "${target}" in
   3398   avr-*-*)
   3399     # No hosted I/O support.
   3400     noconfigdirs="$noconfigdirs target-libssp"
   3401     ;;
   3402   bpf-*-*)
   3403     noconfigdirs="$noconfigdirs target-libssp"
   3404     ;;
   3405   powerpc-*-aix* | rs6000-*-aix*)
   3406     noconfigdirs="$noconfigdirs target-libssp"
   3407     ;;
   3408   pru-*-*)
   3409     # No hosted I/O support.
   3410     noconfigdirs="$noconfigdirs target-libssp"
   3411     ;;
   3412   rl78-*-*)
   3413     # libssp uses a misaligned load to trigger a fault, but the RL78
   3414     # doesn't fault for those - instead, it gives a build-time error
   3415     # for explicit misaligned loads.
   3416     noconfigdirs="$noconfigdirs target-libssp"
   3417     ;;
   3418   visium-*-*)
   3419     # No hosted I/O support.
   3420     noconfigdirs="$noconfigdirs target-libssp"
   3421     ;;
   3422 esac
   3423 
   3424 # Disable libstdc++-v3 for some systems.
   3425 # Allow user to override this if they pass --enable-libstdcxx
   3426 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
   3427   case "${target}" in
   3428     *-*-vxworks*)
   3429       # VxWorks uses the Dinkumware C++ library.
   3430       noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3431       ;;
   3432     amdgcn*-*-*)
   3433       # Not ported/fails to build when using newlib.
   3434       noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3435       ;;
   3436     arm*-wince-pe*)
   3437       # the C++ libraries don't build on top of CE's C libraries
   3438       noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3439       ;;
   3440     avr-*-*)
   3441       noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3442       ;;
   3443     bpf-*-*)
   3444       noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3445       ;;
   3446     ft32-*-*)
   3447       noconfigdirs="$noconfigdirs target-libstdc++-v3"
   3448       ;;
   3449   esac
   3450 fi
   3451 
   3452 # Disable C++ on systems where it is known to not work.
   3453 # For testing, you can override this with --enable-languages=c++.
   3454 case ,${enable_languages}, in
   3455   *,c++,*)
   3456     ;;
   3457   *)
   3458       case "${target}" in
   3459         bpf-*-*)
   3460           unsupported_languages="$unsupported_languages c++"
   3461           ;;
   3462       esac
   3463       ;;
   3464 esac
   3465 
   3466 # Disable Objc on systems where it is known to not work.
   3467 # For testing, you can override this with --enable-languages=objc.
   3468 case ,${enable_languages}, in
   3469   *,objc,*)
   3470     ;;
   3471   *)
   3472       case "${target}" in
   3473         bpf-*-*)
   3474           unsupported_languages="$unsupported_languages objc"
   3475           ;;
   3476       esac
   3477       ;;
   3478 esac
   3479 
   3480 # Disable D on systems where it is known to not work.
   3481 # For testing, you can override this with --enable-languages=d.
   3482 case ,${enable_languages}, in
   3483   *,d,*)
   3484     ;;
   3485   *)
   3486     case "${target}" in
   3487       bpf-*-*)
   3488 	unsupported_languages="$unsupported_languages d"
   3489 	;;
   3490     esac
   3491     ;;
   3492 esac
   3493 
   3494 # Disable libphobos on unsupported systems.
   3495 # For testing, you can override this with --enable-libphobos.
   3496 if test -d ${srcdir}/libphobos; then
   3497     if test x$enable_libphobos = x; then
   3498 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
   3499 $as_echo_n "checking for libphobos support... " >&6; }
   3500 	if (srcdir=${srcdir}/libphobos; \
   3501 		. ${srcdir}/configure.tgt; \
   3502 		test "$LIBPHOBOS_SUPPORTED" != "yes")
   3503 	then
   3504 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3505 $as_echo "no" >&6; }
   3506 	    noconfigdirs="$noconfigdirs target-libphobos"
   3507 	else
   3508 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3509 $as_echo "yes" >&6; }
   3510 	fi
   3511     fi
   3512 fi
   3513 
   3514 # Disable Fortran for some systems.
   3515 case "${target}" in
   3516   mmix-*-*)
   3517     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
   3518     unsupported_languages="$unsupported_languages fortran"
   3519     ;;
   3520   bpf-*-*)
   3521     unsupported_languages="$unsupported_languages fortran"
   3522     ;;
   3523 esac
   3524 
   3525 # Disable libffi for some systems.
   3526 case "${target}" in
   3527   powerpc-*-darwin*)
   3528     ;;
   3529   i[3456789]86-*-darwin*)
   3530     ;;
   3531   x86_64-*-darwin[912]*)
   3532     ;;
   3533   *-*-darwin*)
   3534     noconfigdirs="$noconfigdirs target-libffi"
   3535     ;;
   3536   *-*-netware*)
   3537     noconfigdirs="$noconfigdirs target-libffi"
   3538     ;;
   3539   *-*-phoenix*)
   3540     noconfigdirs="$noconfigdirs target-libffi"
   3541     ;;
   3542   *-*-rtems*)
   3543     noconfigdirs="$noconfigdirs target-libffi"
   3544     ;;
   3545   *-*-tpf*)
   3546     noconfigdirs="$noconfigdirs target-libffi"
   3547     ;;
   3548   *-*-uclinux*)
   3549     noconfigdirs="$noconfigdirs target-libffi"
   3550     ;;
   3551   *-*-vxworks*)
   3552     noconfigdirs="$noconfigdirs target-libffi"
   3553     ;;
   3554   aarch64*-*-freebsd*)
   3555     noconfigdirs="$noconfigdirs target-libffi"
   3556     ;;
   3557   alpha*-*-*vms*)
   3558     noconfigdirs="$noconfigdirs target-libffi"
   3559     ;;
   3560   arm*-*-freebsd*)
   3561     noconfigdirs="$noconfigdirs target-libffi"
   3562     ;;
   3563   arm-wince-pe)
   3564     noconfigdirs="$noconfigdirs target-libffi"
   3565     ;;
   3566   arm*-*-symbianelf*)
   3567     noconfigdirs="$noconfigdirs target-libffi"
   3568     ;;
   3569   bpf-*-*)
   3570     noconfigdirs="$noconfigdirs target-libffi"
   3571     ;;
   3572   cris-*-* | crisv32-*-*)
   3573     case "${target}" in
   3574       *-*-linux*)
   3575 	;;
   3576       *) # See PR46792 regarding target-libffi.
   3577 	noconfigdirs="$noconfigdirs target-libffi";;
   3578     esac
   3579     ;;
   3580   hppa*64*-*-hpux*)
   3581     noconfigdirs="$noconfigdirs target-libffi"
   3582     ;;
   3583   hppa*-hp-hpux11*)
   3584     ;;
   3585   hppa*-*-hpux*)
   3586     noconfigdirs="$noconfigdirs target-libffi"
   3587     ;;
   3588   ia64*-*-*vms*)
   3589     noconfigdirs="$noconfigdirs target-libffi"
   3590     ;;
   3591   i[3456789]86-w64-mingw*)
   3592     noconfigdirs="$noconfigdirs target-libffi"
   3593     ;;
   3594   i[3456789]86-*-mingw*)
   3595     noconfigdirs="$noconfigdirs target-libffi"
   3596     ;;
   3597   x86_64-*-mingw*)
   3598     noconfigdirs="$noconfigdirs target-libffi"
   3599     ;;
   3600   mmix-*-*)
   3601     noconfigdirs="$noconfigdirs target-libffi"
   3602     ;;
   3603   powerpc-*-aix*)
   3604     ;;
   3605   rs6000-*-aix*)
   3606     ;;
   3607   ft32-*-*)
   3608     noconfigdirs="$noconfigdirs target-libffi"
   3609     ;;
   3610   *-*-lynxos*)
   3611     noconfigdirs="$noconfigdirs target-libffi"
   3612     ;;
   3613 esac
   3614 
   3615 # Disable the go frontend on systems where it is known to not work. Please keep
   3616 # this in sync with contrib/config-list.mk.
   3617 case "${target}" in
   3618 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
   3619     unsupported_languages="$unsupported_languages go"
   3620     ;;
   3621 esac
   3622 
   3623 # Only allow gdbserver on some systems.
   3624 if test -d ${srcdir}/gdbserver; then
   3625     if test x$enable_gdbserver = x; then
   3626 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
   3627 $as_echo_n "checking for gdbserver support... " >&6; }
   3628 	if (srcdir=${srcdir}/gdbserver; \
   3629 		. ${srcdir}/configure.srv; \
   3630 		test -n "$UNSUPPORTED")
   3631 	then
   3632 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3633 $as_echo "no" >&6; }
   3634 	    noconfigdirs="$noconfigdirs gdbserver"
   3635 	else
   3636 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3637 $as_echo "yes" >&6; }
   3638 	fi
   3639     fi
   3640 fi
   3641 
   3642 # Disable libgo for some systems where it is known to not work.
   3643 # For testing, you can easily override this with --enable-libgo.
   3644 if test x$enable_libgo = x; then
   3645     case "${target}" in
   3646     *-*-darwin*)
   3647 	# PR 46986
   3648 	noconfigdirs="$noconfigdirs target-libgo"
   3649 	;;
   3650     *-*-cygwin* | *-*-mingw*)
   3651 	noconfigdirs="$noconfigdirs target-libgo"
   3652 	;;
   3653     bpf-*-*)
   3654         noconfigdirs="$noconfigdirs target-libgo"
   3655         ;;
   3656     esac
   3657 fi
   3658 
   3659 # Default libgloss CPU subdirectory.
   3660 libgloss_dir="$target_cpu"
   3661 
   3662 case "${target}" in
   3663   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
   3664     libgloss_dir=wince
   3665     ;;
   3666   aarch64*-*-* )
   3667     libgloss_dir=aarch64
   3668     ;;
   3669   arm*-*-*)
   3670     libgloss_dir=arm
   3671     ;;
   3672   cris-*-* | crisv32-*-*)
   3673     libgloss_dir=cris
   3674     ;;
   3675   kvx-*-elf)
   3676     libgloss_dir=kvx-elf
   3677     ;;
   3678   kvx-*-mbr)
   3679     libgloss_dir=kvx-mbr
   3680     ;;
   3681   kvx-*-cos)
   3682     libgloss_dir=kvx-cos
   3683     ;;
   3684   hppa*-*-*)
   3685     libgloss_dir=pa
   3686     ;;
   3687   i[3456789]86-*-*)
   3688     libgloss_dir=i386
   3689     ;;
   3690   loongarch*-*-*)
   3691     libgloss_dir=loongarch
   3692     ;;
   3693   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
   3694     libgloss_dir=m68hc11
   3695     ;;
   3696   m68*-*-* | fido-*-*)
   3697     libgloss_dir=m68k
   3698     ;;
   3699   mips*-*-*)
   3700     libgloss_dir=mips
   3701     ;;
   3702   powerpc*-*-*)
   3703     libgloss_dir=rs6000
   3704     ;;
   3705   pru-*-*)
   3706     libgloss_dir=pru
   3707     ;;
   3708   sparc*-*-*)
   3709     libgloss_dir=sparc
   3710     ;;
   3711 esac
   3712 
   3713 # Disable newlib and libgloss for various target OSes.
   3714 case "${target}" in
   3715   alpha*-dec-osf*)
   3716     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3717     ;;
   3718   i[3456789]86-*-linux*)
   3719     # This section makes it possible to build newlib natively on linux.
   3720     # If we are using a cross compiler then don't configure newlib.
   3721     if test x${is_cross_compiler} != xno ; then
   3722       noconfigdirs="$noconfigdirs target-newlib"
   3723     fi
   3724     noconfigdirs="$noconfigdirs target-libgloss"
   3725     # If we are not using a cross compiler, do configure newlib.
   3726     # Note however, that newlib will only be configured in this situation
   3727     # if the --with-newlib option has been given, because otherwise
   3728     # 'target-newlib' will appear in skipdirs.
   3729     ;;
   3730   i[3456789]86-*-rdos*)
   3731     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3732     ;;
   3733   sh*-*-pe|mips*-*-pe|arm-wince-pe)
   3734     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3735     ;;
   3736   sparc-*-sunos4*)
   3737     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3738     ;;
   3739   bpf-*-*)
   3740     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3741     ;;
   3742   *-*-aix*)
   3743     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3744     ;;
   3745   *-*-beos*)
   3746     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3747     ;;
   3748   *-*-chorusos)
   3749     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3750     ;;
   3751   *-*-dragonfly*)
   3752     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3753     ;;
   3754   *-*-freebsd*)
   3755     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3756     ;;
   3757   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
   3758     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3759     ;;
   3760   *-*-lynxos*)
   3761     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3762     ;;
   3763   *-*-mingw*)
   3764     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3765     ;;
   3766   *-*-netbsd*)
   3767     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3768     ;;
   3769   *-*-netware*)
   3770     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3771     ;;
   3772   *-*-tpf*)
   3773     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3774     ;;
   3775   *-*-uclinux*)
   3776     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3777     ;;
   3778   *-*-vxworks*)
   3779     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3780     ;;
   3781 esac
   3782 
   3783 # The ARM simulator has been deprecated for all ARM targets.
   3784 case "${target}" in
   3785   arm*-*-*)
   3786     noconfigdirs="$noconfigdirs sim"
   3787     ;;
   3788 esac
   3789 
   3790 case "${target}" in
   3791   *-*-chorusos)
   3792     ;;
   3793   aarch64-*-darwin*)
   3794     noconfigdirs="$noconfigdirs ld gas gdb gprof"
   3795     noconfigdirs="$noconfigdirs sim target-rda"
   3796     ;;
   3797   amdgcn*-*-*)
   3798     ;;
   3799   arm-*-darwin*)
   3800     noconfigdirs="$noconfigdirs ld gas gdb gprof"
   3801     noconfigdirs="$noconfigdirs target-rda"
   3802     ;;
   3803   powerpc-*-darwin*)
   3804     noconfigdirs="$noconfigdirs ld gas gdb gprof"
   3805     noconfigdirs="$noconfigdirs sim target-rda"
   3806     ;;
   3807   i[3456789]86-*-darwin*)
   3808     noconfigdirs="$noconfigdirs ld gprof"
   3809     noconfigdirs="$noconfigdirs sim target-rda"
   3810     ;;
   3811   x86_64-*-darwin[912]*)
   3812     noconfigdirs="$noconfigdirs ld gas gprof"
   3813     noconfigdirs="$noconfigdirs sim target-rda"
   3814     ;;
   3815   *-*-darwin*)
   3816     noconfigdirs="$noconfigdirs ld gas gdb gprof"
   3817     noconfigdirs="$noconfigdirs sim target-rda"
   3818     ;;
   3819   *-*-dragonfly*)
   3820     ;;
   3821   *-*-freebsd*)
   3822     if test "x$with_gmp" = x \
   3823 	&& ! test -d ${srcdir}/gmp \
   3824 	&& test -f /usr/local/include/gmp.h; then
   3825       with_gmp=/usr/local
   3826     fi
   3827     ;;
   3828   *-*-kaos*)
   3829     # Remove unsupported stuff on all kaOS configurations.
   3830     noconfigdirs="$noconfigdirs target-libgloss"
   3831     ;;
   3832   *-*-netbsd*)
   3833     ;;
   3834   *-*-netware*)
   3835     ;;
   3836   *-*-phoenix*)
   3837     noconfigdirs="$noconfigdirs target-libgloss"
   3838     ;;
   3839   *-*-rtems*)
   3840     noconfigdirs="$noconfigdirs target-libgloss"
   3841     ;;
   3842     # The tpf target doesn't support gdb yet.
   3843   *-*-tpf*)
   3844     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
   3845     ;;
   3846   *-*-uclinux*)
   3847     noconfigdirs="$noconfigdirs target-rda"
   3848     ;;
   3849   *-*-vxworks*)
   3850     ;;
   3851   alpha*-dec-osf*)
   3852     # ld works, but does not support shared libraries.
   3853     # gas doesn't generate exception information.
   3854     noconfigdirs="$noconfigdirs gas ld"
   3855     ;;
   3856   alpha*-*-*vms*)
   3857     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
   3858     ;;
   3859   alpha*-*-*)
   3860     # newlib is not 64 bit ready
   3861     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3862     ;;
   3863   bpf-*-*)
   3864     noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
   3865     ;;
   3866   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
   3867     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
   3868     ;;
   3869   arc*-*-*)
   3870     noconfigdirs="$noconfigdirs sim"
   3871     ;;
   3872   arm-*-pe*)
   3873     noconfigdirs="$noconfigdirs target-libgloss"
   3874     ;;
   3875   arm-*-riscix*)
   3876     noconfigdirs="$noconfigdirs ld target-libgloss"
   3877     ;;
   3878   avr-*-*)
   3879     if test x${with_avrlibc} != xno; then
   3880       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   3881     fi
   3882     ;;
   3883   c4x-*-* | tic4x-*-*)
   3884     noconfigdirs="$noconfigdirs target-libgloss"
   3885     ;;
   3886   tic54x-*-*)
   3887     noconfigdirs="$noconfigdirs target-libgloss gdb"
   3888     ;;
   3889   d10v-*-*)
   3890     noconfigdirs="$noconfigdirs target-libgloss"
   3891     ;;
   3892   d30v-*-*)
   3893     noconfigdirs="$noconfigdirs gdb"
   3894     ;;
   3895   fr30-*-elf*)
   3896     noconfigdirs="$noconfigdirs gdb"
   3897     ;;
   3898   ft32-*-*)
   3899     noconfigdirs="$noconfigdirs target-rda gprof"
   3900     ;;
   3901   moxie-*-*)
   3902     noconfigdirs="$noconfigdirs"
   3903     ;;
   3904   h8300*-*-*)
   3905     noconfigdirs="$noconfigdirs target-libgloss"
   3906     ;;
   3907   h8500-*-*)
   3908     noconfigdirs="$noconfigdirs target-libgloss"
   3909     ;;
   3910   hppa1.1-*-osf* | hppa1.1-*-bsd* )
   3911     ;;
   3912   hppa*64*-*-hpux*)
   3913     noconfigdirs="$noconfigdirs gdb"
   3914     ;;
   3915   hppa*-*-hpux11*)
   3916     noconfigdirs="$noconfigdirs gdb ld"
   3917     ;;
   3918   hppa*64*-*-linux*)
   3919     ;;
   3920   hppa*-*-linux*)
   3921     ;;
   3922   hppa*-*-*elf* | \
   3923   hppa*-*-lites* | \
   3924   hppa*-*-openbsd* | \
   3925   hppa*64*-*-*)
   3926     ;;
   3927   hppa*-*-pro*)
   3928     ;;
   3929   hppa*-*-*)
   3930     noconfigdirs="$noconfigdirs ld"
   3931     ;;
   3932   i960-*-*)
   3933     noconfigdirs="$noconfigdirs gdb"
   3934     ;;
   3935   ia64*-*-elf*)
   3936     # No gdb support yet.
   3937     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
   3938     ;;
   3939   ia64*-**-hpux*)
   3940     # No ld support yet.
   3941     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
   3942     ;;
   3943   ia64*-*-*vms*)
   3944     # No ld support yet.
   3945     noconfigdirs="$noconfigdirs libgui itcl ld"
   3946     ;;
   3947   i[3456789]86-w64-mingw*)
   3948     ;;
   3949   i[3456789]86-*-mingw*)
   3950     target_configdirs="$target_configdirs target-winsup"
   3951     ;;
   3952   *-*-cygwin*)
   3953     target_configdirs="$target_configdirs target-libtermcap target-winsup"
   3954     noconfigdirs="$noconfigdirs target-libgloss"
   3955     # always build newlib if winsup directory is present.
   3956     if test -d "$srcdir/winsup/cygwin"; then
   3957       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
   3958     elif test -d "$srcdir/newlib"; then
   3959       echo "Warning: winsup/cygwin is missing so newlib can't be built."
   3960     fi
   3961     ;;
   3962   i[3456789]86-*-pe)
   3963     noconfigdirs="$noconfigdirs target-libgloss"
   3964     ;;
   3965   i[3456789]86-*-sco3.2v5*)
   3966     # The linker does not yet know about weak symbols in COFF,
   3967     # and is not configured to handle mixed ELF and COFF.
   3968     noconfigdirs="$noconfigdirs ld target-libgloss"
   3969     ;;
   3970   i[3456789]86-*-sco*)
   3971     noconfigdirs="$noconfigdirs gprof target-libgloss"
   3972     ;;
   3973   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
   3974     noconfigdirs="$noconfigdirs target-libgloss"
   3975     ;;
   3976   i[3456789]86-*-sysv4*)
   3977     noconfigdirs="$noconfigdirs target-libgloss"
   3978     ;;
   3979   i[3456789]86-*-beos*)
   3980     noconfigdirs="$noconfigdirs gdb"
   3981     ;;
   3982   i[3456789]86-*-rdos*)
   3983     noconfigdirs="$noconfigdirs gdb"
   3984     ;;
   3985   kvx-*-*)
   3986     noconfigdirs="$noconfigdirs gdb gdbserver sim"
   3987     ;;
   3988   mmix-*-*)
   3989     noconfigdirs="$noconfigdirs gdb"
   3990     ;;
   3991   mt-*-*)
   3992     noconfigdirs="$noconfigdirs sim"
   3993     ;;
   3994   nfp-*-*)
   3995     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
   3996     noconfigdirs="$noconfigdirs $target_libraries"
   3997     ;;
   3998   pdp11-*-*)
   3999     noconfigdirs="$noconfigdirs gdb gprof"
   4000     ;;
   4001   powerpc-*-aix*)
   4002     # copied from rs6000-*-* entry
   4003     noconfigdirs="$noconfigdirs gprof"
   4004     ;;
   4005   powerpc*-*-winnt* | powerpc*-*-pe*)
   4006     target_configdirs="$target_configdirs target-winsup"
   4007     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
   4008     # always build newlib.
   4009     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
   4010     ;;
   4011     # This is temporary until we can link against shared libraries
   4012   powerpcle-*-solaris*)
   4013     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
   4014     ;;
   4015   powerpc-*-beos*)
   4016     noconfigdirs="$noconfigdirs gdb"
   4017     ;;
   4018   rs6000-*-lynxos*)
   4019     noconfigdirs="$noconfigdirs gprof"
   4020     ;;
   4021   rs6000-*-aix*)
   4022     noconfigdirs="$noconfigdirs gprof"
   4023     ;;
   4024   rs6000-*-*)
   4025     noconfigdirs="$noconfigdirs gprof"
   4026     ;;
   4027   m68k-apollo-*)
   4028     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
   4029     ;;
   4030   microblaze*)
   4031     noconfigdirs="$noconfigdirs gprof"
   4032     ;;
   4033   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
   4034     if test x$with_newlib = xyes; then
   4035       noconfigdirs="$noconfigdirs gprof"
   4036     fi
   4037     ;;
   4038   mips*-*-irix5*)
   4039     noconfigdirs="$noconfigdirs gprof target-libgloss"
   4040     ;;
   4041   mips*-*-irix6*)
   4042     noconfigdirs="$noconfigdirs gprof target-libgloss"
   4043     ;;
   4044   mips*-*-bsd*)
   4045     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
   4046     ;;
   4047   mips*-*-linux*)
   4048     ;;
   4049   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
   4050   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
   4051     noconfigdirs="$noconfigdirs ld gas gprof"
   4052     ;;
   4053   mips*-*-*)
   4054     noconfigdirs="$noconfigdirs gprof"
   4055     ;;
   4056   nvptx*-*-*)
   4057     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
   4058     ;;
   4059   sh-*-*)
   4060     case "${target}" in
   4061       sh*-*-elf)
   4062          ;;
   4063       *)
   4064          noconfigdirs="$noconfigdirs target-libgloss" ;;
   4065     esac
   4066     ;;
   4067   sparc-*-sunos4*)
   4068     if test x${is_cross_compiler} = xno ; then
   4069            use_gnu_ld=no
   4070     fi
   4071     ;;
   4072   tic6x-*-*)
   4073     noconfigdirs="$noconfigdirs sim"
   4074     ;;
   4075   tilepro*-*-* | tilegx*-*-*)
   4076     noconfigdirs="$noconfigdirs sim"
   4077     ;;
   4078   v810-*-*)
   4079     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
   4080     ;;
   4081   vax-*-*)
   4082     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
   4083     ;;
   4084   wasm32-*-*)
   4085     noconfigdirs="$noconfigdirs ld"
   4086     ;;
   4087   loongarch*-*-linux*)
   4088     ;;
   4089   loongarch*-*-*)
   4090     noconfigdirs="$noconfigdirs gprof"
   4091     ;;
   4092 esac
   4093 
   4094 # If we aren't building newlib, then don't build libgloss, since libgloss
   4095 # depends upon some newlib header files.
   4096 case "${noconfigdirs}" in
   4097   *target-libgloss*) ;;
   4098   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
   4099 esac
   4100 
   4101 # Work in distributions that contain no compiler tools, like Autoconf.
   4102 host_makefile_frag=/dev/null
   4103 if test -d ${srcdir}/config ; then
   4104 case "${host}" in
   4105   i[3456789]86-*-msdosdjgpp*)
   4106     host_makefile_frag="config/mh-djgpp"
   4107     ;;
   4108   *-cygwin*)
   4109 
   4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
   4111 $as_echo_n "checking to see if cat works as expected... " >&6; }
   4112 echo a >cygwin-cat-check
   4113 if test `cat cygwin-cat-check` = a ; then
   4114   rm cygwin-cat-check
   4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4116 $as_echo "yes" >&6; }
   4117 else
   4118   rm cygwin-cat-check
   4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4120 $as_echo "no" >&6; }
   4121   as_fn_error $? "The cat command does not ignore carriage return characters.
   4122   Please either mount the build directory in binary mode or run the following
   4123   commands before running any configure script:
   4124 set -o igncr
   4125 export SHELLOPTS
   4126   " "$LINENO" 5
   4127 fi
   4128 
   4129     host_makefile_frag="config/mh-cygwin"
   4130     ;;
   4131   *-mingw*)
   4132     host_makefile_frag="config/mh-mingw"
   4133     ;;
   4134   alpha*-linux*)
   4135     host_makefile_frag="config/mh-alpha-linux"
   4136     ;;
   4137   hppa*-hp-hpux*)
   4138     host_makefile_frag="config/mh-pa"
   4139     ;;
   4140   hppa*-*)
   4141     host_makefile_frag="config/mh-pa"
   4142     ;;
   4143   i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
   4144     host_makefile_frag="config/mh-darwin"
   4145     ;;
   4146   powerpc-*-aix*)
   4147     host_makefile_frag="config/mh-ppc-aix"
   4148     ;;
   4149   rs6000-*-aix*)
   4150     host_makefile_frag="config/mh-ppc-aix"
   4151     ;;
   4152 esac
   4153 fi
   4154 
   4155 if test "${build}" != "${host}" ; then
   4156   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
   4157   AS_FOR_BUILD=${AS_FOR_BUILD-as}
   4158   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
   4159   CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
   4160   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
   4161   DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
   4162   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
   4163   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
   4164   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
   4165   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
   4166   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
   4167   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
   4168   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
   4169   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
   4170   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
   4171 else
   4172   AR_FOR_BUILD="\$(AR)"
   4173   AS_FOR_BUILD="\$(AS)"
   4174   CC_FOR_BUILD="\$(CC)"
   4175   CXX_FOR_BUILD="\$(CXX)"
   4176   DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
   4177   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
   4178   GOC_FOR_BUILD="\$(GOC)"
   4179   GDC_FOR_BUILD="\$(GDC)"
   4180   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
   4181   LD_FOR_BUILD="\$(LD)"
   4182   NM_FOR_BUILD="\$(NM)"
   4183   RANLIB_FOR_BUILD="\$(RANLIB)"
   4184   WINDRES_FOR_BUILD="\$(WINDRES)"
   4185   WINDMC_FOR_BUILD="\$(WINDMC)"
   4186 fi
   4187 
   4188 ac_ext=c
   4189 ac_cpp='$CPP $CPPFLAGS'
   4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4193 if test -n "$ac_tool_prefix"; then
   4194   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   4195 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4197 $as_echo_n "checking for $ac_word... " >&6; }
   4198 if ${ac_cv_prog_CC+:} false; then :
   4199   $as_echo_n "(cached) " >&6
   4200 else
   4201   if test -n "$CC"; then
   4202   ac_cv_prog_CC="$CC" # Let the user override the test.
   4203 else
   4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4205 for as_dir in $PATH
   4206 do
   4207   IFS=$as_save_IFS
   4208   test -z "$as_dir" && as_dir=.
   4209     for ac_exec_ext in '' $ac_executable_extensions; do
   4210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4211     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   4212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4213     break 2
   4214   fi
   4215 done
   4216   done
   4217 IFS=$as_save_IFS
   4218 
   4219 fi
   4220 fi
   4221 CC=$ac_cv_prog_CC
   4222 if test -n "$CC"; then
   4223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4224 $as_echo "$CC" >&6; }
   4225 else
   4226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4227 $as_echo "no" >&6; }
   4228 fi
   4229 
   4230 
   4231 fi
   4232 if test -z "$ac_cv_prog_CC"; then
   4233   ac_ct_CC=$CC
   4234   # Extract the first word of "gcc", so it can be a program name with args.
   4235 set dummy gcc; ac_word=$2
   4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4237 $as_echo_n "checking for $ac_word... " >&6; }
   4238 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4239   $as_echo_n "(cached) " >&6
   4240 else
   4241   if test -n "$ac_ct_CC"; then
   4242   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4243 else
   4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4245 for as_dir in $PATH
   4246 do
   4247   IFS=$as_save_IFS
   4248   test -z "$as_dir" && as_dir=.
   4249     for ac_exec_ext in '' $ac_executable_extensions; do
   4250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4251     ac_cv_prog_ac_ct_CC="gcc"
   4252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4253     break 2
   4254   fi
   4255 done
   4256   done
   4257 IFS=$as_save_IFS
   4258 
   4259 fi
   4260 fi
   4261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4262 if test -n "$ac_ct_CC"; then
   4263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4264 $as_echo "$ac_ct_CC" >&6; }
   4265 else
   4266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4267 $as_echo "no" >&6; }
   4268 fi
   4269 
   4270   if test "x$ac_ct_CC" = x; then
   4271     CC=""
   4272   else
   4273     case $cross_compiling:$ac_tool_warned in
   4274 yes:)
   4275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4277 ac_tool_warned=yes ;;
   4278 esac
   4279     CC=$ac_ct_CC
   4280   fi
   4281 else
   4282   CC="$ac_cv_prog_CC"
   4283 fi
   4284 
   4285 if test -z "$CC"; then
   4286           if test -n "$ac_tool_prefix"; then
   4287     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   4288 set dummy ${ac_tool_prefix}cc; ac_word=$2
   4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4290 $as_echo_n "checking for $ac_word... " >&6; }
   4291 if ${ac_cv_prog_CC+:} false; then :
   4292   $as_echo_n "(cached) " >&6
   4293 else
   4294   if test -n "$CC"; then
   4295   ac_cv_prog_CC="$CC" # Let the user override the test.
   4296 else
   4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4298 for as_dir in $PATH
   4299 do
   4300   IFS=$as_save_IFS
   4301   test -z "$as_dir" && as_dir=.
   4302     for ac_exec_ext in '' $ac_executable_extensions; do
   4303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4304     ac_cv_prog_CC="${ac_tool_prefix}cc"
   4305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4306     break 2
   4307   fi
   4308 done
   4309   done
   4310 IFS=$as_save_IFS
   4311 
   4312 fi
   4313 fi
   4314 CC=$ac_cv_prog_CC
   4315 if test -n "$CC"; then
   4316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4317 $as_echo "$CC" >&6; }
   4318 else
   4319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4320 $as_echo "no" >&6; }
   4321 fi
   4322 
   4323 
   4324   fi
   4325 fi
   4326 if test -z "$CC"; then
   4327   # Extract the first word of "cc", so it can be a program name with args.
   4328 set dummy cc; ac_word=$2
   4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4330 $as_echo_n "checking for $ac_word... " >&6; }
   4331 if ${ac_cv_prog_CC+:} false; then :
   4332   $as_echo_n "(cached) " >&6
   4333 else
   4334   if test -n "$CC"; then
   4335   ac_cv_prog_CC="$CC" # Let the user override the test.
   4336 else
   4337   ac_prog_rejected=no
   4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4339 for as_dir in $PATH
   4340 do
   4341   IFS=$as_save_IFS
   4342   test -z "$as_dir" && as_dir=.
   4343     for ac_exec_ext in '' $ac_executable_extensions; do
   4344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4345     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   4346        ac_prog_rejected=yes
   4347        continue
   4348      fi
   4349     ac_cv_prog_CC="cc"
   4350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4351     break 2
   4352   fi
   4353 done
   4354   done
   4355 IFS=$as_save_IFS
   4356 
   4357 if test $ac_prog_rejected = yes; then
   4358   # We found a bogon in the path, so make sure we never use it.
   4359   set dummy $ac_cv_prog_CC
   4360   shift
   4361   if test $# != 0; then
   4362     # We chose a different compiler from the bogus one.
   4363     # However, it has the same basename, so the bogon will be chosen
   4364     # first if we set CC to just the basename; use the full file name.
   4365     shift
   4366     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   4367   fi
   4368 fi
   4369 fi
   4370 fi
   4371 CC=$ac_cv_prog_CC
   4372 if test -n "$CC"; then
   4373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4374 $as_echo "$CC" >&6; }
   4375 else
   4376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4377 $as_echo "no" >&6; }
   4378 fi
   4379 
   4380 
   4381 fi
   4382 if test -z "$CC"; then
   4383   if test -n "$ac_tool_prefix"; then
   4384   for ac_prog in cl.exe
   4385   do
   4386     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4389 $as_echo_n "checking for $ac_word... " >&6; }
   4390 if ${ac_cv_prog_CC+:} false; then :
   4391   $as_echo_n "(cached) " >&6
   4392 else
   4393   if test -n "$CC"; then
   4394   ac_cv_prog_CC="$CC" # Let the user override the test.
   4395 else
   4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4397 for as_dir in $PATH
   4398 do
   4399   IFS=$as_save_IFS
   4400   test -z "$as_dir" && as_dir=.
   4401     for ac_exec_ext in '' $ac_executable_extensions; do
   4402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4403     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   4404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4405     break 2
   4406   fi
   4407 done
   4408   done
   4409 IFS=$as_save_IFS
   4410 
   4411 fi
   4412 fi
   4413 CC=$ac_cv_prog_CC
   4414 if test -n "$CC"; then
   4415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   4416 $as_echo "$CC" >&6; }
   4417 else
   4418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4419 $as_echo "no" >&6; }
   4420 fi
   4421 
   4422 
   4423     test -n "$CC" && break
   4424   done
   4425 fi
   4426 if test -z "$CC"; then
   4427   ac_ct_CC=$CC
   4428   for ac_prog in cl.exe
   4429 do
   4430   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4431 set dummy $ac_prog; ac_word=$2
   4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4433 $as_echo_n "checking for $ac_word... " >&6; }
   4434 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   4435   $as_echo_n "(cached) " >&6
   4436 else
   4437   if test -n "$ac_ct_CC"; then
   4438   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   4439 else
   4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4441 for as_dir in $PATH
   4442 do
   4443   IFS=$as_save_IFS
   4444   test -z "$as_dir" && as_dir=.
   4445     for ac_exec_ext in '' $ac_executable_extensions; do
   4446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4447     ac_cv_prog_ac_ct_CC="$ac_prog"
   4448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4449     break 2
   4450   fi
   4451 done
   4452   done
   4453 IFS=$as_save_IFS
   4454 
   4455 fi
   4456 fi
   4457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   4458 if test -n "$ac_ct_CC"; then
   4459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   4460 $as_echo "$ac_ct_CC" >&6; }
   4461 else
   4462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4463 $as_echo "no" >&6; }
   4464 fi
   4465 
   4466 
   4467   test -n "$ac_ct_CC" && break
   4468 done
   4469 
   4470   if test "x$ac_ct_CC" = x; then
   4471     CC=""
   4472   else
   4473     case $cross_compiling:$ac_tool_warned in
   4474 yes:)
   4475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4477 ac_tool_warned=yes ;;
   4478 esac
   4479     CC=$ac_ct_CC
   4480   fi
   4481 fi
   4482 
   4483 fi
   4484 
   4485 
   4486 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4488 as_fn_error $? "no acceptable C compiler found in \$PATH
   4489 See \`config.log' for more details" "$LINENO" 5; }
   4490 
   4491 # Provide some information about the compiler.
   4492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   4493 set X $ac_compile
   4494 ac_compiler=$2
   4495 for ac_option in --version -v -V -qversion; do
   4496   { { ac_try="$ac_compiler $ac_option >&5"
   4497 case "(($ac_try" in
   4498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4499   *) ac_try_echo=$ac_try;;
   4500 esac
   4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4502 $as_echo "$ac_try_echo"; } >&5
   4503   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   4504   ac_status=$?
   4505   if test -s conftest.err; then
   4506     sed '10a\
   4507 ... rest of stderr output deleted ...
   4508          10q' conftest.err >conftest.er1
   4509     cat conftest.er1 >&5
   4510   fi
   4511   rm -f conftest.er1 conftest.err
   4512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4513   test $ac_status = 0; }
   4514 done
   4515 
   4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4517 /* end confdefs.h.  */
   4518 
   4519 int
   4520 main ()
   4521 {
   4522 
   4523   ;
   4524   return 0;
   4525 }
   4526 _ACEOF
   4527 ac_clean_files_save=$ac_clean_files
   4528 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   4529 # Try to create an executable without -o first, disregard a.out.
   4530 # It will help us diagnose broken compilers, and finding out an intuition
   4531 # of exeext.
   4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   4533 $as_echo_n "checking whether the C compiler works... " >&6; }
   4534 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   4535 
   4536 # The possible output files:
   4537 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   4538 
   4539 ac_rmfiles=
   4540 for ac_file in $ac_files
   4541 do
   4542   case $ac_file in
   4543     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4544     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   4545   esac
   4546 done
   4547 rm -f $ac_rmfiles
   4548 
   4549 if { { ac_try="$ac_link_default"
   4550 case "(($ac_try" in
   4551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4552   *) ac_try_echo=$ac_try;;
   4553 esac
   4554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4555 $as_echo "$ac_try_echo"; } >&5
   4556   (eval "$ac_link_default") 2>&5
   4557   ac_status=$?
   4558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4559   test $ac_status = 0; }; then :
   4560   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   4561 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   4562 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   4563 # so that the user can short-circuit this test for compilers unknown to
   4564 # Autoconf.
   4565 for ac_file in $ac_files ''
   4566 do
   4567   test -f "$ac_file" || continue
   4568   case $ac_file in
   4569     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   4570 	;;
   4571     [ab].out )
   4572 	# We found the default executable, but exeext='' is most
   4573 	# certainly right.
   4574 	break;;
   4575     *.* )
   4576 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   4577 	then :; else
   4578 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4579 	fi
   4580 	# We set ac_cv_exeext here because the later test for it is not
   4581 	# safe: cross compilers may not add the suffix if given an `-o'
   4582 	# argument, so we may need to know it at that point already.
   4583 	# Even if this section looks crufty: it has the advantage of
   4584 	# actually working.
   4585 	break;;
   4586     * )
   4587 	break;;
   4588   esac
   4589 done
   4590 test "$ac_cv_exeext" = no && ac_cv_exeext=
   4591 
   4592 else
   4593   ac_file=''
   4594 fi
   4595 if test -z "$ac_file"; then :
   4596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4597 $as_echo "no" >&6; }
   4598 $as_echo "$as_me: failed program was:" >&5
   4599 sed 's/^/| /' conftest.$ac_ext >&5
   4600 
   4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4603 as_fn_error 77 "C compiler cannot create executables
   4604 See \`config.log' for more details" "$LINENO" 5; }
   4605 else
   4606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4607 $as_echo "yes" >&6; }
   4608 fi
   4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   4610 $as_echo_n "checking for C compiler default output file name... " >&6; }
   4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   4612 $as_echo "$ac_file" >&6; }
   4613 ac_exeext=$ac_cv_exeext
   4614 
   4615 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   4616 ac_clean_files=$ac_clean_files_save
   4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   4618 $as_echo_n "checking for suffix of executables... " >&6; }
   4619 if { { ac_try="$ac_link"
   4620 case "(($ac_try" in
   4621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4622   *) ac_try_echo=$ac_try;;
   4623 esac
   4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4625 $as_echo "$ac_try_echo"; } >&5
   4626   (eval "$ac_link") 2>&5
   4627   ac_status=$?
   4628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4629   test $ac_status = 0; }; then :
   4630   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   4631 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   4632 # work properly (i.e., refer to `conftest.exe'), while it won't with
   4633 # `rm'.
   4634 for ac_file in conftest.exe conftest conftest.*; do
   4635   test -f "$ac_file" || continue
   4636   case $ac_file in
   4637     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4638     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4639 	  break;;
   4640     * ) break;;
   4641   esac
   4642 done
   4643 else
   4644   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4646 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   4647 See \`config.log' for more details" "$LINENO" 5; }
   4648 fi
   4649 rm -f conftest conftest$ac_cv_exeext
   4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   4651 $as_echo "$ac_cv_exeext" >&6; }
   4652 
   4653 rm -f conftest.$ac_ext
   4654 EXEEXT=$ac_cv_exeext
   4655 ac_exeext=$EXEEXT
   4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4657 /* end confdefs.h.  */
   4658 #include <stdio.h>
   4659 int
   4660 main ()
   4661 {
   4662 FILE *f = fopen ("conftest.out", "w");
   4663  return ferror (f) || fclose (f) != 0;
   4664 
   4665   ;
   4666   return 0;
   4667 }
   4668 _ACEOF
   4669 ac_clean_files="$ac_clean_files conftest.out"
   4670 # Check that the compiler produces executables we can run.  If not, either
   4671 # the compiler is broken, or we cross compile.
   4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   4673 $as_echo_n "checking whether we are cross compiling... " >&6; }
   4674 if test "$cross_compiling" != yes; then
   4675   { { ac_try="$ac_link"
   4676 case "(($ac_try" in
   4677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4678   *) ac_try_echo=$ac_try;;
   4679 esac
   4680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4681 $as_echo "$ac_try_echo"; } >&5
   4682   (eval "$ac_link") 2>&5
   4683   ac_status=$?
   4684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4685   test $ac_status = 0; }
   4686   if { ac_try='./conftest$ac_cv_exeext'
   4687   { { case "(($ac_try" in
   4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4689   *) ac_try_echo=$ac_try;;
   4690 esac
   4691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4692 $as_echo "$ac_try_echo"; } >&5
   4693   (eval "$ac_try") 2>&5
   4694   ac_status=$?
   4695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4696   test $ac_status = 0; }; }; then
   4697     cross_compiling=no
   4698   else
   4699     if test "$cross_compiling" = maybe; then
   4700 	cross_compiling=yes
   4701     else
   4702 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4704 as_fn_error $? "cannot run C compiled programs.
   4705 If you meant to cross compile, use \`--host'.
   4706 See \`config.log' for more details" "$LINENO" 5; }
   4707     fi
   4708   fi
   4709 fi
   4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   4711 $as_echo "$cross_compiling" >&6; }
   4712 
   4713 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   4714 ac_clean_files=$ac_clean_files_save
   4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   4716 $as_echo_n "checking for suffix of object files... " >&6; }
   4717 if ${ac_cv_objext+:} false; then :
   4718   $as_echo_n "(cached) " >&6
   4719 else
   4720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4721 /* end confdefs.h.  */
   4722 
   4723 int
   4724 main ()
   4725 {
   4726 
   4727   ;
   4728   return 0;
   4729 }
   4730 _ACEOF
   4731 rm -f conftest.o conftest.obj
   4732 if { { ac_try="$ac_compile"
   4733 case "(($ac_try" in
   4734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4735   *) ac_try_echo=$ac_try;;
   4736 esac
   4737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4738 $as_echo "$ac_try_echo"; } >&5
   4739   (eval "$ac_compile") 2>&5
   4740   ac_status=$?
   4741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4742   test $ac_status = 0; }; then :
   4743   for ac_file in conftest.o conftest.obj conftest.*; do
   4744   test -f "$ac_file" || continue;
   4745   case $ac_file in
   4746     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   4747     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   4748        break;;
   4749   esac
   4750 done
   4751 else
   4752   $as_echo "$as_me: failed program was:" >&5
   4753 sed 's/^/| /' conftest.$ac_ext >&5
   4754 
   4755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4757 as_fn_error $? "cannot compute suffix of object files: cannot compile
   4758 See \`config.log' for more details" "$LINENO" 5; }
   4759 fi
   4760 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   4761 fi
   4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   4763 $as_echo "$ac_cv_objext" >&6; }
   4764 OBJEXT=$ac_cv_objext
   4765 ac_objext=$OBJEXT
   4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   4767 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   4768 if ${ac_cv_c_compiler_gnu+:} false; then :
   4769   $as_echo_n "(cached) " >&6
   4770 else
   4771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4772 /* end confdefs.h.  */
   4773 
   4774 int
   4775 main ()
   4776 {
   4777 #ifndef __GNUC__
   4778        choke me
   4779 #endif
   4780 
   4781   ;
   4782   return 0;
   4783 }
   4784 _ACEOF
   4785 if ac_fn_c_try_compile "$LINENO"; then :
   4786   ac_compiler_gnu=yes
   4787 else
   4788   ac_compiler_gnu=no
   4789 fi
   4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   4792 
   4793 fi
   4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   4795 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   4796 if test $ac_compiler_gnu = yes; then
   4797   GCC=yes
   4798 else
   4799   GCC=
   4800 fi
   4801 ac_test_CFLAGS=${CFLAGS+set}
   4802 ac_save_CFLAGS=$CFLAGS
   4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   4804 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   4805 if ${ac_cv_prog_cc_g+:} false; then :
   4806   $as_echo_n "(cached) " >&6
   4807 else
   4808   ac_save_c_werror_flag=$ac_c_werror_flag
   4809    ac_c_werror_flag=yes
   4810    ac_cv_prog_cc_g=no
   4811    CFLAGS="-g"
   4812    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4813 /* end confdefs.h.  */
   4814 
   4815 int
   4816 main ()
   4817 {
   4818 
   4819   ;
   4820   return 0;
   4821 }
   4822 _ACEOF
   4823 if ac_fn_c_try_compile "$LINENO"; then :
   4824   ac_cv_prog_cc_g=yes
   4825 else
   4826   CFLAGS=""
   4827       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4828 /* end confdefs.h.  */
   4829 
   4830 int
   4831 main ()
   4832 {
   4833 
   4834   ;
   4835   return 0;
   4836 }
   4837 _ACEOF
   4838 if ac_fn_c_try_compile "$LINENO"; then :
   4839 
   4840 else
   4841   ac_c_werror_flag=$ac_save_c_werror_flag
   4842 	 CFLAGS="-g"
   4843 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4844 /* end confdefs.h.  */
   4845 
   4846 int
   4847 main ()
   4848 {
   4849 
   4850   ;
   4851   return 0;
   4852 }
   4853 _ACEOF
   4854 if ac_fn_c_try_compile "$LINENO"; then :
   4855   ac_cv_prog_cc_g=yes
   4856 fi
   4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4858 fi
   4859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4860 fi
   4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4862    ac_c_werror_flag=$ac_save_c_werror_flag
   4863 fi
   4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4865 $as_echo "$ac_cv_prog_cc_g" >&6; }
   4866 if test "$ac_test_CFLAGS" = set; then
   4867   CFLAGS=$ac_save_CFLAGS
   4868 elif test $ac_cv_prog_cc_g = yes; then
   4869   if test "$GCC" = yes; then
   4870     CFLAGS="-g -O2"
   4871   else
   4872     CFLAGS="-g"
   4873   fi
   4874 else
   4875   if test "$GCC" = yes; then
   4876     CFLAGS="-O2"
   4877   else
   4878     CFLAGS=
   4879   fi
   4880 fi
   4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   4882 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   4883 if ${ac_cv_prog_cc_c89+:} false; then :
   4884   $as_echo_n "(cached) " >&6
   4885 else
   4886   ac_cv_prog_cc_c89=no
   4887 ac_save_CC=$CC
   4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4889 /* end confdefs.h.  */
   4890 #include <stdarg.h>
   4891 #include <stdio.h>
   4892 struct stat;
   4893 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4894 struct buf { int x; };
   4895 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4896 static char *e (p, i)
   4897      char **p;
   4898      int i;
   4899 {
   4900   return p[i];
   4901 }
   4902 static char *f (char * (*g) (char **, int), char **p, ...)
   4903 {
   4904   char *s;
   4905   va_list v;
   4906   va_start (v,p);
   4907   s = g (p, va_arg (v,int));
   4908   va_end (v);
   4909   return s;
   4910 }
   4911 
   4912 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   4913    function prototypes and stuff, but not '\xHH' hex character constants.
   4914    These don't provoke an error unfortunately, instead are silently treated
   4915    as 'x'.  The following induces an error, until -std is added to get
   4916    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   4917    array size at least.  It's necessary to write '\x00'==0 to get something
   4918    that's true only with -std.  */
   4919 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   4920 
   4921 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   4922    inside strings and character constants.  */
   4923 #define FOO(x) 'x'
   4924 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   4925 
   4926 int test (int i, double x);
   4927 struct s1 {int (*f) (int a);};
   4928 struct s2 {int (*f) (double a);};
   4929 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4930 int argc;
   4931 char **argv;
   4932 int
   4933 main ()
   4934 {
   4935 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4936   ;
   4937   return 0;
   4938 }
   4939 _ACEOF
   4940 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4941 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4942 do
   4943   CC="$ac_save_CC $ac_arg"
   4944   if ac_fn_c_try_compile "$LINENO"; then :
   4945   ac_cv_prog_cc_c89=$ac_arg
   4946 fi
   4947 rm -f core conftest.err conftest.$ac_objext
   4948   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4949 done
   4950 rm -f conftest.$ac_ext
   4951 CC=$ac_save_CC
   4952 
   4953 fi
   4954 # AC_CACHE_VAL
   4955 case "x$ac_cv_prog_cc_c89" in
   4956   x)
   4957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4958 $as_echo "none needed" >&6; } ;;
   4959   xno)
   4960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4961 $as_echo "unsupported" >&6; } ;;
   4962   *)
   4963     CC="$CC $ac_cv_prog_cc_c89"
   4964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4965 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   4966 esac
   4967 if test "x$ac_cv_prog_cc_c89" != xno; then :
   4968 
   4969 fi
   4970 
   4971 ac_ext=c
   4972 ac_cpp='$CPP $CPPFLAGS'
   4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4976 
   4977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   4978 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   4979 if ${ac_cv_prog_cc_c99+:} false; then :
   4980   $as_echo_n "(cached) " >&6
   4981 else
   4982   ac_cv_prog_cc_c99=no
   4983 ac_save_CC=$CC
   4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4985 /* end confdefs.h.  */
   4986 #include <stdarg.h>
   4987 #include <stdbool.h>
   4988 #include <stdlib.h>
   4989 #include <wchar.h>
   4990 #include <stdio.h>
   4991 
   4992 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   4993 #define debug(...) fprintf (stderr, __VA_ARGS__)
   4994 #define showlist(...) puts (#__VA_ARGS__)
   4995 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   4996 static void
   4997 test_varargs_macros (void)
   4998 {
   4999   int x = 1234;
   5000   int y = 5678;
   5001   debug ("Flag");
   5002   debug ("X = %d\n", x);
   5003   showlist (The first, second, and third items.);
   5004   report (x>y, "x is %d but y is %d", x, y);
   5005 }
   5006 
   5007 // Check long long types.
   5008 #define BIG64 18446744073709551615ull
   5009 #define BIG32 4294967295ul
   5010 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   5011 #if !BIG_OK
   5012   your preprocessor is broken;
   5013 #endif
   5014 #if BIG_OK
   5015 #else
   5016   your preprocessor is broken;
   5017 #endif
   5018 static long long int bignum = -9223372036854775807LL;
   5019 static unsigned long long int ubignum = BIG64;
   5020 
   5021 struct incomplete_array
   5022 {
   5023   int datasize;
   5024   double data[];
   5025 };
   5026 
   5027 struct named_init {
   5028   int number;
   5029   const wchar_t *name;
   5030   double average;
   5031 };
   5032 
   5033 typedef const char *ccp;
   5034 
   5035 static inline int
   5036 test_restrict (ccp restrict text)
   5037 {
   5038   // See if C++-style comments work.
   5039   // Iterate through items via the restricted pointer.
   5040   // Also check for declarations in for loops.
   5041   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   5042     continue;
   5043   return 0;
   5044 }
   5045 
   5046 // Check varargs and va_copy.
   5047 static void
   5048 test_varargs (const char *format, ...)
   5049 {
   5050   va_list args;
   5051   va_start (args, format);
   5052   va_list args_copy;
   5053   va_copy (args_copy, args);
   5054 
   5055   const char *str;
   5056   int number;
   5057   float fnumber;
   5058 
   5059   while (*format)
   5060     {
   5061       switch (*format++)
   5062 	{
   5063 	case 's': // string
   5064 	  str = va_arg (args_copy, const char *);
   5065 	  break;
   5066 	case 'd': // int
   5067 	  number = va_arg (args_copy, int);
   5068 	  break;
   5069 	case 'f': // float
   5070 	  fnumber = va_arg (args_copy, double);
   5071 	  break;
   5072 	default:
   5073 	  break;
   5074 	}
   5075     }
   5076   va_end (args_copy);
   5077   va_end (args);
   5078 }
   5079 
   5080 int
   5081 main ()
   5082 {
   5083 
   5084   // Check bool.
   5085   _Bool success = false;
   5086 
   5087   // Check restrict.
   5088   if (test_restrict ("String literal") == 0)
   5089     success = true;
   5090   char *restrict newvar = "Another string";
   5091 
   5092   // Check varargs.
   5093   test_varargs ("s, d' f .", "string", 65, 34.234);
   5094   test_varargs_macros ();
   5095 
   5096   // Check flexible array members.
   5097   struct incomplete_array *ia =
   5098     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   5099   ia->datasize = 10;
   5100   for (int i = 0; i < ia->datasize; ++i)
   5101     ia->data[i] = i * 1.234;
   5102 
   5103   // Check named initializers.
   5104   struct named_init ni = {
   5105     .number = 34,
   5106     .name = L"Test wide string",
   5107     .average = 543.34343,
   5108   };
   5109 
   5110   ni.number = 58;
   5111 
   5112   int dynamic_array[ni.number];
   5113   dynamic_array[ni.number - 1] = 543;
   5114 
   5115   // work around unused variable warnings
   5116   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   5117 	  || dynamic_array[ni.number - 1] != 543);
   5118 
   5119   ;
   5120   return 0;
   5121 }
   5122 _ACEOF
   5123 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   5124 do
   5125   CC="$ac_save_CC $ac_arg"
   5126   if ac_fn_c_try_compile "$LINENO"; then :
   5127   ac_cv_prog_cc_c99=$ac_arg
   5128 fi
   5129 rm -f core conftest.err conftest.$ac_objext
   5130   test "x$ac_cv_prog_cc_c99" != "xno" && break
   5131 done
   5132 rm -f conftest.$ac_ext
   5133 CC=$ac_save_CC
   5134 
   5135 fi
   5136 # AC_CACHE_VAL
   5137 case "x$ac_cv_prog_cc_c99" in
   5138   x)
   5139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5140 $as_echo "none needed" >&6; } ;;
   5141   xno)
   5142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   5143 $as_echo "unsupported" >&6; } ;;
   5144   *)
   5145     CC="$CC $ac_cv_prog_cc_c99"
   5146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   5147 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   5148 esac
   5149 if test "x$ac_cv_prog_cc_c99" != xno; then :
   5150 
   5151 fi
   5152 
   5153 
   5154 ac_ext=cpp
   5155 ac_cpp='$CXXCPP $CPPFLAGS'
   5156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5159 if test -z "$CXX"; then
   5160   if test -n "$CCC"; then
   5161     CXX=$CCC
   5162   else
   5163     if test -n "$ac_tool_prefix"; then
   5164   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   5165   do
   5166     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5169 $as_echo_n "checking for $ac_word... " >&6; }
   5170 if ${ac_cv_prog_CXX+:} false; then :
   5171   $as_echo_n "(cached) " >&6
   5172 else
   5173   if test -n "$CXX"; then
   5174   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   5175 else
   5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5177 for as_dir in $PATH
   5178 do
   5179   IFS=$as_save_IFS
   5180   test -z "$as_dir" && as_dir=.
   5181     for ac_exec_ext in '' $ac_executable_extensions; do
   5182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5183     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   5184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5185     break 2
   5186   fi
   5187 done
   5188   done
   5189 IFS=$as_save_IFS
   5190 
   5191 fi
   5192 fi
   5193 CXX=$ac_cv_prog_CXX
   5194 if test -n "$CXX"; then
   5195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   5196 $as_echo "$CXX" >&6; }
   5197 else
   5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5199 $as_echo "no" >&6; }
   5200 fi
   5201 
   5202 
   5203     test -n "$CXX" && break
   5204   done
   5205 fi
   5206 if test -z "$CXX"; then
   5207   ac_ct_CXX=$CXX
   5208   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   5209 do
   5210   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5211 set dummy $ac_prog; ac_word=$2
   5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5213 $as_echo_n "checking for $ac_word... " >&6; }
   5214 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   5215   $as_echo_n "(cached) " >&6
   5216 else
   5217   if test -n "$ac_ct_CXX"; then
   5218   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   5219 else
   5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5221 for as_dir in $PATH
   5222 do
   5223   IFS=$as_save_IFS
   5224   test -z "$as_dir" && as_dir=.
   5225     for ac_exec_ext in '' $ac_executable_extensions; do
   5226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5227     ac_cv_prog_ac_ct_CXX="$ac_prog"
   5228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5229     break 2
   5230   fi
   5231 done
   5232   done
   5233 IFS=$as_save_IFS
   5234 
   5235 fi
   5236 fi
   5237 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   5238 if test -n "$ac_ct_CXX"; then
   5239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   5240 $as_echo "$ac_ct_CXX" >&6; }
   5241 else
   5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5243 $as_echo "no" >&6; }
   5244 fi
   5245 
   5246 
   5247   test -n "$ac_ct_CXX" && break
   5248 done
   5249 
   5250   if test "x$ac_ct_CXX" = x; then
   5251     CXX="g++"
   5252   else
   5253     case $cross_compiling:$ac_tool_warned in
   5254 yes:)
   5255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5257 ac_tool_warned=yes ;;
   5258 esac
   5259     CXX=$ac_ct_CXX
   5260   fi
   5261 fi
   5262 
   5263   fi
   5264 fi
   5265 # Provide some information about the compiler.
   5266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   5267 set X $ac_compile
   5268 ac_compiler=$2
   5269 for ac_option in --version -v -V -qversion; do
   5270   { { ac_try="$ac_compiler $ac_option >&5"
   5271 case "(($ac_try" in
   5272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5273   *) ac_try_echo=$ac_try;;
   5274 esac
   5275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5276 $as_echo "$ac_try_echo"; } >&5
   5277   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   5278   ac_status=$?
   5279   if test -s conftest.err; then
   5280     sed '10a\
   5281 ... rest of stderr output deleted ...
   5282          10q' conftest.err >conftest.er1
   5283     cat conftest.er1 >&5
   5284   fi
   5285   rm -f conftest.er1 conftest.err
   5286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5287   test $ac_status = 0; }
   5288 done
   5289 
   5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   5291 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   5292 if ${ac_cv_cxx_compiler_gnu+:} false; then :
   5293   $as_echo_n "(cached) " >&6
   5294 else
   5295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5296 /* end confdefs.h.  */
   5297 
   5298 int
   5299 main ()
   5300 {
   5301 #ifndef __GNUC__
   5302        choke me
   5303 #endif
   5304 
   5305   ;
   5306   return 0;
   5307 }
   5308 _ACEOF
   5309 if ac_fn_cxx_try_compile "$LINENO"; then :
   5310   ac_compiler_gnu=yes
   5311 else
   5312   ac_compiler_gnu=no
   5313 fi
   5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5315 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   5316 
   5317 fi
   5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   5319 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   5320 if test $ac_compiler_gnu = yes; then
   5321   GXX=yes
   5322 else
   5323   GXX=
   5324 fi
   5325 ac_test_CXXFLAGS=${CXXFLAGS+set}
   5326 ac_save_CXXFLAGS=$CXXFLAGS
   5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   5328 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   5329 if ${ac_cv_prog_cxx_g+:} false; then :
   5330   $as_echo_n "(cached) " >&6
   5331 else
   5332   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   5333    ac_cxx_werror_flag=yes
   5334    ac_cv_prog_cxx_g=no
   5335    CXXFLAGS="-g"
   5336    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5337 /* end confdefs.h.  */
   5338 
   5339 int
   5340 main ()
   5341 {
   5342 
   5343   ;
   5344   return 0;
   5345 }
   5346 _ACEOF
   5347 if ac_fn_cxx_try_compile "$LINENO"; then :
   5348   ac_cv_prog_cxx_g=yes
   5349 else
   5350   CXXFLAGS=""
   5351       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5352 /* end confdefs.h.  */
   5353 
   5354 int
   5355 main ()
   5356 {
   5357 
   5358   ;
   5359   return 0;
   5360 }
   5361 _ACEOF
   5362 if ac_fn_cxx_try_compile "$LINENO"; then :
   5363 
   5364 else
   5365   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   5366 	 CXXFLAGS="-g"
   5367 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5368 /* end confdefs.h.  */
   5369 
   5370 int
   5371 main ()
   5372 {
   5373 
   5374   ;
   5375   return 0;
   5376 }
   5377 _ACEOF
   5378 if ac_fn_cxx_try_compile "$LINENO"; then :
   5379   ac_cv_prog_cxx_g=yes
   5380 fi
   5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5382 fi
   5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5384 fi
   5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5386    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   5387 fi
   5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   5389 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   5390 if test "$ac_test_CXXFLAGS" = set; then
   5391   CXXFLAGS=$ac_save_CXXFLAGS
   5392 elif test $ac_cv_prog_cxx_g = yes; then
   5393   if test "$GXX" = yes; then
   5394     CXXFLAGS="-g -O2"
   5395   else
   5396     CXXFLAGS="-g"
   5397   fi
   5398 else
   5399   if test "$GXX" = yes; then
   5400     CXXFLAGS="-O2"
   5401   else
   5402     CXXFLAGS=
   5403   fi
   5404 fi
   5405 ac_ext=c
   5406 ac_cpp='$CPP $CPPFLAGS'
   5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5410 
   5411 
   5412 # We must set the default linker to the linker used by gcc for the correct
   5413 # operation of libtool.  If LD is not defined and we are using gcc, try to
   5414 # set the LD default to the ld used by gcc.
   5415 if test -z "$LD"; then
   5416   if test "$GCC" = yes; then
   5417     case $build in
   5418     *-*-mingw*)
   5419       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
   5420     *)
   5421       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
   5422     esac
   5423     case $gcc_prog_ld in
   5424     # Accept absolute paths.
   5425     [\\/]* | [A-Za-z]:[\\/]*)
   5426       LD="$gcc_prog_ld" ;;
   5427     esac
   5428   fi
   5429 fi
   5430 
   5431 # Check whether -static-libstdc++ -static-libgcc is supported.
   5432 have_static_libs=no
   5433 if test "$GCC" = yes; then
   5434   saved_LDFLAGS="$LDFLAGS"
   5435 
   5436   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
   5437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
   5438 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
   5439   ac_ext=cpp
   5440 ac_cpp='$CXXCPP $CPPFLAGS'
   5441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5444 
   5445 
   5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5447 /* end confdefs.h.  */
   5448 
   5449 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
   5450 #error -static-libstdc++ not implemented
   5451 #endif
   5452 int main() {}
   5453 _ACEOF
   5454 if ac_fn_cxx_try_link "$LINENO"; then :
   5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5456 $as_echo "yes" >&6; }; have_static_libs=yes
   5457 else
   5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5459 $as_echo "no" >&6; }
   5460 fi
   5461 rm -f core conftest.err conftest.$ac_objext \
   5462     conftest$ac_exeext conftest.$ac_ext
   5463   ac_ext=c
   5464 ac_cpp='$CPP $CPPFLAGS'
   5465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5468 
   5469 
   5470   LDFLAGS="$saved_LDFLAGS"
   5471 fi
   5472 
   5473 
   5474 
   5475 
   5476 if test -n "$ac_tool_prefix"; then
   5477   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
   5478 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
   5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5480 $as_echo_n "checking for $ac_word... " >&6; }
   5481 if ${ac_cv_prog_GNATBIND+:} false; then :
   5482   $as_echo_n "(cached) " >&6
   5483 else
   5484   if test -n "$GNATBIND"; then
   5485   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
   5486 else
   5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5488 for as_dir in $PATH
   5489 do
   5490   IFS=$as_save_IFS
   5491   test -z "$as_dir" && as_dir=.
   5492     for ac_exec_ext in '' $ac_executable_extensions; do
   5493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5494     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
   5495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5496     break 2
   5497   fi
   5498 done
   5499   done
   5500 IFS=$as_save_IFS
   5501 
   5502 fi
   5503 fi
   5504 GNATBIND=$ac_cv_prog_GNATBIND
   5505 if test -n "$GNATBIND"; then
   5506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
   5507 $as_echo "$GNATBIND" >&6; }
   5508 else
   5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5510 $as_echo "no" >&6; }
   5511 fi
   5512 
   5513 
   5514 fi
   5515 if test -z "$ac_cv_prog_GNATBIND"; then
   5516   ac_ct_GNATBIND=$GNATBIND
   5517   # Extract the first word of "gnatbind", so it can be a program name with args.
   5518 set dummy gnatbind; ac_word=$2
   5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5520 $as_echo_n "checking for $ac_word... " >&6; }
   5521 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
   5522   $as_echo_n "(cached) " >&6
   5523 else
   5524   if test -n "$ac_ct_GNATBIND"; then
   5525   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
   5526 else
   5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5528 for as_dir in $PATH
   5529 do
   5530   IFS=$as_save_IFS
   5531   test -z "$as_dir" && as_dir=.
   5532     for ac_exec_ext in '' $ac_executable_extensions; do
   5533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5534     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
   5535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5536     break 2
   5537   fi
   5538 done
   5539   done
   5540 IFS=$as_save_IFS
   5541 
   5542 fi
   5543 fi
   5544 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
   5545 if test -n "$ac_ct_GNATBIND"; then
   5546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
   5547 $as_echo "$ac_ct_GNATBIND" >&6; }
   5548 else
   5549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5550 $as_echo "no" >&6; }
   5551 fi
   5552 
   5553   if test "x$ac_ct_GNATBIND" = x; then
   5554     GNATBIND="no"
   5555   else
   5556     case $cross_compiling:$ac_tool_warned in
   5557 yes:)
   5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5560 ac_tool_warned=yes ;;
   5561 esac
   5562     GNATBIND=$ac_ct_GNATBIND
   5563   fi
   5564 else
   5565   GNATBIND="$ac_cv_prog_GNATBIND"
   5566 fi
   5567 
   5568 if test -n "$ac_tool_prefix"; then
   5569   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
   5570 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
   5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5572 $as_echo_n "checking for $ac_word... " >&6; }
   5573 if ${ac_cv_prog_GNATMAKE+:} false; then :
   5574   $as_echo_n "(cached) " >&6
   5575 else
   5576   if test -n "$GNATMAKE"; then
   5577   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
   5578 else
   5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5580 for as_dir in $PATH
   5581 do
   5582   IFS=$as_save_IFS
   5583   test -z "$as_dir" && as_dir=.
   5584     for ac_exec_ext in '' $ac_executable_extensions; do
   5585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5586     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
   5587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5588     break 2
   5589   fi
   5590 done
   5591   done
   5592 IFS=$as_save_IFS
   5593 
   5594 fi
   5595 fi
   5596 GNATMAKE=$ac_cv_prog_GNATMAKE
   5597 if test -n "$GNATMAKE"; then
   5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
   5599 $as_echo "$GNATMAKE" >&6; }
   5600 else
   5601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5602 $as_echo "no" >&6; }
   5603 fi
   5604 
   5605 
   5606 fi
   5607 if test -z "$ac_cv_prog_GNATMAKE"; then
   5608   ac_ct_GNATMAKE=$GNATMAKE
   5609   # Extract the first word of "gnatmake", so it can be a program name with args.
   5610 set dummy gnatmake; ac_word=$2
   5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5612 $as_echo_n "checking for $ac_word... " >&6; }
   5613 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
   5614   $as_echo_n "(cached) " >&6
   5615 else
   5616   if test -n "$ac_ct_GNATMAKE"; then
   5617   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
   5618 else
   5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5620 for as_dir in $PATH
   5621 do
   5622   IFS=$as_save_IFS
   5623   test -z "$as_dir" && as_dir=.
   5624     for ac_exec_ext in '' $ac_executable_extensions; do
   5625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5626     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
   5627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5628     break 2
   5629   fi
   5630 done
   5631   done
   5632 IFS=$as_save_IFS
   5633 
   5634 fi
   5635 fi
   5636 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
   5637 if test -n "$ac_ct_GNATMAKE"; then
   5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
   5639 $as_echo "$ac_ct_GNATMAKE" >&6; }
   5640 else
   5641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5642 $as_echo "no" >&6; }
   5643 fi
   5644 
   5645   if test "x$ac_ct_GNATMAKE" = x; then
   5646     GNATMAKE="no"
   5647   else
   5648     case $cross_compiling:$ac_tool_warned in
   5649 yes:)
   5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5652 ac_tool_warned=yes ;;
   5653 esac
   5654     GNATMAKE=$ac_ct_GNATMAKE
   5655   fi
   5656 else
   5657   GNATMAKE="$ac_cv_prog_GNATMAKE"
   5658 fi
   5659 
   5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
   5661 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
   5662 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
   5663   $as_echo_n "(cached) " >&6
   5664 else
   5665   cat >conftest.adb <<EOF
   5666 pragma Warnings (Off);
   5667 with System.CRTL;
   5668 pragma Warnings (On);
   5669 use type System.CRTL.int64;
   5670 procedure conftest is begin null; end conftest;
   5671 EOF
   5672 acx_cv_cc_gcc_supports_ada=no
   5673 # There is a bug in old released versions of GCC which causes the
   5674 # driver to exit successfully when the appropriate language module
   5675 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
   5676 # Therefore we must check for the error message as well as an
   5677 # unsuccessful exit.
   5678 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
   5679 # given a .adb file, but produce no object file.  So we must check
   5680 # if an object file was really produced to guard against this.
   5681 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
   5682 if test x"$errors" = x && test -f conftest.$ac_objext; then
   5683   acx_cv_cc_gcc_supports_ada=yes
   5684 fi
   5685 rm -f conftest.*
   5686 fi
   5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
   5688 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
   5689 
   5690 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
   5691   have_gnat=yes
   5692 else
   5693   have_gnat=no
   5694 fi
   5695 
   5696 
   5697 
   5698 if test -n "$ac_tool_prefix"; then
   5699   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
   5700 set dummy ${ac_tool_prefix}gdc; ac_word=$2
   5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5702 $as_echo_n "checking for $ac_word... " >&6; }
   5703 if ${ac_cv_prog_GDC+:} false; then :
   5704   $as_echo_n "(cached) " >&6
   5705 else
   5706   if test -n "$GDC"; then
   5707   ac_cv_prog_GDC="$GDC" # Let the user override the test.
   5708 else
   5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5710 for as_dir in $PATH
   5711 do
   5712   IFS=$as_save_IFS
   5713   test -z "$as_dir" && as_dir=.
   5714     for ac_exec_ext in '' $ac_executable_extensions; do
   5715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5716     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
   5717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5718     break 2
   5719   fi
   5720 done
   5721   done
   5722 IFS=$as_save_IFS
   5723 
   5724 fi
   5725 fi
   5726 GDC=$ac_cv_prog_GDC
   5727 if test -n "$GDC"; then
   5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
   5729 $as_echo "$GDC" >&6; }
   5730 else
   5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5732 $as_echo "no" >&6; }
   5733 fi
   5734 
   5735 
   5736 fi
   5737 if test -z "$ac_cv_prog_GDC"; then
   5738   ac_ct_GDC=$GDC
   5739   # Extract the first word of "gdc", so it can be a program name with args.
   5740 set dummy gdc; ac_word=$2
   5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5742 $as_echo_n "checking for $ac_word... " >&6; }
   5743 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
   5744   $as_echo_n "(cached) " >&6
   5745 else
   5746   if test -n "$ac_ct_GDC"; then
   5747   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
   5748 else
   5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5750 for as_dir in $PATH
   5751 do
   5752   IFS=$as_save_IFS
   5753   test -z "$as_dir" && as_dir=.
   5754     for ac_exec_ext in '' $ac_executable_extensions; do
   5755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5756     ac_cv_prog_ac_ct_GDC="gdc"
   5757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5758     break 2
   5759   fi
   5760 done
   5761   done
   5762 IFS=$as_save_IFS
   5763 
   5764 fi
   5765 fi
   5766 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
   5767 if test -n "$ac_ct_GDC"; then
   5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
   5769 $as_echo "$ac_ct_GDC" >&6; }
   5770 else
   5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5772 $as_echo "no" >&6; }
   5773 fi
   5774 
   5775   if test "x$ac_ct_GDC" = x; then
   5776     GDC="no"
   5777   else
   5778     case $cross_compiling:$ac_tool_warned in
   5779 yes:)
   5780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5782 ac_tool_warned=yes ;;
   5783 esac
   5784     GDC=$ac_ct_GDC
   5785   fi
   5786 else
   5787   GDC="$ac_cv_prog_GDC"
   5788 fi
   5789 
   5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
   5791 $as_echo_n "checking whether the D compiler works... " >&6; }
   5792 if ${acx_cv_d_compiler_works+:} false; then :
   5793   $as_echo_n "(cached) " >&6
   5794 else
   5795   cat >conftest.d <<EOF
   5796 module conftest; int main() { return 0; }
   5797 EOF
   5798 acx_cv_d_compiler_works=no
   5799 if test "x$GDC" != xno; then
   5800   errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
   5801   if test x"$errors" = x && test -f conftest.$ac_objext; then
   5802     acx_cv_d_compiler_works=yes
   5803   fi
   5804   rm -f conftest.*
   5805 fi
   5806 fi
   5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
   5808 $as_echo "$acx_cv_d_compiler_works" >&6; }
   5809 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
   5810   have_gdc=yes
   5811 else
   5812   have_gdc=no
   5813 fi
   5814 
   5815 for ac_prog in cargo
   5816 do
   5817   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5818 set dummy $ac_prog; ac_word=$2
   5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5820 $as_echo_n "checking for $ac_word... " >&6; }
   5821 if ${ac_cv_prog_CARGO+:} false; then :
   5822   $as_echo_n "(cached) " >&6
   5823 else
   5824   if test -n "$CARGO"; then
   5825   ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
   5826 else
   5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5828 for as_dir in $PATH
   5829 do
   5830   IFS=$as_save_IFS
   5831   test -z "$as_dir" && as_dir=.
   5832     for ac_exec_ext in '' $ac_executable_extensions; do
   5833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5834     ac_cv_prog_CARGO="$ac_prog"
   5835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5836     break 2
   5837   fi
   5838 done
   5839   done
   5840 IFS=$as_save_IFS
   5841 
   5842 fi
   5843 fi
   5844 CARGO=$ac_cv_prog_CARGO
   5845 if test -n "$CARGO"; then
   5846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
   5847 $as_echo "$CARGO" >&6; }
   5848 else
   5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5850 $as_echo "no" >&6; }
   5851 fi
   5852 
   5853 
   5854   test -n "$CARGO" && break
   5855 done
   5856 test -n "$CARGO" || CARGO="no"
   5857 
   5858 if test "x$CARGO" != xno; then
   5859   have_cargo=yes
   5860 else
   5861   have_cargo=no
   5862 fi
   5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
   5864 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
   5865 if ${gcc_cv_prog_cmp_skip+:} false; then :
   5866   $as_echo_n "(cached) " >&6
   5867 else
   5868    echo abfoo >t1
   5869   echo cdfoo >t2
   5870   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
   5871   if cmp t1 t2 2 2 > /dev/null 2>&1; then
   5872     if cmp t1 t2 1 1 > /dev/null 2>&1; then
   5873       :
   5874     else
   5875       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
   5876     fi
   5877   fi
   5878   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
   5879     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
   5880       :
   5881     else
   5882       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
   5883     fi
   5884   fi
   5885   rm t1 t2
   5886 
   5887 fi
   5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
   5889 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
   5890 do_compare="$gcc_cv_prog_cmp_skip"
   5891 
   5892 
   5893 
   5894 # Check whether --enable-bootstrap was given.
   5895 if test "${enable_bootstrap+set}" = set; then :
   5896   enableval=$enable_bootstrap;
   5897 else
   5898   enable_bootstrap=default
   5899 fi
   5900 
   5901 
   5902 # Issue errors and warnings for invalid/strange bootstrap combinations.
   5903 if test -r $srcdir/gcc/configure; then
   5904   have_compiler=yes
   5905 else
   5906   have_compiler=no
   5907 fi
   5908 
   5909 case "$have_compiler:$host:$target:$enable_bootstrap" in
   5910   *:*:*:no) ;;
   5911 
   5912   # Default behavior.  Enable bootstrap if we have a compiler
   5913   # and we are in a native configuration.
   5914   yes:$build:$build:default)
   5915     enable_bootstrap=yes ;;
   5916 
   5917   *:*:*:default)
   5918     enable_bootstrap=no ;;
   5919 
   5920   # We have a compiler and we are in a native configuration, bootstrap is ok
   5921   yes:$build:$build:yes)
   5922     ;;
   5923 
   5924   # Other configurations, but we have a compiler.  Assume the user knows
   5925   # what he's doing.
   5926   yes:*:*:yes)
   5927     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
   5928 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
   5929     ;;
   5930 
   5931   # No compiler: if they passed --enable-bootstrap explicitly, fail
   5932   no:*:*:yes)
   5933     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
   5934 
   5935   # Fail if wrong command line
   5936   *)
   5937     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
   5938     ;;
   5939 esac
   5940 
   5941 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
   5942 # C++14 compiler can still start the bootstrap.  Otherwise, if building GCC,
   5943 # require C++14 (or higher).
   5944 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
   5945   CXX="$CXX -std=c++14"
   5946 elif test "$have_compiler" = yes; then
   5947     ax_cxx_compile_alternatives="14 1y"    ax_cxx_compile_cxx14_required=true
   5948   ac_ext=cpp
   5949 ac_cpp='$CXXCPP $CPPFLAGS'
   5950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5953   ac_success=no
   5954 
   5955       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
   5956 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
   5957 if ${ax_cv_cxx_compile_cxx14+:} false; then :
   5958   $as_echo_n "(cached) " >&6
   5959 else
   5960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5961 /* end confdefs.h.  */
   5962 
   5963 
   5964 // If the compiler admits that it is not ready for C++11, why torture it?
   5965 // Hopefully, this will speed up the test.
   5966 
   5967 #ifndef __cplusplus
   5968 
   5969 #error "This is not a C++ compiler"
   5970 
   5971 #elif __cplusplus < 201103L
   5972 
   5973 #error "This is not a C++11 compiler"
   5974 
   5975 #else
   5976 
   5977 namespace cxx11
   5978 {
   5979 
   5980   namespace test_static_assert
   5981   {
   5982 
   5983     template <typename T>
   5984     struct check
   5985     {
   5986       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   5987     };
   5988 
   5989   }
   5990 
   5991   namespace test_final_override
   5992   {
   5993 
   5994     struct Base
   5995     {
   5996       virtual ~Base() {}
   5997       virtual void f() {}
   5998     };
   5999 
   6000     struct Derived : public Base
   6001     {
   6002       virtual ~Derived() override {}
   6003       virtual void f() override {}
   6004     };
   6005 
   6006   }
   6007 
   6008   namespace test_double_right_angle_brackets
   6009   {
   6010 
   6011     template < typename T >
   6012     struct check {};
   6013 
   6014     typedef check<void> single_type;
   6015     typedef check<check<void>> double_type;
   6016     typedef check<check<check<void>>> triple_type;
   6017     typedef check<check<check<check<void>>>> quadruple_type;
   6018 
   6019   }
   6020 
   6021   namespace test_decltype
   6022   {
   6023 
   6024     int
   6025     f()
   6026     {
   6027       int a = 1;
   6028       decltype(a) b = 2;
   6029       return a + b;
   6030     }
   6031 
   6032   }
   6033 
   6034   namespace test_type_deduction
   6035   {
   6036 
   6037     template < typename T1, typename T2 >
   6038     struct is_same
   6039     {
   6040       static const bool value = false;
   6041     };
   6042 
   6043     template < typename T >
   6044     struct is_same<T, T>
   6045     {
   6046       static const bool value = true;
   6047     };
   6048 
   6049     template < typename T1, typename T2 >
   6050     auto
   6051     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   6052     {
   6053       return a1 + a2;
   6054     }
   6055 
   6056     int
   6057     test(const int c, volatile int v)
   6058     {
   6059       static_assert(is_same<int, decltype(0)>::value == true, "");
   6060       static_assert(is_same<int, decltype(c)>::value == false, "");
   6061       static_assert(is_same<int, decltype(v)>::value == false, "");
   6062       auto ac = c;
   6063       auto av = v;
   6064       auto sumi = ac + av + 'x';
   6065       auto sumf = ac + av + 1.0;
   6066       static_assert(is_same<int, decltype(ac)>::value == true, "");
   6067       static_assert(is_same<int, decltype(av)>::value == true, "");
   6068       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   6069       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   6070       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   6071       return (sumf > 0.0) ? sumi : add(c, v);
   6072     }
   6073 
   6074   }
   6075 
   6076   namespace test_noexcept
   6077   {
   6078 
   6079     int f() { return 0; }
   6080     int g() noexcept { return 0; }
   6081 
   6082     static_assert(noexcept(f()) == false, "");
   6083     static_assert(noexcept(g()) == true, "");
   6084 
   6085   }
   6086 
   6087   namespace test_constexpr
   6088   {
   6089 
   6090     template < typename CharT >
   6091     unsigned long constexpr
   6092     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   6093     {
   6094       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   6095     }
   6096 
   6097     template < typename CharT >
   6098     unsigned long constexpr
   6099     strlen_c(const CharT *const s) noexcept
   6100     {
   6101       return strlen_c_r(s, 0UL);
   6102     }
   6103 
   6104     static_assert(strlen_c("") == 0UL, "");
   6105     static_assert(strlen_c("1") == 1UL, "");
   6106     static_assert(strlen_c("example") == 7UL, "");
   6107     static_assert(strlen_c("another\0example") == 7UL, "");
   6108 
   6109   }
   6110 
   6111   namespace test_rvalue_references
   6112   {
   6113 
   6114     template < int N >
   6115     struct answer
   6116     {
   6117       static constexpr int value = N;
   6118     };
   6119 
   6120     answer<1> f(int&)       { return answer<1>(); }
   6121     answer<2> f(const int&) { return answer<2>(); }
   6122     answer<3> f(int&&)      { return answer<3>(); }
   6123 
   6124     void
   6125     test()
   6126     {
   6127       int i = 0;
   6128       const int c = 0;
   6129       static_assert(decltype(f(i))::value == 1, "");
   6130       static_assert(decltype(f(c))::value == 2, "");
   6131       static_assert(decltype(f(0))::value == 3, "");
   6132     }
   6133 
   6134   }
   6135 
   6136   namespace test_uniform_initialization
   6137   {
   6138 
   6139     struct test
   6140     {
   6141       static const int zero {};
   6142       static const int one {1};
   6143     };
   6144 
   6145     static_assert(test::zero == 0, "");
   6146     static_assert(test::one == 1, "");
   6147 
   6148   }
   6149 
   6150   namespace test_lambdas
   6151   {
   6152 
   6153     void
   6154     test1()
   6155     {
   6156       auto lambda1 = [](){};
   6157       auto lambda2 = lambda1;
   6158       lambda1();
   6159       lambda2();
   6160     }
   6161 
   6162     int
   6163     test2()
   6164     {
   6165       auto a = [](int i, int j){ return i + j; }(1, 2);
   6166       auto b = []() -> int { return '0'; }();
   6167       auto c = [=](){ return a + b; }();
   6168       auto d = [&](){ return c; }();
   6169       auto e = [a, &b](int x) mutable {
   6170         const auto identity = [](int y){ return y; };
   6171         for (auto i = 0; i < a; ++i)
   6172           a += b--;
   6173         return x + identity(a + b);
   6174       }(0);
   6175       return a + b + c + d + e;
   6176     }
   6177 
   6178     int
   6179     test3()
   6180     {
   6181       const auto nullary = [](){ return 0; };
   6182       const auto unary = [](int x){ return x; };
   6183       using nullary_t = decltype(nullary);
   6184       using unary_t = decltype(unary);
   6185       const auto higher1st = [](nullary_t f){ return f(); };
   6186       const auto higher2nd = [unary](nullary_t f1){
   6187         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   6188       };
   6189       return higher1st(nullary) + higher2nd(nullary)(unary);
   6190     }
   6191 
   6192   }
   6193 
   6194   namespace test_variadic_templates
   6195   {
   6196 
   6197     template <int...>
   6198     struct sum;
   6199 
   6200     template <int N0, int... N1toN>
   6201     struct sum<N0, N1toN...>
   6202     {
   6203       static constexpr auto value = N0 + sum<N1toN...>::value;
   6204     };
   6205 
   6206     template <>
   6207     struct sum<>
   6208     {
   6209       static constexpr auto value = 0;
   6210     };
   6211 
   6212     static_assert(sum<>::value == 0, "");
   6213     static_assert(sum<1>::value == 1, "");
   6214     static_assert(sum<23>::value == 23, "");
   6215     static_assert(sum<1, 2>::value == 3, "");
   6216     static_assert(sum<5, 5, 11>::value == 21, "");
   6217     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   6218 
   6219   }
   6220 
   6221   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   6222   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   6223   // because of this.
   6224   namespace test_template_alias_sfinae
   6225   {
   6226 
   6227     struct foo {};
   6228 
   6229     template<typename T>
   6230     using member = typename T::member_type;
   6231 
   6232     template<typename T>
   6233     void func(...) {}
   6234 
   6235     template<typename T>
   6236     void func(member<T>*) {}
   6237 
   6238     void test();
   6239 
   6240     void test() { func<foo>(0); }
   6241 
   6242   }
   6243 
   6244 }  // namespace cxx11
   6245 
   6246 #endif  // __cplusplus >= 201103L
   6247 
   6248 
   6249 
   6250 
   6251 // If the compiler admits that it is not ready for C++14, why torture it?
   6252 // Hopefully, this will speed up the test.
   6253 
   6254 #ifndef __cplusplus
   6255 
   6256 #error "This is not a C++ compiler"
   6257 
   6258 #elif __cplusplus < 201402L
   6259 
   6260 #error "This is not a C++14 compiler"
   6261 
   6262 #else
   6263 
   6264 namespace cxx14
   6265 {
   6266 
   6267   namespace test_polymorphic_lambdas
   6268   {
   6269 
   6270     int
   6271     test()
   6272     {
   6273       const auto lambda = [](auto&&... args){
   6274         const auto istiny = [](auto x){
   6275           return (sizeof(x) == 1UL) ? 1 : 0;
   6276         };
   6277         const int aretiny[] = { istiny(args)... };
   6278         return aretiny[0];
   6279       };
   6280       return lambda(1, 1L, 1.0f, '1');
   6281     }
   6282 
   6283   }
   6284 
   6285   namespace test_binary_literals
   6286   {
   6287 
   6288     constexpr auto ivii = 0b0000000000101010;
   6289     static_assert(ivii == 42, "wrong value");
   6290 
   6291   }
   6292 
   6293   namespace test_generalized_constexpr
   6294   {
   6295 
   6296     template < typename CharT >
   6297     constexpr unsigned long
   6298     strlen_c(const CharT *const s) noexcept
   6299     {
   6300       auto length = 0UL;
   6301       for (auto p = s; *p; ++p)
   6302         ++length;
   6303       return length;
   6304     }
   6305 
   6306     static_assert(strlen_c("") == 0UL, "");
   6307     static_assert(strlen_c("x") == 1UL, "");
   6308     static_assert(strlen_c("test") == 4UL, "");
   6309     static_assert(strlen_c("another\0test") == 7UL, "");
   6310 
   6311   }
   6312 
   6313   namespace test_lambda_init_capture
   6314   {
   6315 
   6316     int
   6317     test()
   6318     {
   6319       auto x = 0;
   6320       const auto lambda1 = [a = x](int b){ return a + b; };
   6321       const auto lambda2 = [a = lambda1(x)](){ return a; };
   6322       return lambda2();
   6323     }
   6324 
   6325   }
   6326 
   6327   namespace test_digit_separators
   6328   {
   6329 
   6330     constexpr auto ten_million = 100'000'000;
   6331     static_assert(ten_million == 100000000, "");
   6332 
   6333   }
   6334 
   6335   namespace test_return_type_deduction
   6336   {
   6337 
   6338     auto f(int& x) { return x; }
   6339     decltype(auto) g(int& x) { return x; }
   6340 
   6341     template < typename T1, typename T2 >
   6342     struct is_same
   6343     {
   6344       static constexpr auto value = false;
   6345     };
   6346 
   6347     template < typename T >
   6348     struct is_same<T, T>
   6349     {
   6350       static constexpr auto value = true;
   6351     };
   6352 
   6353     int
   6354     test()
   6355     {
   6356       auto x = 0;
   6357       static_assert(is_same<int, decltype(f(x))>::value, "");
   6358       static_assert(is_same<int&, decltype(g(x))>::value, "");
   6359       return x;
   6360     }
   6361 
   6362   }
   6363 
   6364 }  // namespace cxx14
   6365 
   6366 #endif  // __cplusplus >= 201402L
   6367 
   6368 
   6369 
   6370 _ACEOF
   6371 if ac_fn_cxx_try_compile "$LINENO"; then :
   6372   ax_cv_cxx_compile_cxx14=yes
   6373 else
   6374   ax_cv_cxx_compile_cxx14=no
   6375 fi
   6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6377 fi
   6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
   6379 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
   6380     if test x$ax_cv_cxx_compile_cxx14 = xyes; then
   6381       ac_success=yes
   6382     fi
   6383 
   6384     if test x$ac_success = xno; then
   6385     for alternative in ${ax_cxx_compile_alternatives}; do
   6386       switch="-std=gnu++${alternative}"
   6387       cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
   6388       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
   6389 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
   6390 if eval \${$cachevar+:} false; then :
   6391   $as_echo_n "(cached) " >&6
   6392 else
   6393   ac_save_CXX="$CXX"
   6394          CXX="$CXX $switch"
   6395          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6396 /* end confdefs.h.  */
   6397 
   6398 
   6399 // If the compiler admits that it is not ready for C++11, why torture it?
   6400 // Hopefully, this will speed up the test.
   6401 
   6402 #ifndef __cplusplus
   6403 
   6404 #error "This is not a C++ compiler"
   6405 
   6406 #elif __cplusplus < 201103L
   6407 
   6408 #error "This is not a C++11 compiler"
   6409 
   6410 #else
   6411 
   6412 namespace cxx11
   6413 {
   6414 
   6415   namespace test_static_assert
   6416   {
   6417 
   6418     template <typename T>
   6419     struct check
   6420     {
   6421       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   6422     };
   6423 
   6424   }
   6425 
   6426   namespace test_final_override
   6427   {
   6428 
   6429     struct Base
   6430     {
   6431       virtual ~Base() {}
   6432       virtual void f() {}
   6433     };
   6434 
   6435     struct Derived : public Base
   6436     {
   6437       virtual ~Derived() override {}
   6438       virtual void f() override {}
   6439     };
   6440 
   6441   }
   6442 
   6443   namespace test_double_right_angle_brackets
   6444   {
   6445 
   6446     template < typename T >
   6447     struct check {};
   6448 
   6449     typedef check<void> single_type;
   6450     typedef check<check<void>> double_type;
   6451     typedef check<check<check<void>>> triple_type;
   6452     typedef check<check<check<check<void>>>> quadruple_type;
   6453 
   6454   }
   6455 
   6456   namespace test_decltype
   6457   {
   6458 
   6459     int
   6460     f()
   6461     {
   6462       int a = 1;
   6463       decltype(a) b = 2;
   6464       return a + b;
   6465     }
   6466 
   6467   }
   6468 
   6469   namespace test_type_deduction
   6470   {
   6471 
   6472     template < typename T1, typename T2 >
   6473     struct is_same
   6474     {
   6475       static const bool value = false;
   6476     };
   6477 
   6478     template < typename T >
   6479     struct is_same<T, T>
   6480     {
   6481       static const bool value = true;
   6482     };
   6483 
   6484     template < typename T1, typename T2 >
   6485     auto
   6486     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   6487     {
   6488       return a1 + a2;
   6489     }
   6490 
   6491     int
   6492     test(const int c, volatile int v)
   6493     {
   6494       static_assert(is_same<int, decltype(0)>::value == true, "");
   6495       static_assert(is_same<int, decltype(c)>::value == false, "");
   6496       static_assert(is_same<int, decltype(v)>::value == false, "");
   6497       auto ac = c;
   6498       auto av = v;
   6499       auto sumi = ac + av + 'x';
   6500       auto sumf = ac + av + 1.0;
   6501       static_assert(is_same<int, decltype(ac)>::value == true, "");
   6502       static_assert(is_same<int, decltype(av)>::value == true, "");
   6503       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   6504       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   6505       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   6506       return (sumf > 0.0) ? sumi : add(c, v);
   6507     }
   6508 
   6509   }
   6510 
   6511   namespace test_noexcept
   6512   {
   6513 
   6514     int f() { return 0; }
   6515     int g() noexcept { return 0; }
   6516 
   6517     static_assert(noexcept(f()) == false, "");
   6518     static_assert(noexcept(g()) == true, "");
   6519 
   6520   }
   6521 
   6522   namespace test_constexpr
   6523   {
   6524 
   6525     template < typename CharT >
   6526     unsigned long constexpr
   6527     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   6528     {
   6529       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   6530     }
   6531 
   6532     template < typename CharT >
   6533     unsigned long constexpr
   6534     strlen_c(const CharT *const s) noexcept
   6535     {
   6536       return strlen_c_r(s, 0UL);
   6537     }
   6538 
   6539     static_assert(strlen_c("") == 0UL, "");
   6540     static_assert(strlen_c("1") == 1UL, "");
   6541     static_assert(strlen_c("example") == 7UL, "");
   6542     static_assert(strlen_c("another\0example") == 7UL, "");
   6543 
   6544   }
   6545 
   6546   namespace test_rvalue_references
   6547   {
   6548 
   6549     template < int N >
   6550     struct answer
   6551     {
   6552       static constexpr int value = N;
   6553     };
   6554 
   6555     answer<1> f(int&)       { return answer<1>(); }
   6556     answer<2> f(const int&) { return answer<2>(); }
   6557     answer<3> f(int&&)      { return answer<3>(); }
   6558 
   6559     void
   6560     test()
   6561     {
   6562       int i = 0;
   6563       const int c = 0;
   6564       static_assert(decltype(f(i))::value == 1, "");
   6565       static_assert(decltype(f(c))::value == 2, "");
   6566       static_assert(decltype(f(0))::value == 3, "");
   6567     }
   6568 
   6569   }
   6570 
   6571   namespace test_uniform_initialization
   6572   {
   6573 
   6574     struct test
   6575     {
   6576       static const int zero {};
   6577       static const int one {1};
   6578     };
   6579 
   6580     static_assert(test::zero == 0, "");
   6581     static_assert(test::one == 1, "");
   6582 
   6583   }
   6584 
   6585   namespace test_lambdas
   6586   {
   6587 
   6588     void
   6589     test1()
   6590     {
   6591       auto lambda1 = [](){};
   6592       auto lambda2 = lambda1;
   6593       lambda1();
   6594       lambda2();
   6595     }
   6596 
   6597     int
   6598     test2()
   6599     {
   6600       auto a = [](int i, int j){ return i + j; }(1, 2);
   6601       auto b = []() -> int { return '0'; }();
   6602       auto c = [=](){ return a + b; }();
   6603       auto d = [&](){ return c; }();
   6604       auto e = [a, &b](int x) mutable {
   6605         const auto identity = [](int y){ return y; };
   6606         for (auto i = 0; i < a; ++i)
   6607           a += b--;
   6608         return x + identity(a + b);
   6609       }(0);
   6610       return a + b + c + d + e;
   6611     }
   6612 
   6613     int
   6614     test3()
   6615     {
   6616       const auto nullary = [](){ return 0; };
   6617       const auto unary = [](int x){ return x; };
   6618       using nullary_t = decltype(nullary);
   6619       using unary_t = decltype(unary);
   6620       const auto higher1st = [](nullary_t f){ return f(); };
   6621       const auto higher2nd = [unary](nullary_t f1){
   6622         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   6623       };
   6624       return higher1st(nullary) + higher2nd(nullary)(unary);
   6625     }
   6626 
   6627   }
   6628 
   6629   namespace test_variadic_templates
   6630   {
   6631 
   6632     template <int...>
   6633     struct sum;
   6634 
   6635     template <int N0, int... N1toN>
   6636     struct sum<N0, N1toN...>
   6637     {
   6638       static constexpr auto value = N0 + sum<N1toN...>::value;
   6639     };
   6640 
   6641     template <>
   6642     struct sum<>
   6643     {
   6644       static constexpr auto value = 0;
   6645     };
   6646 
   6647     static_assert(sum<>::value == 0, "");
   6648     static_assert(sum<1>::value == 1, "");
   6649     static_assert(sum<23>::value == 23, "");
   6650     static_assert(sum<1, 2>::value == 3, "");
   6651     static_assert(sum<5, 5, 11>::value == 21, "");
   6652     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   6653 
   6654   }
   6655 
   6656   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   6657   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   6658   // because of this.
   6659   namespace test_template_alias_sfinae
   6660   {
   6661 
   6662     struct foo {};
   6663 
   6664     template<typename T>
   6665     using member = typename T::member_type;
   6666 
   6667     template<typename T>
   6668     void func(...) {}
   6669 
   6670     template<typename T>
   6671     void func(member<T>*) {}
   6672 
   6673     void test();
   6674 
   6675     void test() { func<foo>(0); }
   6676 
   6677   }
   6678 
   6679 }  // namespace cxx11
   6680 
   6681 #endif  // __cplusplus >= 201103L
   6682 
   6683 
   6684 
   6685 
   6686 // If the compiler admits that it is not ready for C++14, why torture it?
   6687 // Hopefully, this will speed up the test.
   6688 
   6689 #ifndef __cplusplus
   6690 
   6691 #error "This is not a C++ compiler"
   6692 
   6693 #elif __cplusplus < 201402L
   6694 
   6695 #error "This is not a C++14 compiler"
   6696 
   6697 #else
   6698 
   6699 namespace cxx14
   6700 {
   6701 
   6702   namespace test_polymorphic_lambdas
   6703   {
   6704 
   6705     int
   6706     test()
   6707     {
   6708       const auto lambda = [](auto&&... args){
   6709         const auto istiny = [](auto x){
   6710           return (sizeof(x) == 1UL) ? 1 : 0;
   6711         };
   6712         const int aretiny[] = { istiny(args)... };
   6713         return aretiny[0];
   6714       };
   6715       return lambda(1, 1L, 1.0f, '1');
   6716     }
   6717 
   6718   }
   6719 
   6720   namespace test_binary_literals
   6721   {
   6722 
   6723     constexpr auto ivii = 0b0000000000101010;
   6724     static_assert(ivii == 42, "wrong value");
   6725 
   6726   }
   6727 
   6728   namespace test_generalized_constexpr
   6729   {
   6730 
   6731     template < typename CharT >
   6732     constexpr unsigned long
   6733     strlen_c(const CharT *const s) noexcept
   6734     {
   6735       auto length = 0UL;
   6736       for (auto p = s; *p; ++p)
   6737         ++length;
   6738       return length;
   6739     }
   6740 
   6741     static_assert(strlen_c("") == 0UL, "");
   6742     static_assert(strlen_c("x") == 1UL, "");
   6743     static_assert(strlen_c("test") == 4UL, "");
   6744     static_assert(strlen_c("another\0test") == 7UL, "");
   6745 
   6746   }
   6747 
   6748   namespace test_lambda_init_capture
   6749   {
   6750 
   6751     int
   6752     test()
   6753     {
   6754       auto x = 0;
   6755       const auto lambda1 = [a = x](int b){ return a + b; };
   6756       const auto lambda2 = [a = lambda1(x)](){ return a; };
   6757       return lambda2();
   6758     }
   6759 
   6760   }
   6761 
   6762   namespace test_digit_separators
   6763   {
   6764 
   6765     constexpr auto ten_million = 100'000'000;
   6766     static_assert(ten_million == 100000000, "");
   6767 
   6768   }
   6769 
   6770   namespace test_return_type_deduction
   6771   {
   6772 
   6773     auto f(int& x) { return x; }
   6774     decltype(auto) g(int& x) { return x; }
   6775 
   6776     template < typename T1, typename T2 >
   6777     struct is_same
   6778     {
   6779       static constexpr auto value = false;
   6780     };
   6781 
   6782     template < typename T >
   6783     struct is_same<T, T>
   6784     {
   6785       static constexpr auto value = true;
   6786     };
   6787 
   6788     int
   6789     test()
   6790     {
   6791       auto x = 0;
   6792       static_assert(is_same<int, decltype(f(x))>::value, "");
   6793       static_assert(is_same<int&, decltype(g(x))>::value, "");
   6794       return x;
   6795     }
   6796 
   6797   }
   6798 
   6799 }  // namespace cxx14
   6800 
   6801 #endif  // __cplusplus >= 201402L
   6802 
   6803 
   6804 
   6805 _ACEOF
   6806 if ac_fn_cxx_try_compile "$LINENO"; then :
   6807   eval $cachevar=yes
   6808 else
   6809   eval $cachevar=no
   6810 fi
   6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6812          CXX="$ac_save_CXX"
   6813 fi
   6814 eval ac_res=\$$cachevar
   6815 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6816 $as_echo "$ac_res" >&6; }
   6817       if eval test x\$$cachevar = xyes; then
   6818         CXX="$CXX $switch"
   6819         if test -n "$CXXCPP" ; then
   6820           CXXCPP="$CXXCPP $switch"
   6821         fi
   6822         ac_success=yes
   6823         break
   6824       fi
   6825     done
   6826   fi
   6827 
   6828     if test x$ac_success = xno; then
   6829                 for alternative in ${ax_cxx_compile_alternatives}; do
   6830       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
   6831         cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
   6832         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
   6833 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
   6834 if eval \${$cachevar+:} false; then :
   6835   $as_echo_n "(cached) " >&6
   6836 else
   6837   ac_save_CXX="$CXX"
   6838            CXX="$CXX $switch"
   6839            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6840 /* end confdefs.h.  */
   6841 
   6842 
   6843 // If the compiler admits that it is not ready for C++11, why torture it?
   6844 // Hopefully, this will speed up the test.
   6845 
   6846 #ifndef __cplusplus
   6847 
   6848 #error "This is not a C++ compiler"
   6849 
   6850 #elif __cplusplus < 201103L
   6851 
   6852 #error "This is not a C++11 compiler"
   6853 
   6854 #else
   6855 
   6856 namespace cxx11
   6857 {
   6858 
   6859   namespace test_static_assert
   6860   {
   6861 
   6862     template <typename T>
   6863     struct check
   6864     {
   6865       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   6866     };
   6867 
   6868   }
   6869 
   6870   namespace test_final_override
   6871   {
   6872 
   6873     struct Base
   6874     {
   6875       virtual ~Base() {}
   6876       virtual void f() {}
   6877     };
   6878 
   6879     struct Derived : public Base
   6880     {
   6881       virtual ~Derived() override {}
   6882       virtual void f() override {}
   6883     };
   6884 
   6885   }
   6886 
   6887   namespace test_double_right_angle_brackets
   6888   {
   6889 
   6890     template < typename T >
   6891     struct check {};
   6892 
   6893     typedef check<void> single_type;
   6894     typedef check<check<void>> double_type;
   6895     typedef check<check<check<void>>> triple_type;
   6896     typedef check<check<check<check<void>>>> quadruple_type;
   6897 
   6898   }
   6899 
   6900   namespace test_decltype
   6901   {
   6902 
   6903     int
   6904     f()
   6905     {
   6906       int a = 1;
   6907       decltype(a) b = 2;
   6908       return a + b;
   6909     }
   6910 
   6911   }
   6912 
   6913   namespace test_type_deduction
   6914   {
   6915 
   6916     template < typename T1, typename T2 >
   6917     struct is_same
   6918     {
   6919       static const bool value = false;
   6920     };
   6921 
   6922     template < typename T >
   6923     struct is_same<T, T>
   6924     {
   6925       static const bool value = true;
   6926     };
   6927 
   6928     template < typename T1, typename T2 >
   6929     auto
   6930     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   6931     {
   6932       return a1 + a2;
   6933     }
   6934 
   6935     int
   6936     test(const int c, volatile int v)
   6937     {
   6938       static_assert(is_same<int, decltype(0)>::value == true, "");
   6939       static_assert(is_same<int, decltype(c)>::value == false, "");
   6940       static_assert(is_same<int, decltype(v)>::value == false, "");
   6941       auto ac = c;
   6942       auto av = v;
   6943       auto sumi = ac + av + 'x';
   6944       auto sumf = ac + av + 1.0;
   6945       static_assert(is_same<int, decltype(ac)>::value == true, "");
   6946       static_assert(is_same<int, decltype(av)>::value == true, "");
   6947       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   6948       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   6949       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   6950       return (sumf > 0.0) ? sumi : add(c, v);
   6951     }
   6952 
   6953   }
   6954 
   6955   namespace test_noexcept
   6956   {
   6957 
   6958     int f() { return 0; }
   6959     int g() noexcept { return 0; }
   6960 
   6961     static_assert(noexcept(f()) == false, "");
   6962     static_assert(noexcept(g()) == true, "");
   6963 
   6964   }
   6965 
   6966   namespace test_constexpr
   6967   {
   6968 
   6969     template < typename CharT >
   6970     unsigned long constexpr
   6971     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   6972     {
   6973       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   6974     }
   6975 
   6976     template < typename CharT >
   6977     unsigned long constexpr
   6978     strlen_c(const CharT *const s) noexcept
   6979     {
   6980       return strlen_c_r(s, 0UL);
   6981     }
   6982 
   6983     static_assert(strlen_c("") == 0UL, "");
   6984     static_assert(strlen_c("1") == 1UL, "");
   6985     static_assert(strlen_c("example") == 7UL, "");
   6986     static_assert(strlen_c("another\0example") == 7UL, "");
   6987 
   6988   }
   6989 
   6990   namespace test_rvalue_references
   6991   {
   6992 
   6993     template < int N >
   6994     struct answer
   6995     {
   6996       static constexpr int value = N;
   6997     };
   6998 
   6999     answer<1> f(int&)       { return answer<1>(); }
   7000     answer<2> f(const int&) { return answer<2>(); }
   7001     answer<3> f(int&&)      { return answer<3>(); }
   7002 
   7003     void
   7004     test()
   7005     {
   7006       int i = 0;
   7007       const int c = 0;
   7008       static_assert(decltype(f(i))::value == 1, "");
   7009       static_assert(decltype(f(c))::value == 2, "");
   7010       static_assert(decltype(f(0))::value == 3, "");
   7011     }
   7012 
   7013   }
   7014 
   7015   namespace test_uniform_initialization
   7016   {
   7017 
   7018     struct test
   7019     {
   7020       static const int zero {};
   7021       static const int one {1};
   7022     };
   7023 
   7024     static_assert(test::zero == 0, "");
   7025     static_assert(test::one == 1, "");
   7026 
   7027   }
   7028 
   7029   namespace test_lambdas
   7030   {
   7031 
   7032     void
   7033     test1()
   7034     {
   7035       auto lambda1 = [](){};
   7036       auto lambda2 = lambda1;
   7037       lambda1();
   7038       lambda2();
   7039     }
   7040 
   7041     int
   7042     test2()
   7043     {
   7044       auto a = [](int i, int j){ return i + j; }(1, 2);
   7045       auto b = []() -> int { return '0'; }();
   7046       auto c = [=](){ return a + b; }();
   7047       auto d = [&](){ return c; }();
   7048       auto e = [a, &b](int x) mutable {
   7049         const auto identity = [](int y){ return y; };
   7050         for (auto i = 0; i < a; ++i)
   7051           a += b--;
   7052         return x + identity(a + b);
   7053       }(0);
   7054       return a + b + c + d + e;
   7055     }
   7056 
   7057     int
   7058     test3()
   7059     {
   7060       const auto nullary = [](){ return 0; };
   7061       const auto unary = [](int x){ return x; };
   7062       using nullary_t = decltype(nullary);
   7063       using unary_t = decltype(unary);
   7064       const auto higher1st = [](nullary_t f){ return f(); };
   7065       const auto higher2nd = [unary](nullary_t f1){
   7066         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   7067       };
   7068       return higher1st(nullary) + higher2nd(nullary)(unary);
   7069     }
   7070 
   7071   }
   7072 
   7073   namespace test_variadic_templates
   7074   {
   7075 
   7076     template <int...>
   7077     struct sum;
   7078 
   7079     template <int N0, int... N1toN>
   7080     struct sum<N0, N1toN...>
   7081     {
   7082       static constexpr auto value = N0 + sum<N1toN...>::value;
   7083     };
   7084 
   7085     template <>
   7086     struct sum<>
   7087     {
   7088       static constexpr auto value = 0;
   7089     };
   7090 
   7091     static_assert(sum<>::value == 0, "");
   7092     static_assert(sum<1>::value == 1, "");
   7093     static_assert(sum<23>::value == 23, "");
   7094     static_assert(sum<1, 2>::value == 3, "");
   7095     static_assert(sum<5, 5, 11>::value == 21, "");
   7096     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   7097 
   7098   }
   7099 
   7100   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   7101   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   7102   // because of this.
   7103   namespace test_template_alias_sfinae
   7104   {
   7105 
   7106     struct foo {};
   7107 
   7108     template<typename T>
   7109     using member = typename T::member_type;
   7110 
   7111     template<typename T>
   7112     void func(...) {}
   7113 
   7114     template<typename T>
   7115     void func(member<T>*) {}
   7116 
   7117     void test();
   7118 
   7119     void test() { func<foo>(0); }
   7120 
   7121   }
   7122 
   7123 }  // namespace cxx11
   7124 
   7125 #endif  // __cplusplus >= 201103L
   7126 
   7127 
   7128 
   7129 
   7130 // If the compiler admits that it is not ready for C++14, why torture it?
   7131 // Hopefully, this will speed up the test.
   7132 
   7133 #ifndef __cplusplus
   7134 
   7135 #error "This is not a C++ compiler"
   7136 
   7137 #elif __cplusplus < 201402L
   7138 
   7139 #error "This is not a C++14 compiler"
   7140 
   7141 #else
   7142 
   7143 namespace cxx14
   7144 {
   7145 
   7146   namespace test_polymorphic_lambdas
   7147   {
   7148 
   7149     int
   7150     test()
   7151     {
   7152       const auto lambda = [](auto&&... args){
   7153         const auto istiny = [](auto x){
   7154           return (sizeof(x) == 1UL) ? 1 : 0;
   7155         };
   7156         const int aretiny[] = { istiny(args)... };
   7157         return aretiny[0];
   7158       };
   7159       return lambda(1, 1L, 1.0f, '1');
   7160     }
   7161 
   7162   }
   7163 
   7164   namespace test_binary_literals
   7165   {
   7166 
   7167     constexpr auto ivii = 0b0000000000101010;
   7168     static_assert(ivii == 42, "wrong value");
   7169 
   7170   }
   7171 
   7172   namespace test_generalized_constexpr
   7173   {
   7174 
   7175     template < typename CharT >
   7176     constexpr unsigned long
   7177     strlen_c(const CharT *const s) noexcept
   7178     {
   7179       auto length = 0UL;
   7180       for (auto p = s; *p; ++p)
   7181         ++length;
   7182       return length;
   7183     }
   7184 
   7185     static_assert(strlen_c("") == 0UL, "");
   7186     static_assert(strlen_c("x") == 1UL, "");
   7187     static_assert(strlen_c("test") == 4UL, "");
   7188     static_assert(strlen_c("another\0test") == 7UL, "");
   7189 
   7190   }
   7191 
   7192   namespace test_lambda_init_capture
   7193   {
   7194 
   7195     int
   7196     test()
   7197     {
   7198       auto x = 0;
   7199       const auto lambda1 = [a = x](int b){ return a + b; };
   7200       const auto lambda2 = [a = lambda1(x)](){ return a; };
   7201       return lambda2();
   7202     }
   7203 
   7204   }
   7205 
   7206   namespace test_digit_separators
   7207   {
   7208 
   7209     constexpr auto ten_million = 100'000'000;
   7210     static_assert(ten_million == 100000000, "");
   7211 
   7212   }
   7213 
   7214   namespace test_return_type_deduction
   7215   {
   7216 
   7217     auto f(int& x) { return x; }
   7218     decltype(auto) g(int& x) { return x; }
   7219 
   7220     template < typename T1, typename T2 >
   7221     struct is_same
   7222     {
   7223       static constexpr auto value = false;
   7224     };
   7225 
   7226     template < typename T >
   7227     struct is_same<T, T>
   7228     {
   7229       static constexpr auto value = true;
   7230     };
   7231 
   7232     int
   7233     test()
   7234     {
   7235       auto x = 0;
   7236       static_assert(is_same<int, decltype(f(x))>::value, "");
   7237       static_assert(is_same<int&, decltype(g(x))>::value, "");
   7238       return x;
   7239     }
   7240 
   7241   }
   7242 
   7243 }  // namespace cxx14
   7244 
   7245 #endif  // __cplusplus >= 201402L
   7246 
   7247 
   7248 
   7249 _ACEOF
   7250 if ac_fn_cxx_try_compile "$LINENO"; then :
   7251   eval $cachevar=yes
   7252 else
   7253   eval $cachevar=no
   7254 fi
   7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7256            CXX="$ac_save_CXX"
   7257 fi
   7258 eval ac_res=\$$cachevar
   7259 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7260 $as_echo "$ac_res" >&6; }
   7261         if eval test x\$$cachevar = xyes; then
   7262           CXX="$CXX $switch"
   7263           if test -n "$CXXCPP" ; then
   7264             CXXCPP="$CXXCPP $switch"
   7265           fi
   7266           ac_success=yes
   7267           break
   7268         fi
   7269       done
   7270       if test x$ac_success = xyes; then
   7271         break
   7272       fi
   7273     done
   7274   fi
   7275 
   7276   ac_ext=c
   7277 ac_cpp='$CPP $CPPFLAGS'
   7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7281 
   7282   if test x$ax_cxx_compile_cxx14_required = xtrue; then
   7283     if test x$ac_success = xno; then
   7284       as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
   7285     fi
   7286   fi
   7287   if test x$ac_success = xno; then
   7288     HAVE_CXX14=0
   7289     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
   7290 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
   7291   else
   7292     HAVE_CXX14=1
   7293 
   7294 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
   7295 
   7296   fi
   7297 
   7298 
   7299 
   7300   if test "${build}" != "${host}"; then
   7301       ax_cxx_compile_alternatives="14 1y"    ax_cxx_compile_cxx14_required=true
   7302   ac_ext=cpp
   7303 ac_cpp='$CXXCPP $CPPFLAGS'
   7304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7307   ac_success=no
   7308       ax_cv_cxx_compile_cxx14_orig_cxx="$CXX"
   7309     ax_cv_cxx_compile_cxx14_orig_cxxflags="$CXXFLAGS"
   7310     ax_cv_cxx_compile_cxx14_orig_cppflags="$CPPFLAGS"
   7311     CXX="$CXX_FOR_BUILD"
   7312     CXXFLAGS="$CXXFLAGS_FOR_BUILD"
   7313     CPPFLAGS="$CPPFLAGS_FOR_BUILD"
   7314       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
   7315 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
   7316 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false; then :
   7317   $as_echo_n "(cached) " >&6
   7318 else
   7319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7320 /* end confdefs.h.  */
   7321 
   7322 
   7323 // If the compiler admits that it is not ready for C++11, why torture it?
   7324 // Hopefully, this will speed up the test.
   7325 
   7326 #ifndef __cplusplus
   7327 
   7328 #error "This is not a C++ compiler"
   7329 
   7330 #elif __cplusplus < 201103L
   7331 
   7332 #error "This is not a C++11 compiler"
   7333 
   7334 #else
   7335 
   7336 namespace cxx11
   7337 {
   7338 
   7339   namespace test_static_assert
   7340   {
   7341 
   7342     template <typename T>
   7343     struct check
   7344     {
   7345       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   7346     };
   7347 
   7348   }
   7349 
   7350   namespace test_final_override
   7351   {
   7352 
   7353     struct Base
   7354     {
   7355       virtual ~Base() {}
   7356       virtual void f() {}
   7357     };
   7358 
   7359     struct Derived : public Base
   7360     {
   7361       virtual ~Derived() override {}
   7362       virtual void f() override {}
   7363     };
   7364 
   7365   }
   7366 
   7367   namespace test_double_right_angle_brackets
   7368   {
   7369 
   7370     template < typename T >
   7371     struct check {};
   7372 
   7373     typedef check<void> single_type;
   7374     typedef check<check<void>> double_type;
   7375     typedef check<check<check<void>>> triple_type;
   7376     typedef check<check<check<check<void>>>> quadruple_type;
   7377 
   7378   }
   7379 
   7380   namespace test_decltype
   7381   {
   7382 
   7383     int
   7384     f()
   7385     {
   7386       int a = 1;
   7387       decltype(a) b = 2;
   7388       return a + b;
   7389     }
   7390 
   7391   }
   7392 
   7393   namespace test_type_deduction
   7394   {
   7395 
   7396     template < typename T1, typename T2 >
   7397     struct is_same
   7398     {
   7399       static const bool value = false;
   7400     };
   7401 
   7402     template < typename T >
   7403     struct is_same<T, T>
   7404     {
   7405       static const bool value = true;
   7406     };
   7407 
   7408     template < typename T1, typename T2 >
   7409     auto
   7410     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   7411     {
   7412       return a1 + a2;
   7413     }
   7414 
   7415     int
   7416     test(const int c, volatile int v)
   7417     {
   7418       static_assert(is_same<int, decltype(0)>::value == true, "");
   7419       static_assert(is_same<int, decltype(c)>::value == false, "");
   7420       static_assert(is_same<int, decltype(v)>::value == false, "");
   7421       auto ac = c;
   7422       auto av = v;
   7423       auto sumi = ac + av + 'x';
   7424       auto sumf = ac + av + 1.0;
   7425       static_assert(is_same<int, decltype(ac)>::value == true, "");
   7426       static_assert(is_same<int, decltype(av)>::value == true, "");
   7427       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   7428       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   7429       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   7430       return (sumf > 0.0) ? sumi : add(c, v);
   7431     }
   7432 
   7433   }
   7434 
   7435   namespace test_noexcept
   7436   {
   7437 
   7438     int f() { return 0; }
   7439     int g() noexcept { return 0; }
   7440 
   7441     static_assert(noexcept(f()) == false, "");
   7442     static_assert(noexcept(g()) == true, "");
   7443 
   7444   }
   7445 
   7446   namespace test_constexpr
   7447   {
   7448 
   7449     template < typename CharT >
   7450     unsigned long constexpr
   7451     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   7452     {
   7453       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   7454     }
   7455 
   7456     template < typename CharT >
   7457     unsigned long constexpr
   7458     strlen_c(const CharT *const s) noexcept
   7459     {
   7460       return strlen_c_r(s, 0UL);
   7461     }
   7462 
   7463     static_assert(strlen_c("") == 0UL, "");
   7464     static_assert(strlen_c("1") == 1UL, "");
   7465     static_assert(strlen_c("example") == 7UL, "");
   7466     static_assert(strlen_c("another\0example") == 7UL, "");
   7467 
   7468   }
   7469 
   7470   namespace test_rvalue_references
   7471   {
   7472 
   7473     template < int N >
   7474     struct answer
   7475     {
   7476       static constexpr int value = N;
   7477     };
   7478 
   7479     answer<1> f(int&)       { return answer<1>(); }
   7480     answer<2> f(const int&) { return answer<2>(); }
   7481     answer<3> f(int&&)      { return answer<3>(); }
   7482 
   7483     void
   7484     test()
   7485     {
   7486       int i = 0;
   7487       const int c = 0;
   7488       static_assert(decltype(f(i))::value == 1, "");
   7489       static_assert(decltype(f(c))::value == 2, "");
   7490       static_assert(decltype(f(0))::value == 3, "");
   7491     }
   7492 
   7493   }
   7494 
   7495   namespace test_uniform_initialization
   7496   {
   7497 
   7498     struct test
   7499     {
   7500       static const int zero {};
   7501       static const int one {1};
   7502     };
   7503 
   7504     static_assert(test::zero == 0, "");
   7505     static_assert(test::one == 1, "");
   7506 
   7507   }
   7508 
   7509   namespace test_lambdas
   7510   {
   7511 
   7512     void
   7513     test1()
   7514     {
   7515       auto lambda1 = [](){};
   7516       auto lambda2 = lambda1;
   7517       lambda1();
   7518       lambda2();
   7519     }
   7520 
   7521     int
   7522     test2()
   7523     {
   7524       auto a = [](int i, int j){ return i + j; }(1, 2);
   7525       auto b = []() -> int { return '0'; }();
   7526       auto c = [=](){ return a + b; }();
   7527       auto d = [&](){ return c; }();
   7528       auto e = [a, &b](int x) mutable {
   7529         const auto identity = [](int y){ return y; };
   7530         for (auto i = 0; i < a; ++i)
   7531           a += b--;
   7532         return x + identity(a + b);
   7533       }(0);
   7534       return a + b + c + d + e;
   7535     }
   7536 
   7537     int
   7538     test3()
   7539     {
   7540       const auto nullary = [](){ return 0; };
   7541       const auto unary = [](int x){ return x; };
   7542       using nullary_t = decltype(nullary);
   7543       using unary_t = decltype(unary);
   7544       const auto higher1st = [](nullary_t f){ return f(); };
   7545       const auto higher2nd = [unary](nullary_t f1){
   7546         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   7547       };
   7548       return higher1st(nullary) + higher2nd(nullary)(unary);
   7549     }
   7550 
   7551   }
   7552 
   7553   namespace test_variadic_templates
   7554   {
   7555 
   7556     template <int...>
   7557     struct sum;
   7558 
   7559     template <int N0, int... N1toN>
   7560     struct sum<N0, N1toN...>
   7561     {
   7562       static constexpr auto value = N0 + sum<N1toN...>::value;
   7563     };
   7564 
   7565     template <>
   7566     struct sum<>
   7567     {
   7568       static constexpr auto value = 0;
   7569     };
   7570 
   7571     static_assert(sum<>::value == 0, "");
   7572     static_assert(sum<1>::value == 1, "");
   7573     static_assert(sum<23>::value == 23, "");
   7574     static_assert(sum<1, 2>::value == 3, "");
   7575     static_assert(sum<5, 5, 11>::value == 21, "");
   7576     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   7577 
   7578   }
   7579 
   7580   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   7581   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   7582   // because of this.
   7583   namespace test_template_alias_sfinae
   7584   {
   7585 
   7586     struct foo {};
   7587 
   7588     template<typename T>
   7589     using member = typename T::member_type;
   7590 
   7591     template<typename T>
   7592     void func(...) {}
   7593 
   7594     template<typename T>
   7595     void func(member<T>*) {}
   7596 
   7597     void test();
   7598 
   7599     void test() { func<foo>(0); }
   7600 
   7601   }
   7602 
   7603 }  // namespace cxx11
   7604 
   7605 #endif  // __cplusplus >= 201103L
   7606 
   7607 
   7608 
   7609 
   7610 // If the compiler admits that it is not ready for C++14, why torture it?
   7611 // Hopefully, this will speed up the test.
   7612 
   7613 #ifndef __cplusplus
   7614 
   7615 #error "This is not a C++ compiler"
   7616 
   7617 #elif __cplusplus < 201402L
   7618 
   7619 #error "This is not a C++14 compiler"
   7620 
   7621 #else
   7622 
   7623 namespace cxx14
   7624 {
   7625 
   7626   namespace test_polymorphic_lambdas
   7627   {
   7628 
   7629     int
   7630     test()
   7631     {
   7632       const auto lambda = [](auto&&... args){
   7633         const auto istiny = [](auto x){
   7634           return (sizeof(x) == 1UL) ? 1 : 0;
   7635         };
   7636         const int aretiny[] = { istiny(args)... };
   7637         return aretiny[0];
   7638       };
   7639       return lambda(1, 1L, 1.0f, '1');
   7640     }
   7641 
   7642   }
   7643 
   7644   namespace test_binary_literals
   7645   {
   7646 
   7647     constexpr auto ivii = 0b0000000000101010;
   7648     static_assert(ivii == 42, "wrong value");
   7649 
   7650   }
   7651 
   7652   namespace test_generalized_constexpr
   7653   {
   7654 
   7655     template < typename CharT >
   7656     constexpr unsigned long
   7657     strlen_c(const CharT *const s) noexcept
   7658     {
   7659       auto length = 0UL;
   7660       for (auto p = s; *p; ++p)
   7661         ++length;
   7662       return length;
   7663     }
   7664 
   7665     static_assert(strlen_c("") == 0UL, "");
   7666     static_assert(strlen_c("x") == 1UL, "");
   7667     static_assert(strlen_c("test") == 4UL, "");
   7668     static_assert(strlen_c("another\0test") == 7UL, "");
   7669 
   7670   }
   7671 
   7672   namespace test_lambda_init_capture
   7673   {
   7674 
   7675     int
   7676     test()
   7677     {
   7678       auto x = 0;
   7679       const auto lambda1 = [a = x](int b){ return a + b; };
   7680       const auto lambda2 = [a = lambda1(x)](){ return a; };
   7681       return lambda2();
   7682     }
   7683 
   7684   }
   7685 
   7686   namespace test_digit_separators
   7687   {
   7688 
   7689     constexpr auto ten_million = 100'000'000;
   7690     static_assert(ten_million == 100000000, "");
   7691 
   7692   }
   7693 
   7694   namespace test_return_type_deduction
   7695   {
   7696 
   7697     auto f(int& x) { return x; }
   7698     decltype(auto) g(int& x) { return x; }
   7699 
   7700     template < typename T1, typename T2 >
   7701     struct is_same
   7702     {
   7703       static constexpr auto value = false;
   7704     };
   7705 
   7706     template < typename T >
   7707     struct is_same<T, T>
   7708     {
   7709       static constexpr auto value = true;
   7710     };
   7711 
   7712     int
   7713     test()
   7714     {
   7715       auto x = 0;
   7716       static_assert(is_same<int, decltype(f(x))>::value, "");
   7717       static_assert(is_same<int&, decltype(g(x))>::value, "");
   7718       return x;
   7719     }
   7720 
   7721   }
   7722 
   7723 }  // namespace cxx14
   7724 
   7725 #endif  // __cplusplus >= 201402L
   7726 
   7727 
   7728 
   7729 _ACEOF
   7730 if ac_fn_cxx_try_compile "$LINENO"; then :
   7731   ax_cv_cxx_compile_cxx14_FOR_BUILD=yes
   7732 else
   7733   ax_cv_cxx_compile_cxx14_FOR_BUILD=no
   7734 fi
   7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7736 fi
   7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
   7738 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
   7739     if test x$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes; then
   7740       ac_success=yes
   7741     fi
   7742 
   7743     if test x$ac_success = xno; then
   7744     for alternative in ${ax_cxx_compile_alternatives}; do
   7745       switch="-std=gnu++${alternative}"
   7746       cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
   7747       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
   7748 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
   7749 if eval \${$cachevar+:} false; then :
   7750   $as_echo_n "(cached) " >&6
   7751 else
   7752   ac_save_CXX="$CXX"
   7753          CXX="$CXX $switch"
   7754          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7755 /* end confdefs.h.  */
   7756 
   7757 
   7758 // If the compiler admits that it is not ready for C++11, why torture it?
   7759 // Hopefully, this will speed up the test.
   7760 
   7761 #ifndef __cplusplus
   7762 
   7763 #error "This is not a C++ compiler"
   7764 
   7765 #elif __cplusplus < 201103L
   7766 
   7767 #error "This is not a C++11 compiler"
   7768 
   7769 #else
   7770 
   7771 namespace cxx11
   7772 {
   7773 
   7774   namespace test_static_assert
   7775   {
   7776 
   7777     template <typename T>
   7778     struct check
   7779     {
   7780       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   7781     };
   7782 
   7783   }
   7784 
   7785   namespace test_final_override
   7786   {
   7787 
   7788     struct Base
   7789     {
   7790       virtual ~Base() {}
   7791       virtual void f() {}
   7792     };
   7793 
   7794     struct Derived : public Base
   7795     {
   7796       virtual ~Derived() override {}
   7797       virtual void f() override {}
   7798     };
   7799 
   7800   }
   7801 
   7802   namespace test_double_right_angle_brackets
   7803   {
   7804 
   7805     template < typename T >
   7806     struct check {};
   7807 
   7808     typedef check<void> single_type;
   7809     typedef check<check<void>> double_type;
   7810     typedef check<check<check<void>>> triple_type;
   7811     typedef check<check<check<check<void>>>> quadruple_type;
   7812 
   7813   }
   7814 
   7815   namespace test_decltype
   7816   {
   7817 
   7818     int
   7819     f()
   7820     {
   7821       int a = 1;
   7822       decltype(a) b = 2;
   7823       return a + b;
   7824     }
   7825 
   7826   }
   7827 
   7828   namespace test_type_deduction
   7829   {
   7830 
   7831     template < typename T1, typename T2 >
   7832     struct is_same
   7833     {
   7834       static const bool value = false;
   7835     };
   7836 
   7837     template < typename T >
   7838     struct is_same<T, T>
   7839     {
   7840       static const bool value = true;
   7841     };
   7842 
   7843     template < typename T1, typename T2 >
   7844     auto
   7845     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   7846     {
   7847       return a1 + a2;
   7848     }
   7849 
   7850     int
   7851     test(const int c, volatile int v)
   7852     {
   7853       static_assert(is_same<int, decltype(0)>::value == true, "");
   7854       static_assert(is_same<int, decltype(c)>::value == false, "");
   7855       static_assert(is_same<int, decltype(v)>::value == false, "");
   7856       auto ac = c;
   7857       auto av = v;
   7858       auto sumi = ac + av + 'x';
   7859       auto sumf = ac + av + 1.0;
   7860       static_assert(is_same<int, decltype(ac)>::value == true, "");
   7861       static_assert(is_same<int, decltype(av)>::value == true, "");
   7862       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   7863       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   7864       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   7865       return (sumf > 0.0) ? sumi : add(c, v);
   7866     }
   7867 
   7868   }
   7869 
   7870   namespace test_noexcept
   7871   {
   7872 
   7873     int f() { return 0; }
   7874     int g() noexcept { return 0; }
   7875 
   7876     static_assert(noexcept(f()) == false, "");
   7877     static_assert(noexcept(g()) == true, "");
   7878 
   7879   }
   7880 
   7881   namespace test_constexpr
   7882   {
   7883 
   7884     template < typename CharT >
   7885     unsigned long constexpr
   7886     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   7887     {
   7888       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   7889     }
   7890 
   7891     template < typename CharT >
   7892     unsigned long constexpr
   7893     strlen_c(const CharT *const s) noexcept
   7894     {
   7895       return strlen_c_r(s, 0UL);
   7896     }
   7897 
   7898     static_assert(strlen_c("") == 0UL, "");
   7899     static_assert(strlen_c("1") == 1UL, "");
   7900     static_assert(strlen_c("example") == 7UL, "");
   7901     static_assert(strlen_c("another\0example") == 7UL, "");
   7902 
   7903   }
   7904 
   7905   namespace test_rvalue_references
   7906   {
   7907 
   7908     template < int N >
   7909     struct answer
   7910     {
   7911       static constexpr int value = N;
   7912     };
   7913 
   7914     answer<1> f(int&)       { return answer<1>(); }
   7915     answer<2> f(const int&) { return answer<2>(); }
   7916     answer<3> f(int&&)      { return answer<3>(); }
   7917 
   7918     void
   7919     test()
   7920     {
   7921       int i = 0;
   7922       const int c = 0;
   7923       static_assert(decltype(f(i))::value == 1, "");
   7924       static_assert(decltype(f(c))::value == 2, "");
   7925       static_assert(decltype(f(0))::value == 3, "");
   7926     }
   7927 
   7928   }
   7929 
   7930   namespace test_uniform_initialization
   7931   {
   7932 
   7933     struct test
   7934     {
   7935       static const int zero {};
   7936       static const int one {1};
   7937     };
   7938 
   7939     static_assert(test::zero == 0, "");
   7940     static_assert(test::one == 1, "");
   7941 
   7942   }
   7943 
   7944   namespace test_lambdas
   7945   {
   7946 
   7947     void
   7948     test1()
   7949     {
   7950       auto lambda1 = [](){};
   7951       auto lambda2 = lambda1;
   7952       lambda1();
   7953       lambda2();
   7954     }
   7955 
   7956     int
   7957     test2()
   7958     {
   7959       auto a = [](int i, int j){ return i + j; }(1, 2);
   7960       auto b = []() -> int { return '0'; }();
   7961       auto c = [=](){ return a + b; }();
   7962       auto d = [&](){ return c; }();
   7963       auto e = [a, &b](int x) mutable {
   7964         const auto identity = [](int y){ return y; };
   7965         for (auto i = 0; i < a; ++i)
   7966           a += b--;
   7967         return x + identity(a + b);
   7968       }(0);
   7969       return a + b + c + d + e;
   7970     }
   7971 
   7972     int
   7973     test3()
   7974     {
   7975       const auto nullary = [](){ return 0; };
   7976       const auto unary = [](int x){ return x; };
   7977       using nullary_t = decltype(nullary);
   7978       using unary_t = decltype(unary);
   7979       const auto higher1st = [](nullary_t f){ return f(); };
   7980       const auto higher2nd = [unary](nullary_t f1){
   7981         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   7982       };
   7983       return higher1st(nullary) + higher2nd(nullary)(unary);
   7984     }
   7985 
   7986   }
   7987 
   7988   namespace test_variadic_templates
   7989   {
   7990 
   7991     template <int...>
   7992     struct sum;
   7993 
   7994     template <int N0, int... N1toN>
   7995     struct sum<N0, N1toN...>
   7996     {
   7997       static constexpr auto value = N0 + sum<N1toN...>::value;
   7998     };
   7999 
   8000     template <>
   8001     struct sum<>
   8002     {
   8003       static constexpr auto value = 0;
   8004     };
   8005 
   8006     static_assert(sum<>::value == 0, "");
   8007     static_assert(sum<1>::value == 1, "");
   8008     static_assert(sum<23>::value == 23, "");
   8009     static_assert(sum<1, 2>::value == 3, "");
   8010     static_assert(sum<5, 5, 11>::value == 21, "");
   8011     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   8012 
   8013   }
   8014 
   8015   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   8016   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   8017   // because of this.
   8018   namespace test_template_alias_sfinae
   8019   {
   8020 
   8021     struct foo {};
   8022 
   8023     template<typename T>
   8024     using member = typename T::member_type;
   8025 
   8026     template<typename T>
   8027     void func(...) {}
   8028 
   8029     template<typename T>
   8030     void func(member<T>*) {}
   8031 
   8032     void test();
   8033 
   8034     void test() { func<foo>(0); }
   8035 
   8036   }
   8037 
   8038 }  // namespace cxx11
   8039 
   8040 #endif  // __cplusplus >= 201103L
   8041 
   8042 
   8043 
   8044 
   8045 // If the compiler admits that it is not ready for C++14, why torture it?
   8046 // Hopefully, this will speed up the test.
   8047 
   8048 #ifndef __cplusplus
   8049 
   8050 #error "This is not a C++ compiler"
   8051 
   8052 #elif __cplusplus < 201402L
   8053 
   8054 #error "This is not a C++14 compiler"
   8055 
   8056 #else
   8057 
   8058 namespace cxx14
   8059 {
   8060 
   8061   namespace test_polymorphic_lambdas
   8062   {
   8063 
   8064     int
   8065     test()
   8066     {
   8067       const auto lambda = [](auto&&... args){
   8068         const auto istiny = [](auto x){
   8069           return (sizeof(x) == 1UL) ? 1 : 0;
   8070         };
   8071         const int aretiny[] = { istiny(args)... };
   8072         return aretiny[0];
   8073       };
   8074       return lambda(1, 1L, 1.0f, '1');
   8075     }
   8076 
   8077   }
   8078 
   8079   namespace test_binary_literals
   8080   {
   8081 
   8082     constexpr auto ivii = 0b0000000000101010;
   8083     static_assert(ivii == 42, "wrong value");
   8084 
   8085   }
   8086 
   8087   namespace test_generalized_constexpr
   8088   {
   8089 
   8090     template < typename CharT >
   8091     constexpr unsigned long
   8092     strlen_c(const CharT *const s) noexcept
   8093     {
   8094       auto length = 0UL;
   8095       for (auto p = s; *p; ++p)
   8096         ++length;
   8097       return length;
   8098     }
   8099 
   8100     static_assert(strlen_c("") == 0UL, "");
   8101     static_assert(strlen_c("x") == 1UL, "");
   8102     static_assert(strlen_c("test") == 4UL, "");
   8103     static_assert(strlen_c("another\0test") == 7UL, "");
   8104 
   8105   }
   8106 
   8107   namespace test_lambda_init_capture
   8108   {
   8109 
   8110     int
   8111     test()
   8112     {
   8113       auto x = 0;
   8114       const auto lambda1 = [a = x](int b){ return a + b; };
   8115       const auto lambda2 = [a = lambda1(x)](){ return a; };
   8116       return lambda2();
   8117     }
   8118 
   8119   }
   8120 
   8121   namespace test_digit_separators
   8122   {
   8123 
   8124     constexpr auto ten_million = 100'000'000;
   8125     static_assert(ten_million == 100000000, "");
   8126 
   8127   }
   8128 
   8129   namespace test_return_type_deduction
   8130   {
   8131 
   8132     auto f(int& x) { return x; }
   8133     decltype(auto) g(int& x) { return x; }
   8134 
   8135     template < typename T1, typename T2 >
   8136     struct is_same
   8137     {
   8138       static constexpr auto value = false;
   8139     };
   8140 
   8141     template < typename T >
   8142     struct is_same<T, T>
   8143     {
   8144       static constexpr auto value = true;
   8145     };
   8146 
   8147     int
   8148     test()
   8149     {
   8150       auto x = 0;
   8151       static_assert(is_same<int, decltype(f(x))>::value, "");
   8152       static_assert(is_same<int&, decltype(g(x))>::value, "");
   8153       return x;
   8154     }
   8155 
   8156   }
   8157 
   8158 }  // namespace cxx14
   8159 
   8160 #endif  // __cplusplus >= 201402L
   8161 
   8162 
   8163 
   8164 _ACEOF
   8165 if ac_fn_cxx_try_compile "$LINENO"; then :
   8166   eval $cachevar=yes
   8167 else
   8168   eval $cachevar=no
   8169 fi
   8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8171          CXX="$ac_save_CXX"
   8172 fi
   8173 eval ac_res=\$$cachevar
   8174 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   8175 $as_echo "$ac_res" >&6; }
   8176       if eval test x\$$cachevar = xyes; then
   8177         CXX="$CXX $switch"
   8178         if test -n "$CXXCPP" ; then
   8179           CXXCPP="$CXXCPP $switch"
   8180         fi
   8181         ac_success=yes
   8182         break
   8183       fi
   8184     done
   8185   fi
   8186 
   8187     if test x$ac_success = xno; then
   8188                 for alternative in ${ax_cxx_compile_alternatives}; do
   8189       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
   8190         cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
   8191         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
   8192 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
   8193 if eval \${$cachevar+:} false; then :
   8194   $as_echo_n "(cached) " >&6
   8195 else
   8196   ac_save_CXX="$CXX"
   8197            CXX="$CXX $switch"
   8198            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8199 /* end confdefs.h.  */
   8200 
   8201 
   8202 // If the compiler admits that it is not ready for C++11, why torture it?
   8203 // Hopefully, this will speed up the test.
   8204 
   8205 #ifndef __cplusplus
   8206 
   8207 #error "This is not a C++ compiler"
   8208 
   8209 #elif __cplusplus < 201103L
   8210 
   8211 #error "This is not a C++11 compiler"
   8212 
   8213 #else
   8214 
   8215 namespace cxx11
   8216 {
   8217 
   8218   namespace test_static_assert
   8219   {
   8220 
   8221     template <typename T>
   8222     struct check
   8223     {
   8224       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   8225     };
   8226 
   8227   }
   8228 
   8229   namespace test_final_override
   8230   {
   8231 
   8232     struct Base
   8233     {
   8234       virtual ~Base() {}
   8235       virtual void f() {}
   8236     };
   8237 
   8238     struct Derived : public Base
   8239     {
   8240       virtual ~Derived() override {}
   8241       virtual void f() override {}
   8242     };
   8243 
   8244   }
   8245 
   8246   namespace test_double_right_angle_brackets
   8247   {
   8248 
   8249     template < typename T >
   8250     struct check {};
   8251 
   8252     typedef check<void> single_type;
   8253     typedef check<check<void>> double_type;
   8254     typedef check<check<check<void>>> triple_type;
   8255     typedef check<check<check<check<void>>>> quadruple_type;
   8256 
   8257   }
   8258 
   8259   namespace test_decltype
   8260   {
   8261 
   8262     int
   8263     f()
   8264     {
   8265       int a = 1;
   8266       decltype(a) b = 2;
   8267       return a + b;
   8268     }
   8269 
   8270   }
   8271 
   8272   namespace test_type_deduction
   8273   {
   8274 
   8275     template < typename T1, typename T2 >
   8276     struct is_same
   8277     {
   8278       static const bool value = false;
   8279     };
   8280 
   8281     template < typename T >
   8282     struct is_same<T, T>
   8283     {
   8284       static const bool value = true;
   8285     };
   8286 
   8287     template < typename T1, typename T2 >
   8288     auto
   8289     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   8290     {
   8291       return a1 + a2;
   8292     }
   8293 
   8294     int
   8295     test(const int c, volatile int v)
   8296     {
   8297       static_assert(is_same<int, decltype(0)>::value == true, "");
   8298       static_assert(is_same<int, decltype(c)>::value == false, "");
   8299       static_assert(is_same<int, decltype(v)>::value == false, "");
   8300       auto ac = c;
   8301       auto av = v;
   8302       auto sumi = ac + av + 'x';
   8303       auto sumf = ac + av + 1.0;
   8304       static_assert(is_same<int, decltype(ac)>::value == true, "");
   8305       static_assert(is_same<int, decltype(av)>::value == true, "");
   8306       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   8307       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   8308       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   8309       return (sumf > 0.0) ? sumi : add(c, v);
   8310     }
   8311 
   8312   }
   8313 
   8314   namespace test_noexcept
   8315   {
   8316 
   8317     int f() { return 0; }
   8318     int g() noexcept { return 0; }
   8319 
   8320     static_assert(noexcept(f()) == false, "");
   8321     static_assert(noexcept(g()) == true, "");
   8322 
   8323   }
   8324 
   8325   namespace test_constexpr
   8326   {
   8327 
   8328     template < typename CharT >
   8329     unsigned long constexpr
   8330     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   8331     {
   8332       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   8333     }
   8334 
   8335     template < typename CharT >
   8336     unsigned long constexpr
   8337     strlen_c(const CharT *const s) noexcept
   8338     {
   8339       return strlen_c_r(s, 0UL);
   8340     }
   8341 
   8342     static_assert(strlen_c("") == 0UL, "");
   8343     static_assert(strlen_c("1") == 1UL, "");
   8344     static_assert(strlen_c("example") == 7UL, "");
   8345     static_assert(strlen_c("another\0example") == 7UL, "");
   8346 
   8347   }
   8348 
   8349   namespace test_rvalue_references
   8350   {
   8351 
   8352     template < int N >
   8353     struct answer
   8354     {
   8355       static constexpr int value = N;
   8356     };
   8357 
   8358     answer<1> f(int&)       { return answer<1>(); }
   8359     answer<2> f(const int&) { return answer<2>(); }
   8360     answer<3> f(int&&)      { return answer<3>(); }
   8361 
   8362     void
   8363     test()
   8364     {
   8365       int i = 0;
   8366       const int c = 0;
   8367       static_assert(decltype(f(i))::value == 1, "");
   8368       static_assert(decltype(f(c))::value == 2, "");
   8369       static_assert(decltype(f(0))::value == 3, "");
   8370     }
   8371 
   8372   }
   8373 
   8374   namespace test_uniform_initialization
   8375   {
   8376 
   8377     struct test
   8378     {
   8379       static const int zero {};
   8380       static const int one {1};
   8381     };
   8382 
   8383     static_assert(test::zero == 0, "");
   8384     static_assert(test::one == 1, "");
   8385 
   8386   }
   8387 
   8388   namespace test_lambdas
   8389   {
   8390 
   8391     void
   8392     test1()
   8393     {
   8394       auto lambda1 = [](){};
   8395       auto lambda2 = lambda1;
   8396       lambda1();
   8397       lambda2();
   8398     }
   8399 
   8400     int
   8401     test2()
   8402     {
   8403       auto a = [](int i, int j){ return i + j; }(1, 2);
   8404       auto b = []() -> int { return '0'; }();
   8405       auto c = [=](){ return a + b; }();
   8406       auto d = [&](){ return c; }();
   8407       auto e = [a, &b](int x) mutable {
   8408         const auto identity = [](int y){ return y; };
   8409         for (auto i = 0; i < a; ++i)
   8410           a += b--;
   8411         return x + identity(a + b);
   8412       }(0);
   8413       return a + b + c + d + e;
   8414     }
   8415 
   8416     int
   8417     test3()
   8418     {
   8419       const auto nullary = [](){ return 0; };
   8420       const auto unary = [](int x){ return x; };
   8421       using nullary_t = decltype(nullary);
   8422       using unary_t = decltype(unary);
   8423       const auto higher1st = [](nullary_t f){ return f(); };
   8424       const auto higher2nd = [unary](nullary_t f1){
   8425         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   8426       };
   8427       return higher1st(nullary) + higher2nd(nullary)(unary);
   8428     }
   8429 
   8430   }
   8431 
   8432   namespace test_variadic_templates
   8433   {
   8434 
   8435     template <int...>
   8436     struct sum;
   8437 
   8438     template <int N0, int... N1toN>
   8439     struct sum<N0, N1toN...>
   8440     {
   8441       static constexpr auto value = N0 + sum<N1toN...>::value;
   8442     };
   8443 
   8444     template <>
   8445     struct sum<>
   8446     {
   8447       static constexpr auto value = 0;
   8448     };
   8449 
   8450     static_assert(sum<>::value == 0, "");
   8451     static_assert(sum<1>::value == 1, "");
   8452     static_assert(sum<23>::value == 23, "");
   8453     static_assert(sum<1, 2>::value == 3, "");
   8454     static_assert(sum<5, 5, 11>::value == 21, "");
   8455     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   8456 
   8457   }
   8458 
   8459   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   8460   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   8461   // because of this.
   8462   namespace test_template_alias_sfinae
   8463   {
   8464 
   8465     struct foo {};
   8466 
   8467     template<typename T>
   8468     using member = typename T::member_type;
   8469 
   8470     template<typename T>
   8471     void func(...) {}
   8472 
   8473     template<typename T>
   8474     void func(member<T>*) {}
   8475 
   8476     void test();
   8477 
   8478     void test() { func<foo>(0); }
   8479 
   8480   }
   8481 
   8482 }  // namespace cxx11
   8483 
   8484 #endif  // __cplusplus >= 201103L
   8485 
   8486 
   8487 
   8488 
   8489 // If the compiler admits that it is not ready for C++14, why torture it?
   8490 // Hopefully, this will speed up the test.
   8491 
   8492 #ifndef __cplusplus
   8493 
   8494 #error "This is not a C++ compiler"
   8495 
   8496 #elif __cplusplus < 201402L
   8497 
   8498 #error "This is not a C++14 compiler"
   8499 
   8500 #else
   8501 
   8502 namespace cxx14
   8503 {
   8504 
   8505   namespace test_polymorphic_lambdas
   8506   {
   8507 
   8508     int
   8509     test()
   8510     {
   8511       const auto lambda = [](auto&&... args){
   8512         const auto istiny = [](auto x){
   8513           return (sizeof(x) == 1UL) ? 1 : 0;
   8514         };
   8515         const int aretiny[] = { istiny(args)... };
   8516         return aretiny[0];
   8517       };
   8518       return lambda(1, 1L, 1.0f, '1');
   8519     }
   8520 
   8521   }
   8522 
   8523   namespace test_binary_literals
   8524   {
   8525 
   8526     constexpr auto ivii = 0b0000000000101010;
   8527     static_assert(ivii == 42, "wrong value");
   8528 
   8529   }
   8530 
   8531   namespace test_generalized_constexpr
   8532   {
   8533 
   8534     template < typename CharT >
   8535     constexpr unsigned long
   8536     strlen_c(const CharT *const s) noexcept
   8537     {
   8538       auto length = 0UL;
   8539       for (auto p = s; *p; ++p)
   8540         ++length;
   8541       return length;
   8542     }
   8543 
   8544     static_assert(strlen_c("") == 0UL, "");
   8545     static_assert(strlen_c("x") == 1UL, "");
   8546     static_assert(strlen_c("test") == 4UL, "");
   8547     static_assert(strlen_c("another\0test") == 7UL, "");
   8548 
   8549   }
   8550 
   8551   namespace test_lambda_init_capture
   8552   {
   8553 
   8554     int
   8555     test()
   8556     {
   8557       auto x = 0;
   8558       const auto lambda1 = [a = x](int b){ return a + b; };
   8559       const auto lambda2 = [a = lambda1(x)](){ return a; };
   8560       return lambda2();
   8561     }
   8562 
   8563   }
   8564 
   8565   namespace test_digit_separators
   8566   {
   8567 
   8568     constexpr auto ten_million = 100'000'000;
   8569     static_assert(ten_million == 100000000, "");
   8570 
   8571   }
   8572 
   8573   namespace test_return_type_deduction
   8574   {
   8575 
   8576     auto f(int& x) { return x; }
   8577     decltype(auto) g(int& x) { return x; }
   8578 
   8579     template < typename T1, typename T2 >
   8580     struct is_same
   8581     {
   8582       static constexpr auto value = false;
   8583     };
   8584 
   8585     template < typename T >
   8586     struct is_same<T, T>
   8587     {
   8588       static constexpr auto value = true;
   8589     };
   8590 
   8591     int
   8592     test()
   8593     {
   8594       auto x = 0;
   8595       static_assert(is_same<int, decltype(f(x))>::value, "");
   8596       static_assert(is_same<int&, decltype(g(x))>::value, "");
   8597       return x;
   8598     }
   8599 
   8600   }
   8601 
   8602 }  // namespace cxx14
   8603 
   8604 #endif  // __cplusplus >= 201402L
   8605 
   8606 
   8607 
   8608 _ACEOF
   8609 if ac_fn_cxx_try_compile "$LINENO"; then :
   8610   eval $cachevar=yes
   8611 else
   8612   eval $cachevar=no
   8613 fi
   8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8615            CXX="$ac_save_CXX"
   8616 fi
   8617 eval ac_res=\$$cachevar
   8618 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   8619 $as_echo "$ac_res" >&6; }
   8620         if eval test x\$$cachevar = xyes; then
   8621           CXX="$CXX $switch"
   8622           if test -n "$CXXCPP" ; then
   8623             CXXCPP="$CXXCPP $switch"
   8624           fi
   8625           ac_success=yes
   8626           break
   8627         fi
   8628       done
   8629       if test x$ac_success = xyes; then
   8630         break
   8631       fi
   8632     done
   8633   fi
   8634       CXX_FOR_BUILD="$CXX"
   8635     CXXFLAGS_FOR_BUILD="$CXXFLAGS"
   8636     CPPFLAGS_FOR_BUILD="$CPPFLAGS"
   8637     CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
   8638     CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
   8639     CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
   8640   ac_ext=c
   8641 ac_cpp='$CPP $CPPFLAGS'
   8642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8645 
   8646   if test x$ax_cxx_compile_cxx14_required = xtrue; then
   8647     if test x$ac_success = xno; then
   8648       as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
   8649     fi
   8650   fi
   8651   if test x$ac_success = xno; then
   8652     HAVE_CXX14_FOR_BUILD=0
   8653     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
   8654 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
   8655   else
   8656     HAVE_CXX14_FOR_BUILD=1
   8657 
   8658 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
   8659 
   8660   fi
   8661 
   8662 
   8663   fi
   8664 fi
   8665 
   8666 # Check whether --enable-pgo-build was given.
   8667 if test "${enable_pgo_build+set}" = set; then :
   8668   enableval=$enable_pgo_build; enable_pgo_build=$enableval
   8669 else
   8670   enable_pgo_build=no
   8671 fi
   8672 
   8673 
   8674 # Issue errors and warnings for invalid/strange PGO build combinations.
   8675 case "$have_compiler:$host:$target:$enable_pgo_build" in
   8676   *:*:*:no) ;;
   8677 
   8678   # Allow the PGO build only if we aren't building a compiler and
   8679   # we are in a native configuration.
   8680   no:$build:$build:yes | no:$build:$build:lto) ;;
   8681 
   8682   # Disallow the PGO bootstrap if we are building a compiler.
   8683   yes:*:*:yes | yes:*:*:lto)
   8684     as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
   8685 
   8686   *)
   8687     as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
   8688     ;;
   8689 esac
   8690 
   8691 if test "$enable_pgo_build" != "no"; then
   8692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
   8693 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
   8694   old_CFLAGS="$CFLAGS"
   8695   PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
   8696   CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
   8697 
   8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8699 /* end confdefs.h.  */
   8700 int foo;
   8701 _ACEOF
   8702 if ac_fn_c_try_compile "$LINENO"; then :
   8703 
   8704 else
   8705   PGO_BUILD_GEN_CFLAGS=
   8706 fi
   8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8708   CFLAGS="$old_CFLAGS"
   8709   if test -n "$PGO_BUILD_GEN_CFLAGS"; then
   8710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8711 $as_echo "yes" >&6; }
   8712     PGO_BUILD_USE_CFLAGS="-fprofile-use"
   8713   else
   8714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8715 $as_echo "no" >&6; }
   8716     as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
   8717   fi
   8718 
   8719   if test "$enable_pgo_build" = "lto"; then
   8720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
   8721 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
   8722     old_CFLAGS="$CFLAGS"
   8723     PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
   8724     CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
   8725     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8726 /* end confdefs.h.  */
   8727 int foo;
   8728 _ACEOF
   8729 if ac_fn_c_try_compile "$LINENO"; then :
   8730 
   8731 else
   8732   PGO_BUILD_LTO_CFLAGS=
   8733 fi
   8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8735     CFLAGS="$old_CFLAGS"
   8736     if test -n "$PGO_BUILD_LTO_CFLAGS"; then
   8737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8738 $as_echo "yes" >&6; }
   8739     else
   8740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8741 $as_echo "no" >&6; }
   8742       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
   8743 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
   8744     fi
   8745   fi
   8746 fi
   8747 
   8748 
   8749 
   8750 
   8751 # Used for setting $lt_cv_objdir
   8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   8753 $as_echo_n "checking for objdir... " >&6; }
   8754 if ${lt_cv_objdir+:} false; then :
   8755   $as_echo_n "(cached) " >&6
   8756 else
   8757   rm -f .libs 2>/dev/null
   8758 mkdir .libs 2>/dev/null
   8759 if test -d .libs; then
   8760   lt_cv_objdir=.libs
   8761 else
   8762   # MS-DOS does not allow filenames that begin with a dot.
   8763   lt_cv_objdir=_libs
   8764 fi
   8765 rmdir .libs 2>/dev/null
   8766 fi
   8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   8768 $as_echo "$lt_cv_objdir" >&6; }
   8769 objdir=$lt_cv_objdir
   8770 
   8771 
   8772 
   8773 
   8774 
   8775 cat >>confdefs.h <<_ACEOF
   8776 #define LT_OBJDIR "$lt_cv_objdir/"
   8777 _ACEOF
   8778 
   8779 
   8780 
   8781 # Check for GMP, MPFR and MPC
   8782 require_gmp=no
   8783 require_mpc=no
   8784 if test -d ${srcdir}/gcc ; then
   8785   require_gmp=yes
   8786   require_mpc=yes
   8787 fi
   8788 if test -d ${srcdir}/gdb ; then
   8789   if test "x$enable_gdb" != xno; then
   8790    require_gmp=yes
   8791   fi
   8792 fi
   8793 
   8794 gmplibs="-lmpfr -lgmp"
   8795 if test x"$require_mpc" = "xyes" ; then
   8796   gmplibs="-lmpc $gmplibs"
   8797 fi
   8798 gmpinc=
   8799 have_gmp=no
   8800 
   8801 # Specify a location for mpc
   8802 # check for this first so it ends up on the link line before mpfr.
   8803 
   8804 # Check whether --with-mpc was given.
   8805 if test "${with_mpc+set}" = set; then :
   8806   withval=$with_mpc;
   8807 fi
   8808 
   8809 
   8810 # Check whether --with-mpc-include was given.
   8811 if test "${with_mpc_include+set}" = set; then :
   8812   withval=$with_mpc_include;
   8813 fi
   8814 
   8815 
   8816 # Check whether --with-mpc-lib was given.
   8817 if test "${with_mpc_lib+set}" = set; then :
   8818   withval=$with_mpc_lib;
   8819 fi
   8820 
   8821 
   8822 if test "x$with_mpc" != x; then
   8823   gmplibs="-L$with_mpc/lib $gmplibs"
   8824   gmpinc="-I$with_mpc/include $gmpinc"
   8825 fi
   8826 if test "x$with_mpc_include" != x; then
   8827   gmpinc="-I$with_mpc_include $gmpinc"
   8828 fi
   8829 if test "x$with_mpc_lib" != x; then
   8830   gmplibs="-L$with_mpc_lib $gmplibs"
   8831 fi
   8832 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
   8833   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
   8834   gmpinc='-I$$s/mpc/src '"$gmpinc"
   8835   # Do not test the mpc version.  Assume that it is sufficient, since
   8836   # it is in the source tree, and the library has not been built yet
   8837   # but it would be included on the link line in the version check below
   8838   # hence making the test fail.
   8839   have_gmp=yes
   8840 fi
   8841 
   8842 # Specify a location for mpfr
   8843 # check for this first so it ends up on the link line before gmp.
   8844 
   8845 # Check whether --with-mpfr was given.
   8846 if test "${with_mpfr+set}" = set; then :
   8847   withval=$with_mpfr;
   8848 fi
   8849 
   8850 
   8851 # Check whether --with-mpfr-include was given.
   8852 if test "${with_mpfr_include+set}" = set; then :
   8853   withval=$with_mpfr_include;
   8854 fi
   8855 
   8856 
   8857 # Check whether --with-mpfr-lib was given.
   8858 if test "${with_mpfr_lib+set}" = set; then :
   8859   withval=$with_mpfr_lib;
   8860 fi
   8861 
   8862 
   8863 if test "x$with_mpfr" != x; then
   8864   gmplibs="-L$with_mpfr/lib $gmplibs"
   8865   gmpinc="-I$with_mpfr/include $gmpinc"
   8866 fi
   8867 if test "x$with_mpfr_include" != x; then
   8868   gmpinc="-I$with_mpfr_include $gmpinc"
   8869 fi
   8870 if test "x$with_mpfr_lib" != x; then
   8871   gmplibs="-L$with_mpfr_lib $gmplibs"
   8872 fi
   8873 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
   8874   # MPFR v3.1.0 moved the sources into a src sub-directory.
   8875   if ! test -d ${srcdir}/mpfr/src; then
   8876     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
   8877   fi
   8878   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
   8879   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
   8880   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
   8881   # Do not test the mpfr version.  Assume that it is sufficient, since
   8882   # it is in the source tree, and the library has not been built yet
   8883   # but it would be included on the link line in the version check below
   8884   # hence making the test fail.
   8885   have_gmp=yes
   8886 fi
   8887 
   8888 # Specify a location for gmp
   8889 
   8890 # Check whether --with-gmp was given.
   8891 if test "${with_gmp+set}" = set; then :
   8892   withval=$with_gmp;
   8893 fi
   8894 
   8895 
   8896 # Check whether --with-gmp-include was given.
   8897 if test "${with_gmp_include+set}" = set; then :
   8898   withval=$with_gmp_include;
   8899 fi
   8900 
   8901 
   8902 # Check whether --with-gmp-lib was given.
   8903 if test "${with_gmp_lib+set}" = set; then :
   8904   withval=$with_gmp_lib;
   8905 fi
   8906 
   8907 
   8908 
   8909 if test "x$with_gmp" != x; then
   8910   gmplibs="-L$with_gmp/lib $gmplibs"
   8911   gmpinc="-I$with_gmp/include $gmpinc"
   8912 fi
   8913 if test "x$with_gmp_include" != x; then
   8914   gmpinc="-I$with_gmp_include $gmpinc"
   8915 fi
   8916 if test "x$with_gmp_lib" != x; then
   8917   gmplibs="-L$with_gmp_lib $gmplibs"
   8918 fi
   8919 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
   8920   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
   8921   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
   8922   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
   8923   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
   8924   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
   8925   # Do not test the gmp version.  Assume that it is sufficient, since
   8926   # it is in the source tree, and the library has not been built yet
   8927   # but it would be included on the link line in the version check below
   8928   # hence making the test fail.
   8929   have_gmp=yes
   8930 fi
   8931 
   8932 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
   8933   have_gmp=yes
   8934   saved_CFLAGS="$CFLAGS"
   8935   CFLAGS="$CFLAGS $gmpinc"
   8936   # Check for the recommended and required versions of GMP.
   8937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
   8938 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
   8939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8940 /* end confdefs.h.  */
   8941 #include "gmp.h"
   8942 int
   8943 main ()
   8944 {
   8945 
   8946   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
   8947   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
   8948   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
   8949   choke me
   8950   #endif
   8951 
   8952   ;
   8953   return 0;
   8954 }
   8955 _ACEOF
   8956 if ac_fn_c_try_compile "$LINENO"; then :
   8957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8958 /* end confdefs.h.  */
   8959 #include <gmp.h>
   8960 int
   8961 main ()
   8962 {
   8963 
   8964   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
   8965   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
   8966   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
   8967   choke me
   8968   #endif
   8969 
   8970   ;
   8971   return 0;
   8972 }
   8973 _ACEOF
   8974 if ac_fn_c_try_compile "$LINENO"; then :
   8975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8976 $as_echo "yes" >&6; }
   8977 else
   8978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
   8979 $as_echo "buggy but acceptable" >&6; }
   8980 fi
   8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8982 else
   8983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8984 $as_echo "no" >&6; }; have_gmp=no
   8985 fi
   8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8987 
   8988   # If we have GMP, check the MPFR version.
   8989   if test x"$have_gmp" = xyes; then
   8990     # Check for the recommended and required versions of MPFR.
   8991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
   8992 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
   8993     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8994 /* end confdefs.h.  */
   8995 #include <gmp.h>
   8996     #include <mpfr.h>
   8997 int
   8998 main ()
   8999 {
   9000 
   9001     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
   9002     choke me
   9003     #endif
   9004 
   9005   ;
   9006   return 0;
   9007 }
   9008 _ACEOF
   9009 if ac_fn_c_try_compile "$LINENO"; then :
   9010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9011 /* end confdefs.h.  */
   9012 #include <gmp.h>
   9013     #include <mpfr.h>
   9014 int
   9015 main ()
   9016 {
   9017 
   9018     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
   9019     choke me
   9020     #endif
   9021 
   9022   ;
   9023   return 0;
   9024 }
   9025 _ACEOF
   9026 if ac_fn_c_try_compile "$LINENO"; then :
   9027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9028 $as_echo "yes" >&6; }
   9029 else
   9030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
   9031 $as_echo "buggy but acceptable" >&6; }
   9032 fi
   9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9034 else
   9035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9036 $as_echo "no" >&6; }; have_gmp=no
   9037 fi
   9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9039   fi
   9040 
   9041   # Check for the MPC header version.
   9042   if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
   9043     # Check for the recommended and required versions of MPC.
   9044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
   9045 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
   9046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9047 /* end confdefs.h.  */
   9048 #include <mpc.h>
   9049 int
   9050 main ()
   9051 {
   9052 
   9053     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
   9054     choke me
   9055     #endif
   9056 
   9057   ;
   9058   return 0;
   9059 }
   9060 _ACEOF
   9061 if ac_fn_c_try_compile "$LINENO"; then :
   9062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9063 /* end confdefs.h.  */
   9064 #include <mpc.h>
   9065 int
   9066 main ()
   9067 {
   9068 
   9069     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
   9070     choke me
   9071     #endif
   9072 
   9073   ;
   9074   return 0;
   9075 }
   9076 _ACEOF
   9077 if ac_fn_c_try_compile "$LINENO"; then :
   9078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9079 $as_echo "yes" >&6; }
   9080 else
   9081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
   9082 $as_echo "buggy but acceptable" >&6; }
   9083 fi
   9084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9085 else
   9086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9087 $as_echo "no" >&6; }; have_gmp=no
   9088 fi
   9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9090   fi
   9091 
   9092   # Now check the MPFR library.
   9093   if test x"$have_gmp" = xyes; then
   9094     saved_LIBS="$LIBS"
   9095     LIBS="$LIBS $gmplibs"
   9096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
   9097 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
   9098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9099 /* end confdefs.h.  */
   9100 #include <mpfr.h>
   9101 int
   9102 main ()
   9103 {
   9104 
   9105     mpfr_t n;
   9106     mpfr_t x;
   9107     int t;
   9108     mpfr_init (n);
   9109     mpfr_init (x);
   9110     mpfr_atan2 (n, n, x, MPFR_RNDN);
   9111     mpfr_erfc (n, x, MPFR_RNDN);
   9112     mpfr_subnormalize (x, t, MPFR_RNDN);
   9113     mpfr_clear(n);
   9114     mpfr_clear(x);
   9115 
   9116   ;
   9117   return 0;
   9118 }
   9119 _ACEOF
   9120 if ac_fn_c_try_link "$LINENO"; then :
   9121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9122 $as_echo "yes" >&6; }
   9123 else
   9124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9125 $as_echo "no" >&6; }; have_gmp=no
   9126 fi
   9127 rm -f core conftest.err conftest.$ac_objext \
   9128     conftest$ac_exeext conftest.$ac_ext
   9129     LIBS="$saved_LIBS"
   9130   fi
   9131 
   9132   # Now check the MPC library
   9133   if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
   9134     saved_LIBS="$LIBS"
   9135     LIBS="$LIBS $gmplibs"
   9136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
   9137 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
   9138     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9139 /* end confdefs.h.  */
   9140 #include <mpc.h>
   9141 int
   9142 main ()
   9143 {
   9144 
   9145     mpc_t c;
   9146     mpc_init2 (c, 53);
   9147     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
   9148     mpc_cosh (c, c, MPC_RNDNN);
   9149     mpc_pow (c, c, c, MPC_RNDNN);
   9150     mpc_acosh (c, c, MPC_RNDNN);
   9151     mpc_clear (c);
   9152 
   9153   ;
   9154   return 0;
   9155 }
   9156 _ACEOF
   9157 if ac_fn_c_try_link "$LINENO"; then :
   9158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9159 $as_echo "yes" >&6; }
   9160 else
   9161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9162 $as_echo "no" >&6; }; have_gmp=no
   9163 fi
   9164 rm -f core conftest.err conftest.$ac_objext \
   9165     conftest$ac_exeext conftest.$ac_ext
   9166     LIBS="$saved_LIBS"
   9167   fi
   9168 
   9169   CFLAGS="$saved_CFLAGS"
   9170 
   9171 # The library versions listed in the error message below should match
   9172 # the HARD-minimums enforced above.
   9173   if test x$have_gmp != xyes; then
   9174     if test -d ${srcdir}/gcc ; then
   9175       as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
   9176 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
   9177 their locations.  Source code for these libraries can be found at
   9178 their respective hosting sites as well as at
   9179 https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
   9180 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
   9181 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
   9182 make sure that you have installed both the libraries and the header
   9183 files.  They may be located in separate packages." "$LINENO" 5
   9184     else
   9185       as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
   9186 Try the --with-gmp and/or --with-mpfr options to specify
   9187 their locations.  If you obtained GMP and/or MPFR from a vendor
   9188 distribution package, make sure that you have installed both the libraries
   9189 and the header files.  They may be located in separate packages." "$LINENO" 5
   9190     fi
   9191   fi
   9192 fi
   9193 
   9194 # Flags needed for both GMP, MPFR and/or MPC.
   9195 
   9196 
   9197 
   9198 
   9199 
   9200 
   9201 
   9202 # Libraries to use for stage1 or when not bootstrapping.
   9203 
   9204 # Check whether --with-stage1-libs was given.
   9205 if test "${with_stage1_libs+set}" = set; then :
   9206   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
   9207    stage1_libs=
   9208  else
   9209    stage1_libs=$withval
   9210  fi
   9211 else
   9212   stage1_libs=
   9213 fi
   9214 
   9215 
   9216 
   9217 # Whether or not to use -static-libstdc++ and -static-libgcc.  The
   9218 # default is yes if gcc is being built; no otherwise.  The reason for
   9219 # this default is that gdb is sometimes linked against GNU Source
   9220 # Highlight, which is a shared library that uses C++ exceptions.  In
   9221 # this case, -static-libstdc++ will cause crashes.
   9222 
   9223 # Check whether --with-static-standard-libraries was given.
   9224 if test "${with_static_standard_libraries+set}" = set; then :
   9225   withval=$with_static_standard_libraries;
   9226 else
   9227   with_static_standard_libraries=auto
   9228 fi
   9229 
   9230 if test "$with_static_standard_libraries" = auto; then
   9231   with_static_standard_libraries=$have_compiler
   9232 fi
   9233 
   9234 # Linker flags to use for stage1 or when not bootstrapping.
   9235 
   9236 # Check whether --with-stage1-ldflags was given.
   9237 if test "${with_stage1_ldflags+set}" = set; then :
   9238   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
   9239    stage1_ldflags=
   9240  else
   9241    stage1_ldflags=$withval
   9242  fi
   9243 else
   9244   stage1_ldflags=
   9245  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
   9246  # if supported.  But if the user explicitly specified the libraries to use,
   9247  # trust that they are doing what they want.
   9248  if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
   9249      -a "$have_static_libs" = yes; then
   9250    stage1_ldflags="-static-libstdc++ -static-libgcc"
   9251  fi
   9252 fi
   9253 
   9254 
   9255 
   9256 # Libraries to use for stage2 and later builds.
   9257 
   9258 # Check whether --with-boot-libs was given.
   9259 if test "${with_boot_libs+set}" = set; then :
   9260   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
   9261    poststage1_libs=
   9262  else
   9263    poststage1_libs=$withval
   9264  fi
   9265 else
   9266   poststage1_libs=
   9267 fi
   9268 
   9269 
   9270 
   9271 # Linker flags to use for stage2 and later builds.
   9272 
   9273 # Check whether --with-boot-ldflags was given.
   9274 if test "${with_boot_ldflags+set}" = set; then :
   9275   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
   9276    poststage1_ldflags=
   9277  else
   9278    poststage1_ldflags=$withval
   9279  fi
   9280 else
   9281   poststage1_ldflags=
   9282  # In stages 2 and 3, default to linking libstdc++ and libgcc
   9283  # statically.  But if the user explicitly specified the libraries to
   9284  # use, trust that they are doing what they want.
   9285  if test "$poststage1_libs" = ""; then
   9286    poststage1_ldflags="-static-libstdc++ -static-libgcc"
   9287  fi
   9288 fi
   9289 
   9290 case $target in
   9291   *-darwin2* | *-darwin1[56789]*)
   9292     # For these versions, we default to using embedded rpaths.
   9293     if test "x$enable_darwin_at_rpath" != "xno"; then
   9294       poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
   9295     fi
   9296   ;;
   9297   *-darwin*)
   9298     # For these versions, we only use embedded rpaths on demand.
   9299     if test "x$enable_darwin_at_rpath" = "xyes"; then
   9300       poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
   9301     fi
   9302   ;;
   9303 esac
   9304 
   9305 
   9306 # GCC GRAPHITE dependency isl.
   9307 # Basic setup is inlined here, actual checks are in config/isl.m4
   9308 
   9309 
   9310 # Check whether --with-isl was given.
   9311 if test "${with_isl+set}" = set; then :
   9312   withval=$with_isl;
   9313 fi
   9314 
   9315 
   9316 # Treat --without-isl as a request to disable
   9317 # GRAPHITE support and skip all following checks.
   9318 if test "x$with_isl" != "xno"; then
   9319   # Check for isl
   9320 
   9321 
   9322 # Check whether --with-isl-include was given.
   9323 if test "${with_isl_include+set}" = set; then :
   9324   withval=$with_isl_include;
   9325 fi
   9326 
   9327 
   9328 # Check whether --with-isl-lib was given.
   9329 if test "${with_isl_lib+set}" = set; then :
   9330   withval=$with_isl_lib;
   9331 fi
   9332 
   9333 
   9334   # Check whether --enable-isl-version-check was given.
   9335 if test "${enable_isl_version_check+set}" = set; then :
   9336   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
   9337 else
   9338   ENABLE_ISL_CHECK=yes
   9339 fi
   9340 
   9341 
   9342   # Initialize isllibs and islinc.
   9343   case $with_isl in
   9344     no)
   9345       isllibs=
   9346       islinc=
   9347       ;;
   9348     "" | yes)
   9349       ;;
   9350     *)
   9351       isllibs="-L$with_isl/lib"
   9352       islinc="-I$with_isl/include"
   9353       ;;
   9354   esac
   9355   if test "x${with_isl_include}" != x ; then
   9356     islinc="-I$with_isl_include"
   9357   fi
   9358   if test "x${with_isl_lib}" != x; then
   9359     isllibs="-L$with_isl_lib"
   9360   fi
   9361         if test "x${islinc}" = x && test "x${isllibs}" = x \
   9362      && test -d ${srcdir}/isl; then
   9363     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
   9364     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
   9365     ENABLE_ISL_CHECK=no
   9366     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
   9367 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
   9368   fi
   9369 
   9370   isllibs="${isllibs} -lisl"
   9371 
   9372 
   9373 
   9374   if test "${ENABLE_ISL_CHECK}" = yes ; then
   9375     _isl_saved_CFLAGS=$CFLAGS
   9376     _isl_saved_LDFLAGS=$LDFLAGS
   9377     _isl_saved_LIBS=$LIBS
   9378 
   9379     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
   9380     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
   9381     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
   9382 
   9383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
   9384 $as_echo_n "checking for isl 0.15 or later... " >&6; }
   9385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9386 /* end confdefs.h.  */
   9387 #include <isl/schedule.h>
   9388 int
   9389 main ()
   9390 {
   9391 isl_options_set_schedule_serialize_sccs (NULL, 0);
   9392   ;
   9393   return 0;
   9394 }
   9395 _ACEOF
   9396 if ac_fn_c_try_link "$LINENO"; then :
   9397   gcc_cv_isl=yes
   9398 else
   9399   gcc_cv_isl=no
   9400 fi
   9401 rm -f core conftest.err conftest.$ac_objext \
   9402     conftest$ac_exeext conftest.$ac_ext
   9403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
   9404 $as_echo "$gcc_cv_isl" >&6; }
   9405 
   9406     if test "${gcc_cv_isl}" = no ; then
   9407       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
   9408 $as_echo "required isl version is 0.15 or later" >&6; }
   9409     fi
   9410 
   9411     CFLAGS=$_isl_saved_CFLAGS
   9412     LDFLAGS=$_isl_saved_LDFLAGS
   9413     LIBS=$_isl_saved_LIBS
   9414   fi
   9415 
   9416 
   9417 
   9418 
   9419 
   9420 
   9421   if test "x${with_isl}" = xno; then
   9422     graphite_requested=no
   9423   elif test "x${with_isl}" != x \
   9424     || test "x${with_isl_include}" != x \
   9425     || test "x${with_isl_lib}" != x ; then
   9426     graphite_requested=yes
   9427   else
   9428     graphite_requested=no
   9429   fi
   9430 
   9431 
   9432 
   9433   if test "${gcc_cv_isl}" = no ; then
   9434     isllibs=
   9435     islinc=
   9436   fi
   9437 
   9438   if test "${graphite_requested}" = yes \
   9439     && test "x${isllibs}" = x \
   9440     && test "x${islinc}" = x ; then
   9441 
   9442     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
   9443   fi
   9444 
   9445 
   9446 fi
   9447 
   9448 # If the isl check failed, disable builds of in-tree variant of isl
   9449 if test "x$with_isl" = xno ||
   9450    test "x$gcc_cv_isl" = xno; then
   9451   noconfigdirs="$noconfigdirs isl"
   9452   islinc=
   9453 fi
   9454 
   9455 
   9456 
   9457 
   9458 # Check for LTO support.
   9459 # Check whether --enable-lto was given.
   9460 if test "${enable_lto+set}" = set; then :
   9461   enableval=$enable_lto; enable_lto=$enableval
   9462 else
   9463   enable_lto=yes; default_enable_lto=yes
   9464 fi
   9465 
   9466 
   9467 
   9468 
   9469 
   9470 target_elf=no
   9471 case $target in
   9472   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
   9473   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
   9474   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
   9475   nvptx-*-none)
   9476     target_elf=no
   9477     ;;
   9478   *)
   9479     target_elf=yes
   9480     ;;
   9481 esac
   9482 
   9483 if test $target_elf = yes; then :
   9484   # ELF platforms build the lto-plugin always.
   9485   build_lto_plugin=yes
   9486 
   9487 else
   9488   if test x"$default_enable_lto" = x"yes" ; then
   9489     case $target in
   9490       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
   9491       # On other non-ELF platforms, LTO has yet to be validated.
   9492       *) enable_lto=no ;;
   9493     esac
   9494   else
   9495   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
   9496   # It would also be nice to check the binutils support, but we don't
   9497   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
   9498   # warn during gcc/ subconfigure; unless you're bootstrapping with
   9499   # -flto it won't be needed until after installation anyway.
   9500     case $target in
   9501       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
   9502       *) if test x"$enable_lto" = x"yes"; then
   9503 	as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
   9504         fi
   9505       ;;
   9506     esac
   9507   fi
   9508   # Among non-ELF, only Windows platforms support the lto-plugin so far.
   9509   # Build it unless LTO was explicitly disabled.
   9510   case $target in
   9511     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
   9512     *) ;;
   9513   esac
   9514 
   9515 fi
   9516 
   9517 
   9518 # Check whether --enable-linker-plugin-configure-flags was given.
   9519 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
   9520   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
   9521 else
   9522   extra_linker_plugin_configure_flags=
   9523 fi
   9524 
   9525 
   9526 # Check whether --enable-linker-plugin-flags was given.
   9527 if test "${enable_linker_plugin_flags+set}" = set; then :
   9528   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
   9529 else
   9530   extra_linker_plugin_flags=
   9531 fi
   9532 
   9533 
   9534 
   9535 # Handle --enable-host-pie
   9536 # If host PIE executables are the default (or must be forced on) for some host,
   9537 # we must pass that configuration to the gcc directory.
   9538 gcc_host_pie=
   9539 # Check whether --enable-host-pie was given.
   9540 if test "${enable_host_pie+set}" = set; then :
   9541   enableval=$enable_host_pie; host_pie=$enableval
   9542  case $host in
   9543    *-*-darwin2*)
   9544      if test x$host_pie != xyes ; then
   9545        # for Darwin20+ this is required.
   9546        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
   9547 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
   9548        host_pie=yes
   9549        gcc_host_pie=--enable-host-pie
   9550      fi ;;
   9551   *) ;;
   9552  esac
   9553 else
   9554   case $host in
   9555   *-*-darwin2*)
   9556     # Default to PIE (mandatory for aarch64).
   9557     host_pie=yes
   9558     gcc_host_pie=--enable-host-pie
   9559     ;;
   9560   *) host_pie=no ;;
   9561  esac
   9562 fi
   9563 
   9564 
   9565 
   9566 
   9567 
   9568 # Enable --enable-host-shared.
   9569 # Checked early to determine whether jit is an 'all' language
   9570 # Check whether --enable-host-shared was given.
   9571 if test "${enable_host_shared+set}" = set; then :
   9572   enableval=$enable_host_shared; host_shared=$enableval
   9573  case $host in
   9574    x86_64-*-darwin* | aarch64-*-darwin*)
   9575      if test x$host_shared != xyes ; then
   9576        # PIC is the default, and actually cannot be switched off.
   9577        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
   9578 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
   9579        host_shared=yes
   9580      fi ;;
   9581    *-*-darwin*)
   9582      if test x$host_pie = xyes -a x$host_shared != xyes ; then
   9583        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
   9584 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
   9585        host_shared=yes
   9586      fi ;;
   9587   *) ;;
   9588  esac
   9589 else
   9590   case $host in
   9591   # 64B x86_64 and Aarch64 Darwin default to PIC.
   9592   x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
   9593   # 32B and powerpc64 Darwin must use PIC to link PIE exes.
   9594   *-*-darwin*) host_shared=$host_pie ;;
   9595   *) host_shared=no;;
   9596  esac
   9597 fi
   9598 
   9599 
   9600 
   9601 
   9602 if test x$host_shared = xyes; then
   9603   case $host in
   9604     *-*-darwin*)
   9605       # Since host shared is the default for 64b Darwin, and also enabled for
   9606       # host_pie, ensure that we present the PIE flag when host_pie is active.
   9607       if test x$host_pie = xyes; then
   9608         PICFLAG=-fPIE
   9609       fi
   9610       ;;
   9611     *)
   9612       PICFLAG=-fPIC
   9613       ;;
   9614   esac
   9615 elif test x$host_pie = xyes; then
   9616   PICFLAG=-fPIE
   9617 else
   9618   PICFLAG=
   9619 fi
   9620 
   9621 
   9622 
   9623 
   9624 # Check for libdiagnostics support.
   9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdiagnostics" >&5
   9626 $as_echo_n "checking whether to enable libdiagnostics... " >&6; }
   9627 # Check whether --enable-libdiagnostics was given.
   9628 if test "${enable_libdiagnostics+set}" = set; then :
   9629   enableval=$enable_libdiagnostics; enable_libdiagnostics=$enableval
   9630 else
   9631   enable_libdiagnostics=no
   9632 fi
   9633 
   9634 
   9635 if test x$enable_libdiagnostics = xyes; then
   9636   # Disable libdiagnostics if -enable-host-shared not specified
   9637   # but not if building for Mingw. All code in Windows
   9638   # is position independent code (PIC).
   9639   case $target in
   9640      *mingw*) ;;
   9641      *)
   9642        if test x$host_shared != xyes; then
   9643 	 as_fn_error $? "
   9644 Enabling libdiagnostics requires --enable-host-shared.
   9645 
   9646 --enable-host-shared typically slows the rest of the compiler down by
   9647 a few %, so you must explicitly enable it.
   9648 
   9649 If you want to build both libdiagnostics and the regular compiler, it is often
   9650 best to do this via two separate configure/builds, in separate
   9651 directories, to avoid imposing the performance cost of
   9652 --enable-host-shared on the regular compiler." "$LINENO" 5
   9653        fi
   9654        ;;
   9655    esac
   9656 fi
   9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libdiagnostics" >&5
   9658 $as_echo "$enable_libdiagnostics" >&6; }
   9659 
   9660 
   9661 
   9662 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
   9663 # default, so we check for them here
   9664 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
   9665 # build of the Rust frontend in case a dep is missing.
   9666 missing_rust_dynlibs=none
   9667 
   9668 save_LIBS="$LIBS"
   9669 LIBS=
   9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   9671 $as_echo_n "checking for library containing dlopen... " >&6; }
   9672 if ${ac_cv_search_dlopen+:} false; then :
   9673   $as_echo_n "(cached) " >&6
   9674 else
   9675   ac_func_search_save_LIBS=$LIBS
   9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9677 /* end confdefs.h.  */
   9678 
   9679 /* Override any GCC internal prototype to avoid an error.
   9680    Use char because int might match the return type of a GCC
   9681    builtin and then its argument prototype would still apply.  */
   9682 #ifdef __cplusplus
   9683 extern "C"
   9684 #endif
   9685 char dlopen ();
   9686 int
   9687 main ()
   9688 {
   9689 return dlopen ();
   9690   ;
   9691   return 0;
   9692 }
   9693 _ACEOF
   9694 for ac_lib in '' dl; do
   9695   if test -z "$ac_lib"; then
   9696     ac_res="none required"
   9697   else
   9698     ac_res=-l$ac_lib
   9699     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9700   fi
   9701   if ac_fn_c_try_link "$LINENO"; then :
   9702   ac_cv_search_dlopen=$ac_res
   9703 fi
   9704 rm -f core conftest.err conftest.$ac_objext \
   9705     conftest$ac_exeext
   9706   if ${ac_cv_search_dlopen+:} false; then :
   9707   break
   9708 fi
   9709 done
   9710 if ${ac_cv_search_dlopen+:} false; then :
   9711 
   9712 else
   9713   ac_cv_search_dlopen=no
   9714 fi
   9715 rm conftest.$ac_ext
   9716 LIBS=$ac_func_search_save_LIBS
   9717 fi
   9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   9719 $as_echo "$ac_cv_search_dlopen" >&6; }
   9720 ac_res=$ac_cv_search_dlopen
   9721 if test "$ac_res" != no; then :
   9722   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9723 
   9724 fi
   9725 
   9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
   9727 $as_echo_n "checking for library containing pthread_create... " >&6; }
   9728 if ${ac_cv_search_pthread_create+:} false; then :
   9729   $as_echo_n "(cached) " >&6
   9730 else
   9731   ac_func_search_save_LIBS=$LIBS
   9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9733 /* end confdefs.h.  */
   9734 
   9735 /* Override any GCC internal prototype to avoid an error.
   9736    Use char because int might match the return type of a GCC
   9737    builtin and then its argument prototype would still apply.  */
   9738 #ifdef __cplusplus
   9739 extern "C"
   9740 #endif
   9741 char pthread_create ();
   9742 int
   9743 main ()
   9744 {
   9745 return pthread_create ();
   9746   ;
   9747   return 0;
   9748 }
   9749 _ACEOF
   9750 for ac_lib in '' pthread; do
   9751   if test -z "$ac_lib"; then
   9752     ac_res="none required"
   9753   else
   9754     ac_res=-l$ac_lib
   9755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9756   fi
   9757   if ac_fn_c_try_link "$LINENO"; then :
   9758   ac_cv_search_pthread_create=$ac_res
   9759 fi
   9760 rm -f core conftest.err conftest.$ac_objext \
   9761     conftest$ac_exeext
   9762   if ${ac_cv_search_pthread_create+:} false; then :
   9763   break
   9764 fi
   9765 done
   9766 if ${ac_cv_search_pthread_create+:} false; then :
   9767 
   9768 else
   9769   ac_cv_search_pthread_create=no
   9770 fi
   9771 rm conftest.$ac_ext
   9772 LIBS=$ac_func_search_save_LIBS
   9773 fi
   9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
   9775 $as_echo "$ac_cv_search_pthread_create" >&6; }
   9776 ac_res=$ac_cv_search_pthread_create
   9777 if test "$ac_res" != no; then :
   9778   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9779 
   9780 fi
   9781 
   9782 CRAB1_LIBS="$LIBS"
   9783 LIBS="$save_LIBS"
   9784 
   9785 if test "$ac_cv_search_dlopen" = no; then
   9786     missing_rust_dynlibs="libdl"
   9787 fi
   9788 
   9789 if test "$ac_cv_search_pthread_create" = no; then
   9790     missing_rust_dynlibs="$missing_rust_dynlibs, libpthread"
   9791 fi
   9792 
   9793 CRAB1_LIBS="$CRAB1_LIBS"
   9794 
   9795 
   9796 # If we are building PIC/PIE host executables, and we are building dependent
   9797 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
   9798 # code.
   9799 host_libs_picflag=
   9800 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
   9801 host_libs_picflag='--with-pic'
   9802 fi
   9803 
   9804 
   9805 # By default, C and C++ are the only stage 1 languages.
   9806 stage1_languages=,c,
   9807 
   9808 # Target libraries that we bootstrap.
   9809 bootstrap_target_libs=,target-libgcc,
   9810 
   9811 # Figure out what language subdirectories are present.
   9812 # Look if the user specified --enable-languages="..."; if not, use
   9813 # the environment variable $LANGUAGES if defined. $LANGUAGES might
   9814 # go away some day.
   9815 # NB:  embedded tabs in this IF block -- do not untabify
   9816 if test -d ${srcdir}/gcc; then
   9817   if test x"${enable_languages+set}" != xset; then
   9818     if test x"${LANGUAGES+set}" = xset; then
   9819       enable_languages="${LANGUAGES}"
   9820         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
   9821     else
   9822       enable_languages=default
   9823     fi
   9824   else
   9825     if test x"${enable_languages}" = x ||
   9826        test x"${enable_languages}" = xyes;
   9827        then
   9828       echo configure.ac: --enable-languages needs at least one language argument 1>&2
   9829       exit 1
   9830     fi
   9831   fi
   9832   enable_languages=`echo "${enable_languages}" | sed -e 's/[ 	,][ 	,]*/,/g' -e 's/,$//'`
   9833 
   9834   # 'f95' is the old name for the 'fortran' language. We issue a warning
   9835   # and make the substitution.
   9836   case ,${enable_languages}, in
   9837     *,f95,*)
   9838       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
   9839       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
   9840       ;;
   9841   esac
   9842 
   9843   # If bootstrapping, C++ must be enabled.
   9844   case ",$enable_languages,:$enable_bootstrap" in
   9845     *,c++,*:*) ;;
   9846     *:yes)
   9847       if test -f ${srcdir}/gcc/cp/config-lang.in; then
   9848         enable_languages="${enable_languages},c++"
   9849       else
   9850         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
   9851       fi
   9852       ;;
   9853   esac
   9854 
   9855   # First scan to see if an enabled language requires some other language.
   9856   # We assume that a given config-lang.in will list all the language
   9857   # front ends it requires, even if some are required indirectly.
   9858   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
   9859     case ${lang_frag} in
   9860       ..) ;;
   9861       # The odd quoting in the next line works around
   9862       # an apparent bug in bash 1.12 on linux.
   9863       ${srcdir}/gcc/[*]/config-lang.in) ;;
   9864       *)
   9865         # From the config-lang.in, get $language, $lang_requires, and
   9866         # $lang_requires_boot_languages.
   9867         language=
   9868         lang_requires=
   9869         lang_requires_boot_languages=
   9870         # set srcdir during sourcing lang_frag to the gcc dir.
   9871         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
   9872         # pollutes this shell
   9873         saved_srcdir=${srcdir}
   9874         srcdir=${srcdir}/gcc . ${lang_frag}
   9875         srcdir=${saved_srcdir}
   9876         for other in ${lang_requires} ${lang_requires_boot_languages}; do
   9877           case ,${enable_languages}, in
   9878 	    *,$other,*) ;;
   9879 	    *,default,*) ;;
   9880 	    *,all,*) ;;
   9881 	    *,$language,*)
   9882 	      echo " \`$other' language required by \`$language'; enabling" 1>&2
   9883 	      enable_languages="${enable_languages},${other}"
   9884 	      ;;
   9885 	  esac
   9886         done
   9887 	for other in ${lang_requires_boot_languages} ; do
   9888 	  if test "$other" != "c"; then
   9889 	    case ,${enable_stage1_languages}, in
   9890 	      *,$other,*) ;;
   9891 	      *,default,*) ;;
   9892 	      *,all,*) ;;
   9893 	      *)
   9894 		case ,${enable_languages}, in
   9895 		  *,$language,*)
   9896 		    echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
   9897 		    enable_stage1_languages="$enable_stage1_languages,${other}"
   9898 		    ;;
   9899 		esac
   9900 		;;
   9901 	    esac
   9902           fi
   9903         done
   9904         ;;
   9905     esac
   9906   done
   9907 
   9908   new_enable_languages=,c,
   9909 
   9910   # If LTO is enabled, add the LTO front end.
   9911   if test "$enable_lto" = "yes" ; then
   9912     case ,${enable_languages}, in
   9913       *,lto,*) ;;
   9914       *) enable_languages="${enable_languages},lto" ;;
   9915     esac
   9916     if test "${build_lto_plugin}" = "yes" ; then
   9917       configdirs="$configdirs lto-plugin"
   9918     fi
   9919   fi
   9920 
   9921   # If we're building an offloading compiler, add the LTO front end.
   9922   if test x"$enable_as_accelerator_for" != x ; then
   9923     case ,${enable_languages}, in
   9924       *,lto,*) ;;
   9925       *) enable_languages="${enable_languages},lto" ;;
   9926     esac
   9927   fi
   9928 
   9929   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
   9930   potential_languages=,c,
   9931 
   9932   enabled_target_libs=
   9933   disabled_target_libs=
   9934 
   9935   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
   9936     case ${lang_frag} in
   9937       ..) ;;
   9938       # The odd quoting in the next line works around
   9939       # an apparent bug in bash 1.12 on linux.
   9940       ${srcdir}/gcc/[*]/config-lang.in) ;;
   9941       *)
   9942         # From the config-lang.in, get $language, $target_libs,
   9943         # $lang_dirs, $boot_language, and $build_by_default
   9944         language=
   9945         target_libs=
   9946         lang_dirs=
   9947         subdir_requires=
   9948         boot_language=no
   9949         build_by_default=yes
   9950         # set srcdir during sourcing.  See above about save & restore
   9951         saved_srcdir=${srcdir}
   9952         srcdir=${srcdir}/gcc . ${lang_frag}
   9953         srcdir=${saved_srcdir}
   9954         if test x${language} = x; then
   9955           echo "${lang_frag} doesn't set \$language." 1>&2
   9956           exit 1
   9957         fi
   9958 
   9959 	if test "$language" = "c++"; then
   9960 	  boot_language=yes
   9961 	fi
   9962 
   9963         add_this_lang=no
   9964         # C is always enabled, so no need to add it again
   9965         if test "$language" != "c"; then
   9966           case ,${enable_languages}, in
   9967             *,${language},*)
   9968               # Language was explicitly selected; include it
   9969 	      add_this_lang=yes
   9970               ;;
   9971 	    *,all,*)
   9972 	      # All languages are enabled
   9973 	      add_this_lang=all
   9974               ;;
   9975             *,default,*)
   9976               # 'default' was selected, select it if it is a default language
   9977 	      add_this_lang=${build_by_default}
   9978               ;;
   9979           esac
   9980         fi
   9981 
   9982         # Disable languages that need other directories if these aren't available.
   9983 	for i in $subdir_requires; do
   9984 	  test -f "$srcdir/gcc/$i/config-lang.in" && continue
   9985 	  case ${add_this_lang} in
   9986 	    yes)
   9987               # Specifically requested language; tell them.
   9988               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
   9989               ;;
   9990             all)
   9991               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
   9992 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
   9993               add_this_lang=unsupported
   9994               ;;
   9995             *)
   9996               # Silently disable.
   9997               add_this_lang=unsupported
   9998               ;;
   9999           esac
   10000 	done
   10001 
   10002         # Disable Ada if no preexisting GNAT is available.
   10003         case ${add_this_lang}:${language}:${have_gnat} in
   10004           yes:ada:no)
   10005             # Specifically requested language; tell them.
   10006             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
   10007             ;;
   10008           all:ada:no)
   10009             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
   10010 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
   10011             add_this_lang=unsupported
   10012             ;;
   10013           *:ada:no)
   10014             # Silently disable.
   10015             add_this_lang=unsupported
   10016             ;;
   10017         esac
   10018 
   10019         # Disable D if no preexisting GDC is available.
   10020         case ${add_this_lang}:${language}:${have_gdc} in
   10021           yes:d:no)
   10022             # Specifically requested language; tell them.
   10023             as_fn_error $? "GDC is required to build $language" "$LINENO" 5
   10024            ;;
   10025           all:d:no)
   10026             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
   10027 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
   10028             add_this_lang=unsupported
   10029             ;;
   10030           *:d:no)
   10031             # Silently disable.
   10032             add_this_lang=unsupported
   10033             ;;
   10034         esac
   10035 
   10036         # Disable Rust if we are missing some required C libraries for the Rust runtime.
   10037         case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
   10038           *:rust:none)
   10039             # Nothing to do - we're not missing any C libraries
   10040             ;;
   10041           yes:rust:*)
   10042             as_fn_error $? "some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
   10043             add_this_lang=unsupported
   10044             ;;
   10045           all:rust:*)
   10046             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
   10047 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
   10048             add_this_lang=unsupported
   10049             ;;
   10050           *:rust:*)
   10051             # Silently disable.
   10052             add_this_lang=unsupported
   10053             ;;
   10054         esac
   10055 
   10056         # Disable jit if -enable-host-shared not specified
   10057         # but not if building for Mingw. All code in Windows
   10058         # is position independent code (PIC).
   10059         case $target in
   10060           *mingw*) ;;
   10061           *)
   10062           case ${add_this_lang}:${language}:${host_shared} in
   10063             yes:jit:no)
   10064 	           # PR jit/64780: explicitly specify --enable-host-shared
   10065 	    as_fn_error $? "
   10066 Enabling language \"jit\" requires --enable-host-shared.
   10067 
   10068 --enable-host-shared typically slows the rest of the compiler down by
   10069 a few %, so you must explicitly enable it.
   10070 
   10071 If you want to build both the jit and the regular compiler, it is often
   10072 best to do this via two separate configure/builds, in separate
   10073 directories, to avoid imposing the performance cost of
   10074 --enable-host-shared on the regular compiler." "$LINENO" 5
   10075 	            ;;
   10076             all:jit:no)
   10077 	      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
   10078 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
   10079               add_this_lang=unsupported
   10080               ;;
   10081             *:jit:no)
   10082               # Silently disable.
   10083               add_this_lang=unsupported
   10084               ;;
   10085 	        esac
   10086           ;;
   10087         esac
   10088 
   10089         # Pre-conditions to consider whether cargo being supported.
   10090         if test x"$have_cargo" = xyes \
   10091           && test x"$build" != x"$host"; then
   10092           # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
   10093           # "'cargo' should build for the host system" is resolved:
   10094           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
   10095 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
   10096           have_cargo=no
   10097         else
   10098           # Assume that cargo-produced object files are compatible with what
   10099           # we're going to build here.
   10100           :
   10101         fi
   10102         # Disable Rust if cargo is unavailable.
   10103         case ${add_this_lang}:${language}:${have_cargo} in
   10104           yes:rust:no)
   10105             # Specifically requested language; tell them.
   10106             as_fn_error $? "cargo is required to build $language" "$LINENO" 5
   10107             ;;
   10108           all:rust:no)
   10109             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
   10110 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
   10111             add_this_lang=unsupported
   10112             ;;
   10113           *:rust:no)
   10114             # Silently disable.
   10115             add_this_lang=unsupported
   10116             ;;
   10117         esac
   10118 
   10119 
   10120         # Disable a language that is unsupported by the target.
   10121 	case "${add_this_lang}: $unsupported_languages " in
   10122 	  no:*) ;;
   10123 	  unsupported:*) ;;
   10124 	  *:*" $language "*)
   10125 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
   10126 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
   10127 	    add_this_lang=unsupported
   10128 	    ;;
   10129 	esac
   10130 
   10131 	case $add_this_lang in
   10132 	  unsupported)
   10133             # Remove language-dependent dirs.
   10134 	    disabled_target_libs="$disabled_target_libs $target_libs"
   10135 	    noconfigdirs="$noconfigdirs $lang_dirs"
   10136 	    ;;
   10137 	  no)
   10138             # Remove language-dependent dirs; still show language as supported.
   10139 	    disabled_target_libs="$disabled_target_libs $target_libs"
   10140 	    noconfigdirs="$noconfigdirs $lang_dirs"
   10141             potential_languages="${potential_languages}${language},"
   10142 	    ;;
   10143           all|yes)
   10144 	    new_enable_languages="${new_enable_languages}${language},"
   10145             potential_languages="${potential_languages}${language},"
   10146 	    missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
   10147 	    enabled_target_libs="$enabled_target_libs $target_libs"
   10148 	    case "${boot_language}:,$enable_stage1_languages," in
   10149 	      yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
   10150 		# Add to (comma-separated) list of stage 1 languages.
   10151 		case ",$stage1_languages," in
   10152 		  *,$language,* | ,yes, | ,all,) ;;
   10153 		  *) stage1_languages="${stage1_languages}${language}," ;;
   10154 		esac
   10155 		# We need to bootstrap any supporting libraries.
   10156 		bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
   10157 		;;
   10158 	    esac
   10159 	    ;;
   10160         esac
   10161         ;;
   10162     esac
   10163   done
   10164 
   10165   # Add target libraries which are only needed for disabled languages
   10166   # to noconfigdirs.
   10167   if test -n "$disabled_target_libs"; then
   10168     for dir in $disabled_target_libs; do
   10169       case " $enabled_target_libs " in
   10170       *" ${dir} "*) ;;
   10171       *) noconfigdirs="$noconfigdirs $dir" ;;
   10172       esac
   10173     done
   10174   fi
   10175 
   10176   # Check whether --enable-stage1-languages was given.
   10177 if test "${enable_stage1_languages+set}" = set; then :
   10178   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
   10179     ,no,|,,)
   10180       # Set it to something that will have no effect in the loop below
   10181       enable_stage1_languages=c ;;
   10182     ,yes,)
   10183       enable_stage1_languages=`echo $new_enable_languages | \
   10184 	sed -e "s/^,//" -e "s/,$//" ` ;;
   10185     *,all,*)
   10186       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
   10187 	sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
   10188   esac
   10189 
   10190   # Add "good" languages from enable_stage1_languages to stage1_languages,
   10191   # while "bad" languages go in missing_languages.  Leave no duplicates.
   10192   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
   10193     case $potential_languages in
   10194       *,$i,*)
   10195         case $stage1_languages in
   10196           *,$i,*) ;;
   10197           *) stage1_languages="$stage1_languages$i," ;;
   10198         esac ;;
   10199       *)
   10200         case $missing_languages in
   10201           *,$i,*) ;;
   10202           *) missing_languages="$missing_languages$i," ;;
   10203         esac ;;
   10204      esac
   10205   done
   10206 fi
   10207 
   10208 
   10209   # Remove leading/trailing commas that were added for simplicity
   10210   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
   10211   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
   10212   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
   10213   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
   10214 
   10215   if test "x$missing_languages" != x; then
   10216     as_fn_error $? "
   10217 The following requested languages could not be built: ${missing_languages}
   10218 Supported languages are: ${potential_languages}" "$LINENO" 5
   10219   fi
   10220   if test "x$new_enable_languages" != "x$enable_languages"; then
   10221     echo The following languages will be built: ${new_enable_languages}
   10222     enable_languages="$new_enable_languages"
   10223   fi
   10224 
   10225 
   10226   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
   10227 fi
   10228 
   10229 # Handle --disable-<component> generically.
   10230 for dir in $configdirs $build_configdirs $target_configdirs ; do
   10231   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
   10232   varname=`echo $dirname | sed -e s/+/_/g`
   10233   if eval test x\${enable_${varname}} "=" xno ; then
   10234     noconfigdirs="$noconfigdirs $dir"
   10235   fi
   10236 done
   10237 
   10238 # Check for Boehm's garbage collector
   10239 # Check whether --enable-objc-gc was given.
   10240 if test "${enable_objc_gc+set}" = set; then :
   10241   enableval=$enable_objc_gc;
   10242 fi
   10243 
   10244 
   10245 # Check whether --with-target-bdw-gc was given.
   10246 if test "${with_target_bdw_gc+set}" = set; then :
   10247   withval=$with_target_bdw_gc;
   10248 fi
   10249 
   10250 
   10251 # Check whether --with-target-bdw-gc-include was given.
   10252 if test "${with_target_bdw_gc_include+set}" = set; then :
   10253   withval=$with_target_bdw_gc_include;
   10254 fi
   10255 
   10256 
   10257 # Check whether --with-target-bdw-gc-lib was given.
   10258 if test "${with_target_bdw_gc_lib+set}" = set; then :
   10259   withval=$with_target_bdw_gc_lib;
   10260 fi
   10261 
   10262 
   10263 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
   10264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
   10265 $as_echo_n "checking for bdw garbage collector... " >&6; }
   10266   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
   10267         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
   10268 $as_echo "using bdw-gc in default locations" >&6; }
   10269   else
   10270         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
   10271       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
   10272     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
   10273       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
   10274     else
   10275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
   10276 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
   10277     fi
   10278   fi
   10279 esac
   10280 
   10281 # Disable libitm, libsanitizer, libvtv if we're not building C++
   10282 case ,${enable_languages}, in
   10283   *,c++,*)
   10284     # Disable libitm, libsanitizer if we're not building libstdc++
   10285     case "${noconfigdirs}" in
   10286       *target-libstdc++-v3*)
   10287         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
   10288         ;;
   10289       *) ;;
   10290     esac
   10291     ;;
   10292   *)
   10293     noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
   10294     ;;
   10295 esac
   10296 
   10297 case ,${enable_languages}, in
   10298   *,rust,*)
   10299     case " ${noconfigdirs} " in
   10300       *\ target-libstdc++-v3\ *)
   10301         # Disable target libgrust if we're not building target libstdc++.
   10302         noconfigdirs="$noconfigdirs target-libgrust"
   10303         ;;
   10304     esac
   10305     ;;
   10306 esac
   10307 
   10308 # If gcc/ is not in the source tree then we'll not be building a
   10309 # target compiler, assume in that case we don't want to build any
   10310 # target libraries or tools.
   10311 #
   10312 # This was added primarily for the benefit for binutils-gdb who reuse
   10313 # this configure script, but don't always have target tools available.
   10314 if test ! -d ${srcdir}/gcc; then
   10315    skipdirs="${skipdirs} ${target_configdirs}"
   10316 fi
   10317 
   10318 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
   10319 # $build_configdirs and $target_configdirs.
   10320 # If we have the source for $noconfigdirs entries, add them to $notsupp.
   10321 
   10322 notsupp=""
   10323 for dir in . $skipdirs $noconfigdirs ; do
   10324   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
   10325   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10326     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
   10327     if test -r $srcdir/$dirname/configure ; then
   10328       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10329 	true
   10330       else
   10331 	notsupp="$notsupp $dir"
   10332       fi
   10333     fi
   10334   fi
   10335   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10336     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
   10337     if test -r $srcdir/$dirname/configure ; then
   10338       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10339 	true
   10340       else
   10341 	notsupp="$notsupp $dir"
   10342       fi
   10343     fi
   10344   fi
   10345   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10346     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
   10347     if test -r $srcdir/$dirname/configure ; then
   10348       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10349 	true
   10350       else
   10351 	notsupp="$notsupp $dir"
   10352       fi
   10353     fi
   10354   fi
   10355 done
   10356 
   10357 # Quietly strip out all directories which aren't configurable in this tree.
   10358 # This relies on all configurable subdirectories being autoconfiscated, which
   10359 # is now the case.
   10360 build_configdirs_all="$build_configdirs"
   10361 build_configdirs=
   10362 for i in ${build_configdirs_all} ; do
   10363   j=`echo $i | sed -e s/build-//g`
   10364   if test -f ${srcdir}/$j/configure ; then
   10365     build_configdirs="${build_configdirs} $i"
   10366   fi
   10367 done
   10368 
   10369 configdirs_all="$configdirs"
   10370 configdirs=
   10371 for i in ${configdirs_all} ; do
   10372   if test -f ${srcdir}/$i/configure ; then
   10373     configdirs="${configdirs} $i"
   10374   fi
   10375 done
   10376 
   10377 target_configdirs_all="$target_configdirs"
   10378 target_configdirs=
   10379 for i in ${target_configdirs_all} ; do
   10380   j=`echo $i | sed -e s/target-//g`
   10381   if test -f ${srcdir}/$j/configure ; then
   10382     target_configdirs="${target_configdirs} $i"
   10383   fi
   10384 done
   10385 
   10386 # libiberty-linker-plugin is special: it doesn't have its own source directory,
   10387 # so we have to add it after the preceding checks.
   10388 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
   10389 then
   10390   case " $configdirs " in
   10391     *" libiberty "*)
   10392       # If we can build libiberty, we can also build libiberty-linker-plugin.
   10393       configdirs="$configdirs libiberty-linker-plugin"
   10394       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
   10395         --with-libiberty=../libiberty-linker-plugin";;
   10396     *)
   10397       as_fn_error $? "libiberty missing" "$LINENO" 5;;
   10398   esac
   10399 fi
   10400 
   10401 # Sometimes we have special requirements for the host libiberty.
   10402 extra_host_libiberty_configure_flags=
   10403 case " $configdirs " in
   10404   *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
   10405     # When these are to be built as shared libraries, the same applies to
   10406     # libiberty.
   10407     extra_host_libiberty_configure_flags=--enable-shared
   10408     ;;
   10409 esac
   10410 
   10411 
   10412 # Sometimes we have special requirements for the host zlib.
   10413 extra_host_zlib_configure_flags=
   10414 case " $configdirs " in
   10415   *" bfd "*)
   10416     # When bfd is to be built as a shared library, the same applies to
   10417     # zlib.
   10418     if test "$enable_shared" = "yes"; then
   10419       extra_host_zlib_configure_flags=--enable-host-shared
   10420     fi
   10421     ;;
   10422 esac
   10423 
   10424 
   10425 # Produce a warning message for the subdirs we can't configure.
   10426 # This isn't especially interesting in the Cygnus tree, but in the individual
   10427 # FSF releases, it's important to let people know when their machine isn't
   10428 # supported by the one or two programs in a package.
   10429 
   10430 if test -n "${notsupp}" && test -z "${norecursion}" ; then
   10431   # If $appdirs is non-empty, at least one of those directories must still
   10432   # be configured, or we error out.  (E.g., if the gas release supports a
   10433   # specified target in some subdirs but not the gas subdir, we shouldn't
   10434   # pretend that all is well.)
   10435   if test -n "$appdirs" ; then
   10436     for dir in $appdirs ; do
   10437       if test -r $dir/Makefile.in ; then
   10438 	if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
   10439 	  appdirs=""
   10440 	  break
   10441 	fi
   10442 	if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
   10443 	  appdirs=""
   10444 	  break
   10445 	fi
   10446       fi
   10447     done
   10448     if test -n "$appdirs" ; then
   10449       echo "*** This configuration is not supported by this package." 1>&2
   10450       exit 1
   10451     fi
   10452   fi
   10453   # Okay, some application will build, or we don't care to check.  Still
   10454   # notify of subdirs not getting built.
   10455   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
   10456   echo "    ${notsupp}" 1>&2
   10457   echo "    (Any other directories should still work fine.)" 1>&2
   10458 fi
   10459 
   10460 case "$host" in
   10461   *msdosdjgpp*)
   10462     enable_gdbtk=no ;;
   10463 esac
   10464 
   10465 # To find our prefix, in gcc_cv_tool_prefix.
   10466 
   10467 # The user is always right.
   10468 if test "${PATH_SEPARATOR+set}" != set; then
   10469   echo "#! /bin/sh" >conf$$.sh
   10470   echo  "exit 0"   >>conf$$.sh
   10471   chmod +x conf$$.sh
   10472   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   10473     PATH_SEPARATOR=';'
   10474   else
   10475     PATH_SEPARATOR=:
   10476   fi
   10477   rm -f conf$$.sh
   10478 fi
   10479 
   10480 
   10481   get_gcc_base_ver="cat"
   10482 
   10483 # Check whether --with-gcc-major-version-only was given.
   10484 if test "${with_gcc_major_version_only+set}" = set; then :
   10485   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
   10486         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
   10487       fi
   10488 
   10489 fi
   10490 
   10491 
   10492 
   10493 
   10494 
   10495 
   10496 if test "x$exec_prefix" = xNONE; then
   10497         if test "x$prefix" = xNONE; then
   10498                 gcc_cv_tool_prefix=$ac_default_prefix
   10499         else
   10500                 gcc_cv_tool_prefix=$prefix
   10501         fi
   10502 else
   10503         gcc_cv_tool_prefix=$exec_prefix
   10504 fi
   10505 
   10506 # If there is no compiler in the tree, use the PATH only.  In any
   10507 # case, if there is no compiler in the tree nobody should use
   10508 # AS_FOR_TARGET and LD_FOR_TARGET.
   10509 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
   10510     if test x$with_gcc_major_version_only = xyes ; then
   10511                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
   10512             else
   10513         gcc_version=`cat $srcdir/gcc/BASE-VER`
   10514     fi
   10515     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
   10516     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
   10517     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
   10518     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
   10519     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
   10520     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
   10521 else
   10522     gcc_cv_tool_dirs=
   10523 fi
   10524 
   10525 if test x$build = x$target && test -n "$md_exec_prefix"; then
   10526         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
   10527 fi
   10528 
   10529 
   10530 
   10531 copy_dirs=
   10532 
   10533 
   10534 # Check whether --with-build-sysroot was given.
   10535 if test "${with_build_sysroot+set}" = set; then :
   10536   withval=$with_build_sysroot; if test x"$withval" != x ; then
   10537      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
   10538    fi
   10539 else
   10540   SYSROOT_CFLAGS_FOR_TARGET=
   10541 fi
   10542 
   10543 
   10544 
   10545 
   10546 # Check whether --with-debug-prefix-map was given.
   10547 if test "${with_debug_prefix_map+set}" = set; then :
   10548   withval=$with_debug_prefix_map; if test x"$withval" != x; then
   10549      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
   10550      for debug_map in $withval; do
   10551        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
   10552      done
   10553    fi
   10554 else
   10555   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
   10556 fi
   10557 
   10558 
   10559 
   10560 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
   10561 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
   10562 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
   10563 # We want to ensure that TARGET libraries (which we know are built with
   10564 # gcc) are built with "-O2 -g", so include those options when setting
   10565 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
   10566 if test "x$CFLAGS_FOR_TARGET" = x; then
   10567   if test "x${is_cross_compiler}" = xyes; then
   10568     CFLAGS_FOR_TARGET="-g -O2"
   10569   else
   10570     CFLAGS_FOR_TARGET=$CFLAGS
   10571     case " $CFLAGS " in
   10572       *" -O2 "*) ;;
   10573       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
   10574     esac
   10575     case " $CFLAGS " in
   10576       *" -g "* | *" -g3 "*) ;;
   10577       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
   10578     esac
   10579   fi
   10580 fi
   10581 
   10582 
   10583 if test "x$CXXFLAGS_FOR_TARGET" = x; then
   10584   if test "x${is_cross_compiler}" = xyes; then
   10585     CXXFLAGS_FOR_TARGET="-g -O2"
   10586   else
   10587     CXXFLAGS_FOR_TARGET=$CXXFLAGS
   10588     case " $CXXFLAGS " in
   10589       *" -O2 "*) ;;
   10590       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
   10591     esac
   10592     case " $CXXFLAGS " in
   10593       *" -g "* | *" -g3 "*) ;;
   10594       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
   10595     esac
   10596   fi
   10597 fi
   10598 
   10599 
   10600 
   10601 
   10602 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
   10603 # the named directory are copied to $(tooldir)/sys-include.
   10604 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
   10605   if test x${is_cross_compiler} = xno ; then
   10606     echo 1>&2 '***' --with-headers is only supported when cross compiling
   10607     exit 1
   10608   fi
   10609   if test x"${with_headers}" != xyes ; then
   10610     x=${gcc_cv_tool_prefix}
   10611     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
   10612   fi
   10613 fi
   10614 
   10615 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
   10616 # the name directories are copied to $(tooldir)/lib.  Multiple directories
   10617 # are permitted.
   10618 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
   10619   if test x${is_cross_compiler} = xno ; then
   10620     echo 1>&2 '***' --with-libs is only supported when cross compiling
   10621     exit 1
   10622   fi
   10623   if test x"${with_libs}" != xyes ; then
   10624     # Copy the libraries in reverse order, so that files in the first named
   10625     # library override files in subsequent libraries.
   10626     x=${gcc_cv_tool_prefix}
   10627     for l in ${with_libs}; do
   10628       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
   10629     done
   10630   fi
   10631 fi
   10632 
   10633 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
   10634 #
   10635 # This is done by determining whether or not the appropriate directory
   10636 # is available, and by checking whether or not specific configurations
   10637 # have requested that this magic not happen.
   10638 #
   10639 # The command line options always override the explicit settings in
   10640 # configure.ac, and the settings in configure.ac override this magic.
   10641 #
   10642 # If the default for a toolchain is to use GNU as and ld, and you don't
   10643 # want to do that, then you should use the --without-gnu-as and
   10644 # --without-gnu-ld options for the configure script.  Similarly, if
   10645 # the default is to use the included zlib and you don't want to do that,
   10646 # you should use the --with-system-zlib option for the configure script.
   10647 
   10648 if test x${use_gnu_as} = x &&
   10649    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
   10650   with_gnu_as=yes
   10651   extra_host_args="$extra_host_args --with-gnu-as"
   10652 fi
   10653 
   10654 if test x${use_gnu_ld} = x &&
   10655    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
   10656   with_gnu_ld=yes
   10657   extra_host_args="$extra_host_args --with-gnu-ld"
   10658 fi
   10659 
   10660 if test x${use_included_zlib} = x &&
   10661    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
   10662   :
   10663 else
   10664   with_system_zlib=yes
   10665   extra_host_args="$extra_host_args --with-system-zlib"
   10666 fi
   10667 
   10668 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
   10669 # can detect this case.
   10670 
   10671 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
   10672   with_newlib=yes
   10673   extra_host_args="$extra_host_args --with-newlib"
   10674 fi
   10675 
   10676 # Handle ${copy_dirs}
   10677 set fnord ${copy_dirs}
   10678 shift
   10679 while test $# != 0 ; do
   10680   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
   10681     :
   10682   else
   10683     echo Copying $1 to $2
   10684 
   10685     # Use the install script to create the directory and all required
   10686     # parent directories.
   10687     if test -d $2 ; then
   10688       :
   10689     else
   10690       echo >config.temp
   10691       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
   10692     fi
   10693 
   10694     # Copy the directory, assuming we have tar.
   10695     # FIXME: Should we use B in the second tar?  Not all systems support it.
   10696     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
   10697 
   10698     # It is the responsibility of the user to correctly adjust all
   10699     # symlinks.  If somebody can figure out how to handle them correctly
   10700     # here, feel free to add the code.
   10701 
   10702     echo $1 > $2/COPIED
   10703   fi
   10704   shift; shift
   10705 done
   10706 
   10707 # Determine a target-dependent exec_prefix that the installed
   10708 # gcc will search in.  Keep this list sorted by triplet, with
   10709 # the *-*-osname triplets last.
   10710 md_exec_prefix=
   10711 case "${target}" in
   10712   i[34567]86-pc-msdosdjgpp*)
   10713     md_exec_prefix=/dev/env/DJDIR/bin
   10714     ;;
   10715   *-*-hpux* | \
   10716   *-*-nto-qnx* | \
   10717   *-*-solaris2*)
   10718     md_exec_prefix=/usr/ccs/bin
   10719     ;;
   10720 esac
   10721 
   10722 extra_arflags_for_target=
   10723 extra_nmflags_for_target=
   10724 extra_ranlibflags_for_target=
   10725 target_makefile_frag=/dev/null
   10726 case "${target}" in
   10727   spu-*-*)
   10728     target_makefile_frag="config/mt-spu"
   10729     ;;
   10730   loongarch*-*linux* | loongarch*-*gnu*)
   10731     target_makefile_frag="config/mt-loongarch-gnu"
   10732     ;;
   10733   loongarch*-*elf*)
   10734     target_makefile_frag="config/mt-loongarch-elf"
   10735     ;;
   10736   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
   10737     target_makefile_frag="config/mt-sde"
   10738     ;;
   10739   mipsisa*-*-elfoabi*)
   10740     target_makefile_frag="config/mt-mips-elfoabi"
   10741     ;;
   10742   mips*-*-*linux* | mips*-*-gnu*)
   10743     target_makefile_frag="config/mt-mips-gnu"
   10744     ;;
   10745   *-*-linux-android*)
   10746     target_makefile_frag="config/mt-android"
   10747     ;;
   10748   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
   10749     target_makefile_frag="config/mt-gnu"
   10750     ;;
   10751   *-*-aix4.[3456789]* | *-*-aix[56789].*)
   10752     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
   10753     # commands to handle both 32-bit and 64-bit objects.  These flags are
   10754     # harmless if we're using GNU nm or ar.
   10755     extra_arflags_for_target=" -X32_64"
   10756     extra_nmflags_for_target=" -B -X32_64"
   10757     ;;
   10758 esac
   10759 
   10760 alphaieee_frag=/dev/null
   10761 case $target in
   10762   alpha*-*-*)
   10763     # This just makes sure to use the -mieee option to build target libs.
   10764     # This should probably be set individually by each library.
   10765     alphaieee_frag="config/mt-alphaieee"
   10766     ;;
   10767 esac
   10768 
   10769 # If --enable-target-optspace always use -Os instead of -O2 to build
   10770 # the target libraries, similarly if it is not specified, use -Os
   10771 # on selected platforms.
   10772 ospace_frag=/dev/null
   10773 case "${enable_target_optspace}:${target}" in
   10774   yes:*)
   10775     ospace_frag="config/mt-ospace"
   10776     ;;
   10777   :d30v-*)
   10778     ospace_frag="config/mt-d30v"
   10779     ;;
   10780   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
   10781     ospace_frag="config/mt-ospace"
   10782     ;;
   10783   no:* | :*)
   10784     ;;
   10785   *)
   10786     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
   10787     ;;
   10788 esac
   10789 
   10790 # Some systems (e.g., one of the i386-aix systems the gas testers are
   10791 # using) don't handle "\$" correctly, so don't use it here.
   10792 tooldir='${exec_prefix}'/${target_noncanonical}
   10793 build_tooldir=${tooldir}
   10794 
   10795 # Create a .gdbinit file which runs the one in srcdir
   10796 # and tells GDB to look there for source files.
   10797 
   10798 if test -r ${srcdir}/.gdbinit ; then
   10799   case ${srcdir} in
   10800     .) ;;
   10801     *) cat > ./.gdbinit <<EOF
   10802 # ${NO_EDIT}
   10803 dir ${srcdir}
   10804 dir .
   10805 source ${srcdir}/.gdbinit
   10806 EOF
   10807     ;;
   10808   esac
   10809 fi
   10810 
   10811 # Make sure that the compiler is able to generate an executable.  If it
   10812 # can't, we are probably in trouble.  We don't care whether we can run the
   10813 # executable--we might be using a cross compiler--we only care whether it
   10814 # can be created.  At this point the main configure script has set CC.
   10815 we_are_ok=no
   10816 echo "int main () { return 0; }" > conftest.c
   10817 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
   10818 if test $? = 0 ; then
   10819   if test -s conftest || test -s conftest.exe ; then
   10820     we_are_ok=yes
   10821   fi
   10822 fi
   10823 case $we_are_ok in
   10824   no)
   10825     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
   10826     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
   10827     rm -f conftest*
   10828     exit 1
   10829     ;;
   10830 esac
   10831 rm -f conftest*
   10832 
   10833 # Decide which environment variable is used to find dynamic libraries.
   10834 case "${host}" in
   10835   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
   10836   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
   10837   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
   10838   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
   10839 esac
   10840 
   10841 # On systems where the dynamic library environment variable is PATH,
   10842 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
   10843 # built executables to PATH.
   10844 if test "$RPATH_ENVVAR" = PATH; then
   10845   GCC_SHLIB_SUBDIR=/shlib
   10846 else
   10847   GCC_SHLIB_SUBDIR=
   10848 fi
   10849 
   10850 # Adjust the toplevel makefile according to whether bootstrap was selected.
   10851 case $enable_bootstrap in
   10852   yes)
   10853     bootstrap_suffix=bootstrap
   10854     BUILD_CONFIG=bootstrap-debug
   10855     ;;
   10856   no)
   10857     bootstrap_suffix=no-bootstrap
   10858     BUILD_CONFIG=
   10859     ;;
   10860 esac
   10861 
   10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
   10863 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
   10864 
   10865 
   10866 # Check whether --with-build-config was given.
   10867 if test "${with_build_config+set}" = set; then :
   10868   withval=$with_build_config; case $with_build_config in
   10869    yes) with_build_config= ;;
   10870    no) with_build_config= BUILD_CONFIG= ;;
   10871    esac
   10872 fi
   10873 
   10874 
   10875 if test "x${with_build_config}" != x; then
   10876   BUILD_CONFIG=$with_build_config
   10877 else
   10878   case $BUILD_CONFIG in
   10879   bootstrap-debug)
   10880     if echo "int f (void) { return 0; }" > conftest.c &&
   10881        ${CC} -c conftest.c &&
   10882        mv conftest.o conftest.o.g0 &&
   10883        ${CC} -c -g conftest.c &&
   10884        mv conftest.o conftest.o.g &&
   10885        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
   10886       :
   10887     else
   10888       BUILD_CONFIG=
   10889     fi
   10890     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
   10891     ;;
   10892   esac
   10893 fi
   10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
   10895 $as_echo "$BUILD_CONFIG" >&6; }
   10896 
   10897 
   10898 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
   10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
   10900 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
   10901 # Check whether --enable-vtable-verify was given.
   10902 if test "${enable_vtable_verify+set}" = set; then :
   10903   enableval=$enable_vtable_verify; case "$enableval" in
   10904  yes) enable_vtable_verify=yes ;;
   10905  no)  enable_vtable_verify=no ;;
   10906  *)   enable_vtable_verify=no;;
   10907  esac
   10908 else
   10909   enable_vtable_verify=no
   10910 fi
   10911 
   10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
   10913 $as_echo "$enable_vtable_verify" >&6; }
   10914 
   10915 # Record target_configdirs and the configure arguments for target and
   10916 # build configuration in Makefile.
   10917 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
   10918 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
   10919 bootstrap_fixincludes=no
   10920 
   10921 # If we are building libgomp, bootstrap it.
   10922 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
   10923   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
   10924 fi
   10925 
   10926 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
   10927 # or bootstrap-ubsan, bootstrap it.
   10928 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
   10929   case "$BUILD_CONFIG" in
   10930     *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
   10931       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
   10932       bootstrap_fixincludes=yes
   10933       ;;
   10934   esac
   10935 fi
   10936 
   10937 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
   10938 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
   10939    test "$enable_vtable_verify" != no; then
   10940   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
   10941 fi
   10942 
   10943 # If we are building libatomic and the list of enabled languages includes the
   10944 # D frontend, bootstrap it.
   10945 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
   10946   case ,${enable_languages}, in
   10947     *,d,*)
   10948       bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
   10949       ;;
   10950   esac
   10951 fi
   10952 
   10953 # Determine whether gdb needs tk/tcl or not.
   10954 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
   10955 # and in that case we want gdb to be built without tk.  Ugh!
   10956 # In fact I believe gdb is the *only* package directly dependent on tk,
   10957 # so we should be able to put the 'maybe's in unconditionally and
   10958 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
   10959 # 100% sure that that's safe though.
   10960 
   10961 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
   10962 case "$enable_gdbtk" in
   10963   no)
   10964     GDB_TK="" ;;
   10965   yes)
   10966     GDB_TK="${gdb_tk}" ;;
   10967   *)
   10968     # Only add the dependency on gdbtk when GDBtk is part of the gdb
   10969     # distro.  Eventually someone will fix this and move Insight, nee
   10970     # gdbtk to a separate directory.
   10971     if test -d ${srcdir}/gdb/gdbtk ; then
   10972       GDB_TK="${gdb_tk}"
   10973     else
   10974       GDB_TK=""
   10975     fi
   10976     ;;
   10977 esac
   10978 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
   10979 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
   10980 
   10981 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
   10982 # else does, only include them if one of these is built.  The Makefile
   10983 # provides the ordering, so it's enough here to add to the list.
   10984 case " ${configdirs} " in
   10985   *\ gdb\ *)
   10986     configdirs="${configdirs} gnulib gdbsupport"
   10987     ;;
   10988   *\ gdbserver\ *)
   10989     configdirs="${configdirs} gnulib gdbsupport"
   10990     ;;
   10991   *\ sim\ *)
   10992     configdirs="${configdirs} gnulib"
   10993     ;;
   10994 esac
   10995 
   10996 # Strip out unwanted targets.
   10997 
   10998 # While at that, we remove Makefiles if we were started for recursive
   10999 # configuration, so that the top-level Makefile reconfigures them,
   11000 # like we used to do when configure itself was recursive.
   11001 
   11002 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
   11003 # but now we're fixing up the Makefile ourselves with the additional
   11004 # commands passed to AC_CONFIG_FILES.  Use separate variables
   11005 # extrasub-{build,host,target} not because there is any reason to split
   11006 # the substitutions up that way, but only to remain below the limit of
   11007 # 99 commands in a script, for HP-UX sed.
   11008 
   11009 # Do not nest @if/@endif or @unless/@endunless pairs, because
   11010 # configure will not warn you at all.
   11011 
   11012 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
   11013   yes:yes:*\ gold\ *:*,c++,*) ;;
   11014   yes:yes:*\ gold\ *:*)
   11015     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
   11016     ;;
   11017 esac
   11018 
   11019 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
   11020 # Note C++ is always enabled for stage1 now.
   11021 case "$enable_bootstrap:${noconfigdirs}" in
   11022   yes:*target-libstdc++-v3*)
   11023     as_fn_error $? "bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
   11024     ;;
   11025 esac
   11026 
   11027 
   11028 extrasub_build=
   11029 for module in ${build_configdirs} ; do
   11030   if test -z "${no_recursion}" \
   11031      && test -f ${build_subdir}/${module}/Makefile; then
   11032     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
   11033     rm -f ${build_subdir}/${module}/Makefile
   11034   fi
   11035   extrasub_build="$extrasub_build
   11036 /^@if build-$module\$/d
   11037 /^@endif build-$module\$/d
   11038 /^@unless build-$module\$/,/^@endunless build-$module\$/d
   11039 /^@if build-$module-$bootstrap_suffix\$/d
   11040 /^@endif build-$module-$bootstrap_suffix\$/d
   11041 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
   11042 done
   11043 extrasub_host=
   11044 for module in ${configdirs} ; do
   11045   if test -z "${no_recursion}"; then
   11046     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
   11047       if test -f ${file}; then
   11048 	echo 1>&2 "*** removing ${file} to force reconfigure"
   11049 	rm -f ${file}
   11050       fi
   11051     done
   11052   fi
   11053   case ${module},${bootstrap_fixincludes} in
   11054     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
   11055     *) host_bootstrap_suffix=$bootstrap_suffix ;;
   11056   esac
   11057   extrasub_host="$extrasub_host
   11058 /^@if $module\$/d
   11059 /^@endif $module\$/d
   11060 /^@unless $module\$/,/^@endunless $module\$/d
   11061 /^@if $module-$host_bootstrap_suffix\$/d
   11062 /^@endif $module-$host_bootstrap_suffix\$/d
   11063 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
   11064 done
   11065 extrasub_target=
   11066 for module in ${target_configdirs} ; do
   11067   if test -z "${no_recursion}" \
   11068      && test -f ${target_subdir}/${module}/Makefile; then
   11069     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
   11070     rm -f ${target_subdir}/${module}/Makefile
   11071   fi
   11072 
   11073   # We only bootstrap target libraries listed in bootstrap_target_libs.
   11074   case $bootstrap_target_libs in
   11075     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
   11076     *) target_bootstrap_suffix=no-bootstrap ;;
   11077   esac
   11078 
   11079   extrasub_target="$extrasub_target
   11080 /^@if target-$module\$/d
   11081 /^@endif target-$module\$/d
   11082 /^@unless target-$module\$/,/^@endunless target-$module\$/d
   11083 /^@if target-$module-$target_bootstrap_suffix\$/d
   11084 /^@endif target-$module-$target_bootstrap_suffix\$/d
   11085 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
   11086 done
   11087 
   11088 # Do the final fixup along with target modules.
   11089 extrasub_target="$extrasub_target
   11090 /^@if /,/^@endif /d
   11091 /^@unless /d
   11092 /^@endunless /d"
   11093 
   11094 if test "$enable_pgo_build" != "no"; then
   11095   extrasub_build="$extrasub_build
   11096 /^@if pgo-build\$/d
   11097 /^@endif pgo-build\$/d"
   11098 fi
   11099 
   11100 # Create the serialization dependencies.  This uses a temporary file.
   11101 
   11102 # Check whether --enable-serial-configure was given.
   11103 if test "${enable_serial_configure+set}" = set; then :
   11104   enableval=$enable_serial_configure;
   11105 fi
   11106 
   11107 
   11108 case ${enable_serial_configure} in
   11109   yes)
   11110     enable_serial_build_configure=yes
   11111     enable_serial_host_configure=yes
   11112     enable_serial_target_configure=yes
   11113     ;;
   11114 esac
   11115 
   11116 # These force 'configure's to be done one at a time, to avoid problems
   11117 # with contention over a shared config.cache.
   11118 rm -f serdep.tmp
   11119 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
   11120 echo '# serdep.tmp' > serdep.tmp
   11121 fi
   11122 olditem=
   11123 test "x${enable_serial_build_configure}" = xyes &&
   11124 for item in ${build_configdirs} ; do
   11125   case ${olditem} in
   11126     "") ;;
   11127     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
   11128   esac
   11129   olditem=${item}
   11130 done
   11131 olditem=
   11132 test "x${enable_serial_host_configure}" = xyes &&
   11133 for item in ${configdirs} ; do
   11134   case ${olditem} in
   11135     "") ;;
   11136     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
   11137   esac
   11138   olditem=${item}
   11139 done
   11140 olditem=
   11141 test "x${enable_serial_target_configure}" = xyes &&
   11142 for item in ${target_configdirs} ; do
   11143   case ${olditem} in
   11144     "") ;;
   11145     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
   11146   esac
   11147   olditem=${item}
   11148 done
   11149 serialization_dependencies=serdep.tmp
   11150 
   11151 
   11152 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
   11153 # target, nonopt, and variable assignments.  These are the ones we
   11154 # might not want to pass down to subconfigures.  The exception being
   11155 # --cache-file=/dev/null, which is used to turn off the use of cache
   11156 # files altogether, and which should be passed on to subconfigures.
   11157 # Also strip program-prefix, program-suffix, and program-transform-name,
   11158 # so that we can pass down a consistent program-transform-name.
   11159 hbaseargs=
   11160 bbaseargs=
   11161 tbaseargs=
   11162 keep_next=no
   11163 skip_next=no
   11164 eval "set -- $ac_configure_args"
   11165 for ac_arg
   11166 do
   11167   if test X"$skip_next" = X"yes"; then
   11168     skip_next=no
   11169     continue
   11170   fi
   11171   if test X"$keep_next" = X"yes"; then
   11172     case $ac_arg in
   11173       *\'*)
   11174 	ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   11175     esac
   11176     hbaseargs="$hbaseargs '$ac_arg'"
   11177     bbaseargs="$bbaseargs '$ac_arg'"
   11178     tbaseargs="$tbaseargs '$ac_arg'"
   11179     keep_next=no
   11180     continue
   11181   fi
   11182 
   11183   # Handle separated arguments.  Based on the logic generated by
   11184   # autoconf 2.59.
   11185   case $ac_arg in
   11186     *=* | --config-cache | -C | -disable-* | --disable-* \
   11187       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   11188       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   11189       | -with-* | --with-* | -without-* | --without-* | --x)
   11190       separate_arg=no
   11191       ;;
   11192     -*)
   11193       separate_arg=yes
   11194       ;;
   11195     *)
   11196       separate_arg=no
   11197       ;;
   11198   esac
   11199 
   11200   skip_targ=no
   11201   skip_barg=no
   11202   case $ac_arg in
   11203 
   11204   --with-* | --without-*)
   11205     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
   11206 
   11207     case $libopt in
   11208     *[-_]include)
   11209       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
   11210       ;;
   11211     *[-_]lib)
   11212       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
   11213       ;;
   11214     *[-_]prefix)
   11215       lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
   11216       ;;
   11217     *[-_]type)
   11218       lib=`echo "$libopt" | sed 's,[-_]type$,,'`
   11219       ;;
   11220     *)
   11221       lib=$libopt
   11222       ;;
   11223     esac
   11224 
   11225 
   11226     case $lib in
   11227     mpc | mpfr | gmp | isl)
   11228       # If we're processing --with-$lib, --with-$lib-include or
   11229       # --with-$lib-lib, for one of the libs above, and target is
   11230       # different from host, don't pass the current argument to any
   11231       # target library's configure.
   11232       if test x$is_cross_compiler = xyes; then
   11233         skip_targ=yes
   11234       fi
   11235       ;;
   11236     libintl | libiconv)
   11237       # We don't want libintl (and co.) in anything but the host arguments.
   11238       skip_targ=yes
   11239       skip_barg=yes
   11240       ;;
   11241     esac
   11242     ;;
   11243   esac
   11244 
   11245   case "$ac_arg" in
   11246     --cache-file=/dev/null | \
   11247     -cache-file=/dev/null )
   11248       # Handled here to avoid the test to skip args below.
   11249       hbaseargs="$hbaseargs '$ac_arg'"
   11250       bbaseargs="$bbaseargs '$ac_arg'"
   11251       tbaseargs="$tbaseargs '$ac_arg'"
   11252       # Assert: $separate_arg should always be no.
   11253       keep_next=$separate_arg
   11254       ;;
   11255     --no*)
   11256       continue
   11257       ;;
   11258     --c* | \
   11259     --sr* | \
   11260     --ho* | \
   11261     --bu* | \
   11262     --t* | \
   11263     --program-* | \
   11264     -cache_file* | \
   11265     -srcdir* | \
   11266     -host* | \
   11267     -build* | \
   11268     -target* | \
   11269     -program-prefix* | \
   11270     -program-suffix* | \
   11271     -program-transform-name* )
   11272       skip_next=$separate_arg
   11273       continue
   11274       ;;
   11275     -*)
   11276       # An option.  Add it.
   11277       case $ac_arg in
   11278 	*\'*)
   11279 	  ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   11280       esac
   11281       hbaseargs="$hbaseargs '$ac_arg'"
   11282       if test X"$skip_barg" = Xno; then
   11283 	bbaseargs="$bbaseargs '$ac_arg'"
   11284       fi
   11285       if test X"$skip_targ" = Xno; then
   11286         tbaseargs="$tbaseargs '$ac_arg'"
   11287       fi
   11288       keep_next=$separate_arg
   11289       ;;
   11290     *)
   11291       # Either a variable assignment, or a nonopt (triplet).  Don't
   11292       # pass it down; let the Makefile handle this.
   11293       continue
   11294       ;;
   11295   esac
   11296 done
   11297 # Remove the initial space we just introduced and, as these will be
   11298 # expanded by make, quote '$'.
   11299 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
   11300 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
   11301 
   11302 # Add in --program-transform-name, after --program-prefix and
   11303 # --program-suffix have been applied to it.  Autoconf has already
   11304 # doubled dollar signs and backslashes in program_transform_name; we want
   11305 # the backslashes un-doubled, and then the entire thing wrapped in single
   11306 # quotes, because this will be expanded first by make and then by the shell.
   11307 # Also, because we want to override the logic in subdir configure scripts to
   11308 # choose program_transform_name, replace any s,x,x, with s,y,y,.
   11309 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
   11310 ${program_transform_name}
   11311 EOF_SED
   11312 gcc_transform_name=`cat conftestsed.out`
   11313 rm -f conftestsed.out
   11314 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
   11315 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
   11316 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
   11317 if test "$silent" = yes; then
   11318   bbaseargs="$bbaseargs --silent"
   11319   hbaseargs="$hbaseargs --silent"
   11320   tbaseargs="$tbaseargs --silent"
   11321 fi
   11322 
   11323 bbaseargs="$bbaseargs --disable-option-checking"
   11324 hbaseargs="$hbaseargs --disable-option-checking"
   11325 tbaseargs="$tbaseargs --disable-option-checking"
   11326 
   11327 if test "$enable_year2038" = no; then
   11328   bbaseargs="$bbaseargs --disable-year2038"
   11329   hbaseargs="$hbaseargs --disable-year2038"
   11330   tbaseargs="$tbaseargs --disable-year2038"
   11331 fi
   11332 
   11333 # Record and document user additions to sub configure arguments.
   11334 
   11335 
   11336 
   11337 
   11338 # For the build-side libraries, we just need to pretend we're native,
   11339 # and not use the same cache file.  Multilibs are neither needed nor
   11340 # desired.  We can't even use the same cache file for all build-side
   11341 # libraries, as they're compiled differently; some with C, some with
   11342 # C++ or with different feature-enabling options.
   11343 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
   11344 
   11345 # For host modules, accept cache file option, or specification as blank.
   11346 case "${cache_file}" in
   11347 "") # empty
   11348   cache_file_option="" ;;
   11349 /* | [A-Za-z]:[\\/]* ) # absolute path
   11350   cache_file_option="--cache-file=${cache_file}" ;;
   11351 *) # relative path
   11352   cache_file_option="--cache-file=../${cache_file}" ;;
   11353 esac
   11354 
   11355 # Host dirs don't like to share a cache file either, horribly enough.
   11356 # This seems to be due to autoconf 2.5x stupidity.
   11357 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
   11358 
   11359 target_configargs="$target_configargs ${tbaseargs}"
   11360 
   11361 # Passing a --with-cross-host argument lets the target libraries know
   11362 # whether they are being built with a cross-compiler or being built
   11363 # native.  However, it would be better to use other mechanisms to make the
   11364 # sorts of decisions they want to make on this basis.  Please consider
   11365 # this option to be deprecated.  FIXME.
   11366 if test x${is_cross_compiler} = xyes ; then
   11367   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
   11368 fi
   11369 
   11370 # Special user-friendly check for native x86_64-linux build, if
   11371 # multilib is not explicitly enabled.
   11372 case "$target:$have_compiler:$host:$target:$enable_multilib" in
   11373   x86_64-*linux*:yes:$build:$build:)
   11374     # Make sure we have a development environment that handles 32-bit
   11375     dev64=no
   11376     echo "int main () { return 0; }" > conftest.c
   11377     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
   11378     if test $? = 0 ; then
   11379       if test -s conftest || test -s conftest.exe ; then
   11380 	dev64=yes
   11381       fi
   11382     fi
   11383     rm -f conftest*
   11384     if test x${dev64} != xyes ; then
   11385       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
   11386     fi
   11387     ;;
   11388 esac
   11389 
   11390 # Default to --enable-multilib.
   11391 if test x${enable_multilib} = x ; then
   11392   target_configargs="--enable-multilib ${target_configargs}"
   11393 fi
   11394 
   11395 # Pass --with-newlib if appropriate.  Note that target_configdirs has
   11396 # changed from the earlier setting of with_newlib.
   11397 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
   11398   target_configargs="--with-newlib ${target_configargs}"
   11399 fi
   11400 
   11401 # Different target subdirs use different values of certain variables
   11402 # (notably CXX).  Worse, multilibs use *lots* of different values.
   11403 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
   11404 # it doesn't automatically accept command-line overrides of them.
   11405 # This means it's not safe for target subdirs to share a cache file,
   11406 # which is disgusting, but there you have it.  Hopefully this can be
   11407 # fixed in future.  It's still worthwhile to use a cache file for each
   11408 # directory.  I think.
   11409 
   11410 # Pass the appropriate --build, --host, --target and --cache-file arguments.
   11411 # We need to pass --target, as newer autoconf's requires consistency
   11412 # for target_alias and gcc doesn't manage it consistently.
   11413 target_configargs="--cache-file=./config.cache ${target_configargs}"
   11414 
   11415 FLAGS_FOR_TARGET=
   11416 case " $target_configdirs " in
   11417  *" newlib "*)
   11418   case " $target_configargs " in
   11419   *" --with-newlib "*)
   11420    case "$target" in
   11421     *-cygwin*)
   11422       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
   11423       ;;
   11424    esac
   11425 
   11426    # If we're not building GCC, don't discard standard headers.
   11427    if test -d ${srcdir}/gcc; then
   11428      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
   11429 
   11430      if test "${build}" != "${host}"; then
   11431        # On Canadian crosses, CC_FOR_TARGET will have already been set
   11432        # by `configure', so we won't have an opportunity to add -Bgcc/
   11433        # to it.  This is right: we don't want to search that directory
   11434        # for binaries, but we want the header files in there, so add
   11435        # them explicitly.
   11436        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
   11437 
   11438        # Someone might think of using the pre-installed headers on
   11439        # Canadian crosses, in case the installed compiler is not fully
   11440        # compatible with the compiler being built.  In this case, it
   11441        # would be better to flag an error than risking having
   11442        # incompatible object files being constructed.  We can't
   11443        # guarantee that an error will be flagged, but let's hope the
   11444        # compiler will do it, when presented with incompatible header
   11445        # files.
   11446      fi
   11447    fi
   11448 
   11449    case "${target}-${is_cross_compiler}" in
   11450    i[3456789]86-*-linux*-no)
   11451       # Here host == target, so we don't need to build gcc,
   11452       # so we don't want to discard standard headers.
   11453       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
   11454       ;;
   11455    *)
   11456       # If we're building newlib, use its generic headers last, but search
   11457       # for any libc-related directories first (so make it the last -B
   11458       # switch).
   11459       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
   11460 
   11461       # If we're building libgloss, find the startup file, simulator library
   11462       # and linker script.
   11463       case " $target_configdirs " in
   11464 	*" libgloss "*)
   11465 	# Look for startup file, simulator library and maybe linker script.
   11466 	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
   11467 	# Look for libnosys.a in case the target needs it.
   11468 	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
   11469 	# Most targets have the linker script in the source directory.
   11470 	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
   11471 	;;
   11472       esac
   11473       ;;
   11474    esac
   11475    ;;
   11476   esac
   11477   ;;
   11478 esac
   11479 
   11480 case "$target" in
   11481   x86_64-*mingw* | *-w64-mingw*)
   11482   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
   11483   # however, use a symlink named 'mingw' in ${prefix} .
   11484     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
   11485     ;;
   11486   *-mingw*)
   11487   # MinGW can't be handled as Cygwin above since it does not use newlib.
   11488     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'
   11489     ;;
   11490 esac
   11491 
   11492 # Allow the user to override the flags for
   11493 # our build compiler if desired.
   11494 if test x"${build}" = x"${host}" ; then
   11495   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
   11496   CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
   11497   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
   11498   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
   11499 fi
   11500 
   11501 # On Canadian crosses, we'll be searching the right directories for
   11502 # the previously-installed cross compiler, so don't bother to add
   11503 # flags for directories within the install tree of the compiler
   11504 # being built; programs in there won't even run.
   11505 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
   11506   # Search for pre-installed headers if nothing else fits.
   11507   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
   11508 fi
   11509 
   11510 if test "x${use_gnu_ld}" = x &&
   11511    echo " ${configdirs} " | grep " ld " > /dev/null ; then
   11512   # Arrange for us to find uninstalled linker scripts.
   11513   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
   11514 fi
   11515 
   11516 # Search for other target-specific linker scripts and such.
   11517 case "${target}" in
   11518   mep*)
   11519     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
   11520     ;;
   11521   # The VxWorks support for shared libraries is getting in
   11522   # incrementally.  Make sure it doesn't get activated implicitly:
   11523   *vxworks*)
   11524     if test "${enable_shared-unset}" = unset ; then
   11525       enable_shared=no
   11526       # So the build of libraries knows ...
   11527       target_configargs="${target_configargs} --disable-shared"
   11528       # So gcc knows ...
   11529       host_configargs="${host_configargs} --disable-shared"
   11530     fi
   11531     ;;
   11532 esac
   11533 
   11534 # Makefile fragments.
   11535 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
   11536 do
   11537   eval fragval=\$$frag
   11538   if test $fragval != /dev/null; then
   11539     eval $frag=${srcdir}/$fragval
   11540   fi
   11541 done
   11542 
   11543 
   11544 
   11545 
   11546 
   11547 # Miscellanea: directories, flags, etc.
   11548 
   11549 
   11550 
   11551 
   11552 
   11553 
   11554 
   11555 
   11556 # Build module lists & subconfigure args.
   11557 
   11558 
   11559 
   11560 # Host module lists & subconfigure args.
   11561 
   11562 
   11563 
   11564 
   11565 # Target module lists & subconfigure args.
   11566 
   11567 
   11568 
   11569 # Build tools.
   11570 
   11571 
   11572 
   11573 
   11574 
   11575 
   11576 
   11577 
   11578 
   11579 
   11580 
   11581 
   11582 
   11583 
   11584 
   11585 
   11586 
   11587 
   11588 
   11589 
   11590 # Generate default definitions for YACC, M4, LEX and other programs that run
   11591 # on the build machine.  These are used if the Makefile can't locate these
   11592 # programs in objdir.
   11593 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
   11594 
   11595 for ac_prog in 'bison -y' byacc yacc
   11596 do
   11597   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11598 set dummy $ac_prog; ac_word=$2
   11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11600 $as_echo_n "checking for $ac_word... " >&6; }
   11601 if ${ac_cv_prog_YACC+:} false; then :
   11602   $as_echo_n "(cached) " >&6
   11603 else
   11604   if test -n "$YACC"; then
   11605   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   11606 else
   11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11608 for as_dir in $PATH
   11609 do
   11610   IFS=$as_save_IFS
   11611   test -z "$as_dir" && as_dir=.
   11612     for ac_exec_ext in '' $ac_executable_extensions; do
   11613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11614     ac_cv_prog_YACC="$ac_prog"
   11615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11616     break 2
   11617   fi
   11618 done
   11619   done
   11620 IFS=$as_save_IFS
   11621 
   11622 fi
   11623 fi
   11624 YACC=$ac_cv_prog_YACC
   11625 if test -n "$YACC"; then
   11626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   11627 $as_echo "$YACC" >&6; }
   11628 else
   11629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11630 $as_echo "no" >&6; }
   11631 fi
   11632 
   11633 
   11634   test -n "$YACC" && break
   11635 done
   11636 test -n "$YACC" || YACC="$MISSING bison -y"
   11637 
   11638 case " $build_configdirs " in
   11639   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
   11640 esac
   11641 
   11642 for ac_prog in bison
   11643 do
   11644   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11645 set dummy $ac_prog; ac_word=$2
   11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11647 $as_echo_n "checking for $ac_word... " >&6; }
   11648 if ${ac_cv_prog_BISON+:} false; then :
   11649   $as_echo_n "(cached) " >&6
   11650 else
   11651   if test -n "$BISON"; then
   11652   ac_cv_prog_BISON="$BISON" # Let the user override the test.
   11653 else
   11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11655 for as_dir in $PATH
   11656 do
   11657   IFS=$as_save_IFS
   11658   test -z "$as_dir" && as_dir=.
   11659     for ac_exec_ext in '' $ac_executable_extensions; do
   11660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11661     ac_cv_prog_BISON="$ac_prog"
   11662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11663     break 2
   11664   fi
   11665 done
   11666   done
   11667 IFS=$as_save_IFS
   11668 
   11669 fi
   11670 fi
   11671 BISON=$ac_cv_prog_BISON
   11672 if test -n "$BISON"; then
   11673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
   11674 $as_echo "$BISON" >&6; }
   11675 else
   11676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11677 $as_echo "no" >&6; }
   11678 fi
   11679 
   11680 
   11681   test -n "$BISON" && break
   11682 done
   11683 test -n "$BISON" || BISON="$MISSING bison"
   11684 
   11685 case " $build_configdirs " in
   11686   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
   11687 esac
   11688 
   11689 for ac_prog in gm4 gnum4 m4
   11690 do
   11691   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11692 set dummy $ac_prog; ac_word=$2
   11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11694 $as_echo_n "checking for $ac_word... " >&6; }
   11695 if ${ac_cv_prog_M4+:} false; then :
   11696   $as_echo_n "(cached) " >&6
   11697 else
   11698   if test -n "$M4"; then
   11699   ac_cv_prog_M4="$M4" # Let the user override the test.
   11700 else
   11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11702 for as_dir in $PATH
   11703 do
   11704   IFS=$as_save_IFS
   11705   test -z "$as_dir" && as_dir=.
   11706     for ac_exec_ext in '' $ac_executable_extensions; do
   11707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11708     ac_cv_prog_M4="$ac_prog"
   11709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11710     break 2
   11711   fi
   11712 done
   11713   done
   11714 IFS=$as_save_IFS
   11715 
   11716 fi
   11717 fi
   11718 M4=$ac_cv_prog_M4
   11719 if test -n "$M4"; then
   11720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
   11721 $as_echo "$M4" >&6; }
   11722 else
   11723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11724 $as_echo "no" >&6; }
   11725 fi
   11726 
   11727 
   11728   test -n "$M4" && break
   11729 done
   11730 test -n "$M4" || M4="$MISSING m4"
   11731 
   11732 case " $build_configdirs " in
   11733   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
   11734 esac
   11735 
   11736 for ac_prog in flex lex
   11737 do
   11738   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11739 set dummy $ac_prog; ac_word=$2
   11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11741 $as_echo_n "checking for $ac_word... " >&6; }
   11742 if ${ac_cv_prog_LEX+:} false; then :
   11743   $as_echo_n "(cached) " >&6
   11744 else
   11745   if test -n "$LEX"; then
   11746   ac_cv_prog_LEX="$LEX" # Let the user override the test.
   11747 else
   11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11749 for as_dir in $PATH
   11750 do
   11751   IFS=$as_save_IFS
   11752   test -z "$as_dir" && as_dir=.
   11753     for ac_exec_ext in '' $ac_executable_extensions; do
   11754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11755     ac_cv_prog_LEX="$ac_prog"
   11756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11757     break 2
   11758   fi
   11759 done
   11760   done
   11761 IFS=$as_save_IFS
   11762 
   11763 fi
   11764 fi
   11765 LEX=$ac_cv_prog_LEX
   11766 if test -n "$LEX"; then
   11767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
   11768 $as_echo "$LEX" >&6; }
   11769 else
   11770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11771 $as_echo "no" >&6; }
   11772 fi
   11773 
   11774 
   11775   test -n "$LEX" && break
   11776 done
   11777 test -n "$LEX" || LEX="$MISSING flex"
   11778 
   11779 case " $build_configdirs " in
   11780   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
   11781   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
   11782 esac
   11783 
   11784 for ac_prog in flex
   11785 do
   11786   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11787 set dummy $ac_prog; ac_word=$2
   11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11789 $as_echo_n "checking for $ac_word... " >&6; }
   11790 if ${ac_cv_prog_FLEX+:} false; then :
   11791   $as_echo_n "(cached) " >&6
   11792 else
   11793   if test -n "$FLEX"; then
   11794   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
   11795 else
   11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11797 for as_dir in $PATH
   11798 do
   11799   IFS=$as_save_IFS
   11800   test -z "$as_dir" && as_dir=.
   11801     for ac_exec_ext in '' $ac_executable_extensions; do
   11802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11803     ac_cv_prog_FLEX="$ac_prog"
   11804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11805     break 2
   11806   fi
   11807 done
   11808   done
   11809 IFS=$as_save_IFS
   11810 
   11811 fi
   11812 fi
   11813 FLEX=$ac_cv_prog_FLEX
   11814 if test -n "$FLEX"; then
   11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
   11816 $as_echo "$FLEX" >&6; }
   11817 else
   11818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11819 $as_echo "no" >&6; }
   11820 fi
   11821 
   11822 
   11823   test -n "$FLEX" && break
   11824 done
   11825 test -n "$FLEX" || FLEX="$MISSING flex"
   11826 
   11827 case " $build_configdirs " in
   11828   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
   11829 esac
   11830 
   11831 for ac_prog in makeinfo
   11832 do
   11833   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11834 set dummy $ac_prog; ac_word=$2
   11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11836 $as_echo_n "checking for $ac_word... " >&6; }
   11837 if ${ac_cv_prog_MAKEINFO+:} false; then :
   11838   $as_echo_n "(cached) " >&6
   11839 else
   11840   if test -n "$MAKEINFO"; then
   11841   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
   11842 else
   11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11844 for as_dir in $PATH
   11845 do
   11846   IFS=$as_save_IFS
   11847   test -z "$as_dir" && as_dir=.
   11848     for ac_exec_ext in '' $ac_executable_extensions; do
   11849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11850     ac_cv_prog_MAKEINFO="$ac_prog"
   11851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11852     break 2
   11853   fi
   11854 done
   11855   done
   11856 IFS=$as_save_IFS
   11857 
   11858 fi
   11859 fi
   11860 MAKEINFO=$ac_cv_prog_MAKEINFO
   11861 if test -n "$MAKEINFO"; then
   11862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
   11863 $as_echo "$MAKEINFO" >&6; }
   11864 else
   11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11866 $as_echo "no" >&6; }
   11867 fi
   11868 
   11869 
   11870   test -n "$MAKEINFO" && break
   11871 done
   11872 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
   11873 
   11874 case " $build_configdirs " in
   11875   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
   11876   *)
   11877 
   11878     # For an installed makeinfo, we require it to be from texinfo 4.7 or
   11879     # higher, else we use the "missing" dummy.
   11880     if ${MAKEINFO} --version \
   11881        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
   11882       :
   11883     else
   11884       MAKEINFO="$MISSING makeinfo"
   11885     fi
   11886     ;;
   11887 
   11888 esac
   11889 
   11890 # FIXME: expect and dejagnu may become build tools?
   11891 
   11892 for ac_prog in expect
   11893 do
   11894   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11895 set dummy $ac_prog; ac_word=$2
   11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11897 $as_echo_n "checking for $ac_word... " >&6; }
   11898 if ${ac_cv_prog_EXPECT+:} false; then :
   11899   $as_echo_n "(cached) " >&6
   11900 else
   11901   if test -n "$EXPECT"; then
   11902   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
   11903 else
   11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11905 for as_dir in $PATH
   11906 do
   11907   IFS=$as_save_IFS
   11908   test -z "$as_dir" && as_dir=.
   11909     for ac_exec_ext in '' $ac_executable_extensions; do
   11910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11911     ac_cv_prog_EXPECT="$ac_prog"
   11912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11913     break 2
   11914   fi
   11915 done
   11916   done
   11917 IFS=$as_save_IFS
   11918 
   11919 fi
   11920 fi
   11921 EXPECT=$ac_cv_prog_EXPECT
   11922 if test -n "$EXPECT"; then
   11923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
   11924 $as_echo "$EXPECT" >&6; }
   11925 else
   11926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11927 $as_echo "no" >&6; }
   11928 fi
   11929 
   11930 
   11931   test -n "$EXPECT" && break
   11932 done
   11933 test -n "$EXPECT" || EXPECT="expect"
   11934 
   11935 case " $configdirs " in
   11936   *" expect "*)
   11937     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
   11938     ;;
   11939 esac
   11940 
   11941 for ac_prog in runtest
   11942 do
   11943   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11944 set dummy $ac_prog; ac_word=$2
   11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11946 $as_echo_n "checking for $ac_word... " >&6; }
   11947 if ${ac_cv_prog_RUNTEST+:} false; then :
   11948   $as_echo_n "(cached) " >&6
   11949 else
   11950   if test -n "$RUNTEST"; then
   11951   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
   11952 else
   11953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11954 for as_dir in $PATH
   11955 do
   11956   IFS=$as_save_IFS
   11957   test -z "$as_dir" && as_dir=.
   11958     for ac_exec_ext in '' $ac_executable_extensions; do
   11959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11960     ac_cv_prog_RUNTEST="$ac_prog"
   11961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11962     break 2
   11963   fi
   11964 done
   11965   done
   11966 IFS=$as_save_IFS
   11967 
   11968 fi
   11969 fi
   11970 RUNTEST=$ac_cv_prog_RUNTEST
   11971 if test -n "$RUNTEST"; then
   11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
   11973 $as_echo "$RUNTEST" >&6; }
   11974 else
   11975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11976 $as_echo "no" >&6; }
   11977 fi
   11978 
   11979 
   11980   test -n "$RUNTEST" && break
   11981 done
   11982 test -n "$RUNTEST" || RUNTEST="runtest"
   11983 
   11984 case " $configdirs " in
   11985   *" dejagnu "*)
   11986     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
   11987     ;;
   11988 esac
   11989 
   11990 
   11991 # Host tools.
   11992 ncn_tool_prefix=
   11993 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
   11994 ncn_target_tool_prefix=
   11995 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
   11996 
   11997 
   11998 
   11999 if test -n "$AR"; then
   12000   ac_cv_prog_AR=$AR
   12001 elif test -n "$ac_cv_prog_AR"; then
   12002   AR=$ac_cv_prog_AR
   12003 fi
   12004 
   12005 if test -n "$ac_cv_prog_AR"; then
   12006   for ncn_progname in ar; do
   12007     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12008 set dummy ${ncn_progname}; ac_word=$2
   12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12010 $as_echo_n "checking for $ac_word... " >&6; }
   12011 if ${ac_cv_prog_AR+:} false; then :
   12012   $as_echo_n "(cached) " >&6
   12013 else
   12014   if test -n "$AR"; then
   12015   ac_cv_prog_AR="$AR" # Let the user override the test.
   12016 else
   12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12018 for as_dir in $PATH
   12019 do
   12020   IFS=$as_save_IFS
   12021   test -z "$as_dir" && as_dir=.
   12022     for ac_exec_ext in '' $ac_executable_extensions; do
   12023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12024     ac_cv_prog_AR="${ncn_progname}"
   12025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12026     break 2
   12027   fi
   12028 done
   12029   done
   12030 IFS=$as_save_IFS
   12031 
   12032 fi
   12033 fi
   12034 AR=$ac_cv_prog_AR
   12035 if test -n "$AR"; then
   12036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12037 $as_echo "$AR" >&6; }
   12038 else
   12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12040 $as_echo "no" >&6; }
   12041 fi
   12042 
   12043 
   12044   done
   12045 fi
   12046 
   12047 for ncn_progname in ar; do
   12048   if test -n "$ncn_tool_prefix"; then
   12049     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12050 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12052 $as_echo_n "checking for $ac_word... " >&6; }
   12053 if ${ac_cv_prog_AR+:} false; then :
   12054   $as_echo_n "(cached) " >&6
   12055 else
   12056   if test -n "$AR"; then
   12057   ac_cv_prog_AR="$AR" # Let the user override the test.
   12058 else
   12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12060 for as_dir in $PATH
   12061 do
   12062   IFS=$as_save_IFS
   12063   test -z "$as_dir" && as_dir=.
   12064     for ac_exec_ext in '' $ac_executable_extensions; do
   12065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12066     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
   12067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12068     break 2
   12069   fi
   12070 done
   12071   done
   12072 IFS=$as_save_IFS
   12073 
   12074 fi
   12075 fi
   12076 AR=$ac_cv_prog_AR
   12077 if test -n "$AR"; then
   12078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12079 $as_echo "$AR" >&6; }
   12080 else
   12081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12082 $as_echo "no" >&6; }
   12083 fi
   12084 
   12085 
   12086   fi
   12087   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
   12088     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12089 set dummy ${ncn_progname}; ac_word=$2
   12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12091 $as_echo_n "checking for $ac_word... " >&6; }
   12092 if ${ac_cv_prog_AR+:} false; then :
   12093   $as_echo_n "(cached) " >&6
   12094 else
   12095   if test -n "$AR"; then
   12096   ac_cv_prog_AR="$AR" # Let the user override the test.
   12097 else
   12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12099 for as_dir in $PATH
   12100 do
   12101   IFS=$as_save_IFS
   12102   test -z "$as_dir" && as_dir=.
   12103     for ac_exec_ext in '' $ac_executable_extensions; do
   12104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12105     ac_cv_prog_AR="${ncn_progname}"
   12106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12107     break 2
   12108   fi
   12109 done
   12110   done
   12111 IFS=$as_save_IFS
   12112 
   12113 fi
   12114 fi
   12115 AR=$ac_cv_prog_AR
   12116 if test -n "$AR"; then
   12117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12118 $as_echo "$AR" >&6; }
   12119 else
   12120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12121 $as_echo "no" >&6; }
   12122 fi
   12123 
   12124 
   12125   fi
   12126   test -n "$ac_cv_prog_AR" && break
   12127 done
   12128 
   12129 if test -z "$ac_cv_prog_AR" ; then
   12130   set dummy ar
   12131   if test $build = $host ; then
   12132     AR="$2"
   12133   else
   12134     AR="${ncn_tool_prefix}$2"
   12135   fi
   12136 fi
   12137 
   12138 
   12139 
   12140 if test -n "$AS"; then
   12141   ac_cv_prog_AS=$AS
   12142 elif test -n "$ac_cv_prog_AS"; then
   12143   AS=$ac_cv_prog_AS
   12144 fi
   12145 
   12146 if test -n "$ac_cv_prog_AS"; then
   12147   for ncn_progname in as; do
   12148     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12149 set dummy ${ncn_progname}; ac_word=$2
   12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12151 $as_echo_n "checking for $ac_word... " >&6; }
   12152 if ${ac_cv_prog_AS+:} false; then :
   12153   $as_echo_n "(cached) " >&6
   12154 else
   12155   if test -n "$AS"; then
   12156   ac_cv_prog_AS="$AS" # Let the user override the test.
   12157 else
   12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12159 for as_dir in $PATH
   12160 do
   12161   IFS=$as_save_IFS
   12162   test -z "$as_dir" && as_dir=.
   12163     for ac_exec_ext in '' $ac_executable_extensions; do
   12164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12165     ac_cv_prog_AS="${ncn_progname}"
   12166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12167     break 2
   12168   fi
   12169 done
   12170   done
   12171 IFS=$as_save_IFS
   12172 
   12173 fi
   12174 fi
   12175 AS=$ac_cv_prog_AS
   12176 if test -n "$AS"; then
   12177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
   12178 $as_echo "$AS" >&6; }
   12179 else
   12180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12181 $as_echo "no" >&6; }
   12182 fi
   12183 
   12184 
   12185   done
   12186 fi
   12187 
   12188 for ncn_progname in as; do
   12189   if test -n "$ncn_tool_prefix"; then
   12190     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12191 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12193 $as_echo_n "checking for $ac_word... " >&6; }
   12194 if ${ac_cv_prog_AS+:} false; then :
   12195   $as_echo_n "(cached) " >&6
   12196 else
   12197   if test -n "$AS"; then
   12198   ac_cv_prog_AS="$AS" # Let the user override the test.
   12199 else
   12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12201 for as_dir in $PATH
   12202 do
   12203   IFS=$as_save_IFS
   12204   test -z "$as_dir" && as_dir=.
   12205     for ac_exec_ext in '' $ac_executable_extensions; do
   12206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12207     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
   12208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12209     break 2
   12210   fi
   12211 done
   12212   done
   12213 IFS=$as_save_IFS
   12214 
   12215 fi
   12216 fi
   12217 AS=$ac_cv_prog_AS
   12218 if test -n "$AS"; then
   12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
   12220 $as_echo "$AS" >&6; }
   12221 else
   12222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12223 $as_echo "no" >&6; }
   12224 fi
   12225 
   12226 
   12227   fi
   12228   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
   12229     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12230 set dummy ${ncn_progname}; ac_word=$2
   12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12232 $as_echo_n "checking for $ac_word... " >&6; }
   12233 if ${ac_cv_prog_AS+:} false; then :
   12234   $as_echo_n "(cached) " >&6
   12235 else
   12236   if test -n "$AS"; then
   12237   ac_cv_prog_AS="$AS" # Let the user override the test.
   12238 else
   12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12240 for as_dir in $PATH
   12241 do
   12242   IFS=$as_save_IFS
   12243   test -z "$as_dir" && as_dir=.
   12244     for ac_exec_ext in '' $ac_executable_extensions; do
   12245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12246     ac_cv_prog_AS="${ncn_progname}"
   12247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12248     break 2
   12249   fi
   12250 done
   12251   done
   12252 IFS=$as_save_IFS
   12253 
   12254 fi
   12255 fi
   12256 AS=$ac_cv_prog_AS
   12257 if test -n "$AS"; then
   12258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
   12259 $as_echo "$AS" >&6; }
   12260 else
   12261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12262 $as_echo "no" >&6; }
   12263 fi
   12264 
   12265 
   12266   fi
   12267   test -n "$ac_cv_prog_AS" && break
   12268 done
   12269 
   12270 if test -z "$ac_cv_prog_AS" ; then
   12271   set dummy as
   12272   if test $build = $host ; then
   12273     AS="$2"
   12274   else
   12275     AS="${ncn_tool_prefix}$2"
   12276   fi
   12277 fi
   12278 
   12279 
   12280 
   12281 if test -n "$DLLTOOL"; then
   12282   ac_cv_prog_DLLTOOL=$DLLTOOL
   12283 elif test -n "$ac_cv_prog_DLLTOOL"; then
   12284   DLLTOOL=$ac_cv_prog_DLLTOOL
   12285 fi
   12286 
   12287 if test -n "$ac_cv_prog_DLLTOOL"; then
   12288   for ncn_progname in dlltool; do
   12289     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12290 set dummy ${ncn_progname}; ac_word=$2
   12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12292 $as_echo_n "checking for $ac_word... " >&6; }
   12293 if ${ac_cv_prog_DLLTOOL+:} false; then :
   12294   $as_echo_n "(cached) " >&6
   12295 else
   12296   if test -n "$DLLTOOL"; then
   12297   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   12298 else
   12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12300 for as_dir in $PATH
   12301 do
   12302   IFS=$as_save_IFS
   12303   test -z "$as_dir" && as_dir=.
   12304     for ac_exec_ext in '' $ac_executable_extensions; do
   12305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12306     ac_cv_prog_DLLTOOL="${ncn_progname}"
   12307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12308     break 2
   12309   fi
   12310 done
   12311   done
   12312 IFS=$as_save_IFS
   12313 
   12314 fi
   12315 fi
   12316 DLLTOOL=$ac_cv_prog_DLLTOOL
   12317 if test -n "$DLLTOOL"; then
   12318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   12319 $as_echo "$DLLTOOL" >&6; }
   12320 else
   12321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12322 $as_echo "no" >&6; }
   12323 fi
   12324 
   12325 
   12326   done
   12327 fi
   12328 
   12329 for ncn_progname in dlltool; do
   12330   if test -n "$ncn_tool_prefix"; then
   12331     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12332 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12334 $as_echo_n "checking for $ac_word... " >&6; }
   12335 if ${ac_cv_prog_DLLTOOL+:} false; then :
   12336   $as_echo_n "(cached) " >&6
   12337 else
   12338   if test -n "$DLLTOOL"; then
   12339   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   12340 else
   12341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12342 for as_dir in $PATH
   12343 do
   12344   IFS=$as_save_IFS
   12345   test -z "$as_dir" && as_dir=.
   12346     for ac_exec_ext in '' $ac_executable_extensions; do
   12347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12348     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
   12349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12350     break 2
   12351   fi
   12352 done
   12353   done
   12354 IFS=$as_save_IFS
   12355 
   12356 fi
   12357 fi
   12358 DLLTOOL=$ac_cv_prog_DLLTOOL
   12359 if test -n "$DLLTOOL"; then
   12360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   12361 $as_echo "$DLLTOOL" >&6; }
   12362 else
   12363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12364 $as_echo "no" >&6; }
   12365 fi
   12366 
   12367 
   12368   fi
   12369   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
   12370     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12371 set dummy ${ncn_progname}; ac_word=$2
   12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12373 $as_echo_n "checking for $ac_word... " >&6; }
   12374 if ${ac_cv_prog_DLLTOOL+:} false; then :
   12375   $as_echo_n "(cached) " >&6
   12376 else
   12377   if test -n "$DLLTOOL"; then
   12378   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   12379 else
   12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12381 for as_dir in $PATH
   12382 do
   12383   IFS=$as_save_IFS
   12384   test -z "$as_dir" && as_dir=.
   12385     for ac_exec_ext in '' $ac_executable_extensions; do
   12386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12387     ac_cv_prog_DLLTOOL="${ncn_progname}"
   12388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12389     break 2
   12390   fi
   12391 done
   12392   done
   12393 IFS=$as_save_IFS
   12394 
   12395 fi
   12396 fi
   12397 DLLTOOL=$ac_cv_prog_DLLTOOL
   12398 if test -n "$DLLTOOL"; then
   12399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   12400 $as_echo "$DLLTOOL" >&6; }
   12401 else
   12402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12403 $as_echo "no" >&6; }
   12404 fi
   12405 
   12406 
   12407   fi
   12408   test -n "$ac_cv_prog_DLLTOOL" && break
   12409 done
   12410 
   12411 if test -z "$ac_cv_prog_DLLTOOL" ; then
   12412   set dummy dlltool
   12413   if test $build = $host ; then
   12414     DLLTOOL="$2"
   12415   else
   12416     DLLTOOL="${ncn_tool_prefix}$2"
   12417   fi
   12418 fi
   12419 
   12420 
   12421 
   12422 if test -n "$DSYMUTIL"; then
   12423   ac_cv_prog_DSYMUTIL=$DSYMUTIL
   12424 elif test -n "$ac_cv_prog_DSYMUTIL"; then
   12425   DSYMUTIL=$ac_cv_prog_DSYMUTIL
   12426 fi
   12427 
   12428 if test -n "$ac_cv_prog_DSYMUTIL"; then
   12429   for ncn_progname in dsymutil; do
   12430     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12431 set dummy ${ncn_progname}; ac_word=$2
   12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12433 $as_echo_n "checking for $ac_word... " >&6; }
   12434 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   12435   $as_echo_n "(cached) " >&6
   12436 else
   12437   if test -n "$DSYMUTIL"; then
   12438   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   12439 else
   12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12441 for as_dir in $PATH
   12442 do
   12443   IFS=$as_save_IFS
   12444   test -z "$as_dir" && as_dir=.
   12445     for ac_exec_ext in '' $ac_executable_extensions; do
   12446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12447     ac_cv_prog_DSYMUTIL="${ncn_progname}"
   12448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12449     break 2
   12450   fi
   12451 done
   12452   done
   12453 IFS=$as_save_IFS
   12454 
   12455 fi
   12456 fi
   12457 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   12458 if test -n "$DSYMUTIL"; then
   12459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   12460 $as_echo "$DSYMUTIL" >&6; }
   12461 else
   12462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12463 $as_echo "no" >&6; }
   12464 fi
   12465 
   12466 
   12467   done
   12468 fi
   12469 
   12470 for ncn_progname in dsymutil; do
   12471   if test -n "$ncn_tool_prefix"; then
   12472     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12473 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12475 $as_echo_n "checking for $ac_word... " >&6; }
   12476 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   12477   $as_echo_n "(cached) " >&6
   12478 else
   12479   if test -n "$DSYMUTIL"; then
   12480   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   12481 else
   12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12483 for as_dir in $PATH
   12484 do
   12485   IFS=$as_save_IFS
   12486   test -z "$as_dir" && as_dir=.
   12487     for ac_exec_ext in '' $ac_executable_extensions; do
   12488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12489     ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
   12490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12491     break 2
   12492   fi
   12493 done
   12494   done
   12495 IFS=$as_save_IFS
   12496 
   12497 fi
   12498 fi
   12499 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   12500 if test -n "$DSYMUTIL"; then
   12501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   12502 $as_echo "$DSYMUTIL" >&6; }
   12503 else
   12504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12505 $as_echo "no" >&6; }
   12506 fi
   12507 
   12508 
   12509   fi
   12510   if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
   12511     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12512 set dummy ${ncn_progname}; ac_word=$2
   12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12514 $as_echo_n "checking for $ac_word... " >&6; }
   12515 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   12516   $as_echo_n "(cached) " >&6
   12517 else
   12518   if test -n "$DSYMUTIL"; then
   12519   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   12520 else
   12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12522 for as_dir in $PATH
   12523 do
   12524   IFS=$as_save_IFS
   12525   test -z "$as_dir" && as_dir=.
   12526     for ac_exec_ext in '' $ac_executable_extensions; do
   12527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12528     ac_cv_prog_DSYMUTIL="${ncn_progname}"
   12529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12530     break 2
   12531   fi
   12532 done
   12533   done
   12534 IFS=$as_save_IFS
   12535 
   12536 fi
   12537 fi
   12538 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   12539 if test -n "$DSYMUTIL"; then
   12540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   12541 $as_echo "$DSYMUTIL" >&6; }
   12542 else
   12543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12544 $as_echo "no" >&6; }
   12545 fi
   12546 
   12547 
   12548   fi
   12549   test -n "$ac_cv_prog_DSYMUTIL" && break
   12550 done
   12551 
   12552 if test -z "$ac_cv_prog_DSYMUTIL" ; then
   12553   set dummy dsymutil
   12554   if test $build = $host ; then
   12555     DSYMUTIL="$2"
   12556   else
   12557     DSYMUTIL="${ncn_tool_prefix}$2"
   12558   fi
   12559 fi
   12560 
   12561 
   12562 
   12563 if test -n "$LD"; then
   12564   ac_cv_prog_LD=$LD
   12565 elif test -n "$ac_cv_prog_LD"; then
   12566   LD=$ac_cv_prog_LD
   12567 fi
   12568 
   12569 if test -n "$ac_cv_prog_LD"; then
   12570   for ncn_progname in ld; do
   12571     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12572 set dummy ${ncn_progname}; ac_word=$2
   12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12574 $as_echo_n "checking for $ac_word... " >&6; }
   12575 if ${ac_cv_prog_LD+:} false; then :
   12576   $as_echo_n "(cached) " >&6
   12577 else
   12578   if test -n "$LD"; then
   12579   ac_cv_prog_LD="$LD" # Let the user override the test.
   12580 else
   12581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12582 for as_dir in $PATH
   12583 do
   12584   IFS=$as_save_IFS
   12585   test -z "$as_dir" && as_dir=.
   12586     for ac_exec_ext in '' $ac_executable_extensions; do
   12587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12588     ac_cv_prog_LD="${ncn_progname}"
   12589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12590     break 2
   12591   fi
   12592 done
   12593   done
   12594 IFS=$as_save_IFS
   12595 
   12596 fi
   12597 fi
   12598 LD=$ac_cv_prog_LD
   12599 if test -n "$LD"; then
   12600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   12601 $as_echo "$LD" >&6; }
   12602 else
   12603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12604 $as_echo "no" >&6; }
   12605 fi
   12606 
   12607 
   12608   done
   12609 fi
   12610 
   12611 for ncn_progname in ld; do
   12612   if test -n "$ncn_tool_prefix"; then
   12613     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12614 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12616 $as_echo_n "checking for $ac_word... " >&6; }
   12617 if ${ac_cv_prog_LD+:} false; then :
   12618   $as_echo_n "(cached) " >&6
   12619 else
   12620   if test -n "$LD"; then
   12621   ac_cv_prog_LD="$LD" # Let the user override the test.
   12622 else
   12623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12624 for as_dir in $PATH
   12625 do
   12626   IFS=$as_save_IFS
   12627   test -z "$as_dir" && as_dir=.
   12628     for ac_exec_ext in '' $ac_executable_extensions; do
   12629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12630     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
   12631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12632     break 2
   12633   fi
   12634 done
   12635   done
   12636 IFS=$as_save_IFS
   12637 
   12638 fi
   12639 fi
   12640 LD=$ac_cv_prog_LD
   12641 if test -n "$LD"; then
   12642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   12643 $as_echo "$LD" >&6; }
   12644 else
   12645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12646 $as_echo "no" >&6; }
   12647 fi
   12648 
   12649 
   12650   fi
   12651   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
   12652     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12653 set dummy ${ncn_progname}; ac_word=$2
   12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12655 $as_echo_n "checking for $ac_word... " >&6; }
   12656 if ${ac_cv_prog_LD+:} false; then :
   12657   $as_echo_n "(cached) " >&6
   12658 else
   12659   if test -n "$LD"; then
   12660   ac_cv_prog_LD="$LD" # Let the user override the test.
   12661 else
   12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12663 for as_dir in $PATH
   12664 do
   12665   IFS=$as_save_IFS
   12666   test -z "$as_dir" && as_dir=.
   12667     for ac_exec_ext in '' $ac_executable_extensions; do
   12668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12669     ac_cv_prog_LD="${ncn_progname}"
   12670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12671     break 2
   12672   fi
   12673 done
   12674   done
   12675 IFS=$as_save_IFS
   12676 
   12677 fi
   12678 fi
   12679 LD=$ac_cv_prog_LD
   12680 if test -n "$LD"; then
   12681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   12682 $as_echo "$LD" >&6; }
   12683 else
   12684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12685 $as_echo "no" >&6; }
   12686 fi
   12687 
   12688 
   12689   fi
   12690   test -n "$ac_cv_prog_LD" && break
   12691 done
   12692 
   12693 if test -z "$ac_cv_prog_LD" ; then
   12694   set dummy ld
   12695   if test $build = $host ; then
   12696     LD="$2"
   12697   else
   12698     LD="${ncn_tool_prefix}$2"
   12699   fi
   12700 fi
   12701 
   12702 
   12703 
   12704 if test -n "$LIPO"; then
   12705   ac_cv_prog_LIPO=$LIPO
   12706 elif test -n "$ac_cv_prog_LIPO"; then
   12707   LIPO=$ac_cv_prog_LIPO
   12708 fi
   12709 
   12710 if test -n "$ac_cv_prog_LIPO"; then
   12711   for ncn_progname in lipo; do
   12712     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12713 set dummy ${ncn_progname}; ac_word=$2
   12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12715 $as_echo_n "checking for $ac_word... " >&6; }
   12716 if ${ac_cv_prog_LIPO+:} false; then :
   12717   $as_echo_n "(cached) " >&6
   12718 else
   12719   if test -n "$LIPO"; then
   12720   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   12721 else
   12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12723 for as_dir in $PATH
   12724 do
   12725   IFS=$as_save_IFS
   12726   test -z "$as_dir" && as_dir=.
   12727     for ac_exec_ext in '' $ac_executable_extensions; do
   12728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12729     ac_cv_prog_LIPO="${ncn_progname}"
   12730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12731     break 2
   12732   fi
   12733 done
   12734   done
   12735 IFS=$as_save_IFS
   12736 
   12737 fi
   12738 fi
   12739 LIPO=$ac_cv_prog_LIPO
   12740 if test -n "$LIPO"; then
   12741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   12742 $as_echo "$LIPO" >&6; }
   12743 else
   12744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12745 $as_echo "no" >&6; }
   12746 fi
   12747 
   12748 
   12749   done
   12750 fi
   12751 
   12752 for ncn_progname in lipo; do
   12753   if test -n "$ncn_tool_prefix"; then
   12754     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12755 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12757 $as_echo_n "checking for $ac_word... " >&6; }
   12758 if ${ac_cv_prog_LIPO+:} false; then :
   12759   $as_echo_n "(cached) " >&6
   12760 else
   12761   if test -n "$LIPO"; then
   12762   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   12763 else
   12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12765 for as_dir in $PATH
   12766 do
   12767   IFS=$as_save_IFS
   12768   test -z "$as_dir" && as_dir=.
   12769     for ac_exec_ext in '' $ac_executable_extensions; do
   12770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12771     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
   12772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12773     break 2
   12774   fi
   12775 done
   12776   done
   12777 IFS=$as_save_IFS
   12778 
   12779 fi
   12780 fi
   12781 LIPO=$ac_cv_prog_LIPO
   12782 if test -n "$LIPO"; then
   12783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   12784 $as_echo "$LIPO" >&6; }
   12785 else
   12786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12787 $as_echo "no" >&6; }
   12788 fi
   12789 
   12790 
   12791   fi
   12792   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
   12793     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12794 set dummy ${ncn_progname}; ac_word=$2
   12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12796 $as_echo_n "checking for $ac_word... " >&6; }
   12797 if ${ac_cv_prog_LIPO+:} false; then :
   12798   $as_echo_n "(cached) " >&6
   12799 else
   12800   if test -n "$LIPO"; then
   12801   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   12802 else
   12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12804 for as_dir in $PATH
   12805 do
   12806   IFS=$as_save_IFS
   12807   test -z "$as_dir" && as_dir=.
   12808     for ac_exec_ext in '' $ac_executable_extensions; do
   12809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12810     ac_cv_prog_LIPO="${ncn_progname}"
   12811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12812     break 2
   12813   fi
   12814 done
   12815   done
   12816 IFS=$as_save_IFS
   12817 
   12818 fi
   12819 fi
   12820 LIPO=$ac_cv_prog_LIPO
   12821 if test -n "$LIPO"; then
   12822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   12823 $as_echo "$LIPO" >&6; }
   12824 else
   12825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12826 $as_echo "no" >&6; }
   12827 fi
   12828 
   12829 
   12830   fi
   12831   test -n "$ac_cv_prog_LIPO" && break
   12832 done
   12833 
   12834 if test -z "$ac_cv_prog_LIPO" ; then
   12835   set dummy lipo
   12836   if test $build = $host ; then
   12837     LIPO="$2"
   12838   else
   12839     LIPO="${ncn_tool_prefix}$2"
   12840   fi
   12841 fi
   12842 
   12843 
   12844 
   12845 if test -n "$NM"; then
   12846   ac_cv_prog_NM=$NM
   12847 elif test -n "$ac_cv_prog_NM"; then
   12848   NM=$ac_cv_prog_NM
   12849 fi
   12850 
   12851 if test -n "$ac_cv_prog_NM"; then
   12852   for ncn_progname in nm; do
   12853     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12854 set dummy ${ncn_progname}; ac_word=$2
   12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12856 $as_echo_n "checking for $ac_word... " >&6; }
   12857 if ${ac_cv_prog_NM+:} false; then :
   12858   $as_echo_n "(cached) " >&6
   12859 else
   12860   if test -n "$NM"; then
   12861   ac_cv_prog_NM="$NM" # Let the user override the test.
   12862 else
   12863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12864 for as_dir in $PATH
   12865 do
   12866   IFS=$as_save_IFS
   12867   test -z "$as_dir" && as_dir=.
   12868     for ac_exec_ext in '' $ac_executable_extensions; do
   12869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12870     ac_cv_prog_NM="${ncn_progname}"
   12871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12872     break 2
   12873   fi
   12874 done
   12875   done
   12876 IFS=$as_save_IFS
   12877 
   12878 fi
   12879 fi
   12880 NM=$ac_cv_prog_NM
   12881 if test -n "$NM"; then
   12882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
   12883 $as_echo "$NM" >&6; }
   12884 else
   12885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12886 $as_echo "no" >&6; }
   12887 fi
   12888 
   12889 
   12890   done
   12891 fi
   12892 
   12893 for ncn_progname in nm; do
   12894   if test -n "$ncn_tool_prefix"; then
   12895     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   12896 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12898 $as_echo_n "checking for $ac_word... " >&6; }
   12899 if ${ac_cv_prog_NM+:} false; then :
   12900   $as_echo_n "(cached) " >&6
   12901 else
   12902   if test -n "$NM"; then
   12903   ac_cv_prog_NM="$NM" # Let the user override the test.
   12904 else
   12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12906 for as_dir in $PATH
   12907 do
   12908   IFS=$as_save_IFS
   12909   test -z "$as_dir" && as_dir=.
   12910     for ac_exec_ext in '' $ac_executable_extensions; do
   12911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12912     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
   12913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12914     break 2
   12915   fi
   12916 done
   12917   done
   12918 IFS=$as_save_IFS
   12919 
   12920 fi
   12921 fi
   12922 NM=$ac_cv_prog_NM
   12923 if test -n "$NM"; then
   12924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
   12925 $as_echo "$NM" >&6; }
   12926 else
   12927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12928 $as_echo "no" >&6; }
   12929 fi
   12930 
   12931 
   12932   fi
   12933   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
   12934     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12935 set dummy ${ncn_progname}; ac_word=$2
   12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12937 $as_echo_n "checking for $ac_word... " >&6; }
   12938 if ${ac_cv_prog_NM+:} false; then :
   12939   $as_echo_n "(cached) " >&6
   12940 else
   12941   if test -n "$NM"; then
   12942   ac_cv_prog_NM="$NM" # Let the user override the test.
   12943 else
   12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12945 for as_dir in $PATH
   12946 do
   12947   IFS=$as_save_IFS
   12948   test -z "$as_dir" && as_dir=.
   12949     for ac_exec_ext in '' $ac_executable_extensions; do
   12950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12951     ac_cv_prog_NM="${ncn_progname}"
   12952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12953     break 2
   12954   fi
   12955 done
   12956   done
   12957 IFS=$as_save_IFS
   12958 
   12959 fi
   12960 fi
   12961 NM=$ac_cv_prog_NM
   12962 if test -n "$NM"; then
   12963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
   12964 $as_echo "$NM" >&6; }
   12965 else
   12966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12967 $as_echo "no" >&6; }
   12968 fi
   12969 
   12970 
   12971   fi
   12972   test -n "$ac_cv_prog_NM" && break
   12973 done
   12974 
   12975 if test -z "$ac_cv_prog_NM" ; then
   12976   set dummy nm
   12977   if test $build = $host ; then
   12978     NM="$2"
   12979   else
   12980     NM="${ncn_tool_prefix}$2"
   12981   fi
   12982 fi
   12983 
   12984 
   12985 
   12986 if test -n "$RANLIB"; then
   12987   ac_cv_prog_RANLIB=$RANLIB
   12988 elif test -n "$ac_cv_prog_RANLIB"; then
   12989   RANLIB=$ac_cv_prog_RANLIB
   12990 fi
   12991 
   12992 if test -n "$ac_cv_prog_RANLIB"; then
   12993   for ncn_progname in ranlib; do
   12994     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   12995 set dummy ${ncn_progname}; ac_word=$2
   12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12997 $as_echo_n "checking for $ac_word... " >&6; }
   12998 if ${ac_cv_prog_RANLIB+:} false; then :
   12999   $as_echo_n "(cached) " >&6
   13000 else
   13001   if test -n "$RANLIB"; then
   13002   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   13003 else
   13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13005 for as_dir in $PATH
   13006 do
   13007   IFS=$as_save_IFS
   13008   test -z "$as_dir" && as_dir=.
   13009     for ac_exec_ext in '' $ac_executable_extensions; do
   13010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13011     ac_cv_prog_RANLIB="${ncn_progname}"
   13012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13013     break 2
   13014   fi
   13015 done
   13016   done
   13017 IFS=$as_save_IFS
   13018 
   13019 fi
   13020 fi
   13021 RANLIB=$ac_cv_prog_RANLIB
   13022 if test -n "$RANLIB"; then
   13023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   13024 $as_echo "$RANLIB" >&6; }
   13025 else
   13026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13027 $as_echo "no" >&6; }
   13028 fi
   13029 
   13030 
   13031   done
   13032 fi
   13033 
   13034 for ncn_progname in ranlib; do
   13035   if test -n "$ncn_tool_prefix"; then
   13036     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13037 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13039 $as_echo_n "checking for $ac_word... " >&6; }
   13040 if ${ac_cv_prog_RANLIB+:} false; then :
   13041   $as_echo_n "(cached) " >&6
   13042 else
   13043   if test -n "$RANLIB"; then
   13044   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   13045 else
   13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13047 for as_dir in $PATH
   13048 do
   13049   IFS=$as_save_IFS
   13050   test -z "$as_dir" && as_dir=.
   13051     for ac_exec_ext in '' $ac_executable_extensions; do
   13052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13053     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
   13054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13055     break 2
   13056   fi
   13057 done
   13058   done
   13059 IFS=$as_save_IFS
   13060 
   13061 fi
   13062 fi
   13063 RANLIB=$ac_cv_prog_RANLIB
   13064 if test -n "$RANLIB"; then
   13065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   13066 $as_echo "$RANLIB" >&6; }
   13067 else
   13068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13069 $as_echo "no" >&6; }
   13070 fi
   13071 
   13072 
   13073   fi
   13074   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
   13075     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13076 set dummy ${ncn_progname}; ac_word=$2
   13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13078 $as_echo_n "checking for $ac_word... " >&6; }
   13079 if ${ac_cv_prog_RANLIB+:} false; then :
   13080   $as_echo_n "(cached) " >&6
   13081 else
   13082   if test -n "$RANLIB"; then
   13083   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   13084 else
   13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13086 for as_dir in $PATH
   13087 do
   13088   IFS=$as_save_IFS
   13089   test -z "$as_dir" && as_dir=.
   13090     for ac_exec_ext in '' $ac_executable_extensions; do
   13091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13092     ac_cv_prog_RANLIB="${ncn_progname}"
   13093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13094     break 2
   13095   fi
   13096 done
   13097   done
   13098 IFS=$as_save_IFS
   13099 
   13100 fi
   13101 fi
   13102 RANLIB=$ac_cv_prog_RANLIB
   13103 if test -n "$RANLIB"; then
   13104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   13105 $as_echo "$RANLIB" >&6; }
   13106 else
   13107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13108 $as_echo "no" >&6; }
   13109 fi
   13110 
   13111 
   13112   fi
   13113   test -n "$ac_cv_prog_RANLIB" && break
   13114 done
   13115 
   13116 if test -z "$ac_cv_prog_RANLIB" ; then
   13117   RANLIB="true"
   13118 fi
   13119 
   13120 
   13121 
   13122 if test -n "$STRIP"; then
   13123   ac_cv_prog_STRIP=$STRIP
   13124 elif test -n "$ac_cv_prog_STRIP"; then
   13125   STRIP=$ac_cv_prog_STRIP
   13126 fi
   13127 
   13128 if test -n "$ac_cv_prog_STRIP"; then
   13129   for ncn_progname in strip; do
   13130     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13131 set dummy ${ncn_progname}; ac_word=$2
   13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13133 $as_echo_n "checking for $ac_word... " >&6; }
   13134 if ${ac_cv_prog_STRIP+:} false; then :
   13135   $as_echo_n "(cached) " >&6
   13136 else
   13137   if test -n "$STRIP"; then
   13138   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   13139 else
   13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13141 for as_dir in $PATH
   13142 do
   13143   IFS=$as_save_IFS
   13144   test -z "$as_dir" && as_dir=.
   13145     for ac_exec_ext in '' $ac_executable_extensions; do
   13146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13147     ac_cv_prog_STRIP="${ncn_progname}"
   13148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13149     break 2
   13150   fi
   13151 done
   13152   done
   13153 IFS=$as_save_IFS
   13154 
   13155 fi
   13156 fi
   13157 STRIP=$ac_cv_prog_STRIP
   13158 if test -n "$STRIP"; then
   13159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   13160 $as_echo "$STRIP" >&6; }
   13161 else
   13162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13163 $as_echo "no" >&6; }
   13164 fi
   13165 
   13166 
   13167   done
   13168 fi
   13169 
   13170 for ncn_progname in strip; do
   13171   if test -n "$ncn_tool_prefix"; then
   13172     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13173 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13175 $as_echo_n "checking for $ac_word... " >&6; }
   13176 if ${ac_cv_prog_STRIP+:} false; then :
   13177   $as_echo_n "(cached) " >&6
   13178 else
   13179   if test -n "$STRIP"; then
   13180   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   13181 else
   13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13183 for as_dir in $PATH
   13184 do
   13185   IFS=$as_save_IFS
   13186   test -z "$as_dir" && as_dir=.
   13187     for ac_exec_ext in '' $ac_executable_extensions; do
   13188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13189     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
   13190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13191     break 2
   13192   fi
   13193 done
   13194   done
   13195 IFS=$as_save_IFS
   13196 
   13197 fi
   13198 fi
   13199 STRIP=$ac_cv_prog_STRIP
   13200 if test -n "$STRIP"; then
   13201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   13202 $as_echo "$STRIP" >&6; }
   13203 else
   13204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13205 $as_echo "no" >&6; }
   13206 fi
   13207 
   13208 
   13209   fi
   13210   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
   13211     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13212 set dummy ${ncn_progname}; ac_word=$2
   13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13214 $as_echo_n "checking for $ac_word... " >&6; }
   13215 if ${ac_cv_prog_STRIP+:} false; then :
   13216   $as_echo_n "(cached) " >&6
   13217 else
   13218   if test -n "$STRIP"; then
   13219   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   13220 else
   13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13222 for as_dir in $PATH
   13223 do
   13224   IFS=$as_save_IFS
   13225   test -z "$as_dir" && as_dir=.
   13226     for ac_exec_ext in '' $ac_executable_extensions; do
   13227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13228     ac_cv_prog_STRIP="${ncn_progname}"
   13229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13230     break 2
   13231   fi
   13232 done
   13233   done
   13234 IFS=$as_save_IFS
   13235 
   13236 fi
   13237 fi
   13238 STRIP=$ac_cv_prog_STRIP
   13239 if test -n "$STRIP"; then
   13240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   13241 $as_echo "$STRIP" >&6; }
   13242 else
   13243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13244 $as_echo "no" >&6; }
   13245 fi
   13246 
   13247 
   13248   fi
   13249   test -n "$ac_cv_prog_STRIP" && break
   13250 done
   13251 
   13252 if test -z "$ac_cv_prog_STRIP" ; then
   13253   STRIP="true"
   13254 fi
   13255 
   13256 
   13257 
   13258 if test -n "$WINDRES"; then
   13259   ac_cv_prog_WINDRES=$WINDRES
   13260 elif test -n "$ac_cv_prog_WINDRES"; then
   13261   WINDRES=$ac_cv_prog_WINDRES
   13262 fi
   13263 
   13264 if test -n "$ac_cv_prog_WINDRES"; then
   13265   for ncn_progname in windres; do
   13266     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13267 set dummy ${ncn_progname}; ac_word=$2
   13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13269 $as_echo_n "checking for $ac_word... " >&6; }
   13270 if ${ac_cv_prog_WINDRES+:} false; then :
   13271   $as_echo_n "(cached) " >&6
   13272 else
   13273   if test -n "$WINDRES"; then
   13274   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   13275 else
   13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13277 for as_dir in $PATH
   13278 do
   13279   IFS=$as_save_IFS
   13280   test -z "$as_dir" && as_dir=.
   13281     for ac_exec_ext in '' $ac_executable_extensions; do
   13282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13283     ac_cv_prog_WINDRES="${ncn_progname}"
   13284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13285     break 2
   13286   fi
   13287 done
   13288   done
   13289 IFS=$as_save_IFS
   13290 
   13291 fi
   13292 fi
   13293 WINDRES=$ac_cv_prog_WINDRES
   13294 if test -n "$WINDRES"; then
   13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   13296 $as_echo "$WINDRES" >&6; }
   13297 else
   13298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13299 $as_echo "no" >&6; }
   13300 fi
   13301 
   13302 
   13303   done
   13304 fi
   13305 
   13306 for ncn_progname in windres; do
   13307   if test -n "$ncn_tool_prefix"; then
   13308     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13309 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13311 $as_echo_n "checking for $ac_word... " >&6; }
   13312 if ${ac_cv_prog_WINDRES+:} false; then :
   13313   $as_echo_n "(cached) " >&6
   13314 else
   13315   if test -n "$WINDRES"; then
   13316   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   13317 else
   13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13319 for as_dir in $PATH
   13320 do
   13321   IFS=$as_save_IFS
   13322   test -z "$as_dir" && as_dir=.
   13323     for ac_exec_ext in '' $ac_executable_extensions; do
   13324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13325     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
   13326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13327     break 2
   13328   fi
   13329 done
   13330   done
   13331 IFS=$as_save_IFS
   13332 
   13333 fi
   13334 fi
   13335 WINDRES=$ac_cv_prog_WINDRES
   13336 if test -n "$WINDRES"; then
   13337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   13338 $as_echo "$WINDRES" >&6; }
   13339 else
   13340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13341 $as_echo "no" >&6; }
   13342 fi
   13343 
   13344 
   13345   fi
   13346   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
   13347     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13348 set dummy ${ncn_progname}; ac_word=$2
   13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13350 $as_echo_n "checking for $ac_word... " >&6; }
   13351 if ${ac_cv_prog_WINDRES+:} false; then :
   13352   $as_echo_n "(cached) " >&6
   13353 else
   13354   if test -n "$WINDRES"; then
   13355   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   13356 else
   13357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13358 for as_dir in $PATH
   13359 do
   13360   IFS=$as_save_IFS
   13361   test -z "$as_dir" && as_dir=.
   13362     for ac_exec_ext in '' $ac_executable_extensions; do
   13363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13364     ac_cv_prog_WINDRES="${ncn_progname}"
   13365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13366     break 2
   13367   fi
   13368 done
   13369   done
   13370 IFS=$as_save_IFS
   13371 
   13372 fi
   13373 fi
   13374 WINDRES=$ac_cv_prog_WINDRES
   13375 if test -n "$WINDRES"; then
   13376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   13377 $as_echo "$WINDRES" >&6; }
   13378 else
   13379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13380 $as_echo "no" >&6; }
   13381 fi
   13382 
   13383 
   13384   fi
   13385   test -n "$ac_cv_prog_WINDRES" && break
   13386 done
   13387 
   13388 if test -z "$ac_cv_prog_WINDRES" ; then
   13389   set dummy windres
   13390   if test $build = $host ; then
   13391     WINDRES="$2"
   13392   else
   13393     WINDRES="${ncn_tool_prefix}$2"
   13394   fi
   13395 fi
   13396 
   13397 
   13398 
   13399 if test -n "$WINDMC"; then
   13400   ac_cv_prog_WINDMC=$WINDMC
   13401 elif test -n "$ac_cv_prog_WINDMC"; then
   13402   WINDMC=$ac_cv_prog_WINDMC
   13403 fi
   13404 
   13405 if test -n "$ac_cv_prog_WINDMC"; then
   13406   for ncn_progname in windmc; do
   13407     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13408 set dummy ${ncn_progname}; ac_word=$2
   13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13410 $as_echo_n "checking for $ac_word... " >&6; }
   13411 if ${ac_cv_prog_WINDMC+:} false; then :
   13412   $as_echo_n "(cached) " >&6
   13413 else
   13414   if test -n "$WINDMC"; then
   13415   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
   13416 else
   13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13418 for as_dir in $PATH
   13419 do
   13420   IFS=$as_save_IFS
   13421   test -z "$as_dir" && as_dir=.
   13422     for ac_exec_ext in '' $ac_executable_extensions; do
   13423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13424     ac_cv_prog_WINDMC="${ncn_progname}"
   13425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13426     break 2
   13427   fi
   13428 done
   13429   done
   13430 IFS=$as_save_IFS
   13431 
   13432 fi
   13433 fi
   13434 WINDMC=$ac_cv_prog_WINDMC
   13435 if test -n "$WINDMC"; then
   13436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
   13437 $as_echo "$WINDMC" >&6; }
   13438 else
   13439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13440 $as_echo "no" >&6; }
   13441 fi
   13442 
   13443 
   13444   done
   13445 fi
   13446 
   13447 for ncn_progname in windmc; do
   13448   if test -n "$ncn_tool_prefix"; then
   13449     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13450 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13452 $as_echo_n "checking for $ac_word... " >&6; }
   13453 if ${ac_cv_prog_WINDMC+:} false; then :
   13454   $as_echo_n "(cached) " >&6
   13455 else
   13456   if test -n "$WINDMC"; then
   13457   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
   13458 else
   13459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13460 for as_dir in $PATH
   13461 do
   13462   IFS=$as_save_IFS
   13463   test -z "$as_dir" && as_dir=.
   13464     for ac_exec_ext in '' $ac_executable_extensions; do
   13465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13466     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
   13467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13468     break 2
   13469   fi
   13470 done
   13471   done
   13472 IFS=$as_save_IFS
   13473 
   13474 fi
   13475 fi
   13476 WINDMC=$ac_cv_prog_WINDMC
   13477 if test -n "$WINDMC"; then
   13478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
   13479 $as_echo "$WINDMC" >&6; }
   13480 else
   13481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13482 $as_echo "no" >&6; }
   13483 fi
   13484 
   13485 
   13486   fi
   13487   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
   13488     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13489 set dummy ${ncn_progname}; ac_word=$2
   13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13491 $as_echo_n "checking for $ac_word... " >&6; }
   13492 if ${ac_cv_prog_WINDMC+:} false; then :
   13493   $as_echo_n "(cached) " >&6
   13494 else
   13495   if test -n "$WINDMC"; then
   13496   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
   13497 else
   13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13499 for as_dir in $PATH
   13500 do
   13501   IFS=$as_save_IFS
   13502   test -z "$as_dir" && as_dir=.
   13503     for ac_exec_ext in '' $ac_executable_extensions; do
   13504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13505     ac_cv_prog_WINDMC="${ncn_progname}"
   13506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13507     break 2
   13508   fi
   13509 done
   13510   done
   13511 IFS=$as_save_IFS
   13512 
   13513 fi
   13514 fi
   13515 WINDMC=$ac_cv_prog_WINDMC
   13516 if test -n "$WINDMC"; then
   13517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
   13518 $as_echo "$WINDMC" >&6; }
   13519 else
   13520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13521 $as_echo "no" >&6; }
   13522 fi
   13523 
   13524 
   13525   fi
   13526   test -n "$ac_cv_prog_WINDMC" && break
   13527 done
   13528 
   13529 if test -z "$ac_cv_prog_WINDMC" ; then
   13530   set dummy windmc
   13531   if test $build = $host ; then
   13532     WINDMC="$2"
   13533   else
   13534     WINDMC="${ncn_tool_prefix}$2"
   13535   fi
   13536 fi
   13537 
   13538 
   13539 
   13540 if test -n "$OBJCOPY"; then
   13541   ac_cv_prog_OBJCOPY=$OBJCOPY
   13542 elif test -n "$ac_cv_prog_OBJCOPY"; then
   13543   OBJCOPY=$ac_cv_prog_OBJCOPY
   13544 fi
   13545 
   13546 if test -n "$ac_cv_prog_OBJCOPY"; then
   13547   for ncn_progname in objcopy; do
   13548     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13549 set dummy ${ncn_progname}; ac_word=$2
   13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13551 $as_echo_n "checking for $ac_word... " >&6; }
   13552 if ${ac_cv_prog_OBJCOPY+:} false; then :
   13553   $as_echo_n "(cached) " >&6
   13554 else
   13555   if test -n "$OBJCOPY"; then
   13556   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
   13557 else
   13558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13559 for as_dir in $PATH
   13560 do
   13561   IFS=$as_save_IFS
   13562   test -z "$as_dir" && as_dir=.
   13563     for ac_exec_ext in '' $ac_executable_extensions; do
   13564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13565     ac_cv_prog_OBJCOPY="${ncn_progname}"
   13566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13567     break 2
   13568   fi
   13569 done
   13570   done
   13571 IFS=$as_save_IFS
   13572 
   13573 fi
   13574 fi
   13575 OBJCOPY=$ac_cv_prog_OBJCOPY
   13576 if test -n "$OBJCOPY"; then
   13577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
   13578 $as_echo "$OBJCOPY" >&6; }
   13579 else
   13580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13581 $as_echo "no" >&6; }
   13582 fi
   13583 
   13584 
   13585   done
   13586 fi
   13587 
   13588 for ncn_progname in objcopy; do
   13589   if test -n "$ncn_tool_prefix"; then
   13590     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13591 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13593 $as_echo_n "checking for $ac_word... " >&6; }
   13594 if ${ac_cv_prog_OBJCOPY+:} false; then :
   13595   $as_echo_n "(cached) " >&6
   13596 else
   13597   if test -n "$OBJCOPY"; then
   13598   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
   13599 else
   13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13601 for as_dir in $PATH
   13602 do
   13603   IFS=$as_save_IFS
   13604   test -z "$as_dir" && as_dir=.
   13605     for ac_exec_ext in '' $ac_executable_extensions; do
   13606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13607     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
   13608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13609     break 2
   13610   fi
   13611 done
   13612   done
   13613 IFS=$as_save_IFS
   13614 
   13615 fi
   13616 fi
   13617 OBJCOPY=$ac_cv_prog_OBJCOPY
   13618 if test -n "$OBJCOPY"; then
   13619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
   13620 $as_echo "$OBJCOPY" >&6; }
   13621 else
   13622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13623 $as_echo "no" >&6; }
   13624 fi
   13625 
   13626 
   13627   fi
   13628   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
   13629     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13630 set dummy ${ncn_progname}; ac_word=$2
   13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13632 $as_echo_n "checking for $ac_word... " >&6; }
   13633 if ${ac_cv_prog_OBJCOPY+:} false; then :
   13634   $as_echo_n "(cached) " >&6
   13635 else
   13636   if test -n "$OBJCOPY"; then
   13637   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
   13638 else
   13639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13640 for as_dir in $PATH
   13641 do
   13642   IFS=$as_save_IFS
   13643   test -z "$as_dir" && as_dir=.
   13644     for ac_exec_ext in '' $ac_executable_extensions; do
   13645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13646     ac_cv_prog_OBJCOPY="${ncn_progname}"
   13647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13648     break 2
   13649   fi
   13650 done
   13651   done
   13652 IFS=$as_save_IFS
   13653 
   13654 fi
   13655 fi
   13656 OBJCOPY=$ac_cv_prog_OBJCOPY
   13657 if test -n "$OBJCOPY"; then
   13658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
   13659 $as_echo "$OBJCOPY" >&6; }
   13660 else
   13661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13662 $as_echo "no" >&6; }
   13663 fi
   13664 
   13665 
   13666   fi
   13667   test -n "$ac_cv_prog_OBJCOPY" && break
   13668 done
   13669 
   13670 if test -z "$ac_cv_prog_OBJCOPY" ; then
   13671   set dummy objcopy
   13672   if test $build = $host ; then
   13673     OBJCOPY="$2"
   13674   else
   13675     OBJCOPY="${ncn_tool_prefix}$2"
   13676   fi
   13677 fi
   13678 
   13679 
   13680 
   13681 if test -n "$OBJDUMP"; then
   13682   ac_cv_prog_OBJDUMP=$OBJDUMP
   13683 elif test -n "$ac_cv_prog_OBJDUMP"; then
   13684   OBJDUMP=$ac_cv_prog_OBJDUMP
   13685 fi
   13686 
   13687 if test -n "$ac_cv_prog_OBJDUMP"; then
   13688   for ncn_progname in objdump; do
   13689     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13690 set dummy ${ncn_progname}; ac_word=$2
   13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13692 $as_echo_n "checking for $ac_word... " >&6; }
   13693 if ${ac_cv_prog_OBJDUMP+:} false; then :
   13694   $as_echo_n "(cached) " >&6
   13695 else
   13696   if test -n "$OBJDUMP"; then
   13697   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   13698 else
   13699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13700 for as_dir in $PATH
   13701 do
   13702   IFS=$as_save_IFS
   13703   test -z "$as_dir" && as_dir=.
   13704     for ac_exec_ext in '' $ac_executable_extensions; do
   13705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13706     ac_cv_prog_OBJDUMP="${ncn_progname}"
   13707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13708     break 2
   13709   fi
   13710 done
   13711   done
   13712 IFS=$as_save_IFS
   13713 
   13714 fi
   13715 fi
   13716 OBJDUMP=$ac_cv_prog_OBJDUMP
   13717 if test -n "$OBJDUMP"; then
   13718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   13719 $as_echo "$OBJDUMP" >&6; }
   13720 else
   13721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13722 $as_echo "no" >&6; }
   13723 fi
   13724 
   13725 
   13726   done
   13727 fi
   13728 
   13729 for ncn_progname in objdump; do
   13730   if test -n "$ncn_tool_prefix"; then
   13731     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13732 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13734 $as_echo_n "checking for $ac_word... " >&6; }
   13735 if ${ac_cv_prog_OBJDUMP+:} false; then :
   13736   $as_echo_n "(cached) " >&6
   13737 else
   13738   if test -n "$OBJDUMP"; then
   13739   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   13740 else
   13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13742 for as_dir in $PATH
   13743 do
   13744   IFS=$as_save_IFS
   13745   test -z "$as_dir" && as_dir=.
   13746     for ac_exec_ext in '' $ac_executable_extensions; do
   13747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13748     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
   13749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13750     break 2
   13751   fi
   13752 done
   13753   done
   13754 IFS=$as_save_IFS
   13755 
   13756 fi
   13757 fi
   13758 OBJDUMP=$ac_cv_prog_OBJDUMP
   13759 if test -n "$OBJDUMP"; then
   13760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   13761 $as_echo "$OBJDUMP" >&6; }
   13762 else
   13763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13764 $as_echo "no" >&6; }
   13765 fi
   13766 
   13767 
   13768   fi
   13769   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
   13770     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13771 set dummy ${ncn_progname}; ac_word=$2
   13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13773 $as_echo_n "checking for $ac_word... " >&6; }
   13774 if ${ac_cv_prog_OBJDUMP+:} false; then :
   13775   $as_echo_n "(cached) " >&6
   13776 else
   13777   if test -n "$OBJDUMP"; then
   13778   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   13779 else
   13780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13781 for as_dir in $PATH
   13782 do
   13783   IFS=$as_save_IFS
   13784   test -z "$as_dir" && as_dir=.
   13785     for ac_exec_ext in '' $ac_executable_extensions; do
   13786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13787     ac_cv_prog_OBJDUMP="${ncn_progname}"
   13788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13789     break 2
   13790   fi
   13791 done
   13792   done
   13793 IFS=$as_save_IFS
   13794 
   13795 fi
   13796 fi
   13797 OBJDUMP=$ac_cv_prog_OBJDUMP
   13798 if test -n "$OBJDUMP"; then
   13799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   13800 $as_echo "$OBJDUMP" >&6; }
   13801 else
   13802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13803 $as_echo "no" >&6; }
   13804 fi
   13805 
   13806 
   13807   fi
   13808   test -n "$ac_cv_prog_OBJDUMP" && break
   13809 done
   13810 
   13811 if test -z "$ac_cv_prog_OBJDUMP" ; then
   13812   set dummy objdump
   13813   if test $build = $host ; then
   13814     OBJDUMP="$2"
   13815   else
   13816     OBJDUMP="${ncn_tool_prefix}$2"
   13817   fi
   13818 fi
   13819 
   13820 
   13821 
   13822 if test -n "$OTOOL"; then
   13823   ac_cv_prog_OTOOL=$OTOOL
   13824 elif test -n "$ac_cv_prog_OTOOL"; then
   13825   OTOOL=$ac_cv_prog_OTOOL
   13826 fi
   13827 
   13828 if test -n "$ac_cv_prog_OTOOL"; then
   13829   for ncn_progname in otool; do
   13830     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13831 set dummy ${ncn_progname}; ac_word=$2
   13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13833 $as_echo_n "checking for $ac_word... " >&6; }
   13834 if ${ac_cv_prog_OTOOL+:} false; then :
   13835   $as_echo_n "(cached) " >&6
   13836 else
   13837   if test -n "$OTOOL"; then
   13838   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   13839 else
   13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13841 for as_dir in $PATH
   13842 do
   13843   IFS=$as_save_IFS
   13844   test -z "$as_dir" && as_dir=.
   13845     for ac_exec_ext in '' $ac_executable_extensions; do
   13846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13847     ac_cv_prog_OTOOL="${ncn_progname}"
   13848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13849     break 2
   13850   fi
   13851 done
   13852   done
   13853 IFS=$as_save_IFS
   13854 
   13855 fi
   13856 fi
   13857 OTOOL=$ac_cv_prog_OTOOL
   13858 if test -n "$OTOOL"; then
   13859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   13860 $as_echo "$OTOOL" >&6; }
   13861 else
   13862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13863 $as_echo "no" >&6; }
   13864 fi
   13865 
   13866 
   13867   done
   13868 fi
   13869 
   13870 for ncn_progname in otool; do
   13871   if test -n "$ncn_tool_prefix"; then
   13872     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   13873 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13875 $as_echo_n "checking for $ac_word... " >&6; }
   13876 if ${ac_cv_prog_OTOOL+:} false; then :
   13877   $as_echo_n "(cached) " >&6
   13878 else
   13879   if test -n "$OTOOL"; then
   13880   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   13881 else
   13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13883 for as_dir in $PATH
   13884 do
   13885   IFS=$as_save_IFS
   13886   test -z "$as_dir" && as_dir=.
   13887     for ac_exec_ext in '' $ac_executable_extensions; do
   13888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13889     ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
   13890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13891     break 2
   13892   fi
   13893 done
   13894   done
   13895 IFS=$as_save_IFS
   13896 
   13897 fi
   13898 fi
   13899 OTOOL=$ac_cv_prog_OTOOL
   13900 if test -n "$OTOOL"; then
   13901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   13902 $as_echo "$OTOOL" >&6; }
   13903 else
   13904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13905 $as_echo "no" >&6; }
   13906 fi
   13907 
   13908 
   13909   fi
   13910   if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
   13911     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13912 set dummy ${ncn_progname}; ac_word=$2
   13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13914 $as_echo_n "checking for $ac_word... " >&6; }
   13915 if ${ac_cv_prog_OTOOL+:} false; then :
   13916   $as_echo_n "(cached) " >&6
   13917 else
   13918   if test -n "$OTOOL"; then
   13919   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   13920 else
   13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13922 for as_dir in $PATH
   13923 do
   13924   IFS=$as_save_IFS
   13925   test -z "$as_dir" && as_dir=.
   13926     for ac_exec_ext in '' $ac_executable_extensions; do
   13927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13928     ac_cv_prog_OTOOL="${ncn_progname}"
   13929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13930     break 2
   13931   fi
   13932 done
   13933   done
   13934 IFS=$as_save_IFS
   13935 
   13936 fi
   13937 fi
   13938 OTOOL=$ac_cv_prog_OTOOL
   13939 if test -n "$OTOOL"; then
   13940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   13941 $as_echo "$OTOOL" >&6; }
   13942 else
   13943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13944 $as_echo "no" >&6; }
   13945 fi
   13946 
   13947 
   13948   fi
   13949   test -n "$ac_cv_prog_OTOOL" && break
   13950 done
   13951 
   13952 if test -z "$ac_cv_prog_OTOOL" ; then
   13953   set dummy otool
   13954   if test $build = $host ; then
   13955     OTOOL="$2"
   13956   else
   13957     OTOOL="${ncn_tool_prefix}$2"
   13958   fi
   13959 fi
   13960 
   13961 
   13962 
   13963 if test -n "$READELF"; then
   13964   ac_cv_prog_READELF=$READELF
   13965 elif test -n "$ac_cv_prog_READELF"; then
   13966   READELF=$ac_cv_prog_READELF
   13967 fi
   13968 
   13969 if test -n "$ac_cv_prog_READELF"; then
   13970   for ncn_progname in readelf; do
   13971     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   13972 set dummy ${ncn_progname}; ac_word=$2
   13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13974 $as_echo_n "checking for $ac_word... " >&6; }
   13975 if ${ac_cv_prog_READELF+:} false; then :
   13976   $as_echo_n "(cached) " >&6
   13977 else
   13978   if test -n "$READELF"; then
   13979   ac_cv_prog_READELF="$READELF" # Let the user override the test.
   13980 else
   13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13982 for as_dir in $PATH
   13983 do
   13984   IFS=$as_save_IFS
   13985   test -z "$as_dir" && as_dir=.
   13986     for ac_exec_ext in '' $ac_executable_extensions; do
   13987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13988     ac_cv_prog_READELF="${ncn_progname}"
   13989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13990     break 2
   13991   fi
   13992 done
   13993   done
   13994 IFS=$as_save_IFS
   13995 
   13996 fi
   13997 fi
   13998 READELF=$ac_cv_prog_READELF
   13999 if test -n "$READELF"; then
   14000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
   14001 $as_echo "$READELF" >&6; }
   14002 else
   14003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14004 $as_echo "no" >&6; }
   14005 fi
   14006 
   14007 
   14008   done
   14009 fi
   14010 
   14011 for ncn_progname in readelf; do
   14012   if test -n "$ncn_tool_prefix"; then
   14013     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
   14014 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
   14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14016 $as_echo_n "checking for $ac_word... " >&6; }
   14017 if ${ac_cv_prog_READELF+:} false; then :
   14018   $as_echo_n "(cached) " >&6
   14019 else
   14020   if test -n "$READELF"; then
   14021   ac_cv_prog_READELF="$READELF" # Let the user override the test.
   14022 else
   14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14024 for as_dir in $PATH
   14025 do
   14026   IFS=$as_save_IFS
   14027   test -z "$as_dir" && as_dir=.
   14028     for ac_exec_ext in '' $ac_executable_extensions; do
   14029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14030     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
   14031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14032     break 2
   14033   fi
   14034 done
   14035   done
   14036 IFS=$as_save_IFS
   14037 
   14038 fi
   14039 fi
   14040 READELF=$ac_cv_prog_READELF
   14041 if test -n "$READELF"; then
   14042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
   14043 $as_echo "$READELF" >&6; }
   14044 else
   14045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14046 $as_echo "no" >&6; }
   14047 fi
   14048 
   14049 
   14050   fi
   14051   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
   14052     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14053 set dummy ${ncn_progname}; ac_word=$2
   14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14055 $as_echo_n "checking for $ac_word... " >&6; }
   14056 if ${ac_cv_prog_READELF+:} false; then :
   14057   $as_echo_n "(cached) " >&6
   14058 else
   14059   if test -n "$READELF"; then
   14060   ac_cv_prog_READELF="$READELF" # Let the user override the test.
   14061 else
   14062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14063 for as_dir in $PATH
   14064 do
   14065   IFS=$as_save_IFS
   14066   test -z "$as_dir" && as_dir=.
   14067     for ac_exec_ext in '' $ac_executable_extensions; do
   14068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14069     ac_cv_prog_READELF="${ncn_progname}"
   14070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14071     break 2
   14072   fi
   14073 done
   14074   done
   14075 IFS=$as_save_IFS
   14076 
   14077 fi
   14078 fi
   14079 READELF=$ac_cv_prog_READELF
   14080 if test -n "$READELF"; then
   14081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
   14082 $as_echo "$READELF" >&6; }
   14083 else
   14084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14085 $as_echo "no" >&6; }
   14086 fi
   14087 
   14088 
   14089   fi
   14090   test -n "$ac_cv_prog_READELF" && break
   14091 done
   14092 
   14093 if test -z "$ac_cv_prog_READELF" ; then
   14094   set dummy readelf
   14095   if test $build = $host ; then
   14096     READELF="$2"
   14097   else
   14098     READELF="${ncn_tool_prefix}$2"
   14099   fi
   14100 fi
   14101 
   14102 
   14103 
   14104 
   14105 
   14106 
   14107 
   14108 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
   14109 
   14110 
   14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
   14112 $as_echo_n "checking for -plugin option... " >&6; }
   14113 
   14114 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
   14115 plugin_option=
   14116 for plugin in $plugin_names; do
   14117   plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
   14118   if test x$plugin_so = x$plugin; then
   14119     plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
   14120   fi
   14121   if test x$plugin_so != x$plugin; then
   14122     plugin_option="--plugin $plugin_so"
   14123     break
   14124   fi
   14125 done
   14126 if test -n "$ac_tool_prefix"; then
   14127   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   14128 set dummy ${ac_tool_prefix}ar; ac_word=$2
   14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14130 $as_echo_n "checking for $ac_word... " >&6; }
   14131 if ${ac_cv_prog_AR+:} false; then :
   14132   $as_echo_n "(cached) " >&6
   14133 else
   14134   if test -n "$AR"; then
   14135   ac_cv_prog_AR="$AR" # Let the user override the test.
   14136 else
   14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14138 for as_dir in $PATH
   14139 do
   14140   IFS=$as_save_IFS
   14141   test -z "$as_dir" && as_dir=.
   14142     for ac_exec_ext in '' $ac_executable_extensions; do
   14143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14144     ac_cv_prog_AR="${ac_tool_prefix}ar"
   14145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14146     break 2
   14147   fi
   14148 done
   14149   done
   14150 IFS=$as_save_IFS
   14151 
   14152 fi
   14153 fi
   14154 AR=$ac_cv_prog_AR
   14155 if test -n "$AR"; then
   14156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   14157 $as_echo "$AR" >&6; }
   14158 else
   14159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14160 $as_echo "no" >&6; }
   14161 fi
   14162 
   14163 
   14164 fi
   14165 if test -z "$ac_cv_prog_AR"; then
   14166   ac_ct_AR=$AR
   14167   # Extract the first word of "ar", so it can be a program name with args.
   14168 set dummy ar; ac_word=$2
   14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14170 $as_echo_n "checking for $ac_word... " >&6; }
   14171 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   14172   $as_echo_n "(cached) " >&6
   14173 else
   14174   if test -n "$ac_ct_AR"; then
   14175   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   14176 else
   14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14178 for as_dir in $PATH
   14179 do
   14180   IFS=$as_save_IFS
   14181   test -z "$as_dir" && as_dir=.
   14182     for ac_exec_ext in '' $ac_executable_extensions; do
   14183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14184     ac_cv_prog_ac_ct_AR="ar"
   14185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14186     break 2
   14187   fi
   14188 done
   14189   done
   14190 IFS=$as_save_IFS
   14191 
   14192 fi
   14193 fi
   14194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   14195 if test -n "$ac_ct_AR"; then
   14196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   14197 $as_echo "$ac_ct_AR" >&6; }
   14198 else
   14199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14200 $as_echo "no" >&6; }
   14201 fi
   14202 
   14203   if test "x$ac_ct_AR" = x; then
   14204     AR=""
   14205   else
   14206     case $cross_compiling:$ac_tool_warned in
   14207 yes:)
   14208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14210 ac_tool_warned=yes ;;
   14211 esac
   14212     AR=$ac_ct_AR
   14213   fi
   14214 else
   14215   AR="$ac_cv_prog_AR"
   14216 fi
   14217 
   14218 if test "${AR}" = "" ; then
   14219   as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
   14220 fi
   14221 touch conftest.c
   14222 ${AR} $plugin_option rc conftest.a conftest.c
   14223 if test "$?" != 0; then
   14224   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
   14225 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
   14226   plugin_option=
   14227 fi
   14228 rm -f conftest.*
   14229 if test -n "$plugin_option"; then
   14230   PLUGIN_OPTION="$plugin_option"
   14231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
   14232 $as_echo "$plugin_option" >&6; }
   14233 else
   14234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14235 $as_echo "no" >&6; }
   14236 fi
   14237 
   14238 AR_PLUGIN_OPTION=
   14239 RANLIB_PLUGIN_OPTION=
   14240 if test -n "$PLUGIN_OPTION"; then
   14241   if $AR --help 2>&1 | grep -q "\--plugin"; then
   14242     AR_PLUGIN_OPTION="$PLUGIN_OPTION"
   14243   fi
   14244   if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
   14245     RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
   14246   fi
   14247 fi
   14248 
   14249 
   14250 
   14251 # Target tools.
   14252 
   14253 # Check whether --with-build-time-tools was given.
   14254 if test "${with_build_time_tools+set}" = set; then :
   14255   withval=$with_build_time_tools; case x"$withval" in
   14256      x/*) ;;
   14257      *)
   14258        with_build_time_tools=
   14259        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
   14260 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
   14261        ;;
   14262    esac
   14263 else
   14264   with_build_time_tools=
   14265 fi
   14266 
   14267 
   14268 
   14269 
   14270 if test -n "$CC_FOR_TARGET"; then
   14271   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
   14272 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
   14273   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
   14274 fi
   14275 
   14276 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
   14277   for ncn_progname in cc gcc; do
   14278     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14279 set dummy ${ncn_progname}; ac_word=$2
   14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14281 $as_echo_n "checking for $ac_word... " >&6; }
   14282 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
   14283   $as_echo_n "(cached) " >&6
   14284 else
   14285   if test -n "$CC_FOR_TARGET"; then
   14286   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
   14287 else
   14288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14289 for as_dir in $PATH
   14290 do
   14291   IFS=$as_save_IFS
   14292   test -z "$as_dir" && as_dir=.
   14293     for ac_exec_ext in '' $ac_executable_extensions; do
   14294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14295     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
   14296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14297     break 2
   14298   fi
   14299 done
   14300   done
   14301 IFS=$as_save_IFS
   14302 
   14303 fi
   14304 fi
   14305 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
   14306 if test -n "$CC_FOR_TARGET"; then
   14307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
   14308 $as_echo "$CC_FOR_TARGET" >&6; }
   14309 else
   14310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14311 $as_echo "no" >&6; }
   14312 fi
   14313 
   14314 
   14315   done
   14316 fi
   14317 
   14318 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
   14319   for ncn_progname in cc gcc; do
   14320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   14321 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   14322     if test -x $with_build_time_tools/${ncn_progname}; then
   14323       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   14324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14325 $as_echo "yes" >&6; }
   14326       break
   14327     else
   14328       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14329 $as_echo "no" >&6; }
   14330     fi
   14331   done
   14332 fi
   14333 
   14334 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
   14335   for ncn_progname in cc gcc; do
   14336     if test -n "$ncn_target_tool_prefix"; then
   14337       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   14338 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14340 $as_echo_n "checking for $ac_word... " >&6; }
   14341 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
   14342   $as_echo_n "(cached) " >&6
   14343 else
   14344   if test -n "$CC_FOR_TARGET"; then
   14345   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
   14346 else
   14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14348 for as_dir in $PATH
   14349 do
   14350   IFS=$as_save_IFS
   14351   test -z "$as_dir" && as_dir=.
   14352     for ac_exec_ext in '' $ac_executable_extensions; do
   14353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14354     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   14355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14356     break 2
   14357   fi
   14358 done
   14359   done
   14360 IFS=$as_save_IFS
   14361 
   14362 fi
   14363 fi
   14364 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
   14365 if test -n "$CC_FOR_TARGET"; then
   14366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
   14367 $as_echo "$CC_FOR_TARGET" >&6; }
   14368 else
   14369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14370 $as_echo "no" >&6; }
   14371 fi
   14372 
   14373 
   14374     fi
   14375     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
   14376       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14377 set dummy ${ncn_progname}; ac_word=$2
   14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14379 $as_echo_n "checking for $ac_word... " >&6; }
   14380 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
   14381   $as_echo_n "(cached) " >&6
   14382 else
   14383   if test -n "$CC_FOR_TARGET"; then
   14384   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
   14385 else
   14386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14387 for as_dir in $PATH
   14388 do
   14389   IFS=$as_save_IFS
   14390   test -z "$as_dir" && as_dir=.
   14391     for ac_exec_ext in '' $ac_executable_extensions; do
   14392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14393     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
   14394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14395     break 2
   14396   fi
   14397 done
   14398   done
   14399 IFS=$as_save_IFS
   14400 
   14401 fi
   14402 fi
   14403 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
   14404 if test -n "$CC_FOR_TARGET"; then
   14405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
   14406 $as_echo "$CC_FOR_TARGET" >&6; }
   14407 else
   14408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14409 $as_echo "no" >&6; }
   14410 fi
   14411 
   14412 
   14413     fi
   14414     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
   14415   done
   14416 fi
   14417 
   14418 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
   14419   set dummy cc gcc
   14420   if test $build = $target ; then
   14421     CC_FOR_TARGET="$2"
   14422   else
   14423     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
   14424   fi
   14425 else
   14426   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
   14427 fi
   14428 
   14429 
   14430 
   14431 if test -n "$CXX_FOR_TARGET"; then
   14432   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
   14433 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
   14434   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
   14435 fi
   14436 
   14437 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
   14438   for ncn_progname in c++ g++ cxx gxx; do
   14439     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14440 set dummy ${ncn_progname}; ac_word=$2
   14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14442 $as_echo_n "checking for $ac_word... " >&6; }
   14443 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
   14444   $as_echo_n "(cached) " >&6
   14445 else
   14446   if test -n "$CXX_FOR_TARGET"; then
   14447   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
   14448 else
   14449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14450 for as_dir in $PATH
   14451 do
   14452   IFS=$as_save_IFS
   14453   test -z "$as_dir" && as_dir=.
   14454     for ac_exec_ext in '' $ac_executable_extensions; do
   14455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14456     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
   14457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14458     break 2
   14459   fi
   14460 done
   14461   done
   14462 IFS=$as_save_IFS
   14463 
   14464 fi
   14465 fi
   14466 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
   14467 if test -n "$CXX_FOR_TARGET"; then
   14468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
   14469 $as_echo "$CXX_FOR_TARGET" >&6; }
   14470 else
   14471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14472 $as_echo "no" >&6; }
   14473 fi
   14474 
   14475 
   14476   done
   14477 fi
   14478 
   14479 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
   14480   for ncn_progname in c++ g++ cxx gxx; do
   14481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   14482 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   14483     if test -x $with_build_time_tools/${ncn_progname}; then
   14484       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   14485       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14486 $as_echo "yes" >&6; }
   14487       break
   14488     else
   14489       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14490 $as_echo "no" >&6; }
   14491     fi
   14492   done
   14493 fi
   14494 
   14495 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
   14496   for ncn_progname in c++ g++ cxx gxx; do
   14497     if test -n "$ncn_target_tool_prefix"; then
   14498       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   14499 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14501 $as_echo_n "checking for $ac_word... " >&6; }
   14502 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
   14503   $as_echo_n "(cached) " >&6
   14504 else
   14505   if test -n "$CXX_FOR_TARGET"; then
   14506   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
   14507 else
   14508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14509 for as_dir in $PATH
   14510 do
   14511   IFS=$as_save_IFS
   14512   test -z "$as_dir" && as_dir=.
   14513     for ac_exec_ext in '' $ac_executable_extensions; do
   14514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14515     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   14516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14517     break 2
   14518   fi
   14519 done
   14520   done
   14521 IFS=$as_save_IFS
   14522 
   14523 fi
   14524 fi
   14525 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
   14526 if test -n "$CXX_FOR_TARGET"; then
   14527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
   14528 $as_echo "$CXX_FOR_TARGET" >&6; }
   14529 else
   14530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14531 $as_echo "no" >&6; }
   14532 fi
   14533 
   14534 
   14535     fi
   14536     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
   14537       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14538 set dummy ${ncn_progname}; ac_word=$2
   14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14540 $as_echo_n "checking for $ac_word... " >&6; }
   14541 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
   14542   $as_echo_n "(cached) " >&6
   14543 else
   14544   if test -n "$CXX_FOR_TARGET"; then
   14545   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
   14546 else
   14547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14548 for as_dir in $PATH
   14549 do
   14550   IFS=$as_save_IFS
   14551   test -z "$as_dir" && as_dir=.
   14552     for ac_exec_ext in '' $ac_executable_extensions; do
   14553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14554     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
   14555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14556     break 2
   14557   fi
   14558 done
   14559   done
   14560 IFS=$as_save_IFS
   14561 
   14562 fi
   14563 fi
   14564 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
   14565 if test -n "$CXX_FOR_TARGET"; then
   14566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
   14567 $as_echo "$CXX_FOR_TARGET" >&6; }
   14568 else
   14569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14570 $as_echo "no" >&6; }
   14571 fi
   14572 
   14573 
   14574     fi
   14575     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
   14576   done
   14577 fi
   14578 
   14579 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
   14580   set dummy c++ g++ cxx gxx
   14581   if test $build = $target ; then
   14582     CXX_FOR_TARGET="$2"
   14583   else
   14584     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
   14585   fi
   14586 else
   14587   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
   14588 fi
   14589 
   14590 
   14591 
   14592 if test -n "$GCC_FOR_TARGET"; then
   14593   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
   14594 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
   14595   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
   14596 fi
   14597 
   14598 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
   14599   for ncn_progname in gcc; do
   14600     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14601 set dummy ${ncn_progname}; ac_word=$2
   14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14603 $as_echo_n "checking for $ac_word... " >&6; }
   14604 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
   14605   $as_echo_n "(cached) " >&6
   14606 else
   14607   if test -n "$GCC_FOR_TARGET"; then
   14608   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
   14609 else
   14610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14611 for as_dir in $PATH
   14612 do
   14613   IFS=$as_save_IFS
   14614   test -z "$as_dir" && as_dir=.
   14615     for ac_exec_ext in '' $ac_executable_extensions; do
   14616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14617     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
   14618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14619     break 2
   14620   fi
   14621 done
   14622   done
   14623 IFS=$as_save_IFS
   14624 
   14625 fi
   14626 fi
   14627 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
   14628 if test -n "$GCC_FOR_TARGET"; then
   14629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
   14630 $as_echo "$GCC_FOR_TARGET" >&6; }
   14631 else
   14632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14633 $as_echo "no" >&6; }
   14634 fi
   14635 
   14636 
   14637   done
   14638 fi
   14639 
   14640 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
   14641   for ncn_progname in gcc; do
   14642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   14643 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   14644     if test -x $with_build_time_tools/${ncn_progname}; then
   14645       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   14646       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14647 $as_echo "yes" >&6; }
   14648       break
   14649     else
   14650       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14651 $as_echo "no" >&6; }
   14652     fi
   14653   done
   14654 fi
   14655 
   14656 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
   14657   for ncn_progname in gcc; do
   14658     if test -n "$ncn_target_tool_prefix"; then
   14659       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   14660 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14662 $as_echo_n "checking for $ac_word... " >&6; }
   14663 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
   14664   $as_echo_n "(cached) " >&6
   14665 else
   14666   if test -n "$GCC_FOR_TARGET"; then
   14667   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
   14668 else
   14669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14670 for as_dir in $PATH
   14671 do
   14672   IFS=$as_save_IFS
   14673   test -z "$as_dir" && as_dir=.
   14674     for ac_exec_ext in '' $ac_executable_extensions; do
   14675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14676     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   14677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14678     break 2
   14679   fi
   14680 done
   14681   done
   14682 IFS=$as_save_IFS
   14683 
   14684 fi
   14685 fi
   14686 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
   14687 if test -n "$GCC_FOR_TARGET"; then
   14688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
   14689 $as_echo "$GCC_FOR_TARGET" >&6; }
   14690 else
   14691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14692 $as_echo "no" >&6; }
   14693 fi
   14694 
   14695 
   14696     fi
   14697     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
   14698       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14699 set dummy ${ncn_progname}; ac_word=$2
   14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14701 $as_echo_n "checking for $ac_word... " >&6; }
   14702 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
   14703   $as_echo_n "(cached) " >&6
   14704 else
   14705   if test -n "$GCC_FOR_TARGET"; then
   14706   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
   14707 else
   14708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14709 for as_dir in $PATH
   14710 do
   14711   IFS=$as_save_IFS
   14712   test -z "$as_dir" && as_dir=.
   14713     for ac_exec_ext in '' $ac_executable_extensions; do
   14714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14715     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
   14716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14717     break 2
   14718   fi
   14719 done
   14720   done
   14721 IFS=$as_save_IFS
   14722 
   14723 fi
   14724 fi
   14725 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
   14726 if test -n "$GCC_FOR_TARGET"; then
   14727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
   14728 $as_echo "$GCC_FOR_TARGET" >&6; }
   14729 else
   14730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14731 $as_echo "no" >&6; }
   14732 fi
   14733 
   14734 
   14735     fi
   14736     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
   14737   done
   14738 fi
   14739 
   14740 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
   14741   GCC_FOR_TARGET="${CC_FOR_TARGET}"
   14742 else
   14743   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
   14744 fi
   14745 
   14746 
   14747 
   14748 if test -n "$GFORTRAN_FOR_TARGET"; then
   14749   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
   14750 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
   14751   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
   14752 fi
   14753 
   14754 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
   14755   for ncn_progname in gfortran; do
   14756     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14757 set dummy ${ncn_progname}; ac_word=$2
   14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14759 $as_echo_n "checking for $ac_word... " >&6; }
   14760 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
   14761   $as_echo_n "(cached) " >&6
   14762 else
   14763   if test -n "$GFORTRAN_FOR_TARGET"; then
   14764   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
   14765 else
   14766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14767 for as_dir in $PATH
   14768 do
   14769   IFS=$as_save_IFS
   14770   test -z "$as_dir" && as_dir=.
   14771     for ac_exec_ext in '' $ac_executable_extensions; do
   14772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14773     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
   14774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14775     break 2
   14776   fi
   14777 done
   14778   done
   14779 IFS=$as_save_IFS
   14780 
   14781 fi
   14782 fi
   14783 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
   14784 if test -n "$GFORTRAN_FOR_TARGET"; then
   14785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
   14786 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
   14787 else
   14788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14789 $as_echo "no" >&6; }
   14790 fi
   14791 
   14792 
   14793   done
   14794 fi
   14795 
   14796 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
   14797   for ncn_progname in gfortran; do
   14798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   14799 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   14800     if test -x $with_build_time_tools/${ncn_progname}; then
   14801       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   14802       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14803 $as_echo "yes" >&6; }
   14804       break
   14805     else
   14806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14807 $as_echo "no" >&6; }
   14808     fi
   14809   done
   14810 fi
   14811 
   14812 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
   14813   for ncn_progname in gfortran; do
   14814     if test -n "$ncn_target_tool_prefix"; then
   14815       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   14816 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14818 $as_echo_n "checking for $ac_word... " >&6; }
   14819 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
   14820   $as_echo_n "(cached) " >&6
   14821 else
   14822   if test -n "$GFORTRAN_FOR_TARGET"; then
   14823   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
   14824 else
   14825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14826 for as_dir in $PATH
   14827 do
   14828   IFS=$as_save_IFS
   14829   test -z "$as_dir" && as_dir=.
   14830     for ac_exec_ext in '' $ac_executable_extensions; do
   14831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14832     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   14833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14834     break 2
   14835   fi
   14836 done
   14837   done
   14838 IFS=$as_save_IFS
   14839 
   14840 fi
   14841 fi
   14842 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
   14843 if test -n "$GFORTRAN_FOR_TARGET"; then
   14844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
   14845 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
   14846 else
   14847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14848 $as_echo "no" >&6; }
   14849 fi
   14850 
   14851 
   14852     fi
   14853     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
   14854       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14855 set dummy ${ncn_progname}; ac_word=$2
   14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14857 $as_echo_n "checking for $ac_word... " >&6; }
   14858 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
   14859   $as_echo_n "(cached) " >&6
   14860 else
   14861   if test -n "$GFORTRAN_FOR_TARGET"; then
   14862   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
   14863 else
   14864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14865 for as_dir in $PATH
   14866 do
   14867   IFS=$as_save_IFS
   14868   test -z "$as_dir" && as_dir=.
   14869     for ac_exec_ext in '' $ac_executable_extensions; do
   14870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14871     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
   14872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14873     break 2
   14874   fi
   14875 done
   14876   done
   14877 IFS=$as_save_IFS
   14878 
   14879 fi
   14880 fi
   14881 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
   14882 if test -n "$GFORTRAN_FOR_TARGET"; then
   14883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
   14884 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
   14885 else
   14886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14887 $as_echo "no" >&6; }
   14888 fi
   14889 
   14890 
   14891     fi
   14892     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
   14893   done
   14894 fi
   14895 
   14896 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
   14897   set dummy gfortran
   14898   if test $build = $target ; then
   14899     GFORTRAN_FOR_TARGET="$2"
   14900   else
   14901     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
   14902   fi
   14903 else
   14904   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
   14905 fi
   14906 
   14907 
   14908 
   14909 if test -n "$GOC_FOR_TARGET"; then
   14910   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
   14911 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
   14912   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
   14913 fi
   14914 
   14915 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
   14916   for ncn_progname in gccgo; do
   14917     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   14918 set dummy ${ncn_progname}; ac_word=$2
   14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14920 $as_echo_n "checking for $ac_word... " >&6; }
   14921 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
   14922   $as_echo_n "(cached) " >&6
   14923 else
   14924   if test -n "$GOC_FOR_TARGET"; then
   14925   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
   14926 else
   14927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14928 for as_dir in $PATH
   14929 do
   14930   IFS=$as_save_IFS
   14931   test -z "$as_dir" && as_dir=.
   14932     for ac_exec_ext in '' $ac_executable_extensions; do
   14933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14934     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
   14935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14936     break 2
   14937   fi
   14938 done
   14939   done
   14940 IFS=$as_save_IFS
   14941 
   14942 fi
   14943 fi
   14944 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
   14945 if test -n "$GOC_FOR_TARGET"; then
   14946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
   14947 $as_echo "$GOC_FOR_TARGET" >&6; }
   14948 else
   14949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14950 $as_echo "no" >&6; }
   14951 fi
   14952 
   14953 
   14954   done
   14955 fi
   14956 
   14957 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
   14958   for ncn_progname in gccgo; do
   14959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   14960 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   14961     if test -x $with_build_time_tools/${ncn_progname}; then
   14962       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   14963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14964 $as_echo "yes" >&6; }
   14965       break
   14966     else
   14967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14968 $as_echo "no" >&6; }
   14969     fi
   14970   done
   14971 fi
   14972 
   14973 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
   14974   for ncn_progname in gccgo; do
   14975     if test -n "$ncn_target_tool_prefix"; then
   14976       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   14977 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14979 $as_echo_n "checking for $ac_word... " >&6; }
   14980 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
   14981   $as_echo_n "(cached) " >&6
   14982 else
   14983   if test -n "$GOC_FOR_TARGET"; then
   14984   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
   14985 else
   14986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14987 for as_dir in $PATH
   14988 do
   14989   IFS=$as_save_IFS
   14990   test -z "$as_dir" && as_dir=.
   14991     for ac_exec_ext in '' $ac_executable_extensions; do
   14992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14993     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   14994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14995     break 2
   14996   fi
   14997 done
   14998   done
   14999 IFS=$as_save_IFS
   15000 
   15001 fi
   15002 fi
   15003 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
   15004 if test -n "$GOC_FOR_TARGET"; then
   15005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
   15006 $as_echo "$GOC_FOR_TARGET" >&6; }
   15007 else
   15008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15009 $as_echo "no" >&6; }
   15010 fi
   15011 
   15012 
   15013     fi
   15014     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
   15015       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15016 set dummy ${ncn_progname}; ac_word=$2
   15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15018 $as_echo_n "checking for $ac_word... " >&6; }
   15019 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
   15020   $as_echo_n "(cached) " >&6
   15021 else
   15022   if test -n "$GOC_FOR_TARGET"; then
   15023   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
   15024 else
   15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15026 for as_dir in $PATH
   15027 do
   15028   IFS=$as_save_IFS
   15029   test -z "$as_dir" && as_dir=.
   15030     for ac_exec_ext in '' $ac_executable_extensions; do
   15031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15032     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
   15033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15034     break 2
   15035   fi
   15036 done
   15037   done
   15038 IFS=$as_save_IFS
   15039 
   15040 fi
   15041 fi
   15042 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
   15043 if test -n "$GOC_FOR_TARGET"; then
   15044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
   15045 $as_echo "$GOC_FOR_TARGET" >&6; }
   15046 else
   15047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15048 $as_echo "no" >&6; }
   15049 fi
   15050 
   15051 
   15052     fi
   15053     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
   15054   done
   15055 fi
   15056 
   15057 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
   15058   set dummy gccgo
   15059   if test $build = $target ; then
   15060     GOC_FOR_TARGET="$2"
   15061   else
   15062     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
   15063   fi
   15064 else
   15065   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
   15066 fi
   15067 
   15068 
   15069 
   15070 if test -n "$GDC_FOR_TARGET"; then
   15071   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
   15072 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
   15073   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
   15074 fi
   15075 
   15076 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
   15077   for ncn_progname in gdc; do
   15078     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15079 set dummy ${ncn_progname}; ac_word=$2
   15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15081 $as_echo_n "checking for $ac_word... " >&6; }
   15082 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
   15083   $as_echo_n "(cached) " >&6
   15084 else
   15085   if test -n "$GDC_FOR_TARGET"; then
   15086   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
   15087 else
   15088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15089 for as_dir in $PATH
   15090 do
   15091   IFS=$as_save_IFS
   15092   test -z "$as_dir" && as_dir=.
   15093     for ac_exec_ext in '' $ac_executable_extensions; do
   15094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15095     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
   15096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15097     break 2
   15098   fi
   15099 done
   15100   done
   15101 IFS=$as_save_IFS
   15102 
   15103 fi
   15104 fi
   15105 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
   15106 if test -n "$GDC_FOR_TARGET"; then
   15107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
   15108 $as_echo "$GDC_FOR_TARGET" >&6; }
   15109 else
   15110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15111 $as_echo "no" >&6; }
   15112 fi
   15113 
   15114 
   15115   done
   15116 fi
   15117 
   15118 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15119   for ncn_progname in gdc; do
   15120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15121 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15122     if test -x $with_build_time_tools/${ncn_progname}; then
   15123       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15125 $as_echo "yes" >&6; }
   15126       break
   15127     else
   15128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15129 $as_echo "no" >&6; }
   15130     fi
   15131   done
   15132 fi
   15133 
   15134 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
   15135   for ncn_progname in gdc; do
   15136     if test -n "$ncn_target_tool_prefix"; then
   15137       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   15138 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15140 $as_echo_n "checking for $ac_word... " >&6; }
   15141 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
   15142   $as_echo_n "(cached) " >&6
   15143 else
   15144   if test -n "$GDC_FOR_TARGET"; then
   15145   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
   15146 else
   15147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15148 for as_dir in $PATH
   15149 do
   15150   IFS=$as_save_IFS
   15151   test -z "$as_dir" && as_dir=.
   15152     for ac_exec_ext in '' $ac_executable_extensions; do
   15153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15154     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   15155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15156     break 2
   15157   fi
   15158 done
   15159   done
   15160 IFS=$as_save_IFS
   15161 
   15162 fi
   15163 fi
   15164 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
   15165 if test -n "$GDC_FOR_TARGET"; then
   15166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
   15167 $as_echo "$GDC_FOR_TARGET" >&6; }
   15168 else
   15169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15170 $as_echo "no" >&6; }
   15171 fi
   15172 
   15173 
   15174     fi
   15175     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
   15176       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15177 set dummy ${ncn_progname}; ac_word=$2
   15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15179 $as_echo_n "checking for $ac_word... " >&6; }
   15180 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
   15181   $as_echo_n "(cached) " >&6
   15182 else
   15183   if test -n "$GDC_FOR_TARGET"; then
   15184   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
   15185 else
   15186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15187 for as_dir in $PATH
   15188 do
   15189   IFS=$as_save_IFS
   15190   test -z "$as_dir" && as_dir=.
   15191     for ac_exec_ext in '' $ac_executable_extensions; do
   15192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15193     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
   15194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15195     break 2
   15196   fi
   15197 done
   15198   done
   15199 IFS=$as_save_IFS
   15200 
   15201 fi
   15202 fi
   15203 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
   15204 if test -n "$GDC_FOR_TARGET"; then
   15205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
   15206 $as_echo "$GDC_FOR_TARGET" >&6; }
   15207 else
   15208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15209 $as_echo "no" >&6; }
   15210 fi
   15211 
   15212 
   15213     fi
   15214     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
   15215   done
   15216 fi
   15217 
   15218 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
   15219   set dummy gdc
   15220   if test $build = $target ; then
   15221     GDC_FOR_TARGET="$2"
   15222   else
   15223     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
   15224   fi
   15225 else
   15226   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
   15227 fi
   15228 
   15229 
   15230 
   15231 if test -n "$GM2_FOR_TARGET"; then
   15232   ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
   15233 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
   15234   GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
   15235 fi
   15236 
   15237 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
   15238   for ncn_progname in gm2; do
   15239     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15240 set dummy ${ncn_progname}; ac_word=$2
   15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15242 $as_echo_n "checking for $ac_word... " >&6; }
   15243 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
   15244   $as_echo_n "(cached) " >&6
   15245 else
   15246   if test -n "$GM2_FOR_TARGET"; then
   15247   ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
   15248 else
   15249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15250 for as_dir in $PATH
   15251 do
   15252   IFS=$as_save_IFS
   15253   test -z "$as_dir" && as_dir=.
   15254     for ac_exec_ext in '' $ac_executable_extensions; do
   15255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15256     ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
   15257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15258     break 2
   15259   fi
   15260 done
   15261   done
   15262 IFS=$as_save_IFS
   15263 
   15264 fi
   15265 fi
   15266 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
   15267 if test -n "$GM2_FOR_TARGET"; then
   15268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
   15269 $as_echo "$GM2_FOR_TARGET" >&6; }
   15270 else
   15271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15272 $as_echo "no" >&6; }
   15273 fi
   15274 
   15275 
   15276   done
   15277 fi
   15278 
   15279 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15280   for ncn_progname in gm2; do
   15281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15282 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15283     if test -x $with_build_time_tools/${ncn_progname}; then
   15284       ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15286 $as_echo "yes" >&6; }
   15287       break
   15288     else
   15289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15290 $as_echo "no" >&6; }
   15291     fi
   15292   done
   15293 fi
   15294 
   15295 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
   15296   for ncn_progname in gm2; do
   15297     if test -n "$ncn_target_tool_prefix"; then
   15298       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   15299 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15301 $as_echo_n "checking for $ac_word... " >&6; }
   15302 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
   15303   $as_echo_n "(cached) " >&6
   15304 else
   15305   if test -n "$GM2_FOR_TARGET"; then
   15306   ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
   15307 else
   15308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15309 for as_dir in $PATH
   15310 do
   15311   IFS=$as_save_IFS
   15312   test -z "$as_dir" && as_dir=.
   15313     for ac_exec_ext in '' $ac_executable_extensions; do
   15314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15315     ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   15316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15317     break 2
   15318   fi
   15319 done
   15320   done
   15321 IFS=$as_save_IFS
   15322 
   15323 fi
   15324 fi
   15325 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
   15326 if test -n "$GM2_FOR_TARGET"; then
   15327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
   15328 $as_echo "$GM2_FOR_TARGET" >&6; }
   15329 else
   15330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15331 $as_echo "no" >&6; }
   15332 fi
   15333 
   15334 
   15335     fi
   15336     if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
   15337       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15338 set dummy ${ncn_progname}; ac_word=$2
   15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15340 $as_echo_n "checking for $ac_word... " >&6; }
   15341 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
   15342   $as_echo_n "(cached) " >&6
   15343 else
   15344   if test -n "$GM2_FOR_TARGET"; then
   15345   ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
   15346 else
   15347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15348 for as_dir in $PATH
   15349 do
   15350   IFS=$as_save_IFS
   15351   test -z "$as_dir" && as_dir=.
   15352     for ac_exec_ext in '' $ac_executable_extensions; do
   15353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15354     ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
   15355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15356     break 2
   15357   fi
   15358 done
   15359   done
   15360 IFS=$as_save_IFS
   15361 
   15362 fi
   15363 fi
   15364 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
   15365 if test -n "$GM2_FOR_TARGET"; then
   15366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
   15367 $as_echo "$GM2_FOR_TARGET" >&6; }
   15368 else
   15369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15370 $as_echo "no" >&6; }
   15371 fi
   15372 
   15373 
   15374     fi
   15375     test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
   15376   done
   15377 fi
   15378 
   15379 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
   15380   set dummy gm2
   15381   if test $build = $target ; then
   15382     GM2_FOR_TARGET="$2"
   15383   else
   15384     GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
   15385   fi
   15386 else
   15387   GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
   15388 fi
   15389 
   15390 
   15391 
   15392 cat > conftest.c << \EOF
   15393 #ifdef __GNUC__
   15394   gcc_yay;
   15395 #endif
   15396 EOF
   15397 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
   15398   have_gcc_for_target=yes
   15399 else
   15400   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
   15401   have_gcc_for_target=no
   15402 fi
   15403 rm conftest.c
   15404 
   15405 
   15406 
   15407 
   15408 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
   15409   if test -n "$with_build_time_tools"; then
   15410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
   15411 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
   15412     if test -x $with_build_time_tools/ar; then
   15413       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
   15414       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
   15415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
   15416 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
   15417     else
   15418       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15419 $as_echo "no" >&6; }
   15420     fi
   15421   elif test $build != $host && test $have_gcc_for_target = yes; then
   15422     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
   15423     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
   15424     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
   15425   fi
   15426 fi
   15427 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   15428   # Extract the first word of "ar", so it can be a program name with args.
   15429 set dummy ar; ac_word=$2
   15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15431 $as_echo_n "checking for $ac_word... " >&6; }
   15432 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
   15433   $as_echo_n "(cached) " >&6
   15434 else
   15435   case $AR_FOR_TARGET in
   15436   [\\/]* | ?:[\\/]*)
   15437   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
   15438   ;;
   15439   *)
   15440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15441 for as_dir in $gcc_cv_tool_dirs
   15442 do
   15443   IFS=$as_save_IFS
   15444   test -z "$as_dir" && as_dir=.
   15445     for ac_exec_ext in '' $ac_executable_extensions; do
   15446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15447     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   15448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15449     break 2
   15450   fi
   15451 done
   15452   done
   15453 IFS=$as_save_IFS
   15454 
   15455   ;;
   15456 esac
   15457 fi
   15458 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
   15459 if test -n "$AR_FOR_TARGET"; then
   15460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
   15461 $as_echo "$AR_FOR_TARGET" >&6; }
   15462 else
   15463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15464 $as_echo "no" >&6; }
   15465 fi
   15466 
   15467 
   15468 fi
   15469 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
   15470 
   15471 
   15472 if test -n "$AR_FOR_TARGET"; then
   15473   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
   15474 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
   15475   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
   15476 fi
   15477 
   15478 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
   15479   for ncn_progname in ar; do
   15480     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15481 set dummy ${ncn_progname}; ac_word=$2
   15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15483 $as_echo_n "checking for $ac_word... " >&6; }
   15484 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
   15485   $as_echo_n "(cached) " >&6
   15486 else
   15487   if test -n "$AR_FOR_TARGET"; then
   15488   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
   15489 else
   15490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15491 for as_dir in $PATH
   15492 do
   15493   IFS=$as_save_IFS
   15494   test -z "$as_dir" && as_dir=.
   15495     for ac_exec_ext in '' $ac_executable_extensions; do
   15496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15497     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
   15498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15499     break 2
   15500   fi
   15501 done
   15502   done
   15503 IFS=$as_save_IFS
   15504 
   15505 fi
   15506 fi
   15507 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
   15508 if test -n "$AR_FOR_TARGET"; then
   15509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
   15510 $as_echo "$AR_FOR_TARGET" >&6; }
   15511 else
   15512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15513 $as_echo "no" >&6; }
   15514 fi
   15515 
   15516 
   15517   done
   15518 fi
   15519 
   15520 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15521   for ncn_progname in ar; do
   15522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15523 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15524     if test -x $with_build_time_tools/${ncn_progname}; then
   15525       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15526       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15527 $as_echo "yes" >&6; }
   15528       break
   15529     else
   15530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15531 $as_echo "no" >&6; }
   15532     fi
   15533   done
   15534 fi
   15535 
   15536 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
   15537   for ncn_progname in ar; do
   15538     if test -n "$ncn_target_tool_prefix"; then
   15539       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   15540 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15542 $as_echo_n "checking for $ac_word... " >&6; }
   15543 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
   15544   $as_echo_n "(cached) " >&6
   15545 else
   15546   if test -n "$AR_FOR_TARGET"; then
   15547   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
   15548 else
   15549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15550 for as_dir in $PATH
   15551 do
   15552   IFS=$as_save_IFS
   15553   test -z "$as_dir" && as_dir=.
   15554     for ac_exec_ext in '' $ac_executable_extensions; do
   15555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15556     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   15557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15558     break 2
   15559   fi
   15560 done
   15561   done
   15562 IFS=$as_save_IFS
   15563 
   15564 fi
   15565 fi
   15566 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
   15567 if test -n "$AR_FOR_TARGET"; then
   15568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
   15569 $as_echo "$AR_FOR_TARGET" >&6; }
   15570 else
   15571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15572 $as_echo "no" >&6; }
   15573 fi
   15574 
   15575 
   15576     fi
   15577     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
   15578       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15579 set dummy ${ncn_progname}; ac_word=$2
   15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15581 $as_echo_n "checking for $ac_word... " >&6; }
   15582 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
   15583   $as_echo_n "(cached) " >&6
   15584 else
   15585   if test -n "$AR_FOR_TARGET"; then
   15586   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
   15587 else
   15588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15589 for as_dir in $PATH
   15590 do
   15591   IFS=$as_save_IFS
   15592   test -z "$as_dir" && as_dir=.
   15593     for ac_exec_ext in '' $ac_executable_extensions; do
   15594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15595     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
   15596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15597     break 2
   15598   fi
   15599 done
   15600   done
   15601 IFS=$as_save_IFS
   15602 
   15603 fi
   15604 fi
   15605 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
   15606 if test -n "$AR_FOR_TARGET"; then
   15607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
   15608 $as_echo "$AR_FOR_TARGET" >&6; }
   15609 else
   15610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15611 $as_echo "no" >&6; }
   15612 fi
   15613 
   15614 
   15615     fi
   15616     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
   15617   done
   15618 fi
   15619 
   15620 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
   15621   set dummy ar
   15622   if test $build = $target ; then
   15623     AR_FOR_TARGET="$2"
   15624   else
   15625     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
   15626   fi
   15627 else
   15628   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
   15629 fi
   15630 
   15631 else
   15632   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
   15633 fi
   15634 
   15635 
   15636 
   15637 
   15638 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
   15639   if test -n "$with_build_time_tools"; then
   15640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
   15641 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
   15642     if test -x $with_build_time_tools/as; then
   15643       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
   15644       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
   15645       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
   15646 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
   15647     else
   15648       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15649 $as_echo "no" >&6; }
   15650     fi
   15651   elif test $build != $host && test $have_gcc_for_target = yes; then
   15652     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
   15653     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
   15654     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
   15655   fi
   15656 fi
   15657 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   15658   # Extract the first word of "as", so it can be a program name with args.
   15659 set dummy as; ac_word=$2
   15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15661 $as_echo_n "checking for $ac_word... " >&6; }
   15662 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
   15663   $as_echo_n "(cached) " >&6
   15664 else
   15665   case $AS_FOR_TARGET in
   15666   [\\/]* | ?:[\\/]*)
   15667   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
   15668   ;;
   15669   *)
   15670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15671 for as_dir in $gcc_cv_tool_dirs
   15672 do
   15673   IFS=$as_save_IFS
   15674   test -z "$as_dir" && as_dir=.
   15675     for ac_exec_ext in '' $ac_executable_extensions; do
   15676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15677     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   15678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15679     break 2
   15680   fi
   15681 done
   15682   done
   15683 IFS=$as_save_IFS
   15684 
   15685   ;;
   15686 esac
   15687 fi
   15688 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
   15689 if test -n "$AS_FOR_TARGET"; then
   15690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
   15691 $as_echo "$AS_FOR_TARGET" >&6; }
   15692 else
   15693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15694 $as_echo "no" >&6; }
   15695 fi
   15696 
   15697 
   15698 fi
   15699 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
   15700 
   15701 
   15702 if test -n "$AS_FOR_TARGET"; then
   15703   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
   15704 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
   15705   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
   15706 fi
   15707 
   15708 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
   15709   for ncn_progname in as; do
   15710     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15711 set dummy ${ncn_progname}; ac_word=$2
   15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15713 $as_echo_n "checking for $ac_word... " >&6; }
   15714 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
   15715   $as_echo_n "(cached) " >&6
   15716 else
   15717   if test -n "$AS_FOR_TARGET"; then
   15718   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
   15719 else
   15720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15721 for as_dir in $PATH
   15722 do
   15723   IFS=$as_save_IFS
   15724   test -z "$as_dir" && as_dir=.
   15725     for ac_exec_ext in '' $ac_executable_extensions; do
   15726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15727     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
   15728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15729     break 2
   15730   fi
   15731 done
   15732   done
   15733 IFS=$as_save_IFS
   15734 
   15735 fi
   15736 fi
   15737 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
   15738 if test -n "$AS_FOR_TARGET"; then
   15739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
   15740 $as_echo "$AS_FOR_TARGET" >&6; }
   15741 else
   15742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15743 $as_echo "no" >&6; }
   15744 fi
   15745 
   15746 
   15747   done
   15748 fi
   15749 
   15750 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15751   for ncn_progname in as; do
   15752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15753 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15754     if test -x $with_build_time_tools/${ncn_progname}; then
   15755       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15756       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15757 $as_echo "yes" >&6; }
   15758       break
   15759     else
   15760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15761 $as_echo "no" >&6; }
   15762     fi
   15763   done
   15764 fi
   15765 
   15766 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
   15767   for ncn_progname in as; do
   15768     if test -n "$ncn_target_tool_prefix"; then
   15769       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   15770 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15772 $as_echo_n "checking for $ac_word... " >&6; }
   15773 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
   15774   $as_echo_n "(cached) " >&6
   15775 else
   15776   if test -n "$AS_FOR_TARGET"; then
   15777   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
   15778 else
   15779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15780 for as_dir in $PATH
   15781 do
   15782   IFS=$as_save_IFS
   15783   test -z "$as_dir" && as_dir=.
   15784     for ac_exec_ext in '' $ac_executable_extensions; do
   15785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15786     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   15787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15788     break 2
   15789   fi
   15790 done
   15791   done
   15792 IFS=$as_save_IFS
   15793 
   15794 fi
   15795 fi
   15796 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
   15797 if test -n "$AS_FOR_TARGET"; then
   15798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
   15799 $as_echo "$AS_FOR_TARGET" >&6; }
   15800 else
   15801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15802 $as_echo "no" >&6; }
   15803 fi
   15804 
   15805 
   15806     fi
   15807     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
   15808       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15809 set dummy ${ncn_progname}; ac_word=$2
   15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15811 $as_echo_n "checking for $ac_word... " >&6; }
   15812 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
   15813   $as_echo_n "(cached) " >&6
   15814 else
   15815   if test -n "$AS_FOR_TARGET"; then
   15816   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
   15817 else
   15818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15819 for as_dir in $PATH
   15820 do
   15821   IFS=$as_save_IFS
   15822   test -z "$as_dir" && as_dir=.
   15823     for ac_exec_ext in '' $ac_executable_extensions; do
   15824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15825     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
   15826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15827     break 2
   15828   fi
   15829 done
   15830   done
   15831 IFS=$as_save_IFS
   15832 
   15833 fi
   15834 fi
   15835 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
   15836 if test -n "$AS_FOR_TARGET"; then
   15837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
   15838 $as_echo "$AS_FOR_TARGET" >&6; }
   15839 else
   15840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15841 $as_echo "no" >&6; }
   15842 fi
   15843 
   15844 
   15845     fi
   15846     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
   15847   done
   15848 fi
   15849 
   15850 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
   15851   set dummy as
   15852   if test $build = $target ; then
   15853     AS_FOR_TARGET="$2"
   15854   else
   15855     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
   15856   fi
   15857 else
   15858   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
   15859 fi
   15860 
   15861 else
   15862   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
   15863 fi
   15864 
   15865 
   15866 
   15867 
   15868 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
   15869   if test -n "$with_build_time_tools"; then
   15870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
   15871 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
   15872     if test -x $with_build_time_tools/dlltool; then
   15873       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
   15874       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
   15875       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
   15876 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
   15877     else
   15878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15879 $as_echo "no" >&6; }
   15880     fi
   15881   elif test $build != $host && test $have_gcc_for_target = yes; then
   15882     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
   15883     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
   15884     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
   15885   fi
   15886 fi
   15887 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   15888   # Extract the first word of "dlltool", so it can be a program name with args.
   15889 set dummy dlltool; ac_word=$2
   15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15891 $as_echo_n "checking for $ac_word... " >&6; }
   15892 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
   15893   $as_echo_n "(cached) " >&6
   15894 else
   15895   case $DLLTOOL_FOR_TARGET in
   15896   [\\/]* | ?:[\\/]*)
   15897   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
   15898   ;;
   15899   *)
   15900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15901 for as_dir in $gcc_cv_tool_dirs
   15902 do
   15903   IFS=$as_save_IFS
   15904   test -z "$as_dir" && as_dir=.
   15905     for ac_exec_ext in '' $ac_executable_extensions; do
   15906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15907     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   15908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15909     break 2
   15910   fi
   15911 done
   15912   done
   15913 IFS=$as_save_IFS
   15914 
   15915   ;;
   15916 esac
   15917 fi
   15918 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
   15919 if test -n "$DLLTOOL_FOR_TARGET"; then
   15920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
   15921 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
   15922 else
   15923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15924 $as_echo "no" >&6; }
   15925 fi
   15926 
   15927 
   15928 fi
   15929 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
   15930 
   15931 
   15932 if test -n "$DLLTOOL_FOR_TARGET"; then
   15933   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
   15934 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
   15935   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
   15936 fi
   15937 
   15938 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
   15939   for ncn_progname in dlltool; do
   15940     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   15941 set dummy ${ncn_progname}; ac_word=$2
   15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15943 $as_echo_n "checking for $ac_word... " >&6; }
   15944 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
   15945   $as_echo_n "(cached) " >&6
   15946 else
   15947   if test -n "$DLLTOOL_FOR_TARGET"; then
   15948   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
   15949 else
   15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15951 for as_dir in $PATH
   15952 do
   15953   IFS=$as_save_IFS
   15954   test -z "$as_dir" && as_dir=.
   15955     for ac_exec_ext in '' $ac_executable_extensions; do
   15956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15957     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
   15958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15959     break 2
   15960   fi
   15961 done
   15962   done
   15963 IFS=$as_save_IFS
   15964 
   15965 fi
   15966 fi
   15967 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
   15968 if test -n "$DLLTOOL_FOR_TARGET"; then
   15969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
   15970 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
   15971 else
   15972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15973 $as_echo "no" >&6; }
   15974 fi
   15975 
   15976 
   15977   done
   15978 fi
   15979 
   15980 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
   15981   for ncn_progname in dlltool; do
   15982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   15983 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   15984     if test -x $with_build_time_tools/${ncn_progname}; then
   15985       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   15986       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15987 $as_echo "yes" >&6; }
   15988       break
   15989     else
   15990       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15991 $as_echo "no" >&6; }
   15992     fi
   15993   done
   15994 fi
   15995 
   15996 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
   15997   for ncn_progname in dlltool; do
   15998     if test -n "$ncn_target_tool_prefix"; then
   15999       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   16000 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16002 $as_echo_n "checking for $ac_word... " >&6; }
   16003 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
   16004   $as_echo_n "(cached) " >&6
   16005 else
   16006   if test -n "$DLLTOOL_FOR_TARGET"; then
   16007   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
   16008 else
   16009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16010 for as_dir in $PATH
   16011 do
   16012   IFS=$as_save_IFS
   16013   test -z "$as_dir" && as_dir=.
   16014     for ac_exec_ext in '' $ac_executable_extensions; do
   16015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16016     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   16017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16018     break 2
   16019   fi
   16020 done
   16021   done
   16022 IFS=$as_save_IFS
   16023 
   16024 fi
   16025 fi
   16026 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
   16027 if test -n "$DLLTOOL_FOR_TARGET"; then
   16028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
   16029 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
   16030 else
   16031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16032 $as_echo "no" >&6; }
   16033 fi
   16034 
   16035 
   16036     fi
   16037     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
   16038       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16039 set dummy ${ncn_progname}; ac_word=$2
   16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16041 $as_echo_n "checking for $ac_word... " >&6; }
   16042 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
   16043   $as_echo_n "(cached) " >&6
   16044 else
   16045   if test -n "$DLLTOOL_FOR_TARGET"; then
   16046   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
   16047 else
   16048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16049 for as_dir in $PATH
   16050 do
   16051   IFS=$as_save_IFS
   16052   test -z "$as_dir" && as_dir=.
   16053     for ac_exec_ext in '' $ac_executable_extensions; do
   16054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16055     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
   16056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16057     break 2
   16058   fi
   16059 done
   16060   done
   16061 IFS=$as_save_IFS
   16062 
   16063 fi
   16064 fi
   16065 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
   16066 if test -n "$DLLTOOL_FOR_TARGET"; then
   16067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
   16068 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
   16069 else
   16070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16071 $as_echo "no" >&6; }
   16072 fi
   16073 
   16074 
   16075     fi
   16076     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
   16077   done
   16078 fi
   16079 
   16080 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
   16081   set dummy dlltool
   16082   if test $build = $target ; then
   16083     DLLTOOL_FOR_TARGET="$2"
   16084   else
   16085     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
   16086   fi
   16087 else
   16088   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
   16089 fi
   16090 
   16091 else
   16092   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
   16093 fi
   16094 
   16095 
   16096 
   16097 
   16098 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
   16099   if test -n "$with_build_time_tools"; then
   16100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
   16101 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
   16102     if test -x $with_build_time_tools/dsymutil; then
   16103       DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
   16104       ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
   16105       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
   16106 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
   16107     else
   16108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16109 $as_echo "no" >&6; }
   16110     fi
   16111   elif test $build != $host && test $have_gcc_for_target = yes; then
   16112     DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
   16113     test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
   16114     test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
   16115   fi
   16116 fi
   16117 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   16118   # Extract the first word of "dsymutil", so it can be a program name with args.
   16119 set dummy dsymutil; ac_word=$2
   16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16121 $as_echo_n "checking for $ac_word... " >&6; }
   16122 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
   16123   $as_echo_n "(cached) " >&6
   16124 else
   16125   case $DSYMUTIL_FOR_TARGET in
   16126   [\\/]* | ?:[\\/]*)
   16127   ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
   16128   ;;
   16129   *)
   16130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16131 for as_dir in $gcc_cv_tool_dirs
   16132 do
   16133   IFS=$as_save_IFS
   16134   test -z "$as_dir" && as_dir=.
   16135     for ac_exec_ext in '' $ac_executable_extensions; do
   16136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16137     ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   16138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16139     break 2
   16140   fi
   16141 done
   16142   done
   16143 IFS=$as_save_IFS
   16144 
   16145   ;;
   16146 esac
   16147 fi
   16148 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
   16149 if test -n "$DSYMUTIL_FOR_TARGET"; then
   16150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
   16151 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
   16152 else
   16153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16154 $as_echo "no" >&6; }
   16155 fi
   16156 
   16157 
   16158 fi
   16159 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
   16160 
   16161 
   16162 if test -n "$DSYMUTIL_FOR_TARGET"; then
   16163   ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
   16164 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
   16165   DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
   16166 fi
   16167 
   16168 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
   16169   for ncn_progname in dsymutil; do
   16170     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16171 set dummy ${ncn_progname}; ac_word=$2
   16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16173 $as_echo_n "checking for $ac_word... " >&6; }
   16174 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
   16175   $as_echo_n "(cached) " >&6
   16176 else
   16177   if test -n "$DSYMUTIL_FOR_TARGET"; then
   16178   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
   16179 else
   16180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16181 for as_dir in $PATH
   16182 do
   16183   IFS=$as_save_IFS
   16184   test -z "$as_dir" && as_dir=.
   16185     for ac_exec_ext in '' $ac_executable_extensions; do
   16186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16187     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
   16188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16189     break 2
   16190   fi
   16191 done
   16192   done
   16193 IFS=$as_save_IFS
   16194 
   16195 fi
   16196 fi
   16197 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
   16198 if test -n "$DSYMUTIL_FOR_TARGET"; then
   16199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
   16200 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
   16201 else
   16202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16203 $as_echo "no" >&6; }
   16204 fi
   16205 
   16206 
   16207   done
   16208 fi
   16209 
   16210 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
   16211   for ncn_progname in dsymutil; do
   16212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   16213 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   16214     if test -x $with_build_time_tools/${ncn_progname}; then
   16215       ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   16216       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16217 $as_echo "yes" >&6; }
   16218       break
   16219     else
   16220       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16221 $as_echo "no" >&6; }
   16222     fi
   16223   done
   16224 fi
   16225 
   16226 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
   16227   for ncn_progname in dsymutil; do
   16228     if test -n "$ncn_target_tool_prefix"; then
   16229       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   16230 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16232 $as_echo_n "checking for $ac_word... " >&6; }
   16233 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
   16234   $as_echo_n "(cached) " >&6
   16235 else
   16236   if test -n "$DSYMUTIL_FOR_TARGET"; then
   16237   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
   16238 else
   16239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16240 for as_dir in $PATH
   16241 do
   16242   IFS=$as_save_IFS
   16243   test -z "$as_dir" && as_dir=.
   16244     for ac_exec_ext in '' $ac_executable_extensions; do
   16245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16246     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   16247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16248     break 2
   16249   fi
   16250 done
   16251   done
   16252 IFS=$as_save_IFS
   16253 
   16254 fi
   16255 fi
   16256 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
   16257 if test -n "$DSYMUTIL_FOR_TARGET"; then
   16258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
   16259 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
   16260 else
   16261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16262 $as_echo "no" >&6; }
   16263 fi
   16264 
   16265 
   16266     fi
   16267     if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
   16268       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16269 set dummy ${ncn_progname}; ac_word=$2
   16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16271 $as_echo_n "checking for $ac_word... " >&6; }
   16272 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
   16273   $as_echo_n "(cached) " >&6
   16274 else
   16275   if test -n "$DSYMUTIL_FOR_TARGET"; then
   16276   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
   16277 else
   16278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16279 for as_dir in $PATH
   16280 do
   16281   IFS=$as_save_IFS
   16282   test -z "$as_dir" && as_dir=.
   16283     for ac_exec_ext in '' $ac_executable_extensions; do
   16284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16285     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
   16286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16287     break 2
   16288   fi
   16289 done
   16290   done
   16291 IFS=$as_save_IFS
   16292 
   16293 fi
   16294 fi
   16295 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
   16296 if test -n "$DSYMUTIL_FOR_TARGET"; then
   16297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
   16298 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
   16299 else
   16300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16301 $as_echo "no" >&6; }
   16302 fi
   16303 
   16304 
   16305     fi
   16306     test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
   16307   done
   16308 fi
   16309 
   16310 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
   16311   set dummy dsymutil
   16312   if test $build = $target ; then
   16313     DSYMUTIL_FOR_TARGET="$2"
   16314   else
   16315     DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
   16316   fi
   16317 else
   16318   DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
   16319 fi
   16320 
   16321 else
   16322   DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
   16323 fi
   16324 
   16325 
   16326 
   16327 
   16328 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
   16329   if test -n "$with_build_time_tools"; then
   16330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
   16331 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
   16332     if test -x $with_build_time_tools/ld; then
   16333       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
   16334       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
   16335       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
   16336 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
   16337     else
   16338       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16339 $as_echo "no" >&6; }
   16340     fi
   16341   elif test $build != $host && test $have_gcc_for_target = yes; then
   16342     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
   16343     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
   16344     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
   16345   fi
   16346 fi
   16347 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   16348   # Extract the first word of "ld", so it can be a program name with args.
   16349 set dummy ld; ac_word=$2
   16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16351 $as_echo_n "checking for $ac_word... " >&6; }
   16352 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
   16353   $as_echo_n "(cached) " >&6
   16354 else
   16355   case $LD_FOR_TARGET in
   16356   [\\/]* | ?:[\\/]*)
   16357   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
   16358   ;;
   16359   *)
   16360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16361 for as_dir in $gcc_cv_tool_dirs
   16362 do
   16363   IFS=$as_save_IFS
   16364   test -z "$as_dir" && as_dir=.
   16365     for ac_exec_ext in '' $ac_executable_extensions; do
   16366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16367     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   16368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16369     break 2
   16370   fi
   16371 done
   16372   done
   16373 IFS=$as_save_IFS
   16374 
   16375   ;;
   16376 esac
   16377 fi
   16378 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
   16379 if test -n "$LD_FOR_TARGET"; then
   16380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
   16381 $as_echo "$LD_FOR_TARGET" >&6; }
   16382 else
   16383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16384 $as_echo "no" >&6; }
   16385 fi
   16386 
   16387 
   16388 fi
   16389 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
   16390 
   16391 
   16392 if test -n "$LD_FOR_TARGET"; then
   16393   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
   16394 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
   16395   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
   16396 fi
   16397 
   16398 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
   16399   for ncn_progname in ld; do
   16400     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16401 set dummy ${ncn_progname}; ac_word=$2
   16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16403 $as_echo_n "checking for $ac_word... " >&6; }
   16404 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
   16405   $as_echo_n "(cached) " >&6
   16406 else
   16407   if test -n "$LD_FOR_TARGET"; then
   16408   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
   16409 else
   16410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16411 for as_dir in $PATH
   16412 do
   16413   IFS=$as_save_IFS
   16414   test -z "$as_dir" && as_dir=.
   16415     for ac_exec_ext in '' $ac_executable_extensions; do
   16416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16417     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
   16418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16419     break 2
   16420   fi
   16421 done
   16422   done
   16423 IFS=$as_save_IFS
   16424 
   16425 fi
   16426 fi
   16427 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
   16428 if test -n "$LD_FOR_TARGET"; then
   16429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
   16430 $as_echo "$LD_FOR_TARGET" >&6; }
   16431 else
   16432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16433 $as_echo "no" >&6; }
   16434 fi
   16435 
   16436 
   16437   done
   16438 fi
   16439 
   16440 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
   16441   for ncn_progname in ld; do
   16442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   16443 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   16444     if test -x $with_build_time_tools/${ncn_progname}; then
   16445       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   16446       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16447 $as_echo "yes" >&6; }
   16448       break
   16449     else
   16450       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16451 $as_echo "no" >&6; }
   16452     fi
   16453   done
   16454 fi
   16455 
   16456 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
   16457   for ncn_progname in ld; do
   16458     if test -n "$ncn_target_tool_prefix"; then
   16459       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   16460 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16462 $as_echo_n "checking for $ac_word... " >&6; }
   16463 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
   16464   $as_echo_n "(cached) " >&6
   16465 else
   16466   if test -n "$LD_FOR_TARGET"; then
   16467   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
   16468 else
   16469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16470 for as_dir in $PATH
   16471 do
   16472   IFS=$as_save_IFS
   16473   test -z "$as_dir" && as_dir=.
   16474     for ac_exec_ext in '' $ac_executable_extensions; do
   16475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16476     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   16477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16478     break 2
   16479   fi
   16480 done
   16481   done
   16482 IFS=$as_save_IFS
   16483 
   16484 fi
   16485 fi
   16486 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
   16487 if test -n "$LD_FOR_TARGET"; then
   16488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
   16489 $as_echo "$LD_FOR_TARGET" >&6; }
   16490 else
   16491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16492 $as_echo "no" >&6; }
   16493 fi
   16494 
   16495 
   16496     fi
   16497     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
   16498       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16499 set dummy ${ncn_progname}; ac_word=$2
   16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16501 $as_echo_n "checking for $ac_word... " >&6; }
   16502 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
   16503   $as_echo_n "(cached) " >&6
   16504 else
   16505   if test -n "$LD_FOR_TARGET"; then
   16506   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
   16507 else
   16508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16509 for as_dir in $PATH
   16510 do
   16511   IFS=$as_save_IFS
   16512   test -z "$as_dir" && as_dir=.
   16513     for ac_exec_ext in '' $ac_executable_extensions; do
   16514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16515     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
   16516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16517     break 2
   16518   fi
   16519 done
   16520   done
   16521 IFS=$as_save_IFS
   16522 
   16523 fi
   16524 fi
   16525 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
   16526 if test -n "$LD_FOR_TARGET"; then
   16527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
   16528 $as_echo "$LD_FOR_TARGET" >&6; }
   16529 else
   16530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16531 $as_echo "no" >&6; }
   16532 fi
   16533 
   16534 
   16535     fi
   16536     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
   16537   done
   16538 fi
   16539 
   16540 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
   16541   set dummy ld
   16542   if test $build = $target ; then
   16543     LD_FOR_TARGET="$2"
   16544   else
   16545     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
   16546   fi
   16547 else
   16548   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
   16549 fi
   16550 
   16551 else
   16552   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
   16553 fi
   16554 
   16555 
   16556 
   16557 
   16558 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
   16559   if test -n "$with_build_time_tools"; then
   16560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
   16561 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
   16562     if test -x $with_build_time_tools/lipo; then
   16563       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
   16564       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
   16565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
   16566 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
   16567     else
   16568       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16569 $as_echo "no" >&6; }
   16570     fi
   16571   elif test $build != $host && test $have_gcc_for_target = yes; then
   16572     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
   16573     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
   16574     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
   16575   fi
   16576 fi
   16577 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   16578   # Extract the first word of "lipo", so it can be a program name with args.
   16579 set dummy lipo; ac_word=$2
   16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16581 $as_echo_n "checking for $ac_word... " >&6; }
   16582 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
   16583   $as_echo_n "(cached) " >&6
   16584 else
   16585   case $LIPO_FOR_TARGET in
   16586   [\\/]* | ?:[\\/]*)
   16587   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
   16588   ;;
   16589   *)
   16590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16591 for as_dir in $gcc_cv_tool_dirs
   16592 do
   16593   IFS=$as_save_IFS
   16594   test -z "$as_dir" && as_dir=.
   16595     for ac_exec_ext in '' $ac_executable_extensions; do
   16596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16597     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   16598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16599     break 2
   16600   fi
   16601 done
   16602   done
   16603 IFS=$as_save_IFS
   16604 
   16605   ;;
   16606 esac
   16607 fi
   16608 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
   16609 if test -n "$LIPO_FOR_TARGET"; then
   16610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
   16611 $as_echo "$LIPO_FOR_TARGET" >&6; }
   16612 else
   16613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16614 $as_echo "no" >&6; }
   16615 fi
   16616 
   16617 
   16618 fi
   16619 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
   16620 
   16621 
   16622 if test -n "$LIPO_FOR_TARGET"; then
   16623   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
   16624 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
   16625   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
   16626 fi
   16627 
   16628 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
   16629   for ncn_progname in lipo; do
   16630     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16631 set dummy ${ncn_progname}; ac_word=$2
   16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16633 $as_echo_n "checking for $ac_word... " >&6; }
   16634 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
   16635   $as_echo_n "(cached) " >&6
   16636 else
   16637   if test -n "$LIPO_FOR_TARGET"; then
   16638   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
   16639 else
   16640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16641 for as_dir in $PATH
   16642 do
   16643   IFS=$as_save_IFS
   16644   test -z "$as_dir" && as_dir=.
   16645     for ac_exec_ext in '' $ac_executable_extensions; do
   16646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16647     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
   16648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16649     break 2
   16650   fi
   16651 done
   16652   done
   16653 IFS=$as_save_IFS
   16654 
   16655 fi
   16656 fi
   16657 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
   16658 if test -n "$LIPO_FOR_TARGET"; then
   16659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
   16660 $as_echo "$LIPO_FOR_TARGET" >&6; }
   16661 else
   16662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16663 $as_echo "no" >&6; }
   16664 fi
   16665 
   16666 
   16667   done
   16668 fi
   16669 
   16670 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
   16671   for ncn_progname in lipo; do
   16672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   16673 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   16674     if test -x $with_build_time_tools/${ncn_progname}; then
   16675       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   16676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16677 $as_echo "yes" >&6; }
   16678       break
   16679     else
   16680       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16681 $as_echo "no" >&6; }
   16682     fi
   16683   done
   16684 fi
   16685 
   16686 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
   16687   for ncn_progname in lipo; do
   16688     if test -n "$ncn_target_tool_prefix"; then
   16689       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   16690 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16692 $as_echo_n "checking for $ac_word... " >&6; }
   16693 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
   16694   $as_echo_n "(cached) " >&6
   16695 else
   16696   if test -n "$LIPO_FOR_TARGET"; then
   16697   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
   16698 else
   16699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16700 for as_dir in $PATH
   16701 do
   16702   IFS=$as_save_IFS
   16703   test -z "$as_dir" && as_dir=.
   16704     for ac_exec_ext in '' $ac_executable_extensions; do
   16705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16706     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   16707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16708     break 2
   16709   fi
   16710 done
   16711   done
   16712 IFS=$as_save_IFS
   16713 
   16714 fi
   16715 fi
   16716 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
   16717 if test -n "$LIPO_FOR_TARGET"; then
   16718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
   16719 $as_echo "$LIPO_FOR_TARGET" >&6; }
   16720 else
   16721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16722 $as_echo "no" >&6; }
   16723 fi
   16724 
   16725 
   16726     fi
   16727     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
   16728       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16729 set dummy ${ncn_progname}; ac_word=$2
   16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16731 $as_echo_n "checking for $ac_word... " >&6; }
   16732 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
   16733   $as_echo_n "(cached) " >&6
   16734 else
   16735   if test -n "$LIPO_FOR_TARGET"; then
   16736   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
   16737 else
   16738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16739 for as_dir in $PATH
   16740 do
   16741   IFS=$as_save_IFS
   16742   test -z "$as_dir" && as_dir=.
   16743     for ac_exec_ext in '' $ac_executable_extensions; do
   16744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16745     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
   16746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16747     break 2
   16748   fi
   16749 done
   16750   done
   16751 IFS=$as_save_IFS
   16752 
   16753 fi
   16754 fi
   16755 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
   16756 if test -n "$LIPO_FOR_TARGET"; then
   16757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
   16758 $as_echo "$LIPO_FOR_TARGET" >&6; }
   16759 else
   16760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16761 $as_echo "no" >&6; }
   16762 fi
   16763 
   16764 
   16765     fi
   16766     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
   16767   done
   16768 fi
   16769 
   16770 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
   16771   set dummy lipo
   16772   if test $build = $target ; then
   16773     LIPO_FOR_TARGET="$2"
   16774   else
   16775     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
   16776   fi
   16777 else
   16778   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
   16779 fi
   16780 
   16781 else
   16782   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
   16783 fi
   16784 
   16785 
   16786 
   16787 
   16788 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
   16789   if test -n "$with_build_time_tools"; then
   16790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
   16791 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
   16792     if test -x $with_build_time_tools/nm; then
   16793       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
   16794       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
   16795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
   16796 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
   16797     else
   16798       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16799 $as_echo "no" >&6; }
   16800     fi
   16801   elif test $build != $host && test $have_gcc_for_target = yes; then
   16802     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
   16803     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
   16804     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
   16805   fi
   16806 fi
   16807 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   16808   # Extract the first word of "nm", so it can be a program name with args.
   16809 set dummy nm; ac_word=$2
   16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16811 $as_echo_n "checking for $ac_word... " >&6; }
   16812 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
   16813   $as_echo_n "(cached) " >&6
   16814 else
   16815   case $NM_FOR_TARGET in
   16816   [\\/]* | ?:[\\/]*)
   16817   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
   16818   ;;
   16819   *)
   16820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16821 for as_dir in $gcc_cv_tool_dirs
   16822 do
   16823   IFS=$as_save_IFS
   16824   test -z "$as_dir" && as_dir=.
   16825     for ac_exec_ext in '' $ac_executable_extensions; do
   16826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16827     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   16828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16829     break 2
   16830   fi
   16831 done
   16832   done
   16833 IFS=$as_save_IFS
   16834 
   16835   ;;
   16836 esac
   16837 fi
   16838 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
   16839 if test -n "$NM_FOR_TARGET"; then
   16840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
   16841 $as_echo "$NM_FOR_TARGET" >&6; }
   16842 else
   16843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16844 $as_echo "no" >&6; }
   16845 fi
   16846 
   16847 
   16848 fi
   16849 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
   16850 
   16851 
   16852 if test -n "$NM_FOR_TARGET"; then
   16853   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
   16854 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
   16855   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
   16856 fi
   16857 
   16858 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
   16859   for ncn_progname in nm; do
   16860     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16861 set dummy ${ncn_progname}; ac_word=$2
   16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16863 $as_echo_n "checking for $ac_word... " >&6; }
   16864 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
   16865   $as_echo_n "(cached) " >&6
   16866 else
   16867   if test -n "$NM_FOR_TARGET"; then
   16868   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
   16869 else
   16870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16871 for as_dir in $PATH
   16872 do
   16873   IFS=$as_save_IFS
   16874   test -z "$as_dir" && as_dir=.
   16875     for ac_exec_ext in '' $ac_executable_extensions; do
   16876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16877     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
   16878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16879     break 2
   16880   fi
   16881 done
   16882   done
   16883 IFS=$as_save_IFS
   16884 
   16885 fi
   16886 fi
   16887 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
   16888 if test -n "$NM_FOR_TARGET"; then
   16889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
   16890 $as_echo "$NM_FOR_TARGET" >&6; }
   16891 else
   16892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16893 $as_echo "no" >&6; }
   16894 fi
   16895 
   16896 
   16897   done
   16898 fi
   16899 
   16900 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
   16901   for ncn_progname in nm; do
   16902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   16903 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   16904     if test -x $with_build_time_tools/${ncn_progname}; then
   16905       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   16906       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16907 $as_echo "yes" >&6; }
   16908       break
   16909     else
   16910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16911 $as_echo "no" >&6; }
   16912     fi
   16913   done
   16914 fi
   16915 
   16916 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
   16917   for ncn_progname in nm; do
   16918     if test -n "$ncn_target_tool_prefix"; then
   16919       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   16920 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16922 $as_echo_n "checking for $ac_word... " >&6; }
   16923 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
   16924   $as_echo_n "(cached) " >&6
   16925 else
   16926   if test -n "$NM_FOR_TARGET"; then
   16927   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
   16928 else
   16929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16930 for as_dir in $PATH
   16931 do
   16932   IFS=$as_save_IFS
   16933   test -z "$as_dir" && as_dir=.
   16934     for ac_exec_ext in '' $ac_executable_extensions; do
   16935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16936     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   16937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16938     break 2
   16939   fi
   16940 done
   16941   done
   16942 IFS=$as_save_IFS
   16943 
   16944 fi
   16945 fi
   16946 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
   16947 if test -n "$NM_FOR_TARGET"; then
   16948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
   16949 $as_echo "$NM_FOR_TARGET" >&6; }
   16950 else
   16951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16952 $as_echo "no" >&6; }
   16953 fi
   16954 
   16955 
   16956     fi
   16957     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
   16958       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   16959 set dummy ${ncn_progname}; ac_word=$2
   16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16961 $as_echo_n "checking for $ac_word... " >&6; }
   16962 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
   16963   $as_echo_n "(cached) " >&6
   16964 else
   16965   if test -n "$NM_FOR_TARGET"; then
   16966   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
   16967 else
   16968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16969 for as_dir in $PATH
   16970 do
   16971   IFS=$as_save_IFS
   16972   test -z "$as_dir" && as_dir=.
   16973     for ac_exec_ext in '' $ac_executable_extensions; do
   16974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   16975     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
   16976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16977     break 2
   16978   fi
   16979 done
   16980   done
   16981 IFS=$as_save_IFS
   16982 
   16983 fi
   16984 fi
   16985 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
   16986 if test -n "$NM_FOR_TARGET"; then
   16987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
   16988 $as_echo "$NM_FOR_TARGET" >&6; }
   16989 else
   16990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16991 $as_echo "no" >&6; }
   16992 fi
   16993 
   16994 
   16995     fi
   16996     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
   16997   done
   16998 fi
   16999 
   17000 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
   17001   set dummy nm
   17002   if test $build = $target ; then
   17003     NM_FOR_TARGET="$2"
   17004   else
   17005     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
   17006   fi
   17007 else
   17008   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
   17009 fi
   17010 
   17011 else
   17012   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
   17013 fi
   17014 
   17015 
   17016 
   17017 
   17018 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
   17019   if test -n "$with_build_time_tools"; then
   17020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
   17021 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
   17022     if test -x $with_build_time_tools/objcopy; then
   17023       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
   17024       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
   17025       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
   17026 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
   17027     else
   17028       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17029 $as_echo "no" >&6; }
   17030     fi
   17031   elif test $build != $host && test $have_gcc_for_target = yes; then
   17032     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
   17033     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
   17034     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
   17035   fi
   17036 fi
   17037 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   17038   # Extract the first word of "objcopy", so it can be a program name with args.
   17039 set dummy objcopy; ac_word=$2
   17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17041 $as_echo_n "checking for $ac_word... " >&6; }
   17042 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
   17043   $as_echo_n "(cached) " >&6
   17044 else
   17045   case $OBJCOPY_FOR_TARGET in
   17046   [\\/]* | ?:[\\/]*)
   17047   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
   17048   ;;
   17049   *)
   17050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17051 for as_dir in $gcc_cv_tool_dirs
   17052 do
   17053   IFS=$as_save_IFS
   17054   test -z "$as_dir" && as_dir=.
   17055     for ac_exec_ext in '' $ac_executable_extensions; do
   17056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17057     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   17058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17059     break 2
   17060   fi
   17061 done
   17062   done
   17063 IFS=$as_save_IFS
   17064 
   17065   ;;
   17066 esac
   17067 fi
   17068 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
   17069 if test -n "$OBJCOPY_FOR_TARGET"; then
   17070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
   17071 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
   17072 else
   17073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17074 $as_echo "no" >&6; }
   17075 fi
   17076 
   17077 
   17078 fi
   17079 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
   17080 
   17081 
   17082 if test -n "$OBJCOPY_FOR_TARGET"; then
   17083   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
   17084 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
   17085   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
   17086 fi
   17087 
   17088 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
   17089   for ncn_progname in objcopy; do
   17090     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17091 set dummy ${ncn_progname}; ac_word=$2
   17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17093 $as_echo_n "checking for $ac_word... " >&6; }
   17094 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
   17095   $as_echo_n "(cached) " >&6
   17096 else
   17097   if test -n "$OBJCOPY_FOR_TARGET"; then
   17098   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
   17099 else
   17100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17101 for as_dir in $PATH
   17102 do
   17103   IFS=$as_save_IFS
   17104   test -z "$as_dir" && as_dir=.
   17105     for ac_exec_ext in '' $ac_executable_extensions; do
   17106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17107     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
   17108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17109     break 2
   17110   fi
   17111 done
   17112   done
   17113 IFS=$as_save_IFS
   17114 
   17115 fi
   17116 fi
   17117 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
   17118 if test -n "$OBJCOPY_FOR_TARGET"; then
   17119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
   17120 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
   17121 else
   17122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17123 $as_echo "no" >&6; }
   17124 fi
   17125 
   17126 
   17127   done
   17128 fi
   17129 
   17130 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
   17131   for ncn_progname in objcopy; do
   17132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   17133 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   17134     if test -x $with_build_time_tools/${ncn_progname}; then
   17135       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   17136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17137 $as_echo "yes" >&6; }
   17138       break
   17139     else
   17140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17141 $as_echo "no" >&6; }
   17142     fi
   17143   done
   17144 fi
   17145 
   17146 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
   17147   for ncn_progname in objcopy; do
   17148     if test -n "$ncn_target_tool_prefix"; then
   17149       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   17150 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17152 $as_echo_n "checking for $ac_word... " >&6; }
   17153 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
   17154   $as_echo_n "(cached) " >&6
   17155 else
   17156   if test -n "$OBJCOPY_FOR_TARGET"; then
   17157   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
   17158 else
   17159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17160 for as_dir in $PATH
   17161 do
   17162   IFS=$as_save_IFS
   17163   test -z "$as_dir" && as_dir=.
   17164     for ac_exec_ext in '' $ac_executable_extensions; do
   17165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17166     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   17167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17168     break 2
   17169   fi
   17170 done
   17171   done
   17172 IFS=$as_save_IFS
   17173 
   17174 fi
   17175 fi
   17176 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
   17177 if test -n "$OBJCOPY_FOR_TARGET"; then
   17178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
   17179 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
   17180 else
   17181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17182 $as_echo "no" >&6; }
   17183 fi
   17184 
   17185 
   17186     fi
   17187     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
   17188       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17189 set dummy ${ncn_progname}; ac_word=$2
   17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17191 $as_echo_n "checking for $ac_word... " >&6; }
   17192 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
   17193   $as_echo_n "(cached) " >&6
   17194 else
   17195   if test -n "$OBJCOPY_FOR_TARGET"; then
   17196   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
   17197 else
   17198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17199 for as_dir in $PATH
   17200 do
   17201   IFS=$as_save_IFS
   17202   test -z "$as_dir" && as_dir=.
   17203     for ac_exec_ext in '' $ac_executable_extensions; do
   17204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17205     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
   17206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17207     break 2
   17208   fi
   17209 done
   17210   done
   17211 IFS=$as_save_IFS
   17212 
   17213 fi
   17214 fi
   17215 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
   17216 if test -n "$OBJCOPY_FOR_TARGET"; then
   17217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
   17218 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
   17219 else
   17220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17221 $as_echo "no" >&6; }
   17222 fi
   17223 
   17224 
   17225     fi
   17226     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
   17227   done
   17228 fi
   17229 
   17230 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
   17231   set dummy objcopy
   17232   if test $build = $target ; then
   17233     OBJCOPY_FOR_TARGET="$2"
   17234   else
   17235     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
   17236   fi
   17237 else
   17238   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
   17239 fi
   17240 
   17241 else
   17242   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
   17243 fi
   17244 
   17245 
   17246 
   17247 
   17248 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
   17249   if test -n "$with_build_time_tools"; then
   17250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
   17251 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
   17252     if test -x $with_build_time_tools/objdump; then
   17253       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
   17254       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
   17255       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
   17256 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
   17257     else
   17258       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17259 $as_echo "no" >&6; }
   17260     fi
   17261   elif test $build != $host && test $have_gcc_for_target = yes; then
   17262     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
   17263     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
   17264     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
   17265   fi
   17266 fi
   17267 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   17268   # Extract the first word of "objdump", so it can be a program name with args.
   17269 set dummy objdump; ac_word=$2
   17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17271 $as_echo_n "checking for $ac_word... " >&6; }
   17272 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
   17273   $as_echo_n "(cached) " >&6
   17274 else
   17275   case $OBJDUMP_FOR_TARGET in
   17276   [\\/]* | ?:[\\/]*)
   17277   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
   17278   ;;
   17279   *)
   17280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17281 for as_dir in $gcc_cv_tool_dirs
   17282 do
   17283   IFS=$as_save_IFS
   17284   test -z "$as_dir" && as_dir=.
   17285     for ac_exec_ext in '' $ac_executable_extensions; do
   17286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17287     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   17288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17289     break 2
   17290   fi
   17291 done
   17292   done
   17293 IFS=$as_save_IFS
   17294 
   17295   ;;
   17296 esac
   17297 fi
   17298 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
   17299 if test -n "$OBJDUMP_FOR_TARGET"; then
   17300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
   17301 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
   17302 else
   17303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17304 $as_echo "no" >&6; }
   17305 fi
   17306 
   17307 
   17308 fi
   17309 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
   17310 
   17311 
   17312 if test -n "$OBJDUMP_FOR_TARGET"; then
   17313   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
   17314 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
   17315   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
   17316 fi
   17317 
   17318 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
   17319   for ncn_progname in objdump; do
   17320     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17321 set dummy ${ncn_progname}; ac_word=$2
   17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17323 $as_echo_n "checking for $ac_word... " >&6; }
   17324 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
   17325   $as_echo_n "(cached) " >&6
   17326 else
   17327   if test -n "$OBJDUMP_FOR_TARGET"; then
   17328   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
   17329 else
   17330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17331 for as_dir in $PATH
   17332 do
   17333   IFS=$as_save_IFS
   17334   test -z "$as_dir" && as_dir=.
   17335     for ac_exec_ext in '' $ac_executable_extensions; do
   17336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17337     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
   17338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17339     break 2
   17340   fi
   17341 done
   17342   done
   17343 IFS=$as_save_IFS
   17344 
   17345 fi
   17346 fi
   17347 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
   17348 if test -n "$OBJDUMP_FOR_TARGET"; then
   17349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
   17350 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
   17351 else
   17352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17353 $as_echo "no" >&6; }
   17354 fi
   17355 
   17356 
   17357   done
   17358 fi
   17359 
   17360 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
   17361   for ncn_progname in objdump; do
   17362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   17363 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   17364     if test -x $with_build_time_tools/${ncn_progname}; then
   17365       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   17366       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17367 $as_echo "yes" >&6; }
   17368       break
   17369     else
   17370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17371 $as_echo "no" >&6; }
   17372     fi
   17373   done
   17374 fi
   17375 
   17376 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
   17377   for ncn_progname in objdump; do
   17378     if test -n "$ncn_target_tool_prefix"; then
   17379       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   17380 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17382 $as_echo_n "checking for $ac_word... " >&6; }
   17383 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
   17384   $as_echo_n "(cached) " >&6
   17385 else
   17386   if test -n "$OBJDUMP_FOR_TARGET"; then
   17387   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
   17388 else
   17389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17390 for as_dir in $PATH
   17391 do
   17392   IFS=$as_save_IFS
   17393   test -z "$as_dir" && as_dir=.
   17394     for ac_exec_ext in '' $ac_executable_extensions; do
   17395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17396     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   17397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17398     break 2
   17399   fi
   17400 done
   17401   done
   17402 IFS=$as_save_IFS
   17403 
   17404 fi
   17405 fi
   17406 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
   17407 if test -n "$OBJDUMP_FOR_TARGET"; then
   17408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
   17409 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
   17410 else
   17411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17412 $as_echo "no" >&6; }
   17413 fi
   17414 
   17415 
   17416     fi
   17417     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
   17418       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17419 set dummy ${ncn_progname}; ac_word=$2
   17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17421 $as_echo_n "checking for $ac_word... " >&6; }
   17422 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
   17423   $as_echo_n "(cached) " >&6
   17424 else
   17425   if test -n "$OBJDUMP_FOR_TARGET"; then
   17426   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
   17427 else
   17428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17429 for as_dir in $PATH
   17430 do
   17431   IFS=$as_save_IFS
   17432   test -z "$as_dir" && as_dir=.
   17433     for ac_exec_ext in '' $ac_executable_extensions; do
   17434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17435     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
   17436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17437     break 2
   17438   fi
   17439 done
   17440   done
   17441 IFS=$as_save_IFS
   17442 
   17443 fi
   17444 fi
   17445 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
   17446 if test -n "$OBJDUMP_FOR_TARGET"; then
   17447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
   17448 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
   17449 else
   17450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17451 $as_echo "no" >&6; }
   17452 fi
   17453 
   17454 
   17455     fi
   17456     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
   17457   done
   17458 fi
   17459 
   17460 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
   17461   set dummy objdump
   17462   if test $build = $target ; then
   17463     OBJDUMP_FOR_TARGET="$2"
   17464   else
   17465     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
   17466   fi
   17467 else
   17468   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
   17469 fi
   17470 
   17471 else
   17472   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
   17473 fi
   17474 
   17475 
   17476 
   17477 
   17478 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
   17479   if test -n "$with_build_time_tools"; then
   17480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
   17481 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
   17482     if test -x $with_build_time_tools/otool; then
   17483       OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
   17484       ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
   17485       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
   17486 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
   17487     else
   17488       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17489 $as_echo "no" >&6; }
   17490     fi
   17491   elif test $build != $host && test $have_gcc_for_target = yes; then
   17492     OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
   17493     test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
   17494     test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
   17495   fi
   17496 fi
   17497 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   17498   # Extract the first word of "otool", so it can be a program name with args.
   17499 set dummy otool; ac_word=$2
   17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17501 $as_echo_n "checking for $ac_word... " >&6; }
   17502 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
   17503   $as_echo_n "(cached) " >&6
   17504 else
   17505   case $OTOOL_FOR_TARGET in
   17506   [\\/]* | ?:[\\/]*)
   17507   ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
   17508   ;;
   17509   *)
   17510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17511 for as_dir in $gcc_cv_tool_dirs
   17512 do
   17513   IFS=$as_save_IFS
   17514   test -z "$as_dir" && as_dir=.
   17515     for ac_exec_ext in '' $ac_executable_extensions; do
   17516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17517     ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   17518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17519     break 2
   17520   fi
   17521 done
   17522   done
   17523 IFS=$as_save_IFS
   17524 
   17525   ;;
   17526 esac
   17527 fi
   17528 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
   17529 if test -n "$OTOOL_FOR_TARGET"; then
   17530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
   17531 $as_echo "$OTOOL_FOR_TARGET" >&6; }
   17532 else
   17533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17534 $as_echo "no" >&6; }
   17535 fi
   17536 
   17537 
   17538 fi
   17539 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
   17540 
   17541 
   17542 if test -n "$OTOOL_FOR_TARGET"; then
   17543   ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
   17544 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
   17545   OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
   17546 fi
   17547 
   17548 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
   17549   for ncn_progname in otool; do
   17550     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17551 set dummy ${ncn_progname}; ac_word=$2
   17552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17553 $as_echo_n "checking for $ac_word... " >&6; }
   17554 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
   17555   $as_echo_n "(cached) " >&6
   17556 else
   17557   if test -n "$OTOOL_FOR_TARGET"; then
   17558   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
   17559 else
   17560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17561 for as_dir in $PATH
   17562 do
   17563   IFS=$as_save_IFS
   17564   test -z "$as_dir" && as_dir=.
   17565     for ac_exec_ext in '' $ac_executable_extensions; do
   17566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17567     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
   17568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17569     break 2
   17570   fi
   17571 done
   17572   done
   17573 IFS=$as_save_IFS
   17574 
   17575 fi
   17576 fi
   17577 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
   17578 if test -n "$OTOOL_FOR_TARGET"; then
   17579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
   17580 $as_echo "$OTOOL_FOR_TARGET" >&6; }
   17581 else
   17582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17583 $as_echo "no" >&6; }
   17584 fi
   17585 
   17586 
   17587   done
   17588 fi
   17589 
   17590 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
   17591   for ncn_progname in otool; do
   17592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   17593 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   17594     if test -x $with_build_time_tools/${ncn_progname}; then
   17595       ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   17596       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17597 $as_echo "yes" >&6; }
   17598       break
   17599     else
   17600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17601 $as_echo "no" >&6; }
   17602     fi
   17603   done
   17604 fi
   17605 
   17606 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
   17607   for ncn_progname in otool; do
   17608     if test -n "$ncn_target_tool_prefix"; then
   17609       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   17610 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17612 $as_echo_n "checking for $ac_word... " >&6; }
   17613 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
   17614   $as_echo_n "(cached) " >&6
   17615 else
   17616   if test -n "$OTOOL_FOR_TARGET"; then
   17617   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
   17618 else
   17619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17620 for as_dir in $PATH
   17621 do
   17622   IFS=$as_save_IFS
   17623   test -z "$as_dir" && as_dir=.
   17624     for ac_exec_ext in '' $ac_executable_extensions; do
   17625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17626     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   17627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17628     break 2
   17629   fi
   17630 done
   17631   done
   17632 IFS=$as_save_IFS
   17633 
   17634 fi
   17635 fi
   17636 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
   17637 if test -n "$OTOOL_FOR_TARGET"; then
   17638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
   17639 $as_echo "$OTOOL_FOR_TARGET" >&6; }
   17640 else
   17641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17642 $as_echo "no" >&6; }
   17643 fi
   17644 
   17645 
   17646     fi
   17647     if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
   17648       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17649 set dummy ${ncn_progname}; ac_word=$2
   17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17651 $as_echo_n "checking for $ac_word... " >&6; }
   17652 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
   17653   $as_echo_n "(cached) " >&6
   17654 else
   17655   if test -n "$OTOOL_FOR_TARGET"; then
   17656   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
   17657 else
   17658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17659 for as_dir in $PATH
   17660 do
   17661   IFS=$as_save_IFS
   17662   test -z "$as_dir" && as_dir=.
   17663     for ac_exec_ext in '' $ac_executable_extensions; do
   17664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17665     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
   17666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17667     break 2
   17668   fi
   17669 done
   17670   done
   17671 IFS=$as_save_IFS
   17672 
   17673 fi
   17674 fi
   17675 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
   17676 if test -n "$OTOOL_FOR_TARGET"; then
   17677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
   17678 $as_echo "$OTOOL_FOR_TARGET" >&6; }
   17679 else
   17680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17681 $as_echo "no" >&6; }
   17682 fi
   17683 
   17684 
   17685     fi
   17686     test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
   17687   done
   17688 fi
   17689 
   17690 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
   17691   set dummy otool
   17692   if test $build = $target ; then
   17693     OTOOL_FOR_TARGET="$2"
   17694   else
   17695     OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
   17696   fi
   17697 else
   17698   OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
   17699 fi
   17700 
   17701 else
   17702   OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
   17703 fi
   17704 
   17705 
   17706 
   17707 
   17708 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
   17709   if test -n "$with_build_time_tools"; then
   17710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
   17711 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
   17712     if test -x $with_build_time_tools/ranlib; then
   17713       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
   17714       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
   17715       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
   17716 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
   17717     else
   17718       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17719 $as_echo "no" >&6; }
   17720     fi
   17721   elif test $build != $host && test $have_gcc_for_target = yes; then
   17722     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
   17723     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
   17724     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
   17725   fi
   17726 fi
   17727 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   17728   # Extract the first word of "ranlib", so it can be a program name with args.
   17729 set dummy ranlib; ac_word=$2
   17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17731 $as_echo_n "checking for $ac_word... " >&6; }
   17732 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
   17733   $as_echo_n "(cached) " >&6
   17734 else
   17735   case $RANLIB_FOR_TARGET in
   17736   [\\/]* | ?:[\\/]*)
   17737   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
   17738   ;;
   17739   *)
   17740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17741 for as_dir in $gcc_cv_tool_dirs
   17742 do
   17743   IFS=$as_save_IFS
   17744   test -z "$as_dir" && as_dir=.
   17745     for ac_exec_ext in '' $ac_executable_extensions; do
   17746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17747     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   17748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17749     break 2
   17750   fi
   17751 done
   17752   done
   17753 IFS=$as_save_IFS
   17754 
   17755   ;;
   17756 esac
   17757 fi
   17758 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
   17759 if test -n "$RANLIB_FOR_TARGET"; then
   17760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
   17761 $as_echo "$RANLIB_FOR_TARGET" >&6; }
   17762 else
   17763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17764 $as_echo "no" >&6; }
   17765 fi
   17766 
   17767 
   17768 fi
   17769 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
   17770 
   17771 
   17772 if test -n "$RANLIB_FOR_TARGET"; then
   17773   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
   17774 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
   17775   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
   17776 fi
   17777 
   17778 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
   17779   for ncn_progname in ranlib; do
   17780     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17781 set dummy ${ncn_progname}; ac_word=$2
   17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17783 $as_echo_n "checking for $ac_word... " >&6; }
   17784 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
   17785   $as_echo_n "(cached) " >&6
   17786 else
   17787   if test -n "$RANLIB_FOR_TARGET"; then
   17788   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
   17789 else
   17790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17791 for as_dir in $PATH
   17792 do
   17793   IFS=$as_save_IFS
   17794   test -z "$as_dir" && as_dir=.
   17795     for ac_exec_ext in '' $ac_executable_extensions; do
   17796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17797     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
   17798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17799     break 2
   17800   fi
   17801 done
   17802   done
   17803 IFS=$as_save_IFS
   17804 
   17805 fi
   17806 fi
   17807 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
   17808 if test -n "$RANLIB_FOR_TARGET"; then
   17809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
   17810 $as_echo "$RANLIB_FOR_TARGET" >&6; }
   17811 else
   17812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17813 $as_echo "no" >&6; }
   17814 fi
   17815 
   17816 
   17817   done
   17818 fi
   17819 
   17820 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
   17821   for ncn_progname in ranlib; do
   17822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   17823 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   17824     if test -x $with_build_time_tools/${ncn_progname}; then
   17825       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   17826       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17827 $as_echo "yes" >&6; }
   17828       break
   17829     else
   17830       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17831 $as_echo "no" >&6; }
   17832     fi
   17833   done
   17834 fi
   17835 
   17836 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
   17837   for ncn_progname in ranlib; do
   17838     if test -n "$ncn_target_tool_prefix"; then
   17839       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   17840 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17842 $as_echo_n "checking for $ac_word... " >&6; }
   17843 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
   17844   $as_echo_n "(cached) " >&6
   17845 else
   17846   if test -n "$RANLIB_FOR_TARGET"; then
   17847   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
   17848 else
   17849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17850 for as_dir in $PATH
   17851 do
   17852   IFS=$as_save_IFS
   17853   test -z "$as_dir" && as_dir=.
   17854     for ac_exec_ext in '' $ac_executable_extensions; do
   17855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17856     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   17857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17858     break 2
   17859   fi
   17860 done
   17861   done
   17862 IFS=$as_save_IFS
   17863 
   17864 fi
   17865 fi
   17866 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
   17867 if test -n "$RANLIB_FOR_TARGET"; then
   17868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
   17869 $as_echo "$RANLIB_FOR_TARGET" >&6; }
   17870 else
   17871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17872 $as_echo "no" >&6; }
   17873 fi
   17874 
   17875 
   17876     fi
   17877     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
   17878       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   17879 set dummy ${ncn_progname}; ac_word=$2
   17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17881 $as_echo_n "checking for $ac_word... " >&6; }
   17882 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
   17883   $as_echo_n "(cached) " >&6
   17884 else
   17885   if test -n "$RANLIB_FOR_TARGET"; then
   17886   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
   17887 else
   17888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17889 for as_dir in $PATH
   17890 do
   17891   IFS=$as_save_IFS
   17892   test -z "$as_dir" && as_dir=.
   17893     for ac_exec_ext in '' $ac_executable_extensions; do
   17894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17895     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
   17896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17897     break 2
   17898   fi
   17899 done
   17900   done
   17901 IFS=$as_save_IFS
   17902 
   17903 fi
   17904 fi
   17905 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
   17906 if test -n "$RANLIB_FOR_TARGET"; then
   17907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
   17908 $as_echo "$RANLIB_FOR_TARGET" >&6; }
   17909 else
   17910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17911 $as_echo "no" >&6; }
   17912 fi
   17913 
   17914 
   17915     fi
   17916     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
   17917   done
   17918 fi
   17919 
   17920 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
   17921   set dummy ranlib
   17922   if test $build = $target ; then
   17923     RANLIB_FOR_TARGET="$2"
   17924   else
   17925     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
   17926   fi
   17927 else
   17928   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
   17929 fi
   17930 
   17931 else
   17932   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
   17933 fi
   17934 
   17935 
   17936 
   17937 
   17938 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
   17939   if test -n "$with_build_time_tools"; then
   17940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
   17941 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
   17942     if test -x $with_build_time_tools/readelf; then
   17943       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
   17944       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
   17945       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
   17946 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
   17947     else
   17948       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17949 $as_echo "no" >&6; }
   17950     fi
   17951   elif test $build != $host && test $have_gcc_for_target = yes; then
   17952     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
   17953     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
   17954     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
   17955   fi
   17956 fi
   17957 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   17958   # Extract the first word of "readelf", so it can be a program name with args.
   17959 set dummy readelf; ac_word=$2
   17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17961 $as_echo_n "checking for $ac_word... " >&6; }
   17962 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
   17963   $as_echo_n "(cached) " >&6
   17964 else
   17965   case $READELF_FOR_TARGET in
   17966   [\\/]* | ?:[\\/]*)
   17967   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
   17968   ;;
   17969   *)
   17970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17971 for as_dir in $gcc_cv_tool_dirs
   17972 do
   17973   IFS=$as_save_IFS
   17974   test -z "$as_dir" && as_dir=.
   17975     for ac_exec_ext in '' $ac_executable_extensions; do
   17976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17977     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   17978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17979     break 2
   17980   fi
   17981 done
   17982   done
   17983 IFS=$as_save_IFS
   17984 
   17985   ;;
   17986 esac
   17987 fi
   17988 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
   17989 if test -n "$READELF_FOR_TARGET"; then
   17990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
   17991 $as_echo "$READELF_FOR_TARGET" >&6; }
   17992 else
   17993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17994 $as_echo "no" >&6; }
   17995 fi
   17996 
   17997 
   17998 fi
   17999 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
   18000 
   18001 
   18002 if test -n "$READELF_FOR_TARGET"; then
   18003   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
   18004 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
   18005   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
   18006 fi
   18007 
   18008 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
   18009   for ncn_progname in readelf; do
   18010     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18011 set dummy ${ncn_progname}; ac_word=$2
   18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18013 $as_echo_n "checking for $ac_word... " >&6; }
   18014 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
   18015   $as_echo_n "(cached) " >&6
   18016 else
   18017   if test -n "$READELF_FOR_TARGET"; then
   18018   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
   18019 else
   18020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18021 for as_dir in $PATH
   18022 do
   18023   IFS=$as_save_IFS
   18024   test -z "$as_dir" && as_dir=.
   18025     for ac_exec_ext in '' $ac_executable_extensions; do
   18026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18027     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
   18028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18029     break 2
   18030   fi
   18031 done
   18032   done
   18033 IFS=$as_save_IFS
   18034 
   18035 fi
   18036 fi
   18037 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
   18038 if test -n "$READELF_FOR_TARGET"; then
   18039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
   18040 $as_echo "$READELF_FOR_TARGET" >&6; }
   18041 else
   18042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18043 $as_echo "no" >&6; }
   18044 fi
   18045 
   18046 
   18047   done
   18048 fi
   18049 
   18050 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
   18051   for ncn_progname in readelf; do
   18052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   18053 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   18054     if test -x $with_build_time_tools/${ncn_progname}; then
   18055       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   18056       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18057 $as_echo "yes" >&6; }
   18058       break
   18059     else
   18060       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18061 $as_echo "no" >&6; }
   18062     fi
   18063   done
   18064 fi
   18065 
   18066 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
   18067   for ncn_progname in readelf; do
   18068     if test -n "$ncn_target_tool_prefix"; then
   18069       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   18070 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18072 $as_echo_n "checking for $ac_word... " >&6; }
   18073 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
   18074   $as_echo_n "(cached) " >&6
   18075 else
   18076   if test -n "$READELF_FOR_TARGET"; then
   18077   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
   18078 else
   18079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18080 for as_dir in $PATH
   18081 do
   18082   IFS=$as_save_IFS
   18083   test -z "$as_dir" && as_dir=.
   18084     for ac_exec_ext in '' $ac_executable_extensions; do
   18085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18086     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   18087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18088     break 2
   18089   fi
   18090 done
   18091   done
   18092 IFS=$as_save_IFS
   18093 
   18094 fi
   18095 fi
   18096 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
   18097 if test -n "$READELF_FOR_TARGET"; then
   18098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
   18099 $as_echo "$READELF_FOR_TARGET" >&6; }
   18100 else
   18101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18102 $as_echo "no" >&6; }
   18103 fi
   18104 
   18105 
   18106     fi
   18107     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
   18108       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18109 set dummy ${ncn_progname}; ac_word=$2
   18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18111 $as_echo_n "checking for $ac_word... " >&6; }
   18112 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
   18113   $as_echo_n "(cached) " >&6
   18114 else
   18115   if test -n "$READELF_FOR_TARGET"; then
   18116   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
   18117 else
   18118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18119 for as_dir in $PATH
   18120 do
   18121   IFS=$as_save_IFS
   18122   test -z "$as_dir" && as_dir=.
   18123     for ac_exec_ext in '' $ac_executable_extensions; do
   18124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18125     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
   18126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18127     break 2
   18128   fi
   18129 done
   18130   done
   18131 IFS=$as_save_IFS
   18132 
   18133 fi
   18134 fi
   18135 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
   18136 if test -n "$READELF_FOR_TARGET"; then
   18137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
   18138 $as_echo "$READELF_FOR_TARGET" >&6; }
   18139 else
   18140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18141 $as_echo "no" >&6; }
   18142 fi
   18143 
   18144 
   18145     fi
   18146     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
   18147   done
   18148 fi
   18149 
   18150 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
   18151   set dummy readelf
   18152   if test $build = $target ; then
   18153     READELF_FOR_TARGET="$2"
   18154   else
   18155     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
   18156   fi
   18157 else
   18158   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
   18159 fi
   18160 
   18161 else
   18162   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
   18163 fi
   18164 
   18165 
   18166 
   18167 
   18168 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
   18169   if test -n "$with_build_time_tools"; then
   18170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
   18171 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
   18172     if test -x $with_build_time_tools/strip; then
   18173       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
   18174       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
   18175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
   18176 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
   18177     else
   18178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18179 $as_echo "no" >&6; }
   18180     fi
   18181   elif test $build != $host && test $have_gcc_for_target = yes; then
   18182     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
   18183     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
   18184     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
   18185   fi
   18186 fi
   18187 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   18188   # Extract the first word of "strip", so it can be a program name with args.
   18189 set dummy strip; ac_word=$2
   18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18191 $as_echo_n "checking for $ac_word... " >&6; }
   18192 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
   18193   $as_echo_n "(cached) " >&6
   18194 else
   18195   case $STRIP_FOR_TARGET in
   18196   [\\/]* | ?:[\\/]*)
   18197   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
   18198   ;;
   18199   *)
   18200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18201 for as_dir in $gcc_cv_tool_dirs
   18202 do
   18203   IFS=$as_save_IFS
   18204   test -z "$as_dir" && as_dir=.
   18205     for ac_exec_ext in '' $ac_executable_extensions; do
   18206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18207     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   18208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18209     break 2
   18210   fi
   18211 done
   18212   done
   18213 IFS=$as_save_IFS
   18214 
   18215   ;;
   18216 esac
   18217 fi
   18218 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
   18219 if test -n "$STRIP_FOR_TARGET"; then
   18220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
   18221 $as_echo "$STRIP_FOR_TARGET" >&6; }
   18222 else
   18223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18224 $as_echo "no" >&6; }
   18225 fi
   18226 
   18227 
   18228 fi
   18229 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
   18230 
   18231 
   18232 if test -n "$STRIP_FOR_TARGET"; then
   18233   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
   18234 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
   18235   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
   18236 fi
   18237 
   18238 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
   18239   for ncn_progname in strip; do
   18240     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18241 set dummy ${ncn_progname}; ac_word=$2
   18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18243 $as_echo_n "checking for $ac_word... " >&6; }
   18244 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
   18245   $as_echo_n "(cached) " >&6
   18246 else
   18247   if test -n "$STRIP_FOR_TARGET"; then
   18248   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
   18249 else
   18250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18251 for as_dir in $PATH
   18252 do
   18253   IFS=$as_save_IFS
   18254   test -z "$as_dir" && as_dir=.
   18255     for ac_exec_ext in '' $ac_executable_extensions; do
   18256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18257     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
   18258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18259     break 2
   18260   fi
   18261 done
   18262   done
   18263 IFS=$as_save_IFS
   18264 
   18265 fi
   18266 fi
   18267 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
   18268 if test -n "$STRIP_FOR_TARGET"; then
   18269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
   18270 $as_echo "$STRIP_FOR_TARGET" >&6; }
   18271 else
   18272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18273 $as_echo "no" >&6; }
   18274 fi
   18275 
   18276 
   18277   done
   18278 fi
   18279 
   18280 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
   18281   for ncn_progname in strip; do
   18282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   18283 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   18284     if test -x $with_build_time_tools/${ncn_progname}; then
   18285       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   18286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18287 $as_echo "yes" >&6; }
   18288       break
   18289     else
   18290       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18291 $as_echo "no" >&6; }
   18292     fi
   18293   done
   18294 fi
   18295 
   18296 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
   18297   for ncn_progname in strip; do
   18298     if test -n "$ncn_target_tool_prefix"; then
   18299       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   18300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18302 $as_echo_n "checking for $ac_word... " >&6; }
   18303 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
   18304   $as_echo_n "(cached) " >&6
   18305 else
   18306   if test -n "$STRIP_FOR_TARGET"; then
   18307   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
   18308 else
   18309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18310 for as_dir in $PATH
   18311 do
   18312   IFS=$as_save_IFS
   18313   test -z "$as_dir" && as_dir=.
   18314     for ac_exec_ext in '' $ac_executable_extensions; do
   18315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18316     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   18317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18318     break 2
   18319   fi
   18320 done
   18321   done
   18322 IFS=$as_save_IFS
   18323 
   18324 fi
   18325 fi
   18326 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
   18327 if test -n "$STRIP_FOR_TARGET"; then
   18328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
   18329 $as_echo "$STRIP_FOR_TARGET" >&6; }
   18330 else
   18331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18332 $as_echo "no" >&6; }
   18333 fi
   18334 
   18335 
   18336     fi
   18337     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
   18338       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18339 set dummy ${ncn_progname}; ac_word=$2
   18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18341 $as_echo_n "checking for $ac_word... " >&6; }
   18342 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
   18343   $as_echo_n "(cached) " >&6
   18344 else
   18345   if test -n "$STRIP_FOR_TARGET"; then
   18346   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
   18347 else
   18348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18349 for as_dir in $PATH
   18350 do
   18351   IFS=$as_save_IFS
   18352   test -z "$as_dir" && as_dir=.
   18353     for ac_exec_ext in '' $ac_executable_extensions; do
   18354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18355     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
   18356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18357     break 2
   18358   fi
   18359 done
   18360   done
   18361 IFS=$as_save_IFS
   18362 
   18363 fi
   18364 fi
   18365 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
   18366 if test -n "$STRIP_FOR_TARGET"; then
   18367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
   18368 $as_echo "$STRIP_FOR_TARGET" >&6; }
   18369 else
   18370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18371 $as_echo "no" >&6; }
   18372 fi
   18373 
   18374 
   18375     fi
   18376     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
   18377   done
   18378 fi
   18379 
   18380 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
   18381   set dummy strip
   18382   if test $build = $target ; then
   18383     STRIP_FOR_TARGET="$2"
   18384   else
   18385     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
   18386   fi
   18387 else
   18388   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
   18389 fi
   18390 
   18391 else
   18392   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
   18393 fi
   18394 
   18395 
   18396 
   18397 
   18398 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
   18399   if test -n "$with_build_time_tools"; then
   18400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
   18401 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
   18402     if test -x $with_build_time_tools/windres; then
   18403       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
   18404       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
   18405       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
   18406 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
   18407     else
   18408       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18409 $as_echo "no" >&6; }
   18410     fi
   18411   elif test $build != $host && test $have_gcc_for_target = yes; then
   18412     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
   18413     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
   18414     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
   18415   fi
   18416 fi
   18417 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   18418   # Extract the first word of "windres", so it can be a program name with args.
   18419 set dummy windres; ac_word=$2
   18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18421 $as_echo_n "checking for $ac_word... " >&6; }
   18422 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
   18423   $as_echo_n "(cached) " >&6
   18424 else
   18425   case $WINDRES_FOR_TARGET in
   18426   [\\/]* | ?:[\\/]*)
   18427   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
   18428   ;;
   18429   *)
   18430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18431 for as_dir in $gcc_cv_tool_dirs
   18432 do
   18433   IFS=$as_save_IFS
   18434   test -z "$as_dir" && as_dir=.
   18435     for ac_exec_ext in '' $ac_executable_extensions; do
   18436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18437     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   18438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18439     break 2
   18440   fi
   18441 done
   18442   done
   18443 IFS=$as_save_IFS
   18444 
   18445   ;;
   18446 esac
   18447 fi
   18448 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
   18449 if test -n "$WINDRES_FOR_TARGET"; then
   18450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
   18451 $as_echo "$WINDRES_FOR_TARGET" >&6; }
   18452 else
   18453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18454 $as_echo "no" >&6; }
   18455 fi
   18456 
   18457 
   18458 fi
   18459 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
   18460 
   18461 
   18462 if test -n "$WINDRES_FOR_TARGET"; then
   18463   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
   18464 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
   18465   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
   18466 fi
   18467 
   18468 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
   18469   for ncn_progname in windres; do
   18470     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18471 set dummy ${ncn_progname}; ac_word=$2
   18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18473 $as_echo_n "checking for $ac_word... " >&6; }
   18474 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
   18475   $as_echo_n "(cached) " >&6
   18476 else
   18477   if test -n "$WINDRES_FOR_TARGET"; then
   18478   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
   18479 else
   18480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18481 for as_dir in $PATH
   18482 do
   18483   IFS=$as_save_IFS
   18484   test -z "$as_dir" && as_dir=.
   18485     for ac_exec_ext in '' $ac_executable_extensions; do
   18486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18487     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
   18488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18489     break 2
   18490   fi
   18491 done
   18492   done
   18493 IFS=$as_save_IFS
   18494 
   18495 fi
   18496 fi
   18497 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
   18498 if test -n "$WINDRES_FOR_TARGET"; then
   18499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
   18500 $as_echo "$WINDRES_FOR_TARGET" >&6; }
   18501 else
   18502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18503 $as_echo "no" >&6; }
   18504 fi
   18505 
   18506 
   18507   done
   18508 fi
   18509 
   18510 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
   18511   for ncn_progname in windres; do
   18512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   18513 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   18514     if test -x $with_build_time_tools/${ncn_progname}; then
   18515       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   18516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18517 $as_echo "yes" >&6; }
   18518       break
   18519     else
   18520       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18521 $as_echo "no" >&6; }
   18522     fi
   18523   done
   18524 fi
   18525 
   18526 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
   18527   for ncn_progname in windres; do
   18528     if test -n "$ncn_target_tool_prefix"; then
   18529       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   18530 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18532 $as_echo_n "checking for $ac_word... " >&6; }
   18533 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
   18534   $as_echo_n "(cached) " >&6
   18535 else
   18536   if test -n "$WINDRES_FOR_TARGET"; then
   18537   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
   18538 else
   18539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18540 for as_dir in $PATH
   18541 do
   18542   IFS=$as_save_IFS
   18543   test -z "$as_dir" && as_dir=.
   18544     for ac_exec_ext in '' $ac_executable_extensions; do
   18545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18546     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   18547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18548     break 2
   18549   fi
   18550 done
   18551   done
   18552 IFS=$as_save_IFS
   18553 
   18554 fi
   18555 fi
   18556 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
   18557 if test -n "$WINDRES_FOR_TARGET"; then
   18558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
   18559 $as_echo "$WINDRES_FOR_TARGET" >&6; }
   18560 else
   18561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18562 $as_echo "no" >&6; }
   18563 fi
   18564 
   18565 
   18566     fi
   18567     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
   18568       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18569 set dummy ${ncn_progname}; ac_word=$2
   18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18571 $as_echo_n "checking for $ac_word... " >&6; }
   18572 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
   18573   $as_echo_n "(cached) " >&6
   18574 else
   18575   if test -n "$WINDRES_FOR_TARGET"; then
   18576   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
   18577 else
   18578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18579 for as_dir in $PATH
   18580 do
   18581   IFS=$as_save_IFS
   18582   test -z "$as_dir" && as_dir=.
   18583     for ac_exec_ext in '' $ac_executable_extensions; do
   18584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18585     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
   18586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18587     break 2
   18588   fi
   18589 done
   18590   done
   18591 IFS=$as_save_IFS
   18592 
   18593 fi
   18594 fi
   18595 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
   18596 if test -n "$WINDRES_FOR_TARGET"; then
   18597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
   18598 $as_echo "$WINDRES_FOR_TARGET" >&6; }
   18599 else
   18600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18601 $as_echo "no" >&6; }
   18602 fi
   18603 
   18604 
   18605     fi
   18606     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
   18607   done
   18608 fi
   18609 
   18610 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
   18611   set dummy windres
   18612   if test $build = $target ; then
   18613     WINDRES_FOR_TARGET="$2"
   18614   else
   18615     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
   18616   fi
   18617 else
   18618   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
   18619 fi
   18620 
   18621 else
   18622   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
   18623 fi
   18624 
   18625 
   18626 
   18627 
   18628 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
   18629   if test -n "$with_build_time_tools"; then
   18630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
   18631 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
   18632     if test -x $with_build_time_tools/windmc; then
   18633       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
   18634       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
   18635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
   18636 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
   18637     else
   18638       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18639 $as_echo "no" >&6; }
   18640     fi
   18641   elif test $build != $host && test $have_gcc_for_target = yes; then
   18642     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
   18643     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
   18644     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
   18645   fi
   18646 fi
   18647 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
   18648   # Extract the first word of "windmc", so it can be a program name with args.
   18649 set dummy windmc; ac_word=$2
   18650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18651 $as_echo_n "checking for $ac_word... " >&6; }
   18652 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
   18653   $as_echo_n "(cached) " >&6
   18654 else
   18655   case $WINDMC_FOR_TARGET in
   18656   [\\/]* | ?:[\\/]*)
   18657   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
   18658   ;;
   18659   *)
   18660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18661 for as_dir in $gcc_cv_tool_dirs
   18662 do
   18663   IFS=$as_save_IFS
   18664   test -z "$as_dir" && as_dir=.
   18665     for ac_exec_ext in '' $ac_executable_extensions; do
   18666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18667     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
   18668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18669     break 2
   18670   fi
   18671 done
   18672   done
   18673 IFS=$as_save_IFS
   18674 
   18675   ;;
   18676 esac
   18677 fi
   18678 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
   18679 if test -n "$WINDMC_FOR_TARGET"; then
   18680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
   18681 $as_echo "$WINDMC_FOR_TARGET" >&6; }
   18682 else
   18683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18684 $as_echo "no" >&6; }
   18685 fi
   18686 
   18687 
   18688 fi
   18689 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
   18690 
   18691 
   18692 if test -n "$WINDMC_FOR_TARGET"; then
   18693   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
   18694 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
   18695   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
   18696 fi
   18697 
   18698 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
   18699   for ncn_progname in windmc; do
   18700     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18701 set dummy ${ncn_progname}; ac_word=$2
   18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18703 $as_echo_n "checking for $ac_word... " >&6; }
   18704 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
   18705   $as_echo_n "(cached) " >&6
   18706 else
   18707   if test -n "$WINDMC_FOR_TARGET"; then
   18708   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
   18709 else
   18710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18711 for as_dir in $PATH
   18712 do
   18713   IFS=$as_save_IFS
   18714   test -z "$as_dir" && as_dir=.
   18715     for ac_exec_ext in '' $ac_executable_extensions; do
   18716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18717     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
   18718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18719     break 2
   18720   fi
   18721 done
   18722   done
   18723 IFS=$as_save_IFS
   18724 
   18725 fi
   18726 fi
   18727 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
   18728 if test -n "$WINDMC_FOR_TARGET"; then
   18729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
   18730 $as_echo "$WINDMC_FOR_TARGET" >&6; }
   18731 else
   18732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18733 $as_echo "no" >&6; }
   18734 fi
   18735 
   18736 
   18737   done
   18738 fi
   18739 
   18740 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
   18741   for ncn_progname in windmc; do
   18742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
   18743 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
   18744     if test -x $with_build_time_tools/${ncn_progname}; then
   18745       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
   18746       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18747 $as_echo "yes" >&6; }
   18748       break
   18749     else
   18750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18751 $as_echo "no" >&6; }
   18752     fi
   18753   done
   18754 fi
   18755 
   18756 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
   18757   for ncn_progname in windmc; do
   18758     if test -n "$ncn_target_tool_prefix"; then
   18759       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
   18760 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
   18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18762 $as_echo_n "checking for $ac_word... " >&6; }
   18763 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
   18764   $as_echo_n "(cached) " >&6
   18765 else
   18766   if test -n "$WINDMC_FOR_TARGET"; then
   18767   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
   18768 else
   18769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18770 for as_dir in $PATH
   18771 do
   18772   IFS=$as_save_IFS
   18773   test -z "$as_dir" && as_dir=.
   18774     for ac_exec_ext in '' $ac_executable_extensions; do
   18775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18776     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
   18777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18778     break 2
   18779   fi
   18780 done
   18781   done
   18782 IFS=$as_save_IFS
   18783 
   18784 fi
   18785 fi
   18786 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
   18787 if test -n "$WINDMC_FOR_TARGET"; then
   18788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
   18789 $as_echo "$WINDMC_FOR_TARGET" >&6; }
   18790 else
   18791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18792 $as_echo "no" >&6; }
   18793 fi
   18794 
   18795 
   18796     fi
   18797     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
   18798       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
   18799 set dummy ${ncn_progname}; ac_word=$2
   18800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18801 $as_echo_n "checking for $ac_word... " >&6; }
   18802 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
   18803   $as_echo_n "(cached) " >&6
   18804 else
   18805   if test -n "$WINDMC_FOR_TARGET"; then
   18806   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
   18807 else
   18808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18809 for as_dir in $PATH
   18810 do
   18811   IFS=$as_save_IFS
   18812   test -z "$as_dir" && as_dir=.
   18813     for ac_exec_ext in '' $ac_executable_extensions; do
   18814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18815     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
   18816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18817     break 2
   18818   fi
   18819 done
   18820   done
   18821 IFS=$as_save_IFS
   18822 
   18823 fi
   18824 fi
   18825 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
   18826 if test -n "$WINDMC_FOR_TARGET"; then
   18827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
   18828 $as_echo "$WINDMC_FOR_TARGET" >&6; }
   18829 else
   18830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18831 $as_echo "no" >&6; }
   18832 fi
   18833 
   18834 
   18835     fi
   18836     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
   18837   done
   18838 fi
   18839 
   18840 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
   18841   set dummy windmc
   18842   if test $build = $target ; then
   18843     WINDMC_FOR_TARGET="$2"
   18844   else
   18845     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
   18846   fi
   18847 else
   18848   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
   18849 fi
   18850 
   18851 else
   18852   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
   18853 fi
   18854 
   18855 
   18856 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
   18857 
   18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
   18859 $as_echo_n "checking where to find the target ar... " >&6; }
   18860 if test "x${build}" != "x${host}" ; then
   18861   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
   18862     # We already found the complete path
   18863     ac_dir=`dirname $AR_FOR_TARGET`
   18864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   18865 $as_echo "pre-installed in $ac_dir" >&6; }
   18866   else
   18867     # Canadian cross, just use what we found
   18868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   18869 $as_echo "pre-installed" >&6; }
   18870   fi
   18871 else
   18872   ok=yes
   18873   case " ${configdirs} " in
   18874     *" binutils "*) ;;
   18875     *) ok=no ;;
   18876   esac
   18877 
   18878   if test $ok = yes; then
   18879     # An in-tree tool is available and we can use it
   18880     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
   18881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   18882 $as_echo "just compiled" >&6; }
   18883   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
   18884     # We already found the complete path
   18885     ac_dir=`dirname $AR_FOR_TARGET`
   18886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   18887 $as_echo "pre-installed in $ac_dir" >&6; }
   18888   elif test "x$target" = "x$host"; then
   18889     # We can use an host tool
   18890     AR_FOR_TARGET='$(AR)'
   18891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   18892 $as_echo "host tool" >&6; }
   18893   else
   18894     # We need a cross tool
   18895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   18896 $as_echo "pre-installed" >&6; }
   18897   fi
   18898 fi
   18899 
   18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
   18901 $as_echo_n "checking where to find the target as... " >&6; }
   18902 if test "x${build}" != "x${host}" ; then
   18903   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
   18904     # We already found the complete path
   18905     ac_dir=`dirname $AS_FOR_TARGET`
   18906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   18907 $as_echo "pre-installed in $ac_dir" >&6; }
   18908   else
   18909     # Canadian cross, just use what we found
   18910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   18911 $as_echo "pre-installed" >&6; }
   18912   fi
   18913 else
   18914   ok=yes
   18915   case " ${configdirs} " in
   18916     *" gas "*) ;;
   18917     *) ok=no ;;
   18918   esac
   18919 
   18920   if test $ok = yes; then
   18921     # An in-tree tool is available and we can use it
   18922     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
   18923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   18924 $as_echo "just compiled" >&6; }
   18925   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
   18926     # We already found the complete path
   18927     ac_dir=`dirname $AS_FOR_TARGET`
   18928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   18929 $as_echo "pre-installed in $ac_dir" >&6; }
   18930   elif test "x$target" = "x$host"; then
   18931     # We can use an host tool
   18932     AS_FOR_TARGET='$(AS)'
   18933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   18934 $as_echo "host tool" >&6; }
   18935   else
   18936     # We need a cross tool
   18937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   18938 $as_echo "pre-installed" >&6; }
   18939   fi
   18940 fi
   18941 
   18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
   18943 $as_echo_n "checking where to find the target cc... " >&6; }
   18944 if test "x${build}" != "x${host}" ; then
   18945   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
   18946     # We already found the complete path
   18947     ac_dir=`dirname $CC_FOR_TARGET`
   18948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   18949 $as_echo "pre-installed in $ac_dir" >&6; }
   18950   else
   18951     # Canadian cross, just use what we found
   18952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   18953 $as_echo "pre-installed" >&6; }
   18954   fi
   18955 else
   18956   ok=yes
   18957   case " ${configdirs} " in
   18958     *" gcc "*) ;;
   18959     *) ok=no ;;
   18960   esac
   18961 
   18962   if test $ok = yes; then
   18963     # An in-tree tool is available and we can use it
   18964     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
   18965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   18966 $as_echo "just compiled" >&6; }
   18967   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
   18968     # We already found the complete path
   18969     ac_dir=`dirname $CC_FOR_TARGET`
   18970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   18971 $as_echo "pre-installed in $ac_dir" >&6; }
   18972   elif test "x$target" = "x$host"; then
   18973     # We can use an host tool
   18974     CC_FOR_TARGET='$(CC)'
   18975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   18976 $as_echo "host tool" >&6; }
   18977   else
   18978     # We need a cross tool
   18979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   18980 $as_echo "pre-installed" >&6; }
   18981   fi
   18982 fi
   18983 
   18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
   18985 $as_echo_n "checking where to find the target c++... " >&6; }
   18986 if test "x${build}" != "x${host}" ; then
   18987   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
   18988     # We already found the complete path
   18989     ac_dir=`dirname $CXX_FOR_TARGET`
   18990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   18991 $as_echo "pre-installed in $ac_dir" >&6; }
   18992   else
   18993     # Canadian cross, just use what we found
   18994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   18995 $as_echo "pre-installed" >&6; }
   18996   fi
   18997 else
   18998   ok=yes
   18999   case " ${configdirs} " in
   19000     *" gcc "*) ;;
   19001     *) ok=no ;;
   19002   esac
   19003   case ,${enable_languages}, in
   19004     *,c++,*) ;;
   19005     *) ok=no ;;
   19006   esac
   19007   if test $ok = yes; then
   19008     # An in-tree tool is available and we can use it
   19009     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'
   19010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19011 $as_echo "just compiled" >&6; }
   19012   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
   19013     # We already found the complete path
   19014     ac_dir=`dirname $CXX_FOR_TARGET`
   19015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19016 $as_echo "pre-installed in $ac_dir" >&6; }
   19017   elif test "x$target" = "x$host"; then
   19018     # We can use an host tool
   19019     CXX_FOR_TARGET='$(CXX)'
   19020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19021 $as_echo "host tool" >&6; }
   19022   else
   19023     # We need a cross tool
   19024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19025 $as_echo "pre-installed" >&6; }
   19026   fi
   19027 fi
   19028 
   19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
   19030 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
   19031 if test "x${build}" != "x${host}" ; then
   19032   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
   19033     # We already found the complete path
   19034     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
   19035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19036 $as_echo "pre-installed in $ac_dir" >&6; }
   19037   else
   19038     # Canadian cross, just use what we found
   19039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19040 $as_echo "pre-installed" >&6; }
   19041   fi
   19042 else
   19043   ok=yes
   19044   case " ${configdirs} " in
   19045     *" gcc "*) ;;
   19046     *) ok=no ;;
   19047   esac
   19048   case ,${enable_languages}, in
   19049     *,c++,*) ;;
   19050     *) ok=no ;;
   19051   esac
   19052   if test $ok = yes; then
   19053     # An in-tree tool is available and we can use it
   19054     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'
   19055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19056 $as_echo "just compiled" >&6; }
   19057   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
   19058     # We already found the complete path
   19059     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
   19060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19061 $as_echo "pre-installed in $ac_dir" >&6; }
   19062   elif test "x$target" = "x$host"; then
   19063     # We can use an host tool
   19064     RAW_CXX_FOR_TARGET='$(CXX)'
   19065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19066 $as_echo "host tool" >&6; }
   19067   else
   19068     # We need a cross tool
   19069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19070 $as_echo "pre-installed" >&6; }
   19071   fi
   19072 fi
   19073 
   19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
   19075 $as_echo_n "checking where to find the target dlltool... " >&6; }
   19076 if test "x${build}" != "x${host}" ; then
   19077   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
   19078     # We already found the complete path
   19079     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
   19080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19081 $as_echo "pre-installed in $ac_dir" >&6; }
   19082   else
   19083     # Canadian cross, just use what we found
   19084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19085 $as_echo "pre-installed" >&6; }
   19086   fi
   19087 else
   19088   ok=yes
   19089   case " ${configdirs} " in
   19090     *" binutils "*) ;;
   19091     *) ok=no ;;
   19092   esac
   19093 
   19094   if test $ok = yes; then
   19095     # An in-tree tool is available and we can use it
   19096     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
   19097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19098 $as_echo "just compiled" >&6; }
   19099   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
   19100     # We already found the complete path
   19101     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
   19102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19103 $as_echo "pre-installed in $ac_dir" >&6; }
   19104   elif test "x$target" = "x$host"; then
   19105     # We can use an host tool
   19106     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
   19107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19108 $as_echo "host tool" >&6; }
   19109   else
   19110     # We need a cross tool
   19111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19112 $as_echo "pre-installed" >&6; }
   19113   fi
   19114 fi
   19115 
   19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
   19117 $as_echo_n "checking where to find the target dsymutil... " >&6; }
   19118 if test "x${build}" != "x${host}" ; then
   19119   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
   19120     # We already found the complete path
   19121     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
   19122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19123 $as_echo "pre-installed in $ac_dir" >&6; }
   19124   else
   19125     # Canadian cross, just use what we found
   19126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19127 $as_echo "pre-installed" >&6; }
   19128   fi
   19129 else
   19130   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
   19131     # We already found the complete path
   19132     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
   19133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19134 $as_echo "pre-installed in $ac_dir" >&6; }
   19135   elif test "x$target" = "x$host"; then
   19136     # We can use an host tool
   19137     DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
   19138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19139 $as_echo "host tool" >&6; }
   19140   else
   19141     # We need a cross tool
   19142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19143 $as_echo "pre-installed" >&6; }
   19144   fi
   19145 fi
   19146 
   19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
   19148 $as_echo_n "checking where to find the target gcc... " >&6; }
   19149 if test "x${build}" != "x${host}" ; then
   19150   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
   19151     # We already found the complete path
   19152     ac_dir=`dirname $GCC_FOR_TARGET`
   19153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19154 $as_echo "pre-installed in $ac_dir" >&6; }
   19155   else
   19156     # Canadian cross, just use what we found
   19157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19158 $as_echo "pre-installed" >&6; }
   19159   fi
   19160 else
   19161   ok=yes
   19162   case " ${configdirs} " in
   19163     *" gcc "*) ;;
   19164     *) ok=no ;;
   19165   esac
   19166 
   19167   if test $ok = yes; then
   19168     # An in-tree tool is available and we can use it
   19169     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
   19170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19171 $as_echo "just compiled" >&6; }
   19172   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
   19173     # We already found the complete path
   19174     ac_dir=`dirname $GCC_FOR_TARGET`
   19175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19176 $as_echo "pre-installed in $ac_dir" >&6; }
   19177   elif test "x$target" = "x$host"; then
   19178     # We can use an host tool
   19179     GCC_FOR_TARGET='$()'
   19180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19181 $as_echo "host tool" >&6; }
   19182   else
   19183     # We need a cross tool
   19184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19185 $as_echo "pre-installed" >&6; }
   19186   fi
   19187 fi
   19188 
   19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
   19190 $as_echo_n "checking where to find the target gfortran... " >&6; }
   19191 if test "x${build}" != "x${host}" ; then
   19192   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
   19193     # We already found the complete path
   19194     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
   19195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19196 $as_echo "pre-installed in $ac_dir" >&6; }
   19197   else
   19198     # Canadian cross, just use what we found
   19199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19200 $as_echo "pre-installed" >&6; }
   19201   fi
   19202 else
   19203   ok=yes
   19204   case " ${configdirs} " in
   19205     *" gcc "*) ;;
   19206     *) ok=no ;;
   19207   esac
   19208   case ,${enable_languages}, in
   19209     *,fortran,*) ;;
   19210     *) ok=no ;;
   19211   esac
   19212   if test $ok = yes; then
   19213     # An in-tree tool is available and we can use it
   19214     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
   19215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19216 $as_echo "just compiled" >&6; }
   19217   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
   19218     # We already found the complete path
   19219     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
   19220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19221 $as_echo "pre-installed in $ac_dir" >&6; }
   19222   elif test "x$target" = "x$host"; then
   19223     # We can use an host tool
   19224     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
   19225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19226 $as_echo "host tool" >&6; }
   19227   else
   19228     # We need a cross tool
   19229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19230 $as_echo "pre-installed" >&6; }
   19231   fi
   19232 fi
   19233 
   19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
   19235 $as_echo_n "checking where to find the target gccgo... " >&6; }
   19236 if test "x${build}" != "x${host}" ; then
   19237   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
   19238     # We already found the complete path
   19239     ac_dir=`dirname $GOC_FOR_TARGET`
   19240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19241 $as_echo "pre-installed in $ac_dir" >&6; }
   19242   else
   19243     # Canadian cross, just use what we found
   19244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19245 $as_echo "pre-installed" >&6; }
   19246   fi
   19247 else
   19248   ok=yes
   19249   case " ${configdirs} " in
   19250     *" gcc "*) ;;
   19251     *) ok=no ;;
   19252   esac
   19253   case ,${enable_languages}, in
   19254     *,go,*) ;;
   19255     *) ok=no ;;
   19256   esac
   19257   if test $ok = yes; then
   19258     # An in-tree tool is available and we can use it
   19259     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
   19260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19261 $as_echo "just compiled" >&6; }
   19262   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
   19263     # We already found the complete path
   19264     ac_dir=`dirname $GOC_FOR_TARGET`
   19265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19266 $as_echo "pre-installed in $ac_dir" >&6; }
   19267   elif test "x$target" = "x$host"; then
   19268     # We can use an host tool
   19269     GOC_FOR_TARGET='$(GOC)'
   19270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19271 $as_echo "host tool" >&6; }
   19272   else
   19273     # We need a cross tool
   19274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19275 $as_echo "pre-installed" >&6; }
   19276   fi
   19277 fi
   19278 
   19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
   19280 $as_echo_n "checking where to find the target gdc... " >&6; }
   19281 if test "x${build}" != "x${host}" ; then
   19282   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
   19283     # We already found the complete path
   19284     ac_dir=`dirname $GDC_FOR_TARGET`
   19285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19286 $as_echo "pre-installed in $ac_dir" >&6; }
   19287   else
   19288     # Canadian cross, just use what we found
   19289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19290 $as_echo "pre-installed" >&6; }
   19291   fi
   19292 else
   19293   ok=yes
   19294   case " ${configdirs} " in
   19295     *" gcc "*) ;;
   19296     *) ok=no ;;
   19297   esac
   19298   case ,${enable_languages}, in
   19299     *,d,*) ;;
   19300     *) ok=no ;;
   19301   esac
   19302   if test $ok = yes; then
   19303     # An in-tree tool is available and we can use it
   19304     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
   19305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19306 $as_echo "just compiled" >&6; }
   19307   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
   19308     # We already found the complete path
   19309     ac_dir=`dirname $GDC_FOR_TARGET`
   19310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19311 $as_echo "pre-installed in $ac_dir" >&6; }
   19312   elif test "x$target" = "x$host"; then
   19313     # We can use an host tool
   19314     GDC_FOR_TARGET='$(GDC)'
   19315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19316 $as_echo "host tool" >&6; }
   19317   else
   19318     # We need a cross tool
   19319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19320 $as_echo "pre-installed" >&6; }
   19321   fi
   19322 fi
   19323 
   19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
   19325 $as_echo_n "checking where to find the target gm2... " >&6; }
   19326 if test "x${build}" != "x${host}" ; then
   19327   if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
   19328     # We already found the complete path
   19329     ac_dir=`dirname $GM2_FOR_TARGET`
   19330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19331 $as_echo "pre-installed in $ac_dir" >&6; }
   19332   else
   19333     # Canadian cross, just use what we found
   19334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19335 $as_echo "pre-installed" >&6; }
   19336   fi
   19337 else
   19338   ok=yes
   19339   case " ${configdirs} " in
   19340     *" gcc "*) ;;
   19341     *) ok=no ;;
   19342   esac
   19343   case ,${enable_languages}, in
   19344     *,m2,*) ;;
   19345     *) ok=no ;;
   19346   esac
   19347   if test $ok = yes; then
   19348     # An in-tree tool is available and we can use it
   19349     GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
   19350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19351 $as_echo "just compiled" >&6; }
   19352   elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
   19353     # We already found the complete path
   19354     ac_dir=`dirname $GM2_FOR_TARGET`
   19355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19356 $as_echo "pre-installed in $ac_dir" >&6; }
   19357   elif test "x$target" = "x$host"; then
   19358     # We can use an host tool
   19359     GM2_FOR_TARGET='$(GM2)'
   19360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19361 $as_echo "host tool" >&6; }
   19362   else
   19363     # We need a cross tool
   19364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19365 $as_echo "pre-installed" >&6; }
   19366   fi
   19367 fi
   19368 
   19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
   19370 $as_echo_n "checking where to find the target ld... " >&6; }
   19371 if test "x${build}" != "x${host}" ; then
   19372   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
   19373     # We already found the complete path
   19374     ac_dir=`dirname $LD_FOR_TARGET`
   19375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19376 $as_echo "pre-installed in $ac_dir" >&6; }
   19377   else
   19378     # Canadian cross, just use what we found
   19379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19380 $as_echo "pre-installed" >&6; }
   19381   fi
   19382 else
   19383   ok=yes
   19384   case " ${configdirs} " in
   19385     *" ld "*) ;;
   19386     *) ok=no ;;
   19387   esac
   19388 
   19389   if test $ok = yes; then
   19390     # An in-tree tool is available and we can use it
   19391     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
   19392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19393 $as_echo "just compiled" >&6; }
   19394   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
   19395     # We already found the complete path
   19396     ac_dir=`dirname $LD_FOR_TARGET`
   19397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19398 $as_echo "pre-installed in $ac_dir" >&6; }
   19399   elif test "x$target" = "x$host"; then
   19400     # We can use an host tool
   19401     LD_FOR_TARGET='$(LD)'
   19402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19403 $as_echo "host tool" >&6; }
   19404   else
   19405     # We need a cross tool
   19406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19407 $as_echo "pre-installed" >&6; }
   19408   fi
   19409 fi
   19410 
   19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
   19412 $as_echo_n "checking where to find the target lipo... " >&6; }
   19413 if test "x${build}" != "x${host}" ; then
   19414   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
   19415     # We already found the complete path
   19416     ac_dir=`dirname $LIPO_FOR_TARGET`
   19417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19418 $as_echo "pre-installed in $ac_dir" >&6; }
   19419   else
   19420     # Canadian cross, just use what we found
   19421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19422 $as_echo "pre-installed" >&6; }
   19423   fi
   19424 else
   19425   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
   19426     # We already found the complete path
   19427     ac_dir=`dirname $LIPO_FOR_TARGET`
   19428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19429 $as_echo "pre-installed in $ac_dir" >&6; }
   19430   elif test "x$target" = "x$host"; then
   19431     # We can use an host tool
   19432     LIPO_FOR_TARGET='$(LIPO)'
   19433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19434 $as_echo "host tool" >&6; }
   19435   else
   19436     # We need a cross tool
   19437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19438 $as_echo "pre-installed" >&6; }
   19439   fi
   19440 fi
   19441 
   19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
   19443 $as_echo_n "checking where to find the target nm... " >&6; }
   19444 if test "x${build}" != "x${host}" ; then
   19445   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
   19446     # We already found the complete path
   19447     ac_dir=`dirname $NM_FOR_TARGET`
   19448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19449 $as_echo "pre-installed in $ac_dir" >&6; }
   19450   else
   19451     # Canadian cross, just use what we found
   19452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19453 $as_echo "pre-installed" >&6; }
   19454   fi
   19455 else
   19456   ok=yes
   19457   case " ${configdirs} " in
   19458     *" binutils "*) ;;
   19459     *) ok=no ;;
   19460   esac
   19461 
   19462   if test $ok = yes; then
   19463     # An in-tree tool is available and we can use it
   19464     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
   19465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19466 $as_echo "just compiled" >&6; }
   19467   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
   19468     # We already found the complete path
   19469     ac_dir=`dirname $NM_FOR_TARGET`
   19470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19471 $as_echo "pre-installed in $ac_dir" >&6; }
   19472   elif test "x$target" = "x$host"; then
   19473     # We can use an host tool
   19474     NM_FOR_TARGET='$(NM)'
   19475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19476 $as_echo "host tool" >&6; }
   19477   else
   19478     # We need a cross tool
   19479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19480 $as_echo "pre-installed" >&6; }
   19481   fi
   19482 fi
   19483 
   19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
   19485 $as_echo_n "checking where to find the target objcopy... " >&6; }
   19486 if test "x${build}" != "x${host}" ; then
   19487   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
   19488     # We already found the complete path
   19489     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
   19490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19491 $as_echo "pre-installed in $ac_dir" >&6; }
   19492   else
   19493     # Canadian cross, just use what we found
   19494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19495 $as_echo "pre-installed" >&6; }
   19496   fi
   19497 else
   19498   ok=yes
   19499   case " ${configdirs} " in
   19500     *" binutils "*) ;;
   19501     *) ok=no ;;
   19502   esac
   19503 
   19504   if test $ok = yes; then
   19505     # An in-tree tool is available and we can use it
   19506     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
   19507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19508 $as_echo "just compiled" >&6; }
   19509   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
   19510     # We already found the complete path
   19511     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
   19512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19513 $as_echo "pre-installed in $ac_dir" >&6; }
   19514   elif test "x$target" = "x$host"; then
   19515     # We can use an host tool
   19516     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
   19517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19518 $as_echo "host tool" >&6; }
   19519   else
   19520     # We need a cross tool
   19521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19522 $as_echo "pre-installed" >&6; }
   19523   fi
   19524 fi
   19525 
   19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
   19527 $as_echo_n "checking where to find the target objdump... " >&6; }
   19528 if test "x${build}" != "x${host}" ; then
   19529   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
   19530     # We already found the complete path
   19531     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
   19532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19533 $as_echo "pre-installed in $ac_dir" >&6; }
   19534   else
   19535     # Canadian cross, just use what we found
   19536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19537 $as_echo "pre-installed" >&6; }
   19538   fi
   19539 else
   19540   ok=yes
   19541   case " ${configdirs} " in
   19542     *" binutils "*) ;;
   19543     *) ok=no ;;
   19544   esac
   19545 
   19546   if test $ok = yes; then
   19547     # An in-tree tool is available and we can use it
   19548     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
   19549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19550 $as_echo "just compiled" >&6; }
   19551   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
   19552     # We already found the complete path
   19553     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
   19554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19555 $as_echo "pre-installed in $ac_dir" >&6; }
   19556   elif test "x$target" = "x$host"; then
   19557     # We can use an host tool
   19558     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
   19559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19560 $as_echo "host tool" >&6; }
   19561   else
   19562     # We need a cross tool
   19563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19564 $as_echo "pre-installed" >&6; }
   19565   fi
   19566 fi
   19567 
   19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
   19569 $as_echo_n "checking where to find the target otool... " >&6; }
   19570 if test "x${build}" != "x${host}" ; then
   19571   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
   19572     # We already found the complete path
   19573     ac_dir=`dirname $OTOOL_FOR_TARGET`
   19574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19575 $as_echo "pre-installed in $ac_dir" >&6; }
   19576   else
   19577     # Canadian cross, just use what we found
   19578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19579 $as_echo "pre-installed" >&6; }
   19580   fi
   19581 else
   19582   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
   19583     # We already found the complete path
   19584     ac_dir=`dirname $OTOOL_FOR_TARGET`
   19585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19586 $as_echo "pre-installed in $ac_dir" >&6; }
   19587   elif test "x$target" = "x$host"; then
   19588     # We can use an host tool
   19589     OTOOL_FOR_TARGET='$(OTOOL)'
   19590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19591 $as_echo "host tool" >&6; }
   19592   else
   19593     # We need a cross tool
   19594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19595 $as_echo "pre-installed" >&6; }
   19596   fi
   19597 fi
   19598 
   19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
   19600 $as_echo_n "checking where to find the target ranlib... " >&6; }
   19601 if test "x${build}" != "x${host}" ; then
   19602   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
   19603     # We already found the complete path
   19604     ac_dir=`dirname $RANLIB_FOR_TARGET`
   19605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19606 $as_echo "pre-installed in $ac_dir" >&6; }
   19607   else
   19608     # Canadian cross, just use what we found
   19609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19610 $as_echo "pre-installed" >&6; }
   19611   fi
   19612 else
   19613   ok=yes
   19614   case " ${configdirs} " in
   19615     *" binutils "*) ;;
   19616     *) ok=no ;;
   19617   esac
   19618 
   19619   if test $ok = yes; then
   19620     # An in-tree tool is available and we can use it
   19621     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
   19622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19623 $as_echo "just compiled" >&6; }
   19624   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
   19625     # We already found the complete path
   19626     ac_dir=`dirname $RANLIB_FOR_TARGET`
   19627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19628 $as_echo "pre-installed in $ac_dir" >&6; }
   19629   elif test "x$target" = "x$host"; then
   19630     # We can use an host tool
   19631     RANLIB_FOR_TARGET='$(RANLIB)'
   19632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19633 $as_echo "host tool" >&6; }
   19634   else
   19635     # We need a cross tool
   19636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19637 $as_echo "pre-installed" >&6; }
   19638   fi
   19639 fi
   19640 
   19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
   19642 $as_echo_n "checking where to find the target readelf... " >&6; }
   19643 if test "x${build}" != "x${host}" ; then
   19644   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
   19645     # We already found the complete path
   19646     ac_dir=`dirname $READELF_FOR_TARGET`
   19647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19648 $as_echo "pre-installed in $ac_dir" >&6; }
   19649   else
   19650     # Canadian cross, just use what we found
   19651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19652 $as_echo "pre-installed" >&6; }
   19653   fi
   19654 else
   19655   ok=yes
   19656   case " ${configdirs} " in
   19657     *" binutils "*) ;;
   19658     *) ok=no ;;
   19659   esac
   19660 
   19661   if test $ok = yes; then
   19662     # An in-tree tool is available and we can use it
   19663     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
   19664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19665 $as_echo "just compiled" >&6; }
   19666   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
   19667     # We already found the complete path
   19668     ac_dir=`dirname $READELF_FOR_TARGET`
   19669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19670 $as_echo "pre-installed in $ac_dir" >&6; }
   19671   elif test "x$target" = "x$host"; then
   19672     # We can use an host tool
   19673     READELF_FOR_TARGET='$(READELF)'
   19674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19675 $as_echo "host tool" >&6; }
   19676   else
   19677     # We need a cross tool
   19678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19679 $as_echo "pre-installed" >&6; }
   19680   fi
   19681 fi
   19682 
   19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
   19684 $as_echo_n "checking where to find the target strip... " >&6; }
   19685 if test "x${build}" != "x${host}" ; then
   19686   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
   19687     # We already found the complete path
   19688     ac_dir=`dirname $STRIP_FOR_TARGET`
   19689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19690 $as_echo "pre-installed in $ac_dir" >&6; }
   19691   else
   19692     # Canadian cross, just use what we found
   19693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19694 $as_echo "pre-installed" >&6; }
   19695   fi
   19696 else
   19697   ok=yes
   19698   case " ${configdirs} " in
   19699     *" binutils "*) ;;
   19700     *) ok=no ;;
   19701   esac
   19702 
   19703   if test $ok = yes; then
   19704     # An in-tree tool is available and we can use it
   19705     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
   19706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19707 $as_echo "just compiled" >&6; }
   19708   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
   19709     # We already found the complete path
   19710     ac_dir=`dirname $STRIP_FOR_TARGET`
   19711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19712 $as_echo "pre-installed in $ac_dir" >&6; }
   19713   elif test "x$target" = "x$host"; then
   19714     # We can use an host tool
   19715     STRIP_FOR_TARGET='$(STRIP)'
   19716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19717 $as_echo "host tool" >&6; }
   19718   else
   19719     # We need a cross tool
   19720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19721 $as_echo "pre-installed" >&6; }
   19722   fi
   19723 fi
   19724 
   19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
   19726 $as_echo_n "checking where to find the target windres... " >&6; }
   19727 if test "x${build}" != "x${host}" ; then
   19728   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
   19729     # We already found the complete path
   19730     ac_dir=`dirname $WINDRES_FOR_TARGET`
   19731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19732 $as_echo "pre-installed in $ac_dir" >&6; }
   19733   else
   19734     # Canadian cross, just use what we found
   19735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19736 $as_echo "pre-installed" >&6; }
   19737   fi
   19738 else
   19739   ok=yes
   19740   case " ${configdirs} " in
   19741     *" binutils "*) ;;
   19742     *) ok=no ;;
   19743   esac
   19744 
   19745   if test $ok = yes; then
   19746     # An in-tree tool is available and we can use it
   19747     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
   19748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19749 $as_echo "just compiled" >&6; }
   19750   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
   19751     # We already found the complete path
   19752     ac_dir=`dirname $WINDRES_FOR_TARGET`
   19753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19754 $as_echo "pre-installed in $ac_dir" >&6; }
   19755   elif test "x$target" = "x$host"; then
   19756     # We can use an host tool
   19757     WINDRES_FOR_TARGET='$(WINDRES)'
   19758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19759 $as_echo "host tool" >&6; }
   19760   else
   19761     # We need a cross tool
   19762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19763 $as_echo "pre-installed" >&6; }
   19764   fi
   19765 fi
   19766 
   19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
   19768 $as_echo_n "checking where to find the target windmc... " >&6; }
   19769 if test "x${build}" != "x${host}" ; then
   19770   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
   19771     # We already found the complete path
   19772     ac_dir=`dirname $WINDMC_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     *" binutils "*) ;;
   19784     *) ok=no ;;
   19785   esac
   19786 
   19787   if test $ok = yes; then
   19788     # An in-tree tool is available and we can use it
   19789     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
   19790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
   19791 $as_echo "just compiled" >&6; }
   19792   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
   19793     # We already found the complete path
   19794     ac_dir=`dirname $WINDMC_FOR_TARGET`
   19795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
   19796 $as_echo "pre-installed in $ac_dir" >&6; }
   19797   elif test "x$target" = "x$host"; then
   19798     # We can use an host tool
   19799     WINDMC_FOR_TARGET='$(WINDMC)'
   19800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
   19801 $as_echo "host tool" >&6; }
   19802   else
   19803     # We need a cross tool
   19804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
   19805 $as_echo "pre-installed" >&6; }
   19806   fi
   19807 fi
   19808 
   19809 
   19810 
   19811 
   19812 
   19813 # Certain tools may need extra flags.
   19814 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
   19815 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
   19816 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
   19817 
   19818 # When building target libraries, except in a Canadian cross, we use
   19819 # the same toolchain as the compiler we just built.
   19820 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
   19821 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
   19822 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
   19823 if test $host = $build; then
   19824   case " $configdirs " in
   19825     *" gcc "*)
   19826       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
   19827       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
   19828       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
   19829       ;;
   19830   esac
   19831 fi
   19832 
   19833 
   19834 
   19835 
   19836 
   19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   19838 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   19839 # Check whether --enable-maintainer-mode was given.
   19840 if test "${enable_maintainer_mode+set}" = set; then :
   19841   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   19842 else
   19843   USE_MAINTAINER_MODE=no
   19844 fi
   19845 
   19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   19847 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   19848 
   19849 
   19850 if test "$USE_MAINTAINER_MODE" = yes; then
   19851   MAINTAINER_MODE_TRUE=
   19852   MAINTAINER_MODE_FALSE='#'
   19853 else
   19854   MAINTAINER_MODE_TRUE='#'
   19855   MAINTAINER_MODE_FALSE=
   19856 fi
   19857 MAINT=$MAINTAINER_MODE_TRUE
   19858 
   19859 # ---------------------
   19860 # GCC bootstrap support
   19861 # ---------------------
   19862 
   19863 # Stage specific cflags for build.
   19864 stage1_cflags="-g"
   19865 case $build in
   19866   vax-*-*)
   19867     case ${GCC} in
   19868       yes) stage1_cflags="-g -Wa,-J" ;;
   19869       *) stage1_cflags="-g -J" ;;
   19870     esac ;;
   19871 esac
   19872 
   19873 
   19874 
   19875 # Enable --enable-checking in stage1 of the compiler.
   19876 # Check whether --enable-stage1-checking was given.
   19877 if test "${enable_stage1_checking+set}" = set; then :
   19878   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
   19879 else
   19880   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
   19881   # For --disable-checking or implicit --enable-checking=release, avoid
   19882   # setting --enable-checking=gc in the default stage1 checking for LTO
   19883   # bootstraps.  See PR62077.
   19884   case $BUILD_CONFIG in
   19885     *lto*)
   19886       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
   19887     *)
   19888       stage1_checking=--enable-checking=yes,types;;
   19889   esac
   19890   if test "x$enable_checking" = x && \
   19891      test -d ${srcdir}/gcc && \
   19892      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
   19893     stage1_checking=--enable-checking=yes,types,extra
   19894   fi
   19895 else
   19896   stage1_checking=--enable-checking=$enable_checking,types
   19897 fi
   19898 fi
   19899 
   19900 
   19901 
   19902 # Enable -Werror in bootstrap stage2 and later.
   19903 # Check whether --enable-werror was given.
   19904 if test "${enable_werror+set}" = set; then :
   19905   enableval=$enable_werror;
   19906 case ${enable_werror} in
   19907   yes) stage2_werror_flag="--enable-werror-always" ;;
   19908   *) stage2_werror_flag="" ;;
   19909 esac
   19910 
   19911 else
   19912 
   19913 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
   19914   case $BUILD_CONFIG in
   19915   bootstrap-debug)
   19916       stage2_werror_flag="--enable-werror-always" ;;
   19917   "")
   19918       stage2_werror_flag="--enable-werror-always" ;;
   19919   esac
   19920 fi
   19921 
   19922 fi
   19923 
   19924 
   19925 
   19926 
   19927 # Specify what files to not compare during bootstrap.
   19928 
   19929 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
   19930 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
   19931 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
   19932 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
   19933 case "$target" in
   19934   hppa*64*-*-hpux*) ;;
   19935   powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
   19936 esac
   19937 
   19938 
   19939 ac_config_files="$ac_config_files Makefile"
   19940 
   19941 cat >confcache <<\_ACEOF
   19942 # This file is a shell script that caches the results of configure
   19943 # tests run on this system so they can be shared between configure
   19944 # scripts and configure runs, see configure's option --config-cache.
   19945 # It is not useful on other systems.  If it contains results you don't
   19946 # want to keep, you may remove or edit it.
   19947 #
   19948 # config.status only pays attention to the cache file if you give it
   19949 # the --recheck option to rerun configure.
   19950 #
   19951 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   19952 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   19953 # following values.
   19954 
   19955 _ACEOF
   19956 
   19957 # The following way of writing the cache mishandles newlines in values,
   19958 # but we know of no workaround that is simple, portable, and efficient.
   19959 # So, we kill variables containing newlines.
   19960 # Ultrix sh set writes to stderr and can't be redirected directly,
   19961 # and sets the high bit in the cache file unless we assign to the vars.
   19962 (
   19963   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   19964     eval ac_val=\$$ac_var
   19965     case $ac_val in #(
   19966     *${as_nl}*)
   19967       case $ac_var in #(
   19968       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   19969 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   19970       esac
   19971       case $ac_var in #(
   19972       _ | IFS | as_nl) ;; #(
   19973       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   19974       *) { eval $ac_var=; unset $ac_var;} ;;
   19975       esac ;;
   19976     esac
   19977   done
   19978 
   19979   (set) 2>&1 |
   19980     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   19981     *${as_nl}ac_space=\ *)
   19982       # `set' does not quote correctly, so add quotes: double-quote
   19983       # substitution turns \\\\ into \\, and sed turns \\ into \.
   19984       sed -n \
   19985 	"s/'/'\\\\''/g;
   19986 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   19987       ;; #(
   19988     *)
   19989       # `set' quotes correctly as required by POSIX, so do not add quotes.
   19990       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   19991       ;;
   19992     esac |
   19993     sort
   19994 ) |
   19995   sed '
   19996      /^ac_cv_env_/b end
   19997      t clear
   19998      :clear
   19999      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   20000      t end
   20001      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   20002      :end' >>confcache
   20003 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   20004   if test -w "$cache_file"; then
   20005     if test "x$cache_file" != "x/dev/null"; then
   20006       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   20007 $as_echo "$as_me: updating cache $cache_file" >&6;}
   20008       if test ! -f "$cache_file" || test -h "$cache_file"; then
   20009 	cat confcache >"$cache_file"
   20010       else
   20011         case $cache_file in #(
   20012         */* | ?:*)
   20013 	  mv -f confcache "$cache_file"$$ &&
   20014 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   20015         *)
   20016 	  mv -f confcache "$cache_file" ;;
   20017 	esac
   20018       fi
   20019     fi
   20020   else
   20021     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   20022 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   20023   fi
   20024 fi
   20025 rm -f confcache
   20026 
   20027 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   20028 # Let make expand exec_prefix.
   20029 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   20030 
   20031 # Transform confdefs.h into DEFS.
   20032 # Protect against shell expansion while executing Makefile rules.
   20033 # Protect against Makefile macro expansion.
   20034 #
   20035 # If the first sed substitution is executed (which looks for macros that
   20036 # take arguments), then branch to the quote section.  Otherwise,
   20037 # look for a macro that doesn't take arguments.
   20038 ac_script='
   20039 :mline
   20040 /\\$/{
   20041  N
   20042  s,\\\n,,
   20043  b mline
   20044 }
   20045 t clear
   20046 :clear
   20047 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
   20048 t quote
   20049 s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
   20050 t quote
   20051 b any
   20052 :quote
   20053 s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
   20054 s/\[/\\&/g
   20055 s/\]/\\&/g
   20056 s/\$/$$/g
   20057 H
   20058 :any
   20059 ${
   20060 	g
   20061 	s/^\n//
   20062 	s/\n/ /g
   20063 	p
   20064 }
   20065 '
   20066 DEFS=`sed -n "$ac_script" confdefs.h`
   20067 
   20068 
   20069 ac_libobjs=
   20070 ac_ltlibobjs=
   20071 U=
   20072 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   20073   # 1. Remove the extension, and $U if already installed.
   20074   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   20075   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   20076   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   20077   #    will be set to the directory where LIBOBJS objects are built.
   20078   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   20079   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   20080 done
   20081 LIBOBJS=$ac_libobjs
   20082 
   20083 LTLIBOBJS=$ac_ltlibobjs
   20084 
   20085 
   20086 
   20087 : "${CONFIG_STATUS=./config.status}"
   20088 ac_write_fail=0
   20089 ac_clean_files_save=$ac_clean_files
   20090 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   20091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   20092 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   20093 as_write_fail=0
   20094 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   20095 #! $SHELL
   20096 # Generated by $as_me.
   20097 # Run this file to recreate the current configuration.
   20098 # Compiler output produced by configure, useful for debugging
   20099 # configure, is in config.log if it exists.
   20100 
   20101 debug=false
   20102 ac_cs_recheck=false
   20103 ac_cs_silent=false
   20104 
   20105 SHELL=\${CONFIG_SHELL-$SHELL}
   20106 export SHELL
   20107 _ASEOF
   20108 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   20109 ## -------------------- ##
   20110 ## M4sh Initialization. ##
   20111 ## -------------------- ##
   20112 
   20113 # Be more Bourne compatible
   20114 DUALCASE=1; export DUALCASE # for MKS sh
   20115 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   20116   emulate sh
   20117   NULLCMD=:
   20118   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   20119   # is contrary to our usage.  Disable this feature.
   20120   alias -g '${1+"$@"}'='"$@"'
   20121   setopt NO_GLOB_SUBST
   20122 else
   20123   case `(set -o) 2>/dev/null` in #(
   20124   *posix*) :
   20125     set -o posix ;; #(
   20126   *) :
   20127      ;;
   20128 esac
   20129 fi
   20130 
   20131 
   20132 as_nl='
   20133 '
   20134 export as_nl
   20135 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   20136 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   20137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   20138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   20139 # Prefer a ksh shell builtin over an external printf program on Solaris,
   20140 # but without wasting forks for bash or zsh.
   20141 if test -z "$BASH_VERSION$ZSH_VERSION" \
   20142     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   20143   as_echo='print -r --'
   20144   as_echo_n='print -rn --'
   20145 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   20146   as_echo='printf %s\n'
   20147   as_echo_n='printf %s'
   20148 else
   20149   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   20150     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   20151     as_echo_n='/usr/ucb/echo -n'
   20152   else
   20153     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   20154     as_echo_n_body='eval
   20155       arg=$1;
   20156       case $arg in #(
   20157       *"$as_nl"*)
   20158 	expr "X$arg" : "X\\(.*\\)$as_nl";
   20159 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   20160       esac;
   20161       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   20162     '
   20163     export as_echo_n_body
   20164     as_echo_n='sh -c $as_echo_n_body as_echo'
   20165   fi
   20166   export as_echo_body
   20167   as_echo='sh -c $as_echo_body as_echo'
   20168 fi
   20169 
   20170 # The user is always right.
   20171 if test "${PATH_SEPARATOR+set}" != set; then
   20172   PATH_SEPARATOR=:
   20173   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   20174     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   20175       PATH_SEPARATOR=';'
   20176   }
   20177 fi
   20178 
   20179 
   20180 # IFS
   20181 # We need space, tab and new line, in precisely that order.  Quoting is
   20182 # there to prevent editors from complaining about space-tab.
   20183 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   20184 # splitting by setting IFS to empty value.)
   20185 IFS=" ""	$as_nl"
   20186 
   20187 # Find who we are.  Look in the path if we contain no directory separator.
   20188 as_myself=
   20189 case $0 in #((
   20190   *[\\/]* ) as_myself=$0 ;;
   20191   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20192 for as_dir in $PATH
   20193 do
   20194   IFS=$as_save_IFS
   20195   test -z "$as_dir" && as_dir=.
   20196     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   20197   done
   20198 IFS=$as_save_IFS
   20199 
   20200      ;;
   20201 esac
   20202 # We did not find ourselves, most probably we were run as `sh COMMAND'
   20203 # in which case we are not to be found in the path.
   20204 if test "x$as_myself" = x; then
   20205   as_myself=$0
   20206 fi
   20207 if test ! -f "$as_myself"; then
   20208   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   20209   exit 1
   20210 fi
   20211 
   20212 # Unset variables that we do not need and which cause bugs (e.g. in
   20213 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   20214 # suppresses any "Segmentation fault" message there.  '((' could
   20215 # trigger a bug in pdksh 5.2.14.
   20216 for as_var in BASH_ENV ENV MAIL MAILPATH
   20217 do eval test x\${$as_var+set} = xset \
   20218   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   20219 done
   20220 PS1='$ '
   20221 PS2='> '
   20222 PS4='+ '
   20223 
   20224 # NLS nuisances.
   20225 LC_ALL=C
   20226 export LC_ALL
   20227 LANGUAGE=C
   20228 export LANGUAGE
   20229 
   20230 # CDPATH.
   20231 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   20232 
   20233 
   20234 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   20235 # ----------------------------------------
   20236 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   20237 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   20238 # script with STATUS, using 1 if that was 0.
   20239 as_fn_error ()
   20240 {
   20241   as_status=$1; test $as_status -eq 0 && as_status=1
   20242   if test "$4"; then
   20243     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   20244     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   20245   fi
   20246   $as_echo "$as_me: error: $2" >&2
   20247   as_fn_exit $as_status
   20248 } # as_fn_error
   20249 
   20250 
   20251 # as_fn_set_status STATUS
   20252 # -----------------------
   20253 # Set $? to STATUS, without forking.
   20254 as_fn_set_status ()
   20255 {
   20256   return $1
   20257 } # as_fn_set_status
   20258 
   20259 # as_fn_exit STATUS
   20260 # -----------------
   20261 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   20262 as_fn_exit ()
   20263 {
   20264   set +e
   20265   as_fn_set_status $1
   20266   exit $1
   20267 } # as_fn_exit
   20268 
   20269 # as_fn_unset VAR
   20270 # ---------------
   20271 # Portably unset VAR.
   20272 as_fn_unset ()
   20273 {
   20274   { eval $1=; unset $1;}
   20275 }
   20276 as_unset=as_fn_unset
   20277 # as_fn_append VAR VALUE
   20278 # ----------------------
   20279 # Append the text in VALUE to the end of the definition contained in VAR. Take
   20280 # advantage of any shell optimizations that allow amortized linear growth over
   20281 # repeated appends, instead of the typical quadratic growth present in naive
   20282 # implementations.
   20283 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   20284   eval 'as_fn_append ()
   20285   {
   20286     eval $1+=\$2
   20287   }'
   20288 else
   20289   as_fn_append ()
   20290   {
   20291     eval $1=\$$1\$2
   20292   }
   20293 fi # as_fn_append
   20294 
   20295 # as_fn_arith ARG...
   20296 # ------------------
   20297 # Perform arithmetic evaluation on the ARGs, and store the result in the
   20298 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   20299 # must be portable across $(()) and expr.
   20300 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   20301   eval 'as_fn_arith ()
   20302   {
   20303     as_val=$(( $* ))
   20304   }'
   20305 else
   20306   as_fn_arith ()
   20307   {
   20308     as_val=`expr "$@" || test $? -eq 1`
   20309   }
   20310 fi # as_fn_arith
   20311 
   20312 
   20313 if expr a : '\(a\)' >/dev/null 2>&1 &&
   20314    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   20315   as_expr=expr
   20316 else
   20317   as_expr=false
   20318 fi
   20319 
   20320 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   20321   as_basename=basename
   20322 else
   20323   as_basename=false
   20324 fi
   20325 
   20326 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   20327   as_dirname=dirname
   20328 else
   20329   as_dirname=false
   20330 fi
   20331 
   20332 as_me=`$as_basename -- "$0" ||
   20333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   20334 	 X"$0" : 'X\(//\)$' \| \
   20335 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   20336 $as_echo X/"$0" |
   20337     sed '/^.*\/\([^/][^/]*\)\/*$/{
   20338 	    s//\1/
   20339 	    q
   20340 	  }
   20341 	  /^X\/\(\/\/\)$/{
   20342 	    s//\1/
   20343 	    q
   20344 	  }
   20345 	  /^X\/\(\/\).*/{
   20346 	    s//\1/
   20347 	    q
   20348 	  }
   20349 	  s/.*/./; q'`
   20350 
   20351 # Avoid depending upon Character Ranges.
   20352 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   20353 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   20354 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   20355 as_cr_digits='0123456789'
   20356 as_cr_alnum=$as_cr_Letters$as_cr_digits
   20357 
   20358 ECHO_C= ECHO_N= ECHO_T=
   20359 case `echo -n x` in #(((((
   20360 -n*)
   20361   case `echo 'xy\c'` in
   20362   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   20363   xy)  ECHO_C='\c';;
   20364   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   20365        ECHO_T='	';;
   20366   esac;;
   20367 *)
   20368   ECHO_N='-n';;
   20369 esac
   20370 
   20371 rm -f conf$$ conf$$.exe conf$$.file
   20372 if test -d conf$$.dir; then
   20373   rm -f conf$$.dir/conf$$.file
   20374 else
   20375   rm -f conf$$.dir
   20376   mkdir conf$$.dir 2>/dev/null
   20377 fi
   20378 if (echo >conf$$.file) 2>/dev/null; then
   20379   if ln -s conf$$.file conf$$ 2>/dev/null; then
   20380     as_ln_s='ln -s'
   20381     # ... but there are two gotchas:
   20382     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   20383     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   20384     # In both cases, we have to default to `cp -pR'.
   20385     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   20386       as_ln_s='cp -pR'
   20387   elif ln conf$$.file conf$$ 2>/dev/null; then
   20388     as_ln_s=ln
   20389   else
   20390     as_ln_s='cp -pR'
   20391   fi
   20392 else
   20393   as_ln_s='cp -pR'
   20394 fi
   20395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   20396 rmdir conf$$.dir 2>/dev/null
   20397 
   20398 
   20399 # as_fn_mkdir_p
   20400 # -------------
   20401 # Create "$as_dir" as a directory, including parents if necessary.
   20402 as_fn_mkdir_p ()
   20403 {
   20404 
   20405   case $as_dir in #(
   20406   -*) as_dir=./$as_dir;;
   20407   esac
   20408   test -d "$as_dir" || eval $as_mkdir_p || {
   20409     as_dirs=
   20410     while :; do
   20411       case $as_dir in #(
   20412       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   20413       *) as_qdir=$as_dir;;
   20414       esac
   20415       as_dirs="'$as_qdir' $as_dirs"
   20416       as_dir=`$as_dirname -- "$as_dir" ||
   20417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   20418 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   20419 	 X"$as_dir" : 'X\(//\)$' \| \
   20420 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   20421 $as_echo X"$as_dir" |
   20422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   20423 	    s//\1/
   20424 	    q
   20425 	  }
   20426 	  /^X\(\/\/\)[^/].*/{
   20427 	    s//\1/
   20428 	    q
   20429 	  }
   20430 	  /^X\(\/\/\)$/{
   20431 	    s//\1/
   20432 	    q
   20433 	  }
   20434 	  /^X\(\/\).*/{
   20435 	    s//\1/
   20436 	    q
   20437 	  }
   20438 	  s/.*/./; q'`
   20439       test -d "$as_dir" && break
   20440     done
   20441     test -z "$as_dirs" || eval "mkdir $as_dirs"
   20442   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   20443 
   20444 
   20445 } # as_fn_mkdir_p
   20446 if mkdir -p . 2>/dev/null; then
   20447   as_mkdir_p='mkdir -p "$as_dir"'
   20448 else
   20449   test -d ./-p && rmdir ./-p
   20450   as_mkdir_p=false
   20451 fi
   20452 
   20453 
   20454 # as_fn_executable_p FILE
   20455 # -----------------------
   20456 # Test if FILE is an executable regular file.
   20457 as_fn_executable_p ()
   20458 {
   20459   test -f "$1" && test -x "$1"
   20460 } # as_fn_executable_p
   20461 as_test_x='test -x'
   20462 as_executable_p=as_fn_executable_p
   20463 
   20464 # Sed expression to map a string onto a valid CPP name.
   20465 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   20466 
   20467 # Sed expression to map a string onto a valid variable name.
   20468 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   20469 
   20470 
   20471 exec 6>&1
   20472 ## ----------------------------------- ##
   20473 ## Main body of $CONFIG_STATUS script. ##
   20474 ## ----------------------------------- ##
   20475 _ASEOF
   20476 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   20477 
   20478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20479 # Save the log message, to keep $0 and so on meaningful, and to
   20480 # report actual input values of CONFIG_FILES etc. instead of their
   20481 # values after options handling.
   20482 ac_log="
   20483 This file was extended by $as_me, which was
   20484 generated by GNU Autoconf 2.69.  Invocation command line was
   20485 
   20486   CONFIG_FILES    = $CONFIG_FILES
   20487   CONFIG_HEADERS  = $CONFIG_HEADERS
   20488   CONFIG_LINKS    = $CONFIG_LINKS
   20489   CONFIG_COMMANDS = $CONFIG_COMMANDS
   20490   $ $0 $@
   20491 
   20492 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   20493 "
   20494 
   20495 _ACEOF
   20496 
   20497 case $ac_config_files in *"
   20498 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   20499 esac
   20500 
   20501 
   20502 
   20503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20504 # Files that config.status was made for.
   20505 config_files="$ac_config_files"
   20506 
   20507 _ACEOF
   20508 
   20509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20510 ac_cs_usage="\
   20511 \`$as_me' instantiates files and other configuration actions
   20512 from templates according to the current configuration.  Unless the files
   20513 and actions are specified as TAGs, all are instantiated by default.
   20514 
   20515 Usage: $0 [OPTION]... [TAG]...
   20516 
   20517   -h, --help       print this help, then exit
   20518   -V, --version    print version number and configuration settings, then exit
   20519       --config     print configuration, then exit
   20520   -q, --quiet, --silent
   20521                    do not print progress messages
   20522   -d, --debug      don't remove temporary files
   20523       --recheck    update $as_me by reconfiguring in the same conditions
   20524       --file=FILE[:TEMPLATE]
   20525                    instantiate the configuration file FILE
   20526 
   20527 Configuration files:
   20528 $config_files
   20529 
   20530 Report bugs to the package provider."
   20531 
   20532 _ACEOF
   20533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20534 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   20535 ac_cs_version="\\
   20536 config.status
   20537 configured by $0, generated by GNU Autoconf 2.69,
   20538   with options \\"\$ac_cs_config\\"
   20539 
   20540 Copyright (C) 2012 Free Software Foundation, Inc.
   20541 This config.status script is free software; the Free Software Foundation
   20542 gives unlimited permission to copy, distribute and modify it."
   20543 
   20544 ac_pwd='$ac_pwd'
   20545 srcdir='$srcdir'
   20546 INSTALL='$INSTALL'
   20547 AWK='$AWK'
   20548 test -n "\$AWK" || AWK=awk
   20549 _ACEOF
   20550 
   20551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20552 # The default lists apply if the user does not specify any file.
   20553 ac_need_defaults=:
   20554 while test $# != 0
   20555 do
   20556   case $1 in
   20557   --*=?*)
   20558     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   20559     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   20560     ac_shift=:
   20561     ;;
   20562   --*=)
   20563     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   20564     ac_optarg=
   20565     ac_shift=:
   20566     ;;
   20567   *)
   20568     ac_option=$1
   20569     ac_optarg=$2
   20570     ac_shift=shift
   20571     ;;
   20572   esac
   20573 
   20574   case $ac_option in
   20575   # Handling of the options.
   20576   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   20577     ac_cs_recheck=: ;;
   20578   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   20579     $as_echo "$ac_cs_version"; exit ;;
   20580   --config | --confi | --conf | --con | --co | --c )
   20581     $as_echo "$ac_cs_config"; exit ;;
   20582   --debug | --debu | --deb | --de | --d | -d )
   20583     debug=: ;;
   20584   --file | --fil | --fi | --f )
   20585     $ac_shift
   20586     case $ac_optarg in
   20587     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   20588     '') as_fn_error $? "missing file argument" ;;
   20589     esac
   20590     as_fn_append CONFIG_FILES " '$ac_optarg'"
   20591     ac_need_defaults=false;;
   20592   --he | --h |  --help | --hel | -h )
   20593     $as_echo "$ac_cs_usage"; exit ;;
   20594   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   20595   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   20596     ac_cs_silent=: ;;
   20597 
   20598   # This is an error.
   20599   -*) as_fn_error $? "unrecognized option: \`$1'
   20600 Try \`$0 --help' for more information." ;;
   20601 
   20602   *) as_fn_append ac_config_targets " $1"
   20603      ac_need_defaults=false ;;
   20604 
   20605   esac
   20606   shift
   20607 done
   20608 
   20609 ac_configure_extra_args=
   20610 
   20611 if $ac_cs_silent; then
   20612   exec 6>/dev/null
   20613   ac_configure_extra_args="$ac_configure_extra_args --silent"
   20614 fi
   20615 
   20616 _ACEOF
   20617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20618 if \$ac_cs_recheck; then
   20619   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   20620   shift
   20621   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   20622   CONFIG_SHELL='$SHELL'
   20623   export CONFIG_SHELL
   20624   exec "\$@"
   20625 fi
   20626 
   20627 _ACEOF
   20628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20629 exec 5>>config.log
   20630 {
   20631   echo
   20632   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   20633 ## Running $as_me. ##
   20634 _ASBOX
   20635   $as_echo "$ac_log"
   20636 } >&5
   20637 
   20638 _ACEOF
   20639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20640 #
   20641 # INIT-COMMANDS
   20642 #
   20643 extrasub_build="$extrasub_build"
   20644    extrasub_host="$extrasub_host"
   20645    extrasub_target="$extrasub_target"
   20646 
   20647 _ACEOF
   20648 
   20649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20650 
   20651 # Handling of arguments.
   20652 for ac_config_target in $ac_config_targets
   20653 do
   20654   case $ac_config_target in
   20655     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   20656 
   20657   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   20658   esac
   20659 done
   20660 
   20661 
   20662 # If the user did not use the arguments to specify the items to instantiate,
   20663 # then the envvar interface is used.  Set only those that are not.
   20664 # We use the long form for the default assignment because of an extremely
   20665 # bizarre bug on SunOS 4.1.3.
   20666 if $ac_need_defaults; then
   20667   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   20668 fi
   20669 
   20670 # Have a temporary directory for convenience.  Make it in the build tree
   20671 # simply because there is no reason against having it here, and in addition,
   20672 # creating and moving files from /tmp can sometimes cause problems.
   20673 # Hook for its removal unless debugging.
   20674 # Note that there is a small window in which the directory will not be cleaned:
   20675 # after its creation but before its name has been assigned to `$tmp'.
   20676 $debug ||
   20677 {
   20678   tmp= ac_tmp=
   20679   trap 'exit_status=$?
   20680   : "${ac_tmp:=$tmp}"
   20681   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   20682 ' 0
   20683   trap 'as_fn_exit 1' 1 2 13 15
   20684 }
   20685 # Create a (secure) tmp directory for tmp files.
   20686 
   20687 {
   20688   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   20689   test -d "$tmp"
   20690 }  ||
   20691 {
   20692   tmp=./conf$$-$RANDOM
   20693   (umask 077 && mkdir "$tmp")
   20694 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   20695 ac_tmp=$tmp
   20696 
   20697 # Set up the scripts for CONFIG_FILES section.
   20698 # No need to generate them if there are no CONFIG_FILES.
   20699 # This happens for instance with `./config.status config.h'.
   20700 if test -n "$CONFIG_FILES"; then
   20701 
   20702 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   20703   ac_cs_awk_getline=:
   20704   ac_cs_awk_pipe_init=
   20705   ac_cs_awk_read_file='
   20706       while ((getline aline < (F[key])) > 0)
   20707 	print(aline)
   20708       close(F[key])'
   20709   ac_cs_awk_pipe_fini=
   20710 else
   20711   ac_cs_awk_getline=false
   20712   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   20713   ac_cs_awk_read_file='
   20714       print "|#_!!_#|"
   20715       print "cat " F[key] " &&"
   20716       '$ac_cs_awk_pipe_init
   20717   # The final `:' finishes the AND list.
   20718   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   20719 fi
   20720 ac_cr=`echo X | tr X '\015'`
   20721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   20722 # But we know of no other shell where ac_cr would be empty at this
   20723 # point, so we can use a bashism as a fallback.
   20724 if test "x$ac_cr" = x; then
   20725   eval ac_cr=\$\'\\r\'
   20726 fi
   20727 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   20728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   20729   ac_cs_awk_cr='\\r'
   20730 else
   20731   ac_cs_awk_cr=$ac_cr
   20732 fi
   20733 
   20734 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   20735 _ACEOF
   20736 
   20737 # Create commands to substitute file output variables.
   20738 {
   20739   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   20740   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   20741   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   20742   echo "_ACAWK" &&
   20743   echo "_ACEOF"
   20744 } >conf$$files.sh &&
   20745 . ./conf$$files.sh ||
   20746   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20747 rm -f conf$$files.sh
   20748 
   20749 {
   20750   echo "cat >conf$$subs.awk <<_ACEOF" &&
   20751   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   20752   echo "_ACEOF"
   20753 } >conf$$subs.sh ||
   20754   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20755 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   20756 ac_delim='%!_!# '
   20757 for ac_last_try in false false false false false :; do
   20758   . ./conf$$subs.sh ||
   20759     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20760 
   20761   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   20762   if test $ac_delim_n = $ac_delim_num; then
   20763     break
   20764   elif $ac_last_try; then
   20765     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20766   else
   20767     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   20768   fi
   20769 done
   20770 rm -f conf$$subs.sh
   20771 
   20772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20773 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   20774 _ACEOF
   20775 sed -n '
   20776 h
   20777 s/^/S["/; s/!.*/"]=/
   20778 p
   20779 g
   20780 s/^[^!]*!//
   20781 :repl
   20782 t repl
   20783 s/'"$ac_delim"'$//
   20784 t delim
   20785 :nl
   20786 h
   20787 s/\(.\{148\}\)..*/\1/
   20788 t more1
   20789 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   20790 p
   20791 n
   20792 b repl
   20793 :more1
   20794 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   20795 p
   20796 g
   20797 s/.\{148\}//
   20798 t nl
   20799 :delim
   20800 h
   20801 s/\(.\{148\}\)..*/\1/
   20802 t more2
   20803 s/["\\]/\\&/g; s/^/"/; s/$/"/
   20804 p
   20805 b
   20806 :more2
   20807 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   20808 p
   20809 g
   20810 s/.\{148\}//
   20811 t delim
   20812 ' <conf$$subs.awk | sed '
   20813 /^[^""]/{
   20814   N
   20815   s/\n//
   20816 }
   20817 ' >>$CONFIG_STATUS || ac_write_fail=1
   20818 rm -f conf$$subs.awk
   20819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20820 _ACAWK
   20821 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   20822   for (key in S) S_is_set[key] = 1
   20823   FS = ""
   20824   \$ac_cs_awk_pipe_init
   20825 }
   20826 {
   20827   line = $ 0
   20828   nfields = split(line, field, "@")
   20829   substed = 0
   20830   len = length(field[1])
   20831   for (i = 2; i < nfields; i++) {
   20832     key = field[i]
   20833     keylen = length(key)
   20834     if (S_is_set[key]) {
   20835       value = S[key]
   20836       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   20837       len += length(value) + length(field[++i])
   20838       substed = 1
   20839     } else
   20840       len += 1 + keylen
   20841   }
   20842   if (nfields == 3 && !substed) {
   20843     key = field[2]
   20844     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   20845       \$ac_cs_awk_read_file
   20846       next
   20847     }
   20848   }
   20849   print line
   20850 }
   20851 \$ac_cs_awk_pipe_fini
   20852 _ACAWK
   20853 _ACEOF
   20854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20855 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   20856   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   20857 else
   20858   cat
   20859 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   20860   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   20861 _ACEOF
   20862 
   20863 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   20864 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   20865 # trailing colons and then remove the whole line if VPATH becomes empty
   20866 # (actually we leave an empty line to preserve line numbers).
   20867 if test "x$srcdir" = x.; then
   20868   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   20869 h
   20870 s///
   20871 s/^/:/
   20872 s/[	 ]*$/:/
   20873 s/:\$(srcdir):/:/g
   20874 s/:\${srcdir}:/:/g
   20875 s/:@srcdir@:/:/g
   20876 s/^:*//
   20877 s/:*$//
   20878 x
   20879 s/\(=[	 ]*\).*/\1/
   20880 G
   20881 s/\n//
   20882 s/^[^=]*=[	 ]*$//
   20883 }'
   20884 fi
   20885 
   20886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20887 fi # test -n "$CONFIG_FILES"
   20888 
   20889 
   20890 eval set X "  :F $CONFIG_FILES      "
   20891 shift
   20892 for ac_tag
   20893 do
   20894   case $ac_tag in
   20895   :[FHLC]) ac_mode=$ac_tag; continue;;
   20896   esac
   20897   case $ac_mode$ac_tag in
   20898   :[FHL]*:*);;
   20899   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   20900   :[FH]-) ac_tag=-:-;;
   20901   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   20902   esac
   20903   ac_save_IFS=$IFS
   20904   IFS=:
   20905   set x $ac_tag
   20906   IFS=$ac_save_IFS
   20907   shift
   20908   ac_file=$1
   20909   shift
   20910 
   20911   case $ac_mode in
   20912   :L) ac_source=$1;;
   20913   :[FH])
   20914     ac_file_inputs=
   20915     for ac_f
   20916     do
   20917       case $ac_f in
   20918       -) ac_f="$ac_tmp/stdin";;
   20919       *) # Look for the file first in the build tree, then in the source tree
   20920 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   20921 	 # because $ac_f cannot contain `:'.
   20922 	 test -f "$ac_f" ||
   20923 	   case $ac_f in
   20924 	   [\\/$]*) false;;
   20925 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   20926 	   esac ||
   20927 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   20928       esac
   20929       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   20930       as_fn_append ac_file_inputs " '$ac_f'"
   20931     done
   20932 
   20933     # Let's still pretend it is `configure' which instantiates (i.e., don't
   20934     # use $as_me), people would be surprised to read:
   20935     #    /* config.h.  Generated by config.status.  */
   20936     configure_input='Generated from '`
   20937 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   20938 	`' by configure.'
   20939     if test x"$ac_file" != x-; then
   20940       configure_input="$ac_file.  $configure_input"
   20941       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   20942 $as_echo "$as_me: creating $ac_file" >&6;}
   20943     fi
   20944     # Neutralize special characters interpreted by sed in replacement strings.
   20945     case $configure_input in #(
   20946     *\&* | *\|* | *\\* )
   20947        ac_sed_conf_input=`$as_echo "$configure_input" |
   20948        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   20949     *) ac_sed_conf_input=$configure_input;;
   20950     esac
   20951 
   20952     case $ac_tag in
   20953     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   20954       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   20955     esac
   20956     ;;
   20957   esac
   20958 
   20959   ac_dir=`$as_dirname -- "$ac_file" ||
   20960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   20961 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   20962 	 X"$ac_file" : 'X\(//\)$' \| \
   20963 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   20964 $as_echo X"$ac_file" |
   20965     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   20966 	    s//\1/
   20967 	    q
   20968 	  }
   20969 	  /^X\(\/\/\)[^/].*/{
   20970 	    s//\1/
   20971 	    q
   20972 	  }
   20973 	  /^X\(\/\/\)$/{
   20974 	    s//\1/
   20975 	    q
   20976 	  }
   20977 	  /^X\(\/\).*/{
   20978 	    s//\1/
   20979 	    q
   20980 	  }
   20981 	  s/.*/./; q'`
   20982   as_dir="$ac_dir"; as_fn_mkdir_p
   20983   ac_builddir=.
   20984 
   20985 case "$ac_dir" in
   20986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   20987 *)
   20988   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   20989   # A ".." for each directory in $ac_dir_suffix.
   20990   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   20991   case $ac_top_builddir_sub in
   20992   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   20993   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   20994   esac ;;
   20995 esac
   20996 ac_abs_top_builddir=$ac_pwd
   20997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   20998 # for backward compatibility:
   20999 ac_top_builddir=$ac_top_build_prefix
   21000 
   21001 case $srcdir in
   21002   .)  # We are building in place.
   21003     ac_srcdir=.
   21004     ac_top_srcdir=$ac_top_builddir_sub
   21005     ac_abs_top_srcdir=$ac_pwd ;;
   21006   [\\/]* | ?:[\\/]* )  # Absolute name.
   21007     ac_srcdir=$srcdir$ac_dir_suffix;
   21008     ac_top_srcdir=$srcdir
   21009     ac_abs_top_srcdir=$srcdir ;;
   21010   *) # Relative name.
   21011     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   21012     ac_top_srcdir=$ac_top_build_prefix$srcdir
   21013     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   21014 esac
   21015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   21016 
   21017 
   21018   case $ac_mode in
   21019   :F)
   21020   #
   21021   # CONFIG_FILE
   21022   #
   21023 
   21024   case $INSTALL in
   21025   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   21026   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   21027   esac
   21028 _ACEOF
   21029 
   21030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21031 # If the template does not know about datarootdir, expand it.
   21032 # FIXME: This hack should be removed a few years after 2.60.
   21033 ac_datarootdir_hack=; ac_datarootdir_seen=
   21034 ac_sed_dataroot='
   21035 /datarootdir/ {
   21036   p
   21037   q
   21038 }
   21039 /@datadir@/p
   21040 /@docdir@/p
   21041 /@infodir@/p
   21042 /@localedir@/p
   21043 /@mandir@/p'
   21044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   21045 *datarootdir*) ac_datarootdir_seen=yes;;
   21046 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   21047   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   21048 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   21049 _ACEOF
   21050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21051   ac_datarootdir_hack='
   21052   s&@datadir@&$datadir&g
   21053   s&@docdir@&$docdir&g
   21054   s&@infodir@&$infodir&g
   21055   s&@localedir@&$localedir&g
   21056   s&@mandir@&$mandir&g
   21057   s&\\\${datarootdir}&$datarootdir&g' ;;
   21058 esac
   21059 _ACEOF
   21060 
   21061 # Neutralize VPATH when `$srcdir' = `.'.
   21062 # Shell code in configure.ac might set extrasub.
   21063 # FIXME: do we really want to maintain this feature?
   21064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21065 ac_sed_extra="$ac_vpsub
   21066 $extrasub
   21067 _ACEOF
   21068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21069 :t
   21070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   21071 s|@configure_input@|$ac_sed_conf_input|;t t
   21072 s&@top_builddir@&$ac_top_builddir_sub&;t t
   21073 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   21074 s&@srcdir@&$ac_srcdir&;t t
   21075 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   21076 s&@top_srcdir@&$ac_top_srcdir&;t t
   21077 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   21078 s&@builddir@&$ac_builddir&;t t
   21079 s&@abs_builddir@&$ac_abs_builddir&;t t
   21080 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   21081 s&@INSTALL@&$ac_INSTALL&;t t
   21082 $ac_datarootdir_hack
   21083 "
   21084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   21085 if $ac_cs_awk_getline; then
   21086   $AWK -f "$ac_tmp/subs.awk"
   21087 else
   21088   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   21089 fi \
   21090   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   21091 
   21092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   21093   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   21094   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   21095       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   21096   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   21097 which seems to be undefined.  Please make sure it is defined" >&5
   21098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   21099 which seems to be undefined.  Please make sure it is defined" >&2;}
   21100 
   21101   rm -f "$ac_tmp/stdin"
   21102   case $ac_file in
   21103   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   21104   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   21105   esac \
   21106   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   21107  ;;
   21108 
   21109 
   21110 
   21111   esac
   21112 
   21113 
   21114   case $ac_file$ac_mode in
   21115     "Makefile":F) sed "$extrasub_build" Makefile |
   21116    sed "$extrasub_host" |
   21117    sed "$extrasub_target" > mf$$
   21118    mv -f mf$$ Makefile ;;
   21119 
   21120   esac
   21121 done # for ac_tag
   21122 
   21123 
   21124 as_fn_exit 0
   21125 _ACEOF
   21126 ac_clean_files=$ac_clean_files_save
   21127 
   21128 test $ac_write_fail = 0 ||
   21129   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   21130 
   21131 
   21132 # configure is writing to config.log, and then calls config.status.
   21133 # config.status does its own redirection, appending to config.log.
   21134 # Unfortunately, on DOS this fails, as config.log is still kept open
   21135 # by configure, so config.status won't be able to write to it; its
   21136 # output is simply discarded.  So we exec the FD to /dev/null,
   21137 # effectively closing config.log, so it can be properly (re)opened and
   21138 # appended to by config.status.  When coming back to configure, we
   21139 # need to make the FD available again.
   21140 if test "$no_create" != yes; then
   21141   ac_cs_success=:
   21142   ac_config_status_args=
   21143   test "$silent" = yes &&
   21144     ac_config_status_args="$ac_config_status_args --quiet"
   21145   exec 5>/dev/null
   21146   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   21147   exec 5>>config.log
   21148   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   21149   # would make configure fail if this is the last instruction.
   21150   $ac_cs_success || as_fn_exit 1
   21151 fi
   21152 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   21153   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   21154 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   21155 fi
   21156 
   21157