Home | History | Annotate | Line # | Download | only in gcc
configure revision 1.4
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.64.
      4 #
      5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
      7 # Foundation, Inc.
      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 case $0 in #((
     91   *[\\/]* ) as_myself=$0 ;;
     92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     93 for as_dir in $PATH
     94 do
     95   IFS=$as_save_IFS
     96   test -z "$as_dir" && as_dir=.
     97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     98   done
     99 IFS=$as_save_IFS
    100 
    101      ;;
    102 esac
    103 # We did not find ourselves, most probably we were run as `sh COMMAND'
    104 # in which case we are not to be found in the path.
    105 if test "x$as_myself" = x; then
    106   as_myself=$0
    107 fi
    108 if test ! -f "$as_myself"; then
    109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    110   exit 1
    111 fi
    112 
    113 # Unset variables that we do not need and which cause bugs (e.g. in
    114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    115 # suppresses any "Segmentation fault" message there.  '((' could
    116 # trigger a bug in pdksh 5.2.14.
    117 for as_var in BASH_ENV ENV MAIL MAILPATH
    118 do eval test x\${$as_var+set} = xset \
    119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    120 done
    121 PS1='$ '
    122 PS2='> '
    123 PS4='+ '
    124 
    125 # NLS nuisances.
    126 LC_ALL=C
    127 export LC_ALL
    128 LANGUAGE=C
    129 export LANGUAGE
    130 
    131 # CDPATH.
    132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    133 
    134 if test "x$CONFIG_SHELL" = x; then
    135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    136   emulate sh
    137   NULLCMD=:
    138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    139   # is contrary to our usage.  Disable this feature.
    140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    141   setopt NO_GLOB_SUBST
    142 else
    143   case \`(set -o) 2>/dev/null\` in #(
    144   *posix*) :
    145     set -o posix ;; #(
    146   *) :
    147      ;;
    148 esac
    149 fi
    150 "
    151   as_required="as_fn_return () { (exit \$1); }
    152 as_fn_success () { as_fn_return 0; }
    153 as_fn_failure () { as_fn_return 1; }
    154 as_fn_ret_success () { return 0; }
    155 as_fn_ret_failure () { return 1; }
    156 
    157 exitcode=0
    158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    163 
    164 else
    165   exitcode=1; echo positional parameters were not saved.
    166 fi
    167 test x\$exitcode = x0 || exit 1"
    168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    172 test \$(( 1 + 1 )) = 2 || exit 1
    173 
    174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    178     PATH=/empty FPATH=/empty; export PATH FPATH
    179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
    181   if (eval "$as_required") 2>/dev/null; then :
    182   as_have_required=yes
    183 else
    184   as_have_required=no
    185 fi
    186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    187 
    188 else
    189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    190 as_found=false
    191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    192 do
    193   IFS=$as_save_IFS
    194   test -z "$as_dir" && as_dir=.
    195   as_found=:
    196   case $as_dir in #(
    197 	 /*)
    198 	   for as_base in sh bash ksh sh5; do
    199 	     # Try only shells that exist, to save several forks.
    200 	     as_shell=$as_dir/$as_base
    201 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    202 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    203   CONFIG_SHELL=$as_shell as_have_required=yes
    204 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    205   break 2
    206 fi
    207 fi
    208 	   done;;
    209        esac
    210   as_found=false
    211 done
    212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    213 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    214   CONFIG_SHELL=$SHELL as_have_required=yes
    215 fi; }
    216 IFS=$as_save_IFS
    217 
    218 
    219       if test "x$CONFIG_SHELL" != x; then :
    220   # We cannot yet assume a decent shell, so we have to provide a
    221 	# neutralization value for shells without unset; and this also
    222 	# works around shells that cannot unset nonexistent variables.
    223 	BASH_ENV=/dev/null
    224 	ENV=/dev/null
    225 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    226 	export CONFIG_SHELL
    227 	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    228 fi
    229 
    230     if test x$as_have_required = xno; then :
    231   $as_echo "$0: This script requires a shell more modern than all"
    232   $as_echo "$0: the shells that I found on your system."
    233   if test x${ZSH_VERSION+set} = xset ; then
    234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    236   else
    237     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    238 $0: including any error possibly output before this
    239 $0: message. Then install a modern shell, or manually run
    240 $0: the script under such a shell if you do have one."
    241   fi
    242   exit 1
    243 fi
    244 fi
    245 fi
    246 SHELL=${CONFIG_SHELL-/bin/sh}
    247 export SHELL
    248 # Unset more variables known to interfere with behavior of common tools.
    249 CLICOLOR_FORCE= GREP_OPTIONS=
    250 unset CLICOLOR_FORCE GREP_OPTIONS
    251 
    252 ## --------------------- ##
    253 ## M4sh Shell Functions. ##
    254 ## --------------------- ##
    255 # as_fn_unset VAR
    256 # ---------------
    257 # Portably unset VAR.
    258 as_fn_unset ()
    259 {
    260   { eval $1=; unset $1;}
    261 }
    262 as_unset=as_fn_unset
    263 
    264 # as_fn_set_status STATUS
    265 # -----------------------
    266 # Set $? to STATUS, without forking.
    267 as_fn_set_status ()
    268 {
    269   return $1
    270 } # as_fn_set_status
    271 
    272 # as_fn_exit STATUS
    273 # -----------------
    274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    275 as_fn_exit ()
    276 {
    277   set +e
    278   as_fn_set_status $1
    279   exit $1
    280 } # as_fn_exit
    281 
    282 # as_fn_mkdir_p
    283 # -------------
    284 # Create "$as_dir" as a directory, including parents if necessary.
    285 as_fn_mkdir_p ()
    286 {
    287 
    288   case $as_dir in #(
    289   -*) as_dir=./$as_dir;;
    290   esac
    291   test -d "$as_dir" || eval $as_mkdir_p || {
    292     as_dirs=
    293     while :; do
    294       case $as_dir in #(
    295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    296       *) as_qdir=$as_dir;;
    297       esac
    298       as_dirs="'$as_qdir' $as_dirs"
    299       as_dir=`$as_dirname -- "$as_dir" ||
    300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    301 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    302 	 X"$as_dir" : 'X\(//\)$' \| \
    303 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    304 $as_echo X"$as_dir" |
    305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    306 	    s//\1/
    307 	    q
    308 	  }
    309 	  /^X\(\/\/\)[^/].*/{
    310 	    s//\1/
    311 	    q
    312 	  }
    313 	  /^X\(\/\/\)$/{
    314 	    s//\1/
    315 	    q
    316 	  }
    317 	  /^X\(\/\).*/{
    318 	    s//\1/
    319 	    q
    320 	  }
    321 	  s/.*/./; q'`
    322       test -d "$as_dir" && break
    323     done
    324     test -z "$as_dirs" || eval "mkdir $as_dirs"
    325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
    326 
    327 
    328 } # as_fn_mkdir_p
    329 # as_fn_append VAR VALUE
    330 # ----------------------
    331 # Append the text in VALUE to the end of the definition contained in VAR. Take
    332 # advantage of any shell optimizations that allow amortized linear growth over
    333 # repeated appends, instead of the typical quadratic growth present in naive
    334 # implementations.
    335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    336   eval 'as_fn_append ()
    337   {
    338     eval $1+=\$2
    339   }'
    340 else
    341   as_fn_append ()
    342   {
    343     eval $1=\$$1\$2
    344   }
    345 fi # as_fn_append
    346 
    347 # as_fn_arith ARG...
    348 # ------------------
    349 # Perform arithmetic evaluation on the ARGs, and store the result in the
    350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    351 # must be portable across $(()) and expr.
    352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    353   eval 'as_fn_arith ()
    354   {
    355     as_val=$(( $* ))
    356   }'
    357 else
    358   as_fn_arith ()
    359   {
    360     as_val=`expr "$@" || test $? -eq 1`
    361   }
    362 fi # as_fn_arith
    363 
    364 
    365 # as_fn_error ERROR [LINENO LOG_FD]
    366 # ---------------------------------
    367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    369 # script with status $?, using 1 if that was 0.
    370 as_fn_error ()
    371 {
    372   as_status=$?; test $as_status -eq 0 && as_status=1
    373   if test "$3"; then
    374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
    376   fi
    377   $as_echo "$as_me: error: $1" >&2
    378   as_fn_exit $as_status
    379 } # as_fn_error
    380 
    381 if expr a : '\(a\)' >/dev/null 2>&1 &&
    382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    383   as_expr=expr
    384 else
    385   as_expr=false
    386 fi
    387 
    388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    389   as_basename=basename
    390 else
    391   as_basename=false
    392 fi
    393 
    394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    395   as_dirname=dirname
    396 else
    397   as_dirname=false
    398 fi
    399 
    400 as_me=`$as_basename -- "$0" ||
    401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    402 	 X"$0" : 'X\(//\)$' \| \
    403 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    404 $as_echo X/"$0" |
    405     sed '/^.*\/\([^/][^/]*\)\/*$/{
    406 	    s//\1/
    407 	    q
    408 	  }
    409 	  /^X\/\(\/\/\)$/{
    410 	    s//\1/
    411 	    q
    412 	  }
    413 	  /^X\/\(\/\).*/{
    414 	    s//\1/
    415 	    q
    416 	  }
    417 	  s/.*/./; q'`
    418 
    419 # Avoid depending upon Character Ranges.
    420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    423 as_cr_digits='0123456789'
    424 as_cr_alnum=$as_cr_Letters$as_cr_digits
    425 
    426 
    427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    432   sed -n '
    433     p
    434     /[$]LINENO/=
    435   ' <$as_myself |
    436     sed '
    437       s/[$]LINENO.*/&-/
    438       t lineno
    439       b
    440       :lineno
    441       N
    442       :loop
    443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    444       t loop
    445       s/-\n.*//
    446     ' >$as_me.lineno &&
    447   chmod +x "$as_me.lineno" ||
    448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    449 
    450   # Don't try to exec as it changes $[0], causing all sort of problems
    451   # (the dirname of $[0] is not the place where we might find the
    452   # original and so on.  Autoconf is especially sensitive to this).
    453   . "./$as_me.lineno"
    454   # Exit status is that of the last command.
    455   exit
    456 }
    457 
    458 ECHO_C= ECHO_N= ECHO_T=
    459 case `echo -n x` in #(((((
    460 -n*)
    461   case `echo 'xy\c'` in
    462   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    463   xy)  ECHO_C='\c';;
    464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    465        ECHO_T='	';;
    466   esac;;
    467 *)
    468   ECHO_N='-n';;
    469 esac
    470 
    471 rm -f conf$$ conf$$.exe conf$$.file
    472 if test -d conf$$.dir; then
    473   rm -f conf$$.dir/conf$$.file
    474 else
    475   rm -f conf$$.dir
    476   mkdir conf$$.dir 2>/dev/null
    477 fi
    478 if (echo >conf$$.file) 2>/dev/null; then
    479   if ln -s conf$$.file conf$$ 2>/dev/null; then
    480     as_ln_s='ln -s'
    481     # ... but there are two gotchas:
    482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    484     # In both cases, we have to default to `cp -p'.
    485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    486       as_ln_s='cp -p'
    487   elif ln conf$$.file conf$$ 2>/dev/null; then
    488     as_ln_s=ln
    489   else
    490     as_ln_s='cp -p'
    491   fi
    492 else
    493   as_ln_s='cp -p'
    494 fi
    495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    496 rmdir conf$$.dir 2>/dev/null
    497 
    498 if mkdir -p . 2>/dev/null; then
    499   as_mkdir_p='mkdir -p "$as_dir"'
    500 else
    501   test -d ./-p && rmdir ./-p
    502   as_mkdir_p=false
    503 fi
    504 
    505 if test -x / >/dev/null 2>&1; then
    506   as_test_x='test -x'
    507 else
    508   if ls -dL / >/dev/null 2>&1; then
    509     as_ls_L_option=L
    510   else
    511     as_ls_L_option=
    512   fi
    513   as_test_x='
    514     eval sh -c '\''
    515       if test -d "$1"; then
    516 	test -d "$1/.";
    517       else
    518 	case $1 in #(
    519 	-*)set "./$1";;
    520 	esac;
    521 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    522 	???[sx]*):;;*)false;;esac;fi
    523     '\'' sh
    524   '
    525 fi
    526 as_executable_p=$as_test_x
    527 
    528 # Sed expression to map a string onto a valid CPP name.
    529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    530 
    531 # Sed expression to map a string onto a valid variable name.
    532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    533 
    534 SHELL=${CONFIG_SHELL-/bin/sh}
    535 
    536 
    537 exec 7<&0 </dev/null 6>&1
    538 
    539 # Name of the host.
    540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    541 # so uname gets run too.
    542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    543 
    544 #
    545 # Initializations.
    546 #
    547 ac_default_prefix=/usr/local
    548 ac_clean_files=
    549 ac_config_libobj_dir=.
    550 LIBOBJS=
    551 cross_compiling=no
    552 subdirs=
    553 MFLAGS=
    554 MAKEFLAGS=
    555 
    556 # Identity of this package.
    557 PACKAGE_NAME=
    558 PACKAGE_TARNAME=
    559 PACKAGE_VERSION=
    560 PACKAGE_STRING=
    561 PACKAGE_BUGREPORT=
    562 PACKAGE_URL=
    563 
    564 ac_unique_file="tree.c"
    565 # Factoring default headers for most tests.
    566 ac_includes_default="\
    567 #include <stdio.h>
    568 #ifdef HAVE_SYS_TYPES_H
    569 # include <sys/types.h>
    570 #endif
    571 #ifdef HAVE_SYS_STAT_H
    572 # include <sys/stat.h>
    573 #endif
    574 #ifdef STDC_HEADERS
    575 # include <stdlib.h>
    576 # include <stddef.h>
    577 #else
    578 # ifdef HAVE_STDLIB_H
    579 #  include <stdlib.h>
    580 # endif
    581 #endif
    582 #ifdef HAVE_STRING_H
    583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    584 #  include <memory.h>
    585 # endif
    586 # include <string.h>
    587 #endif
    588 #ifdef HAVE_STRINGS_H
    589 # include <strings.h>
    590 #endif
    591 #ifdef HAVE_INTTYPES_H
    592 # include <inttypes.h>
    593 #endif
    594 #ifdef HAVE_STDINT_H
    595 # include <stdint.h>
    596 #endif
    597 #ifdef HAVE_UNISTD_H
    598 # include <unistd.h>
    599 #endif"
    600 
    601 ac_subst_vars='LTLIBOBJS
    602 LIBOBJS
    603 enable_plugin
    604 pluginlibs
    605 CLOOGINC
    606 CLOOGLIBS
    607 ISLINC
    608 ISLLIBS
    609 GMPINC
    610 GMPLIBS
    611 target_cpu_default
    612 fortran_target_objs
    613 cxx_target_objs
    614 c_target_objs
    615 use_gcc_stdint
    616 xm_defines
    617 xm_include_list
    618 xm_file_list
    619 tm_p_include_list
    620 tm_p_file_list
    621 tm_defines
    622 tm_include_list
    623 tm_file_list
    624 common_out_object_file
    625 common_out_file
    626 out_object_file
    627 out_file
    628 objc_boehm_gc
    629 md_file
    630 local_prefix
    631 lang_tree_files
    632 lang_specs_files
    633 lang_opt_files
    634 install
    635 out_host_hook_obj
    636 host_xm_defines
    637 host_xm_include_list
    638 host_xm_file_list
    639 host_exeext
    640 gcc_gxx_include_dir_add_sysroot
    641 gcc_gxx_include_dir
    642 gcc_config_arguments
    643 float_h_file
    644 extra_programs
    645 extra_objs
    646 extra_headers_list
    647 user_headers_inc_next_post
    648 user_headers_inc_next_pre
    649 extra_gcc_objs
    650 TM_MULTILIB_EXCEPTIONS_CONFIG
    651 TM_MULTILIB_CONFIG
    652 TM_ENDIAN_CONFIG
    653 tmake_file
    654 xmake_file
    655 cpp_install_dir
    656 check_languages
    657 build_file_translate
    658 build_xm_defines
    659 build_xm_include_list
    660 build_xm_file_list
    661 build_install_headers_dir
    662 build_exeext
    663 all_selected_languages
    664 all_languages
    665 all_lang_makefrags
    666 all_gtfiles
    667 all_compilers
    668 srcdir
    669 subdirs
    670 dollar
    671 gcc_tooldir
    672 enable_lto
    673 MAINT
    674 zlibinc
    675 zlibdir
    676 HOST_LIBS
    677 libgcc_visibility
    678 gcc_cv_readelf
    679 gcc_cv_objdump
    680 ORIGINAL_NM_FOR_TARGET
    681 gcc_cv_nm
    682 ORIGINAL_LD_FOR_TARGET
    683 ORIGINAL_PLUGIN_LD_FOR_TARGET
    684 gcc_cv_ld
    685 ORIGINAL_AS_FOR_TARGET
    686 gcc_cv_as
    687 enable_fast_install
    688 objdir
    689 OTOOL64
    690 OTOOL
    691 LIPO
    692 NMEDIT
    693 DSYMUTIL
    694 STRIP
    695 OBJDUMP
    696 ac_ct_DUMPBIN
    697 DUMPBIN
    698 LD
    699 FGREP
    700 SED
    701 LIBTOOL
    702 collect2
    703 STMP_FIXINC
    704 BUILD_LDFLAGS
    705 BUILD_CXXFLAGS
    706 BUILD_CFLAGS
    707 CXX_FOR_BUILD
    708 CC_FOR_BUILD
    709 inhibit_libc
    710 SYSTEM_HEADER_DIR
    711 ALL
    712 CROSS
    713 CATOBJEXT
    714 GENCAT
    715 INSTOBJEXT
    716 DATADIRNAME
    717 CATALOGS
    718 POSUB
    719 GMSGFMT
    720 XGETTEXT
    721 INCINTL
    722 LIBINTL_DEP
    723 LIBINTL
    724 USE_NLS
    725 extra_opt_files
    726 extra_modes_file
    727 NATIVE_SYSTEM_HEADER_DIR
    728 objext
    729 manext
    730 LIBICONV_DEP
    731 LTLIBICONV
    732 LIBICONV
    733 LDEXP_LIB
    734 EXTRA_GCC_LIBS
    735 GNAT_LIBEXC
    736 COLLECT2_LIBS
    737 CXXCPP
    738 AR
    739 NM
    740 BISON
    741 FLEX
    742 GENERATED_MANPAGES
    743 BUILD_INFO
    744 MAKEINFO
    745 have_mktemp_command
    746 make_compare_target
    747 INSTALL_DATA
    748 INSTALL_PROGRAM
    749 INSTALL
    750 ranlib_flags
    751 RANLIB
    752 LN
    753 LN_S
    754 AWK
    755 SET_MAKE
    756 REPORT_BUGS_TEXI
    757 REPORT_BUGS_TO
    758 PKGVERSION
    759 CONFIGURE_SPECS
    760 CROSS_SYSTEM_HEADER_DIR
    761 TARGET_SYSTEM_ROOT_DEFINE
    762 TARGET_SYSTEM_ROOT
    763 SYSROOT_CFLAGS_FOR_TARGET
    764 enable_shared
    765 enable_fixed_point
    766 enable_decimal_float
    767 with_float
    768 with_cpu
    769 enable_multiarch
    770 enable_multilib
    771 coverage_flags
    772 valgrind_command
    773 valgrind_path_defines
    774 valgrind_path
    775 TREECHECKING
    776 TREEBROWSER
    777 nocommon_flag
    778 noexception_flags
    779 warn_cxxflags
    780 warn_cflags
    781 c_strict_warn
    782 strict_warn
    783 c_loose_warn
    784 loose_warn
    785 EGREP
    786 GREP
    787 CPP
    788 PICFLAG_FOR_TARGET
    789 OUTPUT_OPTION
    790 NO_MINUS_C_MINUS_O
    791 GNATMAKE
    792 GNATBIND
    793 ac_ct_CXX
    794 CXXFLAGS
    795 CXX
    796 OBJEXT
    797 EXEEXT
    798 ac_ct_CC
    799 CPPFLAGS
    800 LDFLAGS
    801 CFLAGS
    802 CC
    803 GENINSRC
    804 target_subdir
    805 host_subdir
    806 build_subdir
    807 build_libsubdir
    808 target_noncanonical
    809 target_os
    810 target_vendor
    811 target_cpu
    812 target
    813 host_os
    814 host_vendor
    815 host_cpu
    816 host
    817 build_os
    818 build_vendor
    819 build_cpu
    820 build
    821 target_alias
    822 host_alias
    823 build_alias
    824 LIBS
    825 ECHO_T
    826 ECHO_N
    827 ECHO_C
    828 DEFS
    829 mandir
    830 localedir
    831 libdir
    832 psdir
    833 pdfdir
    834 dvidir
    835 htmldir
    836 infodir
    837 docdir
    838 oldincludedir
    839 includedir
    840 localstatedir
    841 sharedstatedir
    842 sysconfdir
    843 datadir
    844 datarootdir
    845 libexecdir
    846 sbindir
    847 bindir
    848 program_transform_name
    849 prefix
    850 exec_prefix
    851 PACKAGE_URL
    852 PACKAGE_BUGREPORT
    853 PACKAGE_STRING
    854 PACKAGE_VERSION
    855 PACKAGE_TARNAME
    856 PACKAGE_NAME
    857 PATH_SEPARATOR
    858 SHELL'
    859 ac_subst_files='option_includes
    860 language_hooks'
    861 ac_user_opts='
    862 enable_option_checking
    863 with_build_libsubdir
    864 with_local_prefix
    865 with_gxx_include_dir
    866 with_cpp_install_dir
    867 enable_generated_files_in_srcdir
    868 with_gnu_ld
    869 with_ld
    870 with_demangler_in_ld
    871 with_gnu_as
    872 with_as
    873 enable_largefile
    874 enable_werror_always
    875 enable_checking
    876 enable_coverage
    877 enable_gather_detailed_mem_stats
    878 with_stabs
    879 enable_multilib
    880 enable_multiarch
    881 enable___cxa_atexit
    882 enable_decimal_float
    883 enable_fixed_point
    884 enable_threads
    885 enable_tls
    886 enable_objc_gc
    887 with_dwarf2
    888 enable_shared
    889 with_native_system_header_dir
    890 with_build_sysroot
    891 with_sysroot
    892 with_specs
    893 with_pkgversion
    894 with_bugurl
    895 enable_languages
    896 with_multilib_list
    897 enable_rpath
    898 with_libiconv_prefix
    899 enable_sjlj_exceptions
    900 enable_secureplt
    901 enable_leading_mingw64_underscores
    902 enable_cld
    903 enable_frame_pointer
    904 enable_win32_registry
    905 enable_static
    906 with_pic
    907 enable_fast_install
    908 enable_libtool_lock
    909 with_plugin_ld
    910 enable_gnu_indirect_function
    911 enable_initfini_array
    912 enable_comdat
    913 enable_fix_cortex_a53_835769
    914 enable_gnu_unique_object
    915 enable_linker_build_id
    916 with_long_double_128
    917 with_gc
    918 with_system_zlib
    919 enable_maintainer_mode
    920 enable_version_specific_runtime_libs
    921 enable_plugin
    922 enable_libquadmath_support
    923 with_linker_hash_style
    924 '
    925       ac_precious_vars='build_alias
    926 host_alias
    927 target_alias
    928 CC
    929 CFLAGS
    930 LDFLAGS
    931 LIBS
    932 CPPFLAGS
    933 CXX
    934 CXXFLAGS
    935 CCC
    936 CPP
    937 CXXCPP
    938 GMPLIBS
    939 GMPINC
    940 ISLLIBS
    941 ISLINC
    942 CLOOGLIBS
    943 CLOOGINC'
    944 
    945 
    946 # Initialize some variables set by options.
    947 ac_init_help=
    948 ac_init_version=false
    949 ac_unrecognized_opts=
    950 ac_unrecognized_sep=
    951 # The variables have the same names as the options, with
    952 # dashes changed to underlines.
    953 cache_file=/dev/null
    954 exec_prefix=NONE
    955 no_create=
    956 no_recursion=
    957 prefix=NONE
    958 program_prefix=NONE
    959 program_suffix=NONE
    960 program_transform_name=s,x,x,
    961 silent=
    962 site=
    963 srcdir=
    964 verbose=
    965 x_includes=NONE
    966 x_libraries=NONE
    967 
    968 # Installation directory options.
    969 # These are left unexpanded so users can "make install exec_prefix=/foo"
    970 # and all the variables that are supposed to be based on exec_prefix
    971 # by default will actually change.
    972 # Use braces instead of parens because sh, perl, etc. also accept them.
    973 # (The list follows the same order as the GNU Coding Standards.)
    974 bindir='${exec_prefix}/bin'
    975 sbindir='${exec_prefix}/sbin'
    976 libexecdir='${exec_prefix}/libexec'
    977 datarootdir='${prefix}/share'
    978 datadir='${datarootdir}'
    979 sysconfdir='${prefix}/etc'
    980 sharedstatedir='${prefix}/com'
    981 localstatedir='${prefix}/var'
    982 includedir='${prefix}/include'
    983 oldincludedir='/usr/include'
    984 docdir='${datarootdir}/doc/${PACKAGE}'
    985 infodir='${datarootdir}/info'
    986 htmldir='${docdir}'
    987 dvidir='${docdir}'
    988 pdfdir='${docdir}'
    989 psdir='${docdir}'
    990 libdir='${exec_prefix}/lib'
    991 localedir='${datarootdir}/locale'
    992 mandir='${datarootdir}/man'
    993 
    994 ac_prev=
    995 ac_dashdash=
    996 for ac_option
    997 do
    998   # If the previous option needs an argument, assign it.
    999   if test -n "$ac_prev"; then
   1000     eval $ac_prev=\$ac_option
   1001     ac_prev=
   1002     continue
   1003   fi
   1004 
   1005   case $ac_option in
   1006   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1007   *)	ac_optarg=yes ;;
   1008   esac
   1009 
   1010   # Accept the important Cygnus configure options, so we can diagnose typos.
   1011 
   1012   case $ac_dashdash$ac_option in
   1013   --)
   1014     ac_dashdash=yes ;;
   1015 
   1016   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1017     ac_prev=bindir ;;
   1018   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1019     bindir=$ac_optarg ;;
   1020 
   1021   -build | --build | --buil | --bui | --bu)
   1022     ac_prev=build_alias ;;
   1023   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1024     build_alias=$ac_optarg ;;
   1025 
   1026   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1027   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1028     ac_prev=cache_file ;;
   1029   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1030   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1031     cache_file=$ac_optarg ;;
   1032 
   1033   --config-cache | -C)
   1034     cache_file=config.cache ;;
   1035 
   1036   -datadir | --datadir | --datadi | --datad)
   1037     ac_prev=datadir ;;
   1038   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1039     datadir=$ac_optarg ;;
   1040 
   1041   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1042   | --dataroo | --dataro | --datar)
   1043     ac_prev=datarootdir ;;
   1044   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1045   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1046     datarootdir=$ac_optarg ;;
   1047 
   1048   -disable-* | --disable-*)
   1049     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1050     # Reject names that are not valid shell variable names.
   1051     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1052       as_fn_error "invalid feature name: $ac_useropt"
   1053     ac_useropt_orig=$ac_useropt
   1054     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1055     case $ac_user_opts in
   1056       *"
   1057 "enable_$ac_useropt"
   1058 "*) ;;
   1059       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1060 	 ac_unrecognized_sep=', ';;
   1061     esac
   1062     eval enable_$ac_useropt=no ;;
   1063 
   1064   -docdir | --docdir | --docdi | --doc | --do)
   1065     ac_prev=docdir ;;
   1066   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1067     docdir=$ac_optarg ;;
   1068 
   1069   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1070     ac_prev=dvidir ;;
   1071   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1072     dvidir=$ac_optarg ;;
   1073 
   1074   -enable-* | --enable-*)
   1075     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1076     # Reject names that are not valid shell variable names.
   1077     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1078       as_fn_error "invalid feature name: $ac_useropt"
   1079     ac_useropt_orig=$ac_useropt
   1080     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1081     case $ac_user_opts in
   1082       *"
   1083 "enable_$ac_useropt"
   1084 "*) ;;
   1085       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1086 	 ac_unrecognized_sep=', ';;
   1087     esac
   1088     eval enable_$ac_useropt=\$ac_optarg ;;
   1089 
   1090   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1091   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1092   | --exec | --exe | --ex)
   1093     ac_prev=exec_prefix ;;
   1094   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1095   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1096   | --exec=* | --exe=* | --ex=*)
   1097     exec_prefix=$ac_optarg ;;
   1098 
   1099   -gas | --gas | --ga | --g)
   1100     # Obsolete; use --with-gas.
   1101     with_gas=yes ;;
   1102 
   1103   -help | --help | --hel | --he | -h)
   1104     ac_init_help=long ;;
   1105   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1106     ac_init_help=recursive ;;
   1107   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1108     ac_init_help=short ;;
   1109 
   1110   -host | --host | --hos | --ho)
   1111     ac_prev=host_alias ;;
   1112   -host=* | --host=* | --hos=* | --ho=*)
   1113     host_alias=$ac_optarg ;;
   1114 
   1115   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1116     ac_prev=htmldir ;;
   1117   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1118   | --ht=*)
   1119     htmldir=$ac_optarg ;;
   1120 
   1121   -includedir | --includedir | --includedi | --included | --include \
   1122   | --includ | --inclu | --incl | --inc)
   1123     ac_prev=includedir ;;
   1124   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1125   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1126     includedir=$ac_optarg ;;
   1127 
   1128   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1129     ac_prev=infodir ;;
   1130   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1131     infodir=$ac_optarg ;;
   1132 
   1133   -libdir | --libdir | --libdi | --libd)
   1134     ac_prev=libdir ;;
   1135   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1136     libdir=$ac_optarg ;;
   1137 
   1138   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1139   | --libexe | --libex | --libe)
   1140     ac_prev=libexecdir ;;
   1141   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1142   | --libexe=* | --libex=* | --libe=*)
   1143     libexecdir=$ac_optarg ;;
   1144 
   1145   -localedir | --localedir | --localedi | --localed | --locale)
   1146     ac_prev=localedir ;;
   1147   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1148     localedir=$ac_optarg ;;
   1149 
   1150   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1151   | --localstate | --localstat | --localsta | --localst | --locals)
   1152     ac_prev=localstatedir ;;
   1153   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1154   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1155     localstatedir=$ac_optarg ;;
   1156 
   1157   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1158     ac_prev=mandir ;;
   1159   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1160     mandir=$ac_optarg ;;
   1161 
   1162   -nfp | --nfp | --nf)
   1163     # Obsolete; use --without-fp.
   1164     with_fp=no ;;
   1165 
   1166   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1167   | --no-cr | --no-c | -n)
   1168     no_create=yes ;;
   1169 
   1170   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1171   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1172     no_recursion=yes ;;
   1173 
   1174   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1175   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1176   | --oldin | --oldi | --old | --ol | --o)
   1177     ac_prev=oldincludedir ;;
   1178   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1179   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1180   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1181     oldincludedir=$ac_optarg ;;
   1182 
   1183   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1184     ac_prev=prefix ;;
   1185   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1186     prefix=$ac_optarg ;;
   1187 
   1188   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1189   | --program-pre | --program-pr | --program-p)
   1190     ac_prev=program_prefix ;;
   1191   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1192   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1193     program_prefix=$ac_optarg ;;
   1194 
   1195   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1196   | --program-suf | --program-su | --program-s)
   1197     ac_prev=program_suffix ;;
   1198   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1199   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1200     program_suffix=$ac_optarg ;;
   1201 
   1202   -program-transform-name | --program-transform-name \
   1203   | --program-transform-nam | --program-transform-na \
   1204   | --program-transform-n | --program-transform- \
   1205   | --program-transform | --program-transfor \
   1206   | --program-transfo | --program-transf \
   1207   | --program-trans | --program-tran \
   1208   | --progr-tra | --program-tr | --program-t)
   1209     ac_prev=program_transform_name ;;
   1210   -program-transform-name=* | --program-transform-name=* \
   1211   | --program-transform-nam=* | --program-transform-na=* \
   1212   | --program-transform-n=* | --program-transform-=* \
   1213   | --program-transform=* | --program-transfor=* \
   1214   | --program-transfo=* | --program-transf=* \
   1215   | --program-trans=* | --program-tran=* \
   1216   | --progr-tra=* | --program-tr=* | --program-t=*)
   1217     program_transform_name=$ac_optarg ;;
   1218 
   1219   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1220     ac_prev=pdfdir ;;
   1221   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1222     pdfdir=$ac_optarg ;;
   1223 
   1224   -psdir | --psdir | --psdi | --psd | --ps)
   1225     ac_prev=psdir ;;
   1226   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1227     psdir=$ac_optarg ;;
   1228 
   1229   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1230   | -silent | --silent | --silen | --sile | --sil)
   1231     silent=yes ;;
   1232 
   1233   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1234     ac_prev=sbindir ;;
   1235   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1236   | --sbi=* | --sb=*)
   1237     sbindir=$ac_optarg ;;
   1238 
   1239   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1240   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1241   | --sharedst | --shareds | --shared | --share | --shar \
   1242   | --sha | --sh)
   1243     ac_prev=sharedstatedir ;;
   1244   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1245   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1246   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1247   | --sha=* | --sh=*)
   1248     sharedstatedir=$ac_optarg ;;
   1249 
   1250   -site | --site | --sit)
   1251     ac_prev=site ;;
   1252   -site=* | --site=* | --sit=*)
   1253     site=$ac_optarg ;;
   1254 
   1255   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1256     ac_prev=srcdir ;;
   1257   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1258     srcdir=$ac_optarg ;;
   1259 
   1260   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1261   | --syscon | --sysco | --sysc | --sys | --sy)
   1262     ac_prev=sysconfdir ;;
   1263   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1264   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1265     sysconfdir=$ac_optarg ;;
   1266 
   1267   -target | --target | --targe | --targ | --tar | --ta | --t)
   1268     ac_prev=target_alias ;;
   1269   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1270     target_alias=$ac_optarg ;;
   1271 
   1272   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1273     verbose=yes ;;
   1274 
   1275   -version | --version | --versio | --versi | --vers | -V)
   1276     ac_init_version=: ;;
   1277 
   1278   -with-* | --with-*)
   1279     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1280     # Reject names that are not valid shell variable names.
   1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1282       as_fn_error "invalid package name: $ac_useropt"
   1283     ac_useropt_orig=$ac_useropt
   1284     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1285     case $ac_user_opts in
   1286       *"
   1287 "with_$ac_useropt"
   1288 "*) ;;
   1289       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1290 	 ac_unrecognized_sep=', ';;
   1291     esac
   1292     eval with_$ac_useropt=\$ac_optarg ;;
   1293 
   1294   -without-* | --without-*)
   1295     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1296     # Reject names that are not valid shell variable names.
   1297     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1298       as_fn_error "invalid package name: $ac_useropt"
   1299     ac_useropt_orig=$ac_useropt
   1300     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1301     case $ac_user_opts in
   1302       *"
   1303 "with_$ac_useropt"
   1304 "*) ;;
   1305       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1306 	 ac_unrecognized_sep=', ';;
   1307     esac
   1308     eval with_$ac_useropt=no ;;
   1309 
   1310   --x)
   1311     # Obsolete; use --with-x.
   1312     with_x=yes ;;
   1313 
   1314   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1315   | --x-incl | --x-inc | --x-in | --x-i)
   1316     ac_prev=x_includes ;;
   1317   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1318   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1319     x_includes=$ac_optarg ;;
   1320 
   1321   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1322   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1323     ac_prev=x_libraries ;;
   1324   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1325   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1326     x_libraries=$ac_optarg ;;
   1327 
   1328   -*) as_fn_error "unrecognized option: \`$ac_option'
   1329 Try \`$0 --help' for more information."
   1330     ;;
   1331 
   1332   *=*)
   1333     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1334     # Reject names that are not valid shell variable names.
   1335     case $ac_envvar in #(
   1336       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1337       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
   1338     esac
   1339     eval $ac_envvar=\$ac_optarg
   1340     export $ac_envvar ;;
   1341 
   1342   *)
   1343     # FIXME: should be removed in autoconf 3.0.
   1344     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1345     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1346       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1347     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1348     ;;
   1349 
   1350   esac
   1351 done
   1352 
   1353 if test -n "$ac_prev"; then
   1354   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1355   as_fn_error "missing argument to $ac_option"
   1356 fi
   1357 
   1358 if test -n "$ac_unrecognized_opts"; then
   1359   case $enable_option_checking in
   1360     no) ;;
   1361     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
   1362     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1363   esac
   1364 fi
   1365 
   1366 # Check all directory arguments for consistency.
   1367 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1368 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1369 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1370 		libdir localedir mandir
   1371 do
   1372   eval ac_val=\$$ac_var
   1373   # Remove trailing slashes.
   1374   case $ac_val in
   1375     */ )
   1376       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1377       eval $ac_var=\$ac_val;;
   1378   esac
   1379   # Be sure to have absolute directory names.
   1380   case $ac_val in
   1381     [\\/$]* | ?:[\\/]* )  continue;;
   1382     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1383   esac
   1384   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
   1385 done
   1386 
   1387 # There might be people who depend on the old broken behavior: `$host'
   1388 # used to hold the argument of --host etc.
   1389 # FIXME: To remove some day.
   1390 build=$build_alias
   1391 host=$host_alias
   1392 target=$target_alias
   1393 
   1394 # FIXME: To remove some day.
   1395 if test "x$host_alias" != x; then
   1396   if test "x$build_alias" = x; then
   1397     cross_compiling=maybe
   1398     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1399     If a cross compiler is detected then cross compile mode will be used." >&2
   1400   elif test "x$build_alias" != "x$host_alias"; then
   1401     cross_compiling=yes
   1402   fi
   1403 fi
   1404 
   1405 ac_tool_prefix=
   1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1407 
   1408 test "$silent" = yes && exec 6>/dev/null
   1409 
   1410 
   1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1412 ac_ls_di=`ls -di .` &&
   1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1414   as_fn_error "working directory cannot be determined"
   1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1416   as_fn_error "pwd does not report name of working directory"
   1417 
   1418 
   1419 # Find the source files, if location was not specified.
   1420 if test -z "$srcdir"; then
   1421   ac_srcdir_defaulted=yes
   1422   # Try the directory containing this script, then the parent directory.
   1423   ac_confdir=`$as_dirname -- "$as_myself" ||
   1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1425 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1426 	 X"$as_myself" : 'X\(//\)$' \| \
   1427 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1428 $as_echo X"$as_myself" |
   1429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1430 	    s//\1/
   1431 	    q
   1432 	  }
   1433 	  /^X\(\/\/\)[^/].*/{
   1434 	    s//\1/
   1435 	    q
   1436 	  }
   1437 	  /^X\(\/\/\)$/{
   1438 	    s//\1/
   1439 	    q
   1440 	  }
   1441 	  /^X\(\/\).*/{
   1442 	    s//\1/
   1443 	    q
   1444 	  }
   1445 	  s/.*/./; q'`
   1446   srcdir=$ac_confdir
   1447   if test ! -r "$srcdir/$ac_unique_file"; then
   1448     srcdir=..
   1449   fi
   1450 else
   1451   ac_srcdir_defaulted=no
   1452 fi
   1453 if test ! -r "$srcdir/$ac_unique_file"; then
   1454   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1455   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
   1456 fi
   1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1458 ac_abs_confdir=`(
   1459 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
   1460 	pwd)`
   1461 # When building in place, set srcdir=.
   1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1463   srcdir=.
   1464 fi
   1465 # Remove unnecessary trailing slashes from srcdir.
   1466 # Double slashes in file names in object file debugging info
   1467 # mess up M-x gdb in Emacs.
   1468 case $srcdir in
   1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1470 esac
   1471 for ac_var in $ac_precious_vars; do
   1472   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1473   eval ac_env_${ac_var}_value=\$${ac_var}
   1474   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1475   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1476 done
   1477 
   1478 #
   1479 # Report the --help message.
   1480 #
   1481 if test "$ac_init_help" = "long"; then
   1482   # Omit some internal or obsolete options to make the list less imposing.
   1483   # This message is too long to be a string in the A/UX 3.1 sh.
   1484   cat <<_ACEOF
   1485 \`configure' configures this package to adapt to many kinds of systems.
   1486 
   1487 Usage: $0 [OPTION]... [VAR=VALUE]...
   1488 
   1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1490 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1491 
   1492 Defaults for the options are specified in brackets.
   1493 
   1494 Configuration:
   1495   -h, --help              display this help and exit
   1496       --help=short        display options specific to this package
   1497       --help=recursive    display the short help of all the included packages
   1498   -V, --version           display version information and exit
   1499   -q, --quiet, --silent   do not print \`checking...' messages
   1500       --cache-file=FILE   cache test results in FILE [disabled]
   1501   -C, --config-cache      alias for \`--cache-file=config.cache'
   1502   -n, --no-create         do not create output files
   1503       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1504 
   1505 Installation directories:
   1506   --prefix=PREFIX         install architecture-independent files in PREFIX
   1507                           [$ac_default_prefix]
   1508   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1509                           [PREFIX]
   1510 
   1511 By default, \`make install' will install all the files in
   1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1514 for instance \`--prefix=\$HOME'.
   1515 
   1516 For better control, use the options below.
   1517 
   1518 Fine tuning of the installation directories:
   1519   --bindir=DIR            user executables [EPREFIX/bin]
   1520   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1521   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1522   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1523   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1524   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1525   --libdir=DIR            object code libraries [EPREFIX/lib]
   1526   --includedir=DIR        C header files [PREFIX/include]
   1527   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1528   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1529   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1530   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1531   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1532   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1533   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1534   --htmldir=DIR           html documentation [DOCDIR]
   1535   --dvidir=DIR            dvi documentation [DOCDIR]
   1536   --pdfdir=DIR            pdf documentation [DOCDIR]
   1537   --psdir=DIR             ps documentation [DOCDIR]
   1538 _ACEOF
   1539 
   1540   cat <<\_ACEOF
   1541 
   1542 Program names:
   1543   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1544   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1545   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1546 
   1547 System types:
   1548   --build=BUILD     configure for building on BUILD [guessed]
   1549   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1550   --target=TARGET   configure for building compilers for TARGET [HOST]
   1551 _ACEOF
   1552 fi
   1553 
   1554 if test -n "$ac_init_help"; then
   1555 
   1556   cat <<\_ACEOF
   1557 
   1558 Optional Features:
   1559   --disable-option-checking  ignore unrecognized --enable/--with options
   1560   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1561   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1562   --enable-generated-files-in-srcdir
   1563                           put copies of generated files in source dir intended
   1564                           for creating source tarballs for users without
   1565                           texinfo bison or flex
   1566   --disable-largefile     omit support for large files
   1567   --enable-werror-always  enable -Werror despite compiler version
   1568   --enable-checking[=LIST]
   1569                           enable expensive run-time checks. With LIST, enable
   1570                           only specific categories of checks. Categories are:
   1571                           yes,no,all,none,release. Flags are:
   1572                           assert,df,fold,gc,gcac,gimple,misc,
   1573                           rtlflag,rtl,runtime,tree,valgrind,types
   1574   --enable-coverage[=LEVEL]
   1575                           enable compiler's code coverage collection. Use to
   1576                           measure compiler performance and locate unused parts
   1577                           of the compiler. With LEVEL, specify optimization.
   1578                           Values are opt, noopt, default is noopt
   1579   --enable-gather-detailed-mem-stats
   1580                           enable detailed memory allocation stats gathering
   1581   --enable-multilib       enable library support for multiple ABIs
   1582   --enable-multiarch      enable support for multiarch paths
   1583   --enable-__cxa_atexit   enable __cxa_atexit for C++
   1584   --enable-decimal-float={no,yes,bid,dpd}
   1585 			enable decimal float extension to C.  Selecting 'bid'
   1586 			or 'dpd' choses which decimal floating point format
   1587 			to use
   1588   --enable-fixed-point    enable fixed-point arithmetic extension to C
   1589   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
   1590                           package
   1591   --enable-tls            enable or disable generation of tls code overriding
   1592                           the assembler check for tls support
   1593   --enable-objc-gc        enable the use of Boehm's garbage collector with the
   1594                           GNU Objective-C runtime
   1595   --disable-shared        don't provide a shared libgcc
   1596   --enable-languages=LIST specify which front-ends to build
   1597   --disable-rpath         do not hardcode runtime library paths
   1598   --enable-sjlj-exceptions
   1599                           arrange to use setjmp/longjmp exception handling
   1600   --enable-secureplt      enable -msecure-plt by default for PowerPC
   1601   --enable-leading-mingw64-underscores
   1602                           enable leading underscores on 64 bit mingw targets
   1603   --enable-cld            enable -mcld by default for 32bit x86
   1604   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
   1605                           x86
   1606   --disable-win32-registry
   1607                           disable lookup of installation paths in the Registry
   1608                           on Windows hosts
   1609   --enable-win32-registry enable registry lookup (default)
   1610   --enable-win32-registry=KEY
   1611                           use KEY instead of GCC version as the last portion
   1612                           of the registry key
   1613   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1614   --enable-static[=PKGS]  build static libraries [default=yes]
   1615   --enable-fast-install[=PKGS]
   1616                           optimize for fast installation [default=yes]
   1617   --disable-libtool-lock  avoid locking (might break parallel builds)
   1618   --enable-gnu-indirect-function
   1619                           enable the use of the @gnu_indirect_function to
   1620                           glibc systems
   1621   --enable-initfini-array	use .init_array/.fini_array sections
   1622   --enable-comdat         enable COMDAT group support
   1623 
   1624   --enable-fix-cortex-a53-835769
   1625                           enable workaround for AArch64 Cortex-A53 erratum
   1626                           835769 by default
   1627   --disable-fix-cortex-a53-835769
   1628                           disable workaround for AArch64 Cortex-A53 erratum
   1629                           835769 by default
   1630 
   1631   --enable-gnu-unique-object
   1632                           enable the use of the @gnu_unique_object ELF
   1633                           extension on glibc systems
   1634   --enable-linker-build-id
   1635                           compiler will always pass --build-id to linker
   1636   --enable-maintainer-mode
   1637                           enable make rules and dependencies not useful (and
   1638                           sometimes confusing) to the casual installer
   1639   --enable-version-specific-runtime-libs
   1640                           specify that runtime libraries should be installed
   1641                           in a compiler-specific directory
   1642   --enable-plugin         enable plugin support
   1643   --disable-libquadmath-support
   1644                           disable libquadmath support for Fortran
   1645 
   1646 Optional Packages:
   1647   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1648   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1649   --with-build-libsubdir=DIR  Directory where to find libraries for build system
   1650   --with-local-prefix=DIR specifies directory to put local include
   1651   --with-gxx-include-dir=DIR
   1652                           specifies directory to put g++ header files
   1653   --with-cpp-install-dir=DIR
   1654                           install the user visible C preprocessor in DIR
   1655                           (relative to PREFIX) as well as PREFIX/bin
   1656   --with-gnu-ld           arrange to work with GNU ld
   1657   --with-ld               arrange to use the specified ld (full pathname)
   1658   --with-demangler-in-ld  try to use demangler in GNU ld
   1659   --with-gnu-as           arrange to work with GNU as
   1660   --with-as               arrange to use the specified as (full pathname)
   1661   --with-stabs            arrange to use stabs instead of host debug format
   1662   --with-dwarf2           force the default debug format to be DWARF 2
   1663   --with-native-system-header-dir=dir
   1664                           use dir as the directory to look for standard
   1665                           system header files in.  Defaults to /usr/include.
   1666   --with-build-sysroot=sysroot
   1667                           use sysroot as the system root during the build
   1668   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
   1669   --with-specs=SPECS      add SPECS to driver command-line processing
   1670   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
   1671   --with-bugurl=URL       Direct users to URL to report a bug
   1672   --with-multilib-list    select multilibs (SH and x86-64 only)
   1673   --with-gnu-ld           assume the C compiler uses GNU ld default=no
   1674   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
   1675   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
   1676   --with-pic              try to use only PIC/non-PIC objects [default=use
   1677                           both]
   1678   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1679   --with-plugin-ld=[ARG]  specify the plugin linker
   1680   --with-long-double-128  use 128-bit long double by default
   1681   --with-gc={page,zone}   this option is not supported anymore. It used to
   1682                           choose the garbage collection mechanism to use with
   1683                           the compiler
   1684   --with-system-zlib      use installed libz
   1685   --with-linker-hash-style={sysv,gnu,both}
   1686                           specify the linker hash style
   1687 
   1688 Some influential environment variables:
   1689   CC          C compiler command
   1690   CFLAGS      C compiler flags
   1691   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1692               nonstandard directory <lib dir>
   1693   LIBS        libraries to pass to the linker, e.g. -l<library>
   1694   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1695               you have headers in a nonstandard directory <include dir>
   1696   CXX         C++ compiler command
   1697   CXXFLAGS    C++ compiler flags
   1698   CPP         C preprocessor
   1699   CXXCPP      C++ preprocessor
   1700   GMPLIBS     How to link GMP
   1701   GMPINC      How to find GMP include files
   1702   ISLLIBS     How to link ISL
   1703   ISLINC      How to find ISL include files
   1704   CLOOGLIBS   How to link CLOOG
   1705   CLOOGINC    How to find CLOOG include files
   1706 
   1707 Use these variables to override the choices made by `configure' or to help
   1708 it to find libraries and programs with nonstandard names/locations.
   1709 
   1710 Report bugs to the package provider.
   1711 _ACEOF
   1712 ac_status=$?
   1713 fi
   1714 
   1715 if test "$ac_init_help" = "recursive"; then
   1716   # If there are subdirs, report their specific --help.
   1717   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1718     test -d "$ac_dir" ||
   1719       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1720       continue
   1721     ac_builddir=.
   1722 
   1723 case "$ac_dir" in
   1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1725 *)
   1726   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1727   # A ".." for each directory in $ac_dir_suffix.
   1728   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1729   case $ac_top_builddir_sub in
   1730   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1731   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1732   esac ;;
   1733 esac
   1734 ac_abs_top_builddir=$ac_pwd
   1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1736 # for backward compatibility:
   1737 ac_top_builddir=$ac_top_build_prefix
   1738 
   1739 case $srcdir in
   1740   .)  # We are building in place.
   1741     ac_srcdir=.
   1742     ac_top_srcdir=$ac_top_builddir_sub
   1743     ac_abs_top_srcdir=$ac_pwd ;;
   1744   [\\/]* | ?:[\\/]* )  # Absolute name.
   1745     ac_srcdir=$srcdir$ac_dir_suffix;
   1746     ac_top_srcdir=$srcdir
   1747     ac_abs_top_srcdir=$srcdir ;;
   1748   *) # Relative name.
   1749     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1750     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1751     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1752 esac
   1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1754 
   1755     cd "$ac_dir" || { ac_status=$?; continue; }
   1756     # Check for guested configure.
   1757     if test -f "$ac_srcdir/configure.gnu"; then
   1758       echo &&
   1759       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1760     elif test -f "$ac_srcdir/configure"; then
   1761       echo &&
   1762       $SHELL "$ac_srcdir/configure" --help=recursive
   1763     else
   1764       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1765     fi || ac_status=$?
   1766     cd "$ac_pwd" || { ac_status=$?; break; }
   1767   done
   1768 fi
   1769 
   1770 test -n "$ac_init_help" && exit $ac_status
   1771 if $ac_init_version; then
   1772   cat <<\_ACEOF
   1773 configure
   1774 generated by GNU Autoconf 2.64
   1775 
   1776 Copyright (C) 2009 Free Software Foundation, Inc.
   1777 This configure script is free software; the Free Software Foundation
   1778 gives unlimited permission to copy, distribute and modify it.
   1779 _ACEOF
   1780   exit
   1781 fi
   1782 
   1783 ## ------------------------ ##
   1784 ## Autoconf initialization. ##
   1785 ## ------------------------ ##
   1786 
   1787 # ac_fn_c_try_compile LINENO
   1788 # --------------------------
   1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1790 ac_fn_c_try_compile ()
   1791 {
   1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1793   rm -f conftest.$ac_objext
   1794   if { { ac_try="$ac_compile"
   1795 case "(($ac_try" in
   1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1797   *) ac_try_echo=$ac_try;;
   1798 esac
   1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1800 $as_echo "$ac_try_echo"; } >&5
   1801   (eval "$ac_compile") 2>conftest.err
   1802   ac_status=$?
   1803   if test -s conftest.err; then
   1804     grep -v '^ *+' conftest.err >conftest.er1
   1805     cat conftest.er1 >&5
   1806     mv -f conftest.er1 conftest.err
   1807   fi
   1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1809   test $ac_status = 0; } && {
   1810 	 test -z "$ac_c_werror_flag" ||
   1811 	 test ! -s conftest.err
   1812        } && test -s conftest.$ac_objext; then :
   1813   ac_retval=0
   1814 else
   1815   $as_echo "$as_me: failed program was:" >&5
   1816 sed 's/^/| /' conftest.$ac_ext >&5
   1817 
   1818 	ac_retval=1
   1819 fi
   1820   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1821   return $ac_retval
   1822 
   1823 } # ac_fn_c_try_compile
   1824 
   1825 # ac_fn_cxx_try_compile LINENO
   1826 # ----------------------------
   1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1828 ac_fn_cxx_try_compile ()
   1829 {
   1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1831   rm -f conftest.$ac_objext
   1832   if { { ac_try="$ac_compile"
   1833 case "(($ac_try" in
   1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1835   *) ac_try_echo=$ac_try;;
   1836 esac
   1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1838 $as_echo "$ac_try_echo"; } >&5
   1839   (eval "$ac_compile") 2>conftest.err
   1840   ac_status=$?
   1841   if test -s conftest.err; then
   1842     grep -v '^ *+' conftest.err >conftest.er1
   1843     cat conftest.er1 >&5
   1844     mv -f conftest.er1 conftest.err
   1845   fi
   1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1847   test $ac_status = 0; } && {
   1848 	 test -z "$ac_cxx_werror_flag" ||
   1849 	 test ! -s conftest.err
   1850        } && test -s conftest.$ac_objext; then :
   1851   ac_retval=0
   1852 else
   1853   $as_echo "$as_me: failed program was:" >&5
   1854 sed 's/^/| /' conftest.$ac_ext >&5
   1855 
   1856 	ac_retval=1
   1857 fi
   1858   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1859   return $ac_retval
   1860 
   1861 } # ac_fn_cxx_try_compile
   1862 
   1863 # ac_fn_c_try_cpp LINENO
   1864 # ----------------------
   1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1866 ac_fn_c_try_cpp ()
   1867 {
   1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1869   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1870 case "(($ac_try" in
   1871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1872   *) ac_try_echo=$ac_try;;
   1873 esac
   1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1875 $as_echo "$ac_try_echo"; } >&5
   1876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1877   ac_status=$?
   1878   if test -s conftest.err; then
   1879     grep -v '^ *+' conftest.err >conftest.er1
   1880     cat conftest.er1 >&5
   1881     mv -f conftest.er1 conftest.err
   1882   fi
   1883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1884   test $ac_status = 0; } >/dev/null && {
   1885 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1886 	 test ! -s conftest.err
   1887        }; then :
   1888   ac_retval=0
   1889 else
   1890   $as_echo "$as_me: failed program was:" >&5
   1891 sed 's/^/| /' conftest.$ac_ext >&5
   1892 
   1893     ac_retval=1
   1894 fi
   1895   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1896   return $ac_retval
   1897 
   1898 } # ac_fn_c_try_cpp
   1899 
   1900 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1901 # -------------------------------------------------------
   1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1903 # the include files in INCLUDES and setting the cache variable VAR
   1904 # accordingly.
   1905 ac_fn_c_check_header_mongrel ()
   1906 {
   1907   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1908   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1910 $as_echo_n "checking for $2... " >&6; }
   1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1912   $as_echo_n "(cached) " >&6
   1913 fi
   1914 eval ac_res=\$$3
   1915 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1916 $as_echo "$ac_res" >&6; }
   1917 else
   1918   # Is the header compilable?
   1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1920 $as_echo_n "checking $2 usability... " >&6; }
   1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1922 /* end confdefs.h.  */
   1923 $4
   1924 #include <$2>
   1925 _ACEOF
   1926 if ac_fn_c_try_compile "$LINENO"; then :
   1927   ac_header_compiler=yes
   1928 else
   1929   ac_header_compiler=no
   1930 fi
   1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1933 $as_echo "$ac_header_compiler" >&6; }
   1934 
   1935 # Is the header present?
   1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1937 $as_echo_n "checking $2 presence... " >&6; }
   1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1939 /* end confdefs.h.  */
   1940 #include <$2>
   1941 _ACEOF
   1942 if ac_fn_c_try_cpp "$LINENO"; then :
   1943   ac_header_preproc=yes
   1944 else
   1945   ac_header_preproc=no
   1946 fi
   1947 rm -f conftest.err conftest.$ac_ext
   1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1949 $as_echo "$ac_header_preproc" >&6; }
   1950 
   1951 # So?  What about this header?
   1952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1953   yes:no: )
   1954     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1956     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1958     ;;
   1959   no:yes:* )
   1960     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1962     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1963 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1964     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1966     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1967 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1968     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1970     ;;
   1971 esac
   1972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1973 $as_echo_n "checking for $2... " >&6; }
   1974 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1975   $as_echo_n "(cached) " >&6
   1976 else
   1977   eval "$3=\$ac_header_compiler"
   1978 fi
   1979 eval ac_res=\$$3
   1980 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1981 $as_echo "$ac_res" >&6; }
   1982 fi
   1983   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1984 
   1985 } # ac_fn_c_check_header_mongrel
   1986 
   1987 # ac_fn_c_try_run LINENO
   1988 # ----------------------
   1989 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1990 # that executables *can* be run.
   1991 ac_fn_c_try_run ()
   1992 {
   1993   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1994   if { { ac_try="$ac_link"
   1995 case "(($ac_try" in
   1996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1997   *) ac_try_echo=$ac_try;;
   1998 esac
   1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2000 $as_echo "$ac_try_echo"; } >&5
   2001   (eval "$ac_link") 2>&5
   2002   ac_status=$?
   2003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2004   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   2005   { { case "(($ac_try" in
   2006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2007   *) ac_try_echo=$ac_try;;
   2008 esac
   2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2010 $as_echo "$ac_try_echo"; } >&5
   2011   (eval "$ac_try") 2>&5
   2012   ac_status=$?
   2013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2014   test $ac_status = 0; }; }; then :
   2015   ac_retval=0
   2016 else
   2017   $as_echo "$as_me: program exited with status $ac_status" >&5
   2018        $as_echo "$as_me: failed program was:" >&5
   2019 sed 's/^/| /' conftest.$ac_ext >&5
   2020 
   2021        ac_retval=$ac_status
   2022 fi
   2023   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2024   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2025   return $ac_retval
   2026 
   2027 } # ac_fn_c_try_run
   2028 
   2029 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   2030 # -------------------------------------------------------
   2031 # Tests whether HEADER exists and can be compiled using the include files in
   2032 # INCLUDES, setting the cache variable VAR accordingly.
   2033 ac_fn_c_check_header_compile ()
   2034 {
   2035   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2037 $as_echo_n "checking for $2... " >&6; }
   2038 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2039   $as_echo_n "(cached) " >&6
   2040 else
   2041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2042 /* end confdefs.h.  */
   2043 $4
   2044 #include <$2>
   2045 _ACEOF
   2046 if ac_fn_c_try_compile "$LINENO"; then :
   2047   eval "$3=yes"
   2048 else
   2049   eval "$3=no"
   2050 fi
   2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2052 fi
   2053 eval ac_res=\$$3
   2054 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2055 $as_echo "$ac_res" >&6; }
   2056   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2057 
   2058 } # ac_fn_c_check_header_compile
   2059 
   2060 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2061 # --------------------------------------------
   2062 # Tries to find the compile-time value of EXPR in a program that includes
   2063 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2064 # computed
   2065 ac_fn_c_compute_int ()
   2066 {
   2067   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2068   if test "$cross_compiling" = yes; then
   2069     # Depending upon the size, compute the lo and hi bounds.
   2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2071 /* end confdefs.h.  */
   2072 $4
   2073 int
   2074 main ()
   2075 {
   2076 static int test_array [1 - 2 * !(($2) >= 0)];
   2077 test_array [0] = 0
   2078 
   2079   ;
   2080   return 0;
   2081 }
   2082 _ACEOF
   2083 if ac_fn_c_try_compile "$LINENO"; then :
   2084   ac_lo=0 ac_mid=0
   2085   while :; do
   2086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2087 /* end confdefs.h.  */
   2088 $4
   2089 int
   2090 main ()
   2091 {
   2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2093 test_array [0] = 0
   2094 
   2095   ;
   2096   return 0;
   2097 }
   2098 _ACEOF
   2099 if ac_fn_c_try_compile "$LINENO"; then :
   2100   ac_hi=$ac_mid; break
   2101 else
   2102   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2103 			if test $ac_lo -le $ac_mid; then
   2104 			  ac_lo= ac_hi=
   2105 			  break
   2106 			fi
   2107 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2108 fi
   2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2110   done
   2111 else
   2112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2113 /* end confdefs.h.  */
   2114 $4
   2115 int
   2116 main ()
   2117 {
   2118 static int test_array [1 - 2 * !(($2) < 0)];
   2119 test_array [0] = 0
   2120 
   2121   ;
   2122   return 0;
   2123 }
   2124 _ACEOF
   2125 if ac_fn_c_try_compile "$LINENO"; then :
   2126   ac_hi=-1 ac_mid=-1
   2127   while :; do
   2128     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2129 /* end confdefs.h.  */
   2130 $4
   2131 int
   2132 main ()
   2133 {
   2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2135 test_array [0] = 0
   2136 
   2137   ;
   2138   return 0;
   2139 }
   2140 _ACEOF
   2141 if ac_fn_c_try_compile "$LINENO"; then :
   2142   ac_lo=$ac_mid; break
   2143 else
   2144   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2145 			if test $ac_mid -le $ac_hi; then
   2146 			  ac_lo= ac_hi=
   2147 			  break
   2148 			fi
   2149 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2150 fi
   2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2152   done
   2153 else
   2154   ac_lo= ac_hi=
   2155 fi
   2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2157 fi
   2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2159 # Binary search between lo and hi bounds.
   2160 while test "x$ac_lo" != "x$ac_hi"; do
   2161   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2163 /* end confdefs.h.  */
   2164 $4
   2165 int
   2166 main ()
   2167 {
   2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2169 test_array [0] = 0
   2170 
   2171   ;
   2172   return 0;
   2173 }
   2174 _ACEOF
   2175 if ac_fn_c_try_compile "$LINENO"; then :
   2176   ac_hi=$ac_mid
   2177 else
   2178   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2179 fi
   2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2181 done
   2182 case $ac_lo in #((
   2183 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2184 '') ac_retval=1 ;;
   2185 esac
   2186   else
   2187     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2188 /* end confdefs.h.  */
   2189 $4
   2190 static long int longval () { return $2; }
   2191 static unsigned long int ulongval () { return $2; }
   2192 #include <stdio.h>
   2193 #include <stdlib.h>
   2194 int
   2195 main ()
   2196 {
   2197 
   2198   FILE *f = fopen ("conftest.val", "w");
   2199   if (! f)
   2200     return 1;
   2201   if (($2) < 0)
   2202     {
   2203       long int i = longval ();
   2204       if (i != ($2))
   2205 	return 1;
   2206       fprintf (f, "%ld", i);
   2207     }
   2208   else
   2209     {
   2210       unsigned long int i = ulongval ();
   2211       if (i != ($2))
   2212 	return 1;
   2213       fprintf (f, "%lu", i);
   2214     }
   2215   /* Do not output a trailing newline, as this causes \r\n confusion
   2216      on some platforms.  */
   2217   return ferror (f) || fclose (f) != 0;
   2218 
   2219   ;
   2220   return 0;
   2221 }
   2222 _ACEOF
   2223 if ac_fn_c_try_run "$LINENO"; then :
   2224   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2225 else
   2226   ac_retval=1
   2227 fi
   2228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2229   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2230 rm -f conftest.val
   2231 
   2232   fi
   2233   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2234   return $ac_retval
   2235 
   2236 } # ac_fn_c_compute_int
   2237 
   2238 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2239 # -------------------------------------------
   2240 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2241 # variable VAR accordingly.
   2242 ac_fn_c_check_type ()
   2243 {
   2244   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2246 $as_echo_n "checking for $2... " >&6; }
   2247 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2248   $as_echo_n "(cached) " >&6
   2249 else
   2250   eval "$3=no"
   2251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2252 /* end confdefs.h.  */
   2253 $4
   2254 int
   2255 main ()
   2256 {
   2257 if (sizeof ($2))
   2258 	 return 0;
   2259   ;
   2260   return 0;
   2261 }
   2262 _ACEOF
   2263 if ac_fn_c_try_compile "$LINENO"; then :
   2264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2265 /* end confdefs.h.  */
   2266 $4
   2267 int
   2268 main ()
   2269 {
   2270 if (sizeof (($2)))
   2271 	    return 0;
   2272   ;
   2273   return 0;
   2274 }
   2275 _ACEOF
   2276 if ac_fn_c_try_compile "$LINENO"; then :
   2277 
   2278 else
   2279   eval "$3=yes"
   2280 fi
   2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2282 fi
   2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2284 fi
   2285 eval ac_res=\$$3
   2286 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2287 $as_echo "$ac_res" >&6; }
   2288   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2289 
   2290 } # ac_fn_c_check_type
   2291 
   2292 # ac_fn_c_find_intX_t LINENO BITS VAR
   2293 # -----------------------------------
   2294 # Finds a signed integer type with width BITS, setting cache variable VAR
   2295 # accordingly.
   2296 ac_fn_c_find_intX_t ()
   2297 {
   2298   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
   2300 $as_echo_n "checking for int$2_t... " >&6; }
   2301 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2302   $as_echo_n "(cached) " >&6
   2303 else
   2304   eval "$3=no"
   2305      for ac_type in int$2_t 'int' 'long int' \
   2306 	 'long long int' 'short int' 'signed char'; do
   2307        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2308 /* end confdefs.h.  */
   2309 $ac_includes_default
   2310 int
   2311 main ()
   2312 {
   2313 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
   2314 test_array [0] = 0
   2315 
   2316   ;
   2317   return 0;
   2318 }
   2319 _ACEOF
   2320 if ac_fn_c_try_compile "$LINENO"; then :
   2321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2322 /* end confdefs.h.  */
   2323 $ac_includes_default
   2324 int
   2325 main ()
   2326 {
   2327 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
   2328 		 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
   2329 test_array [0] = 0
   2330 
   2331   ;
   2332   return 0;
   2333 }
   2334 _ACEOF
   2335 if ac_fn_c_try_compile "$LINENO"; then :
   2336 
   2337 else
   2338   case $ac_type in #(
   2339   int$2_t) :
   2340     eval "$3=yes" ;; #(
   2341   *) :
   2342     eval "$3=\$ac_type" ;;
   2343 esac
   2344 fi
   2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2346 fi
   2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2348        eval as_val=\$$3
   2349    if test "x$as_val" = x""no; then :
   2350 
   2351 else
   2352   break
   2353 fi
   2354      done
   2355 fi
   2356 eval ac_res=\$$3
   2357 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2358 $as_echo "$ac_res" >&6; }
   2359   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2360 
   2361 } # ac_fn_c_find_intX_t
   2362 
   2363 # ac_fn_c_try_link LINENO
   2364 # -----------------------
   2365 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2366 ac_fn_c_try_link ()
   2367 {
   2368   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2369   rm -f conftest.$ac_objext conftest$ac_exeext
   2370   if { { ac_try="$ac_link"
   2371 case "(($ac_try" in
   2372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2373   *) ac_try_echo=$ac_try;;
   2374 esac
   2375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2376 $as_echo "$ac_try_echo"; } >&5
   2377   (eval "$ac_link") 2>conftest.err
   2378   ac_status=$?
   2379   if test -s conftest.err; then
   2380     grep -v '^ *+' conftest.err >conftest.er1
   2381     cat conftest.er1 >&5
   2382     mv -f conftest.er1 conftest.err
   2383   fi
   2384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2385   test $ac_status = 0; } && {
   2386 	 test -z "$ac_c_werror_flag" ||
   2387 	 test ! -s conftest.err
   2388        } && test -s conftest$ac_exeext && {
   2389 	 test "$cross_compiling" = yes ||
   2390 	 $as_test_x conftest$ac_exeext
   2391        }; then :
   2392   ac_retval=0
   2393 else
   2394   $as_echo "$as_me: failed program was:" >&5
   2395 sed 's/^/| /' conftest.$ac_ext >&5
   2396 
   2397 	ac_retval=1
   2398 fi
   2399   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2400   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2401   # interfere with the next link command; also delete a directory that is
   2402   # left behind by Apple's compiler.  We do this before executing the actions.
   2403   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2404   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2405   return $ac_retval
   2406 
   2407 } # ac_fn_c_try_link
   2408 
   2409 # ac_fn_c_find_uintX_t LINENO BITS VAR
   2410 # ------------------------------------
   2411 # Finds an unsigned integer type with width BITS, setting cache variable VAR
   2412 # accordingly.
   2413 ac_fn_c_find_uintX_t ()
   2414 {
   2415   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
   2417 $as_echo_n "checking for uint$2_t... " >&6; }
   2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2419   $as_echo_n "(cached) " >&6
   2420 else
   2421   eval "$3=no"
   2422      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
   2423 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
   2424        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2425 /* end confdefs.h.  */
   2426 $ac_includes_default
   2427 int
   2428 main ()
   2429 {
   2430 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
   2431 test_array [0] = 0
   2432 
   2433   ;
   2434   return 0;
   2435 }
   2436 _ACEOF
   2437 if ac_fn_c_try_compile "$LINENO"; then :
   2438   case $ac_type in #(
   2439   uint$2_t) :
   2440     eval "$3=yes" ;; #(
   2441   *) :
   2442     eval "$3=\$ac_type" ;;
   2443 esac
   2444 fi
   2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2446        eval as_val=\$$3
   2447    if test "x$as_val" = x""no; then :
   2448 
   2449 else
   2450   break
   2451 fi
   2452      done
   2453 fi
   2454 eval ac_res=\$$3
   2455 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2456 $as_echo "$ac_res" >&6; }
   2457   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2458 
   2459 } # ac_fn_c_find_uintX_t
   2460 
   2461 # ac_fn_c_check_header_preproc LINENO HEADER VAR
   2462 # ----------------------------------------------
   2463 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
   2464 ac_fn_c_check_header_preproc ()
   2465 {
   2466   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2468 $as_echo_n "checking for $2... " >&6; }
   2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2470   $as_echo_n "(cached) " >&6
   2471 else
   2472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2473 /* end confdefs.h.  */
   2474 #include <$2>
   2475 _ACEOF
   2476 if ac_fn_c_try_cpp "$LINENO"; then :
   2477   eval "$3=yes"
   2478 else
   2479   eval "$3=no"
   2480 fi
   2481 rm -f conftest.err conftest.$ac_ext
   2482 fi
   2483 eval ac_res=\$$3
   2484 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2485 $as_echo "$ac_res" >&6; }
   2486   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2487 
   2488 } # ac_fn_c_check_header_preproc
   2489 
   2490 # ac_fn_cxx_try_cpp LINENO
   2491 # ------------------------
   2492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   2493 ac_fn_cxx_try_cpp ()
   2494 {
   2495   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2496   if { { ac_try="$ac_cpp conftest.$ac_ext"
   2497 case "(($ac_try" in
   2498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2499   *) ac_try_echo=$ac_try;;
   2500 esac
   2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2502 $as_echo "$ac_try_echo"; } >&5
   2503   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   2504   ac_status=$?
   2505   if test -s conftest.err; then
   2506     grep -v '^ *+' conftest.err >conftest.er1
   2507     cat conftest.er1 >&5
   2508     mv -f conftest.er1 conftest.err
   2509   fi
   2510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2511   test $ac_status = 0; } >/dev/null && {
   2512 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   2513 	 test ! -s conftest.err
   2514        }; then :
   2515   ac_retval=0
   2516 else
   2517   $as_echo "$as_me: failed program was:" >&5
   2518 sed 's/^/| /' conftest.$ac_ext >&5
   2519 
   2520     ac_retval=1
   2521 fi
   2522   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2523   return $ac_retval
   2524 
   2525 } # ac_fn_cxx_try_cpp
   2526 
   2527 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
   2528 # ------------------------------------------------
   2529 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
   2530 ac_fn_cxx_check_header_preproc ()
   2531 {
   2532   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2534 $as_echo_n "checking for $2... " >&6; }
   2535 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2536   $as_echo_n "(cached) " >&6
   2537 else
   2538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2539 /* end confdefs.h.  */
   2540 #include <$2>
   2541 _ACEOF
   2542 if ac_fn_cxx_try_cpp "$LINENO"; then :
   2543   eval "$3=yes"
   2544 else
   2545   eval "$3=no"
   2546 fi
   2547 rm -f conftest.err conftest.$ac_ext
   2548 fi
   2549 eval ac_res=\$$3
   2550 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2551 $as_echo "$ac_res" >&6; }
   2552   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2553 
   2554 } # ac_fn_cxx_check_header_preproc
   2555 
   2556 # ac_fn_c_check_func LINENO FUNC VAR
   2557 # ----------------------------------
   2558 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2559 ac_fn_c_check_func ()
   2560 {
   2561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2563 $as_echo_n "checking for $2... " >&6; }
   2564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2565   $as_echo_n "(cached) " >&6
   2566 else
   2567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2568 /* end confdefs.h.  */
   2569 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2571 #define $2 innocuous_$2
   2572 
   2573 /* System header to define __stub macros and hopefully few prototypes,
   2574     which can conflict with char $2 (); below.
   2575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2576     <limits.h> exists even on freestanding compilers.  */
   2577 
   2578 #ifdef __STDC__
   2579 # include <limits.h>
   2580 #else
   2581 # include <assert.h>
   2582 #endif
   2583 
   2584 #undef $2
   2585 
   2586 /* Override any GCC internal prototype to avoid an error.
   2587    Use char because int might match the return type of a GCC
   2588    builtin and then its argument prototype would still apply.  */
   2589 #ifdef __cplusplus
   2590 extern "C"
   2591 #endif
   2592 char $2 ();
   2593 /* The GNU C library defines this for functions which it implements
   2594     to always fail with ENOSYS.  Some functions are actually named
   2595     something starting with __ and the normal name is an alias.  */
   2596 #if defined __stub_$2 || defined __stub___$2
   2597 choke me
   2598 #endif
   2599 
   2600 int
   2601 main ()
   2602 {
   2603 return $2 ();
   2604   ;
   2605   return 0;
   2606 }
   2607 _ACEOF
   2608 if ac_fn_c_try_link "$LINENO"; then :
   2609   eval "$3=yes"
   2610 else
   2611   eval "$3=no"
   2612 fi
   2613 rm -f core conftest.err conftest.$ac_objext \
   2614     conftest$ac_exeext conftest.$ac_ext
   2615 fi
   2616 eval ac_res=\$$3
   2617 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2618 $as_echo "$ac_res" >&6; }
   2619   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2620 
   2621 } # ac_fn_c_check_func
   2622 
   2623 # ac_fn_cxx_try_link LINENO
   2624 # -------------------------
   2625 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2626 ac_fn_cxx_try_link ()
   2627 {
   2628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2629   rm -f conftest.$ac_objext conftest$ac_exeext
   2630   if { { ac_try="$ac_link"
   2631 case "(($ac_try" in
   2632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2633   *) ac_try_echo=$ac_try;;
   2634 esac
   2635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2636 $as_echo "$ac_try_echo"; } >&5
   2637   (eval "$ac_link") 2>conftest.err
   2638   ac_status=$?
   2639   if test -s conftest.err; then
   2640     grep -v '^ *+' conftest.err >conftest.er1
   2641     cat conftest.er1 >&5
   2642     mv -f conftest.er1 conftest.err
   2643   fi
   2644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2645   test $ac_status = 0; } && {
   2646 	 test -z "$ac_cxx_werror_flag" ||
   2647 	 test ! -s conftest.err
   2648        } && test -s conftest$ac_exeext && {
   2649 	 test "$cross_compiling" = yes ||
   2650 	 $as_test_x conftest$ac_exeext
   2651        }; then :
   2652   ac_retval=0
   2653 else
   2654   $as_echo "$as_me: failed program was:" >&5
   2655 sed 's/^/| /' conftest.$ac_ext >&5
   2656 
   2657 	ac_retval=1
   2658 fi
   2659   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2660   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2661   # interfere with the next link command; also delete a directory that is
   2662   # left behind by Apple's compiler.  We do this before executing the actions.
   2663   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2664   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2665   return $ac_retval
   2666 
   2667 } # ac_fn_cxx_try_link
   2668 cat >config.log <<_ACEOF
   2669 This file contains any messages produced by compilers while
   2670 running configure, to aid debugging if configure makes a mistake.
   2671 
   2672 It was created by $as_me, which was
   2673 generated by GNU Autoconf 2.64.  Invocation command line was
   2674 
   2675   $ $0 $@
   2676 
   2677 _ACEOF
   2678 exec 5>>config.log
   2679 {
   2680 cat <<_ASUNAME
   2681 ## --------- ##
   2682 ## Platform. ##
   2683 ## --------- ##
   2684 
   2685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2690 
   2691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2692 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2693 
   2694 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2695 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2697 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2698 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2699 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2700 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2701 
   2702 _ASUNAME
   2703 
   2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2705 for as_dir in $PATH
   2706 do
   2707   IFS=$as_save_IFS
   2708   test -z "$as_dir" && as_dir=.
   2709     $as_echo "PATH: $as_dir"
   2710   done
   2711 IFS=$as_save_IFS
   2712 
   2713 } >&5
   2714 
   2715 cat >&5 <<_ACEOF
   2716 
   2717 
   2718 ## ----------- ##
   2719 ## Core tests. ##
   2720 ## ----------- ##
   2721 
   2722 _ACEOF
   2723 
   2724 
   2725 # Keep a trace of the command line.
   2726 # Strip out --no-create and --no-recursion so they do not pile up.
   2727 # Strip out --silent because we don't want to record it for future runs.
   2728 # Also quote any args containing shell meta-characters.
   2729 # Make two passes to allow for proper duplicate-argument suppression.
   2730 ac_configure_args=
   2731 ac_configure_args0=
   2732 ac_configure_args1=
   2733 ac_must_keep_next=false
   2734 for ac_pass in 1 2
   2735 do
   2736   for ac_arg
   2737   do
   2738     case $ac_arg in
   2739     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2740     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2741     | -silent | --silent | --silen | --sile | --sil)
   2742       continue ;;
   2743     *\'*)
   2744       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2745     esac
   2746     case $ac_pass in
   2747     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2748     2)
   2749       as_fn_append ac_configure_args1 " '$ac_arg'"
   2750       if test $ac_must_keep_next = true; then
   2751 	ac_must_keep_next=false # Got value, back to normal.
   2752       else
   2753 	case $ac_arg in
   2754 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2755 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2756 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2757 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2758 	    case "$ac_configure_args0 " in
   2759 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2760 	    esac
   2761 	    ;;
   2762 	  -* ) ac_must_keep_next=true ;;
   2763 	esac
   2764       fi
   2765       as_fn_append ac_configure_args " '$ac_arg'"
   2766       ;;
   2767     esac
   2768   done
   2769 done
   2770 { ac_configure_args0=; unset ac_configure_args0;}
   2771 { ac_configure_args1=; unset ac_configure_args1;}
   2772 
   2773 # When interrupted or exit'd, cleanup temporary files, and complete
   2774 # config.log.  We remove comments because anyway the quotes in there
   2775 # would cause problems or look ugly.
   2776 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2778 trap 'exit_status=$?
   2779   # Save into config.log some information that might help in debugging.
   2780   {
   2781     echo
   2782 
   2783     cat <<\_ASBOX
   2784 ## ---------------- ##
   2785 ## Cache variables. ##
   2786 ## ---------------- ##
   2787 _ASBOX
   2788     echo
   2789     # The following way of writing the cache mishandles newlines in values,
   2790 (
   2791   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2792     eval ac_val=\$$ac_var
   2793     case $ac_val in #(
   2794     *${as_nl}*)
   2795       case $ac_var in #(
   2796       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2798       esac
   2799       case $ac_var in #(
   2800       _ | IFS | as_nl) ;; #(
   2801       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2802       *) { eval $ac_var=; unset $ac_var;} ;;
   2803       esac ;;
   2804     esac
   2805   done
   2806   (set) 2>&1 |
   2807     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2808     *${as_nl}ac_space=\ *)
   2809       sed -n \
   2810 	"s/'\''/'\''\\\\'\'''\''/g;
   2811 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2812       ;; #(
   2813     *)
   2814       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2815       ;;
   2816     esac |
   2817     sort
   2818 )
   2819     echo
   2820 
   2821     cat <<\_ASBOX
   2822 ## ----------------- ##
   2823 ## Output variables. ##
   2824 ## ----------------- ##
   2825 _ASBOX
   2826     echo
   2827     for ac_var in $ac_subst_vars
   2828     do
   2829       eval ac_val=\$$ac_var
   2830       case $ac_val in
   2831       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2832       esac
   2833       $as_echo "$ac_var='\''$ac_val'\''"
   2834     done | sort
   2835     echo
   2836 
   2837     if test -n "$ac_subst_files"; then
   2838       cat <<\_ASBOX
   2839 ## ------------------- ##
   2840 ## File substitutions. ##
   2841 ## ------------------- ##
   2842 _ASBOX
   2843       echo
   2844       for ac_var in $ac_subst_files
   2845       do
   2846 	eval ac_val=\$$ac_var
   2847 	case $ac_val in
   2848 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2849 	esac
   2850 	$as_echo "$ac_var='\''$ac_val'\''"
   2851       done | sort
   2852       echo
   2853     fi
   2854 
   2855     if test -s confdefs.h; then
   2856       cat <<\_ASBOX
   2857 ## ----------- ##
   2858 ## confdefs.h. ##
   2859 ## ----------- ##
   2860 _ASBOX
   2861       echo
   2862       cat confdefs.h
   2863       echo
   2864     fi
   2865     test "$ac_signal" != 0 &&
   2866       $as_echo "$as_me: caught signal $ac_signal"
   2867     $as_echo "$as_me: exit $exit_status"
   2868   } >&5
   2869   rm -f core *.core core.conftest.* &&
   2870     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2871     exit $exit_status
   2872 ' 0
   2873 for ac_signal in 1 2 13 15; do
   2874   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2875 done
   2876 ac_signal=0
   2877 
   2878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2879 rm -f -r conftest* confdefs.h
   2880 
   2881 $as_echo "/* confdefs.h */" > confdefs.h
   2882 
   2883 # Predefined preprocessor variables.
   2884 
   2885 cat >>confdefs.h <<_ACEOF
   2886 #define PACKAGE_NAME "$PACKAGE_NAME"
   2887 _ACEOF
   2888 
   2889 cat >>confdefs.h <<_ACEOF
   2890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2891 _ACEOF
   2892 
   2893 cat >>confdefs.h <<_ACEOF
   2894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2895 _ACEOF
   2896 
   2897 cat >>confdefs.h <<_ACEOF
   2898 #define PACKAGE_STRING "$PACKAGE_STRING"
   2899 _ACEOF
   2900 
   2901 cat >>confdefs.h <<_ACEOF
   2902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2903 _ACEOF
   2904 
   2905 cat >>confdefs.h <<_ACEOF
   2906 #define PACKAGE_URL "$PACKAGE_URL"
   2907 _ACEOF
   2908 
   2909 
   2910 # Let the site file select an alternate cache file if it wants to.
   2911 # Prefer an explicitly selected file to automatically selected ones.
   2912 ac_site_file1=NONE
   2913 ac_site_file2=NONE
   2914 if test -n "$CONFIG_SITE"; then
   2915   ac_site_file1=$CONFIG_SITE
   2916 elif test "x$prefix" != xNONE; then
   2917   ac_site_file1=$prefix/share/config.site
   2918   ac_site_file2=$prefix/etc/config.site
   2919 else
   2920   ac_site_file1=$ac_default_prefix/share/config.site
   2921   ac_site_file2=$ac_default_prefix/etc/config.site
   2922 fi
   2923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2924 do
   2925   test "x$ac_site_file" = xNONE && continue
   2926   if test -r "$ac_site_file"; then
   2927     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2929     sed 's/^/| /' "$ac_site_file" >&5
   2930     . "$ac_site_file"
   2931   fi
   2932 done
   2933 
   2934 if test -r "$cache_file"; then
   2935   # Some versions of bash will fail to source /dev/null (special
   2936   # files actually), so we avoid doing that.
   2937   if test -f "$cache_file"; then
   2938     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2939 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2940     case $cache_file in
   2941       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2942       *)                      . "./$cache_file";;
   2943     esac
   2944   fi
   2945 else
   2946   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2947 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2948   >$cache_file
   2949 fi
   2950 
   2951 # Check that the precious variables saved in the cache have kept the same
   2952 # value.
   2953 ac_cache_corrupted=false
   2954 for ac_var in $ac_precious_vars; do
   2955   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2956   eval ac_new_set=\$ac_env_${ac_var}_set
   2957   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2958   eval ac_new_val=\$ac_env_${ac_var}_value
   2959   case $ac_old_set,$ac_new_set in
   2960     set,)
   2961       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2962 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2963       ac_cache_corrupted=: ;;
   2964     ,set)
   2965       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2966 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2967       ac_cache_corrupted=: ;;
   2968     ,);;
   2969     *)
   2970       if test "x$ac_old_val" != "x$ac_new_val"; then
   2971 	# differences in whitespace do not lead to failure.
   2972 	ac_old_val_w=`echo x $ac_old_val`
   2973 	ac_new_val_w=`echo x $ac_new_val`
   2974 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2975 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2977 	  ac_cache_corrupted=:
   2978 	else
   2979 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2981 	  eval $ac_var=\$ac_old_val
   2982 	fi
   2983 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2984 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2985 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2986 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2987       fi;;
   2988   esac
   2989   # Pass precious variables to config.status.
   2990   if test "$ac_new_set" = set; then
   2991     case $ac_new_val in
   2992     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2993     *) ac_arg=$ac_var=$ac_new_val ;;
   2994     esac
   2995     case " $ac_configure_args " in
   2996       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2997       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2998     esac
   2999   fi
   3000 done
   3001 if $ac_cache_corrupted; then
   3002   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3004   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   3005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   3006   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   3007 fi
   3008 ## -------------------- ##
   3009 ## Main body of script. ##
   3010 ## -------------------- ##
   3011 
   3012 ac_ext=c
   3013 ac_cpp='$CPP $CPPFLAGS'
   3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3017 
   3018 
   3019 
   3020 
   3021 
   3022 
   3023 ac_config_headers="$ac_config_headers auto-host.h:config.in"
   3024 
   3025 
   3026 gcc_version=`cat $srcdir/BASE-VER`
   3027 
   3028 # Determine the host, build, and target systems
   3029 ac_aux_dir=
   3030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   3031   for ac_t in install-sh install.sh shtool; do
   3032     if test -f "$ac_dir/$ac_t"; then
   3033       ac_aux_dir=$ac_dir
   3034       ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c"
   3035       break 2
   3036     fi
   3037   done
   3038 done
   3039 if test -z "$ac_aux_dir"; then
   3040   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   3041 fi
   3042 
   3043 # These three variables are undocumented and unsupported,
   3044 # and are intended to be withdrawn in a future Autoconf release.
   3045 # They can cause serious problems if a builder's source tree is in a directory
   3046 # whose full name contains unusual characters.
   3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   3049 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   3050 
   3051 
   3052 # Make sure we can run config.sub.
   3053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3054   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   3055 
   3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   3057 $as_echo_n "checking build system type... " >&6; }
   3058 if test "${ac_cv_build+set}" = set; then :
   3059   $as_echo_n "(cached) " >&6
   3060 else
   3061   ac_build_alias=$build_alias
   3062 test "x$ac_build_alias" = x &&
   3063   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   3064 test "x$ac_build_alias" = x &&
   3065   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
   3066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   3067   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   3068 
   3069 fi
   3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   3071 $as_echo "$ac_cv_build" >&6; }
   3072 case $ac_cv_build in
   3073 *-*-*) ;;
   3074 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
   3075 esac
   3076 build=$ac_cv_build
   3077 ac_save_IFS=$IFS; IFS='-'
   3078 set x $ac_cv_build
   3079 shift
   3080 build_cpu=$1
   3081 build_vendor=$2
   3082 shift; shift
   3083 # Remember, the first character of IFS is used to create $*,
   3084 # except with old shells:
   3085 build_os=$*
   3086 IFS=$ac_save_IFS
   3087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3088 
   3089 
   3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   3091 $as_echo_n "checking host system type... " >&6; }
   3092 if test "${ac_cv_host+set}" = set; then :
   3093   $as_echo_n "(cached) " >&6
   3094 else
   3095   if test "x$host_alias" = x; then
   3096   ac_cv_host=$ac_cv_build
   3097 else
   3098   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   3099     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   3100 fi
   3101 
   3102 fi
   3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   3104 $as_echo "$ac_cv_host" >&6; }
   3105 case $ac_cv_host in
   3106 *-*-*) ;;
   3107 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
   3108 esac
   3109 host=$ac_cv_host
   3110 ac_save_IFS=$IFS; IFS='-'
   3111 set x $ac_cv_host
   3112 shift
   3113 host_cpu=$1
   3114 host_vendor=$2
   3115 shift; shift
   3116 # Remember, the first character of IFS is used to create $*,
   3117 # except with old shells:
   3118 host_os=$*
   3119 IFS=$ac_save_IFS
   3120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3121 
   3122 
   3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   3124 $as_echo_n "checking target system type... " >&6; }
   3125 if test "${ac_cv_target+set}" = set; then :
   3126   $as_echo_n "(cached) " >&6
   3127 else
   3128   if test "x$target_alias" = x; then
   3129   ac_cv_target=$ac_cv_host
   3130 else
   3131   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   3132     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   3133 fi
   3134 
   3135 fi
   3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   3137 $as_echo "$ac_cv_target" >&6; }
   3138 case $ac_cv_target in
   3139 *-*-*) ;;
   3140 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
   3141 esac
   3142 target=$ac_cv_target
   3143 ac_save_IFS=$IFS; IFS='-'
   3144 set x $ac_cv_target
   3145 shift
   3146 target_cpu=$1
   3147 target_vendor=$2
   3148 shift; shift
   3149 # Remember, the first character of IFS is used to create $*,
   3150 # except with old shells:
   3151 target_os=$*
   3152 IFS=$ac_save_IFS
   3153 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   3154 
   3155 
   3156 # The aliases save the names the user supplied, while $host etc.
   3157 # will get canonicalized.
   3158 test -n "$target_alias" &&
   3159   test "$program_prefix$program_suffix$program_transform_name" = \
   3160     NONENONEs,x,x, &&
   3161   program_prefix=${target_alias}-
   3162 
   3163 # Determine the noncanonical target name, for directory use.
   3164  case ${build_alias} in
   3165   "") build_noncanonical=${build} ;;
   3166   *) build_noncanonical=${build_alias} ;;
   3167 esac
   3168 
   3169  case ${host_alias} in
   3170   "") host_noncanonical=${build_noncanonical} ;;
   3171   *) host_noncanonical=${host_alias} ;;
   3172 esac
   3173 
   3174  case ${target_alias} in
   3175   "") target_noncanonical=${host_noncanonical} ;;
   3176   *) target_noncanonical=${target_alias} ;;
   3177 esac
   3178 
   3179 
   3180 
   3181 
   3182 # Determine the target- and build-specific subdirectories
   3183 
   3184 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
   3185 # have matching libraries, they should use host libraries: Makefile.tpl
   3186 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
   3187 # However, they still use the build modules, because the corresponding
   3188 # host modules (e.g. bison) are only built for the host when bootstrap
   3189 # finishes. So:
   3190 # - build_subdir is where we find build modules, and never changes.
   3191 # - build_libsubdir is where we find build libraries, and can be overridden.
   3192 
   3193 # Prefix 'build-' so this never conflicts with target_subdir.
   3194 build_subdir="build-${build_noncanonical}"
   3195 
   3196 # Check whether --with-build-libsubdir was given.
   3197 if test "${with_build_libsubdir+set}" = set; then :
   3198   withval=$with_build_libsubdir; build_libsubdir="$withval"
   3199 else
   3200   build_libsubdir="$build_subdir"
   3201 fi
   3202 
   3203 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
   3204 if ( test $srcdir = . && test -d gcc ) \
   3205    || test -d $srcdir/../host-${host_noncanonical}; then
   3206   host_subdir="host-${host_noncanonical}"
   3207 else
   3208   host_subdir=.
   3209 fi
   3210 # No prefix.
   3211 target_subdir=${target_noncanonical}
   3212 
   3213 
   3214 # Set program_transform_name
   3215 test "$program_prefix" != NONE &&
   3216   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   3217 # Use a double $ so make ignores it.
   3218 test "$program_suffix" != NONE &&
   3219   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   3220 # Double any \ or $.
   3221 # By default was `s,x,x', remove it if useless.
   3222 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   3223 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   3224 
   3225 
   3226 # Check for bogus environment variables.
   3227 # Test if LIBRARY_PATH contains the notation for the current directory
   3228 # since this would lead to problems installing/building glibc.
   3229 # LIBRARY_PATH contains the current directory if one of the following
   3230 # is true:
   3231 # - one of the terminals (":" and ";") is the first or last sign
   3232 # - two terminals occur directly after each other
   3233 # - the path contains an element with a dot in it
   3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
   3235 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
   3236 case ${LIBRARY_PATH} in
   3237   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
   3238     library_path_setting="contains current directory"
   3239     ;;
   3240   *)
   3241     library_path_setting="ok"
   3242     ;;
   3243 esac
   3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
   3245 $as_echo "$library_path_setting" >&6; }
   3246 if test "$library_path_setting" != "ok"; then
   3247 as_fn_error "
   3248 *** LIBRARY_PATH shouldn't contain the current directory when
   3249 *** building gcc. Please change the environment variable
   3250 *** and run configure again." "$LINENO" 5
   3251 fi
   3252 
   3253 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
   3254 # since this would lead to problems installing/building glibc.
   3255 # GCC_EXEC_PREFIX contains the current directory if one of the following
   3256 # is true:
   3257 # - one of the terminals (":" and ";") is the first or last sign
   3258 # - two terminals occur directly after each other
   3259 # - the path contains an element with a dot in it
   3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
   3261 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
   3262 case ${GCC_EXEC_PREFIX} in
   3263   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
   3264     gcc_exec_prefix_setting="contains current directory"
   3265     ;;
   3266   *)
   3267     gcc_exec_prefix_setting="ok"
   3268     ;;
   3269 esac
   3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
   3271 $as_echo "$gcc_exec_prefix_setting" >&6; }
   3272 if test "$gcc_exec_prefix_setting" != "ok"; then
   3273 as_fn_error "
   3274 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
   3275 *** building gcc. Please change the environment variable
   3276 *** and run configure again." "$LINENO" 5
   3277 fi
   3278 
   3279 # -----------
   3280 # Directories
   3281 # -----------
   3282 
   3283 # Specify the local prefix
   3284 local_prefix=
   3285 
   3286 # Check whether --with-local-prefix was given.
   3287 if test "${with_local_prefix+set}" = set; then :
   3288   withval=$with_local_prefix; case "${withval}" in
   3289 yes)	as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
   3290 no)	;;
   3291 *)	local_prefix=$with_local_prefix ;;
   3292 esac
   3293 fi
   3294 
   3295 
   3296 # Default local prefix if it is empty
   3297 if test x$local_prefix = x; then
   3298 	local_prefix=/usr/local
   3299 fi
   3300 
   3301 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
   3302 # passed in by the toplevel make and thus we'd get different behavior
   3303 # depending on where we built the sources.
   3304 gcc_gxx_include_dir=
   3305 # Specify the g++ header file directory
   3306 
   3307 # Check whether --with-gxx-include-dir was given.
   3308 if test "${with_gxx_include_dir+set}" = set; then :
   3309   withval=$with_gxx_include_dir; case "${withval}" in
   3310 yes)	as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
   3311 no)	;;
   3312 *)	gcc_gxx_include_dir=$with_gxx_include_dir ;;
   3313 esac
   3314 fi
   3315 
   3316 
   3317 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
   3318 if test x${gcc_gxx_include_dir} = x; then
   3319   if test x${enable_version_specific_runtime_libs} = xyes; then
   3320     gcc_gxx_include_dir='${libsubdir}/include/c++'
   3321   else
   3322     libstdcxx_incdir='include/c++/$(version)'
   3323     if test x$host != x$target; then
   3324        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
   3325     fi
   3326     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
   3327   fi
   3328 fi
   3329 
   3330 gcc_gxx_include_dir_add_sysroot=0
   3331 if test "${with_sysroot+set}" = set; then
   3332   gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
   3333   if test "${gcc_gxx_without_sysroot}"; then
   3334     gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
   3335     gcc_gxx_include_dir_add_sysroot=1
   3336   fi
   3337 fi
   3338 
   3339 
   3340 # Check whether --with-cpp_install_dir was given.
   3341 if test "${with_cpp_install_dir+set}" = set; then :
   3342   withval=$with_cpp_install_dir; if test x$withval = xyes; then
   3343   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
   3344 elif test x$withval != xno; then
   3345   cpp_install_dir=$withval
   3346 fi
   3347 fi
   3348 
   3349 
   3350 # We would like to our source tree to be readonly.  However when releases or
   3351 # pre-releases are generated, the flex/bison generated files as well as the
   3352 # various formats of manuals need to be included along with the rest of the
   3353 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
   3354 # just that.
   3355 
   3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
   3357 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
   3358     # Check whether --enable-generated-files-in-srcdir was given.
   3359 if test "${enable_generated_files_in_srcdir+set}" = set; then :
   3360   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
   3361 else
   3362   generated_files_in_srcdir=no
   3363 fi
   3364 
   3365 
   3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
   3367 $as_echo "$generated_files_in_srcdir" >&6; }
   3368 
   3369 if test "$generated_files_in_srcdir" = "yes"; then
   3370   GENINSRC=''
   3371 else
   3372   GENINSRC='#'
   3373 fi
   3374 
   3375 
   3376 # -------------------
   3377 # Find default linker
   3378 # -------------------
   3379 
   3380 # With GNU ld
   3381 
   3382 # Check whether --with-gnu-ld was given.
   3383 if test "${with_gnu_ld+set}" = set; then :
   3384   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
   3385 else
   3386   gnu_ld_flag=no
   3387 fi
   3388 
   3389 
   3390 # With pre-defined ld
   3391 
   3392 # Check whether --with-ld was given.
   3393 if test "${with_ld+set}" = set; then :
   3394   withval=$with_ld; DEFAULT_LINKER="$with_ld"
   3395 fi
   3396 
   3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
   3398   if test ! -x "$DEFAULT_LINKER"; then
   3399     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
   3400   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
   3401     gnu_ld_flag=yes
   3402   fi
   3403 
   3404 cat >>confdefs.h <<_ACEOF
   3405 #define DEFAULT_LINKER "$DEFAULT_LINKER"
   3406 _ACEOF
   3407 
   3408 fi
   3409 
   3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
   3411 $as_echo_n "checking whether a default linker was specified... " >&6; }
   3412 if test x"${DEFAULT_LINKER+set}" = x"set"; then
   3413   if test x"$gnu_ld_flag" = x"no"; then
   3414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
   3415 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
   3416   else
   3417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
   3418 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
   3419   fi
   3420 else
   3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3422 $as_echo "no" >&6; }
   3423 fi
   3424 
   3425 # With demangler in GNU ld
   3426 
   3427 # Check whether --with-demangler-in-ld was given.
   3428 if test "${with_demangler_in_ld+set}" = set; then :
   3429   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
   3430 else
   3431   demangler_in_ld=yes
   3432 fi
   3433 
   3434 
   3435 # ----------------------
   3436 # Find default assembler
   3437 # ----------------------
   3438 
   3439 # With GNU as
   3440 
   3441 # Check whether --with-gnu-as was given.
   3442 if test "${with_gnu_as+set}" = set; then :
   3443   withval=$with_gnu_as; gas_flag="$with_gnu_as"
   3444 else
   3445   gas_flag=no
   3446 fi
   3447 
   3448 
   3449 
   3450 # Check whether --with-as was given.
   3451 if test "${with_as+set}" = set; then :
   3452   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
   3453 fi
   3454 
   3455 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
   3456   if test ! -x "$DEFAULT_ASSEMBLER"; then
   3457     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
   3458   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
   3459     gas_flag=yes
   3460   fi
   3461 
   3462 cat >>confdefs.h <<_ACEOF
   3463 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
   3464 _ACEOF
   3465 
   3466 fi
   3467 
   3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
   3469 $as_echo_n "checking whether a default assembler was specified... " >&6; }
   3470 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
   3471   if test x"$gas_flag" = x"no"; then
   3472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
   3473 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
   3474   else
   3475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
   3476 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
   3477   fi
   3478 else
   3479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3480 $as_echo "no" >&6; }
   3481 fi
   3482 
   3483 # ---------------
   3484 # Find C compiler
   3485 # ---------------
   3486 
   3487 # If a non-executable a.out is present (e.g. created by GNU as above even if
   3488 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
   3489 # file, even when creating an executable, so an execution test fails.
   3490 # Remove possible default executable files to avoid this.
   3491 #
   3492 # FIXME: This really belongs into AC_PROG_CC and can be removed once
   3493 # Autoconf includes it.
   3494 rm -f a.out a.exe b.out
   3495 
   3496 # Find the native compiler
   3497 ac_ext=c
   3498 ac_cpp='$CPP $CPPFLAGS'
   3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3502 if test -n "$ac_tool_prefix"; then
   3503   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3506 $as_echo_n "checking for $ac_word... " >&6; }
   3507 if test "${ac_cv_prog_CC+set}" = set; then :
   3508   $as_echo_n "(cached) " >&6
   3509 else
   3510   if test -n "$CC"; then
   3511   ac_cv_prog_CC="$CC" # Let the user override the test.
   3512 else
   3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3514 for as_dir in $PATH
   3515 do
   3516   IFS=$as_save_IFS
   3517   test -z "$as_dir" && as_dir=.
   3518     for ac_exec_ext in '' $ac_executable_extensions; do
   3519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3520     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3522     break 2
   3523   fi
   3524 done
   3525   done
   3526 IFS=$as_save_IFS
   3527 
   3528 fi
   3529 fi
   3530 CC=$ac_cv_prog_CC
   3531 if test -n "$CC"; then
   3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3533 $as_echo "$CC" >&6; }
   3534 else
   3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3536 $as_echo "no" >&6; }
   3537 fi
   3538 
   3539 
   3540 fi
   3541 if test -z "$ac_cv_prog_CC"; then
   3542   ac_ct_CC=$CC
   3543   # Extract the first word of "gcc", so it can be a program name with args.
   3544 set dummy gcc; ac_word=$2
   3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3546 $as_echo_n "checking for $ac_word... " >&6; }
   3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   3548   $as_echo_n "(cached) " >&6
   3549 else
   3550   if test -n "$ac_ct_CC"; then
   3551   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3552 else
   3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3554 for as_dir in $PATH
   3555 do
   3556   IFS=$as_save_IFS
   3557   test -z "$as_dir" && as_dir=.
   3558     for ac_exec_ext in '' $ac_executable_extensions; do
   3559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3560     ac_cv_prog_ac_ct_CC="gcc"
   3561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3562     break 2
   3563   fi
   3564 done
   3565   done
   3566 IFS=$as_save_IFS
   3567 
   3568 fi
   3569 fi
   3570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3571 if test -n "$ac_ct_CC"; then
   3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3573 $as_echo "$ac_ct_CC" >&6; }
   3574 else
   3575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3576 $as_echo "no" >&6; }
   3577 fi
   3578 
   3579   if test "x$ac_ct_CC" = x; then
   3580     CC=""
   3581   else
   3582     case $cross_compiling:$ac_tool_warned in
   3583 yes:)
   3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3586 ac_tool_warned=yes ;;
   3587 esac
   3588     CC=$ac_ct_CC
   3589   fi
   3590 else
   3591   CC="$ac_cv_prog_CC"
   3592 fi
   3593 
   3594 if test -z "$CC"; then
   3595           if test -n "$ac_tool_prefix"; then
   3596     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3597 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3599 $as_echo_n "checking for $ac_word... " >&6; }
   3600 if test "${ac_cv_prog_CC+set}" = set; then :
   3601   $as_echo_n "(cached) " >&6
   3602 else
   3603   if test -n "$CC"; then
   3604   ac_cv_prog_CC="$CC" # Let the user override the test.
   3605 else
   3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3607 for as_dir in $PATH
   3608 do
   3609   IFS=$as_save_IFS
   3610   test -z "$as_dir" && as_dir=.
   3611     for ac_exec_ext in '' $ac_executable_extensions; do
   3612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3613     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3615     break 2
   3616   fi
   3617 done
   3618   done
   3619 IFS=$as_save_IFS
   3620 
   3621 fi
   3622 fi
   3623 CC=$ac_cv_prog_CC
   3624 if test -n "$CC"; then
   3625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3626 $as_echo "$CC" >&6; }
   3627 else
   3628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3629 $as_echo "no" >&6; }
   3630 fi
   3631 
   3632 
   3633   fi
   3634 fi
   3635 if test -z "$CC"; then
   3636   # Extract the first word of "cc", so it can be a program name with args.
   3637 set dummy cc; ac_word=$2
   3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3639 $as_echo_n "checking for $ac_word... " >&6; }
   3640 if test "${ac_cv_prog_CC+set}" = set; then :
   3641   $as_echo_n "(cached) " >&6
   3642 else
   3643   if test -n "$CC"; then
   3644   ac_cv_prog_CC="$CC" # Let the user override the test.
   3645 else
   3646   ac_prog_rejected=no
   3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3648 for as_dir in $PATH
   3649 do
   3650   IFS=$as_save_IFS
   3651   test -z "$as_dir" && as_dir=.
   3652     for ac_exec_ext in '' $ac_executable_extensions; do
   3653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3654     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3655        ac_prog_rejected=yes
   3656        continue
   3657      fi
   3658     ac_cv_prog_CC="cc"
   3659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3660     break 2
   3661   fi
   3662 done
   3663   done
   3664 IFS=$as_save_IFS
   3665 
   3666 if test $ac_prog_rejected = yes; then
   3667   # We found a bogon in the path, so make sure we never use it.
   3668   set dummy $ac_cv_prog_CC
   3669   shift
   3670   if test $# != 0; then
   3671     # We chose a different compiler from the bogus one.
   3672     # However, it has the same basename, so the bogon will be chosen
   3673     # first if we set CC to just the basename; use the full file name.
   3674     shift
   3675     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3676   fi
   3677 fi
   3678 fi
   3679 fi
   3680 CC=$ac_cv_prog_CC
   3681 if test -n "$CC"; then
   3682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3683 $as_echo "$CC" >&6; }
   3684 else
   3685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3686 $as_echo "no" >&6; }
   3687 fi
   3688 
   3689 
   3690 fi
   3691 if test -z "$CC"; then
   3692   if test -n "$ac_tool_prefix"; then
   3693   for ac_prog in cl.exe
   3694   do
   3695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3698 $as_echo_n "checking for $ac_word... " >&6; }
   3699 if test "${ac_cv_prog_CC+set}" = set; then :
   3700   $as_echo_n "(cached) " >&6
   3701 else
   3702   if test -n "$CC"; then
   3703   ac_cv_prog_CC="$CC" # Let the user override the test.
   3704 else
   3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3706 for as_dir in $PATH
   3707 do
   3708   IFS=$as_save_IFS
   3709   test -z "$as_dir" && as_dir=.
   3710     for ac_exec_ext in '' $ac_executable_extensions; do
   3711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3712     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3714     break 2
   3715   fi
   3716 done
   3717   done
   3718 IFS=$as_save_IFS
   3719 
   3720 fi
   3721 fi
   3722 CC=$ac_cv_prog_CC
   3723 if test -n "$CC"; then
   3724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3725 $as_echo "$CC" >&6; }
   3726 else
   3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3728 $as_echo "no" >&6; }
   3729 fi
   3730 
   3731 
   3732     test -n "$CC" && break
   3733   done
   3734 fi
   3735 if test -z "$CC"; then
   3736   ac_ct_CC=$CC
   3737   for ac_prog in cl.exe
   3738 do
   3739   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3740 set dummy $ac_prog; ac_word=$2
   3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3742 $as_echo_n "checking for $ac_word... " >&6; }
   3743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   3744   $as_echo_n "(cached) " >&6
   3745 else
   3746   if test -n "$ac_ct_CC"; then
   3747   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3748 else
   3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3750 for as_dir in $PATH
   3751 do
   3752   IFS=$as_save_IFS
   3753   test -z "$as_dir" && as_dir=.
   3754     for ac_exec_ext in '' $ac_executable_extensions; do
   3755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3756     ac_cv_prog_ac_ct_CC="$ac_prog"
   3757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3758     break 2
   3759   fi
   3760 done
   3761   done
   3762 IFS=$as_save_IFS
   3763 
   3764 fi
   3765 fi
   3766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3767 if test -n "$ac_ct_CC"; then
   3768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3769 $as_echo "$ac_ct_CC" >&6; }
   3770 else
   3771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3772 $as_echo "no" >&6; }
   3773 fi
   3774 
   3775 
   3776   test -n "$ac_ct_CC" && break
   3777 done
   3778 
   3779   if test "x$ac_ct_CC" = x; then
   3780     CC=""
   3781   else
   3782     case $cross_compiling:$ac_tool_warned in
   3783 yes:)
   3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3786 ac_tool_warned=yes ;;
   3787 esac
   3788     CC=$ac_ct_CC
   3789   fi
   3790 fi
   3791 
   3792 fi
   3793 
   3794 
   3795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3797 as_fn_error "no acceptable C compiler found in \$PATH
   3798 See \`config.log' for more details." "$LINENO" 5; }
   3799 
   3800 # Provide some information about the compiler.
   3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3802 set X $ac_compile
   3803 ac_compiler=$2
   3804 for ac_option in --version -v -V -qversion; do
   3805   { { ac_try="$ac_compiler $ac_option >&5"
   3806 case "(($ac_try" in
   3807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3808   *) ac_try_echo=$ac_try;;
   3809 esac
   3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3811 $as_echo "$ac_try_echo"; } >&5
   3812   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3813   ac_status=$?
   3814   if test -s conftest.err; then
   3815     sed '10a\
   3816 ... rest of stderr output deleted ...
   3817          10q' conftest.err >conftest.er1
   3818     cat conftest.er1 >&5
   3819     rm -f conftest.er1 conftest.err
   3820   fi
   3821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3822   test $ac_status = 0; }
   3823 done
   3824 
   3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3826 /* end confdefs.h.  */
   3827 
   3828 int
   3829 main ()
   3830 {
   3831 
   3832   ;
   3833   return 0;
   3834 }
   3835 _ACEOF
   3836 ac_clean_files_save=$ac_clean_files
   3837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
   3838 # Try to create an executable without -o first, disregard a.out.
   3839 # It will help us diagnose broken compilers, and finding out an intuition
   3840 # of exeext.
   3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3842 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3843 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3844 
   3845 # The possible output files:
   3846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3847 
   3848 ac_rmfiles=
   3849 for ac_file in $ac_files
   3850 do
   3851   case $ac_file in
   3852     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3853     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3854   esac
   3855 done
   3856 rm -f $ac_rmfiles
   3857 
   3858 if { { ac_try="$ac_link_default"
   3859 case "(($ac_try" in
   3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3861   *) ac_try_echo=$ac_try;;
   3862 esac
   3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3864 $as_echo "$ac_try_echo"; } >&5
   3865   (eval "$ac_link_default") 2>&5
   3866   ac_status=$?
   3867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3868   test $ac_status = 0; }; then :
   3869   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3871 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3872 # so that the user can short-circuit this test for compilers unknown to
   3873 # Autoconf.
   3874 for ac_file in $ac_files ''
   3875 do
   3876   test -f "$ac_file" || continue
   3877   case $ac_file in
   3878     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3879 	;;
   3880     [ab].out )
   3881 	# We found the default executable, but exeext='' is most
   3882 	# certainly right.
   3883 	break;;
   3884     *.* )
   3885 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3886 	then :; else
   3887 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3888 	fi
   3889 	# We set ac_cv_exeext here because the later test for it is not
   3890 	# safe: cross compilers may not add the suffix if given an `-o'
   3891 	# argument, so we may need to know it at that point already.
   3892 	# Even if this section looks crufty: it has the advantage of
   3893 	# actually working.
   3894 	break;;
   3895     * )
   3896 	break;;
   3897   esac
   3898 done
   3899 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3900 
   3901 else
   3902   ac_file=''
   3903 fi
   3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3905 $as_echo "$ac_file" >&6; }
   3906 if test -z "$ac_file"; then :
   3907   $as_echo "$as_me: failed program was:" >&5
   3908 sed 's/^/| /' conftest.$ac_ext >&5
   3909 
   3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3912 { as_fn_set_status 77
   3913 as_fn_error "C compiler cannot create executables
   3914 See \`config.log' for more details." "$LINENO" 5; }; }
   3915 fi
   3916 ac_exeext=$ac_cv_exeext
   3917 
   3918 # Check that the compiler produces executables we can run.  If not, either
   3919 # the compiler is broken, or we cross compile.
   3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3921 $as_echo_n "checking whether the C compiler works... " >&6; }
   3922 # If not cross compiling, check that we can run a simple program.
   3923 if test "$cross_compiling" != yes; then
   3924   if { ac_try='./$ac_file'
   3925   { { case "(($ac_try" in
   3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3927   *) ac_try_echo=$ac_try;;
   3928 esac
   3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3930 $as_echo "$ac_try_echo"; } >&5
   3931   (eval "$ac_try") 2>&5
   3932   ac_status=$?
   3933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3934   test $ac_status = 0; }; }; then
   3935     cross_compiling=no
   3936   else
   3937     if test "$cross_compiling" = maybe; then
   3938 	cross_compiling=yes
   3939     else
   3940 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3942 as_fn_error "cannot run C compiled programs.
   3943 If you meant to cross compile, use \`--host'.
   3944 See \`config.log' for more details." "$LINENO" 5; }
   3945     fi
   3946   fi
   3947 fi
   3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3949 $as_echo "yes" >&6; }
   3950 
   3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
   3952 ac_clean_files=$ac_clean_files_save
   3953 # Check that the compiler produces executables we can run.  If not, either
   3954 # the compiler is broken, or we cross compile.
   3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3958 $as_echo "$cross_compiling" >&6; }
   3959 
   3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3961 $as_echo_n "checking for suffix of executables... " >&6; }
   3962 if { { ac_try="$ac_link"
   3963 case "(($ac_try" in
   3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3965   *) ac_try_echo=$ac_try;;
   3966 esac
   3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3968 $as_echo "$ac_try_echo"; } >&5
   3969   (eval "$ac_link") 2>&5
   3970   ac_status=$?
   3971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3972   test $ac_status = 0; }; then :
   3973   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3974 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3975 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3976 # `rm'.
   3977 for ac_file in conftest.exe conftest conftest.*; do
   3978   test -f "$ac_file" || continue
   3979   case $ac_file in
   3980     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3981     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3982 	  break;;
   3983     * ) break;;
   3984   esac
   3985 done
   3986 else
   3987   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3989 as_fn_error "cannot compute suffix of executables: cannot compile and link
   3990 See \`config.log' for more details." "$LINENO" 5; }
   3991 fi
   3992 rm -f conftest$ac_cv_exeext
   3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3994 $as_echo "$ac_cv_exeext" >&6; }
   3995 
   3996 rm -f conftest.$ac_ext
   3997 EXEEXT=$ac_cv_exeext
   3998 ac_exeext=$EXEEXT
   3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   4000 $as_echo_n "checking for suffix of object files... " >&6; }
   4001 if test "${ac_cv_objext+set}" = set; then :
   4002   $as_echo_n "(cached) " >&6
   4003 else
   4004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4005 /* end confdefs.h.  */
   4006 
   4007 int
   4008 main ()
   4009 {
   4010 
   4011   ;
   4012   return 0;
   4013 }
   4014 _ACEOF
   4015 rm -f conftest.o conftest.obj
   4016 if { { ac_try="$ac_compile"
   4017 case "(($ac_try" in
   4018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4019   *) ac_try_echo=$ac_try;;
   4020 esac
   4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4022 $as_echo "$ac_try_echo"; } >&5
   4023   (eval "$ac_compile") 2>&5
   4024   ac_status=$?
   4025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4026   test $ac_status = 0; }; then :
   4027   for ac_file in conftest.o conftest.obj conftest.*; do
   4028   test -f "$ac_file" || continue;
   4029   case $ac_file in
   4030     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   4031     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   4032        break;;
   4033   esac
   4034 done
   4035 else
   4036   $as_echo "$as_me: failed program was:" >&5
   4037 sed 's/^/| /' conftest.$ac_ext >&5
   4038 
   4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4041 as_fn_error "cannot compute suffix of object files: cannot compile
   4042 See \`config.log' for more details." "$LINENO" 5; }
   4043 fi
   4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   4045 fi
   4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   4047 $as_echo "$ac_cv_objext" >&6; }
   4048 OBJEXT=$ac_cv_objext
   4049 ac_objext=$OBJEXT
   4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   4052 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
   4053   $as_echo_n "(cached) " >&6
   4054 else
   4055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4056 /* end confdefs.h.  */
   4057 
   4058 int
   4059 main ()
   4060 {
   4061 #ifndef __GNUC__
   4062        choke me
   4063 #endif
   4064 
   4065   ;
   4066   return 0;
   4067 }
   4068 _ACEOF
   4069 if ac_fn_c_try_compile "$LINENO"; then :
   4070   ac_compiler_gnu=yes
   4071 else
   4072   ac_compiler_gnu=no
   4073 fi
   4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   4076 
   4077 fi
   4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   4080 if test $ac_compiler_gnu = yes; then
   4081   GCC=yes
   4082 else
   4083   GCC=
   4084 fi
   4085 ac_test_CFLAGS=${CFLAGS+set}
   4086 ac_save_CFLAGS=$CFLAGS
   4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   4089 if test "${ac_cv_prog_cc_g+set}" = set; then :
   4090   $as_echo_n "(cached) " >&6
   4091 else
   4092   ac_save_c_werror_flag=$ac_c_werror_flag
   4093    ac_c_werror_flag=yes
   4094    ac_cv_prog_cc_g=no
   4095    CFLAGS="-g"
   4096    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4097 /* end confdefs.h.  */
   4098 
   4099 int
   4100 main ()
   4101 {
   4102 
   4103   ;
   4104   return 0;
   4105 }
   4106 _ACEOF
   4107 if ac_fn_c_try_compile "$LINENO"; then :
   4108   ac_cv_prog_cc_g=yes
   4109 else
   4110   CFLAGS=""
   4111       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4112 /* end confdefs.h.  */
   4113 
   4114 int
   4115 main ()
   4116 {
   4117 
   4118   ;
   4119   return 0;
   4120 }
   4121 _ACEOF
   4122 if ac_fn_c_try_compile "$LINENO"; then :
   4123 
   4124 else
   4125   ac_c_werror_flag=$ac_save_c_werror_flag
   4126 	 CFLAGS="-g"
   4127 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4128 /* end confdefs.h.  */
   4129 
   4130 int
   4131 main ()
   4132 {
   4133 
   4134   ;
   4135   return 0;
   4136 }
   4137 _ACEOF
   4138 if ac_fn_c_try_compile "$LINENO"; then :
   4139   ac_cv_prog_cc_g=yes
   4140 fi
   4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4142 fi
   4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4144 fi
   4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4146    ac_c_werror_flag=$ac_save_c_werror_flag
   4147 fi
   4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
   4150 if test "$ac_test_CFLAGS" = set; then
   4151   CFLAGS=$ac_save_CFLAGS
   4152 elif test $ac_cv_prog_cc_g = yes; then
   4153   if test "$GCC" = yes; then
   4154     CFLAGS="-g -O2"
   4155   else
   4156     CFLAGS="-g"
   4157   fi
   4158 else
   4159   if test "$GCC" = yes; then
   4160     CFLAGS="-O2"
   4161   else
   4162     CFLAGS=
   4163   fi
   4164 fi
   4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   4167 if test "${ac_cv_prog_cc_c89+set}" = set; then :
   4168   $as_echo_n "(cached) " >&6
   4169 else
   4170   ac_cv_prog_cc_c89=no
   4171 ac_save_CC=$CC
   4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4173 /* end confdefs.h.  */
   4174 #include <stdarg.h>
   4175 #include <stdio.h>
   4176 #include <sys/types.h>
   4177 #include <sys/stat.h>
   4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4179 struct buf { int x; };
   4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4181 static char *e (p, i)
   4182      char **p;
   4183      int i;
   4184 {
   4185   return p[i];
   4186 }
   4187 static char *f (char * (*g) (char **, int), char **p, ...)
   4188 {
   4189   char *s;
   4190   va_list v;
   4191   va_start (v,p);
   4192   s = g (p, va_arg (v,int));
   4193   va_end (v);
   4194   return s;
   4195 }
   4196 
   4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   4198    function prototypes and stuff, but not '\xHH' hex character constants.
   4199    These don't provoke an error unfortunately, instead are silently treated
   4200    as 'x'.  The following induces an error, until -std is added to get
   4201    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   4202    array size at least.  It's necessary to write '\x00'==0 to get something
   4203    that's true only with -std.  */
   4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   4205 
   4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   4207    inside strings and character constants.  */
   4208 #define FOO(x) 'x'
   4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   4210 
   4211 int test (int i, double x);
   4212 struct s1 {int (*f) (int a);};
   4213 struct s2 {int (*f) (double a);};
   4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4215 int argc;
   4216 char **argv;
   4217 int
   4218 main ()
   4219 {
   4220 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4221   ;
   4222   return 0;
   4223 }
   4224 _ACEOF
   4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4226 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4227 do
   4228   CC="$ac_save_CC $ac_arg"
   4229   if ac_fn_c_try_compile "$LINENO"; then :
   4230   ac_cv_prog_cc_c89=$ac_arg
   4231 fi
   4232 rm -f core conftest.err conftest.$ac_objext
   4233   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4234 done
   4235 rm -f conftest.$ac_ext
   4236 CC=$ac_save_CC
   4237 
   4238 fi
   4239 # AC_CACHE_VAL
   4240 case "x$ac_cv_prog_cc_c89" in
   4241   x)
   4242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4243 $as_echo "none needed" >&6; } ;;
   4244   xno)
   4245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4246 $as_echo "unsupported" >&6; } ;;
   4247   *)
   4248     CC="$CC $ac_cv_prog_cc_c89"
   4249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   4251 esac
   4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
   4253 
   4254 fi
   4255 
   4256 ac_ext=c
   4257 ac_cpp='$CPP $CPPFLAGS'
   4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4261 
   4262 if test "x$CC" != xcc; then
   4263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
   4264 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
   4265 else
   4266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
   4267 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
   4268 fi
   4269 set dummy $CC; ac_cc=`$as_echo "$2" |
   4270 		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   4271 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
   4272   $as_echo_n "(cached) " >&6
   4273 else
   4274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4275 /* end confdefs.h.  */
   4276 
   4277 int
   4278 main ()
   4279 {
   4280 
   4281   ;
   4282   return 0;
   4283 }
   4284 _ACEOF
   4285 # Make sure it works both with $CC and with simple cc.
   4286 # We do the test twice because some compilers refuse to overwrite an
   4287 # existing .o file with -o, though they will create one.
   4288 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   4289 rm -f conftest2.*
   4290 if { { case "(($ac_try" in
   4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4292   *) ac_try_echo=$ac_try;;
   4293 esac
   4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4295 $as_echo "$ac_try_echo"; } >&5
   4296   (eval "$ac_try") 2>&5
   4297   ac_status=$?
   4298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4299   test $ac_status = 0; } &&
   4300    test -f conftest2.$ac_objext && { { case "(($ac_try" in
   4301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4302   *) ac_try_echo=$ac_try;;
   4303 esac
   4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4305 $as_echo "$ac_try_echo"; } >&5
   4306   (eval "$ac_try") 2>&5
   4307   ac_status=$?
   4308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4309   test $ac_status = 0; };
   4310 then
   4311   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   4312   if test "x$CC" != xcc; then
   4313     # Test first that cc exists at all.
   4314     if { ac_try='cc -c conftest.$ac_ext >&5'
   4315   { { case "(($ac_try" in
   4316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4317   *) ac_try_echo=$ac_try;;
   4318 esac
   4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4320 $as_echo "$ac_try_echo"; } >&5
   4321   (eval "$ac_try") 2>&5
   4322   ac_status=$?
   4323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4324   test $ac_status = 0; }; }; then
   4325       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   4326       rm -f conftest2.*
   4327       if { { case "(($ac_try" in
   4328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4329   *) ac_try_echo=$ac_try;;
   4330 esac
   4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4332 $as_echo "$ac_try_echo"; } >&5
   4333   (eval "$ac_try") 2>&5
   4334   ac_status=$?
   4335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4336   test $ac_status = 0; } &&
   4337 	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
   4338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4339   *) ac_try_echo=$ac_try;;
   4340 esac
   4341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4342 $as_echo "$ac_try_echo"; } >&5
   4343   (eval "$ac_try") 2>&5
   4344   ac_status=$?
   4345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4346   test $ac_status = 0; };
   4347       then
   4348 	# cc works too.
   4349 	:
   4350       else
   4351 	# cc exists but doesn't like -o.
   4352 	eval ac_cv_prog_cc_${ac_cc}_c_o=no
   4353       fi
   4354     fi
   4355   fi
   4356 else
   4357   eval ac_cv_prog_cc_${ac_cc}_c_o=no
   4358 fi
   4359 rm -f core conftest*
   4360 
   4361 fi
   4362 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
   4363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4364 $as_echo "yes" >&6; }
   4365 else
   4366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4367 $as_echo "no" >&6; }
   4368 
   4369 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
   4370 
   4371 fi
   4372 
   4373 # expand $ac_aux_dir to an absolute path
   4374 am_aux_dir=`cd $ac_aux_dir && pwd`
   4375 
   4376 # FIXME: we rely on the cache variable name because
   4377 # there is no other way.
   4378 set dummy $CC
   4379 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   4380 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
   4381 if test "$am_t" != yes; then
   4382    # Losing compiler, so override with the script.
   4383    # FIXME: It is wrong to rewrite CC.
   4384    # But if we don't then we get into trouble of one sort or another.
   4385    # A longer-term fix would be to have automake use am__CC in this case,
   4386    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   4387    CC="$am_aux_dir/compile $CC"
   4388 fi
   4389 
   4390 
   4391 ac_ext=cpp
   4392 ac_cpp='$CXXCPP $CPPFLAGS'
   4393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   4396 if test -z "$CXX"; then
   4397   if test -n "$CCC"; then
   4398     CXX=$CCC
   4399   else
   4400     if test -n "$ac_tool_prefix"; then
   4401   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   4402   do
   4403     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4406 $as_echo_n "checking for $ac_word... " >&6; }
   4407 if test "${ac_cv_prog_CXX+set}" = set; then :
   4408   $as_echo_n "(cached) " >&6
   4409 else
   4410   if test -n "$CXX"; then
   4411   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   4412 else
   4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4414 for as_dir in $PATH
   4415 do
   4416   IFS=$as_save_IFS
   4417   test -z "$as_dir" && as_dir=.
   4418     for ac_exec_ext in '' $ac_executable_extensions; do
   4419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4420     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   4421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4422     break 2
   4423   fi
   4424 done
   4425   done
   4426 IFS=$as_save_IFS
   4427 
   4428 fi
   4429 fi
   4430 CXX=$ac_cv_prog_CXX
   4431 if test -n "$CXX"; then
   4432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   4433 $as_echo "$CXX" >&6; }
   4434 else
   4435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4436 $as_echo "no" >&6; }
   4437 fi
   4438 
   4439 
   4440     test -n "$CXX" && break
   4441   done
   4442 fi
   4443 if test -z "$CXX"; then
   4444   ac_ct_CXX=$CXX
   4445   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   4446 do
   4447   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4448 set dummy $ac_prog; ac_word=$2
   4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4450 $as_echo_n "checking for $ac_word... " >&6; }
   4451 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
   4452   $as_echo_n "(cached) " >&6
   4453 else
   4454   if test -n "$ac_ct_CXX"; then
   4455   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   4456 else
   4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4458 for as_dir in $PATH
   4459 do
   4460   IFS=$as_save_IFS
   4461   test -z "$as_dir" && as_dir=.
   4462     for ac_exec_ext in '' $ac_executable_extensions; do
   4463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4464     ac_cv_prog_ac_ct_CXX="$ac_prog"
   4465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4466     break 2
   4467   fi
   4468 done
   4469   done
   4470 IFS=$as_save_IFS
   4471 
   4472 fi
   4473 fi
   4474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   4475 if test -n "$ac_ct_CXX"; then
   4476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   4477 $as_echo "$ac_ct_CXX" >&6; }
   4478 else
   4479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4480 $as_echo "no" >&6; }
   4481 fi
   4482 
   4483 
   4484   test -n "$ac_ct_CXX" && break
   4485 done
   4486 
   4487   if test "x$ac_ct_CXX" = x; then
   4488     CXX="g++"
   4489   else
   4490     case $cross_compiling:$ac_tool_warned in
   4491 yes:)
   4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4494 ac_tool_warned=yes ;;
   4495 esac
   4496     CXX=$ac_ct_CXX
   4497   fi
   4498 fi
   4499 
   4500   fi
   4501 fi
   4502 # Provide some information about the compiler.
   4503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   4504 set X $ac_compile
   4505 ac_compiler=$2
   4506 for ac_option in --version -v -V -qversion; do
   4507   { { ac_try="$ac_compiler $ac_option >&5"
   4508 case "(($ac_try" in
   4509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4510   *) ac_try_echo=$ac_try;;
   4511 esac
   4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4513 $as_echo "$ac_try_echo"; } >&5
   4514   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   4515   ac_status=$?
   4516   if test -s conftest.err; then
   4517     sed '10a\
   4518 ... rest of stderr output deleted ...
   4519          10q' conftest.err >conftest.er1
   4520     cat conftest.er1 >&5
   4521     rm -f conftest.er1 conftest.err
   4522   fi
   4523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4524   test $ac_status = 0; }
   4525 done
   4526 
   4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   4528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   4529 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
   4530   $as_echo_n "(cached) " >&6
   4531 else
   4532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4533 /* end confdefs.h.  */
   4534 
   4535 int
   4536 main ()
   4537 {
   4538 #ifndef __GNUC__
   4539        choke me
   4540 #endif
   4541 
   4542   ;
   4543   return 0;
   4544 }
   4545 _ACEOF
   4546 if ac_fn_cxx_try_compile "$LINENO"; then :
   4547   ac_compiler_gnu=yes
   4548 else
   4549   ac_compiler_gnu=no
   4550 fi
   4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4552 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   4553 
   4554 fi
   4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   4556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   4557 if test $ac_compiler_gnu = yes; then
   4558   GXX=yes
   4559 else
   4560   GXX=
   4561 fi
   4562 ac_test_CXXFLAGS=${CXXFLAGS+set}
   4563 ac_save_CXXFLAGS=$CXXFLAGS
   4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   4565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   4566 if test "${ac_cv_prog_cxx_g+set}" = set; then :
   4567   $as_echo_n "(cached) " >&6
   4568 else
   4569   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   4570    ac_cxx_werror_flag=yes
   4571    ac_cv_prog_cxx_g=no
   4572    CXXFLAGS="-g"
   4573    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4574 /* end confdefs.h.  */
   4575 
   4576 int
   4577 main ()
   4578 {
   4579 
   4580   ;
   4581   return 0;
   4582 }
   4583 _ACEOF
   4584 if ac_fn_cxx_try_compile "$LINENO"; then :
   4585   ac_cv_prog_cxx_g=yes
   4586 else
   4587   CXXFLAGS=""
   4588       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4589 /* end confdefs.h.  */
   4590 
   4591 int
   4592 main ()
   4593 {
   4594 
   4595   ;
   4596   return 0;
   4597 }
   4598 _ACEOF
   4599 if ac_fn_cxx_try_compile "$LINENO"; then :
   4600 
   4601 else
   4602   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   4603 	 CXXFLAGS="-g"
   4604 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4605 /* end confdefs.h.  */
   4606 
   4607 int
   4608 main ()
   4609 {
   4610 
   4611   ;
   4612   return 0;
   4613 }
   4614 _ACEOF
   4615 if ac_fn_cxx_try_compile "$LINENO"; then :
   4616   ac_cv_prog_cxx_g=yes
   4617 fi
   4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4619 fi
   4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4621 fi
   4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4623    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   4624 fi
   4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   4626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   4627 if test "$ac_test_CXXFLAGS" = set; then
   4628   CXXFLAGS=$ac_save_CXXFLAGS
   4629 elif test $ac_cv_prog_cxx_g = yes; then
   4630   if test "$GXX" = yes; then
   4631     CXXFLAGS="-g -O2"
   4632   else
   4633     CXXFLAGS="-g"
   4634   fi
   4635 else
   4636   if test "$GXX" = yes; then
   4637     CXXFLAGS="-O2"
   4638   else
   4639     CXXFLAGS=
   4640   fi
   4641 fi
   4642 ac_ext=c
   4643 ac_cpp='$CPP $CPPFLAGS'
   4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4647 
   4648 
   4649 
   4650 
   4651 if test -n "$ac_tool_prefix"; then
   4652   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
   4653 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
   4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4655 $as_echo_n "checking for $ac_word... " >&6; }
   4656 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
   4657   $as_echo_n "(cached) " >&6
   4658 else
   4659   if test -n "$GNATBIND"; then
   4660   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
   4661 else
   4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4663 for as_dir in $PATH
   4664 do
   4665   IFS=$as_save_IFS
   4666   test -z "$as_dir" && as_dir=.
   4667     for ac_exec_ext in '' $ac_executable_extensions; do
   4668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4669     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
   4670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4671     break 2
   4672   fi
   4673 done
   4674   done
   4675 IFS=$as_save_IFS
   4676 
   4677 fi
   4678 fi
   4679 GNATBIND=$ac_cv_prog_GNATBIND
   4680 if test -n "$GNATBIND"; then
   4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
   4682 $as_echo "$GNATBIND" >&6; }
   4683 else
   4684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4685 $as_echo "no" >&6; }
   4686 fi
   4687 
   4688 
   4689 fi
   4690 if test -z "$ac_cv_prog_GNATBIND"; then
   4691   ac_ct_GNATBIND=$GNATBIND
   4692   # Extract the first word of "gnatbind", so it can be a program name with args.
   4693 set dummy gnatbind; ac_word=$2
   4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4695 $as_echo_n "checking for $ac_word... " >&6; }
   4696 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
   4697   $as_echo_n "(cached) " >&6
   4698 else
   4699   if test -n "$ac_ct_GNATBIND"; then
   4700   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
   4701 else
   4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4703 for as_dir in $PATH
   4704 do
   4705   IFS=$as_save_IFS
   4706   test -z "$as_dir" && as_dir=.
   4707     for ac_exec_ext in '' $ac_executable_extensions; do
   4708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4709     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
   4710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4711     break 2
   4712   fi
   4713 done
   4714   done
   4715 IFS=$as_save_IFS
   4716 
   4717 fi
   4718 fi
   4719 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
   4720 if test -n "$ac_ct_GNATBIND"; then
   4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
   4722 $as_echo "$ac_ct_GNATBIND" >&6; }
   4723 else
   4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4725 $as_echo "no" >&6; }
   4726 fi
   4727 
   4728   if test "x$ac_ct_GNATBIND" = x; then
   4729     GNATBIND="no"
   4730   else
   4731     case $cross_compiling:$ac_tool_warned in
   4732 yes:)
   4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4735 ac_tool_warned=yes ;;
   4736 esac
   4737     GNATBIND=$ac_ct_GNATBIND
   4738   fi
   4739 else
   4740   GNATBIND="$ac_cv_prog_GNATBIND"
   4741 fi
   4742 
   4743 if test -n "$ac_tool_prefix"; then
   4744   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
   4745 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
   4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4747 $as_echo_n "checking for $ac_word... " >&6; }
   4748 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
   4749   $as_echo_n "(cached) " >&6
   4750 else
   4751   if test -n "$GNATMAKE"; then
   4752   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
   4753 else
   4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4755 for as_dir in $PATH
   4756 do
   4757   IFS=$as_save_IFS
   4758   test -z "$as_dir" && as_dir=.
   4759     for ac_exec_ext in '' $ac_executable_extensions; do
   4760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4761     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
   4762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4763     break 2
   4764   fi
   4765 done
   4766   done
   4767 IFS=$as_save_IFS
   4768 
   4769 fi
   4770 fi
   4771 GNATMAKE=$ac_cv_prog_GNATMAKE
   4772 if test -n "$GNATMAKE"; then
   4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
   4774 $as_echo "$GNATMAKE" >&6; }
   4775 else
   4776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4777 $as_echo "no" >&6; }
   4778 fi
   4779 
   4780 
   4781 fi
   4782 if test -z "$ac_cv_prog_GNATMAKE"; then
   4783   ac_ct_GNATMAKE=$GNATMAKE
   4784   # Extract the first word of "gnatmake", so it can be a program name with args.
   4785 set dummy gnatmake; ac_word=$2
   4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4787 $as_echo_n "checking for $ac_word... " >&6; }
   4788 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
   4789   $as_echo_n "(cached) " >&6
   4790 else
   4791   if test -n "$ac_ct_GNATMAKE"; then
   4792   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
   4793 else
   4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4795 for as_dir in $PATH
   4796 do
   4797   IFS=$as_save_IFS
   4798   test -z "$as_dir" && as_dir=.
   4799     for ac_exec_ext in '' $ac_executable_extensions; do
   4800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4801     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
   4802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4803     break 2
   4804   fi
   4805 done
   4806   done
   4807 IFS=$as_save_IFS
   4808 
   4809 fi
   4810 fi
   4811 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
   4812 if test -n "$ac_ct_GNATMAKE"; then
   4813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
   4814 $as_echo "$ac_ct_GNATMAKE" >&6; }
   4815 else
   4816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4817 $as_echo "no" >&6; }
   4818 fi
   4819 
   4820   if test "x$ac_ct_GNATMAKE" = x; then
   4821     GNATMAKE="no"
   4822   else
   4823     case $cross_compiling:$ac_tool_warned in
   4824 yes:)
   4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4827 ac_tool_warned=yes ;;
   4828 esac
   4829     GNATMAKE=$ac_ct_GNATMAKE
   4830   fi
   4831 else
   4832   GNATMAKE="$ac_cv_prog_GNATMAKE"
   4833 fi
   4834 
   4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
   4836 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
   4837 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
   4838   $as_echo_n "(cached) " >&6
   4839 else
   4840   cat >conftest.adb <<EOF
   4841 procedure conftest is begin null; end conftest;
   4842 EOF
   4843 acx_cv_cc_gcc_supports_ada=no
   4844 # There is a bug in old released versions of GCC which causes the
   4845 # driver to exit successfully when the appropriate language module
   4846 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
   4847 # Therefore we must check for the error message as well as an
   4848 # unsuccessful exit.
   4849 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
   4850 # given a .adb file, but produce no object file.  So we must check
   4851 # if an object file was really produced to guard against this.
   4852 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
   4853 if test x"$errors" = x && test -f conftest.$ac_objext; then
   4854   acx_cv_cc_gcc_supports_ada=yes
   4855 fi
   4856 rm -f conftest.*
   4857 fi
   4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
   4859 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
   4860 
   4861 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
   4862   have_gnat=yes
   4863 else
   4864   have_gnat=no
   4865 fi
   4866 
   4867 
   4868 # autoconf is lame and doesn't give us any substitution variable for this.
   4869 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
   4870   NO_MINUS_C_MINUS_O=yes
   4871 else
   4872   OUTPUT_OPTION='-o $@'
   4873 fi
   4874 
   4875 
   4876 
   4877 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
   4878 # optimizations to be activated explicitly by the toplevel.
   4879 case "$CC" in
   4880   */prev-gcc/xgcc*) ;;
   4881   *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" `
   4882      CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ 	]//" -e "s/-O[gs][ 	]//" -e "s/-O[0-9]*[ 	]//" ` ;;
   4883 esac
   4884 
   4885 
   4886 
   4887 # Determine PICFLAG for target gnatlib.
   4888 
   4889 
   4890 
   4891 
   4892 case "${target}" in
   4893     # PIC is the default on some targets or must not be used.
   4894     *-*-darwin*)
   4895 	# PIC is the default on this platform
   4896 	# Common symbols not allowed in MH_DYLIB files
   4897 	PICFLAG_FOR_TARGET=-fno-common
   4898 	;;
   4899     alpha*-dec-osf5*)
   4900 	# PIC is the default.
   4901 	;;
   4902     hppa*64*-*-hpux*)
   4903 	# PIC is the default for 64-bit PA HP-UX.
   4904 	;;
   4905     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
   4906 	;;
   4907     i[34567]86-*-interix[3-9]*)
   4908 	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
   4909 	# Instead, we relocate shared libraries at runtime.
   4910 	;;
   4911     i[34567]86-*-nto-qnx*)
   4912 	# QNX uses GNU C++, but need to define -shared option too, otherwise
   4913 	# it will coredump.
   4914 	PICFLAG_FOR_TARGET='-fPIC -shared'
   4915 	;;
   4916     i[34567]86-pc-msdosdjgpp*)
   4917 	# DJGPP does not support shared libraries at all.
   4918 	;;
   4919     ia64*-*-hpux*)
   4920 	# On IA64 HP-UX, PIC is the default but the pic flag
   4921 	# sets the default TLS model and affects inlining.
   4922 	PICFLAG_FOR_TARGET=-fPIC
   4923 	;;
   4924     mips-sgi-irix6*)
   4925 	# PIC is the default.
   4926 	;;
   4927     rs6000-ibm-aix* | powerpc-ibm-aix*)
   4928 	# All AIX code is PIC.
   4929 	;;
   4930 
   4931     # Some targets support both -fPIC and -fpic, but prefer the latter.
   4932     # FIXME: Why?
   4933     i[34567]86-*-* | x86_64-*-*)
   4934 	PICFLAG_FOR_TARGET=-fpic
   4935 	;;
   4936     m68k-*-*)
   4937 	PICFLAG_FOR_TARGET=-fpic
   4938 	;;
   4939     # FIXME: Override -fPIC default in libgcc only?
   4940     sh-*-linux* | sh[2346lbe]*-*-linux*)
   4941 	PICFLAG_FOR_TARGET=-fpic
   4942 	;;
   4943     # FIXME: Simplify to sh*-*-netbsd*?
   4944     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
   4945       sh64-*-netbsd* | sh64l*-*-netbsd*)
   4946 	PICFLAG_FOR_TARGET=-fpic
   4947 	;;
   4948     # Default to -fPIC unless specified otherwise.
   4949     *)
   4950 	PICFLAG_FOR_TARGET=-fPIC
   4951 	;;
   4952 esac
   4953 
   4954 # If the user explicitly uses -fpic/-fPIC, keep that.
   4955 case "${CFLAGS_FOR_TARGET}" in
   4956     *-fpic*)
   4957 	PICFLAG_FOR_TARGET=-fpic
   4958 	;;
   4959     *-fPIC*)
   4960 	PICFLAG_FOR_TARGET=-fPIC
   4961 	;;
   4962 esac
   4963 
   4964 
   4965 
   4966 # -------------------------
   4967 # Check C compiler features
   4968 # -------------------------
   4969 
   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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4977 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4978 # On Suns, sometimes $CPP names a directory.
   4979 if test -n "$CPP" && test -d "$CPP"; then
   4980   CPP=
   4981 fi
   4982 if test -z "$CPP"; then
   4983   if test "${ac_cv_prog_CPP+set}" = set; then :
   4984   $as_echo_n "(cached) " >&6
   4985 else
   4986       # Double quotes because CPP needs to be expanded
   4987     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4988     do
   4989       ac_preproc_ok=false
   4990 for ac_c_preproc_warn_flag in '' yes
   4991 do
   4992   # Use a header file that comes with gcc, so configuring glibc
   4993   # with a fresh cross-compiler works.
   4994   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4995   # <limits.h> exists even on freestanding compilers.
   4996   # On the NeXT, cc -E runs the code through the compiler's parser,
   4997   # not just through cpp. "Syntax error" is here to catch this case.
   4998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4999 /* end confdefs.h.  */
   5000 #ifdef __STDC__
   5001 # include <limits.h>
   5002 #else
   5003 # include <assert.h>
   5004 #endif
   5005 		     Syntax error
   5006 _ACEOF
   5007 if ac_fn_c_try_cpp "$LINENO"; then :
   5008 
   5009 else
   5010   # Broken: fails on valid input.
   5011 continue
   5012 fi
   5013 rm -f conftest.err conftest.$ac_ext
   5014 
   5015   # OK, works on sane cases.  Now check whether nonexistent headers
   5016   # can be detected and how.
   5017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5018 /* end confdefs.h.  */
   5019 #include <ac_nonexistent.h>
   5020 _ACEOF
   5021 if ac_fn_c_try_cpp "$LINENO"; then :
   5022   # Broken: success on invalid input.
   5023 continue
   5024 else
   5025   # Passes both tests.
   5026 ac_preproc_ok=:
   5027 break
   5028 fi
   5029 rm -f conftest.err conftest.$ac_ext
   5030 
   5031 done
   5032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5033 rm -f conftest.err conftest.$ac_ext
   5034 if $ac_preproc_ok; then :
   5035   break
   5036 fi
   5037 
   5038     done
   5039     ac_cv_prog_CPP=$CPP
   5040 
   5041 fi
   5042   CPP=$ac_cv_prog_CPP
   5043 else
   5044   ac_cv_prog_CPP=$CPP
   5045 fi
   5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   5047 $as_echo "$CPP" >&6; }
   5048 ac_preproc_ok=false
   5049 for ac_c_preproc_warn_flag in '' yes
   5050 do
   5051   # Use a header file that comes with gcc, so configuring glibc
   5052   # with a fresh cross-compiler works.
   5053   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5054   # <limits.h> exists even on freestanding compilers.
   5055   # On the NeXT, cc -E runs the code through the compiler's parser,
   5056   # not just through cpp. "Syntax error" is here to catch this case.
   5057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5058 /* end confdefs.h.  */
   5059 #ifdef __STDC__
   5060 # include <limits.h>
   5061 #else
   5062 # include <assert.h>
   5063 #endif
   5064 		     Syntax error
   5065 _ACEOF
   5066 if ac_fn_c_try_cpp "$LINENO"; then :
   5067 
   5068 else
   5069   # Broken: fails on valid input.
   5070 continue
   5071 fi
   5072 rm -f conftest.err conftest.$ac_ext
   5073 
   5074   # OK, works on sane cases.  Now check whether nonexistent headers
   5075   # can be detected and how.
   5076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5077 /* end confdefs.h.  */
   5078 #include <ac_nonexistent.h>
   5079 _ACEOF
   5080 if ac_fn_c_try_cpp "$LINENO"; then :
   5081   # Broken: success on invalid input.
   5082 continue
   5083 else
   5084   # Passes both tests.
   5085 ac_preproc_ok=:
   5086 break
   5087 fi
   5088 rm -f conftest.err conftest.$ac_ext
   5089 
   5090 done
   5091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5092 rm -f conftest.err conftest.$ac_ext
   5093 if $ac_preproc_ok; then :
   5094 
   5095 else
   5096   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5098 as_fn_error "C preprocessor \"$CPP\" fails sanity check
   5099 See \`config.log' for more details." "$LINENO" 5; }
   5100 fi
   5101 
   5102 ac_ext=c
   5103 ac_cpp='$CPP $CPPFLAGS'
   5104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5107 
   5108 
   5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   5110 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   5111 if test "${ac_cv_path_GREP+set}" = set; then :
   5112   $as_echo_n "(cached) " >&6
   5113 else
   5114   if test -z "$GREP"; then
   5115   ac_path_GREP_found=false
   5116   # Loop through the user's path and test for each of PROGNAME-LIST
   5117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5119 do
   5120   IFS=$as_save_IFS
   5121   test -z "$as_dir" && as_dir=.
   5122     for ac_prog in grep ggrep; do
   5123     for ac_exec_ext in '' $ac_executable_extensions; do
   5124       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   5125       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   5126 # Check for GNU ac_path_GREP and select it if it is found.
   5127   # Check for GNU $ac_path_GREP
   5128 case `"$ac_path_GREP" --version 2>&1` in
   5129 *GNU*)
   5130   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   5131 *)
   5132   ac_count=0
   5133   $as_echo_n 0123456789 >"conftest.in"
   5134   while :
   5135   do
   5136     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5137     mv "conftest.tmp" "conftest.in"
   5138     cp "conftest.in" "conftest.nl"
   5139     $as_echo 'GREP' >> "conftest.nl"
   5140     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5141     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5142     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5143     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   5144       # Best one so far, save it but keep looking for a better one
   5145       ac_cv_path_GREP="$ac_path_GREP"
   5146       ac_path_GREP_max=$ac_count
   5147     fi
   5148     # 10*(2^10) chars as input seems more than enough
   5149     test $ac_count -gt 10 && break
   5150   done
   5151   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5152 esac
   5153 
   5154       $ac_path_GREP_found && break 3
   5155     done
   5156   done
   5157   done
   5158 IFS=$as_save_IFS
   5159   if test -z "$ac_cv_path_GREP"; then
   5160     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5161   fi
   5162 else
   5163   ac_cv_path_GREP=$GREP
   5164 fi
   5165 
   5166 fi
   5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   5168 $as_echo "$ac_cv_path_GREP" >&6; }
   5169  GREP="$ac_cv_path_GREP"
   5170 
   5171 
   5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   5173 $as_echo_n "checking for egrep... " >&6; }
   5174 if test "${ac_cv_path_EGREP+set}" = set; then :
   5175   $as_echo_n "(cached) " >&6
   5176 else
   5177   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   5178    then ac_cv_path_EGREP="$GREP -E"
   5179    else
   5180      if test -z "$EGREP"; then
   5181   ac_path_EGREP_found=false
   5182   # Loop through the user's path and test for each of PROGNAME-LIST
   5183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5185 do
   5186   IFS=$as_save_IFS
   5187   test -z "$as_dir" && as_dir=.
   5188     for ac_prog in egrep; do
   5189     for ac_exec_ext in '' $ac_executable_extensions; do
   5190       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   5191       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   5192 # Check for GNU ac_path_EGREP and select it if it is found.
   5193   # Check for GNU $ac_path_EGREP
   5194 case `"$ac_path_EGREP" --version 2>&1` in
   5195 *GNU*)
   5196   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   5197 *)
   5198   ac_count=0
   5199   $as_echo_n 0123456789 >"conftest.in"
   5200   while :
   5201   do
   5202     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5203     mv "conftest.tmp" "conftest.in"
   5204     cp "conftest.in" "conftest.nl"
   5205     $as_echo 'EGREP' >> "conftest.nl"
   5206     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5207     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5208     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5209     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5210       # Best one so far, save it but keep looking for a better one
   5211       ac_cv_path_EGREP="$ac_path_EGREP"
   5212       ac_path_EGREP_max=$ac_count
   5213     fi
   5214     # 10*(2^10) chars as input seems more than enough
   5215     test $ac_count -gt 10 && break
   5216   done
   5217   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5218 esac
   5219 
   5220       $ac_path_EGREP_found && break 3
   5221     done
   5222   done
   5223   done
   5224 IFS=$as_save_IFS
   5225   if test -z "$ac_cv_path_EGREP"; then
   5226     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5227   fi
   5228 else
   5229   ac_cv_path_EGREP=$EGREP
   5230 fi
   5231 
   5232    fi
   5233 fi
   5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   5235 $as_echo "$ac_cv_path_EGREP" >&6; }
   5236  EGREP="$ac_cv_path_EGREP"
   5237 
   5238 
   5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   5240 $as_echo_n "checking for ANSI C header files... " >&6; }
   5241 if test "${ac_cv_header_stdc+set}" = set; then :
   5242   $as_echo_n "(cached) " >&6
   5243 else
   5244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5245 /* end confdefs.h.  */
   5246 #include <stdlib.h>
   5247 #include <stdarg.h>
   5248 #include <string.h>
   5249 #include <float.h>
   5250 
   5251 int
   5252 main ()
   5253 {
   5254 
   5255   ;
   5256   return 0;
   5257 }
   5258 _ACEOF
   5259 if ac_fn_c_try_compile "$LINENO"; then :
   5260   ac_cv_header_stdc=yes
   5261 else
   5262   ac_cv_header_stdc=no
   5263 fi
   5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5265 
   5266 if test $ac_cv_header_stdc = yes; then
   5267   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   5268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5269 /* end confdefs.h.  */
   5270 #include <string.h>
   5271 
   5272 _ACEOF
   5273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5274   $EGREP "memchr" >/dev/null 2>&1; then :
   5275 
   5276 else
   5277   ac_cv_header_stdc=no
   5278 fi
   5279 rm -f conftest*
   5280 
   5281 fi
   5282 
   5283 if test $ac_cv_header_stdc = yes; then
   5284   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   5285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5286 /* end confdefs.h.  */
   5287 #include <stdlib.h>
   5288 
   5289 _ACEOF
   5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5291   $EGREP "free" >/dev/null 2>&1; then :
   5292 
   5293 else
   5294   ac_cv_header_stdc=no
   5295 fi
   5296 rm -f conftest*
   5297 
   5298 fi
   5299 
   5300 if test $ac_cv_header_stdc = yes; then
   5301   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   5302   if test "$cross_compiling" = yes; then :
   5303   :
   5304 else
   5305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5306 /* end confdefs.h.  */
   5307 #include <ctype.h>
   5308 #include <stdlib.h>
   5309 #if ((' ' & 0x0FF) == 0x020)
   5310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   5311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   5312 #else
   5313 # define ISLOWER(c) \
   5314 		   (('a' <= (c) && (c) <= 'i') \
   5315 		     || ('j' <= (c) && (c) <= 'r') \
   5316 		     || ('s' <= (c) && (c) <= 'z'))
   5317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   5318 #endif
   5319 
   5320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   5321 int
   5322 main ()
   5323 {
   5324   int i;
   5325   for (i = 0; i < 256; i++)
   5326     if (XOR (islower (i), ISLOWER (i))
   5327 	|| toupper (i) != TOUPPER (i))
   5328       return 2;
   5329   return 0;
   5330 }
   5331 _ACEOF
   5332 if ac_fn_c_try_run "$LINENO"; then :
   5333 
   5334 else
   5335   ac_cv_header_stdc=no
   5336 fi
   5337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5338   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5339 fi
   5340 
   5341 fi
   5342 fi
   5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   5344 $as_echo "$ac_cv_header_stdc" >&6; }
   5345 if test $ac_cv_header_stdc = yes; then
   5346 
   5347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   5348 
   5349 fi
   5350 
   5351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   5352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   5353 		  inttypes.h stdint.h unistd.h
   5354 do :
   5355   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5356 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   5357 "
   5358 eval as_val=\$$as_ac_Header
   5359    if test "x$as_val" = x""yes; then :
   5360   cat >>confdefs.h <<_ACEOF
   5361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5362 _ACEOF
   5363 
   5364 fi
   5365 
   5366 done
   5367 
   5368 
   5369 
   5370   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   5371 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
   5372   MINIX=yes
   5373 else
   5374   MINIX=
   5375 fi
   5376 
   5377 
   5378   if test "$MINIX" = yes; then
   5379 
   5380 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   5381 
   5382 
   5383 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   5384 
   5385 
   5386 $as_echo "#define _MINIX 1" >>confdefs.h
   5387 
   5388   fi
   5389 
   5390 
   5391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   5392 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   5393 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
   5394   $as_echo_n "(cached) " >&6
   5395 else
   5396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5397 /* end confdefs.h.  */
   5398 
   5399 #	  define __EXTENSIONS__ 1
   5400 	  $ac_includes_default
   5401 int
   5402 main ()
   5403 {
   5404 
   5405   ;
   5406   return 0;
   5407 }
   5408 _ACEOF
   5409 if ac_fn_c_try_compile "$LINENO"; then :
   5410   ac_cv_safe_to_define___extensions__=yes
   5411 else
   5412   ac_cv_safe_to_define___extensions__=no
   5413 fi
   5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5415 fi
   5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   5417 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   5418   test $ac_cv_safe_to_define___extensions__ = yes &&
   5419     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   5420 
   5421   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   5422 
   5423   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   5424 
   5425   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   5426 
   5427   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   5428 
   5429 
   5430 ac_ext=c
   5431 ac_cpp='$CPP $CPPFLAGS'
   5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   5436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   5437 # On Suns, sometimes $CPP names a directory.
   5438 if test -n "$CPP" && test -d "$CPP"; then
   5439   CPP=
   5440 fi
   5441 if test -z "$CPP"; then
   5442   if test "${ac_cv_prog_CPP+set}" = set; then :
   5443   $as_echo_n "(cached) " >&6
   5444 else
   5445       # Double quotes because CPP needs to be expanded
   5446     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   5447     do
   5448       ac_preproc_ok=false
   5449 for ac_c_preproc_warn_flag in '' yes
   5450 do
   5451   # Use a header file that comes with gcc, so configuring glibc
   5452   # with a fresh cross-compiler works.
   5453   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5454   # <limits.h> exists even on freestanding compilers.
   5455   # On the NeXT, cc -E runs the code through the compiler's parser,
   5456   # not just through cpp. "Syntax error" is here to catch this case.
   5457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5458 /* end confdefs.h.  */
   5459 #ifdef __STDC__
   5460 # include <limits.h>
   5461 #else
   5462 # include <assert.h>
   5463 #endif
   5464 		     Syntax error
   5465 _ACEOF
   5466 if ac_fn_c_try_cpp "$LINENO"; then :
   5467 
   5468 else
   5469   # Broken: fails on valid input.
   5470 continue
   5471 fi
   5472 rm -f conftest.err conftest.$ac_ext
   5473 
   5474   # OK, works on sane cases.  Now check whether nonexistent headers
   5475   # can be detected and how.
   5476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5477 /* end confdefs.h.  */
   5478 #include <ac_nonexistent.h>
   5479 _ACEOF
   5480 if ac_fn_c_try_cpp "$LINENO"; then :
   5481   # Broken: success on invalid input.
   5482 continue
   5483 else
   5484   # Passes both tests.
   5485 ac_preproc_ok=:
   5486 break
   5487 fi
   5488 rm -f conftest.err conftest.$ac_ext
   5489 
   5490 done
   5491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5492 rm -f conftest.err conftest.$ac_ext
   5493 if $ac_preproc_ok; then :
   5494   break
   5495 fi
   5496 
   5497     done
   5498     ac_cv_prog_CPP=$CPP
   5499 
   5500 fi
   5501   CPP=$ac_cv_prog_CPP
   5502 else
   5503   ac_cv_prog_CPP=$CPP
   5504 fi
   5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   5506 $as_echo "$CPP" >&6; }
   5507 ac_preproc_ok=false
   5508 for ac_c_preproc_warn_flag in '' yes
   5509 do
   5510   # Use a header file that comes with gcc, so configuring glibc
   5511   # with a fresh cross-compiler works.
   5512   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5513   # <limits.h> exists even on freestanding compilers.
   5514   # On the NeXT, cc -E runs the code through the compiler's parser,
   5515   # not just through cpp. "Syntax error" is here to catch this case.
   5516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5517 /* end confdefs.h.  */
   5518 #ifdef __STDC__
   5519 # include <limits.h>
   5520 #else
   5521 # include <assert.h>
   5522 #endif
   5523 		     Syntax error
   5524 _ACEOF
   5525 if ac_fn_c_try_cpp "$LINENO"; then :
   5526 
   5527 else
   5528   # Broken: fails on valid input.
   5529 continue
   5530 fi
   5531 rm -f conftest.err conftest.$ac_ext
   5532 
   5533   # OK, works on sane cases.  Now check whether nonexistent headers
   5534   # can be detected and how.
   5535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5536 /* end confdefs.h.  */
   5537 #include <ac_nonexistent.h>
   5538 _ACEOF
   5539 if ac_fn_c_try_cpp "$LINENO"; then :
   5540   # Broken: success on invalid input.
   5541 continue
   5542 else
   5543   # Passes both tests.
   5544 ac_preproc_ok=:
   5545 break
   5546 fi
   5547 rm -f conftest.err conftest.$ac_ext
   5548 
   5549 done
   5550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5551 rm -f conftest.err conftest.$ac_ext
   5552 if $ac_preproc_ok; then :
   5553 
   5554 else
   5555   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5557 as_fn_error "C preprocessor \"$CPP\" fails sanity check
   5558 See \`config.log' for more details." "$LINENO" 5; }
   5559 fi
   5560 
   5561 ac_ext=c
   5562 ac_cpp='$CPP $CPPFLAGS'
   5563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5566 
   5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   5568 $as_echo_n "checking for inline... " >&6; }
   5569 if test "${ac_cv_c_inline+set}" = set; then :
   5570   $as_echo_n "(cached) " >&6
   5571 else
   5572   ac_cv_c_inline=no
   5573 for ac_kw in inline __inline__ __inline; do
   5574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5575 /* end confdefs.h.  */
   5576 #ifndef __cplusplus
   5577 typedef int foo_t;
   5578 static $ac_kw foo_t static_foo () {return 0; }
   5579 $ac_kw foo_t foo () {return 0; }
   5580 #endif
   5581 
   5582 _ACEOF
   5583 if ac_fn_c_try_compile "$LINENO"; then :
   5584   ac_cv_c_inline=$ac_kw
   5585 fi
   5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5587   test "$ac_cv_c_inline" != no && break
   5588 done
   5589 
   5590 fi
   5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   5592 $as_echo "$ac_cv_c_inline" >&6; }
   5593 
   5594 case $ac_cv_c_inline in
   5595   inline | yes) ;;
   5596   *)
   5597     case $ac_cv_c_inline in
   5598       no) ac_val=;;
   5599       *) ac_val=$ac_cv_c_inline;;
   5600     esac
   5601     cat >>confdefs.h <<_ACEOF
   5602 #ifndef __cplusplus
   5603 #define inline $ac_val
   5604 #endif
   5605 _ACEOF
   5606     ;;
   5607 esac
   5608 
   5609 
   5610 # Check whether --enable-largefile was given.
   5611 if test "${enable_largefile+set}" = set; then :
   5612   enableval=$enable_largefile;
   5613 fi
   5614 
   5615 if test "$enable_largefile" != no; then
   5616 
   5617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   5618 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   5619 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
   5620   $as_echo_n "(cached) " >&6
   5621 else
   5622   ac_cv_sys_largefile_CC=no
   5623      if test "$GCC" != yes; then
   5624        ac_save_CC=$CC
   5625        while :; do
   5626 	 # IRIX 6.2 and later do not support large files by default,
   5627 	 # so use the C compiler's -n32 option if that helps.
   5628 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5629 /* end confdefs.h.  */
   5630 #include <sys/types.h>
   5631  /* Check that off_t can represent 2**63 - 1 correctly.
   5632     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5633     since some C++ compilers masquerading as C compilers
   5634     incorrectly reject 9223372036854775807.  */
   5635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5636   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5637 		       && LARGE_OFF_T % 2147483647 == 1)
   5638 		      ? 1 : -1];
   5639 int
   5640 main ()
   5641 {
   5642 
   5643   ;
   5644   return 0;
   5645 }
   5646 _ACEOF
   5647 	 if ac_fn_c_try_compile "$LINENO"; then :
   5648   break
   5649 fi
   5650 rm -f core conftest.err conftest.$ac_objext
   5651 	 CC="$CC -n32"
   5652 	 if ac_fn_c_try_compile "$LINENO"; then :
   5653   ac_cv_sys_largefile_CC=' -n32'; break
   5654 fi
   5655 rm -f core conftest.err conftest.$ac_objext
   5656 	 break
   5657        done
   5658        CC=$ac_save_CC
   5659        rm -f conftest.$ac_ext
   5660     fi
   5661 fi
   5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   5663 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   5664   if test "$ac_cv_sys_largefile_CC" != no; then
   5665     CC=$CC$ac_cv_sys_largefile_CC
   5666   fi
   5667 
   5668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   5669 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   5670 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
   5671   $as_echo_n "(cached) " >&6
   5672 else
   5673   while :; do
   5674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5675 /* end confdefs.h.  */
   5676 #include <sys/types.h>
   5677  /* Check that off_t can represent 2**63 - 1 correctly.
   5678     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5679     since some C++ compilers masquerading as C compilers
   5680     incorrectly reject 9223372036854775807.  */
   5681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5682   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5683 		       && LARGE_OFF_T % 2147483647 == 1)
   5684 		      ? 1 : -1];
   5685 int
   5686 main ()
   5687 {
   5688 
   5689   ;
   5690   return 0;
   5691 }
   5692 _ACEOF
   5693 if ac_fn_c_try_compile "$LINENO"; then :
   5694   ac_cv_sys_file_offset_bits=no; break
   5695 fi
   5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5698 /* end confdefs.h.  */
   5699 #define _FILE_OFFSET_BITS 64
   5700 #include <sys/types.h>
   5701  /* Check that off_t can represent 2**63 - 1 correctly.
   5702     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5703     since some C++ compilers masquerading as C compilers
   5704     incorrectly reject 9223372036854775807.  */
   5705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5706   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5707 		       && LARGE_OFF_T % 2147483647 == 1)
   5708 		      ? 1 : -1];
   5709 int
   5710 main ()
   5711 {
   5712 
   5713   ;
   5714   return 0;
   5715 }
   5716 _ACEOF
   5717 if ac_fn_c_try_compile "$LINENO"; then :
   5718   ac_cv_sys_file_offset_bits=64; break
   5719 fi
   5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5721   ac_cv_sys_file_offset_bits=unknown
   5722   break
   5723 done
   5724 fi
   5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   5726 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   5727 case $ac_cv_sys_file_offset_bits in #(
   5728   no | unknown) ;;
   5729   *)
   5730 cat >>confdefs.h <<_ACEOF
   5731 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   5732 _ACEOF
   5733 ;;
   5734 esac
   5735 rm -rf conftest*
   5736   if test $ac_cv_sys_file_offset_bits = unknown; then
   5737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   5738 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   5739 if test "${ac_cv_sys_large_files+set}" = set; then :
   5740   $as_echo_n "(cached) " >&6
   5741 else
   5742   while :; do
   5743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5744 /* end confdefs.h.  */
   5745 #include <sys/types.h>
   5746  /* Check that off_t can represent 2**63 - 1 correctly.
   5747     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5748     since some C++ compilers masquerading as C compilers
   5749     incorrectly reject 9223372036854775807.  */
   5750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5751   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5752 		       && LARGE_OFF_T % 2147483647 == 1)
   5753 		      ? 1 : -1];
   5754 int
   5755 main ()
   5756 {
   5757 
   5758   ;
   5759   return 0;
   5760 }
   5761 _ACEOF
   5762 if ac_fn_c_try_compile "$LINENO"; then :
   5763   ac_cv_sys_large_files=no; break
   5764 fi
   5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5767 /* end confdefs.h.  */
   5768 #define _LARGE_FILES 1
   5769 #include <sys/types.h>
   5770  /* Check that off_t can represent 2**63 - 1 correctly.
   5771     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5772     since some C++ compilers masquerading as C compilers
   5773     incorrectly reject 9223372036854775807.  */
   5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5775   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5776 		       && LARGE_OFF_T % 2147483647 == 1)
   5777 		      ? 1 : -1];
   5778 int
   5779 main ()
   5780 {
   5781 
   5782   ;
   5783   return 0;
   5784 }
   5785 _ACEOF
   5786 if ac_fn_c_try_compile "$LINENO"; then :
   5787   ac_cv_sys_large_files=1; break
   5788 fi
   5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5790   ac_cv_sys_large_files=unknown
   5791   break
   5792 done
   5793 fi
   5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   5795 $as_echo "$ac_cv_sys_large_files" >&6; }
   5796 case $ac_cv_sys_large_files in #(
   5797   no | unknown) ;;
   5798   *)
   5799 cat >>confdefs.h <<_ACEOF
   5800 #define _LARGE_FILES $ac_cv_sys_large_files
   5801 _ACEOF
   5802 ;;
   5803 esac
   5804 rm -rf conftest*
   5805   fi
   5806 fi
   5807 
   5808 
   5809 # sizeof(char) is 1 by definition.
   5810 # The cast to long int works around a bug in the HP C Compiler
   5811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5813 # This bug is HP SR number 8606223364.
   5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   5815 $as_echo_n "checking size of void *... " >&6; }
   5816 if test "${ac_cv_sizeof_void_p+set}" = set; then :
   5817   $as_echo_n "(cached) " >&6
   5818 else
   5819   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
   5820 
   5821 else
   5822   if test "$ac_cv_type_void_p" = yes; then
   5823      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5825 { as_fn_set_status 77
   5826 as_fn_error "cannot compute sizeof (void *)
   5827 See \`config.log' for more details." "$LINENO" 5; }; }
   5828    else
   5829      ac_cv_sizeof_void_p=0
   5830    fi
   5831 fi
   5832 
   5833 fi
   5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   5835 $as_echo "$ac_cv_sizeof_void_p" >&6; }
   5836 
   5837 
   5838 
   5839 cat >>confdefs.h <<_ACEOF
   5840 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
   5841 _ACEOF
   5842 
   5843 
   5844 # The cast to long int works around a bug in the HP C Compiler
   5845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5847 # This bug is HP SR number 8606223364.
   5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
   5849 $as_echo_n "checking size of short... " >&6; }
   5850 if test "${ac_cv_sizeof_short+set}" = set; then :
   5851   $as_echo_n "(cached) " >&6
   5852 else
   5853   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
   5854 
   5855 else
   5856   if test "$ac_cv_type_short" = yes; then
   5857      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5859 { as_fn_set_status 77
   5860 as_fn_error "cannot compute sizeof (short)
   5861 See \`config.log' for more details." "$LINENO" 5; }; }
   5862    else
   5863      ac_cv_sizeof_short=0
   5864    fi
   5865 fi
   5866 
   5867 fi
   5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
   5869 $as_echo "$ac_cv_sizeof_short" >&6; }
   5870 
   5871 
   5872 
   5873 cat >>confdefs.h <<_ACEOF
   5874 #define SIZEOF_SHORT $ac_cv_sizeof_short
   5875 _ACEOF
   5876 
   5877 
   5878 # The cast to long int works around a bug in the HP C Compiler
   5879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5881 # This bug is HP SR number 8606223364.
   5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   5883 $as_echo_n "checking size of int... " >&6; }
   5884 if test "${ac_cv_sizeof_int+set}" = set; then :
   5885   $as_echo_n "(cached) " >&6
   5886 else
   5887   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
   5888 
   5889 else
   5890   if test "$ac_cv_type_int" = yes; then
   5891      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5893 { as_fn_set_status 77
   5894 as_fn_error "cannot compute sizeof (int)
   5895 See \`config.log' for more details." "$LINENO" 5; }; }
   5896    else
   5897      ac_cv_sizeof_int=0
   5898    fi
   5899 fi
   5900 
   5901 fi
   5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   5903 $as_echo "$ac_cv_sizeof_int" >&6; }
   5904 
   5905 
   5906 
   5907 cat >>confdefs.h <<_ACEOF
   5908 #define SIZEOF_INT $ac_cv_sizeof_int
   5909 _ACEOF
   5910 
   5911 
   5912 # The cast to long int works around a bug in the HP C Compiler
   5913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5915 # This bug is HP SR number 8606223364.
   5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   5917 $as_echo_n "checking size of long... " >&6; }
   5918 if test "${ac_cv_sizeof_long+set}" = set; then :
   5919   $as_echo_n "(cached) " >&6
   5920 else
   5921   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   5922 
   5923 else
   5924   if test "$ac_cv_type_long" = yes; then
   5925      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5927 { as_fn_set_status 77
   5928 as_fn_error "cannot compute sizeof (long)
   5929 See \`config.log' for more details." "$LINENO" 5; }; }
   5930    else
   5931      ac_cv_sizeof_long=0
   5932    fi
   5933 fi
   5934 
   5935 fi
   5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   5937 $as_echo "$ac_cv_sizeof_long" >&6; }
   5938 
   5939 
   5940 
   5941 cat >>confdefs.h <<_ACEOF
   5942 #define SIZEOF_LONG $ac_cv_sizeof_long
   5943 _ACEOF
   5944 
   5945 
   5946 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
   5947 if test "x$ac_cv_type_long_long" = x""yes; then :
   5948 
   5949 cat >>confdefs.h <<_ACEOF
   5950 #define HAVE_LONG_LONG 1
   5951 _ACEOF
   5952 
   5953 # The cast to long int works around a bug in the HP C Compiler
   5954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5956 # This bug is HP SR number 8606223364.
   5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   5958 $as_echo_n "checking size of long long... " >&6; }
   5959 if test "${ac_cv_sizeof_long_long+set}" = set; then :
   5960   $as_echo_n "(cached) " >&6
   5961 else
   5962   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   5963 
   5964 else
   5965   if test "$ac_cv_type_long_long" = yes; then
   5966      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5968 { as_fn_set_status 77
   5969 as_fn_error "cannot compute sizeof (long long)
   5970 See \`config.log' for more details." "$LINENO" 5; }; }
   5971    else
   5972      ac_cv_sizeof_long_long=0
   5973    fi
   5974 fi
   5975 
   5976 fi
   5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   5978 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   5979 
   5980 
   5981 
   5982 cat >>confdefs.h <<_ACEOF
   5983 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   5984 _ACEOF
   5985 
   5986 
   5987 fi
   5988 
   5989 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
   5990 if test "x$ac_cv_type___int64" = x""yes; then :
   5991 
   5992 cat >>confdefs.h <<_ACEOF
   5993 #define HAVE___INT64 1
   5994 _ACEOF
   5995 
   5996 # The cast to long int works around a bug in the HP C Compiler
   5997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5999 # This bug is HP SR number 8606223364.
   6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
   6001 $as_echo_n "checking size of __int64... " >&6; }
   6002 if test "${ac_cv_sizeof___int64+set}" = set; then :
   6003   $as_echo_n "(cached) " >&6
   6004 else
   6005   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
   6006 
   6007 else
   6008   if test "$ac_cv_type___int64" = yes; then
   6009      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6011 { as_fn_set_status 77
   6012 as_fn_error "cannot compute sizeof (__int64)
   6013 See \`config.log' for more details." "$LINENO" 5; }; }
   6014    else
   6015      ac_cv_sizeof___int64=0
   6016    fi
   6017 fi
   6018 
   6019 fi
   6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
   6021 $as_echo "$ac_cv_sizeof___int64" >&6; }
   6022 
   6023 
   6024 
   6025 cat >>confdefs.h <<_ACEOF
   6026 #define SIZEOF___INT64 $ac_cv_sizeof___int64
   6027 _ACEOF
   6028 
   6029 
   6030 fi
   6031 
   6032 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
   6033 case $ac_cv_c_int8_t in #(
   6034   no|yes) ;; #(
   6035   *)
   6036 
   6037 cat >>confdefs.h <<_ACEOF
   6038 #define int8_t $ac_cv_c_int8_t
   6039 _ACEOF
   6040 ;;
   6041 esac
   6042 
   6043 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
   6044 case $ac_cv_c_int16_t in #(
   6045   no|yes) ;; #(
   6046   *)
   6047 
   6048 cat >>confdefs.h <<_ACEOF
   6049 #define int16_t $ac_cv_c_int16_t
   6050 _ACEOF
   6051 ;;
   6052 esac
   6053 
   6054 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
   6055 case $ac_cv_c_int32_t in #(
   6056   no|yes) ;; #(
   6057   *)
   6058 
   6059 cat >>confdefs.h <<_ACEOF
   6060 #define int32_t $ac_cv_c_int32_t
   6061 _ACEOF
   6062 ;;
   6063 esac
   6064 
   6065 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
   6066 case $ac_cv_c_int64_t in #(
   6067   no|yes) ;; #(
   6068   *)
   6069 
   6070 cat >>confdefs.h <<_ACEOF
   6071 #define int64_t $ac_cv_c_int64_t
   6072 _ACEOF
   6073 ;;
   6074 esac
   6075 
   6076 
   6077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
   6078 $as_echo_n "checking for long long int... " >&6; }
   6079 if test "${ac_cv_type_long_long_int+set}" = set; then :
   6080   $as_echo_n "(cached) " >&6
   6081 else
   6082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6083 /* end confdefs.h.  */
   6084 
   6085   /* For now, do not test the preprocessor; as of 2007 there are too many
   6086 	 implementations with broken preprocessors.  Perhaps this can
   6087 	 be revisited in 2012.  In the meantime, code should not expect
   6088 	 #if to work with literals wider than 32 bits.  */
   6089       /* Test literals.  */
   6090       long long int ll = 9223372036854775807ll;
   6091       long long int nll = -9223372036854775807LL;
   6092       unsigned long long int ull = 18446744073709551615ULL;
   6093       /* Test constant expressions.   */
   6094       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
   6095 		     ? 1 : -1)];
   6096       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
   6097 		     ? 1 : -1)];
   6098       int i = 63;
   6099 int
   6100 main ()
   6101 {
   6102 /* Test availability of runtime routines for shift and division.  */
   6103       long long int llmax = 9223372036854775807ll;
   6104       unsigned long long int ullmax = 18446744073709551615ull;
   6105       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
   6106 	      | (llmax / ll) | (llmax % ll)
   6107 	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
   6108 	      | (ullmax / ull) | (ullmax % ull));
   6109   ;
   6110   return 0;
   6111 }
   6112 
   6113 _ACEOF
   6114 if ac_fn_c_try_link "$LINENO"; then :
   6115   			if test "$cross_compiling" = yes; then :
   6116   ac_cv_type_long_long_int=yes
   6117 else
   6118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6119 /* end confdefs.h.  */
   6120 #include <limits.h>
   6121 	       #ifndef LLONG_MAX
   6122 	       # define HALF \
   6123 			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
   6124 	       # define LLONG_MAX (HALF - 1 + HALF)
   6125 	       #endif
   6126 int
   6127 main ()
   6128 {
   6129 long long int n = 1;
   6130 	       int i;
   6131 	       for (i = 0; ; i++)
   6132 		 {
   6133 		   long long int m = n << i;
   6134 		   if (m >> i != n)
   6135 		     return 1;
   6136 		   if (LLONG_MAX / 2 < m)
   6137 		     break;
   6138 		 }
   6139 	       return 0;
   6140   ;
   6141   return 0;
   6142 }
   6143 _ACEOF
   6144 if ac_fn_c_try_run "$LINENO"; then :
   6145   ac_cv_type_long_long_int=yes
   6146 else
   6147   ac_cv_type_long_long_int=no
   6148 fi
   6149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6150   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6151 fi
   6152 
   6153 else
   6154   ac_cv_type_long_long_int=no
   6155 fi
   6156 rm -f core conftest.err conftest.$ac_objext \
   6157     conftest$ac_exeext conftest.$ac_ext
   6158 fi
   6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
   6160 $as_echo "$ac_cv_type_long_long_int" >&6; }
   6161   if test $ac_cv_type_long_long_int = yes; then
   6162 
   6163 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
   6164 
   6165   fi
   6166 
   6167 
   6168 
   6169   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
   6170 if test "x$ac_cv_type_intmax_t" = x""yes; then :
   6171 
   6172 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
   6173 
   6174 else
   6175   test $ac_cv_type_long_long_int = yes \
   6176        && ac_type='long long int' \
   6177        || ac_type='long int'
   6178 
   6179 cat >>confdefs.h <<_ACEOF
   6180 #define intmax_t $ac_type
   6181 _ACEOF
   6182 
   6183 fi
   6184 
   6185 
   6186 
   6187   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
   6188 if test "x$ac_cv_type_intptr_t" = x""yes; then :
   6189 
   6190 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
   6191 
   6192 else
   6193   for ac_type in 'int' 'long int' 'long long int'; do
   6194        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6195 /* end confdefs.h.  */
   6196 $ac_includes_default
   6197 int
   6198 main ()
   6199 {
   6200 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   6201 test_array [0] = 0
   6202 
   6203   ;
   6204   return 0;
   6205 }
   6206 _ACEOF
   6207 if ac_fn_c_try_compile "$LINENO"; then :
   6208 
   6209 cat >>confdefs.h <<_ACEOF
   6210 #define intptr_t $ac_type
   6211 _ACEOF
   6212 
   6213 	  ac_type=
   6214 fi
   6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6216        test -z "$ac_type" && break
   6217      done
   6218 fi
   6219 
   6220 
   6221 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
   6222 case $ac_cv_c_uint8_t in #(
   6223   no|yes) ;; #(
   6224   *)
   6225 
   6226 $as_echo "#define _UINT8_T 1" >>confdefs.h
   6227 
   6228 
   6229 cat >>confdefs.h <<_ACEOF
   6230 #define uint8_t $ac_cv_c_uint8_t
   6231 _ACEOF
   6232 ;;
   6233   esac
   6234 
   6235 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
   6236 case $ac_cv_c_uint16_t in #(
   6237   no|yes) ;; #(
   6238   *)
   6239 
   6240 
   6241 cat >>confdefs.h <<_ACEOF
   6242 #define uint16_t $ac_cv_c_uint16_t
   6243 _ACEOF
   6244 ;;
   6245   esac
   6246 
   6247 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
   6248 case $ac_cv_c_uint32_t in #(
   6249   no|yes) ;; #(
   6250   *)
   6251 
   6252 $as_echo "#define _UINT32_T 1" >>confdefs.h
   6253 
   6254 
   6255 cat >>confdefs.h <<_ACEOF
   6256 #define uint32_t $ac_cv_c_uint32_t
   6257 _ACEOF
   6258 ;;
   6259   esac
   6260 
   6261 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
   6262 case $ac_cv_c_uint64_t in #(
   6263   no|yes) ;; #(
   6264   *)
   6265 
   6266 $as_echo "#define _UINT64_T 1" >>confdefs.h
   6267 
   6268 
   6269 cat >>confdefs.h <<_ACEOF
   6270 #define uint64_t $ac_cv_c_uint64_t
   6271 _ACEOF
   6272 ;;
   6273   esac
   6274 
   6275 
   6276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
   6277 $as_echo_n "checking for unsigned long long int... " >&6; }
   6278 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
   6279   $as_echo_n "(cached) " >&6
   6280 else
   6281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6282 /* end confdefs.h.  */
   6283 
   6284   /* For now, do not test the preprocessor; as of 2007 there are too many
   6285 	 implementations with broken preprocessors.  Perhaps this can
   6286 	 be revisited in 2012.  In the meantime, code should not expect
   6287 	 #if to work with literals wider than 32 bits.  */
   6288       /* Test literals.  */
   6289       long long int ll = 9223372036854775807ll;
   6290       long long int nll = -9223372036854775807LL;
   6291       unsigned long long int ull = 18446744073709551615ULL;
   6292       /* Test constant expressions.   */
   6293       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
   6294 		     ? 1 : -1)];
   6295       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
   6296 		     ? 1 : -1)];
   6297       int i = 63;
   6298 int
   6299 main ()
   6300 {
   6301 /* Test availability of runtime routines for shift and division.  */
   6302       long long int llmax = 9223372036854775807ll;
   6303       unsigned long long int ullmax = 18446744073709551615ull;
   6304       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
   6305 	      | (llmax / ll) | (llmax % ll)
   6306 	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
   6307 	      | (ullmax / ull) | (ullmax % ull));
   6308   ;
   6309   return 0;
   6310 }
   6311 
   6312 _ACEOF
   6313 if ac_fn_c_try_link "$LINENO"; then :
   6314   ac_cv_type_unsigned_long_long_int=yes
   6315 else
   6316   ac_cv_type_unsigned_long_long_int=no
   6317 fi
   6318 rm -f core conftest.err conftest.$ac_objext \
   6319     conftest$ac_exeext conftest.$ac_ext
   6320 fi
   6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
   6322 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
   6323   if test $ac_cv_type_unsigned_long_long_int = yes; then
   6324 
   6325 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
   6326 
   6327   fi
   6328 
   6329 
   6330 
   6331   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
   6332 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
   6333 
   6334 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
   6335 
   6336 else
   6337   test $ac_cv_type_unsigned_long_long_int = yes \
   6338        && ac_type='unsigned long long int' \
   6339        || ac_type='unsigned long int'
   6340 
   6341 cat >>confdefs.h <<_ACEOF
   6342 #define uintmax_t $ac_type
   6343 _ACEOF
   6344 
   6345 fi
   6346 
   6347 
   6348 
   6349   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   6350 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
   6351 
   6352 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   6353 
   6354 else
   6355   for ac_type in 'unsigned int' 'unsigned long int' \
   6356 	'unsigned long long int'; do
   6357        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6358 /* end confdefs.h.  */
   6359 $ac_includes_default
   6360 int
   6361 main ()
   6362 {
   6363 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   6364 test_array [0] = 0
   6365 
   6366   ;
   6367   return 0;
   6368 }
   6369 _ACEOF
   6370 if ac_fn_c_try_compile "$LINENO"; then :
   6371 
   6372 cat >>confdefs.h <<_ACEOF
   6373 #define uintptr_t $ac_type
   6374 _ACEOF
   6375 
   6376 	  ac_type=
   6377 fi
   6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6379        test -z "$ac_type" && break
   6380      done
   6381 fi
   6382 
   6383 
   6384 
   6385 
   6386 
   6387 
   6388 
   6389 
   6390 
   6391 
   6392 
   6393 
   6394 
   6395 
   6396 
   6397 # ---------------------
   6398 # Warnings and checking
   6399 # ---------------------
   6400 
   6401 # Check $CC warning features (if it's GCC).
   6402 # We want to use -pedantic, but we don't want warnings about
   6403 # * 'long long'
   6404 # * variadic macros
   6405 # * overlong strings
   6406 # * C++11 narrowing conversions in { }
   6407 # So, we only use -pedantic if we can disable those warnings.
   6408 
   6409 loose_warn=
   6410 save_CFLAGS="$CFLAGS"
   6411 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
   6412   # Do the check with the no- prefix removed since gcc silently
   6413   # accepts any -Wno-* option on purpose
   6414   case $real_option in
   6415     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
   6416     *) option=$real_option ;;
   6417   esac
   6418   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   6419 
   6420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
   6421 $as_echo_n "checking whether $CC supports $option... " >&6; }
   6422 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
   6423   $as_echo_n "(cached) " >&6
   6424 else
   6425   CFLAGS="$option"
   6426     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6427 /* end confdefs.h.  */
   6428 
   6429 int
   6430 main ()
   6431 {
   6432 
   6433   ;
   6434   return 0;
   6435 }
   6436 _ACEOF
   6437 if ac_fn_c_try_compile "$LINENO"; then :
   6438   eval "$as_acx_Woption=yes"
   6439 else
   6440   eval "$as_acx_Woption=no"
   6441 fi
   6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6443 
   6444 fi
   6445 eval ac_res=\$$as_acx_Woption
   6446 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6447 $as_echo "$ac_res" >&6; }
   6448   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
   6449   loose_warn="$loose_warn${loose_warn:+ }$real_option"
   6450 fi
   6451   done
   6452 CFLAGS="$save_CFLAGS"
   6453 
   6454 c_loose_warn=
   6455 save_CFLAGS="$CFLAGS"
   6456 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
   6457   # Do the check with the no- prefix removed since gcc silently
   6458   # accepts any -Wno-* option on purpose
   6459   case $real_option in
   6460     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
   6461     *) option=$real_option ;;
   6462   esac
   6463   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   6464 
   6465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
   6466 $as_echo_n "checking whether $CC supports $option... " >&6; }
   6467 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
   6468   $as_echo_n "(cached) " >&6
   6469 else
   6470   CFLAGS="$option"
   6471     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6472 /* end confdefs.h.  */
   6473 
   6474 int
   6475 main ()
   6476 {
   6477 
   6478   ;
   6479   return 0;
   6480 }
   6481 _ACEOF
   6482 if ac_fn_c_try_compile "$LINENO"; then :
   6483   eval "$as_acx_Woption=yes"
   6484 else
   6485   eval "$as_acx_Woption=no"
   6486 fi
   6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6488 
   6489 fi
   6490 eval ac_res=\$$as_acx_Woption
   6491 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6492 $as_echo "$ac_res" >&6; }
   6493   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
   6494   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
   6495 fi
   6496   done
   6497 CFLAGS="$save_CFLAGS"
   6498 
   6499 strict_warn=
   6500 save_CFLAGS="$CFLAGS"
   6501 for real_option in -Wmissing-format-attribute; do
   6502   # Do the check with the no- prefix removed since gcc silently
   6503   # accepts any -Wno-* option on purpose
   6504   case $real_option in
   6505     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
   6506     *) option=$real_option ;;
   6507   esac
   6508   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   6509 
   6510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
   6511 $as_echo_n "checking whether $CC supports $option... " >&6; }
   6512 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
   6513   $as_echo_n "(cached) " >&6
   6514 else
   6515   CFLAGS="$option"
   6516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6517 /* end confdefs.h.  */
   6518 
   6519 int
   6520 main ()
   6521 {
   6522 
   6523   ;
   6524   return 0;
   6525 }
   6526 _ACEOF
   6527 if ac_fn_c_try_compile "$LINENO"; then :
   6528   eval "$as_acx_Woption=yes"
   6529 else
   6530   eval "$as_acx_Woption=no"
   6531 fi
   6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6533 
   6534 fi
   6535 eval ac_res=\$$as_acx_Woption
   6536 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6537 $as_echo "$ac_res" >&6; }
   6538   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
   6539   strict_warn="$strict_warn${strict_warn:+ }$real_option"
   6540 fi
   6541   done
   6542 CFLAGS="$save_CFLAGS"
   6543 
   6544 c_strict_warn=
   6545 save_CFLAGS="$CFLAGS"
   6546 for real_option in -Wold-style-definition -Wc++-compat; do
   6547   # Do the check with the no- prefix removed since gcc silently
   6548   # accepts any -Wno-* option on purpose
   6549   case $real_option in
   6550     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
   6551     *) option=$real_option ;;
   6552   esac
   6553   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   6554 
   6555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
   6556 $as_echo_n "checking whether $CC supports $option... " >&6; }
   6557 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
   6558   $as_echo_n "(cached) " >&6
   6559 else
   6560   CFLAGS="$option"
   6561     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6562 /* end confdefs.h.  */
   6563 
   6564 int
   6565 main ()
   6566 {
   6567 
   6568   ;
   6569   return 0;
   6570 }
   6571 _ACEOF
   6572 if ac_fn_c_try_compile "$LINENO"; then :
   6573   eval "$as_acx_Woption=yes"
   6574 else
   6575   eval "$as_acx_Woption=no"
   6576 fi
   6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6578 
   6579 fi
   6580 eval ac_res=\$$as_acx_Woption
   6581 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6582 $as_echo "$ac_res" >&6; }
   6583   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
   6584   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
   6585 fi
   6586   done
   6587 CFLAGS="$save_CFLAGS"
   6588 
   6589 # Do the check with the no- prefix removed from the warning options
   6590 # since gcc silently accepts any -Wno-* option on purpose
   6591 if test "$GCC" = yes; then :
   6592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
   6593 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
   6594 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
   6595   $as_echo_n "(cached) " >&6
   6596 else
   6597   save_CFLAGS="$CFLAGS"
   6598 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
   6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6600 /* end confdefs.h.  */
   6601 
   6602 int
   6603 main ()
   6604 {
   6605 
   6606   ;
   6607   return 0;
   6608 }
   6609 _ACEOF
   6610 if ac_fn_c_try_compile "$LINENO"; then :
   6611   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
   6612 else
   6613   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
   6614 fi
   6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6616 CFLAGS="$save_CFLAGS"
   6617 fi
   6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
   6619 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
   6620 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
   6621   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
   6622 fi
   6623 
   6624 fi
   6625 
   6626 # Check whether --enable-werror-always was given.
   6627 if test "${enable_werror_always+set}" = set; then :
   6628   enableval=$enable_werror_always;
   6629 else
   6630   enable_werror_always=no
   6631 fi
   6632 
   6633 if test $enable_werror_always = yes; then :
   6634   strict_warn="$strict_warn${strict_warn:+ }-Werror"
   6635 fi
   6636 
   6637 
   6638 
   6639 # The above macros do nothing if the compiler is not GCC.  However, the
   6640 # Makefile has more goo to add other flags, so these variables are used
   6641 # to enable warnings only for GCC.
   6642 warn_cflags=
   6643 warn_cxxflags=
   6644 if test "x$GCC" = "xyes"; then
   6645   warn_cflags='$(GCC_WARN_CFLAGS)'
   6646   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
   6647 fi
   6648 
   6649 
   6650 
   6651 # Disable exceptions and RTTI if building with g++
   6652 noexception_flags=
   6653 save_CFLAGS="$CFLAGS"
   6654 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
   6655   # Do the check with the no- prefix removed since gcc silently
   6656   # accepts any -Wno-* option on purpose
   6657   case $real_option in
   6658     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
   6659     *) option=$real_option ;;
   6660   esac
   6661   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   6662 
   6663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
   6664 $as_echo_n "checking whether $CC supports $option... " >&6; }
   6665 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
   6666   $as_echo_n "(cached) " >&6
   6667 else
   6668   CFLAGS="$option"
   6669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6670 /* end confdefs.h.  */
   6671 
   6672 int
   6673 main ()
   6674 {
   6675 
   6676   ;
   6677   return 0;
   6678 }
   6679 _ACEOF
   6680 if ac_fn_c_try_compile "$LINENO"; then :
   6681   eval "$as_acx_Woption=yes"
   6682 else
   6683   eval "$as_acx_Woption=no"
   6684 fi
   6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6686 
   6687 fi
   6688 eval ac_res=\$$as_acx_Woption
   6689 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6690 $as_echo "$ac_res" >&6; }
   6691   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
   6692   noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
   6693 fi
   6694   done
   6695 CFLAGS="$save_CFLAGS"
   6696 
   6697 
   6698 # Enable expensive internal checks
   6699 is_release=
   6700 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
   6701   is_release=yes
   6702 fi
   6703 
   6704 # Check whether --enable-checking was given.
   6705 if test "${enable_checking+set}" = set; then :
   6706   enableval=$enable_checking; ac_checking_flags="${enableval}"
   6707 else
   6708 
   6709 # Determine the default checks.
   6710 if test x$is_release = x ; then
   6711   ac_checking_flags=yes
   6712 else
   6713   ac_checking_flags=release
   6714 fi
   6715 fi
   6716 
   6717 IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
   6718 for check in release $ac_checking_flags
   6719 do
   6720 	case $check in
   6721 	# these set all the flags to specific states
   6722 	yes)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
   6723 			ac_fold_checking= ; ac_gc_checking=1 ;
   6724 			ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
   6725 			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
   6726 			ac_tree_checking=1 ; ac_valgrind_checking= ;
   6727 			ac_types_checking=1 ;;
   6728 	no|none)	ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
   6729 			ac_fold_checking= ; ac_gc_checking= ;
   6730 			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
   6731 			ac_rtlflag_checking= ; ac_runtime_checking= ;
   6732 			ac_tree_checking= ; ac_valgrind_checking= ;
   6733 			ac_types_checking= ;;
   6734 	all)		ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
   6735 			ac_fold_checking=1 ; ac_gc_checking=1 ;
   6736 			ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
   6737 			ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
   6738 			ac_tree_checking=1 ; ac_valgrind_checking= ;
   6739 			ac_types_checking=1 ;;
   6740 	release)	ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
   6741 			ac_fold_checking= ; ac_gc_checking= ;
   6742 			ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
   6743 			ac_rtlflag_checking= ; ac_runtime_checking=1 ;
   6744 			ac_tree_checking= ; ac_valgrind_checking= ;
   6745 			ac_types_checking= ;;
   6746 	# these enable particular checks
   6747 	assert) 	ac_assert_checking=1 ;;
   6748 	df)	 	ac_df_checking=1 ;;
   6749 	fold)		ac_fold_checking=1 ;;
   6750 	gc)		ac_gc_checking=1 ;;
   6751 	gcac)		ac_gc_always_collect=1 ;;
   6752 	gimple)		ac_gimple_checking=1 ;;
   6753 	misc)		ac_checking=1 ;;
   6754 	rtl)		ac_rtl_checking=1 ;;
   6755 	rtlflag)	ac_rtlflag_checking=1 ;;
   6756 	runtime)	ac_runtime_checking=1 ;;
   6757 	tree)		ac_tree_checking=1 ;;
   6758 	types)		ac_types_checking=1 ;;
   6759 	valgrind)	ac_valgrind_checking=1 ;;
   6760 	*)	as_fn_error "unknown check category $check" "$LINENO" 5 ;;
   6761 	esac
   6762 done
   6763 IFS="$ac_save_IFS"
   6764 
   6765 nocommon_flag=""
   6766 if test x$ac_checking != x ; then
   6767 
   6768 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
   6769 
   6770   nocommon_flag=-fno-common
   6771 fi
   6772 
   6773 if test x$ac_df_checking != x ; then
   6774 
   6775 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
   6776 
   6777 fi
   6778 if test x$ac_assert_checking != x ; then
   6779 
   6780 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
   6781 
   6782 fi
   6783 if test x$ac_gimple_checking != x ; then
   6784 
   6785 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
   6786 
   6787 fi
   6788 
   6789 if test x$ac_runtime_checking != x ; then
   6790 
   6791 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
   6792 
   6793 fi
   6794 if test x$ac_tree_checking != x ; then
   6795 
   6796 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
   6797 
   6798   TREEBROWSER=tree-browser.o
   6799   TREECHECKING=yes
   6800 fi
   6801 if test x$ac_types_checking != x ; then
   6802 
   6803 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
   6804 
   6805 fi
   6806 
   6807 
   6808 if test x$ac_rtl_checking != x ; then
   6809 
   6810 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
   6811 
   6812 fi
   6813 if test x$ac_rtlflag_checking != x ; then
   6814 
   6815 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
   6816 
   6817 fi
   6818 if test x$ac_gc_checking != x ; then
   6819 
   6820 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
   6821 
   6822 fi
   6823 if test x$ac_gc_always_collect != x ; then
   6824 
   6825 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
   6826 
   6827 fi
   6828 if test x$ac_fold_checking != x ; then
   6829 
   6830 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
   6831 
   6832 fi
   6833 valgrind_path_defines=
   6834 valgrind_command=
   6835 
   6836 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
   6837 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
   6838   have_valgrind_h=yes
   6839 else
   6840   have_valgrind_h=no
   6841 fi
   6842 
   6843 
   6844 
   6845 if test x$ac_valgrind_checking != x ; then
   6846   # It is certainly possible that there's valgrind but no valgrind.h.
   6847   # GCC relies on making annotations so we must have both.
   6848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
   6849 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
   6850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6851 /* end confdefs.h.  */
   6852 #include <valgrind/memcheck.h>
   6853 #ifndef VALGRIND_DISCARD
   6854 #error VALGRIND_DISCARD not defined
   6855 #endif
   6856 _ACEOF
   6857 if ac_fn_c_try_cpp "$LINENO"; then :
   6858   gcc_cv_header_valgrind_memcheck_h=yes
   6859 else
   6860   gcc_cv_header_valgrind_memcheck_h=no
   6861 fi
   6862 rm -f conftest.err conftest.$ac_ext
   6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
   6864 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
   6865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
   6866 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
   6867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6868 /* end confdefs.h.  */
   6869 #include <memcheck.h>
   6870 #ifndef VALGRIND_DISCARD
   6871 #error VALGRIND_DISCARD not defined
   6872 #endif
   6873 _ACEOF
   6874 if ac_fn_c_try_cpp "$LINENO"; then :
   6875   gcc_cv_header_memcheck_h=yes
   6876 else
   6877   gcc_cv_header_memcheck_h=no
   6878 fi
   6879 rm -f conftest.err conftest.$ac_ext
   6880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
   6881 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
   6882 
   6883 # Prepare PATH_SEPARATOR.
   6884 # The user is always right.
   6885 if test "${PATH_SEPARATOR+set}" != set; then
   6886   echo "#! /bin/sh" >conf$$.sh
   6887   echo  "exit 0"   >>conf$$.sh
   6888   chmod +x conf$$.sh
   6889   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   6890     PATH_SEPARATOR=';'
   6891   else
   6892     PATH_SEPARATOR=:
   6893   fi
   6894   rm -f conf$$.sh
   6895 fi
   6896 
   6897 # Find out how to test for executable files. Don't use a zero-byte file,
   6898 # as systems may use methods other than mode bits to determine executability.
   6899 cat >conf$$.file <<_ASEOF
   6900 #! /bin/sh
   6901 exit 0
   6902 _ASEOF
   6903 chmod +x conf$$.file
   6904 if test -x conf$$.file >/dev/null 2>&1; then
   6905   ac_executable_p="test -x"
   6906 else
   6907   ac_executable_p="test -f"
   6908 fi
   6909 rm -f conf$$.file
   6910 
   6911 # Extract the first word of "valgrind", so it can be a program name with args.
   6912 set dummy valgrind; ac_word=$2
   6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6914 $as_echo_n "checking for $ac_word... " >&6; }
   6915 if test "${ac_cv_path_valgrind_path+set}" = set; then :
   6916   $as_echo_n "(cached) " >&6
   6917 else
   6918   case "$valgrind_path" in
   6919   [\\/]* | ?:[\\/]*)
   6920     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
   6921     ;;
   6922   *)
   6923     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
   6924     for ac_dir in $PATH; do
   6925       IFS="$ac_save_IFS"
   6926       test -z "$ac_dir" && ac_dir=.
   6927       for ac_exec_ext in '' $ac_executable_extensions; do
   6928         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
   6929           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
   6930             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
   6931             break 2
   6932           fi
   6933         fi
   6934       done
   6935     done
   6936     IFS="$ac_save_IFS"
   6937     ;;
   6938 esac
   6939 fi
   6940 valgrind_path="$ac_cv_path_valgrind_path"
   6941 if test -n "$valgrind_path"; then
   6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
   6943 $as_echo "$valgrind_path" >&6; }
   6944 else
   6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6946 $as_echo "no" >&6; }
   6947 fi
   6948 
   6949   if test "x$valgrind_path" = "x" \
   6950     || (test $have_valgrind_h = no \
   6951 	&& test $gcc_cv_header_memcheck_h = no \
   6952 	&& test $gcc_cv_header_valgrind_memcheck_h = no); then
   6953 	as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
   6954   fi
   6955   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
   6956   valgrind_command="$valgrind_path -q"
   6957 
   6958 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
   6959 
   6960   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
   6961 
   6962 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
   6963 
   6964   fi
   6965   if test $gcc_cv_header_memcheck_h = yes; then
   6966 
   6967 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
   6968 
   6969   fi
   6970 fi
   6971 
   6972 
   6973 
   6974 # Enable code coverage collection
   6975 # Check whether --enable-coverage was given.
   6976 if test "${enable_coverage+set}" = set; then :
   6977   enableval=$enable_coverage; case "${enableval}" in
   6978   yes|noopt)
   6979     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
   6980     ;;
   6981   opt)
   6982     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
   6983     ;;
   6984   no)
   6985     # a.k.a. --disable-coverage
   6986     coverage_flags=""
   6987     ;;
   6988   *)
   6989     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
   6990     ;;
   6991 esac
   6992 else
   6993   coverage_flags=""
   6994 fi
   6995 
   6996 
   6997 
   6998 # Check whether --enable-gather-detailed-mem-stats was given.
   6999 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
   7000   enableval=$enable_gather_detailed_mem_stats;
   7001 else
   7002   enable_gather_detailed_mem_stats=no
   7003 fi
   7004 
   7005 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
   7006 
   7007 cat >>confdefs.h <<_ACEOF
   7008 #define GATHER_STATISTICS $gather_stats
   7009 _ACEOF
   7010 
   7011 
   7012 # -------------------------------
   7013 # Miscenalleous configure options
   7014 # -------------------------------
   7015 
   7016 # With stabs
   7017 
   7018 # Check whether --with-stabs was given.
   7019 if test "${with_stabs+set}" = set; then :
   7020   withval=$with_stabs; stabs="$with_stabs"
   7021 else
   7022   stabs=no
   7023 fi
   7024 
   7025 
   7026 # Determine whether or not multilibs are enabled.
   7027 # Check whether --enable-multilib was given.
   7028 if test "${enable_multilib+set}" = set; then :
   7029   enableval=$enable_multilib;
   7030 else
   7031   enable_multilib=yes
   7032 fi
   7033 
   7034 
   7035 
   7036 # Determine whether or not multiarch is enabled.
   7037 # Check whether --enable-multiarch was given.
   7038 if test "${enable_multiarch+set}" = set; then :
   7039   enableval=$enable_multiarch; case "${enableval}" in
   7040 yes|no|auto) enable_multiarch=$enableval;;
   7041 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
   7042 esac
   7043 else
   7044   enable_multiarch=auto
   7045 fi
   7046 
   7047 if test x${enable_multiarch} = xauto; then
   7048   if test x${with_native_system_header_dir} != x; then
   7049     ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
   7050     enable_multiarch=no
   7051   fi
   7052   if test x$host != x$target && test "x$with_sysroot" = x; then
   7053     ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
   7054     enable_multiarch=no
   7055   fi
   7056 fi
   7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
   7058 $as_echo_n "checking for multiarch configuration... " >&6; }
   7059 
   7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
   7061 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
   7062 
   7063 # needed for setting the multiarch name for soft-float/hard-float ABIs
   7064 
   7065 
   7066 
   7067 # Enable __cxa_atexit for C++.
   7068 # Check whether --enable-__cxa_atexit was given.
   7069 if test "${enable___cxa_atexit+set}" = set; then :
   7070   enableval=$enable___cxa_atexit;
   7071 fi
   7072 
   7073 
   7074 # Enable C extension for decimal float if target supports it.
   7075 
   7076 # Check whether --enable-decimal-float was given.
   7077 if test "${enable_decimal_float+set}" = set; then :
   7078   enableval=$enable_decimal_float;
   7079   case $enable_decimal_float in
   7080     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
   7081     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
   7082 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
   7083   esac
   7084 
   7085 else
   7086 
   7087   case $target in
   7088     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
   7089     i?86*-*-gnu* | \
   7090     i?86*-*-mingw* | x86_64*-*-mingw* | \
   7091     i?86*-*-cygwin*)
   7092       enable_decimal_float=yes
   7093       ;;
   7094     *)
   7095       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
   7096 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
   7097       enable_decimal_float=no
   7098       ;;
   7099   esac
   7100 
   7101 fi
   7102 
   7103 
   7104 # x86's use BID format instead of DPD
   7105 case x$enable_decimal_float in
   7106   xyes)
   7107     case $target in
   7108       i?86*-*-* | x86_64*-*-*)
   7109 	enable_decimal_float=bid
   7110 	;;
   7111       *)
   7112 	enable_decimal_float=dpd
   7113 	;;
   7114     esac
   7115     default_decimal_float=$enable_decimal_float
   7116     ;;
   7117   xno)
   7118     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
   7119     # dependency on libdecnumber.
   7120     default_decimal_float=dpd
   7121     ;;
   7122 esac
   7123 
   7124 
   7125 
   7126 
   7127 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
   7128 
   7129 cat >>confdefs.h <<_ACEOF
   7130 #define ENABLE_DECIMAL_FLOAT $dfp
   7131 _ACEOF
   7132 
   7133 
   7134 # Use default_decimal_float for dependency.
   7135 enable_decimal_float=$default_decimal_float
   7136 
   7137 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
   7138 
   7139 cat >>confdefs.h <<_ACEOF
   7140 #define ENABLE_DECIMAL_BID_FORMAT $bid
   7141 _ACEOF
   7142 
   7143 
   7144 # Enable C extension for fixed-point arithmetic.
   7145 # Check whether --enable-fixed-point was given.
   7146 if test "${enable_fixed_point+set}" = set; then :
   7147   enableval=$enable_fixed_point;
   7148 else
   7149 
   7150   case $target in
   7151     arm*)
   7152       enable_fixed_point=yes
   7153       ;;
   7154 
   7155     mips*-*-*)
   7156       enable_fixed_point=yes
   7157       ;;
   7158     *)
   7159       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
   7160 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
   7161       enable_fixed_point=no
   7162       ;;
   7163   esac
   7164 
   7165 fi
   7166 
   7167 
   7168 
   7169 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
   7170 
   7171 cat >>confdefs.h <<_ACEOF
   7172 #define ENABLE_FIXED_POINT $fixedpoint
   7173 _ACEOF
   7174 
   7175 
   7176 # Enable threads
   7177 # Pass with no value to take the default
   7178 # Pass with a value to specify a thread package
   7179 # Check whether --enable-threads was given.
   7180 if test "${enable_threads+set}" = set; then :
   7181   enableval=$enable_threads;
   7182 else
   7183   enable_threads=''
   7184 fi
   7185 
   7186 
   7187 # Check whether --enable-tls was given.
   7188 if test "${enable_tls+set}" = set; then :
   7189   enableval=$enable_tls;
   7190   case $enable_tls in
   7191     yes | no) ;;
   7192     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
   7193 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
   7194   esac
   7195 
   7196 else
   7197   enable_tls=''
   7198 fi
   7199 
   7200 
   7201 # Check whether --enable-objc-gc was given.
   7202 if test "${enable_objc_gc+set}" = set; then :
   7203   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
   7204 	objc_boehm_gc=''
   7205 else
   7206 	objc_boehm_gc=1
   7207 fi
   7208 else
   7209   objc_boehm_gc=''
   7210 fi
   7211 
   7212 
   7213 
   7214 # Check whether --with-dwarf2 was given.
   7215 if test "${with_dwarf2+set}" = set; then :
   7216   withval=$with_dwarf2; dwarf2="$with_dwarf2"
   7217 else
   7218   dwarf2=no
   7219 fi
   7220 
   7221 
   7222 # Check whether --enable-shared was given.
   7223 if test "${enable_shared+set}" = set; then :
   7224   enableval=$enable_shared;
   7225   case $enable_shared in
   7226   yes | no) ;;
   7227   *)
   7228     enable_shared=no
   7229     IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
   7230     for pkg in $enableval; do
   7231       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
   7232         enable_shared=yes
   7233       fi
   7234     done
   7235     IFS="$ac_save_ifs"
   7236     ;;
   7237   esac
   7238 
   7239 else
   7240   enable_shared=yes
   7241 fi
   7242 
   7243 
   7244 
   7245 
   7246 # Check whether --with-native-system-header-dir was given.
   7247 if test "${with_native_system_header_dir+set}" = set; then :
   7248   withval=$with_native_system_header_dir;
   7249  case ${with_native_system_header_dir} in
   7250  yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
   7251  /* | [A-Za-z]:[\\/]*) ;;
   7252  *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
   7253  esac
   7254  configured_native_system_header_dir="${withval}"
   7255 
   7256 else
   7257   configured_native_system_header_dir=
   7258 fi
   7259 
   7260 
   7261 
   7262 # Check whether --with-build-sysroot was given.
   7263 if test "${with_build_sysroot+set}" = set; then :
   7264   withval=$with_build_sysroot; if test x"$withval" != x ; then
   7265      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
   7266    fi
   7267 else
   7268   SYSROOT_CFLAGS_FOR_TARGET=
   7269 fi
   7270 
   7271 
   7272 
   7273 if test "x$prefix" = xNONE; then
   7274  test_prefix=/usr/local
   7275 else
   7276  test_prefix=$prefix
   7277 fi
   7278 if test "x$exec_prefix" = xNONE; then
   7279  test_exec_prefix=$test_prefix
   7280 else
   7281  test_exec_prefix=$exec_prefix
   7282 fi
   7283 
   7284 
   7285 # Check whether --with-sysroot was given.
   7286 if test "${with_sysroot+set}" = set; then :
   7287   withval=$with_sysroot;
   7288  case ${with_sysroot} in
   7289  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
   7290  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
   7291  esac
   7292 
   7293  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
   7294  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
   7295 
   7296  case ${TARGET_SYSTEM_ROOT} in
   7297  "${test_prefix}"|"${test_prefix}/"*|\
   7298  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
   7299  '${prefix}'|'${prefix}/'*|\
   7300  '${exec_prefix}'|'${exec_prefix}/'*)
   7301    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
   7302    TARGET_SYSTEM_ROOT_DEFINE="$t"
   7303    ;;
   7304  esac
   7305 
   7306 else
   7307 
   7308  TARGET_SYSTEM_ROOT=
   7309  TARGET_SYSTEM_ROOT_DEFINE=
   7310  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
   7311 
   7312 fi
   7313 
   7314 
   7315 
   7316 
   7317 
   7318 
   7319 # Check whether --with-specs was given.
   7320 if test "${with_specs+set}" = set; then :
   7321   withval=$with_specs; CONFIGURE_SPECS=$withval
   7322 else
   7323   CONFIGURE_SPECS=
   7324 
   7325 fi
   7326 
   7327 
   7328 
   7329 
   7330 
   7331 # Check whether --with-pkgversion was given.
   7332 if test "${with_pkgversion+set}" = set; then :
   7333   withval=$with_pkgversion; case "$withval" in
   7334       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
   7335       no)  PKGVERSION= ;;
   7336       *)   PKGVERSION="($withval) " ;;
   7337      esac
   7338 else
   7339   PKGVERSION="(GCC) "
   7340 
   7341 fi
   7342 
   7343 
   7344 
   7345 
   7346 
   7347 # Check whether --with-bugurl was given.
   7348 if test "${with_bugurl+set}" = set; then :
   7349   withval=$with_bugurl; case "$withval" in
   7350       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
   7351       no)  BUGURL=
   7352 	   ;;
   7353       *)   BUGURL="$withval"
   7354 	   ;;
   7355      esac
   7356 else
   7357   BUGURL="http://gcc.gnu.org/bugs.html"
   7358 
   7359 fi
   7360 
   7361   case ${BUGURL} in
   7362   "")
   7363     REPORT_BUGS_TO=
   7364     REPORT_BUGS_TEXI=
   7365     ;;
   7366   *)
   7367     REPORT_BUGS_TO="<$BUGURL>"
   7368     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
   7369     ;;
   7370   esac;
   7371 
   7372 
   7373 
   7374 
   7375 # Sanity check enable_languages in case someone does not run the toplevel
   7376 # configure # script.
   7377 # Check whether --enable-languages was given.
   7378 if test "${enable_languages+set}" = set; then :
   7379   enableval=$enable_languages; case ,${enable_languages}, in
   7380        ,,|,yes,)
   7381 		# go safe -- we cannot be much sure without the toplevel
   7382 		# configure's
   7383 		# analysis of which target libs are present and usable
   7384 		enable_languages=c
   7385 		;;
   7386 	 *,all,*)
   7387 		as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
   7388 		;;
   7389 	*,c,*)
   7390 		;;
   7391         *)
   7392 		enable_languages=c,${enable_languages}
   7393 		;;
   7394 esac
   7395 else
   7396   enable_languages=c
   7397 fi
   7398 
   7399 
   7400 
   7401 # Check whether --with-multilib-list was given.
   7402 if test "${with_multilib_list+set}" = set; then :
   7403   withval=$with_multilib_list; :
   7404 else
   7405   with_multilib_list=default
   7406 fi
   7407 
   7408 
   7409 # -------------------------
   7410 # Checks for other programs
   7411 # -------------------------
   7412 
   7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   7414 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   7415 set x ${MAKE-make}
   7416 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   7417 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
   7418   $as_echo_n "(cached) " >&6
   7419 else
   7420   cat >conftest.make <<\_ACEOF
   7421 SHELL = /bin/sh
   7422 all:
   7423 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   7424 _ACEOF
   7425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   7426 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   7427   *@@@%%%=?*=@@@%%%*)
   7428     eval ac_cv_prog_make_${ac_make}_set=yes;;
   7429   *)
   7430     eval ac_cv_prog_make_${ac_make}_set=no;;
   7431 esac
   7432 rm -f conftest.make
   7433 fi
   7434 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7436 $as_echo "yes" >&6; }
   7437   SET_MAKE=
   7438 else
   7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7440 $as_echo "no" >&6; }
   7441   SET_MAKE="MAKE=${MAKE-make}"
   7442 fi
   7443 
   7444 
   7445 # Find some useful tools
   7446 for ac_prog in gawk mawk nawk awk
   7447 do
   7448   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7449 set dummy $ac_prog; ac_word=$2
   7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7451 $as_echo_n "checking for $ac_word... " >&6; }
   7452 if test "${ac_cv_prog_AWK+set}" = set; then :
   7453   $as_echo_n "(cached) " >&6
   7454 else
   7455   if test -n "$AWK"; then
   7456   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   7457 else
   7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7459 for as_dir in $PATH
   7460 do
   7461   IFS=$as_save_IFS
   7462   test -z "$as_dir" && as_dir=.
   7463     for ac_exec_ext in '' $ac_executable_extensions; do
   7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7465     ac_cv_prog_AWK="$ac_prog"
   7466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7467     break 2
   7468   fi
   7469 done
   7470   done
   7471 IFS=$as_save_IFS
   7472 
   7473 fi
   7474 fi
   7475 AWK=$ac_cv_prog_AWK
   7476 if test -n "$AWK"; then
   7477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   7478 $as_echo "$AWK" >&6; }
   7479 else
   7480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7481 $as_echo "no" >&6; }
   7482 fi
   7483 
   7484 
   7485   test -n "$AWK" && break
   7486 done
   7487 
   7488 # We need awk to create options.c and options.h.
   7489 # Bail out if it's missing.
   7490 case ${AWK} in
   7491   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
   7492 esac
   7493 
   7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   7495 $as_echo_n "checking whether ln -s works... " >&6; }
   7496 if test "${gcc_cv_prog_LN_S+set}" = set; then :
   7497   $as_echo_n "(cached) " >&6
   7498 else
   7499   rm -f conftestdata_t
   7500 echo >conftestdata_f
   7501 if ln -s conftestdata_f conftestdata_t 2>/dev/null
   7502 then
   7503   gcc_cv_prog_LN_S="ln -s"
   7504 else
   7505   if ln conftestdata_f conftestdata_t 2>/dev/null
   7506   then
   7507     gcc_cv_prog_LN_S=ln
   7508   else
   7509     if cp -p conftestdata_f conftestdata_t 2>/dev/null
   7510     then
   7511       gcc_cv_prog_LN_S="cp -p"
   7512     else
   7513       gcc_cv_prog_LN_S=cp
   7514     fi
   7515   fi
   7516 fi
   7517 rm -f conftestdata_f conftestdata_t
   7518 
   7519 fi
   7520 LN_S="$gcc_cv_prog_LN_S"
   7521 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
   7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7523 $as_echo "yes" >&6; }
   7524 else
   7525   if test "$gcc_cv_prog_LN_S" = "ln"; then
   7526     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
   7527 $as_echo "no, using ln" >&6; }
   7528   else
   7529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
   7530 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
   7531   fi
   7532 fi
   7533 
   7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
   7535 $as_echo_n "checking whether ln works... " >&6; }
   7536 if test "${acx_cv_prog_LN+set}" = set; then :
   7537   $as_echo_n "(cached) " >&6
   7538 else
   7539   rm -f conftestdata_t
   7540 echo >conftestdata_f
   7541 if ln conftestdata_f conftestdata_t 2>/dev/null
   7542 then
   7543   acx_cv_prog_LN=ln
   7544 else
   7545   acx_cv_prog_LN=no
   7546 fi
   7547 rm -f conftestdata_f conftestdata_t
   7548 
   7549 fi
   7550 if test $acx_cv_prog_LN = no; then
   7551   LN="$LN_S"
   7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
   7553 $as_echo "no, using $LN" >&6; }
   7554 else
   7555   LN="$acx_cv_prog_LN"
   7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7557 $as_echo "yes" >&6; }
   7558 fi
   7559 
   7560 if test -n "$ac_tool_prefix"; then
   7561   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   7562 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7564 $as_echo_n "checking for $ac_word... " >&6; }
   7565 if test "${ac_cv_prog_RANLIB+set}" = set; then :
   7566   $as_echo_n "(cached) " >&6
   7567 else
   7568   if test -n "$RANLIB"; then
   7569   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   7570 else
   7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7572 for as_dir in $PATH
   7573 do
   7574   IFS=$as_save_IFS
   7575   test -z "$as_dir" && as_dir=.
   7576     for ac_exec_ext in '' $ac_executable_extensions; do
   7577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7578     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   7579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7580     break 2
   7581   fi
   7582 done
   7583   done
   7584 IFS=$as_save_IFS
   7585 
   7586 fi
   7587 fi
   7588 RANLIB=$ac_cv_prog_RANLIB
   7589 if test -n "$RANLIB"; then
   7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   7591 $as_echo "$RANLIB" >&6; }
   7592 else
   7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7594 $as_echo "no" >&6; }
   7595 fi
   7596 
   7597 
   7598 fi
   7599 if test -z "$ac_cv_prog_RANLIB"; then
   7600   ac_ct_RANLIB=$RANLIB
   7601   # Extract the first word of "ranlib", so it can be a program name with args.
   7602 set dummy ranlib; ac_word=$2
   7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7604 $as_echo_n "checking for $ac_word... " >&6; }
   7605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
   7606   $as_echo_n "(cached) " >&6
   7607 else
   7608   if test -n "$ac_ct_RANLIB"; then
   7609   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   7610 else
   7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7612 for as_dir in $PATH
   7613 do
   7614   IFS=$as_save_IFS
   7615   test -z "$as_dir" && as_dir=.
   7616     for ac_exec_ext in '' $ac_executable_extensions; do
   7617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7618     ac_cv_prog_ac_ct_RANLIB="ranlib"
   7619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7620     break 2
   7621   fi
   7622 done
   7623   done
   7624 IFS=$as_save_IFS
   7625 
   7626 fi
   7627 fi
   7628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   7629 if test -n "$ac_ct_RANLIB"; then
   7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   7631 $as_echo "$ac_ct_RANLIB" >&6; }
   7632 else
   7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7634 $as_echo "no" >&6; }
   7635 fi
   7636 
   7637   if test "x$ac_ct_RANLIB" = x; then
   7638     RANLIB=":"
   7639   else
   7640     case $cross_compiling:$ac_tool_warned in
   7641 yes:)
   7642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7644 ac_tool_warned=yes ;;
   7645 esac
   7646     RANLIB=$ac_ct_RANLIB
   7647   fi
   7648 else
   7649   RANLIB="$ac_cv_prog_RANLIB"
   7650 fi
   7651 
   7652 ranlib_flags=""
   7653 
   7654 
   7655 # Find a good install program.  We prefer a C program (faster),
   7656 # so one script is as good as another.  But avoid the broken or
   7657 # incompatible versions:
   7658 # SysV /etc/install, /usr/sbin/install
   7659 # SunOS /usr/etc/install
   7660 # IRIX /sbin/install
   7661 # AIX /bin/install
   7662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   7663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   7664 # ./install, which can be erroneously created by make from ./install.sh.
   7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
   7666 $as_echo_n "checking for a BSD compatible install... " >&6; }
   7667 if test -z "$INSTALL"; then
   7668 if test "${ac_cv_path_install+set}" = set; then :
   7669   $as_echo_n "(cached) " >&6
   7670 else
   7671     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
   7672   for ac_dir in $PATH; do
   7673     # Account for people who put trailing slashes in PATH elements.
   7674     case "$ac_dir/" in
   7675     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
   7676     *)
   7677       # OSF1 and SCO ODT 3.0 have their own names for install.
   7678       for ac_prog in ginstall scoinst install; do
   7679         if test -f $ac_dir/$ac_prog; then
   7680 	  if test $ac_prog = install &&
   7681             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
   7682 	    # AIX install.  It has an incompatible calling convention.
   7683 	    # OSF/1 installbsd also uses dspmsg, but is usable.
   7684 	    :
   7685 	  else
   7686 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   7687 	    break 2
   7688 	  fi
   7689 	fi
   7690       done
   7691       ;;
   7692     esac
   7693   done
   7694   IFS="$ac_save_IFS"
   7695 
   7696 fi
   7697   if test "${ac_cv_path_install+set}" = set; then
   7698     INSTALL="$ac_cv_path_install"
   7699   else
   7700     # As a last resort, use the slow shell script.  We don't cache a
   7701     # path for INSTALL within a source directory, because that will
   7702     # break other packages using the cache if that directory is
   7703     # removed, or if the path is relative.
   7704     INSTALL="$ac_install_sh"
   7705   fi
   7706 fi
   7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   7708 $as_echo "$INSTALL" >&6; }
   7709 
   7710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   7711 # It thinks the first close brace ends the variable substitution.
   7712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   7713 
   7714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   7715 
   7716 
   7717 # See if cmp has --ignore-initial.
   7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
   7719 $as_echo_n "checking for cmp's capabilities... " >&6; }
   7720 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
   7721   $as_echo_n "(cached) " >&6
   7722 else
   7723    echo abfoo >t1
   7724   echo cdfoo >t2
   7725   gcc_cv_prog_cmp_skip=slowcompare
   7726   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
   7727     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
   7728       :
   7729     else
   7730       gcc_cv_prog_cmp_skip=gnucompare
   7731     fi
   7732   fi
   7733   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
   7734     if cmp t1 t2 2 2 > /dev/null 2>&1; then
   7735       if cmp t1 t2 1 1 > /dev/null 2>&1; then
   7736         :
   7737       else
   7738         gcc_cv_prog_cmp_skip=fastcompare
   7739       fi
   7740     fi
   7741   fi
   7742   rm t1 t2
   7743 
   7744 fi
   7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
   7746 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
   7747 make_compare_target=$gcc_cv_prog_cmp_skip
   7748 
   7749 
   7750 
   7751 # See if we have the mktemp command.
   7752 # Extract the first word of "mktemp", so it can be a program name with args.
   7753 set dummy mktemp; ac_word=$2
   7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7755 $as_echo_n "checking for $ac_word... " >&6; }
   7756 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
   7757   $as_echo_n "(cached) " >&6
   7758 else
   7759   if test -n "$have_mktemp_command"; then
   7760   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
   7761 else
   7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7763 for as_dir in $PATH
   7764 do
   7765   IFS=$as_save_IFS
   7766   test -z "$as_dir" && as_dir=.
   7767     for ac_exec_ext in '' $ac_executable_extensions; do
   7768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7769     ac_cv_prog_have_mktemp_command="yes"
   7770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7771     break 2
   7772   fi
   7773 done
   7774   done
   7775 IFS=$as_save_IFS
   7776 
   7777   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
   7778 fi
   7779 fi
   7780 have_mktemp_command=$ac_cv_prog_have_mktemp_command
   7781 if test -n "$have_mktemp_command"; then
   7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
   7783 $as_echo "$have_mktemp_command" >&6; }
   7784 else
   7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7786 $as_echo "no" >&6; }
   7787 fi
   7788 
   7789 
   7790 
   7791 # See if makeinfo has been installed and is modern enough
   7792 # that we can use it.
   7793 
   7794   # Extract the first word of "makeinfo", so it can be a program name with args.
   7795 set dummy makeinfo; ac_word=$2
   7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7797 $as_echo_n "checking for $ac_word... " >&6; }
   7798 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
   7799   $as_echo_n "(cached) " >&6
   7800 else
   7801   if test -n "$MAKEINFO"; then
   7802   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
   7803 else
   7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7805 for as_dir in $PATH
   7806 do
   7807   IFS=$as_save_IFS
   7808   test -z "$as_dir" && as_dir=.
   7809     for ac_exec_ext in '' $ac_executable_extensions; do
   7810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7811     ac_cv_prog_MAKEINFO="makeinfo"
   7812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7813     break 2
   7814   fi
   7815 done
   7816   done
   7817 IFS=$as_save_IFS
   7818 
   7819 fi
   7820 fi
   7821 MAKEINFO=$ac_cv_prog_MAKEINFO
   7822 if test -n "$MAKEINFO"; then
   7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
   7824 $as_echo "$MAKEINFO" >&6; }
   7825 else
   7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7827 $as_echo "no" >&6; }
   7828 fi
   7829 
   7830 
   7831   if test -n "$MAKEINFO"; then
   7832     # Found it, now check the version.
   7833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
   7834 $as_echo_n "checking for modern makeinfo... " >&6; }
   7835 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
   7836   $as_echo_n "(cached) " >&6
   7837 else
   7838   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
   7839                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
   7840 
   7841                     case $ac_prog_version in
   7842                       '')  gcc_cv_prog_makeinfo_modern=no;;
   7843                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
   7844                       *)   gcc_cv_prog_makeinfo_modern=no;;
   7845                     esac
   7846 
   7847 fi
   7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
   7849 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
   7850   else
   7851     gcc_cv_prog_makeinfo_modern=no
   7852   fi
   7853   if test $gcc_cv_prog_makeinfo_modern = no; then
   7854     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
   7855   fi
   7856 
   7857 if test $gcc_cv_prog_makeinfo_modern = no; then
   7858   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
   7859 *** Makeinfo is missing or too old.
   7860 *** Info documentation will not be built." >&5
   7861 $as_echo "$as_me: WARNING:
   7862 *** Makeinfo is missing or too old.
   7863 *** Info documentation will not be built." >&2;}
   7864   BUILD_INFO=
   7865 else
   7866   BUILD_INFO=info
   7867 fi
   7868 
   7869 
   7870 # Is pod2man recent enough to regenerate manpages?
   7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
   7872 $as_echo_n "checking for recent Pod::Man... " >&6; }
   7873 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
   7874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7875 $as_echo "yes" >&6; }
   7876   GENERATED_MANPAGES=generated-manpages
   7877 else
   7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7879 $as_echo "no" >&6; }
   7880   GENERATED_MANPAGES=
   7881 fi
   7882 
   7883 
   7884 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
   7885 
   7886 # How about lex?
   7887 for ac_prog in flex
   7888 do
   7889   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7890 set dummy $ac_prog; ac_word=$2
   7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7892 $as_echo_n "checking for $ac_word... " >&6; }
   7893 if test "${ac_cv_prog_FLEX+set}" = set; then :
   7894   $as_echo_n "(cached) " >&6
   7895 else
   7896   if test -n "$FLEX"; then
   7897   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
   7898 else
   7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7900 for as_dir in $PATH
   7901 do
   7902   IFS=$as_save_IFS
   7903   test -z "$as_dir" && as_dir=.
   7904     for ac_exec_ext in '' $ac_executable_extensions; do
   7905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7906     ac_cv_prog_FLEX="$ac_prog"
   7907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7908     break 2
   7909   fi
   7910 done
   7911   done
   7912 IFS=$as_save_IFS
   7913 
   7914 fi
   7915 fi
   7916 FLEX=$ac_cv_prog_FLEX
   7917 if test -n "$FLEX"; then
   7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
   7919 $as_echo "$FLEX" >&6; }
   7920 else
   7921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7922 $as_echo "no" >&6; }
   7923 fi
   7924 
   7925 
   7926   test -n "$FLEX" && break
   7927 done
   7928 test -n "$FLEX" || FLEX="$MISSING flex"
   7929 
   7930 
   7931 # Bison?
   7932 for ac_prog in bison
   7933 do
   7934   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7935 set dummy $ac_prog; ac_word=$2
   7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7937 $as_echo_n "checking for $ac_word... " >&6; }
   7938 if test "${ac_cv_prog_BISON+set}" = set; then :
   7939   $as_echo_n "(cached) " >&6
   7940 else
   7941   if test -n "$BISON"; then
   7942   ac_cv_prog_BISON="$BISON" # Let the user override the test.
   7943 else
   7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7945 for as_dir in $PATH
   7946 do
   7947   IFS=$as_save_IFS
   7948   test -z "$as_dir" && as_dir=.
   7949     for ac_exec_ext in '' $ac_executable_extensions; do
   7950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7951     ac_cv_prog_BISON="$ac_prog"
   7952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7953     break 2
   7954   fi
   7955 done
   7956   done
   7957 IFS=$as_save_IFS
   7958 
   7959 fi
   7960 fi
   7961 BISON=$ac_cv_prog_BISON
   7962 if test -n "$BISON"; then
   7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
   7964 $as_echo "$BISON" >&6; }
   7965 else
   7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7967 $as_echo "no" >&6; }
   7968 fi
   7969 
   7970 
   7971   test -n "$BISON" && break
   7972 done
   7973 test -n "$BISON" || BISON="$MISSING bison"
   7974 
   7975 
   7976 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
   7977 # check for build == host before using them.
   7978 
   7979 # NM
   7980 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
   7981   && test -d ../binutils ; then
   7982   NM='${objdir}/../binutils/nm-new'
   7983 else
   7984   # Extract the first word of "nm", so it can be a program name with args.
   7985 set dummy nm; ac_word=$2
   7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7987 $as_echo_n "checking for $ac_word... " >&6; }
   7988 if test "${ac_cv_prog_NM+set}" = set; then :
   7989   $as_echo_n "(cached) " >&6
   7990 else
   7991   if test -n "$NM"; then
   7992   ac_cv_prog_NM="$NM" # Let the user override the test.
   7993 else
   7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7995 for as_dir in $PATH
   7996 do
   7997   IFS=$as_save_IFS
   7998   test -z "$as_dir" && as_dir=.
   7999     for ac_exec_ext in '' $ac_executable_extensions; do
   8000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8001     ac_cv_prog_NM="nm"
   8002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8003     break 2
   8004   fi
   8005 done
   8006   done
   8007 IFS=$as_save_IFS
   8008 
   8009   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
   8010 fi
   8011 fi
   8012 NM=$ac_cv_prog_NM
   8013 if test -n "$NM"; then
   8014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
   8015 $as_echo "$NM" >&6; }
   8016 else
   8017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8018 $as_echo "no" >&6; }
   8019 fi
   8020 
   8021 
   8022 fi
   8023 
   8024 # AR
   8025 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
   8026   && test -d ../binutils ; then
   8027   AR='${objdir}/../binutils/ar'
   8028 else
   8029   # Extract the first word of "ar", so it can be a program name with args.
   8030 set dummy ar; ac_word=$2
   8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8032 $as_echo_n "checking for $ac_word... " >&6; }
   8033 if test "${ac_cv_prog_AR+set}" = set; then :
   8034   $as_echo_n "(cached) " >&6
   8035 else
   8036   if test -n "$AR"; then
   8037   ac_cv_prog_AR="$AR" # Let the user override the test.
   8038 else
   8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8040 for as_dir in $PATH
   8041 do
   8042   IFS=$as_save_IFS
   8043   test -z "$as_dir" && as_dir=.
   8044     for ac_exec_ext in '' $ac_executable_extensions; do
   8045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8046     ac_cv_prog_AR="ar"
   8047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8048     break 2
   8049   fi
   8050 done
   8051   done
   8052 IFS=$as_save_IFS
   8053 
   8054   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
   8055 fi
   8056 fi
   8057 AR=$ac_cv_prog_AR
   8058 if test -n "$AR"; then
   8059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   8060 $as_echo "$AR" >&6; }
   8061 else
   8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8063 $as_echo "no" >&6; }
   8064 fi
   8065 
   8066 
   8067 fi
   8068 
   8069 
   8070 # --------------------
   8071 # Checks for C headers
   8072 # --------------------
   8073 
   8074 # Need to reject headers which give warnings, so that the -Werror bootstrap
   8075 # works later. *sigh*  This needs to come before all header checks.
   8076 
   8077 ac_c_preproc_warn_flag=yes
   8078 
   8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   8080 $as_echo_n "checking for ANSI C header files... " >&6; }
   8081 if test "${ac_cv_header_stdc+set}" = set; then :
   8082   $as_echo_n "(cached) " >&6
   8083 else
   8084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8085 /* end confdefs.h.  */
   8086 #include <stdlib.h>
   8087 #include <stdarg.h>
   8088 #include <string.h>
   8089 #include <float.h>
   8090 
   8091 int
   8092 main ()
   8093 {
   8094 
   8095   ;
   8096   return 0;
   8097 }
   8098 _ACEOF
   8099 if ac_fn_c_try_compile "$LINENO"; then :
   8100   ac_cv_header_stdc=yes
   8101 else
   8102   ac_cv_header_stdc=no
   8103 fi
   8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8105 
   8106 if test $ac_cv_header_stdc = yes; then
   8107   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   8108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8109 /* end confdefs.h.  */
   8110 #include <string.h>
   8111 
   8112 _ACEOF
   8113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8114   $EGREP "memchr" >/dev/null 2>&1; then :
   8115 
   8116 else
   8117   ac_cv_header_stdc=no
   8118 fi
   8119 rm -f conftest*
   8120 
   8121 fi
   8122 
   8123 if test $ac_cv_header_stdc = yes; then
   8124   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   8125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8126 /* end confdefs.h.  */
   8127 #include <stdlib.h>
   8128 
   8129 _ACEOF
   8130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8131   $EGREP "free" >/dev/null 2>&1; then :
   8132 
   8133 else
   8134   ac_cv_header_stdc=no
   8135 fi
   8136 rm -f conftest*
   8137 
   8138 fi
   8139 
   8140 if test $ac_cv_header_stdc = yes; then
   8141   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   8142   if test "$cross_compiling" = yes; then :
   8143   :
   8144 else
   8145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8146 /* end confdefs.h.  */
   8147 #include <ctype.h>
   8148 #include <stdlib.h>
   8149 #if ((' ' & 0x0FF) == 0x020)
   8150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   8151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   8152 #else
   8153 # define ISLOWER(c) \
   8154 		   (('a' <= (c) && (c) <= 'i') \
   8155 		     || ('j' <= (c) && (c) <= 'r') \
   8156 		     || ('s' <= (c) && (c) <= 'z'))
   8157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   8158 #endif
   8159 
   8160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   8161 int
   8162 main ()
   8163 {
   8164   int i;
   8165   for (i = 0; i < 256; i++)
   8166     if (XOR (islower (i), ISLOWER (i))
   8167 	|| toupper (i) != TOUPPER (i))
   8168       return 2;
   8169   return 0;
   8170 }
   8171 _ACEOF
   8172 if ac_fn_c_try_run "$LINENO"; then :
   8173 
   8174 else
   8175   ac_cv_header_stdc=no
   8176 fi
   8177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   8178   conftest.$ac_objext conftest.beam conftest.$ac_ext
   8179 fi
   8180 
   8181 fi
   8182 fi
   8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   8184 $as_echo "$ac_cv_header_stdc" >&6; }
   8185 if test $ac_cv_header_stdc = yes; then
   8186 
   8187 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   8188 
   8189 fi
   8190 
   8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   8192 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   8193 if test "${ac_cv_header_time+set}" = set; then :
   8194   $as_echo_n "(cached) " >&6
   8195 else
   8196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8197 /* end confdefs.h.  */
   8198 #include <sys/types.h>
   8199 #include <sys/time.h>
   8200 #include <time.h>
   8201 
   8202 int
   8203 main ()
   8204 {
   8205 if ((struct tm *) 0)
   8206 return 0;
   8207   ;
   8208   return 0;
   8209 }
   8210 _ACEOF
   8211 if ac_fn_c_try_compile "$LINENO"; then :
   8212   ac_cv_header_time=yes
   8213 else
   8214   ac_cv_header_time=no
   8215 fi
   8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8217 fi
   8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   8219 $as_echo "$ac_cv_header_time" >&6; }
   8220 if test $ac_cv_header_time = yes; then
   8221 
   8222 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   8223 
   8224 fi
   8225 
   8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
   8227 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
   8228 if test "${gcc_cv_header_string+set}" = set; then :
   8229   $as_echo_n "(cached) " >&6
   8230 else
   8231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8232 /* end confdefs.h.  */
   8233 #include <string.h>
   8234 #include <strings.h>
   8235 int
   8236 main ()
   8237 {
   8238 
   8239   ;
   8240   return 0;
   8241 }
   8242 _ACEOF
   8243 if ac_fn_c_try_compile "$LINENO"; then :
   8244   gcc_cv_header_string=yes
   8245 else
   8246   gcc_cv_header_string=no
   8247 fi
   8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8249 fi
   8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
   8251 $as_echo "$gcc_cv_header_string" >&6; }
   8252 if test $gcc_cv_header_string = yes; then
   8253 
   8254 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
   8255 
   8256 fi
   8257 
   8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
   8259 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
   8260 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
   8261   $as_echo_n "(cached) " >&6
   8262 else
   8263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8264 /* end confdefs.h.  */
   8265 #include <sys/types.h>
   8266 #include <sys/wait.h>
   8267 #ifndef WEXITSTATUS
   8268 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
   8269 #endif
   8270 #ifndef WIFEXITED
   8271 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   8272 #endif
   8273 
   8274 int
   8275 main ()
   8276 {
   8277   int s;
   8278   wait (&s);
   8279   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   8280   ;
   8281   return 0;
   8282 }
   8283 _ACEOF
   8284 if ac_fn_c_try_compile "$LINENO"; then :
   8285   ac_cv_header_sys_wait_h=yes
   8286 else
   8287   ac_cv_header_sys_wait_h=no
   8288 fi
   8289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8290 fi
   8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
   8292 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
   8293 if test $ac_cv_header_sys_wait_h = yes; then
   8294 
   8295 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
   8296 
   8297 fi
   8298 
   8299 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
   8300 		 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
   8301 		 sys/resource.h sys/param.h sys/times.h sys/stat.h \
   8302 		 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
   8303 do :
   8304   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8305 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
   8306 eval as_val=\$$as_ac_Header
   8307    if test "x$as_val" = x""yes; then :
   8308   cat >>confdefs.h <<_ACEOF
   8309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8310 _ACEOF
   8311 
   8312 fi
   8313 done
   8314 
   8315 
   8316 # Check for thread headers.
   8317 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
   8318 if test "x$ac_cv_header_thread_h" = x""yes; then :
   8319   have_thread_h=yes
   8320 else
   8321   have_thread_h=
   8322 fi
   8323 
   8324 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
   8325 if test "x$ac_cv_header_pthread_h" = x""yes; then :
   8326   have_pthread_h=yes
   8327 else
   8328   have_pthread_h=
   8329 fi
   8330 
   8331 
   8332 # These tests can't be done till we know if we have limits.h.
   8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
   8334 $as_echo_n "checking for CHAR_BIT... " >&6; }
   8335 if test "${gcc_cv_decl_char_bit+set}" = set; then :
   8336   $as_echo_n "(cached) " >&6
   8337 else
   8338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8339 /* end confdefs.h.  */
   8340 #ifdef HAVE_LIMITS_H
   8341 #include <limits.h>
   8342 #endif
   8343 #ifdef CHAR_BIT
   8344 found
   8345 #endif
   8346 _ACEOF
   8347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8348   $EGREP "found" >/dev/null 2>&1; then :
   8349   gcc_cv_decl_char_bit=yes
   8350 else
   8351   gcc_cv_decl_char_bit=no
   8352 fi
   8353 rm -f conftest*
   8354 
   8355 
   8356 fi
   8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
   8358 $as_echo "$gcc_cv_decl_char_bit" >&6; }
   8359 if test $gcc_cv_decl_char_bit = no; then
   8360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
   8361 $as_echo_n "checking number of bits in a byte... " >&6; }
   8362 if test "${gcc_cv_c_nbby+set}" = set; then :
   8363   $as_echo_n "(cached) " >&6
   8364 else
   8365   i=8
   8366  gcc_cv_c_nbby=
   8367  while test $i -lt 65; do
   8368    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8369 /* end confdefs.h.  */
   8370 
   8371 int
   8372 main ()
   8373 {
   8374 switch(0) {
   8375   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
   8376   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
   8377   ; }
   8378   ;
   8379   return 0;
   8380 }
   8381 _ACEOF
   8382 if ac_fn_c_try_compile "$LINENO"; then :
   8383   gcc_cv_c_nbby=$i; break
   8384 fi
   8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8386    i=`expr $i + 1`
   8387  done
   8388  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
   8389 
   8390 fi
   8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
   8392 $as_echo "$gcc_cv_c_nbby" >&6; }
   8393 if test $gcc_cv_c_nbby = failed; then
   8394   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
   8395 else
   8396 
   8397 cat >>confdefs.h <<_ACEOF
   8398 #define CHAR_BIT $gcc_cv_c_nbby
   8399 _ACEOF
   8400 
   8401 fi
   8402 fi
   8403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   8404 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   8405 if test "${ac_cv_c_bigendian+set}" = set; then :
   8406   $as_echo_n "(cached) " >&6
   8407 else
   8408   ac_cv_c_bigendian=unknown
   8409     # See if we're dealing with a universal compiler.
   8410     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8411 /* end confdefs.h.  */
   8412 #ifndef __APPLE_CC__
   8413 	       not a universal capable compiler
   8414 	     #endif
   8415 	     typedef int dummy;
   8416 
   8417 _ACEOF
   8418 if ac_fn_c_try_compile "$LINENO"; then :
   8419 
   8420 	# Check for potential -arch flags.  It is not universal unless
   8421 	# there are at least two -arch flags with different values.
   8422 	ac_arch=
   8423 	ac_prev=
   8424 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   8425 	 if test -n "$ac_prev"; then
   8426 	   case $ac_word in
   8427 	     i?86 | x86_64 | ppc | ppc64)
   8428 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   8429 		 ac_arch=$ac_word
   8430 	       else
   8431 		 ac_cv_c_bigendian=universal
   8432 		 break
   8433 	       fi
   8434 	       ;;
   8435 	   esac
   8436 	   ac_prev=
   8437 	 elif test "x$ac_word" = "x-arch"; then
   8438 	   ac_prev=arch
   8439 	 fi
   8440        done
   8441 fi
   8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8443     if test $ac_cv_c_bigendian = unknown; then
   8444       # See if sys/param.h defines the BYTE_ORDER macro.
   8445       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8446 /* end confdefs.h.  */
   8447 #include <sys/types.h>
   8448 	     #include <sys/param.h>
   8449 
   8450 int
   8451 main ()
   8452 {
   8453 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   8454 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   8455 		     && LITTLE_ENDIAN)
   8456 	      bogus endian macros
   8457 	     #endif
   8458 
   8459   ;
   8460   return 0;
   8461 }
   8462 _ACEOF
   8463 if ac_fn_c_try_compile "$LINENO"; then :
   8464   # It does; now see whether it defined to BIG_ENDIAN or not.
   8465 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8466 /* end confdefs.h.  */
   8467 #include <sys/types.h>
   8468 		#include <sys/param.h>
   8469 
   8470 int
   8471 main ()
   8472 {
   8473 #if BYTE_ORDER != BIG_ENDIAN
   8474 		 not big endian
   8475 		#endif
   8476 
   8477   ;
   8478   return 0;
   8479 }
   8480 _ACEOF
   8481 if ac_fn_c_try_compile "$LINENO"; then :
   8482   ac_cv_c_bigendian=yes
   8483 else
   8484   ac_cv_c_bigendian=no
   8485 fi
   8486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8487 fi
   8488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8489     fi
   8490     if test $ac_cv_c_bigendian = unknown; then
   8491       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   8492       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8493 /* end confdefs.h.  */
   8494 #include <limits.h>
   8495 
   8496 int
   8497 main ()
   8498 {
   8499 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   8500 	      bogus endian macros
   8501 	     #endif
   8502 
   8503   ;
   8504   return 0;
   8505 }
   8506 _ACEOF
   8507 if ac_fn_c_try_compile "$LINENO"; then :
   8508   # It does; now see whether it defined to _BIG_ENDIAN or not.
   8509 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8510 /* end confdefs.h.  */
   8511 #include <limits.h>
   8512 
   8513 int
   8514 main ()
   8515 {
   8516 #ifndef _BIG_ENDIAN
   8517 		 not big endian
   8518 		#endif
   8519 
   8520   ;
   8521   return 0;
   8522 }
   8523 _ACEOF
   8524 if ac_fn_c_try_compile "$LINENO"; then :
   8525   ac_cv_c_bigendian=yes
   8526 else
   8527   ac_cv_c_bigendian=no
   8528 fi
   8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8530 fi
   8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8532     fi
   8533     if test $ac_cv_c_bigendian = unknown; then
   8534       # Compile a test program.
   8535       if test "$cross_compiling" = yes; then :
   8536   # Try to guess by grepping values from an object file.
   8537 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8538 /* end confdefs.h.  */
   8539 short int ascii_mm[] =
   8540 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   8541 		short int ascii_ii[] =
   8542 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   8543 		int use_ascii (int i) {
   8544 		  return ascii_mm[i] + ascii_ii[i];
   8545 		}
   8546 		short int ebcdic_ii[] =
   8547 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   8548 		short int ebcdic_mm[] =
   8549 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   8550 		int use_ebcdic (int i) {
   8551 		  return ebcdic_mm[i] + ebcdic_ii[i];
   8552 		}
   8553 		extern int foo;
   8554 
   8555 int
   8556 main ()
   8557 {
   8558 return use_ascii (foo) == use_ebcdic (foo);
   8559   ;
   8560   return 0;
   8561 }
   8562 _ACEOF
   8563 if ac_fn_c_try_compile "$LINENO"; then :
   8564   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   8565 	      ac_cv_c_bigendian=yes
   8566 	    fi
   8567 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   8568 	      if test "$ac_cv_c_bigendian" = unknown; then
   8569 		ac_cv_c_bigendian=no
   8570 	      else
   8571 		# finding both strings is unlikely to happen, but who knows?
   8572 		ac_cv_c_bigendian=unknown
   8573 	      fi
   8574 	    fi
   8575 fi
   8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8577 else
   8578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8579 /* end confdefs.h.  */
   8580 $ac_includes_default
   8581 int
   8582 main ()
   8583 {
   8584 
   8585 	     /* Are we little or big endian?  From Harbison&Steele.  */
   8586 	     union
   8587 	     {
   8588 	       long int l;
   8589 	       char c[sizeof (long int)];
   8590 	     } u;
   8591 	     u.l = 1;
   8592 	     return u.c[sizeof (long int) - 1] == 1;
   8593 
   8594   ;
   8595   return 0;
   8596 }
   8597 _ACEOF
   8598 if ac_fn_c_try_run "$LINENO"; then :
   8599   ac_cv_c_bigendian=no
   8600 else
   8601   ac_cv_c_bigendian=yes
   8602 fi
   8603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   8604   conftest.$ac_objext conftest.beam conftest.$ac_ext
   8605 fi
   8606 
   8607     fi
   8608 fi
   8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   8610 $as_echo "$ac_cv_c_bigendian" >&6; }
   8611  case $ac_cv_c_bigendian in #(
   8612    yes)
   8613      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   8614 ;; #(
   8615    no)
   8616       ;; #(
   8617    universal)
   8618 
   8619 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   8620 
   8621      ;; #(
   8622    *)
   8623      as_fn_error "unknown endianness
   8624  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   8625  esac
   8626 
   8627 
   8628 # ----------------------
   8629 # Checks for C++ headers
   8630 # ----------------------
   8631 
   8632 ac_ext=cpp
   8633 ac_cpp='$CXXCPP $CPPFLAGS'
   8634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
   8638 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
   8639 if test -z "$CXXCPP"; then
   8640   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
   8641   $as_echo_n "(cached) " >&6
   8642 else
   8643       # Double quotes because CXXCPP needs to be expanded
   8644     for CXXCPP in "$CXX -E" "/lib/cpp"
   8645     do
   8646       ac_preproc_ok=false
   8647 for ac_cxx_preproc_warn_flag in '' yes
   8648 do
   8649   # Use a header file that comes with gcc, so configuring glibc
   8650   # with a fresh cross-compiler works.
   8651   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8652   # <limits.h> exists even on freestanding compilers.
   8653   # On the NeXT, cc -E runs the code through the compiler's parser,
   8654   # not just through cpp. "Syntax error" is here to catch this case.
   8655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8656 /* end confdefs.h.  */
   8657 #ifdef __STDC__
   8658 # include <limits.h>
   8659 #else
   8660 # include <assert.h>
   8661 #endif
   8662 		     Syntax error
   8663 _ACEOF
   8664 if ac_fn_cxx_try_cpp "$LINENO"; then :
   8665 
   8666 else
   8667   # Broken: fails on valid input.
   8668 continue
   8669 fi
   8670 rm -f conftest.err conftest.$ac_ext
   8671 
   8672   # OK, works on sane cases.  Now check whether nonexistent headers
   8673   # can be detected and how.
   8674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8675 /* end confdefs.h.  */
   8676 #include <ac_nonexistent.h>
   8677 _ACEOF
   8678 if ac_fn_cxx_try_cpp "$LINENO"; then :
   8679   # Broken: success on invalid input.
   8680 continue
   8681 else
   8682   # Passes both tests.
   8683 ac_preproc_ok=:
   8684 break
   8685 fi
   8686 rm -f conftest.err conftest.$ac_ext
   8687 
   8688 done
   8689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   8690 rm -f conftest.err conftest.$ac_ext
   8691 if $ac_preproc_ok; then :
   8692   break
   8693 fi
   8694 
   8695     done
   8696     ac_cv_prog_CXXCPP=$CXXCPP
   8697 
   8698 fi
   8699   CXXCPP=$ac_cv_prog_CXXCPP
   8700 else
   8701   ac_cv_prog_CXXCPP=$CXXCPP
   8702 fi
   8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
   8704 $as_echo "$CXXCPP" >&6; }
   8705 ac_preproc_ok=false
   8706 for ac_cxx_preproc_warn_flag in '' yes
   8707 do
   8708   # Use a header file that comes with gcc, so configuring glibc
   8709   # with a fresh cross-compiler works.
   8710   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8711   # <limits.h> exists even on freestanding compilers.
   8712   # On the NeXT, cc -E runs the code through the compiler's parser,
   8713   # not just through cpp. "Syntax error" is here to catch this case.
   8714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8715 /* end confdefs.h.  */
   8716 #ifdef __STDC__
   8717 # include <limits.h>
   8718 #else
   8719 # include <assert.h>
   8720 #endif
   8721 		     Syntax error
   8722 _ACEOF
   8723 if ac_fn_cxx_try_cpp "$LINENO"; then :
   8724 
   8725 else
   8726   # Broken: fails on valid input.
   8727 continue
   8728 fi
   8729 rm -f conftest.err conftest.$ac_ext
   8730 
   8731   # OK, works on sane cases.  Now check whether nonexistent headers
   8732   # can be detected and how.
   8733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8734 /* end confdefs.h.  */
   8735 #include <ac_nonexistent.h>
   8736 _ACEOF
   8737 if ac_fn_cxx_try_cpp "$LINENO"; then :
   8738   # Broken: success on invalid input.
   8739 continue
   8740 else
   8741   # Passes both tests.
   8742 ac_preproc_ok=:
   8743 break
   8744 fi
   8745 rm -f conftest.err conftest.$ac_ext
   8746 
   8747 done
   8748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   8749 rm -f conftest.err conftest.$ac_ext
   8750 if $ac_preproc_ok; then :
   8751 
   8752 else
   8753   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
   8756 See \`config.log' for more details." >&5
   8757 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
   8758 See \`config.log' for more details." >&2;}; }
   8759 fi
   8760 
   8761 ac_ext=c
   8762 ac_cpp='$CPP $CPPFLAGS'
   8763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8766 
   8767 
   8768 ac_ext=cpp
   8769 ac_cpp='$CXXCPP $CPPFLAGS'
   8770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8773 
   8774 
   8775 
   8776 
   8777 for ac_header in unordered_map
   8778 do :
   8779   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
   8780 if test "x$ac_cv_header_unordered_map" = x""yes; then :
   8781   cat >>confdefs.h <<_ACEOF
   8782 #define HAVE_UNORDERED_MAP 1
   8783 _ACEOF
   8784 
   8785 fi
   8786 done
   8787 
   8788 for ac_header in tr1/unordered_map
   8789 do :
   8790   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
   8791 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
   8792   cat >>confdefs.h <<_ACEOF
   8793 #define HAVE_TR1_UNORDERED_MAP 1
   8794 _ACEOF
   8795 
   8796 fi
   8797 done
   8798 
   8799 for ac_header in ext/hash_map
   8800 do :
   8801   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
   8802 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
   8803   cat >>confdefs.h <<_ACEOF
   8804 #define HAVE_EXT_HASH_MAP 1
   8805 _ACEOF
   8806 
   8807 fi
   8808 done
   8809 
   8810 
   8811 ac_ext=c
   8812 ac_cpp='$CPP $CPPFLAGS'
   8813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8816 
   8817 
   8818 # --------
   8819 # UNSORTED
   8820 # --------
   8821 
   8822 
   8823 # These libraries may be used by collect2.
   8824 # We may need a special search path to get them linked.
   8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
   8826 $as_echo_n "checking for collect2 libraries... " >&6; }
   8827 if test "${gcc_cv_collect2_libs+set}" = set; then :
   8828   $as_echo_n "(cached) " >&6
   8829 else
   8830   save_LIBS="$LIBS"
   8831 for libs in '' -lld -lmld \
   8832 		'-L/usr/lib/cmplrs/cc2.11 -lmld' \
   8833 		'-L/usr/lib/cmplrs/cc3.11 -lmld'
   8834 do
   8835 	LIBS="$libs"
   8836 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8837 /* end confdefs.h.  */
   8838 
   8839 /* Override any GCC internal prototype to avoid an error.
   8840    Use char because int might match the return type of a GCC
   8841    builtin and then its argument prototype would still apply.  */
   8842 #ifdef __cplusplus
   8843 extern "C"
   8844 #endif
   8845 char ldopen ();
   8846 int
   8847 main ()
   8848 {
   8849 return ldopen ();
   8850   ;
   8851   return 0;
   8852 }
   8853 _ACEOF
   8854 if ac_fn_c_try_link "$LINENO"; then :
   8855   gcc_cv_collect2_libs="$libs"; break
   8856 fi
   8857 rm -f core conftest.err conftest.$ac_objext \
   8858     conftest$ac_exeext conftest.$ac_ext
   8859 done
   8860 LIBS="$save_LIBS"
   8861 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
   8862 fi
   8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
   8864 $as_echo "$gcc_cv_collect2_libs" >&6; }
   8865 case $gcc_cv_collect2_libs in
   8866 	"none required")	;;
   8867 	*)	COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
   8868 esac
   8869 
   8870 
   8871 # When building Ada code on Alpha, we need exc_resume which is usually in
   8872 # -lexc.  So test for it.
   8873 save_LIBS="$LIBS"
   8874 LIBS=
   8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
   8876 $as_echo_n "checking for library containing exc_resume... " >&6; }
   8877 if test "${ac_cv_search_exc_resume+set}" = set; then :
   8878   $as_echo_n "(cached) " >&6
   8879 else
   8880   ac_func_search_save_LIBS=$LIBS
   8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8882 /* end confdefs.h.  */
   8883 
   8884 /* Override any GCC internal prototype to avoid an error.
   8885    Use char because int might match the return type of a GCC
   8886    builtin and then its argument prototype would still apply.  */
   8887 #ifdef __cplusplus
   8888 extern "C"
   8889 #endif
   8890 char exc_resume ();
   8891 int
   8892 main ()
   8893 {
   8894 return exc_resume ();
   8895   ;
   8896   return 0;
   8897 }
   8898 _ACEOF
   8899 for ac_lib in '' exc; do
   8900   if test -z "$ac_lib"; then
   8901     ac_res="none required"
   8902   else
   8903     ac_res=-l$ac_lib
   8904     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8905   fi
   8906   if ac_fn_c_try_link "$LINENO"; then :
   8907   ac_cv_search_exc_resume=$ac_res
   8908 fi
   8909 rm -f core conftest.err conftest.$ac_objext \
   8910     conftest$ac_exeext
   8911   if test "${ac_cv_search_exc_resume+set}" = set; then :
   8912   break
   8913 fi
   8914 done
   8915 if test "${ac_cv_search_exc_resume+set}" = set; then :
   8916 
   8917 else
   8918   ac_cv_search_exc_resume=no
   8919 fi
   8920 rm conftest.$ac_ext
   8921 LIBS=$ac_func_search_save_LIBS
   8922 fi
   8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
   8924 $as_echo "$ac_cv_search_exc_resume" >&6; }
   8925 ac_res=$ac_cv_search_exc_resume
   8926 if test "$ac_res" != no; then :
   8927   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8928 
   8929 fi
   8930 
   8931 GNAT_LIBEXC="$LIBS"
   8932 LIBS="$save_LIBS"
   8933 
   8934 
   8935 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
   8936 save_LIBS="$LIBS"
   8937 LIBS=
   8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
   8939 $as_echo_n "checking for library containing kstat_open... " >&6; }
   8940 if test "${ac_cv_search_kstat_open+set}" = set; then :
   8941   $as_echo_n "(cached) " >&6
   8942 else
   8943   ac_func_search_save_LIBS=$LIBS
   8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8945 /* end confdefs.h.  */
   8946 
   8947 /* Override any GCC internal prototype to avoid an error.
   8948    Use char because int might match the return type of a GCC
   8949    builtin and then its argument prototype would still apply.  */
   8950 #ifdef __cplusplus
   8951 extern "C"
   8952 #endif
   8953 char kstat_open ();
   8954 int
   8955 main ()
   8956 {
   8957 return kstat_open ();
   8958   ;
   8959   return 0;
   8960 }
   8961 _ACEOF
   8962 for ac_lib in '' kstat; do
   8963   if test -z "$ac_lib"; then
   8964     ac_res="none required"
   8965   else
   8966     ac_res=-l$ac_lib
   8967     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8968   fi
   8969   if ac_fn_c_try_link "$LINENO"; then :
   8970   ac_cv_search_kstat_open=$ac_res
   8971 fi
   8972 rm -f core conftest.err conftest.$ac_objext \
   8973     conftest$ac_exeext
   8974   if test "${ac_cv_search_kstat_open+set}" = set; then :
   8975   break
   8976 fi
   8977 done
   8978 if test "${ac_cv_search_kstat_open+set}" = set; then :
   8979 
   8980 else
   8981   ac_cv_search_kstat_open=no
   8982 fi
   8983 rm conftest.$ac_ext
   8984 LIBS=$ac_func_search_save_LIBS
   8985 fi
   8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
   8987 $as_echo "$ac_cv_search_kstat_open" >&6; }
   8988 ac_res=$ac_cv_search_kstat_open
   8989 if test "$ac_res" != no; then :
   8990   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8991 
   8992 fi
   8993 
   8994 EXTRA_GCC_LIBS="$LIBS"
   8995 LIBS="$save_LIBS"
   8996 
   8997 
   8998 # Some systems put ldexp and frexp in libm instead of libc; assume
   8999 # they're both in the same place.  jcf-dump needs them.
   9000 save_LIBS="$LIBS"
   9001 LIBS=
   9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
   9003 $as_echo_n "checking for library containing ldexp... " >&6; }
   9004 if test "${ac_cv_search_ldexp+set}" = set; then :
   9005   $as_echo_n "(cached) " >&6
   9006 else
   9007   ac_func_search_save_LIBS=$LIBS
   9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9009 /* end confdefs.h.  */
   9010 
   9011 /* Override any GCC internal prototype to avoid an error.
   9012    Use char because int might match the return type of a GCC
   9013    builtin and then its argument prototype would still apply.  */
   9014 #ifdef __cplusplus
   9015 extern "C"
   9016 #endif
   9017 char ldexp ();
   9018 int
   9019 main ()
   9020 {
   9021 return ldexp ();
   9022   ;
   9023   return 0;
   9024 }
   9025 _ACEOF
   9026 for ac_lib in '' m; do
   9027   if test -z "$ac_lib"; then
   9028     ac_res="none required"
   9029   else
   9030     ac_res=-l$ac_lib
   9031     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9032   fi
   9033   if ac_fn_c_try_link "$LINENO"; then :
   9034   ac_cv_search_ldexp=$ac_res
   9035 fi
   9036 rm -f core conftest.err conftest.$ac_objext \
   9037     conftest$ac_exeext
   9038   if test "${ac_cv_search_ldexp+set}" = set; then :
   9039   break
   9040 fi
   9041 done
   9042 if test "${ac_cv_search_ldexp+set}" = set; then :
   9043 
   9044 else
   9045   ac_cv_search_ldexp=no
   9046 fi
   9047 rm conftest.$ac_ext
   9048 LIBS=$ac_func_search_save_LIBS
   9049 fi
   9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
   9051 $as_echo "$ac_cv_search_ldexp" >&6; }
   9052 ac_res=$ac_cv_search_ldexp
   9053 if test "$ac_res" != no; then :
   9054   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9055 
   9056 fi
   9057 
   9058 LDEXP_LIB="$LIBS"
   9059 LIBS="$save_LIBS"
   9060 
   9061 
   9062 # Use <inttypes.h> only if it exists,
   9063 # doesn't clash with <sys/types.h>, and declares intmax_t.
   9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
   9065 $as_echo_n "checking for inttypes.h... " >&6; }
   9066 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
   9067   $as_echo_n "(cached) " >&6
   9068 else
   9069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9070 /* end confdefs.h.  */
   9071 #include <sys/types.h>
   9072 #include <inttypes.h>
   9073 int
   9074 main ()
   9075 {
   9076 intmax_t i = -1;
   9077   ;
   9078   return 0;
   9079 }
   9080 _ACEOF
   9081 if ac_fn_c_try_compile "$LINENO"; then :
   9082   gcc_cv_header_inttypes_h=yes
   9083 else
   9084   gcc_cv_header_inttypes_h=no
   9085 fi
   9086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9087 fi
   9088 
   9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
   9090 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
   9091 if test $gcc_cv_header_inttypes_h = yes; then
   9092 
   9093 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
   9094 
   9095 fi
   9096 
   9097 
   9098 
   9099 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
   9100 	sysconf strsignal getrusage nl_langinfo \
   9101 	gettimeofday mbstowcs wcswidth mmap setlocale \
   9102 	clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked madvise
   9103 do :
   9104   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9105 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   9106 eval as_val=\$$as_ac_var
   9107    if test "x$as_val" = x""yes; then :
   9108   cat >>confdefs.h <<_ACEOF
   9109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9110 _ACEOF
   9111 
   9112 fi
   9113 done
   9114 
   9115 
   9116 if test x$ac_cv_func_mbstowcs = xyes; then
   9117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
   9118 $as_echo_n "checking whether mbstowcs works... " >&6; }
   9119 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
   9120   $as_echo_n "(cached) " >&6
   9121 else
   9122       if test "$cross_compiling" = yes; then :
   9123   gcc_cv_func_mbstowcs_works=yes
   9124 else
   9125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9126 /* end confdefs.h.  */
   9127 #include <stdlib.h>
   9128 int main()
   9129 {
   9130   mbstowcs(0, "", 0);
   9131   return 0;
   9132 }
   9133 _ACEOF
   9134 if ac_fn_c_try_run "$LINENO"; then :
   9135   gcc_cv_func_mbstowcs_works=yes
   9136 else
   9137   gcc_cv_func_mbstowcs_works=no
   9138 fi
   9139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9140   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9141 fi
   9142 
   9143 fi
   9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
   9145 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
   9146   if test x$gcc_cv_func_mbstowcs_works = xyes; then
   9147 
   9148 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
   9149 
   9150   fi
   9151 fi
   9152 
   9153 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   9154 if test "x$ac_cv_type_ssize_t" = x""yes; then :
   9155 
   9156 else
   9157 
   9158 cat >>confdefs.h <<_ACEOF
   9159 #define ssize_t int
   9160 _ACEOF
   9161 
   9162 fi
   9163 
   9164 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
   9165 if test "x$ac_cv_type_caddr_t" = x""yes; then :
   9166 
   9167 else
   9168 
   9169 cat >>confdefs.h <<_ACEOF
   9170 #define caddr_t char *
   9171 _ACEOF
   9172 
   9173 fi
   9174 
   9175 
   9176 
   9177 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
   9178 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
   9179   gcc_header_sys_mman_h=yes
   9180 else
   9181   gcc_header_sys_mman_h=no
   9182 fi
   9183 
   9184 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   9185 if test "x$ac_cv_func_mmap" = x""yes; then :
   9186   gcc_func_mmap=yes
   9187 else
   9188   gcc_func_mmap=no
   9189 fi
   9190 
   9191 if test "$gcc_header_sys_mman_h" != yes \
   9192  || test "$gcc_func_mmap" != yes; then
   9193    gcc_cv_func_mmap_file=no
   9194    gcc_cv_func_mmap_dev_zero=no
   9195    gcc_cv_func_mmap_anon=no
   9196 else
   9197    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
   9198 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
   9199 if test "${gcc_cv_func_mmap_file+set}" = set; then :
   9200   $as_echo_n "(cached) " >&6
   9201 else
   9202   # Add a system to this blacklist if
   9203    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
   9204    # memory area containing the same data that you'd get if you applied
   9205    # read() to the same fd.  The only system known to have a problem here
   9206    # is VMS, where text files have record structure.
   9207    case "$host_os" in
   9208      *vms* | ultrix*)
   9209         gcc_cv_func_mmap_file=no ;;
   9210      *)
   9211         gcc_cv_func_mmap_file=yes;;
   9212    esac
   9213 fi
   9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
   9215 $as_echo "$gcc_cv_func_mmap_file" >&6; }
   9216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
   9217 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
   9218 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
   9219   $as_echo_n "(cached) " >&6
   9220 else
   9221   # Add a system to this blacklist if it has mmap() but /dev/zero
   9222    # does not exist, or if mmapping /dev/zero does not give anonymous
   9223    # zeroed pages with both the following properties:
   9224    # 1. If you map N consecutive pages in with one call, and then
   9225    #    unmap any subset of those pages, the pages that were not
   9226    #    explicitly unmapped remain accessible.
   9227    # 2. If you map two adjacent blocks of memory and then unmap them
   9228    #    both at once, they must both go away.
   9229    # Systems known to be in this category are Windows (all variants),
   9230    # VMS, and Darwin.
   9231    case "$host_os" in
   9232      *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
   9233         gcc_cv_func_mmap_dev_zero=no ;;
   9234      *)
   9235         gcc_cv_func_mmap_dev_zero=yes;;
   9236    esac
   9237 fi
   9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
   9239 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
   9240 
   9241    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
   9242    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
   9243 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
   9244 if test "${gcc_cv_decl_map_anon+set}" = set; then :
   9245   $as_echo_n "(cached) " >&6
   9246 else
   9247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9248 /* end confdefs.h.  */
   9249 #include <sys/types.h>
   9250 #include <sys/mman.h>
   9251 #include <unistd.h>
   9252 
   9253 #ifndef MAP_ANONYMOUS
   9254 #define MAP_ANONYMOUS MAP_ANON
   9255 #endif
   9256 
   9257 int
   9258 main ()
   9259 {
   9260 int n = MAP_ANONYMOUS;
   9261   ;
   9262   return 0;
   9263 }
   9264 _ACEOF
   9265 if ac_fn_c_try_compile "$LINENO"; then :
   9266   gcc_cv_decl_map_anon=yes
   9267 else
   9268   gcc_cv_decl_map_anon=no
   9269 fi
   9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9271 fi
   9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
   9273 $as_echo "$gcc_cv_decl_map_anon" >&6; }
   9274 
   9275    if test $gcc_cv_decl_map_anon = no; then
   9276      gcc_cv_func_mmap_anon=no
   9277    else
   9278      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
   9279 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
   9280 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
   9281   $as_echo_n "(cached) " >&6
   9282 else
   9283   # Add a system to this blacklist if it has mmap() and MAP_ANON or
   9284    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
   9285    # doesn't give anonymous zeroed pages with the same properties listed
   9286    # above for use of /dev/zero.
   9287    # Systems known to be in this category are Windows, VMS, and SCO Unix.
   9288    case "$host_os" in
   9289      *vms* | cygwin* | pe | mingw* | sco* | udk* )
   9290         gcc_cv_func_mmap_anon=no ;;
   9291      *)
   9292         gcc_cv_func_mmap_anon=yes;;
   9293    esac
   9294 fi
   9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
   9296 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
   9297    fi
   9298 fi
   9299 
   9300 if test $gcc_cv_func_mmap_file = yes; then
   9301 
   9302 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
   9303 
   9304 fi
   9305 if test $gcc_cv_func_mmap_dev_zero = yes; then
   9306 
   9307 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
   9308 
   9309 fi
   9310 if test $gcc_cv_func_mmap_anon = yes; then
   9311 
   9312 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
   9313 
   9314 fi
   9315 
   9316 
   9317 case "${host}" in
   9318 *-*-*vms*)
   9319   # Under VMS, vfork works very differently than on Unix. The standard test
   9320   # won't work, and it isn't easily adaptable. It makes more sense to
   9321   # just force it.
   9322   ac_cv_func_vfork_works=yes
   9323   ;;
   9324 esac
   9325 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   9326 if test "x$ac_cv_type_pid_t" = x""yes; then :
   9327 
   9328 else
   9329 
   9330 cat >>confdefs.h <<_ACEOF
   9331 #define pid_t int
   9332 _ACEOF
   9333 
   9334 fi
   9335 
   9336 for ac_header in vfork.h
   9337 do :
   9338   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
   9339 if test "x$ac_cv_header_vfork_h" = x""yes; then :
   9340   cat >>confdefs.h <<_ACEOF
   9341 #define HAVE_VFORK_H 1
   9342 _ACEOF
   9343 
   9344 fi
   9345 done
   9346 
   9347 for ac_func in fork vfork
   9348 do :
   9349   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9350 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   9351 eval as_val=\$$as_ac_var
   9352    if test "x$as_val" = x""yes; then :
   9353   cat >>confdefs.h <<_ACEOF
   9354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9355 _ACEOF
   9356 
   9357 fi
   9358 done
   9359 
   9360 if test "x$ac_cv_func_fork" = xyes; then
   9361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   9362 $as_echo_n "checking for working fork... " >&6; }
   9363 if test "${ac_cv_func_fork_works+set}" = set; then :
   9364   $as_echo_n "(cached) " >&6
   9365 else
   9366   if test "$cross_compiling" = yes; then :
   9367   ac_cv_func_fork_works=cross
   9368 else
   9369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9370 /* end confdefs.h.  */
   9371 $ac_includes_default
   9372 int
   9373 main ()
   9374 {
   9375 
   9376 	  /* By Ruediger Kuhlmann. */
   9377 	  return fork () < 0;
   9378 
   9379   ;
   9380   return 0;
   9381 }
   9382 _ACEOF
   9383 if ac_fn_c_try_run "$LINENO"; then :
   9384   ac_cv_func_fork_works=yes
   9385 else
   9386   ac_cv_func_fork_works=no
   9387 fi
   9388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9389   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9390 fi
   9391 
   9392 fi
   9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   9394 $as_echo "$ac_cv_func_fork_works" >&6; }
   9395 
   9396 else
   9397   ac_cv_func_fork_works=$ac_cv_func_fork
   9398 fi
   9399 if test "x$ac_cv_func_fork_works" = xcross; then
   9400   case $host in
   9401     *-*-amigaos* | *-*-msdosdjgpp*)
   9402       # Override, as these systems have only a dummy fork() stub
   9403       ac_cv_func_fork_works=no
   9404       ;;
   9405     *)
   9406       ac_cv_func_fork_works=yes
   9407       ;;
   9408   esac
   9409   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   9410 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   9411 fi
   9412 ac_cv_func_vfork_works=$ac_cv_func_vfork
   9413 if test "x$ac_cv_func_vfork" = xyes; then
   9414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   9415 $as_echo_n "checking for working vfork... " >&6; }
   9416 if test "${ac_cv_func_vfork_works+set}" = set; then :
   9417   $as_echo_n "(cached) " >&6
   9418 else
   9419   if test "$cross_compiling" = yes; then :
   9420   ac_cv_func_vfork_works=cross
   9421 else
   9422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9423 /* end confdefs.h.  */
   9424 /* Thanks to Paul Eggert for this test.  */
   9425 $ac_includes_default
   9426 #include <sys/wait.h>
   9427 #ifdef HAVE_VFORK_H
   9428 # include <vfork.h>
   9429 #endif
   9430 /* On some sparc systems, changes by the child to local and incoming
   9431    argument registers are propagated back to the parent.  The compiler
   9432    is told about this with #include <vfork.h>, but some compilers
   9433    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   9434    static variable whose address is put into a register that is
   9435    clobbered by the vfork.  */
   9436 static void
   9437 #ifdef __cplusplus
   9438 sparc_address_test (int arg)
   9439 # else
   9440 sparc_address_test (arg) int arg;
   9441 #endif
   9442 {
   9443   static pid_t child;
   9444   if (!child) {
   9445     child = vfork ();
   9446     if (child < 0) {
   9447       perror ("vfork");
   9448       _exit(2);
   9449     }
   9450     if (!child) {
   9451       arg = getpid();
   9452       write(-1, "", 0);
   9453       _exit (arg);
   9454     }
   9455   }
   9456 }
   9457 
   9458 int
   9459 main ()
   9460 {
   9461   pid_t parent = getpid ();
   9462   pid_t child;
   9463 
   9464   sparc_address_test (0);
   9465 
   9466   child = vfork ();
   9467 
   9468   if (child == 0) {
   9469     /* Here is another test for sparc vfork register problems.  This
   9470        test uses lots of local variables, at least as many local
   9471        variables as main has allocated so far including compiler
   9472        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   9473        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   9474        reuse the register of parent for one of the local variables,
   9475        since it will think that parent can't possibly be used any more
   9476        in this routine.  Assigning to the local variable will thus
   9477        munge parent in the parent process.  */
   9478     pid_t
   9479       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   9480       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   9481     /* Convince the compiler that p..p7 are live; otherwise, it might
   9482        use the same hardware register for all 8 local variables.  */
   9483     if (p != p1 || p != p2 || p != p3 || p != p4
   9484 	|| p != p5 || p != p6 || p != p7)
   9485       _exit(1);
   9486 
   9487     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   9488        from child file descriptors.  If the child closes a descriptor
   9489        before it execs or exits, this munges the parent's descriptor
   9490        as well.  Test for this by closing stdout in the child.  */
   9491     _exit(close(fileno(stdout)) != 0);
   9492   } else {
   9493     int status;
   9494     struct stat st;
   9495 
   9496     while (wait(&status) != child)
   9497       ;
   9498     return (
   9499 	 /* Was there some problem with vforking?  */
   9500 	 child < 0
   9501 
   9502 	 /* Did the child fail?  (This shouldn't happen.)  */
   9503 	 || status
   9504 
   9505 	 /* Did the vfork/compiler bug occur?  */
   9506 	 || parent != getpid()
   9507 
   9508 	 /* Did the file descriptor bug occur?  */
   9509 	 || fstat(fileno(stdout), &st) != 0
   9510 	 );
   9511   }
   9512 }
   9513 _ACEOF
   9514 if ac_fn_c_try_run "$LINENO"; then :
   9515   ac_cv_func_vfork_works=yes
   9516 else
   9517   ac_cv_func_vfork_works=no
   9518 fi
   9519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9520   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9521 fi
   9522 
   9523 fi
   9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   9525 $as_echo "$ac_cv_func_vfork_works" >&6; }
   9526 
   9527 fi;
   9528 if test "x$ac_cv_func_fork_works" = xcross; then
   9529   ac_cv_func_vfork_works=$ac_cv_func_vfork
   9530   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   9531 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   9532 fi
   9533 
   9534 if test "x$ac_cv_func_vfork_works" = xyes; then
   9535 
   9536 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   9537 
   9538 else
   9539 
   9540 $as_echo "#define vfork fork" >>confdefs.h
   9541 
   9542 fi
   9543 if test "x$ac_cv_func_fork_works" = xyes; then
   9544 
   9545 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   9546 
   9547 fi
   9548 
   9549 
   9550 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
   9551 # iconv() prototype.
   9552 ac_ext=cpp
   9553 ac_cpp='$CXXCPP $CPPFLAGS'
   9554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9557 
   9558 
   9559       if test "X$prefix" = "XNONE"; then
   9560     acl_final_prefix="$ac_default_prefix"
   9561   else
   9562     acl_final_prefix="$prefix"
   9563   fi
   9564   if test "X$exec_prefix" = "XNONE"; then
   9565     acl_final_exec_prefix='${prefix}'
   9566   else
   9567     acl_final_exec_prefix="$exec_prefix"
   9568   fi
   9569   acl_save_prefix="$prefix"
   9570   prefix="$acl_final_prefix"
   9571   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
   9572   prefix="$acl_save_prefix"
   9573 
   9574 
   9575 # Check whether --with-gnu-ld was given.
   9576 if test "${with_gnu_ld+set}" = set; then :
   9577   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   9578 else
   9579   with_gnu_ld=no
   9580 fi
   9581 
   9582 # Prepare PATH_SEPARATOR.
   9583 # The user is always right.
   9584 if test "${PATH_SEPARATOR+set}" != set; then
   9585   echo "#! /bin/sh" >conf$$.sh
   9586   echo  "exit 0"   >>conf$$.sh
   9587   chmod +x conf$$.sh
   9588   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   9589     PATH_SEPARATOR=';'
   9590   else
   9591     PATH_SEPARATOR=:
   9592   fi
   9593   rm -f conf$$.sh
   9594 fi
   9595 ac_prog=ld
   9596 if test "$GCC" = yes; then
   9597   # Check if gcc -print-prog-name=ld gives a path.
   9598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
   9599 $as_echo_n "checking for ld used by GCC... " >&6; }
   9600   case $host in
   9601   *-*-mingw*)
   9602     # gcc leaves a trailing carriage return which upsets mingw
   9603     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   9604   *)
   9605     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   9606   esac
   9607   case $ac_prog in
   9608     # Accept absolute paths.
   9609     [\\/]* | [A-Za-z]:[\\/]*)
   9610       re_direlt='/[^/][^/]*/\.\./'
   9611       # Canonicalize the path of ld
   9612       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
   9613       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   9614 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   9615       done
   9616       test -z "$LD" && LD="$ac_prog"
   9617       ;;
   9618   "")
   9619     # If it fails, then pretend we aren't using GCC.
   9620     ac_prog=ld
   9621     ;;
   9622   *)
   9623     # If it is relative, then search for the first ld in PATH.
   9624     with_gnu_ld=unknown
   9625     ;;
   9626   esac
   9627 elif test "$with_gnu_ld" = yes; then
   9628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   9629 $as_echo_n "checking for GNU ld... " >&6; }
   9630 else
   9631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   9632 $as_echo_n "checking for non-GNU ld... " >&6; }
   9633 fi
   9634 if test "${acl_cv_path_LD+set}" = set; then :
   9635   $as_echo_n "(cached) " >&6
   9636 else
   9637   if test -z "$LD"; then
   9638   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   9639   for ac_dir in $PATH; do
   9640     test -z "$ac_dir" && ac_dir=.
   9641     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   9642       acl_cv_path_LD="$ac_dir/$ac_prog"
   9643       # Check to see if the program is GNU ld.  I'd rather use --version,
   9644       # but apparently some GNU ld's only accept -v.
   9645       # Break only if it was the GNU/non-GNU ld that we prefer.
   9646       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
   9647 	test "$with_gnu_ld" != no && break
   9648       else
   9649 	test "$with_gnu_ld" != yes && break
   9650       fi
   9651     fi
   9652   done
   9653   IFS="$ac_save_ifs"
   9654 else
   9655   acl_cv_path_LD="$LD" # Let the user override the test with a path.
   9656 fi
   9657 fi
   9658 
   9659 LD="$acl_cv_path_LD"
   9660 if test -n "$LD"; then
   9661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   9662 $as_echo "$LD" >&6; }
   9663 else
   9664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9665 $as_echo "no" >&6; }
   9666 fi
   9667 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
   9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   9669 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   9670 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
   9671   $as_echo_n "(cached) " >&6
   9672 else
   9673   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   9674 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
   9675   acl_cv_prog_gnu_ld=yes
   9676 else
   9677   acl_cv_prog_gnu_ld=no
   9678 fi
   9679 fi
   9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
   9681 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
   9682 with_gnu_ld=$acl_cv_prog_gnu_ld
   9683 
   9684 
   9685 
   9686                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
   9687 $as_echo_n "checking for shared library run path origin... " >&6; }
   9688 if test "${acl_cv_rpath+set}" = set; then :
   9689   $as_echo_n "(cached) " >&6
   9690 else
   9691 
   9692     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
   9693     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
   9694     . ./conftest.sh
   9695     rm -f ./conftest.sh
   9696     acl_cv_rpath=done
   9697 
   9698 fi
   9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
   9700 $as_echo "$acl_cv_rpath" >&6; }
   9701   wl="$acl_cv_wl"
   9702   libext="$acl_cv_libext"
   9703   shlibext="$acl_cv_shlibext"
   9704   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
   9705   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
   9706   hardcode_direct="$acl_cv_hardcode_direct"
   9707   hardcode_minus_L="$acl_cv_hardcode_minus_L"
   9708     # Check whether --enable-rpath was given.
   9709 if test "${enable_rpath+set}" = set; then :
   9710   enableval=$enable_rpath; :
   9711 else
   9712   enable_rpath=yes
   9713 fi
   9714 
   9715 
   9716 
   9717 
   9718 
   9719 
   9720 
   9721 
   9722     use_additional=yes
   9723 
   9724   acl_save_prefix="$prefix"
   9725   prefix="$acl_final_prefix"
   9726   acl_save_exec_prefix="$exec_prefix"
   9727   exec_prefix="$acl_final_exec_prefix"
   9728 
   9729     eval additional_includedir=\"$includedir\"
   9730     eval additional_libdir=\"$libdir\"
   9731 
   9732   exec_prefix="$acl_save_exec_prefix"
   9733   prefix="$acl_save_prefix"
   9734 
   9735 
   9736 # Check whether --with-libiconv-prefix was given.
   9737 if test "${with_libiconv_prefix+set}" = set; then :
   9738   withval=$with_libiconv_prefix;
   9739     if test "X$withval" = "Xno"; then
   9740       use_additional=no
   9741     else
   9742       if test "X$withval" = "X"; then
   9743 
   9744   acl_save_prefix="$prefix"
   9745   prefix="$acl_final_prefix"
   9746   acl_save_exec_prefix="$exec_prefix"
   9747   exec_prefix="$acl_final_exec_prefix"
   9748 
   9749           eval additional_includedir=\"$includedir\"
   9750           eval additional_libdir=\"$libdir\"
   9751 
   9752   exec_prefix="$acl_save_exec_prefix"
   9753   prefix="$acl_save_prefix"
   9754 
   9755       else
   9756         additional_includedir="$withval/include"
   9757         additional_libdir="$withval/lib"
   9758       fi
   9759     fi
   9760 
   9761 fi
   9762 
   9763       LIBICONV=
   9764   LTLIBICONV=
   9765   INCICONV=
   9766   rpathdirs=
   9767   ltrpathdirs=
   9768   names_already_handled=
   9769   names_next_round='iconv '
   9770   while test -n "$names_next_round"; do
   9771     names_this_round="$names_next_round"
   9772     names_next_round=
   9773     for name in $names_this_round; do
   9774       already_handled=
   9775       for n in $names_already_handled; do
   9776         if test "$n" = "$name"; then
   9777           already_handled=yes
   9778           break
   9779         fi
   9780       done
   9781       if test -z "$already_handled"; then
   9782         names_already_handled="$names_already_handled $name"
   9783                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   9784         eval value=\"\$HAVE_LIB$uppername\"
   9785         if test -n "$value"; then
   9786           if test "$value" = yes; then
   9787             eval value=\"\$LIB$uppername\"
   9788             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
   9789             eval value=\"\$LTLIB$uppername\"
   9790             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
   9791           else
   9792                                     :
   9793           fi
   9794         else
   9795                               found_dir=
   9796           found_la=
   9797           found_so=
   9798           found_a=
   9799           if test $use_additional = yes; then
   9800             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   9801               found_dir="$additional_libdir"
   9802               found_so="$additional_libdir/lib$name.$shlibext"
   9803               if test -f "$additional_libdir/lib$name.la"; then
   9804                 found_la="$additional_libdir/lib$name.la"
   9805               fi
   9806             else
   9807               if test -f "$additional_libdir/lib$name.$libext"; then
   9808                 found_dir="$additional_libdir"
   9809                 found_a="$additional_libdir/lib$name.$libext"
   9810                 if test -f "$additional_libdir/lib$name.la"; then
   9811                   found_la="$additional_libdir/lib$name.la"
   9812                 fi
   9813               fi
   9814             fi
   9815           fi
   9816           if test "X$found_dir" = "X"; then
   9817             for x in $LDFLAGS $LTLIBICONV; do
   9818 
   9819   acl_save_prefix="$prefix"
   9820   prefix="$acl_final_prefix"
   9821   acl_save_exec_prefix="$exec_prefix"
   9822   exec_prefix="$acl_final_exec_prefix"
   9823   eval x=\"$x\"
   9824   exec_prefix="$acl_save_exec_prefix"
   9825   prefix="$acl_save_prefix"
   9826 
   9827               case "$x" in
   9828                 -L*)
   9829                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   9830                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   9831                     found_dir="$dir"
   9832                     found_so="$dir/lib$name.$shlibext"
   9833                     if test -f "$dir/lib$name.la"; then
   9834                       found_la="$dir/lib$name.la"
   9835                     fi
   9836                   else
   9837                     if test -f "$dir/lib$name.$libext"; then
   9838                       found_dir="$dir"
   9839                       found_a="$dir/lib$name.$libext"
   9840                       if test -f "$dir/lib$name.la"; then
   9841                         found_la="$dir/lib$name.la"
   9842                       fi
   9843                     fi
   9844                   fi
   9845                   ;;
   9846               esac
   9847               if test "X$found_dir" != "X"; then
   9848                 break
   9849               fi
   9850             done
   9851           fi
   9852           if test "X$found_dir" != "X"; then
   9853                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
   9854             if test "X$found_so" != "X"; then
   9855                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   9856                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   9857               else
   9858                                                                                 haveit=
   9859                 for x in $ltrpathdirs; do
   9860                   if test "X$x" = "X$found_dir"; then
   9861                     haveit=yes
   9862                     break
   9863                   fi
   9864                 done
   9865                 if test -z "$haveit"; then
   9866                   ltrpathdirs="$ltrpathdirs $found_dir"
   9867                 fi
   9868                                 if test "$hardcode_direct" = yes; then
   9869                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   9870                 else
   9871                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   9872                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   9873                                                             haveit=
   9874                     for x in $rpathdirs; do
   9875                       if test "X$x" = "X$found_dir"; then
   9876                         haveit=yes
   9877                         break
   9878                       fi
   9879                     done
   9880                     if test -z "$haveit"; then
   9881                       rpathdirs="$rpathdirs $found_dir"
   9882                     fi
   9883                   else
   9884                                                                                 haveit=
   9885                     for x in $LDFLAGS $LIBICONV; do
   9886 
   9887   acl_save_prefix="$prefix"
   9888   prefix="$acl_final_prefix"
   9889   acl_save_exec_prefix="$exec_prefix"
   9890   exec_prefix="$acl_final_exec_prefix"
   9891   eval x=\"$x\"
   9892   exec_prefix="$acl_save_exec_prefix"
   9893   prefix="$acl_save_prefix"
   9894 
   9895                       if test "X$x" = "X-L$found_dir"; then
   9896                         haveit=yes
   9897                         break
   9898                       fi
   9899                     done
   9900                     if test -z "$haveit"; then
   9901                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
   9902                     fi
   9903                     if test "$hardcode_minus_L" != no; then
   9904                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   9905                     else
   9906                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   9907                     fi
   9908                   fi
   9909                 fi
   9910               fi
   9911             else
   9912               if test "X$found_a" != "X"; then
   9913                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
   9914               else
   9915                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
   9916               fi
   9917             fi
   9918                         additional_includedir=
   9919             case "$found_dir" in
   9920               */lib | */lib/)
   9921                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   9922                 additional_includedir="$basedir/include"
   9923                 ;;
   9924             esac
   9925             if test "X$additional_includedir" != "X"; then
   9926                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   9927                 haveit=
   9928                 if test "X$additional_includedir" = "X/usr/local/include"; then
   9929                   if test -n "$GCC"; then
   9930                     case $host_os in
   9931                       linux*) haveit=yes;;
   9932                     esac
   9933                   fi
   9934                 fi
   9935                 if test -z "$haveit"; then
   9936                   for x in $CPPFLAGS $INCICONV; do
   9937 
   9938   acl_save_prefix="$prefix"
   9939   prefix="$acl_final_prefix"
   9940   acl_save_exec_prefix="$exec_prefix"
   9941   exec_prefix="$acl_final_exec_prefix"
   9942   eval x=\"$x\"
   9943   exec_prefix="$acl_save_exec_prefix"
   9944   prefix="$acl_save_prefix"
   9945 
   9946                     if test "X$x" = "X-I$additional_includedir"; then
   9947                       haveit=yes
   9948                       break
   9949                     fi
   9950                   done
   9951                   if test -z "$haveit"; then
   9952                     if test -d "$additional_includedir"; then
   9953                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
   9954                     fi
   9955                   fi
   9956                 fi
   9957               fi
   9958             fi
   9959                         if test -n "$found_la"; then
   9960                                                         save_libdir="$libdir"
   9961               case "$found_la" in
   9962                 */* | *\\*) . "$found_la" ;;
   9963                 *) . "./$found_la" ;;
   9964               esac
   9965               libdir="$save_libdir"
   9966                             for dep in $dependency_libs; do
   9967                 case "$dep" in
   9968                   -L*)
   9969                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   9970                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   9971                       haveit=
   9972                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   9973                         if test -n "$GCC"; then
   9974                           case $host_os in
   9975                             linux*) haveit=yes;;
   9976                           esac
   9977                         fi
   9978                       fi
   9979                       if test -z "$haveit"; then
   9980                         haveit=
   9981                         for x in $LDFLAGS $LIBICONV; do
   9982 
   9983   acl_save_prefix="$prefix"
   9984   prefix="$acl_final_prefix"
   9985   acl_save_exec_prefix="$exec_prefix"
   9986   exec_prefix="$acl_final_exec_prefix"
   9987   eval x=\"$x\"
   9988   exec_prefix="$acl_save_exec_prefix"
   9989   prefix="$acl_save_prefix"
   9990 
   9991                           if test "X$x" = "X-L$additional_libdir"; then
   9992                             haveit=yes
   9993                             break
   9994                           fi
   9995                         done
   9996                         if test -z "$haveit"; then
   9997                           if test -d "$additional_libdir"; then
   9998                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
   9999                           fi
   10000                         fi
   10001                         haveit=
   10002                         for x in $LDFLAGS $LTLIBICONV; do
   10003 
   10004   acl_save_prefix="$prefix"
   10005   prefix="$acl_final_prefix"
   10006   acl_save_exec_prefix="$exec_prefix"
   10007   exec_prefix="$acl_final_exec_prefix"
   10008   eval x=\"$x\"
   10009   exec_prefix="$acl_save_exec_prefix"
   10010   prefix="$acl_save_prefix"
   10011 
   10012                           if test "X$x" = "X-L$additional_libdir"; then
   10013                             haveit=yes
   10014                             break
   10015                           fi
   10016                         done
   10017                         if test -z "$haveit"; then
   10018                           if test -d "$additional_libdir"; then
   10019                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
   10020                           fi
   10021                         fi
   10022                       fi
   10023                     fi
   10024                     ;;
   10025                   -R*)
   10026                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   10027                     if test "$enable_rpath" != no; then
   10028                                                                   haveit=
   10029                       for x in $rpathdirs; do
   10030                         if test "X$x" = "X$dir"; then
   10031                           haveit=yes
   10032                           break
   10033                         fi
   10034                       done
   10035                       if test -z "$haveit"; then
   10036                         rpathdirs="$rpathdirs $dir"
   10037                       fi
   10038                                                                   haveit=
   10039                       for x in $ltrpathdirs; do
   10040                         if test "X$x" = "X$dir"; then
   10041                           haveit=yes
   10042                           break
   10043                         fi
   10044                       done
   10045                       if test -z "$haveit"; then
   10046                         ltrpathdirs="$ltrpathdirs $dir"
   10047                       fi
   10048                     fi
   10049                     ;;
   10050                   -l*)
   10051                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   10052                     ;;
   10053                   *.la)
   10054                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   10055                     ;;
   10056                   *)
   10057                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
   10058                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
   10059                     ;;
   10060                 esac
   10061               done
   10062             fi
   10063           else
   10064                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   10065             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
   10066           fi
   10067         fi
   10068       fi
   10069     done
   10070   done
   10071   if test "X$rpathdirs" != "X"; then
   10072     if test -n "$hardcode_libdir_separator"; then
   10073                         alldirs=
   10074       for found_dir in $rpathdirs; do
   10075         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   10076       done
   10077             acl_save_libdir="$libdir"
   10078       libdir="$alldirs"
   10079       eval flag=\"$hardcode_libdir_flag_spec\"
   10080       libdir="$acl_save_libdir"
   10081       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   10082     else
   10083             for found_dir in $rpathdirs; do
   10084         acl_save_libdir="$libdir"
   10085         libdir="$found_dir"
   10086         eval flag=\"$hardcode_libdir_flag_spec\"
   10087         libdir="$acl_save_libdir"
   10088         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   10089       done
   10090     fi
   10091   fi
   10092   if test "X$ltrpathdirs" != "X"; then
   10093             for found_dir in $ltrpathdirs; do
   10094       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
   10095     done
   10096   fi
   10097 
   10098 
   10099 
   10100 
   10101 
   10102 
   10103 
   10104           am_save_CPPFLAGS="$CPPFLAGS"
   10105 
   10106   for element in $INCICONV; do
   10107     haveit=
   10108     for x in $CPPFLAGS; do
   10109 
   10110   acl_save_prefix="$prefix"
   10111   prefix="$acl_final_prefix"
   10112   acl_save_exec_prefix="$exec_prefix"
   10113   exec_prefix="$acl_final_exec_prefix"
   10114   eval x=\"$x\"
   10115   exec_prefix="$acl_save_exec_prefix"
   10116   prefix="$acl_save_prefix"
   10117 
   10118       if test "X$x" = "X$element"; then
   10119         haveit=yes
   10120         break
   10121       fi
   10122     done
   10123     if test -z "$haveit"; then
   10124       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   10125     fi
   10126   done
   10127 
   10128 
   10129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
   10130 $as_echo_n "checking for iconv... " >&6; }
   10131 if test "${am_cv_func_iconv+set}" = set; then :
   10132   $as_echo_n "(cached) " >&6
   10133 else
   10134 
   10135     am_cv_func_iconv="no, consider installing GNU libiconv"
   10136     am_cv_lib_iconv=no
   10137     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10138 /* end confdefs.h.  */
   10139 #include <stdlib.h>
   10140 #include <iconv.h>
   10141 int
   10142 main ()
   10143 {
   10144 iconv_t cd = iconv_open("","");
   10145        iconv(cd,NULL,NULL,NULL,NULL);
   10146        iconv_close(cd);
   10147   ;
   10148   return 0;
   10149 }
   10150 _ACEOF
   10151 if ac_fn_cxx_try_link "$LINENO"; then :
   10152   am_cv_func_iconv=yes
   10153 fi
   10154 rm -f core conftest.err conftest.$ac_objext \
   10155     conftest$ac_exeext conftest.$ac_ext
   10156     if test "$am_cv_func_iconv" != yes; then
   10157       am_save_LIBS="$LIBS"
   10158       LIBS="$LIBS $LIBICONV"
   10159       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10160 /* end confdefs.h.  */
   10161 #include <stdlib.h>
   10162 #include <iconv.h>
   10163 int
   10164 main ()
   10165 {
   10166 iconv_t cd = iconv_open("","");
   10167          iconv(cd,NULL,NULL,NULL,NULL);
   10168          iconv_close(cd);
   10169   ;
   10170   return 0;
   10171 }
   10172 _ACEOF
   10173 if ac_fn_cxx_try_link "$LINENO"; then :
   10174   am_cv_lib_iconv=yes
   10175         am_cv_func_iconv=yes
   10176 fi
   10177 rm -f core conftest.err conftest.$ac_objext \
   10178     conftest$ac_exeext conftest.$ac_ext
   10179       LIBS="$am_save_LIBS"
   10180     fi
   10181 
   10182 fi
   10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
   10184 $as_echo "$am_cv_func_iconv" >&6; }
   10185   if test "$am_cv_func_iconv" = yes; then
   10186 
   10187 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
   10188 
   10189   fi
   10190   if test "$am_cv_lib_iconv" = yes; then
   10191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
   10192 $as_echo_n "checking how to link with libiconv... " >&6; }
   10193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
   10194 $as_echo "$LIBICONV" >&6; }
   10195   else
   10196             CPPFLAGS="$am_save_CPPFLAGS"
   10197     LIBICONV=
   10198     LTLIBICONV=
   10199   fi
   10200 
   10201 
   10202 
   10203   if test "$am_cv_func_iconv" = yes; then
   10204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
   10205 $as_echo_n "checking for iconv declaration... " >&6; }
   10206     if test "${am_cv_proto_iconv+set}" = set; then :
   10207   $as_echo_n "(cached) " >&6
   10208 else
   10209 
   10210       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10211 /* end confdefs.h.  */
   10212 
   10213 #include <stdlib.h>
   10214 #include <iconv.h>
   10215 extern
   10216 #ifdef __cplusplus
   10217 "C"
   10218 #endif
   10219 #if defined(__STDC__) || defined(__cplusplus)
   10220 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
   10221 #else
   10222 size_t iconv();
   10223 #endif
   10224 
   10225 int
   10226 main ()
   10227 {
   10228 
   10229   ;
   10230   return 0;
   10231 }
   10232 _ACEOF
   10233 if ac_fn_cxx_try_compile "$LINENO"; then :
   10234   am_cv_proto_iconv_arg1=""
   10235 else
   10236   am_cv_proto_iconv_arg1="const"
   10237 fi
   10238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10239       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
   10240 fi
   10241 
   10242     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
   10243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
   10244          }$am_cv_proto_iconv" >&5
   10245 $as_echo "${ac_t:-
   10246          }$am_cv_proto_iconv" >&6; }
   10247 
   10248 cat >>confdefs.h <<_ACEOF
   10249 #define ICONV_CONST $am_cv_proto_iconv_arg1
   10250 _ACEOF
   10251 
   10252   fi
   10253 
   10254 ac_ext=c
   10255 ac_cpp='$CPP $CPPFLAGS'
   10256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10259 
   10260 
   10261 # Until we have in-tree GNU iconv:
   10262 LIBICONV_DEP=
   10263 
   10264 
   10265 
   10266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
   10267 $as_echo_n "checking for LC_MESSAGES... " >&6; }
   10268 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
   10269   $as_echo_n "(cached) " >&6
   10270 else
   10271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10272 /* end confdefs.h.  */
   10273 #include <locale.h>
   10274 int
   10275 main ()
   10276 {
   10277 return LC_MESSAGES
   10278   ;
   10279   return 0;
   10280 }
   10281 _ACEOF
   10282 if ac_fn_c_try_link "$LINENO"; then :
   10283   am_cv_val_LC_MESSAGES=yes
   10284 else
   10285   am_cv_val_LC_MESSAGES=no
   10286 fi
   10287 rm -f core conftest.err conftest.$ac_objext \
   10288     conftest$ac_exeext conftest.$ac_ext
   10289 fi
   10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
   10291 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
   10292   if test $am_cv_val_LC_MESSAGES = yes; then
   10293 
   10294 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
   10295 
   10296   fi
   10297 
   10298 
   10299 
   10300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   10301 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   10302 if test "${am_cv_langinfo_codeset+set}" = set; then :
   10303   $as_echo_n "(cached) " >&6
   10304 else
   10305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10306 /* end confdefs.h.  */
   10307 #include <langinfo.h>
   10308 int
   10309 main ()
   10310 {
   10311 char* cs = nl_langinfo(CODESET);
   10312   ;
   10313   return 0;
   10314 }
   10315 _ACEOF
   10316 if ac_fn_c_try_link "$LINENO"; then :
   10317   am_cv_langinfo_codeset=yes
   10318 else
   10319   am_cv_langinfo_codeset=no
   10320 fi
   10321 rm -f core conftest.err conftest.$ac_objext \
   10322     conftest$ac_exeext conftest.$ac_ext
   10323 
   10324 fi
   10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   10326 $as_echo "$am_cv_langinfo_codeset" >&6; }
   10327   if test $am_cv_langinfo_codeset = yes; then
   10328 
   10329 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   10330 
   10331   fi
   10332 
   10333 
   10334 # We will need to find libiberty.h and ansidecl.h
   10335 saved_CFLAGS="$CFLAGS"
   10336 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
   10337 saved_CXXFLAGS="$CXXFLAGS"
   10338 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
   10339 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
   10340 	strsignal strstr stpcpy strverscmp \
   10341 	errno snprintf vsnprintf vasprintf malloc realloc calloc \
   10342 	free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
   10343 do
   10344   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   10346 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   10347 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
   10348   $as_echo_n "(cached) " >&6
   10349 else
   10350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10351 /* end confdefs.h.  */
   10352 #undef $ac_tr_decl
   10353 #define $ac_tr_decl 1
   10354 
   10355 #include "ansidecl.h"
   10356 #include "system.h"
   10357 
   10358 int
   10359 main ()
   10360 {
   10361 #ifndef $ac_func
   10362 char *(*pfn) = (char *(*)) $ac_func ;
   10363 #endif
   10364   ;
   10365   return 0;
   10366 }
   10367 _ACEOF
   10368 if ac_fn_c_try_compile "$LINENO"; then :
   10369   eval "gcc_cv_have_decl_$ac_func=yes"
   10370 else
   10371   eval "gcc_cv_have_decl_$ac_func=no"
   10372 fi
   10373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10374 fi
   10375 
   10376 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10378 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   10379 #define $ac_tr_decl 1
   10380 _ACEOF
   10381 
   10382 else
   10383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10384 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   10385 #define $ac_tr_decl 0
   10386 _ACEOF
   10387 
   10388 fi
   10389 
   10390 done
   10391 
   10392 
   10393 for ac_func in getrlimit setrlimit getrusage
   10394 do
   10395   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   10397 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   10398 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
   10399   $as_echo_n "(cached) " >&6
   10400 else
   10401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10402 /* end confdefs.h.  */
   10403 #undef $ac_tr_decl
   10404 #define $ac_tr_decl 1
   10405 
   10406 #include "ansidecl.h"
   10407 #include "system.h"
   10408 #ifdef HAVE_SYS_RESOURCE_H
   10409 #include <sys/resource.h>
   10410 #endif
   10411 
   10412 
   10413 int
   10414 main ()
   10415 {
   10416 #ifndef $ac_func
   10417 char *(*pfn) = (char *(*)) $ac_func ;
   10418 #endif
   10419   ;
   10420   return 0;
   10421 }
   10422 _ACEOF
   10423 if ac_fn_c_try_compile "$LINENO"; then :
   10424   eval "gcc_cv_have_decl_$ac_func=yes"
   10425 else
   10426   eval "gcc_cv_have_decl_$ac_func=no"
   10427 fi
   10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10429 fi
   10430 
   10431 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   10432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10433 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   10434 #define $ac_tr_decl 1
   10435 _ACEOF
   10436 
   10437 else
   10438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10439 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   10440 #define $ac_tr_decl 0
   10441 _ACEOF
   10442 
   10443 fi
   10444 
   10445 done
   10446 
   10447 
   10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10449 /* end confdefs.h.  */
   10450 
   10451 #include "ansidecl.h"
   10452 #include "system.h"
   10453 #ifdef HAVE_SYS_RESOURCE_H
   10454 #include <sys/resource.h>
   10455 #endif
   10456 
   10457 int
   10458 main ()
   10459 {
   10460 rlim_t l = 0;
   10461   ;
   10462   return 0;
   10463 }
   10464 _ACEOF
   10465 if ac_fn_c_try_compile "$LINENO"; then :
   10466 
   10467 else
   10468 
   10469 $as_echo "#define rlim_t long" >>confdefs.h
   10470 
   10471 fi
   10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10473 
   10474 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
   10475 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
   10476 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
   10477 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
   10478 for ac_func in ldgetname
   10479 do
   10480   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   10482 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   10483 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
   10484   $as_echo_n "(cached) " >&6
   10485 else
   10486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10487 /* end confdefs.h.  */
   10488 #undef $ac_tr_decl
   10489 #define $ac_tr_decl 1
   10490 
   10491 #include "ansidecl.h"
   10492 #include "system.h"
   10493 #ifdef HAVE_LDFCN_H
   10494 #undef FREAD
   10495 #undef FWRITE
   10496 #include <ldfcn.h>
   10497 #endif
   10498 
   10499 
   10500 int
   10501 main ()
   10502 {
   10503 #ifndef $ac_func
   10504 char *(*pfn) = (char *(*)) $ac_func ;
   10505 #endif
   10506   ;
   10507   return 0;
   10508 }
   10509 _ACEOF
   10510 if ac_fn_c_try_compile "$LINENO"; then :
   10511   eval "gcc_cv_have_decl_$ac_func=yes"
   10512 else
   10513   eval "gcc_cv_have_decl_$ac_func=no"
   10514 fi
   10515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10516 fi
   10517 
   10518 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   10519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10520 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   10521 #define $ac_tr_decl 1
   10522 _ACEOF
   10523 
   10524 else
   10525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10526 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   10527 #define $ac_tr_decl 0
   10528 _ACEOF
   10529 
   10530 fi
   10531 
   10532 done
   10533 
   10534 
   10535 for ac_func in times
   10536 do
   10537   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   10539 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   10540 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
   10541   $as_echo_n "(cached) " >&6
   10542 else
   10543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10544 /* end confdefs.h.  */
   10545 #undef $ac_tr_decl
   10546 #define $ac_tr_decl 1
   10547 
   10548 #include "ansidecl.h"
   10549 #include "system.h"
   10550 #ifdef HAVE_SYS_TIMES_H
   10551 #include <sys/times.h>
   10552 #endif
   10553 
   10554 
   10555 int
   10556 main ()
   10557 {
   10558 #ifndef $ac_func
   10559 char *(*pfn) = (char *(*)) $ac_func ;
   10560 #endif
   10561   ;
   10562   return 0;
   10563 }
   10564 _ACEOF
   10565 if ac_fn_c_try_compile "$LINENO"; then :
   10566   eval "gcc_cv_have_decl_$ac_func=yes"
   10567 else
   10568   eval "gcc_cv_have_decl_$ac_func=no"
   10569 fi
   10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10571 fi
   10572 
   10573 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   10574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10575 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   10576 #define $ac_tr_decl 1
   10577 _ACEOF
   10578 
   10579 else
   10580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10581 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   10582 #define $ac_tr_decl 0
   10583 _ACEOF
   10584 
   10585 fi
   10586 
   10587 done
   10588 
   10589 
   10590 for ac_func in sigaltstack
   10591 do
   10592   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   10594 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   10595 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
   10596   $as_echo_n "(cached) " >&6
   10597 else
   10598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10599 /* end confdefs.h.  */
   10600 #undef $ac_tr_decl
   10601 #define $ac_tr_decl 1
   10602 
   10603 #include "ansidecl.h"
   10604 #include "system.h"
   10605 #include <signal.h>
   10606 
   10607 
   10608 int
   10609 main ()
   10610 {
   10611 #ifndef $ac_func
   10612 char *(*pfn) = (char *(*)) $ac_func ;
   10613 #endif
   10614   ;
   10615   return 0;
   10616 }
   10617 _ACEOF
   10618 if ac_fn_c_try_compile "$LINENO"; then :
   10619   eval "gcc_cv_have_decl_$ac_func=yes"
   10620 else
   10621   eval "gcc_cv_have_decl_$ac_func=no"
   10622 fi
   10623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10624 fi
   10625 
   10626 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   10627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10628 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   10629 #define $ac_tr_decl 1
   10630 _ACEOF
   10631 
   10632 else
   10633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10634 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   10635 #define $ac_tr_decl 0
   10636 _ACEOF
   10637 
   10638 fi
   10639 
   10640 done
   10641 
   10642 
   10643 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
   10644 # prototype.
   10645 ac_ext=cpp
   10646 ac_cpp='$CXXCPP $CPPFLAGS'
   10647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   10650 
   10651 for ac_func in madvise
   10652 do
   10653   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
   10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
   10655 $as_echo_n "checking whether $ac_func is declared... " >&6; }
   10656 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
   10657   $as_echo_n "(cached) " >&6
   10658 else
   10659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10660 /* end confdefs.h.  */
   10661 #undef $ac_tr_decl
   10662 #define $ac_tr_decl 1
   10663 
   10664   #include "ansidecl.h"
   10665   #include "system.h"
   10666 
   10667 
   10668 int
   10669 main ()
   10670 {
   10671 #ifndef $ac_func
   10672 char *(*pfn) = (char *(*)) $ac_func ;
   10673 #endif
   10674   ;
   10675   return 0;
   10676 }
   10677 _ACEOF
   10678 if ac_fn_cxx_try_compile "$LINENO"; then :
   10679   eval "gcc_cv_have_decl_$ac_func=yes"
   10680 else
   10681   eval "gcc_cv_have_decl_$ac_func=no"
   10682 fi
   10683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10684 fi
   10685 
   10686 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
   10687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10688 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
   10689 #define $ac_tr_decl 1
   10690 _ACEOF
   10691 
   10692 else
   10693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10694 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
   10695 #define $ac_tr_decl 0
   10696 _ACEOF
   10697 
   10698 fi
   10699 
   10700 done
   10701 
   10702 ac_ext=c
   10703 ac_cpp='$CPP $CPPFLAGS'
   10704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10707 
   10708 
   10709 # More time-related stuff.
   10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
   10711 $as_echo_n "checking for struct tms... " >&6; }
   10712 if test "${ac_cv_struct_tms+set}" = set; then :
   10713   $as_echo_n "(cached) " >&6
   10714 else
   10715 
   10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10717 /* end confdefs.h.  */
   10718 
   10719 #include "ansidecl.h"
   10720 #include "system.h"
   10721 #ifdef HAVE_SYS_TIMES_H
   10722 #include <sys/times.h>
   10723 #endif
   10724 
   10725 int
   10726 main ()
   10727 {
   10728 struct tms tms;
   10729   ;
   10730   return 0;
   10731 }
   10732 _ACEOF
   10733 if ac_fn_c_try_compile "$LINENO"; then :
   10734   ac_cv_struct_tms=yes
   10735 else
   10736   ac_cv_struct_tms=no
   10737 fi
   10738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10739 fi
   10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
   10741 $as_echo "$ac_cv_struct_tms" >&6; }
   10742 if test $ac_cv_struct_tms = yes; then
   10743 
   10744 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
   10745 
   10746 fi
   10747 
   10748 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
   10749 # revisit after autoconf 2.50.
   10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
   10751 $as_echo_n "checking for clock_t... " >&6; }
   10752 if test "${gcc_cv_type_clock_t+set}" = set; then :
   10753   $as_echo_n "(cached) " >&6
   10754 else
   10755 
   10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10757 /* end confdefs.h.  */
   10758 
   10759 #include "ansidecl.h"
   10760 #include "system.h"
   10761 
   10762 int
   10763 main ()
   10764 {
   10765 clock_t x;
   10766   ;
   10767   return 0;
   10768 }
   10769 _ACEOF
   10770 if ac_fn_c_try_compile "$LINENO"; then :
   10771   gcc_cv_type_clock_t=yes
   10772 else
   10773   gcc_cv_type_clock_t=no
   10774 fi
   10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10776 fi
   10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
   10778 $as_echo "$gcc_cv_type_clock_t" >&6; }
   10779 if test $gcc_cv_type_clock_t = yes; then
   10780 
   10781 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
   10782 
   10783 fi
   10784 
   10785 # Check if F_SETLKW is supported by fcntl.
   10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
   10787 $as_echo_n "checking for F_SETLKW... " >&6; }
   10788 if test "${ac_cv_f_setlkw+set}" = set; then :
   10789   $as_echo_n "(cached) " >&6
   10790 else
   10791 
   10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10793 /* end confdefs.h.  */
   10794 
   10795 #include <fcntl.h>
   10796 int
   10797 main ()
   10798 {
   10799 
   10800 struct flock fl;
   10801 fl.l_whence = 0;
   10802 fl.l_start = 0;
   10803 fl.l_len = 0;
   10804 fl.l_pid = 0;
   10805 return fcntl (1, F_SETLKW, &fl);
   10806   ;
   10807   return 0;
   10808 }
   10809 _ACEOF
   10810 if ac_fn_c_try_compile "$LINENO"; then :
   10811   ac_cv_f_setlkw=yes
   10812 else
   10813   ac_cv_f_setlkw=no
   10814 fi
   10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10816 fi
   10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
   10818 $as_echo "$ac_cv_f_setlkw" >&6; }
   10819 if test $ac_cv_f_setlkw = yes; then
   10820 
   10821 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
   10822 
   10823 fi
   10824 
   10825 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
   10826 CFLAGS="$saved_CFLAGS"
   10827 CXXFLAGS="$saved_CXXFLAGS"
   10828 
   10829 # mkdir takes a single argument on some systems.
   10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
   10831 $as_echo_n "checking if mkdir takes one argument... " >&6; }
   10832 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
   10833   $as_echo_n "(cached) " >&6
   10834 else
   10835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10836 /* end confdefs.h.  */
   10837 
   10838 #include <sys/types.h>
   10839 #ifdef HAVE_SYS_STAT_H
   10840 # include <sys/stat.h>
   10841 #endif
   10842 #ifdef HAVE_UNISTD_H
   10843 # include <unistd.h>
   10844 #endif
   10845 #ifdef HAVE_DIRECT_H
   10846 # include <direct.h>
   10847 #endif
   10848 int
   10849 main ()
   10850 {
   10851 mkdir ("foo", 0);
   10852   ;
   10853   return 0;
   10854 }
   10855 _ACEOF
   10856 if ac_fn_c_try_compile "$LINENO"; then :
   10857   gcc_cv_mkdir_takes_one_arg=no
   10858 else
   10859   gcc_cv_mkdir_takes_one_arg=yes
   10860 fi
   10861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10862 fi
   10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
   10864 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
   10865 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
   10866 
   10867 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
   10868 
   10869 fi
   10870 
   10871 
   10872 # File extensions
   10873 manext='.1'
   10874 objext='.o'
   10875 
   10876 
   10877 
   10878 # With Setjmp/Longjmp based exception handling.
   10879 # Check whether --enable-sjlj-exceptions was given.
   10880 if test "${enable_sjlj_exceptions+set}" = set; then :
   10881   enableval=$enable_sjlj_exceptions; case $target in
   10882   *-*-hpux10*)
   10883     if test $enableval != yes; then
   10884       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
   10885 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
   10886       enableval=yes
   10887     fi
   10888     ;;
   10889 esac
   10890 force_sjlj_exceptions=yes
   10891 else
   10892   case $target in
   10893   *-*-hpux10*)
   10894     force_sjlj_exceptions=yes
   10895     enableval=yes
   10896     ;;
   10897   *)
   10898     force_sjlj_exceptions=no
   10899     ;;
   10900 esac
   10901 fi
   10902 
   10903 if test $force_sjlj_exceptions = yes; then
   10904   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
   10905 
   10906 cat >>confdefs.h <<_ACEOF
   10907 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
   10908 _ACEOF
   10909 
   10910 fi
   10911 
   10912 # --------------------------------------------------------
   10913 # Build, host, and target specific configuration fragments
   10914 # --------------------------------------------------------
   10915 
   10916 # Collect build-machine-specific information.
   10917 . ${srcdir}/config.build
   10918 
   10919 # Collect host-machine-specific information.
   10920 . ${srcdir}/config.host
   10921 
   10922 target_gtfiles=
   10923 
   10924 # Collect target-machine-specific information.
   10925 . ${srcdir}/config.gcc
   10926 
   10927 extra_objs="${host_extra_objs} ${extra_objs}"
   10928 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
   10929 
   10930 # Default the target-machine variables that were not explicitly set.
   10931 if test x"$tm_file" = x
   10932 then tm_file=$cpu_type/$cpu_type.h; fi
   10933 
   10934 if test x"$extra_headers" = x
   10935 then extra_headers=; fi
   10936 
   10937 if test x$md_file = x
   10938 then md_file=$cpu_type/$cpu_type.md; fi
   10939 
   10940 if test x$out_file = x
   10941 then out_file=$cpu_type/$cpu_type.c; fi
   10942 
   10943 if test x"$tmake_file" = x
   10944 then tmake_file=$cpu_type/t-$cpu_type
   10945 fi
   10946 
   10947 # Support --enable-initfini-array.
   10948 if test x$enable_initfini_array != xno; then
   10949   tm_file="${tm_file} initfini-array.h"
   10950 fi
   10951 
   10952 if test x"$dwarf2" = xyes
   10953 then tm_file="$tm_file tm-dwarf2.h"
   10954 fi
   10955 
   10956 # Say what files are being used for the output code and MD file.
   10957 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
   10958 echo "Using \`$srcdir/config/$md_file' as machine description file."
   10959 
   10960 # If any of the xm_file variables contain nonexistent files, warn
   10961 # about them and drop them.
   10962 
   10963 bx=
   10964 for x in $build_xm_file; do
   10965   if    test -f $srcdir/config/$x
   10966   then      bx="$bx $x"
   10967   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
   10968 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
   10969   fi
   10970 done
   10971 build_xm_file="$bx"
   10972 
   10973 hx=
   10974 for x in $host_xm_file; do
   10975   if    test -f $srcdir/config/$x
   10976   then      hx="$hx $x"
   10977   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
   10978 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
   10979   fi
   10980 done
   10981 host_xm_file="$hx"
   10982 
   10983 tx=
   10984 for x in $xm_file; do
   10985   if    test -f $srcdir/config/$x
   10986   then      tx="$tx $x"
   10987   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
   10988 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
   10989   fi
   10990 done
   10991 xm_file="$tx"
   10992 
   10993 count=a
   10994 for f in $tm_file; do
   10995 	count=${count}x
   10996 done
   10997 if test $count = ax; then
   10998 	echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
   10999 else
   11000 	echo "Using the following target machine macro files:"
   11001 	for f in $tm_file; do
   11002 		echo "	$srcdir/config/$f"
   11003 	done
   11004 fi
   11005 
   11006 if test x$need_64bit_hwint = xyes; then
   11007 
   11008 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
   11009 
   11010 fi
   11011 
   11012 if test x$use_long_long_for_widest_fast_int = xyes; then
   11013 
   11014 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
   11015 
   11016 fi
   11017 
   11018 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
   11019 
   11020 cat >>confdefs.h <<_ACEOF
   11021 #define HAVE_GNU_LD $gnu_ld_bool
   11022 _ACEOF
   11023 
   11024 
   11025 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
   11026 
   11027 cat >>confdefs.h <<_ACEOF
   11028 #define HAVE_GNU_AS $gnu_as_bool
   11029 _ACEOF
   11030 
   11031 
   11032 count=a
   11033 for f in $host_xm_file; do
   11034 	count=${count}x
   11035 done
   11036 if test $count = a; then
   11037 	:
   11038 elif test $count = ax; then
   11039 	echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
   11040 else
   11041 	echo "Using the following host machine macro files:"
   11042 	for f in $host_xm_file; do
   11043 		echo "	$srcdir/config/$f"
   11044 	done
   11045 fi
   11046 echo "Using ${out_host_hook_obj} for host machine hooks."
   11047 
   11048 if test "$host_xm_file" != "$build_xm_file"; then
   11049 	count=a
   11050 	for f in $build_xm_file; do
   11051 		count=${count}x
   11052 	done
   11053 	if test $count = a; then
   11054 		:
   11055 	elif test $count = ax; then
   11056 		echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
   11057 	else
   11058 		echo "Using the following build machine macro files:"
   11059 		for f in $build_xm_file; do
   11060 			echo "	$srcdir/config/$f"
   11061 		done
   11062 	fi
   11063 fi
   11064 
   11065 if test -n "$configured_native_system_header_dir"; then
   11066   native_system_header_dir=$configured_native_system_header_dir
   11067 fi
   11068 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
   11069 
   11070 
   11071 case ${host} in
   11072   powerpc*-*-darwin*)
   11073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
   11074 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
   11075 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
   11076   $as_echo_n "(cached) " >&6
   11077 else
   11078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11079 /* end confdefs.h.  */
   11080 
   11081 #include <sys/cdefs.h>
   11082 #include <sys/signal.h>
   11083 #include <ucontext.h>
   11084 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
   11085 
   11086 _ACEOF
   11087 if ac_fn_c_try_compile "$LINENO"; then :
   11088   gcc_cv_mcontext_underscores=no
   11089 else
   11090   gcc_cv_mcontext_underscores=yes
   11091 fi
   11092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11093 fi
   11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
   11095 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
   11096       if test $gcc_cv_mcontext_underscores = yes; then
   11097 
   11098 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
   11099 
   11100       fi
   11101     ;;
   11102 esac
   11103 
   11104 # ---------
   11105 # Threading
   11106 # ---------
   11107 
   11108 # Check if a valid thread package
   11109 case ${enable_threads} in
   11110   "" | no)
   11111     # No threads
   11112     target_thread_file='single'
   11113     ;;
   11114   yes)
   11115     # default
   11116     target_thread_file='single'
   11117     ;;
   11118   aix | dce | lynx | mipssde | posix | rtems | \
   11119   single | tpf | vxworks | win32)
   11120     target_thread_file=${enable_threads}
   11121     ;;
   11122   *)
   11123     echo "${enable_threads} is an unknown thread package" 1>&2
   11124     exit 1
   11125     ;;
   11126 esac
   11127 
   11128 if test x${thread_file} = x; then
   11129   # No thread file set by target-specific clauses in config.gcc,
   11130   # so use file chosen by default logic above
   11131   thread_file=${target_thread_file}
   11132 fi
   11133 
   11134 # --------
   11135 # UNSORTED
   11136 # --------
   11137 
   11138 use_cxa_atexit=no
   11139 if test x$enable___cxa_atexit = xyes || \
   11140    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
   11141   if test x$host = x$target; then
   11142     case $host in
   11143       # mingw32 doesn't have __cxa_atexit but uses atexit registration
   11144       # keyed to flag_use_cxa_atexit
   11145       *-*-mingw32*)
   11146 	use_cxa_atexit=yes
   11147 	;;
   11148       powerpc-ibm-aix*)
   11149 	use_cxa_atexit=yes
   11150 	;;
   11151       *)
   11152 	ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
   11153 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
   11154   use_cxa_atexit=yes
   11155 else
   11156   echo "__cxa_atexit can't be enabled on this target"
   11157 fi
   11158 
   11159 	;;
   11160     esac
   11161   else
   11162     # We can't check for __cxa_atexit when building a cross, so assume
   11163     # it is available
   11164     use_cxa_atexit=yes
   11165   fi
   11166   if test x$use_cxa_atexit = xyes; then
   11167 
   11168 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
   11169 
   11170   fi
   11171 fi
   11172 
   11173 # Look for a file containing extra machine modes.
   11174 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
   11175   extra_modes_file='$(srcdir)'/config/${extra_modes}
   11176 
   11177 
   11178 cat >>confdefs.h <<_ACEOF
   11179 #define EXTRA_MODES_FILE "config/$extra_modes"
   11180 _ACEOF
   11181 
   11182 fi
   11183 
   11184 # Convert extra_options into a form suitable for Makefile use.
   11185 extra_opt_files=
   11186 all_opt_files=
   11187 for f in $extra_options; do
   11188   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
   11189   all_opt_files="$all_opt_files $srcdir/config/$f"
   11190 done
   11191 
   11192 
   11193 # auto-host.h is the file containing items generated by autoconf and is
   11194 # the first file included by config.h.
   11195 # If host=build, it is correct to have bconfig include auto-host.h
   11196 # as well.  If host!=build, we are in error and need to do more
   11197 # work to find out the build config parameters.
   11198 if test x$host = x$build
   11199 then
   11200 	build_auto=auto-host.h
   11201 else
   11202 	# We create a subdir, then run autoconf in the subdir.
   11203 	# To prevent recursion we set host and build for the new
   11204 	# invocation of configure to the build for this invocation
   11205 	# of configure.
   11206 	tempdir=build.$$
   11207 	rm -rf $tempdir
   11208 	mkdir $tempdir
   11209 	cd $tempdir
   11210 	case ${srcdir} in
   11211 	/* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
   11212 	*) realsrcdir=../${srcdir};;
   11213 	esac
   11214 	# Clearing GMPINC is necessary to prevent host headers being
   11215 	# used by the build compiler.  Defining GENERATOR_FILE stops
   11216 	# system.h from including gmp.h.
   11217 	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
   11218 	CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
   11219 	LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
   11220 	GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
   11221 	${realsrcdir}/configure \
   11222 		--enable-languages=${enable_languages-all} \
   11223 		--target=$target_alias --host=$build_alias --build=$build_alias
   11224 
   11225 	# We just finished tests for the build machine, so rename
   11226 	# the file auto-build.h in the gcc directory.
   11227 	mv auto-host.h ../auto-build.h
   11228 	cd ..
   11229 	rm -rf $tempdir
   11230 	build_auto=auto-build.h
   11231 fi
   11232 
   11233 
   11234 tm_file="${tm_file} defaults.h"
   11235 tm_p_file="${tm_p_file} tm-preds.h"
   11236 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
   11237 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
   11238 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
   11239 # put this back in temporarily.
   11240 xm_file="auto-host.h ansidecl.h ${xm_file}"
   11241 
   11242 # --------
   11243 # UNSORTED
   11244 # --------
   11245 
   11246 # Compile in configure arguments.
   11247 if test -f configargs.h ; then
   11248 	# Being re-configured.
   11249 	gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
   11250 	gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
   11251 else
   11252 	gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
   11253 fi
   11254 
   11255 # Double all backslashes and backslash all quotes to turn
   11256 # gcc_config_arguments into a C string.
   11257 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
   11258 $gcc_config_arguments
   11259 EOF
   11260 gcc_config_arguments_str=`cat conftest.out`
   11261 rm -f conftest.out
   11262 
   11263 cat > configargs.h <<EOF
   11264 /* Generated automatically. */
   11265 static const char configuration_arguments[] = "$gcc_config_arguments_str";
   11266 static const char thread_model[] = "$thread_file";
   11267 
   11268 static const struct {
   11269   const char *name, *value;
   11270 } configure_default_options[] = $configure_default_options;
   11271 EOF
   11272 
   11273 gcc_BASEVER=`cat $srcdir/BASE-VER`
   11274 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
   11275 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
   11276 if test -f $srcdir/REVISION ; then
   11277 	gcc_REVISION=`cat $srcdir/REVISION`
   11278 else
   11279         gcc_REVISION=""
   11280 fi
   11281 cat > plugin-version.h <<EOF
   11282 #include "configargs.h"
   11283 
   11284 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
   11285 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
   11286 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
   11287 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
   11288 
   11289 static char basever[] = "$gcc_BASEVER";
   11290 static char datestamp[] = "$gcc_DATESTAMP";
   11291 static char devphase[] = "$gcc_DEVPHASE";
   11292 static char revision[] = "$gcc_REVISION";
   11293 
   11294 /* FIXME plugins: We should make the version information more precise.
   11295    One way to do is to add a checksum. */
   11296 
   11297 static struct plugin_gcc_version gcc_version = {basever, datestamp,
   11298 						devphase, revision,
   11299 						configuration_arguments};
   11300 EOF
   11301 
   11302 # Internationalization
   11303 # If we haven't got the data from the intl directory,
   11304 # assume NLS is disabled.
   11305 USE_NLS=no
   11306 LIBINTL=
   11307 LIBINTL_DEP=
   11308 INCINTL=
   11309 XGETTEXT=
   11310 GMSGFMT=
   11311 POSUB=
   11312 
   11313 if test -f  ../intl/config.intl; then
   11314   .  ../intl/config.intl
   11315 fi
   11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
   11317 $as_echo_n "checking whether NLS is requested... " >&6; }
   11318 if test x"$USE_NLS" != xyes; then
   11319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11320 $as_echo "no" >&6; }
   11321 else
   11322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11323 $as_echo "yes" >&6; }
   11324 
   11325 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
   11326 
   11327 
   11328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
   11329 $as_echo_n "checking for catalogs to be installed... " >&6; }
   11330   # Look for .po and .gmo files in the source directory.
   11331   CATALOGS=
   11332   XLINGUAS=
   11333   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
   11334     # If there aren't any .gmo files the shell will give us the
   11335     # literal string "../path/to/srcdir/po/*.gmo" which has to be
   11336     # weeded out.
   11337     case "$cat" in *\**)
   11338       continue;;
   11339     esac
   11340     # The quadruple backslash is collapsed to a double backslash
   11341     # by the backticks, then collapsed again by the double quotes,
   11342     # leaving us with one backslash in the sed expression (right
   11343     # before the dot that mustn't act as a wildcard).
   11344     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
   11345     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
   11346     # The user is allowed to set LINGUAS to a list of languages to
   11347     # install catalogs for.  If it's empty that means "all of them."
   11348     if test "x$LINGUAS" = x; then
   11349       CATALOGS="$CATALOGS $cat"
   11350       XLINGUAS="$XLINGUAS $lang"
   11351     else
   11352       case "$LINGUAS" in *$lang*)
   11353         CATALOGS="$CATALOGS $cat"
   11354         XLINGUAS="$XLINGUAS $lang"
   11355         ;;
   11356       esac
   11357     fi
   11358   done
   11359   LINGUAS="$XLINGUAS"
   11360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
   11361 $as_echo "$LINGUAS" >&6; }
   11362 
   11363 
   11364     DATADIRNAME=share
   11365 
   11366   INSTOBJEXT=.mo
   11367 
   11368   GENCAT=gencat
   11369 
   11370   CATOBJEXT=.gmo
   11371 
   11372 fi
   11373 
   11374 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
   11375 # -liconv on the link line twice.
   11376 case "$LIBINTL" in *$LIBICONV*)
   11377 	LIBICONV= ;;
   11378 esac
   11379 
   11380 # Check whether --enable-secureplt was given.
   11381 if test "${enable_secureplt+set}" = set; then :
   11382   enableval=$enable_secureplt;
   11383 fi
   11384 
   11385 
   11386 # Check whether --enable-leading-mingw64-underscores was given.
   11387 if test "${enable_leading_mingw64_underscores+set}" = set; then :
   11388   enableval=$enable_leading_mingw64_underscores;
   11389 fi
   11390 
   11391 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
   11392 
   11393 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
   11394 
   11395 fi
   11396 
   11397 # Check whether --enable-cld was given.
   11398 if test "${enable_cld+set}" = set; then :
   11399   enableval=$enable_cld;
   11400 else
   11401   enable_cld=no
   11402 fi
   11403 
   11404 
   11405 # Check whether --enable-frame-pointer was given.
   11406 if test "${enable_frame_pointer+set}" = set; then :
   11407   enableval=$enable_frame_pointer;
   11408 else
   11409 
   11410 case $target_os in
   11411 linux* | darwin[8912]*)
   11412   # Enable -fomit-frame-pointer by default for Linux and Darwin with
   11413   # DWARF2.
   11414   enable_frame_pointer=no
   11415   ;;
   11416 *)
   11417   enable_frame_pointer=yes
   11418   ;;
   11419 esac
   11420 
   11421 fi
   11422 
   11423 
   11424 # Windows32 Registry support for specifying GCC installation paths.
   11425 # Check whether --enable-win32-registry was given.
   11426 if test "${enable_win32_registry+set}" = set; then :
   11427   enableval=$enable_win32_registry;
   11428 fi
   11429 
   11430 
   11431 case $host_os in
   11432   win32 | pe | cygwin* | mingw32* | uwin*)
   11433     if test "x$enable_win32_registry" != xno; then
   11434       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
   11435 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
   11436 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
   11437   $as_echo_n "(cached) " >&6
   11438 else
   11439   ac_func_search_save_LIBS=$LIBS
   11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11441 /* end confdefs.h.  */
   11442 
   11443 /* Override any GCC internal prototype to avoid an error.
   11444    Use char because int might match the return type of a GCC
   11445    builtin and then its argument prototype would still apply.  */
   11446 #ifdef __cplusplus
   11447 extern "C"
   11448 #endif
   11449 char RegOpenKeyExA ();
   11450 int
   11451 main ()
   11452 {
   11453 return RegOpenKeyExA ();
   11454   ;
   11455   return 0;
   11456 }
   11457 _ACEOF
   11458 for ac_lib in '' advapi32; do
   11459   if test -z "$ac_lib"; then
   11460     ac_res="none required"
   11461   else
   11462     ac_res=-l$ac_lib
   11463     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   11464   fi
   11465   if ac_fn_c_try_link "$LINENO"; then :
   11466   ac_cv_search_RegOpenKeyExA=$ac_res
   11467 fi
   11468 rm -f core conftest.err conftest.$ac_objext \
   11469     conftest$ac_exeext
   11470   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
   11471   break
   11472 fi
   11473 done
   11474 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
   11475 
   11476 else
   11477   ac_cv_search_RegOpenKeyExA=no
   11478 fi
   11479 rm conftest.$ac_ext
   11480 LIBS=$ac_func_search_save_LIBS
   11481 fi
   11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
   11483 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
   11484 ac_res=$ac_cv_search_RegOpenKeyExA
   11485 if test "$ac_res" != no; then :
   11486   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   11487 
   11488 else
   11489   enable_win32_registry=no
   11490 fi
   11491 
   11492     fi
   11493 
   11494     if test "x$enable_win32_registry" != xno; then
   11495 
   11496 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
   11497 
   11498 
   11499       if test "x$enable_win32_registry" != xyes \
   11500          && test "x$enable_win32_registry" != x; then
   11501 
   11502 cat >>confdefs.h <<_ACEOF
   11503 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
   11504 _ACEOF
   11505 
   11506       fi
   11507     fi
   11508   ;;
   11509 esac
   11510 
   11511 # Get an absolute path to the GCC top-level source directory
   11512 holddir=`${PWDCMD-pwd}`
   11513 cd $srcdir
   11514 topdir=`${PWDCMD-pwd}`
   11515 cd $holddir
   11516 
   11517 # Conditionalize the makefile for this host machine.
   11518 xmake_file=
   11519 for f in ${host_xmake_file}
   11520 do
   11521 	if test -f ${srcdir}/config/$f
   11522 	then
   11523 		xmake_file="${xmake_file} \$(srcdir)/config/$f"
   11524 	fi
   11525 done
   11526 
   11527 # Conditionalize the makefile for this target machine.
   11528 tmake_file_=
   11529 for f in ${tmake_file}
   11530 do
   11531 	if test -f ${srcdir}/config/$f
   11532 	then
   11533 		tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
   11534 	fi
   11535 done
   11536 tmake_file="${tmake_file_}"
   11537 
   11538 out_object_file=`basename $out_file .c`.o
   11539 common_out_object_file=`basename $common_out_file .c`.o
   11540 
   11541 tm_file_list="options.h"
   11542 tm_include_list="options.h insn-constants.h"
   11543 for f in $tm_file; do
   11544   case $f in
   11545     ./* )
   11546        f=`echo $f | sed 's/^..//'`
   11547        tm_file_list="${tm_file_list} $f"
   11548        tm_include_list="${tm_include_list} $f"
   11549        ;;
   11550     defaults.h )
   11551        tm_file_list="${tm_file_list} \$(srcdir)/$f"
   11552        tm_include_list="${tm_include_list} $f"
   11553        ;;
   11554     * )
   11555        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
   11556        tm_include_list="${tm_include_list} config/$f"
   11557        ;;
   11558   esac
   11559 done
   11560 
   11561 tm_p_file_list=
   11562 tm_p_include_list=
   11563 for f in $tm_p_file; do
   11564   case $f in
   11565     tm-preds.h )
   11566        tm_p_file_list="${tm_p_file_list} $f"
   11567        tm_p_include_list="${tm_p_include_list} $f"
   11568        ;;
   11569     * )
   11570        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
   11571        tm_p_include_list="${tm_p_include_list} config/$f"
   11572   esac
   11573 done
   11574 
   11575 xm_file_list=
   11576 xm_include_list=
   11577 for f in $xm_file; do
   11578   case $f in
   11579     ansidecl.h )
   11580        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
   11581        xm_include_list="${xm_include_list} $f"
   11582        ;;
   11583     auto-host.h )
   11584        xm_file_list="${xm_file_list} $f"
   11585        xm_include_list="${xm_include_list} $f"
   11586        ;;
   11587     * )
   11588        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
   11589        xm_include_list="${xm_include_list} config/$f"
   11590        ;;
   11591   esac
   11592 done
   11593 
   11594 host_xm_file_list=
   11595 host_xm_include_list=
   11596 for f in $host_xm_file; do
   11597   case $f in
   11598     ansidecl.h )
   11599        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
   11600        host_xm_include_list="${host_xm_include_list} $f"
   11601        ;;
   11602     auto-host.h )
   11603        host_xm_file_list="${host_xm_file_list} $f"
   11604        host_xm_include_list="${host_xm_include_list} $f"
   11605        ;;
   11606     * )
   11607        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
   11608        host_xm_include_list="${host_xm_include_list} config/$f"
   11609        ;;
   11610   esac
   11611 done
   11612 
   11613 build_xm_file_list=
   11614 for f in $build_xm_file; do
   11615   case $f in
   11616     ansidecl.h )
   11617        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
   11618        build_xm_include_list="${build_xm_include_list} $f"
   11619        ;;
   11620     auto-build.h | auto-host.h )
   11621        build_xm_file_list="${build_xm_file_list} $f"
   11622        build_xm_include_list="${build_xm_include_list} $f"
   11623        ;;
   11624     * )
   11625        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
   11626        build_xm_include_list="${build_xm_include_list} config/$f"
   11627        ;;
   11628   esac
   11629 done
   11630 
   11631 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
   11632 # cross-compiler which does not use the native headers and libraries.
   11633 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
   11634 CROSS=
   11635 ALL=all.internal
   11636 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
   11637 
   11638 if test "x$with_build_sysroot" != x; then
   11639   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
   11640 else
   11641   # This value is used, even on a native system, because
   11642   # CROSS_SYSTEM_HEADER_DIR is just
   11643   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
   11644   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
   11645 fi
   11646 
   11647 if test x$host != x$target
   11648 then
   11649 	CROSS="-DCROSS_DIRECTORY_STRUCTURE"
   11650 	ALL=all.cross
   11651 	SYSTEM_HEADER_DIR=$build_system_header_dir
   11652 	case "$host","$target" in
   11653 	# Darwin crosses can use the host system's libraries and headers,
   11654 	# because of the fat library support.  Of course, it must be the
   11655 	# same version of Darwin on both sides.  Allow the user to
   11656 	# just say --target=foo-darwin without a version number to mean
   11657 	# "the version on this system".
   11658 	    *-*-darwin*,*-*-darwin*)
   11659 		hostos=`echo $host | sed 's/.*-darwin/darwin/'`
   11660 		targetos=`echo $target | sed 's/.*-darwin/darwin/'`
   11661 		if test $hostos = $targetos -o $targetos = darwin ; then
   11662 		    CROSS=
   11663 		    SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
   11664 		    with_headers=yes
   11665 		fi
   11666 		;;
   11667 
   11668 	    i?86-*-*,x86_64-*-* \
   11669 	    | powerpc*-*-*,powerpc64*-*-*)
   11670 		CROSS="$CROSS -DNATIVE_CROSS" ;;
   11671 	esac
   11672 
   11673 	case $target in
   11674 		*-*-mingw*)
   11675 			if test "x$with_headers" = x; then
   11676 				with_headers=yes
   11677 			fi
   11678 			;;
   11679 		*)
   11680 			;;
   11681 	esac
   11682 elif test "x$TARGET_SYSTEM_ROOT" != x; then
   11683         SYSTEM_HEADER_DIR=$build_system_header_dir
   11684 fi
   11685 
   11686 # If this is a cross-compiler that does not
   11687 # have its own set of headers then define
   11688 # inhibit_libc
   11689 
   11690 # If this is using newlib, without having the headers available now,
   11691 # then define inhibit_libc in LIBGCC2_CFLAGS.
   11692 # This prevents libgcc2 from containing any code which requires libc
   11693 # support.
   11694 : ${inhibit_libc=false}
   11695 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
   11696        test x$with_newlib = xyes ; } &&
   11697      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
   11698        inhibit_libc=true
   11699 fi
   11700 
   11701 
   11702 # When building gcc with a cross-compiler, we need to adjust things so
   11703 # that the generator programs are still built with the native compiler.
   11704 # Also, we cannot run fixincludes.
   11705 
   11706 # These are the normal (build=host) settings:
   11707 CC_FOR_BUILD='$(CC)'
   11708 CXX_FOR_BUILD='$(CXX)'
   11709 BUILD_CFLAGS='$(ALL_CFLAGS)'
   11710 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
   11711 BUILD_LDFLAGS='$(LDFLAGS)'
   11712 STMP_FIXINC=stmp-fixinc
   11713 
   11714 # And these apply if build != host, or we are generating coverage data
   11715 if test x$build != x$host || test "x$coverage_flags" != x
   11716 then
   11717     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
   11718     BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
   11719     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
   11720 fi
   11721 
   11722 # Expand extra_headers to include complete path.
   11723 # This substitutes for lots of t-* files.
   11724 extra_headers_list=
   11725 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
   11726 for file in ${extra_headers} ; do
   11727   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
   11728 done
   11729 
   11730 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
   11731 if test x"$use_gcc_tgmath" = xyes
   11732 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
   11733 fi
   11734 
   11735 # Define collect2 in Makefile.
   11736 case $host_can_use_collect2 in
   11737   no) collect2= ;;
   11738   *) collect2='collect2$(exeext)' ;;
   11739 esac
   11740 
   11741 
   11742 # Add a definition of USE_COLLECT2 if system wants one.
   11743 case $use_collect2 in
   11744   no) use_collect2= ;;
   11745   "") ;;
   11746   *)
   11747     host_xm_defines="${host_xm_defines} USE_COLLECT2"
   11748     xm_defines="${xm_defines} USE_COLLECT2"
   11749     case $host_can_use_collect2 in
   11750       no)
   11751         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
   11752         ;;
   11753     esac
   11754     ;;
   11755 esac
   11756 
   11757 
   11758 cat >>confdefs.h <<_ACEOF
   11759 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
   11760 _ACEOF
   11761 
   11762 
   11763 # ---------------------------
   11764 # Assembler & linker features
   11765 # ---------------------------
   11766 
   11767 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
   11768 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
   11769 # However when ld-new is first executed from the build tree, libtool will
   11770 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
   11771 # to the build tree.  While doing this we need to use the previous-stage
   11772 # linker, or we have an infinite loop.  The presence of a shell script as
   11773 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
   11774 # the gcc/collect-ld script.  So we need to know how libtool works, or
   11775 # exec-tool will fail.
   11776 
   11777 
   11778 case `pwd` in
   11779   *\ * | *\	*)
   11780     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   11781 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   11782 esac
   11783 
   11784 
   11785 
   11786 macro_version='2.2.7a'
   11787 macro_revision='1.3134'
   11788 
   11789 
   11790 
   11791 
   11792 
   11793 
   11794 
   11795 
   11796 
   11797 
   11798 
   11799 
   11800 
   11801 ltmain="$ac_aux_dir/ltmain.sh"
   11802 
   11803 # Backslashify metacharacters that are still active within
   11804 # double-quoted strings.
   11805 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   11806 
   11807 # Same as above, but do not quote variable references.
   11808 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   11809 
   11810 # Sed substitution to delay expansion of an escaped shell variable in a
   11811 # double_quote_subst'ed string.
   11812 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   11813 
   11814 # Sed substitution to delay expansion of an escaped single quote.
   11815 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   11816 
   11817 # Sed substitution to avoid accidental globbing in evaled expressions
   11818 no_glob_subst='s/\*/\\\*/g'
   11819 
   11820 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   11821 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   11822 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   11823 
   11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   11825 $as_echo_n "checking how to print strings... " >&6; }
   11826 # Test print first, because it will be a builtin if present.
   11827 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
   11828    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   11829   ECHO='print -r --'
   11830 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   11831   ECHO='printf %s\n'
   11832 else
   11833   # Use this function as a fallback that always works.
   11834   func_fallback_echo ()
   11835   {
   11836     eval 'cat <<_LTECHO_EOF
   11837 $1
   11838 _LTECHO_EOF'
   11839   }
   11840   ECHO='func_fallback_echo'
   11841 fi
   11842 
   11843 # func_echo_all arg...
   11844 # Invoke $ECHO with all args, space-separated.
   11845 func_echo_all ()
   11846 {
   11847     $ECHO ""
   11848 }
   11849 
   11850 case "$ECHO" in
   11851   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   11852 $as_echo "printf" >&6; } ;;
   11853   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   11854 $as_echo "print -r" >&6; } ;;
   11855   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   11856 $as_echo "cat" >&6; } ;;
   11857 esac
   11858 
   11859 
   11860 
   11861 
   11862 
   11863 
   11864 
   11865 
   11866 
   11867 
   11868 
   11869 
   11870 
   11871 
   11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   11873 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   11874 if test "${ac_cv_path_SED+set}" = set; then :
   11875   $as_echo_n "(cached) " >&6
   11876 else
   11877             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   11878      for ac_i in 1 2 3 4 5 6 7; do
   11879        ac_script="$ac_script$as_nl$ac_script"
   11880      done
   11881      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   11882      { ac_script=; unset ac_script;}
   11883      if test -z "$SED"; then
   11884   ac_path_SED_found=false
   11885   # Loop through the user's path and test for each of PROGNAME-LIST
   11886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11887 for as_dir in $PATH
   11888 do
   11889   IFS=$as_save_IFS
   11890   test -z "$as_dir" && as_dir=.
   11891     for ac_prog in sed gsed; do
   11892     for ac_exec_ext in '' $ac_executable_extensions; do
   11893       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   11894       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
   11895 # Check for GNU ac_path_SED and select it if it is found.
   11896   # Check for GNU $ac_path_SED
   11897 case `"$ac_path_SED" --version 2>&1` in
   11898 *GNU*)
   11899   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   11900 *)
   11901   ac_count=0
   11902   $as_echo_n 0123456789 >"conftest.in"
   11903   while :
   11904   do
   11905     cat "conftest.in" "conftest.in" >"conftest.tmp"
   11906     mv "conftest.tmp" "conftest.in"
   11907     cp "conftest.in" "conftest.nl"
   11908     $as_echo '' >> "conftest.nl"
   11909     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   11910     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   11911     as_fn_arith $ac_count + 1 && ac_count=$as_val
   11912     if test $ac_count -gt ${ac_path_SED_max-0}; then
   11913       # Best one so far, save it but keep looking for a better one
   11914       ac_cv_path_SED="$ac_path_SED"
   11915       ac_path_SED_max=$ac_count
   11916     fi
   11917     # 10*(2^10) chars as input seems more than enough
   11918     test $ac_count -gt 10 && break
   11919   done
   11920   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   11921 esac
   11922 
   11923       $ac_path_SED_found && break 3
   11924     done
   11925   done
   11926   done
   11927 IFS=$as_save_IFS
   11928   if test -z "$ac_cv_path_SED"; then
   11929     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
   11930   fi
   11931 else
   11932   ac_cv_path_SED=$SED
   11933 fi
   11934 
   11935 fi
   11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   11937 $as_echo "$ac_cv_path_SED" >&6; }
   11938  SED="$ac_cv_path_SED"
   11939   rm -f conftest.sed
   11940 
   11941 test -z "$SED" && SED=sed
   11942 Xsed="$SED -e 1s/^X//"
   11943 
   11944 
   11945 
   11946 
   11947 
   11948 
   11949 
   11950 
   11951 
   11952 
   11953 
   11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   11955 $as_echo_n "checking for fgrep... " >&6; }
   11956 if test "${ac_cv_path_FGREP+set}" = set; then :
   11957   $as_echo_n "(cached) " >&6
   11958 else
   11959   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   11960    then ac_cv_path_FGREP="$GREP -F"
   11961    else
   11962      if test -z "$FGREP"; then
   11963   ac_path_FGREP_found=false
   11964   # Loop through the user's path and test for each of PROGNAME-LIST
   11965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   11967 do
   11968   IFS=$as_save_IFS
   11969   test -z "$as_dir" && as_dir=.
   11970     for ac_prog in fgrep; do
   11971     for ac_exec_ext in '' $ac_executable_extensions; do
   11972       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   11973       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
   11974 # Check for GNU ac_path_FGREP and select it if it is found.
   11975   # Check for GNU $ac_path_FGREP
   11976 case `"$ac_path_FGREP" --version 2>&1` in
   11977 *GNU*)
   11978   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   11979 *)
   11980   ac_count=0
   11981   $as_echo_n 0123456789 >"conftest.in"
   11982   while :
   11983   do
   11984     cat "conftest.in" "conftest.in" >"conftest.tmp"
   11985     mv "conftest.tmp" "conftest.in"
   11986     cp "conftest.in" "conftest.nl"
   11987     $as_echo 'FGREP' >> "conftest.nl"
   11988     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   11989     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   11990     as_fn_arith $ac_count + 1 && ac_count=$as_val
   11991     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   11992       # Best one so far, save it but keep looking for a better one
   11993       ac_cv_path_FGREP="$ac_path_FGREP"
   11994       ac_path_FGREP_max=$ac_count
   11995     fi
   11996     # 10*(2^10) chars as input seems more than enough
   11997     test $ac_count -gt 10 && break
   11998   done
   11999   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   12000 esac
   12001 
   12002       $ac_path_FGREP_found && break 3
   12003     done
   12004   done
   12005   done
   12006 IFS=$as_save_IFS
   12007   if test -z "$ac_cv_path_FGREP"; then
   12008     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   12009   fi
   12010 else
   12011   ac_cv_path_FGREP=$FGREP
   12012 fi
   12013 
   12014    fi
   12015 fi
   12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   12017 $as_echo "$ac_cv_path_FGREP" >&6; }
   12018  FGREP="$ac_cv_path_FGREP"
   12019 
   12020 
   12021 test -z "$GREP" && GREP=grep
   12022 
   12023 
   12024 
   12025 
   12026 
   12027 
   12028 
   12029 
   12030 
   12031 
   12032 
   12033 
   12034 
   12035 
   12036 
   12037 
   12038 
   12039 
   12040 
   12041 # Check whether --with-gnu-ld was given.
   12042 if test "${with_gnu_ld+set}" = set; then :
   12043   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   12044 else
   12045   with_gnu_ld=no
   12046 fi
   12047 
   12048 ac_prog=ld
   12049 if test "$GCC" = yes; then
   12050   # Check if gcc -print-prog-name=ld gives a path.
   12051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   12052 $as_echo_n "checking for ld used by $CC... " >&6; }
   12053   case $host in
   12054   *-*-mingw*)
   12055     # gcc leaves a trailing carriage return which upsets mingw
   12056     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   12057   *)
   12058     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   12059   esac
   12060   case $ac_prog in
   12061     # Accept absolute paths.
   12062     [\\/]* | ?:[\\/]*)
   12063       re_direlt='/[^/][^/]*/\.\./'
   12064       # Canonicalize the pathname of ld
   12065       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   12066       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   12067 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   12068       done
   12069       test -z "$LD" && LD="$ac_prog"
   12070       ;;
   12071   "")
   12072     # If it fails, then pretend we aren't using GCC.
   12073     ac_prog=ld
   12074     ;;
   12075   *)
   12076     # If it is relative, then search for the first ld in PATH.
   12077     with_gnu_ld=unknown
   12078     ;;
   12079   esac
   12080 elif test "$with_gnu_ld" = yes; then
   12081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   12082 $as_echo_n "checking for GNU ld... " >&6; }
   12083 else
   12084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   12085 $as_echo_n "checking for non-GNU ld... " >&6; }
   12086 fi
   12087 if test "${lt_cv_path_LD+set}" = set; then :
   12088   $as_echo_n "(cached) " >&6
   12089 else
   12090   if test -z "$LD"; then
   12091   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   12092   for ac_dir in $PATH; do
   12093     IFS="$lt_save_ifs"
   12094     test -z "$ac_dir" && ac_dir=.
   12095     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   12096       lt_cv_path_LD="$ac_dir/$ac_prog"
   12097       # Check to see if the program is GNU ld.  I'd rather use --version,
   12098       # but apparently some variants of GNU ld only accept -v.
   12099       # Break only if it was the GNU/non-GNU ld that we prefer.
   12100       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   12101       *GNU* | *'with BFD'*)
   12102 	test "$with_gnu_ld" != no && break
   12103 	;;
   12104       *)
   12105 	test "$with_gnu_ld" != yes && break
   12106 	;;
   12107       esac
   12108     fi
   12109   done
   12110   IFS="$lt_save_ifs"
   12111 else
   12112   lt_cv_path_LD="$LD" # Let the user override the test with a path.
   12113 fi
   12114 fi
   12115 
   12116 LD="$lt_cv_path_LD"
   12117 if test -n "$LD"; then
   12118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   12119 $as_echo "$LD" >&6; }
   12120 else
   12121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12122 $as_echo "no" >&6; }
   12123 fi
   12124 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
   12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   12126 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   12127 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
   12128   $as_echo_n "(cached) " >&6
   12129 else
   12130   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   12131 case `$LD -v 2>&1 </dev/null` in
   12132 *GNU* | *'with BFD'*)
   12133   lt_cv_prog_gnu_ld=yes
   12134   ;;
   12135 *)
   12136   lt_cv_prog_gnu_ld=no
   12137   ;;
   12138 esac
   12139 fi
   12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   12141 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   12142 with_gnu_ld=$lt_cv_prog_gnu_ld
   12143 
   12144 
   12145 
   12146 
   12147 
   12148 
   12149 
   12150 
   12151 
   12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   12153 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   12154 if test "${lt_cv_path_NM+set}" = set; then :
   12155   $as_echo_n "(cached) " >&6
   12156 else
   12157   if test -n "$NM"; then
   12158   # Let the user override the test.
   12159   lt_cv_path_NM="$NM"
   12160 else
   12161   lt_nm_to_check="${ac_tool_prefix}nm"
   12162   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   12163     lt_nm_to_check="$lt_nm_to_check nm"
   12164   fi
   12165   for lt_tmp_nm in $lt_nm_to_check; do
   12166     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   12167     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   12168       IFS="$lt_save_ifs"
   12169       test -z "$ac_dir" && ac_dir=.
   12170       tmp_nm="$ac_dir/$lt_tmp_nm"
   12171       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   12172 	# Check to see if the nm accepts a BSD-compat flag.
   12173 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
   12174 	#   nm: unknown option "B" ignored
   12175 	# Tru64's nm complains that /dev/null is an invalid object file
   12176 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   12177 	*/dev/null* | *'Invalid file or object type'*)
   12178 	  lt_cv_path_NM="$tmp_nm -B"
   12179 	  break
   12180 	  ;;
   12181 	*)
   12182 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   12183 	  */dev/null*)
   12184 	    lt_cv_path_NM="$tmp_nm -p"
   12185 	    break
   12186 	    ;;
   12187 	  *)
   12188 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   12189 	    continue # so that we can try to find one that supports BSD flags
   12190 	    ;;
   12191 	  esac
   12192 	  ;;
   12193 	esac
   12194       fi
   12195     done
   12196     IFS="$lt_save_ifs"
   12197   done
   12198   : ${lt_cv_path_NM=no}
   12199 fi
   12200 fi
   12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   12202 $as_echo "$lt_cv_path_NM" >&6; }
   12203 if test "$lt_cv_path_NM" != "no"; then
   12204   NM="$lt_cv_path_NM"
   12205 else
   12206   # Didn't find any BSD compatible name lister, look for dumpbin.
   12207   if test -n "$DUMPBIN"; then :
   12208     # Let the user override the test.
   12209   else
   12210     if test -n "$ac_tool_prefix"; then
   12211   for ac_prog in dumpbin "link -dump"
   12212   do
   12213     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   12214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12216 $as_echo_n "checking for $ac_word... " >&6; }
   12217 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
   12218   $as_echo_n "(cached) " >&6
   12219 else
   12220   if test -n "$DUMPBIN"; then
   12221   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   12222 else
   12223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12224 for as_dir in $PATH
   12225 do
   12226   IFS=$as_save_IFS
   12227   test -z "$as_dir" && as_dir=.
   12228     for ac_exec_ext in '' $ac_executable_extensions; do
   12229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   12230     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   12231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12232     break 2
   12233   fi
   12234 done
   12235   done
   12236 IFS=$as_save_IFS
   12237 
   12238 fi
   12239 fi
   12240 DUMPBIN=$ac_cv_prog_DUMPBIN
   12241 if test -n "$DUMPBIN"; then
   12242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   12243 $as_echo "$DUMPBIN" >&6; }
   12244 else
   12245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12246 $as_echo "no" >&6; }
   12247 fi
   12248 
   12249 
   12250     test -n "$DUMPBIN" && break
   12251   done
   12252 fi
   12253 if test -z "$DUMPBIN"; then
   12254   ac_ct_DUMPBIN=$DUMPBIN
   12255   for ac_prog in dumpbin "link -dump"
   12256 do
   12257   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12258 set dummy $ac_prog; ac_word=$2
   12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12260 $as_echo_n "checking for $ac_word... " >&6; }
   12261 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
   12262   $as_echo_n "(cached) " >&6
   12263 else
   12264   if test -n "$ac_ct_DUMPBIN"; then
   12265   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   12266 else
   12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12268 for as_dir in $PATH
   12269 do
   12270   IFS=$as_save_IFS
   12271   test -z "$as_dir" && as_dir=.
   12272     for ac_exec_ext in '' $ac_executable_extensions; do
   12273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   12274     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   12275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12276     break 2
   12277   fi
   12278 done
   12279   done
   12280 IFS=$as_save_IFS
   12281 
   12282 fi
   12283 fi
   12284 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   12285 if test -n "$ac_ct_DUMPBIN"; then
   12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   12287 $as_echo "$ac_ct_DUMPBIN" >&6; }
   12288 else
   12289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12290 $as_echo "no" >&6; }
   12291 fi
   12292 
   12293 
   12294   test -n "$ac_ct_DUMPBIN" && break
   12295 done
   12296 
   12297   if test "x$ac_ct_DUMPBIN" = x; then
   12298     DUMPBIN=":"
   12299   else
   12300     case $cross_compiling:$ac_tool_warned in
   12301 yes:)
   12302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12304 ac_tool_warned=yes ;;
   12305 esac
   12306     DUMPBIN=$ac_ct_DUMPBIN
   12307   fi
   12308 fi
   12309 
   12310     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
   12311     *COFF*)
   12312       DUMPBIN="$DUMPBIN -symbols"
   12313       ;;
   12314     *)
   12315       DUMPBIN=:
   12316       ;;
   12317     esac
   12318   fi
   12319 
   12320   if test "$DUMPBIN" != ":"; then
   12321     NM="$DUMPBIN"
   12322   fi
   12323 fi
   12324 test -z "$NM" && NM=nm
   12325 
   12326 
   12327 
   12328 
   12329 
   12330 
   12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   12332 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   12333 if test "${lt_cv_nm_interface+set}" = set; then :
   12334   $as_echo_n "(cached) " >&6
   12335 else
   12336   lt_cv_nm_interface="BSD nm"
   12337   echo "int some_variable = 0;" > conftest.$ac_ext
   12338   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   12339   (eval "$ac_compile" 2>conftest.err)
   12340   cat conftest.err >&5
   12341   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   12342   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   12343   cat conftest.err >&5
   12344   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   12345   cat conftest.out >&5
   12346   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   12347     lt_cv_nm_interface="MS dumpbin"
   12348   fi
   12349   rm -f conftest*
   12350 fi
   12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   12352 $as_echo "$lt_cv_nm_interface" >&6; }
   12353 
   12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   12355 $as_echo_n "checking whether ln -s works... " >&6; }
   12356 LN_S=$as_ln_s
   12357 if test "$LN_S" = "ln -s"; then
   12358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12359 $as_echo "yes" >&6; }
   12360 else
   12361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   12362 $as_echo "no, using $LN_S" >&6; }
   12363 fi
   12364 
   12365 # find the maximum length of command line arguments
   12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   12367 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   12368 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
   12369   $as_echo_n "(cached) " >&6
   12370 else
   12371     i=0
   12372   teststring="ABCD"
   12373 
   12374   case $build_os in
   12375   msdosdjgpp*)
   12376     # On DJGPP, this test can blow up pretty badly due to problems in libc
   12377     # (any single argument exceeding 2000 bytes causes a buffer overrun
   12378     # during glob expansion).  Even if it were fixed, the result of this
   12379     # check would be larger than it should be.
   12380     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   12381     ;;
   12382 
   12383   gnu*)
   12384     # Under GNU Hurd, this test is not required because there is
   12385     # no limit to the length of command line arguments.
   12386     # Libtool will interpret -1 as no limit whatsoever
   12387     lt_cv_sys_max_cmd_len=-1;
   12388     ;;
   12389 
   12390   cygwin* | mingw* | cegcc*)
   12391     # On Win9x/ME, this test blows up -- it succeeds, but takes
   12392     # about 5 minutes as the teststring grows exponentially.
   12393     # Worse, since 9x/ME are not pre-emptively multitasking,
   12394     # you end up with a "frozen" computer, even though with patience
   12395     # the test eventually succeeds (with a max line length of 256k).
   12396     # Instead, let's just punt: use the minimum linelength reported by
   12397     # all of the supported platforms: 8192 (on NT/2K/XP).
   12398     lt_cv_sys_max_cmd_len=8192;
   12399     ;;
   12400 
   12401   mint*)
   12402     # On MiNT this can take a long time and run out of memory.
   12403     lt_cv_sys_max_cmd_len=8192;
   12404     ;;
   12405 
   12406   amigaos*)
   12407     # On AmigaOS with pdksh, this test takes hours, literally.
   12408     # So we just punt and use a minimum line length of 8192.
   12409     lt_cv_sys_max_cmd_len=8192;
   12410     ;;
   12411 
   12412   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
   12413     # This has been around since 386BSD, at least.  Likely further.
   12414     if test -x /sbin/sysctl; then
   12415       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   12416     elif test -x /usr/sbin/sysctl; then
   12417       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   12418     else
   12419       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   12420     fi
   12421     # And add a safety zone
   12422     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   12423     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   12424     ;;
   12425 
   12426   interix*)
   12427     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   12428     lt_cv_sys_max_cmd_len=196608
   12429     ;;
   12430 
   12431   osf*)
   12432     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   12433     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   12434     # nice to cause kernel panics so lets avoid the loop below.
   12435     # First set a reasonable default.
   12436     lt_cv_sys_max_cmd_len=16384
   12437     #
   12438     if test -x /sbin/sysconfig; then
   12439       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   12440         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   12441       esac
   12442     fi
   12443     ;;
   12444   sco3.2v5*)
   12445     lt_cv_sys_max_cmd_len=102400
   12446     ;;
   12447   sysv5* | sco5v6* | sysv4.2uw2*)
   12448     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   12449     if test -n "$kargmax"; then
   12450       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   12451     else
   12452       lt_cv_sys_max_cmd_len=32768
   12453     fi
   12454     ;;
   12455   *)
   12456     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   12457     if test -n "$lt_cv_sys_max_cmd_len"; then
   12458       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   12459       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   12460     else
   12461       # Make teststring a little bigger before we do anything with it.
   12462       # a 1K string should be a reasonable start.
   12463       for i in 1 2 3 4 5 6 7 8 ; do
   12464         teststring=$teststring$teststring
   12465       done
   12466       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   12467       # If test is not a shell built-in, we'll probably end up computing a
   12468       # maximum length that is only half of the actual maximum length, but
   12469       # we can't tell.
   12470       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
   12471 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   12472 	      test $i != 17 # 1/2 MB should be enough
   12473       do
   12474         i=`expr $i + 1`
   12475         teststring=$teststring$teststring
   12476       done
   12477       # Only check the string length outside the loop.
   12478       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   12479       teststring=
   12480       # Add a significant safety factor because C++ compilers can tack on
   12481       # massive amounts of additional arguments before passing them to the
   12482       # linker.  It appears as though 1/2 is a usable value.
   12483       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   12484     fi
   12485     ;;
   12486   esac
   12487 
   12488 fi
   12489 
   12490 if test -n $lt_cv_sys_max_cmd_len ; then
   12491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   12492 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   12493 else
   12494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   12495 $as_echo "none" >&6; }
   12496 fi
   12497 max_cmd_len=$lt_cv_sys_max_cmd_len
   12498 
   12499 
   12500 
   12501 
   12502 
   12503 
   12504 : ${CP="cp -f"}
   12505 : ${MV="mv -f"}
   12506 : ${RM="rm -f"}
   12507 
   12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
   12509 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
   12510 # Try some XSI features
   12511 xsi_shell=no
   12512 ( _lt_dummy="a/b/c"
   12513   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
   12514       = c,a/b,, \
   12515     && eval 'test $(( 1 + 1 )) -eq 2 \
   12516     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
   12517   && xsi_shell=yes
   12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
   12519 $as_echo "$xsi_shell" >&6; }
   12520 
   12521 
   12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
   12523 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
   12524 lt_shell_append=no
   12525 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
   12526     >/dev/null 2>&1 \
   12527   && lt_shell_append=yes
   12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
   12529 $as_echo "$lt_shell_append" >&6; }
   12530 
   12531 
   12532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   12533   lt_unset=unset
   12534 else
   12535   lt_unset=false
   12536 fi
   12537 
   12538 
   12539 
   12540 
   12541 
   12542 # test EBCDIC or ASCII
   12543 case `echo X|tr X '\101'` in
   12544  A) # ASCII based system
   12545     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   12546   lt_SP2NL='tr \040 \012'
   12547   lt_NL2SP='tr \015\012 \040\040'
   12548   ;;
   12549  *) # EBCDIC based system
   12550   lt_SP2NL='tr \100 \n'
   12551   lt_NL2SP='tr \r\n \100\100'
   12552   ;;
   12553 esac
   12554 
   12555 
   12556 
   12557 
   12558 
   12559 
   12560 
   12561 
   12562 
   12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   12564 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   12565 if test "${lt_cv_ld_reload_flag+set}" = set; then :
   12566   $as_echo_n "(cached) " >&6
   12567 else
   12568   lt_cv_ld_reload_flag='-r'
   12569 fi
   12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   12571 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   12572 reload_flag=$lt_cv_ld_reload_flag
   12573 case $reload_flag in
   12574 "" | " "*) ;;
   12575 *) reload_flag=" $reload_flag" ;;
   12576 esac
   12577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   12578 case $host_os in
   12579   darwin*)
   12580     if test "$GCC" = yes; then
   12581       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
   12582     else
   12583       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   12584     fi
   12585     ;;
   12586 esac
   12587 
   12588 
   12589 
   12590 
   12591 
   12592 
   12593 
   12594 
   12595 
   12596 if test -n "$ac_tool_prefix"; then
   12597   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   12598 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12600 $as_echo_n "checking for $ac_word... " >&6; }
   12601 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
   12602   $as_echo_n "(cached) " >&6
   12603 else
   12604   if test -n "$OBJDUMP"; then
   12605   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   12606 else
   12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12608 for as_dir in $PATH
   12609 do
   12610   IFS=$as_save_IFS
   12611   test -z "$as_dir" && as_dir=.
   12612     for ac_exec_ext in '' $ac_executable_extensions; do
   12613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   12614     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   12615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12616     break 2
   12617   fi
   12618 done
   12619   done
   12620 IFS=$as_save_IFS
   12621 
   12622 fi
   12623 fi
   12624 OBJDUMP=$ac_cv_prog_OBJDUMP
   12625 if test -n "$OBJDUMP"; then
   12626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   12627 $as_echo "$OBJDUMP" >&6; }
   12628 else
   12629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12630 $as_echo "no" >&6; }
   12631 fi
   12632 
   12633 
   12634 fi
   12635 if test -z "$ac_cv_prog_OBJDUMP"; then
   12636   ac_ct_OBJDUMP=$OBJDUMP
   12637   # Extract the first word of "objdump", so it can be a program name with args.
   12638 set dummy objdump; ac_word=$2
   12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12640 $as_echo_n "checking for $ac_word... " >&6; }
   12641 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
   12642   $as_echo_n "(cached) " >&6
   12643 else
   12644   if test -n "$ac_ct_OBJDUMP"; then
   12645   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   12646 else
   12647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12648 for as_dir in $PATH
   12649 do
   12650   IFS=$as_save_IFS
   12651   test -z "$as_dir" && as_dir=.
   12652     for ac_exec_ext in '' $ac_executable_extensions; do
   12653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   12654     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   12655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12656     break 2
   12657   fi
   12658 done
   12659   done
   12660 IFS=$as_save_IFS
   12661 
   12662 fi
   12663 fi
   12664 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   12665 if test -n "$ac_ct_OBJDUMP"; then
   12666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   12667 $as_echo "$ac_ct_OBJDUMP" >&6; }
   12668 else
   12669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12670 $as_echo "no" >&6; }
   12671 fi
   12672 
   12673   if test "x$ac_ct_OBJDUMP" = x; then
   12674     OBJDUMP="false"
   12675   else
   12676     case $cross_compiling:$ac_tool_warned in
   12677 yes:)
   12678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12680 ac_tool_warned=yes ;;
   12681 esac
   12682     OBJDUMP=$ac_ct_OBJDUMP
   12683   fi
   12684 else
   12685   OBJDUMP="$ac_cv_prog_OBJDUMP"
   12686 fi
   12687 
   12688 test -z "$OBJDUMP" && OBJDUMP=objdump
   12689 
   12690 
   12691 
   12692 
   12693 
   12694 
   12695 
   12696 
   12697 
   12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   12699 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   12700 if test "${lt_cv_deplibs_check_method+set}" = set; then :
   12701   $as_echo_n "(cached) " >&6
   12702 else
   12703   lt_cv_file_magic_cmd='$MAGIC_CMD'
   12704 lt_cv_file_magic_test_file=
   12705 lt_cv_deplibs_check_method='unknown'
   12706 # Need to set the preceding variable on all platforms that support
   12707 # interlibrary dependencies.
   12708 # 'none' -- dependencies not supported.
   12709 # `unknown' -- same as none, but documents that we really don't know.
   12710 # 'pass_all' -- all dependencies passed with no checks.
   12711 # 'test_compile' -- check by making test program.
   12712 # 'file_magic [[regex]]' -- check by looking for files in library path
   12713 # which responds to the $file_magic_cmd with a given extended regex.
   12714 # If you have `file' or equivalent on your system and you're not sure
   12715 # whether `pass_all' will *always* work, you probably want this one.
   12716 
   12717 case $host_os in
   12718 aix[4-9]*)
   12719   lt_cv_deplibs_check_method=pass_all
   12720   ;;
   12721 
   12722 beos*)
   12723   lt_cv_deplibs_check_method=pass_all
   12724   ;;
   12725 
   12726 bsdi[45]*)
   12727   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   12728   lt_cv_file_magic_cmd='/usr/bin/file -L'
   12729   lt_cv_file_magic_test_file=/shlib/libc.so
   12730   ;;
   12731 
   12732 cygwin*)
   12733   # func_win32_libid is a shell function defined in ltmain.sh
   12734   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   12735   lt_cv_file_magic_cmd='func_win32_libid'
   12736   ;;
   12737 
   12738 mingw* | pw32*)
   12739   # Base MSYS/MinGW do not provide the 'file' command needed by
   12740   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   12741   # unless we find 'file', for example because we are cross-compiling.
   12742   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
   12743   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
   12744     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   12745     lt_cv_file_magic_cmd='func_win32_libid'
   12746   else
   12747     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
   12748     lt_cv_file_magic_cmd='$OBJDUMP -f'
   12749   fi
   12750   ;;
   12751 
   12752 cegcc*)
   12753   # use the weaker test based on 'objdump'. See mingw*.
   12754   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   12755   lt_cv_file_magic_cmd='$OBJDUMP -f'
   12756   ;;
   12757 
   12758 darwin* | rhapsody*)
   12759   lt_cv_deplibs_check_method=pass_all
   12760   ;;
   12761 
   12762 freebsd* | dragonfly*)
   12763   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   12764     case $host_cpu in
   12765     i*86 )
   12766       # Not sure whether the presence of OpenBSD here was a mistake.
   12767       # Let's accept both of them until this is cleared up.
   12768       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   12769       lt_cv_file_magic_cmd=/usr/bin/file
   12770       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   12771       ;;
   12772     esac
   12773   else
   12774     lt_cv_deplibs_check_method=pass_all
   12775   fi
   12776   ;;
   12777 
   12778 gnu*)
   12779   lt_cv_deplibs_check_method=pass_all
   12780   ;;
   12781 
   12782 haiku*)
   12783   lt_cv_deplibs_check_method=pass_all
   12784   ;;
   12785 
   12786 hpux10.20* | hpux11*)
   12787   lt_cv_file_magic_cmd=/usr/bin/file
   12788   case $host_cpu in
   12789   ia64*)
   12790     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   12791     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   12792     ;;
   12793   hppa*64*)
   12794     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
   12795     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   12796     ;;
   12797   *)
   12798     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   12799     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   12800     ;;
   12801   esac
   12802   ;;
   12803 
   12804 interix[3-9]*)
   12805   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   12806   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   12807   ;;
   12808 
   12809 irix5* | irix6* | nonstopux*)
   12810   case $LD in
   12811   *-32|*"-32 ") libmagic=32-bit;;
   12812   *-n32|*"-n32 ") libmagic=N32;;
   12813   *-64|*"-64 ") libmagic=64-bit;;
   12814   *) libmagic=never-match;;
   12815   esac
   12816   lt_cv_deplibs_check_method=pass_all
   12817   ;;
   12818 
   12819 # This must be Linux ELF.
   12820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
   12821   lt_cv_deplibs_check_method=pass_all
   12822   ;;
   12823 
   12824 netbsd*)
   12825   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   12826     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   12827   else
   12828     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   12829   fi
   12830   ;;
   12831 
   12832 newos6*)
   12833   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   12834   lt_cv_file_magic_cmd=/usr/bin/file
   12835   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   12836   ;;
   12837 
   12838 *nto* | *qnx*)
   12839   lt_cv_deplibs_check_method=pass_all
   12840   ;;
   12841 
   12842 openbsd*)
   12843   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   12844     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   12845   else
   12846     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   12847   fi
   12848   ;;
   12849 
   12850 osf3* | osf4* | osf5*)
   12851   lt_cv_deplibs_check_method=pass_all
   12852   ;;
   12853 
   12854 rdos*)
   12855   lt_cv_deplibs_check_method=pass_all
   12856   ;;
   12857 
   12858 solaris*)
   12859   lt_cv_deplibs_check_method=pass_all
   12860   ;;
   12861 
   12862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   12863   lt_cv_deplibs_check_method=pass_all
   12864   ;;
   12865 
   12866 sysv4 | sysv4.3*)
   12867   case $host_vendor in
   12868   motorola)
   12869     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
   12870     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   12871     ;;
   12872   ncr)
   12873     lt_cv_deplibs_check_method=pass_all
   12874     ;;
   12875   sequent)
   12876     lt_cv_file_magic_cmd='/bin/file'
   12877     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   12878     ;;
   12879   sni)
   12880     lt_cv_file_magic_cmd='/bin/file'
   12881     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   12882     lt_cv_file_magic_test_file=/lib/libc.so
   12883     ;;
   12884   siemens)
   12885     lt_cv_deplibs_check_method=pass_all
   12886     ;;
   12887   pc)
   12888     lt_cv_deplibs_check_method=pass_all
   12889     ;;
   12890   esac
   12891   ;;
   12892 
   12893 tpf*)
   12894   lt_cv_deplibs_check_method=pass_all
   12895   ;;
   12896 esac
   12897 
   12898 fi
   12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   12900 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   12901 file_magic_cmd=$lt_cv_file_magic_cmd
   12902 deplibs_check_method=$lt_cv_deplibs_check_method
   12903 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   12904 
   12905 
   12906 
   12907 
   12908 
   12909 
   12910 
   12911 
   12912 
   12913 
   12914 
   12915 
   12916 if test -n "$ac_tool_prefix"; then
   12917   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   12918 set dummy ${ac_tool_prefix}ar; ac_word=$2
   12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12920 $as_echo_n "checking for $ac_word... " >&6; }
   12921 if test "${ac_cv_prog_AR+set}" = set; then :
   12922   $as_echo_n "(cached) " >&6
   12923 else
   12924   if test -n "$AR"; then
   12925   ac_cv_prog_AR="$AR" # Let the user override the test.
   12926 else
   12927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12928 for as_dir in $PATH
   12929 do
   12930   IFS=$as_save_IFS
   12931   test -z "$as_dir" && as_dir=.
   12932     for ac_exec_ext in '' $ac_executable_extensions; do
   12933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   12934     ac_cv_prog_AR="${ac_tool_prefix}ar"
   12935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12936     break 2
   12937   fi
   12938 done
   12939   done
   12940 IFS=$as_save_IFS
   12941 
   12942 fi
   12943 fi
   12944 AR=$ac_cv_prog_AR
   12945 if test -n "$AR"; then
   12946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12947 $as_echo "$AR" >&6; }
   12948 else
   12949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12950 $as_echo "no" >&6; }
   12951 fi
   12952 
   12953 
   12954 fi
   12955 if test -z "$ac_cv_prog_AR"; then
   12956   ac_ct_AR=$AR
   12957   # Extract the first word of "ar", so it can be a program name with args.
   12958 set dummy ar; ac_word=$2
   12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12960 $as_echo_n "checking for $ac_word... " >&6; }
   12961 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
   12962   $as_echo_n "(cached) " >&6
   12963 else
   12964   if test -n "$ac_ct_AR"; then
   12965   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   12966 else
   12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12968 for as_dir in $PATH
   12969 do
   12970   IFS=$as_save_IFS
   12971   test -z "$as_dir" && as_dir=.
   12972     for ac_exec_ext in '' $ac_executable_extensions; do
   12973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   12974     ac_cv_prog_ac_ct_AR="ar"
   12975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12976     break 2
   12977   fi
   12978 done
   12979   done
   12980 IFS=$as_save_IFS
   12981 
   12982 fi
   12983 fi
   12984 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   12985 if test -n "$ac_ct_AR"; then
   12986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   12987 $as_echo "$ac_ct_AR" >&6; }
   12988 else
   12989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12990 $as_echo "no" >&6; }
   12991 fi
   12992 
   12993   if test "x$ac_ct_AR" = x; then
   12994     AR="false"
   12995   else
   12996     case $cross_compiling:$ac_tool_warned in
   12997 yes:)
   12998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13000 ac_tool_warned=yes ;;
   13001 esac
   13002     AR=$ac_ct_AR
   13003   fi
   13004 else
   13005   AR="$ac_cv_prog_AR"
   13006 fi
   13007 
   13008 test -z "$AR" && AR=ar
   13009 test -z "$AR_FLAGS" && AR_FLAGS=cru
   13010 
   13011 
   13012 
   13013 
   13014 
   13015 
   13016 
   13017 
   13018 
   13019 
   13020 
   13021 if test -n "$ac_tool_prefix"; then
   13022   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   13023 set dummy ${ac_tool_prefix}strip; ac_word=$2
   13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13025 $as_echo_n "checking for $ac_word... " >&6; }
   13026 if test "${ac_cv_prog_STRIP+set}" = set; then :
   13027   $as_echo_n "(cached) " >&6
   13028 else
   13029   if test -n "$STRIP"; then
   13030   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   13031 else
   13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13033 for as_dir in $PATH
   13034 do
   13035   IFS=$as_save_IFS
   13036   test -z "$as_dir" && as_dir=.
   13037     for ac_exec_ext in '' $ac_executable_extensions; do
   13038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   13039     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   13040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13041     break 2
   13042   fi
   13043 done
   13044   done
   13045 IFS=$as_save_IFS
   13046 
   13047 fi
   13048 fi
   13049 STRIP=$ac_cv_prog_STRIP
   13050 if test -n "$STRIP"; then
   13051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   13052 $as_echo "$STRIP" >&6; }
   13053 else
   13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13055 $as_echo "no" >&6; }
   13056 fi
   13057 
   13058 
   13059 fi
   13060 if test -z "$ac_cv_prog_STRIP"; then
   13061   ac_ct_STRIP=$STRIP
   13062   # Extract the first word of "strip", so it can be a program name with args.
   13063 set dummy strip; ac_word=$2
   13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13065 $as_echo_n "checking for $ac_word... " >&6; }
   13066 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
   13067   $as_echo_n "(cached) " >&6
   13068 else
   13069   if test -n "$ac_ct_STRIP"; then
   13070   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   13071 else
   13072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13073 for as_dir in $PATH
   13074 do
   13075   IFS=$as_save_IFS
   13076   test -z "$as_dir" && as_dir=.
   13077     for ac_exec_ext in '' $ac_executable_extensions; do
   13078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   13079     ac_cv_prog_ac_ct_STRIP="strip"
   13080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13081     break 2
   13082   fi
   13083 done
   13084   done
   13085 IFS=$as_save_IFS
   13086 
   13087 fi
   13088 fi
   13089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   13090 if test -n "$ac_ct_STRIP"; then
   13091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   13092 $as_echo "$ac_ct_STRIP" >&6; }
   13093 else
   13094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13095 $as_echo "no" >&6; }
   13096 fi
   13097 
   13098   if test "x$ac_ct_STRIP" = x; then
   13099     STRIP=":"
   13100   else
   13101     case $cross_compiling:$ac_tool_warned in
   13102 yes:)
   13103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   13104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13105 ac_tool_warned=yes ;;
   13106 esac
   13107     STRIP=$ac_ct_STRIP
   13108   fi
   13109 else
   13110   STRIP="$ac_cv_prog_STRIP"
   13111 fi
   13112 
   13113 test -z "$STRIP" && STRIP=:
   13114 
   13115 
   13116 
   13117 
   13118 
   13119 
   13120 if test -n "$ac_tool_prefix"; then
   13121   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   13122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13124 $as_echo_n "checking for $ac_word... " >&6; }
   13125 if test "${ac_cv_prog_RANLIB+set}" = set; then :
   13126   $as_echo_n "(cached) " >&6
   13127 else
   13128   if test -n "$RANLIB"; then
   13129   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   13130 else
   13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13132 for as_dir in $PATH
   13133 do
   13134   IFS=$as_save_IFS
   13135   test -z "$as_dir" && as_dir=.
   13136     for ac_exec_ext in '' $ac_executable_extensions; do
   13137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   13138     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   13139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13140     break 2
   13141   fi
   13142 done
   13143   done
   13144 IFS=$as_save_IFS
   13145 
   13146 fi
   13147 fi
   13148 RANLIB=$ac_cv_prog_RANLIB
   13149 if test -n "$RANLIB"; then
   13150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   13151 $as_echo "$RANLIB" >&6; }
   13152 else
   13153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13154 $as_echo "no" >&6; }
   13155 fi
   13156 
   13157 
   13158 fi
   13159 if test -z "$ac_cv_prog_RANLIB"; then
   13160   ac_ct_RANLIB=$RANLIB
   13161   # Extract the first word of "ranlib", so it can be a program name with args.
   13162 set dummy ranlib; ac_word=$2
   13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13164 $as_echo_n "checking for $ac_word... " >&6; }
   13165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
   13166   $as_echo_n "(cached) " >&6
   13167 else
   13168   if test -n "$ac_ct_RANLIB"; then
   13169   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   13170 else
   13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13172 for as_dir in $PATH
   13173 do
   13174   IFS=$as_save_IFS
   13175   test -z "$as_dir" && as_dir=.
   13176     for ac_exec_ext in '' $ac_executable_extensions; do
   13177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   13178     ac_cv_prog_ac_ct_RANLIB="ranlib"
   13179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13180     break 2
   13181   fi
   13182 done
   13183   done
   13184 IFS=$as_save_IFS
   13185 
   13186 fi
   13187 fi
   13188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   13189 if test -n "$ac_ct_RANLIB"; then
   13190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   13191 $as_echo "$ac_ct_RANLIB" >&6; }
   13192 else
   13193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13194 $as_echo "no" >&6; }
   13195 fi
   13196 
   13197   if test "x$ac_ct_RANLIB" = x; then
   13198     RANLIB=":"
   13199   else
   13200     case $cross_compiling:$ac_tool_warned in
   13201 yes:)
   13202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   13203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13204 ac_tool_warned=yes ;;
   13205 esac
   13206     RANLIB=$ac_ct_RANLIB
   13207   fi
   13208 else
   13209   RANLIB="$ac_cv_prog_RANLIB"
   13210 fi
   13211 
   13212 test -z "$RANLIB" && RANLIB=:
   13213 
   13214 
   13215 
   13216 
   13217 
   13218 
   13219 # Determine commands to create old-style static archives.
   13220 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   13221 old_postinstall_cmds='chmod 644 $oldlib'
   13222 old_postuninstall_cmds=
   13223 
   13224 if test -n "$RANLIB"; then
   13225   case $host_os in
   13226   openbsd*)
   13227     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
   13228     ;;
   13229   *)
   13230     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
   13231     ;;
   13232   esac
   13233   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   13234 fi
   13235 
   13236 case $host_os in
   13237   darwin*)
   13238     lock_old_archive_extraction=yes ;;
   13239   *)
   13240     lock_old_archive_extraction=no ;;
   13241 esac
   13242 
   13243 
   13244 
   13245 
   13246 
   13247 
   13248 
   13249 
   13250 
   13251 
   13252 
   13253 
   13254 
   13255 
   13256 
   13257 
   13258 
   13259 
   13260 
   13261 
   13262 
   13263 
   13264 
   13265 
   13266 
   13267 
   13268 
   13269 
   13270 
   13271 
   13272 
   13273 
   13274 
   13275 
   13276 
   13277 
   13278 
   13279 
   13280 
   13281 # If no C compiler was specified, use CC.
   13282 LTCC=${LTCC-"$CC"}
   13283 
   13284 # If no C compiler flags were specified, use CFLAGS.
   13285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   13286 
   13287 # Allow CC to be a program name with arguments.
   13288 compiler=$CC
   13289 
   13290 
   13291 # Check for command to grab the raw symbol name followed by C symbol from nm.
   13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   13293 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   13294 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
   13295   $as_echo_n "(cached) " >&6
   13296 else
   13297 
   13298 # These are sane defaults that work on at least a few old systems.
   13299 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   13300 
   13301 # Character class describing NM global symbol codes.
   13302 symcode='[BCDEGRST]'
   13303 
   13304 # Regexp to match symbols that can be accessed directly from C.
   13305 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   13306 
   13307 # Define system-specific variables.
   13308 case $host_os in
   13309 aix*)
   13310   symcode='[BCDT]'
   13311   ;;
   13312 cygwin* | mingw* | pw32* | cegcc*)
   13313   symcode='[ABCDGISTW]'
   13314   ;;
   13315 hpux*)
   13316   if test "$host_cpu" = ia64; then
   13317     symcode='[ABCDEGRST]'
   13318   fi
   13319   ;;
   13320 irix* | nonstopux*)
   13321   symcode='[BCDEGRST]'
   13322   ;;
   13323 osf*)
   13324   symcode='[BCDEGQRST]'
   13325   ;;
   13326 solaris*)
   13327   symcode='[BDRT]'
   13328   ;;
   13329 sco3.2v5*)
   13330   symcode='[DT]'
   13331   ;;
   13332 sysv4.2uw2*)
   13333   symcode='[DT]'
   13334   ;;
   13335 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   13336   symcode='[ABDT]'
   13337   ;;
   13338 sysv4)
   13339   symcode='[DFNSTU]'
   13340   ;;
   13341 esac
   13342 
   13343 # If we're using GNU nm, then use its standard symbol codes.
   13344 case `$NM -V 2>&1` in
   13345 *GNU* | *'with BFD'*)
   13346   symcode='[ABCDGIRSTW]' ;;
   13347 esac
   13348 
   13349 # Transform an extracted symbol line into a proper C declaration.
   13350 # Some systems (esp. on ia64) link data and code symbols differently,
   13351 # so use this general approach.
   13352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   13353 
   13354 # Transform an extracted symbol line into symbol name and symbol address
   13355 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
   13356 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
   13357 
   13358 # Handle CRLF in mingw tool chain
   13359 opt_cr=
   13360 case $build_os in
   13361 mingw*)
   13362   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   13363   ;;
   13364 esac
   13365 
   13366 # Try without a prefix underscore, then with it.
   13367 for ac_symprfx in "" "_"; do
   13368 
   13369   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   13370   symxfrm="\\1 $ac_symprfx\\2 \\2"
   13371 
   13372   # Write the raw and C identifiers.
   13373   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   13374     # Fake it for dumpbin and say T for any non-static function
   13375     # and D for any global variable.
   13376     # Also find C++ and __fastcall symbols from MSVC++,
   13377     # which start with @ or ?.
   13378     lt_cv_sys_global_symbol_pipe="$AWK '"\
   13379 "     {last_section=section; section=\$ 3};"\
   13380 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   13381 "     \$ 0!~/External *\|/{next};"\
   13382 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   13383 "     {if(hide[section]) next};"\
   13384 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
   13385 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
   13386 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
   13387 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
   13388 "     ' prfx=^$ac_symprfx"
   13389   else
   13390     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   13391   fi
   13392 
   13393   # Check to see that the pipe works correctly.
   13394   pipe_works=no
   13395 
   13396   rm -f conftest*
   13397   cat > conftest.$ac_ext <<_LT_EOF
   13398 #ifdef __cplusplus
   13399 extern "C" {
   13400 #endif
   13401 char nm_test_var;
   13402 void nm_test_func(void);
   13403 void nm_test_func(void){}
   13404 #ifdef __cplusplus
   13405 }
   13406 #endif
   13407 int main(){nm_test_var='a';nm_test_func();return(0);}
   13408 _LT_EOF
   13409 
   13410   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   13411   (eval $ac_compile) 2>&5
   13412   ac_status=$?
   13413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13414   test $ac_status = 0; }; then
   13415     # Now try to grab the symbols.
   13416     nlist=conftest.nm
   13417     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   13418   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   13419   ac_status=$?
   13420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13421   test $ac_status = 0; } && test -s "$nlist"; then
   13422       # Try sorting and uniquifying the output.
   13423       if sort "$nlist" | uniq > "$nlist"T; then
   13424 	mv -f "$nlist"T "$nlist"
   13425       else
   13426 	rm -f "$nlist"T
   13427       fi
   13428 
   13429       # Make sure that we snagged all the symbols we need.
   13430       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   13431 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   13432 	  cat <<_LT_EOF > conftest.$ac_ext
   13433 #ifdef __cplusplus
   13434 extern "C" {
   13435 #endif
   13436 
   13437 _LT_EOF
   13438 	  # Now generate the symbol file.
   13439 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   13440 
   13441 	  cat <<_LT_EOF >> conftest.$ac_ext
   13442 
   13443 /* The mapping between symbol names and symbols.  */
   13444 const struct {
   13445   const char *name;
   13446   void       *address;
   13447 }
   13448 lt__PROGRAM__LTX_preloaded_symbols[] =
   13449 {
   13450   { "@PROGRAM@", (void *) 0 },
   13451 _LT_EOF
   13452 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   13453 	  cat <<\_LT_EOF >> conftest.$ac_ext
   13454   {0, (void *) 0}
   13455 };
   13456 
   13457 /* This works around a problem in FreeBSD linker */
   13458 #ifdef FREEBSD_WORKAROUND
   13459 static const void *lt_preloaded_setup() {
   13460   return lt__PROGRAM__LTX_preloaded_symbols;
   13461 }
   13462 #endif
   13463 
   13464 #ifdef __cplusplus
   13465 }
   13466 #endif
   13467 _LT_EOF
   13468 	  # Now try linking the two files.
   13469 	  mv conftest.$ac_objext conftstm.$ac_objext
   13470 	  lt_save_LIBS="$LIBS"
   13471 	  lt_save_CFLAGS="$CFLAGS"
   13472 	  LIBS="conftstm.$ac_objext"
   13473 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   13474 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   13475   (eval $ac_link) 2>&5
   13476   ac_status=$?
   13477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13478   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
   13479 	    pipe_works=yes
   13480 	  fi
   13481 	  LIBS="$lt_save_LIBS"
   13482 	  CFLAGS="$lt_save_CFLAGS"
   13483 	else
   13484 	  echo "cannot find nm_test_func in $nlist" >&5
   13485 	fi
   13486       else
   13487 	echo "cannot find nm_test_var in $nlist" >&5
   13488       fi
   13489     else
   13490       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   13491     fi
   13492   else
   13493     echo "$progname: failed program was:" >&5
   13494     cat conftest.$ac_ext >&5
   13495   fi
   13496   rm -rf conftest* conftst*
   13497 
   13498   # Do not use the global_symbol_pipe unless it works.
   13499   if test "$pipe_works" = yes; then
   13500     break
   13501   else
   13502     lt_cv_sys_global_symbol_pipe=
   13503   fi
   13504 done
   13505 
   13506 fi
   13507 
   13508 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   13509   lt_cv_sys_global_symbol_to_cdecl=
   13510 fi
   13511 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   13512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   13513 $as_echo "failed" >&6; }
   13514 else
   13515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   13516 $as_echo "ok" >&6; }
   13517 fi
   13518 
   13519 
   13520 
   13521 
   13522 
   13523 
   13524 
   13525 
   13526 
   13527 
   13528 
   13529 
   13530 
   13531 
   13532 
   13533 
   13534 
   13535 
   13536 
   13537 
   13538 
   13539 
   13540 # Check whether --enable-libtool-lock was given.
   13541 if test "${enable_libtool_lock+set}" = set; then :
   13542   enableval=$enable_libtool_lock;
   13543 fi
   13544 
   13545 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   13546 
   13547 # Some flags need to be propagated to the compiler or linker for good
   13548 # libtool support.
   13549 case $host in
   13550 ia64-*-hpux*)
   13551   # Find out which ABI we are using.
   13552   echo 'int i;' > conftest.$ac_ext
   13553   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   13554   (eval $ac_compile) 2>&5
   13555   ac_status=$?
   13556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13557   test $ac_status = 0; }; then
   13558     case `/usr/bin/file conftest.$ac_objext` in
   13559       *ELF-32*)
   13560 	HPUX_IA64_MODE="32"
   13561 	;;
   13562       *ELF-64*)
   13563 	HPUX_IA64_MODE="64"
   13564 	;;
   13565     esac
   13566   fi
   13567   rm -rf conftest*
   13568   ;;
   13569 *-*-irix6*)
   13570   # Find out which ABI we are using.
   13571   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   13572   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   13573   (eval $ac_compile) 2>&5
   13574   ac_status=$?
   13575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13576   test $ac_status = 0; }; then
   13577     if test "$lt_cv_prog_gnu_ld" = yes; then
   13578       case `/usr/bin/file conftest.$ac_objext` in
   13579 	*32-bit*)
   13580 	  LD="${LD-ld} -melf32bsmip"
   13581 	  ;;
   13582 	*N32*)
   13583 	  LD="${LD-ld} -melf32bmipn32"
   13584 	  ;;
   13585 	*64-bit*)
   13586 	  LD="${LD-ld} -melf64bmip"
   13587 	;;
   13588       esac
   13589     else
   13590       case `/usr/bin/file conftest.$ac_objext` in
   13591 	*32-bit*)
   13592 	  LD="${LD-ld} -32"
   13593 	  ;;
   13594 	*N32*)
   13595 	  LD="${LD-ld} -n32"
   13596 	  ;;
   13597 	*64-bit*)
   13598 	  LD="${LD-ld} -64"
   13599 	  ;;
   13600       esac
   13601     fi
   13602   fi
   13603   rm -rf conftest*
   13604   ;;
   13605 
   13606 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   13607 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   13608   # Find out which ABI we are using.
   13609   echo 'int i;' > conftest.$ac_ext
   13610   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   13611   (eval $ac_compile) 2>&5
   13612   ac_status=$?
   13613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13614   test $ac_status = 0; }; then
   13615     case `/usr/bin/file conftest.o` in
   13616       *32-bit*)
   13617 	case $host in
   13618 	  x86_64-*kfreebsd*-gnu)
   13619 	    LD="${LD-ld} -m elf_i386_fbsd"
   13620 	    ;;
   13621 	  x86_64-*linux*)
   13622 	    case `/usr/bin/file conftest.o` in
   13623 	      *x86-64*)
   13624 		LD="${LD-ld} -m elf32_x86_64"
   13625 		;;
   13626 	      *)
   13627 		LD="${LD-ld} -m elf_i386"
   13628 		;;
   13629 	    esac
   13630 	    ;;
   13631 	  powerpc64le-*linux*)
   13632 	    LD="${LD-ld} -m elf32lppclinux"
   13633 	    ;;
   13634 	  powerpc64-*linux*)
   13635 	    LD="${LD-ld} -m elf32ppclinux"
   13636 	    ;;
   13637 	  s390x-*linux*)
   13638 	    LD="${LD-ld} -m elf_s390"
   13639 	    ;;
   13640 	  sparc64-*linux*)
   13641 	    LD="${LD-ld} -m elf32_sparc"
   13642 	    ;;
   13643 	esac
   13644 	;;
   13645       *64-bit*)
   13646 	case $host in
   13647 	  x86_64-*kfreebsd*-gnu)
   13648 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   13649 	    ;;
   13650 	  x86_64-*linux*)
   13651 	    LD="${LD-ld} -m elf_x86_64"
   13652 	    ;;
   13653 	  powerpcle-*linux*)
   13654 	    LD="${LD-ld} -m elf64lppc"
   13655 	    ;;
   13656 	  powerpc-*linux*)
   13657 	    LD="${LD-ld} -m elf64ppc"
   13658 	    ;;
   13659 	  s390*-*linux*|s390*-*tpf*)
   13660 	    LD="${LD-ld} -m elf64_s390"
   13661 	    ;;
   13662 	  sparc*-*linux*)
   13663 	    LD="${LD-ld} -m elf64_sparc"
   13664 	    ;;
   13665 	esac
   13666 	;;
   13667     esac
   13668   fi
   13669   rm -rf conftest*
   13670   ;;
   13671 
   13672 *-*-sco3.2v5*)
   13673   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   13674   SAVE_CFLAGS="$CFLAGS"
   13675   CFLAGS="$CFLAGS -belf"
   13676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   13677 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   13678 if test "${lt_cv_cc_needs_belf+set}" = set; then :
   13679   $as_echo_n "(cached) " >&6
   13680 else
   13681   ac_ext=c
   13682 ac_cpp='$CPP $CPPFLAGS'
   13683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13686 
   13687      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13688 /* end confdefs.h.  */
   13689 
   13690 int
   13691 main ()
   13692 {
   13693 
   13694   ;
   13695   return 0;
   13696 }
   13697 _ACEOF
   13698 if ac_fn_c_try_link "$LINENO"; then :
   13699   lt_cv_cc_needs_belf=yes
   13700 else
   13701   lt_cv_cc_needs_belf=no
   13702 fi
   13703 rm -f core conftest.err conftest.$ac_objext \
   13704     conftest$ac_exeext conftest.$ac_ext
   13705      ac_ext=c
   13706 ac_cpp='$CPP $CPPFLAGS'
   13707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13710 
   13711 fi
   13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   13713 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   13714   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
   13715     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   13716     CFLAGS="$SAVE_CFLAGS"
   13717   fi
   13718   ;;
   13719 sparc*-*solaris*)
   13720   # Find out which ABI we are using.
   13721   echo 'int i;' > conftest.$ac_ext
   13722   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   13723   (eval $ac_compile) 2>&5
   13724   ac_status=$?
   13725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13726   test $ac_status = 0; }; then
   13727     case `/usr/bin/file conftest.o` in
   13728     *64-bit*)
   13729       case $lt_cv_prog_gnu_ld in
   13730       yes*) LD="${LD-ld} -m elf64_sparc" ;;
   13731       *)
   13732 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   13733 	  LD="${LD-ld} -64"
   13734 	fi
   13735 	;;
   13736       esac
   13737       ;;
   13738     esac
   13739   fi
   13740   rm -rf conftest*
   13741   ;;
   13742 esac
   13743 
   13744 need_locks="$enable_libtool_lock"
   13745 
   13746 
   13747   case $host_os in
   13748     rhapsody* | darwin*)
   13749     if test -n "$ac_tool_prefix"; then
   13750   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   13751 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13753 $as_echo_n "checking for $ac_word... " >&6; }
   13754 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
   13755   $as_echo_n "(cached) " >&6
   13756 else
   13757   if test -n "$DSYMUTIL"; then
   13758   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   13759 else
   13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13761 for as_dir in $PATH
   13762 do
   13763   IFS=$as_save_IFS
   13764   test -z "$as_dir" && as_dir=.
   13765     for ac_exec_ext in '' $ac_executable_extensions; do
   13766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   13767     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   13768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13769     break 2
   13770   fi
   13771 done
   13772   done
   13773 IFS=$as_save_IFS
   13774 
   13775 fi
   13776 fi
   13777 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   13778 if test -n "$DSYMUTIL"; then
   13779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   13780 $as_echo "$DSYMUTIL" >&6; }
   13781 else
   13782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13783 $as_echo "no" >&6; }
   13784 fi
   13785 
   13786 
   13787 fi
   13788 if test -z "$ac_cv_prog_DSYMUTIL"; then
   13789   ac_ct_DSYMUTIL=$DSYMUTIL
   13790   # Extract the first word of "dsymutil", so it can be a program name with args.
   13791 set dummy dsymutil; ac_word=$2
   13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13793 $as_echo_n "checking for $ac_word... " >&6; }
   13794 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
   13795   $as_echo_n "(cached) " >&6
   13796 else
   13797   if test -n "$ac_ct_DSYMUTIL"; then
   13798   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   13799 else
   13800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13801 for as_dir in $PATH
   13802 do
   13803   IFS=$as_save_IFS
   13804   test -z "$as_dir" && as_dir=.
   13805     for ac_exec_ext in '' $ac_executable_extensions; do
   13806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   13807     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   13808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13809     break 2
   13810   fi
   13811 done
   13812   done
   13813 IFS=$as_save_IFS
   13814 
   13815 fi
   13816 fi
   13817 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   13818 if test -n "$ac_ct_DSYMUTIL"; then
   13819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   13820 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   13821 else
   13822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13823 $as_echo "no" >&6; }
   13824 fi
   13825 
   13826   if test "x$ac_ct_DSYMUTIL" = x; then
   13827     DSYMUTIL=":"
   13828   else
   13829     case $cross_compiling:$ac_tool_warned in
   13830 yes:)
   13831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   13832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13833 ac_tool_warned=yes ;;
   13834 esac
   13835     DSYMUTIL=$ac_ct_DSYMUTIL
   13836   fi
   13837 else
   13838   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   13839 fi
   13840 
   13841     if test -n "$ac_tool_prefix"; then
   13842   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   13843 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13845 $as_echo_n "checking for $ac_word... " >&6; }
   13846 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
   13847   $as_echo_n "(cached) " >&6
   13848 else
   13849   if test -n "$NMEDIT"; then
   13850   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   13851 else
   13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13853 for as_dir in $PATH
   13854 do
   13855   IFS=$as_save_IFS
   13856   test -z "$as_dir" && as_dir=.
   13857     for ac_exec_ext in '' $ac_executable_extensions; do
   13858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   13859     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   13860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13861     break 2
   13862   fi
   13863 done
   13864   done
   13865 IFS=$as_save_IFS
   13866 
   13867 fi
   13868 fi
   13869 NMEDIT=$ac_cv_prog_NMEDIT
   13870 if test -n "$NMEDIT"; then
   13871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   13872 $as_echo "$NMEDIT" >&6; }
   13873 else
   13874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13875 $as_echo "no" >&6; }
   13876 fi
   13877 
   13878 
   13879 fi
   13880 if test -z "$ac_cv_prog_NMEDIT"; then
   13881   ac_ct_NMEDIT=$NMEDIT
   13882   # Extract the first word of "nmedit", so it can be a program name with args.
   13883 set dummy nmedit; ac_word=$2
   13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13885 $as_echo_n "checking for $ac_word... " >&6; }
   13886 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
   13887   $as_echo_n "(cached) " >&6
   13888 else
   13889   if test -n "$ac_ct_NMEDIT"; then
   13890   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   13891 else
   13892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13893 for as_dir in $PATH
   13894 do
   13895   IFS=$as_save_IFS
   13896   test -z "$as_dir" && as_dir=.
   13897     for ac_exec_ext in '' $ac_executable_extensions; do
   13898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   13899     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   13900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13901     break 2
   13902   fi
   13903 done
   13904   done
   13905 IFS=$as_save_IFS
   13906 
   13907 fi
   13908 fi
   13909 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   13910 if test -n "$ac_ct_NMEDIT"; then
   13911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   13912 $as_echo "$ac_ct_NMEDIT" >&6; }
   13913 else
   13914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13915 $as_echo "no" >&6; }
   13916 fi
   13917 
   13918   if test "x$ac_ct_NMEDIT" = x; then
   13919     NMEDIT=":"
   13920   else
   13921     case $cross_compiling:$ac_tool_warned in
   13922 yes:)
   13923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   13924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13925 ac_tool_warned=yes ;;
   13926 esac
   13927     NMEDIT=$ac_ct_NMEDIT
   13928   fi
   13929 else
   13930   NMEDIT="$ac_cv_prog_NMEDIT"
   13931 fi
   13932 
   13933     if test -n "$ac_tool_prefix"; then
   13934   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   13935 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13937 $as_echo_n "checking for $ac_word... " >&6; }
   13938 if test "${ac_cv_prog_LIPO+set}" = set; then :
   13939   $as_echo_n "(cached) " >&6
   13940 else
   13941   if test -n "$LIPO"; then
   13942   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   13943 else
   13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13945 for as_dir in $PATH
   13946 do
   13947   IFS=$as_save_IFS
   13948   test -z "$as_dir" && as_dir=.
   13949     for ac_exec_ext in '' $ac_executable_extensions; do
   13950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   13951     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   13952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13953     break 2
   13954   fi
   13955 done
   13956   done
   13957 IFS=$as_save_IFS
   13958 
   13959 fi
   13960 fi
   13961 LIPO=$ac_cv_prog_LIPO
   13962 if test -n "$LIPO"; then
   13963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   13964 $as_echo "$LIPO" >&6; }
   13965 else
   13966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13967 $as_echo "no" >&6; }
   13968 fi
   13969 
   13970 
   13971 fi
   13972 if test -z "$ac_cv_prog_LIPO"; then
   13973   ac_ct_LIPO=$LIPO
   13974   # Extract the first word of "lipo", so it can be a program name with args.
   13975 set dummy lipo; ac_word=$2
   13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13977 $as_echo_n "checking for $ac_word... " >&6; }
   13978 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
   13979   $as_echo_n "(cached) " >&6
   13980 else
   13981   if test -n "$ac_ct_LIPO"; then
   13982   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   13983 else
   13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13985 for as_dir in $PATH
   13986 do
   13987   IFS=$as_save_IFS
   13988   test -z "$as_dir" && as_dir=.
   13989     for ac_exec_ext in '' $ac_executable_extensions; do
   13990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   13991     ac_cv_prog_ac_ct_LIPO="lipo"
   13992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13993     break 2
   13994   fi
   13995 done
   13996   done
   13997 IFS=$as_save_IFS
   13998 
   13999 fi
   14000 fi
   14001 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   14002 if test -n "$ac_ct_LIPO"; then
   14003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   14004 $as_echo "$ac_ct_LIPO" >&6; }
   14005 else
   14006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14007 $as_echo "no" >&6; }
   14008 fi
   14009 
   14010   if test "x$ac_ct_LIPO" = x; then
   14011     LIPO=":"
   14012   else
   14013     case $cross_compiling:$ac_tool_warned in
   14014 yes:)
   14015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14017 ac_tool_warned=yes ;;
   14018 esac
   14019     LIPO=$ac_ct_LIPO
   14020   fi
   14021 else
   14022   LIPO="$ac_cv_prog_LIPO"
   14023 fi
   14024 
   14025     if test -n "$ac_tool_prefix"; then
   14026   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   14027 set dummy ${ac_tool_prefix}otool; ac_word=$2
   14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14029 $as_echo_n "checking for $ac_word... " >&6; }
   14030 if test "${ac_cv_prog_OTOOL+set}" = set; then :
   14031   $as_echo_n "(cached) " >&6
   14032 else
   14033   if test -n "$OTOOL"; then
   14034   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   14035 else
   14036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14037 for as_dir in $PATH
   14038 do
   14039   IFS=$as_save_IFS
   14040   test -z "$as_dir" && as_dir=.
   14041     for ac_exec_ext in '' $ac_executable_extensions; do
   14042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   14043     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   14044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14045     break 2
   14046   fi
   14047 done
   14048   done
   14049 IFS=$as_save_IFS
   14050 
   14051 fi
   14052 fi
   14053 OTOOL=$ac_cv_prog_OTOOL
   14054 if test -n "$OTOOL"; then
   14055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   14056 $as_echo "$OTOOL" >&6; }
   14057 else
   14058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14059 $as_echo "no" >&6; }
   14060 fi
   14061 
   14062 
   14063 fi
   14064 if test -z "$ac_cv_prog_OTOOL"; then
   14065   ac_ct_OTOOL=$OTOOL
   14066   # Extract the first word of "otool", so it can be a program name with args.
   14067 set dummy otool; ac_word=$2
   14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14069 $as_echo_n "checking for $ac_word... " >&6; }
   14070 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
   14071   $as_echo_n "(cached) " >&6
   14072 else
   14073   if test -n "$ac_ct_OTOOL"; then
   14074   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   14075 else
   14076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14077 for as_dir in $PATH
   14078 do
   14079   IFS=$as_save_IFS
   14080   test -z "$as_dir" && as_dir=.
   14081     for ac_exec_ext in '' $ac_executable_extensions; do
   14082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   14083     ac_cv_prog_ac_ct_OTOOL="otool"
   14084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14085     break 2
   14086   fi
   14087 done
   14088   done
   14089 IFS=$as_save_IFS
   14090 
   14091 fi
   14092 fi
   14093 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   14094 if test -n "$ac_ct_OTOOL"; then
   14095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   14096 $as_echo "$ac_ct_OTOOL" >&6; }
   14097 else
   14098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14099 $as_echo "no" >&6; }
   14100 fi
   14101 
   14102   if test "x$ac_ct_OTOOL" = x; then
   14103     OTOOL=":"
   14104   else
   14105     case $cross_compiling:$ac_tool_warned in
   14106 yes:)
   14107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14109 ac_tool_warned=yes ;;
   14110 esac
   14111     OTOOL=$ac_ct_OTOOL
   14112   fi
   14113 else
   14114   OTOOL="$ac_cv_prog_OTOOL"
   14115 fi
   14116 
   14117     if test -n "$ac_tool_prefix"; then
   14118   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   14119 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14121 $as_echo_n "checking for $ac_word... " >&6; }
   14122 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
   14123   $as_echo_n "(cached) " >&6
   14124 else
   14125   if test -n "$OTOOL64"; then
   14126   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   14127 else
   14128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14129 for as_dir in $PATH
   14130 do
   14131   IFS=$as_save_IFS
   14132   test -z "$as_dir" && as_dir=.
   14133     for ac_exec_ext in '' $ac_executable_extensions; do
   14134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   14135     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   14136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14137     break 2
   14138   fi
   14139 done
   14140   done
   14141 IFS=$as_save_IFS
   14142 
   14143 fi
   14144 fi
   14145 OTOOL64=$ac_cv_prog_OTOOL64
   14146 if test -n "$OTOOL64"; then
   14147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   14148 $as_echo "$OTOOL64" >&6; }
   14149 else
   14150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14151 $as_echo "no" >&6; }
   14152 fi
   14153 
   14154 
   14155 fi
   14156 if test -z "$ac_cv_prog_OTOOL64"; then
   14157   ac_ct_OTOOL64=$OTOOL64
   14158   # Extract the first word of "otool64", so it can be a program name with args.
   14159 set dummy otool64; ac_word=$2
   14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14161 $as_echo_n "checking for $ac_word... " >&6; }
   14162 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
   14163   $as_echo_n "(cached) " >&6
   14164 else
   14165   if test -n "$ac_ct_OTOOL64"; then
   14166   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   14167 else
   14168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14169 for as_dir in $PATH
   14170 do
   14171   IFS=$as_save_IFS
   14172   test -z "$as_dir" && as_dir=.
   14173     for ac_exec_ext in '' $ac_executable_extensions; do
   14174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   14175     ac_cv_prog_ac_ct_OTOOL64="otool64"
   14176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14177     break 2
   14178   fi
   14179 done
   14180   done
   14181 IFS=$as_save_IFS
   14182 
   14183 fi
   14184 fi
   14185 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   14186 if test -n "$ac_ct_OTOOL64"; then
   14187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   14188 $as_echo "$ac_ct_OTOOL64" >&6; }
   14189 else
   14190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14191 $as_echo "no" >&6; }
   14192 fi
   14193 
   14194   if test "x$ac_ct_OTOOL64" = x; then
   14195     OTOOL64=":"
   14196   else
   14197     case $cross_compiling:$ac_tool_warned in
   14198 yes:)
   14199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   14200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   14201 ac_tool_warned=yes ;;
   14202 esac
   14203     OTOOL64=$ac_ct_OTOOL64
   14204   fi
   14205 else
   14206   OTOOL64="$ac_cv_prog_OTOOL64"
   14207 fi
   14208 
   14209 
   14210 
   14211 
   14212 
   14213 
   14214 
   14215 
   14216 
   14217 
   14218 
   14219 
   14220 
   14221 
   14222 
   14223 
   14224 
   14225 
   14226 
   14227 
   14228 
   14229 
   14230 
   14231 
   14232 
   14233 
   14234 
   14235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   14236 $as_echo_n "checking for -single_module linker flag... " >&6; }
   14237 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
   14238   $as_echo_n "(cached) " >&6
   14239 else
   14240   lt_cv_apple_cc_single_mod=no
   14241       if test -z "${LT_MULTI_MODULE}"; then
   14242 	# By default we will add the -single_module flag. You can override
   14243 	# by either setting the environment variable LT_MULTI_MODULE
   14244 	# non-empty at configure time, or by adding -multi_module to the
   14245 	# link flags.
   14246 	rm -rf libconftest.dylib*
   14247 	echo "int foo(void){return 1;}" > conftest.c
   14248 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   14249 -dynamiclib -Wl,-single_module conftest.c" >&5
   14250 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   14251 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   14252         _lt_result=$?
   14253 	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
   14254 	  lt_cv_apple_cc_single_mod=yes
   14255 	else
   14256 	  cat conftest.err >&5
   14257 	fi
   14258 	rm -rf libconftest.dylib*
   14259 	rm -f conftest.*
   14260       fi
   14261 fi
   14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   14263 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   14264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   14265 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   14266 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
   14267   $as_echo_n "(cached) " >&6
   14268 else
   14269   lt_cv_ld_exported_symbols_list=no
   14270       save_LDFLAGS=$LDFLAGS
   14271       echo "_main" > conftest.sym
   14272       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   14273       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14274 /* end confdefs.h.  */
   14275 
   14276 int
   14277 main ()
   14278 {
   14279 
   14280   ;
   14281   return 0;
   14282 }
   14283 _ACEOF
   14284 if ac_fn_c_try_link "$LINENO"; then :
   14285   lt_cv_ld_exported_symbols_list=yes
   14286 else
   14287   lt_cv_ld_exported_symbols_list=no
   14288 fi
   14289 rm -f core conftest.err conftest.$ac_objext \
   14290     conftest$ac_exeext conftest.$ac_ext
   14291 	LDFLAGS="$save_LDFLAGS"
   14292 
   14293 fi
   14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   14295 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   14296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   14297 $as_echo_n "checking for -force_load linker flag... " >&6; }
   14298 if test "${lt_cv_ld_force_load+set}" = set; then :
   14299   $as_echo_n "(cached) " >&6
   14300 else
   14301   lt_cv_ld_force_load=no
   14302       cat > conftest.c << _LT_EOF
   14303 int forced_loaded() { return 2;}
   14304 _LT_EOF
   14305       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   14306       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   14307       echo "$AR cru libconftest.a conftest.o" >&5
   14308       $AR cru libconftest.a conftest.o 2>&5
   14309       cat > conftest.c << _LT_EOF
   14310 int main() { return 0;}
   14311 _LT_EOF
   14312       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   14313       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   14314       _lt_result=$?
   14315       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
   14316 	lt_cv_ld_force_load=yes
   14317       else
   14318 	cat conftest.err >&5
   14319       fi
   14320         rm -f conftest.err libconftest.a conftest conftest.c
   14321         rm -rf conftest.dSYM
   14322 
   14323 fi
   14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   14325 $as_echo "$lt_cv_ld_force_load" >&6; }
   14326     case $host_os in
   14327     rhapsody* | darwin1.[012])
   14328       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   14329     darwin1.*)
   14330       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   14331     darwin*) # darwin 5.x on
   14332       # if running on 10.5 or later, the deployment target defaults
   14333       # to the OS version, if on x86, and 10.4, the deployment
   14334       # target defaults to 10.4. Don't you love it?
   14335       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   14336 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   14337 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   14338 	10.[012]*)
   14339 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   14340 	10.*)
   14341 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   14342       esac
   14343     ;;
   14344   esac
   14345     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
   14346       _lt_dar_single_mod='$single_module'
   14347     fi
   14348     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
   14349       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
   14350     else
   14351       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
   14352     fi
   14353     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
   14354       _lt_dsymutil='~$DSYMUTIL $lib || :'
   14355     else
   14356       _lt_dsymutil=
   14357     fi
   14358     ;;
   14359   esac
   14360 
   14361 for ac_header in dlfcn.h
   14362 do :
   14363   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
   14364 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
   14365   cat >>confdefs.h <<_ACEOF
   14366 #define HAVE_DLFCN_H 1
   14367 _ACEOF
   14368 
   14369 fi
   14370 done
   14371 
   14372 
   14373 
   14374 
   14375 
   14376 # Set options
   14377 
   14378 
   14379 
   14380         enable_dlopen=no
   14381 
   14382 
   14383   enable_win32_dll=no
   14384 
   14385 
   14386             # Check whether --enable-shared was given.
   14387 if test "${enable_shared+set}" = set; then :
   14388   enableval=$enable_shared; p=${PACKAGE-default}
   14389     case $enableval in
   14390     yes) enable_shared=yes ;;
   14391     no) enable_shared=no ;;
   14392     *)
   14393       enable_shared=no
   14394       # Look at the argument we got.  We use all the common list separators.
   14395       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   14396       for pkg in $enableval; do
   14397 	IFS="$lt_save_ifs"
   14398 	if test "X$pkg" = "X$p"; then
   14399 	  enable_shared=yes
   14400 	fi
   14401       done
   14402       IFS="$lt_save_ifs"
   14403       ;;
   14404     esac
   14405 else
   14406   enable_shared=yes
   14407 fi
   14408 
   14409 
   14410 
   14411 
   14412 
   14413 
   14414 
   14415 
   14416 
   14417   # Check whether --enable-static was given.
   14418 if test "${enable_static+set}" = set; then :
   14419   enableval=$enable_static; p=${PACKAGE-default}
   14420     case $enableval in
   14421     yes) enable_static=yes ;;
   14422     no) enable_static=no ;;
   14423     *)
   14424      enable_static=no
   14425       # Look at the argument we got.  We use all the common list separators.
   14426       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   14427       for pkg in $enableval; do
   14428 	IFS="$lt_save_ifs"
   14429 	if test "X$pkg" = "X$p"; then
   14430 	  enable_static=yes
   14431 	fi
   14432       done
   14433       IFS="$lt_save_ifs"
   14434       ;;
   14435     esac
   14436 else
   14437   enable_static=yes
   14438 fi
   14439 
   14440 
   14441 
   14442 
   14443 
   14444 
   14445 
   14446 
   14447 
   14448 
   14449 # Check whether --with-pic was given.
   14450 if test "${with_pic+set}" = set; then :
   14451   withval=$with_pic; pic_mode="$withval"
   14452 else
   14453   pic_mode=default
   14454 fi
   14455 
   14456 
   14457 test -z "$pic_mode" && pic_mode=default
   14458 
   14459 
   14460 
   14461 
   14462 
   14463 
   14464 
   14465   # Check whether --enable-fast-install was given.
   14466 if test "${enable_fast_install+set}" = set; then :
   14467   enableval=$enable_fast_install; p=${PACKAGE-default}
   14468     case $enableval in
   14469     yes) enable_fast_install=yes ;;
   14470     no) enable_fast_install=no ;;
   14471     *)
   14472       enable_fast_install=no
   14473       # Look at the argument we got.  We use all the common list separators.
   14474       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   14475       for pkg in $enableval; do
   14476 	IFS="$lt_save_ifs"
   14477 	if test "X$pkg" = "X$p"; then
   14478 	  enable_fast_install=yes
   14479 	fi
   14480       done
   14481       IFS="$lt_save_ifs"
   14482       ;;
   14483     esac
   14484 else
   14485   enable_fast_install=yes
   14486 fi
   14487 
   14488 
   14489 
   14490 
   14491 
   14492 
   14493 
   14494 
   14495 
   14496 
   14497 
   14498 # This can be used to rebuild libtool when needed
   14499 LIBTOOL_DEPS="$ltmain"
   14500 
   14501 # Always use our own libtool.
   14502 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   14503 
   14504 
   14505 
   14506 
   14507 
   14508 
   14509 
   14510 
   14511 
   14512 
   14513 
   14514 
   14515 
   14516 
   14517 
   14518 
   14519 
   14520 
   14521 
   14522 
   14523 
   14524 
   14525 
   14526 
   14527 
   14528 
   14529 test -z "$LN_S" && LN_S="ln -s"
   14530 
   14531 
   14532 
   14533 
   14534 
   14535 
   14536 
   14537 
   14538 
   14539 
   14540 
   14541 
   14542 
   14543 
   14544 if test -n "${ZSH_VERSION+set}" ; then
   14545    setopt NO_GLOB_SUBST
   14546 fi
   14547 
   14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   14549 $as_echo_n "checking for objdir... " >&6; }
   14550 if test "${lt_cv_objdir+set}" = set; then :
   14551   $as_echo_n "(cached) " >&6
   14552 else
   14553   rm -f .libs 2>/dev/null
   14554 mkdir .libs 2>/dev/null
   14555 if test -d .libs; then
   14556   lt_cv_objdir=.libs
   14557 else
   14558   # MS-DOS does not allow filenames that begin with a dot.
   14559   lt_cv_objdir=_libs
   14560 fi
   14561 rmdir .libs 2>/dev/null
   14562 fi
   14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   14564 $as_echo "$lt_cv_objdir" >&6; }
   14565 objdir=$lt_cv_objdir
   14566 
   14567 
   14568 
   14569 
   14570 
   14571 cat >>confdefs.h <<_ACEOF
   14572 #define LT_OBJDIR "$lt_cv_objdir/"
   14573 _ACEOF
   14574 
   14575 
   14576 
   14577 
   14578 case $host_os in
   14579 aix3*)
   14580   # AIX sometimes has problems with the GCC collect2 program.  For some
   14581   # reason, if we set the COLLECT_NAMES environment variable, the problems
   14582   # vanish in a puff of smoke.
   14583   if test "X${COLLECT_NAMES+set}" != Xset; then
   14584     COLLECT_NAMES=
   14585     export COLLECT_NAMES
   14586   fi
   14587   ;;
   14588 esac
   14589 
   14590 # Global variables:
   14591 ofile=libtool
   14592 can_build_shared=yes
   14593 
   14594 # All known linkers require a `.a' archive for static linking (except MSVC,
   14595 # which needs '.lib').
   14596 libext=a
   14597 
   14598 with_gnu_ld="$lt_cv_prog_gnu_ld"
   14599 
   14600 old_CC="$CC"
   14601 old_CFLAGS="$CFLAGS"
   14602 
   14603 # Set sane defaults for various variables
   14604 test -z "$CC" && CC=cc
   14605 test -z "$LTCC" && LTCC=$CC
   14606 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   14607 test -z "$LD" && LD=ld
   14608 test -z "$ac_objext" && ac_objext=o
   14609 
   14610 for cc_temp in $compiler""; do
   14611   case $cc_temp in
   14612     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   14613     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   14614     \-*) ;;
   14615     *) break;;
   14616   esac
   14617 done
   14618 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   14619 
   14620 
   14621 # Only perform the check for file, if the check method requires it
   14622 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   14623 case $deplibs_check_method in
   14624 file_magic*)
   14625   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   14626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   14627 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   14628 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
   14629   $as_echo_n "(cached) " >&6
   14630 else
   14631   case $MAGIC_CMD in
   14632 [\\/*] |  ?:[\\/]*)
   14633   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   14634   ;;
   14635 *)
   14636   lt_save_MAGIC_CMD="$MAGIC_CMD"
   14637   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   14638   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   14639   for ac_dir in $ac_dummy; do
   14640     IFS="$lt_save_ifs"
   14641     test -z "$ac_dir" && ac_dir=.
   14642     if test -f $ac_dir/${ac_tool_prefix}file; then
   14643       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
   14644       if test -n "$file_magic_test_file"; then
   14645 	case $deplibs_check_method in
   14646 	"file_magic "*)
   14647 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   14648 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   14649 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   14650 	    $EGREP "$file_magic_regex" > /dev/null; then
   14651 	    :
   14652 	  else
   14653 	    cat <<_LT_EOF 1>&2
   14654 
   14655 *** Warning: the command libtool uses to detect shared libraries,
   14656 *** $file_magic_cmd, produces output that libtool cannot recognize.
   14657 *** The result is that libtool may fail to recognize shared libraries
   14658 *** as such.  This will affect the creation of libtool libraries that
   14659 *** depend on shared libraries, but programs linked with such libtool
   14660 *** libraries will work regardless of this problem.  Nevertheless, you
   14661 *** may want to report the problem to your system manager and/or to
   14662 *** bug-libtool@gnu.org
   14663 
   14664 _LT_EOF
   14665 	  fi ;;
   14666 	esac
   14667       fi
   14668       break
   14669     fi
   14670   done
   14671   IFS="$lt_save_ifs"
   14672   MAGIC_CMD="$lt_save_MAGIC_CMD"
   14673   ;;
   14674 esac
   14675 fi
   14676 
   14677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   14678 if test -n "$MAGIC_CMD"; then
   14679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   14680 $as_echo "$MAGIC_CMD" >&6; }
   14681 else
   14682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14683 $as_echo "no" >&6; }
   14684 fi
   14685 
   14686 
   14687 
   14688 
   14689 
   14690 if test -z "$lt_cv_path_MAGIC_CMD"; then
   14691   if test -n "$ac_tool_prefix"; then
   14692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   14693 $as_echo_n "checking for file... " >&6; }
   14694 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
   14695   $as_echo_n "(cached) " >&6
   14696 else
   14697   case $MAGIC_CMD in
   14698 [\\/*] |  ?:[\\/]*)
   14699   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   14700   ;;
   14701 *)
   14702   lt_save_MAGIC_CMD="$MAGIC_CMD"
   14703   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   14704   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   14705   for ac_dir in $ac_dummy; do
   14706     IFS="$lt_save_ifs"
   14707     test -z "$ac_dir" && ac_dir=.
   14708     if test -f $ac_dir/file; then
   14709       lt_cv_path_MAGIC_CMD="$ac_dir/file"
   14710       if test -n "$file_magic_test_file"; then
   14711 	case $deplibs_check_method in
   14712 	"file_magic "*)
   14713 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   14714 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   14715 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   14716 	    $EGREP "$file_magic_regex" > /dev/null; then
   14717 	    :
   14718 	  else
   14719 	    cat <<_LT_EOF 1>&2
   14720 
   14721 *** Warning: the command libtool uses to detect shared libraries,
   14722 *** $file_magic_cmd, produces output that libtool cannot recognize.
   14723 *** The result is that libtool may fail to recognize shared libraries
   14724 *** as such.  This will affect the creation of libtool libraries that
   14725 *** depend on shared libraries, but programs linked with such libtool
   14726 *** libraries will work regardless of this problem.  Nevertheless, you
   14727 *** may want to report the problem to your system manager and/or to
   14728 *** bug-libtool@gnu.org
   14729 
   14730 _LT_EOF
   14731 	  fi ;;
   14732 	esac
   14733       fi
   14734       break
   14735     fi
   14736   done
   14737   IFS="$lt_save_ifs"
   14738   MAGIC_CMD="$lt_save_MAGIC_CMD"
   14739   ;;
   14740 esac
   14741 fi
   14742 
   14743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   14744 if test -n "$MAGIC_CMD"; then
   14745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   14746 $as_echo "$MAGIC_CMD" >&6; }
   14747 else
   14748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14749 $as_echo "no" >&6; }
   14750 fi
   14751 
   14752 
   14753   else
   14754     MAGIC_CMD=:
   14755   fi
   14756 fi
   14757 
   14758   fi
   14759   ;;
   14760 esac
   14761 
   14762 # Use C for the default configuration in the libtool script
   14763 
   14764 lt_save_CC="$CC"
   14765 ac_ext=c
   14766 ac_cpp='$CPP $CPPFLAGS'
   14767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14770 
   14771 
   14772 # Source file extension for C test sources.
   14773 ac_ext=c
   14774 
   14775 # Object file extension for compiled C test sources.
   14776 objext=o
   14777 objext=$objext
   14778 
   14779 # Code to be used in simple compile tests
   14780 lt_simple_compile_test_code="int some_variable = 0;"
   14781 
   14782 # Code to be used in simple link tests
   14783 lt_simple_link_test_code='int main(){return(0);}'
   14784 
   14785 
   14786 
   14787 
   14788 
   14789 
   14790 
   14791 # If no C compiler was specified, use CC.
   14792 LTCC=${LTCC-"$CC"}
   14793 
   14794 # If no C compiler flags were specified, use CFLAGS.
   14795 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   14796 
   14797 # Allow CC to be a program name with arguments.
   14798 compiler=$CC
   14799 
   14800 # Save the default compiler, since it gets overwritten when the other
   14801 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   14802 compiler_DEFAULT=$CC
   14803 
   14804 # save warnings/boilerplate of simple test code
   14805 ac_outfile=conftest.$ac_objext
   14806 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   14807 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   14808 _lt_compiler_boilerplate=`cat conftest.err`
   14809 $RM conftest*
   14810 
   14811 ac_outfile=conftest.$ac_objext
   14812 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   14813 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   14814 _lt_linker_boilerplate=`cat conftest.err`
   14815 $RM -r conftest*
   14816 
   14817 
   14818 ## CAVEAT EMPTOR:
   14819 ## There is no encapsulation within the following macros, do not change
   14820 ## the running order or otherwise move them around unless you know exactly
   14821 ## what you are doing...
   14822 if test -n "$compiler"; then
   14823 
   14824 lt_prog_compiler_no_builtin_flag=
   14825 
   14826 if test "$GCC" = yes; then
   14827   case $cc_basename in
   14828   nvcc*)
   14829     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   14830   *)
   14831     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   14832   esac
   14833 
   14834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   14835 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   14836 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
   14837   $as_echo_n "(cached) " >&6
   14838 else
   14839   lt_cv_prog_compiler_rtti_exceptions=no
   14840    ac_outfile=conftest.$ac_objext
   14841    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   14842    lt_compiler_flag="-fno-rtti -fno-exceptions"
   14843    # Insert the option either (1) after the last *FLAGS variable, or
   14844    # (2) before a word containing "conftest.", or (3) at the end.
   14845    # Note that $ac_compile itself does not contain backslashes and begins
   14846    # with a dollar sign (not a hyphen), so the echo should work correctly.
   14847    # The option is referenced via a variable to avoid confusing sed.
   14848    lt_compile=`echo "$ac_compile" | $SED \
   14849    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   14850    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   14851    -e 's:$: $lt_compiler_flag:'`
   14852    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   14853    (eval "$lt_compile" 2>conftest.err)
   14854    ac_status=$?
   14855    cat conftest.err >&5
   14856    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14857    if (exit $ac_status) && test -s "$ac_outfile"; then
   14858      # The compiler can only warn and ignore the option if not recognized
   14859      # So say no if there are warnings other than the usual output.
   14860      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   14861      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   14862      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   14863        lt_cv_prog_compiler_rtti_exceptions=yes
   14864      fi
   14865    fi
   14866    $RM conftest*
   14867 
   14868 fi
   14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   14870 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   14871 
   14872 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
   14873     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   14874 else
   14875     :
   14876 fi
   14877 
   14878 fi
   14879 
   14880 
   14881 
   14882 
   14883 
   14884 
   14885   lt_prog_compiler_wl=
   14886 lt_prog_compiler_pic=
   14887 lt_prog_compiler_static=
   14888 
   14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   14890 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   14891 
   14892   if test "$GCC" = yes; then
   14893     lt_prog_compiler_wl='-Wl,'
   14894     lt_prog_compiler_static='-static'
   14895 
   14896     case $host_os in
   14897       aix*)
   14898       # All AIX code is PIC.
   14899       if test "$host_cpu" = ia64; then
   14900 	# AIX 5 now supports IA64 processor
   14901 	lt_prog_compiler_static='-Bstatic'
   14902       fi
   14903       lt_prog_compiler_pic='-fPIC'
   14904       ;;
   14905 
   14906     amigaos*)
   14907       case $host_cpu in
   14908       powerpc)
   14909             # see comment about AmigaOS4 .so support
   14910             lt_prog_compiler_pic='-fPIC'
   14911         ;;
   14912       m68k)
   14913             # FIXME: we need at least 68020 code to build shared libraries, but
   14914             # adding the `-m68020' flag to GCC prevents building anything better,
   14915             # like `-m68040'.
   14916             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   14917         ;;
   14918       esac
   14919       ;;
   14920 
   14921     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   14922       # PIC is the default for these OSes.
   14923       ;;
   14924 
   14925     mingw* | cygwin* | pw32* | os2* | cegcc*)
   14926       # This hack is so that the source file can tell whether it is being
   14927       # built for inclusion in a dll (and should export symbols for example).
   14928       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   14929       # (--disable-auto-import) libraries
   14930       lt_prog_compiler_pic='-DDLL_EXPORT'
   14931       ;;
   14932 
   14933     darwin* | rhapsody*)
   14934       # PIC is the default on this platform
   14935       # Common symbols not allowed in MH_DYLIB files
   14936       lt_prog_compiler_pic='-fno-common'
   14937       ;;
   14938 
   14939     haiku*)
   14940       # PIC is the default for Haiku.
   14941       # The "-static" flag exists, but is broken.
   14942       lt_prog_compiler_static=
   14943       ;;
   14944 
   14945     hpux*)
   14946       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   14947       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   14948       # sets the default TLS model and affects inlining.
   14949       case $host_cpu in
   14950       hppa*64*)
   14951 	# +Z the default
   14952 	;;
   14953       *)
   14954 	lt_prog_compiler_pic='-fPIC'
   14955 	;;
   14956       esac
   14957       ;;
   14958 
   14959     interix[3-9]*)
   14960       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   14961       # Instead, we relocate shared libraries at runtime.
   14962       ;;
   14963 
   14964     msdosdjgpp*)
   14965       # Just because we use GCC doesn't mean we suddenly get shared libraries
   14966       # on systems that don't support them.
   14967       lt_prog_compiler_can_build_shared=no
   14968       enable_shared=no
   14969       ;;
   14970 
   14971     *nto* | *qnx*)
   14972       # QNX uses GNU C++, but need to define -shared option too, otherwise
   14973       # it will coredump.
   14974       lt_prog_compiler_pic='-fPIC -shared'
   14975       ;;
   14976 
   14977     sysv4*MP*)
   14978       if test -d /usr/nec; then
   14979 	lt_prog_compiler_pic=-Kconform_pic
   14980       fi
   14981       ;;
   14982 
   14983     *)
   14984       lt_prog_compiler_pic='-fPIC'
   14985       ;;
   14986     esac
   14987 
   14988     case $cc_basename in
   14989     nvcc*) # Cuda Compiler Driver 2.2
   14990       lt_prog_compiler_wl='-Xlinker '
   14991       lt_prog_compiler_pic='-Xcompiler -fPIC'
   14992       ;;
   14993     esac
   14994   else
   14995     # PORTME Check for flag to pass linker flags through the system compiler.
   14996     case $host_os in
   14997     aix*)
   14998       lt_prog_compiler_wl='-Wl,'
   14999       if test "$host_cpu" = ia64; then
   15000 	# AIX 5 now supports IA64 processor
   15001 	lt_prog_compiler_static='-Bstatic'
   15002       else
   15003 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   15004       fi
   15005       ;;
   15006 
   15007     mingw* | cygwin* | pw32* | os2* | cegcc*)
   15008       # This hack is so that the source file can tell whether it is being
   15009       # built for inclusion in a dll (and should export symbols for example).
   15010       lt_prog_compiler_pic='-DDLL_EXPORT'
   15011       ;;
   15012 
   15013     hpux9* | hpux10* | hpux11*)
   15014       lt_prog_compiler_wl='-Wl,'
   15015       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   15016       # not for PA HP-UX.
   15017       case $host_cpu in
   15018       hppa*64*|ia64*)
   15019 	# +Z the default
   15020 	;;
   15021       *)
   15022 	lt_prog_compiler_pic='+Z'
   15023 	;;
   15024       esac
   15025       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   15026       lt_prog_compiler_static='${wl}-a ${wl}archive'
   15027       ;;
   15028 
   15029     irix5* | irix6* | nonstopux*)
   15030       lt_prog_compiler_wl='-Wl,'
   15031       # PIC (with -KPIC) is the default.
   15032       lt_prog_compiler_static='-non_shared'
   15033       ;;
   15034 
   15035     linux* | k*bsd*-gnu | kopensolaris*-gnu)
   15036       case $cc_basename in
   15037       # old Intel for x86_64 which still supported -KPIC.
   15038       ecc*)
   15039 	lt_prog_compiler_wl='-Wl,'
   15040 	lt_prog_compiler_pic='-KPIC'
   15041 	lt_prog_compiler_static='-static'
   15042         ;;
   15043       # icc used to be incompatible with GCC.
   15044       # ICC 10 doesn't accept -KPIC any more.
   15045       icc* | ifort*)
   15046 	lt_prog_compiler_wl='-Wl,'
   15047 	lt_prog_compiler_pic='-fPIC'
   15048 	lt_prog_compiler_static='-static'
   15049         ;;
   15050       # Lahey Fortran 8.1.
   15051       lf95*)
   15052 	lt_prog_compiler_wl='-Wl,'
   15053 	lt_prog_compiler_pic='--shared'
   15054 	lt_prog_compiler_static='--static'
   15055 	;;
   15056       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   15057         # Portland Group compilers (*not* the Pentium gcc compiler,
   15058 	# which looks to be a dead project)
   15059 	lt_prog_compiler_wl='-Wl,'
   15060 	lt_prog_compiler_pic='-fpic'
   15061 	lt_prog_compiler_static='-Bstatic'
   15062         ;;
   15063       ccc*)
   15064         lt_prog_compiler_wl='-Wl,'
   15065         # All Alpha code is PIC.
   15066         lt_prog_compiler_static='-non_shared'
   15067         ;;
   15068       xl* | bgxl* | bgf* | mpixl*)
   15069 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   15070 	lt_prog_compiler_wl='-Wl,'
   15071 	lt_prog_compiler_pic='-qpic'
   15072 	lt_prog_compiler_static='-qstaticlink'
   15073 	;;
   15074       *)
   15075 	case `$CC -V 2>&1 | sed 5q` in
   15076 	*Sun\ F* | *Sun*Fortran*)
   15077 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   15078 	  lt_prog_compiler_pic='-KPIC'
   15079 	  lt_prog_compiler_static='-Bstatic'
   15080 	  lt_prog_compiler_wl=''
   15081 	  ;;
   15082 	*Sun\ C*)
   15083 	  # Sun C 5.9
   15084 	  lt_prog_compiler_pic='-KPIC'
   15085 	  lt_prog_compiler_static='-Bstatic'
   15086 	  lt_prog_compiler_wl='-Wl,'
   15087 	  ;;
   15088 	esac
   15089 	;;
   15090       esac
   15091       ;;
   15092 
   15093     newsos6)
   15094       lt_prog_compiler_pic='-KPIC'
   15095       lt_prog_compiler_static='-Bstatic'
   15096       ;;
   15097 
   15098     *nto* | *qnx*)
   15099       # QNX uses GNU C++, but need to define -shared option too, otherwise
   15100       # it will coredump.
   15101       lt_prog_compiler_pic='-fPIC -shared'
   15102       ;;
   15103 
   15104     osf3* | osf4* | osf5*)
   15105       lt_prog_compiler_wl='-Wl,'
   15106       # All OSF/1 code is PIC.
   15107       lt_prog_compiler_static='-non_shared'
   15108       ;;
   15109 
   15110     rdos*)
   15111       lt_prog_compiler_static='-non_shared'
   15112       ;;
   15113 
   15114     solaris*)
   15115       lt_prog_compiler_pic='-KPIC'
   15116       lt_prog_compiler_static='-Bstatic'
   15117       case $cc_basename in
   15118       f77* | f90* | f95*)
   15119 	lt_prog_compiler_wl='-Qoption ld ';;
   15120       *)
   15121 	lt_prog_compiler_wl='-Wl,';;
   15122       esac
   15123       ;;
   15124 
   15125     sunos4*)
   15126       lt_prog_compiler_wl='-Qoption ld '
   15127       lt_prog_compiler_pic='-PIC'
   15128       lt_prog_compiler_static='-Bstatic'
   15129       ;;
   15130 
   15131     sysv4 | sysv4.2uw2* | sysv4.3*)
   15132       lt_prog_compiler_wl='-Wl,'
   15133       lt_prog_compiler_pic='-KPIC'
   15134       lt_prog_compiler_static='-Bstatic'
   15135       ;;
   15136 
   15137     sysv4*MP*)
   15138       if test -d /usr/nec ;then
   15139 	lt_prog_compiler_pic='-Kconform_pic'
   15140 	lt_prog_compiler_static='-Bstatic'
   15141       fi
   15142       ;;
   15143 
   15144     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   15145       lt_prog_compiler_wl='-Wl,'
   15146       lt_prog_compiler_pic='-KPIC'
   15147       lt_prog_compiler_static='-Bstatic'
   15148       ;;
   15149 
   15150     unicos*)
   15151       lt_prog_compiler_wl='-Wl,'
   15152       lt_prog_compiler_can_build_shared=no
   15153       ;;
   15154 
   15155     uts4*)
   15156       lt_prog_compiler_pic='-pic'
   15157       lt_prog_compiler_static='-Bstatic'
   15158       ;;
   15159 
   15160     *)
   15161       lt_prog_compiler_can_build_shared=no
   15162       ;;
   15163     esac
   15164   fi
   15165 
   15166 case $host_os in
   15167   # For platforms which do not support PIC, -DPIC is meaningless:
   15168   *djgpp*)
   15169     lt_prog_compiler_pic=
   15170     ;;
   15171   *)
   15172     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   15173     ;;
   15174 esac
   15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
   15176 $as_echo "$lt_prog_compiler_pic" >&6; }
   15177 
   15178 
   15179 
   15180 
   15181 
   15182 
   15183 #
   15184 # Check to make sure the PIC flag actually works.
   15185 #
   15186 if test -n "$lt_prog_compiler_pic"; then
   15187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   15188 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   15189 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
   15190   $as_echo_n "(cached) " >&6
   15191 else
   15192   lt_cv_prog_compiler_pic_works=no
   15193    ac_outfile=conftest.$ac_objext
   15194    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   15195    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   15196    # Insert the option either (1) after the last *FLAGS variable, or
   15197    # (2) before a word containing "conftest.", or (3) at the end.
   15198    # Note that $ac_compile itself does not contain backslashes and begins
   15199    # with a dollar sign (not a hyphen), so the echo should work correctly.
   15200    # The option is referenced via a variable to avoid confusing sed.
   15201    lt_compile=`echo "$ac_compile" | $SED \
   15202    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   15203    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   15204    -e 's:$: $lt_compiler_flag:'`
   15205    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   15206    (eval "$lt_compile" 2>conftest.err)
   15207    ac_status=$?
   15208    cat conftest.err >&5
   15209    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15210    if (exit $ac_status) && test -s "$ac_outfile"; then
   15211      # The compiler can only warn and ignore the option if not recognized
   15212      # So say no if there are warnings other than the usual output.
   15213      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   15214      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   15215      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   15216        lt_cv_prog_compiler_pic_works=yes
   15217      fi
   15218    fi
   15219    $RM conftest*
   15220 
   15221 fi
   15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   15223 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   15224 
   15225 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
   15226     case $lt_prog_compiler_pic in
   15227      "" | " "*) ;;
   15228      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   15229      esac
   15230 else
   15231     lt_prog_compiler_pic=
   15232      lt_prog_compiler_can_build_shared=no
   15233 fi
   15234 
   15235 fi
   15236 
   15237 
   15238 
   15239 
   15240 
   15241 
   15242 #
   15243 # Check to make sure the static flag actually works.
   15244 #
   15245 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   15247 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   15248 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
   15249   $as_echo_n "(cached) " >&6
   15250 else
   15251   lt_cv_prog_compiler_static_works=no
   15252    save_LDFLAGS="$LDFLAGS"
   15253    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   15254    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   15255    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   15256      # The linker can only warn and ignore the option if not recognized
   15257      # So say no if there are warnings
   15258      if test -s conftest.err; then
   15259        # Append any errors to the config.log.
   15260        cat conftest.err 1>&5
   15261        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   15262        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   15263        if diff conftest.exp conftest.er2 >/dev/null; then
   15264          lt_cv_prog_compiler_static_works=yes
   15265        fi
   15266      else
   15267        lt_cv_prog_compiler_static_works=yes
   15268      fi
   15269    fi
   15270    $RM -r conftest*
   15271    LDFLAGS="$save_LDFLAGS"
   15272 
   15273 fi
   15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   15275 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   15276 
   15277 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
   15278     :
   15279 else
   15280     lt_prog_compiler_static=
   15281 fi
   15282 
   15283 
   15284 
   15285 
   15286 
   15287 
   15288 
   15289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   15290 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   15291 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
   15292   $as_echo_n "(cached) " >&6
   15293 else
   15294   lt_cv_prog_compiler_c_o=no
   15295    $RM -r conftest 2>/dev/null
   15296    mkdir conftest
   15297    cd conftest
   15298    mkdir out
   15299    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   15300 
   15301    lt_compiler_flag="-o out/conftest2.$ac_objext"
   15302    # Insert the option either (1) after the last *FLAGS variable, or
   15303    # (2) before a word containing "conftest.", or (3) at the end.
   15304    # Note that $ac_compile itself does not contain backslashes and begins
   15305    # with a dollar sign (not a hyphen), so the echo should work correctly.
   15306    lt_compile=`echo "$ac_compile" | $SED \
   15307    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   15308    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   15309    -e 's:$: $lt_compiler_flag:'`
   15310    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   15311    (eval "$lt_compile" 2>out/conftest.err)
   15312    ac_status=$?
   15313    cat out/conftest.err >&5
   15314    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15315    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   15316    then
   15317      # The compiler can only warn and ignore the option if not recognized
   15318      # So say no if there are warnings
   15319      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   15320      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   15321      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   15322        lt_cv_prog_compiler_c_o=yes
   15323      fi
   15324    fi
   15325    chmod u+w . 2>&5
   15326    $RM conftest*
   15327    # SGI C++ compiler will create directory out/ii_files/ for
   15328    # template instantiation
   15329    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   15330    $RM out/* && rmdir out
   15331    cd ..
   15332    $RM -r conftest
   15333    $RM conftest*
   15334 
   15335 fi
   15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   15337 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   15338 
   15339 
   15340 
   15341 
   15342 
   15343 
   15344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   15345 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   15346 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
   15347   $as_echo_n "(cached) " >&6
   15348 else
   15349   lt_cv_prog_compiler_c_o=no
   15350    $RM -r conftest 2>/dev/null
   15351    mkdir conftest
   15352    cd conftest
   15353    mkdir out
   15354    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   15355 
   15356    lt_compiler_flag="-o out/conftest2.$ac_objext"
   15357    # Insert the option either (1) after the last *FLAGS variable, or
   15358    # (2) before a word containing "conftest.", or (3) at the end.
   15359    # Note that $ac_compile itself does not contain backslashes and begins
   15360    # with a dollar sign (not a hyphen), so the echo should work correctly.
   15361    lt_compile=`echo "$ac_compile" | $SED \
   15362    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   15363    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   15364    -e 's:$: $lt_compiler_flag:'`
   15365    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   15366    (eval "$lt_compile" 2>out/conftest.err)
   15367    ac_status=$?
   15368    cat out/conftest.err >&5
   15369    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15370    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   15371    then
   15372      # The compiler can only warn and ignore the option if not recognized
   15373      # So say no if there are warnings
   15374      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   15375      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   15376      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   15377        lt_cv_prog_compiler_c_o=yes
   15378      fi
   15379    fi
   15380    chmod u+w . 2>&5
   15381    $RM conftest*
   15382    # SGI C++ compiler will create directory out/ii_files/ for
   15383    # template instantiation
   15384    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   15385    $RM out/* && rmdir out
   15386    cd ..
   15387    $RM -r conftest
   15388    $RM conftest*
   15389 
   15390 fi
   15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   15392 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   15393 
   15394 
   15395 
   15396 
   15397 hard_links="nottested"
   15398 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
   15399   # do not overwrite the value of need_locks provided by the user
   15400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   15401 $as_echo_n "checking if we can lock with hard links... " >&6; }
   15402   hard_links=yes
   15403   $RM conftest*
   15404   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   15405   touch conftest.a
   15406   ln conftest.a conftest.b 2>&5 || hard_links=no
   15407   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   15408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   15409 $as_echo "$hard_links" >&6; }
   15410   if test "$hard_links" = no; then
   15411     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   15412 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   15413     need_locks=warn
   15414   fi
   15415 else
   15416   need_locks=no
   15417 fi
   15418 
   15419 
   15420 
   15421 
   15422 
   15423 
   15424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   15425 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   15426 
   15427   runpath_var=
   15428   allow_undefined_flag=
   15429   always_export_symbols=no
   15430   archive_cmds=
   15431   archive_expsym_cmds=
   15432   compiler_needs_object=no
   15433   enable_shared_with_static_runtimes=no
   15434   export_dynamic_flag_spec=
   15435   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   15436   hardcode_automatic=no
   15437   hardcode_direct=no
   15438   hardcode_direct_absolute=no
   15439   hardcode_libdir_flag_spec=
   15440   hardcode_libdir_flag_spec_ld=
   15441   hardcode_libdir_separator=
   15442   hardcode_minus_L=no
   15443   hardcode_shlibpath_var=unsupported
   15444   inherit_rpath=no
   15445   link_all_deplibs=unknown
   15446   module_cmds=
   15447   module_expsym_cmds=
   15448   old_archive_from_new_cmds=
   15449   old_archive_from_expsyms_cmds=
   15450   thread_safe_flag_spec=
   15451   whole_archive_flag_spec=
   15452   # include_expsyms should be a list of space-separated symbols to be *always*
   15453   # included in the symbol list
   15454   include_expsyms=
   15455   # exclude_expsyms can be an extended regexp of symbols to exclude
   15456   # it will be wrapped by ` (' and `)$', so one must not match beginning or
   15457   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   15458   # as well as any symbol that contains `d'.
   15459   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   15460   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   15461   # platforms (ab)use it in PIC code, but their linkers get confused if
   15462   # the symbol is explicitly referenced.  Since portable code cannot
   15463   # rely on this symbol name, it's probably fine to never include it in
   15464   # preloaded symbol tables.
   15465   # Exclude shared library initialization/finalization symbols.
   15466   extract_expsyms_cmds=
   15467 
   15468   case $host_os in
   15469   cygwin* | mingw* | pw32* | cegcc*)
   15470     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   15471     # When not using gcc, we currently assume that we are using
   15472     # Microsoft Visual C++.
   15473     if test "$GCC" != yes; then
   15474       with_gnu_ld=no
   15475     fi
   15476     ;;
   15477   interix*)
   15478     # we just hope/assume this is gcc and not c89 (= MSVC++)
   15479     with_gnu_ld=yes
   15480     ;;
   15481   openbsd*)
   15482     with_gnu_ld=no
   15483     ;;
   15484   esac
   15485 
   15486   ld_shlibs=yes
   15487 
   15488   # On some targets, GNU ld is compatible enough with the native linker
   15489   # that we're better off using the native interface for both.
   15490   lt_use_gnu_ld_interface=no
   15491   if test "$with_gnu_ld" = yes; then
   15492     case $host_os in
   15493       aix*)
   15494 	# The AIX port of GNU ld has always aspired to compatibility
   15495 	# with the native linker.  However, as the warning in the GNU ld
   15496 	# block says, versions before 2.19.5* couldn't really create working
   15497 	# shared libraries, regardless of the interface used.
   15498 	case `$LD -v 2>&1` in
   15499 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   15500 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   15501 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   15502 	  *)
   15503 	    lt_use_gnu_ld_interface=yes
   15504 	    ;;
   15505 	esac
   15506 	;;
   15507       *)
   15508 	lt_use_gnu_ld_interface=yes
   15509 	;;
   15510     esac
   15511   fi
   15512 
   15513   if test "$lt_use_gnu_ld_interface" = yes; then
   15514     # If archive_cmds runs LD, not CC, wlarc should be empty
   15515     wlarc='${wl}'
   15516 
   15517     # Set some defaults for GNU ld with shared library support. These
   15518     # are reset later if shared libraries are not supported. Putting them
   15519     # here allows them to be overridden if necessary.
   15520     runpath_var=LD_RUN_PATH
   15521     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   15522     export_dynamic_flag_spec='${wl}--export-dynamic'
   15523     # ancient GNU ld didn't support --whole-archive et. al.
   15524     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   15525       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   15526     else
   15527       whole_archive_flag_spec=
   15528     fi
   15529     supports_anon_versioning=no
   15530     case `$LD -v 2>&1` in
   15531       *GNU\ gold*) supports_anon_versioning=yes ;;
   15532       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   15533       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   15534       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   15535       *\ 2.11.*) ;; # other 2.11 versions
   15536       *) supports_anon_versioning=yes ;;
   15537     esac
   15538 
   15539     # See if GNU ld supports shared libraries.
   15540     case $host_os in
   15541     aix[3-9]*)
   15542       # On AIX/PPC, the GNU linker is very broken
   15543       if test "$host_cpu" != ia64; then
   15544 	ld_shlibs=no
   15545 	cat <<_LT_EOF 1>&2
   15546 
   15547 *** Warning: the GNU linker, at least up to release 2.19, is reported
   15548 *** to be unable to reliably create shared libraries on AIX.
   15549 *** Therefore, libtool is disabling shared libraries support.  If you
   15550 *** really care for shared libraries, you may want to install binutils
   15551 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   15552 *** You will then need to restart the configuration process.
   15553 
   15554 _LT_EOF
   15555       fi
   15556       ;;
   15557 
   15558     amigaos*)
   15559       case $host_cpu in
   15560       powerpc)
   15561             # see comment about AmigaOS4 .so support
   15562             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   15563             archive_expsym_cmds=''
   15564         ;;
   15565       m68k)
   15566             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   15567             hardcode_libdir_flag_spec='-L$libdir'
   15568             hardcode_minus_L=yes
   15569         ;;
   15570       esac
   15571       ;;
   15572 
   15573     beos*)
   15574       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   15575 	allow_undefined_flag=unsupported
   15576 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   15577 	# support --undefined.  This deserves some investigation.  FIXME
   15578 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   15579       else
   15580 	ld_shlibs=no
   15581       fi
   15582       ;;
   15583 
   15584     cygwin* | mingw* | pw32* | cegcc*)
   15585       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   15586       # as there is no search path for DLLs.
   15587       hardcode_libdir_flag_spec='-L$libdir'
   15588       export_dynamic_flag_spec='${wl}--export-all-symbols'
   15589       allow_undefined_flag=unsupported
   15590       always_export_symbols=no
   15591       enable_shared_with_static_runtimes=yes
   15592       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   15593 
   15594       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   15595         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   15596 	# If the export-symbols file already is a .def file (1st line
   15597 	# is EXPORTS), use it as is; otherwise, prepend...
   15598 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   15599 	  cp $export_symbols $output_objdir/$soname.def;
   15600 	else
   15601 	  echo EXPORTS > $output_objdir/$soname.def;
   15602 	  cat $export_symbols >> $output_objdir/$soname.def;
   15603 	fi~
   15604 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   15605       else
   15606 	ld_shlibs=no
   15607       fi
   15608       ;;
   15609 
   15610     haiku*)
   15611       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   15612       link_all_deplibs=yes
   15613       ;;
   15614 
   15615     interix[3-9]*)
   15616       hardcode_direct=no
   15617       hardcode_shlibpath_var=no
   15618       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   15619       export_dynamic_flag_spec='${wl}-E'
   15620       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   15621       # Instead, shared libraries are loaded at an image base (0x10000000 by
   15622       # default) and relocated if they conflict, which is a slow very memory
   15623       # consuming and fragmenting process.  To avoid this, we pick a random,
   15624       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   15625       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   15626       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   15627       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   15628       ;;
   15629 
   15630     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   15631       tmp_diet=no
   15632       if test "$host_os" = linux-dietlibc; then
   15633 	case $cc_basename in
   15634 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   15635 	esac
   15636       fi
   15637       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   15638 	 && test "$tmp_diet" = no
   15639       then
   15640 	tmp_addflag=
   15641 	tmp_sharedflag='-shared'
   15642 	case $cc_basename,$host_cpu in
   15643         pgcc*)				# Portland Group C compiler
   15644 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
   15645 	  tmp_addflag=' $pic_flag'
   15646 	  ;;
   15647 	pgf77* | pgf90* | pgf95* | pgfortran*)
   15648 					# Portland Group f77 and f90 compilers
   15649 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
   15650 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   15651 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   15652 	  tmp_addflag=' -i_dynamic' ;;
   15653 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   15654 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   15655 	ifc* | ifort*)			# Intel Fortran compiler
   15656 	  tmp_addflag=' -nofor_main' ;;
   15657 	lf95*)				# Lahey Fortran 8.1
   15658 	  whole_archive_flag_spec=
   15659 	  tmp_sharedflag='--shared' ;;
   15660 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   15661 	  tmp_sharedflag='-qmkshrobj'
   15662 	  tmp_addflag= ;;
   15663 	nvcc*)	# Cuda Compiler Driver 2.2
   15664 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
   15665 	  compiler_needs_object=yes
   15666 	  ;;
   15667 	esac
   15668 	case `$CC -V 2>&1 | sed 5q` in
   15669 	*Sun\ C*)			# Sun C 5.9
   15670 	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
   15671 	  compiler_needs_object=yes
   15672 	  tmp_sharedflag='-G' ;;
   15673 	*Sun\ F*)			# Sun Fortran 8.3
   15674 	  tmp_sharedflag='-G' ;;
   15675 	esac
   15676 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   15677 
   15678         if test "x$supports_anon_versioning" = xyes; then
   15679           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   15680 	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   15681 	    echo "local: *; };" >> $output_objdir/$libname.ver~
   15682 	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   15683         fi
   15684 
   15685 	case $cc_basename in
   15686 	xlf* | bgf* | bgxlf* | mpixlf*)
   15687 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   15688 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   15689 	  hardcode_libdir_flag_spec=
   15690 	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
   15691 	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
   15692 	  if test "x$supports_anon_versioning" = xyes; then
   15693 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   15694 	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   15695 	      echo "local: *; };" >> $output_objdir/$libname.ver~
   15696 	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   15697 	  fi
   15698 	  ;;
   15699 	esac
   15700       else
   15701         ld_shlibs=no
   15702       fi
   15703       ;;
   15704 
   15705     netbsd*)
   15706       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   15707 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   15708 	wlarc=
   15709       else
   15710 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   15711 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   15712       fi
   15713       ;;
   15714 
   15715     solaris*)
   15716       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   15717 	ld_shlibs=no
   15718 	cat <<_LT_EOF 1>&2
   15719 
   15720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   15721 *** create shared libraries on Solaris systems.  Therefore, libtool
   15722 *** is disabling shared libraries support.  We urge you to upgrade GNU
   15723 *** binutils to release 2.9.1 or newer.  Another option is to modify
   15724 *** your PATH or compiler configuration so that the native linker is
   15725 *** used, and then restart.
   15726 
   15727 _LT_EOF
   15728       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   15729 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   15730 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   15731       else
   15732 	ld_shlibs=no
   15733       fi
   15734       ;;
   15735 
   15736     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   15737       case `$LD -v 2>&1` in
   15738         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   15739 	ld_shlibs=no
   15740 	cat <<_LT_EOF 1>&2
   15741 
   15742 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
   15743 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   15744 *** is disabling shared libraries support.  We urge you to upgrade GNU
   15745 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   15746 *** your PATH or compiler configuration so that the native linker is
   15747 *** used, and then restart.
   15748 
   15749 _LT_EOF
   15750 	;;
   15751 	*)
   15752 	  # For security reasons, it is highly recommended that you always
   15753 	  # use absolute paths for naming shared libraries, and exclude the
   15754 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   15755 	  # requires that you compile everything twice, which is a pain.
   15756 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   15757 	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   15758 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   15759 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   15760 	  else
   15761 	    ld_shlibs=no
   15762 	  fi
   15763 	;;
   15764       esac
   15765       ;;
   15766 
   15767     sunos4*)
   15768       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   15769       wlarc=
   15770       hardcode_direct=yes
   15771       hardcode_shlibpath_var=no
   15772       ;;
   15773 
   15774     *)
   15775       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   15776 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   15777 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   15778       else
   15779 	ld_shlibs=no
   15780       fi
   15781       ;;
   15782     esac
   15783 
   15784     if test "$ld_shlibs" = no; then
   15785       runpath_var=
   15786       hardcode_libdir_flag_spec=
   15787       export_dynamic_flag_spec=
   15788       whole_archive_flag_spec=
   15789     fi
   15790   else
   15791     # PORTME fill in a description of your system's linker (not GNU ld)
   15792     case $host_os in
   15793     aix3*)
   15794       allow_undefined_flag=unsupported
   15795       always_export_symbols=yes
   15796       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
   15797       # Note: this linker hardcodes the directories in LIBPATH if there
   15798       # are no directories specified by -L.
   15799       hardcode_minus_L=yes
   15800       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
   15801 	# Neither direct hardcoding nor static linking is supported with a
   15802 	# broken collect2.
   15803 	hardcode_direct=unsupported
   15804       fi
   15805       ;;
   15806 
   15807     aix[4-9]*)
   15808       if test "$host_cpu" = ia64; then
   15809 	# On IA64, the linker does run time linking by default, so we don't
   15810 	# have to do anything special.
   15811 	aix_use_runtimelinking=no
   15812 	exp_sym_flag='-Bexport'
   15813 	no_entry_flag=""
   15814       else
   15815 	# If we're using GNU nm, then we don't want the "-C" option.
   15816 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   15817 	# Also, AIX nm treats weak defined symbols like other global
   15818 	# defined symbols, whereas GNU nm marks them as "W".
   15819 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   15820 	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
   15821 	else
   15822 	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
   15823 	fi
   15824 	aix_use_runtimelinking=no
   15825 
   15826 	# Test if we are trying to use run time linking or normal
   15827 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   15828 	# need to do runtime linking.
   15829 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   15830 	  for ld_flag in $LDFLAGS; do
   15831 	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   15832 	    aix_use_runtimelinking=yes
   15833 	    break
   15834 	  fi
   15835 	  done
   15836 	  ;;
   15837 	esac
   15838 
   15839 	exp_sym_flag='-bexport'
   15840 	no_entry_flag='-bnoentry'
   15841       fi
   15842 
   15843       # When large executables or shared objects are built, AIX ld can
   15844       # have problems creating the table of contents.  If linking a library
   15845       # or program results in "error TOC overflow" add -mminimal-toc to
   15846       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   15847       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   15848 
   15849       archive_cmds=''
   15850       hardcode_direct=yes
   15851       hardcode_direct_absolute=yes
   15852       hardcode_libdir_separator=':'
   15853       link_all_deplibs=yes
   15854       file_list_spec='${wl}-f,'
   15855 
   15856       if test "$GCC" = yes; then
   15857 	case $host_os in aix4.[012]|aix4.[012].*)
   15858 	# We only want to do this on AIX 4.2 and lower, the check
   15859 	# below for broken collect2 doesn't work under 4.3+
   15860 	  collect2name=`${CC} -print-prog-name=collect2`
   15861 	  if test -f "$collect2name" &&
   15862 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   15863 	  then
   15864 	  # We have reworked collect2
   15865 	  :
   15866 	  else
   15867 	  # We have old collect2
   15868 	  hardcode_direct=unsupported
   15869 	  # It fails to find uninstalled libraries when the uninstalled
   15870 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   15871 	  # to unsupported forces relinking
   15872 	  hardcode_minus_L=yes
   15873 	  hardcode_libdir_flag_spec='-L$libdir'
   15874 	  hardcode_libdir_separator=
   15875 	  fi
   15876 	  ;;
   15877 	esac
   15878 	shared_flag='-shared'
   15879 	if test "$aix_use_runtimelinking" = yes; then
   15880 	  shared_flag="$shared_flag "'${wl}-G'
   15881 	fi
   15882       else
   15883 	# not using gcc
   15884 	if test "$host_cpu" = ia64; then
   15885 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   15886 	# chokes on -Wl,-G. The following line is correct:
   15887 	  shared_flag='-G'
   15888 	else
   15889 	  if test "$aix_use_runtimelinking" = yes; then
   15890 	    shared_flag='${wl}-G'
   15891 	  else
   15892 	    shared_flag='${wl}-bM:SRE'
   15893 	  fi
   15894 	fi
   15895       fi
   15896 
   15897       export_dynamic_flag_spec='${wl}-bexpall'
   15898       # It seems that -bexpall does not export symbols beginning with
   15899       # underscore (_), so it is better to generate a list of symbols to export.
   15900       always_export_symbols=yes
   15901       if test "$aix_use_runtimelinking" = yes; then
   15902 	# Warning - without using the other runtime loading flags (-brtl),
   15903 	# -berok will link without error, but may produce a broken library.
   15904 	allow_undefined_flag='-berok'
   15905         # Determine the default libpath from the value encoded in an
   15906         # empty executable.
   15907         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15908 /* end confdefs.h.  */
   15909 
   15910 int
   15911 main ()
   15912 {
   15913 
   15914   ;
   15915   return 0;
   15916 }
   15917 _ACEOF
   15918 if ac_fn_c_try_link "$LINENO"; then :
   15919 
   15920 lt_aix_libpath_sed='
   15921     /Import File Strings/,/^$/ {
   15922 	/^0/ {
   15923 	    s/^0  *\(.*\)$/\1/
   15924 	    p
   15925 	}
   15926     }'
   15927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   15928 # Check for a 64-bit object if we didn't find anything.
   15929 if test -z "$aix_libpath"; then
   15930   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   15931 fi
   15932 fi
   15933 rm -f core conftest.err conftest.$ac_objext \
   15934     conftest$ac_exeext conftest.$ac_ext
   15935 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   15936 
   15937         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   15938         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   15939       else
   15940 	if test "$host_cpu" = ia64; then
   15941 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
   15942 	  allow_undefined_flag="-z nodefs"
   15943 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
   15944 	else
   15945 	 # Determine the default libpath from the value encoded in an
   15946 	 # empty executable.
   15947 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15948 /* end confdefs.h.  */
   15949 
   15950 int
   15951 main ()
   15952 {
   15953 
   15954   ;
   15955   return 0;
   15956 }
   15957 _ACEOF
   15958 if ac_fn_c_try_link "$LINENO"; then :
   15959 
   15960 lt_aix_libpath_sed='
   15961     /Import File Strings/,/^$/ {
   15962 	/^0/ {
   15963 	    s/^0  *\(.*\)$/\1/
   15964 	    p
   15965 	}
   15966     }'
   15967 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   15968 # Check for a 64-bit object if we didn't find anything.
   15969 if test -z "$aix_libpath"; then
   15970   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   15971 fi
   15972 fi
   15973 rm -f core conftest.err conftest.$ac_objext \
   15974     conftest$ac_exeext conftest.$ac_ext
   15975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   15976 
   15977 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   15978 	  # Warning - without using the other run time loading flags,
   15979 	  # -berok will link without error, but may produce a broken library.
   15980 	  no_undefined_flag=' ${wl}-bernotok'
   15981 	  allow_undefined_flag=' ${wl}-berok'
   15982 	  if test "$with_gnu_ld" = yes; then
   15983 	    # We only use this code for GNU lds that support --whole-archive.
   15984 	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   15985 	  else
   15986 	    # Exported symbols can be pulled into shared objects from archives
   15987 	    whole_archive_flag_spec='$convenience'
   15988 	  fi
   15989 	  archive_cmds_need_lc=yes
   15990 	  # This is similar to how AIX traditionally builds its shared libraries.
   15991 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   15992 	fi
   15993       fi
   15994       ;;
   15995 
   15996     amigaos*)
   15997       case $host_cpu in
   15998       powerpc)
   15999             # see comment about AmigaOS4 .so support
   16000             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   16001             archive_expsym_cmds=''
   16002         ;;
   16003       m68k)
   16004             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   16005             hardcode_libdir_flag_spec='-L$libdir'
   16006             hardcode_minus_L=yes
   16007         ;;
   16008       esac
   16009       ;;
   16010 
   16011     bsdi[45]*)
   16012       export_dynamic_flag_spec=-rdynamic
   16013       ;;
   16014 
   16015     cygwin* | mingw* | pw32* | cegcc*)
   16016       # When not using gcc, we currently assume that we are using
   16017       # Microsoft Visual C++.
   16018       # hardcode_libdir_flag_spec is actually meaningless, as there is
   16019       # no search path for DLLs.
   16020       hardcode_libdir_flag_spec=' '
   16021       allow_undefined_flag=unsupported
   16022       # Tell ltmain to make .lib files, not .a files.
   16023       libext=lib
   16024       # Tell ltmain to make .dll files, not .so files.
   16025       shrext_cmds=".dll"
   16026       # FIXME: Setting linknames here is a bad hack.
   16027       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   16028       # The linker will automatically build a .lib file if we build a DLL.
   16029       old_archive_from_new_cmds='true'
   16030       # FIXME: Should let the user specify the lib program.
   16031       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   16032       fix_srcfile_path='`cygpath -w "$srcfile"`'
   16033       enable_shared_with_static_runtimes=yes
   16034       ;;
   16035 
   16036     darwin* | rhapsody*)
   16037 
   16038 
   16039   archive_cmds_need_lc=no
   16040   hardcode_direct=no
   16041   hardcode_automatic=yes
   16042   hardcode_shlibpath_var=unsupported
   16043   if test "$lt_cv_ld_force_load" = "yes"; then
   16044     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
   16045   else
   16046     whole_archive_flag_spec=''
   16047   fi
   16048   link_all_deplibs=yes
   16049   allow_undefined_flag="$_lt_dar_allow_undefined"
   16050   case $cc_basename in
   16051      ifort*) _lt_dar_can_shared=yes ;;
   16052      *) _lt_dar_can_shared=$GCC ;;
   16053   esac
   16054   if test "$_lt_dar_can_shared" = "yes"; then
   16055     output_verbose_link_cmd=func_echo_all
   16056     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
   16057     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   16058     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
   16059     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
   16060 
   16061   else
   16062   ld_shlibs=no
   16063   fi
   16064 
   16065       ;;
   16066 
   16067     dgux*)
   16068       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16069       hardcode_libdir_flag_spec='-L$libdir'
   16070       hardcode_shlibpath_var=no
   16071       ;;
   16072 
   16073     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   16074     # support.  Future versions do this automatically, but an explicit c++rt0.o
   16075     # does not break anything, and helps significantly (at the cost of a little
   16076     # extra space).
   16077     freebsd2.2*)
   16078       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   16079       hardcode_libdir_flag_spec='-R$libdir'
   16080       hardcode_direct=yes
   16081       hardcode_shlibpath_var=no
   16082       ;;
   16083 
   16084     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   16085     freebsd2.*)
   16086       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   16087       hardcode_direct=yes
   16088       hardcode_minus_L=yes
   16089       hardcode_shlibpath_var=no
   16090       ;;
   16091 
   16092     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   16093     freebsd* | dragonfly*)
   16094       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
   16095       hardcode_libdir_flag_spec='-R$libdir'
   16096       hardcode_direct=yes
   16097       hardcode_shlibpath_var=no
   16098       ;;
   16099 
   16100     hpux9*)
   16101       if test "$GCC" = yes; then
   16102 	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   16103       else
   16104 	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   16105       fi
   16106       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   16107       hardcode_libdir_separator=:
   16108       hardcode_direct=yes
   16109 
   16110       # hardcode_minus_L: Not really in the search PATH,
   16111       # but as the default location of the library.
   16112       hardcode_minus_L=yes
   16113       export_dynamic_flag_spec='${wl}-E'
   16114       ;;
   16115 
   16116     hpux10*)
   16117       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
   16118 	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   16119       else
   16120 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   16121       fi
   16122       if test "$with_gnu_ld" = no; then
   16123 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   16124 	hardcode_libdir_flag_spec_ld='+b $libdir'
   16125 	hardcode_libdir_separator=:
   16126 	hardcode_direct=yes
   16127 	hardcode_direct_absolute=yes
   16128 	export_dynamic_flag_spec='${wl}-E'
   16129 	# hardcode_minus_L: Not really in the search PATH,
   16130 	# but as the default location of the library.
   16131 	hardcode_minus_L=yes
   16132       fi
   16133       ;;
   16134 
   16135     hpux11*)
   16136       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
   16137 	case $host_cpu in
   16138 	hppa*64*)
   16139 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   16140 	  ;;
   16141 	ia64*)
   16142 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   16143 	  ;;
   16144 	*)
   16145 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   16146 	  ;;
   16147 	esac
   16148       else
   16149 	case $host_cpu in
   16150 	hppa*64*)
   16151 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   16152 	  ;;
   16153 	ia64*)
   16154 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   16155 	  ;;
   16156 	*)
   16157 
   16158 	  # Older versions of the 11.00 compiler do not understand -b yet
   16159 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   16160 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   16161 $as_echo_n "checking if $CC understands -b... " >&6; }
   16162 if test "${lt_cv_prog_compiler__b+set}" = set; then :
   16163   $as_echo_n "(cached) " >&6
   16164 else
   16165   lt_cv_prog_compiler__b=no
   16166    save_LDFLAGS="$LDFLAGS"
   16167    LDFLAGS="$LDFLAGS -b"
   16168    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   16169    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   16170      # The linker can only warn and ignore the option if not recognized
   16171      # So say no if there are warnings
   16172      if test -s conftest.err; then
   16173        # Append any errors to the config.log.
   16174        cat conftest.err 1>&5
   16175        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   16176        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   16177        if diff conftest.exp conftest.er2 >/dev/null; then
   16178          lt_cv_prog_compiler__b=yes
   16179        fi
   16180      else
   16181        lt_cv_prog_compiler__b=yes
   16182      fi
   16183    fi
   16184    $RM -r conftest*
   16185    LDFLAGS="$save_LDFLAGS"
   16186 
   16187 fi
   16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   16189 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   16190 
   16191 if test x"$lt_cv_prog_compiler__b" = xyes; then
   16192     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   16193 else
   16194     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   16195 fi
   16196 
   16197 	  ;;
   16198 	esac
   16199       fi
   16200       if test "$with_gnu_ld" = no; then
   16201 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   16202 	hardcode_libdir_separator=:
   16203 
   16204 	case $host_cpu in
   16205 	hppa*64*|ia64*)
   16206 	  hardcode_direct=no
   16207 	  hardcode_shlibpath_var=no
   16208 	  ;;
   16209 	*)
   16210 	  hardcode_direct=yes
   16211 	  hardcode_direct_absolute=yes
   16212 	  export_dynamic_flag_spec='${wl}-E'
   16213 
   16214 	  # hardcode_minus_L: Not really in the search PATH,
   16215 	  # but as the default location of the library.
   16216 	  hardcode_minus_L=yes
   16217 	  ;;
   16218 	esac
   16219       fi
   16220       ;;
   16221 
   16222     irix5* | irix6* | nonstopux*)
   16223       if test "$GCC" = yes; then
   16224 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   16225 	# Try to use the -exported_symbol ld option, if it does not
   16226 	# work, assume that -exports_file does not work either and
   16227 	# implicitly export all symbols.
   16228         save_LDFLAGS="$LDFLAGS"
   16229         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
   16230         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16231 /* end confdefs.h.  */
   16232 int foo(void) {}
   16233 _ACEOF
   16234 if ac_fn_c_try_link "$LINENO"; then :
   16235   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
   16236 
   16237 fi
   16238 rm -f core conftest.err conftest.$ac_objext \
   16239     conftest$ac_exeext conftest.$ac_ext
   16240         LDFLAGS="$save_LDFLAGS"
   16241       else
   16242 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
   16243 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
   16244       fi
   16245       archive_cmds_need_lc='no'
   16246       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   16247       hardcode_libdir_separator=:
   16248       inherit_rpath=yes
   16249       link_all_deplibs=yes
   16250       ;;
   16251 
   16252     netbsd*)
   16253       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   16254 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   16255       else
   16256 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   16257       fi
   16258       hardcode_libdir_flag_spec='-R$libdir'
   16259       hardcode_direct=yes
   16260       hardcode_shlibpath_var=no
   16261       ;;
   16262 
   16263     newsos6)
   16264       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16265       hardcode_direct=yes
   16266       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   16267       hardcode_libdir_separator=:
   16268       hardcode_shlibpath_var=no
   16269       ;;
   16270 
   16271     *nto* | *qnx*)
   16272       ;;
   16273 
   16274     openbsd*)
   16275       if test -f /usr/libexec/ld.so; then
   16276 	hardcode_direct=yes
   16277 	hardcode_shlibpath_var=no
   16278 	hardcode_direct_absolute=yes
   16279 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   16280 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   16281 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
   16282 	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   16283 	  export_dynamic_flag_spec='${wl}-E'
   16284 	else
   16285 	  case $host_os in
   16286 	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   16287 	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   16288 	     hardcode_libdir_flag_spec='-R$libdir'
   16289 	     ;;
   16290 	   *)
   16291 	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   16292 	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   16293 	     ;;
   16294 	  esac
   16295 	fi
   16296       else
   16297 	ld_shlibs=no
   16298       fi
   16299       ;;
   16300 
   16301     os2*)
   16302       hardcode_libdir_flag_spec='-L$libdir'
   16303       hardcode_minus_L=yes
   16304       allow_undefined_flag=unsupported
   16305       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
   16306       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   16307       ;;
   16308 
   16309     osf3*)
   16310       if test "$GCC" = yes; then
   16311 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   16312 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   16313       else
   16314 	allow_undefined_flag=' -expect_unresolved \*'
   16315 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
   16316       fi
   16317       archive_cmds_need_lc='no'
   16318       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   16319       hardcode_libdir_separator=:
   16320       ;;
   16321 
   16322     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   16323       if test "$GCC" = yes; then
   16324 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   16325 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   16326 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   16327       else
   16328 	allow_undefined_flag=' -expect_unresolved \*'
   16329 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
   16330 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
   16331 	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
   16332 
   16333 	# Both c and cxx compiler support -rpath directly
   16334 	hardcode_libdir_flag_spec='-rpath $libdir'
   16335       fi
   16336       archive_cmds_need_lc='no'
   16337       hardcode_libdir_separator=:
   16338       ;;
   16339 
   16340     solaris*)
   16341       no_undefined_flag=' -z defs'
   16342       if test "$GCC" = yes; then
   16343 	wlarc='${wl}'
   16344 	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   16345 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   16346 	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   16347       else
   16348 	case `$CC -V 2>&1` in
   16349 	*"Compilers 5.0"*)
   16350 	  wlarc=''
   16351 	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16352 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   16353 	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   16354 	  ;;
   16355 	*)
   16356 	  wlarc='${wl}'
   16357 	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   16358 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   16359 	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   16360 	  ;;
   16361 	esac
   16362       fi
   16363       hardcode_libdir_flag_spec='-R$libdir'
   16364       hardcode_shlibpath_var=no
   16365       case $host_os in
   16366       solaris2.[0-5] | solaris2.[0-5].*) ;;
   16367       *)
   16368 	# The compiler driver will combine and reorder linker options,
   16369 	# but understands `-z linker_flag'.  GCC discards it without `$wl',
   16370 	# but is careful enough not to reorder.
   16371 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   16372 	if test "$GCC" = yes; then
   16373 	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
   16374 	else
   16375 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   16376 	fi
   16377 	;;
   16378       esac
   16379       link_all_deplibs=yes
   16380       ;;
   16381 
   16382     sunos4*)
   16383       if test "x$host_vendor" = xsequent; then
   16384 	# Use $CC to link under sequent, because it throws in some extra .o
   16385 	# files that make .init and .fini sections work.
   16386 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   16387       else
   16388 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   16389       fi
   16390       hardcode_libdir_flag_spec='-L$libdir'
   16391       hardcode_direct=yes
   16392       hardcode_minus_L=yes
   16393       hardcode_shlibpath_var=no
   16394       ;;
   16395 
   16396     sysv4)
   16397       case $host_vendor in
   16398 	sni)
   16399 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16400 	  hardcode_direct=yes # is this really true???
   16401 	;;
   16402 	siemens)
   16403 	  ## LD is ld it makes a PLAMLIB
   16404 	  ## CC just makes a GrossModule.
   16405 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   16406 	  reload_cmds='$CC -r -o $output$reload_objs'
   16407 	  hardcode_direct=no
   16408         ;;
   16409 	motorola)
   16410 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16411 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   16412 	;;
   16413       esac
   16414       runpath_var='LD_RUN_PATH'
   16415       hardcode_shlibpath_var=no
   16416       ;;
   16417 
   16418     sysv4.3*)
   16419       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16420       hardcode_shlibpath_var=no
   16421       export_dynamic_flag_spec='-Bexport'
   16422       ;;
   16423 
   16424     sysv4*MP*)
   16425       if test -d /usr/nec; then
   16426 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16427 	hardcode_shlibpath_var=no
   16428 	runpath_var=LD_RUN_PATH
   16429 	hardcode_runpath_var=yes
   16430 	ld_shlibs=yes
   16431       fi
   16432       ;;
   16433 
   16434     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   16435       no_undefined_flag='${wl}-z,text'
   16436       archive_cmds_need_lc=no
   16437       hardcode_shlibpath_var=no
   16438       runpath_var='LD_RUN_PATH'
   16439 
   16440       if test "$GCC" = yes; then
   16441 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   16442 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   16443       else
   16444 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   16445 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   16446       fi
   16447       ;;
   16448 
   16449     sysv5* | sco3.2v5* | sco5v6*)
   16450       # Note: We can NOT use -z defs as we might desire, because we do not
   16451       # link with -lc, and that would cause any symbols used from libc to
   16452       # always be unresolved, which means just about no library would
   16453       # ever link correctly.  If we're not using GNU ld we use -z text
   16454       # though, which does catch some bad symbols but isn't as heavy-handed
   16455       # as -z defs.
   16456       no_undefined_flag='${wl}-z,text'
   16457       allow_undefined_flag='${wl}-z,nodefs'
   16458       archive_cmds_need_lc=no
   16459       hardcode_shlibpath_var=no
   16460       hardcode_libdir_flag_spec='${wl}-R,$libdir'
   16461       hardcode_libdir_separator=':'
   16462       link_all_deplibs=yes
   16463       export_dynamic_flag_spec='${wl}-Bexport'
   16464       runpath_var='LD_RUN_PATH'
   16465 
   16466       if test "$GCC" = yes; then
   16467 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   16468 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   16469       else
   16470 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   16471 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   16472       fi
   16473       ;;
   16474 
   16475     uts4*)
   16476       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16477       hardcode_libdir_flag_spec='-L$libdir'
   16478       hardcode_shlibpath_var=no
   16479       ;;
   16480 
   16481     *)
   16482       ld_shlibs=no
   16483       ;;
   16484     esac
   16485 
   16486     if test x$host_vendor = xsni; then
   16487       case $host in
   16488       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   16489 	export_dynamic_flag_spec='${wl}-Blargedynsym'
   16490 	;;
   16491       esac
   16492     fi
   16493   fi
   16494 
   16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   16496 $as_echo "$ld_shlibs" >&6; }
   16497 test "$ld_shlibs" = no && can_build_shared=no
   16498 
   16499 with_gnu_ld=$with_gnu_ld
   16500 
   16501 
   16502 
   16503 
   16504 
   16505 
   16506 
   16507 
   16508 
   16509 
   16510 
   16511 
   16512 
   16513 
   16514 
   16515 #
   16516 # Do we need to explicitly link libc?
   16517 #
   16518 case "x$archive_cmds_need_lc" in
   16519 x|xyes)
   16520   # Assume -lc should be added
   16521   archive_cmds_need_lc=yes
   16522 
   16523   if test "$enable_shared" = yes && test "$GCC" = yes; then
   16524     case $archive_cmds in
   16525     *'~'*)
   16526       # FIXME: we may have to deal with multi-command sequences.
   16527       ;;
   16528     '$CC '*)
   16529       # Test whether the compiler implicitly links with -lc since on some
   16530       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   16531       # to ld, don't add -lc before -lgcc.
   16532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   16533 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   16534 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
   16535   $as_echo_n "(cached) " >&6
   16536 else
   16537   $RM conftest*
   16538 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   16539 
   16540 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   16541   (eval $ac_compile) 2>&5
   16542   ac_status=$?
   16543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16544   test $ac_status = 0; } 2>conftest.err; then
   16545 	  soname=conftest
   16546 	  lib=conftest
   16547 	  libobjs=conftest.$ac_objext
   16548 	  deplibs=
   16549 	  wl=$lt_prog_compiler_wl
   16550 	  pic_flag=$lt_prog_compiler_pic
   16551 	  compiler_flags=-v
   16552 	  linker_flags=-v
   16553 	  verstring=
   16554 	  output_objdir=.
   16555 	  libname=conftest
   16556 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   16557 	  allow_undefined_flag=
   16558 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   16559   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   16560   ac_status=$?
   16561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16562   test $ac_status = 0; }
   16563 	  then
   16564 	    lt_cv_archive_cmds_need_lc=no
   16565 	  else
   16566 	    lt_cv_archive_cmds_need_lc=yes
   16567 	  fi
   16568 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   16569 	else
   16570 	  cat conftest.err 1>&5
   16571 	fi
   16572 	$RM conftest*
   16573 
   16574 fi
   16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   16576 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   16577       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   16578       ;;
   16579     esac
   16580   fi
   16581   ;;
   16582 esac
   16583 
   16584 
   16585 
   16586 
   16587 
   16588 
   16589 
   16590 
   16591 
   16592 
   16593 
   16594 
   16595 
   16596 
   16597 
   16598 
   16599 
   16600 
   16601 
   16602 
   16603 
   16604 
   16605 
   16606 
   16607 
   16608 
   16609 
   16610 
   16611 
   16612 
   16613 
   16614 
   16615 
   16616 
   16617 
   16618 
   16619 
   16620 
   16621 
   16622 
   16623 
   16624 
   16625 
   16626 
   16627 
   16628 
   16629 
   16630 
   16631 
   16632 
   16633 
   16634 
   16635 
   16636 
   16637 
   16638 
   16639 
   16640 
   16641 
   16642 
   16643 
   16644 
   16645 
   16646 
   16647 
   16648 
   16649 
   16650 
   16651 
   16652 
   16653 
   16654 
   16655 
   16656 
   16657 
   16658 
   16659 
   16660 
   16661 
   16662 
   16663 
   16664 
   16665 
   16666 
   16667 
   16668 
   16669 
   16670 
   16671 
   16672 
   16673 
   16674 
   16675 
   16676 
   16677 
   16678 
   16679 
   16680 
   16681 
   16682 
   16683 
   16684 
   16685 
   16686 
   16687 
   16688 
   16689 
   16690 
   16691 
   16692 
   16693 
   16694 
   16695 
   16696 
   16697 
   16698 
   16699 
   16700 
   16701 
   16702 
   16703 
   16704 
   16705 
   16706 
   16707 
   16708 
   16709 
   16710 
   16711 
   16712 
   16713 
   16714 
   16715 
   16716 
   16717 
   16718 
   16719 
   16720 
   16721 
   16722 
   16723 
   16724 
   16725 
   16726 
   16727 
   16728 
   16729 
   16730 
   16731 
   16732 
   16733 
   16734 
   16735 
   16736 
   16737 
   16738 
   16739 
   16740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   16741 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   16742 
   16743 if test "$GCC" = yes; then
   16744   case $host_os in
   16745     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
   16746     *) lt_awk_arg="/^libraries:/" ;;
   16747   esac
   16748   case $host_os in
   16749     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
   16750     *) lt_sed_strip_eq="s,=/,/,g" ;;
   16751   esac
   16752   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   16753   case $lt_search_path_spec in
   16754   *\;*)
   16755     # if the path contains ";" then we assume it to be the separator
   16756     # otherwise default to the standard path separator (i.e. ":") - it is
   16757     # assumed that no part of a normal pathname contains ";" but that should
   16758     # okay in the real world where ";" in dirpaths is itself problematic.
   16759     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   16760     ;;
   16761   *)
   16762     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   16763     ;;
   16764   esac
   16765   # Ok, now we have the path, separated by spaces, we can step through it
   16766   # and add multilib dir if necessary.
   16767   lt_tmp_lt_search_path_spec=
   16768   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   16769   for lt_sys_path in $lt_search_path_spec; do
   16770     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
   16771       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
   16772     else
   16773       test -d "$lt_sys_path" && \
   16774 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   16775     fi
   16776   done
   16777   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   16778 BEGIN {RS=" "; FS="/|\n";} {
   16779   lt_foo="";
   16780   lt_count=0;
   16781   for (lt_i = NF; lt_i > 0; lt_i--) {
   16782     if ($lt_i != "" && $lt_i != ".") {
   16783       if ($lt_i == "..") {
   16784         lt_count++;
   16785       } else {
   16786         if (lt_count == 0) {
   16787           lt_foo="/" $lt_i lt_foo;
   16788         } else {
   16789           lt_count--;
   16790         }
   16791       }
   16792     }
   16793   }
   16794   if (lt_foo != "") { lt_freq[lt_foo]++; }
   16795   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   16796 }'`
   16797   # AWK program above erroneously prepends '/' to C:/dos/paths
   16798   # for these hosts.
   16799   case $host_os in
   16800     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   16801       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
   16802   esac
   16803   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   16804 else
   16805   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   16806 fi
   16807 library_names_spec=
   16808 libname_spec='lib$name'
   16809 soname_spec=
   16810 shrext_cmds=".so"
   16811 postinstall_cmds=
   16812 postuninstall_cmds=
   16813 finish_cmds=
   16814 finish_eval=
   16815 shlibpath_var=
   16816 shlibpath_overrides_runpath=unknown
   16817 version_type=none
   16818 dynamic_linker="$host_os ld.so"
   16819 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   16820 need_lib_prefix=unknown
   16821 hardcode_into_libs=no
   16822 
   16823 # when you set need_version to no, make sure it does not cause -set_version
   16824 # flags to be left without arguments
   16825 need_version=unknown
   16826 
   16827 case $host_os in
   16828 aix3*)
   16829   version_type=linux
   16830   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   16831   shlibpath_var=LIBPATH
   16832 
   16833   # AIX 3 has no versioning support, so we append a major version to the name.
   16834   soname_spec='${libname}${release}${shared_ext}$major'
   16835   ;;
   16836 
   16837 aix[4-9]*)
   16838   version_type=linux
   16839   need_lib_prefix=no
   16840   need_version=no
   16841   hardcode_into_libs=yes
   16842   if test "$host_cpu" = ia64; then
   16843     # AIX 5 supports IA64
   16844     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   16845     shlibpath_var=LD_LIBRARY_PATH
   16846   else
   16847     # With GCC up to 2.95.x, collect2 would create an import file
   16848     # for dependence libraries.  The import file would start with
   16849     # the line `#! .'.  This would cause the generated library to
   16850     # depend on `.', always an invalid library.  This was fixed in
   16851     # development snapshots of GCC prior to 3.0.
   16852     case $host_os in
   16853       aix4 | aix4.[01] | aix4.[01].*)
   16854       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   16855 	   echo ' yes '
   16856 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
   16857 	:
   16858       else
   16859 	can_build_shared=no
   16860       fi
   16861       ;;
   16862     esac
   16863     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   16864     # soname into executable. Probably we can add versioning support to
   16865     # collect2, so additional links can be useful in future.
   16866     if test "$aix_use_runtimelinking" = yes; then
   16867       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   16868       # instead of lib<name>.a to let people know that these are not
   16869       # typical AIX shared libraries.
   16870       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   16871     else
   16872       # We preserve .a as extension for shared libraries through AIX4.2
   16873       # and later when we are not doing run time linking.
   16874       library_names_spec='${libname}${release}.a $libname.a'
   16875       soname_spec='${libname}${release}${shared_ext}$major'
   16876     fi
   16877     shlibpath_var=LIBPATH
   16878   fi
   16879   ;;
   16880 
   16881 amigaos*)
   16882   case $host_cpu in
   16883   powerpc)
   16884     # Since July 2007 AmigaOS4 officially supports .so libraries.
   16885     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   16886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   16887     ;;
   16888   m68k)
   16889     library_names_spec='$libname.ixlibrary $libname.a'
   16890     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   16891     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
   16892     ;;
   16893   esac
   16894   ;;
   16895 
   16896 beos*)
   16897   library_names_spec='${libname}${shared_ext}'
   16898   dynamic_linker="$host_os ld.so"
   16899   shlibpath_var=LIBRARY_PATH
   16900   ;;
   16901 
   16902 bsdi[45]*)
   16903   version_type=linux
   16904   need_version=no
   16905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   16906   soname_spec='${libname}${release}${shared_ext}$major'
   16907   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   16908   shlibpath_var=LD_LIBRARY_PATH
   16909   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   16910   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   16911   # the default ld.so.conf also contains /usr/contrib/lib and
   16912   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   16913   # libtool to hard-code these into programs
   16914   ;;
   16915 
   16916 cygwin* | mingw* | pw32* | cegcc*)
   16917   version_type=windows
   16918   shrext_cmds=".dll"
   16919   need_version=no
   16920   need_lib_prefix=no
   16921 
   16922   case $GCC,$host_os in
   16923   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
   16924     library_names_spec='$libname.dll.a'
   16925     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   16926     postinstall_cmds='base_file=`basename \${file}`~
   16927       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
   16928       dldir=$destdir/`dirname \$dlpath`~
   16929       test -d \$dldir || mkdir -p \$dldir~
   16930       $install_prog $dir/$dlname \$dldir/$dlname~
   16931       chmod a+x \$dldir/$dlname~
   16932       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   16933         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   16934       fi'
   16935     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   16936       dlpath=$dir/\$dldll~
   16937        $RM \$dlpath'
   16938     shlibpath_overrides_runpath=yes
   16939 
   16940     case $host_os in
   16941     cygwin*)
   16942       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   16943       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   16944 
   16945       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   16946       ;;
   16947     mingw* | cegcc*)
   16948       # MinGW DLLs use traditional 'lib' prefix
   16949       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   16950       ;;
   16951     pw32*)
   16952       # pw32 DLLs use 'pw' prefix rather than 'lib'
   16953       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   16954       ;;
   16955     esac
   16956     ;;
   16957 
   16958   *)
   16959     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   16960     ;;
   16961   esac
   16962   dynamic_linker='Win32 ld.exe'
   16963   # FIXME: first we should search . and the directory the executable is in
   16964   shlibpath_var=PATH
   16965   ;;
   16966 
   16967 darwin* | rhapsody*)
   16968   dynamic_linker="$host_os dyld"
   16969   version_type=darwin
   16970   need_lib_prefix=no
   16971   need_version=no
   16972   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   16973   soname_spec='${libname}${release}${major}$shared_ext'
   16974   shlibpath_overrides_runpath=yes
   16975   shlibpath_var=DYLD_LIBRARY_PATH
   16976   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   16977 
   16978   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   16979   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   16980   ;;
   16981 
   16982 dgux*)
   16983   version_type=linux
   16984   need_lib_prefix=no
   16985   need_version=no
   16986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   16987   soname_spec='${libname}${release}${shared_ext}$major'
   16988   shlibpath_var=LD_LIBRARY_PATH
   16989   ;;
   16990 
   16991 freebsd* | dragonfly*)
   16992   # DragonFly does not have aout.  When/if they implement a new
   16993   # versioning mechanism, adjust this.
   16994   if test -x /usr/bin/objformat; then
   16995     objformat=`/usr/bin/objformat`
   16996   else
   16997     case $host_os in
   16998     freebsd[23].*) objformat=aout ;;
   16999     *) objformat=elf ;;
   17000     esac
   17001   fi
   17002   version_type=freebsd-$objformat
   17003   case $version_type in
   17004     freebsd-elf*)
   17005       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   17006       need_version=no
   17007       need_lib_prefix=no
   17008       ;;
   17009     freebsd-*)
   17010       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   17011       need_version=yes
   17012       ;;
   17013   esac
   17014   shlibpath_var=LD_LIBRARY_PATH
   17015   case $host_os in
   17016   freebsd2.*)
   17017     shlibpath_overrides_runpath=yes
   17018     ;;
   17019   freebsd3.[01]* | freebsdelf3.[01]*)
   17020     shlibpath_overrides_runpath=yes
   17021     hardcode_into_libs=yes
   17022     ;;
   17023   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   17024   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   17025     shlibpath_overrides_runpath=no
   17026     hardcode_into_libs=yes
   17027     ;;
   17028   *) # from 4.6 on, and DragonFly
   17029     shlibpath_overrides_runpath=yes
   17030     hardcode_into_libs=yes
   17031     ;;
   17032   esac
   17033   ;;
   17034 
   17035 gnu*)
   17036   version_type=linux
   17037   need_lib_prefix=no
   17038   need_version=no
   17039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   17040   soname_spec='${libname}${release}${shared_ext}$major'
   17041   shlibpath_var=LD_LIBRARY_PATH
   17042   hardcode_into_libs=yes
   17043   ;;
   17044 
   17045 haiku*)
   17046   version_type=linux
   17047   need_lib_prefix=no
   17048   need_version=no
   17049   dynamic_linker="$host_os runtime_loader"
   17050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   17051   soname_spec='${libname}${release}${shared_ext}$major'
   17052   shlibpath_var=LIBRARY_PATH
   17053   shlibpath_overrides_runpath=yes
   17054   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
   17055   hardcode_into_libs=yes
   17056   ;;
   17057 
   17058 hpux9* | hpux10* | hpux11*)
   17059   # Give a soname corresponding to the major version so that dld.sl refuses to
   17060   # link against other versions.
   17061   version_type=sunos
   17062   need_lib_prefix=no
   17063   need_version=no
   17064   case $host_cpu in
   17065   ia64*)
   17066     shrext_cmds='.so'
   17067     hardcode_into_libs=yes
   17068     dynamic_linker="$host_os dld.so"
   17069     shlibpath_var=LD_LIBRARY_PATH
   17070     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   17071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17072     soname_spec='${libname}${release}${shared_ext}$major'
   17073     if test "X$HPUX_IA64_MODE" = X32; then
   17074       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   17075     else
   17076       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   17077     fi
   17078     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   17079     ;;
   17080   hppa*64*)
   17081     shrext_cmds='.sl'
   17082     hardcode_into_libs=yes
   17083     dynamic_linker="$host_os dld.sl"
   17084     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   17085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   17086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17087     soname_spec='${libname}${release}${shared_ext}$major'
   17088     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   17089     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   17090     ;;
   17091   *)
   17092     shrext_cmds='.sl'
   17093     dynamic_linker="$host_os dld.sl"
   17094     shlibpath_var=SHLIB_PATH
   17095     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   17096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17097     soname_spec='${libname}${release}${shared_ext}$major'
   17098     ;;
   17099   esac
   17100   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   17101   postinstall_cmds='chmod 555 $lib'
   17102   # or fails outright, so override atomically:
   17103   install_override_mode=555
   17104   ;;
   17105 
   17106 interix[3-9]*)
   17107   version_type=linux
   17108   need_lib_prefix=no
   17109   need_version=no
   17110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   17111   soname_spec='${libname}${release}${shared_ext}$major'
   17112   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   17113   shlibpath_var=LD_LIBRARY_PATH
   17114   shlibpath_overrides_runpath=no
   17115   hardcode_into_libs=yes
   17116   ;;
   17117 
   17118 irix5* | irix6* | nonstopux*)
   17119   case $host_os in
   17120     nonstopux*) version_type=nonstopux ;;
   17121     *)
   17122 	if test "$lt_cv_prog_gnu_ld" = yes; then
   17123 		version_type=linux
   17124 	else
   17125 		version_type=irix
   17126 	fi ;;
   17127   esac
   17128   need_lib_prefix=no
   17129   need_version=no
   17130   soname_spec='${libname}${release}${shared_ext}$major'
   17131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   17132   case $host_os in
   17133   irix5* | nonstopux*)
   17134     libsuff= shlibsuff=
   17135     ;;
   17136   *)
   17137     case $LD in # libtool.m4 will add one of these switches to LD
   17138     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   17139       libsuff= shlibsuff= libmagic=32-bit;;
   17140     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   17141       libsuff=32 shlibsuff=N32 libmagic=N32;;
   17142     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   17143       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   17144     *) libsuff= shlibsuff= libmagic=never-match;;
   17145     esac
   17146     ;;
   17147   esac
   17148   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   17149   shlibpath_overrides_runpath=no
   17150   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   17151   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   17152   hardcode_into_libs=yes
   17153   ;;
   17154 
   17155 # No shared lib support for Linux oldld, aout, or coff.
   17156 linux*oldld* | linux*aout* | linux*coff*)
   17157   dynamic_linker=no
   17158   ;;
   17159 
   17160 # This must be Linux ELF.
   17161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
   17162   version_type=linux
   17163   need_lib_prefix=no
   17164   need_version=no
   17165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17166   soname_spec='${libname}${release}${shared_ext}$major'
   17167   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   17168   shlibpath_var=LD_LIBRARY_PATH
   17169   shlibpath_overrides_runpath=no
   17170 
   17171   # Some binutils ld are patched to set DT_RUNPATH
   17172   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
   17173   $as_echo_n "(cached) " >&6
   17174 else
   17175   lt_cv_shlibpath_overrides_runpath=no
   17176     save_LDFLAGS=$LDFLAGS
   17177     save_libdir=$libdir
   17178     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   17179 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   17180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17181 /* end confdefs.h.  */
   17182 
   17183 int
   17184 main ()
   17185 {
   17186 
   17187   ;
   17188   return 0;
   17189 }
   17190 _ACEOF
   17191 if ac_fn_c_try_link "$LINENO"; then :
   17192   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   17193   lt_cv_shlibpath_overrides_runpath=yes
   17194 fi
   17195 fi
   17196 rm -f core conftest.err conftest.$ac_objext \
   17197     conftest$ac_exeext conftest.$ac_ext
   17198     LDFLAGS=$save_LDFLAGS
   17199     libdir=$save_libdir
   17200 
   17201 fi
   17202 
   17203   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   17204 
   17205   # This implies no fast_install, which is unacceptable.
   17206   # Some rework will be needed to allow for fast_install
   17207   # before this can be enabled.
   17208   hardcode_into_libs=yes
   17209 
   17210   # Append ld.so.conf contents to the search path
   17211   if test -f /etc/ld.so.conf; then
   17212     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
   17213     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   17214   fi
   17215 
   17216   # We used to test for /lib/ld.so.1 and disable shared libraries on
   17217   # powerpc, because MkLinux only supported shared libraries with the
   17218   # GNU dynamic linker.  Since this was broken with cross compilers,
   17219   # most powerpc-linux boxes support dynamic linking these days and
   17220   # people can always --disable-shared, the test was removed, and we
   17221   # assume the GNU/Linux dynamic linker is in use.
   17222   dynamic_linker='GNU/Linux ld.so'
   17223   ;;
   17224 
   17225 netbsd*)
   17226   version_type=sunos
   17227   need_lib_prefix=no
   17228   need_version=no
   17229   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   17230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   17231     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   17232     dynamic_linker='NetBSD (a.out) ld.so'
   17233   else
   17234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   17235     soname_spec='${libname}${release}${shared_ext}$major'
   17236     dynamic_linker='NetBSD ld.elf_so'
   17237   fi
   17238   shlibpath_var=LD_LIBRARY_PATH
   17239   shlibpath_overrides_runpath=yes
   17240   hardcode_into_libs=yes
   17241   ;;
   17242 
   17243 newsos6)
   17244   version_type=linux
   17245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17246   shlibpath_var=LD_LIBRARY_PATH
   17247   shlibpath_overrides_runpath=yes
   17248   ;;
   17249 
   17250 *nto* | *qnx*)
   17251   version_type=qnx
   17252   need_lib_prefix=no
   17253   need_version=no
   17254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17255   soname_spec='${libname}${release}${shared_ext}$major'
   17256   shlibpath_var=LD_LIBRARY_PATH
   17257   shlibpath_overrides_runpath=no
   17258   hardcode_into_libs=yes
   17259   dynamic_linker='ldqnx.so'
   17260   ;;
   17261 
   17262 openbsd*)
   17263   version_type=sunos
   17264   sys_lib_dlsearch_path_spec="/usr/lib"
   17265   need_lib_prefix=no
   17266   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   17267   case $host_os in
   17268     openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
   17269     *)				need_version=no  ;;
   17270   esac
   17271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   17272   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   17273   shlibpath_var=LD_LIBRARY_PATH
   17274   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   17275     case $host_os in
   17276       openbsd2.[89] | openbsd2.[89].*)
   17277 	shlibpath_overrides_runpath=no
   17278 	;;
   17279       *)
   17280 	shlibpath_overrides_runpath=yes
   17281 	;;
   17282       esac
   17283   else
   17284     shlibpath_overrides_runpath=yes
   17285   fi
   17286   ;;
   17287 
   17288 os2*)
   17289   libname_spec='$name'
   17290   shrext_cmds=".dll"
   17291   need_lib_prefix=no
   17292   library_names_spec='$libname${shared_ext} $libname.a'
   17293   dynamic_linker='OS/2 ld.exe'
   17294   shlibpath_var=LIBPATH
   17295   ;;
   17296 
   17297 osf3* | osf4* | osf5*)
   17298   version_type=osf
   17299   need_lib_prefix=no
   17300   need_version=no
   17301   soname_spec='${libname}${release}${shared_ext}$major'
   17302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17303   shlibpath_var=LD_LIBRARY_PATH
   17304   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   17305   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   17306   ;;
   17307 
   17308 rdos*)
   17309   dynamic_linker=no
   17310   ;;
   17311 
   17312 solaris*)
   17313   version_type=linux
   17314   need_lib_prefix=no
   17315   need_version=no
   17316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17317   soname_spec='${libname}${release}${shared_ext}$major'
   17318   shlibpath_var=LD_LIBRARY_PATH
   17319   shlibpath_overrides_runpath=yes
   17320   hardcode_into_libs=yes
   17321   # ldd complains unless libraries are executable
   17322   postinstall_cmds='chmod +x $lib'
   17323   ;;
   17324 
   17325 sunos4*)
   17326   version_type=sunos
   17327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   17328   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   17329   shlibpath_var=LD_LIBRARY_PATH
   17330   shlibpath_overrides_runpath=yes
   17331   if test "$with_gnu_ld" = yes; then
   17332     need_lib_prefix=no
   17333   fi
   17334   need_version=yes
   17335   ;;
   17336 
   17337 sysv4 | sysv4.3*)
   17338   version_type=linux
   17339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17340   soname_spec='${libname}${release}${shared_ext}$major'
   17341   shlibpath_var=LD_LIBRARY_PATH
   17342   case $host_vendor in
   17343     sni)
   17344       shlibpath_overrides_runpath=no
   17345       need_lib_prefix=no
   17346       runpath_var=LD_RUN_PATH
   17347       ;;
   17348     siemens)
   17349       need_lib_prefix=no
   17350       ;;
   17351     motorola)
   17352       need_lib_prefix=no
   17353       need_version=no
   17354       shlibpath_overrides_runpath=no
   17355       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   17356       ;;
   17357   esac
   17358   ;;
   17359 
   17360 sysv4*MP*)
   17361   if test -d /usr/nec ;then
   17362     version_type=linux
   17363     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   17364     soname_spec='$libname${shared_ext}.$major'
   17365     shlibpath_var=LD_LIBRARY_PATH
   17366   fi
   17367   ;;
   17368 
   17369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   17370   version_type=freebsd-elf
   17371   need_lib_prefix=no
   17372   need_version=no
   17373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   17374   soname_spec='${libname}${release}${shared_ext}$major'
   17375   shlibpath_var=LD_LIBRARY_PATH
   17376   shlibpath_overrides_runpath=yes
   17377   hardcode_into_libs=yes
   17378   if test "$with_gnu_ld" = yes; then
   17379     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   17380   else
   17381     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   17382     case $host_os in
   17383       sco3.2v5*)
   17384         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   17385 	;;
   17386     esac
   17387   fi
   17388   sys_lib_dlsearch_path_spec='/usr/lib'
   17389   ;;
   17390 
   17391 tpf*)
   17392   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   17393   version_type=linux
   17394   need_lib_prefix=no
   17395   need_version=no
   17396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17397   shlibpath_var=LD_LIBRARY_PATH
   17398   shlibpath_overrides_runpath=no
   17399   hardcode_into_libs=yes
   17400   ;;
   17401 
   17402 uts4*)
   17403   version_type=linux
   17404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17405   soname_spec='${libname}${release}${shared_ext}$major'
   17406   shlibpath_var=LD_LIBRARY_PATH
   17407   ;;
   17408 
   17409 *)
   17410   dynamic_linker=no
   17411   ;;
   17412 esac
   17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   17414 $as_echo "$dynamic_linker" >&6; }
   17415 test "$dynamic_linker" = no && can_build_shared=no
   17416 
   17417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   17418 if test "$GCC" = yes; then
   17419   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   17420 fi
   17421 
   17422 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
   17423   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
   17424 fi
   17425 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
   17426   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
   17427 fi
   17428 
   17429 
   17430 
   17431 
   17432 
   17433 
   17434 
   17435 
   17436 
   17437 
   17438 
   17439 
   17440 
   17441 
   17442 
   17443 
   17444 
   17445 
   17446 
   17447 
   17448 
   17449 
   17450 
   17451 
   17452 
   17453 
   17454 
   17455 
   17456 
   17457 
   17458 
   17459 
   17460 
   17461 
   17462 
   17463 
   17464 
   17465 
   17466 
   17467 
   17468 
   17469 
   17470 
   17471 
   17472 
   17473 
   17474 
   17475 
   17476 
   17477 
   17478 
   17479 
   17480 
   17481 
   17482 
   17483 
   17484 
   17485 
   17486 
   17487 
   17488 
   17489 
   17490 
   17491 
   17492 
   17493 
   17494 
   17495 
   17496 
   17497 
   17498 
   17499 
   17500 
   17501 
   17502 
   17503 
   17504 
   17505 
   17506 
   17507 
   17508 
   17509 
   17510 
   17511 
   17512 
   17513 
   17514 
   17515 
   17516 
   17517 
   17518 
   17519 
   17520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   17521 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   17522 hardcode_action=
   17523 if test -n "$hardcode_libdir_flag_spec" ||
   17524    test -n "$runpath_var" ||
   17525    test "X$hardcode_automatic" = "Xyes" ; then
   17526 
   17527   # We can hardcode non-existent directories.
   17528   if test "$hardcode_direct" != no &&
   17529      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   17530      # have to relink, otherwise we might link with an installed library
   17531      # when we should be linking with a yet-to-be-installed one
   17532      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
   17533      test "$hardcode_minus_L" != no; then
   17534     # Linking always hardcodes the temporary library directory.
   17535     hardcode_action=relink
   17536   else
   17537     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   17538     hardcode_action=immediate
   17539   fi
   17540 else
   17541   # We cannot hardcode anything, or else we can only hardcode existing
   17542   # directories.
   17543   hardcode_action=unsupported
   17544 fi
   17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   17546 $as_echo "$hardcode_action" >&6; }
   17547 
   17548 if test "$hardcode_action" = relink ||
   17549    test "$inherit_rpath" = yes; then
   17550   # Fast installation is not supported
   17551   enable_fast_install=no
   17552 elif test "$shlibpath_overrides_runpath" = yes ||
   17553      test "$enable_shared" = no; then
   17554   # Fast installation is not necessary
   17555   enable_fast_install=needless
   17556 fi
   17557 
   17558 
   17559 
   17560 
   17561 
   17562 
   17563   if test "x$enable_dlopen" != xyes; then
   17564   enable_dlopen=unknown
   17565   enable_dlopen_self=unknown
   17566   enable_dlopen_self_static=unknown
   17567 else
   17568   lt_cv_dlopen=no
   17569   lt_cv_dlopen_libs=
   17570 
   17571   case $host_os in
   17572   beos*)
   17573     lt_cv_dlopen="load_add_on"
   17574     lt_cv_dlopen_libs=
   17575     lt_cv_dlopen_self=yes
   17576     ;;
   17577 
   17578   mingw* | pw32* | cegcc*)
   17579     lt_cv_dlopen="LoadLibrary"
   17580     lt_cv_dlopen_libs=
   17581     ;;
   17582 
   17583   cygwin*)
   17584     lt_cv_dlopen="dlopen"
   17585     lt_cv_dlopen_libs=
   17586     ;;
   17587 
   17588   darwin*)
   17589   # if libdl is installed we need to link against it
   17590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   17591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   17592 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
   17593   $as_echo_n "(cached) " >&6
   17594 else
   17595   ac_check_lib_save_LIBS=$LIBS
   17596 LIBS="-ldl  $LIBS"
   17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17598 /* end confdefs.h.  */
   17599 
   17600 /* Override any GCC internal prototype to avoid an error.
   17601    Use char because int might match the return type of a GCC
   17602    builtin and then its argument prototype would still apply.  */
   17603 #ifdef __cplusplus
   17604 extern "C"
   17605 #endif
   17606 char dlopen ();
   17607 int
   17608 main ()
   17609 {
   17610 return dlopen ();
   17611   ;
   17612   return 0;
   17613 }
   17614 _ACEOF
   17615 if ac_fn_c_try_link "$LINENO"; then :
   17616   ac_cv_lib_dl_dlopen=yes
   17617 else
   17618   ac_cv_lib_dl_dlopen=no
   17619 fi
   17620 rm -f core conftest.err conftest.$ac_objext \
   17621     conftest$ac_exeext conftest.$ac_ext
   17622 LIBS=$ac_check_lib_save_LIBS
   17623 fi
   17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   17625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   17626 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
   17627   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   17628 else
   17629 
   17630     lt_cv_dlopen="dyld"
   17631     lt_cv_dlopen_libs=
   17632     lt_cv_dlopen_self=yes
   17633 
   17634 fi
   17635 
   17636     ;;
   17637 
   17638   *)
   17639     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   17640 if test "x$ac_cv_func_shl_load" = x""yes; then :
   17641   lt_cv_dlopen="shl_load"
   17642 else
   17643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   17644 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   17645 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
   17646   $as_echo_n "(cached) " >&6
   17647 else
   17648   ac_check_lib_save_LIBS=$LIBS
   17649 LIBS="-ldld  $LIBS"
   17650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17651 /* end confdefs.h.  */
   17652 
   17653 /* Override any GCC internal prototype to avoid an error.
   17654    Use char because int might match the return type of a GCC
   17655    builtin and then its argument prototype would still apply.  */
   17656 #ifdef __cplusplus
   17657 extern "C"
   17658 #endif
   17659 char shl_load ();
   17660 int
   17661 main ()
   17662 {
   17663 return shl_load ();
   17664   ;
   17665   return 0;
   17666 }
   17667 _ACEOF
   17668 if ac_fn_c_try_link "$LINENO"; then :
   17669   ac_cv_lib_dld_shl_load=yes
   17670 else
   17671   ac_cv_lib_dld_shl_load=no
   17672 fi
   17673 rm -f core conftest.err conftest.$ac_objext \
   17674     conftest$ac_exeext conftest.$ac_ext
   17675 LIBS=$ac_check_lib_save_LIBS
   17676 fi
   17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   17678 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   17679 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
   17680   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
   17681 else
   17682   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   17683 if test "x$ac_cv_func_dlopen" = x""yes; then :
   17684   lt_cv_dlopen="dlopen"
   17685 else
   17686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   17687 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   17688 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
   17689   $as_echo_n "(cached) " >&6
   17690 else
   17691   ac_check_lib_save_LIBS=$LIBS
   17692 LIBS="-ldl  $LIBS"
   17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17694 /* end confdefs.h.  */
   17695 
   17696 /* Override any GCC internal prototype to avoid an error.
   17697    Use char because int might match the return type of a GCC
   17698    builtin and then its argument prototype would still apply.  */
   17699 #ifdef __cplusplus
   17700 extern "C"
   17701 #endif
   17702 char dlopen ();
   17703 int
   17704 main ()
   17705 {
   17706 return dlopen ();
   17707   ;
   17708   return 0;
   17709 }
   17710 _ACEOF
   17711 if ac_fn_c_try_link "$LINENO"; then :
   17712   ac_cv_lib_dl_dlopen=yes
   17713 else
   17714   ac_cv_lib_dl_dlopen=no
   17715 fi
   17716 rm -f core conftest.err conftest.$ac_objext \
   17717     conftest$ac_exeext conftest.$ac_ext
   17718 LIBS=$ac_check_lib_save_LIBS
   17719 fi
   17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   17721 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   17722 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
   17723   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   17724 else
   17725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   17726 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   17727 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
   17728   $as_echo_n "(cached) " >&6
   17729 else
   17730   ac_check_lib_save_LIBS=$LIBS
   17731 LIBS="-lsvld  $LIBS"
   17732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17733 /* end confdefs.h.  */
   17734 
   17735 /* Override any GCC internal prototype to avoid an error.
   17736    Use char because int might match the return type of a GCC
   17737    builtin and then its argument prototype would still apply.  */
   17738 #ifdef __cplusplus
   17739 extern "C"
   17740 #endif
   17741 char dlopen ();
   17742 int
   17743 main ()
   17744 {
   17745 return dlopen ();
   17746   ;
   17747   return 0;
   17748 }
   17749 _ACEOF
   17750 if ac_fn_c_try_link "$LINENO"; then :
   17751   ac_cv_lib_svld_dlopen=yes
   17752 else
   17753   ac_cv_lib_svld_dlopen=no
   17754 fi
   17755 rm -f core conftest.err conftest.$ac_objext \
   17756     conftest$ac_exeext conftest.$ac_ext
   17757 LIBS=$ac_check_lib_save_LIBS
   17758 fi
   17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   17760 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   17761 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
   17762   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
   17763 else
   17764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   17765 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   17766 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
   17767   $as_echo_n "(cached) " >&6
   17768 else
   17769   ac_check_lib_save_LIBS=$LIBS
   17770 LIBS="-ldld  $LIBS"
   17771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17772 /* end confdefs.h.  */
   17773 
   17774 /* Override any GCC internal prototype to avoid an error.
   17775    Use char because int might match the return type of a GCC
   17776    builtin and then its argument prototype would still apply.  */
   17777 #ifdef __cplusplus
   17778 extern "C"
   17779 #endif
   17780 char dld_link ();
   17781 int
   17782 main ()
   17783 {
   17784 return dld_link ();
   17785   ;
   17786   return 0;
   17787 }
   17788 _ACEOF
   17789 if ac_fn_c_try_link "$LINENO"; then :
   17790   ac_cv_lib_dld_dld_link=yes
   17791 else
   17792   ac_cv_lib_dld_dld_link=no
   17793 fi
   17794 rm -f core conftest.err conftest.$ac_objext \
   17795     conftest$ac_exeext conftest.$ac_ext
   17796 LIBS=$ac_check_lib_save_LIBS
   17797 fi
   17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   17799 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   17800 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
   17801   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
   17802 fi
   17803 
   17804 
   17805 fi
   17806 
   17807 
   17808 fi
   17809 
   17810 
   17811 fi
   17812 
   17813 
   17814 fi
   17815 
   17816 
   17817 fi
   17818 
   17819     ;;
   17820   esac
   17821 
   17822   if test "x$lt_cv_dlopen" != xno; then
   17823     enable_dlopen=yes
   17824   else
   17825     enable_dlopen=no
   17826   fi
   17827 
   17828   case $lt_cv_dlopen in
   17829   dlopen)
   17830     save_CPPFLAGS="$CPPFLAGS"
   17831     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   17832 
   17833     save_LDFLAGS="$LDFLAGS"
   17834     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   17835 
   17836     save_LIBS="$LIBS"
   17837     LIBS="$lt_cv_dlopen_libs $LIBS"
   17838 
   17839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   17840 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   17841 if test "${lt_cv_dlopen_self+set}" = set; then :
   17842   $as_echo_n "(cached) " >&6
   17843 else
   17844   	  if test "$cross_compiling" = yes; then :
   17845   lt_cv_dlopen_self=cross
   17846 else
   17847   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   17848   lt_status=$lt_dlunknown
   17849   cat > conftest.$ac_ext <<_LT_EOF
   17850 #line 17850 "configure"
   17851 #include "confdefs.h"
   17852 
   17853 #if HAVE_DLFCN_H
   17854 #include <dlfcn.h>
   17855 #endif
   17856 
   17857 #include <stdio.h>
   17858 
   17859 #ifdef RTLD_GLOBAL
   17860 #  define LT_DLGLOBAL		RTLD_GLOBAL
   17861 #else
   17862 #  ifdef DL_GLOBAL
   17863 #    define LT_DLGLOBAL		DL_GLOBAL
   17864 #  else
   17865 #    define LT_DLGLOBAL		0
   17866 #  endif
   17867 #endif
   17868 
   17869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   17870    find out it does not work in some platform. */
   17871 #ifndef LT_DLLAZY_OR_NOW
   17872 #  ifdef RTLD_LAZY
   17873 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   17874 #  else
   17875 #    ifdef DL_LAZY
   17876 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   17877 #    else
   17878 #      ifdef RTLD_NOW
   17879 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   17880 #      else
   17881 #        ifdef DL_NOW
   17882 #          define LT_DLLAZY_OR_NOW	DL_NOW
   17883 #        else
   17884 #          define LT_DLLAZY_OR_NOW	0
   17885 #        endif
   17886 #      endif
   17887 #    endif
   17888 #  endif
   17889 #endif
   17890 
   17891 /* When -fvisbility=hidden is used, assume the code has been annotated
   17892    correspondingly for the symbols needed.  */
   17893 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   17894 void fnord () __attribute__((visibility("default")));
   17895 #endif
   17896 
   17897 void fnord () { int i=42; }
   17898 int main ()
   17899 {
   17900   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   17901   int status = $lt_dlunknown;
   17902 
   17903   if (self)
   17904     {
   17905       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   17906       else
   17907         {
   17908 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   17909           else puts (dlerror ());
   17910 	}
   17911       /* dlclose (self); */
   17912     }
   17913   else
   17914     puts (dlerror ());
   17915 
   17916   return status;
   17917 }
   17918 _LT_EOF
   17919   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   17920   (eval $ac_link) 2>&5
   17921   ac_status=$?
   17922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   17923   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
   17924     (./conftest; exit; ) >&5 2>/dev/null
   17925     lt_status=$?
   17926     case x$lt_status in
   17927       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   17928       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   17929       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   17930     esac
   17931   else :
   17932     # compilation failed
   17933     lt_cv_dlopen_self=no
   17934   fi
   17935 fi
   17936 rm -fr conftest*
   17937 
   17938 
   17939 fi
   17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   17941 $as_echo "$lt_cv_dlopen_self" >&6; }
   17942 
   17943     if test "x$lt_cv_dlopen_self" = xyes; then
   17944       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   17945       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   17946 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   17947 if test "${lt_cv_dlopen_self_static+set}" = set; then :
   17948   $as_echo_n "(cached) " >&6
   17949 else
   17950   	  if test "$cross_compiling" = yes; then :
   17951   lt_cv_dlopen_self_static=cross
   17952 else
   17953   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   17954   lt_status=$lt_dlunknown
   17955   cat > conftest.$ac_ext <<_LT_EOF
   17956 #line 17956 "configure"
   17957 #include "confdefs.h"
   17958 
   17959 #if HAVE_DLFCN_H
   17960 #include <dlfcn.h>
   17961 #endif
   17962 
   17963 #include <stdio.h>
   17964 
   17965 #ifdef RTLD_GLOBAL
   17966 #  define LT_DLGLOBAL		RTLD_GLOBAL
   17967 #else
   17968 #  ifdef DL_GLOBAL
   17969 #    define LT_DLGLOBAL		DL_GLOBAL
   17970 #  else
   17971 #    define LT_DLGLOBAL		0
   17972 #  endif
   17973 #endif
   17974 
   17975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   17976    find out it does not work in some platform. */
   17977 #ifndef LT_DLLAZY_OR_NOW
   17978 #  ifdef RTLD_LAZY
   17979 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   17980 #  else
   17981 #    ifdef DL_LAZY
   17982 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   17983 #    else
   17984 #      ifdef RTLD_NOW
   17985 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   17986 #      else
   17987 #        ifdef DL_NOW
   17988 #          define LT_DLLAZY_OR_NOW	DL_NOW
   17989 #        else
   17990 #          define LT_DLLAZY_OR_NOW	0
   17991 #        endif
   17992 #      endif
   17993 #    endif
   17994 #  endif
   17995 #endif
   17996 
   17997 /* When -fvisbility=hidden is used, assume the code has been annotated
   17998    correspondingly for the symbols needed.  */
   17999 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   18000 void fnord () __attribute__((visibility("default")));
   18001 #endif
   18002 
   18003 void fnord () { int i=42; }
   18004 int main ()
   18005 {
   18006   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   18007   int status = $lt_dlunknown;
   18008 
   18009   if (self)
   18010     {
   18011       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   18012       else
   18013         {
   18014 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   18015           else puts (dlerror ());
   18016 	}
   18017       /* dlclose (self); */
   18018     }
   18019   else
   18020     puts (dlerror ());
   18021 
   18022   return status;
   18023 }
   18024 _LT_EOF
   18025   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   18026   (eval $ac_link) 2>&5
   18027   ac_status=$?
   18028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18029   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
   18030     (./conftest; exit; ) >&5 2>/dev/null
   18031     lt_status=$?
   18032     case x$lt_status in
   18033       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   18034       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   18035       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   18036     esac
   18037   else :
   18038     # compilation failed
   18039     lt_cv_dlopen_self_static=no
   18040   fi
   18041 fi
   18042 rm -fr conftest*
   18043 
   18044 
   18045 fi
   18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   18047 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   18048     fi
   18049 
   18050     CPPFLAGS="$save_CPPFLAGS"
   18051     LDFLAGS="$save_LDFLAGS"
   18052     LIBS="$save_LIBS"
   18053     ;;
   18054   esac
   18055 
   18056   case $lt_cv_dlopen_self in
   18057   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   18058   *) enable_dlopen_self=unknown ;;
   18059   esac
   18060 
   18061   case $lt_cv_dlopen_self_static in
   18062   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   18063   *) enable_dlopen_self_static=unknown ;;
   18064   esac
   18065 fi
   18066 
   18067 
   18068 
   18069 
   18070 
   18071 
   18072 
   18073 
   18074 
   18075 
   18076 
   18077 
   18078 
   18079 
   18080 
   18081 
   18082 
   18083 striplib=
   18084 old_striplib=
   18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   18086 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   18087 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   18088   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   18089   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   18090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18091 $as_echo "yes" >&6; }
   18092 else
   18093 # FIXME - insert some real tests, host_os isn't really good enough
   18094   case $host_os in
   18095   darwin*)
   18096     if test -n "$STRIP" ; then
   18097       striplib="$STRIP -x"
   18098       old_striplib="$STRIP -S"
   18099       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18100 $as_echo "yes" >&6; }
   18101     else
   18102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18103 $as_echo "no" >&6; }
   18104     fi
   18105     ;;
   18106   *)
   18107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18108 $as_echo "no" >&6; }
   18109     ;;
   18110   esac
   18111 fi
   18112 
   18113 
   18114 
   18115 
   18116 
   18117 
   18118 
   18119 
   18120 
   18121 
   18122 
   18123 
   18124   # Report which library types will actually be built
   18125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   18126 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   18127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   18128 $as_echo "$can_build_shared" >&6; }
   18129 
   18130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   18131 $as_echo_n "checking whether to build shared libraries... " >&6; }
   18132   test "$can_build_shared" = "no" && enable_shared=no
   18133 
   18134   # On AIX, shared libraries and static libraries use the same namespace, and
   18135   # are all built from PIC.
   18136   case $host_os in
   18137   aix3*)
   18138     test "$enable_shared" = yes && enable_static=no
   18139     if test -n "$RANLIB"; then
   18140       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   18141       postinstall_cmds='$RANLIB $lib'
   18142     fi
   18143     ;;
   18144 
   18145   aix[4-9]*)
   18146     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
   18147       test "$enable_shared" = yes && enable_static=no
   18148     fi
   18149     ;;
   18150   esac
   18151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   18152 $as_echo "$enable_shared" >&6; }
   18153 
   18154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   18155 $as_echo_n "checking whether to build static libraries... " >&6; }
   18156   # Make sure either enable_shared or enable_static is yes.
   18157   test "$enable_shared" = yes || enable_static=yes
   18158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   18159 $as_echo "$enable_static" >&6; }
   18160 
   18161 
   18162 
   18163 
   18164 fi
   18165 ac_ext=c
   18166 ac_cpp='$CPP $CPPFLAGS'
   18167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18170 
   18171 CC="$lt_save_CC"
   18172 
   18173       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
   18174     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
   18175     (test "X$CXX" != "Xg++"))) ; then
   18176   ac_ext=cpp
   18177 ac_cpp='$CXXCPP $CPPFLAGS'
   18178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
   18182 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
   18183 if test -z "$CXXCPP"; then
   18184   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
   18185   $as_echo_n "(cached) " >&6
   18186 else
   18187       # Double quotes because CXXCPP needs to be expanded
   18188     for CXXCPP in "$CXX -E" "/lib/cpp"
   18189     do
   18190       ac_preproc_ok=false
   18191 for ac_cxx_preproc_warn_flag in '' yes
   18192 do
   18193   # Use a header file that comes with gcc, so configuring glibc
   18194   # with a fresh cross-compiler works.
   18195   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   18196   # <limits.h> exists even on freestanding compilers.
   18197   # On the NeXT, cc -E runs the code through the compiler's parser,
   18198   # not just through cpp. "Syntax error" is here to catch this case.
   18199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18200 /* end confdefs.h.  */
   18201 #ifdef __STDC__
   18202 # include <limits.h>
   18203 #else
   18204 # include <assert.h>
   18205 #endif
   18206 		     Syntax error
   18207 _ACEOF
   18208 if ac_fn_cxx_try_cpp "$LINENO"; then :
   18209 
   18210 else
   18211   # Broken: fails on valid input.
   18212 continue
   18213 fi
   18214 rm -f conftest.err conftest.$ac_ext
   18215 
   18216   # OK, works on sane cases.  Now check whether nonexistent headers
   18217   # can be detected and how.
   18218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18219 /* end confdefs.h.  */
   18220 #include <ac_nonexistent.h>
   18221 _ACEOF
   18222 if ac_fn_cxx_try_cpp "$LINENO"; then :
   18223   # Broken: success on invalid input.
   18224 continue
   18225 else
   18226   # Passes both tests.
   18227 ac_preproc_ok=:
   18228 break
   18229 fi
   18230 rm -f conftest.err conftest.$ac_ext
   18231 
   18232 done
   18233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   18234 rm -f conftest.err conftest.$ac_ext
   18235 if $ac_preproc_ok; then :
   18236   break
   18237 fi
   18238 
   18239     done
   18240     ac_cv_prog_CXXCPP=$CXXCPP
   18241 
   18242 fi
   18243   CXXCPP=$ac_cv_prog_CXXCPP
   18244 else
   18245   ac_cv_prog_CXXCPP=$CXXCPP
   18246 fi
   18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
   18248 $as_echo "$CXXCPP" >&6; }
   18249 ac_preproc_ok=false
   18250 for ac_cxx_preproc_warn_flag in '' yes
   18251 do
   18252   # Use a header file that comes with gcc, so configuring glibc
   18253   # with a fresh cross-compiler works.
   18254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   18255   # <limits.h> exists even on freestanding compilers.
   18256   # On the NeXT, cc -E runs the code through the compiler's parser,
   18257   # not just through cpp. "Syntax error" is here to catch this case.
   18258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18259 /* end confdefs.h.  */
   18260 #ifdef __STDC__
   18261 # include <limits.h>
   18262 #else
   18263 # include <assert.h>
   18264 #endif
   18265 		     Syntax error
   18266 _ACEOF
   18267 if ac_fn_cxx_try_cpp "$LINENO"; then :
   18268 
   18269 else
   18270   # Broken: fails on valid input.
   18271 continue
   18272 fi
   18273 rm -f conftest.err conftest.$ac_ext
   18274 
   18275   # OK, works on sane cases.  Now check whether nonexistent headers
   18276   # can be detected and how.
   18277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18278 /* end confdefs.h.  */
   18279 #include <ac_nonexistent.h>
   18280 _ACEOF
   18281 if ac_fn_cxx_try_cpp "$LINENO"; then :
   18282   # Broken: success on invalid input.
   18283 continue
   18284 else
   18285   # Passes both tests.
   18286 ac_preproc_ok=:
   18287 break
   18288 fi
   18289 rm -f conftest.err conftest.$ac_ext
   18290 
   18291 done
   18292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   18293 rm -f conftest.err conftest.$ac_ext
   18294 if $ac_preproc_ok; then :
   18295 
   18296 else
   18297   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18299 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
   18300 See \`config.log' for more details." "$LINENO" 5; }
   18301 fi
   18302 
   18303 ac_ext=c
   18304 ac_cpp='$CPP $CPPFLAGS'
   18305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18308 
   18309 else
   18310   _lt_caught_CXX_error=yes
   18311 fi
   18312 
   18313 ac_ext=cpp
   18314 ac_cpp='$CXXCPP $CPPFLAGS'
   18315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   18318 
   18319 archive_cmds_need_lc_CXX=no
   18320 allow_undefined_flag_CXX=
   18321 always_export_symbols_CXX=no
   18322 archive_expsym_cmds_CXX=
   18323 compiler_needs_object_CXX=no
   18324 export_dynamic_flag_spec_CXX=
   18325 hardcode_direct_CXX=no
   18326 hardcode_direct_absolute_CXX=no
   18327 hardcode_libdir_flag_spec_CXX=
   18328 hardcode_libdir_flag_spec_ld_CXX=
   18329 hardcode_libdir_separator_CXX=
   18330 hardcode_minus_L_CXX=no
   18331 hardcode_shlibpath_var_CXX=unsupported
   18332 hardcode_automatic_CXX=no
   18333 inherit_rpath_CXX=no
   18334 module_cmds_CXX=
   18335 module_expsym_cmds_CXX=
   18336 link_all_deplibs_CXX=unknown
   18337 old_archive_cmds_CXX=$old_archive_cmds
   18338 reload_flag_CXX=$reload_flag
   18339 reload_cmds_CXX=$reload_cmds
   18340 no_undefined_flag_CXX=
   18341 whole_archive_flag_spec_CXX=
   18342 enable_shared_with_static_runtimes_CXX=no
   18343 
   18344 # Source file extension for C++ test sources.
   18345 ac_ext=cpp
   18346 
   18347 # Object file extension for compiled C++ test sources.
   18348 objext=o
   18349 objext_CXX=$objext
   18350 
   18351 # No sense in running all these tests if we already determined that
   18352 # the CXX compiler isn't working.  Some variables (like enable_shared)
   18353 # are currently assumed to apply to all compilers on this platform,
   18354 # and will be corrupted by setting them based on a non-working compiler.
   18355 if test "$_lt_caught_CXX_error" != yes; then
   18356   # Code to be used in simple compile tests
   18357   lt_simple_compile_test_code="int some_variable = 0;"
   18358 
   18359   # Code to be used in simple link tests
   18360   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
   18361 
   18362   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   18363 
   18364 
   18365 
   18366 
   18367 
   18368 
   18369 # If no C compiler was specified, use CC.
   18370 LTCC=${LTCC-"$CC"}
   18371 
   18372 # If no C compiler flags were specified, use CFLAGS.
   18373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   18374 
   18375 # Allow CC to be a program name with arguments.
   18376 compiler=$CC
   18377 
   18378 
   18379   # save warnings/boilerplate of simple test code
   18380   ac_outfile=conftest.$ac_objext
   18381 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   18382 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   18383 _lt_compiler_boilerplate=`cat conftest.err`
   18384 $RM conftest*
   18385 
   18386   ac_outfile=conftest.$ac_objext
   18387 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   18388 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   18389 _lt_linker_boilerplate=`cat conftest.err`
   18390 $RM -r conftest*
   18391 
   18392 
   18393   # Allow CC to be a program name with arguments.
   18394   lt_save_CC=$CC
   18395   lt_save_LD=$LD
   18396   lt_save_GCC=$GCC
   18397   GCC=$GXX
   18398   lt_save_with_gnu_ld=$with_gnu_ld
   18399   lt_save_path_LD=$lt_cv_path_LD
   18400   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
   18401     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
   18402   else
   18403     $as_unset lt_cv_prog_gnu_ld
   18404   fi
   18405   if test -n "${lt_cv_path_LDCXX+set}"; then
   18406     lt_cv_path_LD=$lt_cv_path_LDCXX
   18407   else
   18408     $as_unset lt_cv_path_LD
   18409   fi
   18410   test -z "${LDCXX+set}" || LD=$LDCXX
   18411   CC=${CXX-"c++"}
   18412   compiler=$CC
   18413   compiler_CXX=$CC
   18414   for cc_temp in $compiler""; do
   18415   case $cc_temp in
   18416     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   18417     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   18418     \-*) ;;
   18419     *) break;;
   18420   esac
   18421 done
   18422 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   18423 
   18424 
   18425   if test -n "$compiler"; then
   18426     # We don't want -fno-exception when compiling C++ code, so set the
   18427     # no_builtin_flag separately
   18428     if test "$GXX" = yes; then
   18429       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
   18430     else
   18431       lt_prog_compiler_no_builtin_flag_CXX=
   18432     fi
   18433 
   18434     if test "$GXX" = yes; then
   18435       # Set up default GNU C++ configuration
   18436 
   18437 
   18438 
   18439 # Check whether --with-gnu-ld was given.
   18440 if test "${with_gnu_ld+set}" = set; then :
   18441   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   18442 else
   18443   with_gnu_ld=no
   18444 fi
   18445 
   18446 ac_prog=ld
   18447 if test "$GCC" = yes; then
   18448   # Check if gcc -print-prog-name=ld gives a path.
   18449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   18450 $as_echo_n "checking for ld used by $CC... " >&6; }
   18451   case $host in
   18452   *-*-mingw*)
   18453     # gcc leaves a trailing carriage return which upsets mingw
   18454     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   18455   *)
   18456     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   18457   esac
   18458   case $ac_prog in
   18459     # Accept absolute paths.
   18460     [\\/]* | ?:[\\/]*)
   18461       re_direlt='/[^/][^/]*/\.\./'
   18462       # Canonicalize the pathname of ld
   18463       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   18464       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   18465 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   18466       done
   18467       test -z "$LD" && LD="$ac_prog"
   18468       ;;
   18469   "")
   18470     # If it fails, then pretend we aren't using GCC.
   18471     ac_prog=ld
   18472     ;;
   18473   *)
   18474     # If it is relative, then search for the first ld in PATH.
   18475     with_gnu_ld=unknown
   18476     ;;
   18477   esac
   18478 elif test "$with_gnu_ld" = yes; then
   18479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   18480 $as_echo_n "checking for GNU ld... " >&6; }
   18481 else
   18482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   18483 $as_echo_n "checking for non-GNU ld... " >&6; }
   18484 fi
   18485 if test "${lt_cv_path_LD+set}" = set; then :
   18486   $as_echo_n "(cached) " >&6
   18487 else
   18488   if test -z "$LD"; then
   18489   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   18490   for ac_dir in $PATH; do
   18491     IFS="$lt_save_ifs"
   18492     test -z "$ac_dir" && ac_dir=.
   18493     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   18494       lt_cv_path_LD="$ac_dir/$ac_prog"
   18495       # Check to see if the program is GNU ld.  I'd rather use --version,
   18496       # but apparently some variants of GNU ld only accept -v.
   18497       # Break only if it was the GNU/non-GNU ld that we prefer.
   18498       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   18499       *GNU* | *'with BFD'*)
   18500 	test "$with_gnu_ld" != no && break
   18501 	;;
   18502       *)
   18503 	test "$with_gnu_ld" != yes && break
   18504 	;;
   18505       esac
   18506     fi
   18507   done
   18508   IFS="$lt_save_ifs"
   18509 else
   18510   lt_cv_path_LD="$LD" # Let the user override the test with a path.
   18511 fi
   18512 fi
   18513 
   18514 LD="$lt_cv_path_LD"
   18515 if test -n "$LD"; then
   18516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   18517 $as_echo "$LD" >&6; }
   18518 else
   18519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18520 $as_echo "no" >&6; }
   18521 fi
   18522 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
   18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   18524 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   18525 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
   18526   $as_echo_n "(cached) " >&6
   18527 else
   18528   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   18529 case `$LD -v 2>&1 </dev/null` in
   18530 *GNU* | *'with BFD'*)
   18531   lt_cv_prog_gnu_ld=yes
   18532   ;;
   18533 *)
   18534   lt_cv_prog_gnu_ld=no
   18535   ;;
   18536 esac
   18537 fi
   18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   18539 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   18540 with_gnu_ld=$lt_cv_prog_gnu_ld
   18541 
   18542 
   18543 
   18544 
   18545 
   18546 
   18547 
   18548       # Check if GNU C++ uses GNU ld as the underlying linker, since the
   18549       # archiving commands below assume that GNU ld is being used.
   18550       if test "$with_gnu_ld" = yes; then
   18551         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   18552         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   18553 
   18554         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   18555         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   18556 
   18557         # If archive_cmds runs LD, not CC, wlarc should be empty
   18558         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
   18559         #     investigate it a little bit more. (MM)
   18560         wlarc='${wl}'
   18561 
   18562         # ancient GNU ld didn't support --whole-archive et. al.
   18563         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
   18564 	  $GREP 'no-whole-archive' > /dev/null; then
   18565           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   18566         else
   18567           whole_archive_flag_spec_CXX=
   18568         fi
   18569       else
   18570         with_gnu_ld=no
   18571         wlarc=
   18572 
   18573         # A generic and very simple default shared library creation
   18574         # command for GNU C++ for the case where it uses the native
   18575         # linker, instead of GNU ld.  If possible, this setting should
   18576         # overridden to take advantage of the native linker features on
   18577         # the platform it is being used on.
   18578         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
   18579       fi
   18580 
   18581       # Commands to make compiler produce verbose output that lists
   18582       # what "hidden" libraries, object files and flags are used when
   18583       # linking a shared library.
   18584       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
   18585 
   18586     else
   18587       GXX=no
   18588       with_gnu_ld=no
   18589       wlarc=
   18590     fi
   18591 
   18592     # PORTME: fill in a description of your system's C++ link characteristics
   18593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   18594 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   18595     ld_shlibs_CXX=yes
   18596     case $host_os in
   18597       aix3*)
   18598         # FIXME: insert proper C++ library support
   18599         ld_shlibs_CXX=no
   18600         ;;
   18601       aix[4-9]*)
   18602         if test "$host_cpu" = ia64; then
   18603           # On IA64, the linker does run time linking by default, so we don't
   18604           # have to do anything special.
   18605           aix_use_runtimelinking=no
   18606           exp_sym_flag='-Bexport'
   18607           no_entry_flag=""
   18608         else
   18609           aix_use_runtimelinking=no
   18610 
   18611           # Test if we are trying to use run time linking or normal
   18612           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
   18613           # need to do runtime linking.
   18614           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   18615 	    for ld_flag in $LDFLAGS; do
   18616 	      case $ld_flag in
   18617 	      *-brtl*)
   18618 	        aix_use_runtimelinking=yes
   18619 	        break
   18620 	        ;;
   18621 	      esac
   18622 	    done
   18623 	    ;;
   18624           esac
   18625 
   18626           exp_sym_flag='-bexport'
   18627           no_entry_flag='-bnoentry'
   18628         fi
   18629 
   18630         # When large executables or shared objects are built, AIX ld can
   18631         # have problems creating the table of contents.  If linking a library
   18632         # or program results in "error TOC overflow" add -mminimal-toc to
   18633         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   18634         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   18635 
   18636         archive_cmds_CXX=''
   18637         hardcode_direct_CXX=yes
   18638         hardcode_direct_absolute_CXX=yes
   18639         hardcode_libdir_separator_CXX=':'
   18640         link_all_deplibs_CXX=yes
   18641         file_list_spec_CXX='${wl}-f,'
   18642 
   18643         if test "$GXX" = yes; then
   18644           case $host_os in aix4.[012]|aix4.[012].*)
   18645           # We only want to do this on AIX 4.2 and lower, the check
   18646           # below for broken collect2 doesn't work under 4.3+
   18647 	  collect2name=`${CC} -print-prog-name=collect2`
   18648 	  if test -f "$collect2name" &&
   18649 	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   18650 	  then
   18651 	    # We have reworked collect2
   18652 	    :
   18653 	  else
   18654 	    # We have old collect2
   18655 	    hardcode_direct_CXX=unsupported
   18656 	    # It fails to find uninstalled libraries when the uninstalled
   18657 	    # path is not listed in the libpath.  Setting hardcode_minus_L
   18658 	    # to unsupported forces relinking
   18659 	    hardcode_minus_L_CXX=yes
   18660 	    hardcode_libdir_flag_spec_CXX='-L$libdir'
   18661 	    hardcode_libdir_separator_CXX=
   18662 	  fi
   18663           esac
   18664           shared_flag='-shared'
   18665 	  if test "$aix_use_runtimelinking" = yes; then
   18666 	    shared_flag="$shared_flag "'${wl}-G'
   18667 	  fi
   18668         else
   18669           # not using gcc
   18670           if test "$host_cpu" = ia64; then
   18671 	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   18672 	  # chokes on -Wl,-G. The following line is correct:
   18673 	  shared_flag='-G'
   18674           else
   18675 	    if test "$aix_use_runtimelinking" = yes; then
   18676 	      shared_flag='${wl}-G'
   18677 	    else
   18678 	      shared_flag='${wl}-bM:SRE'
   18679 	    fi
   18680           fi
   18681         fi
   18682 
   18683         export_dynamic_flag_spec_CXX='${wl}-bexpall'
   18684         # It seems that -bexpall does not export symbols beginning with
   18685         # underscore (_), so it is better to generate a list of symbols to
   18686 	# export.
   18687         always_export_symbols_CXX=yes
   18688         if test "$aix_use_runtimelinking" = yes; then
   18689           # Warning - without using the other runtime loading flags (-brtl),
   18690           # -berok will link without error, but may produce a broken library.
   18691           allow_undefined_flag_CXX='-berok'
   18692           # Determine the default libpath from the value encoded in an empty
   18693           # executable.
   18694           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18695 /* end confdefs.h.  */
   18696 
   18697 int
   18698 main ()
   18699 {
   18700 
   18701   ;
   18702   return 0;
   18703 }
   18704 _ACEOF
   18705 if ac_fn_cxx_try_link "$LINENO"; then :
   18706 
   18707 lt_aix_libpath_sed='
   18708     /Import File Strings/,/^$/ {
   18709 	/^0/ {
   18710 	    s/^0  *\(.*\)$/\1/
   18711 	    p
   18712 	}
   18713     }'
   18714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   18715 # Check for a 64-bit object if we didn't find anything.
   18716 if test -z "$aix_libpath"; then
   18717   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   18718 fi
   18719 fi
   18720 rm -f core conftest.err conftest.$ac_objext \
   18721     conftest$ac_exeext conftest.$ac_ext
   18722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   18723 
   18724           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
   18725 
   18726           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   18727         else
   18728           if test "$host_cpu" = ia64; then
   18729 	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
   18730 	    allow_undefined_flag_CXX="-z nodefs"
   18731 	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
   18732           else
   18733 	    # Determine the default libpath from the value encoded in an
   18734 	    # empty executable.
   18735 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18736 /* end confdefs.h.  */
   18737 
   18738 int
   18739 main ()
   18740 {
   18741 
   18742   ;
   18743   return 0;
   18744 }
   18745 _ACEOF
   18746 if ac_fn_cxx_try_link "$LINENO"; then :
   18747 
   18748 lt_aix_libpath_sed='
   18749     /Import File Strings/,/^$/ {
   18750 	/^0/ {
   18751 	    s/^0  *\(.*\)$/\1/
   18752 	    p
   18753 	}
   18754     }'
   18755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   18756 # Check for a 64-bit object if we didn't find anything.
   18757 if test -z "$aix_libpath"; then
   18758   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   18759 fi
   18760 fi
   18761 rm -f core conftest.err conftest.$ac_objext \
   18762     conftest$ac_exeext conftest.$ac_ext
   18763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   18764 
   18765 	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
   18766 	    # Warning - without using the other run time loading flags,
   18767 	    # -berok will link without error, but may produce a broken library.
   18768 	    no_undefined_flag_CXX=' ${wl}-bernotok'
   18769 	    allow_undefined_flag_CXX=' ${wl}-berok'
   18770 	    if test "$with_gnu_ld" = yes; then
   18771 	      # We only use this code for GNU lds that support --whole-archive.
   18772 	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   18773 	    else
   18774 	      # Exported symbols can be pulled into shared objects from archives
   18775 	      whole_archive_flag_spec_CXX='$convenience'
   18776 	    fi
   18777 	    archive_cmds_need_lc_CXX=yes
   18778 	    # This is similar to how AIX traditionally builds its shared
   18779 	    # libraries.
   18780 	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   18781           fi
   18782         fi
   18783         ;;
   18784 
   18785       beos*)
   18786 	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   18787 	  allow_undefined_flag_CXX=unsupported
   18788 	  # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   18789 	  # support --undefined.  This deserves some investigation.  FIXME
   18790 	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   18791 	else
   18792 	  ld_shlibs_CXX=no
   18793 	fi
   18794 	;;
   18795 
   18796       chorus*)
   18797         case $cc_basename in
   18798           *)
   18799 	  # FIXME: insert proper C++ library support
   18800 	  ld_shlibs_CXX=no
   18801 	  ;;
   18802         esac
   18803         ;;
   18804 
   18805       cygwin* | mingw* | pw32* | cegcc*)
   18806         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
   18807         # as there is no search path for DLLs.
   18808         hardcode_libdir_flag_spec_CXX='-L$libdir'
   18809         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
   18810         allow_undefined_flag_CXX=unsupported
   18811         always_export_symbols_CXX=no
   18812         enable_shared_with_static_runtimes_CXX=yes
   18813 
   18814         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   18815           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   18816           # If the export-symbols file already is a .def file (1st line
   18817           # is EXPORTS), use it as is; otherwise, prepend...
   18818           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   18819 	    cp $export_symbols $output_objdir/$soname.def;
   18820           else
   18821 	    echo EXPORTS > $output_objdir/$soname.def;
   18822 	    cat $export_symbols >> $output_objdir/$soname.def;
   18823           fi~
   18824           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   18825         else
   18826           ld_shlibs_CXX=no
   18827         fi
   18828         ;;
   18829       darwin* | rhapsody*)
   18830 
   18831 
   18832   archive_cmds_need_lc_CXX=no
   18833   hardcode_direct_CXX=no
   18834   hardcode_automatic_CXX=yes
   18835   hardcode_shlibpath_var_CXX=unsupported
   18836   if test "$lt_cv_ld_force_load" = "yes"; then
   18837     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
   18838   else
   18839     whole_archive_flag_spec_CXX=''
   18840   fi
   18841   link_all_deplibs_CXX=yes
   18842   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
   18843   case $cc_basename in
   18844      ifort*) _lt_dar_can_shared=yes ;;
   18845      *) _lt_dar_can_shared=$GCC ;;
   18846   esac
   18847   if test "$_lt_dar_can_shared" = "yes"; then
   18848     output_verbose_link_cmd=func_echo_all
   18849     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
   18850     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   18851     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
   18852     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
   18853        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
   18854       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
   18855       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
   18856     fi
   18857 
   18858   else
   18859   ld_shlibs_CXX=no
   18860   fi
   18861 
   18862 	;;
   18863 
   18864       dgux*)
   18865         case $cc_basename in
   18866           ec++*)
   18867 	    # FIXME: insert proper C++ library support
   18868 	    ld_shlibs_CXX=no
   18869 	    ;;
   18870           ghcx*)
   18871 	    # Green Hills C++ Compiler
   18872 	    # FIXME: insert proper C++ library support
   18873 	    ld_shlibs_CXX=no
   18874 	    ;;
   18875           *)
   18876 	    # FIXME: insert proper C++ library support
   18877 	    ld_shlibs_CXX=no
   18878 	    ;;
   18879         esac
   18880         ;;
   18881 
   18882       freebsd2.*)
   18883         # C++ shared libraries reported to be fairly broken before
   18884 	# switch to ELF
   18885         ld_shlibs_CXX=no
   18886         ;;
   18887 
   18888       freebsd-elf*)
   18889         archive_cmds_need_lc_CXX=no
   18890         ;;
   18891 
   18892       freebsd* | dragonfly*)
   18893         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
   18894         # conventions
   18895         ld_shlibs_CXX=yes
   18896         ;;
   18897 
   18898       gnu*)
   18899         ;;
   18900 
   18901       haiku*)
   18902         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   18903         link_all_deplibs_CXX=yes
   18904         ;;
   18905 
   18906       hpux9*)
   18907         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
   18908         hardcode_libdir_separator_CXX=:
   18909         export_dynamic_flag_spec_CXX='${wl}-E'
   18910         hardcode_direct_CXX=yes
   18911         hardcode_minus_L_CXX=yes # Not in the search PATH,
   18912 				             # but as the default
   18913 				             # location of the library.
   18914 
   18915         case $cc_basename in
   18916           CC*)
   18917             # FIXME: insert proper C++ library support
   18918             ld_shlibs_CXX=no
   18919             ;;
   18920           aCC*)
   18921             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   18922             # Commands to make compiler produce verbose output that lists
   18923             # what "hidden" libraries, object files and flags are used when
   18924             # linking a shared library.
   18925             #
   18926             # There doesn't appear to be a way to prevent this compiler from
   18927             # explicitly linking system object files so we need to strip them
   18928             # from the output so that they don't get included in the library
   18929             # dependencies.
   18930             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
   18931             ;;
   18932           *)
   18933             if test "$GXX" = yes; then
   18934               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   18935             else
   18936               # FIXME: insert proper C++ library support
   18937               ld_shlibs_CXX=no
   18938             fi
   18939             ;;
   18940         esac
   18941         ;;
   18942 
   18943       hpux10*|hpux11*)
   18944         if test $with_gnu_ld = no; then
   18945 	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
   18946 	  hardcode_libdir_separator_CXX=:
   18947 
   18948           case $host_cpu in
   18949             hppa*64*|ia64*)
   18950               ;;
   18951             *)
   18952 	      export_dynamic_flag_spec_CXX='${wl}-E'
   18953               ;;
   18954           esac
   18955         fi
   18956         case $host_cpu in
   18957           hppa*64*|ia64*)
   18958             hardcode_direct_CXX=no
   18959             hardcode_shlibpath_var_CXX=no
   18960             ;;
   18961           *)
   18962             hardcode_direct_CXX=yes
   18963             hardcode_direct_absolute_CXX=yes
   18964             hardcode_minus_L_CXX=yes # Not in the search PATH,
   18965 					         # but as the default
   18966 					         # location of the library.
   18967             ;;
   18968         esac
   18969 
   18970         case $cc_basename in
   18971           CC*)
   18972 	    # FIXME: insert proper C++ library support
   18973 	    ld_shlibs_CXX=no
   18974 	    ;;
   18975           aCC*)
   18976 	    case $host_cpu in
   18977 	      hppa*64*)
   18978 	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   18979 	        ;;
   18980 	      ia64*)
   18981 	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   18982 	        ;;
   18983 	      *)
   18984 	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   18985 	        ;;
   18986 	    esac
   18987 	    # Commands to make compiler produce verbose output that lists
   18988 	    # what "hidden" libraries, object files and flags are used when
   18989 	    # linking a shared library.
   18990 	    #
   18991 	    # There doesn't appear to be a way to prevent this compiler from
   18992 	    # explicitly linking system object files so we need to strip them
   18993 	    # from the output so that they don't get included in the library
   18994 	    # dependencies.
   18995 	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
   18996 	    ;;
   18997           *)
   18998 	    if test "$GXX" = yes; then
   18999 	      if test $with_gnu_ld = no; then
   19000 	        case $host_cpu in
   19001 	          hppa*64*)
   19002 	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   19003 	            ;;
   19004 	          ia64*)
   19005 	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   19006 	            ;;
   19007 	          *)
   19008 	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   19009 	            ;;
   19010 	        esac
   19011 	      fi
   19012 	    else
   19013 	      # FIXME: insert proper C++ library support
   19014 	      ld_shlibs_CXX=no
   19015 	    fi
   19016 	    ;;
   19017         esac
   19018         ;;
   19019 
   19020       interix[3-9]*)
   19021 	hardcode_direct_CXX=no
   19022 	hardcode_shlibpath_var_CXX=no
   19023 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   19024 	export_dynamic_flag_spec_CXX='${wl}-E'
   19025 	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   19026 	# Instead, shared libraries are loaded at an image base (0x10000000 by
   19027 	# default) and relocated if they conflict, which is a slow very memory
   19028 	# consuming and fragmenting process.  To avoid this, we pick a random,
   19029 	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   19030 	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   19031 	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   19032 	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   19033 	;;
   19034       irix5* | irix6*)
   19035         case $cc_basename in
   19036           CC*)
   19037 	    # SGI C++
   19038 	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
   19039 
   19040 	    # Archives containing C++ object files must be created using
   19041 	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
   19042 	    # necessary to make sure instantiated templates are included
   19043 	    # in the archive.
   19044 	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
   19045 	    ;;
   19046           *)
   19047 	    if test "$GXX" = yes; then
   19048 	      if test "$with_gnu_ld" = no; then
   19049 	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   19050 	      else
   19051 	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
   19052 	      fi
   19053 	    fi
   19054 	    link_all_deplibs_CXX=yes
   19055 	    ;;
   19056         esac
   19057         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   19058         hardcode_libdir_separator_CXX=:
   19059         inherit_rpath_CXX=yes
   19060         ;;
   19061 
   19062       linux* | k*bsd*-gnu | kopensolaris*-gnu)
   19063         case $cc_basename in
   19064           KCC*)
   19065 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
   19066 
   19067 	    # KCC will only create a shared library if the output file
   19068 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
   19069 	    # to its proper name (with version) after linking.
   19070 	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
   19071 	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
   19072 	    # Commands to make compiler produce verbose output that lists
   19073 	    # what "hidden" libraries, object files and flags are used when
   19074 	    # linking a shared library.
   19075 	    #
   19076 	    # There doesn't appear to be a way to prevent this compiler from
   19077 	    # explicitly linking system object files so we need to strip them
   19078 	    # from the output so that they don't get included in the library
   19079 	    # dependencies.
   19080 	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
   19081 
   19082 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   19083 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   19084 
   19085 	    # Archives containing C++ object files must be created using
   19086 	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
   19087 	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
   19088 	    ;;
   19089 	  icpc* | ecpc* )
   19090 	    # Intel C++
   19091 	    with_gnu_ld=yes
   19092 	    # version 8.0 and above of icpc choke on multiply defined symbols
   19093 	    # if we add $predep_objects and $postdep_objects, however 7.1 and
   19094 	    # earlier do not add the objects themselves.
   19095 	    case `$CC -V 2>&1` in
   19096 	      *"Version 7."*)
   19097 	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   19098 		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   19099 		;;
   19100 	      *)  # Version 8.0 or newer
   19101 	        tmp_idyn=
   19102 	        case $host_cpu in
   19103 		  ia64*) tmp_idyn=' -i_dynamic';;
   19104 		esac
   19105 	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   19106 		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   19107 		;;
   19108 	    esac
   19109 	    archive_cmds_need_lc_CXX=no
   19110 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   19111 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   19112 	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   19113 	    ;;
   19114           pgCC* | pgcpp*)
   19115             # Portland Group C++ compiler
   19116 	    case `$CC -V` in
   19117 	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
   19118 	      prelink_cmds_CXX='tpldir=Template.dir~
   19119 		rm -rf $tpldir~
   19120 		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
   19121 		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
   19122 	      old_archive_cmds_CXX='tpldir=Template.dir~
   19123 		rm -rf $tpldir~
   19124 		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
   19125 		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
   19126 		$RANLIB $oldlib'
   19127 	      archive_cmds_CXX='tpldir=Template.dir~
   19128 		rm -rf $tpldir~
   19129 		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
   19130 		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
   19131 	      archive_expsym_cmds_CXX='tpldir=Template.dir~
   19132 		rm -rf $tpldir~
   19133 		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
   19134 		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
   19135 	      ;;
   19136 	    *) # Version 6 and above use weak symbols
   19137 	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
   19138 	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
   19139 	      ;;
   19140 	    esac
   19141 
   19142 	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
   19143 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   19144 	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
   19145             ;;
   19146 	  cxx*)
   19147 	    # Compaq C++
   19148 	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   19149 	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
   19150 
   19151 	    runpath_var=LD_RUN_PATH
   19152 	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
   19153 	    hardcode_libdir_separator_CXX=:
   19154 
   19155 	    # Commands to make compiler produce verbose output that lists
   19156 	    # what "hidden" libraries, object files and flags are used when
   19157 	    # linking a shared library.
   19158 	    #
   19159 	    # There doesn't appear to be a way to prevent this compiler from
   19160 	    # explicitly linking system object files so we need to strip them
   19161 	    # from the output so that they don't get included in the library
   19162 	    # dependencies.
   19163 	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
   19164 	    ;;
   19165 	  xl* | mpixl* | bgxl*)
   19166 	    # IBM XL 8.0 on PPC, with GNU ld
   19167 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   19168 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   19169 	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   19170 	    if test "x$supports_anon_versioning" = xyes; then
   19171 	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
   19172 		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   19173 		echo "local: *; };" >> $output_objdir/$libname.ver~
   19174 		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   19175 	    fi
   19176 	    ;;
   19177 	  *)
   19178 	    case `$CC -V 2>&1 | sed 5q` in
   19179 	    *Sun\ C*)
   19180 	      # Sun C++ 5.9
   19181 	      no_undefined_flag_CXX=' -zdefs'
   19182 	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   19183 	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
   19184 	      hardcode_libdir_flag_spec_CXX='-R$libdir'
   19185 	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
   19186 	      compiler_needs_object_CXX=yes
   19187 
   19188 	      # Not sure whether something based on
   19189 	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
   19190 	      # would be better.
   19191 	      output_verbose_link_cmd='func_echo_all'
   19192 
   19193 	      # Archives containing C++ object files must be created using
   19194 	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
   19195 	      # necessary to make sure instantiated templates are included
   19196 	      # in the archive.
   19197 	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
   19198 	      ;;
   19199 	    esac
   19200 	    ;;
   19201 	esac
   19202 	;;
   19203 
   19204       lynxos*)
   19205         # FIXME: insert proper C++ library support
   19206 	ld_shlibs_CXX=no
   19207 	;;
   19208 
   19209       m88k*)
   19210         # FIXME: insert proper C++ library support
   19211         ld_shlibs_CXX=no
   19212 	;;
   19213 
   19214       mvs*)
   19215         case $cc_basename in
   19216           cxx*)
   19217 	    # FIXME: insert proper C++ library support
   19218 	    ld_shlibs_CXX=no
   19219 	    ;;
   19220 	  *)
   19221 	    # FIXME: insert proper C++ library support
   19222 	    ld_shlibs_CXX=no
   19223 	    ;;
   19224 	esac
   19225 	;;
   19226 
   19227       netbsd*)
   19228         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   19229 	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
   19230 	  wlarc=
   19231 	  hardcode_libdir_flag_spec_CXX='-R$libdir'
   19232 	  hardcode_direct_CXX=yes
   19233 	  hardcode_shlibpath_var_CXX=no
   19234 	fi
   19235 	# Workaround some broken pre-1.5 toolchains
   19236 	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
   19237 	;;
   19238 
   19239       *nto* | *qnx*)
   19240         ld_shlibs_CXX=yes
   19241 	;;
   19242 
   19243       openbsd2*)
   19244         # C++ shared libraries are fairly broken
   19245 	ld_shlibs_CXX=no
   19246 	;;
   19247 
   19248       openbsd*)
   19249 	if test -f /usr/libexec/ld.so; then
   19250 	  hardcode_direct_CXX=yes
   19251 	  hardcode_shlibpath_var_CXX=no
   19252 	  hardcode_direct_absolute_CXX=yes
   19253 	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
   19254 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   19255 	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   19256 	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
   19257 	    export_dynamic_flag_spec_CXX='${wl}-E'
   19258 	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   19259 	  fi
   19260 	  output_verbose_link_cmd=func_echo_all
   19261 	else
   19262 	  ld_shlibs_CXX=no
   19263 	fi
   19264 	;;
   19265 
   19266       osf3* | osf4* | osf5*)
   19267         case $cc_basename in
   19268           KCC*)
   19269 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
   19270 
   19271 	    # KCC will only create a shared library if the output file
   19272 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
   19273 	    # to its proper name (with version) after linking.
   19274 	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
   19275 
   19276 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   19277 	    hardcode_libdir_separator_CXX=:
   19278 
   19279 	    # Archives containing C++ object files must be created using
   19280 	    # the KAI C++ compiler.
   19281 	    case $host in
   19282 	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
   19283 	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
   19284 	    esac
   19285 	    ;;
   19286           RCC*)
   19287 	    # Rational C++ 2.4.1
   19288 	    # FIXME: insert proper C++ library support
   19289 	    ld_shlibs_CXX=no
   19290 	    ;;
   19291           cxx*)
   19292 	    case $host in
   19293 	      osf3*)
   19294 	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
   19295 	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
   19296 	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   19297 		;;
   19298 	      *)
   19299 	        allow_undefined_flag_CXX=' -expect_unresolved \*'
   19300 	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
   19301 	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
   19302 	          echo "-hidden">> $lib.exp~
   19303 	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
   19304 	          $RM $lib.exp'
   19305 	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
   19306 		;;
   19307 	    esac
   19308 
   19309 	    hardcode_libdir_separator_CXX=:
   19310 
   19311 	    # Commands to make compiler produce verbose output that lists
   19312 	    # what "hidden" libraries, object files and flags are used when
   19313 	    # linking a shared library.
   19314 	    #
   19315 	    # There doesn't appear to be a way to prevent this compiler from
   19316 	    # explicitly linking system object files so we need to strip them
   19317 	    # from the output so that they don't get included in the library
   19318 	    # dependencies.
   19319 	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
   19320 	    ;;
   19321 	  *)
   19322 	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
   19323 	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
   19324 	      case $host in
   19325 	        osf3*)
   19326 	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   19327 		  ;;
   19328 	        *)
   19329 	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   19330 		  ;;
   19331 	      esac
   19332 
   19333 	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   19334 	      hardcode_libdir_separator_CXX=:
   19335 
   19336 	      # Commands to make compiler produce verbose output that lists
   19337 	      # what "hidden" libraries, object files and flags are used when
   19338 	      # linking a shared library.
   19339 	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
   19340 
   19341 	    else
   19342 	      # FIXME: insert proper C++ library support
   19343 	      ld_shlibs_CXX=no
   19344 	    fi
   19345 	    ;;
   19346         esac
   19347         ;;
   19348 
   19349       psos*)
   19350         # FIXME: insert proper C++ library support
   19351         ld_shlibs_CXX=no
   19352         ;;
   19353 
   19354       sunos4*)
   19355         case $cc_basename in
   19356           CC*)
   19357 	    # Sun C++ 4.x
   19358 	    # FIXME: insert proper C++ library support
   19359 	    ld_shlibs_CXX=no
   19360 	    ;;
   19361           lcc*)
   19362 	    # Lucid
   19363 	    # FIXME: insert proper C++ library support
   19364 	    ld_shlibs_CXX=no
   19365 	    ;;
   19366           *)
   19367 	    # FIXME: insert proper C++ library support
   19368 	    ld_shlibs_CXX=no
   19369 	    ;;
   19370         esac
   19371         ;;
   19372 
   19373       solaris*)
   19374         case $cc_basename in
   19375           CC*)
   19376 	    # Sun C++ 4.2, 5.x and Centerline C++
   19377             archive_cmds_need_lc_CXX=yes
   19378 	    no_undefined_flag_CXX=' -zdefs'
   19379 	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   19380 	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   19381 	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
   19382 
   19383 	    hardcode_libdir_flag_spec_CXX='-R$libdir'
   19384 	    hardcode_shlibpath_var_CXX=no
   19385 	    case $host_os in
   19386 	      solaris2.[0-5] | solaris2.[0-5].*) ;;
   19387 	      *)
   19388 		# The compiler driver will combine and reorder linker options,
   19389 		# but understands `-z linker_flag'.
   19390 	        # Supported since Solaris 2.6 (maybe 2.5.1?)
   19391 		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
   19392 	        ;;
   19393 	    esac
   19394 	    link_all_deplibs_CXX=yes
   19395 
   19396 	    output_verbose_link_cmd='func_echo_all'
   19397 
   19398 	    # Archives containing C++ object files must be created using
   19399 	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
   19400 	    # necessary to make sure instantiated templates are included
   19401 	    # in the archive.
   19402 	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
   19403 	    ;;
   19404           gcx*)
   19405 	    # Green Hills C++ Compiler
   19406 	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   19407 
   19408 	    # The C++ compiler must be used to create the archive.
   19409 	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
   19410 	    ;;
   19411           *)
   19412 	    # GNU C++ compiler with Solaris linker
   19413 	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
   19414 	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
   19415 	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
   19416 	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   19417 	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   19418 		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
   19419 
   19420 	        # Commands to make compiler produce verbose output that lists
   19421 	        # what "hidden" libraries, object files and flags are used when
   19422 	        # linking a shared library.
   19423 	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
   19424 	      else
   19425 	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
   19426 	        # platform.
   19427 	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   19428 	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   19429 		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
   19430 
   19431 	        # Commands to make compiler produce verbose output that lists
   19432 	        # what "hidden" libraries, object files and flags are used when
   19433 	        # linking a shared library.
   19434 	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
   19435 	      fi
   19436 
   19437 	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
   19438 	      case $host_os in
   19439 		solaris2.[0-5] | solaris2.[0-5].*) ;;
   19440 		*)
   19441 		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
   19442 		  ;;
   19443 	      esac
   19444 	    fi
   19445 	    ;;
   19446         esac
   19447         ;;
   19448 
   19449     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   19450       no_undefined_flag_CXX='${wl}-z,text'
   19451       archive_cmds_need_lc_CXX=no
   19452       hardcode_shlibpath_var_CXX=no
   19453       runpath_var='LD_RUN_PATH'
   19454 
   19455       case $cc_basename in
   19456         CC*)
   19457 	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   19458 	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   19459 	  ;;
   19460 	*)
   19461 	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   19462 	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   19463 	  ;;
   19464       esac
   19465       ;;
   19466 
   19467       sysv5* | sco3.2v5* | sco5v6*)
   19468 	# Note: We can NOT use -z defs as we might desire, because we do not
   19469 	# link with -lc, and that would cause any symbols used from libc to
   19470 	# always be unresolved, which means just about no library would
   19471 	# ever link correctly.  If we're not using GNU ld we use -z text
   19472 	# though, which does catch some bad symbols but isn't as heavy-handed
   19473 	# as -z defs.
   19474 	no_undefined_flag_CXX='${wl}-z,text'
   19475 	allow_undefined_flag_CXX='${wl}-z,nodefs'
   19476 	archive_cmds_need_lc_CXX=no
   19477 	hardcode_shlibpath_var_CXX=no
   19478 	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
   19479 	hardcode_libdir_separator_CXX=':'
   19480 	link_all_deplibs_CXX=yes
   19481 	export_dynamic_flag_spec_CXX='${wl}-Bexport'
   19482 	runpath_var='LD_RUN_PATH'
   19483 
   19484 	case $cc_basename in
   19485           CC*)
   19486 	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   19487 	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   19488 	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
   19489 	      '"$old_archive_cmds_CXX"
   19490 	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
   19491 	      '"$reload_cmds_CXX"
   19492 	    ;;
   19493 	  *)
   19494 	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   19495 	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   19496 	    ;;
   19497 	esac
   19498       ;;
   19499 
   19500       tandem*)
   19501         case $cc_basename in
   19502           NCC*)
   19503 	    # NonStop-UX NCC 3.20
   19504 	    # FIXME: insert proper C++ library support
   19505 	    ld_shlibs_CXX=no
   19506 	    ;;
   19507           *)
   19508 	    # FIXME: insert proper C++ library support
   19509 	    ld_shlibs_CXX=no
   19510 	    ;;
   19511         esac
   19512         ;;
   19513 
   19514       vxworks*)
   19515         # FIXME: insert proper C++ library support
   19516         ld_shlibs_CXX=no
   19517         ;;
   19518 
   19519       *)
   19520         # FIXME: insert proper C++ library support
   19521         ld_shlibs_CXX=no
   19522         ;;
   19523     esac
   19524 
   19525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
   19526 $as_echo "$ld_shlibs_CXX" >&6; }
   19527     test "$ld_shlibs_CXX" = no && can_build_shared=no
   19528 
   19529     GCC_CXX="$GXX"
   19530     LD_CXX="$LD"
   19531 
   19532     ## CAVEAT EMPTOR:
   19533     ## There is no encapsulation within the following macros, do not change
   19534     ## the running order or otherwise move them around unless you know exactly
   19535     ## what you are doing...
   19536     # Dependencies to place before and after the object being linked:
   19537 predep_objects_CXX=
   19538 postdep_objects_CXX=
   19539 predeps_CXX=
   19540 postdeps_CXX=
   19541 compiler_lib_search_path_CXX=
   19542 
   19543 cat > conftest.$ac_ext <<_LT_EOF
   19544 class Foo
   19545 {
   19546 public:
   19547   Foo (void) { a = 0; }
   19548 private:
   19549   int a;
   19550 };
   19551 _LT_EOF
   19552 
   19553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   19554   (eval $ac_compile) 2>&5
   19555   ac_status=$?
   19556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19557   test $ac_status = 0; }; then
   19558   # Parse the compiler output and extract the necessary
   19559   # objects, libraries and library flags.
   19560 
   19561   # Sentinel used to keep track of whether or not we are before
   19562   # the conftest object file.
   19563   pre_test_object_deps_done=no
   19564 
   19565   for p in `eval "$output_verbose_link_cmd"`; do
   19566     case $p in
   19567 
   19568     -L* | -R* | -l*)
   19569        # Some compilers place space between "-{L,R}" and the path.
   19570        # Remove the space.
   19571        if test $p = "-L" ||
   19572           test $p = "-R"; then
   19573 	 prev=$p
   19574 	 continue
   19575        else
   19576 	 prev=
   19577        fi
   19578 
   19579        if test "$pre_test_object_deps_done" = no; then
   19580 	 case $p in
   19581 	 -L* | -R*)
   19582 	   # Internal compiler library paths should come after those
   19583 	   # provided the user.  The postdeps already come after the
   19584 	   # user supplied libs so there is no need to process them.
   19585 	   if test -z "$compiler_lib_search_path_CXX"; then
   19586 	     compiler_lib_search_path_CXX="${prev}${p}"
   19587 	   else
   19588 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
   19589 	   fi
   19590 	   ;;
   19591 	 # The "-l" case would never come before the object being
   19592 	 # linked, so don't bother handling this case.
   19593 	 esac
   19594        else
   19595 	 if test -z "$postdeps_CXX"; then
   19596 	   postdeps_CXX="${prev}${p}"
   19597 	 else
   19598 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
   19599 	 fi
   19600        fi
   19601        ;;
   19602 
   19603     *.$objext)
   19604        # This assumes that the test object file only shows up
   19605        # once in the compiler output.
   19606        if test "$p" = "conftest.$objext"; then
   19607 	 pre_test_object_deps_done=yes
   19608 	 continue
   19609        fi
   19610 
   19611        if test "$pre_test_object_deps_done" = no; then
   19612 	 if test -z "$predep_objects_CXX"; then
   19613 	   predep_objects_CXX="$p"
   19614 	 else
   19615 	   predep_objects_CXX="$predep_objects_CXX $p"
   19616 	 fi
   19617        else
   19618 	 if test -z "$postdep_objects_CXX"; then
   19619 	   postdep_objects_CXX="$p"
   19620 	 else
   19621 	   postdep_objects_CXX="$postdep_objects_CXX $p"
   19622 	 fi
   19623        fi
   19624        ;;
   19625 
   19626     *) ;; # Ignore the rest.
   19627 
   19628     esac
   19629   done
   19630 
   19631   # Clean up.
   19632   rm -f a.out a.exe
   19633 else
   19634   echo "libtool.m4: error: problem compiling CXX test program"
   19635 fi
   19636 
   19637 $RM -f confest.$objext
   19638 
   19639 # PORTME: override above test on systems where it is broken
   19640 case $host_os in
   19641 interix[3-9]*)
   19642   # Interix 3.5 installs completely hosed .la files for C++, so rather than
   19643   # hack all around it, let's just trust "g++" to DTRT.
   19644   predep_objects_CXX=
   19645   postdep_objects_CXX=
   19646   postdeps_CXX=
   19647   ;;
   19648 
   19649 linux*)
   19650   case `$CC -V 2>&1 | sed 5q` in
   19651   *Sun\ C*)
   19652     # Sun C++ 5.9
   19653 
   19654     # The more standards-conforming stlport4 library is
   19655     # incompatible with the Cstd library. Avoid specifying
   19656     # it if it's in CXXFLAGS. Ignore libCrun as
   19657     # -library=stlport4 depends on it.
   19658     case " $CXX $CXXFLAGS " in
   19659     *" -library=stlport4 "*)
   19660       solaris_use_stlport4=yes
   19661       ;;
   19662     esac
   19663 
   19664     if test "$solaris_use_stlport4" != yes; then
   19665       postdeps_CXX='-library=Cstd -library=Crun'
   19666     fi
   19667     ;;
   19668   esac
   19669   ;;
   19670 
   19671 solaris*)
   19672   case $cc_basename in
   19673   CC*)
   19674     # The more standards-conforming stlport4 library is
   19675     # incompatible with the Cstd library. Avoid specifying
   19676     # it if it's in CXXFLAGS. Ignore libCrun as
   19677     # -library=stlport4 depends on it.
   19678     case " $CXX $CXXFLAGS " in
   19679     *" -library=stlport4 "*)
   19680       solaris_use_stlport4=yes
   19681       ;;
   19682     esac
   19683 
   19684     # Adding this requires a known-good setup of shared libraries for
   19685     # Sun compiler versions before 5.6, else PIC objects from an old
   19686     # archive will be linked into the output, leading to subtle bugs.
   19687     if test "$solaris_use_stlport4" != yes; then
   19688       postdeps_CXX='-library=Cstd -library=Crun'
   19689     fi
   19690     ;;
   19691   esac
   19692   ;;
   19693 esac
   19694 
   19695 
   19696 case " $postdeps_CXX " in
   19697 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
   19698 esac
   19699  compiler_lib_search_dirs_CXX=
   19700 if test -n "${compiler_lib_search_path_CXX}"; then
   19701  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
   19702 fi
   19703 
   19704 
   19705 
   19706 
   19707 
   19708 
   19709 
   19710 
   19711 
   19712 
   19713 
   19714 
   19715 
   19716 
   19717 
   19718 
   19719 
   19720 
   19721 
   19722 
   19723 
   19724 
   19725 
   19726 
   19727 
   19728 
   19729 
   19730 
   19731 
   19732 
   19733 
   19734     lt_prog_compiler_wl_CXX=
   19735 lt_prog_compiler_pic_CXX=
   19736 lt_prog_compiler_static_CXX=
   19737 
   19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   19739 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   19740 
   19741   # C++ specific cases for pic, static, wl, etc.
   19742   if test "$GXX" = yes; then
   19743     lt_prog_compiler_wl_CXX='-Wl,'
   19744     lt_prog_compiler_static_CXX='-static'
   19745 
   19746     case $host_os in
   19747     aix*)
   19748       # All AIX code is PIC.
   19749       if test "$host_cpu" = ia64; then
   19750 	# AIX 5 now supports IA64 processor
   19751 	lt_prog_compiler_static_CXX='-Bstatic'
   19752       fi
   19753       lt_prog_compiler_pic_CXX='-fPIC'
   19754       ;;
   19755 
   19756     amigaos*)
   19757       case $host_cpu in
   19758       powerpc)
   19759             # see comment about AmigaOS4 .so support
   19760             lt_prog_compiler_pic_CXX='-fPIC'
   19761         ;;
   19762       m68k)
   19763             # FIXME: we need at least 68020 code to build shared libraries, but
   19764             # adding the `-m68020' flag to GCC prevents building anything better,
   19765             # like `-m68040'.
   19766             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
   19767         ;;
   19768       esac
   19769       ;;
   19770 
   19771     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   19772       # PIC is the default for these OSes.
   19773       ;;
   19774     mingw* | cygwin* | os2* | pw32* | cegcc*)
   19775       # This hack is so that the source file can tell whether it is being
   19776       # built for inclusion in a dll (and should export symbols for example).
   19777       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   19778       # (--disable-auto-import) libraries
   19779       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
   19780       ;;
   19781     darwin* | rhapsody*)
   19782       # PIC is the default on this platform
   19783       # Common symbols not allowed in MH_DYLIB files
   19784       lt_prog_compiler_pic_CXX='-fno-common'
   19785       ;;
   19786     *djgpp*)
   19787       # DJGPP does not support shared libraries at all
   19788       lt_prog_compiler_pic_CXX=
   19789       ;;
   19790     haiku*)
   19791       # PIC is the default for Haiku.
   19792       # The "-static" flag exists, but is broken.
   19793       lt_prog_compiler_static_CXX=
   19794       ;;
   19795     interix[3-9]*)
   19796       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   19797       # Instead, we relocate shared libraries at runtime.
   19798       ;;
   19799     sysv4*MP*)
   19800       if test -d /usr/nec; then
   19801 	lt_prog_compiler_pic_CXX=-Kconform_pic
   19802       fi
   19803       ;;
   19804     hpux*)
   19805       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   19806       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   19807       # sets the default TLS model and affects inlining.
   19808       case $host_cpu in
   19809       hppa*64*)
   19810 	;;
   19811       *)
   19812 	lt_prog_compiler_pic_CXX='-fPIC'
   19813 	;;
   19814       esac
   19815       ;;
   19816     *qnx* | *nto*)
   19817       # QNX uses GNU C++, but need to define -shared option too, otherwise
   19818       # it will coredump.
   19819       lt_prog_compiler_pic_CXX='-fPIC -shared'
   19820       ;;
   19821     *)
   19822       lt_prog_compiler_pic_CXX='-fPIC'
   19823       ;;
   19824     esac
   19825   else
   19826     case $host_os in
   19827       aix[4-9]*)
   19828 	# All AIX code is PIC.
   19829 	if test "$host_cpu" = ia64; then
   19830 	  # AIX 5 now supports IA64 processor
   19831 	  lt_prog_compiler_static_CXX='-Bstatic'
   19832 	else
   19833 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
   19834 	fi
   19835 	;;
   19836       chorus*)
   19837 	case $cc_basename in
   19838 	cxch68*)
   19839 	  # Green Hills C++ Compiler
   19840 	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
   19841 	  ;;
   19842 	esac
   19843 	;;
   19844       dgux*)
   19845 	case $cc_basename in
   19846 	  ec++*)
   19847 	    lt_prog_compiler_pic_CXX='-KPIC'
   19848 	    ;;
   19849 	  ghcx*)
   19850 	    # Green Hills C++ Compiler
   19851 	    lt_prog_compiler_pic_CXX='-pic'
   19852 	    ;;
   19853 	  *)
   19854 	    ;;
   19855 	esac
   19856 	;;
   19857       freebsd* | dragonfly*)
   19858 	# FreeBSD uses GNU C++
   19859 	;;
   19860       hpux9* | hpux10* | hpux11*)
   19861 	case $cc_basename in
   19862 	  CC*)
   19863 	    lt_prog_compiler_wl_CXX='-Wl,'
   19864 	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
   19865 	    if test "$host_cpu" != ia64; then
   19866 	      lt_prog_compiler_pic_CXX='+Z'
   19867 	    fi
   19868 	    ;;
   19869 	  aCC*)
   19870 	    lt_prog_compiler_wl_CXX='-Wl,'
   19871 	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
   19872 	    case $host_cpu in
   19873 	    hppa*64*|ia64*)
   19874 	      # +Z the default
   19875 	      ;;
   19876 	    *)
   19877 	      lt_prog_compiler_pic_CXX='+Z'
   19878 	      ;;
   19879 	    esac
   19880 	    ;;
   19881 	  *)
   19882 	    ;;
   19883 	esac
   19884 	;;
   19885       interix*)
   19886 	# This is c89, which is MS Visual C++ (no shared libs)
   19887 	# Anyone wants to do a port?
   19888 	;;
   19889       irix5* | irix6* | nonstopux*)
   19890 	case $cc_basename in
   19891 	  CC*)
   19892 	    lt_prog_compiler_wl_CXX='-Wl,'
   19893 	    lt_prog_compiler_static_CXX='-non_shared'
   19894 	    # CC pic flag -KPIC is the default.
   19895 	    ;;
   19896 	  *)
   19897 	    ;;
   19898 	esac
   19899 	;;
   19900       linux* | k*bsd*-gnu | kopensolaris*-gnu)
   19901 	case $cc_basename in
   19902 	  KCC*)
   19903 	    # KAI C++ Compiler
   19904 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
   19905 	    lt_prog_compiler_pic_CXX='-fPIC'
   19906 	    ;;
   19907 	  ecpc* )
   19908 	    # old Intel C++ for x86_64 which still supported -KPIC.
   19909 	    lt_prog_compiler_wl_CXX='-Wl,'
   19910 	    lt_prog_compiler_pic_CXX='-KPIC'
   19911 	    lt_prog_compiler_static_CXX='-static'
   19912 	    ;;
   19913 	  icpc* )
   19914 	    # Intel C++, used to be incompatible with GCC.
   19915 	    # ICC 10 doesn't accept -KPIC any more.
   19916 	    lt_prog_compiler_wl_CXX='-Wl,'
   19917 	    lt_prog_compiler_pic_CXX='-fPIC'
   19918 	    lt_prog_compiler_static_CXX='-static'
   19919 	    ;;
   19920 	  pgCC* | pgcpp*)
   19921 	    # Portland Group C++ compiler
   19922 	    lt_prog_compiler_wl_CXX='-Wl,'
   19923 	    lt_prog_compiler_pic_CXX='-fpic'
   19924 	    lt_prog_compiler_static_CXX='-Bstatic'
   19925 	    ;;
   19926 	  cxx*)
   19927 	    # Compaq C++
   19928 	    # Make sure the PIC flag is empty.  It appears that all Alpha
   19929 	    # Linux and Compaq Tru64 Unix objects are PIC.
   19930 	    lt_prog_compiler_pic_CXX=
   19931 	    lt_prog_compiler_static_CXX='-non_shared'
   19932 	    ;;
   19933 	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
   19934 	    # IBM XL 8.0, 9.0 on PPC and BlueGene
   19935 	    lt_prog_compiler_wl_CXX='-Wl,'
   19936 	    lt_prog_compiler_pic_CXX='-qpic'
   19937 	    lt_prog_compiler_static_CXX='-qstaticlink'
   19938 	    ;;
   19939 	  *)
   19940 	    case `$CC -V 2>&1 | sed 5q` in
   19941 	    *Sun\ C*)
   19942 	      # Sun C++ 5.9
   19943 	      lt_prog_compiler_pic_CXX='-KPIC'
   19944 	      lt_prog_compiler_static_CXX='-Bstatic'
   19945 	      lt_prog_compiler_wl_CXX='-Qoption ld '
   19946 	      ;;
   19947 	    esac
   19948 	    ;;
   19949 	esac
   19950 	;;
   19951       lynxos*)
   19952 	;;
   19953       m88k*)
   19954 	;;
   19955       mvs*)
   19956 	case $cc_basename in
   19957 	  cxx*)
   19958 	    lt_prog_compiler_pic_CXX='-W c,exportall'
   19959 	    ;;
   19960 	  *)
   19961 	    ;;
   19962 	esac
   19963 	;;
   19964       netbsd*)
   19965 	;;
   19966       *qnx* | *nto*)
   19967         # QNX uses GNU C++, but need to define -shared option too, otherwise
   19968         # it will coredump.
   19969         lt_prog_compiler_pic_CXX='-fPIC -shared'
   19970         ;;
   19971       osf3* | osf4* | osf5*)
   19972 	case $cc_basename in
   19973 	  KCC*)
   19974 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
   19975 	    ;;
   19976 	  RCC*)
   19977 	    # Rational C++ 2.4.1
   19978 	    lt_prog_compiler_pic_CXX='-pic'
   19979 	    ;;
   19980 	  cxx*)
   19981 	    # Digital/Compaq C++
   19982 	    lt_prog_compiler_wl_CXX='-Wl,'
   19983 	    # Make sure the PIC flag is empty.  It appears that all Alpha
   19984 	    # Linux and Compaq Tru64 Unix objects are PIC.
   19985 	    lt_prog_compiler_pic_CXX=
   19986 	    lt_prog_compiler_static_CXX='-non_shared'
   19987 	    ;;
   19988 	  *)
   19989 	    ;;
   19990 	esac
   19991 	;;
   19992       psos*)
   19993 	;;
   19994       solaris*)
   19995 	case $cc_basename in
   19996 	  CC*)
   19997 	    # Sun C++ 4.2, 5.x and Centerline C++
   19998 	    lt_prog_compiler_pic_CXX='-KPIC'
   19999 	    lt_prog_compiler_static_CXX='-Bstatic'
   20000 	    lt_prog_compiler_wl_CXX='-Qoption ld '
   20001 	    ;;
   20002 	  gcx*)
   20003 	    # Green Hills C++ Compiler
   20004 	    lt_prog_compiler_pic_CXX='-PIC'
   20005 	    ;;
   20006 	  *)
   20007 	    ;;
   20008 	esac
   20009 	;;
   20010       sunos4*)
   20011 	case $cc_basename in
   20012 	  CC*)
   20013 	    # Sun C++ 4.x
   20014 	    lt_prog_compiler_pic_CXX='-pic'
   20015 	    lt_prog_compiler_static_CXX='-Bstatic'
   20016 	    ;;
   20017 	  lcc*)
   20018 	    # Lucid
   20019 	    lt_prog_compiler_pic_CXX='-pic'
   20020 	    ;;
   20021 	  *)
   20022 	    ;;
   20023 	esac
   20024 	;;
   20025       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   20026 	case $cc_basename in
   20027 	  CC*)
   20028 	    lt_prog_compiler_wl_CXX='-Wl,'
   20029 	    lt_prog_compiler_pic_CXX='-KPIC'
   20030 	    lt_prog_compiler_static_CXX='-Bstatic'
   20031 	    ;;
   20032 	esac
   20033 	;;
   20034       tandem*)
   20035 	case $cc_basename in
   20036 	  NCC*)
   20037 	    # NonStop-UX NCC 3.20
   20038 	    lt_prog_compiler_pic_CXX='-KPIC'
   20039 	    ;;
   20040 	  *)
   20041 	    ;;
   20042 	esac
   20043 	;;
   20044       vxworks*)
   20045 	;;
   20046       *)
   20047 	lt_prog_compiler_can_build_shared_CXX=no
   20048 	;;
   20049     esac
   20050   fi
   20051 
   20052 case $host_os in
   20053   # For platforms which do not support PIC, -DPIC is meaningless:
   20054   *djgpp*)
   20055     lt_prog_compiler_pic_CXX=
   20056     ;;
   20057   *)
   20058     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
   20059     ;;
   20060 esac
   20061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
   20062 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
   20063 
   20064 
   20065 
   20066 #
   20067 # Check to make sure the PIC flag actually works.
   20068 #
   20069 if test -n "$lt_prog_compiler_pic_CXX"; then
   20070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
   20071 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
   20072 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
   20073   $as_echo_n "(cached) " >&6
   20074 else
   20075   lt_cv_prog_compiler_pic_works_CXX=no
   20076    ac_outfile=conftest.$ac_objext
   20077    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   20078    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   20079    # Insert the option either (1) after the last *FLAGS variable, or
   20080    # (2) before a word containing "conftest.", or (3) at the end.
   20081    # Note that $ac_compile itself does not contain backslashes and begins
   20082    # with a dollar sign (not a hyphen), so the echo should work correctly.
   20083    # The option is referenced via a variable to avoid confusing sed.
   20084    lt_compile=`echo "$ac_compile" | $SED \
   20085    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   20086    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   20087    -e 's:$: $lt_compiler_flag:'`
   20088    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   20089    (eval "$lt_compile" 2>conftest.err)
   20090    ac_status=$?
   20091    cat conftest.err >&5
   20092    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20093    if (exit $ac_status) && test -s "$ac_outfile"; then
   20094      # The compiler can only warn and ignore the option if not recognized
   20095      # So say no if there are warnings other than the usual output.
   20096      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   20097      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   20098      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   20099        lt_cv_prog_compiler_pic_works_CXX=yes
   20100      fi
   20101    fi
   20102    $RM conftest*
   20103 
   20104 fi
   20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
   20106 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
   20107 
   20108 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
   20109     case $lt_prog_compiler_pic_CXX in
   20110      "" | " "*) ;;
   20111      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
   20112      esac
   20113 else
   20114     lt_prog_compiler_pic_CXX=
   20115      lt_prog_compiler_can_build_shared_CXX=no
   20116 fi
   20117 
   20118 fi
   20119 
   20120 
   20121 
   20122 #
   20123 # Check to make sure the static flag actually works.
   20124 #
   20125 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
   20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   20127 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   20128 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
   20129   $as_echo_n "(cached) " >&6
   20130 else
   20131   lt_cv_prog_compiler_static_works_CXX=no
   20132    save_LDFLAGS="$LDFLAGS"
   20133    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   20134    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   20135    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   20136      # The linker can only warn and ignore the option if not recognized
   20137      # So say no if there are warnings
   20138      if test -s conftest.err; then
   20139        # Append any errors to the config.log.
   20140        cat conftest.err 1>&5
   20141        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   20142        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   20143        if diff conftest.exp conftest.er2 >/dev/null; then
   20144          lt_cv_prog_compiler_static_works_CXX=yes
   20145        fi
   20146      else
   20147        lt_cv_prog_compiler_static_works_CXX=yes
   20148      fi
   20149    fi
   20150    $RM -r conftest*
   20151    LDFLAGS="$save_LDFLAGS"
   20152 
   20153 fi
   20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
   20155 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
   20156 
   20157 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
   20158     :
   20159 else
   20160     lt_prog_compiler_static_CXX=
   20161 fi
   20162 
   20163 
   20164 
   20165 
   20166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   20167 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   20168 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
   20169   $as_echo_n "(cached) " >&6
   20170 else
   20171   lt_cv_prog_compiler_c_o_CXX=no
   20172    $RM -r conftest 2>/dev/null
   20173    mkdir conftest
   20174    cd conftest
   20175    mkdir out
   20176    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   20177 
   20178    lt_compiler_flag="-o out/conftest2.$ac_objext"
   20179    # Insert the option either (1) after the last *FLAGS variable, or
   20180    # (2) before a word containing "conftest.", or (3) at the end.
   20181    # Note that $ac_compile itself does not contain backslashes and begins
   20182    # with a dollar sign (not a hyphen), so the echo should work correctly.
   20183    lt_compile=`echo "$ac_compile" | $SED \
   20184    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   20185    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   20186    -e 's:$: $lt_compiler_flag:'`
   20187    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   20188    (eval "$lt_compile" 2>out/conftest.err)
   20189    ac_status=$?
   20190    cat out/conftest.err >&5
   20191    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20192    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   20193    then
   20194      # The compiler can only warn and ignore the option if not recognized
   20195      # So say no if there are warnings
   20196      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   20197      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   20198      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   20199        lt_cv_prog_compiler_c_o_CXX=yes
   20200      fi
   20201    fi
   20202    chmod u+w . 2>&5
   20203    $RM conftest*
   20204    # SGI C++ compiler will create directory out/ii_files/ for
   20205    # template instantiation
   20206    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   20207    $RM out/* && rmdir out
   20208    cd ..
   20209    $RM -r conftest
   20210    $RM conftest*
   20211 
   20212 fi
   20213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
   20214 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
   20215 
   20216 
   20217 
   20218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   20219 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   20220 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
   20221   $as_echo_n "(cached) " >&6
   20222 else
   20223   lt_cv_prog_compiler_c_o_CXX=no
   20224    $RM -r conftest 2>/dev/null
   20225    mkdir conftest
   20226    cd conftest
   20227    mkdir out
   20228    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   20229 
   20230    lt_compiler_flag="-o out/conftest2.$ac_objext"
   20231    # Insert the option either (1) after the last *FLAGS variable, or
   20232    # (2) before a word containing "conftest.", or (3) at the end.
   20233    # Note that $ac_compile itself does not contain backslashes and begins
   20234    # with a dollar sign (not a hyphen), so the echo should work correctly.
   20235    lt_compile=`echo "$ac_compile" | $SED \
   20236    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   20237    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   20238    -e 's:$: $lt_compiler_flag:'`
   20239    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   20240    (eval "$lt_compile" 2>out/conftest.err)
   20241    ac_status=$?
   20242    cat out/conftest.err >&5
   20243    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20244    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   20245    then
   20246      # The compiler can only warn and ignore the option if not recognized
   20247      # So say no if there are warnings
   20248      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   20249      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   20250      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   20251        lt_cv_prog_compiler_c_o_CXX=yes
   20252      fi
   20253    fi
   20254    chmod u+w . 2>&5
   20255    $RM conftest*
   20256    # SGI C++ compiler will create directory out/ii_files/ for
   20257    # template instantiation
   20258    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   20259    $RM out/* && rmdir out
   20260    cd ..
   20261    $RM -r conftest
   20262    $RM conftest*
   20263 
   20264 fi
   20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
   20266 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
   20267 
   20268 
   20269 
   20270 
   20271 hard_links="nottested"
   20272 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
   20273   # do not overwrite the value of need_locks provided by the user
   20274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   20275 $as_echo_n "checking if we can lock with hard links... " >&6; }
   20276   hard_links=yes
   20277   $RM conftest*
   20278   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   20279   touch conftest.a
   20280   ln conftest.a conftest.b 2>&5 || hard_links=no
   20281   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   20282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   20283 $as_echo "$hard_links" >&6; }
   20284   if test "$hard_links" = no; then
   20285     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   20286 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   20287     need_locks=warn
   20288   fi
   20289 else
   20290   need_locks=no
   20291 fi
   20292 
   20293 
   20294 
   20295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   20296 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   20297 
   20298   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   20299   case $host_os in
   20300   aix[4-9]*)
   20301     # If we're using GNU nm, then we don't want the "-C" option.
   20302     # -C means demangle to AIX nm, but means don't demangle with GNU nm
   20303     # Also, AIX nm treats weak defined symbols like other global defined
   20304     # symbols, whereas GNU nm marks them as "W".
   20305     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   20306       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
   20307     else
   20308       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
   20309     fi
   20310     ;;
   20311   pw32*)
   20312     export_symbols_cmds_CXX="$ltdll_cmds"
   20313   ;;
   20314   cygwin* | mingw* | cegcc*)
   20315     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
   20316   ;;
   20317   *)
   20318     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   20319   ;;
   20320   esac
   20321   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   20322 
   20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
   20324 $as_echo "$ld_shlibs_CXX" >&6; }
   20325 test "$ld_shlibs_CXX" = no && can_build_shared=no
   20326 
   20327 with_gnu_ld_CXX=$with_gnu_ld
   20328 
   20329 
   20330 
   20331 
   20332 
   20333 
   20334 #
   20335 # Do we need to explicitly link libc?
   20336 #
   20337 case "x$archive_cmds_need_lc_CXX" in
   20338 x|xyes)
   20339   # Assume -lc should be added
   20340   archive_cmds_need_lc_CXX=yes
   20341 
   20342   if test "$enable_shared" = yes && test "$GCC" = yes; then
   20343     case $archive_cmds_CXX in
   20344     *'~'*)
   20345       # FIXME: we may have to deal with multi-command sequences.
   20346       ;;
   20347     '$CC '*)
   20348       # Test whether the compiler implicitly links with -lc since on some
   20349       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   20350       # to ld, don't add -lc before -lgcc.
   20351       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   20352 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   20353 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
   20354   $as_echo_n "(cached) " >&6
   20355 else
   20356   $RM conftest*
   20357 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   20358 
   20359 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   20360   (eval $ac_compile) 2>&5
   20361   ac_status=$?
   20362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   20363   test $ac_status = 0; } 2>conftest.err; then
   20364 	  soname=conftest
   20365 	  lib=conftest
   20366 	  libobjs=conftest.$ac_objext
   20367 	  deplibs=
   20368 	  wl=$lt_prog_compiler_wl_CXX
   20369 	  pic_flag=$lt_prog_compiler_pic_CXX
   20370 	  compiler_flags=-v
   20371 	  linker_flags=-v
   20372 	  verstring=
   20373 	  output_objdir=.
   20374 	  libname=conftest
   20375 	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
   20376 	  allow_undefined_flag_CXX=
   20377 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   20378   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   20379   ac_status=$?
   20380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   20381   test $ac_status = 0; }
   20382 	  then
   20383 	    lt_cv_archive_cmds_need_lc_CXX=no
   20384 	  else
   20385 	    lt_cv_archive_cmds_need_lc_CXX=yes
   20386 	  fi
   20387 	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
   20388 	else
   20389 	  cat conftest.err 1>&5
   20390 	fi
   20391 	$RM conftest*
   20392 
   20393 fi
   20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
   20395 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
   20396       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
   20397       ;;
   20398     esac
   20399   fi
   20400   ;;
   20401 esac
   20402 
   20403 
   20404 
   20405 
   20406 
   20407 
   20408 
   20409 
   20410 
   20411 
   20412 
   20413 
   20414 
   20415 
   20416 
   20417 
   20418 
   20419 
   20420 
   20421 
   20422 
   20423 
   20424 
   20425 
   20426 
   20427 
   20428 
   20429 
   20430 
   20431 
   20432 
   20433 
   20434 
   20435 
   20436 
   20437 
   20438 
   20439 
   20440 
   20441 
   20442 
   20443 
   20444 
   20445 
   20446 
   20447 
   20448 
   20449 
   20450 
   20451 
   20452 
   20453 
   20454 
   20455 
   20456 
   20457 
   20458 
   20459 
   20460 
   20461 
   20462 
   20463 
   20464 
   20465 
   20466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   20467 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   20468 
   20469 library_names_spec=
   20470 libname_spec='lib$name'
   20471 soname_spec=
   20472 shrext_cmds=".so"
   20473 postinstall_cmds=
   20474 postuninstall_cmds=
   20475 finish_cmds=
   20476 finish_eval=
   20477 shlibpath_var=
   20478 shlibpath_overrides_runpath=unknown
   20479 version_type=none
   20480 dynamic_linker="$host_os ld.so"
   20481 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   20482 need_lib_prefix=unknown
   20483 hardcode_into_libs=no
   20484 
   20485 # when you set need_version to no, make sure it does not cause -set_version
   20486 # flags to be left without arguments
   20487 need_version=unknown
   20488 
   20489 case $host_os in
   20490 aix3*)
   20491   version_type=linux
   20492   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   20493   shlibpath_var=LIBPATH
   20494 
   20495   # AIX 3 has no versioning support, so we append a major version to the name.
   20496   soname_spec='${libname}${release}${shared_ext}$major'
   20497   ;;
   20498 
   20499 aix[4-9]*)
   20500   version_type=linux
   20501   need_lib_prefix=no
   20502   need_version=no
   20503   hardcode_into_libs=yes
   20504   if test "$host_cpu" = ia64; then
   20505     # AIX 5 supports IA64
   20506     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   20507     shlibpath_var=LD_LIBRARY_PATH
   20508   else
   20509     # With GCC up to 2.95.x, collect2 would create an import file
   20510     # for dependence libraries.  The import file would start with
   20511     # the line `#! .'.  This would cause the generated library to
   20512     # depend on `.', always an invalid library.  This was fixed in
   20513     # development snapshots of GCC prior to 3.0.
   20514     case $host_os in
   20515       aix4 | aix4.[01] | aix4.[01].*)
   20516       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   20517 	   echo ' yes '
   20518 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
   20519 	:
   20520       else
   20521 	can_build_shared=no
   20522       fi
   20523       ;;
   20524     esac
   20525     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   20526     # soname into executable. Probably we can add versioning support to
   20527     # collect2, so additional links can be useful in future.
   20528     if test "$aix_use_runtimelinking" = yes; then
   20529       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   20530       # instead of lib<name>.a to let people know that these are not
   20531       # typical AIX shared libraries.
   20532       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   20533     else
   20534       # We preserve .a as extension for shared libraries through AIX4.2
   20535       # and later when we are not doing run time linking.
   20536       library_names_spec='${libname}${release}.a $libname.a'
   20537       soname_spec='${libname}${release}${shared_ext}$major'
   20538     fi
   20539     shlibpath_var=LIBPATH
   20540   fi
   20541   ;;
   20542 
   20543 amigaos*)
   20544   case $host_cpu in
   20545   powerpc)
   20546     # Since July 2007 AmigaOS4 officially supports .so libraries.
   20547     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   20548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   20549     ;;
   20550   m68k)
   20551     library_names_spec='$libname.ixlibrary $libname.a'
   20552     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   20553     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
   20554     ;;
   20555   esac
   20556   ;;
   20557 
   20558 beos*)
   20559   library_names_spec='${libname}${shared_ext}'
   20560   dynamic_linker="$host_os ld.so"
   20561   shlibpath_var=LIBRARY_PATH
   20562   ;;
   20563 
   20564 bsdi[45]*)
   20565   version_type=linux
   20566   need_version=no
   20567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   20568   soname_spec='${libname}${release}${shared_ext}$major'
   20569   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   20570   shlibpath_var=LD_LIBRARY_PATH
   20571   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   20572   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   20573   # the default ld.so.conf also contains /usr/contrib/lib and
   20574   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   20575   # libtool to hard-code these into programs
   20576   ;;
   20577 
   20578 cygwin* | mingw* | pw32* | cegcc*)
   20579   version_type=windows
   20580   shrext_cmds=".dll"
   20581   need_version=no
   20582   need_lib_prefix=no
   20583 
   20584   case $GCC,$host_os in
   20585   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
   20586     library_names_spec='$libname.dll.a'
   20587     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   20588     postinstall_cmds='base_file=`basename \${file}`~
   20589       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
   20590       dldir=$destdir/`dirname \$dlpath`~
   20591       test -d \$dldir || mkdir -p \$dldir~
   20592       $install_prog $dir/$dlname \$dldir/$dlname~
   20593       chmod a+x \$dldir/$dlname~
   20594       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   20595         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   20596       fi'
   20597     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   20598       dlpath=$dir/\$dldll~
   20599        $RM \$dlpath'
   20600     shlibpath_overrides_runpath=yes
   20601 
   20602     case $host_os in
   20603     cygwin*)
   20604       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   20605       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   20606 
   20607       ;;
   20608     mingw* | cegcc*)
   20609       # MinGW DLLs use traditional 'lib' prefix
   20610       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   20611       ;;
   20612     pw32*)
   20613       # pw32 DLLs use 'pw' prefix rather than 'lib'
   20614       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   20615       ;;
   20616     esac
   20617     ;;
   20618 
   20619   *)
   20620     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   20621     ;;
   20622   esac
   20623   dynamic_linker='Win32 ld.exe'
   20624   # FIXME: first we should search . and the directory the executable is in
   20625   shlibpath_var=PATH
   20626   ;;
   20627 
   20628 darwin* | rhapsody*)
   20629   dynamic_linker="$host_os dyld"
   20630   version_type=darwin
   20631   need_lib_prefix=no
   20632   need_version=no
   20633   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   20634   soname_spec='${libname}${release}${major}$shared_ext'
   20635   shlibpath_overrides_runpath=yes
   20636   shlibpath_var=DYLD_LIBRARY_PATH
   20637   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   20638 
   20639   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   20640   ;;
   20641 
   20642 dgux*)
   20643   version_type=linux
   20644   need_lib_prefix=no
   20645   need_version=no
   20646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   20647   soname_spec='${libname}${release}${shared_ext}$major'
   20648   shlibpath_var=LD_LIBRARY_PATH
   20649   ;;
   20650 
   20651 freebsd* | dragonfly*)
   20652   # DragonFly does not have aout.  When/if they implement a new
   20653   # versioning mechanism, adjust this.
   20654   if test -x /usr/bin/objformat; then
   20655     objformat=`/usr/bin/objformat`
   20656   else
   20657     case $host_os in
   20658     freebsd[23].*) objformat=aout ;;
   20659     *) objformat=elf ;;
   20660     esac
   20661   fi
   20662   version_type=freebsd-$objformat
   20663   case $version_type in
   20664     freebsd-elf*)
   20665       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   20666       need_version=no
   20667       need_lib_prefix=no
   20668       ;;
   20669     freebsd-*)
   20670       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   20671       need_version=yes
   20672       ;;
   20673   esac
   20674   shlibpath_var=LD_LIBRARY_PATH
   20675   case $host_os in
   20676   freebsd2.*)
   20677     shlibpath_overrides_runpath=yes
   20678     ;;
   20679   freebsd3.[01]* | freebsdelf3.[01]*)
   20680     shlibpath_overrides_runpath=yes
   20681     hardcode_into_libs=yes
   20682     ;;
   20683   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   20684   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   20685     shlibpath_overrides_runpath=no
   20686     hardcode_into_libs=yes
   20687     ;;
   20688   *) # from 4.6 on, and DragonFly
   20689     shlibpath_overrides_runpath=yes
   20690     hardcode_into_libs=yes
   20691     ;;
   20692   esac
   20693   ;;
   20694 
   20695 gnu*)
   20696   version_type=linux
   20697   need_lib_prefix=no
   20698   need_version=no
   20699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   20700   soname_spec='${libname}${release}${shared_ext}$major'
   20701   shlibpath_var=LD_LIBRARY_PATH
   20702   hardcode_into_libs=yes
   20703   ;;
   20704 
   20705 haiku*)
   20706   version_type=linux
   20707   need_lib_prefix=no
   20708   need_version=no
   20709   dynamic_linker="$host_os runtime_loader"
   20710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   20711   soname_spec='${libname}${release}${shared_ext}$major'
   20712   shlibpath_var=LIBRARY_PATH
   20713   shlibpath_overrides_runpath=yes
   20714   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
   20715   hardcode_into_libs=yes
   20716   ;;
   20717 
   20718 hpux9* | hpux10* | hpux11*)
   20719   # Give a soname corresponding to the major version so that dld.sl refuses to
   20720   # link against other versions.
   20721   version_type=sunos
   20722   need_lib_prefix=no
   20723   need_version=no
   20724   case $host_cpu in
   20725   ia64*)
   20726     shrext_cmds='.so'
   20727     hardcode_into_libs=yes
   20728     dynamic_linker="$host_os dld.so"
   20729     shlibpath_var=LD_LIBRARY_PATH
   20730     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   20731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   20732     soname_spec='${libname}${release}${shared_ext}$major'
   20733     if test "X$HPUX_IA64_MODE" = X32; then
   20734       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   20735     else
   20736       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   20737     fi
   20738     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   20739     ;;
   20740   hppa*64*)
   20741     shrext_cmds='.sl'
   20742     hardcode_into_libs=yes
   20743     dynamic_linker="$host_os dld.sl"
   20744     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   20745     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   20746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   20747     soname_spec='${libname}${release}${shared_ext}$major'
   20748     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   20749     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   20750     ;;
   20751   *)
   20752     shrext_cmds='.sl'
   20753     dynamic_linker="$host_os dld.sl"
   20754     shlibpath_var=SHLIB_PATH
   20755     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   20756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   20757     soname_spec='${libname}${release}${shared_ext}$major'
   20758     ;;
   20759   esac
   20760   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   20761   postinstall_cmds='chmod 555 $lib'
   20762   # or fails outright, so override atomically:
   20763   install_override_mode=555
   20764   ;;
   20765 
   20766 interix[3-9]*)
   20767   version_type=linux
   20768   need_lib_prefix=no
   20769   need_version=no
   20770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   20771   soname_spec='${libname}${release}${shared_ext}$major'
   20772   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   20773   shlibpath_var=LD_LIBRARY_PATH
   20774   shlibpath_overrides_runpath=no
   20775   hardcode_into_libs=yes
   20776   ;;
   20777 
   20778 irix5* | irix6* | nonstopux*)
   20779   case $host_os in
   20780     nonstopux*) version_type=nonstopux ;;
   20781     *)
   20782 	if test "$lt_cv_prog_gnu_ld" = yes; then
   20783 		version_type=linux
   20784 	else
   20785 		version_type=irix
   20786 	fi ;;
   20787   esac
   20788   need_lib_prefix=no
   20789   need_version=no
   20790   soname_spec='${libname}${release}${shared_ext}$major'
   20791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   20792   case $host_os in
   20793   irix5* | nonstopux*)
   20794     libsuff= shlibsuff=
   20795     ;;
   20796   *)
   20797     case $LD in # libtool.m4 will add one of these switches to LD
   20798     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   20799       libsuff= shlibsuff= libmagic=32-bit;;
   20800     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   20801       libsuff=32 shlibsuff=N32 libmagic=N32;;
   20802     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   20803       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   20804     *) libsuff= shlibsuff= libmagic=never-match;;
   20805     esac
   20806     ;;
   20807   esac
   20808   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   20809   shlibpath_overrides_runpath=no
   20810   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   20811   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   20812   hardcode_into_libs=yes
   20813   ;;
   20814 
   20815 # No shared lib support for Linux oldld, aout, or coff.
   20816 linux*oldld* | linux*aout* | linux*coff*)
   20817   dynamic_linker=no
   20818   ;;
   20819 
   20820 # This must be Linux ELF.
   20821 linux* | k*bsd*-gnu | kopensolaris*-gnu)
   20822   version_type=linux
   20823   need_lib_prefix=no
   20824   need_version=no
   20825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   20826   soname_spec='${libname}${release}${shared_ext}$major'
   20827   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   20828   shlibpath_var=LD_LIBRARY_PATH
   20829   shlibpath_overrides_runpath=no
   20830 
   20831   # Some binutils ld are patched to set DT_RUNPATH
   20832   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
   20833   $as_echo_n "(cached) " >&6
   20834 else
   20835   lt_cv_shlibpath_overrides_runpath=no
   20836     save_LDFLAGS=$LDFLAGS
   20837     save_libdir=$libdir
   20838     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
   20839 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
   20840     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20841 /* end confdefs.h.  */
   20842 
   20843 int
   20844 main ()
   20845 {
   20846 
   20847   ;
   20848   return 0;
   20849 }
   20850 _ACEOF
   20851 if ac_fn_cxx_try_link "$LINENO"; then :
   20852   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   20853   lt_cv_shlibpath_overrides_runpath=yes
   20854 fi
   20855 fi
   20856 rm -f core conftest.err conftest.$ac_objext \
   20857     conftest$ac_exeext conftest.$ac_ext
   20858     LDFLAGS=$save_LDFLAGS
   20859     libdir=$save_libdir
   20860 
   20861 fi
   20862 
   20863   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   20864 
   20865   # This implies no fast_install, which is unacceptable.
   20866   # Some rework will be needed to allow for fast_install
   20867   # before this can be enabled.
   20868   hardcode_into_libs=yes
   20869 
   20870   # Append ld.so.conf contents to the search path
   20871   if test -f /etc/ld.so.conf; then
   20872     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
   20873     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   20874   fi
   20875 
   20876   # We used to test for /lib/ld.so.1 and disable shared libraries on
   20877   # powerpc, because MkLinux only supported shared libraries with the
   20878   # GNU dynamic linker.  Since this was broken with cross compilers,
   20879   # most powerpc-linux boxes support dynamic linking these days and
   20880   # people can always --disable-shared, the test was removed, and we
   20881   # assume the GNU/Linux dynamic linker is in use.
   20882   dynamic_linker='GNU/Linux ld.so'
   20883   ;;
   20884 
   20885 netbsd*)
   20886   version_type=sunos
   20887   need_lib_prefix=no
   20888   need_version=no
   20889   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   20890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   20891     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   20892     dynamic_linker='NetBSD (a.out) ld.so'
   20893   else
   20894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   20895     soname_spec='${libname}${release}${shared_ext}$major'
   20896     dynamic_linker='NetBSD ld.elf_so'
   20897   fi
   20898   shlibpath_var=LD_LIBRARY_PATH
   20899   shlibpath_overrides_runpath=yes
   20900   hardcode_into_libs=yes
   20901   ;;
   20902 
   20903 newsos6)
   20904   version_type=linux
   20905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   20906   shlibpath_var=LD_LIBRARY_PATH
   20907   shlibpath_overrides_runpath=yes
   20908   ;;
   20909 
   20910 *nto* | *qnx*)
   20911   version_type=qnx
   20912   need_lib_prefix=no
   20913   need_version=no
   20914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   20915   soname_spec='${libname}${release}${shared_ext}$major'
   20916   shlibpath_var=LD_LIBRARY_PATH
   20917   shlibpath_overrides_runpath=no
   20918   hardcode_into_libs=yes
   20919   dynamic_linker='ldqnx.so'
   20920   ;;
   20921 
   20922 openbsd*)
   20923   version_type=sunos
   20924   sys_lib_dlsearch_path_spec="/usr/lib"
   20925   need_lib_prefix=no
   20926   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   20927   case $host_os in
   20928     openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
   20929     *)				need_version=no  ;;
   20930   esac
   20931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   20932   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   20933   shlibpath_var=LD_LIBRARY_PATH
   20934   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   20935     case $host_os in
   20936       openbsd2.[89] | openbsd2.[89].*)
   20937 	shlibpath_overrides_runpath=no
   20938 	;;
   20939       *)
   20940 	shlibpath_overrides_runpath=yes
   20941 	;;
   20942       esac
   20943   else
   20944     shlibpath_overrides_runpath=yes
   20945   fi
   20946   ;;
   20947 
   20948 os2*)
   20949   libname_spec='$name'
   20950   shrext_cmds=".dll"
   20951   need_lib_prefix=no
   20952   library_names_spec='$libname${shared_ext} $libname.a'
   20953   dynamic_linker='OS/2 ld.exe'
   20954   shlibpath_var=LIBPATH
   20955   ;;
   20956 
   20957 osf3* | osf4* | osf5*)
   20958   version_type=osf
   20959   need_lib_prefix=no
   20960   need_version=no
   20961   soname_spec='${libname}${release}${shared_ext}$major'
   20962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   20963   shlibpath_var=LD_LIBRARY_PATH
   20964   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   20965   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   20966   ;;
   20967 
   20968 rdos*)
   20969   dynamic_linker=no
   20970   ;;
   20971 
   20972 solaris*)
   20973   version_type=linux
   20974   need_lib_prefix=no
   20975   need_version=no
   20976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   20977   soname_spec='${libname}${release}${shared_ext}$major'
   20978   shlibpath_var=LD_LIBRARY_PATH
   20979   shlibpath_overrides_runpath=yes
   20980   hardcode_into_libs=yes
   20981   # ldd complains unless libraries are executable
   20982   postinstall_cmds='chmod +x $lib'
   20983   ;;
   20984 
   20985 sunos4*)
   20986   version_type=sunos
   20987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   20988   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   20989   shlibpath_var=LD_LIBRARY_PATH
   20990   shlibpath_overrides_runpath=yes
   20991   if test "$with_gnu_ld" = yes; then
   20992     need_lib_prefix=no
   20993   fi
   20994   need_version=yes
   20995   ;;
   20996 
   20997 sysv4 | sysv4.3*)
   20998   version_type=linux
   20999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   21000   soname_spec='${libname}${release}${shared_ext}$major'
   21001   shlibpath_var=LD_LIBRARY_PATH
   21002   case $host_vendor in
   21003     sni)
   21004       shlibpath_overrides_runpath=no
   21005       need_lib_prefix=no
   21006       runpath_var=LD_RUN_PATH
   21007       ;;
   21008     siemens)
   21009       need_lib_prefix=no
   21010       ;;
   21011     motorola)
   21012       need_lib_prefix=no
   21013       need_version=no
   21014       shlibpath_overrides_runpath=no
   21015       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   21016       ;;
   21017   esac
   21018   ;;
   21019 
   21020 sysv4*MP*)
   21021   if test -d /usr/nec ;then
   21022     version_type=linux
   21023     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   21024     soname_spec='$libname${shared_ext}.$major'
   21025     shlibpath_var=LD_LIBRARY_PATH
   21026   fi
   21027   ;;
   21028 
   21029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   21030   version_type=freebsd-elf
   21031   need_lib_prefix=no
   21032   need_version=no
   21033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   21034   soname_spec='${libname}${release}${shared_ext}$major'
   21035   shlibpath_var=LD_LIBRARY_PATH
   21036   shlibpath_overrides_runpath=yes
   21037   hardcode_into_libs=yes
   21038   if test "$with_gnu_ld" = yes; then
   21039     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   21040   else
   21041     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   21042     case $host_os in
   21043       sco3.2v5*)
   21044         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   21045 	;;
   21046     esac
   21047   fi
   21048   sys_lib_dlsearch_path_spec='/usr/lib'
   21049   ;;
   21050 
   21051 tpf*)
   21052   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   21053   version_type=linux
   21054   need_lib_prefix=no
   21055   need_version=no
   21056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   21057   shlibpath_var=LD_LIBRARY_PATH
   21058   shlibpath_overrides_runpath=no
   21059   hardcode_into_libs=yes
   21060   ;;
   21061 
   21062 uts4*)
   21063   version_type=linux
   21064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   21065   soname_spec='${libname}${release}${shared_ext}$major'
   21066   shlibpath_var=LD_LIBRARY_PATH
   21067   ;;
   21068 
   21069 *)
   21070   dynamic_linker=no
   21071   ;;
   21072 esac
   21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   21074 $as_echo "$dynamic_linker" >&6; }
   21075 test "$dynamic_linker" = no && can_build_shared=no
   21076 
   21077 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   21078 if test "$GCC" = yes; then
   21079   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   21080 fi
   21081 
   21082 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
   21083   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
   21084 fi
   21085 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
   21086   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
   21087 fi
   21088 
   21089 
   21090 
   21091 
   21092 
   21093 
   21094 
   21095 
   21096 
   21097 
   21098 
   21099 
   21100 
   21101 
   21102 
   21103 
   21104 
   21105 
   21106 
   21107 
   21108 
   21109 
   21110 
   21111 
   21112 
   21113 
   21114 
   21115 
   21116 
   21117 
   21118 
   21119 
   21120 
   21121 
   21122 
   21123 
   21124 
   21125 
   21126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   21127 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   21128 hardcode_action_CXX=
   21129 if test -n "$hardcode_libdir_flag_spec_CXX" ||
   21130    test -n "$runpath_var_CXX" ||
   21131    test "X$hardcode_automatic_CXX" = "Xyes" ; then
   21132 
   21133   # We can hardcode non-existent directories.
   21134   if test "$hardcode_direct_CXX" != no &&
   21135      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   21136      # have to relink, otherwise we might link with an installed library
   21137      # when we should be linking with a yet-to-be-installed one
   21138      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
   21139      test "$hardcode_minus_L_CXX" != no; then
   21140     # Linking always hardcodes the temporary library directory.
   21141     hardcode_action_CXX=relink
   21142   else
   21143     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   21144     hardcode_action_CXX=immediate
   21145   fi
   21146 else
   21147   # We cannot hardcode anything, or else we can only hardcode existing
   21148   # directories.
   21149   hardcode_action_CXX=unsupported
   21150 fi
   21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
   21152 $as_echo "$hardcode_action_CXX" >&6; }
   21153 
   21154 if test "$hardcode_action_CXX" = relink ||
   21155    test "$inherit_rpath_CXX" = yes; then
   21156   # Fast installation is not supported
   21157   enable_fast_install=no
   21158 elif test "$shlibpath_overrides_runpath" = yes ||
   21159      test "$enable_shared" = no; then
   21160   # Fast installation is not necessary
   21161   enable_fast_install=needless
   21162 fi
   21163 
   21164 
   21165 
   21166 
   21167 
   21168 
   21169 
   21170   fi # test -n "$compiler"
   21171 
   21172   CC=$lt_save_CC
   21173   LDCXX=$LD
   21174   LD=$lt_save_LD
   21175   GCC=$lt_save_GCC
   21176   with_gnu_ld=$lt_save_with_gnu_ld
   21177   lt_cv_path_LDCXX=$lt_cv_path_LD
   21178   lt_cv_path_LD=$lt_save_path_LD
   21179   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
   21180   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
   21181 fi # test "$_lt_caught_CXX_error" != yes
   21182 
   21183 ac_ext=c
   21184 ac_cpp='$CPP $CPPFLAGS'
   21185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   21186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   21187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   21188 
   21189 
   21190 
   21191 
   21192 
   21193 
   21194 
   21195 
   21196 
   21197 
   21198 
   21199 
   21200 
   21201 
   21202 
   21203 
   21204 # Only expand once:
   21205 
   21206 
   21207 
   21208 
   21209 
   21210 # Identify the assembler which will work hand-in-glove with the newly
   21211 # built GCC, so that we can examine its features.  This is the assembler
   21212 # which will be driven by the driver program.
   21213 #
   21214 # If build != host, and we aren't building gas in-tree, we identify a
   21215 # build->target assembler and hope that it will have the same features
   21216 # as the host->target assembler we'll be using.
   21217 gcc_cv_gas_major_version=
   21218 gcc_cv_gas_minor_version=
   21219 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
   21220 
   21221 if test "${gcc_cv_as+set}" = set; then :
   21222 
   21223 else
   21224 
   21225 if test -x "$DEFAULT_ASSEMBLER"; then
   21226 	gcc_cv_as="$DEFAULT_ASSEMBLER"
   21227 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
   21228      && test -f ../gas/Makefile \
   21229      && test x$build = x$host; then
   21230 	gcc_cv_as=../gas/as-new$build_exeext
   21231 elif test -x as$build_exeext; then
   21232 	# Build using assembler in the current directory.
   21233 	gcc_cv_as=./as$build_exeext
   21234 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
   21235         gcc_cv_as="$AS_FOR_TARGET"
   21236 else
   21237         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
   21238 set dummy $AS_FOR_TARGET; ac_word=$2
   21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21240 $as_echo_n "checking for $ac_word... " >&6; }
   21241 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
   21242   $as_echo_n "(cached) " >&6
   21243 else
   21244   case $gcc_cv_as in
   21245   [\\/]* | ?:[\\/]*)
   21246   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
   21247   ;;
   21248   *)
   21249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21250 for as_dir in $PATH
   21251 do
   21252   IFS=$as_save_IFS
   21253   test -z "$as_dir" && as_dir=.
   21254     for ac_exec_ext in '' $ac_executable_extensions; do
   21255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   21256     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
   21257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21258     break 2
   21259   fi
   21260 done
   21261   done
   21262 IFS=$as_save_IFS
   21263 
   21264   ;;
   21265 esac
   21266 fi
   21267 gcc_cv_as=$ac_cv_path_gcc_cv_as
   21268 if test -n "$gcc_cv_as"; then
   21269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
   21270 $as_echo "$gcc_cv_as" >&6; }
   21271 else
   21272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21273 $as_echo "no" >&6; }
   21274 fi
   21275 
   21276 
   21277 fi
   21278 fi
   21279 
   21280 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
   21281 
   21282 case "$ORIGINAL_AS_FOR_TARGET" in
   21283   ./as | ./as$build_exeext) ;;
   21284   *) ac_config_files="$ac_config_files as:exec-tool.in"
   21285  ;;
   21286 esac
   21287 
   21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
   21289 $as_echo_n "checking what assembler to use... " >&6; }
   21290 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
   21291   # Single tree build which includes gas.  We want to prefer it
   21292   # over whatever linker top-level may have detected, since
   21293   # we'll use what we're building after installation anyway.
   21294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
   21295 $as_echo "newly built gas" >&6; }
   21296   in_tree_gas=yes
   21297   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
   21298 for f in $gcc_cv_as_bfd_srcdir/configure \
   21299          $gcc_cv_as_gas_srcdir/configure \
   21300          $gcc_cv_as_gas_srcdir/configure.in \
   21301          $gcc_cv_as_gas_srcdir/Makefile.in ; do
   21302   gcc_cv_gas_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
   21303   if test x$gcc_cv_gas_version != x; then
   21304     break
   21305   fi
   21306 done
   21307 case $gcc_cv_gas_version in
   21308   VERSION=[0-9]*) ;;
   21309   *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
   21310 esac
   21311 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
   21312 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
   21313 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
   21314 case $gcc_cv_gas_patch_version in
   21315   "") gcc_cv_gas_patch_version="0" ;;
   21316 esac
   21317 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
   21318 			    + $gcc_cv_gas_minor_version \) \* 1000 \
   21319 			    + $gcc_cv_gas_patch_version`
   21320 
   21321   in_tree_gas_is_elf=no
   21322   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
   21323      || (grep 'obj_format = multi' ../gas/Makefile \
   21324          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
   21325   then
   21326     in_tree_gas_is_elf=yes
   21327   fi
   21328 else
   21329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
   21330 $as_echo "$gcc_cv_as" >&6; }
   21331   in_tree_gas=no
   21332 fi
   21333 
   21334 # Identify the linker which will work hand-in-glove with the newly
   21335 # built GCC, so that we can examine its features.  This is the linker
   21336 # which will be driven by the driver program.
   21337 #
   21338 # If build != host, and we aren't building gas in-tree, we identify a
   21339 # build->target linker and hope that it will have the same features
   21340 # as the host->target linker we'll be using.
   21341 gcc_cv_gld_major_version=
   21342 gcc_cv_gld_minor_version=
   21343 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
   21344 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
   21345 
   21346 if test "${gcc_cv_ld+set}" = set; then :
   21347 
   21348 else
   21349 
   21350 if test -x "$DEFAULT_LINKER"; then
   21351 	gcc_cv_ld="$DEFAULT_LINKER"
   21352 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
   21353      && test -f ../ld/Makefile \
   21354      && test x$build = x$host; then
   21355 	gcc_cv_ld=../ld/ld-new$build_exeext
   21356 elif test -x collect-ld$build_exeext; then
   21357 	# Build using linker in the current directory.
   21358 	gcc_cv_ld=./collect-ld$build_exeext
   21359 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
   21360         gcc_cv_ld="$LD_FOR_TARGET"
   21361 else
   21362         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
   21363 set dummy $LD_FOR_TARGET; ac_word=$2
   21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21365 $as_echo_n "checking for $ac_word... " >&6; }
   21366 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
   21367   $as_echo_n "(cached) " >&6
   21368 else
   21369   case $gcc_cv_ld in
   21370   [\\/]* | ?:[\\/]*)
   21371   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
   21372   ;;
   21373   *)
   21374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21375 for as_dir in $PATH
   21376 do
   21377   IFS=$as_save_IFS
   21378   test -z "$as_dir" && as_dir=.
   21379     for ac_exec_ext in '' $ac_executable_extensions; do
   21380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   21381     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
   21382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21383     break 2
   21384   fi
   21385 done
   21386   done
   21387 IFS=$as_save_IFS
   21388 
   21389   ;;
   21390 esac
   21391 fi
   21392 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
   21393 if test -n "$gcc_cv_ld"; then
   21394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
   21395 $as_echo "$gcc_cv_ld" >&6; }
   21396 else
   21397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21398 $as_echo "no" >&6; }
   21399 fi
   21400 
   21401 
   21402 fi
   21403 fi
   21404 
   21405 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
   21406 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
   21407 # if the PLUGIN_LD is set ld-new, just have it as ld
   21408 # as that is the installed named.
   21409 if test x$PLUGIN_LD_SUFFIX = xld-new \
   21410    || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
   21411   PLUGIN_LD_SUFFIX=ld
   21412 fi
   21413 
   21414 # Check whether --with-plugin-ld was given.
   21415 if test "${with_plugin_ld+set}" = set; then :
   21416   withval=$with_plugin_ld; if test x"$withval" != x; then
   21417    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
   21418    PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
   21419  fi
   21420 fi
   21421 
   21422 
   21423 
   21424 cat >>confdefs.h <<_ACEOF
   21425 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
   21426 _ACEOF
   21427 
   21428 
   21429 # Check to see if we are using gold instead of ld
   21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
   21431 $as_echo_n "checking whether we are using gold... " >&6; }
   21432 ld_is_gold=no
   21433 if test x$gcc_cv_ld != x; then
   21434   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
   21435      | grep "GNU gold" > /dev/null; then
   21436     ld_is_gold=yes
   21437   fi
   21438 fi
   21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
   21440 $as_echo "$ld_is_gold" >&6; }
   21441 
   21442 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
   21443 
   21444 case "$ORIGINAL_LD_FOR_TARGET" in
   21445   ./collect-ld | ./collect-ld$build_exeext) ;;
   21446   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
   21447  ;;
   21448 esac
   21449 
   21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
   21451 $as_echo_n "checking what linker to use... " >&6; }
   21452 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
   21453    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
   21454 	# Single tree build which includes ld.  We want to prefer it
   21455 	# over whatever linker top-level may have detected, since
   21456 	# we'll use what we're building after installation anyway.
   21457 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
   21458 $as_echo "newly built ld" >&6; }
   21459 	in_tree_ld=yes
   21460 	in_tree_ld_is_elf=no
   21461 	if (grep 'EMUL = .*elf' ../ld/Makefile \
   21462 	    || grep 'EMUL = .*linux' ../ld/Makefile \
   21463 	    || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
   21464 	  in_tree_ld_is_elf=yes
   21465 	elif test "$ld_is_gold" = yes; then
   21466 	  in_tree_ld_is_elf=yes
   21467 	fi
   21468 	for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
   21469 	do
   21470 		gcc_cv_gld_version=`sed -n -e 's/^[ 	]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
   21471 		if test x$gcc_cv_gld_version != x; then
   21472 			break
   21473 		fi
   21474 	done
   21475 	case $gcc_cv_gld_version in
   21476 	  VERSION=[0-9]*) ;;
   21477 	  *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
   21478 	esac
   21479 	gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
   21480 	gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
   21481 else
   21482 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
   21483 $as_echo "$gcc_cv_ld" >&6; }
   21484 	in_tree_ld=no
   21485 fi
   21486 
   21487 # Figure out what nm we will be using.
   21488 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
   21489 if test "${gcc_cv_nm+set}" = set; then :
   21490 
   21491 else
   21492 
   21493 if test -f $gcc_cv_binutils_srcdir/configure.in \
   21494      && test -f ../binutils/Makefile \
   21495      && test x$build = x$host; then
   21496 	gcc_cv_nm=../binutils/nm-new$build_exeext
   21497 elif test -x nm$build_exeext; then
   21498 	gcc_cv_nm=./nm$build_exeext
   21499 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
   21500         gcc_cv_nm="$NM_FOR_TARGET"
   21501 else
   21502         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
   21503 set dummy $NM_FOR_TARGET; ac_word=$2
   21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21505 $as_echo_n "checking for $ac_word... " >&6; }
   21506 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
   21507   $as_echo_n "(cached) " >&6
   21508 else
   21509   case $gcc_cv_nm in
   21510   [\\/]* | ?:[\\/]*)
   21511   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
   21512   ;;
   21513   *)
   21514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21515 for as_dir in $PATH
   21516 do
   21517   IFS=$as_save_IFS
   21518   test -z "$as_dir" && as_dir=.
   21519     for ac_exec_ext in '' $ac_executable_extensions; do
   21520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   21521     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
   21522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21523     break 2
   21524   fi
   21525 done
   21526   done
   21527 IFS=$as_save_IFS
   21528 
   21529   ;;
   21530 esac
   21531 fi
   21532 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
   21533 if test -n "$gcc_cv_nm"; then
   21534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
   21535 $as_echo "$gcc_cv_nm" >&6; }
   21536 else
   21537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21538 $as_echo "no" >&6; }
   21539 fi
   21540 
   21541 
   21542 fi
   21543 fi
   21544 
   21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
   21546 $as_echo_n "checking what nm to use... " >&6; }
   21547 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
   21548 	# Single tree build which includes binutils.
   21549 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
   21550 $as_echo "newly built nm" >&6; }
   21551 	in_tree_nm=yes
   21552 else
   21553 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
   21554 $as_echo "$gcc_cv_nm" >&6; }
   21555 	in_tree_nm=no
   21556 fi
   21557 
   21558 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
   21559 
   21560 case "$ORIGINAL_NM_FOR_TARGET" in
   21561   ./nm | ./nm$build_exeext) ;;
   21562   *) ac_config_files="$ac_config_files nm:exec-tool.in"
   21563  ;;
   21564 esac
   21565 
   21566 
   21567 # Figure out what objdump we will be using.
   21568 if test "${gcc_cv_objdump+set}" = set; then :
   21569 
   21570 else
   21571 
   21572 if test -f $gcc_cv_binutils_srcdir/configure.in \
   21573      && test -f ../binutils/Makefile \
   21574      && test x$build = x$host; then
   21575 	# Single tree build which includes binutils.
   21576 	gcc_cv_objdump=../binutils/objdump$build_exeext
   21577 elif test -x objdump$build_exeext; then
   21578 	gcc_cv_objdump=./objdump$build_exeext
   21579 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
   21580         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
   21581 else
   21582         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
   21583 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
   21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21585 $as_echo_n "checking for $ac_word... " >&6; }
   21586 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
   21587   $as_echo_n "(cached) " >&6
   21588 else
   21589   case $gcc_cv_objdump in
   21590   [\\/]* | ?:[\\/]*)
   21591   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
   21592   ;;
   21593   *)
   21594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21595 for as_dir in $PATH
   21596 do
   21597   IFS=$as_save_IFS
   21598   test -z "$as_dir" && as_dir=.
   21599     for ac_exec_ext in '' $ac_executable_extensions; do
   21600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   21601     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
   21602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21603     break 2
   21604   fi
   21605 done
   21606   done
   21607 IFS=$as_save_IFS
   21608 
   21609   ;;
   21610 esac
   21611 fi
   21612 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
   21613 if test -n "$gcc_cv_objdump"; then
   21614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
   21615 $as_echo "$gcc_cv_objdump" >&6; }
   21616 else
   21617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21618 $as_echo "no" >&6; }
   21619 fi
   21620 
   21621 
   21622 fi
   21623 fi
   21624 
   21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
   21626 $as_echo_n "checking what objdump to use... " >&6; }
   21627 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
   21628 	# Single tree build which includes binutils.
   21629 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
   21630 $as_echo "newly built objdump" >&6; }
   21631 elif test x$gcc_cv_objdump = x; then
   21632 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21633 $as_echo "not found" >&6; }
   21634 else
   21635 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
   21636 $as_echo "$gcc_cv_objdump" >&6; }
   21637 fi
   21638 
   21639 # Figure out what readelf we will be using.
   21640 if test "${gcc_cv_readelf+set}" = set; then :
   21641 
   21642 else
   21643 
   21644 if test -f $gcc_cv_binutils_srcdir/configure.in \
   21645      && test -f ../binutils/Makefile \
   21646      && test x$build = x$host; then
   21647 	# Single tree build which includes binutils.
   21648 	gcc_cv_readelf=../binutils/readelf$build_exeext
   21649 elif test -x readelf$build_exeext; then
   21650 	gcc_cv_readelf=./readelf$build_exeext
   21651 else
   21652         # Extract the first word of "readelf", so it can be a program name with args.
   21653 set dummy readelf; ac_word=$2
   21654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21655 $as_echo_n "checking for $ac_word... " >&6; }
   21656 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
   21657   $as_echo_n "(cached) " >&6
   21658 else
   21659   case $gcc_cv_readelf in
   21660   [\\/]* | ?:[\\/]*)
   21661   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
   21662   ;;
   21663   *)
   21664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21665 for as_dir in $PATH
   21666 do
   21667   IFS=$as_save_IFS
   21668   test -z "$as_dir" && as_dir=.
   21669     for ac_exec_ext in '' $ac_executable_extensions; do
   21670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   21671     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
   21672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21673     break 2
   21674   fi
   21675 done
   21676   done
   21677 IFS=$as_save_IFS
   21678 
   21679   ;;
   21680 esac
   21681 fi
   21682 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
   21683 if test -n "$gcc_cv_readelf"; then
   21684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
   21685 $as_echo "$gcc_cv_readelf" >&6; }
   21686 else
   21687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21688 $as_echo "no" >&6; }
   21689 fi
   21690 
   21691 
   21692 fi
   21693 fi
   21694 
   21695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
   21696 $as_echo_n "checking what readelf to use... " >&6; }
   21697 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
   21698 	# Single tree build which includes binutils.
   21699 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
   21700 $as_echo "newly built readelf" >&6; }
   21701 elif test x$gcc_cv_readelf = x; then
   21702 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   21703 $as_echo "not found" >&6; }
   21704 else
   21705 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
   21706 $as_echo "$gcc_cv_readelf" >&6; }
   21707 fi
   21708 
   21709 # Figure out what assembler alignment features are present.
   21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
   21711 $as_echo_n "checking assembler flags... " >&6; }
   21712 if test "${gcc_cv_as_flags+set}" = set; then :
   21713   $as_echo_n "(cached) " >&6
   21714 else
   21715    case "$target" in
   21716   i[34567]86-*-linux*)
   21717         gcc_cv_as_flags="--32"
   21718     ;;
   21719   powerpc*-*-darwin*)
   21720         gcc_cv_as_flags="-arch ppc"
   21721     ;;
   21722   *)
   21723     gcc_cv_as_flags=" "
   21724     ;;
   21725   esac
   21726 fi
   21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
   21728 $as_echo "$gcc_cv_as_flags" >&6; }
   21729 
   21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
   21731 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
   21732 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
   21733   $as_echo_n "(cached) " >&6
   21734 else
   21735   gcc_cv_as_balign_and_p2align=no
   21736     if test $in_tree_gas = yes; then
   21737     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
   21738   then gcc_cv_as_balign_and_p2align=yes
   21739 fi
   21740   elif test x$gcc_cv_as != x; then
   21741     $as_echo '.balign 4
   21742 .p2align 2' > conftest.s
   21743     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   21744   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   21745   (eval $ac_try) 2>&5
   21746   ac_status=$?
   21747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21748   test $ac_status = 0; }; }
   21749     then
   21750 	gcc_cv_as_balign_and_p2align=yes
   21751     else
   21752       echo "configure: failed program was" >&5
   21753       cat conftest.s >&5
   21754     fi
   21755     rm -f conftest.o conftest.s
   21756   fi
   21757 fi
   21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
   21759 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
   21760 if test $gcc_cv_as_balign_and_p2align = yes; then
   21761 
   21762 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
   21763 
   21764 fi
   21765 
   21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
   21767 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
   21768 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
   21769   $as_echo_n "(cached) " >&6
   21770 else
   21771   gcc_cv_as_max_skip_p2align=no
   21772     if test $in_tree_gas = yes; then
   21773     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
   21774   then gcc_cv_as_max_skip_p2align=yes
   21775 fi
   21776   elif test x$gcc_cv_as != x; then
   21777     $as_echo '.p2align 4,,7' > conftest.s
   21778     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   21779   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   21780   (eval $ac_try) 2>&5
   21781   ac_status=$?
   21782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21783   test $ac_status = 0; }; }
   21784     then
   21785 	gcc_cv_as_max_skip_p2align=yes
   21786     else
   21787       echo "configure: failed program was" >&5
   21788       cat conftest.s >&5
   21789     fi
   21790     rm -f conftest.o conftest.s
   21791   fi
   21792 fi
   21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
   21794 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
   21795 if test $gcc_cv_as_max_skip_p2align = yes; then
   21796 
   21797 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
   21798 
   21799 fi
   21800 
   21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
   21802 $as_echo_n "checking assembler for .literal16... " >&6; }
   21803 if test "${gcc_cv_as_literal16+set}" = set; then :
   21804   $as_echo_n "(cached) " >&6
   21805 else
   21806   gcc_cv_as_literal16=no
   21807     if test $in_tree_gas = yes; then
   21808     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
   21809   then gcc_cv_as_literal16=yes
   21810 fi
   21811   elif test x$gcc_cv_as != x; then
   21812     $as_echo '.literal16' > conftest.s
   21813     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   21814   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   21815   (eval $ac_try) 2>&5
   21816   ac_status=$?
   21817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21818   test $ac_status = 0; }; }
   21819     then
   21820 	gcc_cv_as_literal16=yes
   21821     else
   21822       echo "configure: failed program was" >&5
   21823       cat conftest.s >&5
   21824     fi
   21825     rm -f conftest.o conftest.s
   21826   fi
   21827 fi
   21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
   21829 $as_echo "$gcc_cv_as_literal16" >&6; }
   21830 if test $gcc_cv_as_literal16 = yes; then
   21831 
   21832 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
   21833 
   21834 fi
   21835 
   21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
   21837 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
   21838 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
   21839   $as_echo_n "(cached) " >&6
   21840 else
   21841   gcc_cv_as_subsection_m1=no
   21842     if test $in_tree_gas = yes; then
   21843     if test $in_tree_gas_is_elf = yes \
   21844   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
   21845   then gcc_cv_as_subsection_m1=yes
   21846 fi
   21847   elif test x$gcc_cv_as != x; then
   21848     $as_echo 'conftest_label1: .word 0
   21849 .subsection -1
   21850 conftest_label2: .word 0
   21851 .previous' > conftest.s
   21852     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   21853   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   21854   (eval $ac_try) 2>&5
   21855   ac_status=$?
   21856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21857   test $ac_status = 0; }; }
   21858     then
   21859 	if test x$gcc_cv_nm != x; then
   21860     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
   21861     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
   21862     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
   21863     then :
   21864     else gcc_cv_as_subsection_m1=yes
   21865     fi
   21866     rm -f conftest.nm1 conftest.nm2
   21867   fi
   21868     else
   21869       echo "configure: failed program was" >&5
   21870       cat conftest.s >&5
   21871     fi
   21872     rm -f conftest.o conftest.s
   21873   fi
   21874 fi
   21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
   21876 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
   21877 if test $gcc_cv_as_subsection_m1 = yes; then
   21878 
   21879 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
   21880 
   21881 fi
   21882 
   21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
   21884 $as_echo_n "checking assembler for .weak... " >&6; }
   21885 if test "${gcc_cv_as_weak+set}" = set; then :
   21886   $as_echo_n "(cached) " >&6
   21887 else
   21888   gcc_cv_as_weak=no
   21889     if test $in_tree_gas = yes; then
   21890     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
   21891   then gcc_cv_as_weak=yes
   21892 fi
   21893   elif test x$gcc_cv_as != x; then
   21894     $as_echo '	.weak foobar' > conftest.s
   21895     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   21896   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   21897   (eval $ac_try) 2>&5
   21898   ac_status=$?
   21899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21900   test $ac_status = 0; }; }
   21901     then
   21902 	gcc_cv_as_weak=yes
   21903     else
   21904       echo "configure: failed program was" >&5
   21905       cat conftest.s >&5
   21906     fi
   21907     rm -f conftest.o conftest.s
   21908   fi
   21909 fi
   21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
   21911 $as_echo "$gcc_cv_as_weak" >&6; }
   21912 if test $gcc_cv_as_weak = yes; then
   21913 
   21914 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
   21915 
   21916 fi
   21917 
   21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
   21919 $as_echo_n "checking assembler for .weakref... " >&6; }
   21920 if test "${gcc_cv_as_weakref+set}" = set; then :
   21921   $as_echo_n "(cached) " >&6
   21922 else
   21923   gcc_cv_as_weakref=no
   21924     if test $in_tree_gas = yes; then
   21925     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
   21926   then gcc_cv_as_weakref=yes
   21927 fi
   21928   elif test x$gcc_cv_as != x; then
   21929     $as_echo '	.weakref foobar, barfnot' > conftest.s
   21930     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   21931   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   21932   (eval $ac_try) 2>&5
   21933   ac_status=$?
   21934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21935   test $ac_status = 0; }; }
   21936     then
   21937 	gcc_cv_as_weakref=yes
   21938     else
   21939       echo "configure: failed program was" >&5
   21940       cat conftest.s >&5
   21941     fi
   21942     rm -f conftest.o conftest.s
   21943   fi
   21944 fi
   21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
   21946 $as_echo "$gcc_cv_as_weakref" >&6; }
   21947 if test $gcc_cv_as_weakref = yes; then
   21948 
   21949 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
   21950 
   21951 fi
   21952 
   21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
   21954 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
   21955 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
   21956   $as_echo_n "(cached) " >&6
   21957 else
   21958   gcc_cv_as_nsubspa_comdat=no
   21959     if test $in_tree_gas = yes; then
   21960     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
   21961   then gcc_cv_as_nsubspa_comdat=yes
   21962 fi
   21963   elif test x$gcc_cv_as != x; then
   21964     $as_echo '	.SPACE $TEXT$
   21965 	.NSUBSPA $CODE$,COMDAT' > conftest.s
   21966     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   21967   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   21968   (eval $ac_try) 2>&5
   21969   ac_status=$?
   21970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21971   test $ac_status = 0; }; }
   21972     then
   21973 	gcc_cv_as_nsubspa_comdat=yes
   21974     else
   21975       echo "configure: failed program was" >&5
   21976       cat conftest.s >&5
   21977     fi
   21978     rm -f conftest.o conftest.s
   21979   fi
   21980 fi
   21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
   21982 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
   21983 if test $gcc_cv_as_nsubspa_comdat = yes; then
   21984 
   21985 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
   21986 
   21987 fi
   21988 
   21989 # .hidden needs to be supported in both the assembler and the linker,
   21990 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
   21991 # This is irritatingly difficult to feature test for; we have to check the
   21992 # date string after the version number.  If we've got an in-tree
   21993 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
   21994 # to be safe.
   21995 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
   21996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
   21997 $as_echo_n "checking assembler for .hidden... " >&6; }
   21998 if test "${gcc_cv_as_hidden+set}" = set; then :
   21999   $as_echo_n "(cached) " >&6
   22000 else
   22001   gcc_cv_as_hidden=no
   22002     if test $in_tree_gas = yes; then
   22003     if test $in_tree_gas_is_elf = yes \
   22004   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
   22005   then gcc_cv_as_hidden=yes
   22006 fi
   22007   elif test x$gcc_cv_as != x; then
   22008     $as_echo '	.hidden foobar
   22009 foobar:' > conftest.s
   22010     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   22011   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22012   (eval $ac_try) 2>&5
   22013   ac_status=$?
   22014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22015   test $ac_status = 0; }; }
   22016     then
   22017 
   22018 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
   22019 # STV_HIDDEN, so disable .hidden support if so.
   22020 case "${target}" in
   22021   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
   22022     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
   22023       cat > conftest.s <<EOF
   22024 .globl hidden
   22025         .hidden hidden
   22026 hidden:
   22027 .globl default
   22028         .set    default,hidden
   22029 EOF
   22030       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
   22031         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
   22032         grep '\.hidden default' > /dev/null; then
   22033         gcc_cv_as_hidden=no
   22034       else
   22035         gcc_cv_as_hidden=yes
   22036       fi
   22037     else
   22038       # Assume bug is present if objdump is missing.
   22039       gcc_cv_as_hidden=no
   22040     fi
   22041     ;;
   22042   *)
   22043     gcc_cv_as_hidden=yes
   22044     ;;
   22045 esac
   22046     else
   22047       echo "configure: failed program was" >&5
   22048       cat conftest.s >&5
   22049     fi
   22050     rm -f conftest.o conftest.s
   22051   fi
   22052 fi
   22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
   22054 $as_echo "$gcc_cv_as_hidden" >&6; }
   22055 
   22056 case "${target}" in
   22057   *-*-darwin*)
   22058     # Darwin as has some visibility support, though with a different syntax.
   22059     gcc_cv_as_hidden=yes
   22060     ;;
   22061 esac
   22062 
   22063 # gnu_indirect_function type is an extension proposed at
   22064 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
   22065 # selection of function implementation
   22066 # Check whether --enable-gnu-indirect-function was given.
   22067 if test "${enable_gnu_indirect_function+set}" = set; then :
   22068   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
   22069     yes | no) ;;
   22070     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
   22071 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
   22072   esac
   22073 else
   22074   enable_gnu_indirect_function="$default_gnu_indirect_function"
   22075 fi
   22076 
   22077 if test x$enable_gnu_indirect_function = xyes; then
   22078 
   22079 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
   22080 
   22081 fi
   22082 
   22083 if test $in_tree_ld != yes ; then
   22084   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
   22085   if echo "$ld_ver" | grep GNU > /dev/null; then
   22086     if test x"$ld_is_gold" = xyes; then
   22087       # GNU gold --version looks like this:
   22088       #
   22089       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
   22090       #
   22091       # We extract the binutils version which is more familiar and specific
   22092       # than the gold version.
   22093       ld_vers=`echo $ld_ver | sed -n \
   22094 	  -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
   22095     else
   22096       # GNU ld --version looks like this:
   22097       #
   22098       # GNU ld (GNU Binutils) 2.21.51.20110225
   22099       ld_vers=`echo $ld_ver | sed -n \
   22100 	  -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
   22101     fi
   22102     ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
   22103     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
   22104     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
   22105     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
   22106   else
   22107     case "${target}" in
   22108       *-*-solaris2*)
   22109 	# See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
   22110 	# format.
   22111 	#
   22112 	# Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
   22113 	# /usr/ccs/bin/ld has been configured.
   22114 	ld_ver=`$gcc_cv_ld -V 2>&1`
   22115 	if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
   22116 	  ld_vers=`echo $ld_ver | sed -n \
   22117 	    -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
   22118 	  ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
   22119 	  ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
   22120 	fi
   22121 	;;
   22122     esac
   22123   fi
   22124 fi
   22125 
   22126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
   22127 $as_echo_n "checking linker for .hidden support... " >&6; }
   22128 if test "${gcc_cv_ld_hidden+set}" = set; then :
   22129   $as_echo_n "(cached) " >&6
   22130 else
   22131   if test $in_tree_ld = yes ; then
   22132   gcc_cv_ld_hidden=no
   22133   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
   22134      && test $in_tree_ld_is_elf = yes; then
   22135      gcc_cv_ld_hidden=yes
   22136   fi
   22137 else
   22138   gcc_cv_ld_hidden=yes
   22139   if test x"$ld_is_gold" = xyes; then
   22140     :
   22141   elif echo "$ld_ver" | grep GNU > /dev/null; then
   22142     case "${target}" in
   22143       mmix-knuth-mmixware)
   22144         # The linker emits by default mmo, not ELF, so "no" is appropriate.
   22145 	gcc_cv_ld_hidden=no
   22146 	;;
   22147     esac
   22148     if test 0"$ld_date" -lt 20020404; then
   22149       if test -n "$ld_date"; then
   22150 	# If there was date string, but was earlier than 2002-04-04, fail
   22151 	gcc_cv_ld_hidden=no
   22152       elif test -z "$ld_vers"; then
   22153 	# If there was no date string nor ld version number, something is wrong
   22154 	gcc_cv_ld_hidden=no
   22155       else
   22156 	test -z "$ld_vers_patch" && ld_vers_patch=0
   22157 	if test "$ld_vers_major" -lt 2; then
   22158 	  gcc_cv_ld_hidden=no
   22159 	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
   22160 	  gcc_cv_ld_hidden="no"
   22161 	elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
   22162 	  gcc_cv_ld_hidden=no
   22163 	fi
   22164       fi
   22165     fi
   22166   else
   22167     case "${target}" in
   22168       *-*-darwin*)
   22169 	# Darwin ld has some visibility support.
   22170 	gcc_cv_ld_hidden=yes
   22171         ;;
   22172       hppa64*-*-hpux* | ia64*-*-hpux*)
   22173 	gcc_cv_ld_hidden=yes
   22174 	;;
   22175       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
   22176 	# Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
   22177 	# .symbolic was only added in Solaris 9 12/02.
   22178         gcc_cv_ld_hidden=yes
   22179 	;;
   22180       *)
   22181 	gcc_cv_ld_hidden=no
   22182 	;;
   22183     esac
   22184   fi
   22185 fi
   22186 fi
   22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
   22188 $as_echo "$gcc_cv_ld_hidden" >&6; }
   22189 libgcc_visibility=no
   22190 
   22191 
   22192 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
   22193   libgcc_visibility=yes
   22194 
   22195 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
   22196 
   22197 fi
   22198 
   22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
   22200 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
   22201 gcc_cv_ld_ro_rw_mix=unknown
   22202 if test $in_tree_ld = yes ; then
   22203   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
   22204      && test $in_tree_ld_is_elf = yes; then
   22205     gcc_cv_ld_ro_rw_mix=read-write
   22206   fi
   22207 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
   22208   echo '.section myfoosect, "a"' > conftest1.s
   22209   echo '.section myfoosect, "aw"' > conftest2.s
   22210   echo '.byte 1' >> conftest2.s
   22211   echo '.section myfoosect, "a"' > conftest3.s
   22212   echo '.byte 0' >> conftest3.s
   22213   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
   22214      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
   22215      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
   22216      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
   22217 	conftest2.o conftest3.o > /dev/null 2>&1; then
   22218     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
   22219 			 | sed -e '/myfoosect/!d' -e N`
   22220     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
   22221       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
   22222 	gcc_cv_ld_ro_rw_mix=read-only
   22223       else
   22224 	gcc_cv_ld_ro_rw_mix=read-write
   22225       fi
   22226     fi
   22227   fi
   22228   rm -f conftest.* conftest[123].*
   22229 fi
   22230 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
   22231 
   22232 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
   22233 
   22234 fi
   22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
   22236 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
   22237 
   22238 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
   22239   case "${target}" in
   22240     *-*-solaris2*)
   22241       #
   22242       # Solaris 2 ld -V output looks like this for a regular version:
   22243       #
   22244       # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
   22245       #
   22246       # but test versions add stuff at the end:
   22247       #
   22248       # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
   22249       #
   22250       gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
   22251       if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
   22252 	gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
   22253 	  -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
   22254 	gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
   22255 	gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
   22256       fi
   22257       ;;
   22258   esac
   22259 fi
   22260 
   22261 # Check whether --enable-initfini-array was given.
   22262 if test "${enable_initfini_array+set}" = set; then :
   22263   enableval=$enable_initfini_array;
   22264 else
   22265 
   22266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
   22267 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
   22268 if test "${gcc_cv_initfini_array+set}" = set; then :
   22269   $as_echo_n "(cached) " >&6
   22270 else
   22271     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
   22272     case "${target}" in
   22273       ia64-*)
   22274 	if test "$cross_compiling" = yes; then :
   22275   gcc_cv_initfini_array=no
   22276 else
   22277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22278 /* end confdefs.h.  */
   22279 
   22280 #ifndef __ELF__
   22281 #error Not an ELF OS
   22282 #endif
   22283 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
   22284    if it can be used.  */
   22285 static int x = -1;
   22286 int main (void) { return x; }
   22287 int foo (void) { x = 0; }
   22288 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
   22289 
   22290 _ACEOF
   22291 if ac_fn_c_try_run "$LINENO"; then :
   22292   gcc_cv_initfini_array=yes
   22293 else
   22294   gcc_cv_initfini_array=no
   22295 fi
   22296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   22297   conftest.$ac_objext conftest.beam conftest.$ac_ext
   22298 fi
   22299 ;;
   22300       *)
   22301 	gcc_cv_initfini_array=no
   22302 	if test $in_tree_ld = yes ; then
   22303 	  if test "$gcc_cv_gld_major_version" -eq 2 \
   22304 	     -a "$gcc_cv_gld_minor_version" -ge 22 \
   22305 	     -o "$gcc_cv_gld_major_version" -gt 2 \
   22306 	     && test $in_tree_ld_is_elf = yes; then
   22307 	    gcc_cv_initfini_array=yes
   22308 	  fi
   22309 	elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
   22310 	  cat > conftest.s <<\EOF
   22311 .section .dtors,"a",%progbits
   22312 .balign 4
   22313 .byte 'A', 'A', 'A', 'A'
   22314 .section .ctors,"a",%progbits
   22315 .balign 4
   22316 .byte 'B', 'B', 'B', 'B'
   22317 .section .fini_array.65530,"a",%progbits
   22318 .balign 4
   22319 .byte 'C', 'C', 'C', 'C'
   22320 .section .init_array.65530,"a",%progbits
   22321 .balign 4
   22322 .byte 'D', 'D', 'D', 'D'
   22323 .section .dtors.64528,"a",%progbits
   22324 .balign 4
   22325 .byte 'E', 'E', 'E', 'E'
   22326 .section .ctors.64528,"a",%progbits
   22327 .balign 4
   22328 .byte 'F', 'F', 'F', 'F'
   22329 .section .fini_array.01005,"a",%progbits
   22330 .balign 4
   22331 .byte 'G', 'G', 'G', 'G'
   22332 .section .init_array.01005,"a",%progbits
   22333 .balign 4
   22334 .byte 'H', 'H', 'H', 'H'
   22335 .text
   22336 .globl _start
   22337 _start:
   22338 EOF
   22339 	  if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
   22340 	     && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
   22341 	     && $gcc_cv_objdump -s -j .init_array conftest \
   22342 		| grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
   22343 	     && $gcc_cv_objdump -s -j .fini_array conftest \
   22344 		| grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
   22345 	    gcc_cv_initfini_array=yes
   22346 	  fi
   22347 	  rm -f conftest conftest.*
   22348 	fi
   22349 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22350 /* end confdefs.h.  */
   22351 
   22352 #ifndef __ELF__
   22353 # error Not an ELF OS
   22354 #endif
   22355 #include <stdlib.h>
   22356 #if defined __GLIBC_PREREQ
   22357 # if __GLIBC_PREREQ (2, 4)
   22358 # else
   22359 #  error GLIBC 2.4 required
   22360 # endif
   22361 #else
   22362 # if defined __sun__ && defined __svr4__
   22363    /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
   22364 # else
   22365 #  error The C library not known to support .init_array/.fini_array
   22366 # endif
   22367 #endif
   22368 
   22369 _ACEOF
   22370 if ac_fn_c_try_cpp "$LINENO"; then :
   22371 
   22372 else
   22373   gcc_cv_initfini_array=no
   22374 fi
   22375 rm -f conftest.err conftest.$ac_ext;;
   22376     esac
   22377   else
   22378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
   22379 $as_echo_n "checking cross compile... guessing... " >&6; }
   22380     gcc_cv_initfini_array=no
   22381   fi
   22382 fi
   22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
   22384 $as_echo "$gcc_cv_initfini_array" >&6; }
   22385   enable_initfini_array=$gcc_cv_initfini_array
   22386 
   22387 fi
   22388 
   22389 if test $enable_initfini_array = yes; then
   22390 
   22391 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
   22392 
   22393 fi
   22394 
   22395 # Check if we have .[us]leb128, and support symbol arithmetic with it.
   22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
   22397 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
   22398 if test "${gcc_cv_as_leb128+set}" = set; then :
   22399   $as_echo_n "(cached) " >&6
   22400 else
   22401   gcc_cv_as_leb128=no
   22402     if test $in_tree_gas = yes; then
   22403     if test $in_tree_gas_is_elf = yes \
   22404   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
   22405   then gcc_cv_as_leb128=yes
   22406 fi
   22407   elif test x$gcc_cv_as != x; then
   22408     $as_echo '	.data
   22409 	.uleb128 L2 - L1
   22410 L1:
   22411 	.uleb128 1280
   22412 	.sleb128 -1010
   22413 L2:' > conftest.s
   22414     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   22415   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22416   (eval $ac_try) 2>&5
   22417   ac_status=$?
   22418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22419   test $ac_status = 0; }; }
   22420     then
   22421 	# GAS versions before 2.11 do not support uleb128,
   22422   # despite appearing to.
   22423   # ??? There exists an elf-specific test that will crash
   22424   # the assembler.  Perhaps it's better to figure out whether
   22425   # arbitrary sections are supported and try the test.
   22426   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
   22427   if echo "$as_ver" | grep GNU > /dev/null; then
   22428     as_vers=`echo $as_ver | sed -n \
   22429 	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
   22430     as_major=`expr "$as_vers" : '\([0-9]*\)'`
   22431     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
   22432     if test $as_major -eq 2 && test $as_minor -lt 11
   22433     then :
   22434     else gcc_cv_as_leb128=yes
   22435     fi
   22436   fi
   22437     else
   22438       echo "configure: failed program was" >&5
   22439       cat conftest.s >&5
   22440     fi
   22441     rm -f conftest.o conftest.s
   22442   fi
   22443 fi
   22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
   22445 $as_echo "$gcc_cv_as_leb128" >&6; }
   22446 if test $gcc_cv_as_leb128 = yes; then
   22447 
   22448 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
   22449 
   22450 fi
   22451 
   22452 # Check if we have assembler support for unwind directives.
   22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
   22454 $as_echo_n "checking assembler for cfi directives... " >&6; }
   22455 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
   22456   $as_echo_n "(cached) " >&6
   22457 else
   22458   gcc_cv_as_cfi_directive=no
   22459   if test x$gcc_cv_as != x; then
   22460     $as_echo '	.text
   22461 	.cfi_startproc
   22462 	.cfi_offset 0, 0
   22463 	.cfi_same_value 1
   22464 	.cfi_def_cfa 1, 2
   22465 	.cfi_escape 1, 2, 3, 4, 5
   22466 	.cfi_endproc' > conftest.s
   22467     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   22468   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22469   (eval $ac_try) 2>&5
   22470   ac_status=$?
   22471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22472   test $ac_status = 0; }; }
   22473     then
   22474 	case "$target" in
   22475   *-*-solaris*)
   22476     # If the linker used on Solaris (like Sun ld) isn't capable of merging
   22477     # read-only and read-write sections, we need to make sure that the
   22478     # assembler used emits read-write .eh_frame sections.
   22479     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
   22480       if test "x$gcc_cv_objdump" != x; then
   22481 	if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
   22482 		sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
   22483 	  gcc_cv_as_cfi_directive=no
   22484 	else
   22485 	  case "$target" in
   22486 	    i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
   22487 	      # On Solaris/x86, make sure that GCC and gas agree on using
   22488 	      # read-only .eh_frame sections for 64-bit.
   22489 	      if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
   22490 		$gcc_cv_objdump -h conftest.o 2>/dev/null | \
   22491 			sed -e /.eh_frame/!d -e N | \
   22492 			grep READONLY > /dev/null; then
   22493 		gcc_cv_as_cfi_directive=yes
   22494 	      else
   22495 		gcc_cv_as_cfi_directive=no
   22496 	      fi
   22497 	      ;;
   22498 	    *)
   22499 	      gcc_cv_as_cfi_directive=yes
   22500 	      ;;
   22501 	  esac
   22502 	fi
   22503       else
   22504         # no objdump, err on the side of caution
   22505 	gcc_cv_as_cfi_directive=no
   22506       fi
   22507     else
   22508       gcc_cv_as_cfi_directive=yes
   22509     fi
   22510     ;;
   22511   *-*-*)
   22512     gcc_cv_as_cfi_directive=yes
   22513     ;;
   22514 esac
   22515     else
   22516       echo "configure: failed program was" >&5
   22517       cat conftest.s >&5
   22518     fi
   22519     rm -f conftest.o conftest.s
   22520   fi
   22521 fi
   22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
   22523 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
   22524 
   22525 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
   22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
   22527 $as_echo_n "checking assembler for working cfi advance... " >&6; }
   22528 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
   22529   $as_echo_n "(cached) " >&6
   22530 else
   22531   gcc_cv_as_cfi_advance_working=no
   22532   if test x$gcc_cv_as != x; then
   22533     $as_echo '	.text
   22534 	.cfi_startproc
   22535 	.cfi_adjust_cfa_offset 64
   22536 	.skip 75040, 0
   22537 	.cfi_adjust_cfa_offset 128
   22538 	.cfi_endproc' > conftest.s
   22539     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   22540   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22541   (eval $ac_try) 2>&5
   22542   ac_status=$?
   22543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22544   test $ac_status = 0; }; }
   22545     then
   22546 
   22547 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
   22548     | grep 'DW_CFA_advance_loc[24]:[ 	][ 	]*75040[ 	]' >/dev/null; then
   22549    gcc_cv_as_cfi_advance_working=yes
   22550 fi
   22551 
   22552     else
   22553       echo "configure: failed program was" >&5
   22554       cat conftest.s >&5
   22555     fi
   22556     rm -f conftest.o conftest.s
   22557   fi
   22558 fi
   22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
   22560 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
   22561 
   22562 else
   22563   # no objdump, err on the side of caution
   22564   gcc_cv_as_cfi_advance_working=no
   22565 fi
   22566 
   22567 
   22568 cat >>confdefs.h <<_ACEOF
   22569 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
   22570        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
   22571 _ACEOF
   22572 
   22573 
   22574 
   22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
   22576 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
   22577 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
   22578   $as_echo_n "(cached) " >&6
   22579 else
   22580   gcc_cv_as_cfi_personality_directive=no
   22581   if test x$gcc_cv_as != x; then
   22582     $as_echo '	.text
   22583 	.cfi_startproc
   22584 	.cfi_personality 0, symbol
   22585 	.cfi_endproc' > conftest.s
   22586     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   22587   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22588   (eval $ac_try) 2>&5
   22589   ac_status=$?
   22590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22591   test $ac_status = 0; }; }
   22592     then
   22593 	gcc_cv_as_cfi_personality_directive=yes
   22594     else
   22595       echo "configure: failed program was" >&5
   22596       cat conftest.s >&5
   22597     fi
   22598     rm -f conftest.o conftest.s
   22599   fi
   22600 fi
   22601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
   22602 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
   22603 
   22604 
   22605 cat >>confdefs.h <<_ACEOF
   22606 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
   22607     then echo 1; else echo 0; fi`
   22608 _ACEOF
   22609 
   22610 
   22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
   22612 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
   22613 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
   22614   $as_echo_n "(cached) " >&6
   22615 else
   22616   gcc_cv_as_cfi_sections_directive=no
   22617   if test x$gcc_cv_as != x; then
   22618     $as_echo '	.text
   22619 	.cfi_sections .debug_frame, .eh_frame
   22620 	.cfi_startproc
   22621 	.cfi_endproc' > conftest.s
   22622     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   22623   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22624   (eval $ac_try) 2>&5
   22625   ac_status=$?
   22626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22627   test $ac_status = 0; }; }
   22628     then
   22629 	case $target_os in
   22630   win32 | pe | cygwin* | mingw32* | uwin*)
   22631     # Need to check that we generated the correct relocation for the
   22632     # .debug_frame section.  This was fixed for binutils 2.21.
   22633     gcc_cv_as_cfi_sections_directive=no
   22634     if test "x$gcc_cv_objdump" != x; then
   22635      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
   22636 	grep secrel > /dev/null; then
   22637       gcc_cv_as_cfi_sections_directive=yes
   22638      fi
   22639     fi
   22640     ;;
   22641   *)
   22642     gcc_cv_as_cfi_sections_directive=yes
   22643     ;;
   22644 esac
   22645     else
   22646       echo "configure: failed program was" >&5
   22647       cat conftest.s >&5
   22648     fi
   22649     rm -f conftest.o conftest.s
   22650   fi
   22651 fi
   22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
   22653 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
   22654 
   22655 
   22656 
   22657 cat >>confdefs.h <<_ACEOF
   22658 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
   22659     then echo 1; else echo 0; fi`
   22660 _ACEOF
   22661 
   22662 
   22663 # GAS versions up to and including 2.11.0 may mis-optimize
   22664 # .eh_frame data.
   22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
   22666 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
   22667 if test "${gcc_cv_as_eh_frame+set}" = set; then :
   22668   $as_echo_n "(cached) " >&6
   22669 else
   22670   gcc_cv_as_eh_frame=no
   22671     if test $in_tree_gas = yes; then
   22672     if test $in_tree_gas_is_elf = yes \
   22673   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
   22674   then gcc_cv_as_eh_frame=yes
   22675 fi
   22676   elif test x$gcc_cv_as != x; then
   22677     $as_echo '	.text
   22678 .LFB1:
   22679 	.4byte	0
   22680 .L1:
   22681 	.4byte	0
   22682 .LFE1:
   22683 	.section	.eh_frame,"aw",@progbits
   22684 __FRAME_BEGIN__:
   22685 	.4byte	.LECIE1-.LSCIE1
   22686 .LSCIE1:
   22687 	.4byte	0x0
   22688 	.byte	0x1
   22689 	.ascii "z\0"
   22690 	.byte	0x1
   22691 	.byte	0x78
   22692 	.byte	0x1a
   22693 	.byte	0x0
   22694 	.byte	0x4
   22695 	.4byte	1
   22696 	.p2align 1
   22697 .LECIE1:
   22698 .LSFDE1:
   22699 	.4byte	.LEFDE1-.LASFDE1
   22700 .LASFDE1:
   22701 	.4byte	.LASFDE1-__FRAME_BEGIN__
   22702 	.4byte	.LFB1
   22703 	.4byte	.LFE1-.LFB1
   22704 	.byte	0x4
   22705 	.4byte	.LFE1-.LFB1
   22706 	.byte	0x4
   22707 	.4byte	.L1-.LFB1
   22708 .LEFDE1:' > conftest.s
   22709     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   22710   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22711   (eval $ac_try) 2>&5
   22712   ac_status=$?
   22713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22714   test $ac_status = 0; }; }
   22715     then
   22716 	  cat > conftest.lit <<EOF
   22717  0000 10000000 00000000 017a0001 781a0004  .........z..x...
   22718  0010 01000000 12000000 18000000 00000000  ................
   22719  0020 08000000 04080000 0044               .........D      
   22720 EOF
   22721 cat > conftest.big <<EOF
   22722  0000 00000010 00000000 017a0001 781a0004  .........z..x...
   22723  0010 00000001 00000012 00000018 00000000  ................
   22724  0020 00000008 04000000 0844               .........D      
   22725 EOF
   22726   # If the assembler didn't choke, and we can objdump,
   22727   # and we got the correct data, then succeed.
   22728   # The text in the here-document typically retains its unix-style line
   22729   # endings, while the output of objdump will use host line endings.
   22730   # Therefore, use diff -b for the comparisons.
   22731   if test x$gcc_cv_objdump != x \
   22732   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
   22733      | tail -3 > conftest.got \
   22734   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
   22735     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
   22736   then
   22737     gcc_cv_as_eh_frame=yes
   22738   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
   22739   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22740   (eval $ac_try) 2>&5
   22741   ac_status=$?
   22742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22743   test $ac_status = 0; }; }; then
   22744     gcc_cv_as_eh_frame=buggy
   22745   else
   22746     # Uh oh, what do we do now?
   22747     gcc_cv_as_eh_frame=no
   22748   fi
   22749     else
   22750       echo "configure: failed program was" >&5
   22751       cat conftest.s >&5
   22752     fi
   22753     rm -f conftest.o conftest.s
   22754   fi
   22755 fi
   22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
   22757 $as_echo "$gcc_cv_as_eh_frame" >&6; }
   22758 
   22759 
   22760 if test $gcc_cv_as_eh_frame = buggy; then
   22761 
   22762 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
   22763 
   22764 fi
   22765 
   22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
   22767 $as_echo_n "checking assembler for section merging support... " >&6; }
   22768 if test "${gcc_cv_as_shf_merge+set}" = set; then :
   22769   $as_echo_n "(cached) " >&6
   22770 else
   22771   gcc_cv_as_shf_merge=no
   22772     if test $in_tree_gas = yes; then
   22773     if test $in_tree_gas_is_elf = yes \
   22774   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
   22775   then gcc_cv_as_shf_merge=yes
   22776 fi
   22777   elif test x$gcc_cv_as != x; then
   22778     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
   22779     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   22780   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22781   (eval $ac_try) 2>&5
   22782   ac_status=$?
   22783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22784   test $ac_status = 0; }; }
   22785     then
   22786 	gcc_cv_as_shf_merge=yes
   22787     else
   22788       echo "configure: failed program was" >&5
   22789       cat conftest.s >&5
   22790     fi
   22791     rm -f conftest.o conftest.s
   22792   fi
   22793 fi
   22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
   22795 $as_echo "$gcc_cv_as_shf_merge" >&6; }
   22796 
   22797 if test $gcc_cv_as_shf_merge = no; then
   22798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
   22799 $as_echo_n "checking assembler for section merging support... " >&6; }
   22800 if test "${gcc_cv_as_shf_merge+set}" = set; then :
   22801   $as_echo_n "(cached) " >&6
   22802 else
   22803   gcc_cv_as_shf_merge=no
   22804     if test $in_tree_gas = yes; then
   22805     if test $in_tree_gas_is_elf = yes \
   22806   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
   22807   then gcc_cv_as_shf_merge=yes
   22808 fi
   22809   elif test x$gcc_cv_as != x; then
   22810     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
   22811     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   22812   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22813   (eval $ac_try) 2>&5
   22814   ac_status=$?
   22815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22816   test $ac_status = 0; }; }
   22817     then
   22818 	gcc_cv_as_shf_merge=yes
   22819     else
   22820       echo "configure: failed program was" >&5
   22821       cat conftest.s >&5
   22822     fi
   22823     rm -f conftest.o conftest.s
   22824   fi
   22825 fi
   22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
   22827 $as_echo "$gcc_cv_as_shf_merge" >&6; }
   22828 
   22829 fi
   22830 
   22831 cat >>confdefs.h <<_ACEOF
   22832 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
   22833 _ACEOF
   22834 
   22835 
   22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
   22837 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
   22838 if test "${gcc_cv_as_comdat_group+set}" = set; then :
   22839   $as_echo_n "(cached) " >&6
   22840 else
   22841   gcc_cv_as_comdat_group=no
   22842     if test $in_tree_gas = yes; then
   22843     if test $in_tree_gas_is_elf = yes \
   22844   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
   22845   then gcc_cv_as_comdat_group=yes
   22846 fi
   22847   elif test x$gcc_cv_as != x; then
   22848     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
   22849     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   22850   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22851   (eval $ac_try) 2>&5
   22852   ac_status=$?
   22853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22854   test $ac_status = 0; }; }
   22855     then
   22856 	gcc_cv_as_comdat_group=yes
   22857     else
   22858       echo "configure: failed program was" >&5
   22859       cat conftest.s >&5
   22860     fi
   22861     rm -f conftest.o conftest.s
   22862   fi
   22863 fi
   22864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
   22865 $as_echo "$gcc_cv_as_comdat_group" >&6; }
   22866 
   22867 if test $gcc_cv_as_comdat_group = yes; then
   22868   gcc_cv_as_comdat_group_percent=no
   22869   gcc_cv_as_comdat_group_group=no
   22870 else
   22871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
   22872 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
   22873 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
   22874   $as_echo_n "(cached) " >&6
   22875 else
   22876   gcc_cv_as_comdat_group_percent=no
   22877     if test $in_tree_gas = yes; then
   22878     if test $in_tree_gas_is_elf = yes \
   22879   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
   22880   then gcc_cv_as_comdat_group_percent=yes
   22881 fi
   22882   elif test x$gcc_cv_as != x; then
   22883     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
   22884     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
   22885   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22886   (eval $ac_try) 2>&5
   22887   ac_status=$?
   22888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22889   test $ac_status = 0; }; }
   22890     then
   22891 	gcc_cv_as_comdat_group_percent=yes
   22892     else
   22893       echo "configure: failed program was" >&5
   22894       cat conftest.s >&5
   22895     fi
   22896     rm -f conftest.o conftest.s
   22897   fi
   22898 fi
   22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
   22900 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
   22901 
   22902  if test $gcc_cv_as_comdat_group_percent = yes; then
   22903    gcc_cv_as_comdat_group_group=no
   22904  else
   22905    if test -z "${gcc_cv_as_comdat_group_group+set}"; then
   22906      gcc_cv_as_comdat_group_group=no
   22907    fi
   22908    case "${target}" in
   22909      # Sun as uses a completely different syntax.
   22910      *-*-solaris2*)
   22911        case "${target}" in
   22912          sparc*-*-solaris2*)
   22913            conftest_s='
   22914                .group foo,".text%foo",#comdat
   22915                .section ".text%foo", #alloc,#execinstr,#progbits
   22916                .globl foo
   22917              foo:
   22918 	     '
   22919            ;;
   22920          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
   22921 	   conftest_s='
   22922                .group foo,.text%foo,#comdat
   22923                .section .text%foo, "ax", @progbits
   22924                .globl  foo
   22925              foo:
   22926 	     '
   22927 	   ;;
   22928        esac
   22929        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
   22930 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
   22931 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
   22932   $as_echo_n "(cached) " >&6
   22933 else
   22934   gcc_cv_as_comdat_group_group=no
   22935   if test x$gcc_cv_as != x; then
   22936     $as_echo "$conftest_s" > conftest.s
   22937     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   22938   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   22939   (eval $ac_try) 2>&5
   22940   ac_status=$?
   22941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22942   test $ac_status = 0; }; }
   22943     then
   22944 	gcc_cv_as_comdat_group_group=yes
   22945     else
   22946       echo "configure: failed program was" >&5
   22947       cat conftest.s >&5
   22948     fi
   22949     rm -f conftest.o conftest.s
   22950   fi
   22951 fi
   22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
   22953 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
   22954 
   22955        ;;
   22956    esac
   22957  fi
   22958 fi
   22959 if test x"$ld_is_gold" = xyes; then
   22960   comdat_group=yes
   22961 elif test $in_tree_ld = yes ; then
   22962   comdat_group=no
   22963   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
   22964      && test $in_tree_ld_is_elf = yes; then
   22965      comdat_group=yes
   22966   fi
   22967 elif echo "$ld_ver" | grep GNU > /dev/null; then
   22968   comdat_group=yes
   22969   if test 0"$ld_date" -lt 20050308; then
   22970     if test -n "$ld_date"; then
   22971       # If there was date string, but was earlier than 2005-03-08, fail
   22972       comdat_group=no
   22973     elif test "$ld_vers_major" -lt 2; then
   22974       comdat_group=no
   22975     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
   22976       comdat_group=no
   22977     fi
   22978   fi
   22979 else
   22980   case "${target}" in
   22981     *-*-solaris2.1[1-9]*)
   22982       comdat_group=no
   22983       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
   22984       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
   22985       # version 1.688.
   22986       #
   22987       # If using Sun as for COMDAT group as emitted by GCC, one needs at
   22988       # least ld version 1.2267.
   22989       if test "$ld_vers_major" -gt 1; then
   22990         comdat_group=yes
   22991       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
   22992 	comdat_group=yes
   22993       elif test "$ld_vers_minor" -ge 2267; then
   22994 	comdat_group=yes
   22995       fi
   22996       ;;
   22997     *)
   22998       # Assume linkers other than GNU ld don't support COMDAT group.
   22999       comdat_group=no
   23000       ;;
   23001   esac
   23002 fi
   23003 # Allow overriding the automatic COMDAT group tests above.
   23004 # Check whether --enable-comdat was given.
   23005 if test "${enable_comdat+set}" = set; then :
   23006   enableval=$enable_comdat; comdat_group="$enable_comdat"
   23007 fi
   23008 
   23009 if test $comdat_group = no; then
   23010   gcc_cv_as_comdat_group=no
   23011   gcc_cv_as_comdat_group_percent=no
   23012   gcc_cv_as_comdat_group_group=no
   23013 fi
   23014 
   23015 cat >>confdefs.h <<_ACEOF
   23016 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
   23017     || test $gcc_cv_as_comdat_group_percent = yes \
   23018     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
   23019 _ACEOF
   23020 
   23021 
   23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
   23023 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
   23024 if test "${gcc_cv_as_discriminator+set}" = set; then :
   23025   $as_echo_n "(cached) " >&6
   23026 else
   23027   gcc_cv_as_discriminator=no
   23028     if test $in_tree_gas = yes; then
   23029     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
   23030   then gcc_cv_as_discriminator=yes
   23031 fi
   23032   elif test x$gcc_cv_as != x; then
   23033     $as_echo '	.text
   23034 	.file 1 "conf.c"
   23035 	.loc 1 1 0 discriminator 1' > conftest.s
   23036     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   23037   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23038   (eval $ac_try) 2>&5
   23039   ac_status=$?
   23040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23041   test $ac_status = 0; }; }
   23042     then
   23043 	gcc_cv_as_discriminator=yes
   23044     else
   23045       echo "configure: failed program was" >&5
   23046       cat conftest.s >&5
   23047     fi
   23048     rm -f conftest.o conftest.s
   23049   fi
   23050 fi
   23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
   23052 $as_echo "$gcc_cv_as_discriminator" >&6; }
   23053 if test $gcc_cv_as_discriminator = yes; then
   23054 
   23055 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
   23056 
   23057 fi
   23058 
   23059 # Thread-local storage - the check is heavily parameterized.
   23060 conftest_s=
   23061 tls_first_major=
   23062 tls_first_minor=
   23063 tls_as_opt=
   23064 case "$target" in
   23065   alpha*-*-*)
   23066     conftest_s='
   23067 	.section ".tdata","awT",@progbits
   23068 foo:	.long	25
   23069 	.text
   23070 	ldq	$27,__tls_get_addr($29)		!literal!1
   23071 	lda	$16,foo($29)			!tlsgd!1
   23072 	jsr	$26,($27),__tls_get_addr	!lituse_tlsgd!1
   23073 	ldq	$27,__tls_get_addr($29)		!literal!2
   23074 	lda	$16,foo($29)			!tlsldm!2
   23075 	jsr	$26,($27),__tls_get_addr	!lituse_tlsldm!2
   23076 	ldq	$1,foo($29)			!gotdtprel
   23077 	ldah	$2,foo($29)			!dtprelhi
   23078 	lda	$3,foo($2)			!dtprello
   23079 	lda	$4,foo($29)			!dtprel
   23080 	ldq	$1,foo($29)			!gottprel
   23081 	ldah	$2,foo($29)			!tprelhi
   23082 	lda	$3,foo($2)			!tprello
   23083 	lda	$4,foo($29)			!tprel'
   23084 	tls_first_major=2
   23085 	tls_first_minor=13
   23086 	tls_as_opt=--fatal-warnings
   23087 	;;
   23088   cris-*-*|crisv32-*-*)
   23089     conftest_s='
   23090 	.section ".tdata","awT",@progbits
   23091 x:      .long   25
   23092         .text
   23093 	move.d x:IE,$r10
   23094 	nop'
   23095 	tls_first_major=2
   23096 	tls_first_minor=20
   23097 	tls_as_opt=--fatal-warnings
   23098 	;;
   23099   frv*-*-*)
   23100     conftest_s='
   23101 	.section ".tdata","awT",@progbits
   23102 x:      .long   25
   23103         .text
   23104         call    #gettlsoff(x)'
   23105 	tls_first_major=2
   23106 	tls_first_minor=14
   23107 	;;
   23108   hppa*-*-linux* | hppa*-*-netbsd*)
   23109     conftest_s='
   23110 t1:	.reg	%r20
   23111 t2:	.reg	%r21
   23112 gp:	.reg	%r19
   23113 	.section ".tdata","awT",@progbits
   23114 foo:	.long	25
   23115 	.text
   23116 	.align	4
   23117 	addil LT%foo-$tls_gdidx$,gp
   23118 	ldo RT%foo-$tls_gdidx$(%r1),%arg0
   23119 	b __tls_get_addr
   23120 	nop
   23121 	addil LT%foo-$tls_ldidx$,gp
   23122 	b __tls_get_addr
   23123 	ldo RT%foo-$tls_ldidx$(%r1),%arg0
   23124 	addil LR%foo-$tls_dtpoff$,%ret0
   23125 	ldo RR%foo-$tls_dtpoff$(%r1),%t1
   23126 	mfctl %cr27,%t1
   23127 	addil LT%foo-$tls_ieoff$,gp
   23128 	ldw RT%foo-$tls_ieoff$(%r1),%t2
   23129 	add %t1,%t2,%t3
   23130 	mfctl %cr27,%t1
   23131 	addil LR%foo-$tls_leoff$,%t1
   23132 	ldo RR%foo-$tls_leoff$(%r1),%t2'
   23133 	tls_first_major=2
   23134 	tls_first_minor=15
   23135 	tls_as_opt=--fatal-warnings
   23136 	;;
   23137   arm*-*-*)
   23138     conftest_s='
   23139 	.section ".tdata","awT",%progbits
   23140 foo:	.long	25
   23141 	.text
   23142 .word foo(gottpoff)
   23143 .word foo(tpoff)
   23144 .word foo(tlsgd)
   23145 .word foo(tlsldm)
   23146 .word foo(tlsldo)'
   23147 	tls_first_major=2
   23148 	tls_first_minor=17
   23149 	;;
   23150   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
   23151     case "$target" in
   23152       i[34567]86-*-solaris2.*)
   23153 	on_solaris=yes
   23154 	tga_func=___tls_get_addr
   23155 	;;
   23156       x86_64-*-solaris2.1[0-9]*)
   23157 	on_solaris=yes
   23158 	tga_func=__tls_get_addr
   23159         ;;
   23160       *)
   23161 	on_solaris=no
   23162 	;;
   23163     esac
   23164     if test x$on_solaris = xyes && test x$gas_flag = xno; then
   23165       conftest_s='
   23166 	.section .tdata,"awt",@progbits'
   23167       tls_first_major=0
   23168       tls_first_minor=0
   23169 
   23170 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
   23171 
   23172     else
   23173       conftest_s='
   23174 	.section ".tdata","awT",@progbits'
   23175       tls_first_major=2
   23176       tls_first_minor=14
   23177       tls_as_opt="--fatal-warnings"
   23178     fi
   23179     conftest_s="$conftest_s
   23180 foo:	.long	25
   23181 	.text
   23182 	movl	%gs:0, %eax
   23183 	leal	foo@tlsgd(,%ebx,1), %eax
   23184 	leal	foo@tlsldm(%ebx), %eax
   23185 	leal	foo@dtpoff(%eax), %edx
   23186 	movl	foo@gottpoff(%ebx), %eax
   23187 	subl	foo@gottpoff(%ebx), %eax
   23188 	addl	foo@gotntpoff(%ebx), %eax
   23189 	movl	foo@indntpoff, %eax
   23190 	movl	\$foo@tpoff, %eax
   23191 	subl	\$foo@tpoff, %eax
   23192 	leal	foo@ntpoff(%ecx), %eax"
   23193     ;;
   23194   x86_64-*-*)
   23195     conftest_s='
   23196 	.section ".tdata","awT",@progbits
   23197 foo:	.long	25
   23198 	.text
   23199 	movq	%fs:0, %rax
   23200 	leaq	foo@TLSGD(%rip), %rdi
   23201 	leaq	foo@TLSLD(%rip), %rdi
   23202 	leaq	foo@DTPOFF(%rax), %rdx
   23203 	movq	foo@GOTTPOFF(%rip), %rax
   23204 	movq	$foo@TPOFF, %rax'
   23205 	tls_first_major=2
   23206 	tls_first_minor=14
   23207 	tls_as_opt=--fatal-warnings
   23208 	;;
   23209   ia64-*-*)
   23210     conftest_s='
   23211 	.section ".tdata","awT",@progbits
   23212 foo:	data8	25
   23213 	.text
   23214 	addl	r16 = @ltoff(@dtpmod(foo#)), gp
   23215 	addl	r17 = @ltoff(@dtprel(foo#)), gp
   23216 	addl	r18 = @ltoff(@tprel(foo#)), gp
   23217 	addl	r19 = @dtprel(foo#), gp
   23218 	adds	r21 = @dtprel(foo#), r13
   23219 	movl	r23 = @dtprel(foo#)
   23220 	addl	r20 = @tprel(foo#), gp
   23221 	adds	r22 = @tprel(foo#), r13
   23222 	movl	r24 = @tprel(foo#)'
   23223 	tls_first_major=2
   23224 	tls_first_minor=13
   23225 	tls_as_opt=--fatal-warnings
   23226 	;;
   23227   microblaze*-*-*)
   23228     conftest_s='
   23229 	.section .tdata,"awT",@progbits
   23230 x:
   23231 	.word 2
   23232 	.text
   23233 	addik r5,r20,x@TLSGD
   23234 	addik r5,r20,x@TLSLDM'
   23235 	tls_first_major=2
   23236 	tls_first_minor=20
   23237 	tls_as_opt='--fatal-warnings'
   23238 	;;
   23239   mips*-*-*)
   23240     conftest_s='
   23241 	.section .tdata,"awT",@progbits
   23242 x:
   23243 	.word 2
   23244 	.text
   23245 	addiu $4, $28, %tlsgd(x)
   23246 	addiu $4, $28, %tlsldm(x)
   23247 	lui $4, %dtprel_hi(x)
   23248 	addiu $4, $4, %dtprel_lo(x)
   23249 	lw $4, %gottprel(x)($28)
   23250 	lui $4, %tprel_hi(x)
   23251 	addiu $4, $4, %tprel_lo(x)'
   23252 	tls_first_major=2
   23253 	tls_first_minor=16
   23254 	tls_as_opt='-32 --fatal-warnings'
   23255 	;;
   23256   m68k-*-*|m5407-*-*)
   23257     conftest_s='
   23258 	.section .tdata,"awT",@progbits
   23259 x:
   23260 	.word 2
   23261 	.text
   23262 foo:
   23263 	move.l x@TLSGD(%a5),%a0
   23264 	move.l x@TLSLDM(%a5),%a0
   23265 	move.l x@TLSLDO(%a5),%a0
   23266 	move.l x@TLSIE(%a5),%a0
   23267 	move.l x@TLSLE(%a5),%a0'
   23268 	tls_first_major=2
   23269 	tls_first_minor=19
   23270 	tls_as_opt='--fatal-warnings'
   23271 	;;
   23272   aarch64*-*-*)
   23273     conftest_s='
   23274 	.section ".tdata","awT",%progbits
   23275 foo:	.long	25
   23276 	.text
   23277 	adrp  x0, :tlsgd:x
   23278 	add   x0, x0, #:tlsgd_lo12:x
   23279         bl    __tls_get_addr
   23280 	nop'
   23281 	tls_first_major=2
   23282 	tls_first_minor=20
   23283 	tls_as_opt='--fatal-warnings'
   23284 	;;
   23285   powerpc-ibm-aix*)
   23286     conftest_s='
   23287 	.extern __get_tpointer
   23288 	.toc
   23289 LC..1:
   23290 	.tc a[TC],a[TL]@le
   23291 	.csect .text[PR]
   23292 .tlstest:
   23293 	lwz 9,LC..1(2)
   23294 	bla __get_tpointer
   23295 	lwzx 3,9,3
   23296 	.globl a
   23297 	.csect a[TL],4
   23298 a:
   23299 	.space 4'
   23300 	tls_first_major=0
   23301 	tls_first_minor=0
   23302 	;;
   23303   powerpc64*-*-*)
   23304     conftest_s='
   23305 	.section ".tdata","awT",@progbits
   23306 	.align 3
   23307 ld0:	.space 8
   23308 ld1:	.space 8
   23309 x1:	.space 8
   23310 x2:	.space 8
   23311 x3:	.space 8
   23312 	.text
   23313 	addi 3,2,ld0@got@tlsgd
   23314 	bl .__tls_get_addr
   23315 	nop
   23316 	addi 3,2,ld1@toc
   23317 	bl .__tls_get_addr
   23318 	nop
   23319 	addi 3,2,x1@got@tlsld
   23320 	bl .__tls_get_addr
   23321 	nop
   23322 	addi 9,3,x1@dtprel
   23323 	bl .__tls_get_addr
   23324 	nop
   23325 	addis 9,3,x2@dtprel@ha
   23326 	addi 9,9,x2@dtprel@l
   23327 	bl .__tls_get_addr
   23328 	nop
   23329 	ld 9,x3@got@dtprel(2)
   23330 	add 9,9,3
   23331 	bl .__tls_get_addr
   23332 	nop'
   23333 	tls_first_major=2
   23334 	tls_first_minor=14
   23335 	tls_as_opt="-a64 --fatal-warnings"
   23336 	;;
   23337   powerpc*-*-*)
   23338     conftest_s='
   23339 	.section ".tdata","awT",@progbits
   23340 	.align 2
   23341 ld0:	.space 4
   23342 ld1:	.space 4
   23343 x1:	.space 4
   23344 x2:	.space 4
   23345 x3:	.space 4
   23346 	.text
   23347 	addi 3,31,ld0@got@tlsgd
   23348 	bl __tls_get_addr
   23349 	addi 3,31,x1@got@tlsld
   23350 	bl __tls_get_addr
   23351 	addi 9,3,x1@dtprel
   23352 	addis 9,3,x2@dtprel@ha
   23353 	addi 9,9,x2@dtprel@l
   23354 	lwz 9,x3@got@tprel(31)
   23355 	add 9,9,x@tls
   23356 	addi 9,2,x1@tprel
   23357 	addis 9,2,x2@tprel@ha
   23358 	addi 9,9,x2@tprel@l'
   23359 	tls_first_major=2
   23360 	tls_first_minor=14
   23361 	tls_as_opt="-a32 --fatal-warnings"
   23362 	;;
   23363   riscv*-*-*)
   23364     conftest_s='
   23365 	.section .tdata,"awT",@progbits
   23366 x:
   23367 	.word 2
   23368 	.text
   23369 	la.tls.gd a0,x
   23370 	la.tls.ie a1,x
   23371 	lui a0,%tls_ie_pcrel_hi(x)
   23372 	lw a0,%pcrel_lo(x)(a0)
   23373 	add a0,a0,tp
   23374 	lw a0,(a0)
   23375         lui a0,%tprel_hi(x)
   23376 	add a0,a0,tp,%tprel_add(x)
   23377 	lw a0,%tprel_lo(x)(a0)'
   23378 	tls_first_major=2
   23379 	tls_first_minor=21
   23380 	tls_as_opt='-m32 --fatal-warnings'
   23381 	;;
   23382   s390-*-*)
   23383     conftest_s='
   23384 	.section ".tdata","awT",@progbits
   23385 foo:	.long	25
   23386 	.text
   23387 	.long	foo@TLSGD
   23388 	.long	foo@TLSLDM
   23389 	.long	foo@DTPOFF
   23390 	.long	foo@NTPOFF
   23391 	.long	foo@GOTNTPOFF
   23392 	.long	foo@INDNTPOFF
   23393 	l	%r1,foo@GOTNTPOFF(%r12)
   23394 	l	%r1,0(%r1):tls_load:foo
   23395 	bas	%r14,0(%r1,%r13):tls_gdcall:foo
   23396 	bas	%r14,0(%r1,%r13):tls_ldcall:foo'
   23397 	tls_first_major=2
   23398 	tls_first_minor=14
   23399 	tls_as_opt="-m31 --fatal-warnings"
   23400 	;;
   23401   s390x-*-*)
   23402     conftest_s='
   23403 	.section ".tdata","awT",@progbits
   23404 foo:	.long	25
   23405 	.text
   23406 	.quad	foo@TLSGD
   23407 	.quad	foo@TLSLDM
   23408 	.quad	foo@DTPOFF
   23409 	.quad	foo@NTPOFF
   23410 	.quad	foo@GOTNTPOFF
   23411 	lg	%r1,foo@GOTNTPOFF(%r12)
   23412 	larl	%r1,foo@INDNTPOFF
   23413 	brasl	%r14,__tls_get_offset@PLT:tls_gdcall:foo
   23414 	brasl	%r14,__tls_get_offset@PLT:tls_ldcall:foo'
   23415 	tls_first_major=2
   23416 	tls_first_minor=14
   23417 	tls_as_opt="-m64 -Aesame --fatal-warnings"
   23418 	;;
   23419   sh-*-* | sh[34]-*-* | sh*l*-*-*)
   23420     conftest_s='
   23421 	.section ".tdata","awT",@progbits
   23422 foo:	.long	25
   23423 	.text
   23424 	.long	foo@TLSGD
   23425 	.long	foo@TLSLDM
   23426 	.long	foo@DTPOFF
   23427 	.long	foo@GOTTPOFF
   23428 	.long	foo@TPOFF'
   23429 	tls_first_major=2
   23430 	tls_first_minor=13
   23431 	tls_as_opt=--fatal-warnings
   23432 	;;
   23433   sparc*-*-*)
   23434     case "$target" in
   23435       sparc*-sun-solaris2.*)
   23436 	on_solaris=yes
   23437 	tga_func=__tls_get_addr
   23438 	;;
   23439       *)
   23440 	on_solaris=no
   23441 	;;
   23442     esac
   23443     if test x$on_solaris = xyes && test x$gas_flag = xno; then
   23444       conftest_s='
   23445 	.section ".tdata",#alloc,#write,#tls'
   23446 	tls_first_major=0
   23447 	tls_first_minor=0
   23448     else
   23449       conftest_s='
   23450 	.section ".tdata","awT",@progbits'
   23451 	tls_first_major=2
   23452 	tls_first_minor=14
   23453 	tls_as_opt="-32 --fatal-warnings"
   23454     fi
   23455     conftest_s="$conftest_s
   23456 foo:	.long	25
   23457 	.text
   23458 	sethi	%tgd_hi22(foo), %o0
   23459 	add	%o0, %tgd_lo10(foo), %o1
   23460 	add	%l7, %o1, %o0, %tgd_add(foo)
   23461 	call	__tls_get_addr, %tgd_call(foo)
   23462 	sethi	%tldm_hi22(foo), %l1
   23463 	add	%l1, %tldm_lo10(foo), %l2
   23464 	add	%l7, %l2, %o0, %tldm_add(foo)
   23465 	call	__tls_get_addr, %tldm_call(foo)
   23466 	sethi	%tldo_hix22(foo), %l3
   23467 	xor	%l3, %tldo_lox10(foo), %l4
   23468 	add	%o0, %l4, %l5, %tldo_add(foo)
   23469 	sethi	%tie_hi22(foo), %o3
   23470 	add	%o3, %tie_lo10(foo), %o3
   23471 	ld	[%l7 + %o3], %o2, %tie_ld(foo)
   23472 	add	%g7, %o2, %o4, %tie_add(foo)
   23473 	sethi	%tle_hix22(foo), %l1
   23474 	xor	%l1, %tle_lox10(foo), %o5
   23475 	ld	[%g7 + %o5], %o1"
   23476 	;;
   23477   tilepro*-*-*)
   23478       conftest_s='
   23479 	.section ".tdata","awT",@progbits
   23480 foo:	.long	25
   23481 	.text
   23482 	addli	r0, zero, tls_gd(foo)
   23483 	auli	r0, zero, tls_gd_ha16(foo)
   23484 	addli	r0, r0, tls_gd_lo16(foo)
   23485 	jal	__tls_get_addr
   23486 	addli	r0, zero, tls_ie(foo)
   23487 	auli	r0, r0, tls_ie_ha16(foo)
   23488 	addli	r0, r0, tls_ie_lo16(foo)'
   23489 	tls_first_major=2
   23490 	tls_first_minor=22
   23491 	tls_as_opt="--fatal-warnings"
   23492 	;;
   23493   tilegx*-*-*)
   23494       conftest_s='
   23495 	.section ".tdata","awT",@progbits
   23496 foo:	.long	25
   23497 	.text
   23498 	shl16insli r0, zero, hw0_last_tls_gd(foo)
   23499 	shl16insli r0, zero, hw1_last_tls_gd(foo)
   23500 	shl16insli r0, r0,   hw0_tls_gd(foo)
   23501 	jal	   __tls_get_addr
   23502 	shl16insli r0, zero, hw1_last_tls_ie(foo)
   23503 	shl16insli r0, r0,   hw0_tls_ie(foo)'
   23504 	tls_first_major=2
   23505 	tls_first_minor=22
   23506 	tls_as_opt="--fatal-warnings"
   23507 	;;
   23508   xtensa*-*-*)
   23509     conftest_s='
   23510 	.section ".tdata","awT",@progbits
   23511 foo:	.long	25
   23512 	.text
   23513 	movi	a8, foo@TLSFUNC
   23514 	movi	a10, foo@TLSARG
   23515 	callx8.tls a8, foo@TLSCALL'
   23516 	tls_first_major=2
   23517 	tls_first_minor=19
   23518 	;;
   23519 esac
   23520 set_have_as_tls=no
   23521 if test "x$enable_tls" = xno ; then
   23522   : # TLS explicitly disabled.
   23523 elif test "x$enable_tls" = xyes ; then
   23524   set_have_as_tls=yes # TLS explicitly enabled.
   23525 elif test -z "$tls_first_major"; then
   23526   : # If we don't have a check, assume no support.
   23527 else
   23528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
   23529 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
   23530 if test "${gcc_cv_as_tls+set}" = set; then :
   23531   $as_echo_n "(cached) " >&6
   23532 else
   23533   gcc_cv_as_tls=no
   23534     if test $in_tree_gas = yes; then
   23535     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
   23536   then gcc_cv_as_tls=yes
   23537 fi
   23538   elif test x$gcc_cv_as != x; then
   23539     $as_echo "$conftest_s" > conftest.s
   23540     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
   23541   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23542   (eval $ac_try) 2>&5
   23543   ac_status=$?
   23544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23545   test $ac_status = 0; }; }
   23546     then
   23547 	gcc_cv_as_tls=yes
   23548     else
   23549       echo "configure: failed program was" >&5
   23550       cat conftest.s >&5
   23551     fi
   23552     rm -f conftest.o conftest.s
   23553   fi
   23554 fi
   23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
   23556 $as_echo "$gcc_cv_as_tls" >&6; }
   23557 if test $gcc_cv_as_tls = yes; then
   23558   set_have_as_tls=yes
   23559 fi
   23560 fi
   23561 case "$target" in
   23562   # TLS was introduced in the Solaris 9 FCS release.  Support for GNU-style
   23563   # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
   23564   # Sun style that Sun ld and GCC don't support any longer.
   23565   *-*-solaris2.*)
   23566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
   23567 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
   23568     ld_tls_support=no
   23569     # Check ld and ld.so.1 TLS support.
   23570     if echo "$ld_ver" | grep GNU > /dev/null; then
   23571       # Assume all interesting versions of GNU ld have TLS support.
   23572       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
   23573       ld_tls_support=yes
   23574     else
   23575       case "$target" in
   23576 	# Solaris 9/x86 ld has GNU style TLS support since version 1.374.
   23577         i?86-*-solaris2.9)
   23578           min_tls_ld_vers_minor=374
   23579           ;;
   23580 	# Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
   23581         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
   23582 	  min_tls_ld_vers_minor=343
   23583           ;;
   23584       esac
   23585       if test "$ld_vers_major" -gt 1 || \
   23586         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
   23587  	ld_tls_support=yes
   23588       else
   23589         set_have_as_tls=no
   23590       fi
   23591     fi
   23592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
   23593 $as_echo "$ld_tls_support" >&6; }
   23594 
   23595     save_LIBS="$LIBS"
   23596     save_LDFLAGS="$LDFLAGS"
   23597     LIBS=
   23598     LDFLAGS=
   23599 
   23600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
   23601 $as_echo_n "checking library containing $tga_func... " >&6; }
   23602     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
   23603     # (32-bit x86) only lived in libthread, so check for that.  Keep
   23604     # set_have_as_tls if found, disable if not.
   23605     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
   23606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
   23607 $as_echo_n "checking for library containing $tga_func... " >&6; }
   23608 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
   23609   $as_echo_n "(cached) " >&6
   23610 else
   23611   ac_func_search_save_LIBS=$LIBS
   23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23613 /* end confdefs.h.  */
   23614 
   23615 /* Override any GCC internal prototype to avoid an error.
   23616    Use char because int might match the return type of a GCC
   23617    builtin and then its argument prototype would still apply.  */
   23618 #ifdef __cplusplus
   23619 extern "C"
   23620 #endif
   23621 char $tga_func ();
   23622 int
   23623 main ()
   23624 {
   23625 return $tga_func ();
   23626   ;
   23627   return 0;
   23628 }
   23629 _ACEOF
   23630 for ac_lib in '' thread; do
   23631   if test -z "$ac_lib"; then
   23632     ac_res="none required"
   23633   else
   23634     ac_res=-l$ac_lib
   23635     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   23636   fi
   23637   if ac_fn_c_try_link "$LINENO"; then :
   23638   eval "$as_ac_Search=\$ac_res"
   23639 fi
   23640 rm -f core conftest.err conftest.$ac_objext \
   23641     conftest$ac_exeext
   23642   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
   23643   break
   23644 fi
   23645 done
   23646 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
   23647 
   23648 else
   23649   eval "$as_ac_Search=no"
   23650 fi
   23651 rm conftest.$ac_ext
   23652 LIBS=$ac_func_search_save_LIBS
   23653 fi
   23654 eval ac_res=\$$as_ac_Search
   23655 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   23656 $as_echo "$ac_res" >&6; }
   23657 eval ac_res=\$$as_ac_Search
   23658 if test "$ac_res" != no; then :
   23659   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   23660 
   23661 else
   23662   set_have_as_tls=no
   23663 fi
   23664 
   23665     # Clear LIBS if we cannot support TLS.
   23666     if test $set_have_as_tls = no; then
   23667       LIBS=
   23668     fi
   23669     # Always define LIB_TLS_SPEC, even without TLS support.
   23670 
   23671 cat >>confdefs.h <<_ACEOF
   23672 #define LIB_TLS_SPEC "$LIBS"
   23673 _ACEOF
   23674 
   23675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
   23676 $as_echo "$LIBS" >&6; }
   23677 
   23678     LIBS="$save_LIBS"
   23679     LDFLAGS="$save_LDFLAGS"
   23680     ;;
   23681 esac
   23682 if test $set_have_as_tls = yes ; then
   23683 
   23684 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
   23685 
   23686 fi
   23687 
   23688 # Target-specific assembler checks.
   23689 
   23690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
   23691 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
   23692 gcc_cv_ld_static_dynamic=no
   23693 gcc_cv_ld_static_option='-Bstatic'
   23694 gcc_cv_ld_dynamic_option='-Bdynamic'
   23695 if test $in_tree_ld = yes ; then
   23696   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
   23697     gcc_cv_ld_static_dynamic=yes
   23698   fi
   23699 elif test x$gcc_cv_ld != x; then
   23700   # Check if linker supports -Bstatic/-Bdynamic option
   23701   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
   23702      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
   23703       gcc_cv_ld_static_dynamic=yes
   23704   else
   23705     case "$target" in
   23706       # AIX ld uses -b flags
   23707       *-*-aix4.[23]* | *-*-aix[5-9]*)
   23708 	gcc_cv_ld_static_dynamic=yes
   23709 	gcc_cv_ld_static_option="-bstatic"
   23710 	gcc_cv_ld_dynamic_option="-bdynamic"
   23711 	;;
   23712       # HP-UX ld uses -a flags to select between shared and archive.
   23713       *-*-hpux*)
   23714 	if test x"$gnu_ld" = xno; then
   23715 	  gcc_cv_ld_static_dynamic=yes
   23716 	  gcc_cv_ld_static_option="-aarchive_shared"
   23717 	  gcc_cv_ld_dynamic_option="-adefault"
   23718 	fi
   23719 	;;
   23720       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
   23721       *-*-solaris2*)
   23722         gcc_cv_ld_static_dynamic=yes
   23723         ;;
   23724     esac
   23725   fi
   23726 fi
   23727 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
   23728 
   23729 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
   23730 
   23731 
   23732 cat >>confdefs.h <<_ACEOF
   23733 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
   23734 _ACEOF
   23735 
   23736 
   23737 cat >>confdefs.h <<_ACEOF
   23738 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
   23739 _ACEOF
   23740 
   23741 fi
   23742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
   23743 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
   23744 
   23745 if test x"$demangler_in_ld" = xyes; then
   23746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
   23747 $as_echo_n "checking linker --demangle support... " >&6; }
   23748   gcc_cv_ld_demangle=no
   23749   if test $in_tree_ld = yes; then
   23750     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
   23751       gcc_cv_ld_demangle=yes
   23752     fi
   23753   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
   23754     # Check if the GNU linker supports --demangle option
   23755     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
   23756       gcc_cv_ld_demangle=yes
   23757     fi
   23758   fi
   23759   if test x"$gcc_cv_ld_demangle" = xyes; then
   23760 
   23761 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
   23762 
   23763   fi
   23764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
   23765 $as_echo "$gcc_cv_ld_demangle" >&6; }
   23766 fi
   23767 
   23768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
   23769 $as_echo_n "checking linker plugin support... " >&6; }
   23770 gcc_cv_lto_plugin=0
   23771 if test -f liblto_plugin.la; then
   23772   save_ld_ver="$ld_ver"
   23773   save_ld_vers_major="$ld_vers_major"
   23774   save_ld_vers_minor="$ld_vers_minor"
   23775   save_ld_is_gold="$ld_is_gold"
   23776 
   23777   ld_is_gold=no
   23778 
   23779   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
   23780     ld_ver="GNU ld"
   23781     # FIXME: ld_is_gold?
   23782     ld_vers_major="$gcc_cv_gld_major_version"
   23783     ld_vers_minor="$gcc_cv_gld_minor_version"
   23784   else
   23785     # Determine plugin linker version.
   23786     # FIXME: Partial duplicate from above, generalize.
   23787     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
   23788     if echo "$ld_ver" | grep GNU > /dev/null; then
   23789       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
   23790         ld_is_gold=yes
   23791         ld_vers=`echo $ld_ver | sed -n \
   23792     	    -e 's,^[^)]*[	 ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
   23793       else
   23794         ld_vers=`echo $ld_ver | sed -n \
   23795     	    -e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
   23796       fi
   23797       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
   23798       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
   23799     fi
   23800   fi
   23801 
   23802   # Determine plugin support.
   23803   if echo "$ld_ver" | grep GNU > /dev/null; then
   23804     # Require GNU ld or gold 2.21+ for plugin support by default.
   23805     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
   23806       gcc_cv_lto_plugin=2
   23807     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
   23808     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
   23809       gcc_cv_lto_plugin=1
   23810     fi
   23811   fi
   23812 
   23813   ld_ver="$save_ld_ver"
   23814   ld_vers_major="$save_ld_vers_major"
   23815   ld_vers_minor="$save_ld_vers_minor"
   23816   ld_is_gold="$save_ld_is_gold"
   23817 fi
   23818 
   23819 cat >>confdefs.h <<_ACEOF
   23820 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
   23821 _ACEOF
   23822 
   23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
   23824 $as_echo "$gcc_cv_lto_plugin" >&6; }
   23825 
   23826 case "$target" in
   23827 
   23828   aarch64*-*-*)
   23829     # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
   23830     # Check whether --enable-fix-cortex-a53-835769 was given.
   23831 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
   23832   enableval=$enable_fix_cortex_a53_835769;
   23833         case $enableval in
   23834           yes)
   23835             tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
   23836             ;;
   23837           no)
   23838             ;;
   23839           *)
   23840             as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
   23841   Valid choices are 'yes' and 'no'." "$LINENO" 5
   23842             ;;
   23843 
   23844         esac
   23845 
   23846 fi
   23847 
   23848   ;;
   23849   # All TARGET_ABI_OSF targets.
   23850   alpha*-*-linux* | alpha*-*-*bsd*)
   23851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
   23852 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
   23853 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
   23854   $as_echo_n "(cached) " >&6
   23855 else
   23856   gcc_cv_as_alpha_explicit_relocs=no
   23857     if test $in_tree_gas = yes; then
   23858     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
   23859   then gcc_cv_as_alpha_explicit_relocs=yes
   23860 fi
   23861   elif test x$gcc_cv_as != x; then
   23862     $as_echo '	.set nomacro
   23863 	.text
   23864 	extbl	$3, $2, $3	!lituse_bytoff!1
   23865 	ldq	$2, a($29)	!literal!1
   23866 	ldq	$4, b($29)	!literal!2
   23867 	ldq_u	$3, 0($2)	!lituse_base!1
   23868 	ldq	$27, f($29)	!literal!5
   23869 	jsr	$26, ($27), f	!lituse_jsr!5
   23870 	ldah	$29, 0($26)	!gpdisp!3
   23871 	lda	$0, c($29)	!gprel
   23872 	ldah	$1, d($29)	!gprelhigh
   23873 	lda	$1, d($1)	!gprellow
   23874 	lda	$29, 0($29)	!gpdisp!3' > conftest.s
   23875     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   23876   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23877   (eval $ac_try) 2>&5
   23878   ac_status=$?
   23879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23880   test $ac_status = 0; }; }
   23881     then
   23882 	gcc_cv_as_alpha_explicit_relocs=yes
   23883     else
   23884       echo "configure: failed program was" >&5
   23885       cat conftest.s >&5
   23886     fi
   23887     rm -f conftest.o conftest.s
   23888   fi
   23889 fi
   23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
   23891 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
   23892 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
   23893 
   23894 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
   23895 
   23896 fi
   23897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
   23898 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
   23899 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
   23900   $as_echo_n "(cached) " >&6
   23901 else
   23902   gcc_cv_as_alpha_jsrdirect_relocs=no
   23903     if test $in_tree_gas = yes; then
   23904     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
   23905   then gcc_cv_as_alpha_jsrdirect_relocs=yes
   23906 fi
   23907   elif test x$gcc_cv_as != x; then
   23908     $as_echo '	.set nomacro
   23909 	.text
   23910 	ldq	$27, a($29)	!literal!1
   23911 	jsr	$26, ($27), a	!lituse_jsrdirect!1' > conftest.s
   23912     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   23913   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23914   (eval $ac_try) 2>&5
   23915   ac_status=$?
   23916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23917   test $ac_status = 0; }; }
   23918     then
   23919 	gcc_cv_as_alpha_jsrdirect_relocs=yes
   23920     else
   23921       echo "configure: failed program was" >&5
   23922       cat conftest.s >&5
   23923     fi
   23924     rm -f conftest.o conftest.s
   23925   fi
   23926 fi
   23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
   23928 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
   23929 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
   23930 
   23931 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
   23932 
   23933 fi
   23934     ;;
   23935 
   23936   cris-*-*)
   23937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
   23938 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
   23939 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
   23940   $as_echo_n "(cached) " >&6
   23941 else
   23942   gcc_cv_as_cris_no_mul_bug=no
   23943     if test $in_tree_gas = yes; then
   23944     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
   23945   then gcc_cv_as_cris_no_mul_bug=yes
   23946 fi
   23947   elif test x$gcc_cv_as != x; then
   23948     $as_echo '.text' > conftest.s
   23949     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
   23950   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23951   (eval $ac_try) 2>&5
   23952   ac_status=$?
   23953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23954   test $ac_status = 0; }; }
   23955     then
   23956 	gcc_cv_as_cris_no_mul_bug=yes
   23957     else
   23958       echo "configure: failed program was" >&5
   23959       cat conftest.s >&5
   23960     fi
   23961     rm -f conftest.o conftest.s
   23962   fi
   23963 fi
   23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
   23965 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
   23966 if test $gcc_cv_as_cris_no_mul_bug = yes; then
   23967 
   23968 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
   23969 
   23970 fi
   23971     ;;
   23972 
   23973   sparc*-*-*)
   23974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
   23975 $as_echo_n "checking assembler for .register... " >&6; }
   23976 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
   23977   $as_echo_n "(cached) " >&6
   23978 else
   23979   gcc_cv_as_sparc_register_op=no
   23980   if test x$gcc_cv_as != x; then
   23981     $as_echo '.register %g2, #scratch' > conftest.s
   23982     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   23983   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   23984   (eval $ac_try) 2>&5
   23985   ac_status=$?
   23986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   23987   test $ac_status = 0; }; }
   23988     then
   23989 	gcc_cv_as_sparc_register_op=yes
   23990     else
   23991       echo "configure: failed program was" >&5
   23992       cat conftest.s >&5
   23993     fi
   23994     rm -f conftest.o conftest.s
   23995   fi
   23996 fi
   23997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
   23998 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
   23999 if test $gcc_cv_as_sparc_register_op = yes; then
   24000 
   24001 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
   24002 
   24003 fi
   24004 
   24005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
   24006 $as_echo_n "checking assembler for #nobits... " >&6; }
   24007 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
   24008   $as_echo_n "(cached) " >&6
   24009 else
   24010   gcc_cv_as_sparc_nobits=no
   24011   if test x$gcc_cv_as != x; then
   24012     $as_echo '.section "nobits",#alloc,#write,#nobits
   24013        .section "progbits",#alloc,#write,#progbits' > conftest.s
   24014     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24015   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24016   (eval $ac_try) 2>&5
   24017   ac_status=$?
   24018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24019   test $ac_status = 0; }; }
   24020     then
   24021 	gcc_cv_as_sparc_nobits=yes
   24022     else
   24023       echo "configure: failed program was" >&5
   24024       cat conftest.s >&5
   24025     fi
   24026     rm -f conftest.o conftest.s
   24027   fi
   24028 fi
   24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
   24030 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
   24031 
   24032 
   24033 cat >>confdefs.h <<_ACEOF
   24034 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
   24035 _ACEOF
   24036 
   24037 
   24038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
   24039 $as_echo_n "checking assembler for -relax option... " >&6; }
   24040 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
   24041   $as_echo_n "(cached) " >&6
   24042 else
   24043   gcc_cv_as_sparc_relax=no
   24044   if test x$gcc_cv_as != x; then
   24045     $as_echo '.text' > conftest.s
   24046     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
   24047   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24048   (eval $ac_try) 2>&5
   24049   ac_status=$?
   24050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24051   test $ac_status = 0; }; }
   24052     then
   24053 	gcc_cv_as_sparc_relax=yes
   24054     else
   24055       echo "configure: failed program was" >&5
   24056       cat conftest.s >&5
   24057     fi
   24058     rm -f conftest.o conftest.s
   24059   fi
   24060 fi
   24061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
   24062 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
   24063 if test $gcc_cv_as_sparc_relax = yes; then
   24064 
   24065 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
   24066 
   24067 fi
   24068 
   24069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
   24070 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
   24071 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
   24072   $as_echo_n "(cached) " >&6
   24073 else
   24074   gcc_cv_as_sparc_gotdata_op=no
   24075   if test x$gcc_cv_as != x; then
   24076     $as_echo '.text
   24077 .align 4
   24078 foo:
   24079 	nop
   24080 bar:
   24081 	sethi %gdop_hix22(foo), %g1
   24082 	xor    %g1, %gdop_lox10(foo), %g1
   24083 	ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
   24084     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
   24085   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24086   (eval $ac_try) 2>&5
   24087   ac_status=$?
   24088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24089   test $ac_status = 0; }; }
   24090     then
   24091 	if test x$gcc_cv_ld != x \
   24092        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
   24093          if test x$gcc_cv_objdump != x; then
   24094            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
   24095               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
   24096 	       gcc_cv_as_sparc_gotdata_op=no
   24097            else
   24098 	       gcc_cv_as_sparc_gotdata_op=yes
   24099            fi
   24100          fi
   24101        fi
   24102        rm -f conftest
   24103     else
   24104       echo "configure: failed program was" >&5
   24105       cat conftest.s >&5
   24106     fi
   24107     rm -f conftest.o conftest.s
   24108   fi
   24109 fi
   24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
   24111 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
   24112 if test $gcc_cv_as_sparc_gotdata_op = yes; then
   24113 
   24114 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
   24115 
   24116 fi
   24117 
   24118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
   24119 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
   24120 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
   24121   $as_echo_n "(cached) " >&6
   24122 else
   24123   gcc_cv_as_sparc_ua_pcrel=no
   24124   if test x$gcc_cv_as != x; then
   24125     $as_echo '.text
   24126 foo:
   24127 	nop
   24128 .data
   24129 .align 4
   24130 .byte 0
   24131 .uaword %r_disp32(foo)' > conftest.s
   24132     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
   24133   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24134   (eval $ac_try) 2>&5
   24135   ac_status=$?
   24136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24137   test $ac_status = 0; }; }
   24138     then
   24139 	if test x$gcc_cv_ld != x \
   24140        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
   24141 	 gcc_cv_as_sparc_ua_pcrel=yes
   24142        fi
   24143        rm -f conftest
   24144     else
   24145       echo "configure: failed program was" >&5
   24146       cat conftest.s >&5
   24147     fi
   24148     rm -f conftest.o conftest.s
   24149   fi
   24150 fi
   24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
   24152 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
   24153 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
   24154 
   24155 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
   24156 
   24157 
   24158       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
   24159 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
   24160 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
   24161   $as_echo_n "(cached) " >&6
   24162 else
   24163   gcc_cv_as_sparc_ua_pcrel_hidden=no
   24164   if test x$gcc_cv_as != x; then
   24165     $as_echo '.data
   24166 .align 4
   24167 .byte 0x31
   24168 .uaword %r_disp32(foo)
   24169 .byte 0x32, 0x33, 0x34
   24170 .global foo
   24171 .hidden foo
   24172 foo:
   24173 .skip 4' > conftest.s
   24174     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
   24175   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24176   (eval $ac_try) 2>&5
   24177   ac_status=$?
   24178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24179   test $ac_status = 0; }; }
   24180     then
   24181 	if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
   24182 	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
   24183 	 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
   24184 	    | grep ' 31000000 07323334' > /dev/null 2>&1; then
   24185 	    if $gcc_cv_objdump -R conftest 2> /dev/null \
   24186 	       | grep 'DISP32' > /dev/null 2>&1; then
   24187 		:
   24188 	    else
   24189 		gcc_cv_as_sparc_ua_pcrel_hidden=yes
   24190 	    fi
   24191 	 fi
   24192 	 rm -f conftest
   24193     else
   24194       echo "configure: failed program was" >&5
   24195       cat conftest.s >&5
   24196     fi
   24197     rm -f conftest.o conftest.s
   24198   fi
   24199 fi
   24200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
   24201 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
   24202 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
   24203 
   24204 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
   24205 
   24206 fi
   24207 
   24208 fi # unaligned pcrel relocs
   24209 
   24210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
   24211 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
   24212 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
   24213   $as_echo_n "(cached) " >&6
   24214 else
   24215   gcc_cv_as_sparc_offsetable_lo10=no
   24216   if test x$gcc_cv_as != x; then
   24217     $as_echo '.text
   24218 	or %g1, %lo(ab) + 12, %g1
   24219 	or %g1, %lo(ab + 12), %g1' > conftest.s
   24220     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
   24221   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24222   (eval $ac_try) 2>&5
   24223   ac_status=$?
   24224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24225   test $ac_status = 0; }; }
   24226     then
   24227 	if test x$gcc_cv_objdump != x \
   24228        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
   24229           | grep ' 82106000 82106000' > /dev/null 2>&1; then
   24230 	 gcc_cv_as_sparc_offsetable_lo10=yes
   24231        fi
   24232     else
   24233       echo "configure: failed program was" >&5
   24234       cat conftest.s >&5
   24235     fi
   24236     rm -f conftest.o conftest.s
   24237   fi
   24238 fi
   24239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
   24240 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
   24241 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
   24242 
   24243 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
   24244 
   24245 fi
   24246 
   24247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
   24248 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
   24249 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
   24250   $as_echo_n "(cached) " >&6
   24251 else
   24252   gcc_cv_as_sparc_fmaf=no
   24253   if test x$gcc_cv_as != x; then
   24254     $as_echo '.text
   24255        .register %g2, #scratch
   24256        .register %g3, #scratch
   24257        .align 4
   24258        fmaddd %f0, %f2, %f4, %f6
   24259        addxccc %g1, %g2, %g3
   24260        fsrl32 %f2, %f4, %f8
   24261        fnaddd %f10, %f12, %f14' > conftest.s
   24262     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
   24263   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24264   (eval $ac_try) 2>&5
   24265   ac_status=$?
   24266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24267   test $ac_status = 0; }; }
   24268     then
   24269 	gcc_cv_as_sparc_fmaf=yes
   24270     else
   24271       echo "configure: failed program was" >&5
   24272       cat conftest.s >&5
   24273     fi
   24274     rm -f conftest.o conftest.s
   24275   fi
   24276 fi
   24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
   24278 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
   24279 if test $gcc_cv_as_sparc_fmaf = yes; then
   24280 
   24281 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
   24282 
   24283 fi
   24284 
   24285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
   24286 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
   24287 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
   24288   $as_echo_n "(cached) " >&6
   24289 else
   24290   gcc_cv_as_sparc_sparc4=no
   24291   if test x$gcc_cv_as != x; then
   24292     $as_echo '.text
   24293        .register %g2, #scratch
   24294        .register %g3, #scratch
   24295        .align 4
   24296        cxbe %g2, %g3, 1f
   24297 1:     cwbneg %g2, %g3, 1f
   24298 1:     sha1
   24299        md5
   24300        aes_kexpand0 %f4, %f6, %f8
   24301        des_round %f38, %f40, %f42, %f44
   24302        camellia_f %f54, %f56, %f58, %f60
   24303        kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
   24304     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
   24305   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24306   (eval $ac_try) 2>&5
   24307   ac_status=$?
   24308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24309   test $ac_status = 0; }; }
   24310     then
   24311 	gcc_cv_as_sparc_sparc4=yes
   24312     else
   24313       echo "configure: failed program was" >&5
   24314       cat conftest.s >&5
   24315     fi
   24316     rm -f conftest.o conftest.s
   24317   fi
   24318 fi
   24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
   24320 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
   24321 if test $gcc_cv_as_sparc_sparc4 = yes; then
   24322 
   24323 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
   24324 
   24325 fi
   24326 
   24327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
   24328 $as_echo_n "checking assembler for LEON instructions... " >&6; }
   24329 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
   24330   $as_echo_n "(cached) " >&6
   24331 else
   24332   gcc_cv_as_sparc_leon=no
   24333   if test x$gcc_cv_as != x; then
   24334     $as_echo '.text
   24335        .register %g2, #scratch
   24336        .register %g3, #scratch
   24337        .align 4
   24338        smac %g2, %g3, %g1
   24339        umac %g2, %g3, %g1
   24340        casa [%g2] 0xb, %g3, %g1' > conftest.s
   24341     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
   24342   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24343   (eval $ac_try) 2>&5
   24344   ac_status=$?
   24345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24346   test $ac_status = 0; }; }
   24347     then
   24348 	gcc_cv_as_sparc_leon=yes
   24349     else
   24350       echo "configure: failed program was" >&5
   24351       cat conftest.s >&5
   24352     fi
   24353     rm -f conftest.o conftest.s
   24354   fi
   24355 fi
   24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
   24357 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
   24358 if test $gcc_cv_as_sparc_leon = yes; then
   24359 
   24360 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
   24361 
   24362 fi
   24363     ;;
   24364 
   24365   i[34567]86-*-* | x86_64-*-*)
   24366     case $target_os in
   24367       cygwin*)
   24368 	# Full C++ conformance when using a shared libstdc++-v3 requires some
   24369 	# support from the Cygwin DLL, which in more recent versions exports
   24370 	# wrappers to aid in interposing and redirecting operators new, delete,
   24371 	# etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
   24372 	# are configuring for a version of Cygwin that exports the wrappers.
   24373 	if test x$host = x$target; then
   24374 	  ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
   24375 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
   24376   gcc_ac_cygwin_dll_wrappers=yes
   24377 else
   24378   gcc_ac_cygwin_dll_wrappers=no
   24379 fi
   24380 
   24381 	else
   24382 	  # Can't check presence of libc functions during cross-compile, so
   24383 	  # we just have to assume we're building for an up-to-date target.
   24384 	  gcc_ac_cygwin_dll_wrappers=yes
   24385 	fi
   24386 
   24387 cat >>confdefs.h <<_ACEOF
   24388 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
   24389 _ACEOF
   24390 
   24391     esac
   24392     case $target_os in
   24393       cygwin* | pe | mingw32* | interix*)
   24394 	# Recent binutils allows the three-operand form of ".comm" on PE.  This
   24395 	# definition is used unconditionally to initialise the default state of
   24396 	# the target option variable that governs usage of the feature.
   24397 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
   24398 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
   24399 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
   24400   $as_echo_n "(cached) " >&6
   24401 else
   24402   gcc_cv_as_comm_has_align=no
   24403     if test $in_tree_gas = yes; then
   24404     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
   24405   then gcc_cv_as_comm_has_align=yes
   24406 fi
   24407   elif test x$gcc_cv_as != x; then
   24408     $as_echo '.comm foo,1,32' > conftest.s
   24409     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24410   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24411   (eval $ac_try) 2>&5
   24412   ac_status=$?
   24413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24414   test $ac_status = 0; }; }
   24415     then
   24416 	gcc_cv_as_comm_has_align=yes
   24417     else
   24418       echo "configure: failed program was" >&5
   24419       cat conftest.s >&5
   24420     fi
   24421     rm -f conftest.o conftest.s
   24422   fi
   24423 fi
   24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
   24425 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
   24426 
   24427 
   24428 cat >>confdefs.h <<_ACEOF
   24429 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
   24430 _ACEOF
   24431 
   24432 	# Used for DWARF 2 in PE
   24433 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
   24434 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
   24435 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
   24436   $as_echo_n "(cached) " >&6
   24437 else
   24438   gcc_cv_as_ix86_pe_secrel32=no
   24439     if test $in_tree_gas = yes; then
   24440     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
   24441   then gcc_cv_as_ix86_pe_secrel32=yes
   24442 fi
   24443   elif test x$gcc_cv_as != x; then
   24444     $as_echo '.text
   24445 foo:	nop
   24446 .data
   24447 	.secrel32 foo' > conftest.s
   24448     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24449   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24450   (eval $ac_try) 2>&5
   24451   ac_status=$?
   24452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24453   test $ac_status = 0; }; }
   24454     then
   24455 	if test x$gcc_cv_ld != x \
   24456 	   && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
   24457 	     gcc_cv_as_ix86_pe_secrel32=yes
   24458 	   fi
   24459 	   rm -f conftest
   24460     else
   24461       echo "configure: failed program was" >&5
   24462       cat conftest.s >&5
   24463     fi
   24464     rm -f conftest.o conftest.s
   24465   fi
   24466 fi
   24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
   24468 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
   24469 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
   24470 
   24471 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
   24472 
   24473 fi
   24474 	# Test if the assembler supports the extended form of the .section
   24475 	# directive that specifies section alignment.  LTO support uses this,
   24476 	# but normally only after installation, so we warn but don't fail the
   24477 	# configure if LTO is enabled but the assembler does not support it.
   24478 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
   24479 $as_echo_n "checking assembler for .section with alignment... " >&6; }
   24480 if test "${gcc_cv_as_section_has_align+set}" = set; then :
   24481   $as_echo_n "(cached) " >&6
   24482 else
   24483   gcc_cv_as_section_has_align=no
   24484     if test $in_tree_gas = yes; then
   24485     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
   24486   then gcc_cv_as_section_has_align=yes
   24487 fi
   24488   elif test x$gcc_cv_as != x; then
   24489     $as_echo '.section lto_test,"dr0"' > conftest.s
   24490     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
   24491   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24492   (eval $ac_try) 2>&5
   24493   ac_status=$?
   24494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24495   test $ac_status = 0; }; }
   24496     then
   24497 	gcc_cv_as_section_has_align=yes
   24498     else
   24499       echo "configure: failed program was" >&5
   24500       cat conftest.s >&5
   24501     fi
   24502     rm -f conftest.o conftest.s
   24503   fi
   24504 fi
   24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
   24506 $as_echo "$gcc_cv_as_section_has_align" >&6; }
   24507 
   24508 	if test x$gcc_cv_as_section_has_align != xyes; then
   24509 	  case ",$enable_languages," in
   24510 	    *,lto,*)
   24511 	      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
   24512 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
   24513 	      ;;
   24514 	  esac
   24515 	fi
   24516 	# Test if the assembler supports the section flag 'e' for specifying
   24517 	# an excluded section.
   24518 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
   24519 $as_echo_n "checking assembler for .section with e... " >&6; }
   24520 if test "${gcc_cv_as_section_has_e+set}" = set; then :
   24521   $as_echo_n "(cached) " >&6
   24522 else
   24523   gcc_cv_as_section_has_e=no
   24524     if test $in_tree_gas = yes; then
   24525     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
   24526   then gcc_cv_as_section_has_e=yes
   24527 fi
   24528   elif test x$gcc_cv_as != x; then
   24529     $as_echo '.section foo1,"e"
   24530 .byte 0,0,0,0' > conftest.s
   24531     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24532   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24533   (eval $ac_try) 2>&5
   24534   ac_status=$?
   24535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24536   test $ac_status = 0; }; }
   24537     then
   24538 	gcc_cv_as_section_has_e=yes
   24539     else
   24540       echo "configure: failed program was" >&5
   24541       cat conftest.s >&5
   24542     fi
   24543     rm -f conftest.o conftest.s
   24544   fi
   24545 fi
   24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
   24547 $as_echo "$gcc_cv_as_section_has_e" >&6; }
   24548 
   24549 
   24550 cat >>confdefs.h <<_ACEOF
   24551 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
   24552 _ACEOF
   24553 
   24554 	;;
   24555     esac
   24556 
   24557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
   24558 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
   24559 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
   24560   $as_echo_n "(cached) " >&6
   24561 else
   24562   gcc_cv_as_ix86_filds=no
   24563   if test x$gcc_cv_as != x; then
   24564     $as_echo 'filds mem; fists mem' > conftest.s
   24565     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24566   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24567   (eval $ac_try) 2>&5
   24568   ac_status=$?
   24569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24570   test $ac_status = 0; }; }
   24571     then
   24572 	gcc_cv_as_ix86_filds=yes
   24573     else
   24574       echo "configure: failed program was" >&5
   24575       cat conftest.s >&5
   24576     fi
   24577     rm -f conftest.o conftest.s
   24578   fi
   24579 fi
   24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
   24581 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
   24582 if test $gcc_cv_as_ix86_filds = yes; then
   24583 
   24584 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
   24585 
   24586 fi
   24587 
   24588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
   24589 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
   24590 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
   24591   $as_echo_n "(cached) " >&6
   24592 else
   24593   gcc_cv_as_ix86_fildq=no
   24594   if test x$gcc_cv_as != x; then
   24595     $as_echo 'fildq mem; fistpq mem' > conftest.s
   24596     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24597   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24598   (eval $ac_try) 2>&5
   24599   ac_status=$?
   24600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24601   test $ac_status = 0; }; }
   24602     then
   24603 	gcc_cv_as_ix86_fildq=yes
   24604     else
   24605       echo "configure: failed program was" >&5
   24606       cat conftest.s >&5
   24607     fi
   24608     rm -f conftest.o conftest.s
   24609   fi
   24610 fi
   24611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
   24612 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
   24613 if test $gcc_cv_as_ix86_fildq = yes; then
   24614 
   24615 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
   24616 
   24617 fi
   24618 
   24619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
   24620 $as_echo_n "checking assembler for cmov syntax... " >&6; }
   24621 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
   24622   $as_echo_n "(cached) " >&6
   24623 else
   24624   gcc_cv_as_ix86_cmov_sun_syntax=no
   24625   if test x$gcc_cv_as != x; then
   24626     $as_echo 'cmovl.l %edx, %eax' > conftest.s
   24627     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24628   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24629   (eval $ac_try) 2>&5
   24630   ac_status=$?
   24631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24632   test $ac_status = 0; }; }
   24633     then
   24634 	gcc_cv_as_ix86_cmov_sun_syntax=yes
   24635     else
   24636       echo "configure: failed program was" >&5
   24637       cat conftest.s >&5
   24638     fi
   24639     rm -f conftest.o conftest.s
   24640   fi
   24641 fi
   24642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
   24643 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
   24644 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
   24645 
   24646 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
   24647 
   24648 fi
   24649 
   24650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
   24651 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
   24652 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
   24653   $as_echo_n "(cached) " >&6
   24654 else
   24655   gcc_cv_as_ix86_ffreep=no
   24656   if test x$gcc_cv_as != x; then
   24657     $as_echo 'ffreep %st(1)' > conftest.s
   24658     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24659   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24660   (eval $ac_try) 2>&5
   24661   ac_status=$?
   24662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24663   test $ac_status = 0; }; }
   24664     then
   24665 	gcc_cv_as_ix86_ffreep=yes
   24666     else
   24667       echo "configure: failed program was" >&5
   24668       cat conftest.s >&5
   24669     fi
   24670     rm -f conftest.o conftest.s
   24671   fi
   24672 fi
   24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
   24674 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
   24675 if test $gcc_cv_as_ix86_ffreep = yes; then
   24676 
   24677 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
   24678 
   24679 fi
   24680 
   24681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
   24682 $as_echo_n "checking assembler for .quad directive... " >&6; }
   24683 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
   24684   $as_echo_n "(cached) " >&6
   24685 else
   24686   gcc_cv_as_ix86_quad=no
   24687   if test x$gcc_cv_as != x; then
   24688     $as_echo '.quad 0' > conftest.s
   24689     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24690   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24691   (eval $ac_try) 2>&5
   24692   ac_status=$?
   24693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24694   test $ac_status = 0; }; }
   24695     then
   24696 	gcc_cv_as_ix86_quad=yes
   24697     else
   24698       echo "configure: failed program was" >&5
   24699       cat conftest.s >&5
   24700     fi
   24701     rm -f conftest.o conftest.s
   24702   fi
   24703 fi
   24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
   24705 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
   24706 if test $gcc_cv_as_ix86_quad = yes; then
   24707 
   24708 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
   24709 
   24710 fi
   24711 
   24712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
   24713 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
   24714 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
   24715   $as_echo_n "(cached) " >&6
   24716 else
   24717   gcc_cv_as_ix86_sahf=no
   24718   if test x$gcc_cv_as != x; then
   24719     $as_echo '.code64
   24720        sahf' > conftest.s
   24721     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24722   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24723   (eval $ac_try) 2>&5
   24724   ac_status=$?
   24725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24726   test $ac_status = 0; }; }
   24727     then
   24728 	gcc_cv_as_ix86_sahf=yes
   24729     else
   24730       echo "configure: failed program was" >&5
   24731       cat conftest.s >&5
   24732     fi
   24733     rm -f conftest.o conftest.s
   24734   fi
   24735 fi
   24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
   24737 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
   24738 if test $gcc_cv_as_ix86_sahf = yes; then
   24739 
   24740 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
   24741 
   24742 fi
   24743 
   24744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
   24745 $as_echo_n "checking assembler for hle prefixes... " >&6; }
   24746 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
   24747   $as_echo_n "(cached) " >&6
   24748 else
   24749   gcc_cv_as_ix86_hle=no
   24750   if test x$gcc_cv_as != x; then
   24751     $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
   24752     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24753   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24754   (eval $ac_try) 2>&5
   24755   ac_status=$?
   24756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24757   test $ac_status = 0; }; }
   24758     then
   24759 	gcc_cv_as_ix86_hle=yes
   24760     else
   24761       echo "configure: failed program was" >&5
   24762       cat conftest.s >&5
   24763     fi
   24764     rm -f conftest.o conftest.s
   24765   fi
   24766 fi
   24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
   24768 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
   24769 if test $gcc_cv_as_ix86_hle = yes; then
   24770 
   24771 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
   24772 
   24773 fi
   24774 
   24775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
   24776 $as_echo_n "checking assembler for swap suffix... " >&6; }
   24777 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
   24778   $as_echo_n "(cached) " >&6
   24779 else
   24780   gcc_cv_as_ix86_swap=no
   24781   if test x$gcc_cv_as != x; then
   24782     $as_echo 'movl.s %esp, %ebp' > conftest.s
   24783     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24784   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24785   (eval $ac_try) 2>&5
   24786   ac_status=$?
   24787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24788   test $ac_status = 0; }; }
   24789     then
   24790 	gcc_cv_as_ix86_swap=yes
   24791     else
   24792       echo "configure: failed program was" >&5
   24793       cat conftest.s >&5
   24794     fi
   24795     rm -f conftest.o conftest.s
   24796   fi
   24797 fi
   24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
   24799 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
   24800 if test $gcc_cv_as_ix86_swap = yes; then
   24801 
   24802 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
   24803 
   24804 fi
   24805 
   24806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
   24807 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
   24808 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
   24809   $as_echo_n "(cached) " >&6
   24810 else
   24811   gcc_cv_as_ix86_diff_sect_delta=no
   24812   if test x$gcc_cv_as != x; then
   24813     $as_echo '.section .rodata
   24814 .L1:
   24815         .long .L2-.L1
   24816         .long .L3-.L1
   24817         .text
   24818 .L3:    nop
   24819 .L2:    nop' > conftest.s
   24820     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24821   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24822   (eval $ac_try) 2>&5
   24823   ac_status=$?
   24824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24825   test $ac_status = 0; }; }
   24826     then
   24827 	gcc_cv_as_ix86_diff_sect_delta=yes
   24828     else
   24829       echo "configure: failed program was" >&5
   24830       cat conftest.s >&5
   24831     fi
   24832     rm -f conftest.o conftest.s
   24833   fi
   24834 fi
   24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
   24836 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
   24837 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
   24838 
   24839 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
   24840 
   24841 fi
   24842 
   24843     # These two are used unconditionally by i386.[ch]; it is to be defined
   24844     # to 1 if the feature is present, 0 otherwise.
   24845     as_ix86_gotoff_in_data_opt=
   24846     if test x$gas = xyes; then
   24847       as_ix86_gotoff_in_data_opt="--32"
   24848     fi
   24849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
   24850 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
   24851 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
   24852   $as_echo_n "(cached) " >&6
   24853 else
   24854   gcc_cv_as_ix86_gotoff_in_data=no
   24855     if test $in_tree_gas = yes; then
   24856     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
   24857   then gcc_cv_as_ix86_gotoff_in_data=yes
   24858 fi
   24859   elif test x$gcc_cv_as != x; then
   24860     $as_echo '	.text
   24861 .L0:
   24862 	nop
   24863 	.data
   24864 	.long .L0@GOTOFF' > conftest.s
   24865     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
   24866   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24867   (eval $ac_try) 2>&5
   24868   ac_status=$?
   24869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24870   test $ac_status = 0; }; }
   24871     then
   24872 	gcc_cv_as_ix86_gotoff_in_data=yes
   24873     else
   24874       echo "configure: failed program was" >&5
   24875       cat conftest.s >&5
   24876     fi
   24877     rm -f conftest.o conftest.s
   24878   fi
   24879 fi
   24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
   24881 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
   24882 
   24883 
   24884 cat >>confdefs.h <<_ACEOF
   24885 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
   24886 _ACEOF
   24887 
   24888 
   24889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
   24890 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
   24891 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
   24892   $as_echo_n "(cached) " >&6
   24893 else
   24894   gcc_cv_as_ix86_rep_lock_prefix=no
   24895   if test x$gcc_cv_as != x; then
   24896     $as_echo 'rep movsl
   24897 	 rep ret
   24898 	 rep nop
   24899 	 rep bsf %ecx, %eax
   24900 	 rep bsr %ecx, %eax
   24901 	 lock addl %edi, (%eax,%esi)
   24902 	 lock orl $0, (%esp)' > conftest.s
   24903     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24904   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24905   (eval $ac_try) 2>&5
   24906   ac_status=$?
   24907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24908   test $ac_status = 0; }; }
   24909     then
   24910 	gcc_cv_as_ix86_rep_lock_prefix=yes
   24911     else
   24912       echo "configure: failed program was" >&5
   24913       cat conftest.s >&5
   24914     fi
   24915     rm -f conftest.o conftest.s
   24916   fi
   24917 fi
   24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
   24919 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
   24920 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
   24921 
   24922 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
   24923 
   24924 fi
   24925 
   24926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
   24927 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
   24928 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
   24929   $as_echo_n "(cached) " >&6
   24930 else
   24931   gcc_cv_as_ix86_ud2=no
   24932   if test x$gcc_cv_as != x; then
   24933     $as_echo 'ud2' > conftest.s
   24934     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24935   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24936   (eval $ac_try) 2>&5
   24937   ac_status=$?
   24938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24939   test $ac_status = 0; }; }
   24940     then
   24941 	gcc_cv_as_ix86_ud2=yes
   24942     else
   24943       echo "configure: failed program was" >&5
   24944       cat conftest.s >&5
   24945     fi
   24946     rm -f conftest.o conftest.s
   24947   fi
   24948 fi
   24949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
   24950 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
   24951 if test $gcc_cv_as_ix86_ud2 = yes; then
   24952 
   24953 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
   24954 
   24955 fi
   24956 
   24957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
   24958 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
   24959 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
   24960   $as_echo_n "(cached) " >&6
   24961 else
   24962   gcc_cv_as_ix86_tlsgdplt=no
   24963   if test x$gcc_cv_as != x; then
   24964     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
   24965     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   24966   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   24967   (eval $ac_try) 2>&5
   24968   ac_status=$?
   24969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   24970   test $ac_status = 0; }; }
   24971     then
   24972 	if test x$gcc_cv_ld != x \
   24973 	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
   24974 	   gcc_cv_as_ix86_tlsgdplt=yes
   24975 	 fi
   24976 	 rm -f conftest
   24977     else
   24978       echo "configure: failed program was" >&5
   24979       cat conftest.s >&5
   24980     fi
   24981     rm -f conftest.o conftest.s
   24982   fi
   24983 fi
   24984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
   24985 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
   24986 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
   24987 
   24988 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
   24989 
   24990 fi
   24991 
   24992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
   24993 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
   24994 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
   24995   $as_echo_n "(cached) " >&6
   24996 else
   24997   gcc_cv_as_ix86_tlsldmplt=no
   24998   if test x$gcc_cv_as != x; then
   24999     $as_echo 'tls_ld:
   25000 	 call    tls_ld@tlsldmplt' > conftest.s
   25001     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25002   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25003   (eval $ac_try) 2>&5
   25004   ac_status=$?
   25005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25006   test $ac_status = 0; }; }
   25007     then
   25008 	if test x$gcc_cv_ld != x \
   25009 	 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
   25010 	   gcc_cv_as_ix86_tlsldmplt=yes
   25011 	 fi
   25012 	 rm -f conftest
   25013     else
   25014       echo "configure: failed program was" >&5
   25015       cat conftest.s >&5
   25016     fi
   25017     rm -f conftest.o conftest.s
   25018   fi
   25019 fi
   25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
   25021 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
   25022 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
   25023 
   25024 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
   25025 
   25026 fi
   25027 
   25028     ;;
   25029 
   25030   ia64*-*-*)
   25031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
   25032 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
   25033 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
   25034   $as_echo_n "(cached) " >&6
   25035 else
   25036   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
   25037     if test $in_tree_gas = yes; then
   25038     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
   25039   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
   25040 fi
   25041   elif test x$gcc_cv_as != x; then
   25042     $as_echo '	.text
   25043 	addl r15 = @ltoffx(x#), gp
   25044 	;;
   25045 	ld8.mov r16 = [r15], x#' > conftest.s
   25046     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25047   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25048   (eval $ac_try) 2>&5
   25049   ac_status=$?
   25050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25051   test $ac_status = 0; }; }
   25052     then
   25053 	gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
   25054     else
   25055       echo "configure: failed program was" >&5
   25056       cat conftest.s >&5
   25057     fi
   25058     rm -f conftest.o conftest.s
   25059   fi
   25060 fi
   25061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
   25062 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
   25063 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
   25064 
   25065 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
   25066 
   25067 fi
   25068 
   25069     ;;
   25070 
   25071   powerpc*-*-*)
   25072     case $target in
   25073       *-*-aix*) conftest_s='	.machine "pwr5"
   25074 	.csect .text[PR]
   25075 	mfcr 3,128';;
   25076       *-*-darwin*)
   25077 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
   25078 $as_echo_n "checking assembler for .machine directive support... " >&6; }
   25079 if test "${gcc_cv_as_machine_directive+set}" = set; then :
   25080   $as_echo_n "(cached) " >&6
   25081 else
   25082   gcc_cv_as_machine_directive=no
   25083   if test x$gcc_cv_as != x; then
   25084     $as_echo '	.machine ppc7400' > conftest.s
   25085     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25086   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25087   (eval $ac_try) 2>&5
   25088   ac_status=$?
   25089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25090   test $ac_status = 0; }; }
   25091     then
   25092 	gcc_cv_as_machine_directive=yes
   25093     else
   25094       echo "configure: failed program was" >&5
   25095       cat conftest.s >&5
   25096     fi
   25097     rm -f conftest.o conftest.s
   25098   fi
   25099 fi
   25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
   25101 $as_echo "$gcc_cv_as_machine_directive" >&6; }
   25102 
   25103 	if test x$gcc_cv_as_machine_directive != xyes; then
   25104 	  echo "*** This target requires an assembler supporting \".machine\"" >&2
   25105 	  echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
   25106 	  test x$build = x$target && exit 1
   25107 	fi
   25108 	conftest_s='	.text
   25109 	mfcr r3,128';;
   25110       *) conftest_s='	.machine power4
   25111 	.text
   25112 	mfcr 3,128';;
   25113     esac
   25114 
   25115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
   25116 $as_echo_n "checking assembler for mfcr field support... " >&6; }
   25117 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
   25118   $as_echo_n "(cached) " >&6
   25119 else
   25120   gcc_cv_as_powerpc_mfcrf=no
   25121     if test $in_tree_gas = yes; then
   25122     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
   25123   then gcc_cv_as_powerpc_mfcrf=yes
   25124 fi
   25125   elif test x$gcc_cv_as != x; then
   25126     $as_echo "$conftest_s" > conftest.s
   25127     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25128   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25129   (eval $ac_try) 2>&5
   25130   ac_status=$?
   25131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25132   test $ac_status = 0; }; }
   25133     then
   25134 	gcc_cv_as_powerpc_mfcrf=yes
   25135     else
   25136       echo "configure: failed program was" >&5
   25137       cat conftest.s >&5
   25138     fi
   25139     rm -f conftest.o conftest.s
   25140   fi
   25141 fi
   25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
   25143 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
   25144 if test $gcc_cv_as_powerpc_mfcrf = yes; then
   25145 
   25146 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
   25147 
   25148 fi
   25149 
   25150     case $target in
   25151       *-*-aix*) conftest_s='	.machine "pwr5"
   25152 	.csect .text[PR]
   25153 	popcntb 3,3';;
   25154       *) conftest_s='	.machine power5
   25155 	.text
   25156 	popcntb 3,3';;
   25157     esac
   25158 
   25159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
   25160 $as_echo_n "checking assembler for popcntb support... " >&6; }
   25161 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
   25162   $as_echo_n "(cached) " >&6
   25163 else
   25164   gcc_cv_as_powerpc_popcntb=no
   25165     if test $in_tree_gas = yes; then
   25166     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
   25167   then gcc_cv_as_powerpc_popcntb=yes
   25168 fi
   25169   elif test x$gcc_cv_as != x; then
   25170     $as_echo "$conftest_s" > conftest.s
   25171     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25172   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25173   (eval $ac_try) 2>&5
   25174   ac_status=$?
   25175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25176   test $ac_status = 0; }; }
   25177     then
   25178 	gcc_cv_as_powerpc_popcntb=yes
   25179     else
   25180       echo "configure: failed program was" >&5
   25181       cat conftest.s >&5
   25182     fi
   25183     rm -f conftest.o conftest.s
   25184   fi
   25185 fi
   25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
   25187 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
   25188 if test $gcc_cv_as_powerpc_popcntb = yes; then
   25189 
   25190 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
   25191 
   25192 fi
   25193 
   25194     case $target in
   25195       *-*-aix*) conftest_s='	.machine "pwr5x"
   25196 	.csect .text[PR]
   25197 	frin 1,1';;
   25198       *) conftest_s='	.machine power5
   25199 	.text
   25200 	frin 1,1';;
   25201     esac
   25202 
   25203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
   25204 $as_echo_n "checking assembler for fp round support... " >&6; }
   25205 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
   25206   $as_echo_n "(cached) " >&6
   25207 else
   25208   gcc_cv_as_powerpc_fprnd=no
   25209     if test $in_tree_gas = yes; then
   25210     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
   25211   then gcc_cv_as_powerpc_fprnd=yes
   25212 fi
   25213   elif test x$gcc_cv_as != x; then
   25214     $as_echo "$conftest_s" > conftest.s
   25215     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25216   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25217   (eval $ac_try) 2>&5
   25218   ac_status=$?
   25219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25220   test $ac_status = 0; }; }
   25221     then
   25222 	gcc_cv_as_powerpc_fprnd=yes
   25223     else
   25224       echo "configure: failed program was" >&5
   25225       cat conftest.s >&5
   25226     fi
   25227     rm -f conftest.o conftest.s
   25228   fi
   25229 fi
   25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
   25231 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
   25232 if test $gcc_cv_as_powerpc_fprnd = yes; then
   25233 
   25234 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
   25235 
   25236 fi
   25237 
   25238     case $target in
   25239       *-*-aix*) conftest_s='	.machine "pwr6"
   25240 	.csect .text[PR]
   25241 	mffgpr 1,3';;
   25242       *) conftest_s='	.machine power6
   25243 	.text
   25244 	mffgpr 1,3';;
   25245     esac
   25246 
   25247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
   25248 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
   25249 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
   25250   $as_echo_n "(cached) " >&6
   25251 else
   25252   gcc_cv_as_powerpc_mfpgpr=no
   25253     if test $in_tree_gas = yes; then
   25254     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
   25255   then gcc_cv_as_powerpc_mfpgpr=yes
   25256 fi
   25257   elif test x$gcc_cv_as != x; then
   25258     $as_echo "$conftest_s" > conftest.s
   25259     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25260   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25261   (eval $ac_try) 2>&5
   25262   ac_status=$?
   25263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25264   test $ac_status = 0; }; }
   25265     then
   25266 	gcc_cv_as_powerpc_mfpgpr=yes
   25267     else
   25268       echo "configure: failed program was" >&5
   25269       cat conftest.s >&5
   25270     fi
   25271     rm -f conftest.o conftest.s
   25272   fi
   25273 fi
   25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
   25275 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
   25276 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
   25277 
   25278 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
   25279 
   25280 fi
   25281 
   25282     case $target in
   25283       *-*-aix*) conftest_s='	.csect .text[PR]
   25284 LCF..0:
   25285 	addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
   25286       *-*-darwin*)
   25287 	conftest_s='	.text
   25288 LCF0:
   25289 	addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
   25290       *) conftest_s='	.text
   25291 .LCF0:
   25292 	addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
   25293     esac
   25294 
   25295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
   25296 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
   25297 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
   25298   $as_echo_n "(cached) " >&6
   25299 else
   25300   gcc_cv_as_powerpc_rel16=no
   25301     if test $in_tree_gas = yes; then
   25302     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
   25303   then gcc_cv_as_powerpc_rel16=yes
   25304 fi
   25305   elif test x$gcc_cv_as != x; then
   25306     $as_echo "$conftest_s" > conftest.s
   25307     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
   25308   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25309   (eval $ac_try) 2>&5
   25310   ac_status=$?
   25311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25312   test $ac_status = 0; }; }
   25313     then
   25314 	gcc_cv_as_powerpc_rel16=yes
   25315     else
   25316       echo "configure: failed program was" >&5
   25317       cat conftest.s >&5
   25318     fi
   25319     rm -f conftest.o conftest.s
   25320   fi
   25321 fi
   25322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
   25323 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
   25324 if test $gcc_cv_as_powerpc_rel16 = yes; then
   25325 
   25326 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
   25327 
   25328 fi
   25329 
   25330     case $target in
   25331       *-*-aix*) conftest_s='	.machine "pwr6"
   25332 	.csect .text[PR]
   25333 	cmpb 3,4,5';;
   25334       *) conftest_s='	.machine power6
   25335 	.text
   25336 	cmpb 3,4,5';;
   25337     esac
   25338 
   25339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
   25340 $as_echo_n "checking assembler for compare bytes support... " >&6; }
   25341 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
   25342   $as_echo_n "(cached) " >&6
   25343 else
   25344   gcc_cv_as_powerpc_cmpb=no
   25345     if test $in_tree_gas = yes; then
   25346     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
   25347   then gcc_cv_as_powerpc_cmpb=yes
   25348 fi
   25349   elif test x$gcc_cv_as != x; then
   25350     $as_echo "$conftest_s" > conftest.s
   25351     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
   25352   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25353   (eval $ac_try) 2>&5
   25354   ac_status=$?
   25355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25356   test $ac_status = 0; }; }
   25357     then
   25358 	gcc_cv_as_powerpc_cmpb=yes
   25359     else
   25360       echo "configure: failed program was" >&5
   25361       cat conftest.s >&5
   25362     fi
   25363     rm -f conftest.o conftest.s
   25364   fi
   25365 fi
   25366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
   25367 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
   25368 if test $gcc_cv_as_powerpc_cmpb = yes; then
   25369 
   25370 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
   25371 
   25372 fi
   25373 
   25374     case $target in
   25375       *-*-aix*) conftest_s='	.machine "pwr6"
   25376 	.csect .text[PR]
   25377 	dadd 1,2,3';;
   25378       *) conftest_s='	.machine power6
   25379 	.text
   25380 	dadd 1,2,3';;
   25381     esac
   25382 
   25383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
   25384 $as_echo_n "checking assembler for decimal float support... " >&6; }
   25385 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
   25386   $as_echo_n "(cached) " >&6
   25387 else
   25388   gcc_cv_as_powerpc_dfp=no
   25389     if test $in_tree_gas = yes; then
   25390     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
   25391   then gcc_cv_as_powerpc_dfp=yes
   25392 fi
   25393   elif test x$gcc_cv_as != x; then
   25394     $as_echo "$conftest_s" > conftest.s
   25395     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
   25396   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25397   (eval $ac_try) 2>&5
   25398   ac_status=$?
   25399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25400   test $ac_status = 0; }; }
   25401     then
   25402 	gcc_cv_as_powerpc_dfp=yes
   25403     else
   25404       echo "configure: failed program was" >&5
   25405       cat conftest.s >&5
   25406     fi
   25407     rm -f conftest.o conftest.s
   25408   fi
   25409 fi
   25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
   25411 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
   25412 if test $gcc_cv_as_powerpc_dfp = yes; then
   25413 
   25414 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
   25415 
   25416 fi
   25417 
   25418     case $target in
   25419       *-*-aix*) conftest_s='	.machine "pwr7"
   25420 	.csect .text[PR]
   25421 	lxvd2x 1,2,3';;
   25422       *) conftest_s='	.machine power7
   25423 	.text
   25424 	lxvd2x 1,2,3';;
   25425     esac
   25426 
   25427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
   25428 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
   25429 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
   25430   $as_echo_n "(cached) " >&6
   25431 else
   25432   gcc_cv_as_powerpc_vsx=no
   25433     if test $in_tree_gas = yes; then
   25434     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
   25435   then gcc_cv_as_powerpc_vsx=yes
   25436 fi
   25437   elif test x$gcc_cv_as != x; then
   25438     $as_echo "$conftest_s" > conftest.s
   25439     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
   25440   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25441   (eval $ac_try) 2>&5
   25442   ac_status=$?
   25443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25444   test $ac_status = 0; }; }
   25445     then
   25446 	gcc_cv_as_powerpc_vsx=yes
   25447     else
   25448       echo "configure: failed program was" >&5
   25449       cat conftest.s >&5
   25450     fi
   25451     rm -f conftest.o conftest.s
   25452   fi
   25453 fi
   25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
   25455 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
   25456 if test $gcc_cv_as_powerpc_vsx = yes; then
   25457 
   25458 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
   25459 
   25460 fi
   25461 
   25462     case $target in
   25463       *-*-aix*) conftest_s='	.machine "pwr7"
   25464 	.csect .text[PR]
   25465 	popcntd 3,3';;
   25466       *) conftest_s='	.machine power7
   25467 	.text
   25468 	popcntd 3,3';;
   25469     esac
   25470 
   25471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
   25472 $as_echo_n "checking assembler for popcntd support... " >&6; }
   25473 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
   25474   $as_echo_n "(cached) " >&6
   25475 else
   25476   gcc_cv_as_powerpc_popcntd=no
   25477     if test $in_tree_gas = yes; then
   25478     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
   25479   then gcc_cv_as_powerpc_popcntd=yes
   25480 fi
   25481   elif test x$gcc_cv_as != x; then
   25482     $as_echo "$conftest_s" > conftest.s
   25483     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
   25484   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25485   (eval $ac_try) 2>&5
   25486   ac_status=$?
   25487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25488   test $ac_status = 0; }; }
   25489     then
   25490 	gcc_cv_as_powerpc_popcntd=yes
   25491     else
   25492       echo "configure: failed program was" >&5
   25493       cat conftest.s >&5
   25494     fi
   25495     rm -f conftest.o conftest.s
   25496   fi
   25497 fi
   25498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
   25499 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
   25500 if test $gcc_cv_as_powerpc_popcntd = yes; then
   25501 
   25502 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
   25503 
   25504 fi
   25505 
   25506     case $target in
   25507       *-*-aix*) conftest_s='	.machine "pwr8"
   25508 	.csect .text[PR]';;
   25509       *) conftest_s='	.machine power8
   25510 	.text';;
   25511     esac
   25512 
   25513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
   25514 $as_echo_n "checking assembler for power8 support... " >&6; }
   25515 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
   25516   $as_echo_n "(cached) " >&6
   25517 else
   25518   gcc_cv_as_powerpc_power8=no
   25519     if test $in_tree_gas = yes; then
   25520     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
   25521   then gcc_cv_as_powerpc_power8=yes
   25522 fi
   25523   elif test x$gcc_cv_as != x; then
   25524     $as_echo "$conftest_s" > conftest.s
   25525     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
   25526   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25527   (eval $ac_try) 2>&5
   25528   ac_status=$?
   25529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25530   test $ac_status = 0; }; }
   25531     then
   25532 	gcc_cv_as_powerpc_power8=yes
   25533     else
   25534       echo "configure: failed program was" >&5
   25535       cat conftest.s >&5
   25536     fi
   25537     rm -f conftest.o conftest.s
   25538   fi
   25539 fi
   25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
   25541 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
   25542 if test $gcc_cv_as_powerpc_power8 = yes; then
   25543 
   25544 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
   25545 
   25546 fi
   25547 
   25548     case $target in
   25549       *-*-aix*) conftest_s='	.csect .text[PR]
   25550 	lwsync';;
   25551       *) conftest_s='	.text
   25552 	lwsync';;
   25553     esac
   25554 
   25555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
   25556 $as_echo_n "checking assembler for lwsync support... " >&6; }
   25557 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
   25558   $as_echo_n "(cached) " >&6
   25559 else
   25560   gcc_cv_as_powerpc_lwsync=no
   25561     if test $in_tree_gas = yes; then
   25562     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
   25563   then gcc_cv_as_powerpc_lwsync=yes
   25564 fi
   25565   elif test x$gcc_cv_as != x; then
   25566     $as_echo "$conftest_s" > conftest.s
   25567     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
   25568   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25569   (eval $ac_try) 2>&5
   25570   ac_status=$?
   25571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25572   test $ac_status = 0; }; }
   25573     then
   25574 	gcc_cv_as_powerpc_lwsync=yes
   25575     else
   25576       echo "configure: failed program was" >&5
   25577       cat conftest.s >&5
   25578     fi
   25579     rm -f conftest.o conftest.s
   25580   fi
   25581 fi
   25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
   25583 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
   25584 if test $gcc_cv_as_powerpc_lwsync = yes; then
   25585 
   25586 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
   25587 
   25588 fi
   25589 
   25590     case $target in
   25591       *-*-aix*) conftest_s='	.machine "476"
   25592 	.csect .text[PR]
   25593 	dci 0';;
   25594       *) conftest_s='	.machine "476"
   25595 	.text
   25596 	dci 0';;
   25597     esac
   25598 
   25599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
   25600 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
   25601 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
   25602   $as_echo_n "(cached) " >&6
   25603 else
   25604   gcc_cv_as_powerpc_dci=no
   25605     if test $in_tree_gas = yes; then
   25606     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
   25607   then gcc_cv_as_powerpc_dci=yes
   25608 fi
   25609   elif test x$gcc_cv_as != x; then
   25610     $as_echo "$conftest_s" > conftest.s
   25611     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
   25612   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25613   (eval $ac_try) 2>&5
   25614   ac_status=$?
   25615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25616   test $ac_status = 0; }; }
   25617     then
   25618 	gcc_cv_as_powerpc_dci=yes
   25619     else
   25620       echo "configure: failed program was" >&5
   25621       cat conftest.s >&5
   25622     fi
   25623     rm -f conftest.o conftest.s
   25624   fi
   25625 fi
   25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
   25627 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
   25628 if test $gcc_cv_as_powerpc_dci = yes; then
   25629 
   25630 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
   25631 
   25632 fi
   25633 
   25634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
   25635 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
   25636 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
   25637   $as_echo_n "(cached) " >&6
   25638 else
   25639   gcc_cv_as_powerpc_gnu_attribute=no
   25640     if test $in_tree_gas = yes; then
   25641     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
   25642   then gcc_cv_as_powerpc_gnu_attribute=yes
   25643 fi
   25644   elif test x$gcc_cv_as != x; then
   25645     $as_echo '.gnu_attribute 4,1' > conftest.s
   25646     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25647   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25648   (eval $ac_try) 2>&5
   25649   ac_status=$?
   25650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25651   test $ac_status = 0; }; }
   25652     then
   25653 	gcc_cv_as_powerpc_gnu_attribute=yes
   25654     else
   25655       echo "configure: failed program was" >&5
   25656       cat conftest.s >&5
   25657     fi
   25658     rm -f conftest.o conftest.s
   25659   fi
   25660 fi
   25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
   25662 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
   25663 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
   25664 
   25665 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
   25666 
   25667 fi
   25668 
   25669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
   25670 $as_echo_n "checking assembler for tls marker support... " >&6; }
   25671 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
   25672   $as_echo_n "(cached) " >&6
   25673 else
   25674   gcc_cv_as_powerpc_tls_markers=no
   25675     if test $in_tree_gas = yes; then
   25676     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
   25677   then gcc_cv_as_powerpc_tls_markers=yes
   25678 fi
   25679   elif test x$gcc_cv_as != x; then
   25680     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
   25681     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25682   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25683   (eval $ac_try) 2>&5
   25684   ac_status=$?
   25685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25686   test $ac_status = 0; }; }
   25687     then
   25688 	gcc_cv_as_powerpc_tls_markers=yes
   25689     else
   25690       echo "configure: failed program was" >&5
   25691       cat conftest.s >&5
   25692     fi
   25693     rm -f conftest.o conftest.s
   25694   fi
   25695 fi
   25696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
   25697 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
   25698 if test $gcc_cv_as_powerpc_tls_markers = yes; then
   25699 
   25700 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
   25701 
   25702 fi
   25703 
   25704     case $target in
   25705       *-*-aix*)
   25706 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
   25707 $as_echo_n "checking assembler for .ref support... " >&6; }
   25708 if test "${gcc_cv_as_aix_ref+set}" = set; then :
   25709   $as_echo_n "(cached) " >&6
   25710 else
   25711   gcc_cv_as_aix_ref=no
   25712     if test $in_tree_gas = yes; then
   25713     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
   25714   then gcc_cv_as_aix_ref=yes
   25715 fi
   25716   elif test x$gcc_cv_as != x; then
   25717     $as_echo '	.csect stuff[rw]
   25718 	     stuff:
   25719 		.long 1
   25720 		.extern sym
   25721 		.ref sym
   25722 	  ' > conftest.s
   25723     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25724   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25725   (eval $ac_try) 2>&5
   25726   ac_status=$?
   25727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25728   test $ac_status = 0; }; }
   25729     then
   25730 	gcc_cv_as_aix_ref=yes
   25731     else
   25732       echo "configure: failed program was" >&5
   25733       cat conftest.s >&5
   25734     fi
   25735     rm -f conftest.o conftest.s
   25736   fi
   25737 fi
   25738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
   25739 $as_echo "$gcc_cv_as_aix_ref" >&6; }
   25740 if test $gcc_cv_as_aix_ref = yes; then
   25741 
   25742 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
   25743 
   25744 fi
   25745 	;;
   25746     esac
   25747     ;;
   25748 
   25749   mips*-*-*)
   25750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
   25751 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
   25752 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
   25753   $as_echo_n "(cached) " >&6
   25754 else
   25755   gcc_cv_as_mips_explicit_relocs=no
   25756     if test $in_tree_gas = yes; then
   25757     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
   25758   then gcc_cv_as_mips_explicit_relocs=yes
   25759 fi
   25760   elif test x$gcc_cv_as != x; then
   25761     $as_echo '	lw $4,%gp_rel(foo)($4)' > conftest.s
   25762     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25763   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25764   (eval $ac_try) 2>&5
   25765   ac_status=$?
   25766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25767   test $ac_status = 0; }; }
   25768     then
   25769 	gcc_cv_as_mips_explicit_relocs=yes
   25770     else
   25771       echo "configure: failed program was" >&5
   25772       cat conftest.s >&5
   25773     fi
   25774     rm -f conftest.o conftest.s
   25775   fi
   25776 fi
   25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
   25778 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
   25779 if test $gcc_cv_as_mips_explicit_relocs = yes; then
   25780   if test x$target_cpu_default = x
   25781        then target_cpu_default=MASK_EXPLICIT_RELOCS
   25782        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
   25783        fi
   25784 fi
   25785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
   25786 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
   25787 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
   25788   $as_echo_n "(cached) " >&6
   25789 else
   25790   gcc_cv_as_mips_no_shared=no
   25791     if test $in_tree_gas = yes; then
   25792     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
   25793   then gcc_cv_as_mips_no_shared=yes
   25794 fi
   25795   elif test x$gcc_cv_as != x; then
   25796     $as_echo 'nop' > conftest.s
   25797     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
   25798   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25799   (eval $ac_try) 2>&5
   25800   ac_status=$?
   25801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25802   test $ac_status = 0; }; }
   25803     then
   25804 	gcc_cv_as_mips_no_shared=yes
   25805     else
   25806       echo "configure: failed program was" >&5
   25807       cat conftest.s >&5
   25808     fi
   25809     rm -f conftest.o conftest.s
   25810   fi
   25811 fi
   25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
   25813 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
   25814 if test $gcc_cv_as_mips_no_shared = yes; then
   25815 
   25816 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
   25817 
   25818 fi
   25819 
   25820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
   25821 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
   25822 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
   25823   $as_echo_n "(cached) " >&6
   25824 else
   25825   gcc_cv_as_mips_gnu_attribute=no
   25826     if test $in_tree_gas = yes; then
   25827     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
   25828   then gcc_cv_as_mips_gnu_attribute=yes
   25829 fi
   25830   elif test x$gcc_cv_as != x; then
   25831     $as_echo '.gnu_attribute 4,1' > conftest.s
   25832     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25833   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25834   (eval $ac_try) 2>&5
   25835   ac_status=$?
   25836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25837   test $ac_status = 0; }; }
   25838     then
   25839 	gcc_cv_as_mips_gnu_attribute=yes
   25840     else
   25841       echo "configure: failed program was" >&5
   25842       cat conftest.s >&5
   25843     fi
   25844     rm -f conftest.o conftest.s
   25845   fi
   25846 fi
   25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
   25848 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
   25849 if test $gcc_cv_as_mips_gnu_attribute = yes; then
   25850 
   25851 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
   25852 
   25853 fi
   25854 
   25855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
   25856 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
   25857 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
   25858   $as_echo_n "(cached) " >&6
   25859 else
   25860   gcc_cv_as_mips_dtprelword=no
   25861     if test $in_tree_gas = yes; then
   25862     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
   25863   then gcc_cv_as_mips_dtprelword=yes
   25864 fi
   25865   elif test x$gcc_cv_as != x; then
   25866     $as_echo '.section .tdata,"awT",@progbits
   25867 x:
   25868 	.word 2
   25869 	.text
   25870 	.dtprelword x+0x8000' > conftest.s
   25871     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25872   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25873   (eval $ac_try) 2>&5
   25874   ac_status=$?
   25875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25876   test $ac_status = 0; }; }
   25877     then
   25878 	gcc_cv_as_mips_dtprelword=yes
   25879     else
   25880       echo "configure: failed program was" >&5
   25881       cat conftest.s >&5
   25882     fi
   25883     rm -f conftest.o conftest.s
   25884   fi
   25885 fi
   25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
   25887 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
   25888 if test $gcc_cv_as_mips_dtprelword = yes; then
   25889 
   25890 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
   25891 
   25892 fi
   25893 
   25894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
   25895 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
   25896 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
   25897   $as_echo_n "(cached) " >&6
   25898 else
   25899   gcc_cv_as_mips_dspr1_mult=no
   25900   if test x$gcc_cv_as != x; then
   25901     $as_echo '	.set	mips32r2
   25902 	.set	nodspr2
   25903 	.set	dsp
   25904 	madd	$ac3,$4,$5
   25905 	maddu	$ac3,$4,$5
   25906 	msub	$ac3,$4,$5
   25907 	msubu	$ac3,$4,$5
   25908 	mult	$ac3,$4,$5
   25909 	multu	$ac3,$4,$5' > conftest.s
   25910     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   25911   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   25912   (eval $ac_try) 2>&5
   25913   ac_status=$?
   25914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   25915   test $ac_status = 0; }; }
   25916     then
   25917 	gcc_cv_as_mips_dspr1_mult=yes
   25918     else
   25919       echo "configure: failed program was" >&5
   25920       cat conftest.s >&5
   25921     fi
   25922     rm -f conftest.o conftest.s
   25923   fi
   25924 fi
   25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
   25926 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
   25927 if test $gcc_cv_as_mips_dspr1_mult = yes; then
   25928 
   25929 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
   25930 
   25931 fi
   25932 
   25933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
   25934 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
   25935     gcc_cv_as_ld_jalr_reloc=no
   25936     if test $gcc_cv_as_mips_explicit_relocs = yes; then
   25937       if test $in_tree_ld = yes ; then
   25938         if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
   25939            && test $in_tree_ld_is_elf = yes; then
   25940           gcc_cv_as_ld_jalr_reloc=yes
   25941         fi
   25942       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
   25943         echo '	.ent x' > conftest.s
   25944         echo 'x:	ld $2,%got_disp(y)($3)' >> conftest.s
   25945         echo '	ld $25,%call16(y)($28)' >> conftest.s
   25946         echo '	.reloc	1f,R_MIPS_JALR,y' >> conftest.s
   25947         echo '1:	jalr $25' >> conftest.s
   25948         echo '	.reloc	1f,R_MIPS_JALR,x' >> conftest.s
   25949         echo '1:	jalr $25' >> conftest.s
   25950         echo '	.end x' >> conftest.s
   25951         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
   25952            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
   25953 	  if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
   25954 	     && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
   25955             gcc_cv_as_ld_jalr_reloc=yes
   25956 	  fi
   25957         fi
   25958         rm -f conftest.*
   25959       fi
   25960     fi
   25961     if test $gcc_cv_as_ld_jalr_reloc = yes; then
   25962       if test x$target_cpu_default = x; then
   25963         target_cpu_default=MASK_RELAX_PIC_CALLS
   25964       else
   25965         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
   25966       fi
   25967     fi
   25968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
   25969 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
   25970 
   25971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
   25972 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
   25973 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
   25974   $as_echo_n "(cached) " >&6
   25975 else
   25976   gcc_cv_ld_mips_personality_relaxation=no
   25977        if test $in_tree_ld = yes ; then
   25978 	 if test "$gcc_cv_gld_major_version" -eq 2 \
   25979 		 -a "$gcc_cv_gld_minor_version" -ge 21 \
   25980 		 -o "$gcc_cv_gld_major_version" -gt 2; then
   25981 	   gcc_cv_ld_mips_personality_relaxation=yes
   25982 	 fi
   25983        elif test x$gcc_cv_as != x \
   25984        	    	 -a x$gcc_cv_ld != x \
   25985 		 -a x$gcc_cv_readelf != x ; then
   25986 	 cat > conftest.s <<EOF
   25987 	.cfi_startproc
   25988 	.cfi_personality 0x80,indirect_ptr
   25989 	.ent test
   25990 test:
   25991 	nop
   25992 	.end test
   25993 	.cfi_endproc
   25994 
   25995 	.section .data,"aw",@progbits
   25996 indirect_ptr:
   25997 	.dc.a personality
   25998 EOF
   25999 	 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
   26000 	    && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
   26001 	   if $gcc_cv_readelf -d conftest 2>&1 \
   26002 	      | grep TEXTREL > /dev/null 2>&1; then
   26003 	     :
   26004 	   elif $gcc_cv_readelf --relocs conftest 2>&1 \
   26005 	        | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
   26006 	     :
   26007 	   else
   26008 	     gcc_cv_ld_mips_personality_relaxation=yes
   26009 	   fi
   26010 	 fi
   26011        fi
   26012        rm -f conftest.s conftest.o conftest
   26013 fi
   26014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
   26015 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
   26016     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
   26017 
   26018 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
   26019 
   26020     fi
   26021     ;;
   26022 esac
   26023 
   26024 # Mips and HP-UX need the GNU assembler.
   26025 # Linux on IA64 might be able to use the Intel assembler.
   26026 
   26027 case "$target" in
   26028   mips*-*-* | *-*-hpux* )
   26029     if test x$gas_flag = xyes \
   26030        || test x"$host" != x"$build" \
   26031        || test ! -x "$gcc_cv_as" \
   26032        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
   26033       :
   26034     else
   26035       echo "*** This configuration requires the GNU assembler" >&2
   26036       exit 1
   26037     fi
   26038     ;;
   26039 esac
   26040 
   26041 # ??? Not all targets support dwarf2 debug_line, even within a version
   26042 # of gas.  Moreover, we need to emit a valid instruction to trigger any
   26043 # info to the output file.  So, as supported targets are added to gas 2.11,
   26044 # add some instruction here to (also) show we expect this might work.
   26045 # ??? Once 2.11 is released, probably need to add first known working
   26046 # version to the per-target configury.
   26047 case "$cpu_type" in
   26048   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
   26049   | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
   26050     insn="nop"
   26051     ;;
   26052   ia64 | s390)
   26053     insn="nop 0"
   26054     ;;
   26055   mmix)
   26056     insn="swym 0"
   26057     ;;
   26058 esac
   26059 if test x"$insn" != x; then
   26060  conftest_s="\
   26061 	.file 1 \"conftest.s\"
   26062 	.loc 1 3 0
   26063 	$insn"
   26064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
   26065 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
   26066 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
   26067   $as_echo_n "(cached) " >&6
   26068 else
   26069   gcc_cv_as_dwarf2_debug_line=no
   26070     if test $in_tree_gas = yes; then
   26071     if test $in_tree_gas_is_elf = yes \
   26072   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
   26073   then gcc_cv_as_dwarf2_debug_line=yes
   26074 fi
   26075   elif test x$gcc_cv_as != x; then
   26076     $as_echo "$conftest_s" > conftest.s
   26077     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   26078   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26079   (eval $ac_try) 2>&5
   26080   ac_status=$?
   26081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26082   test $ac_status = 0; }; }
   26083     then
   26084 	if test x$gcc_cv_objdump != x \
   26085    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
   26086       | grep debug_line > /dev/null 2>&1; then
   26087      gcc_cv_as_dwarf2_debug_line=yes
   26088    fi
   26089     else
   26090       echo "configure: failed program was" >&5
   26091       cat conftest.s >&5
   26092     fi
   26093     rm -f conftest.o conftest.s
   26094   fi
   26095 fi
   26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
   26097 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
   26098 
   26099 
   26100 # The .debug_line file table must be in the exact order that
   26101 # we specified the files, since these indices are also used
   26102 # by DW_AT_decl_file.  Approximate this test by testing if
   26103 # the assembler bitches if the same index is assigned twice.
   26104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
   26105 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
   26106 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
   26107   $as_echo_n "(cached) " >&6
   26108 else
   26109   gcc_cv_as_dwarf2_file_buggy=no
   26110   if test x$gcc_cv_as != x; then
   26111     $as_echo '	.file 1 "foo.s"
   26112 	.file 1 "bar.s"' > conftest.s
   26113     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   26114   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26115   (eval $ac_try) 2>&5
   26116   ac_status=$?
   26117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26118   test $ac_status = 0; }; }
   26119     then
   26120 	gcc_cv_as_dwarf2_file_buggy=yes
   26121     else
   26122       echo "configure: failed program was" >&5
   26123       cat conftest.s >&5
   26124     fi
   26125     rm -f conftest.o conftest.s
   26126   fi
   26127 fi
   26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
   26129 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
   26130 
   26131 
   26132  if test $gcc_cv_as_dwarf2_debug_line = yes \
   26133  && test $gcc_cv_as_dwarf2_file_buggy = no; then
   26134 
   26135 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
   26136 
   26137  fi
   26138 
   26139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
   26140 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
   26141 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
   26142   $as_echo_n "(cached) " >&6
   26143 else
   26144   gcc_cv_as_gdwarf2_flag=no
   26145     if test $in_tree_gas = yes; then
   26146     if test $in_tree_gas_is_elf = yes \
   26147   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
   26148   then gcc_cv_as_gdwarf2_flag=yes
   26149 fi
   26150   elif test x$gcc_cv_as != x; then
   26151     $as_echo "$insn" > conftest.s
   26152     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
   26153   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26154   (eval $ac_try) 2>&5
   26155   ac_status=$?
   26156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26157   test $ac_status = 0; }; }
   26158     then
   26159 	gcc_cv_as_gdwarf2_flag=yes
   26160     else
   26161       echo "configure: failed program was" >&5
   26162       cat conftest.s >&5
   26163     fi
   26164     rm -f conftest.o conftest.s
   26165   fi
   26166 fi
   26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
   26168 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
   26169 if test $gcc_cv_as_gdwarf2_flag = yes; then
   26170 
   26171 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
   26172 
   26173 fi
   26174 
   26175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
   26176 $as_echo_n "checking assembler for --gstabs option... " >&6; }
   26177 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
   26178   $as_echo_n "(cached) " >&6
   26179 else
   26180   gcc_cv_as_gstabs_flag=no
   26181     if test $in_tree_gas = yes; then
   26182     if test $in_tree_gas_is_elf = yes \
   26183   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
   26184   then gcc_cv_as_gstabs_flag=yes
   26185 fi
   26186   elif test x$gcc_cv_as != x; then
   26187     $as_echo "$insn" > conftest.s
   26188     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
   26189   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26190   (eval $ac_try) 2>&5
   26191   ac_status=$?
   26192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26193   test $ac_status = 0; }; }
   26194     then
   26195 	# The native Solaris 9/Intel assembler doesn't understand --gstabs
   26196    # and warns about it, but still exits successfully.  So check for
   26197    # this.
   26198    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
   26199   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26200   (eval $ac_try) 2>&5
   26201   ac_status=$?
   26202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26203   test $ac_status = 0; }; }
   26204    then :
   26205    else gcc_cv_as_gstabs_flag=yes
   26206    fi
   26207     else
   26208       echo "configure: failed program was" >&5
   26209       cat conftest.s >&5
   26210     fi
   26211     rm -f conftest.o conftest.s
   26212   fi
   26213 fi
   26214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
   26215 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
   26216 if test $gcc_cv_as_gstabs_flag = yes; then
   26217 
   26218 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
   26219 
   26220 fi
   26221 
   26222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
   26223 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
   26224 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
   26225   $as_echo_n "(cached) " >&6
   26226 else
   26227   gcc_cv_as_debug_prefix_map_flag=no
   26228     if test $in_tree_gas = yes; then
   26229     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
   26230   then gcc_cv_as_debug_prefix_map_flag=yes
   26231 fi
   26232   elif test x$gcc_cv_as != x; then
   26233     $as_echo "$insn" > conftest.s
   26234     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
   26235   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26236   (eval $ac_try) 2>&5
   26237   ac_status=$?
   26238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26239   test $ac_status = 0; }; }
   26240     then
   26241 	gcc_cv_as_debug_prefix_map_flag=yes
   26242     else
   26243       echo "configure: failed program was" >&5
   26244       cat conftest.s >&5
   26245     fi
   26246     rm -f conftest.o conftest.s
   26247   fi
   26248 fi
   26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
   26250 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
   26251 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
   26252 
   26253 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
   26254 
   26255 fi
   26256 fi
   26257 
   26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
   26259 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
   26260 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
   26261   $as_echo_n "(cached) " >&6
   26262 else
   26263   gcc_cv_as_lcomm_with_alignment=no
   26264   if test x$gcc_cv_as != x; then
   26265     $as_echo '.lcomm bar,4,16' > conftest.s
   26266     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   26267   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26268   (eval $ac_try) 2>&5
   26269   ac_status=$?
   26270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26271   test $ac_status = 0; }; }
   26272     then
   26273 	gcc_cv_as_lcomm_with_alignment=yes
   26274     else
   26275       echo "configure: failed program was" >&5
   26276       cat conftest.s >&5
   26277     fi
   26278     rm -f conftest.o conftest.s
   26279   fi
   26280 fi
   26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
   26282 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
   26283 if test $gcc_cv_as_lcomm_with_alignment = yes; then
   26284 
   26285 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
   26286 
   26287 fi
   26288 
   26289 # Check whether --enable-gnu-unique-object was given.
   26290 if test "${enable_gnu_unique_object+set}" = set; then :
   26291   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
   26292     yes | no) ;;
   26293     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
   26294 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
   26295   esac
   26296 else
   26297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
   26298 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
   26299 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
   26300   $as_echo_n "(cached) " >&6
   26301 else
   26302   gcc_cv_as_gnu_unique_object=no
   26303     if test $in_tree_gas = yes; then
   26304     if test $in_tree_gas_is_elf = yes \
   26305   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
   26306   then gcc_cv_as_gnu_unique_object=yes
   26307 fi
   26308   elif test x$gcc_cv_as != x; then
   26309     $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
   26310     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   26311   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26312   (eval $ac_try) 2>&5
   26313   ac_status=$?
   26314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26315   test $ac_status = 0; }; }
   26316     then
   26317 	gcc_cv_as_gnu_unique_object=yes
   26318     else
   26319       echo "configure: failed program was" >&5
   26320       cat conftest.s >&5
   26321     fi
   26322     rm -f conftest.o conftest.s
   26323   fi
   26324 fi
   26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
   26326 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
   26327 if test $gcc_cv_as_gnu_unique_object = yes; then
   26328   # We need to unquote above to to use the definition from config.gcc.
   26329 # Also check for ld.so support, i.e. glibc 2.11 or higher.
   26330    if test x$host = x$build -a x$host = x$target &&
   26331        ldd --version 2>/dev/null &&
   26332        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
   26333       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
   26334       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
   26335       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
   26336       if test "$glibcnum" -ge 2011 ; then
   26337         enable_gnu_unique_object=yes
   26338       fi
   26339     fi
   26340 fi
   26341 fi
   26342 
   26343 if test x$enable_gnu_unique_object = xyes; then
   26344 
   26345 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
   26346 
   26347 fi
   26348 
   26349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
   26350 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
   26351 if test "${gcc_cv_as_line_zero+set}" = set; then :
   26352   $as_echo_n "(cached) " >&6
   26353 else
   26354   gcc_cv_as_line_zero=no
   26355   if test $in_tree_gas = yes; then
   26356     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
   26357   then gcc_cv_as_line_zero=yes
   26358 fi
   26359   elif test "x$gcc_cv_as" != x; then
   26360     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
   26361     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
   26362   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   26363   (eval $ac_try) 2>&5
   26364   ac_status=$?
   26365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   26366   test $ac_status = 0; }; } &&
   26367        test "x`cat conftest.out`" = x
   26368     then
   26369       gcc_cv_as_line_zero=yes
   26370     else
   26371       echo "configure: failed program was" >&5
   26372       cat conftest.s >&5
   26373       echo "configure: error output was" >&5
   26374       cat conftest.out >&5
   26375     fi
   26376     rm -f conftest.o conftest.s conftest.out
   26377   fi
   26378 fi
   26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
   26380 $as_echo "$gcc_cv_as_line_zero" >&6; }
   26381 if test "x$gcc_cv_as_line_zero" = xyes; then
   26382 
   26383 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
   26384 
   26385 fi
   26386 
   26387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
   26388 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
   26389 gcc_cv_ld_eh_frame_hdr=no
   26390 if test $in_tree_ld = yes ; then
   26391   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
   26392      && test $in_tree_ld_is_elf = yes; then
   26393     gcc_cv_ld_eh_frame_hdr=yes
   26394   fi
   26395 elif test x$gcc_cv_ld != x; then
   26396   if echo "$ld_ver" | grep GNU > /dev/null; then
   26397     # Check if linker supports --eh-frame-hdr option
   26398     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
   26399       gcc_cv_ld_eh_frame_hdr=yes
   26400     fi
   26401   else
   26402     case "$target" in
   26403       *-*-solaris2*)
   26404         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
   26405         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
   26406           gcc_cv_ld_eh_frame_hdr=yes
   26407         fi
   26408         ;;
   26409     esac
   26410   fi
   26411 fi
   26412 
   26413 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
   26414 
   26415 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
   26416 
   26417 fi
   26418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
   26419 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
   26420 
   26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
   26422 $as_echo_n "checking linker position independent executable support... " >&6; }
   26423 gcc_cv_ld_pie=no
   26424 if test $in_tree_ld = yes ; then
   26425   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
   26426      && test $in_tree_ld_is_elf = yes; then
   26427     gcc_cv_ld_pie=yes
   26428   fi
   26429 elif test x$gcc_cv_ld != x; then
   26430 	# Check if linker supports -pie option
   26431 	if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
   26432 		gcc_cv_ld_pie=yes
   26433 	fi
   26434 fi
   26435 if test x"$gcc_cv_ld_pie" = xyes; then
   26436 
   26437 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
   26438 
   26439 fi
   26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
   26441 $as_echo "$gcc_cv_ld_pie" >&6; }
   26442 
   26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
   26444 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
   26445 gcc_cv_ld_eh_gc_sections=no
   26446 if test $in_tree_ld = yes ; then
   26447   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
   26448      && test $in_tree_ld_is_elf = yes; then
   26449     gcc_cv_ld_eh_gc_sections=yes
   26450   fi
   26451 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
   26452   cat > conftest.s <<EOF
   26453 	.section	.text
   26454 .globl _start
   26455         .type _start, @function
   26456 _start:
   26457 	.long foo
   26458 	.size _start, .-_start
   26459 	.section	.text.foo,"ax",@progbits
   26460 	.type foo, @function
   26461 foo:
   26462 	.long 0
   26463 	.size foo, .-foo
   26464 	.section	.gcc_except_table.foo,"a",@progbits
   26465 .L0:
   26466 	.long 0
   26467 	.section	.eh_frame,"a",@progbits
   26468 	.long .L0
   26469 EOF
   26470   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
   26471     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
   26472 	 | grep "gc-sections option ignored" > /dev/null; then
   26473       gcc_cv_ld_eh_gc_sections=no
   26474     elif $gcc_cv_objdump -h conftest 2> /dev/null \
   26475          | grep gcc_except_table > /dev/null; then
   26476       gcc_cv_ld_eh_gc_sections=yes
   26477       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
   26478       if test x$gcc_cv_as_comdat_group != xyes; then
   26479 	gcc_cv_ld_eh_gc_sections=no
   26480 	cat > conftest.s <<EOF
   26481 	.section	.text
   26482 .globl _start
   26483         .type _start, @function
   26484 _start:
   26485 	.long foo
   26486 	.size _start, .-_start
   26487 	.section	.gnu.linkonce.t.foo,"ax",@progbits
   26488 	.type foo, @function
   26489 foo:
   26490 	.long 0
   26491 	.size foo, .-foo
   26492 	.section	.gcc_except_table.foo,"a",@progbits
   26493 .L0:
   26494 	.long 0
   26495 	.section	.eh_frame,"a",@progbits
   26496 	.long .L0
   26497 EOF
   26498 	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
   26499 	  if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
   26500 	       | grep "gc-sections option ignored" > /dev/null; then
   26501 	    gcc_cv_ld_eh_gc_sections=no
   26502 	  elif $gcc_cv_objdump -h conftest 2> /dev/null \
   26503 	       | grep gcc_except_table > /dev/null; then
   26504 	    gcc_cv_ld_eh_gc_sections=yes
   26505 	  fi
   26506 	fi
   26507       fi
   26508     fi
   26509   fi
   26510   rm -f conftest.s conftest.o conftest
   26511 fi
   26512 case "$target" in
   26513   hppa*-*-linux*)
   26514     # ??? This apparently exposes a binutils bug with PC-relative relocations.
   26515     gcc_cv_ld_eh_gc_sections=no
   26516     ;;
   26517 esac
   26518 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
   26519 
   26520 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
   26521 
   26522 fi
   26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
   26524 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
   26525 
   26526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
   26527 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
   26528 gcc_cv_ld_eh_gc_sections_bug=no
   26529 if test $in_tree_ld = yes ; then
   26530   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
   26531      && test $in_tree_ld_is_elf = yes; then
   26532     gcc_cv_ld_eh_gc_sections_bug=yes
   26533   fi
   26534 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
   26535   gcc_cv_ld_eh_gc_sections_bug=yes
   26536   cat > conftest.s <<EOF
   26537 	.section	.text
   26538 .globl _start
   26539 	.type _start, @function
   26540 _start:
   26541 	.long foo
   26542 	.size _start, .-_start
   26543 	.section	.text.startup.foo,"ax",@progbits
   26544 	.type foo, @function
   26545 foo:
   26546 	.long 0
   26547 	.size foo, .-foo
   26548 	.section	.gcc_except_table.foo,"a",@progbits
   26549 .L0:
   26550 	.long 0
   26551 	.section	.eh_frame,"a",@progbits
   26552 	.long .L0
   26553 EOF
   26554   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
   26555     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
   26556 	 | grep "gc-sections option ignored" > /dev/null; then
   26557       :
   26558     elif $gcc_cv_objdump -h conftest 2> /dev/null \
   26559 	 | grep gcc_except_table > /dev/null; then
   26560       gcc_cv_ld_eh_gc_sections_bug=no
   26561     fi
   26562   fi
   26563   rm -f conftest.s conftest.o conftest
   26564 fi
   26565 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
   26566 
   26567 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
   26568 
   26569 fi
   26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
   26571 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
   26572 
   26573 # --------
   26574 # UNSORTED
   26575 # --------
   26576 
   26577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
   26578 $as_echo_n "checking linker --as-needed support... " >&6; }
   26579 if test "${gcc_cv_ld_as_needed+set}" = set; then :
   26580   $as_echo_n "(cached) " >&6
   26581 else
   26582   gcc_cv_ld_as_needed=no
   26583 if test $in_tree_ld = yes ; then
   26584   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
   26585      && test $in_tree_ld_is_elf = yes; then
   26586     gcc_cv_ld_as_needed=yes
   26587   fi
   26588 elif test x$gcc_cv_ld != x; then
   26589 	# Check if linker supports --as-needed and --no-as-needed options
   26590 	if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
   26591 		gcc_cv_ld_as_needed=yes
   26592 	fi
   26593 fi
   26594 
   26595 fi
   26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
   26597 $as_echo "$gcc_cv_ld_as_needed" >&6; }
   26598 if test x"$gcc_cv_ld_as_needed" = xyes; then
   26599 
   26600 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
   26601 
   26602 fi
   26603 
   26604 case "$target:$tm_file" in
   26605   powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
   26606   case "$target" in
   26607      *le-*-linux*)
   26608      emul_name="-melf64lppc"
   26609       ;;
   26610      *-*-linux*)
   26611      emul_name="-melf64ppc"
   26612       ;;
   26613      *-*-freebsd*)
   26614      emul_name="-melf64ppc_fbsd"
   26615       ;;
   26616   esac
   26617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
   26618 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
   26619 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
   26620   $as_echo_n "(cached) " >&6
   26621 else
   26622   gcc_cv_ld_no_dot_syms=no
   26623     if test x"$ld_is_gold" = xyes; then
   26624       gcc_cv_ld_no_dot_syms=yes
   26625     elif test $in_tree_ld = yes ; then
   26626       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
   26627         gcc_cv_ld_no_dot_syms=yes
   26628       fi
   26629     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
   26630       cat > conftest1.s <<EOF
   26631 	.text
   26632 	bl .foo
   26633 EOF
   26634       cat > conftest2.s <<EOF
   26635 	.section ".opd","aw"
   26636 	.align 3
   26637 	.globl foo
   26638 	.type foo,@function
   26639 foo:
   26640 	.quad .LEfoo,.TOC.@tocbase,0
   26641 	.text
   26642 .LEfoo:
   26643 	blr
   26644 	.size foo,.-.LEfoo
   26645 EOF
   26646       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
   26647          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
   26648          && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
   26649         gcc_cv_ld_no_dot_syms=yes
   26650       fi
   26651       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
   26652     fi
   26653 
   26654 fi
   26655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
   26656 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
   26657     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
   26658 
   26659 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
   26660 
   26661     fi
   26662 
   26663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
   26664 $as_echo_n "checking linker large toc support... " >&6; }
   26665 if test "${gcc_cv_ld_large_toc+set}" = set; then :
   26666   $as_echo_n "(cached) " >&6
   26667 else
   26668   gcc_cv_ld_large_toc=no
   26669     if test x"$ld_is_gold" = xyes; then
   26670       gcc_cv_ld_large_toc=yes
   26671     elif test $in_tree_ld = yes ; then
   26672       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
   26673         gcc_cv_ld_large_toc=yes
   26674       fi
   26675     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
   26676       cat > conftest.s <<EOF
   26677 	.section ".tbss","awT",@nobits
   26678 	.align 3
   26679 ie0:	.space 8
   26680 	.global _start
   26681 	.text
   26682 _start:
   26683 	addis 9,13,ie0@got@tprel@ha
   26684 	ld 9,ie0@got@tprel@l(9)
   26685 EOF
   26686       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
   26687          && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
   26688         gcc_cv_ld_large_toc=yes
   26689       fi
   26690       rm -f conftest conftest.o conftest.s
   26691     fi
   26692 
   26693 fi
   26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
   26695 $as_echo "$gcc_cv_ld_large_toc" >&6; }
   26696     if test x"$gcc_cv_ld_large_toc" = xyes; then
   26697 
   26698 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
   26699 
   26700     fi
   26701     ;;
   26702 esac
   26703 
   26704 case "$target" in
   26705   *-*-aix*)
   26706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
   26707 $as_echo_n "checking linker large toc support... " >&6; }
   26708 if test "${gcc_cv_ld_large_toc+set}" = set; then :
   26709   $as_echo_n "(cached) " >&6
   26710 else
   26711   gcc_cv_ld_large_toc=no
   26712     if test x$gcc_cv_as != x ; then
   26713       cat > conftest.s <<EOF
   26714 	.toc
   26715 LC..1:
   26716 	.tc a[TC],a[RW]
   26717 	.extern a[RW]
   26718 	.csect .text[PR]
   26719 .largetoctest:
   26720 	addis 9,LC..1@u(2)
   26721 	ld 3,LC..1@l(9)
   26722 EOF
   26723       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
   26724         gcc_cv_ld_large_toc=yes
   26725       fi
   26726       rm -f conftest conftest.o conftest.s
   26727     fi
   26728 
   26729 fi
   26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
   26731 $as_echo "$gcc_cv_ld_large_toc" >&6; }
   26732     if test x"$gcc_cv_ld_large_toc" = xyes; then
   26733 
   26734 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
   26735 
   26736     fi
   26737     ;;
   26738 esac
   26739 
   26740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
   26741 $as_echo_n "checking linker --build-id support... " >&6; }
   26742 if test "${gcc_cv_ld_buildid+set}" = set; then :
   26743   $as_echo_n "(cached) " >&6
   26744 else
   26745   gcc_cv_ld_buildid=no
   26746   if test $in_tree_ld = yes ; then
   26747     if test "$gcc_cv_gld_major_version" -eq 2 -a \
   26748        "$gcc_cv_gld_minor_version" -ge 18 -o \
   26749        "$gcc_cv_gld_major_version" -gt 2 \
   26750        && test $in_tree_ld_is_elf = yes; then
   26751       gcc_cv_ld_buildid=yes
   26752     fi
   26753   elif test x$gcc_cv_ld != x; then
   26754     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
   26755       gcc_cv_ld_buildid=yes
   26756     fi
   26757   fi
   26758 fi
   26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
   26760 $as_echo "$gcc_cv_ld_buildid" >&6; }
   26761 if test x"$gcc_cv_ld_buildid" = xyes; then
   26762 
   26763 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
   26764 
   26765 fi
   26766 
   26767 # Check whether --enable-linker-build-id was given.
   26768 if test "${enable_linker_build_id+set}" = set; then :
   26769   enableval=$enable_linker_build_id;
   26770 else
   26771   enable_linker_build_id=no
   26772 fi
   26773 
   26774 
   26775 if test x"$enable_linker_build_id" = xyes; then
   26776   if test x"$gcc_cv_ld_buildid" = xyes; then
   26777 
   26778 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
   26779 
   26780   else
   26781     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
   26782 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
   26783   fi
   26784 fi
   26785 
   26786 # In binutils 2.21, GNU ld gained support for new emulations fully
   26787 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
   26788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
   26789 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
   26790 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
   26791   $as_echo_n "(cached) " >&6
   26792 else
   26793   gcc_cv_ld_sol2_emulation=no
   26794   if test $in_tree_ld = yes ; then
   26795     if test "$gcc_cv_gld_major_version" -eq 2 -a \
   26796        "$gcc_cv_gld_minor_version" -ge 21 -o \
   26797        "$gcc_cv_gld_major_version" -gt 2 \
   26798        && test $in_tree_ld_is_elf = yes; then
   26799       gcc_cv_ld_sol2_emulation=yes
   26800     fi
   26801   elif test x$gcc_cv_ld != x; then
   26802     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
   26803        grep _sol2 > /dev/null; then
   26804       gcc_cv_ld_sol2_emulation=yes
   26805     fi
   26806   fi
   26807 fi
   26808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
   26809 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
   26810 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
   26811 
   26812 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
   26813 
   26814 fi
   26815 
   26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
   26817 $as_echo_n "checking linker --sysroot support... " >&6; }
   26818 if test "${gcc_cv_ld_sysroot+set}" = set; then :
   26819   $as_echo_n "(cached) " >&6
   26820 else
   26821   gcc_cv_ld_sysroot=no
   26822   if test $in_tree_ld = yes ; then
   26823       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
   26824         gcc_cv_ld_sysroot=yes
   26825       fi
   26826   elif test x$gcc_cv_ld != x; then
   26827     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
   26828       gcc_cv_ld_sysroot=yes
   26829     fi
   26830   fi
   26831 fi
   26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
   26833 $as_echo "$gcc_cv_ld_sysroot" >&6; }
   26834 if test x"$gcc_cv_ld_sysroot" = xyes; then
   26835 
   26836 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
   26837 
   26838 fi
   26839 
   26840 if test x$with_sysroot = x && test x$host = x$target \
   26841    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
   26842    && test "$prefix" != "NONE"; then
   26843 
   26844 cat >>confdefs.h <<_ACEOF
   26845 #define PREFIX_INCLUDE_DIR "$prefix/include"
   26846 _ACEOF
   26847 
   26848 fi
   26849 
   26850 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
   26851   if test "x$with_headers" != x; then
   26852     target_header_dir=$with_headers
   26853   elif test "x$with_sysroot" = x; then
   26854     target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
   26855   elif test "x$with_build_sysroot" != "x"; then
   26856     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
   26857   elif test "x$with_sysroot" = xyes; then
   26858     target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
   26859   else
   26860     target_header_dir="${with_sysroot}${native_system_header_dir}"
   26861   fi
   26862 else
   26863   target_header_dir=${native_system_header_dir}
   26864 fi
   26865 
   26866 # Test for stack protector support in target C library.
   26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
   26868 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
   26869 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
   26870   $as_echo_n "(cached) " >&6
   26871 else
   26872   gcc_cv_libc_provides_ssp=no
   26873     case "$target" in
   26874        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
   26875       # glibc 2.4 and later provides __stack_chk_fail and
   26876       # either __stack_chk_guard, or TLS access to stack guard canary.
   26877       if test -f $target_header_dir/features.h \
   26878 	 && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GNU_LIBRARY__[ 	]+([1-9][0-9]|[6-9])' \
   26879 	    $target_header_dir/features.h > /dev/null; then
   26880 	if $EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+([1-9][0-9]|[3-9])' \
   26881 	   $target_header_dir/features.h > /dev/null; then
   26882 	  gcc_cv_libc_provides_ssp=yes
   26883 	elif $EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC__[ 	]+2' \
   26884 	     $target_header_dir/features.h > /dev/null \
   26885 	     && $EGREP '^[ 	]*#[ 	]*define[ 	]+__GLIBC_MINOR__[ 	]+([1-9][0-9]|[4-9])' \
   26886 	     $target_header_dir/features.h > /dev/null; then
   26887 	  gcc_cv_libc_provides_ssp=yes
   26888 	elif $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC__[ 	]+1' \
   26889 	     $target_header_dir/features.h > /dev/null && \
   26890 	     test -f $target_header_dir/bits/uClibc_config.h && \
   26891 	     $EGREP '^[ 	]*#[ 	]*define[ 	]+__UCLIBC_HAS_SSP__[ 	]+1' \
   26892 	     $target_header_dir/bits/uClibc_config.h > /dev/null; then
   26893 	  gcc_cv_libc_provides_ssp=yes
   26894 	fi
   26895       # all versions of Bionic support stack protector
   26896       elif test -f $target_header_dir/sys/cdefs.h \
   26897         && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
   26898            $target_header_dir/sys/cdefs.h > /dev/null; then
   26899          gcc_cv_libc_provides_ssp=yes
   26900       fi
   26901 	;;
   26902        *-*-gnu*)
   26903 	 # Avoid complicated tests (see
   26904 	 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
   26905 	 # simply assert that glibc does provide this, which is true for all
   26906 	 # realistically usable GNU/Hurd configurations.
   26907 	 gcc_cv_libc_provides_ssp=yes;;
   26908        *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
   26909 	 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
   26910 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
   26911   gcc_cv_libc_provides_ssp=yes
   26912 else
   26913   echo "no __stack_chk_fail on this target"
   26914 fi
   26915 
   26916         ;;
   26917   *) gcc_cv_libc_provides_ssp=no ;;
   26918     esac
   26919 fi
   26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
   26921 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
   26922 
   26923 if test x$gcc_cv_libc_provides_ssp = xyes; then
   26924 
   26925 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
   26926 
   26927 fi
   26928 
   26929 # Test for <sys/sdt.h> on the target.
   26930 
   26931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
   26932 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
   26933 have_sys_sdt_h=no
   26934 if test -f $target_header_dir/sys/sdt.h; then
   26935   have_sys_sdt_h=yes
   26936 
   26937 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
   26938 
   26939 fi
   26940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
   26941 $as_echo "$have_sys_sdt_h" >&6; }
   26942 
   26943 # Check if TFmode long double should be used by default or not.
   26944 # Some glibc targets used DFmode long double, but with glibc 2.4
   26945 # and later they can use TFmode.
   26946 case "$target" in
   26947   powerpc*-*-linux* | \
   26948   sparc*-*-linux* | \
   26949   s390*-*-linux* | \
   26950   alpha*-*-linux*)
   26951 
   26952 # Check whether --with-long-double-128 was given.
   26953 if test "${with_long_double_128+set}" = set; then :
   26954   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
   26955 else
   26956   gcc_cv_target_ldbl128=no
   26957       grep '^[ 	]*#[ 	]*define[ 	][ 	]*__LONG_DOUBLE_MATH_OPTIONAL' \
   26958         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
   26959       && gcc_cv_target_ldbl128=yes
   26960 
   26961 fi
   26962 
   26963     ;;
   26964 esac
   26965 if test x$gcc_cv_target_ldbl128 = xyes; then
   26966 
   26967 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
   26968 
   26969 fi
   26970 
   26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
   26972 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
   26973 gcc_cv_target_dl_iterate_phdr=unknown
   26974 case "$target" in
   26975   # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
   26976   # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
   26977   # libdl there, both complicating its use and breaking compatibility
   26978   # between Solaris 10 updates.
   26979   *-*-solaris2.1[1-9]*)
   26980     # <link.h> needs both a dl_iterate_phdr declaration and support for
   26981     # compilation with largefile support.
   26982     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
   26983       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
   26984       gcc_cv_target_dl_iterate_phdr=yes
   26985     else
   26986       gcc_cv_target_dl_iterate_phdr=no
   26987     fi
   26988     ;;
   26989 esac
   26990 
   26991 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
   26992 
   26993 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
   26994 
   26995 fi
   26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
   26997 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
   26998 
   26999 # We no longer support different GC mechanisms.  Emit an error if
   27000 # the user configures with --with-gc.
   27001 
   27002 # Check whether --with-gc was given.
   27003 if test "${with_gc+set}" = set; then :
   27004   withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
   27005 fi
   27006 
   27007 
   27008 # Libraries to use on the host.  This will normally be set by the top
   27009 # level Makefile.  Here we simply capture the value for our Makefile.
   27010 if test -z "${HOST_LIBS+set}"; then
   27011   HOST_LIBS=
   27012 fi
   27013 
   27014 
   27015 # Use the system's zlib library.
   27016 zlibdir=-L../zlib
   27017 zlibinc="-I\$(srcdir)/../zlib"
   27018 
   27019 # Check whether --with-system-zlib was given.
   27020 if test "${with_system_zlib+set}" = set; then :
   27021   withval=$with_system_zlib; zlibdir=
   27022 zlibinc=
   27023 
   27024 fi
   27025 
   27026 
   27027 
   27028 
   27029 
   27030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   27031 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   27032     # Check whether --enable-maintainer-mode was given.
   27033 if test "${enable_maintainer_mode+set}" = set; then :
   27034   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
   27035 else
   27036   maintainer_mode=no
   27037 fi
   27038 
   27039 
   27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
   27041 $as_echo "$maintainer_mode" >&6; }
   27042 
   27043 if test "$maintainer_mode" = "yes"; then
   27044   MAINT=''
   27045 else
   27046   MAINT='#'
   27047 fi
   27048 
   27049 # --------------
   27050 # Language hooks
   27051 # --------------
   27052 
   27053 # Make empty files to contain the specs and options for each language.
   27054 # Then add #include lines to for a compiler that has specs and/or options.
   27055 
   27056 subdirs=
   27057 lang_opt_files=
   27058 lang_specs_files=
   27059 lang_tree_files=
   27060 # These (without "all_") are set in each config-lang.in.
   27061 # `language' must be a single word so is spelled singularly.
   27062 all_languages=
   27063 all_compilers=
   27064 all_outputs='Makefile'
   27065 # List of language makefile fragments.
   27066 all_lang_makefrags=
   27067 # Additional files for gengtype
   27068 all_gtfiles="$target_gtfiles"
   27069 
   27070 # These are the languages that are set in --enable-languages,
   27071 # and are available in the GCC tree.
   27072 all_selected_languages=
   27073 
   27074 # Add the language fragments.
   27075 # Languages are added via two mechanisms.  Some information must be
   27076 # recorded in makefile variables, these are defined in config-lang.in.
   27077 # We accumulate them and plug them into the main Makefile.
   27078 # The other mechanism is a set of hooks for each of the main targets
   27079 # like `clean', `install', etc.
   27080 
   27081 language_hooks="Make-hooks"
   27082 
   27083 for lang in ${srcdir}/*/config-lang.in
   27084 do
   27085 	test "$lang" = "${srcdir}/*/config-lang.in" && continue
   27086 
   27087         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
   27088         if test "x$lang_alias" = x
   27089         then
   27090               echo "$lang doesn't set \$language." 1>&2
   27091               exit 1
   27092         fi
   27093         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
   27094         subdirs="$subdirs $subdir"
   27095 
   27096 	# $gcc_subdir is where the gcc integration files are to be found
   27097 	# for a language, both for internal compiler purposes (compiler
   27098 	# sources implementing front-end to GCC tree converters), and for
   27099 	# build infrastructure purposes (Make-lang.in, etc.)
   27100 	#
   27101 	# This will be <subdir> (relative to $srcdir) if a line like
   27102 	# gcc_subdir="<subdir>" or gcc_subdir=<subdir>
   27103 	# is found in <langdir>/config-lang.in, and will remain <langdir>
   27104 	# otherwise.
   27105 	#
   27106 	# Except for the language alias (fetched above), the regular
   27107 	# "config-lang.in" contents are always retrieved from $gcc_subdir,
   27108 	# so a <langdir>/config-lang.in setting gcc_subdir typically sets
   27109 	# only this and the language alias.
   27110 
   27111         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
   27112         if [ "$gcc_subdir" = "" ]; then
   27113            gcc_subdir="$subdir"
   27114         fi
   27115 
   27116         case ",$enable_languages," in
   27117         *,$lang_alias,*)
   27118             all_selected_languages="$all_selected_languages $lang_alias"
   27119             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
   27120                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
   27121 	    fi
   27122 	    ;;
   27123         esac
   27124 
   27125 	language=
   27126 	boot_language=
   27127 	compilers=
   27128 	outputs=
   27129 	gtfiles=
   27130 	subdir_requires=
   27131 	. ${srcdir}/$gcc_subdir/config-lang.in
   27132 	if test "x$language" = x
   27133 	then
   27134 		echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
   27135 		exit 1
   27136 	fi
   27137 
   27138 	ok=:
   27139         case ",$enable_languages," in
   27140         	*,$lang_alias,*) ;;
   27141 		*)
   27142 			for i in $subdir_requires; do
   27143 				test -f "${srcdir}/$i/config-lang.in" && continue
   27144 				ok=false
   27145 				break
   27146 			done
   27147 		;;
   27148 	esac
   27149 	$ok || continue
   27150 
   27151 	all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
   27152 	if test -f $srcdir/$gcc_subdir/lang.opt; then
   27153 	    lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
   27154 	    all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
   27155 	fi
   27156 	if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
   27157 	    lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
   27158 	fi
   27159 	all_languages="$all_languages $language"
   27160 	all_compilers="$all_compilers $compilers"
   27161 	all_outputs="$all_outputs $outputs"
   27162 	all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
   27163         case ",$enable_languages," in
   27164         	*,lto,*)
   27165 
   27166 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
   27167 
   27168 		    enable_lto=yes
   27169 
   27170 		    ;;
   27171 		*) ;;
   27172 	esac
   27173 done
   27174 
   27175 check_languages=
   27176 for language in $all_selected_languages
   27177 do
   27178 	check_languages="$check_languages check-$language"
   27179 done
   27180 
   27181 # We link each language in with a set of hooks, reached indirectly via
   27182 # lang.${target}.  Only do so for selected languages.
   27183 
   27184 rm -f Make-hooks
   27185 touch Make-hooks
   27186 target_list="all.cross start.encap rest.encap tags \
   27187 	install-common install-man install-info install-pdf install-html dvi \
   27188 	pdf html uninstall info man srcextra srcman srcinfo \
   27189 	mostlyclean clean distclean maintainer-clean install-plugin"
   27190 
   27191 for t in $target_list
   27192 do
   27193 	x=
   27194 	for lang in $all_selected_languages
   27195 	do
   27196 		x="$x $lang.$t"
   27197 	done
   27198 	echo "lang.$t: $x" >> Make-hooks
   27199 done
   27200 
   27201 # --------
   27202 # Option include files
   27203 # --------
   27204 
   27205 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
   27206 option_includes="option-includes.mk"
   27207 
   27208 
   27209 # --------
   27210 # UNSORTED
   27211 # --------
   27212 
   27213 # Create .gdbinit.
   27214 
   27215 echo "dir ." > .gdbinit
   27216 echo "dir ${srcdir}" >> .gdbinit
   27217 if test x$gdb_needs_out_file_path = xyes
   27218 then
   27219 	echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
   27220 fi
   27221 if test "x$subdirs" != x; then
   27222 	for s in $subdirs
   27223 	do
   27224 		echo "dir ${srcdir}/$s" >> .gdbinit
   27225 	done
   27226 fi
   27227 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
   27228 
   27229 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
   27230 
   27231 
   27232 
   27233 # Find a directory in which to install a shared libgcc.
   27234 
   27235 # Check whether --enable-version-specific-runtime-libs was given.
   27236 if test "${enable_version_specific_runtime_libs+set}" = set; then :
   27237   enableval=$enable_version_specific_runtime_libs;
   27238 fi
   27239 
   27240 
   27241 # Substitute configuration variables
   27242 
   27243 
   27244 
   27245 
   27246 
   27247 
   27248 
   27249 
   27250 
   27251 
   27252 
   27253 
   27254 
   27255 
   27256 
   27257 
   27258 
   27259 
   27260 
   27261 
   27262 
   27263 
   27264 
   27265 
   27266 
   27267 
   27268 
   27269 
   27270 
   27271 
   27272 
   27273 
   27274 
   27275 
   27276 
   27277 
   27278 
   27279 
   27280 
   27281 
   27282 
   27283 
   27284 
   27285 
   27286 
   27287 
   27288 
   27289 
   27290 
   27291 
   27292 
   27293 
   27294 
   27295 
   27296 
   27297 
   27298 
   27299 
   27300 
   27301 
   27302 
   27303 
   27304 # Echo link setup.
   27305 if test x${build} = x${host} ; then
   27306   if test x${host} = x${target} ; then
   27307     echo "Links are now set up to build a native compiler for ${target}." 1>&2
   27308   else
   27309     echo "Links are now set up to build a cross-compiler" 1>&2
   27310     echo " from ${host} to ${target}." 1>&2
   27311   fi
   27312 else
   27313   if test x${host} = x${target} ; then
   27314     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
   27315     echo " for ${target}." 1>&2
   27316   else
   27317     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
   27318     echo " from ${host} to ${target}." 1>&2
   27319   fi
   27320 fi
   27321 
   27322 
   27323 
   27324 
   27325 
   27326 
   27327 
   27328 
   27329 
   27330 if test "x${CLOOGLIBS}" != "x" ; then
   27331 
   27332 $as_echo "#define HAVE_cloog 1" >>confdefs.h
   27333 
   27334 
   27335   # Check whether isl_schedule_constraints_compute_schedule is available;
   27336   # it's new in ISL-0.13.
   27337   saved_CFLAGS="$CFLAGS"
   27338   CFLAGS="$CFLAGS $ISLINC"
   27339   saved_LIBS="$LIBS"
   27340   LIBS="$LIBS $CLOOGLIBS $ISLLIBS $GMPLIBS"
   27341 
   27342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
   27343 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
   27344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27345 /* end confdefs.h.  */
   27346 #include <isl/schedule.h>
   27347 int
   27348 main ()
   27349 {
   27350 isl_schedule_constraints_compute_schedule (NULL);
   27351   ;
   27352   return 0;
   27353 }
   27354 _ACEOF
   27355 if ac_fn_c_try_link "$LINENO"; then :
   27356   ac_has_isl_schedule_constraints_compute_schedule=yes
   27357 else
   27358   ac_has_isl_schedule_constraints_compute_schedule=no
   27359 fi
   27360 rm -f core conftest.err conftest.$ac_objext \
   27361     conftest$ac_exeext conftest.$ac_ext
   27362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
   27363 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
   27364 
   27365   LIBS="$saved_LIBS"
   27366   CFLAGS="$saved_CFLAGS"
   27367 
   27368   if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
   27369 
   27370 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
   27371 
   27372   fi
   27373 fi
   27374 
   27375 
   27376 # Check for plugin support
   27377 # Check whether --enable-plugin was given.
   27378 if test "${enable_plugin+set}" = set; then :
   27379   enableval=$enable_plugin; enable_plugin=$enableval
   27380 else
   27381   enable_plugin=yes; default_plugin=yes
   27382 fi
   27383 
   27384 
   27385 pluginlibs=
   27386 
   27387 case "${host}" in
   27388   *-*-darwin*)
   27389     if test x$build = x$host; then
   27390       export_sym_check="nm${exeext} -g"
   27391     elif test x$host = x$target; then
   27392       export_sym_check="$gcc_cv_nm -g"
   27393     else
   27394       export_sym_check=
   27395     fi
   27396   ;;
   27397   *)
   27398     if test x$build = x$host; then
   27399       export_sym_check="objdump${exeext} -T"
   27400     elif test x$host = x$target; then
   27401       export_sym_check="$gcc_cv_objdump -T"
   27402     else
   27403       export_sym_check=
   27404     fi
   27405   ;;
   27406 esac
   27407 
   27408 if test x"$enable_plugin" = x"yes"; then
   27409 
   27410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
   27411 $as_echo_n "checking for exported symbols... " >&6; }
   27412   if test "x$export_sym_check" != x; then
   27413     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
   27414     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
   27415     if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
   27416       : # No need to use a flag
   27417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   27418 $as_echo "yes" >&6; }
   27419     else
   27420       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   27421 $as_echo "yes" >&6; }
   27422       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
   27423 $as_echo_n "checking for -rdynamic... " >&6; }
   27424       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
   27425       if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
   27426         plugin_rdynamic=yes
   27427         pluginlibs="-rdynamic"
   27428       else
   27429         plugin_rdynamic=no
   27430         enable_plugin=no
   27431       fi
   27432       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
   27433 $as_echo "$plugin_rdynamic" >&6; }
   27434     fi
   27435   else
   27436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
   27437 $as_echo "unable to check" >&6; }
   27438   fi
   27439 
   27440   # Check -ldl
   27441   saved_LIBS="$LIBS"
   27442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   27443 $as_echo_n "checking for library containing dlopen... " >&6; }
   27444 if test "${ac_cv_search_dlopen+set}" = set; then :
   27445   $as_echo_n "(cached) " >&6
   27446 else
   27447   ac_func_search_save_LIBS=$LIBS
   27448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27449 /* end confdefs.h.  */
   27450 
   27451 /* Override any GCC internal prototype to avoid an error.
   27452    Use char because int might match the return type of a GCC
   27453    builtin and then its argument prototype would still apply.  */
   27454 #ifdef __cplusplus
   27455 extern "C"
   27456 #endif
   27457 char dlopen ();
   27458 int
   27459 main ()
   27460 {
   27461 return dlopen ();
   27462   ;
   27463   return 0;
   27464 }
   27465 _ACEOF
   27466 for ac_lib in '' dl; do
   27467   if test -z "$ac_lib"; then
   27468     ac_res="none required"
   27469   else
   27470     ac_res=-l$ac_lib
   27471     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   27472   fi
   27473   if ac_fn_c_try_link "$LINENO"; then :
   27474   ac_cv_search_dlopen=$ac_res
   27475 fi
   27476 rm -f core conftest.err conftest.$ac_objext \
   27477     conftest$ac_exeext
   27478   if test "${ac_cv_search_dlopen+set}" = set; then :
   27479   break
   27480 fi
   27481 done
   27482 if test "${ac_cv_search_dlopen+set}" = set; then :
   27483 
   27484 else
   27485   ac_cv_search_dlopen=no
   27486 fi
   27487 rm conftest.$ac_ext
   27488 LIBS=$ac_func_search_save_LIBS
   27489 fi
   27490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   27491 $as_echo "$ac_cv_search_dlopen" >&6; }
   27492 ac_res=$ac_cv_search_dlopen
   27493 if test "$ac_res" != no; then :
   27494   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   27495 
   27496 fi
   27497 
   27498   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
   27499     pluginlibs="$pluginlibs -ldl"
   27500   fi
   27501   LIBS="$saved_LIBS"
   27502 
   27503   # Check that we can build shared objects with -fPIC -shared
   27504   saved_LDFLAGS="$LDFLAGS"
   27505   saved_CFLAGS="$CFLAGS"
   27506   case "${host}" in
   27507     *-*-darwin*)
   27508       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
   27509       CFLAGS="$CFLAGS -fPIC"
   27510       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
   27511     ;;
   27512     *)
   27513       CFLAGS="$CFLAGS -fPIC"
   27514       LDFLAGS="$LDFLAGS -fPIC -shared"
   27515     ;;
   27516   esac
   27517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
   27518 $as_echo_n "checking for -fPIC -shared... " >&6; }
   27519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   27520 /* end confdefs.h.  */
   27521 extern int X;
   27522 int
   27523 main ()
   27524 {
   27525 return X == 0;
   27526   ;
   27527   return 0;
   27528 }
   27529 _ACEOF
   27530 if ac_fn_c_try_link "$LINENO"; then :
   27531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   27532 $as_echo "yes" >&6; }; have_pic_shared=yes
   27533 else
   27534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   27535 $as_echo "no" >&6; }; have_pic_shared=no
   27536 fi
   27537 rm -f core conftest.err conftest.$ac_objext \
   27538     conftest$ac_exeext conftest.$ac_ext
   27539   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
   27540     pluginlibs=
   27541     enable_plugin=no
   27542   fi
   27543   LDFLAGS="$saved_LDFLAGS"
   27544   CFLAGS="$saved_CFLAGS"
   27545 
   27546   # If plugin support had been requested but not available, fail.
   27547   if test x"$enable_plugin" = x"no" ; then
   27548     if test x"$default_plugin" != x"yes"; then
   27549       as_fn_error "
   27550 Building GCC with plugin support requires a host that supports
   27551 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
   27552     fi
   27553   fi
   27554 fi
   27555 
   27556 
   27557 
   27558 if test x"$enable_plugin" = x"yes"; then
   27559 
   27560 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
   27561 
   27562 fi
   27563 
   27564 
   27565 # Check whether --enable-libquadmath-support was given.
   27566 if test "${enable_libquadmath_support+set}" = set; then :
   27567   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
   27568 else
   27569   ENABLE_LIBQUADMATH_SUPPORT=yes
   27570 fi
   27571 
   27572 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
   27573 
   27574 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
   27575 
   27576 fi
   27577 
   27578 
   27579 # Specify what hash style to use by default.
   27580 
   27581 # Check whether --with-linker-hash-style was given.
   27582 if test "${with_linker_hash_style+set}" = set; then :
   27583   withval=$with_linker_hash_style; case x"$withval" in
   27584    xsysv)
   27585      LINKER_HASH_STYLE=sysv
   27586      ;;
   27587    xgnu)
   27588      LINKER_HASH_STYLE=gnu
   27589      ;;
   27590    xboth)
   27591      LINKER_HASH_STYLE=both
   27592      ;;
   27593    *)
   27594      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
   27595      ;;
   27596  esac
   27597 else
   27598   LINKER_HASH_STYLE=''
   27599 fi
   27600 
   27601 if test x"${LINKER_HASH_STYLE}" != x; then
   27602 
   27603 cat >>confdefs.h <<_ACEOF
   27604 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
   27605 _ACEOF
   27606 
   27607 fi
   27608 
   27609 # Configure the subdirectories
   27610 # AC_CONFIG_SUBDIRS($subdirs)
   27611 
   27612 # Create the Makefile
   27613 # and configure language subdirectories
   27614 ac_config_files="$ac_config_files $all_outputs"
   27615 
   27616 
   27617 ac_config_commands="$ac_config_commands default"
   27618 
   27619 cat >confcache <<\_ACEOF
   27620 # This file is a shell script that caches the results of configure
   27621 # tests run on this system so they can be shared between configure
   27622 # scripts and configure runs, see configure's option --config-cache.
   27623 # It is not useful on other systems.  If it contains results you don't
   27624 # want to keep, you may remove or edit it.
   27625 #
   27626 # config.status only pays attention to the cache file if you give it
   27627 # the --recheck option to rerun configure.
   27628 #
   27629 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   27630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   27631 # following values.
   27632 
   27633 _ACEOF
   27634 
   27635 # The following way of writing the cache mishandles newlines in values,
   27636 # but we know of no workaround that is simple, portable, and efficient.
   27637 # So, we kill variables containing newlines.
   27638 # Ultrix sh set writes to stderr and can't be redirected directly,
   27639 # and sets the high bit in the cache file unless we assign to the vars.
   27640 (
   27641   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   27642     eval ac_val=\$$ac_var
   27643     case $ac_val in #(
   27644     *${as_nl}*)
   27645       case $ac_var in #(
   27646       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   27647 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   27648       esac
   27649       case $ac_var in #(
   27650       _ | IFS | as_nl) ;; #(
   27651       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   27652       *) { eval $ac_var=; unset $ac_var;} ;;
   27653       esac ;;
   27654     esac
   27655   done
   27656 
   27657   (set) 2>&1 |
   27658     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   27659     *${as_nl}ac_space=\ *)
   27660       # `set' does not quote correctly, so add quotes: double-quote
   27661       # substitution turns \\\\ into \\, and sed turns \\ into \.
   27662       sed -n \
   27663 	"s/'/'\\\\''/g;
   27664 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   27665       ;; #(
   27666     *)
   27667       # `set' quotes correctly as required by POSIX, so do not add quotes.
   27668       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   27669       ;;
   27670     esac |
   27671     sort
   27672 ) |
   27673   sed '
   27674      /^ac_cv_env_/b end
   27675      t clear
   27676      :clear
   27677      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   27678      t end
   27679      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   27680      :end' >>confcache
   27681 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   27682   if test -w "$cache_file"; then
   27683     test "x$cache_file" != "x/dev/null" &&
   27684       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   27685 $as_echo "$as_me: updating cache $cache_file" >&6;}
   27686     cat confcache >$cache_file
   27687   else
   27688     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   27689 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   27690   fi
   27691 fi
   27692 rm -f confcache
   27693 
   27694 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   27695 # Let make expand exec_prefix.
   27696 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   27697 
   27698 DEFS=-DHAVE_CONFIG_H
   27699 
   27700 ac_libobjs=
   27701 ac_ltlibobjs=
   27702 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   27703   # 1. Remove the extension, and $U if already installed.
   27704   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   27705   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   27706   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   27707   #    will be set to the directory where LIBOBJS objects are built.
   27708   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   27709   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   27710 done
   27711 LIBOBJS=$ac_libobjs
   27712 
   27713 LTLIBOBJS=$ac_ltlibobjs
   27714 
   27715 
   27716 
   27717 
   27718 : ${CONFIG_STATUS=./config.status}
   27719 ac_write_fail=0
   27720 ac_clean_files_save=$ac_clean_files
   27721 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   27722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   27723 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   27724 as_write_fail=0
   27725 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   27726 #! $SHELL
   27727 # Generated by $as_me.
   27728 # Run this file to recreate the current configuration.
   27729 # Compiler output produced by configure, useful for debugging
   27730 # configure, is in config.log if it exists.
   27731 
   27732 debug=false
   27733 ac_cs_recheck=false
   27734 ac_cs_silent=false
   27735 
   27736 SHELL=\${CONFIG_SHELL-$SHELL}
   27737 export SHELL
   27738 _ASEOF
   27739 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   27740 ## -------------------- ##
   27741 ## M4sh Initialization. ##
   27742 ## -------------------- ##
   27743 
   27744 # Be more Bourne compatible
   27745 DUALCASE=1; export DUALCASE # for MKS sh
   27746 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   27747   emulate sh
   27748   NULLCMD=:
   27749   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   27750   # is contrary to our usage.  Disable this feature.
   27751   alias -g '${1+"$@"}'='"$@"'
   27752   setopt NO_GLOB_SUBST
   27753 else
   27754   case `(set -o) 2>/dev/null` in #(
   27755   *posix*) :
   27756     set -o posix ;; #(
   27757   *) :
   27758      ;;
   27759 esac
   27760 fi
   27761 
   27762 
   27763 as_nl='
   27764 '
   27765 export as_nl
   27766 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   27767 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   27768 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   27769 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   27770 # Prefer a ksh shell builtin over an external printf program on Solaris,
   27771 # but without wasting forks for bash or zsh.
   27772 if test -z "$BASH_VERSION$ZSH_VERSION" \
   27773     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   27774   as_echo='print -r --'
   27775   as_echo_n='print -rn --'
   27776 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   27777   as_echo='printf %s\n'
   27778   as_echo_n='printf %s'
   27779 else
   27780   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   27781     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   27782     as_echo_n='/usr/ucb/echo -n'
   27783   else
   27784     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   27785     as_echo_n_body='eval
   27786       arg=$1;
   27787       case $arg in #(
   27788       *"$as_nl"*)
   27789 	expr "X$arg" : "X\\(.*\\)$as_nl";
   27790 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   27791       esac;
   27792       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   27793     '
   27794     export as_echo_n_body
   27795     as_echo_n='sh -c $as_echo_n_body as_echo'
   27796   fi
   27797   export as_echo_body
   27798   as_echo='sh -c $as_echo_body as_echo'
   27799 fi
   27800 
   27801 # The user is always right.
   27802 if test "${PATH_SEPARATOR+set}" != set; then
   27803   PATH_SEPARATOR=:
   27804   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   27805     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   27806       PATH_SEPARATOR=';'
   27807   }
   27808 fi
   27809 
   27810 
   27811 # IFS
   27812 # We need space, tab and new line, in precisely that order.  Quoting is
   27813 # there to prevent editors from complaining about space-tab.
   27814 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   27815 # splitting by setting IFS to empty value.)
   27816 IFS=" ""	$as_nl"
   27817 
   27818 # Find who we are.  Look in the path if we contain no directory separator.
   27819 case $0 in #((
   27820   *[\\/]* ) as_myself=$0 ;;
   27821   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   27822 for as_dir in $PATH
   27823 do
   27824   IFS=$as_save_IFS
   27825   test -z "$as_dir" && as_dir=.
   27826     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   27827   done
   27828 IFS=$as_save_IFS
   27829 
   27830      ;;
   27831 esac
   27832 # We did not find ourselves, most probably we were run as `sh COMMAND'
   27833 # in which case we are not to be found in the path.
   27834 if test "x$as_myself" = x; then
   27835   as_myself=$0
   27836 fi
   27837 if test ! -f "$as_myself"; then
   27838   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   27839   exit 1
   27840 fi
   27841 
   27842 # Unset variables that we do not need and which cause bugs (e.g. in
   27843 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   27844 # suppresses any "Segmentation fault" message there.  '((' could
   27845 # trigger a bug in pdksh 5.2.14.
   27846 for as_var in BASH_ENV ENV MAIL MAILPATH
   27847 do eval test x\${$as_var+set} = xset \
   27848   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   27849 done
   27850 PS1='$ '
   27851 PS2='> '
   27852 PS4='+ '
   27853 
   27854 # NLS nuisances.
   27855 LC_ALL=C
   27856 export LC_ALL
   27857 LANGUAGE=C
   27858 export LANGUAGE
   27859 
   27860 # CDPATH.
   27861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   27862 
   27863 
   27864 # as_fn_error ERROR [LINENO LOG_FD]
   27865 # ---------------------------------
   27866 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   27867 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   27868 # script with status $?, using 1 if that was 0.
   27869 as_fn_error ()
   27870 {
   27871   as_status=$?; test $as_status -eq 0 && as_status=1
   27872   if test "$3"; then
   27873     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   27874     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
   27875   fi
   27876   $as_echo "$as_me: error: $1" >&2
   27877   as_fn_exit $as_status
   27878 } # as_fn_error
   27879 
   27880 
   27881 # as_fn_set_status STATUS
   27882 # -----------------------
   27883 # Set $? to STATUS, without forking.
   27884 as_fn_set_status ()
   27885 {
   27886   return $1
   27887 } # as_fn_set_status
   27888 
   27889 # as_fn_exit STATUS
   27890 # -----------------
   27891 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   27892 as_fn_exit ()
   27893 {
   27894   set +e
   27895   as_fn_set_status $1
   27896   exit $1
   27897 } # as_fn_exit
   27898 
   27899 # as_fn_unset VAR
   27900 # ---------------
   27901 # Portably unset VAR.
   27902 as_fn_unset ()
   27903 {
   27904   { eval $1=; unset $1;}
   27905 }
   27906 as_unset=as_fn_unset
   27907 # as_fn_append VAR VALUE
   27908 # ----------------------
   27909 # Append the text in VALUE to the end of the definition contained in VAR. Take
   27910 # advantage of any shell optimizations that allow amortized linear growth over
   27911 # repeated appends, instead of the typical quadratic growth present in naive
   27912 # implementations.
   27913 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   27914   eval 'as_fn_append ()
   27915   {
   27916     eval $1+=\$2
   27917   }'
   27918 else
   27919   as_fn_append ()
   27920   {
   27921     eval $1=\$$1\$2
   27922   }
   27923 fi # as_fn_append
   27924 
   27925 # as_fn_arith ARG...
   27926 # ------------------
   27927 # Perform arithmetic evaluation on the ARGs, and store the result in the
   27928 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   27929 # must be portable across $(()) and expr.
   27930 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   27931   eval 'as_fn_arith ()
   27932   {
   27933     as_val=$(( $* ))
   27934   }'
   27935 else
   27936   as_fn_arith ()
   27937   {
   27938     as_val=`expr "$@" || test $? -eq 1`
   27939   }
   27940 fi # as_fn_arith
   27941 
   27942 
   27943 if expr a : '\(a\)' >/dev/null 2>&1 &&
   27944    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   27945   as_expr=expr
   27946 else
   27947   as_expr=false
   27948 fi
   27949 
   27950 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   27951   as_basename=basename
   27952 else
   27953   as_basename=false
   27954 fi
   27955 
   27956 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   27957   as_dirname=dirname
   27958 else
   27959   as_dirname=false
   27960 fi
   27961 
   27962 as_me=`$as_basename -- "$0" ||
   27963 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   27964 	 X"$0" : 'X\(//\)$' \| \
   27965 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   27966 $as_echo X/"$0" |
   27967     sed '/^.*\/\([^/][^/]*\)\/*$/{
   27968 	    s//\1/
   27969 	    q
   27970 	  }
   27971 	  /^X\/\(\/\/\)$/{
   27972 	    s//\1/
   27973 	    q
   27974 	  }
   27975 	  /^X\/\(\/\).*/{
   27976 	    s//\1/
   27977 	    q
   27978 	  }
   27979 	  s/.*/./; q'`
   27980 
   27981 # Avoid depending upon Character Ranges.
   27982 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   27983 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   27984 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   27985 as_cr_digits='0123456789'
   27986 as_cr_alnum=$as_cr_Letters$as_cr_digits
   27987 
   27988 ECHO_C= ECHO_N= ECHO_T=
   27989 case `echo -n x` in #(((((
   27990 -n*)
   27991   case `echo 'xy\c'` in
   27992   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   27993   xy)  ECHO_C='\c';;
   27994   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   27995        ECHO_T='	';;
   27996   esac;;
   27997 *)
   27998   ECHO_N='-n';;
   27999 esac
   28000 
   28001 rm -f conf$$ conf$$.exe conf$$.file
   28002 if test -d conf$$.dir; then
   28003   rm -f conf$$.dir/conf$$.file
   28004 else
   28005   rm -f conf$$.dir
   28006   mkdir conf$$.dir 2>/dev/null
   28007 fi
   28008 if (echo >conf$$.file) 2>/dev/null; then
   28009   if ln -s conf$$.file conf$$ 2>/dev/null; then
   28010     as_ln_s='ln -s'
   28011     # ... but there are two gotchas:
   28012     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   28013     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   28014     # In both cases, we have to default to `cp -p'.
   28015     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   28016       as_ln_s='cp -p'
   28017   elif ln conf$$.file conf$$ 2>/dev/null; then
   28018     as_ln_s=ln
   28019   else
   28020     as_ln_s='cp -p'
   28021   fi
   28022 else
   28023   as_ln_s='cp -p'
   28024 fi
   28025 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   28026 rmdir conf$$.dir 2>/dev/null
   28027 
   28028 
   28029 # as_fn_mkdir_p
   28030 # -------------
   28031 # Create "$as_dir" as a directory, including parents if necessary.
   28032 as_fn_mkdir_p ()
   28033 {
   28034 
   28035   case $as_dir in #(
   28036   -*) as_dir=./$as_dir;;
   28037   esac
   28038   test -d "$as_dir" || eval $as_mkdir_p || {
   28039     as_dirs=
   28040     while :; do
   28041       case $as_dir in #(
   28042       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   28043       *) as_qdir=$as_dir;;
   28044       esac
   28045       as_dirs="'$as_qdir' $as_dirs"
   28046       as_dir=`$as_dirname -- "$as_dir" ||
   28047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   28048 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   28049 	 X"$as_dir" : 'X\(//\)$' \| \
   28050 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   28051 $as_echo X"$as_dir" |
   28052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   28053 	    s//\1/
   28054 	    q
   28055 	  }
   28056 	  /^X\(\/\/\)[^/].*/{
   28057 	    s//\1/
   28058 	    q
   28059 	  }
   28060 	  /^X\(\/\/\)$/{
   28061 	    s//\1/
   28062 	    q
   28063 	  }
   28064 	  /^X\(\/\).*/{
   28065 	    s//\1/
   28066 	    q
   28067 	  }
   28068 	  s/.*/./; q'`
   28069       test -d "$as_dir" && break
   28070     done
   28071     test -z "$as_dirs" || eval "mkdir $as_dirs"
   28072   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
   28073 
   28074 
   28075 } # as_fn_mkdir_p
   28076 if mkdir -p . 2>/dev/null; then
   28077   as_mkdir_p='mkdir -p "$as_dir"'
   28078 else
   28079   test -d ./-p && rmdir ./-p
   28080   as_mkdir_p=false
   28081 fi
   28082 
   28083 if test -x / >/dev/null 2>&1; then
   28084   as_test_x='test -x'
   28085 else
   28086   if ls -dL / >/dev/null 2>&1; then
   28087     as_ls_L_option=L
   28088   else
   28089     as_ls_L_option=
   28090   fi
   28091   as_test_x='
   28092     eval sh -c '\''
   28093       if test -d "$1"; then
   28094 	test -d "$1/.";
   28095       else
   28096 	case $1 in #(
   28097 	-*)set "./$1";;
   28098 	esac;
   28099 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   28100 	???[sx]*):;;*)false;;esac;fi
   28101     '\'' sh
   28102   '
   28103 fi
   28104 as_executable_p=$as_test_x
   28105 
   28106 # Sed expression to map a string onto a valid CPP name.
   28107 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   28108 
   28109 # Sed expression to map a string onto a valid variable name.
   28110 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   28111 
   28112 
   28113 exec 6>&1
   28114 ## ----------------------------------- ##
   28115 ## Main body of $CONFIG_STATUS script. ##
   28116 ## ----------------------------------- ##
   28117 _ASEOF
   28118 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   28119 
   28120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28121 # Save the log message, to keep $0 and so on meaningful, and to
   28122 # report actual input values of CONFIG_FILES etc. instead of their
   28123 # values after options handling.
   28124 ac_log="
   28125 This file was extended by $as_me, which was
   28126 generated by GNU Autoconf 2.64.  Invocation command line was
   28127 
   28128   CONFIG_FILES    = $CONFIG_FILES
   28129   CONFIG_HEADERS  = $CONFIG_HEADERS
   28130   CONFIG_LINKS    = $CONFIG_LINKS
   28131   CONFIG_COMMANDS = $CONFIG_COMMANDS
   28132   $ $0 $@
   28133 
   28134 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   28135 "
   28136 
   28137 _ACEOF
   28138 
   28139 case $ac_config_files in *"
   28140 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   28141 esac
   28142 
   28143 case $ac_config_headers in *"
   28144 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   28145 esac
   28146 
   28147 
   28148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28149 # Files that config.status was made for.
   28150 config_files="$ac_config_files"
   28151 config_headers="$ac_config_headers"
   28152 config_commands="$ac_config_commands"
   28153 
   28154 _ACEOF
   28155 
   28156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28157 ac_cs_usage="\
   28158 \`$as_me' instantiates files and other configuration actions
   28159 from templates according to the current configuration.  Unless the files
   28160 and actions are specified as TAGs, all are instantiated by default.
   28161 
   28162 Usage: $0 [OPTION]... [TAG]...
   28163 
   28164   -h, --help       print this help, then exit
   28165   -V, --version    print version number and configuration settings, then exit
   28166   -q, --quiet, --silent
   28167                    do not print progress messages
   28168   -d, --debug      don't remove temporary files
   28169       --recheck    update $as_me by reconfiguring in the same conditions
   28170       --file=FILE[:TEMPLATE]
   28171                    instantiate the configuration file FILE
   28172       --header=FILE[:TEMPLATE]
   28173                    instantiate the configuration header FILE
   28174 
   28175 Configuration files:
   28176 $config_files
   28177 
   28178 Configuration headers:
   28179 $config_headers
   28180 
   28181 Configuration commands:
   28182 $config_commands
   28183 
   28184 Report bugs to the package provider."
   28185 
   28186 _ACEOF
   28187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28188 ac_cs_version="\\
   28189 config.status
   28190 configured by $0, generated by GNU Autoconf 2.64,
   28191   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   28192 
   28193 Copyright (C) 2009 Free Software Foundation, Inc.
   28194 This config.status script is free software; the Free Software Foundation
   28195 gives unlimited permission to copy, distribute and modify it."
   28196 
   28197 ac_pwd='$ac_pwd'
   28198 srcdir='$srcdir'
   28199 AWK='$AWK'
   28200 test -n "\$AWK" || AWK=awk
   28201 _ACEOF
   28202 
   28203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28204 # The default lists apply if the user does not specify any file.
   28205 ac_need_defaults=:
   28206 while test $# != 0
   28207 do
   28208   case $1 in
   28209   --*=*)
   28210     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   28211     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   28212     ac_shift=:
   28213     ;;
   28214   *)
   28215     ac_option=$1
   28216     ac_optarg=$2
   28217     ac_shift=shift
   28218     ;;
   28219   esac
   28220 
   28221   case $ac_option in
   28222   # Handling of the options.
   28223   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   28224     ac_cs_recheck=: ;;
   28225   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   28226     $as_echo "$ac_cs_version"; exit ;;
   28227   --debug | --debu | --deb | --de | --d | -d )
   28228     debug=: ;;
   28229   --file | --fil | --fi | --f )
   28230     $ac_shift
   28231     case $ac_optarg in
   28232     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   28233     esac
   28234     as_fn_append CONFIG_FILES " '$ac_optarg'"
   28235     ac_need_defaults=false;;
   28236   --header | --heade | --head | --hea )
   28237     $ac_shift
   28238     case $ac_optarg in
   28239     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   28240     esac
   28241     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   28242     ac_need_defaults=false;;
   28243   --he | --h)
   28244     # Conflict between --help and --header
   28245     as_fn_error "ambiguous option: \`$1'
   28246 Try \`$0 --help' for more information.";;
   28247   --help | --hel | -h )
   28248     $as_echo "$ac_cs_usage"; exit ;;
   28249   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   28250   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   28251     ac_cs_silent=: ;;
   28252 
   28253   # This is an error.
   28254   -*) as_fn_error "unrecognized option: \`$1'
   28255 Try \`$0 --help' for more information." ;;
   28256 
   28257   *) as_fn_append ac_config_targets " $1"
   28258      ac_need_defaults=false ;;
   28259 
   28260   esac
   28261   shift
   28262 done
   28263 
   28264 ac_configure_extra_args=
   28265 
   28266 if $ac_cs_silent; then
   28267   exec 6>/dev/null
   28268   ac_configure_extra_args="$ac_configure_extra_args --silent"
   28269 fi
   28270 
   28271 _ACEOF
   28272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28273 if \$ac_cs_recheck; then
   28274   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   28275   shift
   28276   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   28277   CONFIG_SHELL='$SHELL'
   28278   export CONFIG_SHELL
   28279   exec "\$@"
   28280 fi
   28281 
   28282 _ACEOF
   28283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28284 exec 5>>config.log
   28285 {
   28286   echo
   28287   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   28288 ## Running $as_me. ##
   28289 _ASBOX
   28290   $as_echo "$ac_log"
   28291 } >&5
   28292 
   28293 _ACEOF
   28294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28295 #
   28296 # INIT-COMMANDS
   28297 #
   28298 subdirs='$subdirs'
   28299 
   28300 _ACEOF
   28301 
   28302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28303 
   28304 # Handling of arguments.
   28305 for ac_config_target in $ac_config_targets
   28306 do
   28307   case $ac_config_target in
   28308     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
   28309     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
   28310     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
   28311     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
   28312     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
   28313     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   28314 
   28315   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   28316   esac
   28317 done
   28318 
   28319 
   28320 # If the user did not use the arguments to specify the items to instantiate,
   28321 # then the envvar interface is used.  Set only those that are not.
   28322 # We use the long form for the default assignment because of an extremely
   28323 # bizarre bug on SunOS 4.1.3.
   28324 if $ac_need_defaults; then
   28325   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   28326   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   28327   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   28328 fi
   28329 
   28330 # Have a temporary directory for convenience.  Make it in the build tree
   28331 # simply because there is no reason against having it here, and in addition,
   28332 # creating and moving files from /tmp can sometimes cause problems.
   28333 # Hook for its removal unless debugging.
   28334 # Note that there is a small window in which the directory will not be cleaned:
   28335 # after its creation but before its name has been assigned to `$tmp'.
   28336 $debug ||
   28337 {
   28338   tmp=
   28339   trap 'exit_status=$?
   28340   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   28341 ' 0
   28342   trap 'as_fn_exit 1' 1 2 13 15
   28343 }
   28344 # Create a (secure) tmp directory for tmp files.
   28345 
   28346 {
   28347   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   28348   test -n "$tmp" && test -d "$tmp"
   28349 }  ||
   28350 {
   28351   tmp=./conf$$-$RANDOM
   28352   (umask 077 && mkdir "$tmp")
   28353 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
   28354 
   28355 # Set up the scripts for CONFIG_FILES section.
   28356 # No need to generate them if there are no CONFIG_FILES.
   28357 # This happens for instance with `./config.status config.h'.
   28358 if test -n "$CONFIG_FILES"; then
   28359 
   28360 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   28361   ac_cs_awk_getline=:
   28362   ac_cs_awk_pipe_init=
   28363   ac_cs_awk_read_file='
   28364       while ((getline aline < (F[key])) > 0)
   28365 	print(aline)
   28366       close(F[key])'
   28367   ac_cs_awk_pipe_fini=
   28368 else
   28369   ac_cs_awk_getline=false
   28370   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   28371   ac_cs_awk_read_file='
   28372       print "|#_!!_#|"
   28373       print "cat " F[key] " &&"
   28374       '$ac_cs_awk_pipe_init
   28375   # The final `:' finishes the AND list.
   28376   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   28377 fi
   28378 ac_cr=`echo X | tr X '\015'`
   28379 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   28380 # But we know of no other shell where ac_cr would be empty at this
   28381 # point, so we can use a bashism as a fallback.
   28382 if test "x$ac_cr" = x; then
   28383   eval ac_cr=\$\'\\r\'
   28384 fi
   28385 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   28386 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   28387   ac_cs_awk_cr='\r'
   28388 else
   28389   ac_cs_awk_cr=$ac_cr
   28390 fi
   28391 
   28392 echo 'BEGIN {' >"$tmp/subs1.awk" &&
   28393 _ACEOF
   28394 
   28395 # Create commands to substitute file output variables.
   28396 {
   28397   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   28398   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
   28399   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   28400   echo "_ACAWK" &&
   28401   echo "_ACEOF"
   28402 } >conf$$files.sh &&
   28403 . ./conf$$files.sh ||
   28404   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   28405 rm -f conf$$files.sh
   28406 
   28407 {
   28408   echo "cat >conf$$subs.awk <<_ACEOF" &&
   28409   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   28410   echo "_ACEOF"
   28411 } >conf$$subs.sh ||
   28412   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   28413 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
   28414 ac_delim='%!_!# '
   28415 for ac_last_try in false false false false false :; do
   28416   . ./conf$$subs.sh ||
   28417     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   28418 
   28419   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   28420   if test $ac_delim_n = $ac_delim_num; then
   28421     break
   28422   elif $ac_last_try; then
   28423     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   28424   else
   28425     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   28426   fi
   28427 done
   28428 rm -f conf$$subs.sh
   28429 
   28430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28431 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
   28432 _ACEOF
   28433 sed -n '
   28434 h
   28435 s/^/S["/; s/!.*/"]=/
   28436 p
   28437 g
   28438 s/^[^!]*!//
   28439 :repl
   28440 t repl
   28441 s/'"$ac_delim"'$//
   28442 t delim
   28443 :nl
   28444 h
   28445 s/\(.\{148\}\).*/\1/
   28446 t more1
   28447 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   28448 p
   28449 n
   28450 b repl
   28451 :more1
   28452 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   28453 p
   28454 g
   28455 s/.\{148\}//
   28456 t nl
   28457 :delim
   28458 h
   28459 s/\(.\{148\}\).*/\1/
   28460 t more2
   28461 s/["\\]/\\&/g; s/^/"/; s/$/"/
   28462 p
   28463 b
   28464 :more2
   28465 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   28466 p
   28467 g
   28468 s/.\{148\}//
   28469 t delim
   28470 ' <conf$$subs.awk | sed '
   28471 /^[^""]/{
   28472   N
   28473   s/\n//
   28474 }
   28475 ' >>$CONFIG_STATUS || ac_write_fail=1
   28476 rm -f conf$$subs.awk
   28477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28478 _ACAWK
   28479 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
   28480   for (key in S) S_is_set[key] = 1
   28481   FS = ""
   28482   \$ac_cs_awk_pipe_init
   28483 }
   28484 {
   28485   line = $ 0
   28486   nfields = split(line, field, "@")
   28487   substed = 0
   28488   len = length(field[1])
   28489   for (i = 2; i < nfields; i++) {
   28490     key = field[i]
   28491     keylen = length(key)
   28492     if (S_is_set[key]) {
   28493       value = S[key]
   28494       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   28495       len += length(value) + length(field[++i])
   28496       substed = 1
   28497     } else
   28498       len += 1 + keylen
   28499   }
   28500   if (nfields == 3 && !substed) {
   28501     key = field[2]
   28502     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   28503       \$ac_cs_awk_read_file
   28504       next
   28505     }
   28506   }
   28507   print line
   28508 }
   28509 \$ac_cs_awk_pipe_fini
   28510 _ACAWK
   28511 _ACEOF
   28512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28513 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   28514   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   28515 else
   28516   cat
   28517 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
   28518   || as_fn_error "could not setup config files machinery" "$LINENO" 5
   28519 _ACEOF
   28520 
   28521 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   28522 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   28523 # trailing colons and then remove the whole line if VPATH becomes empty
   28524 # (actually we leave an empty line to preserve line numbers).
   28525 if test "x$srcdir" = x.; then
   28526   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   28527 s/:*\$(srcdir):*/:/
   28528 s/:*\${srcdir}:*/:/
   28529 s/:*@srcdir@:*/:/
   28530 s/^\([^=]*=[	 ]*\):*/\1/
   28531 s/:*$//
   28532 s/^[^=]*=[	 ]*$//
   28533 }'
   28534 fi
   28535 
   28536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28537 fi # test -n "$CONFIG_FILES"
   28538 
   28539 # Set up the scripts for CONFIG_HEADERS section.
   28540 # No need to generate them if there are no CONFIG_HEADERS.
   28541 # This happens for instance with `./config.status Makefile'.
   28542 if test -n "$CONFIG_HEADERS"; then
   28543 cat >"$tmp/defines.awk" <<\_ACAWK ||
   28544 BEGIN {
   28545 _ACEOF
   28546 
   28547 # Transform confdefs.h into an awk script `defines.awk', embedded as
   28548 # here-document in config.status, that substitutes the proper values into
   28549 # config.h.in to produce config.h.
   28550 
   28551 # Create a delimiter string that does not exist in confdefs.h, to ease
   28552 # handling of long lines.
   28553 ac_delim='%!_!# '
   28554 for ac_last_try in false false :; do
   28555   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
   28556   if test -z "$ac_t"; then
   28557     break
   28558   elif $ac_last_try; then
   28559     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
   28560   else
   28561     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   28562   fi
   28563 done
   28564 
   28565 # For the awk script, D is an array of macro values keyed by name,
   28566 # likewise P contains macro parameters if any.  Preserve backslash
   28567 # newline sequences.
   28568 
   28569 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   28570 sed -n '
   28571 s/.\{148\}/&'"$ac_delim"'/g
   28572 t rset
   28573 :rset
   28574 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   28575 t def
   28576 d
   28577 :def
   28578 s/\\$//
   28579 t bsnl
   28580 s/["\\]/\\&/g
   28581 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   28582 D["\1"]=" \3"/p
   28583 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   28584 d
   28585 :bsnl
   28586 s/["\\]/\\&/g
   28587 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   28588 D["\1"]=" \3\\\\\\n"\\/p
   28589 t cont
   28590 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   28591 t cont
   28592 d
   28593 :cont
   28594 n
   28595 s/.\{148\}/&'"$ac_delim"'/g
   28596 t clear
   28597 :clear
   28598 s/\\$//
   28599 t bsnlc
   28600 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   28601 d
   28602 :bsnlc
   28603 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   28604 b cont
   28605 ' <confdefs.h | sed '
   28606 s/'"$ac_delim"'/"\\\
   28607 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   28608 
   28609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28610   for (key in D) D_is_set[key] = 1
   28611   FS = ""
   28612 }
   28613 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   28614   line = \$ 0
   28615   split(line, arg, " ")
   28616   if (arg[1] == "#") {
   28617     defundef = arg[2]
   28618     mac1 = arg[3]
   28619   } else {
   28620     defundef = substr(arg[1], 2)
   28621     mac1 = arg[2]
   28622   }
   28623   split(mac1, mac2, "(") #)
   28624   macro = mac2[1]
   28625   prefix = substr(line, 1, index(line, defundef) - 1)
   28626   if (D_is_set[macro]) {
   28627     # Preserve the white space surrounding the "#".
   28628     print prefix "define", macro P[macro] D[macro]
   28629     next
   28630   } else {
   28631     # Replace #undef with comments.  This is necessary, for example,
   28632     # in the case of _POSIX_SOURCE, which is predefined and required
   28633     # on some systems where configure will not decide to define it.
   28634     if (defundef == "undef") {
   28635       print "/*", prefix defundef, macro, "*/"
   28636       next
   28637     }
   28638   }
   28639 }
   28640 { print }
   28641 _ACAWK
   28642 _ACEOF
   28643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28644   as_fn_error "could not setup config headers machinery" "$LINENO" 5
   28645 fi # test -n "$CONFIG_HEADERS"
   28646 
   28647 
   28648 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   28649 shift
   28650 for ac_tag
   28651 do
   28652   case $ac_tag in
   28653   :[FHLC]) ac_mode=$ac_tag; continue;;
   28654   esac
   28655   case $ac_mode$ac_tag in
   28656   :[FHL]*:*);;
   28657   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
   28658   :[FH]-) ac_tag=-:-;;
   28659   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   28660   esac
   28661   ac_save_IFS=$IFS
   28662   IFS=:
   28663   set x $ac_tag
   28664   IFS=$ac_save_IFS
   28665   shift
   28666   ac_file=$1
   28667   shift
   28668 
   28669   case $ac_mode in
   28670   :L) ac_source=$1;;
   28671   :[FH])
   28672     ac_file_inputs=
   28673     for ac_f
   28674     do
   28675       case $ac_f in
   28676       -) ac_f="$tmp/stdin";;
   28677       *) # Look for the file first in the build tree, then in the source tree
   28678 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   28679 	 # because $ac_f cannot contain `:'.
   28680 	 test -f "$ac_f" ||
   28681 	   case $ac_f in
   28682 	   [\\/$]*) false;;
   28683 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   28684 	   esac ||
   28685 	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   28686       esac
   28687       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   28688       as_fn_append ac_file_inputs " '$ac_f'"
   28689     done
   28690 
   28691     # Let's still pretend it is `configure' which instantiates (i.e., don't
   28692     # use $as_me), people would be surprised to read:
   28693     #    /* config.h.  Generated by config.status.  */
   28694     configure_input='Generated from '`
   28695 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   28696 	`' by configure.'
   28697     if test x"$ac_file" != x-; then
   28698       configure_input="$ac_file.  $configure_input"
   28699       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   28700 $as_echo "$as_me: creating $ac_file" >&6;}
   28701     fi
   28702     # Neutralize special characters interpreted by sed in replacement strings.
   28703     case $configure_input in #(
   28704     *\&* | *\|* | *\\* )
   28705        ac_sed_conf_input=`$as_echo "$configure_input" |
   28706        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   28707     *) ac_sed_conf_input=$configure_input;;
   28708     esac
   28709 
   28710     case $ac_tag in
   28711     *:-:* | *:-) cat >"$tmp/stdin" \
   28712       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
   28713     esac
   28714     ;;
   28715   esac
   28716 
   28717   ac_dir=`$as_dirname -- "$ac_file" ||
   28718 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   28719 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   28720 	 X"$ac_file" : 'X\(//\)$' \| \
   28721 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   28722 $as_echo X"$ac_file" |
   28723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   28724 	    s//\1/
   28725 	    q
   28726 	  }
   28727 	  /^X\(\/\/\)[^/].*/{
   28728 	    s//\1/
   28729 	    q
   28730 	  }
   28731 	  /^X\(\/\/\)$/{
   28732 	    s//\1/
   28733 	    q
   28734 	  }
   28735 	  /^X\(\/\).*/{
   28736 	    s//\1/
   28737 	    q
   28738 	  }
   28739 	  s/.*/./; q'`
   28740   as_dir="$ac_dir"; as_fn_mkdir_p
   28741   ac_builddir=.
   28742 
   28743 case "$ac_dir" in
   28744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   28745 *)
   28746   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   28747   # A ".." for each directory in $ac_dir_suffix.
   28748   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   28749   case $ac_top_builddir_sub in
   28750   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   28751   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   28752   esac ;;
   28753 esac
   28754 ac_abs_top_builddir=$ac_pwd
   28755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   28756 # for backward compatibility:
   28757 ac_top_builddir=$ac_top_build_prefix
   28758 
   28759 case $srcdir in
   28760   .)  # We are building in place.
   28761     ac_srcdir=.
   28762     ac_top_srcdir=$ac_top_builddir_sub
   28763     ac_abs_top_srcdir=$ac_pwd ;;
   28764   [\\/]* | ?:[\\/]* )  # Absolute name.
   28765     ac_srcdir=$srcdir$ac_dir_suffix;
   28766     ac_top_srcdir=$srcdir
   28767     ac_abs_top_srcdir=$srcdir ;;
   28768   *) # Relative name.
   28769     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   28770     ac_top_srcdir=$ac_top_build_prefix$srcdir
   28771     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   28772 esac
   28773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   28774 
   28775 
   28776   case $ac_mode in
   28777   :F)
   28778   #
   28779   # CONFIG_FILE
   28780   #
   28781 
   28782 _ACEOF
   28783 
   28784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28785 # If the template does not know about datarootdir, expand it.
   28786 # FIXME: This hack should be removed a few years after 2.60.
   28787 ac_datarootdir_hack=; ac_datarootdir_seen=
   28788 ac_sed_dataroot='
   28789 /datarootdir/ {
   28790   p
   28791   q
   28792 }
   28793 /@datadir@/p
   28794 /@docdir@/p
   28795 /@infodir@/p
   28796 /@localedir@/p
   28797 /@mandir@/p'
   28798 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   28799 *datarootdir*) ac_datarootdir_seen=yes;;
   28800 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   28801   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   28802 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   28803 _ACEOF
   28804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28805   ac_datarootdir_hack='
   28806   s&@datadir@&$datadir&g
   28807   s&@docdir@&$docdir&g
   28808   s&@infodir@&$infodir&g
   28809   s&@localedir@&$localedir&g
   28810   s&@mandir@&$mandir&g
   28811   s&\\\${datarootdir}&$datarootdir&g' ;;
   28812 esac
   28813 _ACEOF
   28814 
   28815 # Neutralize VPATH when `$srcdir' = `.'.
   28816 # Shell code in configure.ac might set extrasub.
   28817 # FIXME: do we really want to maintain this feature?
   28818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   28819 ac_sed_extra="$ac_vpsub
   28820 $extrasub
   28821 _ACEOF
   28822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   28823 :t
   28824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   28825 s|@configure_input@|$ac_sed_conf_input|;t t
   28826 s&@top_builddir@&$ac_top_builddir_sub&;t t
   28827 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   28828 s&@srcdir@&$ac_srcdir&;t t
   28829 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   28830 s&@top_srcdir@&$ac_top_srcdir&;t t
   28831 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   28832 s&@builddir@&$ac_builddir&;t t
   28833 s&@abs_builddir@&$ac_abs_builddir&;t t
   28834 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   28835 $ac_datarootdir_hack
   28836 "
   28837 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   28838 if $ac_cs_awk_getline; then
   28839   $AWK -f "$tmp/subs.awk"
   28840 else
   28841   $AWK -f "$tmp/subs.awk" | $SHELL
   28842 fi >$tmp/out \
   28843   || as_fn_error "could not create $ac_file" "$LINENO" 5
   28844 
   28845 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   28846   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   28847   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   28848   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   28849 which seems to be undefined.  Please make sure it is defined." >&5
   28850 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   28851 which seems to be undefined.  Please make sure it is defined." >&2;}
   28852 
   28853   rm -f "$tmp/stdin"
   28854   case $ac_file in
   28855   -) cat "$tmp/out" && rm -f "$tmp/out";;
   28856   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
   28857   esac \
   28858   || as_fn_error "could not create $ac_file" "$LINENO" 5
   28859  ;;
   28860   :H)
   28861   #
   28862   # CONFIG_HEADER
   28863   #
   28864   if test x"$ac_file" != x-; then
   28865     {
   28866       $as_echo "/* $configure_input  */" \
   28867       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
   28868     } >"$tmp/config.h" \
   28869       || as_fn_error "could not create $ac_file" "$LINENO" 5
   28870     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
   28871       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   28872 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   28873     else
   28874       rm -f "$ac_file"
   28875       mv "$tmp/config.h" "$ac_file" \
   28876 	|| as_fn_error "could not create $ac_file" "$LINENO" 5
   28877     fi
   28878   else
   28879     $as_echo "/* $configure_input  */" \
   28880       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
   28881       || as_fn_error "could not create -" "$LINENO" 5
   28882   fi
   28883  ;;
   28884 
   28885   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   28886 $as_echo "$as_me: executing $ac_file commands" >&6;}
   28887  ;;
   28888   esac
   28889 
   28890 
   28891   case $ac_file$ac_mode in
   28892     "as":F) chmod +x as ;;
   28893     "collect-ld":F) chmod +x collect-ld ;;
   28894     "nm":F) chmod +x nm ;;
   28895     "default":C)
   28896 case ${CONFIG_HEADERS} in
   28897   *auto-host.h:config.in*)
   28898   echo > cstamp-h ;;
   28899 esac
   28900 # Make sure all the subdirs exist.
   28901 for d in $subdirs doc build common c-family
   28902 do
   28903     test -d $d || mkdir $d
   28904 done
   28905  ;;
   28906 
   28907   esac
   28908 done # for ac_tag
   28909 
   28910 
   28911 as_fn_exit 0
   28912 _ACEOF
   28913 ac_clean_files=$ac_clean_files_save
   28914 
   28915 test $ac_write_fail = 0 ||
   28916   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
   28917 
   28918 
   28919 # configure is writing to config.log, and then calls config.status.
   28920 # config.status does its own redirection, appending to config.log.
   28921 # Unfortunately, on DOS this fails, as config.log is still kept open
   28922 # by configure, so config.status won't be able to write to it; its
   28923 # output is simply discarded.  So we exec the FD to /dev/null,
   28924 # effectively closing config.log, so it can be properly (re)opened and
   28925 # appended to by config.status.  When coming back to configure, we
   28926 # need to make the FD available again.
   28927 if test "$no_create" != yes; then
   28928   ac_cs_success=:
   28929   ac_config_status_args=
   28930   test "$silent" = yes &&
   28931     ac_config_status_args="$ac_config_status_args --quiet"
   28932   exec 5>/dev/null
   28933   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   28934   exec 5>>config.log
   28935   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   28936   # would make configure fail if this is the last instruction.
   28937   $ac_cs_success || as_fn_exit $?
   28938 fi
   28939 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   28940   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   28941 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   28942 fi
   28943