Home | History | Annotate | Line # | Download | only in libiberty
configure revision 1.6
      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   if (eval "$as_required") 2>/dev/null; then :
    174   as_have_required=yes
    175 else
    176   as_have_required=no
    177 fi
    178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    179 
    180 else
    181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    182 as_found=false
    183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    184 do
    185   IFS=$as_save_IFS
    186   test -z "$as_dir" && as_dir=.
    187   as_found=:
    188   case $as_dir in #(
    189 	 /*)
    190 	   for as_base in sh bash ksh sh5; do
    191 	     # Try only shells that exist, to save several forks.
    192 	     as_shell=$as_dir/$as_base
    193 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    194 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    195   CONFIG_SHELL=$as_shell as_have_required=yes
    196 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    197   break 2
    198 fi
    199 fi
    200 	   done;;
    201        esac
    202   as_found=false
    203 done
    204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    205 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    206   CONFIG_SHELL=$SHELL as_have_required=yes
    207 fi; }
    208 IFS=$as_save_IFS
    209 
    210 
    211       if test "x$CONFIG_SHELL" != x; then :
    212   # We cannot yet assume a decent shell, so we have to provide a
    213 	# neutralization value for shells without unset; and this also
    214 	# works around shells that cannot unset nonexistent variables.
    215 	BASH_ENV=/dev/null
    216 	ENV=/dev/null
    217 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    218 	export CONFIG_SHELL
    219 	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    220 fi
    221 
    222     if test x$as_have_required = xno; then :
    223   $as_echo "$0: This script requires a shell more modern than all"
    224   $as_echo "$0: the shells that I found on your system."
    225   if test x${ZSH_VERSION+set} = xset ; then
    226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    228   else
    229     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    230 $0: including any error possibly output before this
    231 $0: message. Then install a modern shell, or manually run
    232 $0: the script under such a shell if you do have one."
    233   fi
    234   exit 1
    235 fi
    236 fi
    237 fi
    238 SHELL=${CONFIG_SHELL-/bin/sh}
    239 export SHELL
    240 # Unset more variables known to interfere with behavior of common tools.
    241 CLICOLOR_FORCE= GREP_OPTIONS=
    242 unset CLICOLOR_FORCE GREP_OPTIONS
    243 
    244 ## --------------------- ##
    245 ## M4sh Shell Functions. ##
    246 ## --------------------- ##
    247 # as_fn_unset VAR
    248 # ---------------
    249 # Portably unset VAR.
    250 as_fn_unset ()
    251 {
    252   { eval $1=; unset $1;}
    253 }
    254 as_unset=as_fn_unset
    255 
    256 # as_fn_set_status STATUS
    257 # -----------------------
    258 # Set $? to STATUS, without forking.
    259 as_fn_set_status ()
    260 {
    261   return $1
    262 } # as_fn_set_status
    263 
    264 # as_fn_exit STATUS
    265 # -----------------
    266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    267 as_fn_exit ()
    268 {
    269   set +e
    270   as_fn_set_status $1
    271   exit $1
    272 } # as_fn_exit
    273 
    274 # as_fn_mkdir_p
    275 # -------------
    276 # Create "$as_dir" as a directory, including parents if necessary.
    277 as_fn_mkdir_p ()
    278 {
    279 
    280   case $as_dir in #(
    281   -*) as_dir=./$as_dir;;
    282   esac
    283   test -d "$as_dir" || eval $as_mkdir_p || {
    284     as_dirs=
    285     while :; do
    286       case $as_dir in #(
    287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    288       *) as_qdir=$as_dir;;
    289       esac
    290       as_dirs="'$as_qdir' $as_dirs"
    291       as_dir=`$as_dirname -- "$as_dir" ||
    292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    293 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    294 	 X"$as_dir" : 'X\(//\)$' \| \
    295 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    296 $as_echo X"$as_dir" |
    297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    298 	    s//\1/
    299 	    q
    300 	  }
    301 	  /^X\(\/\/\)[^/].*/{
    302 	    s//\1/
    303 	    q
    304 	  }
    305 	  /^X\(\/\/\)$/{
    306 	    s//\1/
    307 	    q
    308 	  }
    309 	  /^X\(\/\).*/{
    310 	    s//\1/
    311 	    q
    312 	  }
    313 	  s/.*/./; q'`
    314       test -d "$as_dir" && break
    315     done
    316     test -z "$as_dirs" || eval "mkdir $as_dirs"
    317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
    318 
    319 
    320 } # as_fn_mkdir_p
    321 # as_fn_append VAR VALUE
    322 # ----------------------
    323 # Append the text in VALUE to the end of the definition contained in VAR. Take
    324 # advantage of any shell optimizations that allow amortized linear growth over
    325 # repeated appends, instead of the typical quadratic growth present in naive
    326 # implementations.
    327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    328   eval 'as_fn_append ()
    329   {
    330     eval $1+=\$2
    331   }'
    332 else
    333   as_fn_append ()
    334   {
    335     eval $1=\$$1\$2
    336   }
    337 fi # as_fn_append
    338 
    339 # as_fn_arith ARG...
    340 # ------------------
    341 # Perform arithmetic evaluation on the ARGs, and store the result in the
    342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    343 # must be portable across $(()) and expr.
    344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    345   eval 'as_fn_arith ()
    346   {
    347     as_val=$(( $* ))
    348   }'
    349 else
    350   as_fn_arith ()
    351   {
    352     as_val=`expr "$@" || test $? -eq 1`
    353   }
    354 fi # as_fn_arith
    355 
    356 
    357 # as_fn_error ERROR [LINENO LOG_FD]
    358 # ---------------------------------
    359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    361 # script with status $?, using 1 if that was 0.
    362 as_fn_error ()
    363 {
    364   as_status=$?; test $as_status -eq 0 && as_status=1
    365   if test "$3"; then
    366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
    368   fi
    369   $as_echo "$as_me: error: $1" >&2
    370   as_fn_exit $as_status
    371 } # as_fn_error
    372 
    373 if expr a : '\(a\)' >/dev/null 2>&1 &&
    374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    375   as_expr=expr
    376 else
    377   as_expr=false
    378 fi
    379 
    380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    381   as_basename=basename
    382 else
    383   as_basename=false
    384 fi
    385 
    386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    387   as_dirname=dirname
    388 else
    389   as_dirname=false
    390 fi
    391 
    392 as_me=`$as_basename -- "$0" ||
    393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    394 	 X"$0" : 'X\(//\)$' \| \
    395 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    396 $as_echo X/"$0" |
    397     sed '/^.*\/\([^/][^/]*\)\/*$/{
    398 	    s//\1/
    399 	    q
    400 	  }
    401 	  /^X\/\(\/\/\)$/{
    402 	    s//\1/
    403 	    q
    404 	  }
    405 	  /^X\/\(\/\).*/{
    406 	    s//\1/
    407 	    q
    408 	  }
    409 	  s/.*/./; q'`
    410 
    411 # Avoid depending upon Character Ranges.
    412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    415 as_cr_digits='0123456789'
    416 as_cr_alnum=$as_cr_Letters$as_cr_digits
    417 
    418 
    419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    424   sed -n '
    425     p
    426     /[$]LINENO/=
    427   ' <$as_myself |
    428     sed '
    429       s/[$]LINENO.*/&-/
    430       t lineno
    431       b
    432       :lineno
    433       N
    434       :loop
    435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    436       t loop
    437       s/-\n.*//
    438     ' >$as_me.lineno &&
    439   chmod +x "$as_me.lineno" ||
    440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    441 
    442   # Don't try to exec as it changes $[0], causing all sort of problems
    443   # (the dirname of $[0] is not the place where we might find the
    444   # original and so on.  Autoconf is especially sensitive to this).
    445   . "./$as_me.lineno"
    446   # Exit status is that of the last command.
    447   exit
    448 }
    449 
    450 ECHO_C= ECHO_N= ECHO_T=
    451 case `echo -n x` in #(((((
    452 -n*)
    453   case `echo 'xy\c'` in
    454   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    455   xy)  ECHO_C='\c';;
    456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    457        ECHO_T='	';;
    458   esac;;
    459 *)
    460   ECHO_N='-n';;
    461 esac
    462 
    463 rm -f conf$$ conf$$.exe conf$$.file
    464 if test -d conf$$.dir; then
    465   rm -f conf$$.dir/conf$$.file
    466 else
    467   rm -f conf$$.dir
    468   mkdir conf$$.dir 2>/dev/null
    469 fi
    470 if (echo >conf$$.file) 2>/dev/null; then
    471   if ln -s conf$$.file conf$$ 2>/dev/null; then
    472     as_ln_s='ln -s'
    473     # ... but there are two gotchas:
    474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    476     # In both cases, we have to default to `cp -p'.
    477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    478       as_ln_s='cp -p'
    479   elif ln conf$$.file conf$$ 2>/dev/null; then
    480     as_ln_s=ln
    481   else
    482     as_ln_s='cp -p'
    483   fi
    484 else
    485   as_ln_s='cp -p'
    486 fi
    487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    488 rmdir conf$$.dir 2>/dev/null
    489 
    490 if mkdir -p . 2>/dev/null; then
    491   as_mkdir_p='mkdir -p "$as_dir"'
    492 else
    493   test -d ./-p && rmdir ./-p
    494   as_mkdir_p=false
    495 fi
    496 
    497 if test -x / >/dev/null 2>&1; then
    498   as_test_x='test -x'
    499 else
    500   if ls -dL / >/dev/null 2>&1; then
    501     as_ls_L_option=L
    502   else
    503     as_ls_L_option=
    504   fi
    505   as_test_x='
    506     eval sh -c '\''
    507       if test -d "$1"; then
    508 	test -d "$1/.";
    509       else
    510 	case $1 in #(
    511 	-*)set "./$1";;
    512 	esac;
    513 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    514 	???[sx]*):;;*)false;;esac;fi
    515     '\'' sh
    516   '
    517 fi
    518 as_executable_p=$as_test_x
    519 
    520 # Sed expression to map a string onto a valid CPP name.
    521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    522 
    523 # Sed expression to map a string onto a valid variable name.
    524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    525 
    526 
    527 exec 7<&0 </dev/null 6>&1
    528 
    529 # Name of the host.
    530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    531 # so uname gets run too.
    532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    533 
    534 #
    535 # Initializations.
    536 #
    537 ac_default_prefix=/usr/local
    538 ac_clean_files=
    539 ac_config_libobj_dir=.
    540 LIBOBJS=
    541 cross_compiling=no
    542 subdirs=
    543 MFLAGS=
    544 MAKEFLAGS=
    545 
    546 # Identity of this package.
    547 PACKAGE_NAME=
    548 PACKAGE_TARNAME=
    549 PACKAGE_VERSION=
    550 PACKAGE_STRING=
    551 PACKAGE_BUGREPORT=
    552 PACKAGE_URL=
    553 
    554 ac_unique_file="xmalloc.c"
    555 # Factoring default headers for most tests.
    556 ac_includes_default="\
    557 #include <stdio.h>
    558 #ifdef HAVE_SYS_TYPES_H
    559 # include <sys/types.h>
    560 #endif
    561 #ifdef HAVE_SYS_STAT_H
    562 # include <sys/stat.h>
    563 #endif
    564 #ifdef STDC_HEADERS
    565 # include <stdlib.h>
    566 # include <stddef.h>
    567 #else
    568 # ifdef HAVE_STDLIB_H
    569 #  include <stdlib.h>
    570 # endif
    571 #endif
    572 #ifdef HAVE_STRING_H
    573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    574 #  include <memory.h>
    575 # endif
    576 # include <string.h>
    577 #endif
    578 #ifdef HAVE_STRINGS_H
    579 # include <strings.h>
    580 #endif
    581 #ifdef HAVE_INTTYPES_H
    582 # include <inttypes.h>
    583 #endif
    584 #ifdef HAVE_STDINT_H
    585 # include <stdint.h>
    586 #endif
    587 #ifdef HAVE_UNISTD_H
    588 # include <unistd.h>
    589 #endif"
    590 
    591 ac_subst_vars='LTLIBOBJS
    592 INSTALL_DEST
    593 pexecute
    594 target_header_dir
    595 CHECK
    596 LIBOBJS
    597 NOASANFLAG
    598 PICFLAG
    599 INSTALL_DATA
    600 INSTALL_SCRIPT
    601 INSTALL_PROGRAM
    602 OUTPUT_OPTION
    603 NO_MINUS_C_MINUS_O
    604 ac_libiberty_warn_cflags
    605 EGREP
    606 GREP
    607 CPP
    608 OBJEXT
    609 EXEEXT
    610 ac_ct_CC
    611 CPPFLAGS
    612 LDFLAGS
    613 CFLAGS
    614 CC
    615 RANLIB
    616 AR
    617 host_os
    618 host_vendor
    619 host_cpu
    620 host
    621 build_os
    622 build_vendor
    623 build_cpu
    624 build
    625 HAVE_PERL
    626 PERL
    627 BUILD_INFO
    628 MAKEINFO
    629 NOTMAINT
    630 MAINT
    631 libiberty_topdir
    632 target_alias
    633 host_alias
    634 build_alias
    635 LIBS
    636 ECHO_T
    637 ECHO_N
    638 ECHO_C
    639 DEFS
    640 mandir
    641 localedir
    642 libdir
    643 psdir
    644 pdfdir
    645 dvidir
    646 htmldir
    647 infodir
    648 docdir
    649 oldincludedir
    650 includedir
    651 localstatedir
    652 sharedstatedir
    653 sysconfdir
    654 datadir
    655 datarootdir
    656 libexecdir
    657 sbindir
    658 bindir
    659 program_transform_name
    660 prefix
    661 exec_prefix
    662 PACKAGE_URL
    663 PACKAGE_BUGREPORT
    664 PACKAGE_STRING
    665 PACKAGE_VERSION
    666 PACKAGE_TARNAME
    667 PACKAGE_NAME
    668 PATH_SEPARATOR
    669 SHELL'
    670 ac_subst_files='host_makefile_frag'
    671 ac_user_opts='
    672 enable_option_checking
    673 with_target_subdir
    674 with_build_subdir
    675 with_cross_host
    676 with_newlib
    677 enable_maintainer_mode
    678 enable_multilib
    679 enable_install_libiberty
    680 enable_largefile
    681 '
    682       ac_precious_vars='build_alias
    683 host_alias
    684 target_alias
    685 CC
    686 CFLAGS
    687 LDFLAGS
    688 LIBS
    689 CPPFLAGS
    690 CPP'
    691 
    692 
    693 # Initialize some variables set by options.
    694 ac_init_help=
    695 ac_init_version=false
    696 ac_unrecognized_opts=
    697 ac_unrecognized_sep=
    698 # The variables have the same names as the options, with
    699 # dashes changed to underlines.
    700 cache_file=/dev/null
    701 exec_prefix=NONE
    702 no_create=
    703 no_recursion=
    704 prefix=NONE
    705 program_prefix=NONE
    706 program_suffix=NONE
    707 program_transform_name=s,x,x,
    708 silent=
    709 site=
    710 srcdir=
    711 verbose=
    712 x_includes=NONE
    713 x_libraries=NONE
    714 
    715 # Installation directory options.
    716 # These are left unexpanded so users can "make install exec_prefix=/foo"
    717 # and all the variables that are supposed to be based on exec_prefix
    718 # by default will actually change.
    719 # Use braces instead of parens because sh, perl, etc. also accept them.
    720 # (The list follows the same order as the GNU Coding Standards.)
    721 bindir='${exec_prefix}/bin'
    722 sbindir='${exec_prefix}/sbin'
    723 libexecdir='${exec_prefix}/libexec'
    724 datarootdir='${prefix}/share'
    725 datadir='${datarootdir}'
    726 sysconfdir='${prefix}/etc'
    727 sharedstatedir='${prefix}/com'
    728 localstatedir='${prefix}/var'
    729 includedir='${prefix}/include'
    730 oldincludedir='/usr/include'
    731 docdir='${datarootdir}/doc/${PACKAGE}'
    732 infodir='${datarootdir}/info'
    733 htmldir='${docdir}'
    734 dvidir='${docdir}'
    735 pdfdir='${docdir}'
    736 psdir='${docdir}'
    737 libdir='${exec_prefix}/lib'
    738 localedir='${datarootdir}/locale'
    739 mandir='${datarootdir}/man'
    740 
    741 ac_prev=
    742 ac_dashdash=
    743 for ac_option
    744 do
    745   # If the previous option needs an argument, assign it.
    746   if test -n "$ac_prev"; then
    747     eval $ac_prev=\$ac_option
    748     ac_prev=
    749     continue
    750   fi
    751 
    752   case $ac_option in
    753   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    754   *)	ac_optarg=yes ;;
    755   esac
    756 
    757   # Accept the important Cygnus configure options, so we can diagnose typos.
    758 
    759   case $ac_dashdash$ac_option in
    760   --)
    761     ac_dashdash=yes ;;
    762 
    763   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    764     ac_prev=bindir ;;
    765   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    766     bindir=$ac_optarg ;;
    767 
    768   -build | --build | --buil | --bui | --bu)
    769     ac_prev=build_alias ;;
    770   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    771     build_alias=$ac_optarg ;;
    772 
    773   -cache-file | --cache-file | --cache-fil | --cache-fi \
    774   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    775     ac_prev=cache_file ;;
    776   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    777   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    778     cache_file=$ac_optarg ;;
    779 
    780   --config-cache | -C)
    781     cache_file=config.cache ;;
    782 
    783   -datadir | --datadir | --datadi | --datad)
    784     ac_prev=datadir ;;
    785   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    786     datadir=$ac_optarg ;;
    787 
    788   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    789   | --dataroo | --dataro | --datar)
    790     ac_prev=datarootdir ;;
    791   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    792   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    793     datarootdir=$ac_optarg ;;
    794 
    795   -disable-* | --disable-*)
    796     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    797     # Reject names that are not valid shell variable names.
    798     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    799       as_fn_error "invalid feature name: $ac_useropt"
    800     ac_useropt_orig=$ac_useropt
    801     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    802     case $ac_user_opts in
    803       *"
    804 "enable_$ac_useropt"
    805 "*) ;;
    806       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    807 	 ac_unrecognized_sep=', ';;
    808     esac
    809     eval enable_$ac_useropt=no ;;
    810 
    811   -docdir | --docdir | --docdi | --doc | --do)
    812     ac_prev=docdir ;;
    813   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    814     docdir=$ac_optarg ;;
    815 
    816   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    817     ac_prev=dvidir ;;
    818   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    819     dvidir=$ac_optarg ;;
    820 
    821   -enable-* | --enable-*)
    822     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    823     # Reject names that are not valid shell variable names.
    824     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    825       as_fn_error "invalid feature name: $ac_useropt"
    826     ac_useropt_orig=$ac_useropt
    827     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    828     case $ac_user_opts in
    829       *"
    830 "enable_$ac_useropt"
    831 "*) ;;
    832       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    833 	 ac_unrecognized_sep=', ';;
    834     esac
    835     eval enable_$ac_useropt=\$ac_optarg ;;
    836 
    837   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    838   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    839   | --exec | --exe | --ex)
    840     ac_prev=exec_prefix ;;
    841   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    842   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    843   | --exec=* | --exe=* | --ex=*)
    844     exec_prefix=$ac_optarg ;;
    845 
    846   -gas | --gas | --ga | --g)
    847     # Obsolete; use --with-gas.
    848     with_gas=yes ;;
    849 
    850   -help | --help | --hel | --he | -h)
    851     ac_init_help=long ;;
    852   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    853     ac_init_help=recursive ;;
    854   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    855     ac_init_help=short ;;
    856 
    857   -host | --host | --hos | --ho)
    858     ac_prev=host_alias ;;
    859   -host=* | --host=* | --hos=* | --ho=*)
    860     host_alias=$ac_optarg ;;
    861 
    862   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    863     ac_prev=htmldir ;;
    864   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    865   | --ht=*)
    866     htmldir=$ac_optarg ;;
    867 
    868   -includedir | --includedir | --includedi | --included | --include \
    869   | --includ | --inclu | --incl | --inc)
    870     ac_prev=includedir ;;
    871   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    872   | --includ=* | --inclu=* | --incl=* | --inc=*)
    873     includedir=$ac_optarg ;;
    874 
    875   -infodir | --infodir | --infodi | --infod | --info | --inf)
    876     ac_prev=infodir ;;
    877   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    878     infodir=$ac_optarg ;;
    879 
    880   -libdir | --libdir | --libdi | --libd)
    881     ac_prev=libdir ;;
    882   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    883     libdir=$ac_optarg ;;
    884 
    885   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    886   | --libexe | --libex | --libe)
    887     ac_prev=libexecdir ;;
    888   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    889   | --libexe=* | --libex=* | --libe=*)
    890     libexecdir=$ac_optarg ;;
    891 
    892   -localedir | --localedir | --localedi | --localed | --locale)
    893     ac_prev=localedir ;;
    894   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    895     localedir=$ac_optarg ;;
    896 
    897   -localstatedir | --localstatedir | --localstatedi | --localstated \
    898   | --localstate | --localstat | --localsta | --localst | --locals)
    899     ac_prev=localstatedir ;;
    900   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    901   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    902     localstatedir=$ac_optarg ;;
    903 
    904   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    905     ac_prev=mandir ;;
    906   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    907     mandir=$ac_optarg ;;
    908 
    909   -nfp | --nfp | --nf)
    910     # Obsolete; use --without-fp.
    911     with_fp=no ;;
    912 
    913   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    914   | --no-cr | --no-c | -n)
    915     no_create=yes ;;
    916 
    917   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    918   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    919     no_recursion=yes ;;
    920 
    921   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    922   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    923   | --oldin | --oldi | --old | --ol | --o)
    924     ac_prev=oldincludedir ;;
    925   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    926   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    927   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    928     oldincludedir=$ac_optarg ;;
    929 
    930   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    931     ac_prev=prefix ;;
    932   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    933     prefix=$ac_optarg ;;
    934 
    935   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    936   | --program-pre | --program-pr | --program-p)
    937     ac_prev=program_prefix ;;
    938   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    939   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    940     program_prefix=$ac_optarg ;;
    941 
    942   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    943   | --program-suf | --program-su | --program-s)
    944     ac_prev=program_suffix ;;
    945   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    946   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    947     program_suffix=$ac_optarg ;;
    948 
    949   -program-transform-name | --program-transform-name \
    950   | --program-transform-nam | --program-transform-na \
    951   | --program-transform-n | --program-transform- \
    952   | --program-transform | --program-transfor \
    953   | --program-transfo | --program-transf \
    954   | --program-trans | --program-tran \
    955   | --progr-tra | --program-tr | --program-t)
    956     ac_prev=program_transform_name ;;
    957   -program-transform-name=* | --program-transform-name=* \
    958   | --program-transform-nam=* | --program-transform-na=* \
    959   | --program-transform-n=* | --program-transform-=* \
    960   | --program-transform=* | --program-transfor=* \
    961   | --program-transfo=* | --program-transf=* \
    962   | --program-trans=* | --program-tran=* \
    963   | --progr-tra=* | --program-tr=* | --program-t=*)
    964     program_transform_name=$ac_optarg ;;
    965 
    966   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    967     ac_prev=pdfdir ;;
    968   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    969     pdfdir=$ac_optarg ;;
    970 
    971   -psdir | --psdir | --psdi | --psd | --ps)
    972     ac_prev=psdir ;;
    973   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    974     psdir=$ac_optarg ;;
    975 
    976   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    977   | -silent | --silent | --silen | --sile | --sil)
    978     silent=yes ;;
    979 
    980   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    981     ac_prev=sbindir ;;
    982   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    983   | --sbi=* | --sb=*)
    984     sbindir=$ac_optarg ;;
    985 
    986   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    987   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    988   | --sharedst | --shareds | --shared | --share | --shar \
    989   | --sha | --sh)
    990     ac_prev=sharedstatedir ;;
    991   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    992   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    993   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    994   | --sha=* | --sh=*)
    995     sharedstatedir=$ac_optarg ;;
    996 
    997   -site | --site | --sit)
    998     ac_prev=site ;;
    999   -site=* | --site=* | --sit=*)
   1000     site=$ac_optarg ;;
   1001 
   1002   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1003     ac_prev=srcdir ;;
   1004   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1005     srcdir=$ac_optarg ;;
   1006 
   1007   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1008   | --syscon | --sysco | --sysc | --sys | --sy)
   1009     ac_prev=sysconfdir ;;
   1010   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1011   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1012     sysconfdir=$ac_optarg ;;
   1013 
   1014   -target | --target | --targe | --targ | --tar | --ta | --t)
   1015     ac_prev=target_alias ;;
   1016   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1017     target_alias=$ac_optarg ;;
   1018 
   1019   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1020     verbose=yes ;;
   1021 
   1022   -version | --version | --versio | --versi | --vers | -V)
   1023     ac_init_version=: ;;
   1024 
   1025   -with-* | --with-*)
   1026     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1027     # Reject names that are not valid shell variable names.
   1028     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1029       as_fn_error "invalid package name: $ac_useropt"
   1030     ac_useropt_orig=$ac_useropt
   1031     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1032     case $ac_user_opts in
   1033       *"
   1034 "with_$ac_useropt"
   1035 "*) ;;
   1036       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1037 	 ac_unrecognized_sep=', ';;
   1038     esac
   1039     eval with_$ac_useropt=\$ac_optarg ;;
   1040 
   1041   -without-* | --without-*)
   1042     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1043     # Reject names that are not valid shell variable names.
   1044     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1045       as_fn_error "invalid package name: $ac_useropt"
   1046     ac_useropt_orig=$ac_useropt
   1047     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1048     case $ac_user_opts in
   1049       *"
   1050 "with_$ac_useropt"
   1051 "*) ;;
   1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1053 	 ac_unrecognized_sep=', ';;
   1054     esac
   1055     eval with_$ac_useropt=no ;;
   1056 
   1057   --x)
   1058     # Obsolete; use --with-x.
   1059     with_x=yes ;;
   1060 
   1061   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1062   | --x-incl | --x-inc | --x-in | --x-i)
   1063     ac_prev=x_includes ;;
   1064   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1065   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1066     x_includes=$ac_optarg ;;
   1067 
   1068   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1069   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1070     ac_prev=x_libraries ;;
   1071   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1072   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1073     x_libraries=$ac_optarg ;;
   1074 
   1075   -*) as_fn_error "unrecognized option: \`$ac_option'
   1076 Try \`$0 --help' for more information."
   1077     ;;
   1078 
   1079   *=*)
   1080     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1081     # Reject names that are not valid shell variable names.
   1082     case $ac_envvar in #(
   1083       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1084       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
   1085     esac
   1086     eval $ac_envvar=\$ac_optarg
   1087     export $ac_envvar ;;
   1088 
   1089   *)
   1090     # FIXME: should be removed in autoconf 3.0.
   1091     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1092     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1093       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1094     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1095     ;;
   1096 
   1097   esac
   1098 done
   1099 
   1100 if test -n "$ac_prev"; then
   1101   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1102   as_fn_error "missing argument to $ac_option"
   1103 fi
   1104 
   1105 if test -n "$ac_unrecognized_opts"; then
   1106   case $enable_option_checking in
   1107     no) ;;
   1108     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
   1109     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1110   esac
   1111 fi
   1112 
   1113 # Check all directory arguments for consistency.
   1114 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1115 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1116 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1117 		libdir localedir mandir
   1118 do
   1119   eval ac_val=\$$ac_var
   1120   # Remove trailing slashes.
   1121   case $ac_val in
   1122     */ )
   1123       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1124       eval $ac_var=\$ac_val;;
   1125   esac
   1126   # Be sure to have absolute directory names.
   1127   case $ac_val in
   1128     [\\/$]* | ?:[\\/]* )  continue;;
   1129     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1130   esac
   1131   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
   1132 done
   1133 
   1134 # There might be people who depend on the old broken behavior: `$host'
   1135 # used to hold the argument of --host etc.
   1136 # FIXME: To remove some day.
   1137 build=$build_alias
   1138 host=$host_alias
   1139 target=$target_alias
   1140 
   1141 # FIXME: To remove some day.
   1142 if test "x$host_alias" != x; then
   1143   if test "x$build_alias" = x; then
   1144     cross_compiling=maybe
   1145     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1146     If a cross compiler is detected then cross compile mode will be used." >&2
   1147   elif test "x$build_alias" != "x$host_alias"; then
   1148     cross_compiling=yes
   1149   fi
   1150 fi
   1151 
   1152 ac_tool_prefix=
   1153 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1154 
   1155 test "$silent" = yes && exec 6>/dev/null
   1156 
   1157 
   1158 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1159 ac_ls_di=`ls -di .` &&
   1160 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1161   as_fn_error "working directory cannot be determined"
   1162 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1163   as_fn_error "pwd does not report name of working directory"
   1164 
   1165 
   1166 # Find the source files, if location was not specified.
   1167 if test -z "$srcdir"; then
   1168   ac_srcdir_defaulted=yes
   1169   # Try the directory containing this script, then the parent directory.
   1170   ac_confdir=`$as_dirname -- "$as_myself" ||
   1171 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1172 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1173 	 X"$as_myself" : 'X\(//\)$' \| \
   1174 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1175 $as_echo X"$as_myself" |
   1176     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1177 	    s//\1/
   1178 	    q
   1179 	  }
   1180 	  /^X\(\/\/\)[^/].*/{
   1181 	    s//\1/
   1182 	    q
   1183 	  }
   1184 	  /^X\(\/\/\)$/{
   1185 	    s//\1/
   1186 	    q
   1187 	  }
   1188 	  /^X\(\/\).*/{
   1189 	    s//\1/
   1190 	    q
   1191 	  }
   1192 	  s/.*/./; q'`
   1193   srcdir=$ac_confdir
   1194   if test ! -r "$srcdir/$ac_unique_file"; then
   1195     srcdir=..
   1196   fi
   1197 else
   1198   ac_srcdir_defaulted=no
   1199 fi
   1200 if test ! -r "$srcdir/$ac_unique_file"; then
   1201   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1202   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
   1203 fi
   1204 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1205 ac_abs_confdir=`(
   1206 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
   1207 	pwd)`
   1208 # When building in place, set srcdir=.
   1209 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1210   srcdir=.
   1211 fi
   1212 # Remove unnecessary trailing slashes from srcdir.
   1213 # Double slashes in file names in object file debugging info
   1214 # mess up M-x gdb in Emacs.
   1215 case $srcdir in
   1216 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1217 esac
   1218 for ac_var in $ac_precious_vars; do
   1219   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1220   eval ac_env_${ac_var}_value=\$${ac_var}
   1221   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1222   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1223 done
   1224 
   1225 #
   1226 # Report the --help message.
   1227 #
   1228 if test "$ac_init_help" = "long"; then
   1229   # Omit some internal or obsolete options to make the list less imposing.
   1230   # This message is too long to be a string in the A/UX 3.1 sh.
   1231   cat <<_ACEOF
   1232 \`configure' configures this package to adapt to many kinds of systems.
   1233 
   1234 Usage: $0 [OPTION]... [VAR=VALUE]...
   1235 
   1236 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1237 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1238 
   1239 Defaults for the options are specified in brackets.
   1240 
   1241 Configuration:
   1242   -h, --help              display this help and exit
   1243       --help=short        display options specific to this package
   1244       --help=recursive    display the short help of all the included packages
   1245   -V, --version           display version information and exit
   1246   -q, --quiet, --silent   do not print \`checking...' messages
   1247       --cache-file=FILE   cache test results in FILE [disabled]
   1248   -C, --config-cache      alias for \`--cache-file=config.cache'
   1249   -n, --no-create         do not create output files
   1250       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1251 
   1252 Installation directories:
   1253   --prefix=PREFIX         install architecture-independent files in PREFIX
   1254                           [$ac_default_prefix]
   1255   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1256                           [PREFIX]
   1257 
   1258 By default, \`make install' will install all the files in
   1259 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1260 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1261 for instance \`--prefix=\$HOME'.
   1262 
   1263 For better control, use the options below.
   1264 
   1265 Fine tuning of the installation directories:
   1266   --bindir=DIR            user executables [EPREFIX/bin]
   1267   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1268   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1269   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1270   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1271   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1272   --libdir=DIR            object code libraries [EPREFIX/lib]
   1273   --includedir=DIR        C header files [PREFIX/include]
   1274   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1275   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1276   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1277   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1278   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1279   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1280   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1281   --htmldir=DIR           html documentation [DOCDIR]
   1282   --dvidir=DIR            dvi documentation [DOCDIR]
   1283   --pdfdir=DIR            pdf documentation [DOCDIR]
   1284   --psdir=DIR             ps documentation [DOCDIR]
   1285 _ACEOF
   1286 
   1287   cat <<\_ACEOF
   1288 
   1289 System types:
   1290   --build=BUILD     configure for building on BUILD [guessed]
   1291   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1292 _ACEOF
   1293 fi
   1294 
   1295 if test -n "$ac_init_help"; then
   1296 
   1297   cat <<\_ACEOF
   1298 
   1299 Optional Features:
   1300   --disable-option-checking  ignore unrecognized --enable/--with options
   1301   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1302   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1303   --enable-maintainer-mode
   1304                           enable make rules and dependencies not useful
   1305                           (and sometimes confusing) to the casual installer
   1306   --enable-multilib       build many library versions (default)
   1307   --enable-install-libiberty       Install headers and library for end users
   1308   --disable-largefile     omit support for large files
   1309 
   1310 Optional Packages:
   1311   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1312   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1313   --with-target-subdir=SUBDIR      Configuring in a subdirectory for target
   1314   --with-build-subdir=SUBDIR       Configuring in a subdirectory for build
   1315   --with-cross-host=HOST           Configuring with a cross compiler
   1316   --with-newlib                    Configuring with newlib
   1317 
   1318 Some influential environment variables:
   1319   CC          C compiler command
   1320   CFLAGS      C compiler flags
   1321   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1322               nonstandard directory <lib dir>
   1323   LIBS        libraries to pass to the linker, e.g. -l<library>
   1324   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1325               you have headers in a nonstandard directory <include dir>
   1326   CPP         C preprocessor
   1327 
   1328 Use these variables to override the choices made by `configure' or to help
   1329 it to find libraries and programs with nonstandard names/locations.
   1330 
   1331 Report bugs to the package provider.
   1332 _ACEOF
   1333 ac_status=$?
   1334 fi
   1335 
   1336 if test "$ac_init_help" = "recursive"; then
   1337   # If there are subdirs, report their specific --help.
   1338   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1339     test -d "$ac_dir" ||
   1340       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1341       continue
   1342     ac_builddir=.
   1343 
   1344 case "$ac_dir" in
   1345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1346 *)
   1347   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1348   # A ".." for each directory in $ac_dir_suffix.
   1349   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1350   case $ac_top_builddir_sub in
   1351   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1352   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1353   esac ;;
   1354 esac
   1355 ac_abs_top_builddir=$ac_pwd
   1356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1357 # for backward compatibility:
   1358 ac_top_builddir=$ac_top_build_prefix
   1359 
   1360 case $srcdir in
   1361   .)  # We are building in place.
   1362     ac_srcdir=.
   1363     ac_top_srcdir=$ac_top_builddir_sub
   1364     ac_abs_top_srcdir=$ac_pwd ;;
   1365   [\\/]* | ?:[\\/]* )  # Absolute name.
   1366     ac_srcdir=$srcdir$ac_dir_suffix;
   1367     ac_top_srcdir=$srcdir
   1368     ac_abs_top_srcdir=$srcdir ;;
   1369   *) # Relative name.
   1370     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1371     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1372     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1373 esac
   1374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1375 
   1376     cd "$ac_dir" || { ac_status=$?; continue; }
   1377     # Check for guested configure.
   1378     if test -f "$ac_srcdir/configure.gnu"; then
   1379       echo &&
   1380       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1381     elif test -f "$ac_srcdir/configure"; then
   1382       echo &&
   1383       $SHELL "$ac_srcdir/configure" --help=recursive
   1384     else
   1385       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1386     fi || ac_status=$?
   1387     cd "$ac_pwd" || { ac_status=$?; break; }
   1388   done
   1389 fi
   1390 
   1391 test -n "$ac_init_help" && exit $ac_status
   1392 if $ac_init_version; then
   1393   cat <<\_ACEOF
   1394 configure
   1395 generated by GNU Autoconf 2.64
   1396 
   1397 Copyright (C) 2009 Free Software Foundation, Inc.
   1398 This configure script is free software; the Free Software Foundation
   1399 gives unlimited permission to copy, distribute and modify it.
   1400 _ACEOF
   1401   exit
   1402 fi
   1403 
   1404 ## ------------------------ ##
   1405 ## Autoconf initialization. ##
   1406 ## ------------------------ ##
   1407 
   1408 # ac_fn_c_try_compile LINENO
   1409 # --------------------------
   1410 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1411 ac_fn_c_try_compile ()
   1412 {
   1413   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1414   rm -f conftest.$ac_objext
   1415   if { { ac_try="$ac_compile"
   1416 case "(($ac_try" in
   1417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1418   *) ac_try_echo=$ac_try;;
   1419 esac
   1420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1421 $as_echo "$ac_try_echo"; } >&5
   1422   (eval "$ac_compile") 2>conftest.err
   1423   ac_status=$?
   1424   if test -s conftest.err; then
   1425     grep -v '^ *+' conftest.err >conftest.er1
   1426     cat conftest.er1 >&5
   1427     mv -f conftest.er1 conftest.err
   1428   fi
   1429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1430   test $ac_status = 0; } && {
   1431 	 test -z "$ac_c_werror_flag" ||
   1432 	 test ! -s conftest.err
   1433        } && test -s conftest.$ac_objext; then :
   1434   ac_retval=0
   1435 else
   1436   $as_echo "$as_me: failed program was:" >&5
   1437 sed 's/^/| /' conftest.$ac_ext >&5
   1438 
   1439 	ac_retval=1
   1440 fi
   1441   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1442   return $ac_retval
   1443 
   1444 } # ac_fn_c_try_compile
   1445 
   1446 # ac_fn_c_try_cpp LINENO
   1447 # ----------------------
   1448 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1449 ac_fn_c_try_cpp ()
   1450 {
   1451   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1452   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1453 case "(($ac_try" in
   1454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1455   *) ac_try_echo=$ac_try;;
   1456 esac
   1457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1458 $as_echo "$ac_try_echo"; } >&5
   1459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1460   ac_status=$?
   1461   if test -s conftest.err; then
   1462     grep -v '^ *+' conftest.err >conftest.er1
   1463     cat conftest.er1 >&5
   1464     mv -f conftest.er1 conftest.err
   1465   fi
   1466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1467   test $ac_status = 0; } >/dev/null && {
   1468 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1469 	 test ! -s conftest.err
   1470        }; then :
   1471   ac_retval=0
   1472 else
   1473   $as_echo "$as_me: failed program was:" >&5
   1474 sed 's/^/| /' conftest.$ac_ext >&5
   1475 
   1476     ac_retval=1
   1477 fi
   1478   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1479   return $ac_retval
   1480 
   1481 } # ac_fn_c_try_cpp
   1482 
   1483 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1484 # -------------------------------------------------------
   1485 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1486 # the include files in INCLUDES and setting the cache variable VAR
   1487 # accordingly.
   1488 ac_fn_c_check_header_mongrel ()
   1489 {
   1490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1491   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1493 $as_echo_n "checking for $2... " >&6; }
   1494 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1495   $as_echo_n "(cached) " >&6
   1496 fi
   1497 eval ac_res=\$$3
   1498 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1499 $as_echo "$ac_res" >&6; }
   1500 else
   1501   # Is the header compilable?
   1502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1503 $as_echo_n "checking $2 usability... " >&6; }
   1504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1505 /* end confdefs.h.  */
   1506 $4
   1507 #include <$2>
   1508 _ACEOF
   1509 if ac_fn_c_try_compile "$LINENO"; then :
   1510   ac_header_compiler=yes
   1511 else
   1512   ac_header_compiler=no
   1513 fi
   1514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1516 $as_echo "$ac_header_compiler" >&6; }
   1517 
   1518 # Is the header present?
   1519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1520 $as_echo_n "checking $2 presence... " >&6; }
   1521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1522 /* end confdefs.h.  */
   1523 #include <$2>
   1524 _ACEOF
   1525 if ac_fn_c_try_cpp "$LINENO"; then :
   1526   ac_header_preproc=yes
   1527 else
   1528   ac_header_preproc=no
   1529 fi
   1530 rm -f conftest.err conftest.$ac_ext
   1531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1532 $as_echo "$ac_header_preproc" >&6; }
   1533 
   1534 # So?  What about this header?
   1535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1536   yes:no: )
   1537     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1538 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1539     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1540 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1541     ;;
   1542   no:yes:* )
   1543     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1544 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1545     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1546 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1547     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1548 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1549     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1550 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1551     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1552 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1553     ;;
   1554 esac
   1555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1556 $as_echo_n "checking for $2... " >&6; }
   1557 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1558   $as_echo_n "(cached) " >&6
   1559 else
   1560   eval "$3=\$ac_header_compiler"
   1561 fi
   1562 eval ac_res=\$$3
   1563 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1564 $as_echo "$ac_res" >&6; }
   1565 fi
   1566   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1567 
   1568 } # ac_fn_c_check_header_mongrel
   1569 
   1570 # ac_fn_c_try_run LINENO
   1571 # ----------------------
   1572 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1573 # that executables *can* be run.
   1574 ac_fn_c_try_run ()
   1575 {
   1576   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1577   if { { ac_try="$ac_link"
   1578 case "(($ac_try" in
   1579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1580   *) ac_try_echo=$ac_try;;
   1581 esac
   1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1583 $as_echo "$ac_try_echo"; } >&5
   1584   (eval "$ac_link") 2>&5
   1585   ac_status=$?
   1586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1587   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1588   { { case "(($ac_try" in
   1589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1590   *) ac_try_echo=$ac_try;;
   1591 esac
   1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1593 $as_echo "$ac_try_echo"; } >&5
   1594   (eval "$ac_try") 2>&5
   1595   ac_status=$?
   1596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1597   test $ac_status = 0; }; }; then :
   1598   ac_retval=0
   1599 else
   1600   $as_echo "$as_me: program exited with status $ac_status" >&5
   1601        $as_echo "$as_me: failed program was:" >&5
   1602 sed 's/^/| /' conftest.$ac_ext >&5
   1603 
   1604        ac_retval=$ac_status
   1605 fi
   1606   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1607   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1608   return $ac_retval
   1609 
   1610 } # ac_fn_c_try_run
   1611 
   1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1613 # -------------------------------------------------------
   1614 # Tests whether HEADER exists and can be compiled using the include files in
   1615 # INCLUDES, setting the cache variable VAR accordingly.
   1616 ac_fn_c_check_header_compile ()
   1617 {
   1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1620 $as_echo_n "checking for $2... " >&6; }
   1621 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1622   $as_echo_n "(cached) " >&6
   1623 else
   1624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1625 /* end confdefs.h.  */
   1626 $4
   1627 #include <$2>
   1628 _ACEOF
   1629 if ac_fn_c_try_compile "$LINENO"; then :
   1630   eval "$3=yes"
   1631 else
   1632   eval "$3=no"
   1633 fi
   1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1635 fi
   1636 eval ac_res=\$$3
   1637 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1638 $as_echo "$ac_res" >&6; }
   1639   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1640 
   1641 } # ac_fn_c_check_header_compile
   1642 
   1643 # ac_fn_c_check_header_preproc LINENO HEADER VAR
   1644 # ----------------------------------------------
   1645 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
   1646 ac_fn_c_check_header_preproc ()
   1647 {
   1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1650 $as_echo_n "checking for $2... " >&6; }
   1651 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1652   $as_echo_n "(cached) " >&6
   1653 else
   1654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1655 /* end confdefs.h.  */
   1656 #include <$2>
   1657 _ACEOF
   1658 if ac_fn_c_try_cpp "$LINENO"; then :
   1659   eval "$3=yes"
   1660 else
   1661   eval "$3=no"
   1662 fi
   1663 rm -f conftest.err conftest.$ac_ext
   1664 fi
   1665 eval ac_res=\$$3
   1666 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1667 $as_echo "$ac_res" >&6; }
   1668   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1669 
   1670 } # ac_fn_c_check_header_preproc
   1671 
   1672 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   1673 # --------------------------------------------
   1674 # Tries to find the compile-time value of EXPR in a program that includes
   1675 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   1676 # computed
   1677 ac_fn_c_compute_int ()
   1678 {
   1679   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1680   if test "$cross_compiling" = yes; then
   1681     # Depending upon the size, compute the lo and hi bounds.
   1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1683 /* end confdefs.h.  */
   1684 $4
   1685 int
   1686 main ()
   1687 {
   1688 static int test_array [1 - 2 * !(($2) >= 0)];
   1689 test_array [0] = 0
   1690 
   1691   ;
   1692   return 0;
   1693 }
   1694 _ACEOF
   1695 if ac_fn_c_try_compile "$LINENO"; then :
   1696   ac_lo=0 ac_mid=0
   1697   while :; do
   1698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1699 /* end confdefs.h.  */
   1700 $4
   1701 int
   1702 main ()
   1703 {
   1704 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1705 test_array [0] = 0
   1706 
   1707   ;
   1708   return 0;
   1709 }
   1710 _ACEOF
   1711 if ac_fn_c_try_compile "$LINENO"; then :
   1712   ac_hi=$ac_mid; break
   1713 else
   1714   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   1715 			if test $ac_lo -le $ac_mid; then
   1716 			  ac_lo= ac_hi=
   1717 			  break
   1718 			fi
   1719 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   1720 fi
   1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1722   done
   1723 else
   1724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1725 /* end confdefs.h.  */
   1726 $4
   1727 int
   1728 main ()
   1729 {
   1730 static int test_array [1 - 2 * !(($2) < 0)];
   1731 test_array [0] = 0
   1732 
   1733   ;
   1734   return 0;
   1735 }
   1736 _ACEOF
   1737 if ac_fn_c_try_compile "$LINENO"; then :
   1738   ac_hi=-1 ac_mid=-1
   1739   while :; do
   1740     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1741 /* end confdefs.h.  */
   1742 $4
   1743 int
   1744 main ()
   1745 {
   1746 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   1747 test_array [0] = 0
   1748 
   1749   ;
   1750   return 0;
   1751 }
   1752 _ACEOF
   1753 if ac_fn_c_try_compile "$LINENO"; then :
   1754   ac_lo=$ac_mid; break
   1755 else
   1756   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   1757 			if test $ac_mid -le $ac_hi; then
   1758 			  ac_lo= ac_hi=
   1759 			  break
   1760 			fi
   1761 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   1762 fi
   1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1764   done
   1765 else
   1766   ac_lo= ac_hi=
   1767 fi
   1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1769 fi
   1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1771 # Binary search between lo and hi bounds.
   1772 while test "x$ac_lo" != "x$ac_hi"; do
   1773   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   1774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1775 /* end confdefs.h.  */
   1776 $4
   1777 int
   1778 main ()
   1779 {
   1780 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1781 test_array [0] = 0
   1782 
   1783   ;
   1784   return 0;
   1785 }
   1786 _ACEOF
   1787 if ac_fn_c_try_compile "$LINENO"; then :
   1788   ac_hi=$ac_mid
   1789 else
   1790   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   1791 fi
   1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1793 done
   1794 case $ac_lo in #((
   1795 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   1796 '') ac_retval=1 ;;
   1797 esac
   1798   else
   1799     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1800 /* end confdefs.h.  */
   1801 $4
   1802 static long int longval () { return $2; }
   1803 static unsigned long int ulongval () { return $2; }
   1804 #include <stdio.h>
   1805 #include <stdlib.h>
   1806 int
   1807 main ()
   1808 {
   1809 
   1810   FILE *f = fopen ("conftest.val", "w");
   1811   if (! f)
   1812     return 1;
   1813   if (($2) < 0)
   1814     {
   1815       long int i = longval ();
   1816       if (i != ($2))
   1817 	return 1;
   1818       fprintf (f, "%ld", i);
   1819     }
   1820   else
   1821     {
   1822       unsigned long int i = ulongval ();
   1823       if (i != ($2))
   1824 	return 1;
   1825       fprintf (f, "%lu", i);
   1826     }
   1827   /* Do not output a trailing newline, as this causes \r\n confusion
   1828      on some platforms.  */
   1829   return ferror (f) || fclose (f) != 0;
   1830 
   1831   ;
   1832   return 0;
   1833 }
   1834 _ACEOF
   1835 if ac_fn_c_try_run "$LINENO"; then :
   1836   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   1837 else
   1838   ac_retval=1
   1839 fi
   1840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   1841   conftest.$ac_objext conftest.beam conftest.$ac_ext
   1842 rm -f conftest.val
   1843 
   1844   fi
   1845   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1846   return $ac_retval
   1847 
   1848 } # ac_fn_c_compute_int
   1849 
   1850 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   1851 # -------------------------------------------
   1852 # Tests whether TYPE exists after having included INCLUDES, setting cache
   1853 # variable VAR accordingly.
   1854 ac_fn_c_check_type ()
   1855 {
   1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1858 $as_echo_n "checking for $2... " >&6; }
   1859 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1860   $as_echo_n "(cached) " >&6
   1861 else
   1862   eval "$3=no"
   1863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1864 /* end confdefs.h.  */
   1865 $4
   1866 int
   1867 main ()
   1868 {
   1869 if (sizeof ($2))
   1870 	 return 0;
   1871   ;
   1872   return 0;
   1873 }
   1874 _ACEOF
   1875 if ac_fn_c_try_compile "$LINENO"; then :
   1876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1877 /* end confdefs.h.  */
   1878 $4
   1879 int
   1880 main ()
   1881 {
   1882 if (sizeof (($2)))
   1883 	    return 0;
   1884   ;
   1885   return 0;
   1886 }
   1887 _ACEOF
   1888 if ac_fn_c_try_compile "$LINENO"; then :
   1889 
   1890 else
   1891   eval "$3=yes"
   1892 fi
   1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1894 fi
   1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1896 fi
   1897 eval ac_res=\$$3
   1898 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1899 $as_echo "$ac_res" >&6; }
   1900   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1901 
   1902 } # ac_fn_c_check_type
   1903 
   1904 # ac_fn_c_try_link LINENO
   1905 # -----------------------
   1906 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1907 ac_fn_c_try_link ()
   1908 {
   1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1910   rm -f conftest.$ac_objext conftest$ac_exeext
   1911   if { { ac_try="$ac_link"
   1912 case "(($ac_try" in
   1913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1914   *) ac_try_echo=$ac_try;;
   1915 esac
   1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1917 $as_echo "$ac_try_echo"; } >&5
   1918   (eval "$ac_link") 2>conftest.err
   1919   ac_status=$?
   1920   if test -s conftest.err; then
   1921     grep -v '^ *+' conftest.err >conftest.er1
   1922     cat conftest.er1 >&5
   1923     mv -f conftest.er1 conftest.err
   1924   fi
   1925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1926   test $ac_status = 0; } && {
   1927 	 test -z "$ac_c_werror_flag" ||
   1928 	 test ! -s conftest.err
   1929        } && test -s conftest$ac_exeext && {
   1930 	 test "$cross_compiling" = yes ||
   1931 	 $as_test_x conftest$ac_exeext
   1932        }; then :
   1933   ac_retval=0
   1934 else
   1935   $as_echo "$as_me: failed program was:" >&5
   1936 sed 's/^/| /' conftest.$ac_ext >&5
   1937 
   1938 	ac_retval=1
   1939 fi
   1940   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1941   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1942   # interfere with the next link command; also delete a directory that is
   1943   # left behind by Apple's compiler.  We do this before executing the actions.
   1944   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1945   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1946   return $ac_retval
   1947 
   1948 } # ac_fn_c_try_link
   1949 
   1950 # ac_fn_c_check_func LINENO FUNC VAR
   1951 # ----------------------------------
   1952 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1953 ac_fn_c_check_func ()
   1954 {
   1955   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1957 $as_echo_n "checking for $2... " >&6; }
   1958 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1959   $as_echo_n "(cached) " >&6
   1960 else
   1961   if test x$gcc_no_link = xyes; then
   1962   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
   1963 fi
   1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1965 /* end confdefs.h.  */
   1966 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1968 #define $2 innocuous_$2
   1969 
   1970 /* System header to define __stub macros and hopefully few prototypes,
   1971     which can conflict with char $2 (); below.
   1972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   1973     <limits.h> exists even on freestanding compilers.  */
   1974 
   1975 #ifdef __STDC__
   1976 # include <limits.h>
   1977 #else
   1978 # include <assert.h>
   1979 #endif
   1980 
   1981 #undef $2
   1982 
   1983 /* Override any GCC internal prototype to avoid an error.
   1984    Use char because int might match the return type of a GCC
   1985    builtin and then its argument prototype would still apply.  */
   1986 #ifdef __cplusplus
   1987 extern "C"
   1988 #endif
   1989 char $2 ();
   1990 /* The GNU C library defines this for functions which it implements
   1991     to always fail with ENOSYS.  Some functions are actually named
   1992     something starting with __ and the normal name is an alias.  */
   1993 #if defined __stub_$2 || defined __stub___$2
   1994 choke me
   1995 #endif
   1996 
   1997 int
   1998 main ()
   1999 {
   2000 return $2 ();
   2001   ;
   2002   return 0;
   2003 }
   2004 _ACEOF
   2005 if ac_fn_c_try_link "$LINENO"; then :
   2006   eval "$3=yes"
   2007 else
   2008   eval "$3=no"
   2009 fi
   2010 rm -f core conftest.err conftest.$ac_objext \
   2011     conftest$ac_exeext conftest.$ac_ext
   2012 fi
   2013 eval ac_res=\$$3
   2014 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2015 $as_echo "$ac_res" >&6; }
   2016   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2017 
   2018 } # ac_fn_c_check_func
   2019 
   2020 # ac_fn_c_check_decl LINENO SYMBOL VAR
   2021 # ------------------------------------
   2022 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
   2023 ac_fn_c_check_decl ()
   2024 {
   2025   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2026   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2027   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2029 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2030 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2031   $as_echo_n "(cached) " >&6
   2032 else
   2033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2034 /* end confdefs.h.  */
   2035 $4
   2036 int
   2037 main ()
   2038 {
   2039 #ifndef $as_decl_name
   2040 #ifdef __cplusplus
   2041   (void) $as_decl_use;
   2042 #else
   2043   (void) $as_decl_name;
   2044 #endif
   2045 #endif
   2046 
   2047   ;
   2048   return 0;
   2049 }
   2050 _ACEOF
   2051 if ac_fn_c_try_compile "$LINENO"; then :
   2052   eval "$3=yes"
   2053 else
   2054   eval "$3=no"
   2055 fi
   2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2057 fi
   2058 eval ac_res=\$$3
   2059 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2060 $as_echo "$ac_res" >&6; }
   2061   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2062 
   2063 } # ac_fn_c_check_decl
   2064 cat >config.log <<_ACEOF
   2065 This file contains any messages produced by compilers while
   2066 running configure, to aid debugging if configure makes a mistake.
   2067 
   2068 It was created by $as_me, which was
   2069 generated by GNU Autoconf 2.64.  Invocation command line was
   2070 
   2071   $ $0 $@
   2072 
   2073 _ACEOF
   2074 exec 5>>config.log
   2075 {
   2076 cat <<_ASUNAME
   2077 ## --------- ##
   2078 ## Platform. ##
   2079 ## --------- ##
   2080 
   2081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2086 
   2087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2088 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2089 
   2090 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2091 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2093 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2094 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2095 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2096 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2097 
   2098 _ASUNAME
   2099 
   2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2101 for as_dir in $PATH
   2102 do
   2103   IFS=$as_save_IFS
   2104   test -z "$as_dir" && as_dir=.
   2105     $as_echo "PATH: $as_dir"
   2106   done
   2107 IFS=$as_save_IFS
   2108 
   2109 } >&5
   2110 
   2111 cat >&5 <<_ACEOF
   2112 
   2113 
   2114 ## ----------- ##
   2115 ## Core tests. ##
   2116 ## ----------- ##
   2117 
   2118 _ACEOF
   2119 
   2120 
   2121 # Keep a trace of the command line.
   2122 # Strip out --no-create and --no-recursion so they do not pile up.
   2123 # Strip out --silent because we don't want to record it for future runs.
   2124 # Also quote any args containing shell meta-characters.
   2125 # Make two passes to allow for proper duplicate-argument suppression.
   2126 ac_configure_args=
   2127 ac_configure_args0=
   2128 ac_configure_args1=
   2129 ac_must_keep_next=false
   2130 for ac_pass in 1 2
   2131 do
   2132   for ac_arg
   2133   do
   2134     case $ac_arg in
   2135     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2136     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2137     | -silent | --silent | --silen | --sile | --sil)
   2138       continue ;;
   2139     *\'*)
   2140       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2141     esac
   2142     case $ac_pass in
   2143     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2144     2)
   2145       as_fn_append ac_configure_args1 " '$ac_arg'"
   2146       if test $ac_must_keep_next = true; then
   2147 	ac_must_keep_next=false # Got value, back to normal.
   2148       else
   2149 	case $ac_arg in
   2150 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2151 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2152 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2153 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2154 	    case "$ac_configure_args0 " in
   2155 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2156 	    esac
   2157 	    ;;
   2158 	  -* ) ac_must_keep_next=true ;;
   2159 	esac
   2160       fi
   2161       as_fn_append ac_configure_args " '$ac_arg'"
   2162       ;;
   2163     esac
   2164   done
   2165 done
   2166 { ac_configure_args0=; unset ac_configure_args0;}
   2167 { ac_configure_args1=; unset ac_configure_args1;}
   2168 
   2169 # When interrupted or exit'd, cleanup temporary files, and complete
   2170 # config.log.  We remove comments because anyway the quotes in there
   2171 # would cause problems or look ugly.
   2172 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2173 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2174 trap 'exit_status=$?
   2175   # Save into config.log some information that might help in debugging.
   2176   {
   2177     echo
   2178 
   2179     cat <<\_ASBOX
   2180 ## ---------------- ##
   2181 ## Cache variables. ##
   2182 ## ---------------- ##
   2183 _ASBOX
   2184     echo
   2185     # The following way of writing the cache mishandles newlines in values,
   2186 (
   2187   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2188     eval ac_val=\$$ac_var
   2189     case $ac_val in #(
   2190     *${as_nl}*)
   2191       case $ac_var in #(
   2192       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2193 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2194       esac
   2195       case $ac_var in #(
   2196       _ | IFS | as_nl) ;; #(
   2197       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2198       *) { eval $ac_var=; unset $ac_var;} ;;
   2199       esac ;;
   2200     esac
   2201   done
   2202   (set) 2>&1 |
   2203     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2204     *${as_nl}ac_space=\ *)
   2205       sed -n \
   2206 	"s/'\''/'\''\\\\'\'''\''/g;
   2207 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2208       ;; #(
   2209     *)
   2210       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2211       ;;
   2212     esac |
   2213     sort
   2214 )
   2215     echo
   2216 
   2217     cat <<\_ASBOX
   2218 ## ----------------- ##
   2219 ## Output variables. ##
   2220 ## ----------------- ##
   2221 _ASBOX
   2222     echo
   2223     for ac_var in $ac_subst_vars
   2224     do
   2225       eval ac_val=\$$ac_var
   2226       case $ac_val in
   2227       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2228       esac
   2229       $as_echo "$ac_var='\''$ac_val'\''"
   2230     done | sort
   2231     echo
   2232 
   2233     if test -n "$ac_subst_files"; then
   2234       cat <<\_ASBOX
   2235 ## ------------------- ##
   2236 ## File substitutions. ##
   2237 ## ------------------- ##
   2238 _ASBOX
   2239       echo
   2240       for ac_var in $ac_subst_files
   2241       do
   2242 	eval ac_val=\$$ac_var
   2243 	case $ac_val in
   2244 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2245 	esac
   2246 	$as_echo "$ac_var='\''$ac_val'\''"
   2247       done | sort
   2248       echo
   2249     fi
   2250 
   2251     if test -s confdefs.h; then
   2252       cat <<\_ASBOX
   2253 ## ----------- ##
   2254 ## confdefs.h. ##
   2255 ## ----------- ##
   2256 _ASBOX
   2257       echo
   2258       cat confdefs.h
   2259       echo
   2260     fi
   2261     test "$ac_signal" != 0 &&
   2262       $as_echo "$as_me: caught signal $ac_signal"
   2263     $as_echo "$as_me: exit $exit_status"
   2264   } >&5
   2265   rm -f core *.core core.conftest.* &&
   2266     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2267     exit $exit_status
   2268 ' 0
   2269 for ac_signal in 1 2 13 15; do
   2270   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2271 done
   2272 ac_signal=0
   2273 
   2274 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2275 rm -f -r conftest* confdefs.h
   2276 
   2277 $as_echo "/* confdefs.h */" > confdefs.h
   2278 
   2279 # Predefined preprocessor variables.
   2280 
   2281 cat >>confdefs.h <<_ACEOF
   2282 #define PACKAGE_NAME "$PACKAGE_NAME"
   2283 _ACEOF
   2284 
   2285 cat >>confdefs.h <<_ACEOF
   2286 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2287 _ACEOF
   2288 
   2289 cat >>confdefs.h <<_ACEOF
   2290 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2291 _ACEOF
   2292 
   2293 cat >>confdefs.h <<_ACEOF
   2294 #define PACKAGE_STRING "$PACKAGE_STRING"
   2295 _ACEOF
   2296 
   2297 cat >>confdefs.h <<_ACEOF
   2298 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2299 _ACEOF
   2300 
   2301 cat >>confdefs.h <<_ACEOF
   2302 #define PACKAGE_URL "$PACKAGE_URL"
   2303 _ACEOF
   2304 
   2305 
   2306 # Let the site file select an alternate cache file if it wants to.
   2307 # Prefer an explicitly selected file to automatically selected ones.
   2308 ac_site_file1=NONE
   2309 ac_site_file2=NONE
   2310 if test -n "$CONFIG_SITE"; then
   2311   ac_site_file1=$CONFIG_SITE
   2312 elif test "x$prefix" != xNONE; then
   2313   ac_site_file1=$prefix/share/config.site
   2314   ac_site_file2=$prefix/etc/config.site
   2315 else
   2316   ac_site_file1=$ac_default_prefix/share/config.site
   2317   ac_site_file2=$ac_default_prefix/etc/config.site
   2318 fi
   2319 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2320 do
   2321   test "x$ac_site_file" = xNONE && continue
   2322   if test -r "$ac_site_file"; then
   2323     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2324 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2325     sed 's/^/| /' "$ac_site_file" >&5
   2326     . "$ac_site_file"
   2327   fi
   2328 done
   2329 
   2330 if test -r "$cache_file"; then
   2331   # Some versions of bash will fail to source /dev/null (special
   2332   # files actually), so we avoid doing that.
   2333   if test -f "$cache_file"; then
   2334     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2335 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2336     case $cache_file in
   2337       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2338       *)                      . "./$cache_file";;
   2339     esac
   2340   fi
   2341 else
   2342   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2343 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2344   >$cache_file
   2345 fi
   2346 
   2347 # Check that the precious variables saved in the cache have kept the same
   2348 # value.
   2349 ac_cache_corrupted=false
   2350 for ac_var in $ac_precious_vars; do
   2351   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2352   eval ac_new_set=\$ac_env_${ac_var}_set
   2353   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2354   eval ac_new_val=\$ac_env_${ac_var}_value
   2355   case $ac_old_set,$ac_new_set in
   2356     set,)
   2357       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2358 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2359       ac_cache_corrupted=: ;;
   2360     ,set)
   2361       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2362 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2363       ac_cache_corrupted=: ;;
   2364     ,);;
   2365     *)
   2366       if test "x$ac_old_val" != "x$ac_new_val"; then
   2367 	# differences in whitespace do not lead to failure.
   2368 	ac_old_val_w=`echo x $ac_old_val`
   2369 	ac_new_val_w=`echo x $ac_new_val`
   2370 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2371 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2372 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2373 	  ac_cache_corrupted=:
   2374 	else
   2375 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2376 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2377 	  eval $ac_var=\$ac_old_val
   2378 	fi
   2379 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2380 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2381 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2382 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2383       fi;;
   2384   esac
   2385   # Pass precious variables to config.status.
   2386   if test "$ac_new_set" = set; then
   2387     case $ac_new_val in
   2388     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2389     *) ac_arg=$ac_var=$ac_new_val ;;
   2390     esac
   2391     case " $ac_configure_args " in
   2392       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2393       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2394     esac
   2395   fi
   2396 done
   2397 if $ac_cache_corrupted; then
   2398   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2400   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2401 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2402   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2403 fi
   2404 ## -------------------- ##
   2405 ## Main body of script. ##
   2406 ## -------------------- ##
   2407 
   2408 ac_ext=c
   2409 ac_cpp='$CPP $CPPFLAGS'
   2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2413 
   2414 
   2415 
   2416 
   2417 
   2418 
   2419 
   2420 # This works around the fact that libtool configuration may change LD
   2421 # for this particular configuration, but some shells, instead of
   2422 # keeping the changes in LD private, export them just because LD is
   2423 # exported.  We don't use libtool yet, but some day we might, so...
   2424 ORIGINAL_LD_FOR_MULTILIBS=$LD
   2425 
   2426 
   2427 # Check whether --with-target-subdir was given.
   2428 if test "${with_target_subdir+set}" = set; then :
   2429   withval=$with_target_subdir;
   2430 fi
   2431 
   2432 
   2433 # Check whether --with-build-subdir was given.
   2434 if test "${with_build_subdir+set}" = set; then :
   2435   withval=$with_build_subdir;
   2436 fi
   2437 
   2438 
   2439 # Check whether --with-cross-host was given.
   2440 if test "${with_cross_host+set}" = set; then :
   2441   withval=$with_cross_host;
   2442 fi
   2443 
   2444 
   2445 # Check whether --with-newlib was given.
   2446 if test "${with_newlib+set}" = set; then :
   2447   withval=$with_newlib;
   2448 fi
   2449 
   2450 
   2451 if test "${srcdir}" = "."; then
   2452   if test -n "${with_build_subdir}"; then
   2453     libiberty_topdir="${srcdir}/../.."
   2454     with_target_subdir=
   2455   elif test -z "${with_target_subdir}"; then
   2456     libiberty_topdir="${srcdir}/.."
   2457   else
   2458     if test "${with_target_subdir}" != "."; then
   2459       libiberty_topdir="${srcdir}/${with_multisrctop}../.."
   2460     else
   2461       libiberty_topdir="${srcdir}/${with_multisrctop}.."
   2462     fi
   2463   fi
   2464 else
   2465   libiberty_topdir="${srcdir}/.."
   2466 fi
   2467 
   2468 ac_aux_dir=
   2469 for ac_dir in $libiberty_topdir "$srcdir"/$libiberty_topdir; do
   2470   for ac_t in install-sh install.sh shtool; do
   2471     if test -f "$ac_dir/$ac_t"; then
   2472       ac_aux_dir=$ac_dir
   2473       ac_install_sh="$ac_aux_dir/$ac_t -c"
   2474       break 2
   2475     fi
   2476   done
   2477 done
   2478 if test -z "$ac_aux_dir"; then
   2479   as_fn_error "cannot find install-sh, install.sh, or shtool in $libiberty_topdir \"$srcdir\"/$libiberty_topdir" "$LINENO" 5
   2480 fi
   2481 
   2482 # These three variables are undocumented and unsupported,
   2483 # and are intended to be withdrawn in a future Autoconf release.
   2484 # They can cause serious problems if a builder's source tree is in a directory
   2485 # whose full name contains unusual characters.
   2486 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2487 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2488 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2489 
   2490 
   2491 
   2492 
   2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2494 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2495     # Check whether --enable-maintainer-mode was given.
   2496 if test "${enable_maintainer_mode+set}" = set; then :
   2497   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
   2498 else
   2499   maintainer_mode=no
   2500 fi
   2501 
   2502 
   2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
   2504 $as_echo "$maintainer_mode" >&6; }
   2505 
   2506 if test "$maintainer_mode" = "yes"; then
   2507   MAINT=''
   2508   NOTMAINT='#'
   2509 else
   2510   MAINT='#'
   2511   NOTMAINT=''
   2512 fi
   2513 
   2514 # Do we have a single-tree copy of texinfo?  Even if we do, we can't
   2515 # rely on it - libiberty is built before texinfo.
   2516 # Extract the first word of "makeinfo", so it can be a program name with args.
   2517 set dummy makeinfo; ac_word=$2
   2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2519 $as_echo_n "checking for $ac_word... " >&6; }
   2520 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
   2521   $as_echo_n "(cached) " >&6
   2522 else
   2523   if test -n "$MAKEINFO"; then
   2524   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
   2525 else
   2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2527 for as_dir in $PATH
   2528 do
   2529   IFS=$as_save_IFS
   2530   test -z "$as_dir" && as_dir=.
   2531     for ac_exec_ext in '' $ac_executable_extensions; do
   2532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2533     ac_cv_prog_MAKEINFO="makeinfo"
   2534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2535     break 2
   2536   fi
   2537 done
   2538   done
   2539 IFS=$as_save_IFS
   2540 
   2541 fi
   2542 fi
   2543 MAKEINFO=$ac_cv_prog_MAKEINFO
   2544 if test -n "$MAKEINFO"; then
   2545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
   2546 $as_echo "$MAKEINFO" >&6; }
   2547 else
   2548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2549 $as_echo "no" >&6; }
   2550 fi
   2551 
   2552 
   2553 if test "x$MAKEINFO" = "x"; then
   2554     MAKEINFO="@echo makeinfo missing; true"
   2555     BUILD_INFO=
   2556 else
   2557     BUILD_INFO=info
   2558     case "$MAKEINFO" in
   2559       */missing\ makeinfo*)
   2560 	BUILD_INFO=
   2561 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
   2562 *** Makeinfo is missing. Info documentation will not be built." >&5
   2563 $as_echo "$as_me: WARNING:
   2564 *** Makeinfo is missing. Info documentation will not be built." >&2;}
   2565         ;;
   2566       *)
   2567 	case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
   2568 	  x*\ [1-3].* )
   2569 	    MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
   2570 	    BUILD_INFO=
   2571 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
   2572 *** Makeinfo is too old. Info documentation will not be built." >&5
   2573 $as_echo "$as_me: WARNING:
   2574 *** Makeinfo is too old. Info documentation will not be built." >&2;}
   2575 	  ;;
   2576 	esac
   2577 	;;
   2578     esac
   2579 fi
   2580 
   2581 
   2582 
   2583 # Extract the first word of "perl", so it can be a program name with args.
   2584 set dummy perl; ac_word=$2
   2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2586 $as_echo_n "checking for $ac_word... " >&6; }
   2587 if test "${ac_cv_prog_PERL+set}" = set; then :
   2588   $as_echo_n "(cached) " >&6
   2589 else
   2590   if test -n "$PERL"; then
   2591   ac_cv_prog_PERL="$PERL" # Let the user override the test.
   2592 else
   2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2594 for as_dir in $PATH
   2595 do
   2596   IFS=$as_save_IFS
   2597   test -z "$as_dir" && as_dir=.
   2598     for ac_exec_ext in '' $ac_executable_extensions; do
   2599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2600     ac_cv_prog_PERL="perl"
   2601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2602     break 2
   2603   fi
   2604 done
   2605   done
   2606 IFS=$as_save_IFS
   2607 
   2608 fi
   2609 fi
   2610 PERL=$ac_cv_prog_PERL
   2611 if test -n "$PERL"; then
   2612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   2613 $as_echo "$PERL" >&6; }
   2614 else
   2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2616 $as_echo "no" >&6; }
   2617 fi
   2618 
   2619 
   2620 if test x"$PERL" = x""; then
   2621   HAVE_PERL='#'
   2622 else
   2623   HAVE_PERL=''
   2624 fi
   2625 
   2626 
   2627 # Make sure we can run config.sub.
   2628 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2629   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2630 
   2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2632 $as_echo_n "checking build system type... " >&6; }
   2633 if test "${ac_cv_build+set}" = set; then :
   2634   $as_echo_n "(cached) " >&6
   2635 else
   2636   ac_build_alias=$build_alias
   2637 test "x$ac_build_alias" = x &&
   2638   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2639 test "x$ac_build_alias" = x &&
   2640   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
   2641 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2642   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2643 
   2644 fi
   2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2646 $as_echo "$ac_cv_build" >&6; }
   2647 case $ac_cv_build in
   2648 *-*-*) ;;
   2649 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
   2650 esac
   2651 build=$ac_cv_build
   2652 ac_save_IFS=$IFS; IFS='-'
   2653 set x $ac_cv_build
   2654 shift
   2655 build_cpu=$1
   2656 build_vendor=$2
   2657 shift; shift
   2658 # Remember, the first character of IFS is used to create $*,
   2659 # except with old shells:
   2660 build_os=$*
   2661 IFS=$ac_save_IFS
   2662 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2663 
   2664 
   2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2666 $as_echo_n "checking host system type... " >&6; }
   2667 if test "${ac_cv_host+set}" = set; then :
   2668   $as_echo_n "(cached) " >&6
   2669 else
   2670   if test "x$host_alias" = x; then
   2671   ac_cv_host=$ac_cv_build
   2672 else
   2673   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2674     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2675 fi
   2676 
   2677 fi
   2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2679 $as_echo "$ac_cv_host" >&6; }
   2680 case $ac_cv_host in
   2681 *-*-*) ;;
   2682 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
   2683 esac
   2684 host=$ac_cv_host
   2685 ac_save_IFS=$IFS; IFS='-'
   2686 set x $ac_cv_host
   2687 shift
   2688 host_cpu=$1
   2689 host_vendor=$2
   2690 shift; shift
   2691 # Remember, the first character of IFS is used to create $*,
   2692 # except with old shells:
   2693 host_os=$*
   2694 IFS=$ac_save_IFS
   2695 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2696 
   2697 
   2698 
   2699 
   2700 if test -n "$ac_tool_prefix"; then
   2701   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   2702 set dummy ${ac_tool_prefix}ar; ac_word=$2
   2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2704 $as_echo_n "checking for $ac_word... " >&6; }
   2705 if test "${ac_cv_prog_AR+set}" = set; then :
   2706   $as_echo_n "(cached) " >&6
   2707 else
   2708   if test -n "$AR"; then
   2709   ac_cv_prog_AR="$AR" # Let the user override the test.
   2710 else
   2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2712 for as_dir in $PATH
   2713 do
   2714   IFS=$as_save_IFS
   2715   test -z "$as_dir" && as_dir=.
   2716     for ac_exec_ext in '' $ac_executable_extensions; do
   2717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2718     ac_cv_prog_AR="${ac_tool_prefix}ar"
   2719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2720     break 2
   2721   fi
   2722 done
   2723   done
   2724 IFS=$as_save_IFS
   2725 
   2726 fi
   2727 fi
   2728 AR=$ac_cv_prog_AR
   2729 if test -n "$AR"; then
   2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   2731 $as_echo "$AR" >&6; }
   2732 else
   2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2734 $as_echo "no" >&6; }
   2735 fi
   2736 
   2737 
   2738 fi
   2739 if test -z "$ac_cv_prog_AR"; then
   2740   ac_ct_AR=$AR
   2741   # Extract the first word of "ar", so it can be a program name with args.
   2742 set dummy ar; ac_word=$2
   2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2744 $as_echo_n "checking for $ac_word... " >&6; }
   2745 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
   2746   $as_echo_n "(cached) " >&6
   2747 else
   2748   if test -n "$ac_ct_AR"; then
   2749   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   2750 else
   2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2752 for as_dir in $PATH
   2753 do
   2754   IFS=$as_save_IFS
   2755   test -z "$as_dir" && as_dir=.
   2756     for ac_exec_ext in '' $ac_executable_extensions; do
   2757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2758     ac_cv_prog_ac_ct_AR="ar"
   2759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2760     break 2
   2761   fi
   2762 done
   2763   done
   2764 IFS=$as_save_IFS
   2765 
   2766 fi
   2767 fi
   2768 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   2769 if test -n "$ac_ct_AR"; then
   2770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   2771 $as_echo "$ac_ct_AR" >&6; }
   2772 else
   2773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2774 $as_echo "no" >&6; }
   2775 fi
   2776 
   2777   if test "x$ac_ct_AR" = x; then
   2778     AR=""
   2779   else
   2780     case $cross_compiling:$ac_tool_warned in
   2781 yes:)
   2782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2784 ac_tool_warned=yes ;;
   2785 esac
   2786     AR=$ac_ct_AR
   2787   fi
   2788 else
   2789   AR="$ac_cv_prog_AR"
   2790 fi
   2791 
   2792 if test -n "$ac_tool_prefix"; then
   2793   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   2794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2796 $as_echo_n "checking for $ac_word... " >&6; }
   2797 if test "${ac_cv_prog_RANLIB+set}" = set; then :
   2798   $as_echo_n "(cached) " >&6
   2799 else
   2800   if test -n "$RANLIB"; then
   2801   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   2802 else
   2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2804 for as_dir in $PATH
   2805 do
   2806   IFS=$as_save_IFS
   2807   test -z "$as_dir" && as_dir=.
   2808     for ac_exec_ext in '' $ac_executable_extensions; do
   2809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2810     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   2811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2812     break 2
   2813   fi
   2814 done
   2815   done
   2816 IFS=$as_save_IFS
   2817 
   2818 fi
   2819 fi
   2820 RANLIB=$ac_cv_prog_RANLIB
   2821 if test -n "$RANLIB"; then
   2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   2823 $as_echo "$RANLIB" >&6; }
   2824 else
   2825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2826 $as_echo "no" >&6; }
   2827 fi
   2828 
   2829 
   2830 fi
   2831 if test -z "$ac_cv_prog_RANLIB"; then
   2832   ac_ct_RANLIB=$RANLIB
   2833   # Extract the first word of "ranlib", so it can be a program name with args.
   2834 set dummy ranlib; ac_word=$2
   2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2836 $as_echo_n "checking for $ac_word... " >&6; }
   2837 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
   2838   $as_echo_n "(cached) " >&6
   2839 else
   2840   if test -n "$ac_ct_RANLIB"; then
   2841   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   2842 else
   2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2844 for as_dir in $PATH
   2845 do
   2846   IFS=$as_save_IFS
   2847   test -z "$as_dir" && as_dir=.
   2848     for ac_exec_ext in '' $ac_executable_extensions; do
   2849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2850     ac_cv_prog_ac_ct_RANLIB="ranlib"
   2851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2852     break 2
   2853   fi
   2854 done
   2855   done
   2856 IFS=$as_save_IFS
   2857 
   2858 fi
   2859 fi
   2860 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   2861 if test -n "$ac_ct_RANLIB"; then
   2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   2863 $as_echo "$ac_ct_RANLIB" >&6; }
   2864 else
   2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2866 $as_echo "no" >&6; }
   2867 fi
   2868 
   2869   if test "x$ac_ct_RANLIB" = x; then
   2870     RANLIB=":"
   2871   else
   2872     case $cross_compiling:$ac_tool_warned in
   2873 yes:)
   2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2876 ac_tool_warned=yes ;;
   2877 esac
   2878     RANLIB=$ac_ct_RANLIB
   2879   fi
   2880 else
   2881   RANLIB="$ac_cv_prog_RANLIB"
   2882 fi
   2883 
   2884 
   2885 # Add --enable-multilib to configure.
   2886 # Default to --enable-multilib
   2887 # Check whether --enable-multilib was given.
   2888 if test "${enable_multilib+set}" = set; then :
   2889   enableval=$enable_multilib; case "$enableval" in
   2890   yes) multilib=yes ;;
   2891   no)  multilib=no ;;
   2892   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
   2893  esac
   2894 else
   2895   multilib=yes
   2896 fi
   2897 
   2898 
   2899 # Even if the default multilib is not a cross compilation,
   2900 # it may be that some of the other multilibs are.
   2901 if test $cross_compiling = no && test $multilib = yes \
   2902    && test "x${with_multisubdir}" != x ; then
   2903    cross_compiling=maybe
   2904 fi
   2905 
   2906 # We may wish to install the target headers somewhere.
   2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5
   2908 $as_echo_n "checking whether to install libiberty headers and static library... " >&6; }
   2909 
   2910 # Check whether --enable-install-libiberty was given.
   2911 if test "${enable_install_libiberty+set}" = set; then :
   2912   enableval=$enable_install_libiberty; enable_install_libiberty=$enableval
   2913 else
   2914   enable_install_libiberty=no
   2915 fi
   2916 
   2917 # Option parsed, now set things appropriately.
   2918 case x"$enable_install_libiberty" in
   2919   xyes|x)
   2920     target_header_dir=libiberty
   2921     ;;
   2922   xno)
   2923     target_header_dir=
   2924     ;;
   2925   *)
   2926     # This could be sanity-checked in various ways...
   2927     target_header_dir="${enable_install_libiberty}"
   2928     ;;
   2929 esac
   2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_install_libiberty" >&5
   2931 $as_echo "$enable_install_libiberty" >&6; }
   2932 { $as_echo "$as_me:${as_lineno-$LINENO}: target_header_dir = $target_header_dir" >&5
   2933 $as_echo "$as_me: target_header_dir = $target_header_dir" >&6;}
   2934 
   2935 
   2936 ac_ext=c
   2937 ac_cpp='$CPP $CPPFLAGS'
   2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2941 if test -n "$ac_tool_prefix"; then
   2942   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2943 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2945 $as_echo_n "checking for $ac_word... " >&6; }
   2946 if test "${ac_cv_prog_CC+set}" = set; then :
   2947   $as_echo_n "(cached) " >&6
   2948 else
   2949   if test -n "$CC"; then
   2950   ac_cv_prog_CC="$CC" # Let the user override the test.
   2951 else
   2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2953 for as_dir in $PATH
   2954 do
   2955   IFS=$as_save_IFS
   2956   test -z "$as_dir" && as_dir=.
   2957     for ac_exec_ext in '' $ac_executable_extensions; do
   2958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2959     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2961     break 2
   2962   fi
   2963 done
   2964   done
   2965 IFS=$as_save_IFS
   2966 
   2967 fi
   2968 fi
   2969 CC=$ac_cv_prog_CC
   2970 if test -n "$CC"; then
   2971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2972 $as_echo "$CC" >&6; }
   2973 else
   2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2975 $as_echo "no" >&6; }
   2976 fi
   2977 
   2978 
   2979 fi
   2980 if test -z "$ac_cv_prog_CC"; then
   2981   ac_ct_CC=$CC
   2982   # Extract the first word of "gcc", so it can be a program name with args.
   2983 set dummy gcc; ac_word=$2
   2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2985 $as_echo_n "checking for $ac_word... " >&6; }
   2986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   2987   $as_echo_n "(cached) " >&6
   2988 else
   2989   if test -n "$ac_ct_CC"; then
   2990   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2991 else
   2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2993 for as_dir in $PATH
   2994 do
   2995   IFS=$as_save_IFS
   2996   test -z "$as_dir" && as_dir=.
   2997     for ac_exec_ext in '' $ac_executable_extensions; do
   2998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2999     ac_cv_prog_ac_ct_CC="gcc"
   3000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3001     break 2
   3002   fi
   3003 done
   3004   done
   3005 IFS=$as_save_IFS
   3006 
   3007 fi
   3008 fi
   3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3010 if test -n "$ac_ct_CC"; then
   3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3012 $as_echo "$ac_ct_CC" >&6; }
   3013 else
   3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3015 $as_echo "no" >&6; }
   3016 fi
   3017 
   3018   if test "x$ac_ct_CC" = x; then
   3019     CC=""
   3020   else
   3021     case $cross_compiling:$ac_tool_warned in
   3022 yes:)
   3023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3025 ac_tool_warned=yes ;;
   3026 esac
   3027     CC=$ac_ct_CC
   3028   fi
   3029 else
   3030   CC="$ac_cv_prog_CC"
   3031 fi
   3032 
   3033 if test -z "$CC"; then
   3034           if test -n "$ac_tool_prefix"; then
   3035     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3036 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3038 $as_echo_n "checking for $ac_word... " >&6; }
   3039 if test "${ac_cv_prog_CC+set}" = set; then :
   3040   $as_echo_n "(cached) " >&6
   3041 else
   3042   if test -n "$CC"; then
   3043   ac_cv_prog_CC="$CC" # Let the user override the test.
   3044 else
   3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3046 for as_dir in $PATH
   3047 do
   3048   IFS=$as_save_IFS
   3049   test -z "$as_dir" && as_dir=.
   3050     for ac_exec_ext in '' $ac_executable_extensions; do
   3051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3052     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3054     break 2
   3055   fi
   3056 done
   3057   done
   3058 IFS=$as_save_IFS
   3059 
   3060 fi
   3061 fi
   3062 CC=$ac_cv_prog_CC
   3063 if test -n "$CC"; then
   3064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3065 $as_echo "$CC" >&6; }
   3066 else
   3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3068 $as_echo "no" >&6; }
   3069 fi
   3070 
   3071 
   3072   fi
   3073 fi
   3074 if test -z "$CC"; then
   3075   # Extract the first word of "cc", so it can be a program name with args.
   3076 set dummy cc; ac_word=$2
   3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3078 $as_echo_n "checking for $ac_word... " >&6; }
   3079 if test "${ac_cv_prog_CC+set}" = set; then :
   3080   $as_echo_n "(cached) " >&6
   3081 else
   3082   if test -n "$CC"; then
   3083   ac_cv_prog_CC="$CC" # Let the user override the test.
   3084 else
   3085   ac_prog_rejected=no
   3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3087 for as_dir in $PATH
   3088 do
   3089   IFS=$as_save_IFS
   3090   test -z "$as_dir" && as_dir=.
   3091     for ac_exec_ext in '' $ac_executable_extensions; do
   3092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3093     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3094        ac_prog_rejected=yes
   3095        continue
   3096      fi
   3097     ac_cv_prog_CC="cc"
   3098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3099     break 2
   3100   fi
   3101 done
   3102   done
   3103 IFS=$as_save_IFS
   3104 
   3105 if test $ac_prog_rejected = yes; then
   3106   # We found a bogon in the path, so make sure we never use it.
   3107   set dummy $ac_cv_prog_CC
   3108   shift
   3109   if test $# != 0; then
   3110     # We chose a different compiler from the bogus one.
   3111     # However, it has the same basename, so the bogon will be chosen
   3112     # first if we set CC to just the basename; use the full file name.
   3113     shift
   3114     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3115   fi
   3116 fi
   3117 fi
   3118 fi
   3119 CC=$ac_cv_prog_CC
   3120 if test -n "$CC"; then
   3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3122 $as_echo "$CC" >&6; }
   3123 else
   3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3125 $as_echo "no" >&6; }
   3126 fi
   3127 
   3128 
   3129 fi
   3130 if test -z "$CC"; then
   3131   if test -n "$ac_tool_prefix"; then
   3132   for ac_prog in cl.exe
   3133   do
   3134     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3137 $as_echo_n "checking for $ac_word... " >&6; }
   3138 if test "${ac_cv_prog_CC+set}" = set; then :
   3139   $as_echo_n "(cached) " >&6
   3140 else
   3141   if test -n "$CC"; then
   3142   ac_cv_prog_CC="$CC" # Let the user override the test.
   3143 else
   3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3145 for as_dir in $PATH
   3146 do
   3147   IFS=$as_save_IFS
   3148   test -z "$as_dir" && as_dir=.
   3149     for ac_exec_ext in '' $ac_executable_extensions; do
   3150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3151     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3153     break 2
   3154   fi
   3155 done
   3156   done
   3157 IFS=$as_save_IFS
   3158 
   3159 fi
   3160 fi
   3161 CC=$ac_cv_prog_CC
   3162 if test -n "$CC"; then
   3163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3164 $as_echo "$CC" >&6; }
   3165 else
   3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3167 $as_echo "no" >&6; }
   3168 fi
   3169 
   3170 
   3171     test -n "$CC" && break
   3172   done
   3173 fi
   3174 if test -z "$CC"; then
   3175   ac_ct_CC=$CC
   3176   for ac_prog in cl.exe
   3177 do
   3178   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3179 set dummy $ac_prog; ac_word=$2
   3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3181 $as_echo_n "checking for $ac_word... " >&6; }
   3182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   3183   $as_echo_n "(cached) " >&6
   3184 else
   3185   if test -n "$ac_ct_CC"; then
   3186   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3187 else
   3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3189 for as_dir in $PATH
   3190 do
   3191   IFS=$as_save_IFS
   3192   test -z "$as_dir" && as_dir=.
   3193     for ac_exec_ext in '' $ac_executable_extensions; do
   3194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3195     ac_cv_prog_ac_ct_CC="$ac_prog"
   3196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3197     break 2
   3198   fi
   3199 done
   3200   done
   3201 IFS=$as_save_IFS
   3202 
   3203 fi
   3204 fi
   3205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3206 if test -n "$ac_ct_CC"; then
   3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3208 $as_echo "$ac_ct_CC" >&6; }
   3209 else
   3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3211 $as_echo "no" >&6; }
   3212 fi
   3213 
   3214 
   3215   test -n "$ac_ct_CC" && break
   3216 done
   3217 
   3218   if test "x$ac_ct_CC" = x; then
   3219     CC=""
   3220   else
   3221     case $cross_compiling:$ac_tool_warned in
   3222 yes:)
   3223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3225 ac_tool_warned=yes ;;
   3226 esac
   3227     CC=$ac_ct_CC
   3228   fi
   3229 fi
   3230 
   3231 fi
   3232 
   3233 
   3234 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3236 as_fn_error "no acceptable C compiler found in \$PATH
   3237 See \`config.log' for more details." "$LINENO" 5; }
   3238 
   3239 # Provide some information about the compiler.
   3240 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3241 set X $ac_compile
   3242 ac_compiler=$2
   3243 for ac_option in --version -v -V -qversion; do
   3244   { { ac_try="$ac_compiler $ac_option >&5"
   3245 case "(($ac_try" in
   3246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3247   *) ac_try_echo=$ac_try;;
   3248 esac
   3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3250 $as_echo "$ac_try_echo"; } >&5
   3251   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3252   ac_status=$?
   3253   if test -s conftest.err; then
   3254     sed '10a\
   3255 ... rest of stderr output deleted ...
   3256          10q' conftest.err >conftest.er1
   3257     cat conftest.er1 >&5
   3258     rm -f conftest.er1 conftest.err
   3259   fi
   3260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3261   test $ac_status = 0; }
   3262 done
   3263 
   3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3265 /* end confdefs.h.  */
   3266 
   3267 int
   3268 main ()
   3269 {
   3270 
   3271   ;
   3272   return 0;
   3273 }
   3274 _ACEOF
   3275 # FIXME: Cleanup?
   3276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   3277   (eval $ac_link) 2>&5
   3278   ac_status=$?
   3279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3280   test $ac_status = 0; }; then :
   3281   gcc_no_link=no
   3282 else
   3283   gcc_no_link=yes
   3284 fi
   3285 if test x$gcc_no_link = xyes; then
   3286   # Setting cross_compile will disable run tests; it will
   3287   # also disable AC_CHECK_FILE but that's generally
   3288   # correct if we can't link.
   3289   cross_compiling=yes
   3290   EXEEXT=
   3291 else
   3292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3293 /* end confdefs.h.  */
   3294 
   3295 int
   3296 main ()
   3297 {
   3298 
   3299   ;
   3300   return 0;
   3301 }
   3302 _ACEOF
   3303 ac_clean_files_save=$ac_clean_files
   3304 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
   3305 # Try to create an executable without -o first, disregard a.out.
   3306 # It will help us diagnose broken compilers, and finding out an intuition
   3307 # of exeext.
   3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3309 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3310 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3311 
   3312 # The possible output files:
   3313 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3314 
   3315 ac_rmfiles=
   3316 for ac_file in $ac_files
   3317 do
   3318   case $ac_file in
   3319     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3320     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3321   esac
   3322 done
   3323 rm -f $ac_rmfiles
   3324 
   3325 if { { ac_try="$ac_link_default"
   3326 case "(($ac_try" in
   3327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3328   *) ac_try_echo=$ac_try;;
   3329 esac
   3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3331 $as_echo "$ac_try_echo"; } >&5
   3332   (eval "$ac_link_default") 2>&5
   3333   ac_status=$?
   3334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3335   test $ac_status = 0; }; then :
   3336   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3337 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3338 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3339 # so that the user can short-circuit this test for compilers unknown to
   3340 # Autoconf.
   3341 for ac_file in $ac_files ''
   3342 do
   3343   test -f "$ac_file" || continue
   3344   case $ac_file in
   3345     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3346 	;;
   3347     [ab].out )
   3348 	# We found the default executable, but exeext='' is most
   3349 	# certainly right.
   3350 	break;;
   3351     *.* )
   3352 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3353 	then :; else
   3354 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3355 	fi
   3356 	# We set ac_cv_exeext here because the later test for it is not
   3357 	# safe: cross compilers may not add the suffix if given an `-o'
   3358 	# argument, so we may need to know it at that point already.
   3359 	# Even if this section looks crufty: it has the advantage of
   3360 	# actually working.
   3361 	break;;
   3362     * )
   3363 	break;;
   3364   esac
   3365 done
   3366 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3367 
   3368 else
   3369   ac_file=''
   3370 fi
   3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3372 $as_echo "$ac_file" >&6; }
   3373 if test -z "$ac_file"; then :
   3374   $as_echo "$as_me: failed program was:" >&5
   3375 sed 's/^/| /' conftest.$ac_ext >&5
   3376 
   3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3379 { as_fn_set_status 77
   3380 as_fn_error "C compiler cannot create executables
   3381 See \`config.log' for more details." "$LINENO" 5; }; }
   3382 fi
   3383 ac_exeext=$ac_cv_exeext
   3384 
   3385 # Check that the compiler produces executables we can run.  If not, either
   3386 # the compiler is broken, or we cross compile.
   3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3388 $as_echo_n "checking whether the C compiler works... " >&6; }
   3389 # If not cross compiling, check that we can run a simple program.
   3390 if test "$cross_compiling" != yes; then
   3391   if { ac_try='./$ac_file'
   3392   { { case "(($ac_try" in
   3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3394   *) ac_try_echo=$ac_try;;
   3395 esac
   3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3397 $as_echo "$ac_try_echo"; } >&5
   3398   (eval "$ac_try") 2>&5
   3399   ac_status=$?
   3400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3401   test $ac_status = 0; }; }; then
   3402     cross_compiling=no
   3403   else
   3404     if test "$cross_compiling" = maybe; then
   3405 	cross_compiling=yes
   3406     else
   3407 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3409 as_fn_error "cannot run C compiled programs.
   3410 If you meant to cross compile, use \`--host'.
   3411 See \`config.log' for more details." "$LINENO" 5; }
   3412     fi
   3413   fi
   3414 fi
   3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3416 $as_echo "yes" >&6; }
   3417 
   3418 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
   3419 ac_clean_files=$ac_clean_files_save
   3420 # Check that the compiler produces executables we can run.  If not, either
   3421 # the compiler is broken, or we cross compile.
   3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3423 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3425 $as_echo "$cross_compiling" >&6; }
   3426 
   3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3428 $as_echo_n "checking for suffix of executables... " >&6; }
   3429 if { { ac_try="$ac_link"
   3430 case "(($ac_try" in
   3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3432   *) ac_try_echo=$ac_try;;
   3433 esac
   3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3435 $as_echo "$ac_try_echo"; } >&5
   3436   (eval "$ac_link") 2>&5
   3437   ac_status=$?
   3438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3439   test $ac_status = 0; }; then :
   3440   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3441 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3442 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3443 # `rm'.
   3444 for ac_file in conftest.exe conftest conftest.*; do
   3445   test -f "$ac_file" || continue
   3446   case $ac_file in
   3447     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3448     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3449 	  break;;
   3450     * ) break;;
   3451   esac
   3452 done
   3453 else
   3454   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3456 as_fn_error "cannot compute suffix of executables: cannot compile and link
   3457 See \`config.log' for more details." "$LINENO" 5; }
   3458 fi
   3459 rm -f conftest$ac_cv_exeext
   3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3461 $as_echo "$ac_cv_exeext" >&6; }
   3462 
   3463 rm -f conftest.$ac_ext
   3464 EXEEXT=$ac_cv_exeext
   3465 ac_exeext=$EXEEXT
   3466 fi
   3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3468 $as_echo_n "checking for suffix of object files... " >&6; }
   3469 if test "${ac_cv_objext+set}" = set; then :
   3470   $as_echo_n "(cached) " >&6
   3471 else
   3472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3473 /* end confdefs.h.  */
   3474 
   3475 int
   3476 main ()
   3477 {
   3478 
   3479   ;
   3480   return 0;
   3481 }
   3482 _ACEOF
   3483 rm -f conftest.o conftest.obj
   3484 if { { ac_try="$ac_compile"
   3485 case "(($ac_try" in
   3486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3487   *) ac_try_echo=$ac_try;;
   3488 esac
   3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3490 $as_echo "$ac_try_echo"; } >&5
   3491   (eval "$ac_compile") 2>&5
   3492   ac_status=$?
   3493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3494   test $ac_status = 0; }; then :
   3495   for ac_file in conftest.o conftest.obj conftest.*; do
   3496   test -f "$ac_file" || continue;
   3497   case $ac_file in
   3498     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3499     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3500        break;;
   3501   esac
   3502 done
   3503 else
   3504   $as_echo "$as_me: failed program was:" >&5
   3505 sed 's/^/| /' conftest.$ac_ext >&5
   3506 
   3507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3509 as_fn_error "cannot compute suffix of object files: cannot compile
   3510 See \`config.log' for more details." "$LINENO" 5; }
   3511 fi
   3512 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3513 fi
   3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3515 $as_echo "$ac_cv_objext" >&6; }
   3516 OBJEXT=$ac_cv_objext
   3517 ac_objext=$OBJEXT
   3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3519 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3520 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
   3521   $as_echo_n "(cached) " >&6
   3522 else
   3523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3524 /* end confdefs.h.  */
   3525 
   3526 int
   3527 main ()
   3528 {
   3529 #ifndef __GNUC__
   3530        choke me
   3531 #endif
   3532 
   3533   ;
   3534   return 0;
   3535 }
   3536 _ACEOF
   3537 if ac_fn_c_try_compile "$LINENO"; then :
   3538   ac_compiler_gnu=yes
   3539 else
   3540   ac_compiler_gnu=no
   3541 fi
   3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3543 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3544 
   3545 fi
   3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3547 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3548 if test $ac_compiler_gnu = yes; then
   3549   GCC=yes
   3550 else
   3551   GCC=
   3552 fi
   3553 ac_test_CFLAGS=${CFLAGS+set}
   3554 ac_save_CFLAGS=$CFLAGS
   3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3556 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3557 if test "${ac_cv_prog_cc_g+set}" = set; then :
   3558   $as_echo_n "(cached) " >&6
   3559 else
   3560   ac_save_c_werror_flag=$ac_c_werror_flag
   3561    ac_c_werror_flag=yes
   3562    ac_cv_prog_cc_g=no
   3563    CFLAGS="-g"
   3564    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3565 /* end confdefs.h.  */
   3566 
   3567 int
   3568 main ()
   3569 {
   3570 
   3571   ;
   3572   return 0;
   3573 }
   3574 _ACEOF
   3575 if ac_fn_c_try_compile "$LINENO"; then :
   3576   ac_cv_prog_cc_g=yes
   3577 else
   3578   CFLAGS=""
   3579       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3580 /* end confdefs.h.  */
   3581 
   3582 int
   3583 main ()
   3584 {
   3585 
   3586   ;
   3587   return 0;
   3588 }
   3589 _ACEOF
   3590 if ac_fn_c_try_compile "$LINENO"; then :
   3591 
   3592 else
   3593   ac_c_werror_flag=$ac_save_c_werror_flag
   3594 	 CFLAGS="-g"
   3595 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3596 /* end confdefs.h.  */
   3597 
   3598 int
   3599 main ()
   3600 {
   3601 
   3602   ;
   3603   return 0;
   3604 }
   3605 _ACEOF
   3606 if ac_fn_c_try_compile "$LINENO"; then :
   3607   ac_cv_prog_cc_g=yes
   3608 fi
   3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3610 fi
   3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3612 fi
   3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3614    ac_c_werror_flag=$ac_save_c_werror_flag
   3615 fi
   3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3617 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3618 if test "$ac_test_CFLAGS" = set; then
   3619   CFLAGS=$ac_save_CFLAGS
   3620 elif test $ac_cv_prog_cc_g = yes; then
   3621   if test "$GCC" = yes; then
   3622     CFLAGS="-g -O2"
   3623   else
   3624     CFLAGS="-g"
   3625   fi
   3626 else
   3627   if test "$GCC" = yes; then
   3628     CFLAGS="-O2"
   3629   else
   3630     CFLAGS=
   3631   fi
   3632 fi
   3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3634 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3635 if test "${ac_cv_prog_cc_c89+set}" = set; then :
   3636   $as_echo_n "(cached) " >&6
   3637 else
   3638   ac_cv_prog_cc_c89=no
   3639 ac_save_CC=$CC
   3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3641 /* end confdefs.h.  */
   3642 #include <stdarg.h>
   3643 #include <stdio.h>
   3644 #include <sys/types.h>
   3645 #include <sys/stat.h>
   3646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3647 struct buf { int x; };
   3648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3649 static char *e (p, i)
   3650      char **p;
   3651      int i;
   3652 {
   3653   return p[i];
   3654 }
   3655 static char *f (char * (*g) (char **, int), char **p, ...)
   3656 {
   3657   char *s;
   3658   va_list v;
   3659   va_start (v,p);
   3660   s = g (p, va_arg (v,int));
   3661   va_end (v);
   3662   return s;
   3663 }
   3664 
   3665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3666    function prototypes and stuff, but not '\xHH' hex character constants.
   3667    These don't provoke an error unfortunately, instead are silently treated
   3668    as 'x'.  The following induces an error, until -std is added to get
   3669    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3670    array size at least.  It's necessary to write '\x00'==0 to get something
   3671    that's true only with -std.  */
   3672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3673 
   3674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3675    inside strings and character constants.  */
   3676 #define FOO(x) 'x'
   3677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3678 
   3679 int test (int i, double x);
   3680 struct s1 {int (*f) (int a);};
   3681 struct s2 {int (*f) (double a);};
   3682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3683 int argc;
   3684 char **argv;
   3685 int
   3686 main ()
   3687 {
   3688 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3689   ;
   3690   return 0;
   3691 }
   3692 _ACEOF
   3693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3694 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3695 do
   3696   CC="$ac_save_CC $ac_arg"
   3697   if ac_fn_c_try_compile "$LINENO"; then :
   3698   ac_cv_prog_cc_c89=$ac_arg
   3699 fi
   3700 rm -f core conftest.err conftest.$ac_objext
   3701   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3702 done
   3703 rm -f conftest.$ac_ext
   3704 CC=$ac_save_CC
   3705 
   3706 fi
   3707 # AC_CACHE_VAL
   3708 case "x$ac_cv_prog_cc_c89" in
   3709   x)
   3710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3711 $as_echo "none needed" >&6; } ;;
   3712   xno)
   3713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3714 $as_echo "unsupported" >&6; } ;;
   3715   *)
   3716     CC="$CC $ac_cv_prog_cc_c89"
   3717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3718 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3719 esac
   3720 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3721 
   3722 fi
   3723 
   3724 ac_ext=c
   3725 ac_cpp='$CPP $CPPFLAGS'
   3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3729 
   3730 
   3731 ac_ext=c
   3732 ac_cpp='$CPP $CPPFLAGS'
   3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3737 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3738 # On Suns, sometimes $CPP names a directory.
   3739 if test -n "$CPP" && test -d "$CPP"; then
   3740   CPP=
   3741 fi
   3742 if test -z "$CPP"; then
   3743   if test "${ac_cv_prog_CPP+set}" = set; then :
   3744   $as_echo_n "(cached) " >&6
   3745 else
   3746       # Double quotes because CPP needs to be expanded
   3747     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3748     do
   3749       ac_preproc_ok=false
   3750 for ac_c_preproc_warn_flag in '' yes
   3751 do
   3752   # Use a header file that comes with gcc, so configuring glibc
   3753   # with a fresh cross-compiler works.
   3754   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3755   # <limits.h> exists even on freestanding compilers.
   3756   # On the NeXT, cc -E runs the code through the compiler's parser,
   3757   # not just through cpp. "Syntax error" is here to catch this case.
   3758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3759 /* end confdefs.h.  */
   3760 #ifdef __STDC__
   3761 # include <limits.h>
   3762 #else
   3763 # include <assert.h>
   3764 #endif
   3765 		     Syntax error
   3766 _ACEOF
   3767 if ac_fn_c_try_cpp "$LINENO"; then :
   3768 
   3769 else
   3770   # Broken: fails on valid input.
   3771 continue
   3772 fi
   3773 rm -f conftest.err conftest.$ac_ext
   3774 
   3775   # OK, works on sane cases.  Now check whether nonexistent headers
   3776   # can be detected and how.
   3777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3778 /* end confdefs.h.  */
   3779 #include <ac_nonexistent.h>
   3780 _ACEOF
   3781 if ac_fn_c_try_cpp "$LINENO"; then :
   3782   # Broken: success on invalid input.
   3783 continue
   3784 else
   3785   # Passes both tests.
   3786 ac_preproc_ok=:
   3787 break
   3788 fi
   3789 rm -f conftest.err conftest.$ac_ext
   3790 
   3791 done
   3792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3793 rm -f conftest.err conftest.$ac_ext
   3794 if $ac_preproc_ok; then :
   3795   break
   3796 fi
   3797 
   3798     done
   3799     ac_cv_prog_CPP=$CPP
   3800 
   3801 fi
   3802   CPP=$ac_cv_prog_CPP
   3803 else
   3804   ac_cv_prog_CPP=$CPP
   3805 fi
   3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3807 $as_echo "$CPP" >&6; }
   3808 ac_preproc_ok=false
   3809 for ac_c_preproc_warn_flag in '' yes
   3810 do
   3811   # Use a header file that comes with gcc, so configuring glibc
   3812   # with a fresh cross-compiler works.
   3813   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3814   # <limits.h> exists even on freestanding compilers.
   3815   # On the NeXT, cc -E runs the code through the compiler's parser,
   3816   # not just through cpp. "Syntax error" is here to catch this case.
   3817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3818 /* end confdefs.h.  */
   3819 #ifdef __STDC__
   3820 # include <limits.h>
   3821 #else
   3822 # include <assert.h>
   3823 #endif
   3824 		     Syntax error
   3825 _ACEOF
   3826 if ac_fn_c_try_cpp "$LINENO"; then :
   3827 
   3828 else
   3829   # Broken: fails on valid input.
   3830 continue
   3831 fi
   3832 rm -f conftest.err conftest.$ac_ext
   3833 
   3834   # OK, works on sane cases.  Now check whether nonexistent headers
   3835   # can be detected and how.
   3836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3837 /* end confdefs.h.  */
   3838 #include <ac_nonexistent.h>
   3839 _ACEOF
   3840 if ac_fn_c_try_cpp "$LINENO"; then :
   3841   # Broken: success on invalid input.
   3842 continue
   3843 else
   3844   # Passes both tests.
   3845 ac_preproc_ok=:
   3846 break
   3847 fi
   3848 rm -f conftest.err conftest.$ac_ext
   3849 
   3850 done
   3851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3852 rm -f conftest.err conftest.$ac_ext
   3853 if $ac_preproc_ok; then :
   3854 
   3855 else
   3856   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3858 as_fn_error "C preprocessor \"$CPP\" fails sanity check
   3859 See \`config.log' for more details." "$LINENO" 5; }
   3860 fi
   3861 
   3862 ac_ext=c
   3863 ac_cpp='$CPP $CPPFLAGS'
   3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3867 
   3868 
   3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3870 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3871 if test "${ac_cv_path_GREP+set}" = set; then :
   3872   $as_echo_n "(cached) " >&6
   3873 else
   3874   if test -z "$GREP"; then
   3875   ac_path_GREP_found=false
   3876   # Loop through the user's path and test for each of PROGNAME-LIST
   3877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3879 do
   3880   IFS=$as_save_IFS
   3881   test -z "$as_dir" && as_dir=.
   3882     for ac_prog in grep ggrep; do
   3883     for ac_exec_ext in '' $ac_executable_extensions; do
   3884       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3885       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3886 # Check for GNU ac_path_GREP and select it if it is found.
   3887   # Check for GNU $ac_path_GREP
   3888 case `"$ac_path_GREP" --version 2>&1` in
   3889 *GNU*)
   3890   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3891 *)
   3892   ac_count=0
   3893   $as_echo_n 0123456789 >"conftest.in"
   3894   while :
   3895   do
   3896     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3897     mv "conftest.tmp" "conftest.in"
   3898     cp "conftest.in" "conftest.nl"
   3899     $as_echo 'GREP' >> "conftest.nl"
   3900     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3901     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3902     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3903     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3904       # Best one so far, save it but keep looking for a better one
   3905       ac_cv_path_GREP="$ac_path_GREP"
   3906       ac_path_GREP_max=$ac_count
   3907     fi
   3908     # 10*(2^10) chars as input seems more than enough
   3909     test $ac_count -gt 10 && break
   3910   done
   3911   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3912 esac
   3913 
   3914       $ac_path_GREP_found && break 3
   3915     done
   3916   done
   3917   done
   3918 IFS=$as_save_IFS
   3919   if test -z "$ac_cv_path_GREP"; then
   3920     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3921   fi
   3922 else
   3923   ac_cv_path_GREP=$GREP
   3924 fi
   3925 
   3926 fi
   3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3928 $as_echo "$ac_cv_path_GREP" >&6; }
   3929  GREP="$ac_cv_path_GREP"
   3930 
   3931 
   3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3933 $as_echo_n "checking for egrep... " >&6; }
   3934 if test "${ac_cv_path_EGREP+set}" = set; then :
   3935   $as_echo_n "(cached) " >&6
   3936 else
   3937   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3938    then ac_cv_path_EGREP="$GREP -E"
   3939    else
   3940      if test -z "$EGREP"; then
   3941   ac_path_EGREP_found=false
   3942   # Loop through the user's path and test for each of PROGNAME-LIST
   3943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3945 do
   3946   IFS=$as_save_IFS
   3947   test -z "$as_dir" && as_dir=.
   3948     for ac_prog in egrep; do
   3949     for ac_exec_ext in '' $ac_executable_extensions; do
   3950       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3951       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   3952 # Check for GNU ac_path_EGREP and select it if it is found.
   3953   # Check for GNU $ac_path_EGREP
   3954 case `"$ac_path_EGREP" --version 2>&1` in
   3955 *GNU*)
   3956   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3957 *)
   3958   ac_count=0
   3959   $as_echo_n 0123456789 >"conftest.in"
   3960   while :
   3961   do
   3962     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3963     mv "conftest.tmp" "conftest.in"
   3964     cp "conftest.in" "conftest.nl"
   3965     $as_echo 'EGREP' >> "conftest.nl"
   3966     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3967     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3968     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3969     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3970       # Best one so far, save it but keep looking for a better one
   3971       ac_cv_path_EGREP="$ac_path_EGREP"
   3972       ac_path_EGREP_max=$ac_count
   3973     fi
   3974     # 10*(2^10) chars as input seems more than enough
   3975     test $ac_count -gt 10 && break
   3976   done
   3977   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3978 esac
   3979 
   3980       $ac_path_EGREP_found && break 3
   3981     done
   3982   done
   3983   done
   3984 IFS=$as_save_IFS
   3985   if test -z "$ac_cv_path_EGREP"; then
   3986     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3987   fi
   3988 else
   3989   ac_cv_path_EGREP=$EGREP
   3990 fi
   3991 
   3992    fi
   3993 fi
   3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3995 $as_echo "$ac_cv_path_EGREP" >&6; }
   3996  EGREP="$ac_cv_path_EGREP"
   3997 
   3998 
   3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4000 $as_echo_n "checking for ANSI C header files... " >&6; }
   4001 if test "${ac_cv_header_stdc+set}" = set; then :
   4002   $as_echo_n "(cached) " >&6
   4003 else
   4004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4005 /* end confdefs.h.  */
   4006 #include <stdlib.h>
   4007 #include <stdarg.h>
   4008 #include <string.h>
   4009 #include <float.h>
   4010 
   4011 int
   4012 main ()
   4013 {
   4014 
   4015   ;
   4016   return 0;
   4017 }
   4018 _ACEOF
   4019 if ac_fn_c_try_compile "$LINENO"; then :
   4020   ac_cv_header_stdc=yes
   4021 else
   4022   ac_cv_header_stdc=no
   4023 fi
   4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4025 
   4026 if test $ac_cv_header_stdc = yes; then
   4027   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4029 /* end confdefs.h.  */
   4030 #include <string.h>
   4031 
   4032 _ACEOF
   4033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4034   $EGREP "memchr" >/dev/null 2>&1; then :
   4035 
   4036 else
   4037   ac_cv_header_stdc=no
   4038 fi
   4039 rm -f conftest*
   4040 
   4041 fi
   4042 
   4043 if test $ac_cv_header_stdc = yes; then
   4044   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4046 /* end confdefs.h.  */
   4047 #include <stdlib.h>
   4048 
   4049 _ACEOF
   4050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4051   $EGREP "free" >/dev/null 2>&1; then :
   4052 
   4053 else
   4054   ac_cv_header_stdc=no
   4055 fi
   4056 rm -f conftest*
   4057 
   4058 fi
   4059 
   4060 if test $ac_cv_header_stdc = yes; then
   4061   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4062   if test "$cross_compiling" = yes; then :
   4063   :
   4064 else
   4065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4066 /* end confdefs.h.  */
   4067 #include <ctype.h>
   4068 #include <stdlib.h>
   4069 #if ((' ' & 0x0FF) == 0x020)
   4070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4072 #else
   4073 # define ISLOWER(c) \
   4074 		   (('a' <= (c) && (c) <= 'i') \
   4075 		     || ('j' <= (c) && (c) <= 'r') \
   4076 		     || ('s' <= (c) && (c) <= 'z'))
   4077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4078 #endif
   4079 
   4080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4081 int
   4082 main ()
   4083 {
   4084   int i;
   4085   for (i = 0; i < 256; i++)
   4086     if (XOR (islower (i), ISLOWER (i))
   4087 	|| toupper (i) != TOUPPER (i))
   4088       return 2;
   4089   return 0;
   4090 }
   4091 _ACEOF
   4092 if ac_fn_c_try_run "$LINENO"; then :
   4093 
   4094 else
   4095   ac_cv_header_stdc=no
   4096 fi
   4097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4098   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4099 fi
   4100 
   4101 fi
   4102 fi
   4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4104 $as_echo "$ac_cv_header_stdc" >&6; }
   4105 if test $ac_cv_header_stdc = yes; then
   4106 
   4107 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4108 
   4109 fi
   4110 
   4111 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4112 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4113 		  inttypes.h stdint.h unistd.h
   4114 do :
   4115   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4116 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4117 "
   4118 eval as_val=\$$as_ac_Header
   4119    if test "x$as_val" = x""yes; then :
   4120   cat >>confdefs.h <<_ACEOF
   4121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4122 _ACEOF
   4123 
   4124 fi
   4125 
   4126 done
   4127 
   4128 
   4129 
   4130   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4131 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
   4132   MINIX=yes
   4133 else
   4134   MINIX=
   4135 fi
   4136 
   4137 
   4138   if test "$MINIX" = yes; then
   4139 
   4140 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4141 
   4142 
   4143 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4144 
   4145 
   4146 $as_echo "#define _MINIX 1" >>confdefs.h
   4147 
   4148   fi
   4149 
   4150 
   4151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4152 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4153 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
   4154   $as_echo_n "(cached) " >&6
   4155 else
   4156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4157 /* end confdefs.h.  */
   4158 
   4159 #	  define __EXTENSIONS__ 1
   4160 	  $ac_includes_default
   4161 int
   4162 main ()
   4163 {
   4164 
   4165   ;
   4166   return 0;
   4167 }
   4168 _ACEOF
   4169 if ac_fn_c_try_compile "$LINENO"; then :
   4170   ac_cv_safe_to_define___extensions__=yes
   4171 else
   4172   ac_cv_safe_to_define___extensions__=no
   4173 fi
   4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4175 fi
   4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4177 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4178   test $ac_cv_safe_to_define___extensions__ = yes &&
   4179     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4180 
   4181   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4182 
   4183   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4184 
   4185   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4186 
   4187   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4188 
   4189 
   4190 # Check whether --enable-largefile was given.
   4191 if test "${enable_largefile+set}" = set; then :
   4192   enableval=$enable_largefile;
   4193 fi
   4194 
   4195 if test "$enable_largefile" != no; then
   4196 
   4197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   4198 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   4199 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
   4200   $as_echo_n "(cached) " >&6
   4201 else
   4202   ac_cv_sys_largefile_CC=no
   4203      if test "$GCC" != yes; then
   4204        ac_save_CC=$CC
   4205        while :; do
   4206 	 # IRIX 6.2 and later do not support large files by default,
   4207 	 # so use the C compiler's -n32 option if that helps.
   4208 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4209 /* end confdefs.h.  */
   4210 #include <sys/types.h>
   4211  /* Check that off_t can represent 2**63 - 1 correctly.
   4212     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4213     since some C++ compilers masquerading as C compilers
   4214     incorrectly reject 9223372036854775807.  */
   4215 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4216   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4217 		       && LARGE_OFF_T % 2147483647 == 1)
   4218 		      ? 1 : -1];
   4219 int
   4220 main ()
   4221 {
   4222 
   4223   ;
   4224   return 0;
   4225 }
   4226 _ACEOF
   4227 	 if ac_fn_c_try_compile "$LINENO"; then :
   4228   break
   4229 fi
   4230 rm -f core conftest.err conftest.$ac_objext
   4231 	 CC="$CC -n32"
   4232 	 if ac_fn_c_try_compile "$LINENO"; then :
   4233   ac_cv_sys_largefile_CC=' -n32'; break
   4234 fi
   4235 rm -f core conftest.err conftest.$ac_objext
   4236 	 break
   4237        done
   4238        CC=$ac_save_CC
   4239        rm -f conftest.$ac_ext
   4240     fi
   4241 fi
   4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   4243 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   4244   if test "$ac_cv_sys_largefile_CC" != no; then
   4245     CC=$CC$ac_cv_sys_largefile_CC
   4246   fi
   4247 
   4248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   4249 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   4250 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
   4251   $as_echo_n "(cached) " >&6
   4252 else
   4253   while :; do
   4254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4255 /* end confdefs.h.  */
   4256 #include <sys/types.h>
   4257  /* Check that off_t can represent 2**63 - 1 correctly.
   4258     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4259     since some C++ compilers masquerading as C compilers
   4260     incorrectly reject 9223372036854775807.  */
   4261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4262   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4263 		       && LARGE_OFF_T % 2147483647 == 1)
   4264 		      ? 1 : -1];
   4265 int
   4266 main ()
   4267 {
   4268 
   4269   ;
   4270   return 0;
   4271 }
   4272 _ACEOF
   4273 if ac_fn_c_try_compile "$LINENO"; then :
   4274   ac_cv_sys_file_offset_bits=no; break
   4275 fi
   4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4278 /* end confdefs.h.  */
   4279 #define _FILE_OFFSET_BITS 64
   4280 #include <sys/types.h>
   4281  /* Check that off_t can represent 2**63 - 1 correctly.
   4282     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4283     since some C++ compilers masquerading as C compilers
   4284     incorrectly reject 9223372036854775807.  */
   4285 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4286   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4287 		       && LARGE_OFF_T % 2147483647 == 1)
   4288 		      ? 1 : -1];
   4289 int
   4290 main ()
   4291 {
   4292 
   4293   ;
   4294   return 0;
   4295 }
   4296 _ACEOF
   4297 if ac_fn_c_try_compile "$LINENO"; then :
   4298   ac_cv_sys_file_offset_bits=64; break
   4299 fi
   4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4301   ac_cv_sys_file_offset_bits=unknown
   4302   break
   4303 done
   4304 fi
   4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   4306 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   4307 case $ac_cv_sys_file_offset_bits in #(
   4308   no | unknown) ;;
   4309   *)
   4310 cat >>confdefs.h <<_ACEOF
   4311 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   4312 _ACEOF
   4313 ;;
   4314 esac
   4315 rm -rf conftest*
   4316   if test $ac_cv_sys_file_offset_bits = unknown; then
   4317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   4318 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   4319 if test "${ac_cv_sys_large_files+set}" = set; then :
   4320   $as_echo_n "(cached) " >&6
   4321 else
   4322   while :; do
   4323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4324 /* end confdefs.h.  */
   4325 #include <sys/types.h>
   4326  /* Check that off_t can represent 2**63 - 1 correctly.
   4327     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4328     since some C++ compilers masquerading as C compilers
   4329     incorrectly reject 9223372036854775807.  */
   4330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4331   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4332 		       && LARGE_OFF_T % 2147483647 == 1)
   4333 		      ? 1 : -1];
   4334 int
   4335 main ()
   4336 {
   4337 
   4338   ;
   4339   return 0;
   4340 }
   4341 _ACEOF
   4342 if ac_fn_c_try_compile "$LINENO"; then :
   4343   ac_cv_sys_large_files=no; break
   4344 fi
   4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4347 /* end confdefs.h.  */
   4348 #define _LARGE_FILES 1
   4349 #include <sys/types.h>
   4350  /* Check that off_t can represent 2**63 - 1 correctly.
   4351     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4352     since some C++ compilers masquerading as C compilers
   4353     incorrectly reject 9223372036854775807.  */
   4354 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4355   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4356 		       && LARGE_OFF_T % 2147483647 == 1)
   4357 		      ? 1 : -1];
   4358 int
   4359 main ()
   4360 {
   4361 
   4362   ;
   4363   return 0;
   4364 }
   4365 _ACEOF
   4366 if ac_fn_c_try_compile "$LINENO"; then :
   4367   ac_cv_sys_large_files=1; break
   4368 fi
   4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4370   ac_cv_sys_large_files=unknown
   4371   break
   4372 done
   4373 fi
   4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   4375 $as_echo "$ac_cv_sys_large_files" >&6; }
   4376 case $ac_cv_sys_large_files in #(
   4377   no | unknown) ;;
   4378   *)
   4379 cat >>confdefs.h <<_ACEOF
   4380 #define _LARGE_FILES $ac_cv_sys_large_files
   4381 _ACEOF
   4382 ;;
   4383 esac
   4384 rm -rf conftest*
   4385   fi
   4386 fi
   4387 
   4388 
   4389 ac_c_preproc_warn_flag=yes
   4390 
   4391 ac_libiberty_warn_cflags=
   4392 save_CFLAGS="$CFLAGS"
   4393 for real_option in -W -Wall -Wwrite-strings -Wc++-compat \
   4394 			  -Wstrict-prototypes; do
   4395   # Do the check with the no- prefix removed since gcc silently
   4396   # accepts any -Wno-* option on purpose
   4397   case $real_option in
   4398     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
   4399     *) option=$real_option ;;
   4400   esac
   4401   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   4402 
   4403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
   4404 $as_echo_n "checking whether $CC supports $option... " >&6; }
   4405 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
   4406   $as_echo_n "(cached) " >&6
   4407 else
   4408   CFLAGS="$option"
   4409     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4410 /* end confdefs.h.  */
   4411 
   4412 int
   4413 main ()
   4414 {
   4415 
   4416   ;
   4417   return 0;
   4418 }
   4419 _ACEOF
   4420 if ac_fn_c_try_compile "$LINENO"; then :
   4421   eval "$as_acx_Woption=yes"
   4422 else
   4423   eval "$as_acx_Woption=no"
   4424 fi
   4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4426 
   4427 fi
   4428 eval ac_res=\$$as_acx_Woption
   4429 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   4430 $as_echo "$ac_res" >&6; }
   4431   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
   4432   ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$real_option"
   4433 fi
   4434   done
   4435 CFLAGS="$save_CFLAGS"
   4436 
   4437 # Do the check with the no- prefix removed from the warning options
   4438 # since gcc silently accepts any -Wno-* option on purpose
   4439 if test "$GCC" = yes; then :
   4440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5
   4441 $as_echo_n "checking whether $CC supports -pedantic ... " >&6; }
   4442 if test "${acx_cv_prog_cc_pedantic_+set}" = set; then :
   4443   $as_echo_n "(cached) " >&6
   4444 else
   4445   save_CFLAGS="$CFLAGS"
   4446 CFLAGS="-pedantic "
   4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4448 /* end confdefs.h.  */
   4449 
   4450 int
   4451 main ()
   4452 {
   4453 
   4454   ;
   4455   return 0;
   4456 }
   4457 _ACEOF
   4458 if ac_fn_c_try_compile "$LINENO"; then :
   4459   acx_cv_prog_cc_pedantic_=yes
   4460 else
   4461   acx_cv_prog_cc_pedantic_=no
   4462 fi
   4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4464 CFLAGS="$save_CFLAGS"
   4465 fi
   4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic_" >&5
   4467 $as_echo "$acx_cv_prog_cc_pedantic_" >&6; }
   4468 if test $acx_cv_prog_cc_pedantic_ = yes; then :
   4469   ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
   4470 fi
   4471 
   4472 fi
   4473 
   4474 
   4475 if test "x$CC" != xcc; then
   4476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
   4477 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
   4478 else
   4479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
   4480 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
   4481 fi
   4482 set dummy $CC; ac_cc=`$as_echo "$2" |
   4483 		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   4484 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
   4485   $as_echo_n "(cached) " >&6
   4486 else
   4487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4488 /* end confdefs.h.  */
   4489 
   4490 int
   4491 main ()
   4492 {
   4493 
   4494   ;
   4495   return 0;
   4496 }
   4497 _ACEOF
   4498 # Make sure it works both with $CC and with simple cc.
   4499 # We do the test twice because some compilers refuse to overwrite an
   4500 # existing .o file with -o, though they will create one.
   4501 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   4502 rm -f conftest2.*
   4503 if { { case "(($ac_try" in
   4504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4505   *) ac_try_echo=$ac_try;;
   4506 esac
   4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4508 $as_echo "$ac_try_echo"; } >&5
   4509   (eval "$ac_try") 2>&5
   4510   ac_status=$?
   4511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4512   test $ac_status = 0; } &&
   4513    test -f conftest2.$ac_objext && { { case "(($ac_try" in
   4514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4515   *) ac_try_echo=$ac_try;;
   4516 esac
   4517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4518 $as_echo "$ac_try_echo"; } >&5
   4519   (eval "$ac_try") 2>&5
   4520   ac_status=$?
   4521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4522   test $ac_status = 0; };
   4523 then
   4524   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   4525   if test "x$CC" != xcc; then
   4526     # Test first that cc exists at all.
   4527     if { ac_try='cc -c conftest.$ac_ext >&5'
   4528   { { case "(($ac_try" in
   4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4530   *) ac_try_echo=$ac_try;;
   4531 esac
   4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4533 $as_echo "$ac_try_echo"; } >&5
   4534   (eval "$ac_try") 2>&5
   4535   ac_status=$?
   4536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4537   test $ac_status = 0; }; }; then
   4538       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
   4539       rm -f conftest2.*
   4540       if { { case "(($ac_try" in
   4541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4542   *) ac_try_echo=$ac_try;;
   4543 esac
   4544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4545 $as_echo "$ac_try_echo"; } >&5
   4546   (eval "$ac_try") 2>&5
   4547   ac_status=$?
   4548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4549   test $ac_status = 0; } &&
   4550 	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
   4551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4552   *) ac_try_echo=$ac_try;;
   4553 esac
   4554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4555 $as_echo "$ac_try_echo"; } >&5
   4556   (eval "$ac_try") 2>&5
   4557   ac_status=$?
   4558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4559   test $ac_status = 0; };
   4560       then
   4561 	# cc works too.
   4562 	:
   4563       else
   4564 	# cc exists but doesn't like -o.
   4565 	eval ac_cv_prog_cc_${ac_cc}_c_o=no
   4566       fi
   4567     fi
   4568   fi
   4569 else
   4570   eval ac_cv_prog_cc_${ac_cc}_c_o=no
   4571 fi
   4572 rm -f core conftest*
   4573 
   4574 fi
   4575 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
   4576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4577 $as_echo "yes" >&6; }
   4578 else
   4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4580 $as_echo "no" >&6; }
   4581 
   4582 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
   4583 
   4584 fi
   4585 
   4586 # autoconf is lame and doesn't give us any substitution variable for this.
   4587 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
   4588   NO_MINUS_C_MINUS_O=yes
   4589 else
   4590   OUTPUT_OPTION='-o $@'
   4591 fi
   4592 
   4593 
   4594 
   4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   4596 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   4597 if test "${ac_cv_c_const+set}" = set; then :
   4598   $as_echo_n "(cached) " >&6
   4599 else
   4600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4601 /* end confdefs.h.  */
   4602 
   4603 int
   4604 main ()
   4605 {
   4606 /* FIXME: Include the comments suggested by Paul. */
   4607 #ifndef __cplusplus
   4608   /* Ultrix mips cc rejects this.  */
   4609   typedef int charset[2];
   4610   const charset cs;
   4611   /* SunOS 4.1.1 cc rejects this.  */
   4612   char const *const *pcpcc;
   4613   char **ppc;
   4614   /* NEC SVR4.0.2 mips cc rejects this.  */
   4615   struct point {int x, y;};
   4616   static struct point const zero = {0,0};
   4617   /* AIX XL C 1.02.0.0 rejects this.
   4618      It does not let you subtract one const X* pointer from another in
   4619      an arm of an if-expression whose if-part is not a constant
   4620      expression */
   4621   const char *g = "string";
   4622   pcpcc = &g + (g ? g-g : 0);
   4623   /* HPUX 7.0 cc rejects these. */
   4624   ++pcpcc;
   4625   ppc = (char**) pcpcc;
   4626   pcpcc = (char const *const *) ppc;
   4627   { /* SCO 3.2v4 cc rejects this.  */
   4628     char *t;
   4629     char const *s = 0 ? (char *) 0 : (char const *) 0;
   4630 
   4631     *t++ = 0;
   4632     if (s) return 0;
   4633   }
   4634   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   4635     int x[] = {25, 17};
   4636     const int *foo = &x[0];
   4637     ++foo;
   4638   }
   4639   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   4640     typedef const int *iptr;
   4641     iptr p = 0;
   4642     ++p;
   4643   }
   4644   { /* AIX XL C 1.02.0.0 rejects this saying
   4645        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   4646     struct s { int j; const int *ap[3]; };
   4647     struct s *b; b->j = 5;
   4648   }
   4649   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   4650     const int foo = 10;
   4651     if (!foo) return 0;
   4652   }
   4653   return !cs[0] && !zero.x;
   4654 #endif
   4655 
   4656   ;
   4657   return 0;
   4658 }
   4659 _ACEOF
   4660 if ac_fn_c_try_compile "$LINENO"; then :
   4661   ac_cv_c_const=yes
   4662 else
   4663   ac_cv_c_const=no
   4664 fi
   4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4666 fi
   4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   4668 $as_echo "$ac_cv_c_const" >&6; }
   4669 if test $ac_cv_c_const = no; then
   4670 
   4671 $as_echo "#define const /**/" >>confdefs.h
   4672 
   4673 fi
   4674 
   4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   4676 $as_echo_n "checking for inline... " >&6; }
   4677 if test "${ac_cv_c_inline+set}" = set; then :
   4678   $as_echo_n "(cached) " >&6
   4679 else
   4680   ac_cv_c_inline=no
   4681 for ac_kw in inline __inline__ __inline; do
   4682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4683 /* end confdefs.h.  */
   4684 #ifndef __cplusplus
   4685 typedef int foo_t;
   4686 static $ac_kw foo_t static_foo () {return 0; }
   4687 $ac_kw foo_t foo () {return 0; }
   4688 #endif
   4689 
   4690 _ACEOF
   4691 if ac_fn_c_try_compile "$LINENO"; then :
   4692   ac_cv_c_inline=$ac_kw
   4693 fi
   4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4695   test "$ac_cv_c_inline" != no && break
   4696 done
   4697 
   4698 fi
   4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   4700 $as_echo "$ac_cv_c_inline" >&6; }
   4701 
   4702 case $ac_cv_c_inline in
   4703   inline | yes) ;;
   4704   *)
   4705     case $ac_cv_c_inline in
   4706       no) ac_val=;;
   4707       *) ac_val=$ac_cv_c_inline;;
   4708     esac
   4709     cat >>confdefs.h <<_ACEOF
   4710 #ifndef __cplusplus
   4711 #define inline $ac_val
   4712 #endif
   4713 _ACEOF
   4714     ;;
   4715 esac
   4716 
   4717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   4718 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   4719 if test "${ac_cv_c_bigendian+set}" = set; then :
   4720   $as_echo_n "(cached) " >&6
   4721 else
   4722   ac_cv_c_bigendian=unknown
   4723     # See if we're dealing with a universal compiler.
   4724     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4725 /* end confdefs.h.  */
   4726 #ifndef __APPLE_CC__
   4727 	       not a universal capable compiler
   4728 	     #endif
   4729 	     typedef int dummy;
   4730 
   4731 _ACEOF
   4732 if ac_fn_c_try_compile "$LINENO"; then :
   4733 
   4734 	# Check for potential -arch flags.  It is not universal unless
   4735 	# there are at least two -arch flags with different values.
   4736 	ac_arch=
   4737 	ac_prev=
   4738 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   4739 	 if test -n "$ac_prev"; then
   4740 	   case $ac_word in
   4741 	     i?86 | x86_64 | ppc | ppc64)
   4742 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   4743 		 ac_arch=$ac_word
   4744 	       else
   4745 		 ac_cv_c_bigendian=universal
   4746 		 break
   4747 	       fi
   4748 	       ;;
   4749 	   esac
   4750 	   ac_prev=
   4751 	 elif test "x$ac_word" = "x-arch"; then
   4752 	   ac_prev=arch
   4753 	 fi
   4754        done
   4755 fi
   4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4757     if test $ac_cv_c_bigendian = unknown; then
   4758       # See if sys/param.h defines the BYTE_ORDER macro.
   4759       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4760 /* end confdefs.h.  */
   4761 #include <sys/types.h>
   4762 	     #include <sys/param.h>
   4763 
   4764 int
   4765 main ()
   4766 {
   4767 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   4768 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   4769 		     && LITTLE_ENDIAN)
   4770 	      bogus endian macros
   4771 	     #endif
   4772 
   4773   ;
   4774   return 0;
   4775 }
   4776 _ACEOF
   4777 if ac_fn_c_try_compile "$LINENO"; then :
   4778   # It does; now see whether it defined to BIG_ENDIAN or not.
   4779 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4780 /* end confdefs.h.  */
   4781 #include <sys/types.h>
   4782 		#include <sys/param.h>
   4783 
   4784 int
   4785 main ()
   4786 {
   4787 #if BYTE_ORDER != BIG_ENDIAN
   4788 		 not big endian
   4789 		#endif
   4790 
   4791   ;
   4792   return 0;
   4793 }
   4794 _ACEOF
   4795 if ac_fn_c_try_compile "$LINENO"; then :
   4796   ac_cv_c_bigendian=yes
   4797 else
   4798   ac_cv_c_bigendian=no
   4799 fi
   4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4801 fi
   4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4803     fi
   4804     if test $ac_cv_c_bigendian = unknown; then
   4805       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   4806       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4807 /* end confdefs.h.  */
   4808 #include <limits.h>
   4809 
   4810 int
   4811 main ()
   4812 {
   4813 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   4814 	      bogus endian macros
   4815 	     #endif
   4816 
   4817   ;
   4818   return 0;
   4819 }
   4820 _ACEOF
   4821 if ac_fn_c_try_compile "$LINENO"; then :
   4822   # It does; now see whether it defined to _BIG_ENDIAN or not.
   4823 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4824 /* end confdefs.h.  */
   4825 #include <limits.h>
   4826 
   4827 int
   4828 main ()
   4829 {
   4830 #ifndef _BIG_ENDIAN
   4831 		 not big endian
   4832 		#endif
   4833 
   4834   ;
   4835   return 0;
   4836 }
   4837 _ACEOF
   4838 if ac_fn_c_try_compile "$LINENO"; then :
   4839   ac_cv_c_bigendian=yes
   4840 else
   4841   ac_cv_c_bigendian=no
   4842 fi
   4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4844 fi
   4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4846     fi
   4847     if test $ac_cv_c_bigendian = unknown; then
   4848       # Compile a test program.
   4849       if test "$cross_compiling" = yes; then :
   4850   # Try to guess by grepping values from an object file.
   4851 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4852 /* end confdefs.h.  */
   4853 short int ascii_mm[] =
   4854 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   4855 		short int ascii_ii[] =
   4856 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   4857 		int use_ascii (int i) {
   4858 		  return ascii_mm[i] + ascii_ii[i];
   4859 		}
   4860 		short int ebcdic_ii[] =
   4861 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   4862 		short int ebcdic_mm[] =
   4863 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   4864 		int use_ebcdic (int i) {
   4865 		  return ebcdic_mm[i] + ebcdic_ii[i];
   4866 		}
   4867 		extern int foo;
   4868 
   4869 int
   4870 main ()
   4871 {
   4872 return use_ascii (foo) == use_ebcdic (foo);
   4873   ;
   4874   return 0;
   4875 }
   4876 _ACEOF
   4877 if ac_fn_c_try_compile "$LINENO"; then :
   4878   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   4879 	      ac_cv_c_bigendian=yes
   4880 	    fi
   4881 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   4882 	      if test "$ac_cv_c_bigendian" = unknown; then
   4883 		ac_cv_c_bigendian=no
   4884 	      else
   4885 		# finding both strings is unlikely to happen, but who knows?
   4886 		ac_cv_c_bigendian=unknown
   4887 	      fi
   4888 	    fi
   4889 fi
   4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4891 else
   4892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4893 /* end confdefs.h.  */
   4894 $ac_includes_default
   4895 int
   4896 main ()
   4897 {
   4898 
   4899 	     /* Are we little or big endian?  From Harbison&Steele.  */
   4900 	     union
   4901 	     {
   4902 	       long int l;
   4903 	       char c[sizeof (long int)];
   4904 	     } u;
   4905 	     u.l = 1;
   4906 	     return u.c[sizeof (long int) - 1] == 1;
   4907 
   4908   ;
   4909   return 0;
   4910 }
   4911 _ACEOF
   4912 if ac_fn_c_try_run "$LINENO"; then :
   4913   ac_cv_c_bigendian=no
   4914 else
   4915   ac_cv_c_bigendian=yes
   4916 fi
   4917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4918   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4919 fi
   4920 
   4921     fi
   4922 fi
   4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   4924 $as_echo "$ac_cv_c_bigendian" >&6; }
   4925  case $ac_cv_c_bigendian in #(
   4926    yes)
   4927      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   4928 ;; #(
   4929    no)
   4930       ;; #(
   4931    universal)
   4932 
   4933 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   4934 
   4935      ;; #(
   4936    *)
   4937      as_fn_error "unknown endianness
   4938  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   4939  esac
   4940 
   4941 
   4942 
   4943 
   4944 ac_config_headers="$ac_config_headers config.h:config.in"
   4945 
   4946 
   4947 
   4948 # Find a good install program.  We prefer a C program (faster),
   4949 # so one script is as good as another.  But avoid the broken or
   4950 # incompatible versions:
   4951 # SysV /etc/install, /usr/sbin/install
   4952 # SunOS /usr/etc/install
   4953 # IRIX /sbin/install
   4954 # AIX /bin/install
   4955 # AmigaOS /C/install, which installs bootblocks on floppy discs
   4956 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   4957 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   4958 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   4959 # OS/2's system install, which has a completely different semantic
   4960 # ./install, which can be erroneously created by make from ./install.sh.
   4961 # Reject install programs that cannot install multiple files.
   4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   4963 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   4964 if test -z "$INSTALL"; then
   4965 if test "${ac_cv_path_install+set}" = set; then :
   4966   $as_echo_n "(cached) " >&6
   4967 else
   4968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4969 for as_dir in $PATH
   4970 do
   4971   IFS=$as_save_IFS
   4972   test -z "$as_dir" && as_dir=.
   4973     # Account for people who put trailing slashes in PATH elements.
   4974 case $as_dir/ in #((
   4975   ./ | .// | /[cC]/* | \
   4976   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   4977   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   4978   /usr/ucb/* ) ;;
   4979   *)
   4980     # OSF1 and SCO ODT 3.0 have their own names for install.
   4981     # Don't use installbsd from OSF since it installs stuff as root
   4982     # by default.
   4983     for ac_prog in ginstall scoinst install; do
   4984       for ac_exec_ext in '' $ac_executable_extensions; do
   4985 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   4986 	  if test $ac_prog = install &&
   4987 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   4988 	    # AIX install.  It has an incompatible calling convention.
   4989 	    :
   4990 	  elif test $ac_prog = install &&
   4991 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   4992 	    # program-specific install script used by HP pwplus--don't use.
   4993 	    :
   4994 	  else
   4995 	    rm -rf conftest.one conftest.two conftest.dir
   4996 	    echo one > conftest.one
   4997 	    echo two > conftest.two
   4998 	    mkdir conftest.dir
   4999 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   5000 	      test -s conftest.one && test -s conftest.two &&
   5001 	      test -s conftest.dir/conftest.one &&
   5002 	      test -s conftest.dir/conftest.two
   5003 	    then
   5004 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   5005 	      break 3
   5006 	    fi
   5007 	  fi
   5008 	fi
   5009       done
   5010     done
   5011     ;;
   5012 esac
   5013 
   5014   done
   5015 IFS=$as_save_IFS
   5016 
   5017 rm -rf conftest.one conftest.two conftest.dir
   5018 
   5019 fi
   5020   if test "${ac_cv_path_install+set}" = set; then
   5021     INSTALL=$ac_cv_path_install
   5022   else
   5023     # As a last resort, use the slow shell script.  Don't cache a
   5024     # value for INSTALL within a source directory, because that will
   5025     # break other packages using the cache if that directory is
   5026     # removed, or if the value is a relative name.
   5027     INSTALL=$ac_install_sh
   5028   fi
   5029 fi
   5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   5031 $as_echo "$INSTALL" >&6; }
   5032 
   5033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   5034 # It thinks the first close brace ends the variable substitution.
   5035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   5036 
   5037 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   5038 
   5039 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   5040 
   5041 
   5042 # Don't build the shared library for build.
   5043 if [ -n "${with_build_subdir}" ]; then
   5044   enable_shared=no
   5045 fi
   5046 
   5047 frag=
   5048 case "${host}" in
   5049   rs6000-ibm-aix3.1 | rs6000-ibm-aix)
   5050                         frag=mh-aix ;;
   5051   *-*-cxux7*)		frag=mh-cxux7 ;;
   5052   *-*-freebsd2.1.*)	frag=mh-fbsd21 ;;
   5053   *-*-freebsd2.2.[012])	frag=mh-fbsd21 ;;
   5054   i370-*-opened*)       frag=mh-openedition ;;
   5055   i[34567]86-*-windows*)	frag=mh-windows ;;
   5056 esac
   5057 
   5058 if [ -n "${frag}" ]; then
   5059   frag=${libiberty_topdir}/libiberty/config/$frag
   5060 fi
   5061 
   5062 
   5063 
   5064 
   5065 
   5066 case "${host}" in
   5067     # PIC is the default on some targets or must not be used.
   5068     *-*-darwin*)
   5069 	# For darwin, common symbols are not allowed in MH_DYLIB files
   5070 	case "${CFLAGS}" in
   5071 	  # If we are using a compiler supporting mdynamic-no-pic
   5072 	  # and the option has been tested as safe to add, then cancel
   5073 	  # it here, since the code generated is incompatible with shared
   5074 	  #libs.
   5075 	  *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
   5076 	  *) PICFLAG=-fno-common ;;
   5077 	esac
   5078 	;;
   5079     alpha*-dec-osf5*)
   5080 	# PIC is the default.
   5081 	;;
   5082     hppa*64*-*-hpux*)
   5083 	# PIC is the default for 64-bit PA HP-UX.
   5084 	;;
   5085     i[34567]86-*-cygwin* | x86_64-*-cygwin*)
   5086 	;;
   5087     i[34567]86-*-mingw* | x86_64-*-mingw*)
   5088 	;;
   5089     i[34567]86-*-interix[3-9]*)
   5090 	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
   5091 	# Instead, we relocate shared libraries at runtime.
   5092 	;;
   5093     i[34567]86-*-nto-qnx*)
   5094 	# QNX uses GNU C++, but need to define -shared option too, otherwise
   5095 	# it will coredump.
   5096 	PICFLAG='-fPIC -shared'
   5097 	;;
   5098     i[34567]86-pc-msdosdjgpp*)
   5099 	# DJGPP does not support shared libraries at all.
   5100 	;;
   5101     ia64*-*-hpux*)
   5102 	# On IA64 HP-UX, PIC is the default but the pic flag
   5103 	# sets the default TLS model and affects inlining.
   5104 	PICFLAG=-fPIC
   5105 	;;
   5106     mips-sgi-irix6*)
   5107 	# PIC is the default.
   5108 	;;
   5109     rs6000-ibm-aix* | powerpc-ibm-aix*)
   5110 	# All AIX code is PIC.
   5111 	;;
   5112 
   5113     # Some targets support both -fPIC and -fpic, but prefer the latter.
   5114     # FIXME: Why?
   5115     i[34567]86-*-* | x86_64-*-*)
   5116 	PICFLAG=-fpic
   5117 	;;
   5118     # FIXME: Override -fPIC default in libgcc only?
   5119     sh-*-linux* | sh[2346lbe]*-*-linux*)
   5120 	PICFLAG=-fpic
   5121 	;;
   5122     # FIXME: Simplify to sh*-*-netbsd*?
   5123     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
   5124       sh64-*-netbsd* | sh64l*-*-netbsd*)
   5125 	PICFLAG=-fpic
   5126 	;;
   5127     # Default to -fPIC unless specified otherwise.
   5128     *)
   5129 	PICFLAG=-fPIC
   5130 	;;
   5131 esac
   5132 
   5133 # If the user explicitly uses -fpic/-fPIC, keep that.
   5134 case "${CFLAGS}" in
   5135     *-fpic*)
   5136 	PICFLAG=-fpic
   5137 	;;
   5138     *-fPIC*)
   5139 	PICFLAG=-fPIC
   5140 	;;
   5141 esac
   5142 
   5143 
   5144 # If they didn't specify --enable-shared, don't generate shared libs.
   5145 case "${enable_shared}" in
   5146   yes) shared=yes ;;
   5147   no) shared=no ;;
   5148   "") shared=no ;;
   5149   *) shared=yes ;;
   5150 esac
   5151 
   5152 # ...unless --enable-host-shared was passed from top-level config:
   5153 if [ "${enable_host_shared}" = "yes" ]; then
   5154   shared=yes
   5155 fi
   5156 
   5157 if [ "${shared}" != "yes" ]; then
   5158   PICFLAG=
   5159 fi
   5160 
   5161 
   5162 NOASANFLAG=
   5163 case " ${CFLAGS} " in
   5164   *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;;
   5165 esac
   5166 
   5167 
   5168 echo "# Warning: this fragment is automatically generated" > temp-frag
   5169 
   5170 if [ -n "${frag}" ] && [ -f "${frag}" ]; then
   5171   echo "Appending ${frag} to xhost-mkfrag"
   5172   echo "# Following fragment copied from ${frag}" >> temp-frag
   5173   cat ${frag} >> temp-frag
   5174 fi
   5175 
   5176 # record if we want to build shared libs.
   5177 if [ "${shared}" = "yes" ]; then
   5178   echo enable_shared = yes >> temp-frag
   5179 else
   5180   echo enable_shared = no >> temp-frag
   5181 fi
   5182 
   5183 frag=xhost-mkfrag
   5184 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
   5185 
   5186 host_makefile_frag=${frag}
   5187 
   5188 
   5189 # It's OK to check for header files.  Although the compiler may not be
   5190 # able to link anything, it had better be able to at least compile
   5191 # something.
   5192 for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h
   5193 do :
   5194   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5195 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
   5196 eval as_val=\$$as_ac_Header
   5197    if test "x$as_val" = x""yes; then :
   5198   cat >>confdefs.h <<_ACEOF
   5199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5200 _ACEOF
   5201 
   5202 fi
   5203 done
   5204 
   5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
   5206 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
   5207 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
   5208   $as_echo_n "(cached) " >&6
   5209 else
   5210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5211 /* end confdefs.h.  */
   5212 #include <sys/types.h>
   5213 #include <sys/wait.h>
   5214 #ifndef WEXITSTATUS
   5215 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
   5216 #endif
   5217 #ifndef WIFEXITED
   5218 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   5219 #endif
   5220 
   5221 int
   5222 main ()
   5223 {
   5224   int s;
   5225   wait (&s);
   5226   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   5227   ;
   5228   return 0;
   5229 }
   5230 _ACEOF
   5231 if ac_fn_c_try_compile "$LINENO"; then :
   5232   ac_cv_header_sys_wait_h=yes
   5233 else
   5234   ac_cv_header_sys_wait_h=no
   5235 fi
   5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5237 fi
   5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
   5239 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
   5240 if test $ac_cv_header_sys_wait_h = yes; then
   5241 
   5242 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
   5243 
   5244 fi
   5245 
   5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   5247 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   5248 if test "${ac_cv_header_time+set}" = set; then :
   5249   $as_echo_n "(cached) " >&6
   5250 else
   5251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5252 /* end confdefs.h.  */
   5253 #include <sys/types.h>
   5254 #include <sys/time.h>
   5255 #include <time.h>
   5256 
   5257 int
   5258 main ()
   5259 {
   5260 if ((struct tm *) 0)
   5261 return 0;
   5262   ;
   5263   return 0;
   5264 }
   5265 _ACEOF
   5266 if ac_fn_c_try_compile "$LINENO"; then :
   5267   ac_cv_header_time=yes
   5268 else
   5269   ac_cv_header_time=no
   5270 fi
   5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5272 fi
   5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   5274 $as_echo "$ac_cv_header_time" >&6; }
   5275 if test $ac_cv_header_time = yes; then
   5276 
   5277 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   5278 
   5279 fi
   5280 
   5281 
   5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether errno must be declared" >&5
   5283 $as_echo_n "checking whether errno must be declared... " >&6; }
   5284 if test "${libiberty_cv_declare_errno+set}" = set; then :
   5285   $as_echo_n "(cached) " >&6
   5286 else
   5287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5288 /* end confdefs.h.  */
   5289 #include <errno.h>
   5290 int
   5291 main ()
   5292 {
   5293 int x = errno;
   5294   ;
   5295   return 0;
   5296 }
   5297 _ACEOF
   5298 if ac_fn_c_try_compile "$LINENO"; then :
   5299   libiberty_cv_declare_errno=no
   5300 else
   5301   libiberty_cv_declare_errno=yes
   5302 fi
   5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5304 fi
   5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_declare_errno" >&5
   5306 $as_echo "$libiberty_cv_declare_errno" >&6; }
   5307 if test $libiberty_cv_declare_errno = yes
   5308 then
   5309 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
   5310 
   5311 fi
   5312 
   5313 
   5314 # Determine sizes of some types.
   5315 # The cast to long int works around a bug in the HP C Compiler
   5316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5318 # This bug is HP SR number 8606223364.
   5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   5320 $as_echo_n "checking size of int... " >&6; }
   5321 if test "${ac_cv_sizeof_int+set}" = set; then :
   5322   $as_echo_n "(cached) " >&6
   5323 else
   5324   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
   5325 
   5326 else
   5327   if test "$ac_cv_type_int" = yes; then
   5328      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5330 { as_fn_set_status 77
   5331 as_fn_error "cannot compute sizeof (int)
   5332 See \`config.log' for more details." "$LINENO" 5; }; }
   5333    else
   5334      ac_cv_sizeof_int=0
   5335    fi
   5336 fi
   5337 
   5338 fi
   5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   5340 $as_echo "$ac_cv_sizeof_int" >&6; }
   5341 
   5342 
   5343 
   5344 cat >>confdefs.h <<_ACEOF
   5345 #define SIZEOF_INT $ac_cv_sizeof_int
   5346 _ACEOF
   5347 
   5348 
   5349 # The cast to long int works around a bug in the HP C Compiler
   5350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5352 # This bug is HP SR number 8606223364.
   5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   5354 $as_echo_n "checking size of long... " >&6; }
   5355 if test "${ac_cv_sizeof_long+set}" = set; then :
   5356   $as_echo_n "(cached) " >&6
   5357 else
   5358   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   5359 
   5360 else
   5361   if test "$ac_cv_type_long" = yes; then
   5362      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5364 { as_fn_set_status 77
   5365 as_fn_error "cannot compute sizeof (long)
   5366 See \`config.log' for more details." "$LINENO" 5; }; }
   5367    else
   5368      ac_cv_sizeof_long=0
   5369    fi
   5370 fi
   5371 
   5372 fi
   5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   5374 $as_echo "$ac_cv_sizeof_long" >&6; }
   5375 
   5376 
   5377 
   5378 cat >>confdefs.h <<_ACEOF
   5379 #define SIZEOF_LONG $ac_cv_sizeof_long
   5380 _ACEOF
   5381 
   5382 
   5383 
   5384 # Check for presense of long long
   5385 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
   5386 if test "x$ac_cv_type_long_long" = x""yes; then :
   5387 
   5388 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
   5389  # The cast to long int works around a bug in the HP C Compiler
   5390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5392 # This bug is HP SR number 8606223364.
   5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   5394 $as_echo_n "checking size of long long... " >&6; }
   5395 if test "${ac_cv_sizeof_long_long+set}" = set; then :
   5396   $as_echo_n "(cached) " >&6
   5397 else
   5398   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   5399 
   5400 else
   5401   if test "$ac_cv_type_long_long" = yes; then
   5402      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5404 { as_fn_set_status 77
   5405 as_fn_error "cannot compute sizeof (long long)
   5406 See \`config.log' for more details." "$LINENO" 5; }; }
   5407    else
   5408      ac_cv_sizeof_long_long=0
   5409    fi
   5410 fi
   5411 
   5412 fi
   5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   5414 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   5415 
   5416 
   5417 
   5418 cat >>confdefs.h <<_ACEOF
   5419 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   5420 _ACEOF
   5421 
   5422 
   5423 fi
   5424 
   5425 
   5426 # Look for a 64-bit type.
   5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit type" >&5
   5428 $as_echo_n "checking for a 64-bit type... " >&6; }
   5429 if test "${liberty_cv_uint64+set}" = set; then :
   5430   $as_echo_n "(cached) " >&6
   5431 else
   5432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5433 /* end confdefs.h.  */
   5434 #ifdef HAVE_STDINT_H
   5435 #include <stdint.h>
   5436 #endif
   5437 int
   5438 main ()
   5439 {
   5440 extern uint64_t foo;
   5441   ;
   5442   return 0;
   5443 }
   5444 _ACEOF
   5445 if ac_fn_c_try_compile "$LINENO"; then :
   5446   liberty_cv_uint64=uint64_t
   5447 else
   5448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5449 /* end confdefs.h.  */
   5450 #ifdef HAVE_LIMITS_H
   5451 #include <limits.h>
   5452 #endif
   5453 #ifndef CHAR_BIT
   5454 #define CHAR_BIT 8
   5455 #endif
   5456 int
   5457 main ()
   5458 {
   5459 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
   5460   ;
   5461   return 0;
   5462 }
   5463 _ACEOF
   5464 if ac_fn_c_try_compile "$LINENO"; then :
   5465   liberty_cv_uint64="unsigned long"
   5466 else
   5467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5468 /* end confdefs.h.  */
   5469 #ifdef HAVE_LIMITS_H
   5470 #include <limits.h>
   5471 #endif
   5472 #ifndef CHAR_BIT
   5473 #define CHAR_BIT 8
   5474 #endif
   5475 int
   5476 main ()
   5477 {
   5478 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
   5479   ;
   5480   return 0;
   5481 }
   5482 _ACEOF
   5483 if ac_fn_c_try_compile "$LINENO"; then :
   5484   liberty_cv_uint64="unsigned long long"
   5485 else
   5486   liberty_cv_uint64=none
   5487 fi
   5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5489 fi
   5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5491 fi
   5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5493 fi
   5494 
   5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liberty_cv_uint64" >&5
   5496 $as_echo "$liberty_cv_uint64" >&6; }
   5497 if test "$liberty_cv_uint64" != none; then
   5498 
   5499 cat >>confdefs.h <<_ACEOF
   5500 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
   5501 _ACEOF
   5502 
   5503 fi
   5504 
   5505 
   5506   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
   5507 if test "x$ac_cv_type_intptr_t" = x""yes; then :
   5508 
   5509 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
   5510 
   5511 else
   5512   for ac_type in 'int' 'long int' 'long long int'; do
   5513        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5514 /* end confdefs.h.  */
   5515 $ac_includes_default
   5516 int
   5517 main ()
   5518 {
   5519 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   5520 test_array [0] = 0
   5521 
   5522   ;
   5523   return 0;
   5524 }
   5525 _ACEOF
   5526 if ac_fn_c_try_compile "$LINENO"; then :
   5527 
   5528 cat >>confdefs.h <<_ACEOF
   5529 #define intptr_t $ac_type
   5530 _ACEOF
   5531 
   5532 	  ac_type=
   5533 fi
   5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5535        test -z "$ac_type" && break
   5536      done
   5537 fi
   5538 
   5539 
   5540 
   5541   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   5542 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
   5543 
   5544 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   5545 
   5546 else
   5547   for ac_type in 'unsigned int' 'unsigned long int' \
   5548 	'unsigned long long int'; do
   5549        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5550 /* end confdefs.h.  */
   5551 $ac_includes_default
   5552 int
   5553 main ()
   5554 {
   5555 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   5556 test_array [0] = 0
   5557 
   5558   ;
   5559   return 0;
   5560 }
   5561 _ACEOF
   5562 if ac_fn_c_try_compile "$LINENO"; then :
   5563 
   5564 cat >>confdefs.h <<_ACEOF
   5565 #define uintptr_t $ac_type
   5566 _ACEOF
   5567 
   5568 	  ac_type=
   5569 fi
   5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5571        test -z "$ac_type" && break
   5572      done
   5573 fi
   5574 
   5575 
   5576 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   5577 if test "x$ac_cv_type_ssize_t" = x""yes; then :
   5578 
   5579 else
   5580 
   5581 cat >>confdefs.h <<_ACEOF
   5582 #define ssize_t int
   5583 _ACEOF
   5584 
   5585 fi
   5586 
   5587 
   5588 # Given the above check, we always have uintptr_t or a fallback
   5589 # definition.  So define HAVE_UINTPTR_T in case any imported code
   5590 # relies on it.
   5591 
   5592 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   5593 
   5594 
   5595 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   5596 if test "x$ac_cv_type_pid_t" = x""yes; then :
   5597 
   5598 else
   5599 
   5600 cat >>confdefs.h <<_ACEOF
   5601 #define pid_t int
   5602 _ACEOF
   5603 
   5604 fi
   5605 
   5606 
   5607 # This is the list of functions which libiberty will provide if they
   5608 # are not available on the host.
   5609 
   5610 funcs="asprintf"
   5611 funcs="$funcs atexit"
   5612 funcs="$funcs basename"
   5613 funcs="$funcs bcmp"
   5614 funcs="$funcs bcopy"
   5615 funcs="$funcs bsearch"
   5616 funcs="$funcs bzero"
   5617 funcs="$funcs calloc"
   5618 funcs="$funcs clock"
   5619 funcs="$funcs ffs"
   5620 funcs="$funcs getcwd"
   5621 funcs="$funcs getpagesize"
   5622 funcs="$funcs gettimeofday"
   5623 funcs="$funcs index"
   5624 funcs="$funcs insque"
   5625 funcs="$funcs memchr"
   5626 funcs="$funcs memcmp"
   5627 funcs="$funcs memcpy"
   5628 funcs="$funcs memmem"
   5629 funcs="$funcs memmove"
   5630 funcs="$funcs mempcpy"
   5631 funcs="$funcs memset"
   5632 funcs="$funcs mkstemps"
   5633 funcs="$funcs putenv"
   5634 funcs="$funcs random"
   5635 funcs="$funcs rename"
   5636 funcs="$funcs rindex"
   5637 funcs="$funcs setenv"
   5638 funcs="$funcs snprintf"
   5639 funcs="$funcs sigsetmask"
   5640 funcs="$funcs stpcpy"
   5641 funcs="$funcs stpncpy"
   5642 funcs="$funcs strcasecmp"
   5643 funcs="$funcs strchr"
   5644 funcs="$funcs strdup"
   5645 funcs="$funcs strncasecmp"
   5646 funcs="$funcs strndup"
   5647 funcs="$funcs strnlen"
   5648 funcs="$funcs strrchr"
   5649 funcs="$funcs strstr"
   5650 funcs="$funcs strtod"
   5651 funcs="$funcs strtol"
   5652 funcs="$funcs strtoul"
   5653 funcs="$funcs strtoll"
   5654 funcs="$funcs strtoull"
   5655 funcs="$funcs strverscmp"
   5656 funcs="$funcs tmpnam"
   5657 funcs="$funcs vasprintf"
   5658 funcs="$funcs vfprintf"
   5659 funcs="$funcs vprintf"
   5660 funcs="$funcs vsnprintf"
   5661 funcs="$funcs vsprintf"
   5662 funcs="$funcs waitpid"
   5663 funcs="$funcs setproctitle"
   5664 
   5665 # Also in the old function.def file: alloca, vfork, getopt.
   5666 
   5667 vars="sys_errlist sys_nerr sys_siglist"
   5668 
   5669 checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
   5670  getsysinfo gettimeofday on_exit psignal pstat_getdynamic pstat_getstatic \
   5671  realpath setrlimit sbrk spawnve spawnvpe strerror strsignal sysconf sysctl \
   5672  sysmp table times wait3 wait4"
   5673 
   5674 # These are neither executed nor required, but they help keep
   5675 # autoheader happy without adding a bunch of text to acconfig.h.
   5676 if test "x" = "y"; then
   5677   for ac_func in asprintf atexit \
   5678     basename bcmp bcopy bsearch bzero \
   5679     calloc canonicalize_file_name clock \
   5680     dup3 \
   5681     ffs __fsetlocking \
   5682     getcwd getpagesize getrlimit getrusage getsysinfo gettimeofday \
   5683     index insque \
   5684     memchr memcmp memcpy memmem memmove memset mkstemps \
   5685     on_exit \
   5686     psignal pstat_getdynamic pstat_getstatic putenv \
   5687     random realpath rename rindex \
   5688     sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
   5689      stpcpy stpncpy strcasecmp strchr strdup \
   5690      strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \
   5691      strtol strtoul strtoll strtoull strverscmp sysconf sysctl sysmp \
   5692     table times tmpnam \
   5693     vasprintf vfprintf vprintf vsprintf \
   5694     wait3 wait4 waitpid
   5695 do :
   5696   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   5698 eval as_val=\$$as_ac_var
   5699    if test "x$as_val" = x""yes; then :
   5700   cat >>confdefs.h <<_ACEOF
   5701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5702 _ACEOF
   5703 
   5704 fi
   5705 done
   5706 
   5707   ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
   5708 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
   5709   ac_have_decl=1
   5710 else
   5711   ac_have_decl=0
   5712 fi
   5713 
   5714 cat >>confdefs.h <<_ACEOF
   5715 #define HAVE_DECL_BASENAME $ac_have_decl
   5716 _ACEOF
   5717 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
   5718 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
   5719   ac_have_decl=1
   5720 else
   5721   ac_have_decl=0
   5722 fi
   5723 
   5724 cat >>confdefs.h <<_ACEOF
   5725 #define HAVE_DECL_FFS $ac_have_decl
   5726 _ACEOF
   5727 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
   5728 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
   5729   ac_have_decl=1
   5730 else
   5731   ac_have_decl=0
   5732 fi
   5733 
   5734 cat >>confdefs.h <<_ACEOF
   5735 #define HAVE_DECL_ASPRINTF $ac_have_decl
   5736 _ACEOF
   5737 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
   5738 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
   5739   ac_have_decl=1
   5740 else
   5741   ac_have_decl=0
   5742 fi
   5743 
   5744 cat >>confdefs.h <<_ACEOF
   5745 #define HAVE_DECL_VASPRINTF $ac_have_decl
   5746 _ACEOF
   5747 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   5748 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
   5749   ac_have_decl=1
   5750 else
   5751   ac_have_decl=0
   5752 fi
   5753 
   5754 cat >>confdefs.h <<_ACEOF
   5755 #define HAVE_DECL_SNPRINTF $ac_have_decl
   5756 _ACEOF
   5757 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
   5758 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
   5759   ac_have_decl=1
   5760 else
   5761   ac_have_decl=0
   5762 fi
   5763 
   5764 cat >>confdefs.h <<_ACEOF
   5765 #define HAVE_DECL_VSNPRINTF $ac_have_decl
   5766 _ACEOF
   5767 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
   5768 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
   5769   ac_have_decl=1
   5770 else
   5771   ac_have_decl=0
   5772 fi
   5773 
   5774 cat >>confdefs.h <<_ACEOF
   5775 #define HAVE_DECL_STRTOL $ac_have_decl
   5776 _ACEOF
   5777 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
   5778 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
   5779   ac_have_decl=1
   5780 else
   5781   ac_have_decl=0
   5782 fi
   5783 
   5784 cat >>confdefs.h <<_ACEOF
   5785 #define HAVE_DECL_STRTOUL $ac_have_decl
   5786 _ACEOF
   5787 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
   5788 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
   5789   ac_have_decl=1
   5790 else
   5791   ac_have_decl=0
   5792 fi
   5793 
   5794 cat >>confdefs.h <<_ACEOF
   5795 #define HAVE_DECL_STRTOLL $ac_have_decl
   5796 _ACEOF
   5797 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
   5798 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
   5799   ac_have_decl=1
   5800 else
   5801   ac_have_decl=0
   5802 fi
   5803 
   5804 cat >>confdefs.h <<_ACEOF
   5805 #define HAVE_DECL_STRTOULL $ac_have_decl
   5806 _ACEOF
   5807 
   5808 
   5809 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
   5810 
   5811 
   5812 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
   5813 
   5814 
   5815 $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
   5816 
   5817 fi
   5818 
   5819 # For each of these functions, if the host does not provide the
   5820 # function we want to put FN.o in LIBOBJS, and if the host does
   5821 # provide the function, we want to define HAVE_FN in config.h.
   5822 
   5823 setobjs=
   5824 CHECK=
   5825 if test -n "${with_target_subdir}"; then
   5826 
   5827   # We are being configured as a target library.  AC_REPLACE_FUNCS
   5828   # may not work correctly, because the compiler may not be able to
   5829   # link executables.  Note that we may still be being configured
   5830   # native.
   5831 
   5832   # If we are being configured for newlib, we know which functions
   5833   # newlib provide and which ones we will be expected to provide.
   5834 
   5835   if test "x${with_newlib}" = "xyes"; then
   5836     case " $LIBOBJS " in
   5837   *" asprintf.$ac_objext "* ) ;;
   5838   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
   5839  ;;
   5840 esac
   5841 
   5842     case " $LIBOBJS " in
   5843   *" basename.$ac_objext "* ) ;;
   5844   *) LIBOBJS="$LIBOBJS basename.$ac_objext"
   5845  ;;
   5846 esac
   5847 
   5848     case " $LIBOBJS " in
   5849   *" insque.$ac_objext "* ) ;;
   5850   *) LIBOBJS="$LIBOBJS insque.$ac_objext"
   5851  ;;
   5852 esac
   5853 
   5854     case " $LIBOBJS " in
   5855   *" random.$ac_objext "* ) ;;
   5856   *) LIBOBJS="$LIBOBJS random.$ac_objext"
   5857  ;;
   5858 esac
   5859 
   5860     case " $LIBOBJS " in
   5861   *" strdup.$ac_objext "* ) ;;
   5862   *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
   5863  ;;
   5864 esac
   5865 
   5866     case " $LIBOBJS " in
   5867   *" vasprintf.$ac_objext "* ) ;;
   5868   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
   5869  ;;
   5870 esac
   5871 
   5872 
   5873     for f in $funcs; do
   5874       case "$f" in
   5875 	asprintf | basename | insque | random | strdup | vasprintf)
   5876 	  ;;
   5877 	*)
   5878 	  n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   5879 	  cat >>confdefs.h <<_ACEOF
   5880 #define $n 1
   5881 _ACEOF
   5882 
   5883 	  ;;
   5884       esac
   5885     done
   5886 
   5887     # newlib doesnt provide any of the variables in $vars, so we
   5888     # dont have to check them here.
   5889 
   5890     # Of the functions in $checkfuncs, newlib only has strerror.
   5891     $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
   5892 
   5893 
   5894     setobjs=yes
   5895 
   5896   fi
   5897 
   5898   # If we are being configured for Mingw, we know which functions
   5899   # Mingw provides and which ones we will be expected to provide.
   5900 
   5901   case "${host}" in
   5902   *-*-mingw*)
   5903     case " $LIBOBJS " in
   5904   *" asprintf.$ac_objext "* ) ;;
   5905   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
   5906  ;;
   5907 esac
   5908 
   5909     case " $LIBOBJS " in
   5910   *" basename.$ac_objext "* ) ;;
   5911   *) LIBOBJS="$LIBOBJS basename.$ac_objext"
   5912  ;;
   5913 esac
   5914 
   5915     case " $LIBOBJS " in
   5916   *" bcmp.$ac_objext "* ) ;;
   5917   *) LIBOBJS="$LIBOBJS bcmp.$ac_objext"
   5918  ;;
   5919 esac
   5920 
   5921     case " $LIBOBJS " in
   5922   *" bcopy.$ac_objext "* ) ;;
   5923   *) LIBOBJS="$LIBOBJS bcopy.$ac_objext"
   5924  ;;
   5925 esac
   5926 
   5927     case " $LIBOBJS " in
   5928   *" bzero.$ac_objext "* ) ;;
   5929   *) LIBOBJS="$LIBOBJS bzero.$ac_objext"
   5930  ;;
   5931 esac
   5932 
   5933     case " $LIBOBJS " in
   5934   *" clock.$ac_objext "* ) ;;
   5935   *) LIBOBJS="$LIBOBJS clock.$ac_objext"
   5936  ;;
   5937 esac
   5938 
   5939     case " $LIBOBJS " in
   5940   *" ffs.$ac_objext "* ) ;;
   5941   *) LIBOBJS="$LIBOBJS ffs.$ac_objext"
   5942  ;;
   5943 esac
   5944 
   5945     case " $LIBOBJS " in
   5946   *" getpagesize.$ac_objext "* ) ;;
   5947   *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
   5948  ;;
   5949 esac
   5950 
   5951     case " $LIBOBJS " in
   5952   *" index.$ac_objext "* ) ;;
   5953   *) LIBOBJS="$LIBOBJS index.$ac_objext"
   5954  ;;
   5955 esac
   5956 
   5957     case " $LIBOBJS " in
   5958   *" insque.$ac_objext "* ) ;;
   5959   *) LIBOBJS="$LIBOBJS insque.$ac_objext"
   5960  ;;
   5961 esac
   5962 
   5963     case " $LIBOBJS " in
   5964   *" mempcpy.$ac_objext "* ) ;;
   5965   *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext"
   5966  ;;
   5967 esac
   5968 
   5969     case " $LIBOBJS " in
   5970   *" mkstemps.$ac_objext "* ) ;;
   5971   *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext"
   5972  ;;
   5973 esac
   5974 
   5975     case " $LIBOBJS " in
   5976   *" random.$ac_objext "* ) ;;
   5977   *) LIBOBJS="$LIBOBJS random.$ac_objext"
   5978  ;;
   5979 esac
   5980 
   5981     case " $LIBOBJS " in
   5982   *" rindex.$ac_objext "* ) ;;
   5983   *) LIBOBJS="$LIBOBJS rindex.$ac_objext"
   5984  ;;
   5985 esac
   5986 
   5987     case " $LIBOBJS " in
   5988   *" sigsetmask.$ac_objext "* ) ;;
   5989   *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext"
   5990  ;;
   5991 esac
   5992 
   5993     case " $LIBOBJS " in
   5994   *" stpcpy.$ac_objext "* ) ;;
   5995   *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
   5996  ;;
   5997 esac
   5998 
   5999     case " $LIBOBJS " in
   6000   *" stpncpy.$ac_objext "* ) ;;
   6001   *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext"
   6002  ;;
   6003 esac
   6004 
   6005     case " $LIBOBJS " in
   6006   *" strndup.$ac_objext "* ) ;;
   6007   *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
   6008  ;;
   6009 esac
   6010 
   6011     case " $LIBOBJS " in
   6012   *" strnlen.$ac_objext "* ) ;;
   6013   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
   6014  ;;
   6015 esac
   6016 
   6017     case " $LIBOBJS " in
   6018   *" strverscmp.$ac_objext "* ) ;;
   6019   *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext"
   6020  ;;
   6021 esac
   6022 
   6023     case " $LIBOBJS " in
   6024   *" vasprintf.$ac_objext "* ) ;;
   6025   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
   6026  ;;
   6027 esac
   6028 
   6029     case " $LIBOBJS " in
   6030   *" waitpid.$ac_objext "* ) ;;
   6031   *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
   6032  ;;
   6033 esac
   6034 
   6035 
   6036     for f in $funcs; do
   6037       case "$f" in
   6038 	asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strnlen | strverscmp | vasprintf | waitpid)
   6039 	  ;;
   6040 	*)
   6041 	  n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   6042 	  cat >>confdefs.h <<_ACEOF
   6043 #define $n 1
   6044 _ACEOF
   6045 
   6046 	  ;;
   6047       esac
   6048     done
   6049 
   6050     # Mingw doesnt provide any of the variables in $vars, so we
   6051     # dont have to check them here.
   6052 
   6053     # Of the functions in $checkfuncs, Mingw only has strerror.
   6054     $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
   6055 
   6056 
   6057     setobjs=yes
   6058     ;;
   6059 
   6060   *-*-msdosdjgpp)
   6061     case " $LIBOBJS " in
   6062   *" vasprintf.$ac_objext "* ) ;;
   6063   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
   6064  ;;
   6065 esac
   6066 
   6067     case " $LIBOBJS " in
   6068   *" vsnprintf.$ac_objext "* ) ;;
   6069   *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext"
   6070  ;;
   6071 esac
   6072 
   6073     case " $LIBOBJS " in
   6074   *" snprintf.$ac_objext "* ) ;;
   6075   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
   6076  ;;
   6077 esac
   6078 
   6079     case " $LIBOBJS " in
   6080   *" asprintf.$ac_objext "* ) ;;
   6081   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
   6082  ;;
   6083 esac
   6084 
   6085 
   6086     for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
   6087              getcwd getpagesize getrusage gettimeofday \
   6088              index insque memchr memcmp memcpy memmove memset psignal \
   6089              putenv random rename rindex sbrk setenv stpcpy strcasecmp \
   6090              strchr strdup strerror strncasecmp strrchr strstr strtod \
   6091              strtol strtoul sysconf times tmpnam vfprintf vprintf \
   6092              vsprintf waitpid
   6093     do
   6094       n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   6095       cat >>confdefs.h <<_ACEOF
   6096 #define $n 1
   6097 _ACEOF
   6098 
   6099     done
   6100 
   6101 
   6102     setobjs=yes
   6103     ;;
   6104 
   6105   esac
   6106 
   6107 else
   6108 
   6109    # Not a target library, so we set things up to run the test suite.
   6110    CHECK=really-check
   6111 
   6112 fi
   6113 
   6114 
   6115 
   6116 
   6117 case "${host}" in
   6118   *-*-cygwin* | *-*-mingw*)
   6119     $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
   6120 
   6121     $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
   6122 
   6123     ;;
   6124 esac
   6125 
   6126 if test -z "${setobjs}"; then
   6127   case "${host}" in
   6128 
   6129   *-*-vxworks*)
   6130     # Handle VxWorks configuration specially, since on VxWorks the
   6131     # libraries are actually on the target board, not in the file
   6132     # system.
   6133     case " $LIBOBJS " in
   6134   *" basename.$ac_objext "* ) ;;
   6135   *) LIBOBJS="$LIBOBJS basename.$ac_objext"
   6136  ;;
   6137 esac
   6138 
   6139     case " $LIBOBJS " in
   6140   *" getpagesize.$ac_objext "* ) ;;
   6141   *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
   6142  ;;
   6143 esac
   6144 
   6145     case " $LIBOBJS " in
   6146   *" insque.$ac_objext "* ) ;;
   6147   *) LIBOBJS="$LIBOBJS insque.$ac_objext"
   6148  ;;
   6149 esac
   6150 
   6151     case " $LIBOBJS " in
   6152   *" random.$ac_objext "* ) ;;
   6153   *) LIBOBJS="$LIBOBJS random.$ac_objext"
   6154  ;;
   6155 esac
   6156 
   6157     case " $LIBOBJS " in
   6158   *" strcasecmp.$ac_objext "* ) ;;
   6159   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
   6160  ;;
   6161 esac
   6162 
   6163     case " $LIBOBJS " in
   6164   *" strncasecmp.$ac_objext "* ) ;;
   6165   *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
   6166  ;;
   6167 esac
   6168 
   6169     case " $LIBOBJS " in
   6170   *" strdup.$ac_objext "* ) ;;
   6171   *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
   6172  ;;
   6173 esac
   6174 
   6175     case " $LIBOBJS " in
   6176   *" vfork.$ac_objext "* ) ;;
   6177   *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
   6178  ;;
   6179 esac
   6180 
   6181     case " $LIBOBJS " in
   6182   *" waitpid.$ac_objext "* ) ;;
   6183   *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
   6184  ;;
   6185 esac
   6186 
   6187     case " $LIBOBJS " in
   6188   *" vasprintf.$ac_objext "* ) ;;
   6189   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
   6190  ;;
   6191 esac
   6192 
   6193     for f in $funcs; do
   6194       case "$f" in
   6195 	basename | getpagesize | insque | random | strcasecmp)
   6196 	  ;;
   6197 	strncasecmp | strdup | vfork | waitpid | vasprintf)
   6198 	  ;;
   6199 	*)
   6200 	  n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   6201 	  cat >>confdefs.h <<_ACEOF
   6202 #define $n 1
   6203 _ACEOF
   6204 
   6205 	  ;;
   6206       esac
   6207     done
   6208 
   6209     # VxWorks doesn't provide any of the variables in $vars, so we
   6210     # don't have to check them here.
   6211 
   6212     # Of the functions in $checkfuncs, VxWorks only has strerror.
   6213     $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
   6214 
   6215 
   6216     setobjs=yes
   6217     ;;
   6218 
   6219   esac
   6220 fi
   6221 
   6222 if test -z "${setobjs}"; then
   6223 
   6224   case "${host}" in
   6225 
   6226   *-*-mingw32*)
   6227     # Under mingw32, sys_nerr and sys_errlist exist, but they are
   6228     # macros, so the test below won't find them.
   6229     libiberty_cv_var_sys_nerr=yes
   6230     libiberty_cv_var_sys_errlist=yes
   6231     ;;
   6232 
   6233   *-*-msdosdjgpp*)
   6234     # vfork and fork are stubs.
   6235     ac_cv_func_vfork_works=no
   6236     ;;
   6237 
   6238   *-*-uwin*)
   6239     # Under some versions of uwin, vfork is notoriously buggy and the test
   6240     # can hang configure; on other versions, vfork exists just as a stub.
   6241     # FIXME: This should be removed once vfork in uwin's runtime is fixed.
   6242     ac_cv_func_vfork_works=no
   6243     # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
   6244     # macros (actually, these are imported from a DLL, but the end effect
   6245     # is the same), so the test below won't find them.
   6246     libiberty_cv_var_sys_nerr=yes
   6247     libiberty_cv_var_sys_errlist=yes
   6248     ;;
   6249 
   6250   *-*-*vms*)
   6251     # Under VMS, vfork works very different than on Unix. The standard test
   6252     # won't work, and it isn't easily adaptable. It makes more sense to
   6253     # just force it.
   6254     ac_cv_func_vfork_works=yes
   6255     ;;
   6256 
   6257   esac
   6258 
   6259   # We haven't set the list of objects yet.  Use the standard autoconf
   6260   # tests.  This will only work if the compiler works.
   6261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
   6262 $as_echo_n "checking for library containing strerror... " >&6; }
   6263 if test "${ac_cv_search_strerror+set}" = set; then :
   6264   $as_echo_n "(cached) " >&6
   6265 else
   6266   ac_func_search_save_LIBS=$LIBS
   6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6268 /* end confdefs.h.  */
   6269 
   6270 /* Override any GCC internal prototype to avoid an error.
   6271    Use char because int might match the return type of a GCC
   6272    builtin and then its argument prototype would still apply.  */
   6273 #ifdef __cplusplus
   6274 extern "C"
   6275 #endif
   6276 char strerror ();
   6277 int
   6278 main ()
   6279 {
   6280 return strerror ();
   6281   ;
   6282   return 0;
   6283 }
   6284 _ACEOF
   6285 for ac_lib in '' cposix; do
   6286   if test -z "$ac_lib"; then
   6287     ac_res="none required"
   6288   else
   6289     ac_res=-l$ac_lib
   6290     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6291   fi
   6292   if test x$gcc_no_link = xyes; then
   6293   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
   6294 fi
   6295 if ac_fn_c_try_link "$LINENO"; then :
   6296   ac_cv_search_strerror=$ac_res
   6297 fi
   6298 rm -f core conftest.err conftest.$ac_objext \
   6299     conftest$ac_exeext
   6300   if test "${ac_cv_search_strerror+set}" = set; then :
   6301   break
   6302 fi
   6303 done
   6304 if test "${ac_cv_search_strerror+set}" = set; then :
   6305 
   6306 else
   6307   ac_cv_search_strerror=no
   6308 fi
   6309 rm conftest.$ac_ext
   6310 LIBS=$ac_func_search_save_LIBS
   6311 fi
   6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
   6313 $as_echo "$ac_cv_search_strerror" >&6; }
   6314 ac_res=$ac_cv_search_strerror
   6315 if test "$ac_res" != no; then :
   6316   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6317 
   6318 fi
   6319 
   6320   for ac_func in $funcs
   6321 do :
   6322   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6323 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   6324 eval as_val=\$$as_ac_var
   6325    if test "x$as_val" = x""yes; then :
   6326   cat >>confdefs.h <<_ACEOF
   6327 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6328 _ACEOF
   6329 
   6330 else
   6331   case " $LIBOBJS " in
   6332   *" $ac_func.$ac_objext "* ) ;;
   6333   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   6334  ;;
   6335 esac
   6336 
   6337 fi
   6338 done
   6339 
   6340 
   6341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloca needs Cray hooks" >&5
   6342 $as_echo_n "checking whether alloca needs Cray hooks... " >&6; }
   6343 if test "${ac_cv_os_cray+set}" = set; then :
   6344   $as_echo_n "(cached) " >&6
   6345 else
   6346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6347 /* end confdefs.h.  */
   6348 #if defined(CRAY) && ! defined(CRAY2)
   6349 webecray
   6350 #else
   6351 wenotbecray
   6352 #endif
   6353 
   6354 _ACEOF
   6355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6356   $EGREP "webecray" >/dev/null 2>&1; then :
   6357   ac_cv_os_cray=yes
   6358 else
   6359   ac_cv_os_cray=no
   6360 fi
   6361 rm -f conftest*
   6362 
   6363 fi
   6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
   6365 $as_echo "$ac_cv_os_cray" >&6; }
   6366 if test $ac_cv_os_cray = yes; then
   6367   for ac_func in _getb67 GETB67 getb67; do
   6368     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   6370 eval as_val=\$$as_ac_var
   6371    if test "x$as_val" = x""yes; then :
   6372 
   6373 cat >>confdefs.h <<_ACEOF
   6374 #define CRAY_STACKSEG_END $ac_func
   6375 _ACEOF
   6376   break
   6377 fi
   6378 
   6379   done
   6380 fi
   6381 
   6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   6383 $as_echo_n "checking stack direction for C alloca... " >&6; }
   6384 if test "${ac_cv_c_stack_direction+set}" = set; then :
   6385   $as_echo_n "(cached) " >&6
   6386 else
   6387   if test "$cross_compiling" = yes; then :
   6388   ac_cv_c_stack_direction=0
   6389 else
   6390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6391 /* end confdefs.h.  */
   6392 find_stack_direction ()
   6393 {
   6394   static char *addr = 0;
   6395   auto char dummy;
   6396   if (addr == 0)
   6397     {
   6398       addr = &dummy;
   6399       return find_stack_direction ();
   6400     }
   6401   else
   6402     return (&dummy > addr) ? 1 : -1;
   6403 }
   6404 main ()
   6405 {
   6406   exit (find_stack_direction() < 0);
   6407 }
   6408 _ACEOF
   6409 if ac_fn_c_try_run "$LINENO"; then :
   6410   ac_cv_c_stack_direction=1
   6411 else
   6412   ac_cv_c_stack_direction=-1
   6413 fi
   6414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6415   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6416 fi
   6417 
   6418 fi
   6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   6420 $as_echo "$ac_cv_c_stack_direction" >&6; }
   6421 
   6422 cat >>confdefs.h <<_ACEOF
   6423 #define STACK_DIRECTION $ac_cv_c_stack_direction
   6424 _ACEOF
   6425 
   6426 
   6427   for ac_header in vfork.h
   6428 do :
   6429   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
   6430 if test "x$ac_cv_header_vfork_h" = x""yes; then :
   6431   cat >>confdefs.h <<_ACEOF
   6432 #define HAVE_VFORK_H 1
   6433 _ACEOF
   6434 
   6435 fi
   6436 done
   6437 
   6438 for ac_func in fork vfork
   6439 do :
   6440   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6441 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   6442 eval as_val=\$$as_ac_var
   6443    if test "x$as_val" = x""yes; then :
   6444   cat >>confdefs.h <<_ACEOF
   6445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6446 _ACEOF
   6447 
   6448 fi
   6449 done
   6450 
   6451 if test "x$ac_cv_func_fork" = xyes; then
   6452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   6453 $as_echo_n "checking for working fork... " >&6; }
   6454 if test "${ac_cv_func_fork_works+set}" = set; then :
   6455   $as_echo_n "(cached) " >&6
   6456 else
   6457   if test "$cross_compiling" = yes; then :
   6458   ac_cv_func_fork_works=cross
   6459 else
   6460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6461 /* end confdefs.h.  */
   6462 $ac_includes_default
   6463 int
   6464 main ()
   6465 {
   6466 
   6467 	  /* By Ruediger Kuhlmann. */
   6468 	  return fork () < 0;
   6469 
   6470   ;
   6471   return 0;
   6472 }
   6473 _ACEOF
   6474 if ac_fn_c_try_run "$LINENO"; then :
   6475   ac_cv_func_fork_works=yes
   6476 else
   6477   ac_cv_func_fork_works=no
   6478 fi
   6479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6480   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6481 fi
   6482 
   6483 fi
   6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   6485 $as_echo "$ac_cv_func_fork_works" >&6; }
   6486 
   6487 else
   6488   ac_cv_func_fork_works=$ac_cv_func_fork
   6489 fi
   6490 if test "x$ac_cv_func_fork_works" = xcross; then
   6491   case $host in
   6492     *-*-amigaos* | *-*-msdosdjgpp*)
   6493       # Override, as these systems have only a dummy fork() stub
   6494       ac_cv_func_fork_works=no
   6495       ;;
   6496     *)
   6497       ac_cv_func_fork_works=yes
   6498       ;;
   6499   esac
   6500   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   6501 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   6502 fi
   6503 ac_cv_func_vfork_works=$ac_cv_func_vfork
   6504 if test "x$ac_cv_func_vfork" = xyes; then
   6505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   6506 $as_echo_n "checking for working vfork... " >&6; }
   6507 if test "${ac_cv_func_vfork_works+set}" = set; then :
   6508   $as_echo_n "(cached) " >&6
   6509 else
   6510   if test "$cross_compiling" = yes; then :
   6511   ac_cv_func_vfork_works=cross
   6512 else
   6513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6514 /* end confdefs.h.  */
   6515 /* Thanks to Paul Eggert for this test.  */
   6516 $ac_includes_default
   6517 #include <sys/wait.h>
   6518 #ifdef HAVE_VFORK_H
   6519 # include <vfork.h>
   6520 #endif
   6521 /* On some sparc systems, changes by the child to local and incoming
   6522    argument registers are propagated back to the parent.  The compiler
   6523    is told about this with #include <vfork.h>, but some compilers
   6524    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   6525    static variable whose address is put into a register that is
   6526    clobbered by the vfork.  */
   6527 static void
   6528 #ifdef __cplusplus
   6529 sparc_address_test (int arg)
   6530 # else
   6531 sparc_address_test (arg) int arg;
   6532 #endif
   6533 {
   6534   static pid_t child;
   6535   if (!child) {
   6536     child = vfork ();
   6537     if (child < 0) {
   6538       perror ("vfork");
   6539       _exit(2);
   6540     }
   6541     if (!child) {
   6542       arg = getpid();
   6543       write(-1, "", 0);
   6544       _exit (arg);
   6545     }
   6546   }
   6547 }
   6548 
   6549 int
   6550 main ()
   6551 {
   6552   pid_t parent = getpid ();
   6553   pid_t child;
   6554 
   6555   sparc_address_test (0);
   6556 
   6557   child = vfork ();
   6558 
   6559   if (child == 0) {
   6560     /* Here is another test for sparc vfork register problems.  This
   6561        test uses lots of local variables, at least as many local
   6562        variables as main has allocated so far including compiler
   6563        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   6564        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   6565        reuse the register of parent for one of the local variables,
   6566        since it will think that parent can't possibly be used any more
   6567        in this routine.  Assigning to the local variable will thus
   6568        munge parent in the parent process.  */
   6569     pid_t
   6570       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   6571       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   6572     /* Convince the compiler that p..p7 are live; otherwise, it might
   6573        use the same hardware register for all 8 local variables.  */
   6574     if (p != p1 || p != p2 || p != p3 || p != p4
   6575 	|| p != p5 || p != p6 || p != p7)
   6576       _exit(1);
   6577 
   6578     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   6579        from child file descriptors.  If the child closes a descriptor
   6580        before it execs or exits, this munges the parent's descriptor
   6581        as well.  Test for this by closing stdout in the child.  */
   6582     _exit(close(fileno(stdout)) != 0);
   6583   } else {
   6584     int status;
   6585     struct stat st;
   6586 
   6587     while (wait(&status) != child)
   6588       ;
   6589     return (
   6590 	 /* Was there some problem with vforking?  */
   6591 	 child < 0
   6592 
   6593 	 /* Did the child fail?  (This shouldn't happen.)  */
   6594 	 || status
   6595 
   6596 	 /* Did the vfork/compiler bug occur?  */
   6597 	 || parent != getpid()
   6598 
   6599 	 /* Did the file descriptor bug occur?  */
   6600 	 || fstat(fileno(stdout), &st) != 0
   6601 	 );
   6602   }
   6603 }
   6604 _ACEOF
   6605 if ac_fn_c_try_run "$LINENO"; then :
   6606   ac_cv_func_vfork_works=yes
   6607 else
   6608   ac_cv_func_vfork_works=no
   6609 fi
   6610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6611   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6612 fi
   6613 
   6614 fi
   6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   6616 $as_echo "$ac_cv_func_vfork_works" >&6; }
   6617 
   6618 fi;
   6619 if test "x$ac_cv_func_fork_works" = xcross; then
   6620   ac_cv_func_vfork_works=$ac_cv_func_vfork
   6621   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   6622 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   6623 fi
   6624 
   6625 if test "x$ac_cv_func_vfork_works" = xyes; then
   6626 
   6627 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   6628 
   6629 else
   6630 
   6631 $as_echo "#define vfork fork" >>confdefs.h
   6632 
   6633 fi
   6634 if test "x$ac_cv_func_fork_works" = xyes; then
   6635 
   6636 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   6637 
   6638 fi
   6639 
   6640   if test $ac_cv_func_vfork_works = no; then
   6641     case " $LIBOBJS " in
   6642   *" vfork.$ac_objext "* ) ;;
   6643   *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
   6644  ;;
   6645 esac
   6646 
   6647   fi
   6648   # We only need _doprnt if we might use it to implement v*printf.
   6649   if test $ac_cv_func_vprintf != yes \
   6650      || test $ac_cv_func_vfprintf != yes \
   6651      || test $ac_cv_func_vsprintf != yes; then
   6652     for ac_func in _doprnt
   6653 do :
   6654   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
   6655 if test "x$ac_cv_func__doprnt" = x""yes; then :
   6656   cat >>confdefs.h <<_ACEOF
   6657 #define HAVE__DOPRNT 1
   6658 _ACEOF
   6659 
   6660 else
   6661   case " $LIBOBJS " in
   6662   *" $ac_func.$ac_objext "* ) ;;
   6663   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   6664  ;;
   6665 esac
   6666 
   6667 fi
   6668 done
   6669 
   6670 
   6671   else
   6672     for ac_func in _doprnt
   6673 do :
   6674   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
   6675 if test "x$ac_cv_func__doprnt" = x""yes; then :
   6676   cat >>confdefs.h <<_ACEOF
   6677 #define HAVE__DOPRNT 1
   6678 _ACEOF
   6679 
   6680 fi
   6681 done
   6682 
   6683   fi
   6684 
   6685   for v in $vars; do
   6686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $v" >&5
   6687 $as_echo_n "checking for $v... " >&6; }
   6688     if { as_var=libiberty_cv_var_$v; eval "test \"\${$as_var+set}\" = set"; }; then :
   6689   $as_echo_n "(cached) " >&6
   6690 else
   6691   if test x$gcc_no_link = xyes; then
   6692   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
   6693 fi
   6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6695 /* end confdefs.h.  */
   6696 int *p;
   6697 int
   6698 main ()
   6699 {
   6700 extern int $v []; p = $v;
   6701   ;
   6702   return 0;
   6703 }
   6704 _ACEOF
   6705 if ac_fn_c_try_link "$LINENO"; then :
   6706   eval "libiberty_cv_var_$v=yes"
   6707 else
   6708   eval "libiberty_cv_var_$v=no"
   6709 fi
   6710 rm -f core conftest.err conftest.$ac_objext \
   6711     conftest$ac_exeext conftest.$ac_ext
   6712 fi
   6713 
   6714     if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
   6715       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6716 $as_echo "yes" >&6; }
   6717       n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   6718       cat >>confdefs.h <<_ACEOF
   6719 #define $n 1
   6720 _ACEOF
   6721 
   6722     else
   6723       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6724 $as_echo "no" >&6; }
   6725     fi
   6726   done
   6727 
   6728   # special check for _system_configuration because AIX <4.3.2 do not
   6729   # contain the `physmem' member.
   6730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
   6731 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
   6732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6733 /* end confdefs.h.  */
   6734 #include <sys/systemcfg.h>
   6735 int
   6736 main ()
   6737 {
   6738 double x = _system_configuration.physmem;
   6739   ;
   6740   return 0;
   6741 }
   6742 _ACEOF
   6743 if ac_fn_c_try_compile "$LINENO"; then :
   6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6745 $as_echo "yes" >&6; }
   6746 
   6747 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
   6748 
   6749 else
   6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6751 $as_echo "no" >&6; }
   6752 fi
   6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6754 
   6755   for ac_func in $checkfuncs
   6756 do :
   6757   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6758 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   6759 eval as_val=\$$as_ac_var
   6760    if test "x$as_val" = x""yes; then :
   6761   cat >>confdefs.h <<_ACEOF
   6762 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6763 _ACEOF
   6764 
   6765 fi
   6766 done
   6767 
   6768   ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
   6769 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
   6770   ac_have_decl=1
   6771 else
   6772   ac_have_decl=0
   6773 fi
   6774 
   6775 cat >>confdefs.h <<_ACEOF
   6776 #define HAVE_DECL_BASENAME $ac_have_decl
   6777 _ACEOF
   6778 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
   6779 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
   6780   ac_have_decl=1
   6781 else
   6782   ac_have_decl=0
   6783 fi
   6784 
   6785 cat >>confdefs.h <<_ACEOF
   6786 #define HAVE_DECL_FFS $ac_have_decl
   6787 _ACEOF
   6788 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
   6789 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
   6790   ac_have_decl=1
   6791 else
   6792   ac_have_decl=0
   6793 fi
   6794 
   6795 cat >>confdefs.h <<_ACEOF
   6796 #define HAVE_DECL_ASPRINTF $ac_have_decl
   6797 _ACEOF
   6798 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
   6799 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
   6800   ac_have_decl=1
   6801 else
   6802   ac_have_decl=0
   6803 fi
   6804 
   6805 cat >>confdefs.h <<_ACEOF
   6806 #define HAVE_DECL_VASPRINTF $ac_have_decl
   6807 _ACEOF
   6808 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   6809 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
   6810   ac_have_decl=1
   6811 else
   6812   ac_have_decl=0
   6813 fi
   6814 
   6815 cat >>confdefs.h <<_ACEOF
   6816 #define HAVE_DECL_SNPRINTF $ac_have_decl
   6817 _ACEOF
   6818 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
   6819 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
   6820   ac_have_decl=1
   6821 else
   6822   ac_have_decl=0
   6823 fi
   6824 
   6825 cat >>confdefs.h <<_ACEOF
   6826 #define HAVE_DECL_VSNPRINTF $ac_have_decl
   6827 _ACEOF
   6828 
   6829   ac_fn_c_check_decl "$LINENO" "calloc" "ac_cv_have_decl_calloc" "$ac_includes_default"
   6830 if test "x$ac_cv_have_decl_calloc" = x""yes; then :
   6831   ac_have_decl=1
   6832 else
   6833   ac_have_decl=0
   6834 fi
   6835 
   6836 cat >>confdefs.h <<_ACEOF
   6837 #define HAVE_DECL_CALLOC $ac_have_decl
   6838 _ACEOF
   6839 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
   6840 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
   6841   ac_have_decl=1
   6842 else
   6843   ac_have_decl=0
   6844 fi
   6845 
   6846 cat >>confdefs.h <<_ACEOF
   6847 #define HAVE_DECL_GETENV $ac_have_decl
   6848 _ACEOF
   6849 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
   6850 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
   6851   ac_have_decl=1
   6852 else
   6853   ac_have_decl=0
   6854 fi
   6855 
   6856 cat >>confdefs.h <<_ACEOF
   6857 #define HAVE_DECL_GETOPT $ac_have_decl
   6858 _ACEOF
   6859 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
   6860 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
   6861   ac_have_decl=1
   6862 else
   6863   ac_have_decl=0
   6864 fi
   6865 
   6866 cat >>confdefs.h <<_ACEOF
   6867 #define HAVE_DECL_MALLOC $ac_have_decl
   6868 _ACEOF
   6869 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
   6870 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
   6871   ac_have_decl=1
   6872 else
   6873   ac_have_decl=0
   6874 fi
   6875 
   6876 cat >>confdefs.h <<_ACEOF
   6877 #define HAVE_DECL_REALLOC $ac_have_decl
   6878 _ACEOF
   6879 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
   6880 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
   6881   ac_have_decl=1
   6882 else
   6883   ac_have_decl=0
   6884 fi
   6885 
   6886 cat >>confdefs.h <<_ACEOF
   6887 #define HAVE_DECL_SBRK $ac_have_decl
   6888 _ACEOF
   6889 
   6890   ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
   6891 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
   6892   ac_have_decl=1
   6893 else
   6894   ac_have_decl=0
   6895 fi
   6896 
   6897 cat >>confdefs.h <<_ACEOF
   6898 #define HAVE_DECL_STRTOL $ac_have_decl
   6899 _ACEOF
   6900 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
   6901 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
   6902   ac_have_decl=1
   6903 else
   6904   ac_have_decl=0
   6905 fi
   6906 
   6907 cat >>confdefs.h <<_ACEOF
   6908 #define HAVE_DECL_STRTOUL $ac_have_decl
   6909 _ACEOF
   6910 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
   6911 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
   6912   ac_have_decl=1
   6913 else
   6914   ac_have_decl=0
   6915 fi
   6916 
   6917 cat >>confdefs.h <<_ACEOF
   6918 #define HAVE_DECL_STRTOLL $ac_have_decl
   6919 _ACEOF
   6920 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
   6921 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
   6922   ac_have_decl=1
   6923 else
   6924   ac_have_decl=0
   6925 fi
   6926 
   6927 cat >>confdefs.h <<_ACEOF
   6928 #define HAVE_DECL_STRTOULL $ac_have_decl
   6929 _ACEOF
   6930 
   6931   ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
   6932 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
   6933   ac_have_decl=1
   6934 else
   6935   ac_have_decl=0
   6936 fi
   6937 
   6938 cat >>confdefs.h <<_ACEOF
   6939 #define HAVE_DECL_STRVERSCMP $ac_have_decl
   6940 _ACEOF
   6941 
   6942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5
   6943 $as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; }
   6944 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then :
   6945   $as_echo_n "(cached) " >&6
   6946 else
   6947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6948 /* end confdefs.h.  */
   6949 
   6950 #include "confdefs.h"
   6951 #include <stdio.h>
   6952 #ifdef HAVE_STRING_H
   6953 #include <string.h>
   6954 #else
   6955 #ifdef HAVE_STRINGS_H
   6956 #include <strings.h>
   6957 #endif
   6958 #endif
   6959 #ifdef HAVE_STDLIB_H
   6960 #include <stdlib.h>
   6961 #endif
   6962 #ifdef HAVE_UNISTD_H
   6963 #include <unistd.h>
   6964 #endif
   6965 int
   6966 main ()
   6967 {
   6968 char *(*pfn) = (char *(*)) canonicalize_file_name
   6969   ;
   6970   return 0;
   6971 }
   6972 _ACEOF
   6973 if ac_fn_c_try_compile "$LINENO"; then :
   6974   libiberty_cv_decl_needed_canonicalize_file_name=no
   6975 else
   6976   libiberty_cv_decl_needed_canonicalize_file_name=yes
   6977 fi
   6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6979 fi
   6980 
   6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
   6982 $as_echo "$libiberty_cv_decl_needed_canonicalize_file_name" >&6; }
   6983 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
   6984 
   6985 $as_echo "#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1" >>confdefs.h
   6986 
   6987 fi
   6988 
   6989 fi
   6990 
   6991 # Figure out which version of pexecute to use.
   6992 case "${host}" in
   6993      *-*-mingw* | *-*-winnt*)	pexecute=pex-win32  ;;
   6994      *-*-msdosdjgpp*)		pexecute=pex-djgpp  ;;
   6995      *-*-msdos*)		pexecute=pex-msdos  ;;
   6996      *)				pexecute=pex-unix   ;;
   6997 esac
   6998 
   6999 
   7000 if test x$gcc_no_link = xyes; then
   7001   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
   7002     ac_cv_func_mmap_fixed_mapped=no
   7003   fi
   7004 fi
   7005 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
   7006   for ac_header in stdlib.h unistd.h
   7007 do :
   7008   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7009 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
   7010 eval as_val=\$$as_ac_Header
   7011    if test "x$as_val" = x""yes; then :
   7012   cat >>confdefs.h <<_ACEOF
   7013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7014 _ACEOF
   7015 
   7016 fi
   7017 done
   7018 
   7019 for ac_func in getpagesize
   7020 do :
   7021   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
   7022 if test "x$ac_cv_func_getpagesize" = x""yes; then :
   7023   cat >>confdefs.h <<_ACEOF
   7024 #define HAVE_GETPAGESIZE 1
   7025 _ACEOF
   7026 
   7027 fi
   7028 done
   7029 
   7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
   7031 $as_echo_n "checking for working mmap... " >&6; }
   7032 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
   7033   $as_echo_n "(cached) " >&6
   7034 else
   7035   if test "$cross_compiling" = yes; then :
   7036   ac_cv_func_mmap_fixed_mapped=no
   7037 else
   7038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7039 /* end confdefs.h.  */
   7040 $ac_includes_default
   7041 /* malloc might have been renamed as rpl_malloc. */
   7042 #undef malloc
   7043 
   7044 /* Thanks to Mike Haertel and Jim Avera for this test.
   7045    Here is a matrix of mmap possibilities:
   7046 	mmap private not fixed
   7047 	mmap private fixed at somewhere currently unmapped
   7048 	mmap private fixed at somewhere already mapped
   7049 	mmap shared not fixed
   7050 	mmap shared fixed at somewhere currently unmapped
   7051 	mmap shared fixed at somewhere already mapped
   7052    For private mappings, we should verify that changes cannot be read()
   7053    back from the file, nor mmap's back from the file at a different
   7054    address.  (There have been systems where private was not correctly
   7055    implemented like the infamous i386 svr4.0, and systems where the
   7056    VM page cache was not coherent with the file system buffer cache
   7057    like early versions of FreeBSD and possibly contemporary NetBSD.)
   7058    For shared mappings, we should conversely verify that changes get
   7059    propagated back to all the places they're supposed to be.
   7060 
   7061    Grep wants private fixed already mapped.
   7062    The main things grep needs to know about mmap are:
   7063    * does it exist and is it safe to write into the mmap'd area
   7064    * how to use it (BSD variants)  */
   7065 
   7066 #include <fcntl.h>
   7067 #include <sys/mman.h>
   7068 
   7069 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
   7070 char *malloc ();
   7071 #endif
   7072 
   7073 /* This mess was copied from the GNU getpagesize.h.  */
   7074 #ifndef HAVE_GETPAGESIZE
   7075 /* Assume that all systems that can run configure have sys/param.h.  */
   7076 # ifndef HAVE_SYS_PARAM_H
   7077 #  define HAVE_SYS_PARAM_H 1
   7078 # endif
   7079 
   7080 # ifdef _SC_PAGESIZE
   7081 #  define getpagesize() sysconf(_SC_PAGESIZE)
   7082 # else /* no _SC_PAGESIZE */
   7083 #  ifdef HAVE_SYS_PARAM_H
   7084 #   include <sys/param.h>
   7085 #   ifdef EXEC_PAGESIZE
   7086 #    define getpagesize() EXEC_PAGESIZE
   7087 #   else /* no EXEC_PAGESIZE */
   7088 #    ifdef NBPG
   7089 #     define getpagesize() NBPG * CLSIZE
   7090 #     ifndef CLSIZE
   7091 #      define CLSIZE 1
   7092 #     endif /* no CLSIZE */
   7093 #    else /* no NBPG */
   7094 #     ifdef NBPC
   7095 #      define getpagesize() NBPC
   7096 #     else /* no NBPC */
   7097 #      ifdef PAGESIZE
   7098 #       define getpagesize() PAGESIZE
   7099 #      endif /* PAGESIZE */
   7100 #     endif /* no NBPC */
   7101 #    endif /* no NBPG */
   7102 #   endif /* no EXEC_PAGESIZE */
   7103 #  else /* no HAVE_SYS_PARAM_H */
   7104 #   define getpagesize() 8192	/* punt totally */
   7105 #  endif /* no HAVE_SYS_PARAM_H */
   7106 # endif /* no _SC_PAGESIZE */
   7107 
   7108 #endif /* no HAVE_GETPAGESIZE */
   7109 
   7110 int
   7111 main ()
   7112 {
   7113   char *data, *data2, *data3;
   7114   int i, pagesize;
   7115   int fd;
   7116 
   7117   pagesize = getpagesize ();
   7118 
   7119   /* First, make a file with some known garbage in it. */
   7120   data = (char *) malloc (pagesize);
   7121   if (!data)
   7122     return 1;
   7123   for (i = 0; i < pagesize; ++i)
   7124     *(data + i) = rand ();
   7125   umask (0);
   7126   fd = creat ("conftest.mmap", 0600);
   7127   if (fd < 0)
   7128     return 1;
   7129   if (write (fd, data, pagesize) != pagesize)
   7130     return 1;
   7131   close (fd);
   7132 
   7133   /* Next, try to mmap the file at a fixed address which already has
   7134      something else allocated at it.  If we can, also make sure that
   7135      we see the same garbage.  */
   7136   fd = open ("conftest.mmap", O_RDWR);
   7137   if (fd < 0)
   7138     return 1;
   7139   data2 = (char *) malloc (2 * pagesize);
   7140   if (!data2)
   7141     return 1;
   7142   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
   7143   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   7144 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   7145     return 1;
   7146   for (i = 0; i < pagesize; ++i)
   7147     if (*(data + i) != *(data2 + i))
   7148       return 1;
   7149 
   7150   /* Finally, make sure that changes to the mapped area do not
   7151      percolate back to the file as seen by read().  (This is a bug on
   7152      some variants of i386 svr4.0.)  */
   7153   for (i = 0; i < pagesize; ++i)
   7154     *(data2 + i) = *(data2 + i) + 1;
   7155   data3 = (char *) malloc (pagesize);
   7156   if (!data3)
   7157     return 1;
   7158   if (read (fd, data3, pagesize) != pagesize)
   7159     return 1;
   7160   for (i = 0; i < pagesize; ++i)
   7161     if (*(data + i) != *(data3 + i))
   7162       return 1;
   7163   close (fd);
   7164   return 0;
   7165 }
   7166 _ACEOF
   7167 if ac_fn_c_try_run "$LINENO"; then :
   7168   ac_cv_func_mmap_fixed_mapped=yes
   7169 else
   7170   ac_cv_func_mmap_fixed_mapped=no
   7171 fi
   7172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7173   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7174 fi
   7175 
   7176 fi
   7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
   7178 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
   7179 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   7180 
   7181 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
   7182 
   7183 fi
   7184 rm -f conftest.mmap
   7185 
   7186 fi
   7187 
   7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strncmp" >&5
   7189 $as_echo_n "checking for working strncmp... " >&6; }
   7190 if test "${ac_cv_func_strncmp_works+set}" = set; then :
   7191   $as_echo_n "(cached) " >&6
   7192 else
   7193   if test "$cross_compiling" = yes; then :
   7194   ac_cv_func_strncmp_works=yes
   7195 else
   7196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7197 /* end confdefs.h.  */
   7198 
   7199 /* Test by Jim Wilson and Kaveh Ghazi.
   7200    Check whether strncmp reads past the end of its string parameters. */
   7201 #include <sys/types.h>
   7202 
   7203 #ifdef HAVE_FCNTL_H
   7204 #include <fcntl.h>
   7205 #endif
   7206 
   7207 #ifdef HAVE_SYS_MMAN_H
   7208 #include <sys/mman.h>
   7209 #endif
   7210 
   7211 #ifndef MAP_ANON
   7212 #ifdef MAP_ANONYMOUS
   7213 #define MAP_ANON MAP_ANONYMOUS
   7214 #else
   7215 #define MAP_ANON MAP_FILE
   7216 #endif
   7217 #endif
   7218 
   7219 #ifndef MAP_FILE
   7220 #define MAP_FILE 0
   7221 #endif
   7222 #ifndef O_RDONLY
   7223 #define O_RDONLY 0
   7224 #endif
   7225 
   7226 #define MAP_LEN 0x10000
   7227 
   7228 main ()
   7229 {
   7230 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
   7231   char *p;
   7232   int dev_zero;
   7233 
   7234   dev_zero = open ("/dev/zero", O_RDONLY);
   7235   if (dev_zero < 0)
   7236     exit (1);
   7237 
   7238   p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
   7239 		     MAP_ANON|MAP_PRIVATE, dev_zero, 0);
   7240   if (p == (char *)-1)
   7241     p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
   7242 		       MAP_ANON|MAP_PRIVATE, -1, 0);
   7243   if (p == (char *)-1)
   7244     exit (2);
   7245   else
   7246     {
   7247       char *string = "__si_type_info";
   7248       char *q = (char *) p + MAP_LEN - strlen (string) - 2;
   7249       char *r = (char *) p + 0xe;
   7250 
   7251       strcpy (q, string);
   7252       strcpy (r, string);
   7253       strncmp (r, q, 14);
   7254     }
   7255 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
   7256   exit (0);
   7257 }
   7258 
   7259 _ACEOF
   7260 if ac_fn_c_try_run "$LINENO"; then :
   7261   ac_cv_func_strncmp_works=yes
   7262 else
   7263   ac_cv_func_strncmp_works=no
   7264 fi
   7265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7266   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7267 fi
   7268 
   7269 rm -f core core.* *.core
   7270 fi
   7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strncmp_works" >&5
   7272 $as_echo "$ac_cv_func_strncmp_works" >&6; }
   7273 if test $ac_cv_func_strncmp_works = no ; then
   7274   case " $LIBOBJS " in
   7275   *" strncmp.$ac_objext "* ) ;;
   7276   *) LIBOBJS="$LIBOBJS strncmp.$ac_objext"
   7277  ;;
   7278 esac
   7279 
   7280 fi
   7281 
   7282 
   7283 # Install a library built with a cross compiler in $(tooldir) rather
   7284 # than $(libdir).
   7285 if test -z "${with_cross_host}"; then
   7286   INSTALL_DEST=libdir
   7287 else
   7288   INSTALL_DEST=tooldir
   7289 fi
   7290 
   7291 
   7292 
   7293 L=""
   7294 for l in x $LIBOBJS; do
   7295   case $l in
   7296     x) ;;
   7297     *) L="$L ./$l" ;;
   7298   esac
   7299 done
   7300 LIBOBJS="$L"
   7301 
   7302 
   7303 
   7304 
   7305 
   7306 # We need multilib support, but only if configuring for the target.
   7307 ac_config_files="$ac_config_files Makefile"
   7308 
   7309 ac_config_commands="$ac_config_commands default"
   7310 
   7311 cat >confcache <<\_ACEOF
   7312 # This file is a shell script that caches the results of configure
   7313 # tests run on this system so they can be shared between configure
   7314 # scripts and configure runs, see configure's option --config-cache.
   7315 # It is not useful on other systems.  If it contains results you don't
   7316 # want to keep, you may remove or edit it.
   7317 #
   7318 # config.status only pays attention to the cache file if you give it
   7319 # the --recheck option to rerun configure.
   7320 #
   7321 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   7322 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   7323 # following values.
   7324 
   7325 _ACEOF
   7326 
   7327 # The following way of writing the cache mishandles newlines in values,
   7328 # but we know of no workaround that is simple, portable, and efficient.
   7329 # So, we kill variables containing newlines.
   7330 # Ultrix sh set writes to stderr and can't be redirected directly,
   7331 # and sets the high bit in the cache file unless we assign to the vars.
   7332 (
   7333   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   7334     eval ac_val=\$$ac_var
   7335     case $ac_val in #(
   7336     *${as_nl}*)
   7337       case $ac_var in #(
   7338       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   7339 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   7340       esac
   7341       case $ac_var in #(
   7342       _ | IFS | as_nl) ;; #(
   7343       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   7344       *) { eval $ac_var=; unset $ac_var;} ;;
   7345       esac ;;
   7346     esac
   7347   done
   7348 
   7349   (set) 2>&1 |
   7350     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   7351     *${as_nl}ac_space=\ *)
   7352       # `set' does not quote correctly, so add quotes: double-quote
   7353       # substitution turns \\\\ into \\, and sed turns \\ into \.
   7354       sed -n \
   7355 	"s/'/'\\\\''/g;
   7356 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   7357       ;; #(
   7358     *)
   7359       # `set' quotes correctly as required by POSIX, so do not add quotes.
   7360       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   7361       ;;
   7362     esac |
   7363     sort
   7364 ) |
   7365   sed '
   7366      /^ac_cv_env_/b end
   7367      t clear
   7368      :clear
   7369      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   7370      t end
   7371      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   7372      :end' >>confcache
   7373 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   7374   if test -w "$cache_file"; then
   7375     test "x$cache_file" != "x/dev/null" &&
   7376       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   7377 $as_echo "$as_me: updating cache $cache_file" >&6;}
   7378     cat confcache >$cache_file
   7379   else
   7380     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   7381 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   7382   fi
   7383 fi
   7384 rm -f confcache
   7385 
   7386 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   7387 # Let make expand exec_prefix.
   7388 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   7389 
   7390 DEFS=-DHAVE_CONFIG_H
   7391 
   7392 ac_libobjs=
   7393 ac_ltlibobjs=
   7394 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   7395   # 1. Remove the extension, and $U if already installed.
   7396   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   7397   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   7398   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   7399   #    will be set to the directory where LIBOBJS objects are built.
   7400   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   7401   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   7402 done
   7403 LIBOBJS=$ac_libobjs
   7404 
   7405 LTLIBOBJS=$ac_ltlibobjs
   7406 
   7407 
   7408 
   7409 
   7410 : ${CONFIG_STATUS=./config.status}
   7411 ac_write_fail=0
   7412 ac_clean_files_save=$ac_clean_files
   7413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   7414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   7415 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   7416 as_write_fail=0
   7417 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   7418 #! $SHELL
   7419 # Generated by $as_me.
   7420 # Run this file to recreate the current configuration.
   7421 # Compiler output produced by configure, useful for debugging
   7422 # configure, is in config.log if it exists.
   7423 
   7424 debug=false
   7425 ac_cs_recheck=false
   7426 ac_cs_silent=false
   7427 
   7428 SHELL=\${CONFIG_SHELL-$SHELL}
   7429 export SHELL
   7430 _ASEOF
   7431 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   7432 ## -------------------- ##
   7433 ## M4sh Initialization. ##
   7434 ## -------------------- ##
   7435 
   7436 # Be more Bourne compatible
   7437 DUALCASE=1; export DUALCASE # for MKS sh
   7438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   7439   emulate sh
   7440   NULLCMD=:
   7441   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   7442   # is contrary to our usage.  Disable this feature.
   7443   alias -g '${1+"$@"}'='"$@"'
   7444   setopt NO_GLOB_SUBST
   7445 else
   7446   case `(set -o) 2>/dev/null` in #(
   7447   *posix*) :
   7448     set -o posix ;; #(
   7449   *) :
   7450      ;;
   7451 esac
   7452 fi
   7453 
   7454 
   7455 as_nl='
   7456 '
   7457 export as_nl
   7458 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   7459 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   7460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   7461 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   7462 # Prefer a ksh shell builtin over an external printf program on Solaris,
   7463 # but without wasting forks for bash or zsh.
   7464 if test -z "$BASH_VERSION$ZSH_VERSION" \
   7465     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   7466   as_echo='print -r --'
   7467   as_echo_n='print -rn --'
   7468 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   7469   as_echo='printf %s\n'
   7470   as_echo_n='printf %s'
   7471 else
   7472   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   7473     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   7474     as_echo_n='/usr/ucb/echo -n'
   7475   else
   7476     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   7477     as_echo_n_body='eval
   7478       arg=$1;
   7479       case $arg in #(
   7480       *"$as_nl"*)
   7481 	expr "X$arg" : "X\\(.*\\)$as_nl";
   7482 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   7483       esac;
   7484       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   7485     '
   7486     export as_echo_n_body
   7487     as_echo_n='sh -c $as_echo_n_body as_echo'
   7488   fi
   7489   export as_echo_body
   7490   as_echo='sh -c $as_echo_body as_echo'
   7491 fi
   7492 
   7493 # The user is always right.
   7494 if test "${PATH_SEPARATOR+set}" != set; then
   7495   PATH_SEPARATOR=:
   7496   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   7497     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   7498       PATH_SEPARATOR=';'
   7499   }
   7500 fi
   7501 
   7502 
   7503 # IFS
   7504 # We need space, tab and new line, in precisely that order.  Quoting is
   7505 # there to prevent editors from complaining about space-tab.
   7506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   7507 # splitting by setting IFS to empty value.)
   7508 IFS=" ""	$as_nl"
   7509 
   7510 # Find who we are.  Look in the path if we contain no directory separator.
   7511 case $0 in #((
   7512   *[\\/]* ) as_myself=$0 ;;
   7513   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7514 for as_dir in $PATH
   7515 do
   7516   IFS=$as_save_IFS
   7517   test -z "$as_dir" && as_dir=.
   7518     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   7519   done
   7520 IFS=$as_save_IFS
   7521 
   7522      ;;
   7523 esac
   7524 # We did not find ourselves, most probably we were run as `sh COMMAND'
   7525 # in which case we are not to be found in the path.
   7526 if test "x$as_myself" = x; then
   7527   as_myself=$0
   7528 fi
   7529 if test ! -f "$as_myself"; then
   7530   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   7531   exit 1
   7532 fi
   7533 
   7534 # Unset variables that we do not need and which cause bugs (e.g. in
   7535 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   7536 # suppresses any "Segmentation fault" message there.  '((' could
   7537 # trigger a bug in pdksh 5.2.14.
   7538 for as_var in BASH_ENV ENV MAIL MAILPATH
   7539 do eval test x\${$as_var+set} = xset \
   7540   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   7541 done
   7542 PS1='$ '
   7543 PS2='> '
   7544 PS4='+ '
   7545 
   7546 # NLS nuisances.
   7547 LC_ALL=C
   7548 export LC_ALL
   7549 LANGUAGE=C
   7550 export LANGUAGE
   7551 
   7552 # CDPATH.
   7553 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   7554 
   7555 
   7556 # as_fn_error ERROR [LINENO LOG_FD]
   7557 # ---------------------------------
   7558 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   7559 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   7560 # script with status $?, using 1 if that was 0.
   7561 as_fn_error ()
   7562 {
   7563   as_status=$?; test $as_status -eq 0 && as_status=1
   7564   if test "$3"; then
   7565     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   7566     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
   7567   fi
   7568   $as_echo "$as_me: error: $1" >&2
   7569   as_fn_exit $as_status
   7570 } # as_fn_error
   7571 
   7572 
   7573 # as_fn_set_status STATUS
   7574 # -----------------------
   7575 # Set $? to STATUS, without forking.
   7576 as_fn_set_status ()
   7577 {
   7578   return $1
   7579 } # as_fn_set_status
   7580 
   7581 # as_fn_exit STATUS
   7582 # -----------------
   7583 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   7584 as_fn_exit ()
   7585 {
   7586   set +e
   7587   as_fn_set_status $1
   7588   exit $1
   7589 } # as_fn_exit
   7590 
   7591 # as_fn_unset VAR
   7592 # ---------------
   7593 # Portably unset VAR.
   7594 as_fn_unset ()
   7595 {
   7596   { eval $1=; unset $1;}
   7597 }
   7598 as_unset=as_fn_unset
   7599 # as_fn_append VAR VALUE
   7600 # ----------------------
   7601 # Append the text in VALUE to the end of the definition contained in VAR. Take
   7602 # advantage of any shell optimizations that allow amortized linear growth over
   7603 # repeated appends, instead of the typical quadratic growth present in naive
   7604 # implementations.
   7605 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   7606   eval 'as_fn_append ()
   7607   {
   7608     eval $1+=\$2
   7609   }'
   7610 else
   7611   as_fn_append ()
   7612   {
   7613     eval $1=\$$1\$2
   7614   }
   7615 fi # as_fn_append
   7616 
   7617 # as_fn_arith ARG...
   7618 # ------------------
   7619 # Perform arithmetic evaluation on the ARGs, and store the result in the
   7620 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   7621 # must be portable across $(()) and expr.
   7622 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   7623   eval 'as_fn_arith ()
   7624   {
   7625     as_val=$(( $* ))
   7626   }'
   7627 else
   7628   as_fn_arith ()
   7629   {
   7630     as_val=`expr "$@" || test $? -eq 1`
   7631   }
   7632 fi # as_fn_arith
   7633 
   7634 
   7635 if expr a : '\(a\)' >/dev/null 2>&1 &&
   7636    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   7637   as_expr=expr
   7638 else
   7639   as_expr=false
   7640 fi
   7641 
   7642 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   7643   as_basename=basename
   7644 else
   7645   as_basename=false
   7646 fi
   7647 
   7648 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   7649   as_dirname=dirname
   7650 else
   7651   as_dirname=false
   7652 fi
   7653 
   7654 as_me=`$as_basename -- "$0" ||
   7655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   7656 	 X"$0" : 'X\(//\)$' \| \
   7657 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   7658 $as_echo X/"$0" |
   7659     sed '/^.*\/\([^/][^/]*\)\/*$/{
   7660 	    s//\1/
   7661 	    q
   7662 	  }
   7663 	  /^X\/\(\/\/\)$/{
   7664 	    s//\1/
   7665 	    q
   7666 	  }
   7667 	  /^X\/\(\/\).*/{
   7668 	    s//\1/
   7669 	    q
   7670 	  }
   7671 	  s/.*/./; q'`
   7672 
   7673 # Avoid depending upon Character Ranges.
   7674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   7675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   7676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   7677 as_cr_digits='0123456789'
   7678 as_cr_alnum=$as_cr_Letters$as_cr_digits
   7679 
   7680 ECHO_C= ECHO_N= ECHO_T=
   7681 case `echo -n x` in #(((((
   7682 -n*)
   7683   case `echo 'xy\c'` in
   7684   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   7685   xy)  ECHO_C='\c';;
   7686   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   7687        ECHO_T='	';;
   7688   esac;;
   7689 *)
   7690   ECHO_N='-n';;
   7691 esac
   7692 
   7693 rm -f conf$$ conf$$.exe conf$$.file
   7694 if test -d conf$$.dir; then
   7695   rm -f conf$$.dir/conf$$.file
   7696 else
   7697   rm -f conf$$.dir
   7698   mkdir conf$$.dir 2>/dev/null
   7699 fi
   7700 if (echo >conf$$.file) 2>/dev/null; then
   7701   if ln -s conf$$.file conf$$ 2>/dev/null; then
   7702     as_ln_s='ln -s'
   7703     # ... but there are two gotchas:
   7704     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   7705     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   7706     # In both cases, we have to default to `cp -p'.
   7707     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   7708       as_ln_s='cp -p'
   7709   elif ln conf$$.file conf$$ 2>/dev/null; then
   7710     as_ln_s=ln
   7711   else
   7712     as_ln_s='cp -p'
   7713   fi
   7714 else
   7715   as_ln_s='cp -p'
   7716 fi
   7717 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   7718 rmdir conf$$.dir 2>/dev/null
   7719 
   7720 
   7721 # as_fn_mkdir_p
   7722 # -------------
   7723 # Create "$as_dir" as a directory, including parents if necessary.
   7724 as_fn_mkdir_p ()
   7725 {
   7726 
   7727   case $as_dir in #(
   7728   -*) as_dir=./$as_dir;;
   7729   esac
   7730   test -d "$as_dir" || eval $as_mkdir_p || {
   7731     as_dirs=
   7732     while :; do
   7733       case $as_dir in #(
   7734       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   7735       *) as_qdir=$as_dir;;
   7736       esac
   7737       as_dirs="'$as_qdir' $as_dirs"
   7738       as_dir=`$as_dirname -- "$as_dir" ||
   7739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   7740 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   7741 	 X"$as_dir" : 'X\(//\)$' \| \
   7742 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   7743 $as_echo X"$as_dir" |
   7744     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   7745 	    s//\1/
   7746 	    q
   7747 	  }
   7748 	  /^X\(\/\/\)[^/].*/{
   7749 	    s//\1/
   7750 	    q
   7751 	  }
   7752 	  /^X\(\/\/\)$/{
   7753 	    s//\1/
   7754 	    q
   7755 	  }
   7756 	  /^X\(\/\).*/{
   7757 	    s//\1/
   7758 	    q
   7759 	  }
   7760 	  s/.*/./; q'`
   7761       test -d "$as_dir" && break
   7762     done
   7763     test -z "$as_dirs" || eval "mkdir $as_dirs"
   7764   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
   7765 
   7766 
   7767 } # as_fn_mkdir_p
   7768 if mkdir -p . 2>/dev/null; then
   7769   as_mkdir_p='mkdir -p "$as_dir"'
   7770 else
   7771   test -d ./-p && rmdir ./-p
   7772   as_mkdir_p=false
   7773 fi
   7774 
   7775 if test -x / >/dev/null 2>&1; then
   7776   as_test_x='test -x'
   7777 else
   7778   if ls -dL / >/dev/null 2>&1; then
   7779     as_ls_L_option=L
   7780   else
   7781     as_ls_L_option=
   7782   fi
   7783   as_test_x='
   7784     eval sh -c '\''
   7785       if test -d "$1"; then
   7786 	test -d "$1/.";
   7787       else
   7788 	case $1 in #(
   7789 	-*)set "./$1";;
   7790 	esac;
   7791 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   7792 	???[sx]*):;;*)false;;esac;fi
   7793     '\'' sh
   7794   '
   7795 fi
   7796 as_executable_p=$as_test_x
   7797 
   7798 # Sed expression to map a string onto a valid CPP name.
   7799 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   7800 
   7801 # Sed expression to map a string onto a valid variable name.
   7802 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   7803 
   7804 
   7805 exec 6>&1
   7806 ## ----------------------------------- ##
   7807 ## Main body of $CONFIG_STATUS script. ##
   7808 ## ----------------------------------- ##
   7809 _ASEOF
   7810 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   7811 
   7812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   7813 # Save the log message, to keep $0 and so on meaningful, and to
   7814 # report actual input values of CONFIG_FILES etc. instead of their
   7815 # values after options handling.
   7816 ac_log="
   7817 This file was extended by $as_me, which was
   7818 generated by GNU Autoconf 2.64.  Invocation command line was
   7819 
   7820   CONFIG_FILES    = $CONFIG_FILES
   7821   CONFIG_HEADERS  = $CONFIG_HEADERS
   7822   CONFIG_LINKS    = $CONFIG_LINKS
   7823   CONFIG_COMMANDS = $CONFIG_COMMANDS
   7824   $ $0 $@
   7825 
   7826 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   7827 "
   7828 
   7829 _ACEOF
   7830 
   7831 case $ac_config_files in *"
   7832 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   7833 esac
   7834 
   7835 case $ac_config_headers in *"
   7836 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   7837 esac
   7838 
   7839 
   7840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   7841 # Files that config.status was made for.
   7842 config_files="$ac_config_files"
   7843 config_headers="$ac_config_headers"
   7844 config_commands="$ac_config_commands"
   7845 
   7846 _ACEOF
   7847 
   7848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   7849 ac_cs_usage="\
   7850 \`$as_me' instantiates files and other configuration actions
   7851 from templates according to the current configuration.  Unless the files
   7852 and actions are specified as TAGs, all are instantiated by default.
   7853 
   7854 Usage: $0 [OPTION]... [TAG]...
   7855 
   7856   -h, --help       print this help, then exit
   7857   -V, --version    print version number and configuration settings, then exit
   7858   -q, --quiet, --silent
   7859                    do not print progress messages
   7860   -d, --debug      don't remove temporary files
   7861       --recheck    update $as_me by reconfiguring in the same conditions
   7862       --file=FILE[:TEMPLATE]
   7863                    instantiate the configuration file FILE
   7864       --header=FILE[:TEMPLATE]
   7865                    instantiate the configuration header FILE
   7866 
   7867 Configuration files:
   7868 $config_files
   7869 
   7870 Configuration headers:
   7871 $config_headers
   7872 
   7873 Configuration commands:
   7874 $config_commands
   7875 
   7876 Report bugs to the package provider."
   7877 
   7878 _ACEOF
   7879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   7880 ac_cs_version="\\
   7881 config.status
   7882 configured by $0, generated by GNU Autoconf 2.64,
   7883   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   7884 
   7885 Copyright (C) 2009 Free Software Foundation, Inc.
   7886 This config.status script is free software; the Free Software Foundation
   7887 gives unlimited permission to copy, distribute and modify it."
   7888 
   7889 ac_pwd='$ac_pwd'
   7890 srcdir='$srcdir'
   7891 INSTALL='$INSTALL'
   7892 test -n "\$AWK" || AWK=awk
   7893 _ACEOF
   7894 
   7895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   7896 # The default lists apply if the user does not specify any file.
   7897 ac_need_defaults=:
   7898 while test $# != 0
   7899 do
   7900   case $1 in
   7901   --*=*)
   7902     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   7903     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   7904     ac_shift=:
   7905     ;;
   7906   *)
   7907     ac_option=$1
   7908     ac_optarg=$2
   7909     ac_shift=shift
   7910     ;;
   7911   esac
   7912 
   7913   case $ac_option in
   7914   # Handling of the options.
   7915   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   7916     ac_cs_recheck=: ;;
   7917   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   7918     $as_echo "$ac_cs_version"; exit ;;
   7919   --debug | --debu | --deb | --de | --d | -d )
   7920     debug=: ;;
   7921   --file | --fil | --fi | --f )
   7922     $ac_shift
   7923     case $ac_optarg in
   7924     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   7925     esac
   7926     as_fn_append CONFIG_FILES " '$ac_optarg'"
   7927     ac_need_defaults=false;;
   7928   --header | --heade | --head | --hea )
   7929     $ac_shift
   7930     case $ac_optarg in
   7931     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   7932     esac
   7933     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   7934     ac_need_defaults=false;;
   7935   --he | --h)
   7936     # Conflict between --help and --header
   7937     as_fn_error "ambiguous option: \`$1'
   7938 Try \`$0 --help' for more information.";;
   7939   --help | --hel | -h )
   7940     $as_echo "$ac_cs_usage"; exit ;;
   7941   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   7942   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   7943     ac_cs_silent=: ;;
   7944 
   7945   # This is an error.
   7946   -*) as_fn_error "unrecognized option: \`$1'
   7947 Try \`$0 --help' for more information." ;;
   7948 
   7949   *) as_fn_append ac_config_targets " $1"
   7950      ac_need_defaults=false ;;
   7951 
   7952   esac
   7953   shift
   7954 done
   7955 
   7956 ac_configure_extra_args=
   7957 
   7958 if $ac_cs_silent; then
   7959   exec 6>/dev/null
   7960   ac_configure_extra_args="$ac_configure_extra_args --silent"
   7961 fi
   7962 
   7963 _ACEOF
   7964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   7965 if \$ac_cs_recheck; then
   7966   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   7967   shift
   7968   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   7969   CONFIG_SHELL='$SHELL'
   7970   export CONFIG_SHELL
   7971   exec "\$@"
   7972 fi
   7973 
   7974 _ACEOF
   7975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   7976 exec 5>>config.log
   7977 {
   7978   echo
   7979   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   7980 ## Running $as_me. ##
   7981 _ASBOX
   7982   $as_echo "$ac_log"
   7983 } >&5
   7984 
   7985 _ACEOF
   7986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   7987 #
   7988 # INIT-COMMANDS
   7989 #
   7990 srcdir=${srcdir}
   7991 host=${host}
   7992 target=${target}
   7993 with_target_subdir=${with_target_subdir}
   7994 with_multisubdir=${with_multisubdir}
   7995 ac_configure_args="--enable-multilib ${ac_configure_args}"
   7996 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
   7997 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
   7998 libiberty_topdir=${libiberty_topdir}
   7999 
   8000 
   8001 _ACEOF
   8002 
   8003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8004 
   8005 # Handling of arguments.
   8006 for ac_config_target in $ac_config_targets
   8007 do
   8008   case $ac_config_target in
   8009     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
   8010     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   8011     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   8012 
   8013   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   8014   esac
   8015 done
   8016 
   8017 
   8018 # If the user did not use the arguments to specify the items to instantiate,
   8019 # then the envvar interface is used.  Set only those that are not.
   8020 # We use the long form for the default assignment because of an extremely
   8021 # bizarre bug on SunOS 4.1.3.
   8022 if $ac_need_defaults; then
   8023   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   8024   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   8025   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   8026 fi
   8027 
   8028 # Have a temporary directory for convenience.  Make it in the build tree
   8029 # simply because there is no reason against having it here, and in addition,
   8030 # creating and moving files from /tmp can sometimes cause problems.
   8031 # Hook for its removal unless debugging.
   8032 # Note that there is a small window in which the directory will not be cleaned:
   8033 # after its creation but before its name has been assigned to `$tmp'.
   8034 $debug ||
   8035 {
   8036   tmp=
   8037   trap 'exit_status=$?
   8038   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   8039 ' 0
   8040   trap 'as_fn_exit 1' 1 2 13 15
   8041 }
   8042 # Create a (secure) tmp directory for tmp files.
   8043 
   8044 {
   8045   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   8046   test -n "$tmp" && test -d "$tmp"
   8047 }  ||
   8048 {
   8049   tmp=./conf$$-$RANDOM
   8050   (umask 077 && mkdir "$tmp")
   8051 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
   8052 
   8053 # Set up the scripts for CONFIG_FILES section.
   8054 # No need to generate them if there are no CONFIG_FILES.
   8055 # This happens for instance with `./config.status config.h'.
   8056 if test -n "$CONFIG_FILES"; then
   8057 
   8058 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   8059   ac_cs_awk_getline=:
   8060   ac_cs_awk_pipe_init=
   8061   ac_cs_awk_read_file='
   8062       while ((getline aline < (F[key])) > 0)
   8063 	print(aline)
   8064       close(F[key])'
   8065   ac_cs_awk_pipe_fini=
   8066 else
   8067   ac_cs_awk_getline=false
   8068   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   8069   ac_cs_awk_read_file='
   8070       print "|#_!!_#|"
   8071       print "cat " F[key] " &&"
   8072       '$ac_cs_awk_pipe_init
   8073   # The final `:' finishes the AND list.
   8074   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   8075 fi
   8076 ac_cr=`echo X | tr X '\015'`
   8077 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   8078 # But we know of no other shell where ac_cr would be empty at this
   8079 # point, so we can use a bashism as a fallback.
   8080 if test "x$ac_cr" = x; then
   8081   eval ac_cr=\$\'\\r\'
   8082 fi
   8083 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   8084 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   8085   ac_cs_awk_cr='\r'
   8086 else
   8087   ac_cs_awk_cr=$ac_cr
   8088 fi
   8089 
   8090 echo 'BEGIN {' >"$tmp/subs1.awk" &&
   8091 _ACEOF
   8092 
   8093 # Create commands to substitute file output variables.
   8094 {
   8095   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   8096   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
   8097   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   8098   echo "_ACAWK" &&
   8099   echo "_ACEOF"
   8100 } >conf$$files.sh &&
   8101 . ./conf$$files.sh ||
   8102   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   8103 rm -f conf$$files.sh
   8104 
   8105 {
   8106   echo "cat >conf$$subs.awk <<_ACEOF" &&
   8107   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   8108   echo "_ACEOF"
   8109 } >conf$$subs.sh ||
   8110   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   8111 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
   8112 ac_delim='%!_!# '
   8113 for ac_last_try in false false false false false :; do
   8114   . ./conf$$subs.sh ||
   8115     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   8116 
   8117   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   8118   if test $ac_delim_n = $ac_delim_num; then
   8119     break
   8120   elif $ac_last_try; then
   8121     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   8122   else
   8123     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   8124   fi
   8125 done
   8126 rm -f conf$$subs.sh
   8127 
   8128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8129 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
   8130 _ACEOF
   8131 sed -n '
   8132 h
   8133 s/^/S["/; s/!.*/"]=/
   8134 p
   8135 g
   8136 s/^[^!]*!//
   8137 :repl
   8138 t repl
   8139 s/'"$ac_delim"'$//
   8140 t delim
   8141 :nl
   8142 h
   8143 s/\(.\{148\}\).*/\1/
   8144 t more1
   8145 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   8146 p
   8147 n
   8148 b repl
   8149 :more1
   8150 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   8151 p
   8152 g
   8153 s/.\{148\}//
   8154 t nl
   8155 :delim
   8156 h
   8157 s/\(.\{148\}\).*/\1/
   8158 t more2
   8159 s/["\\]/\\&/g; s/^/"/; s/$/"/
   8160 p
   8161 b
   8162 :more2
   8163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   8164 p
   8165 g
   8166 s/.\{148\}//
   8167 t delim
   8168 ' <conf$$subs.awk | sed '
   8169 /^[^""]/{
   8170   N
   8171   s/\n//
   8172 }
   8173 ' >>$CONFIG_STATUS || ac_write_fail=1
   8174 rm -f conf$$subs.awk
   8175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8176 _ACAWK
   8177 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
   8178   for (key in S) S_is_set[key] = 1
   8179   FS = ""
   8180   \$ac_cs_awk_pipe_init
   8181 }
   8182 {
   8183   line = $ 0
   8184   nfields = split(line, field, "@")
   8185   substed = 0
   8186   len = length(field[1])
   8187   for (i = 2; i < nfields; i++) {
   8188     key = field[i]
   8189     keylen = length(key)
   8190     if (S_is_set[key]) {
   8191       value = S[key]
   8192       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   8193       len += length(value) + length(field[++i])
   8194       substed = 1
   8195     } else
   8196       len += 1 + keylen
   8197   }
   8198   if (nfields == 3 && !substed) {
   8199     key = field[2]
   8200     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   8201       \$ac_cs_awk_read_file
   8202       next
   8203     }
   8204   }
   8205   print line
   8206 }
   8207 \$ac_cs_awk_pipe_fini
   8208 _ACAWK
   8209 _ACEOF
   8210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8211 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   8212   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   8213 else
   8214   cat
   8215 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
   8216   || as_fn_error "could not setup config files machinery" "$LINENO" 5
   8217 _ACEOF
   8218 
   8219 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   8220 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   8221 # trailing colons and then remove the whole line if VPATH becomes empty
   8222 # (actually we leave an empty line to preserve line numbers).
   8223 if test "x$srcdir" = x.; then
   8224   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   8225 s/:*\$(srcdir):*/:/
   8226 s/:*\${srcdir}:*/:/
   8227 s/:*@srcdir@:*/:/
   8228 s/^\([^=]*=[	 ]*\):*/\1/
   8229 s/:*$//
   8230 s/^[^=]*=[	 ]*$//
   8231 }'
   8232 fi
   8233 
   8234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8235 fi # test -n "$CONFIG_FILES"
   8236 
   8237 # Set up the scripts for CONFIG_HEADERS section.
   8238 # No need to generate them if there are no CONFIG_HEADERS.
   8239 # This happens for instance with `./config.status Makefile'.
   8240 if test -n "$CONFIG_HEADERS"; then
   8241 cat >"$tmp/defines.awk" <<\_ACAWK ||
   8242 BEGIN {
   8243 _ACEOF
   8244 
   8245 # Transform confdefs.h into an awk script `defines.awk', embedded as
   8246 # here-document in config.status, that substitutes the proper values into
   8247 # config.h.in to produce config.h.
   8248 
   8249 # Create a delimiter string that does not exist in confdefs.h, to ease
   8250 # handling of long lines.
   8251 ac_delim='%!_!# '
   8252 for ac_last_try in false false :; do
   8253   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
   8254   if test -z "$ac_t"; then
   8255     break
   8256   elif $ac_last_try; then
   8257     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
   8258   else
   8259     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   8260   fi
   8261 done
   8262 
   8263 # For the awk script, D is an array of macro values keyed by name,
   8264 # likewise P contains macro parameters if any.  Preserve backslash
   8265 # newline sequences.
   8266 
   8267 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   8268 sed -n '
   8269 s/.\{148\}/&'"$ac_delim"'/g
   8270 t rset
   8271 :rset
   8272 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   8273 t def
   8274 d
   8275 :def
   8276 s/\\$//
   8277 t bsnl
   8278 s/["\\]/\\&/g
   8279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   8280 D["\1"]=" \3"/p
   8281 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   8282 d
   8283 :bsnl
   8284 s/["\\]/\\&/g
   8285 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   8286 D["\1"]=" \3\\\\\\n"\\/p
   8287 t cont
   8288 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   8289 t cont
   8290 d
   8291 :cont
   8292 n
   8293 s/.\{148\}/&'"$ac_delim"'/g
   8294 t clear
   8295 :clear
   8296 s/\\$//
   8297 t bsnlc
   8298 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   8299 d
   8300 :bsnlc
   8301 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   8302 b cont
   8303 ' <confdefs.h | sed '
   8304 s/'"$ac_delim"'/"\\\
   8305 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   8306 
   8307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8308   for (key in D) D_is_set[key] = 1
   8309   FS = ""
   8310 }
   8311 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   8312   line = \$ 0
   8313   split(line, arg, " ")
   8314   if (arg[1] == "#") {
   8315     defundef = arg[2]
   8316     mac1 = arg[3]
   8317   } else {
   8318     defundef = substr(arg[1], 2)
   8319     mac1 = arg[2]
   8320   }
   8321   split(mac1, mac2, "(") #)
   8322   macro = mac2[1]
   8323   prefix = substr(line, 1, index(line, defundef) - 1)
   8324   if (D_is_set[macro]) {
   8325     # Preserve the white space surrounding the "#".
   8326     print prefix "define", macro P[macro] D[macro]
   8327     next
   8328   } else {
   8329     # Replace #undef with comments.  This is necessary, for example,
   8330     # in the case of _POSIX_SOURCE, which is predefined and required
   8331     # on some systems where configure will not decide to define it.
   8332     if (defundef == "undef") {
   8333       print "/*", prefix defundef, macro, "*/"
   8334       next
   8335     }
   8336   }
   8337 }
   8338 { print }
   8339 _ACAWK
   8340 _ACEOF
   8341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8342   as_fn_error "could not setup config headers machinery" "$LINENO" 5
   8343 fi # test -n "$CONFIG_HEADERS"
   8344 
   8345 
   8346 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   8347 shift
   8348 for ac_tag
   8349 do
   8350   case $ac_tag in
   8351   :[FHLC]) ac_mode=$ac_tag; continue;;
   8352   esac
   8353   case $ac_mode$ac_tag in
   8354   :[FHL]*:*);;
   8355   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
   8356   :[FH]-) ac_tag=-:-;;
   8357   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   8358   esac
   8359   ac_save_IFS=$IFS
   8360   IFS=:
   8361   set x $ac_tag
   8362   IFS=$ac_save_IFS
   8363   shift
   8364   ac_file=$1
   8365   shift
   8366 
   8367   case $ac_mode in
   8368   :L) ac_source=$1;;
   8369   :[FH])
   8370     ac_file_inputs=
   8371     for ac_f
   8372     do
   8373       case $ac_f in
   8374       -) ac_f="$tmp/stdin";;
   8375       *) # Look for the file first in the build tree, then in the source tree
   8376 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   8377 	 # because $ac_f cannot contain `:'.
   8378 	 test -f "$ac_f" ||
   8379 	   case $ac_f in
   8380 	   [\\/$]*) false;;
   8381 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   8382 	   esac ||
   8383 	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   8384       esac
   8385       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   8386       as_fn_append ac_file_inputs " '$ac_f'"
   8387     done
   8388 
   8389     # Let's still pretend it is `configure' which instantiates (i.e., don't
   8390     # use $as_me), people would be surprised to read:
   8391     #    /* config.h.  Generated by config.status.  */
   8392     configure_input='Generated from '`
   8393 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   8394 	`' by configure.'
   8395     if test x"$ac_file" != x-; then
   8396       configure_input="$ac_file.  $configure_input"
   8397       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   8398 $as_echo "$as_me: creating $ac_file" >&6;}
   8399     fi
   8400     # Neutralize special characters interpreted by sed in replacement strings.
   8401     case $configure_input in #(
   8402     *\&* | *\|* | *\\* )
   8403        ac_sed_conf_input=`$as_echo "$configure_input" |
   8404        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   8405     *) ac_sed_conf_input=$configure_input;;
   8406     esac
   8407 
   8408     case $ac_tag in
   8409     *:-:* | *:-) cat >"$tmp/stdin" \
   8410       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
   8411     esac
   8412     ;;
   8413   esac
   8414 
   8415   ac_dir=`$as_dirname -- "$ac_file" ||
   8416 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8417 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   8418 	 X"$ac_file" : 'X\(//\)$' \| \
   8419 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   8420 $as_echo X"$ac_file" |
   8421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8422 	    s//\1/
   8423 	    q
   8424 	  }
   8425 	  /^X\(\/\/\)[^/].*/{
   8426 	    s//\1/
   8427 	    q
   8428 	  }
   8429 	  /^X\(\/\/\)$/{
   8430 	    s//\1/
   8431 	    q
   8432 	  }
   8433 	  /^X\(\/\).*/{
   8434 	    s//\1/
   8435 	    q
   8436 	  }
   8437 	  s/.*/./; q'`
   8438   as_dir="$ac_dir"; as_fn_mkdir_p
   8439   ac_builddir=.
   8440 
   8441 case "$ac_dir" in
   8442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   8443 *)
   8444   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   8445   # A ".." for each directory in $ac_dir_suffix.
   8446   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   8447   case $ac_top_builddir_sub in
   8448   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   8449   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   8450   esac ;;
   8451 esac
   8452 ac_abs_top_builddir=$ac_pwd
   8453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   8454 # for backward compatibility:
   8455 ac_top_builddir=$ac_top_build_prefix
   8456 
   8457 case $srcdir in
   8458   .)  # We are building in place.
   8459     ac_srcdir=.
   8460     ac_top_srcdir=$ac_top_builddir_sub
   8461     ac_abs_top_srcdir=$ac_pwd ;;
   8462   [\\/]* | ?:[\\/]* )  # Absolute name.
   8463     ac_srcdir=$srcdir$ac_dir_suffix;
   8464     ac_top_srcdir=$srcdir
   8465     ac_abs_top_srcdir=$srcdir ;;
   8466   *) # Relative name.
   8467     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   8468     ac_top_srcdir=$ac_top_build_prefix$srcdir
   8469     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   8470 esac
   8471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   8472 
   8473 
   8474   case $ac_mode in
   8475   :F)
   8476   #
   8477   # CONFIG_FILE
   8478   #
   8479 
   8480   case $INSTALL in
   8481   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   8482   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   8483   esac
   8484 _ACEOF
   8485 
   8486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8487 # If the template does not know about datarootdir, expand it.
   8488 # FIXME: This hack should be removed a few years after 2.60.
   8489 ac_datarootdir_hack=; ac_datarootdir_seen=
   8490 ac_sed_dataroot='
   8491 /datarootdir/ {
   8492   p
   8493   q
   8494 }
   8495 /@datadir@/p
   8496 /@docdir@/p
   8497 /@infodir@/p
   8498 /@localedir@/p
   8499 /@mandir@/p'
   8500 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   8501 *datarootdir*) ac_datarootdir_seen=yes;;
   8502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   8503   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   8504 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   8505 _ACEOF
   8506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8507   ac_datarootdir_hack='
   8508   s&@datadir@&$datadir&g
   8509   s&@docdir@&$docdir&g
   8510   s&@infodir@&$infodir&g
   8511   s&@localedir@&$localedir&g
   8512   s&@mandir@&$mandir&g
   8513   s&\\\${datarootdir}&$datarootdir&g' ;;
   8514 esac
   8515 _ACEOF
   8516 
   8517 # Neutralize VPATH when `$srcdir' = `.'.
   8518 # Shell code in configure.ac might set extrasub.
   8519 # FIXME: do we really want to maintain this feature?
   8520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8521 ac_sed_extra="$ac_vpsub
   8522 $extrasub
   8523 _ACEOF
   8524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8525 :t
   8526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   8527 s|@configure_input@|$ac_sed_conf_input|;t t
   8528 s&@top_builddir@&$ac_top_builddir_sub&;t t
   8529 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   8530 s&@srcdir@&$ac_srcdir&;t t
   8531 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   8532 s&@top_srcdir@&$ac_top_srcdir&;t t
   8533 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   8534 s&@builddir@&$ac_builddir&;t t
   8535 s&@abs_builddir@&$ac_abs_builddir&;t t
   8536 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   8537 s&@INSTALL@&$ac_INSTALL&;t t
   8538 $ac_datarootdir_hack
   8539 "
   8540 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   8541 if $ac_cs_awk_getline; then
   8542   $AWK -f "$tmp/subs.awk"
   8543 else
   8544   $AWK -f "$tmp/subs.awk" | $SHELL
   8545 fi >$tmp/out \
   8546   || as_fn_error "could not create $ac_file" "$LINENO" 5
   8547 
   8548 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   8549   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   8550   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   8551   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   8552 which seems to be undefined.  Please make sure it is defined." >&5
   8553 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   8554 which seems to be undefined.  Please make sure it is defined." >&2;}
   8555 
   8556   rm -f "$tmp/stdin"
   8557   case $ac_file in
   8558   -) cat "$tmp/out" && rm -f "$tmp/out";;
   8559   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
   8560   esac \
   8561   || as_fn_error "could not create $ac_file" "$LINENO" 5
   8562  ;;
   8563   :H)
   8564   #
   8565   # CONFIG_HEADER
   8566   #
   8567   if test x"$ac_file" != x-; then
   8568     {
   8569       $as_echo "/* $configure_input  */" \
   8570       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
   8571     } >"$tmp/config.h" \
   8572       || as_fn_error "could not create $ac_file" "$LINENO" 5
   8573     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
   8574       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   8575 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   8576     else
   8577       rm -f "$ac_file"
   8578       mv "$tmp/config.h" "$ac_file" \
   8579 	|| as_fn_error "could not create $ac_file" "$LINENO" 5
   8580     fi
   8581   else
   8582     $as_echo "/* $configure_input  */" \
   8583       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
   8584       || as_fn_error "could not create -" "$LINENO" 5
   8585   fi
   8586  ;;
   8587 
   8588   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   8589 $as_echo "$as_me: executing $ac_file commands" >&6;}
   8590  ;;
   8591   esac
   8592 
   8593 
   8594   case $ac_file$ac_mode in
   8595     "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
   8596 if test -n "$CONFIG_FILES"; then
   8597   if test -n "${with_target_subdir}"; then
   8598     # FIXME: We shouldn't need to set ac_file
   8599     ac_file=Makefile
   8600     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
   8601     . ${libiberty_topdir}/config-ml.in
   8602   fi
   8603 fi ;;
   8604 
   8605   esac
   8606 done # for ac_tag
   8607 
   8608 
   8609 as_fn_exit 0
   8610 _ACEOF
   8611 ac_clean_files=$ac_clean_files_save
   8612 
   8613 test $ac_write_fail = 0 ||
   8614   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
   8615 
   8616 
   8617 # configure is writing to config.log, and then calls config.status.
   8618 # config.status does its own redirection, appending to config.log.
   8619 # Unfortunately, on DOS this fails, as config.log is still kept open
   8620 # by configure, so config.status won't be able to write to it; its
   8621 # output is simply discarded.  So we exec the FD to /dev/null,
   8622 # effectively closing config.log, so it can be properly (re)opened and
   8623 # appended to by config.status.  When coming back to configure, we
   8624 # need to make the FD available again.
   8625 if test "$no_create" != yes; then
   8626   ac_cs_success=:
   8627   ac_config_status_args=
   8628   test "$silent" = yes &&
   8629     ac_config_status_args="$ac_config_status_args --quiet"
   8630   exec 5>/dev/null
   8631   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   8632   exec 5>>config.log
   8633   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   8634   # would make configure fail if this is the last instruction.
   8635   $ac_cs_success || as_fn_exit $?
   8636 fi
   8637 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   8638   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   8639 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   8640 fi
   8641 
   8642