Home | History | Annotate | Line # | Download | only in gdb
configure revision 1.8
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69.
      4 #
      5 #
      6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      7 #
      8 #
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 ## -------------------- ##
     12 ## M4sh Initialization. ##
     13 ## -------------------- ##
     14 
     15 # Be more Bourne compatible
     16 DUALCASE=1; export DUALCASE # for MKS sh
     17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     18   emulate sh
     19   NULLCMD=:
     20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     21   # is contrary to our usage.  Disable this feature.
     22   alias -g '${1+"$@"}'='"$@"'
     23   setopt NO_GLOB_SUBST
     24 else
     25   case `(set -o) 2>/dev/null` in #(
     26   *posix*) :
     27     set -o posix ;; #(
     28   *) :
     29      ;;
     30 esac
     31 fi
     32 
     33 
     34 as_nl='
     35 '
     36 export as_nl
     37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     41 # Prefer a ksh shell builtin over an external printf program on Solaris,
     42 # but without wasting forks for bash or zsh.
     43 if test -z "$BASH_VERSION$ZSH_VERSION" \
     44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     45   as_echo='print -r --'
     46   as_echo_n='print -rn --'
     47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     48   as_echo='printf %s\n'
     49   as_echo_n='printf %s'
     50 else
     51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     53     as_echo_n='/usr/ucb/echo -n'
     54   else
     55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     56     as_echo_n_body='eval
     57       arg=$1;
     58       case $arg in #(
     59       *"$as_nl"*)
     60 	expr "X$arg" : "X\\(.*\\)$as_nl";
     61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     62       esac;
     63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     64     '
     65     export as_echo_n_body
     66     as_echo_n='sh -c $as_echo_n_body as_echo'
     67   fi
     68   export as_echo_body
     69   as_echo='sh -c $as_echo_body as_echo'
     70 fi
     71 
     72 # The user is always right.
     73 if test "${PATH_SEPARATOR+set}" != set; then
     74   PATH_SEPARATOR=:
     75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     77       PATH_SEPARATOR=';'
     78   }
     79 fi
     80 
     81 
     82 # IFS
     83 # We need space, tab and new line, in precisely that order.  Quoting is
     84 # there to prevent editors from complaining about space-tab.
     85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     86 # splitting by setting IFS to empty value.)
     87 IFS=" ""	$as_nl"
     88 
     89 # Find who we are.  Look in the path if we contain no directory separator.
     90 as_myself=
     91 case $0 in #((
     92   *[\\/]* ) as_myself=$0 ;;
     93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94 for as_dir in $PATH
     95 do
     96   IFS=$as_save_IFS
     97   test -z "$as_dir" && as_dir=.
     98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     99   done
    100 IFS=$as_save_IFS
    101 
    102      ;;
    103 esac
    104 # We did not find ourselves, most probably we were run as `sh COMMAND'
    105 # in which case we are not to be found in the path.
    106 if test "x$as_myself" = x; then
    107   as_myself=$0
    108 fi
    109 if test ! -f "$as_myself"; then
    110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   exit 1
    112 fi
    113 
    114 # Unset variables that we do not need and which cause bugs (e.g. in
    115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    116 # suppresses any "Segmentation fault" message there.  '((' could
    117 # trigger a bug in pdksh 5.2.14.
    118 for as_var in BASH_ENV ENV MAIL MAILPATH
    119 do eval test x\${$as_var+set} = xset \
    120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    121 done
    122 PS1='$ '
    123 PS2='> '
    124 PS4='+ '
    125 
    126 # NLS nuisances.
    127 LC_ALL=C
    128 export LC_ALL
    129 LANGUAGE=C
    130 export LANGUAGE
    131 
    132 # CDPATH.
    133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    134 
    135 # Use a proper internal environment variable to ensure we don't fall
    136   # into an infinite loop, continuously re-executing ourselves.
    137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    138     _as_can_reexec=no; export _as_can_reexec;
    139     # We cannot yet assume a decent shell, so we have to provide a
    140 # neutralization value for shells without unset; and this also
    141 # works around shells that cannot unset nonexistent variables.
    142 # Preserve -v and -x to the replacement shell.
    143 BASH_ENV=/dev/null
    144 ENV=/dev/null
    145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    146 case $- in # ((((
    147   *v*x* | *x*v* ) as_opts=-vx ;;
    148   *v* ) as_opts=-v ;;
    149   *x* ) as_opts=-x ;;
    150   * ) as_opts= ;;
    151 esac
    152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    153 # Admittedly, this is quite paranoid, since all the known shells bail
    154 # out after a failed `exec'.
    155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    156 as_fn_exit 255
    157   fi
    158   # We don't want this to propagate to other subprocesses.
    159           { _as_can_reexec=; unset _as_can_reexec;}
    160 if test "x$CONFIG_SHELL" = x; then
    161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    162   emulate sh
    163   NULLCMD=:
    164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    165   # is contrary to our usage.  Disable this feature.
    166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    167   setopt NO_GLOB_SUBST
    168 else
    169   case \`(set -o) 2>/dev/null\` in #(
    170   *posix*) :
    171     set -o posix ;; #(
    172   *) :
    173      ;;
    174 esac
    175 fi
    176 "
    177   as_required="as_fn_return () { (exit \$1); }
    178 as_fn_success () { as_fn_return 0; }
    179 as_fn_failure () { as_fn_return 1; }
    180 as_fn_ret_success () { return 0; }
    181 as_fn_ret_failure () { return 1; }
    182 
    183 exitcode=0
    184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    189 
    190 else
    191   exitcode=1; echo positional parameters were not saved.
    192 fi
    193 test x\$exitcode = x0 || exit 1
    194 test -x / || exit 1"
    195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    199 test \$(( 1 + 1 )) = 2 || exit 1"
    200   if (eval "$as_required") 2>/dev/null; then :
    201   as_have_required=yes
    202 else
    203   as_have_required=no
    204 fi
    205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    206 
    207 else
    208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    209 as_found=false
    210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    211 do
    212   IFS=$as_save_IFS
    213   test -z "$as_dir" && as_dir=.
    214   as_found=:
    215   case $as_dir in #(
    216 	 /*)
    217 	   for as_base in sh bash ksh sh5; do
    218 	     # Try only shells that exist, to save several forks.
    219 	     as_shell=$as_dir/$as_base
    220 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    221 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    222   CONFIG_SHELL=$as_shell as_have_required=yes
    223 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   break 2
    225 fi
    226 fi
    227 	   done;;
    228        esac
    229   as_found=false
    230 done
    231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    232 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    233   CONFIG_SHELL=$SHELL as_have_required=yes
    234 fi; }
    235 IFS=$as_save_IFS
    236 
    237 
    238       if test "x$CONFIG_SHELL" != x; then :
    239   export CONFIG_SHELL
    240              # We cannot yet assume a decent shell, so we have to provide a
    241 # neutralization value for shells without unset; and this also
    242 # works around shells that cannot unset nonexistent variables.
    243 # Preserve -v and -x to the replacement shell.
    244 BASH_ENV=/dev/null
    245 ENV=/dev/null
    246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    247 case $- in # ((((
    248   *v*x* | *x*v* ) as_opts=-vx ;;
    249   *v* ) as_opts=-v ;;
    250   *x* ) as_opts=-x ;;
    251   * ) as_opts= ;;
    252 esac
    253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    254 # Admittedly, this is quite paranoid, since all the known shells bail
    255 # out after a failed `exec'.
    256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    257 exit 255
    258 fi
    259 
    260     if test x$as_have_required = xno; then :
    261   $as_echo "$0: This script requires a shell more modern than all"
    262   $as_echo "$0: the shells that I found on your system."
    263   if test x${ZSH_VERSION+set} = xset ; then
    264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    266   else
    267     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    268 $0: including any error possibly output before this
    269 $0: message. Then install a modern shell, or manually run
    270 $0: the script under such a shell if you do have one."
    271   fi
    272   exit 1
    273 fi
    274 fi
    275 fi
    276 SHELL=${CONFIG_SHELL-/bin/sh}
    277 export SHELL
    278 # Unset more variables known to interfere with behavior of common tools.
    279 CLICOLOR_FORCE= GREP_OPTIONS=
    280 unset CLICOLOR_FORCE GREP_OPTIONS
    281 
    282 ## --------------------- ##
    283 ## M4sh Shell Functions. ##
    284 ## --------------------- ##
    285 # as_fn_unset VAR
    286 # ---------------
    287 # Portably unset VAR.
    288 as_fn_unset ()
    289 {
    290   { eval $1=; unset $1;}
    291 }
    292 as_unset=as_fn_unset
    293 
    294 # as_fn_set_status STATUS
    295 # -----------------------
    296 # Set $? to STATUS, without forking.
    297 as_fn_set_status ()
    298 {
    299   return $1
    300 } # as_fn_set_status
    301 
    302 # as_fn_exit STATUS
    303 # -----------------
    304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    305 as_fn_exit ()
    306 {
    307   set +e
    308   as_fn_set_status $1
    309   exit $1
    310 } # as_fn_exit
    311 
    312 # as_fn_mkdir_p
    313 # -------------
    314 # Create "$as_dir" as a directory, including parents if necessary.
    315 as_fn_mkdir_p ()
    316 {
    317 
    318   case $as_dir in #(
    319   -*) as_dir=./$as_dir;;
    320   esac
    321   test -d "$as_dir" || eval $as_mkdir_p || {
    322     as_dirs=
    323     while :; do
    324       case $as_dir in #(
    325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    326       *) as_qdir=$as_dir;;
    327       esac
    328       as_dirs="'$as_qdir' $as_dirs"
    329       as_dir=`$as_dirname -- "$as_dir" ||
    330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    331 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    332 	 X"$as_dir" : 'X\(//\)$' \| \
    333 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    334 $as_echo X"$as_dir" |
    335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    336 	    s//\1/
    337 	    q
    338 	  }
    339 	  /^X\(\/\/\)[^/].*/{
    340 	    s//\1/
    341 	    q
    342 	  }
    343 	  /^X\(\/\/\)$/{
    344 	    s//\1/
    345 	    q
    346 	  }
    347 	  /^X\(\/\).*/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  s/.*/./; q'`
    352       test -d "$as_dir" && break
    353     done
    354     test -z "$as_dirs" || eval "mkdir $as_dirs"
    355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    356 
    357 
    358 } # as_fn_mkdir_p
    359 
    360 # as_fn_executable_p FILE
    361 # -----------------------
    362 # Test if FILE is an executable regular file.
    363 as_fn_executable_p ()
    364 {
    365   test -f "$1" && test -x "$1"
    366 } # as_fn_executable_p
    367 # as_fn_append VAR VALUE
    368 # ----------------------
    369 # Append the text in VALUE to the end of the definition contained in VAR. Take
    370 # advantage of any shell optimizations that allow amortized linear growth over
    371 # repeated appends, instead of the typical quadratic growth present in naive
    372 # implementations.
    373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    374   eval 'as_fn_append ()
    375   {
    376     eval $1+=\$2
    377   }'
    378 else
    379   as_fn_append ()
    380   {
    381     eval $1=\$$1\$2
    382   }
    383 fi # as_fn_append
    384 
    385 # as_fn_arith ARG...
    386 # ------------------
    387 # Perform arithmetic evaluation on the ARGs, and store the result in the
    388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    389 # must be portable across $(()) and expr.
    390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    391   eval 'as_fn_arith ()
    392   {
    393     as_val=$(( $* ))
    394   }'
    395 else
    396   as_fn_arith ()
    397   {
    398     as_val=`expr "$@" || test $? -eq 1`
    399   }
    400 fi # as_fn_arith
    401 
    402 
    403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    404 # ----------------------------------------
    405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    407 # script with STATUS, using 1 if that was 0.
    408 as_fn_error ()
    409 {
    410   as_status=$1; test $as_status -eq 0 && as_status=1
    411   if test "$4"; then
    412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    414   fi
    415   $as_echo "$as_me: error: $2" >&2
    416   as_fn_exit $as_status
    417 } # as_fn_error
    418 
    419 if expr a : '\(a\)' >/dev/null 2>&1 &&
    420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    421   as_expr=expr
    422 else
    423   as_expr=false
    424 fi
    425 
    426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    427   as_basename=basename
    428 else
    429   as_basename=false
    430 fi
    431 
    432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    433   as_dirname=dirname
    434 else
    435   as_dirname=false
    436 fi
    437 
    438 as_me=`$as_basename -- "$0" ||
    439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    440 	 X"$0" : 'X\(//\)$' \| \
    441 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    442 $as_echo X/"$0" |
    443     sed '/^.*\/\([^/][^/]*\)\/*$/{
    444 	    s//\1/
    445 	    q
    446 	  }
    447 	  /^X\/\(\/\/\)$/{
    448 	    s//\1/
    449 	    q
    450 	  }
    451 	  /^X\/\(\/\).*/{
    452 	    s//\1/
    453 	    q
    454 	  }
    455 	  s/.*/./; q'`
    456 
    457 # Avoid depending upon Character Ranges.
    458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    461 as_cr_digits='0123456789'
    462 as_cr_alnum=$as_cr_Letters$as_cr_digits
    463 
    464 
    465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    470   sed -n '
    471     p
    472     /[$]LINENO/=
    473   ' <$as_myself |
    474     sed '
    475       s/[$]LINENO.*/&-/
    476       t lineno
    477       b
    478       :lineno
    479       N
    480       :loop
    481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    482       t loop
    483       s/-\n.*//
    484     ' >$as_me.lineno &&
    485   chmod +x "$as_me.lineno" ||
    486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    487 
    488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    489   # already done that, so ensure we don't try to do so again and fall
    490   # in an infinite loop.  This has already happened in practice.
    491   _as_can_reexec=no; export _as_can_reexec
    492   # Don't try to exec as it changes $[0], causing all sort of problems
    493   # (the dirname of $[0] is not the place where we might find the
    494   # original and so on.  Autoconf is especially sensitive to this).
    495   . "./$as_me.lineno"
    496   # Exit status is that of the last command.
    497   exit
    498 }
    499 
    500 ECHO_C= ECHO_N= ECHO_T=
    501 case `echo -n x` in #(((((
    502 -n*)
    503   case `echo 'xy\c'` in
    504   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    505   xy)  ECHO_C='\c';;
    506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    507        ECHO_T='	';;
    508   esac;;
    509 *)
    510   ECHO_N='-n';;
    511 esac
    512 
    513 rm -f conf$$ conf$$.exe conf$$.file
    514 if test -d conf$$.dir; then
    515   rm -f conf$$.dir/conf$$.file
    516 else
    517   rm -f conf$$.dir
    518   mkdir conf$$.dir 2>/dev/null
    519 fi
    520 if (echo >conf$$.file) 2>/dev/null; then
    521   if ln -s conf$$.file conf$$ 2>/dev/null; then
    522     as_ln_s='ln -s'
    523     # ... but there are two gotchas:
    524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    526     # In both cases, we have to default to `cp -pR'.
    527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    528       as_ln_s='cp -pR'
    529   elif ln conf$$.file conf$$ 2>/dev/null; then
    530     as_ln_s=ln
    531   else
    532     as_ln_s='cp -pR'
    533   fi
    534 else
    535   as_ln_s='cp -pR'
    536 fi
    537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    538 rmdir conf$$.dir 2>/dev/null
    539 
    540 if mkdir -p . 2>/dev/null; then
    541   as_mkdir_p='mkdir -p "$as_dir"'
    542 else
    543   test -d ./-p && rmdir ./-p
    544   as_mkdir_p=false
    545 fi
    546 
    547 as_test_x='test -x'
    548 as_executable_p=as_fn_executable_p
    549 
    550 # Sed expression to map a string onto a valid CPP name.
    551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    552 
    553 # Sed expression to map a string onto a valid variable name.
    554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    555 
    556 
    557 test -n "$DJDIR" || exec 7<&0 </dev/null
    558 exec 6>&1
    559 
    560 # Name of the host.
    561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    562 # so uname gets run too.
    563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    564 
    565 #
    566 # Initializations.
    567 #
    568 ac_default_prefix=/usr/local
    569 ac_clean_files=
    570 ac_config_libobj_dir=.
    571 LIBOBJS=
    572 cross_compiling=no
    573 subdirs=
    574 MFLAGS=
    575 MAKEFLAGS=
    576 
    577 # Identity of this package.
    578 PACKAGE_NAME=
    579 PACKAGE_TARNAME=
    580 PACKAGE_VERSION=
    581 PACKAGE_STRING=
    582 PACKAGE_BUGREPORT=
    583 PACKAGE_URL=
    584 
    585 ac_unique_file="main.c"
    586 # Factoring default headers for most tests.
    587 ac_includes_default="\
    588 #include <stdio.h>
    589 #ifdef HAVE_SYS_TYPES_H
    590 # include <sys/types.h>
    591 #endif
    592 #ifdef HAVE_SYS_STAT_H
    593 # include <sys/stat.h>
    594 #endif
    595 #ifdef STDC_HEADERS
    596 # include <stdlib.h>
    597 # include <stddef.h>
    598 #else
    599 # ifdef HAVE_STDLIB_H
    600 #  include <stdlib.h>
    601 # endif
    602 #endif
    603 #ifdef HAVE_STRING_H
    604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    605 #  include <memory.h>
    606 # endif
    607 # include <string.h>
    608 #endif
    609 #ifdef HAVE_STRINGS_H
    610 # include <strings.h>
    611 #endif
    612 #ifdef HAVE_INTTYPES_H
    613 # include <inttypes.h>
    614 #endif
    615 #ifdef HAVE_STDINT_H
    616 # include <stdint.h>
    617 #endif
    618 #ifdef HAVE_UNISTD_H
    619 # include <unistd.h>
    620 #endif"
    621 
    622 enable_option_checking=no
    623 ac_header_list=
    624 ac_subst_vars='LTLIBOBJS
    625 LIBOBJS
    626 GCORE_TRANSFORM_NAME
    627 GDB_TRANSFORM_NAME
    628 XSLTPROC
    629 GDB_NM_FILE
    630 LTLIBBABELTRACE
    631 LIBBABELTRACE
    632 HAVE_LIBBABELTRACE
    633 HAVE_NATIVE_GCORE_HOST
    634 NAT_GENERATED_FILES
    635 XM_CLIBS
    636 MH_CFLAGS
    637 LOADLIBES
    638 NAT_CDEPS
    639 NATDEPFILES
    640 NAT_FILE
    641 target_subdir
    642 CONFIG_UNINSTALL
    643 CONFIG_INSTALL
    644 CONFIG_CLEAN
    645 CONFIG_ALL
    646 CONFIG_SRCS
    647 CONFIG_DEPS
    648 CONFIG_OBS
    649 PROFILE_CFLAGS
    650 ENABLE_CFLAGS
    651 SIM_OBS
    652 SIM
    653 XMKMF
    654 GDBTK_SRC_DIR
    655 GDBTK_CFLAGS
    656 GDBTKLIBS
    657 X_LIBS
    658 X_LDFLAGS
    659 X_CFLAGS
    660 TK_XINCLUDES
    661 TK_DEPS
    662 TK_LIBRARY
    663 TK_INCLUDE
    664 TK_STUB_LIB_SPEC
    665 TK_STUB_LIB_FLAG
    666 TK_STUB_LIB_FILE
    667 TK_LIB_SPEC
    668 TK_LIB_FLAG
    669 TK_LIB_FILE
    670 TK_SRC_DIR
    671 TK_BIN_DIR
    672 TK_VERSION
    673 TCL_DEPS
    674 TCL_LIBRARY
    675 TCL_INCLUDE
    676 TCL_STUB_LIB_SPEC
    677 TCL_STUB_LIB_FLAG
    678 TCL_STUB_LIB_FILE
    679 TCL_LIB_SPEC
    680 TCL_LIB_FLAG
    681 TCL_LIB_FILE
    682 TCL_SRC_DIR
    683 TCL_BIN_DIR
    684 TCL_PATCH_LEVEL
    685 TCL_VERSION
    686 WIN32LDAPP
    687 GUI_CFLAGS_X
    688 LIBGUI
    689 LTLIBLZMA
    690 LIBLZMA
    691 HAVE_LIBLZMA
    692 WIN32LIBS
    693 SER_HARDWIRE
    694 WERROR_CFLAGS
    695 WARN_CFLAGS
    696 SYSTEM_GDBINIT
    697 TARGET_SYSTEM_ROOT
    698 CONFIG_LDFLAGS
    699 RDYNAMIC
    700 ALLOCA
    701 LTLIBIPT
    702 LIBIPT
    703 HAVE_LIBIPT
    704 SRCHIGH_CFLAGS
    705 SRCHIGH_LIBS
    706 HAVE_GUILE_FALSE
    707 HAVE_GUILE_TRUE
    708 GUILE_LIBS
    709 GUILE_CPPFLAGS
    710 GUILD_TARGET_FLAG
    711 GUILD
    712 pkg_config_prog_path
    713 HAVE_PYTHON_FALSE
    714 HAVE_PYTHON_TRUE
    715 PYTHON_LIBS
    716 PYTHON_CPPFLAGS
    717 PYTHON_CFLAGS
    718 python_prog_path
    719 LTLIBMPFR
    720 LIBMPFR
    721 HAVE_LIBMPFR
    722 LTLIBEXPAT
    723 LIBEXPAT
    724 HAVE_LIBEXPAT
    725 JIT_READER_DIR
    726 TARGET_PTR
    727 READLINE_TEXI_INCFLAG
    728 READLINE_CFLAGS
    729 READLINE_DEPS
    730 READLINE
    731 LTLIBICONV
    732 LIBICONV
    733 zlibinc
    734 zlibdir
    735 MIG
    736 WINDRES
    737 DLLTOOL
    738 AR
    739 YFLAGS
    740 YACC
    741 RANLIB
    742 LN_S
    743 INSTALL_DATA
    744 INSTALL_SCRIPT
    745 INSTALL_PROGRAM
    746 AWK
    747 REPORT_BUGS_TEXI
    748 REPORT_BUGS_TO
    749 PKGVERSION
    750 CODESIGN_CERT
    751 HAVE_NATIVE_GCORE_TARGET
    752 TARGET_OBS
    753 subdirs
    754 GDB_DATADIR
    755 DEBUGDIR
    756 MAKEINFO_EXTRA_FLAGS
    757 MAKEINFOFLAGS
    758 MAKEINFO
    759 PACKAGE
    760 GNULIB_STDINT_H
    761 CATOBJEXT
    762 GENCAT
    763 INSTOBJEXT
    764 DATADIRNAME
    765 CATALOGS
    766 POSUB
    767 GMSGFMT
    768 XGETTEXT
    769 INCINTL
    770 LIBINTL_DEP
    771 LIBINTL
    772 USE_NLS
    773 CCDEPMODE
    774 DEPDIR
    775 am__leading_dot
    776 CXX_DIALECT
    777 HAVE_CXX11
    778 INSTALL_STRIP_PROGRAM
    779 STRIP
    780 install_sh
    781 target_os
    782 target_vendor
    783 target_cpu
    784 target
    785 host_os
    786 host_vendor
    787 host_cpu
    788 host
    789 build_os
    790 build_vendor
    791 build_cpu
    792 build
    793 EGREP
    794 GREP
    795 CPP
    796 ac_ct_CXX
    797 CXXFLAGS
    798 CXX
    799 OBJEXT
    800 EXEEXT
    801 ac_ct_CC
    802 CPPFLAGS
    803 LDFLAGS
    804 CFLAGS
    805 CC
    806 MAINT
    807 MAINTAINER_MODE_FALSE
    808 MAINTAINER_MODE_TRUE
    809 target_alias
    810 host_alias
    811 build_alias
    812 LIBS
    813 ECHO_T
    814 ECHO_N
    815 ECHO_C
    816 DEFS
    817 mandir
    818 localedir
    819 libdir
    820 psdir
    821 pdfdir
    822 dvidir
    823 htmldir
    824 infodir
    825 docdir
    826 oldincludedir
    827 includedir
    828 localstatedir
    829 sharedstatedir
    830 sysconfdir
    831 datadir
    832 datarootdir
    833 libexecdir
    834 sbindir
    835 bindir
    836 program_transform_name
    837 prefix
    838 exec_prefix
    839 PACKAGE_URL
    840 PACKAGE_BUGREPORT
    841 PACKAGE_STRING
    842 PACKAGE_VERSION
    843 PACKAGE_TARNAME
    844 PACKAGE_NAME
    845 PATH_SEPARATOR
    846 SHELL'
    847 ac_subst_files='nat_makefile_frag'
    848 ac_user_opts='
    849 enable_option_checking
    850 enable_maintainer_mode
    851 enable_plugins
    852 enable_largefile
    853 with_separate_debug_dir
    854 with_gdb_datadir
    855 with_relocated_sources
    856 with_auto_load_dir
    857 with_auto_load_safe_path
    858 enable_targets
    859 enable_64_bit_bfd
    860 enable_gdbmi
    861 enable_tui
    862 enable_gdbtk
    863 with_libunwind_ia64
    864 with_curses
    865 enable_profiling
    866 enable_codesign
    867 with_pkgversion
    868 with_bugurl
    869 with_system_zlib
    870 with_gnu_ld
    871 enable_rpath
    872 with_libiconv_prefix
    873 with_iconv_bin
    874 with_system_readline
    875 with_jit_reader_dir
    876 with_expat
    877 with_libexpat_prefix
    878 with_mpfr
    879 with_libmpfr_prefix
    880 with_python
    881 with_guile
    882 enable_source_highlight
    883 enable_libmcheck
    884 with_intel_pt
    885 with_libipt_prefix
    886 with_included_regex
    887 with_sysroot
    888 with_system_gdbinit
    889 enable_werror
    890 enable_build_warnings
    891 enable_gdb_build_warnings
    892 enable_ubsan
    893 with_lzma
    894 with_liblzma_prefix
    895 with_tcl
    896 with_tk
    897 with_x
    898 enable_sim
    899 enable_gdbserver
    900 with_babeltrace
    901 with_libbabeltrace_prefix
    902 enable_unit_tests
    903 '
    904       ac_precious_vars='build_alias
    905 host_alias
    906 target_alias
    907 CC
    908 CFLAGS
    909 LDFLAGS
    910 LIBS
    911 CPPFLAGS
    912 CXX
    913 CXXFLAGS
    914 CCC
    915 CPP
    916 MAKEINFO
    917 MAKEINFOFLAGS
    918 YACC
    919 YFLAGS
    920 XMKMF'
    921 ac_subdirs_all='testsuite
    922 gdbtk
    923 gdbserver'
    924 
    925 # Initialize some variables set by options.
    926 ac_init_help=
    927 ac_init_version=false
    928 ac_unrecognized_opts=
    929 ac_unrecognized_sep=
    930 # The variables have the same names as the options, with
    931 # dashes changed to underlines.
    932 cache_file=/dev/null
    933 exec_prefix=NONE
    934 no_create=
    935 no_recursion=
    936 prefix=NONE
    937 program_prefix=NONE
    938 program_suffix=NONE
    939 program_transform_name=s,x,x,
    940 silent=
    941 site=
    942 srcdir=
    943 verbose=
    944 x_includes=NONE
    945 x_libraries=NONE
    946 
    947 # Installation directory options.
    948 # These are left unexpanded so users can "make install exec_prefix=/foo"
    949 # and all the variables that are supposed to be based on exec_prefix
    950 # by default will actually change.
    951 # Use braces instead of parens because sh, perl, etc. also accept them.
    952 # (The list follows the same order as the GNU Coding Standards.)
    953 bindir='${exec_prefix}/bin'
    954 sbindir='${exec_prefix}/sbin'
    955 libexecdir='${exec_prefix}/libexec'
    956 datarootdir='${prefix}/share'
    957 datadir='${datarootdir}'
    958 sysconfdir='${prefix}/etc'
    959 sharedstatedir='${prefix}/com'
    960 localstatedir='${prefix}/var'
    961 includedir='${prefix}/include'
    962 oldincludedir='/usr/include'
    963 docdir='${datarootdir}/doc/${PACKAGE}'
    964 infodir='${datarootdir}/info'
    965 htmldir='${docdir}'
    966 dvidir='${docdir}'
    967 pdfdir='${docdir}'
    968 psdir='${docdir}'
    969 libdir='${exec_prefix}/lib'
    970 localedir='${datarootdir}/locale'
    971 mandir='${datarootdir}/man'
    972 
    973 ac_prev=
    974 ac_dashdash=
    975 for ac_option
    976 do
    977   # If the previous option needs an argument, assign it.
    978   if test -n "$ac_prev"; then
    979     eval $ac_prev=\$ac_option
    980     ac_prev=
    981     continue
    982   fi
    983 
    984   case $ac_option in
    985   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    986   *=)   ac_optarg= ;;
    987   *)    ac_optarg=yes ;;
    988   esac
    989 
    990   # Accept the important Cygnus configure options, so we can diagnose typos.
    991 
    992   case $ac_dashdash$ac_option in
    993   --)
    994     ac_dashdash=yes ;;
    995 
    996   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    997     ac_prev=bindir ;;
    998   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    999     bindir=$ac_optarg ;;
   1000 
   1001   -build | --build | --buil | --bui | --bu)
   1002     ac_prev=build_alias ;;
   1003   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1004     build_alias=$ac_optarg ;;
   1005 
   1006   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1007   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1008     ac_prev=cache_file ;;
   1009   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1010   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1011     cache_file=$ac_optarg ;;
   1012 
   1013   --config-cache | -C)
   1014     cache_file=config.cache ;;
   1015 
   1016   -datadir | --datadir | --datadi | --datad)
   1017     ac_prev=datadir ;;
   1018   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1019     datadir=$ac_optarg ;;
   1020 
   1021   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1022   | --dataroo | --dataro | --datar)
   1023     ac_prev=datarootdir ;;
   1024   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1025   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1026     datarootdir=$ac_optarg ;;
   1027 
   1028   -disable-* | --disable-*)
   1029     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1030     # Reject names that are not valid shell variable names.
   1031     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1032       as_fn_error $? "invalid feature name: $ac_useropt"
   1033     ac_useropt_orig=$ac_useropt
   1034     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1035     case $ac_user_opts in
   1036       *"
   1037 "enable_$ac_useropt"
   1038 "*) ;;
   1039       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1040 	 ac_unrecognized_sep=', ';;
   1041     esac
   1042     eval enable_$ac_useropt=no ;;
   1043 
   1044   -docdir | --docdir | --docdi | --doc | --do)
   1045     ac_prev=docdir ;;
   1046   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1047     docdir=$ac_optarg ;;
   1048 
   1049   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1050     ac_prev=dvidir ;;
   1051   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1052     dvidir=$ac_optarg ;;
   1053 
   1054   -enable-* | --enable-*)
   1055     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1056     # Reject names that are not valid shell variable names.
   1057     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1058       as_fn_error $? "invalid feature name: $ac_useropt"
   1059     ac_useropt_orig=$ac_useropt
   1060     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1061     case $ac_user_opts in
   1062       *"
   1063 "enable_$ac_useropt"
   1064 "*) ;;
   1065       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1066 	 ac_unrecognized_sep=', ';;
   1067     esac
   1068     eval enable_$ac_useropt=\$ac_optarg ;;
   1069 
   1070   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1071   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1072   | --exec | --exe | --ex)
   1073     ac_prev=exec_prefix ;;
   1074   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1075   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1076   | --exec=* | --exe=* | --ex=*)
   1077     exec_prefix=$ac_optarg ;;
   1078 
   1079   -gas | --gas | --ga | --g)
   1080     # Obsolete; use --with-gas.
   1081     with_gas=yes ;;
   1082 
   1083   -help | --help | --hel | --he | -h)
   1084     ac_init_help=long ;;
   1085   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1086     ac_init_help=recursive ;;
   1087   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1088     ac_init_help=short ;;
   1089 
   1090   -host | --host | --hos | --ho)
   1091     ac_prev=host_alias ;;
   1092   -host=* | --host=* | --hos=* | --ho=*)
   1093     host_alias=$ac_optarg ;;
   1094 
   1095   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1096     ac_prev=htmldir ;;
   1097   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1098   | --ht=*)
   1099     htmldir=$ac_optarg ;;
   1100 
   1101   -includedir | --includedir | --includedi | --included | --include \
   1102   | --includ | --inclu | --incl | --inc)
   1103     ac_prev=includedir ;;
   1104   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1105   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1106     includedir=$ac_optarg ;;
   1107 
   1108   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1109     ac_prev=infodir ;;
   1110   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1111     infodir=$ac_optarg ;;
   1112 
   1113   -libdir | --libdir | --libdi | --libd)
   1114     ac_prev=libdir ;;
   1115   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1116     libdir=$ac_optarg ;;
   1117 
   1118   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1119   | --libexe | --libex | --libe)
   1120     ac_prev=libexecdir ;;
   1121   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1122   | --libexe=* | --libex=* | --libe=*)
   1123     libexecdir=$ac_optarg ;;
   1124 
   1125   -localedir | --localedir | --localedi | --localed | --locale)
   1126     ac_prev=localedir ;;
   1127   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1128     localedir=$ac_optarg ;;
   1129 
   1130   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1131   | --localstate | --localstat | --localsta | --localst | --locals)
   1132     ac_prev=localstatedir ;;
   1133   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1134   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1135     localstatedir=$ac_optarg ;;
   1136 
   1137   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1138     ac_prev=mandir ;;
   1139   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1140     mandir=$ac_optarg ;;
   1141 
   1142   -nfp | --nfp | --nf)
   1143     # Obsolete; use --without-fp.
   1144     with_fp=no ;;
   1145 
   1146   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1147   | --no-cr | --no-c | -n)
   1148     no_create=yes ;;
   1149 
   1150   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1151   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1152     no_recursion=yes ;;
   1153 
   1154   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1155   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1156   | --oldin | --oldi | --old | --ol | --o)
   1157     ac_prev=oldincludedir ;;
   1158   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1159   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1160   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1161     oldincludedir=$ac_optarg ;;
   1162 
   1163   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1164     ac_prev=prefix ;;
   1165   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1166     prefix=$ac_optarg ;;
   1167 
   1168   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1169   | --program-pre | --program-pr | --program-p)
   1170     ac_prev=program_prefix ;;
   1171   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1172   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1173     program_prefix=$ac_optarg ;;
   1174 
   1175   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1176   | --program-suf | --program-su | --program-s)
   1177     ac_prev=program_suffix ;;
   1178   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1179   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1180     program_suffix=$ac_optarg ;;
   1181 
   1182   -program-transform-name | --program-transform-name \
   1183   | --program-transform-nam | --program-transform-na \
   1184   | --program-transform-n | --program-transform- \
   1185   | --program-transform | --program-transfor \
   1186   | --program-transfo | --program-transf \
   1187   | --program-trans | --program-tran \
   1188   | --progr-tra | --program-tr | --program-t)
   1189     ac_prev=program_transform_name ;;
   1190   -program-transform-name=* | --program-transform-name=* \
   1191   | --program-transform-nam=* | --program-transform-na=* \
   1192   | --program-transform-n=* | --program-transform-=* \
   1193   | --program-transform=* | --program-transfor=* \
   1194   | --program-transfo=* | --program-transf=* \
   1195   | --program-trans=* | --program-tran=* \
   1196   | --progr-tra=* | --program-tr=* | --program-t=*)
   1197     program_transform_name=$ac_optarg ;;
   1198 
   1199   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1200     ac_prev=pdfdir ;;
   1201   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1202     pdfdir=$ac_optarg ;;
   1203 
   1204   -psdir | --psdir | --psdi | --psd | --ps)
   1205     ac_prev=psdir ;;
   1206   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1207     psdir=$ac_optarg ;;
   1208 
   1209   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1210   | -silent | --silent | --silen | --sile | --sil)
   1211     silent=yes ;;
   1212 
   1213   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1214     ac_prev=sbindir ;;
   1215   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1216   | --sbi=* | --sb=*)
   1217     sbindir=$ac_optarg ;;
   1218 
   1219   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1220   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1221   | --sharedst | --shareds | --shared | --share | --shar \
   1222   | --sha | --sh)
   1223     ac_prev=sharedstatedir ;;
   1224   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1225   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1226   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1227   | --sha=* | --sh=*)
   1228     sharedstatedir=$ac_optarg ;;
   1229 
   1230   -site | --site | --sit)
   1231     ac_prev=site ;;
   1232   -site=* | --site=* | --sit=*)
   1233     site=$ac_optarg ;;
   1234 
   1235   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1236     ac_prev=srcdir ;;
   1237   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1238     srcdir=$ac_optarg ;;
   1239 
   1240   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1241   | --syscon | --sysco | --sysc | --sys | --sy)
   1242     ac_prev=sysconfdir ;;
   1243   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1244   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1245     sysconfdir=$ac_optarg ;;
   1246 
   1247   -target | --target | --targe | --targ | --tar | --ta | --t)
   1248     ac_prev=target_alias ;;
   1249   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1250     target_alias=$ac_optarg ;;
   1251 
   1252   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1253     verbose=yes ;;
   1254 
   1255   -version | --version | --versio | --versi | --vers | -V)
   1256     ac_init_version=: ;;
   1257 
   1258   -with-* | --with-*)
   1259     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1260     # Reject names that are not valid shell variable names.
   1261     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1262       as_fn_error $? "invalid package name: $ac_useropt"
   1263     ac_useropt_orig=$ac_useropt
   1264     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1265     case $ac_user_opts in
   1266       *"
   1267 "with_$ac_useropt"
   1268 "*) ;;
   1269       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1270 	 ac_unrecognized_sep=', ';;
   1271     esac
   1272     eval with_$ac_useropt=\$ac_optarg ;;
   1273 
   1274   -without-* | --without-*)
   1275     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1276     # Reject names that are not valid shell variable names.
   1277     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1278       as_fn_error $? "invalid package name: $ac_useropt"
   1279     ac_useropt_orig=$ac_useropt
   1280     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1281     case $ac_user_opts in
   1282       *"
   1283 "with_$ac_useropt"
   1284 "*) ;;
   1285       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1286 	 ac_unrecognized_sep=', ';;
   1287     esac
   1288     eval with_$ac_useropt=no ;;
   1289 
   1290   --x)
   1291     # Obsolete; use --with-x.
   1292     with_x=yes ;;
   1293 
   1294   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1295   | --x-incl | --x-inc | --x-in | --x-i)
   1296     ac_prev=x_includes ;;
   1297   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1298   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1299     x_includes=$ac_optarg ;;
   1300 
   1301   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1302   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1303     ac_prev=x_libraries ;;
   1304   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1305   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1306     x_libraries=$ac_optarg ;;
   1307 
   1308   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1309 Try \`$0 --help' for more information"
   1310     ;;
   1311 
   1312   *=*)
   1313     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1314     # Reject names that are not valid shell variable names.
   1315     case $ac_envvar in #(
   1316       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1317       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1318     esac
   1319     eval $ac_envvar=\$ac_optarg
   1320     export $ac_envvar ;;
   1321 
   1322   *)
   1323     # FIXME: should be removed in autoconf 3.0.
   1324     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1325     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1326       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1327     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1328     ;;
   1329 
   1330   esac
   1331 done
   1332 
   1333 if test -n "$ac_prev"; then
   1334   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1335   as_fn_error $? "missing argument to $ac_option"
   1336 fi
   1337 
   1338 if test -n "$ac_unrecognized_opts"; then
   1339   case $enable_option_checking in
   1340     no) ;;
   1341     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1342     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1343   esac
   1344 fi
   1345 
   1346 # Check all directory arguments for consistency.
   1347 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1348 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1349 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1350 		libdir localedir mandir
   1351 do
   1352   eval ac_val=\$$ac_var
   1353   # Remove trailing slashes.
   1354   case $ac_val in
   1355     */ )
   1356       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1357       eval $ac_var=\$ac_val;;
   1358   esac
   1359   # Be sure to have absolute directory names.
   1360   case $ac_val in
   1361     [\\/$]* | ?:[\\/]* )  continue;;
   1362     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1363   esac
   1364   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1365 done
   1366 
   1367 # There might be people who depend on the old broken behavior: `$host'
   1368 # used to hold the argument of --host etc.
   1369 # FIXME: To remove some day.
   1370 build=$build_alias
   1371 host=$host_alias
   1372 target=$target_alias
   1373 
   1374 # FIXME: To remove some day.
   1375 if test "x$host_alias" != x; then
   1376   if test "x$build_alias" = x; then
   1377     cross_compiling=maybe
   1378   elif test "x$build_alias" != "x$host_alias"; then
   1379     cross_compiling=yes
   1380   fi
   1381 fi
   1382 
   1383 ac_tool_prefix=
   1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1385 
   1386 test "$silent" = yes && exec 6>/dev/null
   1387 
   1388 
   1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1390 ac_ls_di=`ls -di .` &&
   1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1392   as_fn_error $? "working directory cannot be determined"
   1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1394   as_fn_error $? "pwd does not report name of working directory"
   1395 
   1396 
   1397 # Find the source files, if location was not specified.
   1398 if test -z "$srcdir"; then
   1399   ac_srcdir_defaulted=yes
   1400   # Try the directory containing this script, then the parent directory.
   1401   ac_confdir=`$as_dirname -- "$as_myself" ||
   1402 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1403 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1404 	 X"$as_myself" : 'X\(//\)$' \| \
   1405 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1406 $as_echo X"$as_myself" |
   1407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1408 	    s//\1/
   1409 	    q
   1410 	  }
   1411 	  /^X\(\/\/\)[^/].*/{
   1412 	    s//\1/
   1413 	    q
   1414 	  }
   1415 	  /^X\(\/\/\)$/{
   1416 	    s//\1/
   1417 	    q
   1418 	  }
   1419 	  /^X\(\/\).*/{
   1420 	    s//\1/
   1421 	    q
   1422 	  }
   1423 	  s/.*/./; q'`
   1424   srcdir=$ac_confdir
   1425   if test ! -r "$srcdir/$ac_unique_file"; then
   1426     srcdir=..
   1427   fi
   1428 else
   1429   ac_srcdir_defaulted=no
   1430 fi
   1431 if test ! -r "$srcdir/$ac_unique_file"; then
   1432   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1433   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1434 fi
   1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1436 ac_abs_confdir=`(
   1437 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1438 	pwd)`
   1439 # When building in place, set srcdir=.
   1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1441   srcdir=.
   1442 fi
   1443 # Remove unnecessary trailing slashes from srcdir.
   1444 # Double slashes in file names in object file debugging info
   1445 # mess up M-x gdb in Emacs.
   1446 case $srcdir in
   1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1448 esac
   1449 for ac_var in $ac_precious_vars; do
   1450   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1451   eval ac_env_${ac_var}_value=\$${ac_var}
   1452   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1453   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1454 done
   1455 
   1456 #
   1457 # Report the --help message.
   1458 #
   1459 if test "$ac_init_help" = "long"; then
   1460   # Omit some internal or obsolete options to make the list less imposing.
   1461   # This message is too long to be a string in the A/UX 3.1 sh.
   1462   cat <<_ACEOF
   1463 \`configure' configures this package to adapt to many kinds of systems.
   1464 
   1465 Usage: $0 [OPTION]... [VAR=VALUE]...
   1466 
   1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1468 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1469 
   1470 Defaults for the options are specified in brackets.
   1471 
   1472 Configuration:
   1473   -h, --help              display this help and exit
   1474       --help=short        display options specific to this package
   1475       --help=recursive    display the short help of all the included packages
   1476   -V, --version           display version information and exit
   1477   -q, --quiet, --silent   do not print \`checking ...' messages
   1478       --cache-file=FILE   cache test results in FILE [disabled]
   1479   -C, --config-cache      alias for \`--cache-file=config.cache'
   1480   -n, --no-create         do not create output files
   1481       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1482 
   1483 Installation directories:
   1484   --prefix=PREFIX         install architecture-independent files in PREFIX
   1485                           [$ac_default_prefix]
   1486   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1487                           [PREFIX]
   1488 
   1489 By default, \`make install' will install all the files in
   1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1492 for instance \`--prefix=\$HOME'.
   1493 
   1494 For better control, use the options below.
   1495 
   1496 Fine tuning of the installation directories:
   1497   --bindir=DIR            user executables [EPREFIX/bin]
   1498   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1499   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1500   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1501   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1502   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1503   --libdir=DIR            object code libraries [EPREFIX/lib]
   1504   --includedir=DIR        C header files [PREFIX/include]
   1505   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1506   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1507   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1508   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1509   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1510   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1511   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1512   --htmldir=DIR           html documentation [DOCDIR]
   1513   --dvidir=DIR            dvi documentation [DOCDIR]
   1514   --pdfdir=DIR            pdf documentation [DOCDIR]
   1515   --psdir=DIR             ps documentation [DOCDIR]
   1516 _ACEOF
   1517 
   1518   cat <<\_ACEOF
   1519 
   1520 Program names:
   1521   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1522   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1523   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1524 
   1525 X features:
   1526   --x-includes=DIR    X include files are in DIR
   1527   --x-libraries=DIR   X library files are in DIR
   1528 
   1529 System types:
   1530   --build=BUILD     configure for building on BUILD [guessed]
   1531   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1532   --target=TARGET   configure for building compilers for TARGET [HOST]
   1533 _ACEOF
   1534 fi
   1535 
   1536 if test -n "$ac_init_help"; then
   1537 
   1538   cat <<\_ACEOF
   1539 
   1540 Optional Features:
   1541   --disable-option-checking  ignore unrecognized --enable/--with options
   1542   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1543   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1544   --enable-maintainer-mode
   1545                           enable make rules and dependencies not useful (and
   1546                           sometimes confusing) to the casual installer
   1547   --enable-plugins        Enable support for plugins
   1548   --disable-largefile     omit support for large files
   1549   --enable-targets=TARGETS
   1550                           alternative target configurations
   1551   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
   1552   --disable-gdbmi         disable machine-interface (MI)
   1553   --enable-tui            enable full-screen terminal user interface (TUI)
   1554   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
   1555   --enable-profiling      enable profiling of GDB
   1556   --enable-codesign=CERT  sign gdb with 'codesign -s CERT'
   1557   --disable-rpath         do not hardcode runtime library paths
   1558   --enable-source-highlight
   1559                           enable source-highlight for source listings
   1560   --enable-libmcheck      Try linking with -lmcheck if available
   1561   --enable-werror         treat compile warnings as errors
   1562   --enable-build-warnings enable build-time compiler warnings if gcc is used
   1563   --enable-gdb-build-warnings
   1564                           enable GDB specific build-time compiler warnings if
   1565                           gcc is used
   1566   --enable-ubsan          enable undefined behavior sanitizer (auto/yes/no)
   1567   --enable-sim            link gdb with simulator
   1568   --enable-gdbserver      automatically build gdbserver (yes/no/auto, default
   1569                           is auto)
   1570   --enable-unit-tests     Enable the inclusion of unit tests when compiling
   1571                           GDB
   1572 
   1573 Optional Packages:
   1574   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1575   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1576   --with-separate-debug-dir=PATH
   1577                           look for global separate debug info in this path
   1578                           [LIBDIR/debug]
   1579   --with-gdb-datadir=PATH look for global separate data files in this path
   1580                           [DATADIR/gdb]
   1581   --with-relocated-sources=PATH
   1582                           automatically relocate this path for source files
   1583   --with-auto-load-dir=PATH
   1584                           directories from which to load auto-loaded scripts
   1585                           [$debugdir:$datadir/auto-load]
   1586   --with-auto-load-safe-path=PATH
   1587                           directories safe to hold auto-loaded files
   1588                           [--with-auto-load-dir]
   1589   --without-auto-load-safe-path
   1590                           do not restrict auto-loaded files locations
   1591   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
   1592   --with-curses           use the curses library instead of the termcap
   1593                           library
   1594   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
   1595   --with-bugurl=URL       Direct users to URL to report a bug
   1596   --with-system-zlib      use installed libz
   1597   --with-gnu-ld           assume the C compiler uses GNU ld default=no
   1598   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
   1599   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
   1600   --with-iconv-bin=PATH   specify where to find the iconv program
   1601   --with-system-readline  use installed readline library
   1602   --with-jit-reader-dir=PATH
   1603                           directory to load the JIT readers from
   1604   --with-expat            include expat support (auto/yes/no)
   1605   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
   1606   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
   1607   --with-mpfr             include MPFR support (auto/yes/no)
   1608   --with-libmpfr-prefix[=DIR]  search for libmpfr in DIR/include and DIR/lib
   1609   --without-libmpfr-prefix     don't search for libmpfr in includedir and libdir
   1610   --with-python[=PYTHON]  include python support
   1611                           (auto/yes/no/<python-program>)
   1612   --with-guile[=GUILE]    include guile support
   1613                           (auto/yes/no/<guile-version>/<pkg-config-program>)
   1614   --with-intel-pt         include Intel Processor Trace support (auto/yes/no)
   1615   --with-libipt-prefix[=DIR]  search for libipt in DIR/include and DIR/lib
   1616   --without-libipt-prefix     don't search for libipt in includedir and libdir
   1617   --without-included-regex
   1618                           don't use included regex; this is the default on
   1619                           systems with version 2 of the GNU C library (use
   1620                           with caution on other system)
   1621   --with-sysroot[=DIR]    search for usr/lib et al within DIR
   1622   --with-system-gdbinit=PATH
   1623                           automatically load a system-wide gdbinit file
   1624   --with-lzma             support lzma compression (auto/yes/no)
   1625   --with-liblzma-prefix[=DIR]  search for liblzma in DIR/include and DIR/lib
   1626   --without-liblzma-prefix     don't search for liblzma in includedir and libdir
   1627   --with-tcl              directory containing tcl configuration (tclConfig.sh)
   1628   --with-tk               directory containing tk configuration (tkConfig.sh)
   1629   --with-x                use the X Window System
   1630   --with-babeltrace       include babeltrace support (auto/yes/no)
   1631   --with-libbabeltrace-prefix[=DIR]  search for libbabeltrace in DIR/include and DIR/lib
   1632   --without-libbabeltrace-prefix     don't search for libbabeltrace in includedir and libdir
   1633 
   1634 Some influential environment variables:
   1635   CC          C compiler command
   1636   CFLAGS      C compiler flags
   1637   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1638               nonstandard directory <lib dir>
   1639   LIBS        libraries to pass to the linker, e.g. -l<library>
   1640   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1641               you have headers in a nonstandard directory <include dir>
   1642   CXX         C++ compiler command
   1643   CXXFLAGS    C++ compiler flags
   1644   CPP         C preprocessor
   1645   MAKEINFO    Parent configure detects if it is of sufficient version.
   1646   MAKEINFOFLAGS
   1647               Parameters for MAKEINFO.
   1648   YACC        The `Yet Another Compiler Compiler' implementation to use.
   1649               Defaults to the first program found out of: `bison -y', `byacc',
   1650               `yacc'.
   1651   YFLAGS      The list of arguments that will be passed by default to $YACC.
   1652               This script will default YFLAGS to the empty string to avoid a
   1653               default value of `-d' given by some make applications.
   1654   XMKMF       Path to xmkmf, Makefile generator for X Window System
   1655 
   1656 Use these variables to override the choices made by `configure' or to help
   1657 it to find libraries and programs with nonstandard names/locations.
   1658 
   1659 Report bugs to the package provider.
   1660 _ACEOF
   1661 ac_status=$?
   1662 fi
   1663 
   1664 if test "$ac_init_help" = "recursive"; then
   1665   # If there are subdirs, report their specific --help.
   1666   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1667     test -d "$ac_dir" ||
   1668       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1669       continue
   1670     ac_builddir=.
   1671 
   1672 case "$ac_dir" in
   1673 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1674 *)
   1675   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1676   # A ".." for each directory in $ac_dir_suffix.
   1677   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1678   case $ac_top_builddir_sub in
   1679   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1680   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1681   esac ;;
   1682 esac
   1683 ac_abs_top_builddir=$ac_pwd
   1684 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1685 # for backward compatibility:
   1686 ac_top_builddir=$ac_top_build_prefix
   1687 
   1688 case $srcdir in
   1689   .)  # We are building in place.
   1690     ac_srcdir=.
   1691     ac_top_srcdir=$ac_top_builddir_sub
   1692     ac_abs_top_srcdir=$ac_pwd ;;
   1693   [\\/]* | ?:[\\/]* )  # Absolute name.
   1694     ac_srcdir=$srcdir$ac_dir_suffix;
   1695     ac_top_srcdir=$srcdir
   1696     ac_abs_top_srcdir=$srcdir ;;
   1697   *) # Relative name.
   1698     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1699     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1700     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1701 esac
   1702 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1703 
   1704     cd "$ac_dir" || { ac_status=$?; continue; }
   1705     # Check for guested configure.
   1706     if test -f "$ac_srcdir/configure.gnu"; then
   1707       echo &&
   1708       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1709     elif test -f "$ac_srcdir/configure"; then
   1710       echo &&
   1711       $SHELL "$ac_srcdir/configure" --help=recursive
   1712     else
   1713       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1714     fi || ac_status=$?
   1715     cd "$ac_pwd" || { ac_status=$?; break; }
   1716   done
   1717 fi
   1718 
   1719 test -n "$ac_init_help" && exit $ac_status
   1720 if $ac_init_version; then
   1721   cat <<\_ACEOF
   1722 configure
   1723 generated by GNU Autoconf 2.69
   1724 
   1725 Copyright (C) 2012 Free Software Foundation, Inc.
   1726 This configure script is free software; the Free Software Foundation
   1727 gives unlimited permission to copy, distribute and modify it.
   1728 _ACEOF
   1729   exit
   1730 fi
   1731 
   1732 ## ------------------------ ##
   1733 ## Autoconf initialization. ##
   1734 ## ------------------------ ##
   1735 
   1736 # ac_fn_c_try_compile LINENO
   1737 # --------------------------
   1738 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1739 ac_fn_c_try_compile ()
   1740 {
   1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1742   rm -f conftest.$ac_objext
   1743   if { { ac_try="$ac_compile"
   1744 case "(($ac_try" in
   1745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1746   *) ac_try_echo=$ac_try;;
   1747 esac
   1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1749 $as_echo "$ac_try_echo"; } >&5
   1750   (eval "$ac_compile") 2>conftest.err
   1751   ac_status=$?
   1752   if test -s conftest.err; then
   1753     grep -v '^ *+' conftest.err >conftest.er1
   1754     cat conftest.er1 >&5
   1755     mv -f conftest.er1 conftest.err
   1756   fi
   1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1758   test $ac_status = 0; } && {
   1759 	 test -z "$ac_c_werror_flag" ||
   1760 	 test ! -s conftest.err
   1761        } && test -s conftest.$ac_objext; then :
   1762   ac_retval=0
   1763 else
   1764   $as_echo "$as_me: failed program was:" >&5
   1765 sed 's/^/| /' conftest.$ac_ext >&5
   1766 
   1767 	ac_retval=1
   1768 fi
   1769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1770   as_fn_set_status $ac_retval
   1771 
   1772 } # ac_fn_c_try_compile
   1773 
   1774 # ac_fn_cxx_try_compile LINENO
   1775 # ----------------------------
   1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1777 ac_fn_cxx_try_compile ()
   1778 {
   1779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1780   rm -f conftest.$ac_objext
   1781   if { { ac_try="$ac_compile"
   1782 case "(($ac_try" in
   1783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1784   *) ac_try_echo=$ac_try;;
   1785 esac
   1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1787 $as_echo "$ac_try_echo"; } >&5
   1788   (eval "$ac_compile") 2>conftest.err
   1789   ac_status=$?
   1790   if test -s conftest.err; then
   1791     grep -v '^ *+' conftest.err >conftest.er1
   1792     cat conftest.er1 >&5
   1793     mv -f conftest.er1 conftest.err
   1794   fi
   1795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1796   test $ac_status = 0; } && {
   1797 	 test -z "$ac_cxx_werror_flag" ||
   1798 	 test ! -s conftest.err
   1799        } && test -s conftest.$ac_objext; then :
   1800   ac_retval=0
   1801 else
   1802   $as_echo "$as_me: failed program was:" >&5
   1803 sed 's/^/| /' conftest.$ac_ext >&5
   1804 
   1805 	ac_retval=1
   1806 fi
   1807   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1808   as_fn_set_status $ac_retval
   1809 
   1810 } # ac_fn_cxx_try_compile
   1811 
   1812 # ac_fn_c_try_cpp LINENO
   1813 # ----------------------
   1814 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1815 ac_fn_c_try_cpp ()
   1816 {
   1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1818   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1819 case "(($ac_try" in
   1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1821   *) ac_try_echo=$ac_try;;
   1822 esac
   1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1824 $as_echo "$ac_try_echo"; } >&5
   1825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1826   ac_status=$?
   1827   if test -s conftest.err; then
   1828     grep -v '^ *+' conftest.err >conftest.er1
   1829     cat conftest.er1 >&5
   1830     mv -f conftest.er1 conftest.err
   1831   fi
   1832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1833   test $ac_status = 0; } > conftest.i && {
   1834 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1835 	 test ! -s conftest.err
   1836        }; then :
   1837   ac_retval=0
   1838 else
   1839   $as_echo "$as_me: failed program was:" >&5
   1840 sed 's/^/| /' conftest.$ac_ext >&5
   1841 
   1842     ac_retval=1
   1843 fi
   1844   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1845   as_fn_set_status $ac_retval
   1846 
   1847 } # ac_fn_c_try_cpp
   1848 
   1849 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1850 # -------------------------------------------------------
   1851 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1852 # the include files in INCLUDES and setting the cache variable VAR
   1853 # accordingly.
   1854 ac_fn_c_check_header_mongrel ()
   1855 {
   1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1857   if eval \${$3+:} false; then :
   1858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1859 $as_echo_n "checking for $2... " >&6; }
   1860 if eval \${$3+:} false; then :
   1861   $as_echo_n "(cached) " >&6
   1862 fi
   1863 eval ac_res=\$$3
   1864 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1865 $as_echo "$ac_res" >&6; }
   1866 else
   1867   # Is the header compilable?
   1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1869 $as_echo_n "checking $2 usability... " >&6; }
   1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1871 /* end confdefs.h.  */
   1872 $4
   1873 #include <$2>
   1874 _ACEOF
   1875 if ac_fn_c_try_compile "$LINENO"; then :
   1876   ac_header_compiler=yes
   1877 else
   1878   ac_header_compiler=no
   1879 fi
   1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1882 $as_echo "$ac_header_compiler" >&6; }
   1883 
   1884 # Is the header present?
   1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1886 $as_echo_n "checking $2 presence... " >&6; }
   1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1888 /* end confdefs.h.  */
   1889 #include <$2>
   1890 _ACEOF
   1891 if ac_fn_c_try_cpp "$LINENO"; then :
   1892   ac_header_preproc=yes
   1893 else
   1894   ac_header_preproc=no
   1895 fi
   1896 rm -f conftest.err conftest.i conftest.$ac_ext
   1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1898 $as_echo "$ac_header_preproc" >&6; }
   1899 
   1900 # So?  What about this header?
   1901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1902   yes:no: )
   1903     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1904 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1905     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1907     ;;
   1908   no:yes:* )
   1909     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1910 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1912 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1914 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1915     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1916 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1917     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1919     ;;
   1920 esac
   1921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1922 $as_echo_n "checking for $2... " >&6; }
   1923 if eval \${$3+:} false; then :
   1924   $as_echo_n "(cached) " >&6
   1925 else
   1926   eval "$3=\$ac_header_compiler"
   1927 fi
   1928 eval ac_res=\$$3
   1929 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1930 $as_echo "$ac_res" >&6; }
   1931 fi
   1932   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1933 
   1934 } # ac_fn_c_check_header_mongrel
   1935 
   1936 # ac_fn_c_try_run LINENO
   1937 # ----------------------
   1938 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1939 # that executables *can* be run.
   1940 ac_fn_c_try_run ()
   1941 {
   1942   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1943   if { { ac_try="$ac_link"
   1944 case "(($ac_try" in
   1945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1946   *) ac_try_echo=$ac_try;;
   1947 esac
   1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1949 $as_echo "$ac_try_echo"; } >&5
   1950   (eval "$ac_link") 2>&5
   1951   ac_status=$?
   1952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1953   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1954   { { case "(($ac_try" in
   1955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1956   *) ac_try_echo=$ac_try;;
   1957 esac
   1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1959 $as_echo "$ac_try_echo"; } >&5
   1960   (eval "$ac_try") 2>&5
   1961   ac_status=$?
   1962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1963   test $ac_status = 0; }; }; then :
   1964   ac_retval=0
   1965 else
   1966   $as_echo "$as_me: program exited with status $ac_status" >&5
   1967        $as_echo "$as_me: failed program was:" >&5
   1968 sed 's/^/| /' conftest.$ac_ext >&5
   1969 
   1970        ac_retval=$ac_status
   1971 fi
   1972   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1974   as_fn_set_status $ac_retval
   1975 
   1976 } # ac_fn_c_try_run
   1977 
   1978 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1979 # -------------------------------------------------------
   1980 # Tests whether HEADER exists and can be compiled using the include files in
   1981 # INCLUDES, setting the cache variable VAR accordingly.
   1982 ac_fn_c_check_header_compile ()
   1983 {
   1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1986 $as_echo_n "checking for $2... " >&6; }
   1987 if eval \${$3+:} false; then :
   1988   $as_echo_n "(cached) " >&6
   1989 else
   1990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1991 /* end confdefs.h.  */
   1992 $4
   1993 #include <$2>
   1994 _ACEOF
   1995 if ac_fn_c_try_compile "$LINENO"; then :
   1996   eval "$3=yes"
   1997 else
   1998   eval "$3=no"
   1999 fi
   2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2001 fi
   2002 eval ac_res=\$$3
   2003 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2004 $as_echo "$ac_res" >&6; }
   2005   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2006 
   2007 } # ac_fn_c_check_header_compile
   2008 
   2009 # ac_fn_c_try_link LINENO
   2010 # -----------------------
   2011 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2012 ac_fn_c_try_link ()
   2013 {
   2014   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2015   rm -f conftest.$ac_objext conftest$ac_exeext
   2016   if { { ac_try="$ac_link"
   2017 case "(($ac_try" in
   2018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2019   *) ac_try_echo=$ac_try;;
   2020 esac
   2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2022 $as_echo "$ac_try_echo"; } >&5
   2023   (eval "$ac_link") 2>conftest.err
   2024   ac_status=$?
   2025   if test -s conftest.err; then
   2026     grep -v '^ *+' conftest.err >conftest.er1
   2027     cat conftest.er1 >&5
   2028     mv -f conftest.er1 conftest.err
   2029   fi
   2030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2031   test $ac_status = 0; } && {
   2032 	 test -z "$ac_c_werror_flag" ||
   2033 	 test ! -s conftest.err
   2034        } && test -s conftest$ac_exeext && {
   2035 	 test "$cross_compiling" = yes ||
   2036 	 test -x conftest$ac_exeext
   2037        }; then :
   2038   ac_retval=0
   2039 else
   2040   $as_echo "$as_me: failed program was:" >&5
   2041 sed 's/^/| /' conftest.$ac_ext >&5
   2042 
   2043 	ac_retval=1
   2044 fi
   2045   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2046   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2047   # interfere with the next link command; also delete a directory that is
   2048   # left behind by Apple's compiler.  We do this before executing the actions.
   2049   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2050   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2051   as_fn_set_status $ac_retval
   2052 
   2053 } # ac_fn_c_try_link
   2054 
   2055 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2056 # --------------------------------------------
   2057 # Tries to find the compile-time value of EXPR in a program that includes
   2058 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2059 # computed
   2060 ac_fn_c_compute_int ()
   2061 {
   2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2063   if test "$cross_compiling" = yes; then
   2064     # Depending upon the size, compute the lo and hi bounds.
   2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2066 /* end confdefs.h.  */
   2067 $4
   2068 int
   2069 main ()
   2070 {
   2071 static int test_array [1 - 2 * !(($2) >= 0)];
   2072 test_array [0] = 0;
   2073 return test_array [0];
   2074 
   2075   ;
   2076   return 0;
   2077 }
   2078 _ACEOF
   2079 if ac_fn_c_try_compile "$LINENO"; then :
   2080   ac_lo=0 ac_mid=0
   2081   while :; do
   2082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2083 /* end confdefs.h.  */
   2084 $4
   2085 int
   2086 main ()
   2087 {
   2088 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2089 test_array [0] = 0;
   2090 return test_array [0];
   2091 
   2092   ;
   2093   return 0;
   2094 }
   2095 _ACEOF
   2096 if ac_fn_c_try_compile "$LINENO"; then :
   2097   ac_hi=$ac_mid; break
   2098 else
   2099   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2100 			if test $ac_lo -le $ac_mid; then
   2101 			  ac_lo= ac_hi=
   2102 			  break
   2103 			fi
   2104 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2105 fi
   2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2107   done
   2108 else
   2109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2110 /* end confdefs.h.  */
   2111 $4
   2112 int
   2113 main ()
   2114 {
   2115 static int test_array [1 - 2 * !(($2) < 0)];
   2116 test_array [0] = 0;
   2117 return test_array [0];
   2118 
   2119   ;
   2120   return 0;
   2121 }
   2122 _ACEOF
   2123 if ac_fn_c_try_compile "$LINENO"; then :
   2124   ac_hi=-1 ac_mid=-1
   2125   while :; do
   2126     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2127 /* end confdefs.h.  */
   2128 $4
   2129 int
   2130 main ()
   2131 {
   2132 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2133 test_array [0] = 0;
   2134 return test_array [0];
   2135 
   2136   ;
   2137   return 0;
   2138 }
   2139 _ACEOF
   2140 if ac_fn_c_try_compile "$LINENO"; then :
   2141   ac_lo=$ac_mid; break
   2142 else
   2143   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2144 			if test $ac_mid -le $ac_hi; then
   2145 			  ac_lo= ac_hi=
   2146 			  break
   2147 			fi
   2148 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2149 fi
   2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2151   done
   2152 else
   2153   ac_lo= ac_hi=
   2154 fi
   2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2156 fi
   2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2158 # Binary search between lo and hi bounds.
   2159 while test "x$ac_lo" != "x$ac_hi"; do
   2160   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2162 /* end confdefs.h.  */
   2163 $4
   2164 int
   2165 main ()
   2166 {
   2167 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2168 test_array [0] = 0;
   2169 return test_array [0];
   2170 
   2171   ;
   2172   return 0;
   2173 }
   2174 _ACEOF
   2175 if ac_fn_c_try_compile "$LINENO"; then :
   2176   ac_hi=$ac_mid
   2177 else
   2178   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2179 fi
   2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2181 done
   2182 case $ac_lo in #((
   2183 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2184 '') ac_retval=1 ;;
   2185 esac
   2186   else
   2187     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2188 /* end confdefs.h.  */
   2189 $4
   2190 static long int longval () { return $2; }
   2191 static unsigned long int ulongval () { return $2; }
   2192 #include <stdio.h>
   2193 #include <stdlib.h>
   2194 int
   2195 main ()
   2196 {
   2197 
   2198   FILE *f = fopen ("conftest.val", "w");
   2199   if (! f)
   2200     return 1;
   2201   if (($2) < 0)
   2202     {
   2203       long int i = longval ();
   2204       if (i != ($2))
   2205 	return 1;
   2206       fprintf (f, "%ld", i);
   2207     }
   2208   else
   2209     {
   2210       unsigned long int i = ulongval ();
   2211       if (i != ($2))
   2212 	return 1;
   2213       fprintf (f, "%lu", i);
   2214     }
   2215   /* Do not output a trailing newline, as this causes \r\n confusion
   2216      on some platforms.  */
   2217   return ferror (f) || fclose (f) != 0;
   2218 
   2219   ;
   2220   return 0;
   2221 }
   2222 _ACEOF
   2223 if ac_fn_c_try_run "$LINENO"; then :
   2224   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2225 else
   2226   ac_retval=1
   2227 fi
   2228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2229   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2230 rm -f conftest.val
   2231 
   2232   fi
   2233   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2234   as_fn_set_status $ac_retval
   2235 
   2236 } # ac_fn_c_compute_int
   2237 
   2238 # ac_fn_c_check_func LINENO FUNC VAR
   2239 # ----------------------------------
   2240 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2241 ac_fn_c_check_func ()
   2242 {
   2243   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2245 $as_echo_n "checking for $2... " >&6; }
   2246 if eval \${$3+:} false; then :
   2247   $as_echo_n "(cached) " >&6
   2248 else
   2249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2250 /* end confdefs.h.  */
   2251 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2253 #define $2 innocuous_$2
   2254 
   2255 /* System header to define __stub macros and hopefully few prototypes,
   2256     which can conflict with char $2 (); below.
   2257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2258     <limits.h> exists even on freestanding compilers.  */
   2259 
   2260 #ifdef __STDC__
   2261 # include <limits.h>
   2262 #else
   2263 # include <assert.h>
   2264 #endif
   2265 
   2266 #undef $2
   2267 
   2268 /* Override any GCC internal prototype to avoid an error.
   2269    Use char because int might match the return type of a GCC
   2270    builtin and then its argument prototype would still apply.  */
   2271 #ifdef __cplusplus
   2272 extern "C"
   2273 #endif
   2274 char $2 ();
   2275 /* The GNU C library defines this for functions which it implements
   2276     to always fail with ENOSYS.  Some functions are actually named
   2277     something starting with __ and the normal name is an alias.  */
   2278 #if defined __stub_$2 || defined __stub___$2
   2279 choke me
   2280 #endif
   2281 
   2282 int
   2283 main ()
   2284 {
   2285 return $2 ();
   2286   ;
   2287   return 0;
   2288 }
   2289 _ACEOF
   2290 if ac_fn_c_try_link "$LINENO"; then :
   2291   eval "$3=yes"
   2292 else
   2293   eval "$3=no"
   2294 fi
   2295 rm -f core conftest.err conftest.$ac_objext \
   2296     conftest$ac_exeext conftest.$ac_ext
   2297 fi
   2298 eval ac_res=\$$3
   2299 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2300 $as_echo "$ac_res" >&6; }
   2301   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2302 
   2303 } # ac_fn_c_check_func
   2304 
   2305 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2306 # ----------------------------------------------------
   2307 # Tries to find if the field MEMBER exists in type AGGR, after including
   2308 # INCLUDES, setting cache variable VAR accordingly.
   2309 ac_fn_c_check_member ()
   2310 {
   2311   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2313 $as_echo_n "checking for $2.$3... " >&6; }
   2314 if eval \${$4+:} false; then :
   2315   $as_echo_n "(cached) " >&6
   2316 else
   2317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2318 /* end confdefs.h.  */
   2319 $5
   2320 int
   2321 main ()
   2322 {
   2323 static $2 ac_aggr;
   2324 if (ac_aggr.$3)
   2325 return 0;
   2326   ;
   2327   return 0;
   2328 }
   2329 _ACEOF
   2330 if ac_fn_c_try_compile "$LINENO"; then :
   2331   eval "$4=yes"
   2332 else
   2333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2334 /* end confdefs.h.  */
   2335 $5
   2336 int
   2337 main ()
   2338 {
   2339 static $2 ac_aggr;
   2340 if (sizeof ac_aggr.$3)
   2341 return 0;
   2342   ;
   2343   return 0;
   2344 }
   2345 _ACEOF
   2346 if ac_fn_c_try_compile "$LINENO"; then :
   2347   eval "$4=yes"
   2348 else
   2349   eval "$4=no"
   2350 fi
   2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2352 fi
   2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2354 fi
   2355 eval ac_res=\$$4
   2356 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2357 $as_echo "$ac_res" >&6; }
   2358   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2359 
   2360 } # ac_fn_c_check_member
   2361 
   2362 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2363 # -------------------------------------------
   2364 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2365 # variable VAR accordingly.
   2366 ac_fn_c_check_type ()
   2367 {
   2368   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2370 $as_echo_n "checking for $2... " >&6; }
   2371 if eval \${$3+:} false; then :
   2372   $as_echo_n "(cached) " >&6
   2373 else
   2374   eval "$3=no"
   2375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2376 /* end confdefs.h.  */
   2377 $4
   2378 int
   2379 main ()
   2380 {
   2381 if (sizeof ($2))
   2382 	 return 0;
   2383   ;
   2384   return 0;
   2385 }
   2386 _ACEOF
   2387 if ac_fn_c_try_compile "$LINENO"; then :
   2388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2389 /* end confdefs.h.  */
   2390 $4
   2391 int
   2392 main ()
   2393 {
   2394 if (sizeof (($2)))
   2395 	    return 0;
   2396   ;
   2397   return 0;
   2398 }
   2399 _ACEOF
   2400 if ac_fn_c_try_compile "$LINENO"; then :
   2401 
   2402 else
   2403   eval "$3=yes"
   2404 fi
   2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2406 fi
   2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2408 fi
   2409 eval ac_res=\$$3
   2410 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2411 $as_echo "$ac_res" >&6; }
   2412   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2413 
   2414 } # ac_fn_c_check_type
   2415 
   2416 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   2417 # ---------------------------------------------
   2418 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   2419 # accordingly.
   2420 ac_fn_c_check_decl ()
   2421 {
   2422   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2423   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2424   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2426 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2427 if eval \${$3+:} false; then :
   2428   $as_echo_n "(cached) " >&6
   2429 else
   2430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2431 /* end confdefs.h.  */
   2432 $4
   2433 int
   2434 main ()
   2435 {
   2436 #ifndef $as_decl_name
   2437 #ifdef __cplusplus
   2438   (void) $as_decl_use;
   2439 #else
   2440   (void) $as_decl_name;
   2441 #endif
   2442 #endif
   2443 
   2444   ;
   2445   return 0;
   2446 }
   2447 _ACEOF
   2448 if ac_fn_c_try_compile "$LINENO"; then :
   2449   eval "$3=yes"
   2450 else
   2451   eval "$3=no"
   2452 fi
   2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2454 fi
   2455 eval ac_res=\$$3
   2456 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2457 $as_echo "$ac_res" >&6; }
   2458   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2459 
   2460 } # ac_fn_c_check_decl
   2461 
   2462 # ac_fn_cxx_try_link LINENO
   2463 # -------------------------
   2464 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2465 ac_fn_cxx_try_link ()
   2466 {
   2467   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2468   rm -f conftest.$ac_objext conftest$ac_exeext
   2469   if { { ac_try="$ac_link"
   2470 case "(($ac_try" in
   2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2472   *) ac_try_echo=$ac_try;;
   2473 esac
   2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2475 $as_echo "$ac_try_echo"; } >&5
   2476   (eval "$ac_link") 2>conftest.err
   2477   ac_status=$?
   2478   if test -s conftest.err; then
   2479     grep -v '^ *+' conftest.err >conftest.er1
   2480     cat conftest.er1 >&5
   2481     mv -f conftest.er1 conftest.err
   2482   fi
   2483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2484   test $ac_status = 0; } && {
   2485 	 test -z "$ac_cxx_werror_flag" ||
   2486 	 test ! -s conftest.err
   2487        } && test -s conftest$ac_exeext && {
   2488 	 test "$cross_compiling" = yes ||
   2489 	 test -x conftest$ac_exeext
   2490        }; then :
   2491   ac_retval=0
   2492 else
   2493   $as_echo "$as_me: failed program was:" >&5
   2494 sed 's/^/| /' conftest.$ac_ext >&5
   2495 
   2496 	ac_retval=1
   2497 fi
   2498   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2499   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2500   # interfere with the next link command; also delete a directory that is
   2501   # left behind by Apple's compiler.  We do this before executing the actions.
   2502   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2503   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2504   as_fn_set_status $ac_retval
   2505 
   2506 } # ac_fn_cxx_try_link
   2507 cat >config.log <<_ACEOF
   2508 This file contains any messages produced by compilers while
   2509 running configure, to aid debugging if configure makes a mistake.
   2510 
   2511 It was created by $as_me, which was
   2512 generated by GNU Autoconf 2.69.  Invocation command line was
   2513 
   2514   $ $0 $@
   2515 
   2516 _ACEOF
   2517 exec 5>>config.log
   2518 {
   2519 cat <<_ASUNAME
   2520 ## --------- ##
   2521 ## Platform. ##
   2522 ## --------- ##
   2523 
   2524 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2525 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2526 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2527 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2528 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2529 
   2530 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2531 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2532 
   2533 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2534 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2535 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2536 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2537 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2538 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2539 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2540 
   2541 _ASUNAME
   2542 
   2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2544 for as_dir in $PATH
   2545 do
   2546   IFS=$as_save_IFS
   2547   test -z "$as_dir" && as_dir=.
   2548     $as_echo "PATH: $as_dir"
   2549   done
   2550 IFS=$as_save_IFS
   2551 
   2552 } >&5
   2553 
   2554 cat >&5 <<_ACEOF
   2555 
   2556 
   2557 ## ----------- ##
   2558 ## Core tests. ##
   2559 ## ----------- ##
   2560 
   2561 _ACEOF
   2562 
   2563 
   2564 # Keep a trace of the command line.
   2565 # Strip out --no-create and --no-recursion so they do not pile up.
   2566 # Strip out --silent because we don't want to record it for future runs.
   2567 # Also quote any args containing shell meta-characters.
   2568 # Make two passes to allow for proper duplicate-argument suppression.
   2569 ac_configure_args=
   2570 ac_configure_args0=
   2571 ac_configure_args1=
   2572 ac_must_keep_next=false
   2573 for ac_pass in 1 2
   2574 do
   2575   for ac_arg
   2576   do
   2577     case $ac_arg in
   2578     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2579     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2580     | -silent | --silent | --silen | --sile | --sil)
   2581       continue ;;
   2582     *\'*)
   2583       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2584     esac
   2585     case $ac_pass in
   2586     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2587     2)
   2588       as_fn_append ac_configure_args1 " '$ac_arg'"
   2589       if test $ac_must_keep_next = true; then
   2590 	ac_must_keep_next=false # Got value, back to normal.
   2591       else
   2592 	case $ac_arg in
   2593 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2594 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2595 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2596 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2597 	    case "$ac_configure_args0 " in
   2598 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2599 	    esac
   2600 	    ;;
   2601 	  -* ) ac_must_keep_next=true ;;
   2602 	esac
   2603       fi
   2604       as_fn_append ac_configure_args " '$ac_arg'"
   2605       ;;
   2606     esac
   2607   done
   2608 done
   2609 { ac_configure_args0=; unset ac_configure_args0;}
   2610 { ac_configure_args1=; unset ac_configure_args1;}
   2611 
   2612 # When interrupted or exit'd, cleanup temporary files, and complete
   2613 # config.log.  We remove comments because anyway the quotes in there
   2614 # would cause problems or look ugly.
   2615 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2616 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2617 trap 'exit_status=$?
   2618   # Save into config.log some information that might help in debugging.
   2619   {
   2620     echo
   2621 
   2622     $as_echo "## ---------------- ##
   2623 ## Cache variables. ##
   2624 ## ---------------- ##"
   2625     echo
   2626     # The following way of writing the cache mishandles newlines in values,
   2627 (
   2628   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2629     eval ac_val=\$$ac_var
   2630     case $ac_val in #(
   2631     *${as_nl}*)
   2632       case $ac_var in #(
   2633       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2634 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2635       esac
   2636       case $ac_var in #(
   2637       _ | IFS | as_nl) ;; #(
   2638       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2639       *) { eval $ac_var=; unset $ac_var;} ;;
   2640       esac ;;
   2641     esac
   2642   done
   2643   (set) 2>&1 |
   2644     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2645     *${as_nl}ac_space=\ *)
   2646       sed -n \
   2647 	"s/'\''/'\''\\\\'\'''\''/g;
   2648 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2649       ;; #(
   2650     *)
   2651       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2652       ;;
   2653     esac |
   2654     sort
   2655 )
   2656     echo
   2657 
   2658     $as_echo "## ----------------- ##
   2659 ## Output variables. ##
   2660 ## ----------------- ##"
   2661     echo
   2662     for ac_var in $ac_subst_vars
   2663     do
   2664       eval ac_val=\$$ac_var
   2665       case $ac_val in
   2666       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2667       esac
   2668       $as_echo "$ac_var='\''$ac_val'\''"
   2669     done | sort
   2670     echo
   2671 
   2672     if test -n "$ac_subst_files"; then
   2673       $as_echo "## ------------------- ##
   2674 ## File substitutions. ##
   2675 ## ------------------- ##"
   2676       echo
   2677       for ac_var in $ac_subst_files
   2678       do
   2679 	eval ac_val=\$$ac_var
   2680 	case $ac_val in
   2681 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2682 	esac
   2683 	$as_echo "$ac_var='\''$ac_val'\''"
   2684       done | sort
   2685       echo
   2686     fi
   2687 
   2688     if test -s confdefs.h; then
   2689       $as_echo "## ----------- ##
   2690 ## confdefs.h. ##
   2691 ## ----------- ##"
   2692       echo
   2693       cat confdefs.h
   2694       echo
   2695     fi
   2696     test "$ac_signal" != 0 &&
   2697       $as_echo "$as_me: caught signal $ac_signal"
   2698     $as_echo "$as_me: exit $exit_status"
   2699   } >&5
   2700   rm -f core *.core core.conftest.* &&
   2701     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2702     exit $exit_status
   2703 ' 0
   2704 for ac_signal in 1 2 13 15; do
   2705   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2706 done
   2707 ac_signal=0
   2708 
   2709 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2710 rm -f -r conftest* confdefs.h
   2711 
   2712 $as_echo "/* confdefs.h */" > confdefs.h
   2713 
   2714 # Predefined preprocessor variables.
   2715 
   2716 cat >>confdefs.h <<_ACEOF
   2717 #define PACKAGE_NAME "$PACKAGE_NAME"
   2718 _ACEOF
   2719 
   2720 cat >>confdefs.h <<_ACEOF
   2721 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2722 _ACEOF
   2723 
   2724 cat >>confdefs.h <<_ACEOF
   2725 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2726 _ACEOF
   2727 
   2728 cat >>confdefs.h <<_ACEOF
   2729 #define PACKAGE_STRING "$PACKAGE_STRING"
   2730 _ACEOF
   2731 
   2732 cat >>confdefs.h <<_ACEOF
   2733 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2734 _ACEOF
   2735 
   2736 cat >>confdefs.h <<_ACEOF
   2737 #define PACKAGE_URL "$PACKAGE_URL"
   2738 _ACEOF
   2739 
   2740 
   2741 # Let the site file select an alternate cache file if it wants to.
   2742 # Prefer an explicitly selected file to automatically selected ones.
   2743 ac_site_file1=NONE
   2744 ac_site_file2=NONE
   2745 if test -n "$CONFIG_SITE"; then
   2746   # We do not want a PATH search for config.site.
   2747   case $CONFIG_SITE in #((
   2748     -*)  ac_site_file1=./$CONFIG_SITE;;
   2749     */*) ac_site_file1=$CONFIG_SITE;;
   2750     *)   ac_site_file1=./$CONFIG_SITE;;
   2751   esac
   2752 elif test "x$prefix" != xNONE; then
   2753   ac_site_file1=$prefix/share/config.site
   2754   ac_site_file2=$prefix/etc/config.site
   2755 else
   2756   ac_site_file1=$ac_default_prefix/share/config.site
   2757   ac_site_file2=$ac_default_prefix/etc/config.site
   2758 fi
   2759 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2760 do
   2761   test "x$ac_site_file" = xNONE && continue
   2762   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2763     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2764 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2765     sed 's/^/| /' "$ac_site_file" >&5
   2766     . "$ac_site_file" \
   2767       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2769 as_fn_error $? "failed to load site script $ac_site_file
   2770 See \`config.log' for more details" "$LINENO" 5; }
   2771   fi
   2772 done
   2773 
   2774 if test -r "$cache_file"; then
   2775   # Some versions of bash will fail to source /dev/null (special files
   2776   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2777   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2778     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2779 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2780     case $cache_file in
   2781       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2782       *)                      . "./$cache_file";;
   2783     esac
   2784   fi
   2785 else
   2786   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2787 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2788   >$cache_file
   2789 fi
   2790 
   2791 as_fn_append ac_header_list " stdlib.h"
   2792 as_fn_append ac_header_list " unistd.h"
   2793 as_fn_append ac_header_list " sys/param.h"
   2794 # Check that the precious variables saved in the cache have kept the same
   2795 # value.
   2796 ac_cache_corrupted=false
   2797 for ac_var in $ac_precious_vars; do
   2798   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2799   eval ac_new_set=\$ac_env_${ac_var}_set
   2800   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2801   eval ac_new_val=\$ac_env_${ac_var}_value
   2802   case $ac_old_set,$ac_new_set in
   2803     set,)
   2804       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2805 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2806       ac_cache_corrupted=: ;;
   2807     ,set)
   2808       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2809 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2810       ac_cache_corrupted=: ;;
   2811     ,);;
   2812     *)
   2813       if test "x$ac_old_val" != "x$ac_new_val"; then
   2814 	# differences in whitespace do not lead to failure.
   2815 	ac_old_val_w=`echo x $ac_old_val`
   2816 	ac_new_val_w=`echo x $ac_new_val`
   2817 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2818 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2819 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2820 	  ac_cache_corrupted=:
   2821 	else
   2822 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2823 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2824 	  eval $ac_var=\$ac_old_val
   2825 	fi
   2826 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2827 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2828 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2829 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2830       fi;;
   2831   esac
   2832   # Pass precious variables to config.status.
   2833   if test "$ac_new_set" = set; then
   2834     case $ac_new_val in
   2835     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2836     *) ac_arg=$ac_var=$ac_new_val ;;
   2837     esac
   2838     case " $ac_configure_args " in
   2839       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2840       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2841     esac
   2842   fi
   2843 done
   2844 if $ac_cache_corrupted; then
   2845   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2847   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2848 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2849   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2850 fi
   2851 ## -------------------- ##
   2852 ## Main body of script. ##
   2853 ## -------------------- ##
   2854 
   2855 ac_ext=c
   2856 ac_cpp='$CPP $CPPFLAGS'
   2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2860 
   2861 
   2862 
   2863 
   2864 
   2865 ac_config_headers="$ac_config_headers config.h:config.in"
   2866 
   2867 
   2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2869 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2870     # Check whether --enable-maintainer-mode was given.
   2871 if test "${enable_maintainer_mode+set}" = set; then :
   2872   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2873 else
   2874   USE_MAINTAINER_MODE=no
   2875 fi
   2876 
   2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   2878 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   2879    if test $USE_MAINTAINER_MODE = yes; then
   2880   MAINTAINER_MODE_TRUE=
   2881   MAINTAINER_MODE_FALSE='#'
   2882 else
   2883   MAINTAINER_MODE_TRUE='#'
   2884   MAINTAINER_MODE_FALSE=
   2885 fi
   2886 
   2887   MAINT=$MAINTAINER_MODE_TRUE
   2888 
   2889 
   2890 
   2891 # Set the 'development' global.
   2892 . $srcdir/../bfd/development.sh
   2893 
   2894 ac_ext=c
   2895 ac_cpp='$CPP $CPPFLAGS'
   2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2899 if test -n "$ac_tool_prefix"; then
   2900   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2903 $as_echo_n "checking for $ac_word... " >&6; }
   2904 if ${ac_cv_prog_CC+:} false; then :
   2905   $as_echo_n "(cached) " >&6
   2906 else
   2907   if test -n "$CC"; then
   2908   ac_cv_prog_CC="$CC" # Let the user override the test.
   2909 else
   2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2911 for as_dir in $PATH
   2912 do
   2913   IFS=$as_save_IFS
   2914   test -z "$as_dir" && as_dir=.
   2915     for ac_exec_ext in '' $ac_executable_extensions; do
   2916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2917     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2919     break 2
   2920   fi
   2921 done
   2922   done
   2923 IFS=$as_save_IFS
   2924 
   2925 fi
   2926 fi
   2927 CC=$ac_cv_prog_CC
   2928 if test -n "$CC"; then
   2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2930 $as_echo "$CC" >&6; }
   2931 else
   2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2933 $as_echo "no" >&6; }
   2934 fi
   2935 
   2936 
   2937 fi
   2938 if test -z "$ac_cv_prog_CC"; then
   2939   ac_ct_CC=$CC
   2940   # Extract the first word of "gcc", so it can be a program name with args.
   2941 set dummy gcc; ac_word=$2
   2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2943 $as_echo_n "checking for $ac_word... " >&6; }
   2944 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2945   $as_echo_n "(cached) " >&6
   2946 else
   2947   if test -n "$ac_ct_CC"; then
   2948   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2949 else
   2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2951 for as_dir in $PATH
   2952 do
   2953   IFS=$as_save_IFS
   2954   test -z "$as_dir" && as_dir=.
   2955     for ac_exec_ext in '' $ac_executable_extensions; do
   2956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2957     ac_cv_prog_ac_ct_CC="gcc"
   2958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2959     break 2
   2960   fi
   2961 done
   2962   done
   2963 IFS=$as_save_IFS
   2964 
   2965 fi
   2966 fi
   2967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2968 if test -n "$ac_ct_CC"; then
   2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2970 $as_echo "$ac_ct_CC" >&6; }
   2971 else
   2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2973 $as_echo "no" >&6; }
   2974 fi
   2975 
   2976   if test "x$ac_ct_CC" = x; then
   2977     CC=""
   2978   else
   2979     case $cross_compiling:$ac_tool_warned in
   2980 yes:)
   2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2983 ac_tool_warned=yes ;;
   2984 esac
   2985     CC=$ac_ct_CC
   2986   fi
   2987 else
   2988   CC="$ac_cv_prog_CC"
   2989 fi
   2990 
   2991 if test -z "$CC"; then
   2992           if test -n "$ac_tool_prefix"; then
   2993     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2994 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2996 $as_echo_n "checking for $ac_word... " >&6; }
   2997 if ${ac_cv_prog_CC+:} false; then :
   2998   $as_echo_n "(cached) " >&6
   2999 else
   3000   if test -n "$CC"; then
   3001   ac_cv_prog_CC="$CC" # Let the user override the test.
   3002 else
   3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3004 for as_dir in $PATH
   3005 do
   3006   IFS=$as_save_IFS
   3007   test -z "$as_dir" && as_dir=.
   3008     for ac_exec_ext in '' $ac_executable_extensions; do
   3009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3010     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3012     break 2
   3013   fi
   3014 done
   3015   done
   3016 IFS=$as_save_IFS
   3017 
   3018 fi
   3019 fi
   3020 CC=$ac_cv_prog_CC
   3021 if test -n "$CC"; then
   3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3023 $as_echo "$CC" >&6; }
   3024 else
   3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3026 $as_echo "no" >&6; }
   3027 fi
   3028 
   3029 
   3030   fi
   3031 fi
   3032 if test -z "$CC"; then
   3033   # Extract the first word of "cc", so it can be a program name with args.
   3034 set dummy cc; ac_word=$2
   3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3036 $as_echo_n "checking for $ac_word... " >&6; }
   3037 if ${ac_cv_prog_CC+:} false; then :
   3038   $as_echo_n "(cached) " >&6
   3039 else
   3040   if test -n "$CC"; then
   3041   ac_cv_prog_CC="$CC" # Let the user override the test.
   3042 else
   3043   ac_prog_rejected=no
   3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3045 for as_dir in $PATH
   3046 do
   3047   IFS=$as_save_IFS
   3048   test -z "$as_dir" && as_dir=.
   3049     for ac_exec_ext in '' $ac_executable_extensions; do
   3050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3051     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3052        ac_prog_rejected=yes
   3053        continue
   3054      fi
   3055     ac_cv_prog_CC="cc"
   3056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3057     break 2
   3058   fi
   3059 done
   3060   done
   3061 IFS=$as_save_IFS
   3062 
   3063 if test $ac_prog_rejected = yes; then
   3064   # We found a bogon in the path, so make sure we never use it.
   3065   set dummy $ac_cv_prog_CC
   3066   shift
   3067   if test $# != 0; then
   3068     # We chose a different compiler from the bogus one.
   3069     # However, it has the same basename, so the bogon will be chosen
   3070     # first if we set CC to just the basename; use the full file name.
   3071     shift
   3072     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3073   fi
   3074 fi
   3075 fi
   3076 fi
   3077 CC=$ac_cv_prog_CC
   3078 if test -n "$CC"; then
   3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3080 $as_echo "$CC" >&6; }
   3081 else
   3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3083 $as_echo "no" >&6; }
   3084 fi
   3085 
   3086 
   3087 fi
   3088 if test -z "$CC"; then
   3089   if test -n "$ac_tool_prefix"; then
   3090   for ac_prog in cl.exe
   3091   do
   3092     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3093 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3095 $as_echo_n "checking for $ac_word... " >&6; }
   3096 if ${ac_cv_prog_CC+:} false; then :
   3097   $as_echo_n "(cached) " >&6
   3098 else
   3099   if test -n "$CC"; then
   3100   ac_cv_prog_CC="$CC" # Let the user override the test.
   3101 else
   3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3103 for as_dir in $PATH
   3104 do
   3105   IFS=$as_save_IFS
   3106   test -z "$as_dir" && as_dir=.
   3107     for ac_exec_ext in '' $ac_executable_extensions; do
   3108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3109     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3111     break 2
   3112   fi
   3113 done
   3114   done
   3115 IFS=$as_save_IFS
   3116 
   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     test -n "$CC" && break
   3130   done
   3131 fi
   3132 if test -z "$CC"; then
   3133   ac_ct_CC=$CC
   3134   for ac_prog in cl.exe
   3135 do
   3136   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3137 set dummy $ac_prog; ac_word=$2
   3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3139 $as_echo_n "checking for $ac_word... " >&6; }
   3140 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3141   $as_echo_n "(cached) " >&6
   3142 else
   3143   if test -n "$ac_ct_CC"; then
   3144   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3145 else
   3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3147 for as_dir in $PATH
   3148 do
   3149   IFS=$as_save_IFS
   3150   test -z "$as_dir" && as_dir=.
   3151     for ac_exec_ext in '' $ac_executable_extensions; do
   3152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3153     ac_cv_prog_ac_ct_CC="$ac_prog"
   3154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3155     break 2
   3156   fi
   3157 done
   3158   done
   3159 IFS=$as_save_IFS
   3160 
   3161 fi
   3162 fi
   3163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3164 if test -n "$ac_ct_CC"; then
   3165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3166 $as_echo "$ac_ct_CC" >&6; }
   3167 else
   3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3169 $as_echo "no" >&6; }
   3170 fi
   3171 
   3172 
   3173   test -n "$ac_ct_CC" && break
   3174 done
   3175 
   3176   if test "x$ac_ct_CC" = x; then
   3177     CC=""
   3178   else
   3179     case $cross_compiling:$ac_tool_warned in
   3180 yes:)
   3181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3183 ac_tool_warned=yes ;;
   3184 esac
   3185     CC=$ac_ct_CC
   3186   fi
   3187 fi
   3188 
   3189 fi
   3190 
   3191 
   3192 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3194 as_fn_error $? "no acceptable C compiler found in \$PATH
   3195 See \`config.log' for more details" "$LINENO" 5; }
   3196 
   3197 # Provide some information about the compiler.
   3198 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3199 set X $ac_compile
   3200 ac_compiler=$2
   3201 for ac_option in --version -v -V -qversion; do
   3202   { { ac_try="$ac_compiler $ac_option >&5"
   3203 case "(($ac_try" in
   3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3205   *) ac_try_echo=$ac_try;;
   3206 esac
   3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3208 $as_echo "$ac_try_echo"; } >&5
   3209   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3210   ac_status=$?
   3211   if test -s conftest.err; then
   3212     sed '10a\
   3213 ... rest of stderr output deleted ...
   3214          10q' conftest.err >conftest.er1
   3215     cat conftest.er1 >&5
   3216   fi
   3217   rm -f conftest.er1 conftest.err
   3218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3219   test $ac_status = 0; }
   3220 done
   3221 
   3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3223 /* end confdefs.h.  */
   3224 
   3225 int
   3226 main ()
   3227 {
   3228 
   3229   ;
   3230   return 0;
   3231 }
   3232 _ACEOF
   3233 ac_clean_files_save=$ac_clean_files
   3234 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3235 # Try to create an executable without -o first, disregard a.out.
   3236 # It will help us diagnose broken compilers, and finding out an intuition
   3237 # of exeext.
   3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3239 $as_echo_n "checking whether the C compiler works... " >&6; }
   3240 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3241 
   3242 # The possible output files:
   3243 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3244 
   3245 ac_rmfiles=
   3246 for ac_file in $ac_files
   3247 do
   3248   case $ac_file in
   3249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3250     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3251   esac
   3252 done
   3253 rm -f $ac_rmfiles
   3254 
   3255 if { { ac_try="$ac_link_default"
   3256 case "(($ac_try" in
   3257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3258   *) ac_try_echo=$ac_try;;
   3259 esac
   3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3261 $as_echo "$ac_try_echo"; } >&5
   3262   (eval "$ac_link_default") 2>&5
   3263   ac_status=$?
   3264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3265   test $ac_status = 0; }; then :
   3266   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3267 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3268 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3269 # so that the user can short-circuit this test for compilers unknown to
   3270 # Autoconf.
   3271 for ac_file in $ac_files ''
   3272 do
   3273   test -f "$ac_file" || continue
   3274   case $ac_file in
   3275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3276 	;;
   3277     [ab].out )
   3278 	# We found the default executable, but exeext='' is most
   3279 	# certainly right.
   3280 	break;;
   3281     *.* )
   3282 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3283 	then :; else
   3284 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3285 	fi
   3286 	# We set ac_cv_exeext here because the later test for it is not
   3287 	# safe: cross compilers may not add the suffix if given an `-o'
   3288 	# argument, so we may need to know it at that point already.
   3289 	# Even if this section looks crufty: it has the advantage of
   3290 	# actually working.
   3291 	break;;
   3292     * )
   3293 	break;;
   3294   esac
   3295 done
   3296 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3297 
   3298 else
   3299   ac_file=''
   3300 fi
   3301 if test -z "$ac_file"; then :
   3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3303 $as_echo "no" >&6; }
   3304 $as_echo "$as_me: failed program was:" >&5
   3305 sed 's/^/| /' conftest.$ac_ext >&5
   3306 
   3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3309 as_fn_error 77 "C compiler cannot create executables
   3310 See \`config.log' for more details" "$LINENO" 5; }
   3311 else
   3312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3313 $as_echo "yes" >&6; }
   3314 fi
   3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3316 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3318 $as_echo "$ac_file" >&6; }
   3319 ac_exeext=$ac_cv_exeext
   3320 
   3321 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3322 ac_clean_files=$ac_clean_files_save
   3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3324 $as_echo_n "checking for suffix of executables... " >&6; }
   3325 if { { ac_try="$ac_link"
   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") 2>&5
   3333   ac_status=$?
   3334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3335   test $ac_status = 0; }; then :
   3336   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3337 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3338 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3339 # `rm'.
   3340 for ac_file in conftest.exe conftest conftest.*; do
   3341   test -f "$ac_file" || continue
   3342   case $ac_file in
   3343     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3344     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3345 	  break;;
   3346     * ) break;;
   3347   esac
   3348 done
   3349 else
   3350   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3352 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3353 See \`config.log' for more details" "$LINENO" 5; }
   3354 fi
   3355 rm -f conftest conftest$ac_cv_exeext
   3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3357 $as_echo "$ac_cv_exeext" >&6; }
   3358 
   3359 rm -f conftest.$ac_ext
   3360 EXEEXT=$ac_cv_exeext
   3361 ac_exeext=$EXEEXT
   3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3363 /* end confdefs.h.  */
   3364 #include <stdio.h>
   3365 int
   3366 main ()
   3367 {
   3368 FILE *f = fopen ("conftest.out", "w");
   3369  return ferror (f) || fclose (f) != 0;
   3370 
   3371   ;
   3372   return 0;
   3373 }
   3374 _ACEOF
   3375 ac_clean_files="$ac_clean_files conftest.out"
   3376 # Check that the compiler produces executables we can run.  If not, either
   3377 # the compiler is broken, or we cross compile.
   3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3379 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3380 if test "$cross_compiling" != yes; then
   3381   { { ac_try="$ac_link"
   3382 case "(($ac_try" in
   3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3384   *) ac_try_echo=$ac_try;;
   3385 esac
   3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3387 $as_echo "$ac_try_echo"; } >&5
   3388   (eval "$ac_link") 2>&5
   3389   ac_status=$?
   3390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3391   test $ac_status = 0; }
   3392   if { ac_try='./conftest$ac_cv_exeext'
   3393   { { case "(($ac_try" in
   3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3395   *) ac_try_echo=$ac_try;;
   3396 esac
   3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3398 $as_echo "$ac_try_echo"; } >&5
   3399   (eval "$ac_try") 2>&5
   3400   ac_status=$?
   3401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3402   test $ac_status = 0; }; }; then
   3403     cross_compiling=no
   3404   else
   3405     if test "$cross_compiling" = maybe; then
   3406 	cross_compiling=yes
   3407     else
   3408 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3410 as_fn_error $? "cannot run C compiled programs.
   3411 If you meant to cross compile, use \`--host'.
   3412 See \`config.log' for more details" "$LINENO" 5; }
   3413     fi
   3414   fi
   3415 fi
   3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3417 $as_echo "$cross_compiling" >&6; }
   3418 
   3419 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3420 ac_clean_files=$ac_clean_files_save
   3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3422 $as_echo_n "checking for suffix of object files... " >&6; }
   3423 if ${ac_cv_objext+:} false; then :
   3424   $as_echo_n "(cached) " >&6
   3425 else
   3426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3427 /* end confdefs.h.  */
   3428 
   3429 int
   3430 main ()
   3431 {
   3432 
   3433   ;
   3434   return 0;
   3435 }
   3436 _ACEOF
   3437 rm -f conftest.o conftest.obj
   3438 if { { ac_try="$ac_compile"
   3439 case "(($ac_try" in
   3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3441   *) ac_try_echo=$ac_try;;
   3442 esac
   3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3444 $as_echo "$ac_try_echo"; } >&5
   3445   (eval "$ac_compile") 2>&5
   3446   ac_status=$?
   3447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3448   test $ac_status = 0; }; then :
   3449   for ac_file in conftest.o conftest.obj conftest.*; do
   3450   test -f "$ac_file" || continue;
   3451   case $ac_file in
   3452     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3453     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3454        break;;
   3455   esac
   3456 done
   3457 else
   3458   $as_echo "$as_me: failed program was:" >&5
   3459 sed 's/^/| /' conftest.$ac_ext >&5
   3460 
   3461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3463 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3464 See \`config.log' for more details" "$LINENO" 5; }
   3465 fi
   3466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3467 fi
   3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3469 $as_echo "$ac_cv_objext" >&6; }
   3470 OBJEXT=$ac_cv_objext
   3471 ac_objext=$OBJEXT
   3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3473 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3474 if ${ac_cv_c_compiler_gnu+:} false; then :
   3475   $as_echo_n "(cached) " >&6
   3476 else
   3477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3478 /* end confdefs.h.  */
   3479 
   3480 int
   3481 main ()
   3482 {
   3483 #ifndef __GNUC__
   3484        choke me
   3485 #endif
   3486 
   3487   ;
   3488   return 0;
   3489 }
   3490 _ACEOF
   3491 if ac_fn_c_try_compile "$LINENO"; then :
   3492   ac_compiler_gnu=yes
   3493 else
   3494   ac_compiler_gnu=no
   3495 fi
   3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3497 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3498 
   3499 fi
   3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3501 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3502 if test $ac_compiler_gnu = yes; then
   3503   GCC=yes
   3504 else
   3505   GCC=
   3506 fi
   3507 ac_test_CFLAGS=${CFLAGS+set}
   3508 ac_save_CFLAGS=$CFLAGS
   3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3510 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3511 if ${ac_cv_prog_cc_g+:} false; then :
   3512   $as_echo_n "(cached) " >&6
   3513 else
   3514   ac_save_c_werror_flag=$ac_c_werror_flag
   3515    ac_c_werror_flag=yes
   3516    ac_cv_prog_cc_g=no
   3517    CFLAGS="-g"
   3518    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3519 /* end confdefs.h.  */
   3520 
   3521 int
   3522 main ()
   3523 {
   3524 
   3525   ;
   3526   return 0;
   3527 }
   3528 _ACEOF
   3529 if ac_fn_c_try_compile "$LINENO"; then :
   3530   ac_cv_prog_cc_g=yes
   3531 else
   3532   CFLAGS=""
   3533       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3534 /* end confdefs.h.  */
   3535 
   3536 int
   3537 main ()
   3538 {
   3539 
   3540   ;
   3541   return 0;
   3542 }
   3543 _ACEOF
   3544 if ac_fn_c_try_compile "$LINENO"; then :
   3545 
   3546 else
   3547   ac_c_werror_flag=$ac_save_c_werror_flag
   3548 	 CFLAGS="-g"
   3549 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3550 /* end confdefs.h.  */
   3551 
   3552 int
   3553 main ()
   3554 {
   3555 
   3556   ;
   3557   return 0;
   3558 }
   3559 _ACEOF
   3560 if ac_fn_c_try_compile "$LINENO"; then :
   3561   ac_cv_prog_cc_g=yes
   3562 fi
   3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3564 fi
   3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3566 fi
   3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3568    ac_c_werror_flag=$ac_save_c_werror_flag
   3569 fi
   3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3571 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3572 if test "$ac_test_CFLAGS" = set; then
   3573   CFLAGS=$ac_save_CFLAGS
   3574 elif test $ac_cv_prog_cc_g = yes; then
   3575   if test "$GCC" = yes; then
   3576     CFLAGS="-g -O2"
   3577   else
   3578     CFLAGS="-g"
   3579   fi
   3580 else
   3581   if test "$GCC" = yes; then
   3582     CFLAGS="-O2"
   3583   else
   3584     CFLAGS=
   3585   fi
   3586 fi
   3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3588 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3589 if ${ac_cv_prog_cc_c89+:} false; then :
   3590   $as_echo_n "(cached) " >&6
   3591 else
   3592   ac_cv_prog_cc_c89=no
   3593 ac_save_CC=$CC
   3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3595 /* end confdefs.h.  */
   3596 #include <stdarg.h>
   3597 #include <stdio.h>
   3598 struct stat;
   3599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3600 struct buf { int x; };
   3601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3602 static char *e (p, i)
   3603      char **p;
   3604      int i;
   3605 {
   3606   return p[i];
   3607 }
   3608 static char *f (char * (*g) (char **, int), char **p, ...)
   3609 {
   3610   char *s;
   3611   va_list v;
   3612   va_start (v,p);
   3613   s = g (p, va_arg (v,int));
   3614   va_end (v);
   3615   return s;
   3616 }
   3617 
   3618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3619    function prototypes and stuff, but not '\xHH' hex character constants.
   3620    These don't provoke an error unfortunately, instead are silently treated
   3621    as 'x'.  The following induces an error, until -std is added to get
   3622    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3623    array size at least.  It's necessary to write '\x00'==0 to get something
   3624    that's true only with -std.  */
   3625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3626 
   3627 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3628    inside strings and character constants.  */
   3629 #define FOO(x) 'x'
   3630 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3631 
   3632 int test (int i, double x);
   3633 struct s1 {int (*f) (int a);};
   3634 struct s2 {int (*f) (double a);};
   3635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3636 int argc;
   3637 char **argv;
   3638 int
   3639 main ()
   3640 {
   3641 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3642   ;
   3643   return 0;
   3644 }
   3645 _ACEOF
   3646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3647 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3648 do
   3649   CC="$ac_save_CC $ac_arg"
   3650   if ac_fn_c_try_compile "$LINENO"; then :
   3651   ac_cv_prog_cc_c89=$ac_arg
   3652 fi
   3653 rm -f core conftest.err conftest.$ac_objext
   3654   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3655 done
   3656 rm -f conftest.$ac_ext
   3657 CC=$ac_save_CC
   3658 
   3659 fi
   3660 # AC_CACHE_VAL
   3661 case "x$ac_cv_prog_cc_c89" in
   3662   x)
   3663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3664 $as_echo "none needed" >&6; } ;;
   3665   xno)
   3666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3667 $as_echo "unsupported" >&6; } ;;
   3668   *)
   3669     CC="$CC $ac_cv_prog_cc_c89"
   3670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3671 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3672 esac
   3673 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3674 
   3675 fi
   3676 
   3677 ac_ext=c
   3678 ac_cpp='$CPP $CPPFLAGS'
   3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3682 
   3683 ac_ext=cpp
   3684 ac_cpp='$CXXCPP $CPPFLAGS'
   3685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3688 if test -z "$CXX"; then
   3689   if test -n "$CCC"; then
   3690     CXX=$CCC
   3691   else
   3692     if test -n "$ac_tool_prefix"; then
   3693   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3694   do
   3695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3698 $as_echo_n "checking for $ac_word... " >&6; }
   3699 if ${ac_cv_prog_CXX+:} false; then :
   3700   $as_echo_n "(cached) " >&6
   3701 else
   3702   if test -n "$CXX"; then
   3703   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   3704 else
   3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3706 for as_dir in $PATH
   3707 do
   3708   IFS=$as_save_IFS
   3709   test -z "$as_dir" && as_dir=.
   3710     for ac_exec_ext in '' $ac_executable_extensions; do
   3711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3712     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   3713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3714     break 2
   3715   fi
   3716 done
   3717   done
   3718 IFS=$as_save_IFS
   3719 
   3720 fi
   3721 fi
   3722 CXX=$ac_cv_prog_CXX
   3723 if test -n "$CXX"; then
   3724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   3725 $as_echo "$CXX" >&6; }
   3726 else
   3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3728 $as_echo "no" >&6; }
   3729 fi
   3730 
   3731 
   3732     test -n "$CXX" && break
   3733   done
   3734 fi
   3735 if test -z "$CXX"; then
   3736   ac_ct_CXX=$CXX
   3737   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3738 do
   3739   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3740 set dummy $ac_prog; ac_word=$2
   3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3742 $as_echo_n "checking for $ac_word... " >&6; }
   3743 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   3744   $as_echo_n "(cached) " >&6
   3745 else
   3746   if test -n "$ac_ct_CXX"; then
   3747   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   3748 else
   3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3750 for as_dir in $PATH
   3751 do
   3752   IFS=$as_save_IFS
   3753   test -z "$as_dir" && as_dir=.
   3754     for ac_exec_ext in '' $ac_executable_extensions; do
   3755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3756     ac_cv_prog_ac_ct_CXX="$ac_prog"
   3757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3758     break 2
   3759   fi
   3760 done
   3761   done
   3762 IFS=$as_save_IFS
   3763 
   3764 fi
   3765 fi
   3766 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   3767 if test -n "$ac_ct_CXX"; then
   3768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   3769 $as_echo "$ac_ct_CXX" >&6; }
   3770 else
   3771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3772 $as_echo "no" >&6; }
   3773 fi
   3774 
   3775 
   3776   test -n "$ac_ct_CXX" && break
   3777 done
   3778 
   3779   if test "x$ac_ct_CXX" = x; then
   3780     CXX="g++"
   3781   else
   3782     case $cross_compiling:$ac_tool_warned in
   3783 yes:)
   3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3786 ac_tool_warned=yes ;;
   3787 esac
   3788     CXX=$ac_ct_CXX
   3789   fi
   3790 fi
   3791 
   3792   fi
   3793 fi
   3794 # Provide some information about the compiler.
   3795 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   3796 set X $ac_compile
   3797 ac_compiler=$2
   3798 for ac_option in --version -v -V -qversion; do
   3799   { { ac_try="$ac_compiler $ac_option >&5"
   3800 case "(($ac_try" in
   3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3802   *) ac_try_echo=$ac_try;;
   3803 esac
   3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3805 $as_echo "$ac_try_echo"; } >&5
   3806   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3807   ac_status=$?
   3808   if test -s conftest.err; then
   3809     sed '10a\
   3810 ... rest of stderr output deleted ...
   3811          10q' conftest.err >conftest.er1
   3812     cat conftest.er1 >&5
   3813   fi
   3814   rm -f conftest.er1 conftest.err
   3815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3816   test $ac_status = 0; }
   3817 done
   3818 
   3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   3820 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   3821 if ${ac_cv_cxx_compiler_gnu+:} false; then :
   3822   $as_echo_n "(cached) " >&6
   3823 else
   3824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3825 /* end confdefs.h.  */
   3826 
   3827 int
   3828 main ()
   3829 {
   3830 #ifndef __GNUC__
   3831        choke me
   3832 #endif
   3833 
   3834   ;
   3835   return 0;
   3836 }
   3837 _ACEOF
   3838 if ac_fn_cxx_try_compile "$LINENO"; then :
   3839   ac_compiler_gnu=yes
   3840 else
   3841   ac_compiler_gnu=no
   3842 fi
   3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3844 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   3845 
   3846 fi
   3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   3848 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   3849 if test $ac_compiler_gnu = yes; then
   3850   GXX=yes
   3851 else
   3852   GXX=
   3853 fi
   3854 ac_test_CXXFLAGS=${CXXFLAGS+set}
   3855 ac_save_CXXFLAGS=$CXXFLAGS
   3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   3857 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   3858 if ${ac_cv_prog_cxx_g+:} false; then :
   3859   $as_echo_n "(cached) " >&6
   3860 else
   3861   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   3862    ac_cxx_werror_flag=yes
   3863    ac_cv_prog_cxx_g=no
   3864    CXXFLAGS="-g"
   3865    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3866 /* end confdefs.h.  */
   3867 
   3868 int
   3869 main ()
   3870 {
   3871 
   3872   ;
   3873   return 0;
   3874 }
   3875 _ACEOF
   3876 if ac_fn_cxx_try_compile "$LINENO"; then :
   3877   ac_cv_prog_cxx_g=yes
   3878 else
   3879   CXXFLAGS=""
   3880       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3881 /* end confdefs.h.  */
   3882 
   3883 int
   3884 main ()
   3885 {
   3886 
   3887   ;
   3888   return 0;
   3889 }
   3890 _ACEOF
   3891 if ac_fn_cxx_try_compile "$LINENO"; then :
   3892 
   3893 else
   3894   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3895 	 CXXFLAGS="-g"
   3896 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3897 /* end confdefs.h.  */
   3898 
   3899 int
   3900 main ()
   3901 {
   3902 
   3903   ;
   3904   return 0;
   3905 }
   3906 _ACEOF
   3907 if ac_fn_cxx_try_compile "$LINENO"; then :
   3908   ac_cv_prog_cxx_g=yes
   3909 fi
   3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3911 fi
   3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3913 fi
   3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3915    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3916 fi
   3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   3918 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   3919 if test "$ac_test_CXXFLAGS" = set; then
   3920   CXXFLAGS=$ac_save_CXXFLAGS
   3921 elif test $ac_cv_prog_cxx_g = yes; then
   3922   if test "$GXX" = yes; then
   3923     CXXFLAGS="-g -O2"
   3924   else
   3925     CXXFLAGS="-g"
   3926   fi
   3927 else
   3928   if test "$GXX" = yes; then
   3929     CXXFLAGS="-O2"
   3930   else
   3931     CXXFLAGS=
   3932   fi
   3933 fi
   3934 ac_ext=c
   3935 ac_cpp='$CPP $CPPFLAGS'
   3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3939 
   3940 
   3941 
   3942 ac_ext=c
   3943 ac_cpp='$CPP $CPPFLAGS'
   3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3948 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3949 # On Suns, sometimes $CPP names a directory.
   3950 if test -n "$CPP" && test -d "$CPP"; then
   3951   CPP=
   3952 fi
   3953 if test -z "$CPP"; then
   3954   if ${ac_cv_prog_CPP+:} false; then :
   3955   $as_echo_n "(cached) " >&6
   3956 else
   3957       # Double quotes because CPP needs to be expanded
   3958     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3959     do
   3960       ac_preproc_ok=false
   3961 for ac_c_preproc_warn_flag in '' yes
   3962 do
   3963   # Use a header file that comes with gcc, so configuring glibc
   3964   # with a fresh cross-compiler works.
   3965   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3966   # <limits.h> exists even on freestanding compilers.
   3967   # On the NeXT, cc -E runs the code through the compiler's parser,
   3968   # not just through cpp. "Syntax error" is here to catch this case.
   3969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3970 /* end confdefs.h.  */
   3971 #ifdef __STDC__
   3972 # include <limits.h>
   3973 #else
   3974 # include <assert.h>
   3975 #endif
   3976 		     Syntax error
   3977 _ACEOF
   3978 if ac_fn_c_try_cpp "$LINENO"; then :
   3979 
   3980 else
   3981   # Broken: fails on valid input.
   3982 continue
   3983 fi
   3984 rm -f conftest.err conftest.i conftest.$ac_ext
   3985 
   3986   # OK, works on sane cases.  Now check whether nonexistent headers
   3987   # can be detected and how.
   3988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3989 /* end confdefs.h.  */
   3990 #include <ac_nonexistent.h>
   3991 _ACEOF
   3992 if ac_fn_c_try_cpp "$LINENO"; then :
   3993   # Broken: success on invalid input.
   3994 continue
   3995 else
   3996   # Passes both tests.
   3997 ac_preproc_ok=:
   3998 break
   3999 fi
   4000 rm -f conftest.err conftest.i conftest.$ac_ext
   4001 
   4002 done
   4003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4004 rm -f conftest.i conftest.err conftest.$ac_ext
   4005 if $ac_preproc_ok; then :
   4006   break
   4007 fi
   4008 
   4009     done
   4010     ac_cv_prog_CPP=$CPP
   4011 
   4012 fi
   4013   CPP=$ac_cv_prog_CPP
   4014 else
   4015   ac_cv_prog_CPP=$CPP
   4016 fi
   4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4018 $as_echo "$CPP" >&6; }
   4019 ac_preproc_ok=false
   4020 for ac_c_preproc_warn_flag in '' yes
   4021 do
   4022   # Use a header file that comes with gcc, so configuring glibc
   4023   # with a fresh cross-compiler works.
   4024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4025   # <limits.h> exists even on freestanding compilers.
   4026   # On the NeXT, cc -E runs the code through the compiler's parser,
   4027   # not just through cpp. "Syntax error" is here to catch this case.
   4028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4029 /* end confdefs.h.  */
   4030 #ifdef __STDC__
   4031 # include <limits.h>
   4032 #else
   4033 # include <assert.h>
   4034 #endif
   4035 		     Syntax error
   4036 _ACEOF
   4037 if ac_fn_c_try_cpp "$LINENO"; then :
   4038 
   4039 else
   4040   # Broken: fails on valid input.
   4041 continue
   4042 fi
   4043 rm -f conftest.err conftest.i conftest.$ac_ext
   4044 
   4045   # OK, works on sane cases.  Now check whether nonexistent headers
   4046   # can be detected and how.
   4047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4048 /* end confdefs.h.  */
   4049 #include <ac_nonexistent.h>
   4050 _ACEOF
   4051 if ac_fn_c_try_cpp "$LINENO"; then :
   4052   # Broken: success on invalid input.
   4053 continue
   4054 else
   4055   # Passes both tests.
   4056 ac_preproc_ok=:
   4057 break
   4058 fi
   4059 rm -f conftest.err conftest.i conftest.$ac_ext
   4060 
   4061 done
   4062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4063 rm -f conftest.i conftest.err conftest.$ac_ext
   4064 if $ac_preproc_ok; then :
   4065 
   4066 else
   4067   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4069 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4070 See \`config.log' for more details" "$LINENO" 5; }
   4071 fi
   4072 
   4073 ac_ext=c
   4074 ac_cpp='$CPP $CPPFLAGS'
   4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4078 
   4079 
   4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4081 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4082 if ${ac_cv_path_GREP+:} false; then :
   4083   $as_echo_n "(cached) " >&6
   4084 else
   4085   if test -z "$GREP"; then
   4086   ac_path_GREP_found=false
   4087   # Loop through the user's path and test for each of PROGNAME-LIST
   4088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4090 do
   4091   IFS=$as_save_IFS
   4092   test -z "$as_dir" && as_dir=.
   4093     for ac_prog in grep ggrep; do
   4094     for ac_exec_ext in '' $ac_executable_extensions; do
   4095       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4096       as_fn_executable_p "$ac_path_GREP" || continue
   4097 # Check for GNU ac_path_GREP and select it if it is found.
   4098   # Check for GNU $ac_path_GREP
   4099 case `"$ac_path_GREP" --version 2>&1` in
   4100 *GNU*)
   4101   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4102 *)
   4103   ac_count=0
   4104   $as_echo_n 0123456789 >"conftest.in"
   4105   while :
   4106   do
   4107     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4108     mv "conftest.tmp" "conftest.in"
   4109     cp "conftest.in" "conftest.nl"
   4110     $as_echo 'GREP' >> "conftest.nl"
   4111     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4112     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4113     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4114     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4115       # Best one so far, save it but keep looking for a better one
   4116       ac_cv_path_GREP="$ac_path_GREP"
   4117       ac_path_GREP_max=$ac_count
   4118     fi
   4119     # 10*(2^10) chars as input seems more than enough
   4120     test $ac_count -gt 10 && break
   4121   done
   4122   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4123 esac
   4124 
   4125       $ac_path_GREP_found && break 3
   4126     done
   4127   done
   4128   done
   4129 IFS=$as_save_IFS
   4130   if test -z "$ac_cv_path_GREP"; then
   4131     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4132   fi
   4133 else
   4134   ac_cv_path_GREP=$GREP
   4135 fi
   4136 
   4137 fi
   4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4139 $as_echo "$ac_cv_path_GREP" >&6; }
   4140  GREP="$ac_cv_path_GREP"
   4141 
   4142 
   4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4144 $as_echo_n "checking for egrep... " >&6; }
   4145 if ${ac_cv_path_EGREP+:} false; then :
   4146   $as_echo_n "(cached) " >&6
   4147 else
   4148   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4149    then ac_cv_path_EGREP="$GREP -E"
   4150    else
   4151      if test -z "$EGREP"; then
   4152   ac_path_EGREP_found=false
   4153   # Loop through the user's path and test for each of PROGNAME-LIST
   4154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4156 do
   4157   IFS=$as_save_IFS
   4158   test -z "$as_dir" && as_dir=.
   4159     for ac_prog in egrep; do
   4160     for ac_exec_ext in '' $ac_executable_extensions; do
   4161       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4162       as_fn_executable_p "$ac_path_EGREP" || continue
   4163 # Check for GNU ac_path_EGREP and select it if it is found.
   4164   # Check for GNU $ac_path_EGREP
   4165 case `"$ac_path_EGREP" --version 2>&1` in
   4166 *GNU*)
   4167   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4168 *)
   4169   ac_count=0
   4170   $as_echo_n 0123456789 >"conftest.in"
   4171   while :
   4172   do
   4173     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4174     mv "conftest.tmp" "conftest.in"
   4175     cp "conftest.in" "conftest.nl"
   4176     $as_echo 'EGREP' >> "conftest.nl"
   4177     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4178     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4179     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4180     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4181       # Best one so far, save it but keep looking for a better one
   4182       ac_cv_path_EGREP="$ac_path_EGREP"
   4183       ac_path_EGREP_max=$ac_count
   4184     fi
   4185     # 10*(2^10) chars as input seems more than enough
   4186     test $ac_count -gt 10 && break
   4187   done
   4188   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4189 esac
   4190 
   4191       $ac_path_EGREP_found && break 3
   4192     done
   4193   done
   4194   done
   4195 IFS=$as_save_IFS
   4196   if test -z "$ac_cv_path_EGREP"; then
   4197     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4198   fi
   4199 else
   4200   ac_cv_path_EGREP=$EGREP
   4201 fi
   4202 
   4203    fi
   4204 fi
   4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4206 $as_echo "$ac_cv_path_EGREP" >&6; }
   4207  EGREP="$ac_cv_path_EGREP"
   4208 
   4209 
   4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4211 $as_echo_n "checking for ANSI C header files... " >&6; }
   4212 if ${ac_cv_header_stdc+:} false; then :
   4213   $as_echo_n "(cached) " >&6
   4214 else
   4215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4216 /* end confdefs.h.  */
   4217 #include <stdlib.h>
   4218 #include <stdarg.h>
   4219 #include <string.h>
   4220 #include <float.h>
   4221 
   4222 int
   4223 main ()
   4224 {
   4225 
   4226   ;
   4227   return 0;
   4228 }
   4229 _ACEOF
   4230 if ac_fn_c_try_compile "$LINENO"; then :
   4231   ac_cv_header_stdc=yes
   4232 else
   4233   ac_cv_header_stdc=no
   4234 fi
   4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4236 
   4237 if test $ac_cv_header_stdc = yes; then
   4238   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4240 /* end confdefs.h.  */
   4241 #include <string.h>
   4242 
   4243 _ACEOF
   4244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4245   $EGREP "memchr" >/dev/null 2>&1; then :
   4246 
   4247 else
   4248   ac_cv_header_stdc=no
   4249 fi
   4250 rm -f conftest*
   4251 
   4252 fi
   4253 
   4254 if test $ac_cv_header_stdc = yes; then
   4255   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4257 /* end confdefs.h.  */
   4258 #include <stdlib.h>
   4259 
   4260 _ACEOF
   4261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4262   $EGREP "free" >/dev/null 2>&1; then :
   4263 
   4264 else
   4265   ac_cv_header_stdc=no
   4266 fi
   4267 rm -f conftest*
   4268 
   4269 fi
   4270 
   4271 if test $ac_cv_header_stdc = yes; then
   4272   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4273   if test "$cross_compiling" = yes; then :
   4274   :
   4275 else
   4276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4277 /* end confdefs.h.  */
   4278 #include <ctype.h>
   4279 #include <stdlib.h>
   4280 #if ((' ' & 0x0FF) == 0x020)
   4281 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4282 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4283 #else
   4284 # define ISLOWER(c) \
   4285 		   (('a' <= (c) && (c) <= 'i') \
   4286 		     || ('j' <= (c) && (c) <= 'r') \
   4287 		     || ('s' <= (c) && (c) <= 'z'))
   4288 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4289 #endif
   4290 
   4291 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4292 int
   4293 main ()
   4294 {
   4295   int i;
   4296   for (i = 0; i < 256; i++)
   4297     if (XOR (islower (i), ISLOWER (i))
   4298 	|| toupper (i) != TOUPPER (i))
   4299       return 2;
   4300   return 0;
   4301 }
   4302 _ACEOF
   4303 if ac_fn_c_try_run "$LINENO"; then :
   4304 
   4305 else
   4306   ac_cv_header_stdc=no
   4307 fi
   4308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4309   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4310 fi
   4311 
   4312 fi
   4313 fi
   4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4315 $as_echo "$ac_cv_header_stdc" >&6; }
   4316 if test $ac_cv_header_stdc = yes; then
   4317 
   4318 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4319 
   4320 fi
   4321 
   4322 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4323 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4324 		  inttypes.h stdint.h unistd.h
   4325 do :
   4326   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4327 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4328 "
   4329 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4330   cat >>confdefs.h <<_ACEOF
   4331 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4332 _ACEOF
   4333 
   4334 fi
   4335 
   4336 done
   4337 
   4338 
   4339 
   4340   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4341 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   4342   MINIX=yes
   4343 else
   4344   MINIX=
   4345 fi
   4346 
   4347 
   4348   if test "$MINIX" = yes; then
   4349 
   4350 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4351 
   4352 
   4353 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4354 
   4355 
   4356 $as_echo "#define _MINIX 1" >>confdefs.h
   4357 
   4358   fi
   4359 
   4360 
   4361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4362 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4363 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   4364   $as_echo_n "(cached) " >&6
   4365 else
   4366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4367 /* end confdefs.h.  */
   4368 
   4369 #         define __EXTENSIONS__ 1
   4370           $ac_includes_default
   4371 int
   4372 main ()
   4373 {
   4374 
   4375   ;
   4376   return 0;
   4377 }
   4378 _ACEOF
   4379 if ac_fn_c_try_compile "$LINENO"; then :
   4380   ac_cv_safe_to_define___extensions__=yes
   4381 else
   4382   ac_cv_safe_to_define___extensions__=no
   4383 fi
   4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4385 fi
   4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4387 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4388   test $ac_cv_safe_to_define___extensions__ = yes &&
   4389     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4390 
   4391   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4392 
   4393   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4394 
   4395   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4396 
   4397   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4398 
   4399 
   4400 ac_aux_dir=
   4401 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   4402   if test -f "$ac_dir/install-sh"; then
   4403     ac_aux_dir=$ac_dir
   4404     ac_install_sh="$ac_aux_dir/install-sh -c"
   4405     break
   4406   elif test -f "$ac_dir/install.sh"; then
   4407     ac_aux_dir=$ac_dir
   4408     ac_install_sh="$ac_aux_dir/install.sh -c"
   4409     break
   4410   elif test -f "$ac_dir/shtool"; then
   4411     ac_aux_dir=$ac_dir
   4412     ac_install_sh="$ac_aux_dir/shtool install -c"
   4413     break
   4414   fi
   4415 done
   4416 if test -z "$ac_aux_dir"; then
   4417   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   4418 fi
   4419 
   4420 # These three variables are undocumented and unsupported,
   4421 # and are intended to be withdrawn in a future Autoconf release.
   4422 # They can cause serious problems if a builder's source tree is in a directory
   4423 # whose full name contains unusual characters.
   4424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   4425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   4426 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   4427 
   4428 
   4429 # Make sure we can run config.sub.
   4430 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   4431   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   4432 
   4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   4434 $as_echo_n "checking build system type... " >&6; }
   4435 if ${ac_cv_build+:} false; then :
   4436   $as_echo_n "(cached) " >&6
   4437 else
   4438   ac_build_alias=$build_alias
   4439 test "x$ac_build_alias" = x &&
   4440   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   4441 test "x$ac_build_alias" = x &&
   4442   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   4443 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   4444   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   4445 
   4446 fi
   4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   4448 $as_echo "$ac_cv_build" >&6; }
   4449 case $ac_cv_build in
   4450 *-*-*) ;;
   4451 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   4452 esac
   4453 build=$ac_cv_build
   4454 ac_save_IFS=$IFS; IFS='-'
   4455 set x $ac_cv_build
   4456 shift
   4457 build_cpu=$1
   4458 build_vendor=$2
   4459 shift; shift
   4460 # Remember, the first character of IFS is used to create $*,
   4461 # except with old shells:
   4462 build_os=$*
   4463 IFS=$ac_save_IFS
   4464 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   4465 
   4466 
   4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   4468 $as_echo_n "checking host system type... " >&6; }
   4469 if ${ac_cv_host+:} false; then :
   4470   $as_echo_n "(cached) " >&6
   4471 else
   4472   if test "x$host_alias" = x; then
   4473   ac_cv_host=$ac_cv_build
   4474 else
   4475   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   4476     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   4477 fi
   4478 
   4479 fi
   4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   4481 $as_echo "$ac_cv_host" >&6; }
   4482 case $ac_cv_host in
   4483 *-*-*) ;;
   4484 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   4485 esac
   4486 host=$ac_cv_host
   4487 ac_save_IFS=$IFS; IFS='-'
   4488 set x $ac_cv_host
   4489 shift
   4490 host_cpu=$1
   4491 host_vendor=$2
   4492 shift; shift
   4493 # Remember, the first character of IFS is used to create $*,
   4494 # except with old shells:
   4495 host_os=$*
   4496 IFS=$ac_save_IFS
   4497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   4498 
   4499 
   4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   4501 $as_echo_n "checking target system type... " >&6; }
   4502 if ${ac_cv_target+:} false; then :
   4503   $as_echo_n "(cached) " >&6
   4504 else
   4505   if test "x$target_alias" = x; then
   4506   ac_cv_target=$ac_cv_host
   4507 else
   4508   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   4509     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   4510 fi
   4511 
   4512 fi
   4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   4514 $as_echo "$ac_cv_target" >&6; }
   4515 case $ac_cv_target in
   4516 *-*-*) ;;
   4517 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   4518 esac
   4519 target=$ac_cv_target
   4520 ac_save_IFS=$IFS; IFS='-'
   4521 set x $ac_cv_target
   4522 shift
   4523 target_cpu=$1
   4524 target_vendor=$2
   4525 shift; shift
   4526 # Remember, the first character of IFS is used to create $*,
   4527 # except with old shells:
   4528 target_os=$*
   4529 IFS=$ac_save_IFS
   4530 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   4531 
   4532 
   4533 # The aliases save the names the user supplied, while $host etc.
   4534 # will get canonicalized.
   4535 test -n "$target_alias" &&
   4536   test "$program_prefix$program_suffix$program_transform_name" = \
   4537     NONENONEs,x,x, &&
   4538   program_prefix=${target_alias}-
   4539 
   4540 # The tests for host and target for $enable_largefile require
   4541 # canonical names.
   4542 
   4543 
   4544 
   4545 # As the $enable_largefile decision depends on --enable-plugins we must set it
   4546 # even in directories otherwise not depending on the $plugins option.
   4547 
   4548 
   4549   maybe_plugins=no
   4550   for ac_header in dlfcn.h
   4551 do :
   4552   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   4553 "
   4554 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   4555   cat >>confdefs.h <<_ACEOF
   4556 #define HAVE_DLFCN_H 1
   4557 _ACEOF
   4558  maybe_plugins=yes
   4559 fi
   4560 
   4561 done
   4562 
   4563   for ac_header in windows.h
   4564 do :
   4565   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
   4566 "
   4567 if test "x$ac_cv_header_windows_h" = xyes; then :
   4568   cat >>confdefs.h <<_ACEOF
   4569 #define HAVE_WINDOWS_H 1
   4570 _ACEOF
   4571  maybe_plugins=yes
   4572 fi
   4573 
   4574 done
   4575 
   4576 
   4577   # Check whether --enable-plugins was given.
   4578 if test "${enable_plugins+set}" = set; then :
   4579   enableval=$enable_plugins; case "${enableval}" in
   4580       no) plugins=no ;;
   4581       *) plugins=yes
   4582          if test "$maybe_plugins" != "yes" ; then
   4583 	   as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
   4584 	 fi ;;
   4585      esac
   4586 else
   4587   plugins=$maybe_plugins
   4588 
   4589 fi
   4590 
   4591   if test "$plugins" = "yes"; then
   4592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
   4593 $as_echo_n "checking for library containing dlsym... " >&6; }
   4594 if ${ac_cv_search_dlsym+:} false; then :
   4595   $as_echo_n "(cached) " >&6
   4596 else
   4597   ac_func_search_save_LIBS=$LIBS
   4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4599 /* end confdefs.h.  */
   4600 
   4601 /* Override any GCC internal prototype to avoid an error.
   4602    Use char because int might match the return type of a GCC
   4603    builtin and then its argument prototype would still apply.  */
   4604 #ifdef __cplusplus
   4605 extern "C"
   4606 #endif
   4607 char dlsym ();
   4608 int
   4609 main ()
   4610 {
   4611 return dlsym ();
   4612   ;
   4613   return 0;
   4614 }
   4615 _ACEOF
   4616 for ac_lib in '' dl; do
   4617   if test -z "$ac_lib"; then
   4618     ac_res="none required"
   4619   else
   4620     ac_res=-l$ac_lib
   4621     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   4622   fi
   4623   if ac_fn_c_try_link "$LINENO"; then :
   4624   ac_cv_search_dlsym=$ac_res
   4625 fi
   4626 rm -f core conftest.err conftest.$ac_objext \
   4627     conftest$ac_exeext
   4628   if ${ac_cv_search_dlsym+:} false; then :
   4629   break
   4630 fi
   4631 done
   4632 if ${ac_cv_search_dlsym+:} false; then :
   4633 
   4634 else
   4635   ac_cv_search_dlsym=no
   4636 fi
   4637 rm conftest.$ac_ext
   4638 LIBS=$ac_func_search_save_LIBS
   4639 fi
   4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
   4641 $as_echo "$ac_cv_search_dlsym" >&6; }
   4642 ac_res=$ac_cv_search_dlsym
   4643 if test "$ac_res" != no; then :
   4644   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   4645 
   4646 fi
   4647 
   4648   fi
   4649 
   4650 
   4651 case "${host}" in
   4652   sparc-*-solaris*|i[3-7]86-*-solaris*)
   4653     # On native 32bit sparc and ia32 solaris, large-file and procfs support
   4654     # are mutually exclusive; and without procfs support, the bfd/ elf module
   4655     # cannot provide certain routines such as elfcore_write_prpsinfo
   4656     # or elfcore_write_prstatus.  So unless the user explicitly requested
   4657     # large-file support through the --enable-largefile switch, disable
   4658     # large-file support in favor of procfs support.
   4659     test "${target}" = "${host}" -a "x$plugins" = xno \
   4660       && : ${enable_largefile="no"}
   4661     ;;
   4662 esac
   4663 
   4664 # Check whether --enable-largefile was given.
   4665 if test "${enable_largefile+set}" = set; then :
   4666   enableval=$enable_largefile;
   4667 fi
   4668 
   4669 if test "$enable_largefile" != no; then
   4670 
   4671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   4672 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   4673 if ${ac_cv_sys_largefile_CC+:} false; then :
   4674   $as_echo_n "(cached) " >&6
   4675 else
   4676   ac_cv_sys_largefile_CC=no
   4677      if test "$GCC" != yes; then
   4678        ac_save_CC=$CC
   4679        while :; do
   4680 	 # IRIX 6.2 and later do not support large files by default,
   4681 	 # so use the C compiler's -n32 option if that helps.
   4682 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4683 /* end confdefs.h.  */
   4684 #include <sys/types.h>
   4685  /* Check that off_t can represent 2**63 - 1 correctly.
   4686     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4687     since some C++ compilers masquerading as C compilers
   4688     incorrectly reject 9223372036854775807.  */
   4689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4690   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4691 		       && LARGE_OFF_T % 2147483647 == 1)
   4692 		      ? 1 : -1];
   4693 int
   4694 main ()
   4695 {
   4696 
   4697   ;
   4698   return 0;
   4699 }
   4700 _ACEOF
   4701 	 if ac_fn_c_try_compile "$LINENO"; then :
   4702   break
   4703 fi
   4704 rm -f core conftest.err conftest.$ac_objext
   4705 	 CC="$CC -n32"
   4706 	 if ac_fn_c_try_compile "$LINENO"; then :
   4707   ac_cv_sys_largefile_CC=' -n32'; break
   4708 fi
   4709 rm -f core conftest.err conftest.$ac_objext
   4710 	 break
   4711        done
   4712        CC=$ac_save_CC
   4713        rm -f conftest.$ac_ext
   4714     fi
   4715 fi
   4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   4717 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   4718   if test "$ac_cv_sys_largefile_CC" != no; then
   4719     CC=$CC$ac_cv_sys_largefile_CC
   4720   fi
   4721 
   4722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   4723 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   4724 if ${ac_cv_sys_file_offset_bits+:} false; then :
   4725   $as_echo_n "(cached) " >&6
   4726 else
   4727   while :; do
   4728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4729 /* end confdefs.h.  */
   4730 #include <sys/types.h>
   4731  /* Check that off_t can represent 2**63 - 1 correctly.
   4732     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4733     since some C++ compilers masquerading as C compilers
   4734     incorrectly reject 9223372036854775807.  */
   4735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4736   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4737 		       && LARGE_OFF_T % 2147483647 == 1)
   4738 		      ? 1 : -1];
   4739 int
   4740 main ()
   4741 {
   4742 
   4743   ;
   4744   return 0;
   4745 }
   4746 _ACEOF
   4747 if ac_fn_c_try_compile "$LINENO"; then :
   4748   ac_cv_sys_file_offset_bits=no; break
   4749 fi
   4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4752 /* end confdefs.h.  */
   4753 #define _FILE_OFFSET_BITS 64
   4754 #include <sys/types.h>
   4755  /* Check that off_t can represent 2**63 - 1 correctly.
   4756     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4757     since some C++ compilers masquerading as C compilers
   4758     incorrectly reject 9223372036854775807.  */
   4759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4760   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4761 		       && LARGE_OFF_T % 2147483647 == 1)
   4762 		      ? 1 : -1];
   4763 int
   4764 main ()
   4765 {
   4766 
   4767   ;
   4768   return 0;
   4769 }
   4770 _ACEOF
   4771 if ac_fn_c_try_compile "$LINENO"; then :
   4772   ac_cv_sys_file_offset_bits=64; break
   4773 fi
   4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4775   ac_cv_sys_file_offset_bits=unknown
   4776   break
   4777 done
   4778 fi
   4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   4780 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   4781 case $ac_cv_sys_file_offset_bits in #(
   4782   no | unknown) ;;
   4783   *)
   4784 cat >>confdefs.h <<_ACEOF
   4785 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   4786 _ACEOF
   4787 ;;
   4788 esac
   4789 rm -rf conftest*
   4790   if test $ac_cv_sys_file_offset_bits = unknown; then
   4791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   4792 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   4793 if ${ac_cv_sys_large_files+:} false; then :
   4794   $as_echo_n "(cached) " >&6
   4795 else
   4796   while :; do
   4797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4798 /* end confdefs.h.  */
   4799 #include <sys/types.h>
   4800  /* Check that off_t can represent 2**63 - 1 correctly.
   4801     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4802     since some C++ compilers masquerading as C compilers
   4803     incorrectly reject 9223372036854775807.  */
   4804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4805   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4806 		       && LARGE_OFF_T % 2147483647 == 1)
   4807 		      ? 1 : -1];
   4808 int
   4809 main ()
   4810 {
   4811 
   4812   ;
   4813   return 0;
   4814 }
   4815 _ACEOF
   4816 if ac_fn_c_try_compile "$LINENO"; then :
   4817   ac_cv_sys_large_files=no; break
   4818 fi
   4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4821 /* end confdefs.h.  */
   4822 #define _LARGE_FILES 1
   4823 #include <sys/types.h>
   4824  /* Check that off_t can represent 2**63 - 1 correctly.
   4825     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4826     since some C++ compilers masquerading as C compilers
   4827     incorrectly reject 9223372036854775807.  */
   4828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4829   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4830 		       && LARGE_OFF_T % 2147483647 == 1)
   4831 		      ? 1 : -1];
   4832 int
   4833 main ()
   4834 {
   4835 
   4836   ;
   4837   return 0;
   4838 }
   4839 _ACEOF
   4840 if ac_fn_c_try_compile "$LINENO"; then :
   4841   ac_cv_sys_large_files=1; break
   4842 fi
   4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4844   ac_cv_sys_large_files=unknown
   4845   break
   4846 done
   4847 fi
   4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   4849 $as_echo "$ac_cv_sys_large_files" >&6; }
   4850 case $ac_cv_sys_large_files in #(
   4851   no | unknown) ;;
   4852   *)
   4853 cat >>confdefs.h <<_ACEOF
   4854 #define _LARGE_FILES $ac_cv_sys_large_files
   4855 _ACEOF
   4856 ;;
   4857 esac
   4858 rm -rf conftest*
   4859   fi
   4860 
   4861 
   4862 fi
   4863 
   4864 
   4865 
   4866 
   4867 
   4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
   4869 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
   4870 if ${am_cv_prog_cc_stdc+:} false; then :
   4871   $as_echo_n "(cached) " >&6
   4872 else
   4873   am_cv_prog_cc_stdc=no
   4874 ac_save_CC="$CC"
   4875 # Don't try gcc -ansi; that turns off useful extensions and
   4876 # breaks some systems' header files.
   4877 # AIX			-qlanglvl=ansi
   4878 # Ultrix and OSF/1	-std1
   4879 # HP-UX 10.20 and later	-Ae
   4880 # HP-UX older versions	-Aa -D_HPUX_SOURCE
   4881 # SVR4			-Xc -D__EXTENSIONS__
   4882 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4883 do
   4884   CC="$ac_save_CC $ac_arg"
   4885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4886 /* end confdefs.h.  */
   4887 #include <stdarg.h>
   4888 #include <stdio.h>
   4889 #include <sys/types.h>
   4890 #include <sys/stat.h>
   4891 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4892 struct buf { int x; };
   4893 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4894 static char *e (p, i)
   4895      char **p;
   4896      int i;
   4897 {
   4898   return p[i];
   4899 }
   4900 static char *f (char * (*g) (char **, int), char **p, ...)
   4901 {
   4902   char *s;
   4903   va_list v;
   4904   va_start (v,p);
   4905   s = g (p, va_arg (v,int));
   4906   va_end (v);
   4907   return s;
   4908 }
   4909 int test (int i, double x);
   4910 struct s1 {int (*f) (int a);};
   4911 struct s2 {int (*f) (double a);};
   4912 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4913 int argc;
   4914 char **argv;
   4915 
   4916 int
   4917 main ()
   4918 {
   4919 
   4920 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4921 
   4922   ;
   4923   return 0;
   4924 }
   4925 _ACEOF
   4926 if ac_fn_c_try_compile "$LINENO"; then :
   4927   am_cv_prog_cc_stdc="$ac_arg"; break
   4928 fi
   4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4930 done
   4931 CC="$ac_save_CC"
   4932 
   4933 fi
   4934 
   4935 if test -z "$am_cv_prog_cc_stdc"; then
   4936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4937 $as_echo "none needed" >&6; }
   4938 else
   4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
   4940 $as_echo "$am_cv_prog_cc_stdc" >&6; }
   4941 fi
   4942 case "x$am_cv_prog_cc_stdc" in
   4943   x|xno) ;;
   4944   *) CC="$CC $am_cv_prog_cc_stdc" ;;
   4945 esac
   4946 
   4947 # Expand $ac_aux_dir to an absolute path.
   4948 am_aux_dir=`cd "$ac_aux_dir" && pwd`
   4949 
   4950 if test x"${install_sh+set}" != xset; then
   4951   case $am_aux_dir in
   4952   *\ * | *\	*)
   4953     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   4954   *)
   4955     install_sh="\${SHELL} $am_aux_dir/install-sh"
   4956   esac
   4957 fi
   4958 
   4959 # Installed binaries are usually stripped using 'strip' when the user
   4960 # run "make install-strip".  However 'strip' might not be the right
   4961 # tool to use in cross-compilation environments, therefore Automake
   4962 # will honor the 'STRIP' environment variable to overrule this program.
   4963 if test "$cross_compiling" != no; then
   4964   if test -n "$ac_tool_prefix"; then
   4965   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   4966 set dummy ${ac_tool_prefix}strip; ac_word=$2
   4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4968 $as_echo_n "checking for $ac_word... " >&6; }
   4969 if ${ac_cv_prog_STRIP+:} false; then :
   4970   $as_echo_n "(cached) " >&6
   4971 else
   4972   if test -n "$STRIP"; then
   4973   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   4974 else
   4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4976 for as_dir in $PATH
   4977 do
   4978   IFS=$as_save_IFS
   4979   test -z "$as_dir" && as_dir=.
   4980     for ac_exec_ext in '' $ac_executable_extensions; do
   4981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4982     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   4983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4984     break 2
   4985   fi
   4986 done
   4987   done
   4988 IFS=$as_save_IFS
   4989 
   4990 fi
   4991 fi
   4992 STRIP=$ac_cv_prog_STRIP
   4993 if test -n "$STRIP"; then
   4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   4995 $as_echo "$STRIP" >&6; }
   4996 else
   4997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4998 $as_echo "no" >&6; }
   4999 fi
   5000 
   5001 
   5002 fi
   5003 if test -z "$ac_cv_prog_STRIP"; then
   5004   ac_ct_STRIP=$STRIP
   5005   # Extract the first word of "strip", so it can be a program name with args.
   5006 set dummy strip; ac_word=$2
   5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5008 $as_echo_n "checking for $ac_word... " >&6; }
   5009 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   5010   $as_echo_n "(cached) " >&6
   5011 else
   5012   if test -n "$ac_ct_STRIP"; then
   5013   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5014 else
   5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5016 for as_dir in $PATH
   5017 do
   5018   IFS=$as_save_IFS
   5019   test -z "$as_dir" && as_dir=.
   5020     for ac_exec_ext in '' $ac_executable_extensions; do
   5021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5022     ac_cv_prog_ac_ct_STRIP="strip"
   5023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5024     break 2
   5025   fi
   5026 done
   5027   done
   5028 IFS=$as_save_IFS
   5029 
   5030 fi
   5031 fi
   5032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5033 if test -n "$ac_ct_STRIP"; then
   5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   5035 $as_echo "$ac_ct_STRIP" >&6; }
   5036 else
   5037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5038 $as_echo "no" >&6; }
   5039 fi
   5040 
   5041   if test "x$ac_ct_STRIP" = x; then
   5042     STRIP=":"
   5043   else
   5044     case $cross_compiling:$ac_tool_warned in
   5045 yes:)
   5046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5048 ac_tool_warned=yes ;;
   5049 esac
   5050     STRIP=$ac_ct_STRIP
   5051   fi
   5052 else
   5053   STRIP="$ac_cv_prog_STRIP"
   5054 fi
   5055 
   5056 fi
   5057 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   5058 
   5059 
   5060 ac_aux_dir=
   5061 for ac_dir in .. "$srcdir"/..; do
   5062   if test -f "$ac_dir/install-sh"; then
   5063     ac_aux_dir=$ac_dir
   5064     ac_install_sh="$ac_aux_dir/install-sh -c"
   5065     break
   5066   elif test -f "$ac_dir/install.sh"; then
   5067     ac_aux_dir=$ac_dir
   5068     ac_install_sh="$ac_aux_dir/install.sh -c"
   5069     break
   5070   elif test -f "$ac_dir/shtool"; then
   5071     ac_aux_dir=$ac_dir
   5072     ac_install_sh="$ac_aux_dir/shtool install -c"
   5073     break
   5074   fi
   5075 done
   5076 if test -z "$ac_aux_dir"; then
   5077   as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
   5078 fi
   5079 
   5080 # These three variables are undocumented and unsupported,
   5081 # and are intended to be withdrawn in a future Autoconf release.
   5082 # They can cause serious problems if a builder's source tree is in a directory
   5083 # whose full name contains unusual characters.
   5084 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   5085 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   5086 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   5087 
   5088 
   5089 
   5090 test "$program_prefix" != NONE &&
   5091   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   5092 # Use a double $ so make ignores it.
   5093 test "$program_suffix" != NONE &&
   5094   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   5095 # Double any \ or $.
   5096 # By default was `s,x,x', remove it if useless.
   5097 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   5098 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   5099 
   5100 
   5101 # We require a C++11 compiler.  Check if one is available, and if
   5102 # necessary, set CXX_DIALECT to some -std=xxx switch.
   5103 
   5104   ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
   5105   ac_ext=cpp
   5106 ac_cpp='$CXXCPP $CPPFLAGS'
   5107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5110   CXX_DIALECT=""
   5111   ac_success=no
   5112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
   5113 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
   5114 if ${ax_cv_cxx_compile_cxx11+:} false; then :
   5115   $as_echo_n "(cached) " >&6
   5116 else
   5117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5118 /* end confdefs.h.  */
   5119 
   5120 
   5121 // If the compiler admits that it is not ready for C++11, why torture it?
   5122 // Hopefully, this will speed up the test.
   5123 
   5124 #ifndef __cplusplus
   5125 
   5126 #error "This is not a C++ compiler"
   5127 
   5128 #elif __cplusplus < 201103L
   5129 
   5130 #error "This is not a C++11 compiler"
   5131 
   5132 #else
   5133 
   5134 namespace cxx11
   5135 {
   5136 
   5137   namespace test_static_assert
   5138   {
   5139 
   5140     template <typename T>
   5141     struct check
   5142     {
   5143       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   5144     };
   5145 
   5146   }
   5147 
   5148   namespace test_final_override
   5149   {
   5150 
   5151     struct Base
   5152     {
   5153       virtual void f() {}
   5154     };
   5155 
   5156     struct Derived : public Base
   5157     {
   5158       virtual void f() override {}
   5159     };
   5160 
   5161   }
   5162 
   5163   namespace test_double_right_angle_brackets
   5164   {
   5165 
   5166     template < typename T >
   5167     struct check {};
   5168 
   5169     typedef check<void> single_type;
   5170     typedef check<check<void>> double_type;
   5171     typedef check<check<check<void>>> triple_type;
   5172     typedef check<check<check<check<void>>>> quadruple_type;
   5173 
   5174   }
   5175 
   5176   namespace test_decltype
   5177   {
   5178 
   5179     int
   5180     f()
   5181     {
   5182       int a = 1;
   5183       decltype(a) b = 2;
   5184       return a + b;
   5185     }
   5186 
   5187   }
   5188 
   5189   namespace test_type_deduction
   5190   {
   5191 
   5192     template < typename T1, typename T2 >
   5193     struct is_same
   5194     {
   5195       static const bool value = false;
   5196     };
   5197 
   5198     template < typename T >
   5199     struct is_same<T, T>
   5200     {
   5201       static const bool value = true;
   5202     };
   5203 
   5204     template < typename T1, typename T2 >
   5205     auto
   5206     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   5207     {
   5208       return a1 + a2;
   5209     }
   5210 
   5211     int
   5212     test(const int c, volatile int v)
   5213     {
   5214       static_assert(is_same<int, decltype(0)>::value == true, "");
   5215       static_assert(is_same<int, decltype(c)>::value == false, "");
   5216       static_assert(is_same<int, decltype(v)>::value == false, "");
   5217       auto ac = c;
   5218       auto av = v;
   5219       auto sumi = ac + av + 'x';
   5220       auto sumf = ac + av + 1.0;
   5221       static_assert(is_same<int, decltype(ac)>::value == true, "");
   5222       static_assert(is_same<int, decltype(av)>::value == true, "");
   5223       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   5224       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   5225       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   5226       return (sumf > 0.0) ? sumi : add(c, v);
   5227     }
   5228 
   5229   }
   5230 
   5231   namespace test_noexcept
   5232   {
   5233 
   5234     int f() { return 0; }
   5235     int g() noexcept { return 0; }
   5236 
   5237     static_assert(noexcept(f()) == false, "");
   5238     static_assert(noexcept(g()) == true, "");
   5239 
   5240   }
   5241 
   5242   namespace test_constexpr
   5243   {
   5244 
   5245     template < typename CharT >
   5246     unsigned long constexpr
   5247     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   5248     {
   5249       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   5250     }
   5251 
   5252     template < typename CharT >
   5253     unsigned long constexpr
   5254     strlen_c(const CharT *const s) noexcept
   5255     {
   5256       return strlen_c_r(s, 0UL);
   5257     }
   5258 
   5259     static_assert(strlen_c("") == 0UL, "");
   5260     static_assert(strlen_c("1") == 1UL, "");
   5261     static_assert(strlen_c("example") == 7UL, "");
   5262     static_assert(strlen_c("another\0example") == 7UL, "");
   5263 
   5264   }
   5265 
   5266   namespace test_rvalue_references
   5267   {
   5268 
   5269     template < int N >
   5270     struct answer
   5271     {
   5272       static constexpr int value = N;
   5273     };
   5274 
   5275     answer<1> f(int&)       { return answer<1>(); }
   5276     answer<2> f(const int&) { return answer<2>(); }
   5277     answer<3> f(int&&)      { return answer<3>(); }
   5278 
   5279     void
   5280     test()
   5281     {
   5282       int i = 0;
   5283       const int c = 0;
   5284       static_assert(decltype(f(i))::value == 1, "");
   5285       static_assert(decltype(f(c))::value == 2, "");
   5286       static_assert(decltype(f(0))::value == 3, "");
   5287     }
   5288 
   5289   }
   5290 
   5291   namespace test_uniform_initialization
   5292   {
   5293 
   5294     struct test
   5295     {
   5296       static const int zero {};
   5297       static const int one {1};
   5298     };
   5299 
   5300     static_assert(test::zero == 0, "");
   5301     static_assert(test::one == 1, "");
   5302 
   5303   }
   5304 
   5305   namespace test_lambdas
   5306   {
   5307 
   5308     void
   5309     test1()
   5310     {
   5311       auto lambda1 = [](){};
   5312       auto lambda2 = lambda1;
   5313       lambda1();
   5314       lambda2();
   5315     }
   5316 
   5317     int
   5318     test2()
   5319     {
   5320       auto a = [](int i, int j){ return i + j; }(1, 2);
   5321       auto b = []() -> int { return '0'; }();
   5322       auto c = [=](){ return a + b; }();
   5323       auto d = [&](){ return c; }();
   5324       auto e = [a, &b](int x) mutable {
   5325         const auto identity = [](int y){ return y; };
   5326         for (auto i = 0; i < a; ++i)
   5327           a += b--;
   5328         return x + identity(a + b);
   5329       }(0);
   5330       return a + b + c + d + e;
   5331     }
   5332 
   5333     int
   5334     test3()
   5335     {
   5336       const auto nullary = [](){ return 0; };
   5337       const auto unary = [](int x){ return x; };
   5338       using nullary_t = decltype(nullary);
   5339       using unary_t = decltype(unary);
   5340       const auto higher1st = [](nullary_t f){ return f(); };
   5341       const auto higher2nd = [unary](nullary_t f1){
   5342         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   5343       };
   5344       return higher1st(nullary) + higher2nd(nullary)(unary);
   5345     }
   5346 
   5347   }
   5348 
   5349   namespace test_variadic_templates
   5350   {
   5351 
   5352     template <int...>
   5353     struct sum;
   5354 
   5355     template <int N0, int... N1toN>
   5356     struct sum<N0, N1toN...>
   5357     {
   5358       static constexpr auto value = N0 + sum<N1toN...>::value;
   5359     };
   5360 
   5361     template <>
   5362     struct sum<>
   5363     {
   5364       static constexpr auto value = 0;
   5365     };
   5366 
   5367     static_assert(sum<>::value == 0, "");
   5368     static_assert(sum<1>::value == 1, "");
   5369     static_assert(sum<23>::value == 23, "");
   5370     static_assert(sum<1, 2>::value == 3, "");
   5371     static_assert(sum<5, 5, 11>::value == 21, "");
   5372     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   5373 
   5374   }
   5375 
   5376   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   5377   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   5378   // because of this.
   5379   namespace test_template_alias_sfinae
   5380   {
   5381 
   5382     struct foo {};
   5383 
   5384     template<typename T>
   5385     using member = typename T::member_type;
   5386 
   5387     template<typename T>
   5388     void func(...) {}
   5389 
   5390     template<typename T>
   5391     void func(member<T>*) {}
   5392 
   5393     void test();
   5394 
   5395     void test() { func<foo>(0); }
   5396 
   5397   }
   5398 
   5399 }  // namespace cxx11
   5400 
   5401 #endif  // __cplusplus >= 201103L
   5402 
   5403 
   5404 
   5405 _ACEOF
   5406 if ac_fn_cxx_try_compile "$LINENO"; then :
   5407   ax_cv_cxx_compile_cxx11=yes
   5408 else
   5409   ax_cv_cxx_compile_cxx11=no
   5410 fi
   5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5412 fi
   5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
   5414 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
   5415   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
   5416     ac_success=yes
   5417   fi
   5418 
   5419     if test x$ac_success = xno; then
   5420     for alternative in ${ax_cxx_compile_alternatives}; do
   5421       switch="-std=gnu++${alternative}"
   5422       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
   5423       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
   5424 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
   5425 if eval \${$cachevar+:} false; then :
   5426   $as_echo_n "(cached) " >&6
   5427 else
   5428   ac_save_CXX="$CXX"
   5429          CXX="$CXX $switch"
   5430          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5431 /* end confdefs.h.  */
   5432 
   5433 
   5434 // If the compiler admits that it is not ready for C++11, why torture it?
   5435 // Hopefully, this will speed up the test.
   5436 
   5437 #ifndef __cplusplus
   5438 
   5439 #error "This is not a C++ compiler"
   5440 
   5441 #elif __cplusplus < 201103L
   5442 
   5443 #error "This is not a C++11 compiler"
   5444 
   5445 #else
   5446 
   5447 namespace cxx11
   5448 {
   5449 
   5450   namespace test_static_assert
   5451   {
   5452 
   5453     template <typename T>
   5454     struct check
   5455     {
   5456       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   5457     };
   5458 
   5459   }
   5460 
   5461   namespace test_final_override
   5462   {
   5463 
   5464     struct Base
   5465     {
   5466       virtual void f() {}
   5467     };
   5468 
   5469     struct Derived : public Base
   5470     {
   5471       virtual void f() override {}
   5472     };
   5473 
   5474   }
   5475 
   5476   namespace test_double_right_angle_brackets
   5477   {
   5478 
   5479     template < typename T >
   5480     struct check {};
   5481 
   5482     typedef check<void> single_type;
   5483     typedef check<check<void>> double_type;
   5484     typedef check<check<check<void>>> triple_type;
   5485     typedef check<check<check<check<void>>>> quadruple_type;
   5486 
   5487   }
   5488 
   5489   namespace test_decltype
   5490   {
   5491 
   5492     int
   5493     f()
   5494     {
   5495       int a = 1;
   5496       decltype(a) b = 2;
   5497       return a + b;
   5498     }
   5499 
   5500   }
   5501 
   5502   namespace test_type_deduction
   5503   {
   5504 
   5505     template < typename T1, typename T2 >
   5506     struct is_same
   5507     {
   5508       static const bool value = false;
   5509     };
   5510 
   5511     template < typename T >
   5512     struct is_same<T, T>
   5513     {
   5514       static const bool value = true;
   5515     };
   5516 
   5517     template < typename T1, typename T2 >
   5518     auto
   5519     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   5520     {
   5521       return a1 + a2;
   5522     }
   5523 
   5524     int
   5525     test(const int c, volatile int v)
   5526     {
   5527       static_assert(is_same<int, decltype(0)>::value == true, "");
   5528       static_assert(is_same<int, decltype(c)>::value == false, "");
   5529       static_assert(is_same<int, decltype(v)>::value == false, "");
   5530       auto ac = c;
   5531       auto av = v;
   5532       auto sumi = ac + av + 'x';
   5533       auto sumf = ac + av + 1.0;
   5534       static_assert(is_same<int, decltype(ac)>::value == true, "");
   5535       static_assert(is_same<int, decltype(av)>::value == true, "");
   5536       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   5537       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   5538       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   5539       return (sumf > 0.0) ? sumi : add(c, v);
   5540     }
   5541 
   5542   }
   5543 
   5544   namespace test_noexcept
   5545   {
   5546 
   5547     int f() { return 0; }
   5548     int g() noexcept { return 0; }
   5549 
   5550     static_assert(noexcept(f()) == false, "");
   5551     static_assert(noexcept(g()) == true, "");
   5552 
   5553   }
   5554 
   5555   namespace test_constexpr
   5556   {
   5557 
   5558     template < typename CharT >
   5559     unsigned long constexpr
   5560     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   5561     {
   5562       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   5563     }
   5564 
   5565     template < typename CharT >
   5566     unsigned long constexpr
   5567     strlen_c(const CharT *const s) noexcept
   5568     {
   5569       return strlen_c_r(s, 0UL);
   5570     }
   5571 
   5572     static_assert(strlen_c("") == 0UL, "");
   5573     static_assert(strlen_c("1") == 1UL, "");
   5574     static_assert(strlen_c("example") == 7UL, "");
   5575     static_assert(strlen_c("another\0example") == 7UL, "");
   5576 
   5577   }
   5578 
   5579   namespace test_rvalue_references
   5580   {
   5581 
   5582     template < int N >
   5583     struct answer
   5584     {
   5585       static constexpr int value = N;
   5586     };
   5587 
   5588     answer<1> f(int&)       { return answer<1>(); }
   5589     answer<2> f(const int&) { return answer<2>(); }
   5590     answer<3> f(int&&)      { return answer<3>(); }
   5591 
   5592     void
   5593     test()
   5594     {
   5595       int i = 0;
   5596       const int c = 0;
   5597       static_assert(decltype(f(i))::value == 1, "");
   5598       static_assert(decltype(f(c))::value == 2, "");
   5599       static_assert(decltype(f(0))::value == 3, "");
   5600     }
   5601 
   5602   }
   5603 
   5604   namespace test_uniform_initialization
   5605   {
   5606 
   5607     struct test
   5608     {
   5609       static const int zero {};
   5610       static const int one {1};
   5611     };
   5612 
   5613     static_assert(test::zero == 0, "");
   5614     static_assert(test::one == 1, "");
   5615 
   5616   }
   5617 
   5618   namespace test_lambdas
   5619   {
   5620 
   5621     void
   5622     test1()
   5623     {
   5624       auto lambda1 = [](){};
   5625       auto lambda2 = lambda1;
   5626       lambda1();
   5627       lambda2();
   5628     }
   5629 
   5630     int
   5631     test2()
   5632     {
   5633       auto a = [](int i, int j){ return i + j; }(1, 2);
   5634       auto b = []() -> int { return '0'; }();
   5635       auto c = [=](){ return a + b; }();
   5636       auto d = [&](){ return c; }();
   5637       auto e = [a, &b](int x) mutable {
   5638         const auto identity = [](int y){ return y; };
   5639         for (auto i = 0; i < a; ++i)
   5640           a += b--;
   5641         return x + identity(a + b);
   5642       }(0);
   5643       return a + b + c + d + e;
   5644     }
   5645 
   5646     int
   5647     test3()
   5648     {
   5649       const auto nullary = [](){ return 0; };
   5650       const auto unary = [](int x){ return x; };
   5651       using nullary_t = decltype(nullary);
   5652       using unary_t = decltype(unary);
   5653       const auto higher1st = [](nullary_t f){ return f(); };
   5654       const auto higher2nd = [unary](nullary_t f1){
   5655         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   5656       };
   5657       return higher1st(nullary) + higher2nd(nullary)(unary);
   5658     }
   5659 
   5660   }
   5661 
   5662   namespace test_variadic_templates
   5663   {
   5664 
   5665     template <int...>
   5666     struct sum;
   5667 
   5668     template <int N0, int... N1toN>
   5669     struct sum<N0, N1toN...>
   5670     {
   5671       static constexpr auto value = N0 + sum<N1toN...>::value;
   5672     };
   5673 
   5674     template <>
   5675     struct sum<>
   5676     {
   5677       static constexpr auto value = 0;
   5678     };
   5679 
   5680     static_assert(sum<>::value == 0, "");
   5681     static_assert(sum<1>::value == 1, "");
   5682     static_assert(sum<23>::value == 23, "");
   5683     static_assert(sum<1, 2>::value == 3, "");
   5684     static_assert(sum<5, 5, 11>::value == 21, "");
   5685     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   5686 
   5687   }
   5688 
   5689   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   5690   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   5691   // because of this.
   5692   namespace test_template_alias_sfinae
   5693   {
   5694 
   5695     struct foo {};
   5696 
   5697     template<typename T>
   5698     using member = typename T::member_type;
   5699 
   5700     template<typename T>
   5701     void func(...) {}
   5702 
   5703     template<typename T>
   5704     void func(member<T>*) {}
   5705 
   5706     void test();
   5707 
   5708     void test() { func<foo>(0); }
   5709 
   5710   }
   5711 
   5712 }  // namespace cxx11
   5713 
   5714 #endif  // __cplusplus >= 201103L
   5715 
   5716 
   5717 
   5718 _ACEOF
   5719 if ac_fn_cxx_try_compile "$LINENO"; then :
   5720   eval $cachevar=yes
   5721 else
   5722   eval $cachevar=no
   5723 fi
   5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5725          CXX="$ac_save_CXX"
   5726 fi
   5727 eval ac_res=\$$cachevar
   5728 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   5729 $as_echo "$ac_res" >&6; }
   5730       if eval test x\$$cachevar = xyes; then
   5731         CXX_DIALECT="$switch"
   5732         ac_success=yes
   5733         break
   5734       fi
   5735     done
   5736   fi
   5737 
   5738     if test x$ac_success = xno; then
   5739                 for alternative in ${ax_cxx_compile_alternatives}; do
   5740       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
   5741         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
   5742         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
   5743 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
   5744 if eval \${$cachevar+:} false; then :
   5745   $as_echo_n "(cached) " >&6
   5746 else
   5747   ac_save_CXX="$CXX"
   5748            CXX="$CXX $switch"
   5749            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5750 /* end confdefs.h.  */
   5751 
   5752 
   5753 // If the compiler admits that it is not ready for C++11, why torture it?
   5754 // Hopefully, this will speed up the test.
   5755 
   5756 #ifndef __cplusplus
   5757 
   5758 #error "This is not a C++ compiler"
   5759 
   5760 #elif __cplusplus < 201103L
   5761 
   5762 #error "This is not a C++11 compiler"
   5763 
   5764 #else
   5765 
   5766 namespace cxx11
   5767 {
   5768 
   5769   namespace test_static_assert
   5770   {
   5771 
   5772     template <typename T>
   5773     struct check
   5774     {
   5775       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   5776     };
   5777 
   5778   }
   5779 
   5780   namespace test_final_override
   5781   {
   5782 
   5783     struct Base
   5784     {
   5785       virtual void f() {}
   5786     };
   5787 
   5788     struct Derived : public Base
   5789     {
   5790       virtual void f() override {}
   5791     };
   5792 
   5793   }
   5794 
   5795   namespace test_double_right_angle_brackets
   5796   {
   5797 
   5798     template < typename T >
   5799     struct check {};
   5800 
   5801     typedef check<void> single_type;
   5802     typedef check<check<void>> double_type;
   5803     typedef check<check<check<void>>> triple_type;
   5804     typedef check<check<check<check<void>>>> quadruple_type;
   5805 
   5806   }
   5807 
   5808   namespace test_decltype
   5809   {
   5810 
   5811     int
   5812     f()
   5813     {
   5814       int a = 1;
   5815       decltype(a) b = 2;
   5816       return a + b;
   5817     }
   5818 
   5819   }
   5820 
   5821   namespace test_type_deduction
   5822   {
   5823 
   5824     template < typename T1, typename T2 >
   5825     struct is_same
   5826     {
   5827       static const bool value = false;
   5828     };
   5829 
   5830     template < typename T >
   5831     struct is_same<T, T>
   5832     {
   5833       static const bool value = true;
   5834     };
   5835 
   5836     template < typename T1, typename T2 >
   5837     auto
   5838     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   5839     {
   5840       return a1 + a2;
   5841     }
   5842 
   5843     int
   5844     test(const int c, volatile int v)
   5845     {
   5846       static_assert(is_same<int, decltype(0)>::value == true, "");
   5847       static_assert(is_same<int, decltype(c)>::value == false, "");
   5848       static_assert(is_same<int, decltype(v)>::value == false, "");
   5849       auto ac = c;
   5850       auto av = v;
   5851       auto sumi = ac + av + 'x';
   5852       auto sumf = ac + av + 1.0;
   5853       static_assert(is_same<int, decltype(ac)>::value == true, "");
   5854       static_assert(is_same<int, decltype(av)>::value == true, "");
   5855       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   5856       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   5857       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   5858       return (sumf > 0.0) ? sumi : add(c, v);
   5859     }
   5860 
   5861   }
   5862 
   5863   namespace test_noexcept
   5864   {
   5865 
   5866     int f() { return 0; }
   5867     int g() noexcept { return 0; }
   5868 
   5869     static_assert(noexcept(f()) == false, "");
   5870     static_assert(noexcept(g()) == true, "");
   5871 
   5872   }
   5873 
   5874   namespace test_constexpr
   5875   {
   5876 
   5877     template < typename CharT >
   5878     unsigned long constexpr
   5879     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   5880     {
   5881       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   5882     }
   5883 
   5884     template < typename CharT >
   5885     unsigned long constexpr
   5886     strlen_c(const CharT *const s) noexcept
   5887     {
   5888       return strlen_c_r(s, 0UL);
   5889     }
   5890 
   5891     static_assert(strlen_c("") == 0UL, "");
   5892     static_assert(strlen_c("1") == 1UL, "");
   5893     static_assert(strlen_c("example") == 7UL, "");
   5894     static_assert(strlen_c("another\0example") == 7UL, "");
   5895 
   5896   }
   5897 
   5898   namespace test_rvalue_references
   5899   {
   5900 
   5901     template < int N >
   5902     struct answer
   5903     {
   5904       static constexpr int value = N;
   5905     };
   5906 
   5907     answer<1> f(int&)       { return answer<1>(); }
   5908     answer<2> f(const int&) { return answer<2>(); }
   5909     answer<3> f(int&&)      { return answer<3>(); }
   5910 
   5911     void
   5912     test()
   5913     {
   5914       int i = 0;
   5915       const int c = 0;
   5916       static_assert(decltype(f(i))::value == 1, "");
   5917       static_assert(decltype(f(c))::value == 2, "");
   5918       static_assert(decltype(f(0))::value == 3, "");
   5919     }
   5920 
   5921   }
   5922 
   5923   namespace test_uniform_initialization
   5924   {
   5925 
   5926     struct test
   5927     {
   5928       static const int zero {};
   5929       static const int one {1};
   5930     };
   5931 
   5932     static_assert(test::zero == 0, "");
   5933     static_assert(test::one == 1, "");
   5934 
   5935   }
   5936 
   5937   namespace test_lambdas
   5938   {
   5939 
   5940     void
   5941     test1()
   5942     {
   5943       auto lambda1 = [](){};
   5944       auto lambda2 = lambda1;
   5945       lambda1();
   5946       lambda2();
   5947     }
   5948 
   5949     int
   5950     test2()
   5951     {
   5952       auto a = [](int i, int j){ return i + j; }(1, 2);
   5953       auto b = []() -> int { return '0'; }();
   5954       auto c = [=](){ return a + b; }();
   5955       auto d = [&](){ return c; }();
   5956       auto e = [a, &b](int x) mutable {
   5957         const auto identity = [](int y){ return y; };
   5958         for (auto i = 0; i < a; ++i)
   5959           a += b--;
   5960         return x + identity(a + b);
   5961       }(0);
   5962       return a + b + c + d + e;
   5963     }
   5964 
   5965     int
   5966     test3()
   5967     {
   5968       const auto nullary = [](){ return 0; };
   5969       const auto unary = [](int x){ return x; };
   5970       using nullary_t = decltype(nullary);
   5971       using unary_t = decltype(unary);
   5972       const auto higher1st = [](nullary_t f){ return f(); };
   5973       const auto higher2nd = [unary](nullary_t f1){
   5974         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   5975       };
   5976       return higher1st(nullary) + higher2nd(nullary)(unary);
   5977     }
   5978 
   5979   }
   5980 
   5981   namespace test_variadic_templates
   5982   {
   5983 
   5984     template <int...>
   5985     struct sum;
   5986 
   5987     template <int N0, int... N1toN>
   5988     struct sum<N0, N1toN...>
   5989     {
   5990       static constexpr auto value = N0 + sum<N1toN...>::value;
   5991     };
   5992 
   5993     template <>
   5994     struct sum<>
   5995     {
   5996       static constexpr auto value = 0;
   5997     };
   5998 
   5999     static_assert(sum<>::value == 0, "");
   6000     static_assert(sum<1>::value == 1, "");
   6001     static_assert(sum<23>::value == 23, "");
   6002     static_assert(sum<1, 2>::value == 3, "");
   6003     static_assert(sum<5, 5, 11>::value == 21, "");
   6004     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   6005 
   6006   }
   6007 
   6008   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   6009   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   6010   // because of this.
   6011   namespace test_template_alias_sfinae
   6012   {
   6013 
   6014     struct foo {};
   6015 
   6016     template<typename T>
   6017     using member = typename T::member_type;
   6018 
   6019     template<typename T>
   6020     void func(...) {}
   6021 
   6022     template<typename T>
   6023     void func(member<T>*) {}
   6024 
   6025     void test();
   6026 
   6027     void test() { func<foo>(0); }
   6028 
   6029   }
   6030 
   6031 }  // namespace cxx11
   6032 
   6033 #endif  // __cplusplus >= 201103L
   6034 
   6035 
   6036 
   6037 _ACEOF
   6038 if ac_fn_cxx_try_compile "$LINENO"; then :
   6039   eval $cachevar=yes
   6040 else
   6041   eval $cachevar=no
   6042 fi
   6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6044            CXX="$ac_save_CXX"
   6045 fi
   6046 eval ac_res=\$$cachevar
   6047 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6048 $as_echo "$ac_res" >&6; }
   6049         if eval test x\$$cachevar = xyes; then
   6050           CXX_DIALECT="$switch"
   6051           ac_success=yes
   6052           break
   6053         fi
   6054       done
   6055       if test x$ac_success = xyes; then
   6056         break
   6057       fi
   6058     done
   6059   fi
   6060   ac_ext=c
   6061 ac_cpp='$CPP $CPPFLAGS'
   6062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6065 
   6066   if test x$ax_cxx_compile_cxx11_required = xtrue; then
   6067     if test x$ac_success = xno; then
   6068       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
   6069     fi
   6070   fi
   6071   if test x$ac_success = xno; then
   6072     HAVE_CXX11=0
   6073     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
   6074 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
   6075   else
   6076     HAVE_CXX11=1
   6077 
   6078 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
   6079 
   6080   fi
   6081 
   6082 
   6083 
   6084 
   6085 # Dependency checking.
   6086 rm -rf .tst 2>/dev/null
   6087 mkdir .tst 2>/dev/null
   6088 if test -d .tst; then
   6089   am__leading_dot=.
   6090 else
   6091   am__leading_dot=_
   6092 fi
   6093 rmdir .tst 2>/dev/null
   6094 
   6095 DEPDIR="${am__leading_dot}deps"
   6096 
   6097 ac_config_commands="$ac_config_commands depdir"
   6098 
   6099 
   6100 depcc="$CC"   am_compiler_list=
   6101 
   6102 am_depcomp=$ac_aux_dir/depcomp
   6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   6104 $as_echo_n "checking dependency style of $depcc... " >&6; }
   6105 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   6106   $as_echo_n "(cached) " >&6
   6107 else
   6108   if test -f "$am_depcomp"; then
   6109   # We make a subdir and do the tests there.  Otherwise we can end up
   6110   # making bogus files that we don't know about and never remove.  For
   6111   # instance it was reported that on HP-UX the gcc test will end up
   6112   # making a dummy file named `D' -- because `-MD' means `put the output
   6113   # in D'.
   6114   mkdir conftest.dir
   6115   # Copy depcomp to subdir because otherwise we won't find it if we're
   6116   # using a relative directory.
   6117   cp "$am_depcomp" conftest.dir
   6118   cd conftest.dir
   6119   # We will build objects and dependencies in a subdirectory because
   6120   # it helps to detect inapplicable dependency modes.  For instance
   6121   # both Tru64's cc and ICC support -MD to output dependencies as a
   6122   # side effect of compilation, but ICC will put the dependencies in
   6123   # the current directory while Tru64 will put them in the object
   6124   # directory.
   6125   mkdir sub
   6126 
   6127   am_cv_CC_dependencies_compiler_type=none
   6128   if test "$am_compiler_list" = ""; then
   6129      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   6130   fi
   6131   for depmode in $am_compiler_list; do
   6132     if test $depmode = none; then break; fi
   6133 
   6134     $as_echo "$as_me:$LINENO: trying $depmode" >&5
   6135     # Setup a source with many dependencies, because some compilers
   6136     # like to wrap large dependency lists on column 80 (with \), and
   6137     # we should not choose a depcomp mode which is confused by this.
   6138     #
   6139     # We need to recreate these files for each test, as the compiler may
   6140     # overwrite some of them when testing with obscure command lines.
   6141     # This happens at least with the AIX C compiler.
   6142     : > sub/conftest.c
   6143     for i in 1 2 3 4 5 6; do
   6144       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   6145       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   6146       # Solaris 8's {/usr,}/bin/sh.
   6147       touch sub/conftst$i.h
   6148     done
   6149     echo "include sub/conftest.Po" > confmf
   6150 
   6151     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   6152     # mode.  It turns out that the SunPro C++ compiler does not properly
   6153     # handle `-M -o', and we need to detect this.
   6154     depcmd="depmode=$depmode \
   6155        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   6156        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   6157        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
   6158     echo "| $depcmd" | sed -e 's/  */ /g' >&5
   6159     if env $depcmd > conftest.err 2>&1 &&
   6160        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
   6161        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
   6162        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
   6163       # icc doesn't choke on unknown options, it will just issue warnings
   6164       # or remarks (even with -Werror).  So we grep stderr for any message
   6165       # that says an option was ignored or not supported.
   6166       # When given -MP, icc 7.0 and 7.1 complain thusly:
   6167       #   icc: Command line warning: ignoring option '-M'; no argument required
   6168       # The diagnosis changed in icc 8.0:
   6169       #   icc: Command line remark: option '-MP' not supported
   6170       if (grep 'ignoring option' conftest.err ||
   6171           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   6172         am_cv_CC_dependencies_compiler_type=$depmode
   6173 	$as_echo "$as_me:$LINENO: success" >&5
   6174         break
   6175       fi
   6176     fi
   6177     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
   6178     sed -e 's/^/| /' < conftest.err >&5
   6179   done
   6180 
   6181   cd ..
   6182   rm -rf conftest.dir
   6183 else
   6184   am_cv_CC_dependencies_compiler_type=none
   6185 fi
   6186 
   6187 fi
   6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   6189 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   6190 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
   6191 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
   6192 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   6193 
   6194 fi
   6195 
   6196 
   6197 gnulib_extra_configure_args=
   6198 # If large-file support is disabled, make sure gnulib does the same.
   6199 if test "$enable_largefile" = no; then
   6200 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
   6201 fi
   6202 
   6203 # Configure gnulib.  We need to build gnulib under some other
   6204 # directory not "gnulib", to avoid the problem of both GDB and
   6205 # GDBserver wanting to build it in the same directory, when building
   6206 # in the source dir.
   6207 
   6208   in_src="gnulib"
   6209   in_build="build-gnulib"
   6210   in_extra_args="$gnulib_extra_configure_args"
   6211 
   6212   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
   6213   # so they do not pile up.
   6214   ac_sub_configure_args=
   6215   ac_prev=
   6216   eval "set x $ac_configure_args"
   6217   shift
   6218   for ac_arg
   6219   do
   6220     if test -n "$ac_prev"; then
   6221       ac_prev=
   6222       continue
   6223     fi
   6224     case $ac_arg in
   6225     -cache-file | --cache-file | --cache-fil | --cache-fi \
   6226     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   6227       ac_prev=cache_file ;;
   6228     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   6229     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   6230     | --c=*)
   6231       ;;
   6232     --config-cache | -C)
   6233       ;;
   6234     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   6235       ac_prev=srcdir ;;
   6236     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   6237       ;;
   6238     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   6239       ac_prev=prefix ;;
   6240     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   6241       ;;
   6242     --disable-option-checking)
   6243       ;;
   6244     *)
   6245       case $ac_arg in
   6246       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   6247       esac
   6248       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
   6249     esac
   6250   done
   6251 
   6252   # Always prepend --prefix to ensure using the same prefix
   6253   # in subdir configurations.
   6254   ac_arg="--prefix=$prefix"
   6255   case $ac_arg in
   6256   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   6257   esac
   6258   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
   6259 
   6260   # Pass --silent
   6261   if test "$silent" = yes; then
   6262     ac_sub_configure_args="--silent $ac_sub_configure_args"
   6263   fi
   6264 
   6265   # Always prepend --disable-option-checking to silence warnings, since
   6266   # different subdirs can have different --enable and --with options.
   6267   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
   6268 
   6269   ac_popdir=`pwd`
   6270   ac_dir=$in_build
   6271 
   6272   ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   6273   $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
   6274   $as_echo "$ac_msg" >&6
   6275   as_dir="$ac_dir"; as_fn_mkdir_p
   6276 
   6277   case $srcdir in
   6278   [\\/]* | ?:[\\/]* )
   6279     ac_srcdir=$srcdir/$in_src ;;
   6280   *) # Relative name.
   6281     ac_srcdir=../$srcdir/$in_src ;;
   6282   esac
   6283 
   6284   cd "$ac_dir"
   6285 
   6286   ac_sub_configure=$ac_srcdir/configure
   6287 
   6288   # Make the cache file name correct relative to the subdirectory.
   6289   case $cache_file in
   6290   [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   6291   *) # Relative name.
   6292     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   6293   esac
   6294 
   6295   if test -n "$in_extra_args"; then
   6296     # Add the extra args at the end.
   6297     ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
   6298   fi
   6299 
   6300   { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
   6301 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   6302   # The eval makes quoting arguments work.
   6303   eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   6304        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   6305     as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
   6306 
   6307   cd "$ac_popdir"
   6308 
   6309 
   6310 
   6311 CONFIG_OBS=
   6312 CONFIG_DEPS=
   6313 CONFIG_SRCS=
   6314 ENABLE_CFLAGS=
   6315 
   6316 CONFIG_ALL=
   6317 CONFIG_CLEAN=
   6318 CONFIG_INSTALL=
   6319 CONFIG_UNINSTALL=
   6320 
   6321 # If we haven't got the data from the intl directory,
   6322 # assume NLS is disabled.
   6323 USE_NLS=no
   6324 LIBINTL=
   6325 LIBINTL_DEP=
   6326 INCINTL=
   6327 XGETTEXT=
   6328 GMSGFMT=
   6329 POSUB=
   6330 
   6331 if test -f  ../intl/config.intl; then
   6332   .  ../intl/config.intl
   6333 fi
   6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
   6335 $as_echo_n "checking whether NLS is requested... " >&6; }
   6336 if test x"$USE_NLS" != xyes; then
   6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6338 $as_echo "no" >&6; }
   6339 else
   6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6341 $as_echo "yes" >&6; }
   6342 
   6343 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
   6344 
   6345 
   6346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
   6347 $as_echo_n "checking for catalogs to be installed... " >&6; }
   6348   # Look for .po and .gmo files in the source directory.
   6349   CATALOGS=
   6350   XLINGUAS=
   6351   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
   6352     # If there aren't any .gmo files the shell will give us the
   6353     # literal string "../path/to/srcdir/po/*.gmo" which has to be
   6354     # weeded out.
   6355     case "$cat" in *\**)
   6356       continue;;
   6357     esac
   6358     # The quadruple backslash is collapsed to a double backslash
   6359     # by the backticks, then collapsed again by the double quotes,
   6360     # leaving us with one backslash in the sed expression (right
   6361     # before the dot that mustn't act as a wildcard).
   6362     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
   6363     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
   6364     # The user is allowed to set LINGUAS to a list of languages to
   6365     # install catalogs for.  If it's empty that means "all of them."
   6366     if test "x$LINGUAS" = x; then
   6367       CATALOGS="$CATALOGS $cat"
   6368       XLINGUAS="$XLINGUAS $lang"
   6369     else
   6370       case "$LINGUAS" in *$lang*)
   6371         CATALOGS="$CATALOGS $cat"
   6372         XLINGUAS="$XLINGUAS $lang"
   6373         ;;
   6374       esac
   6375     fi
   6376   done
   6377   LINGUAS="$XLINGUAS"
   6378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
   6379 $as_echo "$LINGUAS" >&6; }
   6380 
   6381 
   6382     DATADIRNAME=share
   6383 
   6384   INSTOBJEXT=.mo
   6385 
   6386   GENCAT=gencat
   6387 
   6388   CATOBJEXT=.gmo
   6389 
   6390 fi
   6391 
   6392 localedir='${datadir}/locale'
   6393 
   6394 
   6395 if test x"$USE_NLS" = xyes; then
   6396    CONFIG_ALL="$CONFIG_ALL all-po"
   6397    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
   6398    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
   6399    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
   6400 fi
   6401 
   6402 GNULIB=build-gnulib/import
   6403 
   6404 # For Makefile dependencies.
   6405 GNULIB_STDINT_H=
   6406 if test x"$STDINT_H" != x; then
   6407   GNULIB_STDINT_H=$GNULIB/$STDINT_H
   6408 fi
   6409 
   6410 
   6411 PACKAGE=gdb
   6412 
   6413 cat >>confdefs.h <<_ACEOF
   6414 #define PACKAGE "$PACKAGE"
   6415 _ACEOF
   6416 
   6417 
   6418 
   6419 # We never need to detect it in this sub-configure.
   6420 # But preserve it for config.status --recheck.
   6421 
   6422 
   6423 
   6424 MAKEINFO_EXTRA_FLAGS=""
   6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
   6426 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
   6427 if ${gdb_cv_have_makeinfo_click+:} false; then :
   6428   $as_echo_n "(cached) " >&6
   6429 else
   6430   echo '@clicksequence{a @click{} b}' >conftest.texinfo
   6431   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
   6432     gdb_cv_have_makeinfo_click=yes
   6433   else
   6434     gdb_cv_have_makeinfo_click=no
   6435   fi
   6436 fi
   6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
   6438 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
   6439 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
   6440   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
   6441 fi
   6442 
   6443 
   6444 
   6445 
   6446 # Check whether --with-separate-debug-dir was given.
   6447 if test "${with_separate_debug_dir+set}" = set; then :
   6448   withval=$with_separate_debug_dir;
   6449     DEBUGDIR=$withval
   6450 else
   6451   DEBUGDIR=${libdir}/debug
   6452 fi
   6453 
   6454 
   6455   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6456   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6457   ac_define_dir=`eval echo $DEBUGDIR`
   6458   ac_define_dir=`eval echo $ac_define_dir`
   6459 
   6460 cat >>confdefs.h <<_ACEOF
   6461 #define DEBUGDIR "$ac_define_dir"
   6462 _ACEOF
   6463 
   6464 
   6465 
   6466 
   6467   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   6468      if test "x$prefix" = xNONE; then
   6469      	test_prefix=/usr/local
   6470      else
   6471 	test_prefix=$prefix
   6472      fi
   6473   else
   6474      test_prefix=$exec_prefix
   6475   fi
   6476   value=0
   6477   case ${ac_define_dir} in
   6478      "${test_prefix}"|"${test_prefix}/"*|\
   6479 	'${exec_prefix}'|'${exec_prefix}/'*)
   6480      value=1
   6481      ;;
   6482   esac
   6483 
   6484 cat >>confdefs.h <<_ACEOF
   6485 #define DEBUGDIR_RELOCATABLE $value
   6486 _ACEOF
   6487 
   6488 
   6489 
   6490 
   6491 # We can't pass paths as command line arguments.
   6492 # Mingw32 tries to be clever and will convert the paths for us.
   6493 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
   6494 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
   6495 # This breaks GDB's relocatable path conversions since paths passed in
   6496 # config.h would not get so translated, the path prefixes no longer match.
   6497 
   6498   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6499   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6500   ac_define_dir=`eval echo $bindir`
   6501   ac_define_dir=`eval echo $ac_define_dir`
   6502 
   6503 cat >>confdefs.h <<_ACEOF
   6504 #define BINDIR "$ac_define_dir"
   6505 _ACEOF
   6506 
   6507 
   6508 
   6509 # GDB's datadir relocation
   6510 
   6511 
   6512 
   6513 # Check whether --with-gdb-datadir was given.
   6514 if test "${with_gdb_datadir+set}" = set; then :
   6515   withval=$with_gdb_datadir;
   6516     GDB_DATADIR=$withval
   6517 else
   6518   GDB_DATADIR=${datadir}/gdb
   6519 fi
   6520 
   6521 
   6522   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6523   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6524   ac_define_dir=`eval echo $GDB_DATADIR`
   6525   ac_define_dir=`eval echo $ac_define_dir`
   6526 
   6527 cat >>confdefs.h <<_ACEOF
   6528 #define GDB_DATADIR "$ac_define_dir"
   6529 _ACEOF
   6530 
   6531 
   6532 
   6533 
   6534   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   6535      if test "x$prefix" = xNONE; then
   6536      	test_prefix=/usr/local
   6537      else
   6538 	test_prefix=$prefix
   6539      fi
   6540   else
   6541      test_prefix=$exec_prefix
   6542   fi
   6543   value=0
   6544   case ${ac_define_dir} in
   6545      "${test_prefix}"|"${test_prefix}/"*|\
   6546 	'${exec_prefix}'|'${exec_prefix}/'*)
   6547      value=1
   6548      ;;
   6549   esac
   6550 
   6551 cat >>confdefs.h <<_ACEOF
   6552 #define GDB_DATADIR_RELOCATABLE $value
   6553 _ACEOF
   6554 
   6555 
   6556 
   6557 
   6558 
   6559 # Check whether --with-relocated-sources was given.
   6560 if test "${with_relocated_sources+set}" = set; then :
   6561   withval=$with_relocated_sources; reloc_srcdir="${withval}"
   6562 
   6563   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6564   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6565   ac_define_dir=`eval echo $reloc_srcdir`
   6566   ac_define_dir=`eval echo $ac_define_dir`
   6567 
   6568 cat >>confdefs.h <<_ACEOF
   6569 #define RELOC_SRCDIR "$ac_define_dir"
   6570 _ACEOF
   6571 
   6572 
   6573 
   6574 fi
   6575 
   6576 
   6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
   6578 $as_echo_n "checking for default auto-load directory... " >&6; }
   6579 
   6580 # Check whether --with-auto-load-dir was given.
   6581 if test "${with_auto_load_dir+set}" = set; then :
   6582   withval=$with_auto_load_dir;
   6583 else
   6584   with_auto_load_dir='$debugdir:$datadir/auto-load'
   6585 fi
   6586 
   6587 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
   6588 
   6589   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6590   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6591   ac_define_dir=`eval echo $escape_dir`
   6592   ac_define_dir=`eval echo $ac_define_dir`
   6593 
   6594 cat >>confdefs.h <<_ACEOF
   6595 #define AUTO_LOAD_DIR "$ac_define_dir"
   6596 _ACEOF
   6597 
   6598 
   6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
   6600 $as_echo "$with_auto_load_dir" >&6; }
   6601 
   6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
   6603 $as_echo_n "checking for default auto-load safe-path... " >&6; }
   6604 
   6605 # Check whether --with-auto-load-safe-path was given.
   6606 if test "${with_auto_load_safe_path+set}" = set; then :
   6607   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
   6608      with_auto_load_safe_path="/"
   6609      fi
   6610 else
   6611   with_auto_load_safe_path="$with_auto_load_dir"
   6612 fi
   6613 
   6614 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
   6615 
   6616   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6617   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6618   ac_define_dir=`eval echo $escape_dir`
   6619   ac_define_dir=`eval echo $ac_define_dir`
   6620 
   6621 cat >>confdefs.h <<_ACEOF
   6622 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
   6623 _ACEOF
   6624 
   6625 
   6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
   6627 $as_echo "$with_auto_load_safe_path" >&6; }
   6628 
   6629 
   6630 
   6631 subdirs="$subdirs testsuite"
   6632 
   6633 
   6634 # Check whether to support alternative target configurations
   6635 # Check whether --enable-targets was given.
   6636 if test "${enable_targets+set}" = set; then :
   6637   enableval=$enable_targets; case "${enableval}" in
   6638   yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
   6639             ;;
   6640   no)       enable_targets= ;;
   6641   *)        enable_targets=$enableval ;;
   6642 esac
   6643 fi
   6644 
   6645 
   6646 # Check whether to enable 64-bit support on 32-bit hosts
   6647 # Check whether --enable-64-bit-bfd was given.
   6648 if test "${enable_64_bit_bfd+set}" = set; then :
   6649   enableval=$enable_64_bit_bfd; case "${enableval}" in
   6650   yes)  want64=true  ;;
   6651   no)   want64=false ;;
   6652   *)    as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
   6653 esac
   6654 else
   6655   want64=false
   6656 fi
   6657 
   6658 # Provide defaults for some variables set by the per-host and per-target
   6659 # configuration.
   6660 gdb_host_obs=posix-hdep.o
   6661 
   6662 if test "${target}" = "${host}"; then
   6663   gdb_native=yes
   6664 else
   6665   gdb_native=no
   6666 fi
   6667 
   6668 . $srcdir/configure.host
   6669 
   6670 # Add in the common host objects.
   6671 . $srcdir/common/common.host
   6672 gdb_host_obs="$gdb_host_obs $common_host_obs"
   6673 
   6674 # Accumulate some settings from configure.tgt over all enabled targets
   6675 
   6676 TARGET_OBS=
   6677 all_targets=
   6678 HAVE_NATIVE_GCORE_TARGET=
   6679 
   6680 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
   6681 do
   6682   if test "$targ_alias" = "all"; then
   6683     all_targets=true
   6684   else
   6685     # Canonicalize the secondary target names.
   6686     result=`$ac_config_sub $targ_alias 2>/dev/null`
   6687     if test -n "$result"; then
   6688         targ=$result
   6689     else
   6690         targ=$targ_alias
   6691     fi
   6692 
   6693     . ${srcdir}/configure.tgt
   6694 
   6695     if test -z "${gdb_target_obs}"; then :
   6696   as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
   6697 fi
   6698 
   6699     # Target-specific object files
   6700     for i in ${gdb_target_obs}; do
   6701         case " $TARGET_OBS " in
   6702         *" ${i} "*) ;;
   6703         *)
   6704           TARGET_OBS="$TARGET_OBS ${i}"
   6705           ;;
   6706         esac
   6707     done
   6708 
   6709     # Check whether this target needs 64-bit CORE_ADDR
   6710     if test x${want64} = xfalse; then
   6711       . ${srcdir}/../bfd/config.bfd
   6712     fi
   6713 
   6714     # Check whether this target is native and supports gcore.
   6715     if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
   6716        && $gdb_have_gcore; then
   6717       HAVE_NATIVE_GCORE_TARGET=1
   6718     fi
   6719   fi
   6720 done
   6721 
   6722 if test x${all_targets} = xtrue; then
   6723 
   6724   # We want all 64-bit targets if we either:
   6725   #  - run on a 64-bit host  or
   6726   #  - already require 64-bit support for some other target  or
   6727   #  - the --enable-64-bit-bfd option was supplied
   6728   # Otherwise we only support all 32-bit targets.
   6729   #
   6730   # NOTE: This test must be in sync with the corresponding
   6731   #       tests in BFD!
   6732 
   6733   if test x${want64} = xfalse; then
   6734     # The cast to long int works around a bug in the HP C Compiler
   6735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6737 # This bug is HP SR number 8606223364.
   6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   6739 $as_echo_n "checking size of long... " >&6; }
   6740 if ${ac_cv_sizeof_long+:} false; then :
   6741   $as_echo_n "(cached) " >&6
   6742 else
   6743   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   6744 
   6745 else
   6746   if test "$ac_cv_type_long" = yes; then
   6747      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6749 as_fn_error 77 "cannot compute sizeof (long)
   6750 See \`config.log' for more details" "$LINENO" 5; }
   6751    else
   6752      ac_cv_sizeof_long=0
   6753    fi
   6754 fi
   6755 
   6756 fi
   6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   6758 $as_echo "$ac_cv_sizeof_long" >&6; }
   6759 
   6760 
   6761 
   6762 cat >>confdefs.h <<_ACEOF
   6763 #define SIZEOF_LONG $ac_cv_sizeof_long
   6764 _ACEOF
   6765 
   6766 
   6767     if test "x${ac_cv_sizeof_long}" = "x8"; then
   6768       want64=true
   6769     fi
   6770   fi
   6771   if test x${want64} = xtrue; then
   6772     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
   6773   else
   6774     TARGET_OBS='$(ALL_TARGET_OBS)'
   6775   fi
   6776 fi
   6777 
   6778 
   6779 
   6780 
   6781 # For other settings, only the main target counts.
   6782 gdb_sim=
   6783 gdb_osabi=
   6784 build_gdbserver=
   6785 targ=$target; . ${srcdir}/configure.tgt
   6786 
   6787 # Fetch the default architecture and default target vector from BFD.
   6788 targ=$target; . $srcdir/../bfd/config.bfd
   6789 
   6790 # We only want the first architecture, so strip off the others if
   6791 # there is more than one.
   6792 targ_archs=`echo $targ_archs | sed 's/ .*//'`
   6793 
   6794 if test "x$targ_archs" != x; then
   6795 
   6796 cat >>confdefs.h <<_ACEOF
   6797 #define DEFAULT_BFD_ARCH $targ_archs
   6798 _ACEOF
   6799 
   6800 fi
   6801 if test "x$targ_defvec" != x; then
   6802 
   6803 cat >>confdefs.h <<_ACEOF
   6804 #define DEFAULT_BFD_VEC $targ_defvec
   6805 _ACEOF
   6806 
   6807 fi
   6808 
   6809 # Enable MI.
   6810 # Check whether --enable-gdbmi was given.
   6811 if test "${enable_gdbmi+set}" = set; then :
   6812   enableval=$enable_gdbmi; case $enableval in
   6813     yes | no)
   6814       ;;
   6815     *)
   6816       as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
   6817   esac
   6818 else
   6819   enable_gdbmi=yes
   6820 fi
   6821 
   6822 if test x"$enable_gdbmi" = xyes; then
   6823   if test -d $srcdir/mi; then
   6824     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
   6825     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
   6826     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
   6827     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
   6828   fi
   6829 fi
   6830 
   6831 # Enable TUI.
   6832 # Check whether --enable-tui was given.
   6833 if test "${enable_tui+set}" = set; then :
   6834   enableval=$enable_tui; case $enableval in
   6835     yes | no | auto)
   6836       ;;
   6837     *)
   6838       as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
   6839   esac
   6840 else
   6841   enable_tui=auto
   6842 fi
   6843 
   6844 
   6845 # Enable gdbtk.
   6846 # Check whether --enable-gdbtk was given.
   6847 if test "${enable_gdbtk+set}" = set; then :
   6848   enableval=$enable_gdbtk; case $enableval in
   6849     yes | no)
   6850       ;;
   6851     *)
   6852       as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
   6853   esac
   6854 else
   6855   if test -d $srcdir/gdbtk; then
   6856     enable_gdbtk=yes
   6857   else
   6858     enable_gdbtk=no
   6859   fi
   6860 fi
   6861 
   6862 # We unconditionally disable gdbtk tests on selected platforms.
   6863 case $host_os in
   6864   go32* | windows*)
   6865     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
   6866 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
   6867     enable_gdbtk=no ;;
   6868 esac
   6869 
   6870 # Libunwind support for ia64.
   6871 
   6872 
   6873 # Check whether --with-libunwind-ia64 was given.
   6874 if test "${with_libunwind_ia64+set}" = set; then :
   6875   withval=$with_libunwind_ia64;
   6876 else
   6877   with_libunwind_ia64=auto
   6878 fi
   6879 
   6880 
   6881 # Backward compatibility option.
   6882 if test "${with_libunwind+set}" = set; then
   6883   if test x"$with_libunwind_ia64" != xauto; then
   6884     as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
   6885   fi
   6886   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
   6887 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
   6888   with_libunwind_ia64="$with_libunwind"
   6889 fi
   6890 
   6891 case "$with_libunwind_ia64" in
   6892   yes | no)
   6893     ;;
   6894   auto)
   6895     for ac_header in libunwind-ia64.h
   6896 do :
   6897   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
   6898 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
   6899   cat >>confdefs.h <<_ACEOF
   6900 #define HAVE_LIBUNWIND_IA64_H 1
   6901 _ACEOF
   6902 
   6903 fi
   6904 
   6905 done
   6906 
   6907     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
   6908     ;;
   6909   *)
   6910     as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
   6911     ;;
   6912 esac
   6913 
   6914 if test x"$with_libunwind_ia64" = xyes; then
   6915   for ac_header in libunwind-ia64.h
   6916 do :
   6917   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
   6918 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
   6919   cat >>confdefs.h <<_ACEOF
   6920 #define HAVE_LIBUNWIND_IA64_H 1
   6921 _ACEOF
   6922 
   6923 fi
   6924 
   6925 done
   6926 
   6927   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
   6928     as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
   6929   fi
   6930   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
   6931   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
   6932   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
   6933 fi
   6934 
   6935 opt_curses=no
   6936 
   6937 # Check whether --with-curses was given.
   6938 if test "${with_curses+set}" = set; then :
   6939   withval=$with_curses; opt_curses=$withval
   6940 fi
   6941 
   6942 
   6943 prefer_curses=no
   6944 if test "$opt_curses" = "yes"; then
   6945   prefer_curses=yes
   6946 fi
   6947 
   6948 # Profiling support.
   6949 # Check whether --enable-profiling was given.
   6950 if test "${enable_profiling+set}" = set; then :
   6951   enableval=$enable_profiling; case $enableval in
   6952     yes | no)
   6953       ;;
   6954     *)
   6955       as_fn_error $? "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
   6956   esac
   6957 else
   6958   enable_profiling=no
   6959 fi
   6960 
   6961 
   6962 for ac_func in monstartup _mcleanup
   6963 do :
   6964   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6965 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   6966 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   6967   cat >>confdefs.h <<_ACEOF
   6968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6969 _ACEOF
   6970 
   6971 fi
   6972 done
   6973 
   6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
   6975 $as_echo_n "checking for _etext... " >&6; }
   6976 if ${ac_cv_var__etext+:} false; then :
   6977   $as_echo_n "(cached) " >&6
   6978 else
   6979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6980 /* end confdefs.h.  */
   6981 #include <stdlib.h>
   6982 extern char _etext;
   6983 
   6984 int
   6985 main ()
   6986 {
   6987 free (&_etext);
   6988   ;
   6989   return 0;
   6990 }
   6991 _ACEOF
   6992 if ac_fn_c_try_link "$LINENO"; then :
   6993   ac_cv_var__etext=yes
   6994 else
   6995   ac_cv_var__etext=no
   6996 fi
   6997 rm -f core conftest.err conftest.$ac_objext \
   6998     conftest$ac_exeext conftest.$ac_ext
   6999 fi
   7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
   7001 $as_echo "$ac_cv_var__etext" >&6; }
   7002 if test $ac_cv_var__etext = yes; then
   7003 
   7004 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
   7005 
   7006 fi
   7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
   7008 $as_echo_n "checking for etext... " >&6; }
   7009 if ${ac_cv_var_etext+:} false; then :
   7010   $as_echo_n "(cached) " >&6
   7011 else
   7012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7013 /* end confdefs.h.  */
   7014 #include <stdlib.h>
   7015 extern char etext;
   7016 
   7017 int
   7018 main ()
   7019 {
   7020 free (&etext);
   7021   ;
   7022   return 0;
   7023 }
   7024 _ACEOF
   7025 if ac_fn_c_try_link "$LINENO"; then :
   7026   ac_cv_var_etext=yes
   7027 else
   7028   ac_cv_var_etext=no
   7029 fi
   7030 rm -f core conftest.err conftest.$ac_objext \
   7031     conftest$ac_exeext conftest.$ac_ext
   7032 fi
   7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
   7034 $as_echo "$ac_cv_var_etext" >&6; }
   7035 if test $ac_cv_var_etext = yes; then
   7036 
   7037 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
   7038 
   7039 fi
   7040 if test "$enable_profiling" = yes ; then
   7041   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
   7042     as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
   7043   fi
   7044   PROFILE_CFLAGS=-pg
   7045   OLD_CFLAGS="$CFLAGS"
   7046   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
   7047 
   7048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
   7049 $as_echo_n "checking whether $CC supports -pg... " >&6; }
   7050 if ${ac_cv_cc_supports_pg+:} false; then :
   7051   $as_echo_n "(cached) " >&6
   7052 else
   7053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7054 /* end confdefs.h.  */
   7055 
   7056 int
   7057 main ()
   7058 {
   7059 int x;
   7060   ;
   7061   return 0;
   7062 }
   7063 _ACEOF
   7064 if ac_fn_c_try_compile "$LINENO"; then :
   7065   ac_cv_cc_supports_pg=yes
   7066 else
   7067   ac_cv_cc_supports_pg=no
   7068 fi
   7069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7070 fi
   7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
   7072 $as_echo "$ac_cv_cc_supports_pg" >&6; }
   7073 
   7074   if test $ac_cv_cc_supports_pg = no; then
   7075     as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
   7076   fi
   7077 
   7078   CFLAGS="$OLD_CFLAGS"
   7079 fi
   7080 
   7081 CODESIGN_CERT=
   7082 # Check whether --enable-codesign was given.
   7083 if test "${enable_codesign+set}" = set; then :
   7084   enableval=$enable_codesign; CODESIGN_CERT=$enableval
   7085 fi
   7086 
   7087 
   7088 
   7089 
   7090 
   7091 # Check whether --with-pkgversion was given.
   7092 if test "${with_pkgversion+set}" = set; then :
   7093   withval=$with_pkgversion; case "$withval" in
   7094       yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
   7095       no)  PKGVERSION= ;;
   7096       *)   PKGVERSION="($withval) " ;;
   7097      esac
   7098 else
   7099   PKGVERSION="(GDB) "
   7100 
   7101 fi
   7102 
   7103 
   7104 
   7105 
   7106 
   7107 # Check whether --with-bugurl was given.
   7108 if test "${with_bugurl+set}" = set; then :
   7109   withval=$with_bugurl; case "$withval" in
   7110       yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
   7111       no)  BUGURL=
   7112 	   ;;
   7113       *)   BUGURL="$withval"
   7114 	   ;;
   7115      esac
   7116 else
   7117   BUGURL="http://www.gnu.org/software/gdb/bugs/"
   7118 
   7119 fi
   7120 
   7121   case ${BUGURL} in
   7122   "")
   7123     REPORT_BUGS_TO=
   7124     REPORT_BUGS_TEXI=
   7125     ;;
   7126   *)
   7127     REPORT_BUGS_TO="<$BUGURL>"
   7128     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
   7129     ;;
   7130   esac;
   7131 
   7132 
   7133 
   7134 
   7135 cat >>confdefs.h <<_ACEOF
   7136 #define PKGVERSION "$PKGVERSION"
   7137 _ACEOF
   7138 
   7139 
   7140 cat >>confdefs.h <<_ACEOF
   7141 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
   7142 _ACEOF
   7143 
   7144 
   7145 # --------------------- #
   7146 # Checks for programs.  #
   7147 # --------------------- #
   7148 
   7149 for ac_prog in gawk mawk nawk awk
   7150 do
   7151   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7152 set dummy $ac_prog; ac_word=$2
   7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7154 $as_echo_n "checking for $ac_word... " >&6; }
   7155 if ${ac_cv_prog_AWK+:} false; then :
   7156   $as_echo_n "(cached) " >&6
   7157 else
   7158   if test -n "$AWK"; then
   7159   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   7160 else
   7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7162 for as_dir in $PATH
   7163 do
   7164   IFS=$as_save_IFS
   7165   test -z "$as_dir" && as_dir=.
   7166     for ac_exec_ext in '' $ac_executable_extensions; do
   7167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7168     ac_cv_prog_AWK="$ac_prog"
   7169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7170     break 2
   7171   fi
   7172 done
   7173   done
   7174 IFS=$as_save_IFS
   7175 
   7176 fi
   7177 fi
   7178 AWK=$ac_cv_prog_AWK
   7179 if test -n "$AWK"; then
   7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   7181 $as_echo "$AWK" >&6; }
   7182 else
   7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7184 $as_echo "no" >&6; }
   7185 fi
   7186 
   7187 
   7188   test -n "$AWK" && break
   7189 done
   7190 
   7191 # Find a good install program.  We prefer a C program (faster),
   7192 # so one script is as good as another.  But avoid the broken or
   7193 # incompatible versions:
   7194 # SysV /etc/install, /usr/sbin/install
   7195 # SunOS /usr/etc/install
   7196 # IRIX /sbin/install
   7197 # AIX /bin/install
   7198 # AmigaOS /C/install, which installs bootblocks on floppy discs
   7199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   7200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   7201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   7202 # OS/2's system install, which has a completely different semantic
   7203 # ./install, which can be erroneously created by make from ./install.sh.
   7204 # Reject install programs that cannot install multiple files.
   7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   7206 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   7207 if test -z "$INSTALL"; then
   7208 if ${ac_cv_path_install+:} false; then :
   7209   $as_echo_n "(cached) " >&6
   7210 else
   7211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7212 for as_dir in $PATH
   7213 do
   7214   IFS=$as_save_IFS
   7215   test -z "$as_dir" && as_dir=.
   7216     # Account for people who put trailing slashes in PATH elements.
   7217 case $as_dir/ in #((
   7218   ./ | .// | /[cC]/* | \
   7219   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   7220   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   7221   /usr/ucb/* ) ;;
   7222   *)
   7223     # OSF1 and SCO ODT 3.0 have their own names for install.
   7224     # Don't use installbsd from OSF since it installs stuff as root
   7225     # by default.
   7226     for ac_prog in ginstall scoinst install; do
   7227       for ac_exec_ext in '' $ac_executable_extensions; do
   7228 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   7229 	  if test $ac_prog = install &&
   7230 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   7231 	    # AIX install.  It has an incompatible calling convention.
   7232 	    :
   7233 	  elif test $ac_prog = install &&
   7234 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   7235 	    # program-specific install script used by HP pwplus--don't use.
   7236 	    :
   7237 	  else
   7238 	    rm -rf conftest.one conftest.two conftest.dir
   7239 	    echo one > conftest.one
   7240 	    echo two > conftest.two
   7241 	    mkdir conftest.dir
   7242 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   7243 	      test -s conftest.one && test -s conftest.two &&
   7244 	      test -s conftest.dir/conftest.one &&
   7245 	      test -s conftest.dir/conftest.two
   7246 	    then
   7247 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   7248 	      break 3
   7249 	    fi
   7250 	  fi
   7251 	fi
   7252       done
   7253     done
   7254     ;;
   7255 esac
   7256 
   7257   done
   7258 IFS=$as_save_IFS
   7259 
   7260 rm -rf conftest.one conftest.two conftest.dir
   7261 
   7262 fi
   7263   if test "${ac_cv_path_install+set}" = set; then
   7264     INSTALL=$ac_cv_path_install
   7265   else
   7266     # As a last resort, use the slow shell script.  Don't cache a
   7267     # value for INSTALL within a source directory, because that will
   7268     # break other packages using the cache if that directory is
   7269     # removed, or if the value is a relative name.
   7270     INSTALL=$ac_install_sh
   7271   fi
   7272 fi
   7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   7274 $as_echo "$INSTALL" >&6; }
   7275 
   7276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   7277 # It thinks the first close brace ends the variable substitution.
   7278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   7279 
   7280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   7281 
   7282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   7283 
   7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   7285 $as_echo_n "checking whether ln -s works... " >&6; }
   7286 LN_S=$as_ln_s
   7287 if test "$LN_S" = "ln -s"; then
   7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7289 $as_echo "yes" >&6; }
   7290 else
   7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   7292 $as_echo "no, using $LN_S" >&6; }
   7293 fi
   7294 
   7295 if test -n "$ac_tool_prefix"; then
   7296   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   7297 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7299 $as_echo_n "checking for $ac_word... " >&6; }
   7300 if ${ac_cv_prog_RANLIB+:} false; then :
   7301   $as_echo_n "(cached) " >&6
   7302 else
   7303   if test -n "$RANLIB"; then
   7304   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   7305 else
   7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7307 for as_dir in $PATH
   7308 do
   7309   IFS=$as_save_IFS
   7310   test -z "$as_dir" && as_dir=.
   7311     for ac_exec_ext in '' $ac_executable_extensions; do
   7312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7313     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   7314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7315     break 2
   7316   fi
   7317 done
   7318   done
   7319 IFS=$as_save_IFS
   7320 
   7321 fi
   7322 fi
   7323 RANLIB=$ac_cv_prog_RANLIB
   7324 if test -n "$RANLIB"; then
   7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   7326 $as_echo "$RANLIB" >&6; }
   7327 else
   7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7329 $as_echo "no" >&6; }
   7330 fi
   7331 
   7332 
   7333 fi
   7334 if test -z "$ac_cv_prog_RANLIB"; then
   7335   ac_ct_RANLIB=$RANLIB
   7336   # Extract the first word of "ranlib", so it can be a program name with args.
   7337 set dummy ranlib; ac_word=$2
   7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7339 $as_echo_n "checking for $ac_word... " >&6; }
   7340 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   7341   $as_echo_n "(cached) " >&6
   7342 else
   7343   if test -n "$ac_ct_RANLIB"; then
   7344   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   7345 else
   7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7347 for as_dir in $PATH
   7348 do
   7349   IFS=$as_save_IFS
   7350   test -z "$as_dir" && as_dir=.
   7351     for ac_exec_ext in '' $ac_executable_extensions; do
   7352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7353     ac_cv_prog_ac_ct_RANLIB="ranlib"
   7354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7355     break 2
   7356   fi
   7357 done
   7358   done
   7359 IFS=$as_save_IFS
   7360 
   7361 fi
   7362 fi
   7363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   7364 if test -n "$ac_ct_RANLIB"; then
   7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   7366 $as_echo "$ac_ct_RANLIB" >&6; }
   7367 else
   7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7369 $as_echo "no" >&6; }
   7370 fi
   7371 
   7372   if test "x$ac_ct_RANLIB" = x; then
   7373     RANLIB=":"
   7374   else
   7375     case $cross_compiling:$ac_tool_warned in
   7376 yes:)
   7377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7379 ac_tool_warned=yes ;;
   7380 esac
   7381     RANLIB=$ac_ct_RANLIB
   7382   fi
   7383 else
   7384   RANLIB="$ac_cv_prog_RANLIB"
   7385 fi
   7386 
   7387 for ac_prog in 'bison -y' byacc
   7388 do
   7389   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7390 set dummy $ac_prog; ac_word=$2
   7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7392 $as_echo_n "checking for $ac_word... " >&6; }
   7393 if ${ac_cv_prog_YACC+:} false; then :
   7394   $as_echo_n "(cached) " >&6
   7395 else
   7396   if test -n "$YACC"; then
   7397   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   7398 else
   7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7400 for as_dir in $PATH
   7401 do
   7402   IFS=$as_save_IFS
   7403   test -z "$as_dir" && as_dir=.
   7404     for ac_exec_ext in '' $ac_executable_extensions; do
   7405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7406     ac_cv_prog_YACC="$ac_prog"
   7407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7408     break 2
   7409   fi
   7410 done
   7411   done
   7412 IFS=$as_save_IFS
   7413 
   7414 fi
   7415 fi
   7416 YACC=$ac_cv_prog_YACC
   7417 if test -n "$YACC"; then
   7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   7419 $as_echo "$YACC" >&6; }
   7420 else
   7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7422 $as_echo "no" >&6; }
   7423 fi
   7424 
   7425 
   7426   test -n "$YACC" && break
   7427 done
   7428 test -n "$YACC" || YACC="yacc"
   7429 
   7430 
   7431 if test -n "$ac_tool_prefix"; then
   7432   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   7433 set dummy ${ac_tool_prefix}ar; ac_word=$2
   7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7435 $as_echo_n "checking for $ac_word... " >&6; }
   7436 if ${ac_cv_prog_AR+:} false; then :
   7437   $as_echo_n "(cached) " >&6
   7438 else
   7439   if test -n "$AR"; then
   7440   ac_cv_prog_AR="$AR" # Let the user override the test.
   7441 else
   7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7443 for as_dir in $PATH
   7444 do
   7445   IFS=$as_save_IFS
   7446   test -z "$as_dir" && as_dir=.
   7447     for ac_exec_ext in '' $ac_executable_extensions; do
   7448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7449     ac_cv_prog_AR="${ac_tool_prefix}ar"
   7450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7451     break 2
   7452   fi
   7453 done
   7454   done
   7455 IFS=$as_save_IFS
   7456 
   7457 fi
   7458 fi
   7459 AR=$ac_cv_prog_AR
   7460 if test -n "$AR"; then
   7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   7462 $as_echo "$AR" >&6; }
   7463 else
   7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7465 $as_echo "no" >&6; }
   7466 fi
   7467 
   7468 
   7469 fi
   7470 if test -z "$ac_cv_prog_AR"; then
   7471   ac_ct_AR=$AR
   7472   # Extract the first word of "ar", so it can be a program name with args.
   7473 set dummy ar; ac_word=$2
   7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7475 $as_echo_n "checking for $ac_word... " >&6; }
   7476 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   7477   $as_echo_n "(cached) " >&6
   7478 else
   7479   if test -n "$ac_ct_AR"; then
   7480   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   7481 else
   7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7483 for as_dir in $PATH
   7484 do
   7485   IFS=$as_save_IFS
   7486   test -z "$as_dir" && as_dir=.
   7487     for ac_exec_ext in '' $ac_executable_extensions; do
   7488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7489     ac_cv_prog_ac_ct_AR="ar"
   7490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7491     break 2
   7492   fi
   7493 done
   7494   done
   7495 IFS=$as_save_IFS
   7496 
   7497 fi
   7498 fi
   7499 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   7500 if test -n "$ac_ct_AR"; then
   7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   7502 $as_echo "$ac_ct_AR" >&6; }
   7503 else
   7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7505 $as_echo "no" >&6; }
   7506 fi
   7507 
   7508   if test "x$ac_ct_AR" = x; then
   7509     AR=""
   7510   else
   7511     case $cross_compiling:$ac_tool_warned in
   7512 yes:)
   7513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7515 ac_tool_warned=yes ;;
   7516 esac
   7517     AR=$ac_ct_AR
   7518   fi
   7519 else
   7520   AR="$ac_cv_prog_AR"
   7521 fi
   7522 
   7523 if test -n "$ac_tool_prefix"; then
   7524   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   7525 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7527 $as_echo_n "checking for $ac_word... " >&6; }
   7528 if ${ac_cv_prog_DLLTOOL+:} false; then :
   7529   $as_echo_n "(cached) " >&6
   7530 else
   7531   if test -n "$DLLTOOL"; then
   7532   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   7533 else
   7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7535 for as_dir in $PATH
   7536 do
   7537   IFS=$as_save_IFS
   7538   test -z "$as_dir" && as_dir=.
   7539     for ac_exec_ext in '' $ac_executable_extensions; do
   7540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7541     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   7542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7543     break 2
   7544   fi
   7545 done
   7546   done
   7547 IFS=$as_save_IFS
   7548 
   7549 fi
   7550 fi
   7551 DLLTOOL=$ac_cv_prog_DLLTOOL
   7552 if test -n "$DLLTOOL"; then
   7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   7554 $as_echo "$DLLTOOL" >&6; }
   7555 else
   7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7557 $as_echo "no" >&6; }
   7558 fi
   7559 
   7560 
   7561 fi
   7562 if test -z "$ac_cv_prog_DLLTOOL"; then
   7563   ac_ct_DLLTOOL=$DLLTOOL
   7564   # Extract the first word of "dlltool", so it can be a program name with args.
   7565 set dummy dlltool; ac_word=$2
   7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7567 $as_echo_n "checking for $ac_word... " >&6; }
   7568 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   7569   $as_echo_n "(cached) " >&6
   7570 else
   7571   if test -n "$ac_ct_DLLTOOL"; then
   7572   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   7573 else
   7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7575 for as_dir in $PATH
   7576 do
   7577   IFS=$as_save_IFS
   7578   test -z "$as_dir" && as_dir=.
   7579     for ac_exec_ext in '' $ac_executable_extensions; do
   7580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7581     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   7582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7583     break 2
   7584   fi
   7585 done
   7586   done
   7587 IFS=$as_save_IFS
   7588 
   7589 fi
   7590 fi
   7591 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   7592 if test -n "$ac_ct_DLLTOOL"; then
   7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   7594 $as_echo "$ac_ct_DLLTOOL" >&6; }
   7595 else
   7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7597 $as_echo "no" >&6; }
   7598 fi
   7599 
   7600   if test "x$ac_ct_DLLTOOL" = x; then
   7601     DLLTOOL=""
   7602   else
   7603     case $cross_compiling:$ac_tool_warned in
   7604 yes:)
   7605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7607 ac_tool_warned=yes ;;
   7608 esac
   7609     DLLTOOL=$ac_ct_DLLTOOL
   7610   fi
   7611 else
   7612   DLLTOOL="$ac_cv_prog_DLLTOOL"
   7613 fi
   7614 
   7615 if test -n "$ac_tool_prefix"; then
   7616   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
   7617 set dummy ${ac_tool_prefix}windres; ac_word=$2
   7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7619 $as_echo_n "checking for $ac_word... " >&6; }
   7620 if ${ac_cv_prog_WINDRES+:} false; then :
   7621   $as_echo_n "(cached) " >&6
   7622 else
   7623   if test -n "$WINDRES"; then
   7624   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   7625 else
   7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7627 for as_dir in $PATH
   7628 do
   7629   IFS=$as_save_IFS
   7630   test -z "$as_dir" && as_dir=.
   7631     for ac_exec_ext in '' $ac_executable_extensions; do
   7632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7633     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
   7634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7635     break 2
   7636   fi
   7637 done
   7638   done
   7639 IFS=$as_save_IFS
   7640 
   7641 fi
   7642 fi
   7643 WINDRES=$ac_cv_prog_WINDRES
   7644 if test -n "$WINDRES"; then
   7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   7646 $as_echo "$WINDRES" >&6; }
   7647 else
   7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7649 $as_echo "no" >&6; }
   7650 fi
   7651 
   7652 
   7653 fi
   7654 if test -z "$ac_cv_prog_WINDRES"; then
   7655   ac_ct_WINDRES=$WINDRES
   7656   # Extract the first word of "windres", so it can be a program name with args.
   7657 set dummy windres; ac_word=$2
   7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7659 $as_echo_n "checking for $ac_word... " >&6; }
   7660 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
   7661   $as_echo_n "(cached) " >&6
   7662 else
   7663   if test -n "$ac_ct_WINDRES"; then
   7664   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
   7665 else
   7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7667 for as_dir in $PATH
   7668 do
   7669   IFS=$as_save_IFS
   7670   test -z "$as_dir" && as_dir=.
   7671     for ac_exec_ext in '' $ac_executable_extensions; do
   7672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7673     ac_cv_prog_ac_ct_WINDRES="windres"
   7674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7675     break 2
   7676   fi
   7677 done
   7678   done
   7679 IFS=$as_save_IFS
   7680 
   7681 fi
   7682 fi
   7683 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
   7684 if test -n "$ac_ct_WINDRES"; then
   7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
   7686 $as_echo "$ac_ct_WINDRES" >&6; }
   7687 else
   7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7689 $as_echo "no" >&6; }
   7690 fi
   7691 
   7692   if test "x$ac_ct_WINDRES" = x; then
   7693     WINDRES=""
   7694   else
   7695     case $cross_compiling:$ac_tool_warned in
   7696 yes:)
   7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7699 ac_tool_warned=yes ;;
   7700 esac
   7701     WINDRES=$ac_ct_WINDRES
   7702   fi
   7703 else
   7704   WINDRES="$ac_cv_prog_WINDRES"
   7705 fi
   7706 
   7707 
   7708 case $host_os in
   7709   gnu*)
   7710     # Needed for GNU Hurd hosts.
   7711     if test -n "$ac_tool_prefix"; then
   7712   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
   7713 set dummy ${ac_tool_prefix}mig; ac_word=$2
   7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7715 $as_echo_n "checking for $ac_word... " >&6; }
   7716 if ${ac_cv_prog_MIG+:} false; then :
   7717   $as_echo_n "(cached) " >&6
   7718 else
   7719   if test -n "$MIG"; then
   7720   ac_cv_prog_MIG="$MIG" # Let the user override the test.
   7721 else
   7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7723 for as_dir in $PATH
   7724 do
   7725   IFS=$as_save_IFS
   7726   test -z "$as_dir" && as_dir=.
   7727     for ac_exec_ext in '' $ac_executable_extensions; do
   7728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7729     ac_cv_prog_MIG="${ac_tool_prefix}mig"
   7730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7731     break 2
   7732   fi
   7733 done
   7734   done
   7735 IFS=$as_save_IFS
   7736 
   7737 fi
   7738 fi
   7739 MIG=$ac_cv_prog_MIG
   7740 if test -n "$MIG"; then
   7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
   7742 $as_echo "$MIG" >&6; }
   7743 else
   7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7745 $as_echo "no" >&6; }
   7746 fi
   7747 
   7748 
   7749 fi
   7750 if test -z "$ac_cv_prog_MIG"; then
   7751   ac_ct_MIG=$MIG
   7752   # Extract the first word of "mig", so it can be a program name with args.
   7753 set dummy mig; ac_word=$2
   7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7755 $as_echo_n "checking for $ac_word... " >&6; }
   7756 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
   7757   $as_echo_n "(cached) " >&6
   7758 else
   7759   if test -n "$ac_ct_MIG"; then
   7760   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
   7761 else
   7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7763 for as_dir in $PATH
   7764 do
   7765   IFS=$as_save_IFS
   7766   test -z "$as_dir" && as_dir=.
   7767     for ac_exec_ext in '' $ac_executable_extensions; do
   7768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7769     ac_cv_prog_ac_ct_MIG="mig"
   7770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7771     break 2
   7772   fi
   7773 done
   7774   done
   7775 IFS=$as_save_IFS
   7776 
   7777 fi
   7778 fi
   7779 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
   7780 if test -n "$ac_ct_MIG"; then
   7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
   7782 $as_echo "$ac_ct_MIG" >&6; }
   7783 else
   7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7785 $as_echo "no" >&6; }
   7786 fi
   7787 
   7788   if test "x$ac_ct_MIG" = x; then
   7789     MIG=""
   7790   else
   7791     case $cross_compiling:$ac_tool_warned in
   7792 yes:)
   7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7795 ac_tool_warned=yes ;;
   7796 esac
   7797     MIG=$ac_ct_MIG
   7798   fi
   7799 else
   7800   MIG="$ac_cv_prog_MIG"
   7801 fi
   7802 
   7803     if test x"$MIG" = x; then
   7804       as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
   7805     fi
   7806     ;;
   7807 esac
   7808 
   7809 # ---------------------- #
   7810 # Checks for libraries.  #
   7811 # ---------------------- #
   7812 
   7813 # We might need to link with -lm; most simulators need it.
   7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
   7815 $as_echo_n "checking for main in -lm... " >&6; }
   7816 if ${ac_cv_lib_m_main+:} false; then :
   7817   $as_echo_n "(cached) " >&6
   7818 else
   7819   ac_check_lib_save_LIBS=$LIBS
   7820 LIBS="-lm  $LIBS"
   7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7822 /* end confdefs.h.  */
   7823 
   7824 
   7825 int
   7826 main ()
   7827 {
   7828 return main ();
   7829   ;
   7830   return 0;
   7831 }
   7832 _ACEOF
   7833 if ac_fn_c_try_link "$LINENO"; then :
   7834   ac_cv_lib_m_main=yes
   7835 else
   7836   ac_cv_lib_m_main=no
   7837 fi
   7838 rm -f core conftest.err conftest.$ac_objext \
   7839     conftest$ac_exeext conftest.$ac_ext
   7840 LIBS=$ac_check_lib_save_LIBS
   7841 fi
   7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
   7843 $as_echo "$ac_cv_lib_m_main" >&6; }
   7844 if test "x$ac_cv_lib_m_main" = xyes; then :
   7845   cat >>confdefs.h <<_ACEOF
   7846 #define HAVE_LIBM 1
   7847 _ACEOF
   7848 
   7849   LIBS="-lm $LIBS"
   7850 
   7851 fi
   7852 
   7853 
   7854 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
   7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
   7856 $as_echo_n "checking for library containing gethostbyname... " >&6; }
   7857 if ${ac_cv_search_gethostbyname+:} false; then :
   7858   $as_echo_n "(cached) " >&6
   7859 else
   7860   ac_func_search_save_LIBS=$LIBS
   7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7862 /* end confdefs.h.  */
   7863 
   7864 /* Override any GCC internal prototype to avoid an error.
   7865    Use char because int might match the return type of a GCC
   7866    builtin and then its argument prototype would still apply.  */
   7867 #ifdef __cplusplus
   7868 extern "C"
   7869 #endif
   7870 char gethostbyname ();
   7871 int
   7872 main ()
   7873 {
   7874 return gethostbyname ();
   7875   ;
   7876   return 0;
   7877 }
   7878 _ACEOF
   7879 for ac_lib in '' nsl; do
   7880   if test -z "$ac_lib"; then
   7881     ac_res="none required"
   7882   else
   7883     ac_res=-l$ac_lib
   7884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7885   fi
   7886   if ac_fn_c_try_link "$LINENO"; then :
   7887   ac_cv_search_gethostbyname=$ac_res
   7888 fi
   7889 rm -f core conftest.err conftest.$ac_objext \
   7890     conftest$ac_exeext
   7891   if ${ac_cv_search_gethostbyname+:} false; then :
   7892   break
   7893 fi
   7894 done
   7895 if ${ac_cv_search_gethostbyname+:} false; then :
   7896 
   7897 else
   7898   ac_cv_search_gethostbyname=no
   7899 fi
   7900 rm conftest.$ac_ext
   7901 LIBS=$ac_func_search_save_LIBS
   7902 fi
   7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
   7904 $as_echo "$ac_cv_search_gethostbyname" >&6; }
   7905 ac_res=$ac_cv_search_gethostbyname
   7906 if test "$ac_res" != no; then :
   7907   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7908 
   7909 fi
   7910 
   7911 
   7912 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
   7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
   7914 $as_echo_n "checking for library containing socketpair... " >&6; }
   7915 if ${ac_cv_search_socketpair+:} false; then :
   7916   $as_echo_n "(cached) " >&6
   7917 else
   7918   ac_func_search_save_LIBS=$LIBS
   7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7920 /* end confdefs.h.  */
   7921 
   7922 /* Override any GCC internal prototype to avoid an error.
   7923    Use char because int might match the return type of a GCC
   7924    builtin and then its argument prototype would still apply.  */
   7925 #ifdef __cplusplus
   7926 extern "C"
   7927 #endif
   7928 char socketpair ();
   7929 int
   7930 main ()
   7931 {
   7932 return socketpair ();
   7933   ;
   7934   return 0;
   7935 }
   7936 _ACEOF
   7937 for ac_lib in '' socket; do
   7938   if test -z "$ac_lib"; then
   7939     ac_res="none required"
   7940   else
   7941     ac_res=-l$ac_lib
   7942     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7943   fi
   7944   if ac_fn_c_try_link "$LINENO"; then :
   7945   ac_cv_search_socketpair=$ac_res
   7946 fi
   7947 rm -f core conftest.err conftest.$ac_objext \
   7948     conftest$ac_exeext
   7949   if ${ac_cv_search_socketpair+:} false; then :
   7950   break
   7951 fi
   7952 done
   7953 if ${ac_cv_search_socketpair+:} false; then :
   7954 
   7955 else
   7956   ac_cv_search_socketpair=no
   7957 fi
   7958 rm conftest.$ac_ext
   7959 LIBS=$ac_func_search_save_LIBS
   7960 fi
   7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
   7962 $as_echo "$ac_cv_search_socketpair" >&6; }
   7963 ac_res=$ac_cv_search_socketpair
   7964 if test "$ac_res" != no; then :
   7965   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7966 
   7967 fi
   7968 
   7969 
   7970 # Link in zlib if we can.  This allows us to read compressed debug sections.
   7971 
   7972   # Use the system's zlib library.
   7973   zlibdir="-L\$(top_builddir)/../zlib"
   7974   zlibinc="-I\$(top_srcdir)/../zlib"
   7975 
   7976 # Check whether --with-system-zlib was given.
   7977 if test "${with_system_zlib+set}" = set; then :
   7978   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
   7979     zlibdir=
   7980     zlibinc=
   7981   fi
   7982 
   7983 fi
   7984 
   7985 
   7986 
   7987 
   7988 
   7989 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
   7990 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
   7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
   7992 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
   7993 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
   7994   $as_echo_n "(cached) " >&6
   7995 else
   7996   ac_func_search_save_LIBS=$LIBS
   7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7998 /* end confdefs.h.  */
   7999 
   8000 /* Override any GCC internal prototype to avoid an error.
   8001    Use char because int might match the return type of a GCC
   8002    builtin and then its argument prototype would still apply.  */
   8003 #ifdef __cplusplus
   8004 extern "C"
   8005 #endif
   8006 char kinfo_getvmmap ();
   8007 int
   8008 main ()
   8009 {
   8010 return kinfo_getvmmap ();
   8011   ;
   8012   return 0;
   8013 }
   8014 _ACEOF
   8015 for ac_lib in '' util util-freebsd; do
   8016   if test -z "$ac_lib"; then
   8017     ac_res="none required"
   8018   else
   8019     ac_res=-l$ac_lib
   8020     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8021   fi
   8022   if ac_fn_c_try_link "$LINENO"; then :
   8023   ac_cv_search_kinfo_getvmmap=$ac_res
   8024 fi
   8025 rm -f core conftest.err conftest.$ac_objext \
   8026     conftest$ac_exeext
   8027   if ${ac_cv_search_kinfo_getvmmap+:} false; then :
   8028   break
   8029 fi
   8030 done
   8031 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
   8032 
   8033 else
   8034   ac_cv_search_kinfo_getvmmap=no
   8035 fi
   8036 rm conftest.$ac_ext
   8037 LIBS=$ac_func_search_save_LIBS
   8038 fi
   8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
   8040 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
   8041 ac_res=$ac_cv_search_kinfo_getvmmap
   8042 if test "$ac_res" != no; then :
   8043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8044 
   8045 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
   8046 
   8047 fi
   8048 
   8049 
   8050 # fbsd-nat.c can also use kinfo_getfile.
   8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
   8052 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
   8053 if ${ac_cv_search_kinfo_getfile+:} false; then :
   8054   $as_echo_n "(cached) " >&6
   8055 else
   8056   ac_func_search_save_LIBS=$LIBS
   8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8058 /* end confdefs.h.  */
   8059 
   8060 /* Override any GCC internal prototype to avoid an error.
   8061    Use char because int might match the return type of a GCC
   8062    builtin and then its argument prototype would still apply.  */
   8063 #ifdef __cplusplus
   8064 extern "C"
   8065 #endif
   8066 char kinfo_getfile ();
   8067 int
   8068 main ()
   8069 {
   8070 return kinfo_getfile ();
   8071   ;
   8072   return 0;
   8073 }
   8074 _ACEOF
   8075 for ac_lib in '' util util-freebsd; do
   8076   if test -z "$ac_lib"; then
   8077     ac_res="none required"
   8078   else
   8079     ac_res=-l$ac_lib
   8080     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8081   fi
   8082   if ac_fn_c_try_link "$LINENO"; then :
   8083   ac_cv_search_kinfo_getfile=$ac_res
   8084 fi
   8085 rm -f core conftest.err conftest.$ac_objext \
   8086     conftest$ac_exeext
   8087   if ${ac_cv_search_kinfo_getfile+:} false; then :
   8088   break
   8089 fi
   8090 done
   8091 if ${ac_cv_search_kinfo_getfile+:} false; then :
   8092 
   8093 else
   8094   ac_cv_search_kinfo_getfile=no
   8095 fi
   8096 rm conftest.$ac_ext
   8097 LIBS=$ac_func_search_save_LIBS
   8098 fi
   8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
   8100 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
   8101 ac_res=$ac_cv_search_kinfo_getfile
   8102 if test "$ac_res" != no; then :
   8103   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8104 
   8105 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
   8106 
   8107 fi
   8108 
   8109 
   8110 
   8111       if test "X$prefix" = "XNONE"; then
   8112     acl_final_prefix="$ac_default_prefix"
   8113   else
   8114     acl_final_prefix="$prefix"
   8115   fi
   8116   if test "X$exec_prefix" = "XNONE"; then
   8117     acl_final_exec_prefix='${prefix}'
   8118   else
   8119     acl_final_exec_prefix="$exec_prefix"
   8120   fi
   8121   acl_save_prefix="$prefix"
   8122   prefix="$acl_final_prefix"
   8123   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
   8124   prefix="$acl_save_prefix"
   8125 
   8126 
   8127 # Check whether --with-gnu-ld was given.
   8128 if test "${with_gnu_ld+set}" = set; then :
   8129   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   8130 else
   8131   with_gnu_ld=no
   8132 fi
   8133 
   8134 # Prepare PATH_SEPARATOR.
   8135 # The user is always right.
   8136 if test "${PATH_SEPARATOR+set}" != set; then
   8137   echo "#! /bin/sh" >conf$$.sh
   8138   echo  "exit 0"   >>conf$$.sh
   8139   chmod +x conf$$.sh
   8140   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   8141     PATH_SEPARATOR=';'
   8142   else
   8143     PATH_SEPARATOR=:
   8144   fi
   8145   rm -f conf$$.sh
   8146 fi
   8147 ac_prog=ld
   8148 if test "$GCC" = yes; then
   8149   # Check if gcc -print-prog-name=ld gives a path.
   8150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
   8151 $as_echo_n "checking for ld used by GCC... " >&6; }
   8152   case $host in
   8153   *-*-mingw*)
   8154     # gcc leaves a trailing carriage return which upsets mingw
   8155     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   8156   *)
   8157     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   8158   esac
   8159   case $ac_prog in
   8160     # Accept absolute paths.
   8161     [\\/]* | [A-Za-z]:[\\/]*)
   8162       re_direlt='/[^/][^/]*/\.\./'
   8163       # Canonicalize the path of ld
   8164       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
   8165       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   8166 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   8167       done
   8168       test -z "$LD" && LD="$ac_prog"
   8169       ;;
   8170   "")
   8171     # If it fails, then pretend we aren't using GCC.
   8172     ac_prog=ld
   8173     ;;
   8174   *)
   8175     # If it is relative, then search for the first ld in PATH.
   8176     with_gnu_ld=unknown
   8177     ;;
   8178   esac
   8179 elif test "$with_gnu_ld" = yes; then
   8180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   8181 $as_echo_n "checking for GNU ld... " >&6; }
   8182 else
   8183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   8184 $as_echo_n "checking for non-GNU ld... " >&6; }
   8185 fi
   8186 if ${acl_cv_path_LD+:} false; then :
   8187   $as_echo_n "(cached) " >&6
   8188 else
   8189   if test -z "$LD"; then
   8190   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   8191   for ac_dir in $PATH; do
   8192     test -z "$ac_dir" && ac_dir=.
   8193     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   8194       acl_cv_path_LD="$ac_dir/$ac_prog"
   8195       # Check to see if the program is GNU ld.  I'd rather use --version,
   8196       # but apparently some GNU ld's only accept -v.
   8197       # Break only if it was the GNU/non-GNU ld that we prefer.
   8198       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
   8199 	test "$with_gnu_ld" != no && break
   8200       else
   8201 	test "$with_gnu_ld" != yes && break
   8202       fi
   8203     fi
   8204   done
   8205   IFS="$ac_save_ifs"
   8206 else
   8207   acl_cv_path_LD="$LD" # Let the user override the test with a path.
   8208 fi
   8209 fi
   8210 
   8211 LD="$acl_cv_path_LD"
   8212 if test -n "$LD"; then
   8213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   8214 $as_echo "$LD" >&6; }
   8215 else
   8216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8217 $as_echo "no" >&6; }
   8218 fi
   8219 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   8221 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   8222 if ${acl_cv_prog_gnu_ld+:} false; then :
   8223   $as_echo_n "(cached) " >&6
   8224 else
   8225   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   8226 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
   8227   acl_cv_prog_gnu_ld=yes
   8228 else
   8229   acl_cv_prog_gnu_ld=no
   8230 fi
   8231 fi
   8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
   8233 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
   8234 with_gnu_ld=$acl_cv_prog_gnu_ld
   8235 
   8236 
   8237 
   8238                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
   8239 $as_echo_n "checking for shared library run path origin... " >&6; }
   8240 if ${acl_cv_rpath+:} false; then :
   8241   $as_echo_n "(cached) " >&6
   8242 else
   8243 
   8244     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
   8245     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
   8246     . ./conftest.sh
   8247     rm -f ./conftest.sh
   8248     acl_cv_rpath=done
   8249 
   8250 fi
   8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
   8252 $as_echo "$acl_cv_rpath" >&6; }
   8253   wl="$acl_cv_wl"
   8254   libext="$acl_cv_libext"
   8255   shlibext="$acl_cv_shlibext"
   8256   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
   8257   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
   8258   hardcode_direct="$acl_cv_hardcode_direct"
   8259   hardcode_minus_L="$acl_cv_hardcode_minus_L"
   8260     # Check whether --enable-rpath was given.
   8261 if test "${enable_rpath+set}" = set; then :
   8262   enableval=$enable_rpath; :
   8263 else
   8264   enable_rpath=yes
   8265 fi
   8266 
   8267 
   8268 
   8269 
   8270 
   8271 
   8272 
   8273 
   8274     use_additional=yes
   8275 
   8276   acl_save_prefix="$prefix"
   8277   prefix="$acl_final_prefix"
   8278   acl_save_exec_prefix="$exec_prefix"
   8279   exec_prefix="$acl_final_exec_prefix"
   8280 
   8281     eval additional_includedir=\"$includedir\"
   8282     eval additional_libdir=\"$libdir\"
   8283 
   8284   exec_prefix="$acl_save_exec_prefix"
   8285   prefix="$acl_save_prefix"
   8286 
   8287 
   8288 # Check whether --with-libiconv-prefix was given.
   8289 if test "${with_libiconv_prefix+set}" = set; then :
   8290   withval=$with_libiconv_prefix;
   8291     if test "X$withval" = "Xno"; then
   8292       use_additional=no
   8293     else
   8294       if test "X$withval" = "X"; then
   8295 
   8296   acl_save_prefix="$prefix"
   8297   prefix="$acl_final_prefix"
   8298   acl_save_exec_prefix="$exec_prefix"
   8299   exec_prefix="$acl_final_exec_prefix"
   8300 
   8301           eval additional_includedir=\"$includedir\"
   8302           eval additional_libdir=\"$libdir\"
   8303 
   8304   exec_prefix="$acl_save_exec_prefix"
   8305   prefix="$acl_save_prefix"
   8306 
   8307       else
   8308         additional_includedir="$withval/include"
   8309         additional_libdir="$withval/lib"
   8310       fi
   8311     fi
   8312 
   8313 fi
   8314 
   8315       LIBICONV=
   8316   LTLIBICONV=
   8317   INCICONV=
   8318   rpathdirs=
   8319   ltrpathdirs=
   8320   names_already_handled=
   8321   names_next_round='iconv '
   8322   while test -n "$names_next_round"; do
   8323     names_this_round="$names_next_round"
   8324     names_next_round=
   8325     for name in $names_this_round; do
   8326       already_handled=
   8327       for n in $names_already_handled; do
   8328         if test "$n" = "$name"; then
   8329           already_handled=yes
   8330           break
   8331         fi
   8332       done
   8333       if test -z "$already_handled"; then
   8334         names_already_handled="$names_already_handled $name"
   8335                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   8336         eval value=\"\$HAVE_LIB$uppername\"
   8337         if test -n "$value"; then
   8338           if test "$value" = yes; then
   8339             eval value=\"\$LIB$uppername\"
   8340             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
   8341             eval value=\"\$LTLIB$uppername\"
   8342             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
   8343           else
   8344                                     :
   8345           fi
   8346         else
   8347                               found_dir=
   8348           found_la=
   8349           found_so=
   8350           found_a=
   8351           if test $use_additional = yes; then
   8352             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   8353               found_dir="$additional_libdir"
   8354               found_so="$additional_libdir/lib$name.$shlibext"
   8355               if test -f "$additional_libdir/lib$name.la"; then
   8356                 found_la="$additional_libdir/lib$name.la"
   8357               fi
   8358             else
   8359               if test -f "$additional_libdir/lib$name.$libext"; then
   8360                 found_dir="$additional_libdir"
   8361                 found_a="$additional_libdir/lib$name.$libext"
   8362                 if test -f "$additional_libdir/lib$name.la"; then
   8363                   found_la="$additional_libdir/lib$name.la"
   8364                 fi
   8365               fi
   8366             fi
   8367           fi
   8368           if test "X$found_dir" = "X"; then
   8369             for x in $LDFLAGS $LTLIBICONV; do
   8370 
   8371   acl_save_prefix="$prefix"
   8372   prefix="$acl_final_prefix"
   8373   acl_save_exec_prefix="$exec_prefix"
   8374   exec_prefix="$acl_final_exec_prefix"
   8375   eval x=\"$x\"
   8376   exec_prefix="$acl_save_exec_prefix"
   8377   prefix="$acl_save_prefix"
   8378 
   8379               case "$x" in
   8380                 -L*)
   8381                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   8382                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   8383                     found_dir="$dir"
   8384                     found_so="$dir/lib$name.$shlibext"
   8385                     if test -f "$dir/lib$name.la"; then
   8386                       found_la="$dir/lib$name.la"
   8387                     fi
   8388                   else
   8389                     if test -f "$dir/lib$name.$libext"; then
   8390                       found_dir="$dir"
   8391                       found_a="$dir/lib$name.$libext"
   8392                       if test -f "$dir/lib$name.la"; then
   8393                         found_la="$dir/lib$name.la"
   8394                       fi
   8395                     fi
   8396                   fi
   8397                   ;;
   8398               esac
   8399               if test "X$found_dir" != "X"; then
   8400                 break
   8401               fi
   8402             done
   8403           fi
   8404           if test "X$found_dir" != "X"; then
   8405                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
   8406             if test "X$found_so" != "X"; then
   8407                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   8408                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   8409               else
   8410                                                                                 haveit=
   8411                 for x in $ltrpathdirs; do
   8412                   if test "X$x" = "X$found_dir"; then
   8413                     haveit=yes
   8414                     break
   8415                   fi
   8416                 done
   8417                 if test -z "$haveit"; then
   8418                   ltrpathdirs="$ltrpathdirs $found_dir"
   8419                 fi
   8420                                 if test "$hardcode_direct" = yes; then
   8421                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   8422                 else
   8423                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   8424                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   8425                                                             haveit=
   8426                     for x in $rpathdirs; do
   8427                       if test "X$x" = "X$found_dir"; then
   8428                         haveit=yes
   8429                         break
   8430                       fi
   8431                     done
   8432                     if test -z "$haveit"; then
   8433                       rpathdirs="$rpathdirs $found_dir"
   8434                     fi
   8435                   else
   8436                                                                                 haveit=
   8437                     for x in $LDFLAGS $LIBICONV; do
   8438 
   8439   acl_save_prefix="$prefix"
   8440   prefix="$acl_final_prefix"
   8441   acl_save_exec_prefix="$exec_prefix"
   8442   exec_prefix="$acl_final_exec_prefix"
   8443   eval x=\"$x\"
   8444   exec_prefix="$acl_save_exec_prefix"
   8445   prefix="$acl_save_prefix"
   8446 
   8447                       if test "X$x" = "X-L$found_dir"; then
   8448                         haveit=yes
   8449                         break
   8450                       fi
   8451                     done
   8452                     if test -z "$haveit"; then
   8453                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
   8454                     fi
   8455                     if test "$hardcode_minus_L" != no; then
   8456                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   8457                     else
   8458                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   8459                     fi
   8460                   fi
   8461                 fi
   8462               fi
   8463             else
   8464               if test "X$found_a" != "X"; then
   8465                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
   8466               else
   8467                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
   8468               fi
   8469             fi
   8470                         additional_includedir=
   8471             case "$found_dir" in
   8472               */lib | */lib/)
   8473                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   8474                 additional_includedir="$basedir/include"
   8475                 ;;
   8476             esac
   8477             if test "X$additional_includedir" != "X"; then
   8478                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   8479                 haveit=
   8480                 if test "X$additional_includedir" = "X/usr/local/include"; then
   8481                   if test -n "$GCC"; then
   8482                     case $host_os in
   8483                       linux*) haveit=yes;;
   8484                     esac
   8485                   fi
   8486                 fi
   8487                 if test -z "$haveit"; then
   8488                   for x in $CPPFLAGS $INCICONV; do
   8489 
   8490   acl_save_prefix="$prefix"
   8491   prefix="$acl_final_prefix"
   8492   acl_save_exec_prefix="$exec_prefix"
   8493   exec_prefix="$acl_final_exec_prefix"
   8494   eval x=\"$x\"
   8495   exec_prefix="$acl_save_exec_prefix"
   8496   prefix="$acl_save_prefix"
   8497 
   8498                     if test "X$x" = "X-I$additional_includedir"; then
   8499                       haveit=yes
   8500                       break
   8501                     fi
   8502                   done
   8503                   if test -z "$haveit"; then
   8504                     if test -d "$additional_includedir"; then
   8505                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
   8506                     fi
   8507                   fi
   8508                 fi
   8509               fi
   8510             fi
   8511                         if test -n "$found_la"; then
   8512                                                         save_libdir="$libdir"
   8513               case "$found_la" in
   8514                 */* | *\\*) . "$found_la" ;;
   8515                 *) . "./$found_la" ;;
   8516               esac
   8517               libdir="$save_libdir"
   8518                             for dep in $dependency_libs; do
   8519                 case "$dep" in
   8520                   -L*)
   8521                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   8522                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   8523                       haveit=
   8524                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   8525                         if test -n "$GCC"; then
   8526                           case $host_os in
   8527                             linux*) haveit=yes;;
   8528                           esac
   8529                         fi
   8530                       fi
   8531                       if test -z "$haveit"; then
   8532                         haveit=
   8533                         for x in $LDFLAGS $LIBICONV; do
   8534 
   8535   acl_save_prefix="$prefix"
   8536   prefix="$acl_final_prefix"
   8537   acl_save_exec_prefix="$exec_prefix"
   8538   exec_prefix="$acl_final_exec_prefix"
   8539   eval x=\"$x\"
   8540   exec_prefix="$acl_save_exec_prefix"
   8541   prefix="$acl_save_prefix"
   8542 
   8543                           if test "X$x" = "X-L$additional_libdir"; then
   8544                             haveit=yes
   8545                             break
   8546                           fi
   8547                         done
   8548                         if test -z "$haveit"; then
   8549                           if test -d "$additional_libdir"; then
   8550                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
   8551                           fi
   8552                         fi
   8553                         haveit=
   8554                         for x in $LDFLAGS $LTLIBICONV; do
   8555 
   8556   acl_save_prefix="$prefix"
   8557   prefix="$acl_final_prefix"
   8558   acl_save_exec_prefix="$exec_prefix"
   8559   exec_prefix="$acl_final_exec_prefix"
   8560   eval x=\"$x\"
   8561   exec_prefix="$acl_save_exec_prefix"
   8562   prefix="$acl_save_prefix"
   8563 
   8564                           if test "X$x" = "X-L$additional_libdir"; then
   8565                             haveit=yes
   8566                             break
   8567                           fi
   8568                         done
   8569                         if test -z "$haveit"; then
   8570                           if test -d "$additional_libdir"; then
   8571                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
   8572                           fi
   8573                         fi
   8574                       fi
   8575                     fi
   8576                     ;;
   8577                   -R*)
   8578                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   8579                     if test "$enable_rpath" != no; then
   8580                                                                   haveit=
   8581                       for x in $rpathdirs; do
   8582                         if test "X$x" = "X$dir"; then
   8583                           haveit=yes
   8584                           break
   8585                         fi
   8586                       done
   8587                       if test -z "$haveit"; then
   8588                         rpathdirs="$rpathdirs $dir"
   8589                       fi
   8590                                                                   haveit=
   8591                       for x in $ltrpathdirs; do
   8592                         if test "X$x" = "X$dir"; then
   8593                           haveit=yes
   8594                           break
   8595                         fi
   8596                       done
   8597                       if test -z "$haveit"; then
   8598                         ltrpathdirs="$ltrpathdirs $dir"
   8599                       fi
   8600                     fi
   8601                     ;;
   8602                   -l*)
   8603                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   8604                     ;;
   8605                   *.la)
   8606                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   8607                     ;;
   8608                   *)
   8609                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
   8610                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
   8611                     ;;
   8612                 esac
   8613               done
   8614             fi
   8615           else
   8616                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   8617             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
   8618           fi
   8619         fi
   8620       fi
   8621     done
   8622   done
   8623   if test "X$rpathdirs" != "X"; then
   8624     if test -n "$hardcode_libdir_separator"; then
   8625                         alldirs=
   8626       for found_dir in $rpathdirs; do
   8627         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   8628       done
   8629             acl_save_libdir="$libdir"
   8630       libdir="$alldirs"
   8631       eval flag=\"$hardcode_libdir_flag_spec\"
   8632       libdir="$acl_save_libdir"
   8633       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   8634     else
   8635             for found_dir in $rpathdirs; do
   8636         acl_save_libdir="$libdir"
   8637         libdir="$found_dir"
   8638         eval flag=\"$hardcode_libdir_flag_spec\"
   8639         libdir="$acl_save_libdir"
   8640         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   8641       done
   8642     fi
   8643   fi
   8644   if test "X$ltrpathdirs" != "X"; then
   8645             for found_dir in $ltrpathdirs; do
   8646       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
   8647     done
   8648   fi
   8649 
   8650 
   8651 
   8652 
   8653 
   8654 
   8655 
   8656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
   8657 $as_echo_n "checking for iconv... " >&6; }
   8658 if ${am_cv_func_iconv+:} false; then :
   8659   $as_echo_n "(cached) " >&6
   8660 else
   8661 
   8662     am_cv_func_iconv="no, consider installing GNU libiconv"
   8663     am_cv_lib_iconv=no
   8664                     am_save_CPPFLAGS="$CPPFLAGS"
   8665     CPPFLAGS="$CPPFLAGS $INCICONV"
   8666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8667 /* end confdefs.h.  */
   8668 #include <stdlib.h>
   8669 #include <iconv.h>
   8670 int
   8671 main ()
   8672 {
   8673 iconv_t cd = iconv_open("","");
   8674        iconv(cd,NULL,NULL,NULL,NULL);
   8675        iconv_close(cd);
   8676   ;
   8677   return 0;
   8678 }
   8679 _ACEOF
   8680 if ac_fn_c_try_link "$LINENO"; then :
   8681   am_cv_func_iconv=yes
   8682 fi
   8683 rm -f core conftest.err conftest.$ac_objext \
   8684     conftest$ac_exeext conftest.$ac_ext
   8685     CPPFLAGS="$am_save_CPPFLAGS"
   8686 
   8687     if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
   8688       for _libs in .libs _libs; do
   8689         am_save_CPPFLAGS="$CPPFLAGS"
   8690         am_save_LIBS="$LIBS"
   8691         CPPFLAGS="$CPPFLAGS -I../libiconv/include"
   8692         LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
   8693         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8694 /* end confdefs.h.  */
   8695 #include <stdlib.h>
   8696 #include <iconv.h>
   8697 int
   8698 main ()
   8699 {
   8700 iconv_t cd = iconv_open("","");
   8701            iconv(cd,NULL,NULL,NULL,NULL);
   8702            iconv_close(cd);
   8703   ;
   8704   return 0;
   8705 }
   8706 _ACEOF
   8707 if ac_fn_c_try_link "$LINENO"; then :
   8708   INCICONV="-I../libiconv/include"
   8709           LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
   8710           LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
   8711           am_cv_lib_iconv=yes
   8712           am_cv_func_iconv=yes
   8713 fi
   8714 rm -f core conftest.err conftest.$ac_objext \
   8715     conftest$ac_exeext conftest.$ac_ext
   8716         CPPFLAGS="$am_save_CPPFLAGS"
   8717         LIBS="$am_save_LIBS"
   8718         if test "$am_cv_func_iconv" = "yes"; then
   8719           break
   8720         fi
   8721       done
   8722     fi
   8723 
   8724     if test "$am_cv_func_iconv" != yes; then
   8725       am_save_CPPFLAGS="$CPPFLAGS"
   8726       am_save_LIBS="$LIBS"
   8727       CPPFLAGS="$CPPFLAGS $INCICONV"
   8728       LIBS="$LIBS $LIBICONV"
   8729       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8730 /* end confdefs.h.  */
   8731 #include <stdlib.h>
   8732 #include <iconv.h>
   8733 int
   8734 main ()
   8735 {
   8736 iconv_t cd = iconv_open("","");
   8737          iconv(cd,NULL,NULL,NULL,NULL);
   8738          iconv_close(cd);
   8739   ;
   8740   return 0;
   8741 }
   8742 _ACEOF
   8743 if ac_fn_c_try_link "$LINENO"; then :
   8744   am_cv_lib_iconv=yes
   8745         am_cv_func_iconv=yes
   8746 fi
   8747 rm -f core conftest.err conftest.$ac_objext \
   8748     conftest$ac_exeext conftest.$ac_ext
   8749       CPPFLAGS="$am_save_CPPFLAGS"
   8750       LIBS="$am_save_LIBS"
   8751     fi
   8752 
   8753 fi
   8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
   8755 $as_echo "$am_cv_func_iconv" >&6; }
   8756   if test "$am_cv_func_iconv" = yes; then
   8757 
   8758 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
   8759 
   8760   fi
   8761   if test "$am_cv_lib_iconv" = yes; then
   8762 
   8763   for element in $INCICONV; do
   8764     haveit=
   8765     for x in $CPPFLAGS; do
   8766 
   8767   acl_save_prefix="$prefix"
   8768   prefix="$acl_final_prefix"
   8769   acl_save_exec_prefix="$exec_prefix"
   8770   exec_prefix="$acl_final_exec_prefix"
   8771   eval x=\"$x\"
   8772   exec_prefix="$acl_save_exec_prefix"
   8773   prefix="$acl_save_prefix"
   8774 
   8775       if test "X$x" = "X$element"; then
   8776         haveit=yes
   8777         break
   8778       fi
   8779     done
   8780     if test -z "$haveit"; then
   8781       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   8782     fi
   8783   done
   8784 
   8785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
   8786 $as_echo_n "checking how to link with libiconv... " >&6; }
   8787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
   8788 $as_echo "$LIBICONV" >&6; }
   8789   else
   8790     LIBICONV=
   8791     LTLIBICONV=
   8792   fi
   8793 
   8794 
   8795 
   8796   if test "$am_cv_func_iconv" = yes; then
   8797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
   8798 $as_echo_n "checking for iconv declaration... " >&6; }
   8799     if ${am_cv_proto_iconv+:} false; then :
   8800   $as_echo_n "(cached) " >&6
   8801 else
   8802 
   8803       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8804 /* end confdefs.h.  */
   8805 
   8806 #include <stdlib.h>
   8807 #include <iconv.h>
   8808 extern
   8809 #ifdef __cplusplus
   8810 "C"
   8811 #endif
   8812 #if defined(__STDC__) || defined(__cplusplus)
   8813 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
   8814 #else
   8815 size_t iconv();
   8816 #endif
   8817 
   8818 int
   8819 main ()
   8820 {
   8821 
   8822   ;
   8823   return 0;
   8824 }
   8825 _ACEOF
   8826 if ac_fn_c_try_compile "$LINENO"; then :
   8827   am_cv_proto_iconv_arg1=""
   8828 else
   8829   am_cv_proto_iconv_arg1="const"
   8830 fi
   8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8832       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
   8833 fi
   8834 
   8835     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
   8836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
   8837          }$am_cv_proto_iconv" >&5
   8838 $as_echo "${ac_t:-
   8839          }$am_cv_proto_iconv" >&6; }
   8840 
   8841 cat >>confdefs.h <<_ACEOF
   8842 #define ICONV_CONST $am_cv_proto_iconv_arg1
   8843 _ACEOF
   8844 
   8845   fi
   8846 
   8847 
   8848 # GDB may fork/exec the iconv program to get the list of supported character
   8849 # sets.  Allow the user to specify where to find it.
   8850 # There are several factors affecting the choice of option name:
   8851 # - There is already --with-libiconv-prefix but we can't use it, it specifies
   8852 #   the build-time location of libiconv files.
   8853 # - The program we need to find is iconv, which comes with glibc.  The user
   8854 #   doesn't necessarily have libiconv installed.  Therefore naming this
   8855 #   --with-libiconv-foo feels wrong.
   8856 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
   8857 #   defined to work on directories not files (though it really doesn't know
   8858 #   the difference).
   8859 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
   8860 #   with --with-libiconv-prefix.
   8861 # Putting these together is why the option name is --with-iconv-bin.
   8862 
   8863 
   8864 # Check whether --with-iconv-bin was given.
   8865 if test "${with_iconv_bin+set}" = set; then :
   8866   withval=$with_iconv_bin; iconv_bin="${withval}"
   8867 
   8868 cat >>confdefs.h <<_ACEOF
   8869 #define ICONV_BIN "${iconv_bin}"
   8870 _ACEOF
   8871 
   8872 
   8873   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   8874      if test "x$prefix" = xNONE; then
   8875      	test_prefix=/usr/local
   8876      else
   8877 	test_prefix=$prefix
   8878      fi
   8879   else
   8880      test_prefix=$exec_prefix
   8881   fi
   8882   value=0
   8883   case ${iconv_bin} in
   8884      "${test_prefix}"|"${test_prefix}/"*|\
   8885 	'${exec_prefix}'|'${exec_prefix}/'*)
   8886      value=1
   8887      ;;
   8888   esac
   8889 
   8890 cat >>confdefs.h <<_ACEOF
   8891 #define ICONV_BIN_RELOCATABLE $value
   8892 _ACEOF
   8893 
   8894 
   8895 
   8896 fi
   8897 
   8898 
   8899 # For the TUI, we need enhanced curses functionality.
   8900 if test x"$enable_tui" != xno; then
   8901   prefer_curses=yes
   8902 fi
   8903 
   8904 curses_found=no
   8905 if test x"$prefer_curses" = xyes; then
   8906   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
   8907   # curses library because the latter might not provide all the
   8908   # functionality we need.  However, this leads to problems on systems
   8909   # where the linker searches /usr/local/lib, but the compiler doesn't
   8910   # search /usr/local/include, if ncurses is installed in /usr/local.  A
   8911   # default installation of ncurses on alpha*-dec-osf* will lead to such
   8912   # a situation.
   8913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
   8914 $as_echo_n "checking for library containing waddstr... " >&6; }
   8915 if ${ac_cv_search_waddstr+:} false; then :
   8916   $as_echo_n "(cached) " >&6
   8917 else
   8918   ac_func_search_save_LIBS=$LIBS
   8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8920 /* end confdefs.h.  */
   8921 
   8922 /* Override any GCC internal prototype to avoid an error.
   8923    Use char because int might match the return type of a GCC
   8924    builtin and then its argument prototype would still apply.  */
   8925 #ifdef __cplusplus
   8926 extern "C"
   8927 #endif
   8928 char waddstr ();
   8929 int
   8930 main ()
   8931 {
   8932 return waddstr ();
   8933   ;
   8934   return 0;
   8935 }
   8936 _ACEOF
   8937 for ac_lib in '' ncursesw ncurses cursesX curses; do
   8938   if test -z "$ac_lib"; then
   8939     ac_res="none required"
   8940   else
   8941     ac_res=-l$ac_lib
   8942     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8943   fi
   8944   if ac_fn_c_try_link "$LINENO"; then :
   8945   ac_cv_search_waddstr=$ac_res
   8946 fi
   8947 rm -f core conftest.err conftest.$ac_objext \
   8948     conftest$ac_exeext
   8949   if ${ac_cv_search_waddstr+:} false; then :
   8950   break
   8951 fi
   8952 done
   8953 if ${ac_cv_search_waddstr+:} false; then :
   8954 
   8955 else
   8956   ac_cv_search_waddstr=no
   8957 fi
   8958 rm conftest.$ac_ext
   8959 LIBS=$ac_func_search_save_LIBS
   8960 fi
   8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
   8962 $as_echo "$ac_cv_search_waddstr" >&6; }
   8963 ac_res=$ac_cv_search_waddstr
   8964 if test "$ac_res" != no; then :
   8965   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8966 
   8967 fi
   8968 
   8969 
   8970   if test "$ac_cv_search_waddstr" != no; then
   8971     curses_found=yes
   8972   fi
   8973 fi
   8974 
   8975 # Check whether we should enable the TUI, but only do so if we really
   8976 # can.
   8977 if test x"$enable_tui" != xno; then
   8978   if test -d $srcdir/tui; then
   8979     if test "$curses_found" != no; then
   8980       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
   8981       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
   8982       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
   8983       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
   8984     else
   8985       if test x"$enable_tui" = xyes; then
   8986 	as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
   8987       else
   8988 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
   8989 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
   8990       fi
   8991     fi
   8992   fi
   8993 fi
   8994 
   8995 # Since GDB uses Readline, we need termcap functionality.  In many
   8996 # cases this will be provided by the curses library, but some systems
   8997 # have a separate termcap library, or no curses library at all.
   8998 
   8999 case $host_os in
   9000   cygwin*)
   9001     if test -d $srcdir/libtermcap; then
   9002       LIBS="../libtermcap/libtermcap.a $LIBS"
   9003       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
   9004     fi ;;
   9005   go32* | *djgpp*)
   9006     ac_cv_search_tgetent="none required"
   9007     ;;
   9008 esac
   9009 
   9010 # These are the libraries checked by Readline.
   9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
   9012 $as_echo_n "checking for library containing tgetent... " >&6; }
   9013 if ${ac_cv_search_tgetent+:} false; then :
   9014   $as_echo_n "(cached) " >&6
   9015 else
   9016   ac_func_search_save_LIBS=$LIBS
   9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9018 /* end confdefs.h.  */
   9019 
   9020 /* Override any GCC internal prototype to avoid an error.
   9021    Use char because int might match the return type of a GCC
   9022    builtin and then its argument prototype would still apply.  */
   9023 #ifdef __cplusplus
   9024 extern "C"
   9025 #endif
   9026 char tgetent ();
   9027 int
   9028 main ()
   9029 {
   9030 return tgetent ();
   9031   ;
   9032   return 0;
   9033 }
   9034 _ACEOF
   9035 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
   9036   if test -z "$ac_lib"; then
   9037     ac_res="none required"
   9038   else
   9039     ac_res=-l$ac_lib
   9040     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9041   fi
   9042   if ac_fn_c_try_link "$LINENO"; then :
   9043   ac_cv_search_tgetent=$ac_res
   9044 fi
   9045 rm -f core conftest.err conftest.$ac_objext \
   9046     conftest$ac_exeext
   9047   if ${ac_cv_search_tgetent+:} false; then :
   9048   break
   9049 fi
   9050 done
   9051 if ${ac_cv_search_tgetent+:} false; then :
   9052 
   9053 else
   9054   ac_cv_search_tgetent=no
   9055 fi
   9056 rm conftest.$ac_ext
   9057 LIBS=$ac_func_search_save_LIBS
   9058 fi
   9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
   9060 $as_echo "$ac_cv_search_tgetent" >&6; }
   9061 ac_res=$ac_cv_search_tgetent
   9062 if test "$ac_res" != no; then :
   9063   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9064 
   9065 fi
   9066 
   9067 
   9068 if test "$ac_cv_search_tgetent" = no; then
   9069   CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
   9070 fi
   9071 
   9072 
   9073 # Check whether --with-system-readline was given.
   9074 if test "${with_system_readline+set}" = set; then :
   9075   withval=$with_system_readline;
   9076 fi
   9077 
   9078 
   9079 if test "$with_system_readline" = yes; then
   9080   READLINE=-lreadline
   9081   READLINE_DEPS=
   9082   READLINE_CFLAGS=
   9083   READLINE_TEXI_INCFLAG=
   9084 else
   9085   READLINE='$(READLINE_DIR)/libreadline.a'
   9086   READLINE_DEPS='$(READLINE)'
   9087   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
   9088   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
   9089 fi
   9090 
   9091 
   9092 
   9093 
   9094 
   9095 # Generate jit-reader.h
   9096 
   9097 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
   9098 TARGET_PTR=
   9099 
   9100 # The cast to long int works around a bug in the HP C Compiler
   9101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   9102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   9103 # This bug is HP SR number 8606223364.
   9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
   9105 $as_echo_n "checking size of unsigned long long... " >&6; }
   9106 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
   9107   $as_echo_n "(cached) " >&6
   9108 else
   9109   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
   9110 
   9111 else
   9112   if test "$ac_cv_type_unsigned_long_long" = yes; then
   9113      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9115 as_fn_error 77 "cannot compute sizeof (unsigned long long)
   9116 See \`config.log' for more details" "$LINENO" 5; }
   9117    else
   9118      ac_cv_sizeof_unsigned_long_long=0
   9119    fi
   9120 fi
   9121 
   9122 fi
   9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
   9124 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
   9125 
   9126 
   9127 
   9128 cat >>confdefs.h <<_ACEOF
   9129 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
   9130 _ACEOF
   9131 
   9132 
   9133 # The cast to long int works around a bug in the HP C Compiler
   9134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   9135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   9136 # This bug is HP SR number 8606223364.
   9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
   9138 $as_echo_n "checking size of unsigned long... " >&6; }
   9139 if ${ac_cv_sizeof_unsigned_long+:} false; then :
   9140   $as_echo_n "(cached) " >&6
   9141 else
   9142   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
   9143 
   9144 else
   9145   if test "$ac_cv_type_unsigned_long" = yes; then
   9146      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9148 as_fn_error 77 "cannot compute sizeof (unsigned long)
   9149 See \`config.log' for more details" "$LINENO" 5; }
   9150    else
   9151      ac_cv_sizeof_unsigned_long=0
   9152    fi
   9153 fi
   9154 
   9155 fi
   9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
   9157 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
   9158 
   9159 
   9160 
   9161 cat >>confdefs.h <<_ACEOF
   9162 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
   9163 _ACEOF
   9164 
   9165 
   9166 # The cast to long int works around a bug in the HP C Compiler
   9167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   9168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   9169 # This bug is HP SR number 8606223364.
   9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
   9171 $as_echo_n "checking size of unsigned __int128... " >&6; }
   9172 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
   9173   $as_echo_n "(cached) " >&6
   9174 else
   9175   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
   9176 
   9177 else
   9178   if test "$ac_cv_type_unsigned___int128" = yes; then
   9179      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9181 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
   9182 See \`config.log' for more details" "$LINENO" 5; }
   9183    else
   9184      ac_cv_sizeof_unsigned___int128=0
   9185    fi
   9186 fi
   9187 
   9188 fi
   9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
   9190 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
   9191 
   9192 
   9193 
   9194 cat >>confdefs.h <<_ACEOF
   9195 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
   9196 _ACEOF
   9197 
   9198 
   9199 
   9200 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
   9201   TARGET_PTR="unsigned long"
   9202 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
   9203   TARGET_PTR="unsigned long long"
   9204 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
   9205   TARGET_PTR="unsigned __int128"
   9206 else
   9207   TARGET_PTR="unsigned long"
   9208 fi
   9209 
   9210 
   9211 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
   9212 
   9213 
   9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   9215 $as_echo_n "checking for library containing dlopen... " >&6; }
   9216 if ${ac_cv_search_dlopen+:} false; then :
   9217   $as_echo_n "(cached) " >&6
   9218 else
   9219   ac_func_search_save_LIBS=$LIBS
   9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9221 /* end confdefs.h.  */
   9222 
   9223 /* Override any GCC internal prototype to avoid an error.
   9224    Use char because int might match the return type of a GCC
   9225    builtin and then its argument prototype would still apply.  */
   9226 #ifdef __cplusplus
   9227 extern "C"
   9228 #endif
   9229 char dlopen ();
   9230 int
   9231 main ()
   9232 {
   9233 return dlopen ();
   9234   ;
   9235   return 0;
   9236 }
   9237 _ACEOF
   9238 for ac_lib in '' dl; do
   9239   if test -z "$ac_lib"; then
   9240     ac_res="none required"
   9241   else
   9242     ac_res=-l$ac_lib
   9243     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9244   fi
   9245   if ac_fn_c_try_link "$LINENO"; then :
   9246   ac_cv_search_dlopen=$ac_res
   9247 fi
   9248 rm -f core conftest.err conftest.$ac_objext \
   9249     conftest$ac_exeext
   9250   if ${ac_cv_search_dlopen+:} false; then :
   9251   break
   9252 fi
   9253 done
   9254 if ${ac_cv_search_dlopen+:} false; then :
   9255 
   9256 else
   9257   ac_cv_search_dlopen=no
   9258 fi
   9259 rm conftest.$ac_ext
   9260 LIBS=$ac_func_search_save_LIBS
   9261 fi
   9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   9263 $as_echo "$ac_cv_search_dlopen" >&6; }
   9264 ac_res=$ac_cv_search_dlopen
   9265 if test "$ac_res" != no; then :
   9266   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9267 
   9268 fi
   9269 
   9270 
   9271 
   9272 
   9273 # Check whether --with-jit-reader-dir was given.
   9274 if test "${with_jit_reader_dir+set}" = set; then :
   9275   withval=$with_jit_reader_dir;
   9276     JIT_READER_DIR=$withval
   9277 else
   9278   JIT_READER_DIR=${libdir}/gdb
   9279 fi
   9280 
   9281 
   9282   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   9283   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   9284   ac_define_dir=`eval echo $JIT_READER_DIR`
   9285   ac_define_dir=`eval echo $ac_define_dir`
   9286 
   9287 cat >>confdefs.h <<_ACEOF
   9288 #define JIT_READER_DIR "$ac_define_dir"
   9289 _ACEOF
   9290 
   9291 
   9292 
   9293 
   9294   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   9295      if test "x$prefix" = xNONE; then
   9296      	test_prefix=/usr/local
   9297      else
   9298 	test_prefix=$prefix
   9299      fi
   9300   else
   9301      test_prefix=$exec_prefix
   9302   fi
   9303   value=0
   9304   case ${ac_define_dir} in
   9305      "${test_prefix}"|"${test_prefix}/"*|\
   9306 	'${exec_prefix}'|'${exec_prefix}/'*)
   9307      value=1
   9308      ;;
   9309   esac
   9310 
   9311 cat >>confdefs.h <<_ACEOF
   9312 #define JIT_READER_DIR_RELOCATABLE $value
   9313 _ACEOF
   9314 
   9315 
   9316 
   9317 
   9318 
   9319 # Check whether --with-expat was given.
   9320 if test "${with_expat+set}" = set; then :
   9321   withval=$with_expat;
   9322 else
   9323   with_expat=auto
   9324 fi
   9325 
   9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
   9327 $as_echo_n "checking whether to use expat... " >&6; }
   9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
   9329 $as_echo "$with_expat" >&6; }
   9330 
   9331 if test "${with_expat}" = no; then
   9332   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
   9333 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
   9334   HAVE_LIBEXPAT=no
   9335 else
   9336 
   9337 
   9338 
   9339 
   9340 
   9341 
   9342 
   9343 
   9344     use_additional=yes
   9345 
   9346   acl_save_prefix="$prefix"
   9347   prefix="$acl_final_prefix"
   9348   acl_save_exec_prefix="$exec_prefix"
   9349   exec_prefix="$acl_final_exec_prefix"
   9350 
   9351     eval additional_includedir=\"$includedir\"
   9352     eval additional_libdir=\"$libdir\"
   9353 
   9354   exec_prefix="$acl_save_exec_prefix"
   9355   prefix="$acl_save_prefix"
   9356 
   9357 
   9358 # Check whether --with-libexpat-prefix was given.
   9359 if test "${with_libexpat_prefix+set}" = set; then :
   9360   withval=$with_libexpat_prefix;
   9361     if test "X$withval" = "Xno"; then
   9362       use_additional=no
   9363     else
   9364       if test "X$withval" = "X"; then
   9365 
   9366   acl_save_prefix="$prefix"
   9367   prefix="$acl_final_prefix"
   9368   acl_save_exec_prefix="$exec_prefix"
   9369   exec_prefix="$acl_final_exec_prefix"
   9370 
   9371           eval additional_includedir=\"$includedir\"
   9372           eval additional_libdir=\"$libdir\"
   9373 
   9374   exec_prefix="$acl_save_exec_prefix"
   9375   prefix="$acl_save_prefix"
   9376 
   9377       else
   9378         additional_includedir="$withval/include"
   9379         additional_libdir="$withval/lib"
   9380       fi
   9381     fi
   9382 
   9383 fi
   9384 
   9385       LIBEXPAT=
   9386   LTLIBEXPAT=
   9387   INCEXPAT=
   9388   rpathdirs=
   9389   ltrpathdirs=
   9390   names_already_handled=
   9391   names_next_round='expat '
   9392   while test -n "$names_next_round"; do
   9393     names_this_round="$names_next_round"
   9394     names_next_round=
   9395     for name in $names_this_round; do
   9396       already_handled=
   9397       for n in $names_already_handled; do
   9398         if test "$n" = "$name"; then
   9399           already_handled=yes
   9400           break
   9401         fi
   9402       done
   9403       if test -z "$already_handled"; then
   9404         names_already_handled="$names_already_handled $name"
   9405                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   9406         eval value=\"\$HAVE_LIB$uppername\"
   9407         if test -n "$value"; then
   9408           if test "$value" = yes; then
   9409             eval value=\"\$LIB$uppername\"
   9410             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
   9411             eval value=\"\$LTLIB$uppername\"
   9412             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
   9413           else
   9414                                     :
   9415           fi
   9416         else
   9417                               found_dir=
   9418           found_la=
   9419           found_so=
   9420           found_a=
   9421           if test $use_additional = yes; then
   9422             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   9423               found_dir="$additional_libdir"
   9424               found_so="$additional_libdir/lib$name.$shlibext"
   9425               if test -f "$additional_libdir/lib$name.la"; then
   9426                 found_la="$additional_libdir/lib$name.la"
   9427               fi
   9428             else
   9429               if test -f "$additional_libdir/lib$name.$libext"; then
   9430                 found_dir="$additional_libdir"
   9431                 found_a="$additional_libdir/lib$name.$libext"
   9432                 if test -f "$additional_libdir/lib$name.la"; then
   9433                   found_la="$additional_libdir/lib$name.la"
   9434                 fi
   9435               fi
   9436             fi
   9437           fi
   9438           if test "X$found_dir" = "X"; then
   9439             for x in $LDFLAGS $LTLIBEXPAT; do
   9440 
   9441   acl_save_prefix="$prefix"
   9442   prefix="$acl_final_prefix"
   9443   acl_save_exec_prefix="$exec_prefix"
   9444   exec_prefix="$acl_final_exec_prefix"
   9445   eval x=\"$x\"
   9446   exec_prefix="$acl_save_exec_prefix"
   9447   prefix="$acl_save_prefix"
   9448 
   9449               case "$x" in
   9450                 -L*)
   9451                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   9452                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   9453                     found_dir="$dir"
   9454                     found_so="$dir/lib$name.$shlibext"
   9455                     if test -f "$dir/lib$name.la"; then
   9456                       found_la="$dir/lib$name.la"
   9457                     fi
   9458                   else
   9459                     if test -f "$dir/lib$name.$libext"; then
   9460                       found_dir="$dir"
   9461                       found_a="$dir/lib$name.$libext"
   9462                       if test -f "$dir/lib$name.la"; then
   9463                         found_la="$dir/lib$name.la"
   9464                       fi
   9465                     fi
   9466                   fi
   9467                   ;;
   9468               esac
   9469               if test "X$found_dir" != "X"; then
   9470                 break
   9471               fi
   9472             done
   9473           fi
   9474           if test "X$found_dir" != "X"; then
   9475                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
   9476             if test "X$found_so" != "X"; then
   9477                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   9478                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   9479               else
   9480                                                                                 haveit=
   9481                 for x in $ltrpathdirs; do
   9482                   if test "X$x" = "X$found_dir"; then
   9483                     haveit=yes
   9484                     break
   9485                   fi
   9486                 done
   9487                 if test -z "$haveit"; then
   9488                   ltrpathdirs="$ltrpathdirs $found_dir"
   9489                 fi
   9490                                 if test "$hardcode_direct" = yes; then
   9491                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   9492                 else
   9493                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   9494                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   9495                                                             haveit=
   9496                     for x in $rpathdirs; do
   9497                       if test "X$x" = "X$found_dir"; then
   9498                         haveit=yes
   9499                         break
   9500                       fi
   9501                     done
   9502                     if test -z "$haveit"; then
   9503                       rpathdirs="$rpathdirs $found_dir"
   9504                     fi
   9505                   else
   9506                                                                                 haveit=
   9507                     for x in $LDFLAGS $LIBEXPAT; do
   9508 
   9509   acl_save_prefix="$prefix"
   9510   prefix="$acl_final_prefix"
   9511   acl_save_exec_prefix="$exec_prefix"
   9512   exec_prefix="$acl_final_exec_prefix"
   9513   eval x=\"$x\"
   9514   exec_prefix="$acl_save_exec_prefix"
   9515   prefix="$acl_save_prefix"
   9516 
   9517                       if test "X$x" = "X-L$found_dir"; then
   9518                         haveit=yes
   9519                         break
   9520                       fi
   9521                     done
   9522                     if test -z "$haveit"; then
   9523                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
   9524                     fi
   9525                     if test "$hardcode_minus_L" != no; then
   9526                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   9527                     else
   9528                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
   9529                     fi
   9530                   fi
   9531                 fi
   9532               fi
   9533             else
   9534               if test "X$found_a" != "X"; then
   9535                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
   9536               else
   9537                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
   9538               fi
   9539             fi
   9540                         additional_includedir=
   9541             case "$found_dir" in
   9542               */lib | */lib/)
   9543                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   9544                 additional_includedir="$basedir/include"
   9545                 ;;
   9546             esac
   9547             if test "X$additional_includedir" != "X"; then
   9548                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   9549                 haveit=
   9550                 if test "X$additional_includedir" = "X/usr/local/include"; then
   9551                   if test -n "$GCC"; then
   9552                     case $host_os in
   9553                       linux*) haveit=yes;;
   9554                     esac
   9555                   fi
   9556                 fi
   9557                 if test -z "$haveit"; then
   9558                   for x in $CPPFLAGS $INCEXPAT; do
   9559 
   9560   acl_save_prefix="$prefix"
   9561   prefix="$acl_final_prefix"
   9562   acl_save_exec_prefix="$exec_prefix"
   9563   exec_prefix="$acl_final_exec_prefix"
   9564   eval x=\"$x\"
   9565   exec_prefix="$acl_save_exec_prefix"
   9566   prefix="$acl_save_prefix"
   9567 
   9568                     if test "X$x" = "X-I$additional_includedir"; then
   9569                       haveit=yes
   9570                       break
   9571                     fi
   9572                   done
   9573                   if test -z "$haveit"; then
   9574                     if test -d "$additional_includedir"; then
   9575                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
   9576                     fi
   9577                   fi
   9578                 fi
   9579               fi
   9580             fi
   9581                         if test -n "$found_la"; then
   9582                                                         save_libdir="$libdir"
   9583               case "$found_la" in
   9584                 */* | *\\*) . "$found_la" ;;
   9585                 *) . "./$found_la" ;;
   9586               esac
   9587               libdir="$save_libdir"
   9588                             for dep in $dependency_libs; do
   9589                 case "$dep" in
   9590                   -L*)
   9591                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   9592                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   9593                       haveit=
   9594                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   9595                         if test -n "$GCC"; then
   9596                           case $host_os in
   9597                             linux*) haveit=yes;;
   9598                           esac
   9599                         fi
   9600                       fi
   9601                       if test -z "$haveit"; then
   9602                         haveit=
   9603                         for x in $LDFLAGS $LIBEXPAT; do
   9604 
   9605   acl_save_prefix="$prefix"
   9606   prefix="$acl_final_prefix"
   9607   acl_save_exec_prefix="$exec_prefix"
   9608   exec_prefix="$acl_final_exec_prefix"
   9609   eval x=\"$x\"
   9610   exec_prefix="$acl_save_exec_prefix"
   9611   prefix="$acl_save_prefix"
   9612 
   9613                           if test "X$x" = "X-L$additional_libdir"; then
   9614                             haveit=yes
   9615                             break
   9616                           fi
   9617                         done
   9618                         if test -z "$haveit"; then
   9619                           if test -d "$additional_libdir"; then
   9620                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
   9621                           fi
   9622                         fi
   9623                         haveit=
   9624                         for x in $LDFLAGS $LTLIBEXPAT; do
   9625 
   9626   acl_save_prefix="$prefix"
   9627   prefix="$acl_final_prefix"
   9628   acl_save_exec_prefix="$exec_prefix"
   9629   exec_prefix="$acl_final_exec_prefix"
   9630   eval x=\"$x\"
   9631   exec_prefix="$acl_save_exec_prefix"
   9632   prefix="$acl_save_prefix"
   9633 
   9634                           if test "X$x" = "X-L$additional_libdir"; then
   9635                             haveit=yes
   9636                             break
   9637                           fi
   9638                         done
   9639                         if test -z "$haveit"; then
   9640                           if test -d "$additional_libdir"; then
   9641                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
   9642                           fi
   9643                         fi
   9644                       fi
   9645                     fi
   9646                     ;;
   9647                   -R*)
   9648                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   9649                     if test "$enable_rpath" != no; then
   9650                                                                   haveit=
   9651                       for x in $rpathdirs; do
   9652                         if test "X$x" = "X$dir"; then
   9653                           haveit=yes
   9654                           break
   9655                         fi
   9656                       done
   9657                       if test -z "$haveit"; then
   9658                         rpathdirs="$rpathdirs $dir"
   9659                       fi
   9660                                                                   haveit=
   9661                       for x in $ltrpathdirs; do
   9662                         if test "X$x" = "X$dir"; then
   9663                           haveit=yes
   9664                           break
   9665                         fi
   9666                       done
   9667                       if test -z "$haveit"; then
   9668                         ltrpathdirs="$ltrpathdirs $dir"
   9669                       fi
   9670                     fi
   9671                     ;;
   9672                   -l*)
   9673                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   9674                     ;;
   9675                   *.la)
   9676                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   9677                     ;;
   9678                   *)
   9679                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
   9680                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
   9681                     ;;
   9682                 esac
   9683               done
   9684             fi
   9685           else
   9686                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
   9687             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
   9688           fi
   9689         fi
   9690       fi
   9691     done
   9692   done
   9693   if test "X$rpathdirs" != "X"; then
   9694     if test -n "$hardcode_libdir_separator"; then
   9695                         alldirs=
   9696       for found_dir in $rpathdirs; do
   9697         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   9698       done
   9699             acl_save_libdir="$libdir"
   9700       libdir="$alldirs"
   9701       eval flag=\"$hardcode_libdir_flag_spec\"
   9702       libdir="$acl_save_libdir"
   9703       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
   9704     else
   9705             for found_dir in $rpathdirs; do
   9706         acl_save_libdir="$libdir"
   9707         libdir="$found_dir"
   9708         eval flag=\"$hardcode_libdir_flag_spec\"
   9709         libdir="$acl_save_libdir"
   9710         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
   9711       done
   9712     fi
   9713   fi
   9714   if test "X$ltrpathdirs" != "X"; then
   9715             for found_dir in $ltrpathdirs; do
   9716       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
   9717     done
   9718   fi
   9719 
   9720 
   9721         ac_save_CPPFLAGS="$CPPFLAGS"
   9722 
   9723   for element in $INCEXPAT; do
   9724     haveit=
   9725     for x in $CPPFLAGS; do
   9726 
   9727   acl_save_prefix="$prefix"
   9728   prefix="$acl_final_prefix"
   9729   acl_save_exec_prefix="$exec_prefix"
   9730   exec_prefix="$acl_final_exec_prefix"
   9731   eval x=\"$x\"
   9732   exec_prefix="$acl_save_exec_prefix"
   9733   prefix="$acl_save_prefix"
   9734 
   9735       if test "X$x" = "X$element"; then
   9736         haveit=yes
   9737         break
   9738       fi
   9739     done
   9740     if test -z "$haveit"; then
   9741       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   9742     fi
   9743   done
   9744 
   9745 
   9746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
   9747 $as_echo_n "checking for libexpat... " >&6; }
   9748 if ${ac_cv_libexpat+:} false; then :
   9749   $as_echo_n "(cached) " >&6
   9750 else
   9751 
   9752     ac_save_LIBS="$LIBS"
   9753     LIBS="$LIBS $LIBEXPAT"
   9754     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9755 /* end confdefs.h.  */
   9756 #include "expat.h"
   9757 int
   9758 main ()
   9759 {
   9760 XML_Parser p = XML_ParserCreate (0);
   9761   ;
   9762   return 0;
   9763 }
   9764 _ACEOF
   9765 if ac_fn_c_try_link "$LINENO"; then :
   9766   ac_cv_libexpat=yes
   9767 else
   9768   ac_cv_libexpat=no
   9769 fi
   9770 rm -f core conftest.err conftest.$ac_objext \
   9771     conftest$ac_exeext conftest.$ac_ext
   9772     LIBS="$ac_save_LIBS"
   9773 
   9774 fi
   9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
   9776 $as_echo "$ac_cv_libexpat" >&6; }
   9777   if test "$ac_cv_libexpat" = yes; then
   9778     HAVE_LIBEXPAT=yes
   9779 
   9780 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
   9781 
   9782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
   9783 $as_echo_n "checking how to link with libexpat... " >&6; }
   9784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
   9785 $as_echo "$LIBEXPAT" >&6; }
   9786   else
   9787     HAVE_LIBEXPAT=no
   9788             CPPFLAGS="$ac_save_CPPFLAGS"
   9789     LIBEXPAT=
   9790     LTLIBEXPAT=
   9791   fi
   9792 
   9793 
   9794 
   9795 
   9796 
   9797 
   9798   if test "$HAVE_LIBEXPAT" != yes; then
   9799     if test "$with_expat" = yes; then
   9800       as_fn_error $? "expat is missing or unusable" "$LINENO" 5
   9801     else
   9802       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
   9803 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
   9804     fi
   9805   else
   9806     save_LIBS=$LIBS
   9807     LIBS="$LIBS $LIBEXPAT"
   9808     for ac_func in XML_StopParser
   9809 do :
   9810   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
   9811 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
   9812   cat >>confdefs.h <<_ACEOF
   9813 #define HAVE_XML_STOPPARSER 1
   9814 _ACEOF
   9815 
   9816 fi
   9817 done
   9818 
   9819     LIBS=$save_LIBS
   9820   fi
   9821 fi
   9822 
   9823 
   9824 # Check whether --with-mpfr was given.
   9825 if test "${with_mpfr+set}" = set; then :
   9826   withval=$with_mpfr;
   9827 else
   9828   with_mpfr=auto
   9829 fi
   9830 
   9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
   9832 $as_echo_n "checking whether to use MPFR... " >&6; }
   9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
   9834 $as_echo "$with_mpfr" >&6; }
   9835 
   9836 if test "${with_mpfr}" = no; then
   9837   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
   9838 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
   9839   HAVE_LIBMPFR=no
   9840 else
   9841 
   9842 
   9843 
   9844 
   9845 
   9846 
   9847 
   9848 
   9849     use_additional=yes
   9850 
   9851   acl_save_prefix="$prefix"
   9852   prefix="$acl_final_prefix"
   9853   acl_save_exec_prefix="$exec_prefix"
   9854   exec_prefix="$acl_final_exec_prefix"
   9855 
   9856     eval additional_includedir=\"$includedir\"
   9857     eval additional_libdir=\"$libdir\"
   9858 
   9859   exec_prefix="$acl_save_exec_prefix"
   9860   prefix="$acl_save_prefix"
   9861 
   9862 
   9863 # Check whether --with-libmpfr-prefix was given.
   9864 if test "${with_libmpfr_prefix+set}" = set; then :
   9865   withval=$with_libmpfr_prefix;
   9866     if test "X$withval" = "Xno"; then
   9867       use_additional=no
   9868     else
   9869       if test "X$withval" = "X"; then
   9870 
   9871   acl_save_prefix="$prefix"
   9872   prefix="$acl_final_prefix"
   9873   acl_save_exec_prefix="$exec_prefix"
   9874   exec_prefix="$acl_final_exec_prefix"
   9875 
   9876           eval additional_includedir=\"$includedir\"
   9877           eval additional_libdir=\"$libdir\"
   9878 
   9879   exec_prefix="$acl_save_exec_prefix"
   9880   prefix="$acl_save_prefix"
   9881 
   9882       else
   9883         additional_includedir="$withval/include"
   9884         additional_libdir="$withval/lib"
   9885       fi
   9886     fi
   9887 
   9888 fi
   9889 
   9890       LIBMPFR=
   9891   LTLIBMPFR=
   9892   INCMPFR=
   9893   rpathdirs=
   9894   ltrpathdirs=
   9895   names_already_handled=
   9896   names_next_round='mpfr gmp'
   9897   while test -n "$names_next_round"; do
   9898     names_this_round="$names_next_round"
   9899     names_next_round=
   9900     for name in $names_this_round; do
   9901       already_handled=
   9902       for n in $names_already_handled; do
   9903         if test "$n" = "$name"; then
   9904           already_handled=yes
   9905           break
   9906         fi
   9907       done
   9908       if test -z "$already_handled"; then
   9909         names_already_handled="$names_already_handled $name"
   9910                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   9911         eval value=\"\$HAVE_LIB$uppername\"
   9912         if test -n "$value"; then
   9913           if test "$value" = yes; then
   9914             eval value=\"\$LIB$uppername\"
   9915             test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
   9916             eval value=\"\$LTLIB$uppername\"
   9917             test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
   9918           else
   9919                                     :
   9920           fi
   9921         else
   9922                               found_dir=
   9923           found_la=
   9924           found_so=
   9925           found_a=
   9926           if test $use_additional = yes; then
   9927             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   9928               found_dir="$additional_libdir"
   9929               found_so="$additional_libdir/lib$name.$shlibext"
   9930               if test -f "$additional_libdir/lib$name.la"; then
   9931                 found_la="$additional_libdir/lib$name.la"
   9932               fi
   9933             else
   9934               if test -f "$additional_libdir/lib$name.$libext"; then
   9935                 found_dir="$additional_libdir"
   9936                 found_a="$additional_libdir/lib$name.$libext"
   9937                 if test -f "$additional_libdir/lib$name.la"; then
   9938                   found_la="$additional_libdir/lib$name.la"
   9939                 fi
   9940               fi
   9941             fi
   9942           fi
   9943           if test "X$found_dir" = "X"; then
   9944             for x in $LDFLAGS $LTLIBMPFR; do
   9945 
   9946   acl_save_prefix="$prefix"
   9947   prefix="$acl_final_prefix"
   9948   acl_save_exec_prefix="$exec_prefix"
   9949   exec_prefix="$acl_final_exec_prefix"
   9950   eval x=\"$x\"
   9951   exec_prefix="$acl_save_exec_prefix"
   9952   prefix="$acl_save_prefix"
   9953 
   9954               case "$x" in
   9955                 -L*)
   9956                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   9957                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   9958                     found_dir="$dir"
   9959                     found_so="$dir/lib$name.$shlibext"
   9960                     if test -f "$dir/lib$name.la"; then
   9961                       found_la="$dir/lib$name.la"
   9962                     fi
   9963                   else
   9964                     if test -f "$dir/lib$name.$libext"; then
   9965                       found_dir="$dir"
   9966                       found_a="$dir/lib$name.$libext"
   9967                       if test -f "$dir/lib$name.la"; then
   9968                         found_la="$dir/lib$name.la"
   9969                       fi
   9970                     fi
   9971                   fi
   9972                   ;;
   9973               esac
   9974               if test "X$found_dir" != "X"; then
   9975                 break
   9976               fi
   9977             done
   9978           fi
   9979           if test "X$found_dir" != "X"; then
   9980                         LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
   9981             if test "X$found_so" != "X"; then
   9982                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   9983                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
   9984               else
   9985                                                                                 haveit=
   9986                 for x in $ltrpathdirs; do
   9987                   if test "X$x" = "X$found_dir"; then
   9988                     haveit=yes
   9989                     break
   9990                   fi
   9991                 done
   9992                 if test -z "$haveit"; then
   9993                   ltrpathdirs="$ltrpathdirs $found_dir"
   9994                 fi
   9995                                 if test "$hardcode_direct" = yes; then
   9996                                                       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
   9997                 else
   9998                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   9999                                                             LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
   10000                                                             haveit=
   10001                     for x in $rpathdirs; do
   10002                       if test "X$x" = "X$found_dir"; then
   10003                         haveit=yes
   10004                         break
   10005                       fi
   10006                     done
   10007                     if test -z "$haveit"; then
   10008                       rpathdirs="$rpathdirs $found_dir"
   10009                     fi
   10010                   else
   10011                                                                                 haveit=
   10012                     for x in $LDFLAGS $LIBMPFR; do
   10013 
   10014   acl_save_prefix="$prefix"
   10015   prefix="$acl_final_prefix"
   10016   acl_save_exec_prefix="$exec_prefix"
   10017   exec_prefix="$acl_final_exec_prefix"
   10018   eval x=\"$x\"
   10019   exec_prefix="$acl_save_exec_prefix"
   10020   prefix="$acl_save_prefix"
   10021 
   10022                       if test "X$x" = "X-L$found_dir"; then
   10023                         haveit=yes
   10024                         break
   10025                       fi
   10026                     done
   10027                     if test -z "$haveit"; then
   10028                       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
   10029                     fi
   10030                     if test "$hardcode_minus_L" != no; then
   10031                                                                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
   10032                     else
   10033                                                                                                                                                                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
   10034                     fi
   10035                   fi
   10036                 fi
   10037               fi
   10038             else
   10039               if test "X$found_a" != "X"; then
   10040                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
   10041               else
   10042                                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
   10043               fi
   10044             fi
   10045                         additional_includedir=
   10046             case "$found_dir" in
   10047               */lib | */lib/)
   10048                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   10049                 additional_includedir="$basedir/include"
   10050                 ;;
   10051             esac
   10052             if test "X$additional_includedir" != "X"; then
   10053                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   10054                 haveit=
   10055                 if test "X$additional_includedir" = "X/usr/local/include"; then
   10056                   if test -n "$GCC"; then
   10057                     case $host_os in
   10058                       linux*) haveit=yes;;
   10059                     esac
   10060                   fi
   10061                 fi
   10062                 if test -z "$haveit"; then
   10063                   for x in $CPPFLAGS $INCMPFR; do
   10064 
   10065   acl_save_prefix="$prefix"
   10066   prefix="$acl_final_prefix"
   10067   acl_save_exec_prefix="$exec_prefix"
   10068   exec_prefix="$acl_final_exec_prefix"
   10069   eval x=\"$x\"
   10070   exec_prefix="$acl_save_exec_prefix"
   10071   prefix="$acl_save_prefix"
   10072 
   10073                     if test "X$x" = "X-I$additional_includedir"; then
   10074                       haveit=yes
   10075                       break
   10076                     fi
   10077                   done
   10078                   if test -z "$haveit"; then
   10079                     if test -d "$additional_includedir"; then
   10080                                             INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
   10081                     fi
   10082                   fi
   10083                 fi
   10084               fi
   10085             fi
   10086                         if test -n "$found_la"; then
   10087                                                         save_libdir="$libdir"
   10088               case "$found_la" in
   10089                 */* | *\\*) . "$found_la" ;;
   10090                 *) . "./$found_la" ;;
   10091               esac
   10092               libdir="$save_libdir"
   10093                             for dep in $dependency_libs; do
   10094                 case "$dep" in
   10095                   -L*)
   10096                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   10097                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   10098                       haveit=
   10099                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   10100                         if test -n "$GCC"; then
   10101                           case $host_os in
   10102                             linux*) haveit=yes;;
   10103                           esac
   10104                         fi
   10105                       fi
   10106                       if test -z "$haveit"; then
   10107                         haveit=
   10108                         for x in $LDFLAGS $LIBMPFR; do
   10109 
   10110   acl_save_prefix="$prefix"
   10111   prefix="$acl_final_prefix"
   10112   acl_save_exec_prefix="$exec_prefix"
   10113   exec_prefix="$acl_final_exec_prefix"
   10114   eval x=\"$x\"
   10115   exec_prefix="$acl_save_exec_prefix"
   10116   prefix="$acl_save_prefix"
   10117 
   10118                           if test "X$x" = "X-L$additional_libdir"; then
   10119                             haveit=yes
   10120                             break
   10121                           fi
   10122                         done
   10123                         if test -z "$haveit"; then
   10124                           if test -d "$additional_libdir"; then
   10125                                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
   10126                           fi
   10127                         fi
   10128                         haveit=
   10129                         for x in $LDFLAGS $LTLIBMPFR; do
   10130 
   10131   acl_save_prefix="$prefix"
   10132   prefix="$acl_final_prefix"
   10133   acl_save_exec_prefix="$exec_prefix"
   10134   exec_prefix="$acl_final_exec_prefix"
   10135   eval x=\"$x\"
   10136   exec_prefix="$acl_save_exec_prefix"
   10137   prefix="$acl_save_prefix"
   10138 
   10139                           if test "X$x" = "X-L$additional_libdir"; then
   10140                             haveit=yes
   10141                             break
   10142                           fi
   10143                         done
   10144                         if test -z "$haveit"; then
   10145                           if test -d "$additional_libdir"; then
   10146                                                         LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
   10147                           fi
   10148                         fi
   10149                       fi
   10150                     fi
   10151                     ;;
   10152                   -R*)
   10153                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   10154                     if test "$enable_rpath" != no; then
   10155                                                                   haveit=
   10156                       for x in $rpathdirs; do
   10157                         if test "X$x" = "X$dir"; then
   10158                           haveit=yes
   10159                           break
   10160                         fi
   10161                       done
   10162                       if test -z "$haveit"; then
   10163                         rpathdirs="$rpathdirs $dir"
   10164                       fi
   10165                                                                   haveit=
   10166                       for x in $ltrpathdirs; do
   10167                         if test "X$x" = "X$dir"; then
   10168                           haveit=yes
   10169                           break
   10170                         fi
   10171                       done
   10172                       if test -z "$haveit"; then
   10173                         ltrpathdirs="$ltrpathdirs $dir"
   10174                       fi
   10175                     fi
   10176                     ;;
   10177                   -l*)
   10178                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   10179                     ;;
   10180                   *.la)
   10181                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   10182                     ;;
   10183                   *)
   10184                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
   10185                     LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
   10186                     ;;
   10187                 esac
   10188               done
   10189             fi
   10190           else
   10191                                                             LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
   10192             LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
   10193           fi
   10194         fi
   10195       fi
   10196     done
   10197   done
   10198   if test "X$rpathdirs" != "X"; then
   10199     if test -n "$hardcode_libdir_separator"; then
   10200                         alldirs=
   10201       for found_dir in $rpathdirs; do
   10202         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   10203       done
   10204             acl_save_libdir="$libdir"
   10205       libdir="$alldirs"
   10206       eval flag=\"$hardcode_libdir_flag_spec\"
   10207       libdir="$acl_save_libdir"
   10208       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
   10209     else
   10210             for found_dir in $rpathdirs; do
   10211         acl_save_libdir="$libdir"
   10212         libdir="$found_dir"
   10213         eval flag=\"$hardcode_libdir_flag_spec\"
   10214         libdir="$acl_save_libdir"
   10215         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
   10216       done
   10217     fi
   10218   fi
   10219   if test "X$ltrpathdirs" != "X"; then
   10220             for found_dir in $ltrpathdirs; do
   10221       LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
   10222     done
   10223   fi
   10224 
   10225 
   10226         ac_save_CPPFLAGS="$CPPFLAGS"
   10227 
   10228   for element in $INCMPFR; do
   10229     haveit=
   10230     for x in $CPPFLAGS; do
   10231 
   10232   acl_save_prefix="$prefix"
   10233   prefix="$acl_final_prefix"
   10234   acl_save_exec_prefix="$exec_prefix"
   10235   exec_prefix="$acl_final_exec_prefix"
   10236   eval x=\"$x\"
   10237   exec_prefix="$acl_save_exec_prefix"
   10238   prefix="$acl_save_prefix"
   10239 
   10240       if test "X$x" = "X$element"; then
   10241         haveit=yes
   10242         break
   10243       fi
   10244     done
   10245     if test -z "$haveit"; then
   10246       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   10247     fi
   10248   done
   10249 
   10250 
   10251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
   10252 $as_echo_n "checking for libmpfr... " >&6; }
   10253 if ${ac_cv_libmpfr+:} false; then :
   10254   $as_echo_n "(cached) " >&6
   10255 else
   10256 
   10257     ac_save_LIBS="$LIBS"
   10258     LIBS="$LIBS $LIBMPFR"
   10259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10260 /* end confdefs.h.  */
   10261 #include <mpfr.h>
   10262 int
   10263 main ()
   10264 {
   10265 mpfr_exp_t exp; mpfr_t x;
   10266 			 mpfr_frexp (&exp, x, x, MPFR_RNDN);
   10267   ;
   10268   return 0;
   10269 }
   10270 _ACEOF
   10271 if ac_fn_c_try_link "$LINENO"; then :
   10272   ac_cv_libmpfr=yes
   10273 else
   10274   ac_cv_libmpfr=no
   10275 fi
   10276 rm -f core conftest.err conftest.$ac_objext \
   10277     conftest$ac_exeext conftest.$ac_ext
   10278     LIBS="$ac_save_LIBS"
   10279 
   10280 fi
   10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
   10282 $as_echo "$ac_cv_libmpfr" >&6; }
   10283   if test "$ac_cv_libmpfr" = yes; then
   10284     HAVE_LIBMPFR=yes
   10285 
   10286 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
   10287 
   10288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
   10289 $as_echo_n "checking how to link with libmpfr... " >&6; }
   10290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
   10291 $as_echo "$LIBMPFR" >&6; }
   10292   else
   10293     HAVE_LIBMPFR=no
   10294             CPPFLAGS="$ac_save_CPPFLAGS"
   10295     LIBMPFR=
   10296     LTLIBMPFR=
   10297   fi
   10298 
   10299 
   10300 
   10301 
   10302 
   10303 
   10304   if test "$HAVE_LIBMPFR" != yes; then
   10305     if test "$with_mpfr" = yes; then
   10306       as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
   10307     else
   10308       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
   10309 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
   10310     fi
   10311   fi
   10312 fi
   10313 
   10314 # --------------------- #
   10315 # Check for libpython.  #
   10316 # --------------------- #
   10317 
   10318 
   10319 
   10320 
   10321 
   10322 
   10323 # Check whether --with-python was given.
   10324 if test "${with_python+set}" = set; then :
   10325   withval=$with_python;
   10326 else
   10327   with_python=auto
   10328 fi
   10329 
   10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
   10331 $as_echo_n "checking whether to use python... " >&6; }
   10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
   10333 $as_echo "$with_python" >&6; }
   10334 
   10335 if test "${with_python}" = no; then
   10336   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
   10337 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
   10338   have_libpython=no
   10339 else
   10340   case "${with_python}" in
   10341   [\\/]* | ?:[\\/]*)
   10342     if test -d ${with_python}; then
   10343       # Assume the python binary is ${with_python}/bin/python.
   10344       python_prog="${with_python}/bin/python"
   10345       python_prefix=
   10346       # If python does not exit ${with_python}/bin, then try in
   10347       # ${with_python}.  On Windows/MinGW, this is where the Python
   10348       # executable is.
   10349       if test ! -x "${python_prog}"; then
   10350         python_prog="${with_python}/python"
   10351         python_prefix=
   10352       fi
   10353       if test ! -x "${python_prog}"; then
   10354         # Fall back to gdb 7.0/7.1 behaviour.
   10355         python_prog=missing
   10356         python_prefix=${with_python}
   10357       fi
   10358     elif test -x "${with_python}"; then
   10359       # While we can't run python compiled for $host (unless host == build),
   10360       # the user could write a script that provides the needed information,
   10361       # so we support that.
   10362       python_prog=${with_python}
   10363       python_prefix=
   10364     else
   10365       as_fn_error $? "invalid value for --with-python" "$LINENO" 5
   10366     fi
   10367     ;;
   10368   */*)
   10369     # Disallow --with-python=foo/bar.
   10370     as_fn_error $? "invalid value for --with-python" "$LINENO" 5
   10371     ;;
   10372   *)
   10373     # The user has either specified auto, yes, or the name of the python
   10374     # program assumed to be in $PATH.
   10375     python_prefix=
   10376     case "${with_python}" in
   10377     yes | auto)
   10378       if test ${build} = ${host}; then
   10379         # Extract the first word of "python", so it can be a program name with args.
   10380 set dummy python; ac_word=$2
   10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10382 $as_echo_n "checking for $ac_word... " >&6; }
   10383 if ${ac_cv_path_python_prog_path+:} false; then :
   10384   $as_echo_n "(cached) " >&6
   10385 else
   10386   case $python_prog_path in
   10387   [\\/]* | ?:[\\/]*)
   10388   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
   10389   ;;
   10390   *)
   10391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10392 for as_dir in $PATH
   10393 do
   10394   IFS=$as_save_IFS
   10395   test -z "$as_dir" && as_dir=.
   10396     for ac_exec_ext in '' $ac_executable_extensions; do
   10397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10398     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
   10399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10400     break 2
   10401   fi
   10402 done
   10403   done
   10404 IFS=$as_save_IFS
   10405 
   10406   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
   10407   ;;
   10408 esac
   10409 fi
   10410 python_prog_path=$ac_cv_path_python_prog_path
   10411 if test -n "$python_prog_path"; then
   10412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
   10413 $as_echo "$python_prog_path" >&6; }
   10414 else
   10415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10416 $as_echo "no" >&6; }
   10417 fi
   10418 
   10419 
   10420         if test "${python_prog_path}" = missing; then
   10421           python_prog=missing
   10422         else
   10423           python_prog=${python_prog_path}
   10424         fi
   10425       else
   10426         # Not much we can do except assume the cross-compiler will find the
   10427         # right files.
   10428         python_prog=missing
   10429       fi
   10430       ;;
   10431     *)
   10432       # While we can't run python compiled for $host (unless host == build),
   10433       # the user could write a script that provides the needed information,
   10434       # so we support that.
   10435       python_prog="${with_python}"
   10436       # Extract the first word of "${python_prog}", so it can be a program name with args.
   10437 set dummy ${python_prog}; ac_word=$2
   10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10439 $as_echo_n "checking for $ac_word... " >&6; }
   10440 if ${ac_cv_path_python_prog_path+:} false; then :
   10441   $as_echo_n "(cached) " >&6
   10442 else
   10443   case $python_prog_path in
   10444   [\\/]* | ?:[\\/]*)
   10445   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
   10446   ;;
   10447   *)
   10448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10449 for as_dir in $PATH
   10450 do
   10451   IFS=$as_save_IFS
   10452   test -z "$as_dir" && as_dir=.
   10453     for ac_exec_ext in '' $ac_executable_extensions; do
   10454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10455     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
   10456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10457     break 2
   10458   fi
   10459 done
   10460   done
   10461 IFS=$as_save_IFS
   10462 
   10463   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
   10464   ;;
   10465 esac
   10466 fi
   10467 python_prog_path=$ac_cv_path_python_prog_path
   10468 if test -n "$python_prog_path"; then
   10469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
   10470 $as_echo "$python_prog_path" >&6; }
   10471 else
   10472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10473 $as_echo "no" >&6; }
   10474 fi
   10475 
   10476 
   10477       if test "${python_prog_path}" = missing; then
   10478         as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
   10479       fi
   10480       ;;
   10481     esac
   10482   esac
   10483 
   10484   if test "${python_prog}" != missing; then
   10485     # We have a python program to use, but it may be too old.
   10486     # Don't flag an error for --with-python=auto (the default).
   10487     have_python_config=yes
   10488     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
   10489     if test $? != 0; then
   10490       have_python_config=failed
   10491       if test "${with_python}" != auto; then
   10492         as_fn_error $? "failure running python-config --includes" "$LINENO" 5
   10493       fi
   10494     fi
   10495     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
   10496     if test $? != 0; then
   10497       have_python_config=failed
   10498       if test "${with_python}" != auto; then
   10499         as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
   10500       fi
   10501     fi
   10502     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
   10503     if test $? != 0; then
   10504       have_python_config=failed
   10505       if test "${with_python}" != auto; then
   10506         as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
   10507       fi
   10508     fi
   10509   else
   10510     # We do not have a python executable we can use to determine where
   10511     # to find the Python headers and libs.  We cannot guess the include
   10512     # path from the python_prefix either, because that include path
   10513     # depends on the Python version.  So, there is nothing much we can
   10514     # do except assume that the compiler will be able to find those files.
   10515     python_includes=
   10516     python_libs=
   10517     have_python_config=no
   10518   fi
   10519 
   10520   # If we have python-config, only try the configuration it provides.
   10521   # Otherwise fallback on the old way of trying different versions of
   10522   # python in turn.
   10523 
   10524   have_libpython=no
   10525   if test "${have_python_config}" = yes; then
   10526     # Determine the Python version by extracting "-lpython<version>"
   10527     # part of the python_libs. <version> is usually X.Y with X and Y
   10528     # being decimal numbers, but can also be XY (seen on Windows).
   10529     #
   10530     # The extraction is performed using sed with a regular expression.
   10531     # Initially, the regexp used was using the '?' quantifier to make
   10532     # the dot in the version number optional.  Unfortunately, this
   10533     # does not work with non-GNU versions of sed because, because of
   10534     # what looks like a limitation (the '?' quantifier does not work
   10535     # with back-references).  We work around this limitation by using
   10536     # the '*' quantifier instead.  It means that, in theory, we might
   10537     # match unexpected version strings such as "-lpython2..7", but
   10538     # this seems unlikely in practice.  And even if that happens,
   10539     # an error will be triggered later on, when checking that version
   10540     # number.
   10541     python_version=`echo " ${python_libs} " \
   10542                          | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
   10543     case "${python_version}" in
   10544     python*)
   10545 
   10546   version=${python_version}
   10547 
   10548   new_CPPFLAGS=${python_includes}
   10549   new_LIBS=${python_libs}
   10550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   10551 $as_echo_n "checking for ${version}... " >&6; }
   10552   save_CPPFLAGS=$CPPFLAGS
   10553   save_LIBS=$LIBS
   10554   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   10555   LIBS="$new_LIBS $LIBS"
   10556   found_usable_python=no
   10557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10558 /* end confdefs.h.  */
   10559 #include "Python.h"
   10560 int
   10561 main ()
   10562 {
   10563 Py_Initialize ();
   10564   ;
   10565   return 0;
   10566 }
   10567 _ACEOF
   10568 if ac_fn_c_try_link "$LINENO"; then :
   10569   have_libpython=${version}
   10570                   found_usable_python=yes
   10571                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   10572                   PYTHON_LIBS=$new_LIBS
   10573 fi
   10574 rm -f core conftest.err conftest.$ac_objext \
   10575     conftest$ac_exeext conftest.$ac_ext
   10576   CPPFLAGS=$save_CPPFLAGS
   10577   LIBS=$save_LIBS
   10578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   10579 $as_echo "${found_usable_python}" >&6; }
   10580 
   10581       ;;
   10582     *)
   10583       as_fn_error $? "unable to determine python version from ${python_libs}" "$LINENO" 5
   10584       ;;
   10585     esac
   10586   elif test "${have_python_config}" != failed; then
   10587     if test "${have_libpython}" = no; then
   10588 
   10589   version=python2.7
   10590 
   10591   new_CPPFLAGS=${python_includes}
   10592   new_LIBS="-lpython2.7 ${python_libs}"
   10593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   10594 $as_echo_n "checking for ${version}... " >&6; }
   10595   save_CPPFLAGS=$CPPFLAGS
   10596   save_LIBS=$LIBS
   10597   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   10598   LIBS="$new_LIBS $LIBS"
   10599   found_usable_python=no
   10600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10601 /* end confdefs.h.  */
   10602 #include "Python.h"
   10603 int
   10604 main ()
   10605 {
   10606 Py_Initialize ();
   10607   ;
   10608   return 0;
   10609 }
   10610 _ACEOF
   10611 if ac_fn_c_try_link "$LINENO"; then :
   10612   have_libpython=${version}
   10613                   found_usable_python=yes
   10614                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   10615                   PYTHON_LIBS=$new_LIBS
   10616 fi
   10617 rm -f core conftest.err conftest.$ac_objext \
   10618     conftest$ac_exeext conftest.$ac_ext
   10619   CPPFLAGS=$save_CPPFLAGS
   10620   LIBS=$save_LIBS
   10621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   10622 $as_echo "${found_usable_python}" >&6; }
   10623 
   10624     fi
   10625     if test "${have_libpython}" = no; then
   10626 
   10627   version=python2.6
   10628 
   10629   new_CPPFLAGS=${python_includes}
   10630   new_LIBS="-lpython2.6 ${python_libs}"
   10631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   10632 $as_echo_n "checking for ${version}... " >&6; }
   10633   save_CPPFLAGS=$CPPFLAGS
   10634   save_LIBS=$LIBS
   10635   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   10636   LIBS="$new_LIBS $LIBS"
   10637   found_usable_python=no
   10638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10639 /* end confdefs.h.  */
   10640 #include "Python.h"
   10641 int
   10642 main ()
   10643 {
   10644 Py_Initialize ();
   10645   ;
   10646   return 0;
   10647 }
   10648 _ACEOF
   10649 if ac_fn_c_try_link "$LINENO"; then :
   10650   have_libpython=${version}
   10651                   found_usable_python=yes
   10652                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   10653                   PYTHON_LIBS=$new_LIBS
   10654 fi
   10655 rm -f core conftest.err conftest.$ac_objext \
   10656     conftest$ac_exeext conftest.$ac_ext
   10657   CPPFLAGS=$save_CPPFLAGS
   10658   LIBS=$save_LIBS
   10659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   10660 $as_echo "${found_usable_python}" >&6; }
   10661 
   10662     fi
   10663     if test ${have_libpython} = no; then
   10664 
   10665   version=python2.5
   10666 
   10667   new_CPPFLAGS=${python_includes}
   10668   new_LIBS="-lpython2.5 ${python_libs}"
   10669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   10670 $as_echo_n "checking for ${version}... " >&6; }
   10671   save_CPPFLAGS=$CPPFLAGS
   10672   save_LIBS=$LIBS
   10673   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   10674   LIBS="$new_LIBS $LIBS"
   10675   found_usable_python=no
   10676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10677 /* end confdefs.h.  */
   10678 #include "Python.h"
   10679 int
   10680 main ()
   10681 {
   10682 Py_Initialize ();
   10683   ;
   10684   return 0;
   10685 }
   10686 _ACEOF
   10687 if ac_fn_c_try_link "$LINENO"; then :
   10688   have_libpython=${version}
   10689                   found_usable_python=yes
   10690                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   10691                   PYTHON_LIBS=$new_LIBS
   10692 fi
   10693 rm -f core conftest.err conftest.$ac_objext \
   10694     conftest$ac_exeext conftest.$ac_ext
   10695   CPPFLAGS=$save_CPPFLAGS
   10696   LIBS=$save_LIBS
   10697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   10698 $as_echo "${found_usable_python}" >&6; }
   10699 
   10700     fi
   10701     if test ${have_libpython} = no; then
   10702 
   10703   version=python2.4
   10704 
   10705   new_CPPFLAGS=${python_includes}
   10706   new_LIBS="-lpython2.4 ${python_libs}"
   10707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   10708 $as_echo_n "checking for ${version}... " >&6; }
   10709   save_CPPFLAGS=$CPPFLAGS
   10710   save_LIBS=$LIBS
   10711   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   10712   LIBS="$new_LIBS $LIBS"
   10713   found_usable_python=no
   10714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10715 /* end confdefs.h.  */
   10716 #include "Python.h"
   10717 int
   10718 main ()
   10719 {
   10720 Py_Initialize ();
   10721   ;
   10722   return 0;
   10723 }
   10724 _ACEOF
   10725 if ac_fn_c_try_link "$LINENO"; then :
   10726   have_libpython=${version}
   10727                   found_usable_python=yes
   10728                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   10729                   PYTHON_LIBS=$new_LIBS
   10730 fi
   10731 rm -f core conftest.err conftest.$ac_objext \
   10732     conftest$ac_exeext conftest.$ac_ext
   10733   CPPFLAGS=$save_CPPFLAGS
   10734   LIBS=$save_LIBS
   10735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   10736 $as_echo "${found_usable_python}" >&6; }
   10737 
   10738     fi
   10739   fi
   10740   if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
   10741 
   10742 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
   10743 
   10744   elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
   10745 
   10746 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
   10747 
   10748   elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
   10749 
   10750 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
   10751 
   10752   elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
   10753 
   10754 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
   10755 
   10756   fi
   10757 
   10758   if test "${have_libpython}" = no; then
   10759     case "${with_python}" in
   10760     yes)
   10761       as_fn_error $? "python is missing or unusable" "$LINENO" 5
   10762       ;;
   10763     auto)
   10764       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
   10765 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
   10766       ;;
   10767     *)
   10768       as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
   10769       ;;
   10770     esac
   10771   else
   10772     if test -n "${python_prefix}"; then
   10773 
   10774 cat >>confdefs.h <<_ACEOF
   10775 #define WITH_PYTHON_PATH "${python_prefix}"
   10776 _ACEOF
   10777 
   10778 
   10779   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   10780      if test "x$prefix" = xNONE; then
   10781      	test_prefix=/usr/local
   10782      else
   10783 	test_prefix=$prefix
   10784      fi
   10785   else
   10786      test_prefix=$exec_prefix
   10787   fi
   10788   value=0
   10789   case ${python_prefix} in
   10790      "${test_prefix}"|"${test_prefix}/"*|\
   10791 	'${exec_prefix}'|'${exec_prefix}/'*)
   10792      value=1
   10793      ;;
   10794   esac
   10795 
   10796 cat >>confdefs.h <<_ACEOF
   10797 #define PYTHON_PATH_RELOCATABLE $value
   10798 _ACEOF
   10799 
   10800 
   10801     fi
   10802   fi
   10803 fi
   10804 
   10805 if test "${have_libpython}" != no; then
   10806 
   10807 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
   10808 
   10809   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
   10810   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
   10811   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
   10812   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
   10813   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
   10814 
   10815   # Flags needed to compile Python code (taken from python-config --cflags).
   10816   # We cannot call python-config directly because it will output whatever was
   10817   # used when compiling the Python interpreter itself, including flags which
   10818   # would make the python-related objects be compiled differently from the
   10819   # rest of GDB (e.g., -O2 and -fPIC).
   10820   if test "${GCC}" = yes; then
   10821     tentative_python_cflags="-fno-strict-aliasing -fwrapv"
   10822     # Python headers recommend -DNDEBUG, but it's unclear if that just
   10823     # refers to building Python itself.  In release mode, though, it
   10824     # doesn't hurt for the Python code in gdb to follow.
   10825     $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
   10826   fi
   10827 
   10828   if test "x${tentative_python_cflags}" != x; then
   10829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
   10830 $as_echo_n "checking compiler flags for python code... " >&6; }
   10831     for flag in ${tentative_python_cflags}; do
   10832       # Check that the compiler accepts it
   10833       saved_CFLAGS="$CFLAGS"
   10834       CFLAGS="$CFLAGS $flag"
   10835       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10836 /* end confdefs.h.  */
   10837 
   10838 int
   10839 main ()
   10840 {
   10841 
   10842   ;
   10843   return 0;
   10844 }
   10845 _ACEOF
   10846 if ac_fn_c_try_compile "$LINENO"; then :
   10847   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
   10848 fi
   10849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10850       CFLAGS="$saved_CFLAGS"
   10851     done
   10852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
   10853 $as_echo "${PYTHON_CFLAGS}" >&6; }
   10854   fi
   10855 
   10856   # On x64 Windows, Python's include headers, and pyconfig.h in
   10857   # particular, rely on MS_WIN64 macro to detect that it's a 64bit
   10858   # version of Windows.  Unfortunately, MS_WIN64 is only defined if
   10859   # _MSC_VER, a Microsoft-specific macro, is defined.  So, when
   10860   # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
   10861   # The issue was reported to the Python community, but still isn't
   10862   # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
   10863 
   10864   case "$gdb_host" in
   10865     mingw64)
   10866            if test "${GCC}" = yes; then
   10867              CPPFLAGS="$CPPFLAGS -DMS_WIN64"
   10868            fi
   10869            ;;
   10870   esac
   10871 
   10872   # Note that "python -m threading" cannot be used to check for
   10873   # threading support due to a bug in Python 2.7.3
   10874   # (http://bugs.python.org/issue15567).
   10875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
   10876 $as_echo_n "checking whether python supports threads... " >&6; }
   10877   saved_CPPFLAGS="${CPPFLAGS}"
   10878   CPPFLAGS="${PYTHON_CPPFLAGS}"
   10879   # Note that the test is reversed so that python_has_threads=yes on
   10880   # unexpected failures.
   10881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10882 /* end confdefs.h.  */
   10883 
   10884 #include <Python.h>
   10885 #ifdef WITH_THREAD
   10886 # error
   10887 #endif
   10888 
   10889 _ACEOF
   10890 if ac_fn_c_try_cpp "$LINENO"; then :
   10891   python_has_threads=no
   10892 else
   10893   python_has_threads=yes
   10894 fi
   10895 rm -f conftest.err conftest.i conftest.$ac_ext
   10896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
   10897 $as_echo "${python_has_threads}" >&6; }
   10898   CPPFLAGS="${saved_CPPFLAGS}"
   10899 else
   10900   # Even if Python support is not compiled in, we need to have this file
   10901   # included so that the "python" command, et.al., still exists.
   10902   CONFIG_OBS="$CONFIG_OBS python/python.o"
   10903   CONFIG_SRCS="$CONFIG_SRCS python/python.c"
   10904 fi
   10905 
   10906 # Work around Python http://bugs.python.org/issue10112.  See also
   10907 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
   10908 # no effect.  Note that the only test after this that uses Python is
   10909 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
   10910 # run without -export-dynamic too.
   10911 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
   10912 
   10913 
   10914 
   10915 
   10916  if test "${have_libpython}" != no; then
   10917   HAVE_PYTHON_TRUE=
   10918   HAVE_PYTHON_FALSE='#'
   10919 else
   10920   HAVE_PYTHON_TRUE='#'
   10921   HAVE_PYTHON_FALSE=
   10922 fi
   10923 
   10924 
   10925 # -------------------- #
   10926 # Check for libguile.  #
   10927 # -------------------- #
   10928 
   10929 
   10930 
   10931 
   10932 
   10933 
   10934 # Check whether --with-guile was given.
   10935 if test "${with_guile+set}" = set; then :
   10936   withval=$with_guile;
   10937 else
   10938   with_guile=auto
   10939 fi
   10940 
   10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
   10942 $as_echo_n "checking whether to use guile... " >&6; }
   10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
   10944 $as_echo "$with_guile" >&6; }
   10945 
   10946 # Extract the first word of "pkg-config", so it can be a program name with args.
   10947 set dummy pkg-config; ac_word=$2
   10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10949 $as_echo_n "checking for $ac_word... " >&6; }
   10950 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
   10951   $as_echo_n "(cached) " >&6
   10952 else
   10953   case $pkg_config_prog_path in
   10954   [\\/]* | ?:[\\/]*)
   10955   ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
   10956   ;;
   10957   *)
   10958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10959 for as_dir in $PATH
   10960 do
   10961   IFS=$as_save_IFS
   10962   test -z "$as_dir" && as_dir=.
   10963     for ac_exec_ext in '' $ac_executable_extensions; do
   10964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10965     ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
   10966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10967     break 2
   10968   fi
   10969 done
   10970   done
   10971 IFS=$as_save_IFS
   10972 
   10973   test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
   10974   ;;
   10975 esac
   10976 fi
   10977 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
   10978 if test -n "$pkg_config_prog_path"; then
   10979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
   10980 $as_echo "$pkg_config_prog_path" >&6; }
   10981 else
   10982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10983 $as_echo "no" >&6; }
   10984 fi
   10985 
   10986 
   10987 
   10988 try_guile_versions="guile-2.0"
   10989 have_libguile=no
   10990 case "${with_guile}" in
   10991 no)
   10992   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
   10993 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
   10994   ;;
   10995 auto)
   10996   if test "${pkg_config_prog_path}" = "missing"; then
   10997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
   10998 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
   10999   else
   11000 
   11001   pkg_config=${pkg_config_prog_path}
   11002   guile_version_list=${try_guile_versions}
   11003   flag_errors=no
   11004 
   11005   found_usable_guile=checking
   11006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   11007 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   11008   for guile_version in ${guile_version_list}; do
   11009     ${pkg_config} --exists ${guile_version} 2>/dev/null
   11010     if test $? != 0; then
   11011       continue
   11012     fi
   11013             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   11014     if test $? != 0; then
   11015       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   11016     fi
   11017     new_LIBS=`${pkg_config} --libs ${guile_version}`
   11018     if test $? != 0; then
   11019       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   11020     fi
   11021         found_usable_guile=${guile_version}
   11022     break
   11023   done
   11024   if test "${found_usable_guile}" = "checking"; then
   11025     if test "${flag_errors}" = "yes"; then
   11026       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   11027     else
   11028       found_usable_guile=no
   11029     fi
   11030   fi
   11031       if test "${found_usable_guile}" != no; then
   11032     save_CPPFLAGS=$CPPFLAGS
   11033     save_LIBS=$LIBS
   11034     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   11035     LIBS="$LIBS $new_LIBS"
   11036     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11037 /* end confdefs.h.  */
   11038 #include "libguile.h"
   11039 int
   11040 main ()
   11041 {
   11042 scm_init_guile ();
   11043   ;
   11044   return 0;
   11045 }
   11046 _ACEOF
   11047 if ac_fn_c_try_link "$LINENO"; then :
   11048   have_libguile=yes
   11049                     GUILE_CPPFLAGS=$new_CPPFLAGS
   11050                     GUILE_LIBS=$new_LIBS
   11051 else
   11052   found_usable_guile=no
   11053 fi
   11054 rm -f core conftest.err conftest.$ac_objext \
   11055     conftest$ac_exeext conftest.$ac_ext
   11056         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   11057 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
   11058 
   11059 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   11060 
   11061 
   11062 fi
   11063 
   11064     CPPFLAGS=$save_CPPFLAGS
   11065     LIBS=$save_LIBS
   11066     if test "${found_usable_guile}" = no; then
   11067       if test "${flag_errors}" = yes; then
   11068         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   11069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   11070 as_fn_error $? "linking guile version ${guile_version} test program failed
   11071 See \`config.log' for more details" "$LINENO" 5; }
   11072       fi
   11073     fi
   11074   fi
   11075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   11076 $as_echo "${found_usable_guile}" >&6; }
   11077 
   11078   fi
   11079   ;;
   11080 yes)
   11081   if test "${pkg_config_prog_path}" = "missing"; then
   11082     as_fn_error $? "pkg-config not found" "$LINENO" 5
   11083   fi
   11084 
   11085   pkg_config=${pkg_config_prog_path}
   11086   guile_version_list=${try_guile_versions}
   11087   flag_errors=yes
   11088 
   11089   found_usable_guile=checking
   11090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   11091 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   11092   for guile_version in ${guile_version_list}; do
   11093     ${pkg_config} --exists ${guile_version} 2>/dev/null
   11094     if test $? != 0; then
   11095       continue
   11096     fi
   11097             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   11098     if test $? != 0; then
   11099       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   11100     fi
   11101     new_LIBS=`${pkg_config} --libs ${guile_version}`
   11102     if test $? != 0; then
   11103       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   11104     fi
   11105         found_usable_guile=${guile_version}
   11106     break
   11107   done
   11108   if test "${found_usable_guile}" = "checking"; then
   11109     if test "${flag_errors}" = "yes"; then
   11110       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   11111     else
   11112       found_usable_guile=no
   11113     fi
   11114   fi
   11115       if test "${found_usable_guile}" != no; then
   11116     save_CPPFLAGS=$CPPFLAGS
   11117     save_LIBS=$LIBS
   11118     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   11119     LIBS="$LIBS $new_LIBS"
   11120     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11121 /* end confdefs.h.  */
   11122 #include "libguile.h"
   11123 int
   11124 main ()
   11125 {
   11126 scm_init_guile ();
   11127   ;
   11128   return 0;
   11129 }
   11130 _ACEOF
   11131 if ac_fn_c_try_link "$LINENO"; then :
   11132   have_libguile=yes
   11133                     GUILE_CPPFLAGS=$new_CPPFLAGS
   11134                     GUILE_LIBS=$new_LIBS
   11135 else
   11136   found_usable_guile=no
   11137 fi
   11138 rm -f core conftest.err conftest.$ac_objext \
   11139     conftest$ac_exeext conftest.$ac_ext
   11140         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   11141 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
   11142 
   11143 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   11144 
   11145 
   11146 fi
   11147 
   11148     CPPFLAGS=$save_CPPFLAGS
   11149     LIBS=$save_LIBS
   11150     if test "${found_usable_guile}" = no; then
   11151       if test "${flag_errors}" = yes; then
   11152         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   11153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   11154 as_fn_error $? "linking guile version ${guile_version} test program failed
   11155 See \`config.log' for more details" "$LINENO" 5; }
   11156       fi
   11157     fi
   11158   fi
   11159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   11160 $as_echo "${found_usable_guile}" >&6; }
   11161 
   11162   ;;
   11163 [\\/]* | ?:[\\/]*)
   11164   if test -x "${with_guile}"; then
   11165 
   11166   pkg_config=${with_guile}
   11167   guile_version_list=${try_guile_versions}
   11168   flag_errors=yes
   11169 
   11170   found_usable_guile=checking
   11171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   11172 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   11173   for guile_version in ${guile_version_list}; do
   11174     ${pkg_config} --exists ${guile_version} 2>/dev/null
   11175     if test $? != 0; then
   11176       continue
   11177     fi
   11178             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   11179     if test $? != 0; then
   11180       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   11181     fi
   11182     new_LIBS=`${pkg_config} --libs ${guile_version}`
   11183     if test $? != 0; then
   11184       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   11185     fi
   11186         found_usable_guile=${guile_version}
   11187     break
   11188   done
   11189   if test "${found_usable_guile}" = "checking"; then
   11190     if test "${flag_errors}" = "yes"; then
   11191       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   11192     else
   11193       found_usable_guile=no
   11194     fi
   11195   fi
   11196       if test "${found_usable_guile}" != no; then
   11197     save_CPPFLAGS=$CPPFLAGS
   11198     save_LIBS=$LIBS
   11199     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   11200     LIBS="$LIBS $new_LIBS"
   11201     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11202 /* end confdefs.h.  */
   11203 #include "libguile.h"
   11204 int
   11205 main ()
   11206 {
   11207 scm_init_guile ();
   11208   ;
   11209   return 0;
   11210 }
   11211 _ACEOF
   11212 if ac_fn_c_try_link "$LINENO"; then :
   11213   have_libguile=yes
   11214                     GUILE_CPPFLAGS=$new_CPPFLAGS
   11215                     GUILE_LIBS=$new_LIBS
   11216 else
   11217   found_usable_guile=no
   11218 fi
   11219 rm -f core conftest.err conftest.$ac_objext \
   11220     conftest$ac_exeext conftest.$ac_ext
   11221         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   11222 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
   11223 
   11224 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   11225 
   11226 
   11227 fi
   11228 
   11229     CPPFLAGS=$save_CPPFLAGS
   11230     LIBS=$save_LIBS
   11231     if test "${found_usable_guile}" = no; then
   11232       if test "${flag_errors}" = yes; then
   11233         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   11234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   11235 as_fn_error $? "linking guile version ${guile_version} test program failed
   11236 See \`config.log' for more details" "$LINENO" 5; }
   11237       fi
   11238     fi
   11239   fi
   11240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   11241 $as_echo "${found_usable_guile}" >&6; }
   11242 
   11243   else
   11244     as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
   11245   fi
   11246   ;;
   11247 "" | */*)
   11248   # Disallow --with=guile="" and --with-guile=foo/bar.
   11249   as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
   11250   ;;
   11251 *)
   11252   # A space separate list of guile versions to try, in order.
   11253   if test "${pkg_config_prog_path}" = "missing"; then
   11254     as_fn_error $? "pkg-config not found" "$LINENO" 5
   11255   fi
   11256 
   11257   pkg_config=${pkg_config_prog_path}
   11258   guile_version_list=${with_guile}
   11259   flag_errors=yes
   11260 
   11261   found_usable_guile=checking
   11262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   11263 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   11264   for guile_version in ${guile_version_list}; do
   11265     ${pkg_config} --exists ${guile_version} 2>/dev/null
   11266     if test $? != 0; then
   11267       continue
   11268     fi
   11269             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   11270     if test $? != 0; then
   11271       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   11272     fi
   11273     new_LIBS=`${pkg_config} --libs ${guile_version}`
   11274     if test $? != 0; then
   11275       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   11276     fi
   11277         found_usable_guile=${guile_version}
   11278     break
   11279   done
   11280   if test "${found_usable_guile}" = "checking"; then
   11281     if test "${flag_errors}" = "yes"; then
   11282       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   11283     else
   11284       found_usable_guile=no
   11285     fi
   11286   fi
   11287       if test "${found_usable_guile}" != no; then
   11288     save_CPPFLAGS=$CPPFLAGS
   11289     save_LIBS=$LIBS
   11290     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   11291     LIBS="$LIBS $new_LIBS"
   11292     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11293 /* end confdefs.h.  */
   11294 #include "libguile.h"
   11295 int
   11296 main ()
   11297 {
   11298 scm_init_guile ();
   11299   ;
   11300   return 0;
   11301 }
   11302 _ACEOF
   11303 if ac_fn_c_try_link "$LINENO"; then :
   11304   have_libguile=yes
   11305                     GUILE_CPPFLAGS=$new_CPPFLAGS
   11306                     GUILE_LIBS=$new_LIBS
   11307 else
   11308   found_usable_guile=no
   11309 fi
   11310 rm -f core conftest.err conftest.$ac_objext \
   11311     conftest$ac_exeext conftest.$ac_ext
   11312         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   11313 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
   11314 
   11315 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   11316 
   11317 
   11318 fi
   11319 
   11320     CPPFLAGS=$save_CPPFLAGS
   11321     LIBS=$save_LIBS
   11322     if test "${found_usable_guile}" = no; then
   11323       if test "${flag_errors}" = yes; then
   11324         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   11325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   11326 as_fn_error $? "linking guile version ${guile_version} test program failed
   11327 See \`config.log' for more details" "$LINENO" 5; }
   11328       fi
   11329     fi
   11330   fi
   11331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   11332 $as_echo "${found_usable_guile}" >&6; }
   11333 
   11334   ;;
   11335 esac
   11336 
   11337 if test "${have_libguile}" != no; then
   11338     case "${with_guile}" in
   11339   [\\/]* | ?:[\\/]*)
   11340 
   11341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
   11342 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
   11343 if ${ac_cv_guild_program_name+:} false; then :
   11344   $as_echo_n "(cached) " >&6
   11345 else
   11346   ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
   11347 
   11348      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
   11349      # the 'guild' and 'bindir' variables.  In that case, try to guess
   11350      # what the program name is, at the risk of getting it wrong if
   11351      # Guile was configured with '--program-suffix' or similar.
   11352      if test "x$ac_cv_guild_program_name" = "x"; then
   11353        guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
   11354        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
   11355      fi
   11356 
   11357 fi
   11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
   11359 $as_echo "$ac_cv_guild_program_name" >&6; }
   11360 
   11361   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
   11362     as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
   11363   fi
   11364 
   11365   GUILD="$ac_cv_guild_program_name"
   11366 
   11367 
   11368     ;;
   11369   *)
   11370 
   11371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
   11372 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
   11373 if ${ac_cv_guild_program_name+:} false; then :
   11374   $as_echo_n "(cached) " >&6
   11375 else
   11376   ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
   11377 
   11378      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
   11379      # the 'guild' and 'bindir' variables.  In that case, try to guess
   11380      # what the program name is, at the risk of getting it wrong if
   11381      # Guile was configured with '--program-suffix' or similar.
   11382      if test "x$ac_cv_guild_program_name" = "x"; then
   11383        guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
   11384        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
   11385      fi
   11386 
   11387 fi
   11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
   11389 $as_echo "$ac_cv_guild_program_name" >&6; }
   11390 
   11391   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
   11392     as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
   11393   fi
   11394 
   11395   GUILD="$ac_cv_guild_program_name"
   11396 
   11397 
   11398     ;;
   11399   esac
   11400 
   11401 
   11402   if test "$cross_compiling" = no; then
   11403     GUILD_TARGET_FLAG=
   11404   else
   11405     GUILD_TARGET_FLAG="--target=$host"
   11406   fi
   11407 
   11408 
   11409 
   11410 
   11411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
   11412 $as_echo_n "checking whether guild supports this host... " >&6; }
   11413 if ${ac_cv_guild_ok+:} false; then :
   11414   $as_echo_n "(cached) " >&6
   11415 else
   11416   echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
   11417      if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
   11418        ac_cv_guild_ok=yes
   11419      else
   11420        ac_cv_guild_ok=no
   11421      fi
   11422 fi
   11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
   11424 $as_echo "$ac_cv_guild_ok" >&6; }
   11425 
   11426     if test "$ac_cv_guild_ok" = no; then
   11427     have_libguile=no
   11428     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
   11429 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
   11430   fi
   11431 fi
   11432 
   11433 if test "${have_libguile}" != no; then
   11434 
   11435 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
   11436 
   11437   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
   11438   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
   11439   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
   11440   CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
   11441   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
   11442 
   11443     save_LIBS="$LIBS"
   11444   save_CPPFLAGS="$CPPFLAGS"
   11445   LIBS="$GUILE_LIBS"
   11446   CPPFLAGS="$GUILE_CPPFLAGS"
   11447   for ac_func in scm_new_smob
   11448 do :
   11449   ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
   11450 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
   11451   cat >>confdefs.h <<_ACEOF
   11452 #define HAVE_SCM_NEW_SMOB 1
   11453 _ACEOF
   11454 
   11455 fi
   11456 done
   11457 
   11458   LIBS="$save_LIBS"
   11459   CPPFLAGS="$save_CPPFLAGS"
   11460 else
   11461   # Even if Guile support is not compiled in, we need to have these files
   11462   # included.
   11463   CONFIG_OBS="$CONFIG_OBS guile/guile.o"
   11464   CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
   11465 fi
   11466 
   11467 
   11468  if test "${have_libguile}" != no; then
   11469   HAVE_GUILE_TRUE=
   11470   HAVE_GUILE_FALSE='#'
   11471 else
   11472   HAVE_GUILE_TRUE='#'
   11473   HAVE_GUILE_FALSE=
   11474 fi
   11475 
   11476 
   11477 # ---------------------------- #
   11478 # Check for source highlight.  #
   11479 # ---------------------------- #
   11480 
   11481 SRCHIGH_LIBS=
   11482 SRCHIGH_CFLAGS=
   11483 
   11484 # Check whether --enable-source-highlight was given.
   11485 if test "${enable_source_highlight+set}" = set; then :
   11486   enableval=$enable_source_highlight; case "${enableval}" in
   11487   yes)  enable_source_highlight=yes ;;
   11488   no)   enable_source_highlight=no  ;;
   11489   *)    as_fn_error $? "bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
   11490 esac
   11491 else
   11492   enable_source_highlight=auto
   11493 fi
   11494 
   11495 
   11496 if test "${enable_source_highlight}" != "no"; then
   11497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
   11498 $as_echo_n "checking for the source-highlight library... " >&6; }
   11499   if test "${pkg_config_prog_path}" = "missing"; then
   11500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
   11501 $as_echo "no - pkg-config not found" >&6; }
   11502     if test "${enable_source_highlight}" = "yes"; then
   11503       as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
   11504     fi
   11505   else
   11506     if ${pkg_config_prog_path} --exists source-highlight; then
   11507       SRCHIGH_CFLAGS=`${pkg_config_prog_path} --cflags source-highlight`
   11508       SRCHIGH_LIBS=`${pkg_config_prog_path} --libs source-highlight`
   11509 
   11510 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
   11511 
   11512       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11513 $as_echo "yes" >&6; }
   11514     else
   11515       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11516 $as_echo "no" >&6; }
   11517       if test "${enable_source_highlight}" = "yes"; then
   11518         as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
   11519       fi
   11520     fi
   11521   fi
   11522 fi
   11523 
   11524 
   11525 
   11526 # --------------------- #
   11527 # Check for libmcheck.  #
   11528 # --------------------- #
   11529 
   11530 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
   11531 # but turn it off if Python is enabled with threads, since -lmcheck is
   11532 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
   11533 # and for releases.
   11534 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
   11535    && $development; then
   11536   libmcheck_default=yes
   11537 else
   11538   libmcheck_default=no
   11539 fi
   11540 
   11541   # Check whether --enable-libmcheck was given.
   11542 if test "${enable_libmcheck+set}" = set; then :
   11543   enableval=$enable_libmcheck; case "${enableval}" in
   11544       yes | y) ENABLE_LIBMCHECK="yes" ;;
   11545       no | n)  ENABLE_LIBMCHECK="no" ;;
   11546       *) as_fn_error $? "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
   11547     esac
   11548 fi
   11549 
   11550 
   11551   if test -z "${ENABLE_LIBMCHECK}"; then
   11552     ENABLE_LIBMCHECK=${libmcheck_default}
   11553   fi
   11554 
   11555   if test "$ENABLE_LIBMCHECK" = "yes" ; then
   11556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
   11557 $as_echo_n "checking for main in -lmcheck... " >&6; }
   11558 if ${ac_cv_lib_mcheck_main+:} false; then :
   11559   $as_echo_n "(cached) " >&6
   11560 else
   11561   ac_check_lib_save_LIBS=$LIBS
   11562 LIBS="-lmcheck  $LIBS"
   11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11564 /* end confdefs.h.  */
   11565 
   11566 
   11567 int
   11568 main ()
   11569 {
   11570 return main ();
   11571   ;
   11572   return 0;
   11573 }
   11574 _ACEOF
   11575 if ac_fn_c_try_link "$LINENO"; then :
   11576   ac_cv_lib_mcheck_main=yes
   11577 else
   11578   ac_cv_lib_mcheck_main=no
   11579 fi
   11580 rm -f core conftest.err conftest.$ac_objext \
   11581     conftest$ac_exeext conftest.$ac_ext
   11582 LIBS=$ac_check_lib_save_LIBS
   11583 fi
   11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
   11585 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
   11586 if test "x$ac_cv_lib_mcheck_main" = xyes; then :
   11587   cat >>confdefs.h <<_ACEOF
   11588 #define HAVE_LIBMCHECK 1
   11589 _ACEOF
   11590 
   11591   LIBS="-lmcheck $LIBS"
   11592 
   11593 fi
   11594 
   11595   fi
   11596 
   11597 
   11598 if test "$ENABLE_LIBMCHECK" = "yes" \
   11599 	-a "${have_libpython}" != "no" \
   11600 	-a "${python_has_threads}" = "yes" ; then
   11601   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
   11602 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
   11603 fi
   11604 
   11605 
   11606 # Check whether --with-intel_pt was given.
   11607 if test "${with_intel_pt+set}" = set; then :
   11608   withval=$with_intel_pt;
   11609 else
   11610   with_intel_pt=auto
   11611 fi
   11612 
   11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
   11614 $as_echo_n "checking whether to use intel pt... " >&6; }
   11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
   11616 $as_echo "$with_intel_pt" >&6; }
   11617 
   11618 if test "${with_intel_pt}" = no; then
   11619   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
   11620 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
   11621   HAVE_LIBIPT=no
   11622 else
   11623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11624 /* end confdefs.h.  */
   11625 
   11626 #include <linux/perf_event.h>
   11627 #ifndef PERF_ATTR_SIZE_VER5
   11628 # error
   11629 #endif
   11630 
   11631 _ACEOF
   11632 if ac_fn_c_try_cpp "$LINENO"; then :
   11633   perf_event=yes
   11634 else
   11635   perf_event=no
   11636 fi
   11637 rm -f conftest.err conftest.i conftest.$ac_ext
   11638   if test "$perf_event" != yes; then
   11639     if test "$with_intel_pt" = yes; then
   11640       as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
   11641     else
   11642       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
   11643 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
   11644     fi
   11645   fi
   11646 
   11647 
   11648 
   11649 
   11650 
   11651 
   11652 
   11653 
   11654 
   11655     use_additional=yes
   11656 
   11657   acl_save_prefix="$prefix"
   11658   prefix="$acl_final_prefix"
   11659   acl_save_exec_prefix="$exec_prefix"
   11660   exec_prefix="$acl_final_exec_prefix"
   11661 
   11662     eval additional_includedir=\"$includedir\"
   11663     eval additional_libdir=\"$libdir\"
   11664 
   11665   exec_prefix="$acl_save_exec_prefix"
   11666   prefix="$acl_save_prefix"
   11667 
   11668 
   11669 # Check whether --with-libipt-prefix was given.
   11670 if test "${with_libipt_prefix+set}" = set; then :
   11671   withval=$with_libipt_prefix;
   11672     if test "X$withval" = "Xno"; then
   11673       use_additional=no
   11674     else
   11675       if test "X$withval" = "X"; then
   11676 
   11677   acl_save_prefix="$prefix"
   11678   prefix="$acl_final_prefix"
   11679   acl_save_exec_prefix="$exec_prefix"
   11680   exec_prefix="$acl_final_exec_prefix"
   11681 
   11682           eval additional_includedir=\"$includedir\"
   11683           eval additional_libdir=\"$libdir\"
   11684 
   11685   exec_prefix="$acl_save_exec_prefix"
   11686   prefix="$acl_save_prefix"
   11687 
   11688       else
   11689         additional_includedir="$withval/include"
   11690         additional_libdir="$withval/lib"
   11691       fi
   11692     fi
   11693 
   11694 fi
   11695 
   11696       LIBIPT=
   11697   LTLIBIPT=
   11698   INCIPT=
   11699   rpathdirs=
   11700   ltrpathdirs=
   11701   names_already_handled=
   11702   names_next_round='ipt '
   11703   while test -n "$names_next_round"; do
   11704     names_this_round="$names_next_round"
   11705     names_next_round=
   11706     for name in $names_this_round; do
   11707       already_handled=
   11708       for n in $names_already_handled; do
   11709         if test "$n" = "$name"; then
   11710           already_handled=yes
   11711           break
   11712         fi
   11713       done
   11714       if test -z "$already_handled"; then
   11715         names_already_handled="$names_already_handled $name"
   11716                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   11717         eval value=\"\$HAVE_LIB$uppername\"
   11718         if test -n "$value"; then
   11719           if test "$value" = yes; then
   11720             eval value=\"\$LIB$uppername\"
   11721             test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
   11722             eval value=\"\$LTLIB$uppername\"
   11723             test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
   11724           else
   11725                                     :
   11726           fi
   11727         else
   11728                               found_dir=
   11729           found_la=
   11730           found_so=
   11731           found_a=
   11732           if test $use_additional = yes; then
   11733             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   11734               found_dir="$additional_libdir"
   11735               found_so="$additional_libdir/lib$name.$shlibext"
   11736               if test -f "$additional_libdir/lib$name.la"; then
   11737                 found_la="$additional_libdir/lib$name.la"
   11738               fi
   11739             else
   11740               if test -f "$additional_libdir/lib$name.$libext"; then
   11741                 found_dir="$additional_libdir"
   11742                 found_a="$additional_libdir/lib$name.$libext"
   11743                 if test -f "$additional_libdir/lib$name.la"; then
   11744                   found_la="$additional_libdir/lib$name.la"
   11745                 fi
   11746               fi
   11747             fi
   11748           fi
   11749           if test "X$found_dir" = "X"; then
   11750             for x in $LDFLAGS $LTLIBIPT; do
   11751 
   11752   acl_save_prefix="$prefix"
   11753   prefix="$acl_final_prefix"
   11754   acl_save_exec_prefix="$exec_prefix"
   11755   exec_prefix="$acl_final_exec_prefix"
   11756   eval x=\"$x\"
   11757   exec_prefix="$acl_save_exec_prefix"
   11758   prefix="$acl_save_prefix"
   11759 
   11760               case "$x" in
   11761                 -L*)
   11762                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   11763                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   11764                     found_dir="$dir"
   11765                     found_so="$dir/lib$name.$shlibext"
   11766                     if test -f "$dir/lib$name.la"; then
   11767                       found_la="$dir/lib$name.la"
   11768                     fi
   11769                   else
   11770                     if test -f "$dir/lib$name.$libext"; then
   11771                       found_dir="$dir"
   11772                       found_a="$dir/lib$name.$libext"
   11773                       if test -f "$dir/lib$name.la"; then
   11774                         found_la="$dir/lib$name.la"
   11775                       fi
   11776                     fi
   11777                   fi
   11778                   ;;
   11779               esac
   11780               if test "X$found_dir" != "X"; then
   11781                 break
   11782               fi
   11783             done
   11784           fi
   11785           if test "X$found_dir" != "X"; then
   11786                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
   11787             if test "X$found_so" != "X"; then
   11788                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   11789                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   11790               else
   11791                                                                                 haveit=
   11792                 for x in $ltrpathdirs; do
   11793                   if test "X$x" = "X$found_dir"; then
   11794                     haveit=yes
   11795                     break
   11796                   fi
   11797                 done
   11798                 if test -z "$haveit"; then
   11799                   ltrpathdirs="$ltrpathdirs $found_dir"
   11800                 fi
   11801                                 if test "$hardcode_direct" = yes; then
   11802                                                       LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   11803                 else
   11804                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   11805                                                             LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   11806                                                             haveit=
   11807                     for x in $rpathdirs; do
   11808                       if test "X$x" = "X$found_dir"; then
   11809                         haveit=yes
   11810                         break
   11811                       fi
   11812                     done
   11813                     if test -z "$haveit"; then
   11814                       rpathdirs="$rpathdirs $found_dir"
   11815                     fi
   11816                   else
   11817                                                                                 haveit=
   11818                     for x in $LDFLAGS $LIBIPT; do
   11819 
   11820   acl_save_prefix="$prefix"
   11821   prefix="$acl_final_prefix"
   11822   acl_save_exec_prefix="$exec_prefix"
   11823   exec_prefix="$acl_final_exec_prefix"
   11824   eval x=\"$x\"
   11825   exec_prefix="$acl_save_exec_prefix"
   11826   prefix="$acl_save_prefix"
   11827 
   11828                       if test "X$x" = "X-L$found_dir"; then
   11829                         haveit=yes
   11830                         break
   11831                       fi
   11832                     done
   11833                     if test -z "$haveit"; then
   11834                       LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
   11835                     fi
   11836                     if test "$hardcode_minus_L" != no; then
   11837                                                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   11838                     else
   11839                                                                                                                                                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
   11840                     fi
   11841                   fi
   11842                 fi
   11843               fi
   11844             else
   11845               if test "X$found_a" != "X"; then
   11846                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
   11847               else
   11848                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
   11849               fi
   11850             fi
   11851                         additional_includedir=
   11852             case "$found_dir" in
   11853               */lib | */lib/)
   11854                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   11855                 additional_includedir="$basedir/include"
   11856                 ;;
   11857             esac
   11858             if test "X$additional_includedir" != "X"; then
   11859                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   11860                 haveit=
   11861                 if test "X$additional_includedir" = "X/usr/local/include"; then
   11862                   if test -n "$GCC"; then
   11863                     case $host_os in
   11864                       linux*) haveit=yes;;
   11865                     esac
   11866                   fi
   11867                 fi
   11868                 if test -z "$haveit"; then
   11869                   for x in $CPPFLAGS $INCIPT; do
   11870 
   11871   acl_save_prefix="$prefix"
   11872   prefix="$acl_final_prefix"
   11873   acl_save_exec_prefix="$exec_prefix"
   11874   exec_prefix="$acl_final_exec_prefix"
   11875   eval x=\"$x\"
   11876   exec_prefix="$acl_save_exec_prefix"
   11877   prefix="$acl_save_prefix"
   11878 
   11879                     if test "X$x" = "X-I$additional_includedir"; then
   11880                       haveit=yes
   11881                       break
   11882                     fi
   11883                   done
   11884                   if test -z "$haveit"; then
   11885                     if test -d "$additional_includedir"; then
   11886                                             INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
   11887                     fi
   11888                   fi
   11889                 fi
   11890               fi
   11891             fi
   11892                         if test -n "$found_la"; then
   11893                                                         save_libdir="$libdir"
   11894               case "$found_la" in
   11895                 */* | *\\*) . "$found_la" ;;
   11896                 *) . "./$found_la" ;;
   11897               esac
   11898               libdir="$save_libdir"
   11899                             for dep in $dependency_libs; do
   11900                 case "$dep" in
   11901                   -L*)
   11902                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   11903                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   11904                       haveit=
   11905                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   11906                         if test -n "$GCC"; then
   11907                           case $host_os in
   11908                             linux*) haveit=yes;;
   11909                           esac
   11910                         fi
   11911                       fi
   11912                       if test -z "$haveit"; then
   11913                         haveit=
   11914                         for x in $LDFLAGS $LIBIPT; do
   11915 
   11916   acl_save_prefix="$prefix"
   11917   prefix="$acl_final_prefix"
   11918   acl_save_exec_prefix="$exec_prefix"
   11919   exec_prefix="$acl_final_exec_prefix"
   11920   eval x=\"$x\"
   11921   exec_prefix="$acl_save_exec_prefix"
   11922   prefix="$acl_save_prefix"
   11923 
   11924                           if test "X$x" = "X-L$additional_libdir"; then
   11925                             haveit=yes
   11926                             break
   11927                           fi
   11928                         done
   11929                         if test -z "$haveit"; then
   11930                           if test -d "$additional_libdir"; then
   11931                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
   11932                           fi
   11933                         fi
   11934                         haveit=
   11935                         for x in $LDFLAGS $LTLIBIPT; do
   11936 
   11937   acl_save_prefix="$prefix"
   11938   prefix="$acl_final_prefix"
   11939   acl_save_exec_prefix="$exec_prefix"
   11940   exec_prefix="$acl_final_exec_prefix"
   11941   eval x=\"$x\"
   11942   exec_prefix="$acl_save_exec_prefix"
   11943   prefix="$acl_save_prefix"
   11944 
   11945                           if test "X$x" = "X-L$additional_libdir"; then
   11946                             haveit=yes
   11947                             break
   11948                           fi
   11949                         done
   11950                         if test -z "$haveit"; then
   11951                           if test -d "$additional_libdir"; then
   11952                                                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
   11953                           fi
   11954                         fi
   11955                       fi
   11956                     fi
   11957                     ;;
   11958                   -R*)
   11959                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   11960                     if test "$enable_rpath" != no; then
   11961                                                                   haveit=
   11962                       for x in $rpathdirs; do
   11963                         if test "X$x" = "X$dir"; then
   11964                           haveit=yes
   11965                           break
   11966                         fi
   11967                       done
   11968                       if test -z "$haveit"; then
   11969                         rpathdirs="$rpathdirs $dir"
   11970                       fi
   11971                                                                   haveit=
   11972                       for x in $ltrpathdirs; do
   11973                         if test "X$x" = "X$dir"; then
   11974                           haveit=yes
   11975                           break
   11976                         fi
   11977                       done
   11978                       if test -z "$haveit"; then
   11979                         ltrpathdirs="$ltrpathdirs $dir"
   11980                       fi
   11981                     fi
   11982                     ;;
   11983                   -l*)
   11984                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   11985                     ;;
   11986                   *.la)
   11987                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   11988                     ;;
   11989                   *)
   11990                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
   11991                     LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
   11992                     ;;
   11993                 esac
   11994               done
   11995             fi
   11996           else
   11997                                                             LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
   11998             LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
   11999           fi
   12000         fi
   12001       fi
   12002     done
   12003   done
   12004   if test "X$rpathdirs" != "X"; then
   12005     if test -n "$hardcode_libdir_separator"; then
   12006                         alldirs=
   12007       for found_dir in $rpathdirs; do
   12008         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   12009       done
   12010             acl_save_libdir="$libdir"
   12011       libdir="$alldirs"
   12012       eval flag=\"$hardcode_libdir_flag_spec\"
   12013       libdir="$acl_save_libdir"
   12014       LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
   12015     else
   12016             for found_dir in $rpathdirs; do
   12017         acl_save_libdir="$libdir"
   12018         libdir="$found_dir"
   12019         eval flag=\"$hardcode_libdir_flag_spec\"
   12020         libdir="$acl_save_libdir"
   12021         LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
   12022       done
   12023     fi
   12024   fi
   12025   if test "X$ltrpathdirs" != "X"; then
   12026             for found_dir in $ltrpathdirs; do
   12027       LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
   12028     done
   12029   fi
   12030 
   12031 
   12032         ac_save_CPPFLAGS="$CPPFLAGS"
   12033 
   12034   for element in $INCIPT; do
   12035     haveit=
   12036     for x in $CPPFLAGS; do
   12037 
   12038   acl_save_prefix="$prefix"
   12039   prefix="$acl_final_prefix"
   12040   acl_save_exec_prefix="$exec_prefix"
   12041   exec_prefix="$acl_final_exec_prefix"
   12042   eval x=\"$x\"
   12043   exec_prefix="$acl_save_exec_prefix"
   12044   prefix="$acl_save_prefix"
   12045 
   12046       if test "X$x" = "X$element"; then
   12047         haveit=yes
   12048         break
   12049       fi
   12050     done
   12051     if test -z "$haveit"; then
   12052       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   12053     fi
   12054   done
   12055 
   12056 
   12057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
   12058 $as_echo_n "checking for libipt... " >&6; }
   12059 if ${ac_cv_libipt+:} false; then :
   12060   $as_echo_n "(cached) " >&6
   12061 else
   12062 
   12063     ac_save_LIBS="$LIBS"
   12064     LIBS="$LIBS $LIBIPT"
   12065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12066 /* end confdefs.h.  */
   12067 #include "intel-pt.h"
   12068 int
   12069 main ()
   12070 {
   12071 pt_insn_alloc_decoder (0);
   12072   ;
   12073   return 0;
   12074 }
   12075 _ACEOF
   12076 if ac_fn_c_try_link "$LINENO"; then :
   12077   ac_cv_libipt=yes
   12078 else
   12079   ac_cv_libipt=no
   12080 fi
   12081 rm -f core conftest.err conftest.$ac_objext \
   12082     conftest$ac_exeext conftest.$ac_ext
   12083     LIBS="$ac_save_LIBS"
   12084 
   12085 fi
   12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
   12087 $as_echo "$ac_cv_libipt" >&6; }
   12088   if test "$ac_cv_libipt" = yes; then
   12089     HAVE_LIBIPT=yes
   12090 
   12091 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
   12092 
   12093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
   12094 $as_echo_n "checking how to link with libipt... " >&6; }
   12095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
   12096 $as_echo "$LIBIPT" >&6; }
   12097   else
   12098     HAVE_LIBIPT=no
   12099             CPPFLAGS="$ac_save_CPPFLAGS"
   12100     LIBIPT=
   12101     LTLIBIPT=
   12102   fi
   12103 
   12104 
   12105 
   12106 
   12107 
   12108 
   12109   if test "$HAVE_LIBIPT" != yes; then
   12110     if test "$with_intel_pt" = yes; then
   12111       as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
   12112     else
   12113       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
   12114 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
   12115     fi
   12116   else
   12117     save_LIBS=$LIBS
   12118     LIBS="$LIBS $LIBIPT"
   12119     for ac_func in pt_insn_event
   12120 do :
   12121   ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
   12122 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
   12123   cat >>confdefs.h <<_ACEOF
   12124 #define HAVE_PT_INSN_EVENT 1
   12125 _ACEOF
   12126 
   12127 fi
   12128 done
   12129 
   12130     ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
   12131 "
   12132 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
   12133 
   12134 cat >>confdefs.h <<_ACEOF
   12135 #define HAVE_STRUCT_PT_INSN_ENABLED 1
   12136 _ACEOF
   12137 
   12138 
   12139 fi
   12140 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
   12141 "
   12142 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
   12143 
   12144 cat >>confdefs.h <<_ACEOF
   12145 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
   12146 _ACEOF
   12147 
   12148 
   12149 fi
   12150 
   12151     LIBS=$save_LIBS
   12152   fi
   12153 fi
   12154 
   12155 # ------------------------- #
   12156 # Checks for header files.  #
   12157 # ------------------------- #
   12158 
   12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   12160 $as_echo_n "checking for ANSI C header files... " >&6; }
   12161 if ${ac_cv_header_stdc+:} false; then :
   12162   $as_echo_n "(cached) " >&6
   12163 else
   12164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12165 /* end confdefs.h.  */
   12166 #include <stdlib.h>
   12167 #include <stdarg.h>
   12168 #include <string.h>
   12169 #include <float.h>
   12170 
   12171 int
   12172 main ()
   12173 {
   12174 
   12175   ;
   12176   return 0;
   12177 }
   12178 _ACEOF
   12179 if ac_fn_c_try_compile "$LINENO"; then :
   12180   ac_cv_header_stdc=yes
   12181 else
   12182   ac_cv_header_stdc=no
   12183 fi
   12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12185 
   12186 if test $ac_cv_header_stdc = yes; then
   12187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   12188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12189 /* end confdefs.h.  */
   12190 #include <string.h>
   12191 
   12192 _ACEOF
   12193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   12194   $EGREP "memchr" >/dev/null 2>&1; then :
   12195 
   12196 else
   12197   ac_cv_header_stdc=no
   12198 fi
   12199 rm -f conftest*
   12200 
   12201 fi
   12202 
   12203 if test $ac_cv_header_stdc = yes; then
   12204   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   12205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12206 /* end confdefs.h.  */
   12207 #include <stdlib.h>
   12208 
   12209 _ACEOF
   12210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   12211   $EGREP "free" >/dev/null 2>&1; then :
   12212 
   12213 else
   12214   ac_cv_header_stdc=no
   12215 fi
   12216 rm -f conftest*
   12217 
   12218 fi
   12219 
   12220 if test $ac_cv_header_stdc = yes; then
   12221   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   12222   if test "$cross_compiling" = yes; then :
   12223   :
   12224 else
   12225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12226 /* end confdefs.h.  */
   12227 #include <ctype.h>
   12228 #include <stdlib.h>
   12229 #if ((' ' & 0x0FF) == 0x020)
   12230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   12231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   12232 #else
   12233 # define ISLOWER(c) \
   12234 		   (('a' <= (c) && (c) <= 'i') \
   12235 		     || ('j' <= (c) && (c) <= 'r') \
   12236 		     || ('s' <= (c) && (c) <= 'z'))
   12237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   12238 #endif
   12239 
   12240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   12241 int
   12242 main ()
   12243 {
   12244   int i;
   12245   for (i = 0; i < 256; i++)
   12246     if (XOR (islower (i), ISLOWER (i))
   12247 	|| toupper (i) != TOUPPER (i))
   12248       return 2;
   12249   return 0;
   12250 }
   12251 _ACEOF
   12252 if ac_fn_c_try_run "$LINENO"; then :
   12253 
   12254 else
   12255   ac_cv_header_stdc=no
   12256 fi
   12257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12258   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12259 fi
   12260 
   12261 fi
   12262 fi
   12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   12264 $as_echo "$ac_cv_header_stdc" >&6; }
   12265 if test $ac_cv_header_stdc = yes; then
   12266 
   12267 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   12268 
   12269 fi
   12270 
   12271 # elf_hp.h is for HP/UX 64-bit shared library support.
   12272 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
   12273                   thread_db.h linux/elf.h \
   12274 		  sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
   12275 		  sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
   12276 		  sys/reg.h sys/debugreg.h sys/select.h \
   12277 		  termios.h elf_hp.h \
   12278 		  dlfcn.h
   12279 do :
   12280   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   12282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   12283   cat >>confdefs.h <<_ACEOF
   12284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12285 _ACEOF
   12286 
   12287 fi
   12288 
   12289 done
   12290 
   12291 for ac_header in sys/user.h
   12292 do :
   12293   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
   12294 # include <sys/param.h>
   12295 #endif
   12296 
   12297 "
   12298 if test "x$ac_cv_header_sys_user_h" = xyes; then :
   12299   cat >>confdefs.h <<_ACEOF
   12300 #define HAVE_SYS_USER_H 1
   12301 _ACEOF
   12302 
   12303 fi
   12304 
   12305 done
   12306 
   12307 
   12308 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
   12309 do :
   12310   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12311 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   12312 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   12313   cat >>confdefs.h <<_ACEOF
   12314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12315 _ACEOF
   12316 
   12317 fi
   12318 
   12319 done
   12320 
   12321 for ac_header in term.h
   12322 do :
   12323   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
   12324 # include <curses.h>
   12325 #endif
   12326 
   12327 "
   12328 if test "x$ac_cv_header_term_h" = xyes; then :
   12329   cat >>confdefs.h <<_ACEOF
   12330 #define HAVE_TERM_H 1
   12331 _ACEOF
   12332 
   12333 fi
   12334 
   12335 done
   12336 
   12337 
   12338 # ------------------------- #
   12339 # Checks for declarations.  #
   12340 # ------------------------- #
   12341 
   12342 
   12343   # Check for presence and size of long long.
   12344   ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
   12345 if test "x$ac_cv_type_long_long" = xyes; then :
   12346 
   12347 cat >>confdefs.h <<_ACEOF
   12348 #define HAVE_LONG_LONG 1
   12349 _ACEOF
   12350 
   12351 # The cast to long int works around a bug in the HP C Compiler
   12352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   12353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   12354 # This bug is HP SR number 8606223364.
   12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   12356 $as_echo_n "checking size of long long... " >&6; }
   12357 if ${ac_cv_sizeof_long_long+:} false; then :
   12358   $as_echo_n "(cached) " >&6
   12359 else
   12360   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   12361 
   12362 else
   12363   if test "$ac_cv_type_long_long" = yes; then
   12364      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   12365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   12366 as_fn_error 77 "cannot compute sizeof (long long)
   12367 See \`config.log' for more details" "$LINENO" 5; }
   12368    else
   12369      ac_cv_sizeof_long_long=0
   12370    fi
   12371 fi
   12372 
   12373 fi
   12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   12375 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   12376 
   12377 
   12378 
   12379 cat >>confdefs.h <<_ACEOF
   12380 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   12381 _ACEOF
   12382 
   12383 
   12384 fi
   12385 
   12386 
   12387   as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
   12388 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
   12389 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
   12390   ac_have_decl=1
   12391 else
   12392   ac_have_decl=0
   12393 fi
   12394 
   12395 cat >>confdefs.h <<_ACEOF
   12396 #define HAVE_DECL_BASENAME $ac_have_decl
   12397 _ACEOF
   12398 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
   12399 if test "x$ac_cv_have_decl_ffs" = xyes; then :
   12400   ac_have_decl=1
   12401 else
   12402   ac_have_decl=0
   12403 fi
   12404 
   12405 cat >>confdefs.h <<_ACEOF
   12406 #define HAVE_DECL_FFS $ac_have_decl
   12407 _ACEOF
   12408 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
   12409 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
   12410   ac_have_decl=1
   12411 else
   12412   ac_have_decl=0
   12413 fi
   12414 
   12415 cat >>confdefs.h <<_ACEOF
   12416 #define HAVE_DECL_ASPRINTF $ac_have_decl
   12417 _ACEOF
   12418 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
   12419 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
   12420   ac_have_decl=1
   12421 else
   12422   ac_have_decl=0
   12423 fi
   12424 
   12425 cat >>confdefs.h <<_ACEOF
   12426 #define HAVE_DECL_VASPRINTF $ac_have_decl
   12427 _ACEOF
   12428 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   12429 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
   12430   ac_have_decl=1
   12431 else
   12432   ac_have_decl=0
   12433 fi
   12434 
   12435 cat >>confdefs.h <<_ACEOF
   12436 #define HAVE_DECL_SNPRINTF $ac_have_decl
   12437 _ACEOF
   12438 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
   12439 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
   12440   ac_have_decl=1
   12441 else
   12442   ac_have_decl=0
   12443 fi
   12444 
   12445 cat >>confdefs.h <<_ACEOF
   12446 #define HAVE_DECL_VSNPRINTF $ac_have_decl
   12447 _ACEOF
   12448 
   12449   ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
   12450 if test "x$ac_cv_have_decl_strtol" = xyes; then :
   12451   ac_have_decl=1
   12452 else
   12453   ac_have_decl=0
   12454 fi
   12455 
   12456 cat >>confdefs.h <<_ACEOF
   12457 #define HAVE_DECL_STRTOL $ac_have_decl
   12458 _ACEOF
   12459 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
   12460 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
   12461   ac_have_decl=1
   12462 else
   12463   ac_have_decl=0
   12464 fi
   12465 
   12466 cat >>confdefs.h <<_ACEOF
   12467 #define HAVE_DECL_STRTOUL $ac_have_decl
   12468 _ACEOF
   12469 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
   12470 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
   12471   ac_have_decl=1
   12472 else
   12473   ac_have_decl=0
   12474 fi
   12475 
   12476 cat >>confdefs.h <<_ACEOF
   12477 #define HAVE_DECL_STRTOLL $ac_have_decl
   12478 _ACEOF
   12479 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
   12480 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
   12481   ac_have_decl=1
   12482 else
   12483   ac_have_decl=0
   12484 fi
   12485 
   12486 cat >>confdefs.h <<_ACEOF
   12487 #define HAVE_DECL_STRTOULL $ac_have_decl
   12488 _ACEOF
   12489 
   12490   ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
   12491 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
   12492   ac_have_decl=1
   12493 else
   12494   ac_have_decl=0
   12495 fi
   12496 
   12497 cat >>confdefs.h <<_ACEOF
   12498 #define HAVE_DECL_STRVERSCMP $ac_have_decl
   12499 _ACEOF
   12500 
   12501 
   12502 
   12503 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   12504 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
   12505   ac_have_decl=1
   12506 else
   12507   ac_have_decl=0
   12508 fi
   12509 
   12510 cat >>confdefs.h <<_ACEOF
   12511 #define HAVE_DECL_SNPRINTF $ac_have_decl
   12512 _ACEOF
   12513 
   12514 
   12515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
   12516 $as_echo_n "checking for LC_MESSAGES... " >&6; }
   12517 if ${am_cv_val_LC_MESSAGES+:} false; then :
   12518   $as_echo_n "(cached) " >&6
   12519 else
   12520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12521 /* end confdefs.h.  */
   12522 #include <locale.h>
   12523 int
   12524 main ()
   12525 {
   12526 return LC_MESSAGES
   12527   ;
   12528   return 0;
   12529 }
   12530 _ACEOF
   12531 if ac_fn_c_try_link "$LINENO"; then :
   12532   am_cv_val_LC_MESSAGES=yes
   12533 else
   12534   am_cv_val_LC_MESSAGES=no
   12535 fi
   12536 rm -f core conftest.err conftest.$ac_objext \
   12537     conftest$ac_exeext conftest.$ac_ext
   12538 fi
   12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
   12540 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
   12541   if test $am_cv_val_LC_MESSAGES = yes; then
   12542 
   12543 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
   12544 
   12545   fi
   12546 
   12547 
   12548 # ----------------------- #
   12549 # Checks for structures.  #
   12550 # ----------------------- #
   12551 
   12552 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
   12553 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
   12554 
   12555 cat >>confdefs.h <<_ACEOF
   12556 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
   12557 _ACEOF
   12558 
   12559 
   12560 fi
   12561 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
   12562 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
   12563 
   12564 cat >>confdefs.h <<_ACEOF
   12565 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
   12566 _ACEOF
   12567 
   12568 
   12569 fi
   12570 
   12571 
   12572 # ------------------ #
   12573 # Checks for types.  #
   12574 # ------------------ #
   12575 
   12576 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
   12577 #include <sys/socket.h>
   12578 
   12579 "
   12580 if test "x$ac_cv_type_socklen_t" = xyes; then :
   12581 
   12582 cat >>confdefs.h <<_ACEOF
   12583 #define HAVE_SOCKLEN_T 1
   12584 _ACEOF
   12585 
   12586 
   12587 fi
   12588 
   12589 
   12590 # ------------------------------------- #
   12591 # Checks for compiler characteristics.  #
   12592 # ------------------------------------- #
   12593 
   12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   12595 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   12596 if ${ac_cv_c_const+:} false; then :
   12597   $as_echo_n "(cached) " >&6
   12598 else
   12599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12600 /* end confdefs.h.  */
   12601 
   12602 int
   12603 main ()
   12604 {
   12605 
   12606 #ifndef __cplusplus
   12607   /* Ultrix mips cc rejects this sort of thing.  */
   12608   typedef int charset[2];
   12609   const charset cs = { 0, 0 };
   12610   /* SunOS 4.1.1 cc rejects this.  */
   12611   char const *const *pcpcc;
   12612   char **ppc;
   12613   /* NEC SVR4.0.2 mips cc rejects this.  */
   12614   struct point {int x, y;};
   12615   static struct point const zero = {0,0};
   12616   /* AIX XL C 1.02.0.0 rejects this.
   12617      It does not let you subtract one const X* pointer from another in
   12618      an arm of an if-expression whose if-part is not a constant
   12619      expression */
   12620   const char *g = "string";
   12621   pcpcc = &g + (g ? g-g : 0);
   12622   /* HPUX 7.0 cc rejects these. */
   12623   ++pcpcc;
   12624   ppc = (char**) pcpcc;
   12625   pcpcc = (char const *const *) ppc;
   12626   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   12627     char tx;
   12628     char *t = &tx;
   12629     char const *s = 0 ? (char *) 0 : (char const *) 0;
   12630 
   12631     *t++ = 0;
   12632     if (s) return 0;
   12633   }
   12634   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   12635     int x[] = {25, 17};
   12636     const int *foo = &x[0];
   12637     ++foo;
   12638   }
   12639   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   12640     typedef const int *iptr;
   12641     iptr p = 0;
   12642     ++p;
   12643   }
   12644   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   12645        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   12646     struct s { int j; const int *ap[3]; } bx;
   12647     struct s *b = &bx; b->j = 5;
   12648   }
   12649   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   12650     const int foo = 10;
   12651     if (!foo) return 0;
   12652   }
   12653   return !cs[0] && !zero.x;
   12654 #endif
   12655 
   12656   ;
   12657   return 0;
   12658 }
   12659 _ACEOF
   12660 if ac_fn_c_try_compile "$LINENO"; then :
   12661   ac_cv_c_const=yes
   12662 else
   12663   ac_cv_c_const=no
   12664 fi
   12665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12666 fi
   12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   12668 $as_echo "$ac_cv_c_const" >&6; }
   12669 if test $ac_cv_c_const = no; then
   12670 
   12671 $as_echo "#define const /**/" >>confdefs.h
   12672 
   12673 fi
   12674 
   12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   12676 $as_echo_n "checking for inline... " >&6; }
   12677 if ${ac_cv_c_inline+:} false; then :
   12678   $as_echo_n "(cached) " >&6
   12679 else
   12680   ac_cv_c_inline=no
   12681 for ac_kw in inline __inline__ __inline; do
   12682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12683 /* end confdefs.h.  */
   12684 #ifndef __cplusplus
   12685 typedef int foo_t;
   12686 static $ac_kw foo_t static_foo () {return 0; }
   12687 $ac_kw foo_t foo () {return 0; }
   12688 #endif
   12689 
   12690 _ACEOF
   12691 if ac_fn_c_try_compile "$LINENO"; then :
   12692   ac_cv_c_inline=$ac_kw
   12693 fi
   12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12695   test "$ac_cv_c_inline" != no && break
   12696 done
   12697 
   12698 fi
   12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   12700 $as_echo "$ac_cv_c_inline" >&6; }
   12701 
   12702 case $ac_cv_c_inline in
   12703   inline | yes) ;;
   12704   *)
   12705     case $ac_cv_c_inline in
   12706       no) ac_val=;;
   12707       *) ac_val=$ac_cv_c_inline;;
   12708     esac
   12709     cat >>confdefs.h <<_ACEOF
   12710 #ifndef __cplusplus
   12711 #define inline $ac_val
   12712 #endif
   12713 _ACEOF
   12714     ;;
   12715 esac
   12716 
   12717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   12718 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   12719 if ${ac_cv_c_bigendian+:} false; then :
   12720   $as_echo_n "(cached) " >&6
   12721 else
   12722   ac_cv_c_bigendian=unknown
   12723     # See if we're dealing with a universal compiler.
   12724     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12725 /* end confdefs.h.  */
   12726 #ifndef __APPLE_CC__
   12727 	       not a universal capable compiler
   12728 	     #endif
   12729 	     typedef int dummy;
   12730 
   12731 _ACEOF
   12732 if ac_fn_c_try_compile "$LINENO"; then :
   12733 
   12734 	# Check for potential -arch flags.  It is not universal unless
   12735 	# there are at least two -arch flags with different values.
   12736 	ac_arch=
   12737 	ac_prev=
   12738 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   12739 	 if test -n "$ac_prev"; then
   12740 	   case $ac_word in
   12741 	     i?86 | x86_64 | ppc | ppc64)
   12742 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   12743 		 ac_arch=$ac_word
   12744 	       else
   12745 		 ac_cv_c_bigendian=universal
   12746 		 break
   12747 	       fi
   12748 	       ;;
   12749 	   esac
   12750 	   ac_prev=
   12751 	 elif test "x$ac_word" = "x-arch"; then
   12752 	   ac_prev=arch
   12753 	 fi
   12754        done
   12755 fi
   12756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12757     if test $ac_cv_c_bigendian = unknown; then
   12758       # See if sys/param.h defines the BYTE_ORDER macro.
   12759       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12760 /* end confdefs.h.  */
   12761 #include <sys/types.h>
   12762 	     #include <sys/param.h>
   12763 
   12764 int
   12765 main ()
   12766 {
   12767 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   12768 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   12769 		     && LITTLE_ENDIAN)
   12770 	      bogus endian macros
   12771 	     #endif
   12772 
   12773   ;
   12774   return 0;
   12775 }
   12776 _ACEOF
   12777 if ac_fn_c_try_compile "$LINENO"; then :
   12778   # It does; now see whether it defined to BIG_ENDIAN or not.
   12779 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12780 /* end confdefs.h.  */
   12781 #include <sys/types.h>
   12782 		#include <sys/param.h>
   12783 
   12784 int
   12785 main ()
   12786 {
   12787 #if BYTE_ORDER != BIG_ENDIAN
   12788 		 not big endian
   12789 		#endif
   12790 
   12791   ;
   12792   return 0;
   12793 }
   12794 _ACEOF
   12795 if ac_fn_c_try_compile "$LINENO"; then :
   12796   ac_cv_c_bigendian=yes
   12797 else
   12798   ac_cv_c_bigendian=no
   12799 fi
   12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12801 fi
   12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12803     fi
   12804     if test $ac_cv_c_bigendian = unknown; then
   12805       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   12806       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12807 /* end confdefs.h.  */
   12808 #include <limits.h>
   12809 
   12810 int
   12811 main ()
   12812 {
   12813 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   12814 	      bogus endian macros
   12815 	     #endif
   12816 
   12817   ;
   12818   return 0;
   12819 }
   12820 _ACEOF
   12821 if ac_fn_c_try_compile "$LINENO"; then :
   12822   # It does; now see whether it defined to _BIG_ENDIAN or not.
   12823 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12824 /* end confdefs.h.  */
   12825 #include <limits.h>
   12826 
   12827 int
   12828 main ()
   12829 {
   12830 #ifndef _BIG_ENDIAN
   12831 		 not big endian
   12832 		#endif
   12833 
   12834   ;
   12835   return 0;
   12836 }
   12837 _ACEOF
   12838 if ac_fn_c_try_compile "$LINENO"; then :
   12839   ac_cv_c_bigendian=yes
   12840 else
   12841   ac_cv_c_bigendian=no
   12842 fi
   12843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12844 fi
   12845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12846     fi
   12847     if test $ac_cv_c_bigendian = unknown; then
   12848       # Compile a test program.
   12849       if test "$cross_compiling" = yes; then :
   12850   # Try to guess by grepping values from an object file.
   12851 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12852 /* end confdefs.h.  */
   12853 short int ascii_mm[] =
   12854 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   12855 		short int ascii_ii[] =
   12856 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   12857 		int use_ascii (int i) {
   12858 		  return ascii_mm[i] + ascii_ii[i];
   12859 		}
   12860 		short int ebcdic_ii[] =
   12861 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   12862 		short int ebcdic_mm[] =
   12863 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   12864 		int use_ebcdic (int i) {
   12865 		  return ebcdic_mm[i] + ebcdic_ii[i];
   12866 		}
   12867 		extern int foo;
   12868 
   12869 int
   12870 main ()
   12871 {
   12872 return use_ascii (foo) == use_ebcdic (foo);
   12873   ;
   12874   return 0;
   12875 }
   12876 _ACEOF
   12877 if ac_fn_c_try_compile "$LINENO"; then :
   12878   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   12879 	      ac_cv_c_bigendian=yes
   12880 	    fi
   12881 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   12882 	      if test "$ac_cv_c_bigendian" = unknown; then
   12883 		ac_cv_c_bigendian=no
   12884 	      else
   12885 		# finding both strings is unlikely to happen, but who knows?
   12886 		ac_cv_c_bigendian=unknown
   12887 	      fi
   12888 	    fi
   12889 fi
   12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12891 else
   12892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12893 /* end confdefs.h.  */
   12894 $ac_includes_default
   12895 int
   12896 main ()
   12897 {
   12898 
   12899 	     /* Are we little or big endian?  From Harbison&Steele.  */
   12900 	     union
   12901 	     {
   12902 	       long int l;
   12903 	       char c[sizeof (long int)];
   12904 	     } u;
   12905 	     u.l = 1;
   12906 	     return u.c[sizeof (long int) - 1] == 1;
   12907 
   12908   ;
   12909   return 0;
   12910 }
   12911 _ACEOF
   12912 if ac_fn_c_try_run "$LINENO"; then :
   12913   ac_cv_c_bigendian=no
   12914 else
   12915   ac_cv_c_bigendian=yes
   12916 fi
   12917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12918   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12919 fi
   12920 
   12921     fi
   12922 fi
   12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   12924 $as_echo "$ac_cv_c_bigendian" >&6; }
   12925  case $ac_cv_c_bigendian in #(
   12926    yes)
   12927      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   12928 ;; #(
   12929    no)
   12930       ;; #(
   12931    universal)
   12932 
   12933 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   12934 
   12935      ;; #(
   12936    *)
   12937      as_fn_error $? "unknown endianness
   12938  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   12939  esac
   12940 
   12941 
   12942 # ------------------------------ #
   12943 # Checks for library functions.  #
   12944 # ------------------------------ #
   12945 
   12946 
   12947 
   12948 
   12949   for ac_header in $ac_header_list
   12950 do :
   12951   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12952 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   12953 "
   12954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   12955   cat >>confdefs.h <<_ACEOF
   12956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12957 _ACEOF
   12958 
   12959 fi
   12960 
   12961 done
   12962 
   12963 
   12964 
   12965 
   12966 
   12967 
   12968 
   12969 
   12970 for ac_func in getpagesize
   12971 do :
   12972   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
   12973 if test "x$ac_cv_func_getpagesize" = xyes; then :
   12974   cat >>confdefs.h <<_ACEOF
   12975 #define HAVE_GETPAGESIZE 1
   12976 _ACEOF
   12977 
   12978 fi
   12979 done
   12980 
   12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
   12982 $as_echo_n "checking for working mmap... " >&6; }
   12983 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
   12984   $as_echo_n "(cached) " >&6
   12985 else
   12986   if test "$cross_compiling" = yes; then :
   12987   ac_cv_func_mmap_fixed_mapped=no
   12988 else
   12989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12990 /* end confdefs.h.  */
   12991 $ac_includes_default
   12992 /* malloc might have been renamed as rpl_malloc. */
   12993 #undef malloc
   12994 
   12995 /* Thanks to Mike Haertel and Jim Avera for this test.
   12996    Here is a matrix of mmap possibilities:
   12997 	mmap private not fixed
   12998 	mmap private fixed at somewhere currently unmapped
   12999 	mmap private fixed at somewhere already mapped
   13000 	mmap shared not fixed
   13001 	mmap shared fixed at somewhere currently unmapped
   13002 	mmap shared fixed at somewhere already mapped
   13003    For private mappings, we should verify that changes cannot be read()
   13004    back from the file, nor mmap's back from the file at a different
   13005    address.  (There have been systems where private was not correctly
   13006    implemented like the infamous i386 svr4.0, and systems where the
   13007    VM page cache was not coherent with the file system buffer cache
   13008    like early versions of FreeBSD and possibly contemporary NetBSD.)
   13009    For shared mappings, we should conversely verify that changes get
   13010    propagated back to all the places they're supposed to be.
   13011 
   13012    Grep wants private fixed already mapped.
   13013    The main things grep needs to know about mmap are:
   13014    * does it exist and is it safe to write into the mmap'd area
   13015    * how to use it (BSD variants)  */
   13016 
   13017 #include <fcntl.h>
   13018 #include <sys/mman.h>
   13019 
   13020 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
   13021 char *malloc ();
   13022 #endif
   13023 
   13024 /* This mess was copied from the GNU getpagesize.h.  */
   13025 #ifndef HAVE_GETPAGESIZE
   13026 # ifdef _SC_PAGESIZE
   13027 #  define getpagesize() sysconf(_SC_PAGESIZE)
   13028 # else /* no _SC_PAGESIZE */
   13029 #  ifdef HAVE_SYS_PARAM_H
   13030 #   include <sys/param.h>
   13031 #   ifdef EXEC_PAGESIZE
   13032 #    define getpagesize() EXEC_PAGESIZE
   13033 #   else /* no EXEC_PAGESIZE */
   13034 #    ifdef NBPG
   13035 #     define getpagesize() NBPG * CLSIZE
   13036 #     ifndef CLSIZE
   13037 #      define CLSIZE 1
   13038 #     endif /* no CLSIZE */
   13039 #    else /* no NBPG */
   13040 #     ifdef NBPC
   13041 #      define getpagesize() NBPC
   13042 #     else /* no NBPC */
   13043 #      ifdef PAGESIZE
   13044 #       define getpagesize() PAGESIZE
   13045 #      endif /* PAGESIZE */
   13046 #     endif /* no NBPC */
   13047 #    endif /* no NBPG */
   13048 #   endif /* no EXEC_PAGESIZE */
   13049 #  else /* no HAVE_SYS_PARAM_H */
   13050 #   define getpagesize() 8192	/* punt totally */
   13051 #  endif /* no HAVE_SYS_PARAM_H */
   13052 # endif /* no _SC_PAGESIZE */
   13053 
   13054 #endif /* no HAVE_GETPAGESIZE */
   13055 
   13056 int
   13057 main ()
   13058 {
   13059   char *data, *data2, *data3;
   13060   const char *cdata2;
   13061   int i, pagesize;
   13062   int fd, fd2;
   13063 
   13064   pagesize = getpagesize ();
   13065 
   13066   /* First, make a file with some known garbage in it. */
   13067   data = (char *) malloc (pagesize);
   13068   if (!data)
   13069     return 1;
   13070   for (i = 0; i < pagesize; ++i)
   13071     *(data + i) = rand ();
   13072   umask (0);
   13073   fd = creat ("conftest.mmap", 0600);
   13074   if (fd < 0)
   13075     return 2;
   13076   if (write (fd, data, pagesize) != pagesize)
   13077     return 3;
   13078   close (fd);
   13079 
   13080   /* Next, check that the tail of a page is zero-filled.  File must have
   13081      non-zero length, otherwise we risk SIGBUS for entire page.  */
   13082   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
   13083   if (fd2 < 0)
   13084     return 4;
   13085   cdata2 = "";
   13086   if (write (fd2, cdata2, 1) != 1)
   13087     return 5;
   13088   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
   13089   if (data2 == MAP_FAILED)
   13090     return 6;
   13091   for (i = 0; i < pagesize; ++i)
   13092     if (*(data2 + i))
   13093       return 7;
   13094   close (fd2);
   13095   if (munmap (data2, pagesize))
   13096     return 8;
   13097 
   13098   /* Next, try to mmap the file at a fixed address which already has
   13099      something else allocated at it.  If we can, also make sure that
   13100      we see the same garbage.  */
   13101   fd = open ("conftest.mmap", O_RDWR);
   13102   if (fd < 0)
   13103     return 9;
   13104   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   13105 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   13106     return 10;
   13107   for (i = 0; i < pagesize; ++i)
   13108     if (*(data + i) != *(data2 + i))
   13109       return 11;
   13110 
   13111   /* Finally, make sure that changes to the mapped area do not
   13112      percolate back to the file as seen by read().  (This is a bug on
   13113      some variants of i386 svr4.0.)  */
   13114   for (i = 0; i < pagesize; ++i)
   13115     *(data2 + i) = *(data2 + i) + 1;
   13116   data3 = (char *) malloc (pagesize);
   13117   if (!data3)
   13118     return 12;
   13119   if (read (fd, data3, pagesize) != pagesize)
   13120     return 13;
   13121   for (i = 0; i < pagesize; ++i)
   13122     if (*(data + i) != *(data3 + i))
   13123       return 14;
   13124   close (fd);
   13125   return 0;
   13126 }
   13127 _ACEOF
   13128 if ac_fn_c_try_run "$LINENO"; then :
   13129   ac_cv_func_mmap_fixed_mapped=yes
   13130 else
   13131   ac_cv_func_mmap_fixed_mapped=no
   13132 fi
   13133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13134   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13135 fi
   13136 
   13137 fi
   13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
   13139 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
   13140 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   13141 
   13142 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
   13143 
   13144 fi
   13145 rm -f conftest.mmap conftest.txt
   13146 
   13147 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   13148 if test "x$ac_cv_type_pid_t" = xyes; then :
   13149 
   13150 else
   13151 
   13152 cat >>confdefs.h <<_ACEOF
   13153 #define pid_t int
   13154 _ACEOF
   13155 
   13156 fi
   13157 
   13158 for ac_header in vfork.h
   13159 do :
   13160   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
   13161 if test "x$ac_cv_header_vfork_h" = xyes; then :
   13162   cat >>confdefs.h <<_ACEOF
   13163 #define HAVE_VFORK_H 1
   13164 _ACEOF
   13165 
   13166 fi
   13167 
   13168 done
   13169 
   13170 for ac_func in fork vfork
   13171 do :
   13172   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13174 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13175   cat >>confdefs.h <<_ACEOF
   13176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13177 _ACEOF
   13178 
   13179 fi
   13180 done
   13181 
   13182 if test "x$ac_cv_func_fork" = xyes; then
   13183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   13184 $as_echo_n "checking for working fork... " >&6; }
   13185 if ${ac_cv_func_fork_works+:} false; then :
   13186   $as_echo_n "(cached) " >&6
   13187 else
   13188   if test "$cross_compiling" = yes; then :
   13189   ac_cv_func_fork_works=cross
   13190 else
   13191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13192 /* end confdefs.h.  */
   13193 $ac_includes_default
   13194 int
   13195 main ()
   13196 {
   13197 
   13198 	  /* By Ruediger Kuhlmann. */
   13199 	  return fork () < 0;
   13200 
   13201   ;
   13202   return 0;
   13203 }
   13204 _ACEOF
   13205 if ac_fn_c_try_run "$LINENO"; then :
   13206   ac_cv_func_fork_works=yes
   13207 else
   13208   ac_cv_func_fork_works=no
   13209 fi
   13210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13211   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13212 fi
   13213 
   13214 fi
   13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   13216 $as_echo "$ac_cv_func_fork_works" >&6; }
   13217 
   13218 else
   13219   ac_cv_func_fork_works=$ac_cv_func_fork
   13220 fi
   13221 if test "x$ac_cv_func_fork_works" = xcross; then
   13222   case $host in
   13223     *-*-amigaos* | *-*-msdosdjgpp*)
   13224       # Override, as these systems have only a dummy fork() stub
   13225       ac_cv_func_fork_works=no
   13226       ;;
   13227     *)
   13228       ac_cv_func_fork_works=yes
   13229       ;;
   13230   esac
   13231   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   13232 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   13233 fi
   13234 ac_cv_func_vfork_works=$ac_cv_func_vfork
   13235 if test "x$ac_cv_func_vfork" = xyes; then
   13236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   13237 $as_echo_n "checking for working vfork... " >&6; }
   13238 if ${ac_cv_func_vfork_works+:} false; then :
   13239   $as_echo_n "(cached) " >&6
   13240 else
   13241   if test "$cross_compiling" = yes; then :
   13242   ac_cv_func_vfork_works=cross
   13243 else
   13244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13245 /* end confdefs.h.  */
   13246 /* Thanks to Paul Eggert for this test.  */
   13247 $ac_includes_default
   13248 #include <sys/wait.h>
   13249 #ifdef HAVE_VFORK_H
   13250 # include <vfork.h>
   13251 #endif
   13252 /* On some sparc systems, changes by the child to local and incoming
   13253    argument registers are propagated back to the parent.  The compiler
   13254    is told about this with #include <vfork.h>, but some compilers
   13255    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   13256    static variable whose address is put into a register that is
   13257    clobbered by the vfork.  */
   13258 static void
   13259 #ifdef __cplusplus
   13260 sparc_address_test (int arg)
   13261 # else
   13262 sparc_address_test (arg) int arg;
   13263 #endif
   13264 {
   13265   static pid_t child;
   13266   if (!child) {
   13267     child = vfork ();
   13268     if (child < 0) {
   13269       perror ("vfork");
   13270       _exit(2);
   13271     }
   13272     if (!child) {
   13273       arg = getpid();
   13274       write(-1, "", 0);
   13275       _exit (arg);
   13276     }
   13277   }
   13278 }
   13279 
   13280 int
   13281 main ()
   13282 {
   13283   pid_t parent = getpid ();
   13284   pid_t child;
   13285 
   13286   sparc_address_test (0);
   13287 
   13288   child = vfork ();
   13289 
   13290   if (child == 0) {
   13291     /* Here is another test for sparc vfork register problems.  This
   13292        test uses lots of local variables, at least as many local
   13293        variables as main has allocated so far including compiler
   13294        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   13295        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   13296        reuse the register of parent for one of the local variables,
   13297        since it will think that parent can't possibly be used any more
   13298        in this routine.  Assigning to the local variable will thus
   13299        munge parent in the parent process.  */
   13300     pid_t
   13301       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   13302       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   13303     /* Convince the compiler that p..p7 are live; otherwise, it might
   13304        use the same hardware register for all 8 local variables.  */
   13305     if (p != p1 || p != p2 || p != p3 || p != p4
   13306 	|| p != p5 || p != p6 || p != p7)
   13307       _exit(1);
   13308 
   13309     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   13310        from child file descriptors.  If the child closes a descriptor
   13311        before it execs or exits, this munges the parent's descriptor
   13312        as well.  Test for this by closing stdout in the child.  */
   13313     _exit(close(fileno(stdout)) != 0);
   13314   } else {
   13315     int status;
   13316     struct stat st;
   13317 
   13318     while (wait(&status) != child)
   13319       ;
   13320     return (
   13321 	 /* Was there some problem with vforking?  */
   13322 	 child < 0
   13323 
   13324 	 /* Did the child fail?  (This shouldn't happen.)  */
   13325 	 || status
   13326 
   13327 	 /* Did the vfork/compiler bug occur?  */
   13328 	 || parent != getpid()
   13329 
   13330 	 /* Did the file descriptor bug occur?  */
   13331 	 || fstat(fileno(stdout), &st) != 0
   13332 	 );
   13333   }
   13334 }
   13335 _ACEOF
   13336 if ac_fn_c_try_run "$LINENO"; then :
   13337   ac_cv_func_vfork_works=yes
   13338 else
   13339   ac_cv_func_vfork_works=no
   13340 fi
   13341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13342   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13343 fi
   13344 
   13345 fi
   13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   13347 $as_echo "$ac_cv_func_vfork_works" >&6; }
   13348 
   13349 fi;
   13350 if test "x$ac_cv_func_fork_works" = xcross; then
   13351   ac_cv_func_vfork_works=$ac_cv_func_vfork
   13352   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   13353 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   13354 fi
   13355 
   13356 if test "x$ac_cv_func_vfork_works" = xyes; then
   13357 
   13358 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   13359 
   13360 else
   13361 
   13362 $as_echo "#define vfork fork" >>confdefs.h
   13363 
   13364 fi
   13365 if test "x$ac_cv_func_fork_works" = xyes; then
   13366 
   13367 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   13368 
   13369 fi
   13370 
   13371 for ac_func in getauxval getrusage getuid getgid \
   13372 		pipe poll pread pread64 pwrite resize_term \
   13373 		sbrk getpgid setpgid setpgrp setsid \
   13374 		sigaction sigprocmask sigsetmask socketpair \
   13375 		ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
   13376 		setrlimit getrlimit posix_madvise waitpid \
   13377 		ptrace64 sigaltstack setns use_default_colors
   13378 do :
   13379   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13380 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13381 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13382   cat >>confdefs.h <<_ACEOF
   13383 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13384 _ACEOF
   13385 
   13386 fi
   13387 done
   13388 
   13389 
   13390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   13391 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   13392 if ${am_cv_langinfo_codeset+:} false; then :
   13393   $as_echo_n "(cached) " >&6
   13394 else
   13395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13396 /* end confdefs.h.  */
   13397 #include <langinfo.h>
   13398 int
   13399 main ()
   13400 {
   13401 char* cs = nl_langinfo(CODESET);
   13402   ;
   13403   return 0;
   13404 }
   13405 _ACEOF
   13406 if ac_fn_c_try_link "$LINENO"; then :
   13407   am_cv_langinfo_codeset=yes
   13408 else
   13409   am_cv_langinfo_codeset=no
   13410 fi
   13411 rm -f core conftest.err conftest.$ac_objext \
   13412     conftest$ac_exeext conftest.$ac_ext
   13413 
   13414 fi
   13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   13416 $as_echo "$am_cv_langinfo_codeset" >&6; }
   13417   if test $am_cv_langinfo_codeset = yes; then
   13418 
   13419 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   13420 
   13421   fi
   13422 
   13423 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   13424 if test "x$ac_cv_type_size_t" = xyes; then :
   13425 
   13426 else
   13427 
   13428 cat >>confdefs.h <<_ACEOF
   13429 #define size_t unsigned int
   13430 _ACEOF
   13431 
   13432 fi
   13433 
   13434 
   13435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   13436 $as_echo_n "checking for ANSI C header files... " >&6; }
   13437 if ${ac_cv_header_stdc+:} false; then :
   13438   $as_echo_n "(cached) " >&6
   13439 else
   13440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13441 /* end confdefs.h.  */
   13442 #include <stdlib.h>
   13443 #include <stdarg.h>
   13444 #include <string.h>
   13445 #include <float.h>
   13446 
   13447 int
   13448 main ()
   13449 {
   13450 
   13451   ;
   13452   return 0;
   13453 }
   13454 _ACEOF
   13455 if ac_fn_c_try_compile "$LINENO"; then :
   13456   ac_cv_header_stdc=yes
   13457 else
   13458   ac_cv_header_stdc=no
   13459 fi
   13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13461 
   13462 if test $ac_cv_header_stdc = yes; then
   13463   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   13464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13465 /* end confdefs.h.  */
   13466 #include <string.h>
   13467 
   13468 _ACEOF
   13469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13470   $EGREP "memchr" >/dev/null 2>&1; then :
   13471 
   13472 else
   13473   ac_cv_header_stdc=no
   13474 fi
   13475 rm -f conftest*
   13476 
   13477 fi
   13478 
   13479 if test $ac_cv_header_stdc = yes; then
   13480   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   13481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13482 /* end confdefs.h.  */
   13483 #include <stdlib.h>
   13484 
   13485 _ACEOF
   13486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13487   $EGREP "free" >/dev/null 2>&1; then :
   13488 
   13489 else
   13490   ac_cv_header_stdc=no
   13491 fi
   13492 rm -f conftest*
   13493 
   13494 fi
   13495 
   13496 if test $ac_cv_header_stdc = yes; then
   13497   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   13498   if test "$cross_compiling" = yes; then :
   13499   :
   13500 else
   13501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13502 /* end confdefs.h.  */
   13503 #include <ctype.h>
   13504 #include <stdlib.h>
   13505 #if ((' ' & 0x0FF) == 0x020)
   13506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   13507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   13508 #else
   13509 # define ISLOWER(c) \
   13510 		   (('a' <= (c) && (c) <= 'i') \
   13511 		     || ('j' <= (c) && (c) <= 'r') \
   13512 		     || ('s' <= (c) && (c) <= 'z'))
   13513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   13514 #endif
   13515 
   13516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   13517 int
   13518 main ()
   13519 {
   13520   int i;
   13521   for (i = 0; i < 256; i++)
   13522     if (XOR (islower (i), ISLOWER (i))
   13523 	|| toupper (i) != TOUPPER (i))
   13524       return 2;
   13525   return 0;
   13526 }
   13527 _ACEOF
   13528 if ac_fn_c_try_run "$LINENO"; then :
   13529 
   13530 else
   13531   ac_cv_header_stdc=no
   13532 fi
   13533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13534   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13535 fi
   13536 
   13537 fi
   13538 fi
   13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   13540 $as_echo "$ac_cv_header_stdc" >&6; }
   13541 if test $ac_cv_header_stdc = yes; then
   13542 
   13543 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   13544 
   13545 fi
   13546 
   13547   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   13548 # for constant arguments.  Useless!
   13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
   13550 $as_echo_n "checking for working alloca.h... " >&6; }
   13551 if ${ac_cv_working_alloca_h+:} false; then :
   13552   $as_echo_n "(cached) " >&6
   13553 else
   13554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13555 /* end confdefs.h.  */
   13556 #include <alloca.h>
   13557 int
   13558 main ()
   13559 {
   13560 char *p = (char *) alloca (2 * sizeof (int));
   13561 			  if (p) return 0;
   13562   ;
   13563   return 0;
   13564 }
   13565 _ACEOF
   13566 if ac_fn_c_try_link "$LINENO"; then :
   13567   ac_cv_working_alloca_h=yes
   13568 else
   13569   ac_cv_working_alloca_h=no
   13570 fi
   13571 rm -f core conftest.err conftest.$ac_objext \
   13572     conftest$ac_exeext conftest.$ac_ext
   13573 fi
   13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
   13575 $as_echo "$ac_cv_working_alloca_h" >&6; }
   13576 if test $ac_cv_working_alloca_h = yes; then
   13577 
   13578 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
   13579 
   13580 fi
   13581 
   13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
   13583 $as_echo_n "checking for alloca... " >&6; }
   13584 if ${ac_cv_func_alloca_works+:} false; then :
   13585   $as_echo_n "(cached) " >&6
   13586 else
   13587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13588 /* end confdefs.h.  */
   13589 #ifdef __GNUC__
   13590 # define alloca __builtin_alloca
   13591 #else
   13592 # ifdef _MSC_VER
   13593 #  include <malloc.h>
   13594 #  define alloca _alloca
   13595 # else
   13596 #  ifdef HAVE_ALLOCA_H
   13597 #   include <alloca.h>
   13598 #  else
   13599 #   ifdef _AIX
   13600  #pragma alloca
   13601 #   else
   13602 #    ifndef alloca /* predefined by HP cc +Olibcalls */
   13603 void *alloca (size_t);
   13604 #    endif
   13605 #   endif
   13606 #  endif
   13607 # endif
   13608 #endif
   13609 
   13610 int
   13611 main ()
   13612 {
   13613 char *p = (char *) alloca (1);
   13614 				    if (p) return 0;
   13615   ;
   13616   return 0;
   13617 }
   13618 _ACEOF
   13619 if ac_fn_c_try_link "$LINENO"; then :
   13620   ac_cv_func_alloca_works=yes
   13621 else
   13622   ac_cv_func_alloca_works=no
   13623 fi
   13624 rm -f core conftest.err conftest.$ac_objext \
   13625     conftest$ac_exeext conftest.$ac_ext
   13626 fi
   13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
   13628 $as_echo "$ac_cv_func_alloca_works" >&6; }
   13629 
   13630 if test $ac_cv_func_alloca_works = yes; then
   13631 
   13632 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   13633 
   13634 else
   13635   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   13636 # that cause trouble.  Some versions do not even contain alloca or
   13637 # contain a buggy version.  If you still want to use their alloca,
   13638 # use ar to extract alloca.o from them instead of compiling alloca.c.
   13639 
   13640 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   13641 
   13642 $as_echo "#define C_ALLOCA 1" >>confdefs.h
   13643 
   13644 
   13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
   13646 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
   13647 if ${ac_cv_os_cray+:} false; then :
   13648   $as_echo_n "(cached) " >&6
   13649 else
   13650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13651 /* end confdefs.h.  */
   13652 #if defined CRAY && ! defined CRAY2
   13653 webecray
   13654 #else
   13655 wenotbecray
   13656 #endif
   13657 
   13658 _ACEOF
   13659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13660   $EGREP "webecray" >/dev/null 2>&1; then :
   13661   ac_cv_os_cray=yes
   13662 else
   13663   ac_cv_os_cray=no
   13664 fi
   13665 rm -f conftest*
   13666 
   13667 fi
   13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
   13669 $as_echo "$ac_cv_os_cray" >&6; }
   13670 if test $ac_cv_os_cray = yes; then
   13671   for ac_func in _getb67 GETB67 getb67; do
   13672     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13673 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13674 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13675 
   13676 cat >>confdefs.h <<_ACEOF
   13677 #define CRAY_STACKSEG_END $ac_func
   13678 _ACEOF
   13679 
   13680     break
   13681 fi
   13682 
   13683   done
   13684 fi
   13685 
   13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   13687 $as_echo_n "checking stack direction for C alloca... " >&6; }
   13688 if ${ac_cv_c_stack_direction+:} false; then :
   13689   $as_echo_n "(cached) " >&6
   13690 else
   13691   if test "$cross_compiling" = yes; then :
   13692   ac_cv_c_stack_direction=0
   13693 else
   13694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13695 /* end confdefs.h.  */
   13696 $ac_includes_default
   13697 int
   13698 find_stack_direction (int *addr, int depth)
   13699 {
   13700   int dir, dummy = 0;
   13701   if (! addr)
   13702     addr = &dummy;
   13703   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
   13704   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
   13705   return dir + dummy;
   13706 }
   13707 
   13708 int
   13709 main (int argc, char **argv)
   13710 {
   13711   return find_stack_direction (0, argc + !argv + 20) < 0;
   13712 }
   13713 _ACEOF
   13714 if ac_fn_c_try_run "$LINENO"; then :
   13715   ac_cv_c_stack_direction=1
   13716 else
   13717   ac_cv_c_stack_direction=-1
   13718 fi
   13719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13720   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13721 fi
   13722 
   13723 fi
   13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   13725 $as_echo "$ac_cv_c_stack_direction" >&6; }
   13726 cat >>confdefs.h <<_ACEOF
   13727 #define STACK_DIRECTION $ac_cv_c_stack_direction
   13728 _ACEOF
   13729 
   13730 
   13731 fi
   13732 
   13733 
   13734 
   13735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   13736 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   13737 if ${am_cv_langinfo_codeset+:} false; then :
   13738   $as_echo_n "(cached) " >&6
   13739 else
   13740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13741 /* end confdefs.h.  */
   13742 #include <sys/param.h>
   13743 #define _KMEMUSER
   13744 #include <sys/lwp.h>
   13745 #include <langinfo.h>
   13746 int
   13747 main ()
   13748 {
   13749 char* cs = nl_langinfo(CODESET);
   13750   ;
   13751   return 0;
   13752 }
   13753 _ACEOF
   13754 if ac_fn_c_try_link "$LINENO"; then :
   13755   am_cv_langinfo_codeset=yes
   13756 else
   13757   am_cv_langinfo_codeset=no
   13758 fi
   13759 rm -f core conftest.err conftest.$ac_objext \
   13760     conftest$ac_exeext conftest.$ac_ext
   13761 
   13762 fi
   13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   13764 $as_echo "$am_cv_langinfo_codeset" >&6; }
   13765   if test $am_cv_langinfo_codeset = yes; then
   13766 
   13767 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   13768 
   13769   fi
   13770 
   13771 
   13772   for ac_header in linux/perf_event.h locale.h memory.h signal.h 		   sys/resource.h sys/socket.h 		   sys/un.h sys/wait.h 		   thread_db.h wait.h 		   termios.h
   13773 do :
   13774   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13775 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   13776 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13777   cat >>confdefs.h <<_ACEOF
   13778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13779 _ACEOF
   13780 
   13781 fi
   13782 
   13783 done
   13784 
   13785 
   13786   for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
   13787 do :
   13788   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13789 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13790 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13791   cat >>confdefs.h <<_ACEOF
   13792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13793 _ACEOF
   13794 
   13795 fi
   13796 done
   13797 
   13798 
   13799   ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
   13800 if test "x$ac_cv_have_decl_strerror" = xyes; then :
   13801   ac_have_decl=1
   13802 else
   13803   ac_have_decl=0
   13804 fi
   13805 
   13806 cat >>confdefs.h <<_ACEOF
   13807 #define HAVE_DECL_STRERROR $ac_have_decl
   13808 _ACEOF
   13809 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
   13810 if test "x$ac_cv_have_decl_strstr" = xyes; then :
   13811   ac_have_decl=1
   13812 else
   13813   ac_have_decl=0
   13814 fi
   13815 
   13816 cat >>confdefs.h <<_ACEOF
   13817 #define HAVE_DECL_STRSTR $ac_have_decl
   13818 _ACEOF
   13819 
   13820 
   13821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
   13822 $as_echo_n "checking for sigsetjmp... " >&6; }
   13823 if ${gdb_cv_func_sigsetjmp+:} false; then :
   13824   $as_echo_n "(cached) " >&6
   13825 else
   13826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13827 /* end confdefs.h.  */
   13828 
   13829 #include <setjmp.h>
   13830 
   13831 int
   13832 main ()
   13833 {
   13834 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
   13835   ;
   13836   return 0;
   13837 }
   13838 _ACEOF
   13839 if ac_fn_c_try_compile "$LINENO"; then :
   13840   gdb_cv_func_sigsetjmp=yes
   13841 else
   13842   gdb_cv_func_sigsetjmp=no
   13843 fi
   13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13845 fi
   13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
   13847 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
   13848 if test $gdb_cv_func_sigsetjmp = yes; then
   13849 
   13850 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
   13851 
   13852 fi
   13853 
   13854 
   13855 # Check the return and argument types of ptrace.
   13856 
   13857 
   13858 for ac_header in sys/ptrace.h ptrace.h
   13859 do :
   13860   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13861 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   13862 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13863   cat >>confdefs.h <<_ACEOF
   13864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13865 _ACEOF
   13866 
   13867 fi
   13868 
   13869 done
   13870 
   13871 
   13872 gdb_ptrace_headers='
   13873 #include <sys/types.h>
   13874 #if HAVE_SYS_PTRACE_H
   13875 # include <sys/ptrace.h>
   13876 #endif
   13877 #if HAVE_UNISTD_H
   13878 # include <unistd.h>
   13879 #endif
   13880 '
   13881 # There is no point in checking if we don't have a prototype.
   13882 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
   13883 "
   13884 if test "x$ac_cv_have_decl_ptrace" = xyes; then :
   13885   ac_have_decl=1
   13886 else
   13887   ac_have_decl=0
   13888 fi
   13889 
   13890 cat >>confdefs.h <<_ACEOF
   13891 #define HAVE_DECL_PTRACE $ac_have_decl
   13892 _ACEOF
   13893 if test $ac_have_decl = 1; then :
   13894 
   13895 else
   13896 
   13897   : ${gdb_cv_func_ptrace_ret='int'}
   13898   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
   13899 
   13900 fi
   13901 
   13902 # Check return type.  Varargs (used on GNU/Linux) conflict with the
   13903 # empty argument list, so check for that explicitly.
   13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
   13905 $as_echo_n "checking return type of ptrace... " >&6; }
   13906 if ${gdb_cv_func_ptrace_ret+:} false; then :
   13907   $as_echo_n "(cached) " >&6
   13908 else
   13909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13910 /* end confdefs.h.  */
   13911 $gdb_ptrace_headers
   13912 int
   13913 main ()
   13914 {
   13915 extern long ptrace (enum __ptrace_request, ...);
   13916   ;
   13917   return 0;
   13918 }
   13919 _ACEOF
   13920 if ac_fn_c_try_compile "$LINENO"; then :
   13921   gdb_cv_func_ptrace_ret='long'
   13922 else
   13923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13924 /* end confdefs.h.  */
   13925 $gdb_ptrace_headers
   13926 int
   13927 main ()
   13928 {
   13929 extern int ptrace ();
   13930   ;
   13931   return 0;
   13932 }
   13933 _ACEOF
   13934 if ac_fn_c_try_compile "$LINENO"; then :
   13935   gdb_cv_func_ptrace_ret='int'
   13936 else
   13937   gdb_cv_func_ptrace_ret='long'
   13938 fi
   13939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13940 fi
   13941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13942 fi
   13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
   13944 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
   13945 
   13946 cat >>confdefs.h <<_ACEOF
   13947 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
   13948 _ACEOF
   13949 
   13950 # Check argument types.
   13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
   13952 $as_echo_n "checking types of arguments for ptrace... " >&6; }
   13953 if ${gdb_cv_func_ptrace_args+:} false; then :
   13954   $as_echo_n "(cached) " >&6
   13955 else
   13956 
   13957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13958 /* end confdefs.h.  */
   13959 $gdb_ptrace_headers
   13960 int
   13961 main ()
   13962 {
   13963 extern long ptrace (enum __ptrace_request, ...);
   13964   ;
   13965   return 0;
   13966 }
   13967 _ACEOF
   13968 if ac_fn_c_try_compile "$LINENO"; then :
   13969   gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
   13970 else
   13971 
   13972 for gdb_arg1 in 'int' 'long'; do
   13973  for gdb_arg2 in 'pid_t' 'int' 'long'; do
   13974   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
   13975    for gdb_arg4 in 'int' 'long' 'void *'; do
   13976      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13977 /* end confdefs.h.  */
   13978 $gdb_ptrace_headers
   13979 int
   13980 main ()
   13981 {
   13982 
   13983 extern $gdb_cv_func_ptrace_ret
   13984   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
   13985 
   13986   ;
   13987   return 0;
   13988 }
   13989 _ACEOF
   13990 if ac_fn_c_try_compile "$LINENO"; then :
   13991   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
   13992     break 4;
   13993 fi
   13994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13995     for gdb_arg5 in 'int *' 'int' 'long'; do
   13996      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13997 /* end confdefs.h.  */
   13998 $gdb_ptrace_headers
   13999 int
   14000 main ()
   14001 {
   14002 
   14003 extern $gdb_cv_func_ptrace_ret
   14004   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
   14005 
   14006   ;
   14007   return 0;
   14008 }
   14009 _ACEOF
   14010 if ac_fn_c_try_compile "$LINENO"; then :
   14011 
   14012 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
   14013     break 5;
   14014 fi
   14015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14016     done
   14017    done
   14018   done
   14019  done
   14020 done
   14021 # Provide a safe default value.
   14022 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
   14023 
   14024 fi
   14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14026 fi
   14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
   14028 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
   14029 ac_save_IFS=$IFS; IFS=','
   14030 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
   14031 IFS=$ac_save_IFS
   14032 shift
   14033 
   14034 cat >>confdefs.h <<_ACEOF
   14035 #define PTRACE_TYPE_ARG1 $1
   14036 _ACEOF
   14037 
   14038 
   14039 cat >>confdefs.h <<_ACEOF
   14040 #define PTRACE_TYPE_ARG3 $3
   14041 _ACEOF
   14042 
   14043 
   14044 cat >>confdefs.h <<_ACEOF
   14045 #define PTRACE_TYPE_ARG4 $4
   14046 _ACEOF
   14047 
   14048 if test -n "$5"; then
   14049 
   14050 cat >>confdefs.h <<_ACEOF
   14051 #define PTRACE_TYPE_ARG5 $5
   14052 _ACEOF
   14053 
   14054 fi
   14055 
   14056 
   14057 if test "$cross_compiling" = no; then
   14058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
   14059 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
   14060 if ${ac_cv_func_setpgrp_void+:} false; then :
   14061   $as_echo_n "(cached) " >&6
   14062 else
   14063   if test "$cross_compiling" = yes; then :
   14064   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
   14065 else
   14066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14067 /* end confdefs.h.  */
   14068 $ac_includes_default
   14069 int
   14070 main ()
   14071 {
   14072 /* If this system has a BSD-style setpgrp which takes arguments,
   14073   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
   14074   exit successfully. */
   14075   return setpgrp (1,1) != -1;
   14076   ;
   14077   return 0;
   14078 }
   14079 _ACEOF
   14080 if ac_fn_c_try_run "$LINENO"; then :
   14081   ac_cv_func_setpgrp_void=no
   14082 else
   14083   ac_cv_func_setpgrp_void=yes
   14084 fi
   14085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14086   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14087 fi
   14088 
   14089 fi
   14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
   14091 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
   14092 if test $ac_cv_func_setpgrp_void = yes; then
   14093 
   14094 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
   14095 
   14096 fi
   14097 
   14098 else
   14099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
   14100 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
   14101 if ${ac_cv_func_setpgrp_void+:} false; then :
   14102   $as_echo_n "(cached) " >&6
   14103 else
   14104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14105 /* end confdefs.h.  */
   14106 
   14107 #include <unistd.h>
   14108 
   14109 int
   14110 main ()
   14111 {
   14112 
   14113   if (setpgrp(1,1) == -1)
   14114     exit (0);
   14115   else
   14116     exit (1);
   14117 
   14118   ;
   14119   return 0;
   14120 }
   14121 _ACEOF
   14122 if ac_fn_c_try_compile "$LINENO"; then :
   14123   ac_cv_func_setpgrp_void=no
   14124 else
   14125   ac_cv_func_setpgrp_void=yes
   14126 fi
   14127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14128 fi
   14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
   14130 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
   14131 if test $ac_cv_func_setpgrp_void = yes; then
   14132   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
   14133 
   14134 fi
   14135 fi
   14136 
   14137 # Assume we'll default to using the included libiberty regex.
   14138 gdb_use_included_regex=yes
   14139 
   14140 # However, if the system regex is GNU regex, then default to *not*
   14141 # using the included regex.
   14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
   14143 $as_echo_n "checking for GNU regex... " >&6; }
   14144 if ${gdb_cv_have_gnu_regex+:} false; then :
   14145   $as_echo_n "(cached) " >&6
   14146 else
   14147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14148 /* end confdefs.h.  */
   14149 #include <gnu-versions.h>
   14150 int
   14151 main ()
   14152 {
   14153 #define REGEX_INTERFACE_VERSION 1
   14154 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
   14155 # error "Version mismatch"
   14156 #endif
   14157   ;
   14158   return 0;
   14159 }
   14160 _ACEOF
   14161 if ac_fn_c_try_compile "$LINENO"; then :
   14162   gdb_cv_have_gnu_regex=yes
   14163 else
   14164   gdb_cv_have_gnu_regex=no
   14165 fi
   14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14167 fi
   14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
   14169 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
   14170 if test $gdb_cv_have_gnu_regex = yes; then
   14171   gdb_use_included_regex=no
   14172 fi
   14173 
   14174 
   14175 # Check whether --with-included-regex was given.
   14176 if test "${with_included_regex+set}" = set; then :
   14177   withval=$with_included_regex; gdb_with_regex=$withval
   14178 else
   14179   gdb_with_regex=$gdb_use_included_regex
   14180 fi
   14181 
   14182 if test "$gdb_with_regex" = yes; then
   14183 
   14184 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
   14185 
   14186 fi
   14187 
   14188 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
   14189 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
   14190 #include <sys/proc.h>
   14191 
   14192 "
   14193 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
   14194 
   14195 cat >>confdefs.h <<_ACEOF
   14196 #define HAVE_STRUCT_THREAD_TD_PCB 1
   14197 _ACEOF
   14198 
   14199 
   14200 fi
   14201 
   14202 
   14203 # See if <sys/lwp.h> defines `struct lwp`.
   14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
   14205 $as_echo_n "checking for struct lwp... " >&6; }
   14206 if ${gdb_cv_struct_lwp+:} false; then :
   14207   $as_echo_n "(cached) " >&6
   14208 else
   14209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14210 /* end confdefs.h.  */
   14211 #define _KMEMUSER
   14212 #include <sys/param.h>
   14213 #define _KMEMUSER
   14214 #include <sys/lwp.h>
   14215 int
   14216 main ()
   14217 {
   14218 struct lwp l;
   14219   ;
   14220   return 0;
   14221 }
   14222 _ACEOF
   14223 if ac_fn_c_try_compile "$LINENO"; then :
   14224   gdb_cv_struct_lwp=yes
   14225 else
   14226   gdb_cv_struct_lwp=no
   14227 fi
   14228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14229 fi
   14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
   14231 $as_echo "$gdb_cv_struct_lwp" >&6; }
   14232 if test $gdb_cv_struct_lwp = yes; then
   14233 
   14234 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
   14235 
   14236 fi
   14237 
   14238 # See if <machine/reg.h> degines `struct reg'.
   14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
   14240 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
   14241 if ${gdb_cv_struct_reg+:} false; then :
   14242   $as_echo_n "(cached) " >&6
   14243 else
   14244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14245 /* end confdefs.h.  */
   14246 #include <sys/types.h>
   14247 #include <machine/reg.h>
   14248 int
   14249 main ()
   14250 {
   14251 struct reg r;
   14252   ;
   14253   return 0;
   14254 }
   14255 _ACEOF
   14256 if ac_fn_c_try_compile "$LINENO"; then :
   14257   gdb_cv_struct_reg=yes
   14258 else
   14259   gdb_cv_struct_reg=no
   14260 fi
   14261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14262 fi
   14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
   14264 $as_echo "$gdb_cv_struct_reg" >&6; }
   14265 if test $gdb_cv_struct_reg = yes; then
   14266 
   14267 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
   14268 
   14269 fi
   14270 
   14271 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
   14272 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
   14273 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
   14274 #include <machine/reg.h>
   14275 "
   14276 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
   14277 
   14278 cat >>confdefs.h <<_ACEOF
   14279 #define HAVE_STRUCT_REG_R_FS 1
   14280 _ACEOF
   14281 
   14282 
   14283 fi
   14284 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
   14285 #include <machine/reg.h>
   14286 "
   14287 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
   14288 
   14289 cat >>confdefs.h <<_ACEOF
   14290 #define HAVE_STRUCT_REG_R_GS 1
   14291 _ACEOF
   14292 
   14293 
   14294 fi
   14295 
   14296 
   14297 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
   14298 # Older amd64 Linux's don't have the fs_base and gs_base members of
   14299 # `struct user_regs_struct'.
   14300 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/types.h>
   14301 #include <sys/user.h>
   14302 "
   14303 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
   14304 
   14305 cat >>confdefs.h <<_ACEOF
   14306 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
   14307 _ACEOF
   14308 
   14309 
   14310 fi
   14311 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/types.h>
   14312 #include <sys/user.h>
   14313 "
   14314 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
   14315 
   14316 cat >>confdefs.h <<_ACEOF
   14317 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
   14318 _ACEOF
   14319 
   14320 
   14321 fi
   14322 
   14323 
   14324 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
   14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
   14326 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
   14327 if ${gdb_cv_have_ptrace_getregs+:} false; then :
   14328   $as_echo_n "(cached) " >&6
   14329 else
   14330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14331 /* end confdefs.h.  */
   14332 #include <sys/ptrace.h>
   14333 int
   14334 main ()
   14335 {
   14336 PTRACE_GETREGS;
   14337   ;
   14338   return 0;
   14339 }
   14340 _ACEOF
   14341 if ac_fn_c_try_compile "$LINENO"; then :
   14342   gdb_cv_have_ptrace_getregs=yes
   14343 else
   14344   gdb_cv_have_ptrace_getregs=no
   14345 fi
   14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14347 fi
   14348 
   14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
   14350 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
   14351 if test $gdb_cv_have_ptrace_getregs = yes; then
   14352 
   14353 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
   14354 
   14355 fi
   14356 
   14357 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
   14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
   14359 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
   14360 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
   14361   $as_echo_n "(cached) " >&6
   14362 else
   14363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14364 /* end confdefs.h.  */
   14365 #include <sys/ptrace.h>
   14366 int
   14367 main ()
   14368 {
   14369 PTRACE_GETFPXREGS;
   14370   ;
   14371   return 0;
   14372 }
   14373 _ACEOF
   14374 if ac_fn_c_try_compile "$LINENO"; then :
   14375   gdb_cv_have_ptrace_getfpxregs=yes
   14376 else
   14377   gdb_cv_have_ptrace_getfpxregs=no
   14378 fi
   14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14380 fi
   14381 
   14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
   14383 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
   14384 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
   14385 
   14386 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
   14387 
   14388 fi
   14389 
   14390 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
   14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
   14392 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
   14393 if ${gdb_cv_have_pt_getdbregs+:} false; then :
   14394   $as_echo_n "(cached) " >&6
   14395 else
   14396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14397 /* end confdefs.h.  */
   14398 #include <sys/types.h>
   14399 #include <sys/ptrace.h>
   14400 int
   14401 main ()
   14402 {
   14403 PT_GETDBREGS;
   14404   ;
   14405   return 0;
   14406 }
   14407 _ACEOF
   14408 if ac_fn_c_try_compile "$LINENO"; then :
   14409   gdb_cv_have_pt_getdbregs=yes
   14410 else
   14411   gdb_cv_have_pt_getdbregs=no
   14412 fi
   14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14414 fi
   14415 
   14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
   14417 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
   14418 if test $gdb_cv_have_pt_getdbregs = yes; then
   14419 
   14420 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
   14421 
   14422 fi
   14423 
   14424 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
   14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
   14426 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
   14427 if ${gdb_cv_have_pt_getxmmregs+:} false; then :
   14428   $as_echo_n "(cached) " >&6
   14429 else
   14430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14431 /* end confdefs.h.  */
   14432 #include <sys/types.h>
   14433 #include <sys/ptrace.h>
   14434 int
   14435 main ()
   14436 {
   14437 PT_GETXMMREGS;
   14438   ;
   14439   return 0;
   14440 }
   14441 _ACEOF
   14442 if ac_fn_c_try_compile "$LINENO"; then :
   14443   gdb_cv_have_pt_getxmmregs=yes
   14444 else
   14445   gdb_cv_have_pt_getxmmregs=no
   14446 fi
   14447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14448 fi
   14449 
   14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
   14451 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
   14452 if test $gdb_cv_have_pt_getxmmregs = yes; then
   14453 
   14454 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
   14455 
   14456 fi
   14457 
   14458 # See if <sys/ptrace.h> supports LWP names on FreeBSD
   14459 # Older FreeBSD versions don't have the pl_tdname member of
   14460 # `struct ptrace_lwpinfo'.
   14461 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
   14462 "
   14463 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
   14464 
   14465 cat >>confdefs.h <<_ACEOF
   14466 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
   14467 _ACEOF
   14468 
   14469 
   14470 fi
   14471 
   14472 
   14473 # See if <sys/ptrace.h> supports syscall fields on FreeBSD.  The
   14474 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
   14475 # FreeBSD 10.3.
   14476 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
   14477 "
   14478 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
   14479 
   14480 cat >>confdefs.h <<_ACEOF
   14481 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
   14482 _ACEOF
   14483 
   14484 
   14485 fi
   14486 
   14487 
   14488 if test "$ac_cv_header_sys_procfs_h" = yes; then
   14489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
   14490 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
   14491  if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
   14492   $as_echo_n "(cached) " >&6
   14493 else
   14494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14495 /* end confdefs.h.  */
   14496 
   14497 #define _SYSCALL32
   14498 /* Needed for new procfs interface on sparc-solaris.  */
   14499 #define _STRUCTURED_PROC 1
   14500 #include <sys/procfs.h>
   14501 int
   14502 main ()
   14503 {
   14504 gregset_t avar
   14505   ;
   14506   return 0;
   14507 }
   14508 _ACEOF
   14509 if ac_fn_c_try_compile "$LINENO"; then :
   14510   bfd_cv_have_sys_procfs_type_gregset_t=yes
   14511 else
   14512   bfd_cv_have_sys_procfs_type_gregset_t=no
   14513 
   14514 fi
   14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14516 fi
   14517 
   14518  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
   14519 
   14520 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
   14521 
   14522  fi
   14523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
   14524 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
   14525 
   14526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
   14527 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
   14528  if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
   14529   $as_echo_n "(cached) " >&6
   14530 else
   14531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14532 /* end confdefs.h.  */
   14533 
   14534 #define _SYSCALL32
   14535 /* Needed for new procfs interface on sparc-solaris.  */
   14536 #define _STRUCTURED_PROC 1
   14537 #include <sys/procfs.h>
   14538 int
   14539 main ()
   14540 {
   14541 fpregset_t avar
   14542   ;
   14543   return 0;
   14544 }
   14545 _ACEOF
   14546 if ac_fn_c_try_compile "$LINENO"; then :
   14547   bfd_cv_have_sys_procfs_type_fpregset_t=yes
   14548 else
   14549   bfd_cv_have_sys_procfs_type_fpregset_t=no
   14550 
   14551 fi
   14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14553 fi
   14554 
   14555  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
   14556 
   14557 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
   14558 
   14559  fi
   14560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
   14561 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
   14562 
   14563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
   14564 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
   14565  if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
   14566   $as_echo_n "(cached) " >&6
   14567 else
   14568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14569 /* end confdefs.h.  */
   14570 
   14571 #define _SYSCALL32
   14572 /* Needed for new procfs interface on sparc-solaris.  */
   14573 #define _STRUCTURED_PROC 1
   14574 #include <sys/procfs.h>
   14575 int
   14576 main ()
   14577 {
   14578 prgregset_t avar
   14579   ;
   14580   return 0;
   14581 }
   14582 _ACEOF
   14583 if ac_fn_c_try_compile "$LINENO"; then :
   14584   bfd_cv_have_sys_procfs_type_prgregset_t=yes
   14585 else
   14586   bfd_cv_have_sys_procfs_type_prgregset_t=no
   14587 
   14588 fi
   14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14590 fi
   14591 
   14592  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
   14593 
   14594 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
   14595 
   14596  fi
   14597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
   14598 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
   14599 
   14600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
   14601 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
   14602  if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
   14603   $as_echo_n "(cached) " >&6
   14604 else
   14605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14606 /* end confdefs.h.  */
   14607 
   14608 #define _SYSCALL32
   14609 /* Needed for new procfs interface on sparc-solaris.  */
   14610 #define _STRUCTURED_PROC 1
   14611 #include <sys/procfs.h>
   14612 int
   14613 main ()
   14614 {
   14615 prfpregset_t avar
   14616   ;
   14617   return 0;
   14618 }
   14619 _ACEOF
   14620 if ac_fn_c_try_compile "$LINENO"; then :
   14621   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
   14622 else
   14623   bfd_cv_have_sys_procfs_type_prfpregset_t=no
   14624 
   14625 fi
   14626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14627 fi
   14628 
   14629  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
   14630 
   14631 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
   14632 
   14633  fi
   14634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
   14635 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
   14636 
   14637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
   14638 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
   14639  if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
   14640   $as_echo_n "(cached) " >&6
   14641 else
   14642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14643 /* end confdefs.h.  */
   14644 
   14645 #define _SYSCALL32
   14646 /* Needed for new procfs interface on sparc-solaris.  */
   14647 #define _STRUCTURED_PROC 1
   14648 #include <sys/procfs.h>
   14649 int
   14650 main ()
   14651 {
   14652 prgregset32_t avar
   14653   ;
   14654   return 0;
   14655 }
   14656 _ACEOF
   14657 if ac_fn_c_try_compile "$LINENO"; then :
   14658   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
   14659 else
   14660   bfd_cv_have_sys_procfs_type_prgregset32_t=no
   14661 
   14662 fi
   14663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14664 fi
   14665 
   14666  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
   14667 
   14668 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
   14669 
   14670  fi
   14671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
   14672 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
   14673 
   14674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
   14675 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
   14676  if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
   14677   $as_echo_n "(cached) " >&6
   14678 else
   14679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14680 /* end confdefs.h.  */
   14681 
   14682 #define _SYSCALL32
   14683 /* Needed for new procfs interface on sparc-solaris.  */
   14684 #define _STRUCTURED_PROC 1
   14685 #include <sys/procfs.h>
   14686 int
   14687 main ()
   14688 {
   14689 lwpid_t avar
   14690   ;
   14691   return 0;
   14692 }
   14693 _ACEOF
   14694 if ac_fn_c_try_compile "$LINENO"; then :
   14695   bfd_cv_have_sys_procfs_type_lwpid_t=yes
   14696 else
   14697   bfd_cv_have_sys_procfs_type_lwpid_t=no
   14698 
   14699 fi
   14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14701 fi
   14702 
   14703  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
   14704 
   14705 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
   14706 
   14707  fi
   14708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
   14709 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
   14710 
   14711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
   14712 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
   14713  if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
   14714   $as_echo_n "(cached) " >&6
   14715 else
   14716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14717 /* end confdefs.h.  */
   14718 
   14719 #define _SYSCALL32
   14720 /* Needed for new procfs interface on sparc-solaris.  */
   14721 #define _STRUCTURED_PROC 1
   14722 #include <sys/procfs.h>
   14723 int
   14724 main ()
   14725 {
   14726 psaddr_t avar
   14727   ;
   14728   return 0;
   14729 }
   14730 _ACEOF
   14731 if ac_fn_c_try_compile "$LINENO"; then :
   14732   bfd_cv_have_sys_procfs_type_psaddr_t=yes
   14733 else
   14734   bfd_cv_have_sys_procfs_type_psaddr_t=no
   14735 
   14736 fi
   14737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14738 fi
   14739 
   14740  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
   14741 
   14742 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
   14743 
   14744  fi
   14745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
   14746 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
   14747 
   14748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
   14749 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
   14750  if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
   14751   $as_echo_n "(cached) " >&6
   14752 else
   14753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14754 /* end confdefs.h.  */
   14755 
   14756 #define _SYSCALL32
   14757 /* Needed for new procfs interface on sparc-solaris.  */
   14758 #define _STRUCTURED_PROC 1
   14759 #include <sys/procfs.h>
   14760 int
   14761 main ()
   14762 {
   14763 elf_fpregset_t avar
   14764   ;
   14765   return 0;
   14766 }
   14767 _ACEOF
   14768 if ac_fn_c_try_compile "$LINENO"; then :
   14769   bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
   14770 else
   14771   bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
   14772 
   14773 fi
   14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14775 fi
   14776 
   14777  if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
   14778 
   14779 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
   14780 
   14781  fi
   14782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
   14783 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
   14784 
   14785 fi
   14786 
   14787 # Check if the compiler supports the `long long' type.
   14788 
   14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
   14790 $as_echo_n "checking for long long support in compiler... " >&6; }
   14791 if ${gdb_cv_c_long_long+:} false; then :
   14792   $as_echo_n "(cached) " >&6
   14793 else
   14794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14795 /* end confdefs.h.  */
   14796 extern long long foo;
   14797 int
   14798 main ()
   14799 {
   14800 switch (foo & 2) { case 0: return 1; }
   14801   ;
   14802   return 0;
   14803 }
   14804 _ACEOF
   14805 if ac_fn_c_try_compile "$LINENO"; then :
   14806   gdb_cv_c_long_long=yes
   14807 else
   14808   gdb_cv_c_long_long=no
   14809 fi
   14810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14811 fi
   14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
   14813 $as_echo "$gdb_cv_c_long_long" >&6; }
   14814 if test $gdb_cv_c_long_long != yes; then
   14815   # libdecnumber requires long long.
   14816   as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
   14817 fi
   14818 
   14819 # Check if the compiler and runtime support printing long longs.
   14820 
   14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
   14822 $as_echo_n "checking for long long support in printf... " >&6; }
   14823 if ${gdb_cv_printf_has_long_long+:} false; then :
   14824   $as_echo_n "(cached) " >&6
   14825 else
   14826   if test "$cross_compiling" = yes; then :
   14827   gdb_cv_printf_has_long_long=no
   14828 else
   14829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14830 /* end confdefs.h.  */
   14831 $ac_includes_default
   14832 int
   14833 main ()
   14834 {
   14835 char buf[32];
   14836   long long l = 0;
   14837   l = (l << 16) + 0x0123;
   14838   l = (l << 16) + 0x4567;
   14839   l = (l << 16) + 0x89ab;
   14840   l = (l << 16) + 0xcdef;
   14841   sprintf (buf, "0x%016llx", l);
   14842   return (strcmp ("0x0123456789abcdef", buf));
   14843   ;
   14844   return 0;
   14845 }
   14846 _ACEOF
   14847 if ac_fn_c_try_run "$LINENO"; then :
   14848   gdb_cv_printf_has_long_long=yes
   14849 else
   14850   gdb_cv_printf_has_long_long=no
   14851 fi
   14852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14853   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14854 fi
   14855 
   14856 fi
   14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
   14858 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
   14859 if test $gdb_cv_printf_has_long_long = yes; then
   14860 
   14861 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
   14862 
   14863 fi
   14864 
   14865 # Check if the compiler and runtime support printing decfloats.
   14866 
   14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
   14868 $as_echo_n "checking for decfloat support in printf... " >&6; }
   14869 if ${gdb_cv_printf_has_decfloat+:} false; then :
   14870   $as_echo_n "(cached) " >&6
   14871 else
   14872   if test "$cross_compiling" = yes; then :
   14873   gdb_cv_printf_has_decfloat=no
   14874 else
   14875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14876 /* end confdefs.h.  */
   14877 $ac_includes_default
   14878 int
   14879 main ()
   14880 {
   14881 char buf[64];
   14882   _Decimal32 d32 = 1.2345df;
   14883   _Decimal64 d64 = 1.2345dd;
   14884   _Decimal128 d128 = 1.2345dl;
   14885   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
   14886   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
   14887   ;
   14888   return 0;
   14889 }
   14890 _ACEOF
   14891 if ac_fn_c_try_run "$LINENO"; then :
   14892   gdb_cv_printf_has_decfloat=yes
   14893 else
   14894   gdb_cv_printf_has_decfloat=no
   14895 fi
   14896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14897   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14898 fi
   14899 
   14900 fi
   14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
   14902 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
   14903 if test $gdb_cv_printf_has_decfloat = yes; then
   14904 
   14905 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
   14906 
   14907 fi
   14908 
   14909 # Check if the compiler supports the `long double' type.  We can't use
   14910 # AC_C_LONG_DOUBLE because that one does additional checks on the
   14911 # constants defined in <float.h> that fail on some systems,
   14912 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
   14913 
   14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
   14915 $as_echo_n "checking for long double support in compiler... " >&6; }
   14916 if ${gdb_cv_c_long_double+:} false; then :
   14917   $as_echo_n "(cached) " >&6
   14918 else
   14919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14920 /* end confdefs.h.  */
   14921 long double foo;
   14922 _ACEOF
   14923 if ac_fn_c_try_compile "$LINENO"; then :
   14924   gdb_cv_c_long_double=yes
   14925 else
   14926   gdb_cv_c_long_double=no
   14927 fi
   14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14929 fi
   14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
   14931 $as_echo "$gdb_cv_c_long_double" >&6; }
   14932 if test $gdb_cv_c_long_double = yes; then
   14933 
   14934 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
   14935 
   14936 fi
   14937 
   14938 # Check if the compiler and runtime support printing long doubles.
   14939 
   14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
   14941 $as_echo_n "checking for long double support in printf... " >&6; }
   14942 if ${gdb_cv_printf_has_long_double+:} false; then :
   14943   $as_echo_n "(cached) " >&6
   14944 else
   14945   if test "$cross_compiling" = yes; then :
   14946   gdb_cv_printf_has_long_double=no
   14947 else
   14948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14949 /* end confdefs.h.  */
   14950 $ac_includes_default
   14951 int
   14952 main ()
   14953 {
   14954 char buf[16];
   14955   long double f = 3.141592653;
   14956   sprintf (buf, "%Lg", f);
   14957   return (strncmp ("3.14159", buf, 7));
   14958   ;
   14959   return 0;
   14960 }
   14961 _ACEOF
   14962 if ac_fn_c_try_run "$LINENO"; then :
   14963   gdb_cv_printf_has_long_double=yes
   14964 else
   14965   gdb_cv_printf_has_long_double=no
   14966 fi
   14967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14968   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14969 fi
   14970 
   14971 fi
   14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
   14973 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
   14974 if test $gdb_cv_printf_has_long_double = yes; then
   14975 
   14976 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
   14977 
   14978 fi
   14979 
   14980 # Check if the compiler and runtime support scanning long doubles.
   14981 
   14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
   14983 $as_echo_n "checking for long double support in scanf... " >&6; }
   14984 if ${gdb_cv_scanf_has_long_double+:} false; then :
   14985   $as_echo_n "(cached) " >&6
   14986 else
   14987   if test "$cross_compiling" = yes; then :
   14988   gdb_cv_scanf_has_long_double=no
   14989 else
   14990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14991 /* end confdefs.h.  */
   14992 #include <stdio.h>
   14993 int
   14994 main ()
   14995 {
   14996 char *buf = "3.141592653";
   14997   long double f = 0;
   14998   sscanf (buf, "%Lg", &f);
   14999   return !(f > 3.14159 && f < 3.14160);
   15000   ;
   15001   return 0;
   15002 }
   15003 _ACEOF
   15004 if ac_fn_c_try_run "$LINENO"; then :
   15005   gdb_cv_scanf_has_long_double=yes
   15006 else
   15007   gdb_cv_scanf_has_long_double=no
   15008 fi
   15009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15010   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15011 fi
   15012 
   15013 fi
   15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
   15015 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
   15016 if test $gdb_cv_scanf_has_long_double = yes; then
   15017 
   15018 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
   15019 
   15020 fi
   15021 
   15022 case ${host_os} in
   15023 aix*)
   15024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
   15025 $as_echo_n "checking for -bbigtoc option... " >&6; }
   15026 if ${gdb_cv_bigtoc+:} false; then :
   15027   $as_echo_n "(cached) " >&6
   15028 else
   15029 
   15030     SAVE_LDFLAGS=$LDFLAGS
   15031 
   15032     case $GCC in
   15033     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
   15034     *) gdb_cv_bigtoc=-bbigtoc ;;
   15035     esac
   15036 
   15037     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
   15038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15039 /* end confdefs.h.  */
   15040 
   15041 int
   15042 main ()
   15043 {
   15044 int i;
   15045   ;
   15046   return 0;
   15047 }
   15048 _ACEOF
   15049 if ac_fn_c_try_link "$LINENO"; then :
   15050 
   15051 else
   15052   gdb_cv_bigtoc=
   15053 fi
   15054 rm -f core conftest.err conftest.$ac_objext \
   15055     conftest$ac_exeext conftest.$ac_ext
   15056     LDFLAGS="${SAVE_LDFLAGS}"
   15057 
   15058 fi
   15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
   15060 $as_echo "$gdb_cv_bigtoc" >&6; }
   15061   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
   15062   ;;
   15063 esac
   15064 
   15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
   15066 $as_echo_n "checking for the dynamic export flag... " >&6; }
   15067 dynamic_list=false
   15068 if test "${gdb_native}" = yes; then
   15069    # The dynamically loaded libthread_db needs access to symbols in the gdb
   15070    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
   15071    # may not be supported there.
   15072    old_LDFLAGS="$LDFLAGS"
   15073    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
   15074    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
   15075    LDFLAGS="$LDFLAGS $RDYNAMIC"
   15076    if test "${have_libpython}" = no; then
   15077      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15078 /* end confdefs.h.  */
   15079 
   15080 int
   15081 main ()
   15082 {
   15083 
   15084   ;
   15085   return 0;
   15086 }
   15087 _ACEOF
   15088 if ac_fn_c_try_link "$LINENO"; then :
   15089   dynamic_list=true
   15090 fi
   15091 rm -f core conftest.err conftest.$ac_objext \
   15092     conftest$ac_exeext conftest.$ac_ext
   15093    else
   15094      # Workaround http://bugs.python.org/issue4434 where static
   15095      # libpythonX.Y.a would get its symbols required for
   15096      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
   15097      # Problem does not happen for the recommended libpythonX.Y.so linkage.
   15098 
   15099      # Note the workaround for Python
   15100      # http://bugs.python.org/issue10112 earlier has removed
   15101      # -export-dynamic from PYTHON_LIBS.  That's exactly what we want
   15102      # here too, as otherwise it'd make this -Wl,--dynamic-list test
   15103      # always pass.
   15104      old_CFLAGS="$CFLAGS"
   15105      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
   15106      old_LIBS="$LIBS"
   15107      LIBS="$LIBS $PYTHON_LIBS"
   15108      old_CPPFLAGS="$CPPFLAGS"
   15109      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
   15110      if test "$cross_compiling" = yes; then :
   15111   true
   15112 else
   15113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15114 /* end confdefs.h.  */
   15115 #include "Python.h"
   15116 int
   15117 main ()
   15118 {
   15119 int err;
   15120           Py_Initialize ();
   15121           err = PyRun_SimpleString ("import itertools\n");
   15122           Py_Finalize ();
   15123           return err == 0 ? 0 : 1;
   15124   ;
   15125   return 0;
   15126 }
   15127 _ACEOF
   15128 if ac_fn_c_try_run "$LINENO"; then :
   15129   dynamic_list=true
   15130 fi
   15131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15132   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15133 fi
   15134 
   15135      LIBS="$old_LIBS"
   15136      CFLAGS="$old_CFLAGS"
   15137      CPPFLAGS="$old_CPPFLAGS"
   15138    fi
   15139    LDFLAGS="$old_LDFLAGS"
   15140 fi
   15141 if $dynamic_list; then
   15142   found="-Wl,--dynamic-list"
   15143   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
   15144 else
   15145   found="-rdynamic"
   15146   RDYNAMIC="-rdynamic"
   15147 fi
   15148 
   15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
   15150 $as_echo "$found" >&6; }
   15151 
   15152 
   15153 if test ${build} = ${host} -a ${host} = ${target} ; then
   15154    case ${host_os} in
   15155    aix*)
   15156       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
   15157 $as_echo_n "checking for AiX thread debugging library... " >&6; }
   15158       if ${gdb_cv_have_aix_thread_debug+:} false; then :
   15159   $as_echo_n "(cached) " >&6
   15160 else
   15161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15162 /* end confdefs.h.  */
   15163 #include <sys/pthdebug.h>
   15164 int
   15165 main ()
   15166 {
   15167 #ifndef PTHDB_VERSION_3
   15168                                     #error
   15169                                     #endif
   15170   ;
   15171   return 0;
   15172 }
   15173 _ACEOF
   15174 if ac_fn_c_try_compile "$LINENO"; then :
   15175   gdb_cv_have_aix_thread_debug=yes
   15176 else
   15177   gdb_cv_have_aix_thread_debug=no
   15178 fi
   15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15180 fi
   15181 
   15182       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
   15183 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
   15184       if test $gdb_cv_have_aix_thread_debug = yes; then
   15185          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
   15186          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
   15187          LIBS="$LIBS -lpthdebug"
   15188 
   15189          # Older versions of AIX do not provide the declaration for
   15190          # the getthrds function (it appears that it was introduced
   15191          # with AIX 6.x).
   15192          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
   15193 "
   15194 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
   15195   ac_have_decl=1
   15196 else
   15197   ac_have_decl=0
   15198 fi
   15199 
   15200 cat >>confdefs.h <<_ACEOF
   15201 #define HAVE_DECL_GETTHRDS $ac_have_decl
   15202 _ACEOF
   15203 
   15204       fi
   15205       ;;
   15206    esac
   15207 
   15208 fi
   15209 
   15210 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
   15211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
   15212 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
   15213 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
   15214   $as_echo_n "(cached) " >&6
   15215 else
   15216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15217 /* end confdefs.h.  */
   15218 #include <thread_db.h>
   15219 int
   15220 main ()
   15221 {
   15222 int i = TD_NOTALLOC;
   15223   ;
   15224   return 0;
   15225 }
   15226 _ACEOF
   15227 if ac_fn_c_try_compile "$LINENO"; then :
   15228   gdb_cv_thread_db_h_has_td_notalloc=yes
   15229 else
   15230   gdb_cv_thread_db_h_has_td_notalloc=no
   15231 
   15232 fi
   15233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15234 
   15235 fi
   15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
   15237 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
   15238    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
   15239 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
   15240 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
   15241   $as_echo_n "(cached) " >&6
   15242 else
   15243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15244 /* end confdefs.h.  */
   15245 #include <thread_db.h>
   15246 int
   15247 main ()
   15248 {
   15249 int i = TD_VERSION;
   15250   ;
   15251   return 0;
   15252 }
   15253 _ACEOF
   15254 if ac_fn_c_try_compile "$LINENO"; then :
   15255   gdb_cv_thread_db_h_has_td_version=yes
   15256 else
   15257   gdb_cv_thread_db_h_has_td_version=no
   15258 
   15259 fi
   15260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15261 
   15262 fi
   15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
   15264 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
   15265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
   15266 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
   15267 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
   15268   $as_echo_n "(cached) " >&6
   15269 else
   15270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15271 /* end confdefs.h.  */
   15272 #include <thread_db.h>
   15273 int
   15274 main ()
   15275 {
   15276 int i = TD_NOTLS;
   15277   ;
   15278   return 0;
   15279 }
   15280 _ACEOF
   15281 if ac_fn_c_try_compile "$LINENO"; then :
   15282   gdb_cv_thread_db_h_has_td_notls=yes
   15283 else
   15284   gdb_cv_thread_db_h_has_td_notls=no
   15285 
   15286 fi
   15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15288 
   15289 fi
   15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
   15291 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
   15292 fi
   15293 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
   15294 
   15295 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
   15296 
   15297 fi
   15298 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
   15299 
   15300 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
   15301 
   15302 fi
   15303 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
   15304 
   15305 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
   15306 
   15307 fi
   15308 
   15309 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
   15310 "
   15311 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
   15312   ac_have_decl=1
   15313 else
   15314   ac_have_decl=0
   15315 fi
   15316 
   15317 cat >>confdefs.h <<_ACEOF
   15318 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
   15319 _ACEOF
   15320 
   15321 
   15322 if test "$cross_compiling" = yes; then :
   15323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15324 /* end confdefs.h.  */
   15325 #include <sys/personality.h>
   15326 int
   15327 main ()
   15328 {
   15329 
   15330 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
   15331 #       define ADDR_NO_RANDOMIZE 0x0040000
   15332 #      endif
   15333        /* Test the flag could be set and stays set.  */
   15334        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
   15335        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
   15336 	   return 1
   15337   ;
   15338   return 0;
   15339 }
   15340 _ACEOF
   15341 if ac_fn_c_try_link "$LINENO"; then :
   15342   have_personality=true
   15343 else
   15344   have_personality=false
   15345 fi
   15346 rm -f core conftest.err conftest.$ac_objext \
   15347     conftest$ac_exeext conftest.$ac_ext
   15348 else
   15349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15350 /* end confdefs.h.  */
   15351 #include <sys/personality.h>
   15352 int
   15353 main ()
   15354 {
   15355 
   15356 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
   15357 #       define ADDR_NO_RANDOMIZE 0x0040000
   15358 #      endif
   15359        /* Test the flag could be set and stays set.  */
   15360        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
   15361        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
   15362 	   return 1
   15363   ;
   15364   return 0;
   15365 }
   15366 _ACEOF
   15367 if ac_fn_c_try_run "$LINENO"; then :
   15368   have_personality=true
   15369 else
   15370   have_personality=false
   15371 fi
   15372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15373   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15374 fi
   15375 
   15376 if $have_personality
   15377 then
   15378 
   15379 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
   15380 
   15381 fi
   15382 
   15383 case $host_os in
   15384   go32* | *djgpp*)
   15385     gdbinit=gdb.ini
   15386     ;;
   15387   *)
   15388     gdbinit=.gdbinit
   15389     ;;
   15390 esac
   15391 
   15392 cat >>confdefs.h <<_ACEOF
   15393 #define GDBINIT "$gdbinit"
   15394 _ACEOF
   15395 
   15396 
   15397 
   15398 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
   15399 # except that the argument to --with-sysroot is optional.
   15400 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
   15401 if test "x$with_sysroot" = xyes; then
   15402   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
   15403 fi
   15404 
   15405 # Check whether --with-sysroot was given.
   15406 if test "${with_sysroot+set}" = set; then :
   15407   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
   15408 else
   15409   TARGET_SYSTEM_ROOT=
   15410 fi
   15411 
   15412 
   15413   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   15414   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   15415   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
   15416   ac_define_dir=`eval echo $ac_define_dir`
   15417 
   15418 cat >>confdefs.h <<_ACEOF
   15419 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
   15420 _ACEOF
   15421 
   15422 
   15423 
   15424 
   15425   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   15426      if test "x$prefix" = xNONE; then
   15427      	test_prefix=/usr/local
   15428      else
   15429 	test_prefix=$prefix
   15430      fi
   15431   else
   15432      test_prefix=$exec_prefix
   15433   fi
   15434   value=0
   15435   case ${ac_define_dir} in
   15436      "${test_prefix}"|"${test_prefix}/"*|\
   15437 	'${exec_prefix}'|'${exec_prefix}/'*)
   15438      value=1
   15439      ;;
   15440   esac
   15441 
   15442 cat >>confdefs.h <<_ACEOF
   15443 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
   15444 _ACEOF
   15445 
   15446 
   15447 
   15448 
   15449 
   15450 # Check whether --with-system-gdbinit was given.
   15451 if test "${with_system_gdbinit+set}" = set; then :
   15452   withval=$with_system_gdbinit;
   15453     SYSTEM_GDBINIT=$withval
   15454 else
   15455   SYSTEM_GDBINIT=
   15456 fi
   15457 
   15458 
   15459   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   15460   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   15461   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
   15462   ac_define_dir=`eval echo $ac_define_dir`
   15463 
   15464 cat >>confdefs.h <<_ACEOF
   15465 #define SYSTEM_GDBINIT "$ac_define_dir"
   15466 _ACEOF
   15467 
   15468 
   15469 
   15470 
   15471   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   15472      if test "x$prefix" = xNONE; then
   15473      	test_prefix=/usr/local
   15474      else
   15475 	test_prefix=$prefix
   15476      fi
   15477   else
   15478      test_prefix=$exec_prefix
   15479   fi
   15480   value=0
   15481   case ${ac_define_dir} in
   15482      "${test_prefix}"|"${test_prefix}/"*|\
   15483 	'${exec_prefix}'|'${exec_prefix}/'*)
   15484      value=1
   15485      ;;
   15486   esac
   15487 
   15488 cat >>confdefs.h <<_ACEOF
   15489 #define SYSTEM_GDBINIT_RELOCATABLE $value
   15490 _ACEOF
   15491 
   15492 
   15493 
   15494 
   15495 
   15496 # Check whether --enable-werror was given.
   15497 if test "${enable_werror+set}" = set; then :
   15498   enableval=$enable_werror; case "${enableval}" in
   15499      yes | y) ERROR_ON_WARNING="yes" ;;
   15500      no | n)  ERROR_ON_WARNING="no" ;;
   15501      *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
   15502    esac
   15503 fi
   15504 
   15505 
   15506 # Enable -Werror by default when using gcc.  Turn it off for releases.
   15507 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
   15508     ERROR_ON_WARNING=yes
   15509 fi
   15510 
   15511 WERROR_CFLAGS=""
   15512 if test "${ERROR_ON_WARNING}" = yes ; then
   15513     WERROR_CFLAGS="-Werror"
   15514 fi
   15515 
   15516 # The options we'll try to enable.
   15517 build_warnings="-Wall -Wpointer-arith \
   15518 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
   15519 -Wno-switch -Wno-char-subscripts \
   15520 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
   15521 -Wno-sign-compare -Wno-error=maybe-uninitialized \
   15522 -Wno-mismatched-tags \
   15523 -Wno-error=deprecated-register \
   15524 -Wsuggest-override \
   15525 -Wimplicit-fallthrough=3 \
   15526 -Wduplicated-cond \
   15527 -Wshadow=local"
   15528 
   15529 case "${host}" in
   15530   *-*-mingw32*)
   15531     # Enable -Wno-format by default when using gcc on mingw since many
   15532     # GCC versions complain about %I64.
   15533     build_warnings="$build_warnings -Wno-format" ;;
   15534   *-*-solaris*)
   15535     # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
   15536     # doesn't understand.
   15537     build_warnings="$build_warnings -Wno-unknown-pragmas"
   15538     # Solaris 11 <unistd.h> marks vfork deprecated.
   15539     build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
   15540   *)
   15541     # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
   15542     # but there's a special case for this below.
   15543     build_warnings="$build_warnings -Wformat-nonliteral" ;;
   15544 esac
   15545 
   15546 # Check whether --enable-build-warnings was given.
   15547 if test "${enable_build_warnings+set}" = set; then :
   15548   enableval=$enable_build_warnings; case "${enableval}" in
   15549   yes)	;;
   15550   no)	build_warnings="-w";;
   15551   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   15552         build_warnings="${build_warnings} ${t}";;
   15553   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   15554         build_warnings="${t} ${build_warnings}";;
   15555   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   15556 esac
   15557 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   15558   echo "Setting compiler warning flags = $build_warnings" 6>&1
   15559 fi
   15560 fi
   15561 # Check whether --enable-gdb-build-warnings was given.
   15562 if test "${enable_gdb_build_warnings+set}" = set; then :
   15563   enableval=$enable_gdb_build_warnings; case "${enableval}" in
   15564   yes)	;;
   15565   no)	build_warnings="-w";;
   15566   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   15567         build_warnings="${build_warnings} ${t}";;
   15568   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   15569         build_warnings="${t} ${build_warnings}";;
   15570   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   15571 esac
   15572 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   15573   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
   15574 fi
   15575 fi
   15576 
   15577 # The set of warnings supported by a C++ compiler is not the same as
   15578 # of the C compiler.
   15579 ac_ext=cpp
   15580 ac_cpp='$CXXCPP $CPPFLAGS'
   15581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   15584 
   15585 
   15586 WARN_CFLAGS=""
   15587 if test "x${build_warnings}" != x -a "x$GCC" = xyes
   15588 then
   15589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
   15590 $as_echo_n "checking compiler warning flags... " >&6; }
   15591     # Separate out the -Werror flag as some files just cannot be
   15592     # compiled with it enabled.
   15593     for w in ${build_warnings}; do
   15594 	# GCC does not complain about -Wno-unknown-warning.  Invert
   15595 	# and test -Wunknown-warning instead.
   15596 	case $w in
   15597 	-Wno-*)
   15598 		wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
   15599         -Wformat-nonliteral)
   15600 		# gcc requires -Wformat before -Wformat-nonliteral
   15601 		# will work, so stick them together.
   15602 		w="-Wformat $w"
   15603 		wtest="$w"
   15604 		;;
   15605 	*)
   15606 		wtest=$w ;;
   15607 	esac
   15608 
   15609 	case $w in
   15610 	-Werr*) WERROR_CFLAGS=-Werror ;;
   15611 	*)
   15612 	    # Check whether GCC accepts it.
   15613 	    saved_CFLAGS="$CFLAGS"
   15614 	    CFLAGS="$CFLAGS -Werror $wtest"
   15615 	    saved_CXXFLAGS="$CXXFLAGS"
   15616 	    CXXFLAGS="$CXXFLAGS -Werror $wtest"
   15617 	    if test "x$w" = "x-Wunused-variable"; then
   15618 	      # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
   15619 	      # fixed in GCC 4.9.  This test is derived from the gdb
   15620 	      # source code that triggered this bug in GCC.
   15621 	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15622 /* end confdefs.h.  */
   15623 struct scoped_restore_base {};
   15624                  struct scoped_restore_tmpl : public scoped_restore_base {
   15625 		   ~scoped_restore_tmpl() {}
   15626 		 };
   15627 int
   15628 main ()
   15629 {
   15630 const scoped_restore_base &b = scoped_restore_tmpl();
   15631   ;
   15632   return 0;
   15633 }
   15634 _ACEOF
   15635 if ac_fn_cxx_try_compile "$LINENO"; then :
   15636   WARN_CFLAGS="${WARN_CFLAGS} $w"
   15637 fi
   15638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15639 	    else
   15640 	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15641 /* end confdefs.h.  */
   15642 
   15643 int
   15644 main ()
   15645 {
   15646 
   15647   ;
   15648   return 0;
   15649 }
   15650 _ACEOF
   15651 if ac_fn_cxx_try_compile "$LINENO"; then :
   15652   WARN_CFLAGS="${WARN_CFLAGS} $w"
   15653 fi
   15654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15655 	    fi
   15656 	    CFLAGS="$saved_CFLAGS"
   15657 	    CXXFLAGS="$saved_CXXFLAGS"
   15658 	esac
   15659     done
   15660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
   15661 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
   15662 fi
   15663 
   15664 
   15665 
   15666 ac_ext=c
   15667 ac_cpp='$CPP $CPPFLAGS'
   15668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15671 
   15672 
   15673 
   15674 # Check whether --enable-ubsan was given.
   15675 if test "${enable_ubsan+set}" = set; then :
   15676   enableval=$enable_ubsan;
   15677 else
   15678   enable_ubsan=no
   15679 fi
   15680 
   15681 if test "x$enable_ubsan" = xauto; then
   15682   if $development; then
   15683     enable_ubsan=yes
   15684   fi
   15685 fi
   15686 ac_ext=cpp
   15687 ac_cpp='$CXXCPP $CPPFLAGS'
   15688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   15691 
   15692 if test "x$enable_ubsan" = xyes; then
   15693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
   15694 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
   15695   saved_CXXFLAGS="$CXXFLAGS"
   15696   CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
   15697         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15698 /* end confdefs.h.  */
   15699 
   15700 int
   15701 main ()
   15702 {
   15703 
   15704   ;
   15705   return 0;
   15706 }
   15707 _ACEOF
   15708 if ac_fn_cxx_try_link "$LINENO"; then :
   15709   enable_ubsan=yes
   15710 else
   15711   enable_ubsan=no
   15712 fi
   15713 rm -f core conftest.err conftest.$ac_objext \
   15714     conftest$ac_exeext conftest.$ac_ext
   15715   CXXFLAGS="$saved_CXXFLAGS"
   15716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
   15717 $as_echo "$enable_ubsan" >&6; }
   15718   if test "x$enable_ubsan" = xyes; then
   15719     WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
   15720     CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
   15721   fi
   15722 fi
   15723 ac_ext=c
   15724 ac_cpp='$CPP $CPPFLAGS'
   15725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15728 
   15729 
   15730 
   15731 # In the Cygwin environment, we need some additional flags.
   15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
   15733 $as_echo_n "checking for cygwin... " >&6; }
   15734 if ${gdb_cv_os_cygwin+:} false; then :
   15735   $as_echo_n "(cached) " >&6
   15736 else
   15737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15738 /* end confdefs.h.  */
   15739 
   15740 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
   15741 lose
   15742 #endif
   15743 _ACEOF
   15744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15745   $EGREP "^lose$" >/dev/null 2>&1; then :
   15746   gdb_cv_os_cygwin=yes
   15747 else
   15748   gdb_cv_os_cygwin=no
   15749 fi
   15750 rm -f conftest*
   15751 
   15752 fi
   15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
   15754 $as_echo "$gdb_cv_os_cygwin" >&6; }
   15755 
   15756 
   15757 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
   15758 case ${host} in
   15759   *go32* ) SER_HARDWIRE=ser-go32.o ;;
   15760   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
   15761   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
   15762   *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
   15763 esac
   15764 
   15765 
   15766 # libreadline needs libuser32.a in a cygwin environment
   15767 WIN32LIBS=
   15768 if test x$gdb_cv_os_cygwin = xyes; then
   15769     WIN32LIBS="-luser32"
   15770     case "${target}" in
   15771 	*cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
   15772 	;;
   15773     esac
   15774 fi
   15775 
   15776 # The ser-tcp.c module requires sockets.
   15777 case ${host} in
   15778   *mingw32*)
   15779 
   15780 $as_echo "#define USE_WIN32API 1" >>confdefs.h
   15781 
   15782     WIN32LIBS="$WIN32LIBS -lws2_32"
   15783     ;;
   15784 esac
   15785 
   15786 
   15787 # Add ELF support to GDB, but only if BFD includes ELF support.
   15788 
   15789   OLD_CFLAGS=$CFLAGS
   15790   OLD_LDFLAGS=$LDFLAGS
   15791   OLD_LIBS=$LIBS
   15792   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
   15793   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
   15794   # always want our bfd.
   15795   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
   15796   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
   15797   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
   15798   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
   15799   LIBS="-lbfd -liberty -lz $intl $LIBS"
   15800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
   15801 $as_echo_n "checking for ELF support in BFD... " >&6; }
   15802 if ${gdb_cv_var_elf+:} false; then :
   15803   $as_echo_n "(cached) " >&6
   15804 else
   15805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15806 /* end confdefs.h.  */
   15807 #include <stdlib.h>
   15808   #include "bfd.h"
   15809   #include "elf-bfd.h"
   15810 
   15811 int
   15812 main ()
   15813 {
   15814 return bfd_get_elf_phdr_upper_bound (NULL);
   15815   ;
   15816   return 0;
   15817 }
   15818 _ACEOF
   15819 if ac_fn_c_try_link "$LINENO"; then :
   15820   gdb_cv_var_elf=yes
   15821 else
   15822   gdb_cv_var_elf=no
   15823 fi
   15824 rm -f core conftest.err conftest.$ac_objext \
   15825     conftest$ac_exeext conftest.$ac_ext
   15826 fi
   15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
   15828 $as_echo "$gdb_cv_var_elf" >&6; }
   15829   CFLAGS=$OLD_CFLAGS
   15830   LDFLAGS=$OLD_LDFLAGS
   15831   LIBS=$OLD_LIBS
   15832 if test $gdb_cv_var_elf = yes; then
   15833   CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
   15834 
   15835 $as_echo "#define HAVE_ELF 1" >>confdefs.h
   15836 
   15837   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
   15838   if test "$plugins" = "yes"; then
   15839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   15840 $as_echo_n "checking for library containing dlopen... " >&6; }
   15841 if ${ac_cv_search_dlopen+:} false; then :
   15842   $as_echo_n "(cached) " >&6
   15843 else
   15844   ac_func_search_save_LIBS=$LIBS
   15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15846 /* end confdefs.h.  */
   15847 
   15848 /* Override any GCC internal prototype to avoid an error.
   15849    Use char because int might match the return type of a GCC
   15850    builtin and then its argument prototype would still apply.  */
   15851 #ifdef __cplusplus
   15852 extern "C"
   15853 #endif
   15854 char dlopen ();
   15855 int
   15856 main ()
   15857 {
   15858 return dlopen ();
   15859   ;
   15860   return 0;
   15861 }
   15862 _ACEOF
   15863 for ac_lib in '' dl; do
   15864   if test -z "$ac_lib"; then
   15865     ac_res="none required"
   15866   else
   15867     ac_res=-l$ac_lib
   15868     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15869   fi
   15870   if ac_fn_c_try_link "$LINENO"; then :
   15871   ac_cv_search_dlopen=$ac_res
   15872 fi
   15873 rm -f core conftest.err conftest.$ac_objext \
   15874     conftest$ac_exeext
   15875   if ${ac_cv_search_dlopen+:} false; then :
   15876   break
   15877 fi
   15878 done
   15879 if ${ac_cv_search_dlopen+:} false; then :
   15880 
   15881 else
   15882   ac_cv_search_dlopen=no
   15883 fi
   15884 rm conftest.$ac_ext
   15885 LIBS=$ac_func_search_save_LIBS
   15886 fi
   15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   15888 $as_echo "$ac_cv_search_dlopen" >&6; }
   15889 ac_res=$ac_cv_search_dlopen
   15890 if test "$ac_res" != no; then :
   15891   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15892 
   15893 fi
   15894 
   15895   fi
   15896 fi
   15897 
   15898 # Add macho support to GDB, but only if BFD includes it.
   15899 
   15900   OLD_CFLAGS=$CFLAGS
   15901   OLD_LDFLAGS=$LDFLAGS
   15902   OLD_LIBS=$LIBS
   15903   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
   15904   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
   15905   # always want our bfd.
   15906   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
   15907   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
   15908   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
   15909   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
   15910   LIBS="-lbfd -liberty -lz $intl $LIBS"
   15911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
   15912 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
   15913 if ${gdb_cv_var_macho+:} false; then :
   15914   $as_echo_n "(cached) " >&6
   15915 else
   15916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15917 /* end confdefs.h.  */
   15918 #include <stdlib.h>
   15919   #include "bfd.h"
   15920   #include "mach-o.h"
   15921 
   15922 int
   15923 main ()
   15924 {
   15925 return bfd_mach_o_lookup_command (NULL, 0, NULL);
   15926   ;
   15927   return 0;
   15928 }
   15929 _ACEOF
   15930 if ac_fn_c_try_link "$LINENO"; then :
   15931   gdb_cv_var_macho=yes
   15932 else
   15933   gdb_cv_var_macho=no
   15934 fi
   15935 rm -f core conftest.err conftest.$ac_objext \
   15936     conftest$ac_exeext conftest.$ac_ext
   15937 fi
   15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
   15939 $as_echo "$gdb_cv_var_macho" >&6; }
   15940   CFLAGS=$OLD_CFLAGS
   15941   LDFLAGS=$OLD_LDFLAGS
   15942   LIBS=$OLD_LIBS
   15943 if test $gdb_cv_var_macho = yes; then
   15944   CONFIG_OBS="$CONFIG_OBS machoread.o"
   15945 fi
   15946 
   15947 # Add any host-specific objects to GDB.
   15948 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
   15949 
   15950 # If building on ELF, look for lzma support for embedded compressed debug info.
   15951 if test $gdb_cv_var_elf = yes; then
   15952 
   15953 # Check whether --with-lzma was given.
   15954 if test "${with_lzma+set}" = set; then :
   15955   withval=$with_lzma;
   15956 else
   15957   with_lzma=auto
   15958 fi
   15959 
   15960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
   15961 $as_echo_n "checking whether to use lzma... " >&6; }
   15962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
   15963 $as_echo "$with_lzma" >&6; }
   15964 
   15965   if test "${with_lzma}" != no; then
   15966 
   15967 
   15968 
   15969 
   15970 
   15971 
   15972 
   15973 
   15974     use_additional=yes
   15975 
   15976   acl_save_prefix="$prefix"
   15977   prefix="$acl_final_prefix"
   15978   acl_save_exec_prefix="$exec_prefix"
   15979   exec_prefix="$acl_final_exec_prefix"
   15980 
   15981     eval additional_includedir=\"$includedir\"
   15982     eval additional_libdir=\"$libdir\"
   15983 
   15984   exec_prefix="$acl_save_exec_prefix"
   15985   prefix="$acl_save_prefix"
   15986 
   15987 
   15988 # Check whether --with-liblzma-prefix was given.
   15989 if test "${with_liblzma_prefix+set}" = set; then :
   15990   withval=$with_liblzma_prefix;
   15991     if test "X$withval" = "Xno"; then
   15992       use_additional=no
   15993     else
   15994       if test "X$withval" = "X"; then
   15995 
   15996   acl_save_prefix="$prefix"
   15997   prefix="$acl_final_prefix"
   15998   acl_save_exec_prefix="$exec_prefix"
   15999   exec_prefix="$acl_final_exec_prefix"
   16000 
   16001           eval additional_includedir=\"$includedir\"
   16002           eval additional_libdir=\"$libdir\"
   16003 
   16004   exec_prefix="$acl_save_exec_prefix"
   16005   prefix="$acl_save_prefix"
   16006 
   16007       else
   16008         additional_includedir="$withval/include"
   16009         additional_libdir="$withval/lib"
   16010       fi
   16011     fi
   16012 
   16013 fi
   16014 
   16015       LIBLZMA=
   16016   LTLIBLZMA=
   16017   INCLZMA=
   16018   rpathdirs=
   16019   ltrpathdirs=
   16020   names_already_handled=
   16021   names_next_round='lzma '
   16022   while test -n "$names_next_round"; do
   16023     names_this_round="$names_next_round"
   16024     names_next_round=
   16025     for name in $names_this_round; do
   16026       already_handled=
   16027       for n in $names_already_handled; do
   16028         if test "$n" = "$name"; then
   16029           already_handled=yes
   16030           break
   16031         fi
   16032       done
   16033       if test -z "$already_handled"; then
   16034         names_already_handled="$names_already_handled $name"
   16035                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   16036         eval value=\"\$HAVE_LIB$uppername\"
   16037         if test -n "$value"; then
   16038           if test "$value" = yes; then
   16039             eval value=\"\$LIB$uppername\"
   16040             test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
   16041             eval value=\"\$LTLIB$uppername\"
   16042             test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
   16043           else
   16044                                     :
   16045           fi
   16046         else
   16047                               found_dir=
   16048           found_la=
   16049           found_so=
   16050           found_a=
   16051           if test $use_additional = yes; then
   16052             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   16053               found_dir="$additional_libdir"
   16054               found_so="$additional_libdir/lib$name.$shlibext"
   16055               if test -f "$additional_libdir/lib$name.la"; then
   16056                 found_la="$additional_libdir/lib$name.la"
   16057               fi
   16058             else
   16059               if test -f "$additional_libdir/lib$name.$libext"; then
   16060                 found_dir="$additional_libdir"
   16061                 found_a="$additional_libdir/lib$name.$libext"
   16062                 if test -f "$additional_libdir/lib$name.la"; then
   16063                   found_la="$additional_libdir/lib$name.la"
   16064                 fi
   16065               fi
   16066             fi
   16067           fi
   16068           if test "X$found_dir" = "X"; then
   16069             for x in $LDFLAGS $LTLIBLZMA; do
   16070 
   16071   acl_save_prefix="$prefix"
   16072   prefix="$acl_final_prefix"
   16073   acl_save_exec_prefix="$exec_prefix"
   16074   exec_prefix="$acl_final_exec_prefix"
   16075   eval x=\"$x\"
   16076   exec_prefix="$acl_save_exec_prefix"
   16077   prefix="$acl_save_prefix"
   16078 
   16079               case "$x" in
   16080                 -L*)
   16081                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   16082                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   16083                     found_dir="$dir"
   16084                     found_so="$dir/lib$name.$shlibext"
   16085                     if test -f "$dir/lib$name.la"; then
   16086                       found_la="$dir/lib$name.la"
   16087                     fi
   16088                   else
   16089                     if test -f "$dir/lib$name.$libext"; then
   16090                       found_dir="$dir"
   16091                       found_a="$dir/lib$name.$libext"
   16092                       if test -f "$dir/lib$name.la"; then
   16093                         found_la="$dir/lib$name.la"
   16094                       fi
   16095                     fi
   16096                   fi
   16097                   ;;
   16098               esac
   16099               if test "X$found_dir" != "X"; then
   16100                 break
   16101               fi
   16102             done
   16103           fi
   16104           if test "X$found_dir" != "X"; then
   16105                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
   16106             if test "X$found_so" != "X"; then
   16107                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   16108                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   16109               else
   16110                                                                                 haveit=
   16111                 for x in $ltrpathdirs; do
   16112                   if test "X$x" = "X$found_dir"; then
   16113                     haveit=yes
   16114                     break
   16115                   fi
   16116                 done
   16117                 if test -z "$haveit"; then
   16118                   ltrpathdirs="$ltrpathdirs $found_dir"
   16119                 fi
   16120                                 if test "$hardcode_direct" = yes; then
   16121                                                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   16122                 else
   16123                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   16124                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   16125                                                             haveit=
   16126                     for x in $rpathdirs; do
   16127                       if test "X$x" = "X$found_dir"; then
   16128                         haveit=yes
   16129                         break
   16130                       fi
   16131                     done
   16132                     if test -z "$haveit"; then
   16133                       rpathdirs="$rpathdirs $found_dir"
   16134                     fi
   16135                   else
   16136                                                                                 haveit=
   16137                     for x in $LDFLAGS $LIBLZMA; do
   16138 
   16139   acl_save_prefix="$prefix"
   16140   prefix="$acl_final_prefix"
   16141   acl_save_exec_prefix="$exec_prefix"
   16142   exec_prefix="$acl_final_exec_prefix"
   16143   eval x=\"$x\"
   16144   exec_prefix="$acl_save_exec_prefix"
   16145   prefix="$acl_save_prefix"
   16146 
   16147                       if test "X$x" = "X-L$found_dir"; then
   16148                         haveit=yes
   16149                         break
   16150                       fi
   16151                     done
   16152                     if test -z "$haveit"; then
   16153                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
   16154                     fi
   16155                     if test "$hardcode_minus_L" != no; then
   16156                                                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   16157                     else
   16158                                                                                                                                                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
   16159                     fi
   16160                   fi
   16161                 fi
   16162               fi
   16163             else
   16164               if test "X$found_a" != "X"; then
   16165                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
   16166               else
   16167                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
   16168               fi
   16169             fi
   16170                         additional_includedir=
   16171             case "$found_dir" in
   16172               */lib | */lib/)
   16173                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   16174                 additional_includedir="$basedir/include"
   16175                 ;;
   16176             esac
   16177             if test "X$additional_includedir" != "X"; then
   16178                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   16179                 haveit=
   16180                 if test "X$additional_includedir" = "X/usr/local/include"; then
   16181                   if test -n "$GCC"; then
   16182                     case $host_os in
   16183                       linux*) haveit=yes;;
   16184                     esac
   16185                   fi
   16186                 fi
   16187                 if test -z "$haveit"; then
   16188                   for x in $CPPFLAGS $INCLZMA; do
   16189 
   16190   acl_save_prefix="$prefix"
   16191   prefix="$acl_final_prefix"
   16192   acl_save_exec_prefix="$exec_prefix"
   16193   exec_prefix="$acl_final_exec_prefix"
   16194   eval x=\"$x\"
   16195   exec_prefix="$acl_save_exec_prefix"
   16196   prefix="$acl_save_prefix"
   16197 
   16198                     if test "X$x" = "X-I$additional_includedir"; then
   16199                       haveit=yes
   16200                       break
   16201                     fi
   16202                   done
   16203                   if test -z "$haveit"; then
   16204                     if test -d "$additional_includedir"; then
   16205                                             INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
   16206                     fi
   16207                   fi
   16208                 fi
   16209               fi
   16210             fi
   16211                         if test -n "$found_la"; then
   16212                                                         save_libdir="$libdir"
   16213               case "$found_la" in
   16214                 */* | *\\*) . "$found_la" ;;
   16215                 *) . "./$found_la" ;;
   16216               esac
   16217               libdir="$save_libdir"
   16218                             for dep in $dependency_libs; do
   16219                 case "$dep" in
   16220                   -L*)
   16221                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   16222                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   16223                       haveit=
   16224                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   16225                         if test -n "$GCC"; then
   16226                           case $host_os in
   16227                             linux*) haveit=yes;;
   16228                           esac
   16229                         fi
   16230                       fi
   16231                       if test -z "$haveit"; then
   16232                         haveit=
   16233                         for x in $LDFLAGS $LIBLZMA; do
   16234 
   16235   acl_save_prefix="$prefix"
   16236   prefix="$acl_final_prefix"
   16237   acl_save_exec_prefix="$exec_prefix"
   16238   exec_prefix="$acl_final_exec_prefix"
   16239   eval x=\"$x\"
   16240   exec_prefix="$acl_save_exec_prefix"
   16241   prefix="$acl_save_prefix"
   16242 
   16243                           if test "X$x" = "X-L$additional_libdir"; then
   16244                             haveit=yes
   16245                             break
   16246                           fi
   16247                         done
   16248                         if test -z "$haveit"; then
   16249                           if test -d "$additional_libdir"; then
   16250                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
   16251                           fi
   16252                         fi
   16253                         haveit=
   16254                         for x in $LDFLAGS $LTLIBLZMA; do
   16255 
   16256   acl_save_prefix="$prefix"
   16257   prefix="$acl_final_prefix"
   16258   acl_save_exec_prefix="$exec_prefix"
   16259   exec_prefix="$acl_final_exec_prefix"
   16260   eval x=\"$x\"
   16261   exec_prefix="$acl_save_exec_prefix"
   16262   prefix="$acl_save_prefix"
   16263 
   16264                           if test "X$x" = "X-L$additional_libdir"; then
   16265                             haveit=yes
   16266                             break
   16267                           fi
   16268                         done
   16269                         if test -z "$haveit"; then
   16270                           if test -d "$additional_libdir"; then
   16271                                                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
   16272                           fi
   16273                         fi
   16274                       fi
   16275                     fi
   16276                     ;;
   16277                   -R*)
   16278                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   16279                     if test "$enable_rpath" != no; then
   16280                                                                   haveit=
   16281                       for x in $rpathdirs; do
   16282                         if test "X$x" = "X$dir"; then
   16283                           haveit=yes
   16284                           break
   16285                         fi
   16286                       done
   16287                       if test -z "$haveit"; then
   16288                         rpathdirs="$rpathdirs $dir"
   16289                       fi
   16290                                                                   haveit=
   16291                       for x in $ltrpathdirs; do
   16292                         if test "X$x" = "X$dir"; then
   16293                           haveit=yes
   16294                           break
   16295                         fi
   16296                       done
   16297                       if test -z "$haveit"; then
   16298                         ltrpathdirs="$ltrpathdirs $dir"
   16299                       fi
   16300                     fi
   16301                     ;;
   16302                   -l*)
   16303                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   16304                     ;;
   16305                   *.la)
   16306                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   16307                     ;;
   16308                   *)
   16309                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
   16310                     LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
   16311                     ;;
   16312                 esac
   16313               done
   16314             fi
   16315           else
   16316                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
   16317             LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
   16318           fi
   16319         fi
   16320       fi
   16321     done
   16322   done
   16323   if test "X$rpathdirs" != "X"; then
   16324     if test -n "$hardcode_libdir_separator"; then
   16325                         alldirs=
   16326       for found_dir in $rpathdirs; do
   16327         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   16328       done
   16329             acl_save_libdir="$libdir"
   16330       libdir="$alldirs"
   16331       eval flag=\"$hardcode_libdir_flag_spec\"
   16332       libdir="$acl_save_libdir"
   16333       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
   16334     else
   16335             for found_dir in $rpathdirs; do
   16336         acl_save_libdir="$libdir"
   16337         libdir="$found_dir"
   16338         eval flag=\"$hardcode_libdir_flag_spec\"
   16339         libdir="$acl_save_libdir"
   16340         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
   16341       done
   16342     fi
   16343   fi
   16344   if test "X$ltrpathdirs" != "X"; then
   16345             for found_dir in $ltrpathdirs; do
   16346       LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
   16347     done
   16348   fi
   16349 
   16350 
   16351         ac_save_CPPFLAGS="$CPPFLAGS"
   16352 
   16353   for element in $INCLZMA; do
   16354     haveit=
   16355     for x in $CPPFLAGS; do
   16356 
   16357   acl_save_prefix="$prefix"
   16358   prefix="$acl_final_prefix"
   16359   acl_save_exec_prefix="$exec_prefix"
   16360   exec_prefix="$acl_final_exec_prefix"
   16361   eval x=\"$x\"
   16362   exec_prefix="$acl_save_exec_prefix"
   16363   prefix="$acl_save_prefix"
   16364 
   16365       if test "X$x" = "X$element"; then
   16366         haveit=yes
   16367         break
   16368       fi
   16369     done
   16370     if test -z "$haveit"; then
   16371       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   16372     fi
   16373   done
   16374 
   16375 
   16376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
   16377 $as_echo_n "checking for liblzma... " >&6; }
   16378 if ${ac_cv_liblzma+:} false; then :
   16379   $as_echo_n "(cached) " >&6
   16380 else
   16381 
   16382     ac_save_LIBS="$LIBS"
   16383     LIBS="$LIBS $LIBLZMA"
   16384     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16385 /* end confdefs.h.  */
   16386 #include "lzma.h"
   16387 int
   16388 main ()
   16389 {
   16390 lzma_index_iter iter;
   16391 			   lzma_index_iter_init (&iter, 0);
   16392 			   lzma_mf_is_supported (LZMA_MF_HC3);
   16393   ;
   16394   return 0;
   16395 }
   16396 _ACEOF
   16397 if ac_fn_c_try_link "$LINENO"; then :
   16398   ac_cv_liblzma=yes
   16399 else
   16400   ac_cv_liblzma=no
   16401 fi
   16402 rm -f core conftest.err conftest.$ac_objext \
   16403     conftest$ac_exeext conftest.$ac_ext
   16404     LIBS="$ac_save_LIBS"
   16405 
   16406 fi
   16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
   16408 $as_echo "$ac_cv_liblzma" >&6; }
   16409   if test "$ac_cv_liblzma" = yes; then
   16410     HAVE_LIBLZMA=yes
   16411 
   16412 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
   16413 
   16414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
   16415 $as_echo_n "checking how to link with liblzma... " >&6; }
   16416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
   16417 $as_echo "$LIBLZMA" >&6; }
   16418   else
   16419     HAVE_LIBLZMA=no
   16420             CPPFLAGS="$ac_save_CPPFLAGS"
   16421     LIBLZMA=
   16422     LTLIBLZMA=
   16423   fi
   16424 
   16425 
   16426 
   16427 
   16428 
   16429 
   16430     if test "$HAVE_LIBLZMA" != yes; then
   16431       if test "$with_lzma" = yes; then
   16432         as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
   16433       fi
   16434     fi
   16435   fi
   16436 fi
   16437 
   16438 LIBGUI="../libgui/src/libgui.a"
   16439 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
   16440 
   16441 
   16442 
   16443 WIN32LDAPP=
   16444 
   16445 
   16446 
   16447 case "${host}" in
   16448 *-*-cygwin* | *-*-mingw* )
   16449     configdir="win"
   16450     ;;
   16451 *)
   16452     configdir="unix"
   16453     ;;
   16454 esac
   16455 
   16456 GDBTKLIBS=
   16457 if test "${enable_gdbtk}" = "yes"; then
   16458 
   16459     # Gdbtk must have an absolute path to srcdir in order to run
   16460     # properly when not installed.
   16461     here=`pwd`
   16462     cd ${srcdir}
   16463     GDBTK_SRC_DIR=`pwd`
   16464     cd $here
   16465 
   16466 
   16467     #
   16468     # Ok, lets find the tcl configuration
   16469     # First, look for one uninstalled.
   16470     # the alternative search directory is invoked by --with-tcl
   16471     #
   16472 
   16473     if test x"${no_tcl}" = x ; then
   16474 	# we reset no_tcl in case something fails here
   16475 	no_tcl=true
   16476 
   16477 # Check whether --with-tcl was given.
   16478 if test "${with_tcl+set}" = set; then :
   16479   withval=$with_tcl; with_tclconfig=${withval}
   16480 fi
   16481 
   16482 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
   16483 $as_echo_n "checking for Tcl configuration... " >&6; }
   16484 	if ${ac_cv_c_tclconfig+:} false; then :
   16485   $as_echo_n "(cached) " >&6
   16486 else
   16487 
   16488 
   16489 	    # First check to see if --with-tcl was specified.
   16490 	    case "${host}" in
   16491 		*-*-cygwin*) platDir="win" ;;
   16492 		*) platDir="unix" ;;
   16493 	    esac
   16494 	    if test x"${with_tclconfig}" != x ; then
   16495 		if test -f "${with_tclconfig}/tclConfig.sh" ; then
   16496 		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
   16497 		else
   16498 		    as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
   16499 		fi
   16500 	    fi
   16501 
   16502 	    # then check for a private Tcl installation
   16503 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   16504 		for i in \
   16505 			../tcl \
   16506 			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   16507 			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
   16508 			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
   16509 			../../tcl \
   16510 			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   16511 			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
   16512 			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
   16513 			../../../tcl \
   16514 			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   16515 			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
   16516 			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
   16517 		    if test -f "$i/$platDir/tclConfig.sh" ; then
   16518 			ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
   16519 			break
   16520 		    fi
   16521 		done
   16522 	    fi
   16523 
   16524 	    # on Darwin, check in Framework installation locations
   16525 	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
   16526 		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
   16527 			`ls -d /Library/Frameworks 2>/dev/null` \
   16528 			`ls -d /Network/Library/Frameworks 2>/dev/null` \
   16529 			`ls -d /System/Library/Frameworks 2>/dev/null` \
   16530 			; do
   16531 		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
   16532 			ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
   16533 			break
   16534 		    fi
   16535 		done
   16536 	    fi
   16537 
   16538 	    # check in a few common install locations
   16539 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   16540 		for i in `ls -d ${libdir} 2>/dev/null` \
   16541 			`ls -d ${exec_prefix}/lib 2>/dev/null` \
   16542 			`ls -d ${prefix}/lib 2>/dev/null` \
   16543 			`ls -d /usr/local/lib 2>/dev/null` \
   16544 			`ls -d /usr/contrib/lib 2>/dev/null` \
   16545 			`ls -d /usr/lib 2>/dev/null` \
   16546 			; do
   16547 		    if test -f "$i/tclConfig.sh" ; then
   16548 			ac_cv_c_tclconfig=`(cd $i; pwd)`
   16549 			break
   16550 		    fi
   16551 		done
   16552 	    fi
   16553 
   16554 	    # check in a few other private locations
   16555 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   16556 		for i in \
   16557 			${srcdir}/../tcl \
   16558 			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   16559 			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
   16560 			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
   16561 		    if test -f "$i/$platDir/tclConfig.sh" ; then
   16562 		    ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
   16563 		    break
   16564 		fi
   16565 		done
   16566 	    fi
   16567 
   16568 fi
   16569 
   16570 
   16571 	if test x"${ac_cv_c_tclconfig}" = x ; then
   16572 	    TCL_BIN_DIR="# no Tcl configs found"
   16573 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
   16574 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
   16575 	else
   16576 	    no_tcl=
   16577 	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
   16578 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
   16579 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
   16580 	fi
   16581     fi
   16582 
   16583 
   16584     # If $no_tk is nonempty, then we can't do Tk, and there is no
   16585     # point to doing Tcl.
   16586 
   16587     #
   16588     # Ok, lets find the tk configuration
   16589     # First, look for one uninstalled.
   16590     # the alternative search directory is invoked by --with-tk
   16591     #
   16592 
   16593     if test x"${no_tk}" = x ; then
   16594 	# we reset no_tk in case something fails here
   16595 	no_tk=true
   16596 
   16597 # Check whether --with-tk was given.
   16598 if test "${with_tk+set}" = set; then :
   16599   withval=$with_tk; with_tkconfig=${withval}
   16600 fi
   16601 
   16602 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
   16603 $as_echo_n "checking for Tk configuration... " >&6; }
   16604 	if ${ac_cv_c_tkconfig+:} false; then :
   16605   $as_echo_n "(cached) " >&6
   16606 else
   16607 
   16608 
   16609 	    # First check to see if --with-tkconfig was specified.
   16610 	    if test x"${with_tkconfig}" != x ; then
   16611 		if test -f "${with_tkconfig}/tkConfig.sh" ; then
   16612 		    ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
   16613 		else
   16614 		    as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
   16615 		fi
   16616 	    fi
   16617 
   16618 	    # then check for a private Tk library
   16619 	    case "${host}" in
   16620 		*-*-cygwin*) platDir="win" ;;
   16621 		*) platDir="unix" ;;
   16622 	    esac
   16623 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   16624 		for i in \
   16625 			../tk \
   16626 			`ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   16627 			`ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
   16628 			`ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
   16629 			../../tk \
   16630 			`ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   16631 			`ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
   16632 			`ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
   16633 			../../../tk \
   16634 			`ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   16635 			`ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
   16636 			`ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
   16637 		    if test -f "$i/$platDir/tkConfig.sh" ; then
   16638 			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
   16639 			break
   16640 		    fi
   16641 		done
   16642 	    fi
   16643 
   16644 	    # on Darwin, check in Framework installation locations
   16645 	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
   16646 		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
   16647 			`ls -d /Library/Frameworks 2>/dev/null` \
   16648 			`ls -d /Network/Library/Frameworks 2>/dev/null` \
   16649 			`ls -d /System/Library/Frameworks 2>/dev/null` \
   16650 			; do
   16651 		    if test -f "$i/Tk.framework/tkConfig.sh" ; then
   16652 			ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
   16653 			break
   16654 		    fi
   16655 		done
   16656 	    fi
   16657 
   16658 	    # check in a few common install locations
   16659 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   16660 		for i in `ls -d ${libdir} 2>/dev/null` \
   16661 			`ls -d ${exec_prefix}/lib 2>/dev/null` \
   16662 			`ls -d ${prefix}/lib 2>/dev/null` \
   16663 			`ls -d /usr/local/lib 2>/dev/null` \
   16664 			`ls -d /usr/contrib/lib 2>/dev/null` \
   16665 			`ls -d /usr/lib 2>/dev/null` \
   16666 			; do
   16667 		    if test -f "$i/tkConfig.sh" ; then
   16668 			ac_cv_c_tkconfig=`(cd $i; pwd)`
   16669 			break
   16670 		    fi
   16671 		done
   16672 	    fi
   16673 	    # check in a few other private locations
   16674 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   16675 		for i in \
   16676 			${srcdir}/../tk \
   16677 			`ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   16678 			`ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
   16679 			`ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
   16680 		    if test -f "$i/$platDir/tkConfig.sh" ; then
   16681 			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
   16682 			break
   16683 		    fi
   16684 		done
   16685 	    fi
   16686 
   16687 fi
   16688 
   16689 
   16690 	if test x"${ac_cv_c_tkconfig}" = x ; then
   16691 	    TK_BIN_DIR="# no Tk configs found"
   16692 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
   16693 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
   16694 	else
   16695 	    no_tk=
   16696 	    TK_BIN_DIR=${ac_cv_c_tkconfig}
   16697 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
   16698 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
   16699 	fi
   16700     fi
   16701 
   16702 
   16703     if test -z "${no_tcl}" -a -z "${no_tk}"; then
   16704 
   16705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
   16706 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
   16707 
   16708     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
   16709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
   16710 $as_echo "loading" >&6; }
   16711 	. ${TCL_BIN_DIR}/tclConfig.sh
   16712     else
   16713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
   16714 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
   16715     fi
   16716 
   16717     # eval is required to do the TCL_DBGX substitution
   16718     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
   16719     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
   16720 
   16721     # If the TCL_BIN_DIR is the build directory (not the install directory),
   16722     # then set the common variable name to the value of the build variables.
   16723     # For example, the variable TCL_LIB_SPEC will be set to the value
   16724     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
   16725     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
   16726     # installed and uninstalled version of Tcl.
   16727     if test -f "${TCL_BIN_DIR}/Makefile" ; then
   16728         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
   16729         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
   16730         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
   16731     elif test "`uname -s`" = "Darwin"; then
   16732 	# If Tcl was built as a framework, attempt to use the libraries
   16733 	# from the framework at the given location so that linking works
   16734 	# against Tcl.framework installed in an arbitrary location.
   16735 	case ${TCL_DEFS} in
   16736 	    *TCL_FRAMEWORK*)
   16737 		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
   16738 		    for i in "`cd ${TCL_BIN_DIR}; pwd`" \
   16739 			     "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
   16740 			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
   16741 			    TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
   16742 			    break
   16743 			fi
   16744 		    done
   16745 		fi
   16746 		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
   16747 		    TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
   16748 		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
   16749 		fi
   16750 		;;
   16751 	esac
   16752     fi
   16753 
   16754     # eval is required to do the TCL_DBGX substitution
   16755     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
   16756     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
   16757     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
   16758     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
   16759 
   16760 
   16761 
   16762 
   16763 
   16764 
   16765 
   16766 
   16767 
   16768 
   16769 
   16770 
   16771 
   16772 
   16773 
   16774         # Check for in-tree tcl
   16775         here=`pwd`
   16776         cd ${srcdir}/..
   16777         topdir=`pwd`
   16778         cd ${here}
   16779 
   16780         intree="no"
   16781         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
   16782           intree="yes"
   16783         fi
   16784 
   16785         # Find Tcl private headers
   16786         if test x"${intree}" = xno; then
   16787 
   16788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
   16789 $as_echo_n "checking for Tcl private headers... " >&6; }
   16790   private_dir=""
   16791   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
   16792   if test -f ${dir}/tclInt.h ; then
   16793     private_dir=${dir}
   16794   fi
   16795 
   16796   if test x"${private_dir}" = x; then
   16797     as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
   16798   else
   16799     TCL_PRIVATE_INCLUDE="-I${private_dir}"
   16800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
   16801 $as_echo "${private_dir}" >&6; }
   16802   fi
   16803 
   16804 	  TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
   16805           TCL_LIBRARY="${TCL_LIB_SPEC}"
   16806           TCL_DEPS=""
   16807         else
   16808           # If building tcl in the same src tree, private headers
   16809           # are not needed, but we need to be sure to use the right
   16810           # headers library
   16811 	  TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
   16812           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
   16813           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
   16814         fi
   16815 
   16816 
   16817 
   16818 
   16819 
   16820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
   16821 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
   16822 
   16823     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
   16824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
   16825 $as_echo "loading" >&6; }
   16826 	. ${TK_BIN_DIR}/tkConfig.sh
   16827     else
   16828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
   16829 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
   16830     fi
   16831 
   16832     # eval is required to do the TK_DBGX substitution
   16833     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
   16834     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
   16835 
   16836     # If the TK_BIN_DIR is the build directory (not the install directory),
   16837     # then set the common variable name to the value of the build variables.
   16838     # For example, the variable TK_LIB_SPEC will be set to the value
   16839     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
   16840     # instead of TK_BUILD_LIB_SPEC since it will work with both an
   16841     # installed and uninstalled version of Tcl.
   16842     if test -f "${TK_BIN_DIR}/Makefile" ; then
   16843         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
   16844         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
   16845         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
   16846     elif test "`uname -s`" = "Darwin"; then
   16847 	# If Tk was built as a framework, attempt to use the libraries
   16848 	# from the framework at the given location so that linking works
   16849 	# against Tk.framework installed in an arbitrary location.
   16850 	case ${TK_DEFS} in
   16851 	    *TK_FRAMEWORK*)
   16852 		if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
   16853 		    for i in "`cd ${TK_BIN_DIR}; pwd`" \
   16854 			     "`cd ${TK_BIN_DIR}/../..; pwd`"; do
   16855 			if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
   16856 			    TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
   16857 			    break
   16858 			fi
   16859 		    done
   16860 		fi
   16861 		if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
   16862 		    TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
   16863 		    TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
   16864 		fi
   16865 		;;
   16866 	esac
   16867     fi
   16868 
   16869     # eval is required to do the TK_DBGX substitution
   16870     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
   16871     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
   16872     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
   16873     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
   16874 
   16875 
   16876 
   16877 
   16878 
   16879 
   16880 
   16881 
   16882 
   16883 
   16884 
   16885 
   16886 
   16887 
   16888         # Check for in-tree Tk
   16889         intree="no"
   16890         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
   16891           intree="yes"
   16892         fi
   16893 
   16894         # Find Tk private headers
   16895         if test x"${intree}" = xno; then
   16896 
   16897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
   16898 $as_echo_n "checking for Tk private headers... " >&6; }
   16899   private_dir=""
   16900   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
   16901   if test -f ${dir}/tkInt.h; then
   16902     private_dir=${dir}
   16903   fi
   16904 
   16905   if test x"${private_dir}" = x; then
   16906     as_fn_error $? "could not find Tk private headers" "$LINENO" 5
   16907   else
   16908     TK_PRIVATE_INCLUDE="-I${private_dir}"
   16909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
   16910 $as_echo "${private_dir}" >&6; }
   16911   fi
   16912 
   16913 	  TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
   16914 	  TK_LIBRARY=${TK_LIB_SPEC}
   16915           TK_DEPS=""
   16916         else
   16917           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
   16918           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
   16919           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
   16920         fi
   16921 
   16922 
   16923 
   16924 
   16925 
   16926         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
   16927 
   16928 	# Include some libraries that Tcl and Tk want.
   16929 	TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
   16930 	# Yes, the ordering seems wrong here.  But it isn't.
   16931 	# TK_LIBS is the list of libraries that need to be linked
   16932 	# after Tcl/Tk.  Note that this isn't put into LIBS.  If it
   16933 	# were in LIBS then any link tests after this point would
   16934 	# try to include things like `$(LIBGUI)', which wouldn't work.
   16935 	GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
   16936 
   16937         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
   16938         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
   16939         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
   16940 	CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
   16941 	CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
   16942 	CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
   16943 	CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
   16944 
   16945 	if test x$gdb_cv_os_cygwin = xyes; then
   16946 	  WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
   16947 	  WIN32LDAPP="-Wl,--subsystem,console"
   16948 	  CONFIG_OBS="${CONFIG_OBS} gdbres.o"
   16949 	fi
   16950 
   16951         subdirs="$subdirs gdbtk"
   16952 
   16953     fi
   16954 fi
   16955 
   16956 
   16957 
   16958 
   16959 
   16960 
   16961 
   16962 
   16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
   16964 $as_echo_n "checking for X... " >&6; }
   16965 
   16966 
   16967 # Check whether --with-x was given.
   16968 if test "${with_x+set}" = set; then :
   16969   withval=$with_x;
   16970 fi
   16971 
   16972 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   16973 if test "x$with_x" = xno; then
   16974   # The user explicitly disabled X.
   16975   have_x=disabled
   16976 else
   16977   case $x_includes,$x_libraries in #(
   16978     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
   16979     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
   16980   $as_echo_n "(cached) " >&6
   16981 else
   16982   # One or both of the vars are not set, and there is no cached value.
   16983 ac_x_includes=no ac_x_libraries=no
   16984 rm -f -r conftest.dir
   16985 if mkdir conftest.dir; then
   16986   cd conftest.dir
   16987   cat >Imakefile <<'_ACEOF'
   16988 incroot:
   16989 	@echo incroot='${INCROOT}'
   16990 usrlibdir:
   16991 	@echo usrlibdir='${USRLIBDIR}'
   16992 libdir:
   16993 	@echo libdir='${LIBDIR}'
   16994 _ACEOF
   16995   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
   16996     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   16997     for ac_var in incroot usrlibdir libdir; do
   16998       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
   16999     done
   17000     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   17001     for ac_extension in a so sl dylib la dll; do
   17002       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
   17003 	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
   17004 	ac_im_usrlibdir=$ac_im_libdir; break
   17005       fi
   17006     done
   17007     # Screen out bogus values from the imake configuration.  They are
   17008     # bogus both because they are the default anyway, and because
   17009     # using them would break gcc on systems where it needs fixed includes.
   17010     case $ac_im_incroot in
   17011 	/usr/include) ac_x_includes= ;;
   17012 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   17013     esac
   17014     case $ac_im_usrlibdir in
   17015 	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
   17016 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   17017     esac
   17018   fi
   17019   cd ..
   17020   rm -f -r conftest.dir
   17021 fi
   17022 
   17023 # Standard set of common directories for X headers.
   17024 # Check X11 before X11Rn because it is often a symlink to the current release.
   17025 ac_x_header_dirs='
   17026 /usr/X11/include
   17027 /usr/X11R7/include
   17028 /usr/X11R6/include
   17029 /usr/X11R5/include
   17030 /usr/X11R4/include
   17031 
   17032 /usr/include/X11
   17033 /usr/include/X11R7
   17034 /usr/include/X11R6
   17035 /usr/include/X11R5
   17036 /usr/include/X11R4
   17037 
   17038 /usr/local/X11/include
   17039 /usr/local/X11R7/include
   17040 /usr/local/X11R6/include
   17041 /usr/local/X11R5/include
   17042 /usr/local/X11R4/include
   17043 
   17044 /usr/local/include/X11
   17045 /usr/local/include/X11R7
   17046 /usr/local/include/X11R6
   17047 /usr/local/include/X11R5
   17048 /usr/local/include/X11R4
   17049 
   17050 /usr/X386/include
   17051 /usr/x386/include
   17052 /usr/XFree86/include/X11
   17053 
   17054 /usr/include
   17055 /usr/local/include
   17056 /usr/unsupported/include
   17057 /usr/athena/include
   17058 /usr/local/x11r5/include
   17059 /usr/lpp/Xamples/include
   17060 
   17061 /usr/openwin/include
   17062 /usr/openwin/share/include'
   17063 
   17064 if test "$ac_x_includes" = no; then
   17065   # Guess where to find include files, by looking for Xlib.h.
   17066   # First, try using that file with no special directory specified.
   17067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17068 /* end confdefs.h.  */
   17069 #include <X11/Xlib.h>
   17070 _ACEOF
   17071 if ac_fn_c_try_cpp "$LINENO"; then :
   17072   # We can compile using X headers with no special include directory.
   17073 ac_x_includes=
   17074 else
   17075   for ac_dir in $ac_x_header_dirs; do
   17076   if test -r "$ac_dir/X11/Xlib.h"; then
   17077     ac_x_includes=$ac_dir
   17078     break
   17079   fi
   17080 done
   17081 fi
   17082 rm -f conftest.err conftest.i conftest.$ac_ext
   17083 fi # $ac_x_includes = no
   17084 
   17085 if test "$ac_x_libraries" = no; then
   17086   # Check for the libraries.
   17087   # See if we find them without any special options.
   17088   # Don't add to $LIBS permanently.
   17089   ac_save_LIBS=$LIBS
   17090   LIBS="-lX11 $LIBS"
   17091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17092 /* end confdefs.h.  */
   17093 #include <X11/Xlib.h>
   17094 int
   17095 main ()
   17096 {
   17097 XrmInitialize ()
   17098   ;
   17099   return 0;
   17100 }
   17101 _ACEOF
   17102 if ac_fn_c_try_link "$LINENO"; then :
   17103   LIBS=$ac_save_LIBS
   17104 # We can link X programs with no special library path.
   17105 ac_x_libraries=
   17106 else
   17107   LIBS=$ac_save_LIBS
   17108 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   17109 do
   17110   # Don't even attempt the hair of trying to link an X program!
   17111   for ac_extension in a so sl dylib la dll; do
   17112     if test -r "$ac_dir/libX11.$ac_extension"; then
   17113       ac_x_libraries=$ac_dir
   17114       break 2
   17115     fi
   17116   done
   17117 done
   17118 fi
   17119 rm -f core conftest.err conftest.$ac_objext \
   17120     conftest$ac_exeext conftest.$ac_ext
   17121 fi # $ac_x_libraries = no
   17122 
   17123 case $ac_x_includes,$ac_x_libraries in #(
   17124   no,* | *,no | *\'*)
   17125     # Didn't find X, or a directory has "'" in its name.
   17126     ac_cv_have_x="have_x=no";; #(
   17127   *)
   17128     # Record where we found X for the cache.
   17129     ac_cv_have_x="have_x=yes\
   17130 	ac_x_includes='$ac_x_includes'\
   17131 	ac_x_libraries='$ac_x_libraries'"
   17132 esac
   17133 fi
   17134 ;; #(
   17135     *) have_x=yes;;
   17136   esac
   17137   eval "$ac_cv_have_x"
   17138 fi # $with_x != no
   17139 
   17140 if test "$have_x" != yes; then
   17141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
   17142 $as_echo "$have_x" >&6; }
   17143   no_x=yes
   17144 else
   17145   # If each of the values was on the command line, it overrides each guess.
   17146   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   17147   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   17148   # Update the cache value to reflect the command line values.
   17149   ac_cv_have_x="have_x=yes\
   17150 	ac_x_includes='$x_includes'\
   17151 	ac_x_libraries='$x_libraries'"
   17152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
   17153 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
   17154 fi
   17155 
   17156 
   17157 # Unlike the sim directory, whether a simulator is linked is controlled by
   17158 # presence of a gdb_sim definition in the target configure.tgt entry.
   17159 # This code just checks for a few cases where we'd like to ignore those
   17160 # definitions, even when they're present in the '.mt' file.  These cases
   17161 # are when --disable-sim is specified, or if the simulator directory is
   17162 # not part of the source tree.
   17163 #
   17164 # Check whether --enable-sim was given.
   17165 if test "${enable_sim+set}" = set; then :
   17166   enableval=$enable_sim; echo "enable_sim = $enable_sim";
   17167  echo "enableval = ${enableval}";
   17168  case "${enableval}" in
   17169   yes) ignore_sim=false ;;
   17170   no)  ignore_sim=true ;;
   17171   *)   ignore_sim=false ;;
   17172  esac
   17173 else
   17174   ignore_sim=false
   17175 fi
   17176 
   17177 
   17178 if test ! -d "${srcdir}/../sim"; then
   17179   ignore_sim=true
   17180 fi
   17181 
   17182 SIM=
   17183 SIM_OBS=
   17184 if test "${ignore_sim}" = "false"; then
   17185   if test x"${gdb_sim}" != x ; then
   17186     SIM="${gdb_sim}"
   17187     SIM_OBS="remote-sim.o"
   17188 
   17189 $as_echo "#define WITH_SIM 1" >>confdefs.h
   17190 
   17191 
   17192     # Some tdep code should only be compiled in when the ppc sim is
   17193     # built.  PR sim/13418.
   17194     case $target in
   17195       powerpc*-*-*)
   17196 
   17197 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
   17198 
   17199 	;;
   17200     esac
   17201   fi
   17202 fi
   17203 
   17204 
   17205 
   17206 
   17207 
   17208 
   17209 
   17210 
   17211 
   17212 
   17213 
   17214 
   17215 
   17216 
   17217 # List of host floatformats.
   17218 
   17219 cat >>confdefs.h <<_ACEOF
   17220 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
   17221 _ACEOF
   17222 
   17223 
   17224 cat >>confdefs.h <<_ACEOF
   17225 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
   17226 _ACEOF
   17227 
   17228 
   17229 cat >>confdefs.h <<_ACEOF
   17230 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
   17231 _ACEOF
   17232 
   17233 
   17234 # target_subdir is used by the testsuite to find the target libraries.
   17235 target_subdir=
   17236 if test "${host}" != "${target}"; then
   17237     target_subdir="${target_alias}/"
   17238 fi
   17239 
   17240 
   17241 # Import nat definitions.
   17242 nat_makefile_frag=/dev/null
   17243 if test "${gdb_native}" = "yes"; then
   17244   . ${srcdir}/configure.nat
   17245   nativefile=$NAT_FILE
   17246 fi
   17247 
   17248 
   17249 
   17250 
   17251 
   17252 
   17253 
   17254 
   17255 
   17256 
   17257 
   17258 if test x"${gdb_osabi}" != x ; then
   17259 
   17260 cat >>confdefs.h <<_ACEOF
   17261 #define GDB_OSABI_DEFAULT $gdb_osabi
   17262 _ACEOF
   17263 
   17264 fi
   17265 
   17266 # Check whether --enable-gdbserver was given.
   17267 if test "${enable_gdbserver+set}" = set; then :
   17268   enableval=$enable_gdbserver; case "${enableval}" in
   17269   yes| no|auto) ;;
   17270   *) as_fn_error $? "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
   17271 esac
   17272 else
   17273   enable_gdbserver=auto
   17274 fi
   17275 
   17276 
   17277 # We only build gdbserver automatically in a native configuration, and
   17278 # only if the user did not explicitly disable its build.
   17279 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
   17280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
   17281 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
   17282   if test "x$build_gdbserver" = xyes; then
   17283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17284 $as_echo "yes" >&6; }
   17285     subdirs="$subdirs gdbserver"
   17286 
   17287     gdbserver_build_enabled=yes
   17288   else
   17289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17290 $as_echo "no" >&6; }
   17291   fi
   17292 fi
   17293 
   17294 # If the user explicitly request the gdbserver to be built, verify that
   17295 # we were in fact able to enable it.
   17296 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
   17297   as_fn_error $? "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
   17298 fi
   17299 
   17300 # Check for babeltrace and babeltrace-ctf
   17301 
   17302 # Check whether --with-babeltrace was given.
   17303 if test "${with_babeltrace+set}" = set; then :
   17304   withval=$with_babeltrace;
   17305 else
   17306   with_babeltrace=auto
   17307 fi
   17308 
   17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
   17310 $as_echo_n "checking whether to use babeltrace... " >&6; }
   17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
   17312 $as_echo "$with_babeltrace" >&6; }
   17313 
   17314 if test "x$with_babeltrace" = "xno"; then
   17315   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
   17316 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
   17317 else
   17318   # Append -Werror to CFLAGS so that configure can catch the warning
   17319   # "assignment from incompatible pointer type", which is related to
   17320   # the babeltrace change from 1.0.3 to 1.1.0.  Babeltrace 1.1.0 works
   17321   # in GDB, while babeltrace 1.0.3 is broken.
   17322   # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
   17323   # safe to save and restore CFLAGS here.
   17324   saved_CFLAGS=$CFLAGS
   17325   CFLAGS="$CFLAGS -Werror"
   17326 
   17327 
   17328 
   17329 
   17330 
   17331 
   17332 
   17333 
   17334     use_additional=yes
   17335 
   17336   acl_save_prefix="$prefix"
   17337   prefix="$acl_final_prefix"
   17338   acl_save_exec_prefix="$exec_prefix"
   17339   exec_prefix="$acl_final_exec_prefix"
   17340 
   17341     eval additional_includedir=\"$includedir\"
   17342     eval additional_libdir=\"$libdir\"
   17343 
   17344   exec_prefix="$acl_save_exec_prefix"
   17345   prefix="$acl_save_prefix"
   17346 
   17347 
   17348 # Check whether --with-libbabeltrace-prefix was given.
   17349 if test "${with_libbabeltrace_prefix+set}" = set; then :
   17350   withval=$with_libbabeltrace_prefix;
   17351     if test "X$withval" = "Xno"; then
   17352       use_additional=no
   17353     else
   17354       if test "X$withval" = "X"; then
   17355 
   17356   acl_save_prefix="$prefix"
   17357   prefix="$acl_final_prefix"
   17358   acl_save_exec_prefix="$exec_prefix"
   17359   exec_prefix="$acl_final_exec_prefix"
   17360 
   17361           eval additional_includedir=\"$includedir\"
   17362           eval additional_libdir=\"$libdir\"
   17363 
   17364   exec_prefix="$acl_save_exec_prefix"
   17365   prefix="$acl_save_prefix"
   17366 
   17367       else
   17368         additional_includedir="$withval/include"
   17369         additional_libdir="$withval/lib"
   17370       fi
   17371     fi
   17372 
   17373 fi
   17374 
   17375       LIBBABELTRACE=
   17376   LTLIBBABELTRACE=
   17377   INCBABELTRACE=
   17378   rpathdirs=
   17379   ltrpathdirs=
   17380   names_already_handled=
   17381   names_next_round='babeltrace babeltrace-ctf'
   17382   while test -n "$names_next_round"; do
   17383     names_this_round="$names_next_round"
   17384     names_next_round=
   17385     for name in $names_this_round; do
   17386       already_handled=
   17387       for n in $names_already_handled; do
   17388         if test "$n" = "$name"; then
   17389           already_handled=yes
   17390           break
   17391         fi
   17392       done
   17393       if test -z "$already_handled"; then
   17394         names_already_handled="$names_already_handled $name"
   17395                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   17396         eval value=\"\$HAVE_LIB$uppername\"
   17397         if test -n "$value"; then
   17398           if test "$value" = yes; then
   17399             eval value=\"\$LIB$uppername\"
   17400             test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
   17401             eval value=\"\$LTLIB$uppername\"
   17402             test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
   17403           else
   17404                                     :
   17405           fi
   17406         else
   17407                               found_dir=
   17408           found_la=
   17409           found_so=
   17410           found_a=
   17411           if test $use_additional = yes; then
   17412             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   17413               found_dir="$additional_libdir"
   17414               found_so="$additional_libdir/lib$name.$shlibext"
   17415               if test -f "$additional_libdir/lib$name.la"; then
   17416                 found_la="$additional_libdir/lib$name.la"
   17417               fi
   17418             else
   17419               if test -f "$additional_libdir/lib$name.$libext"; then
   17420                 found_dir="$additional_libdir"
   17421                 found_a="$additional_libdir/lib$name.$libext"
   17422                 if test -f "$additional_libdir/lib$name.la"; then
   17423                   found_la="$additional_libdir/lib$name.la"
   17424                 fi
   17425               fi
   17426             fi
   17427           fi
   17428           if test "X$found_dir" = "X"; then
   17429             for x in $LDFLAGS $LTLIBBABELTRACE; do
   17430 
   17431   acl_save_prefix="$prefix"
   17432   prefix="$acl_final_prefix"
   17433   acl_save_exec_prefix="$exec_prefix"
   17434   exec_prefix="$acl_final_exec_prefix"
   17435   eval x=\"$x\"
   17436   exec_prefix="$acl_save_exec_prefix"
   17437   prefix="$acl_save_prefix"
   17438 
   17439               case "$x" in
   17440                 -L*)
   17441                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   17442                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   17443                     found_dir="$dir"
   17444                     found_so="$dir/lib$name.$shlibext"
   17445                     if test -f "$dir/lib$name.la"; then
   17446                       found_la="$dir/lib$name.la"
   17447                     fi
   17448                   else
   17449                     if test -f "$dir/lib$name.$libext"; then
   17450                       found_dir="$dir"
   17451                       found_a="$dir/lib$name.$libext"
   17452                       if test -f "$dir/lib$name.la"; then
   17453                         found_la="$dir/lib$name.la"
   17454                       fi
   17455                     fi
   17456                   fi
   17457                   ;;
   17458               esac
   17459               if test "X$found_dir" != "X"; then
   17460                 break
   17461               fi
   17462             done
   17463           fi
   17464           if test "X$found_dir" != "X"; then
   17465                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
   17466             if test "X$found_so" != "X"; then
   17467                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   17468                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   17469               else
   17470                                                                                 haveit=
   17471                 for x in $ltrpathdirs; do
   17472                   if test "X$x" = "X$found_dir"; then
   17473                     haveit=yes
   17474                     break
   17475                   fi
   17476                 done
   17477                 if test -z "$haveit"; then
   17478                   ltrpathdirs="$ltrpathdirs $found_dir"
   17479                 fi
   17480                                 if test "$hardcode_direct" = yes; then
   17481                                                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   17482                 else
   17483                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   17484                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   17485                                                             haveit=
   17486                     for x in $rpathdirs; do
   17487                       if test "X$x" = "X$found_dir"; then
   17488                         haveit=yes
   17489                         break
   17490                       fi
   17491                     done
   17492                     if test -z "$haveit"; then
   17493                       rpathdirs="$rpathdirs $found_dir"
   17494                     fi
   17495                   else
   17496                                                                                 haveit=
   17497                     for x in $LDFLAGS $LIBBABELTRACE; do
   17498 
   17499   acl_save_prefix="$prefix"
   17500   prefix="$acl_final_prefix"
   17501   acl_save_exec_prefix="$exec_prefix"
   17502   exec_prefix="$acl_final_exec_prefix"
   17503   eval x=\"$x\"
   17504   exec_prefix="$acl_save_exec_prefix"
   17505   prefix="$acl_save_prefix"
   17506 
   17507                       if test "X$x" = "X-L$found_dir"; then
   17508                         haveit=yes
   17509                         break
   17510                       fi
   17511                     done
   17512                     if test -z "$haveit"; then
   17513                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
   17514                     fi
   17515                     if test "$hardcode_minus_L" != no; then
   17516                                                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   17517                     else
   17518                                                                                                                                                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
   17519                     fi
   17520                   fi
   17521                 fi
   17522               fi
   17523             else
   17524               if test "X$found_a" != "X"; then
   17525                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
   17526               else
   17527                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
   17528               fi
   17529             fi
   17530                         additional_includedir=
   17531             case "$found_dir" in
   17532               */lib | */lib/)
   17533                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   17534                 additional_includedir="$basedir/include"
   17535                 ;;
   17536             esac
   17537             if test "X$additional_includedir" != "X"; then
   17538                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   17539                 haveit=
   17540                 if test "X$additional_includedir" = "X/usr/local/include"; then
   17541                   if test -n "$GCC"; then
   17542                     case $host_os in
   17543                       linux*) haveit=yes;;
   17544                     esac
   17545                   fi
   17546                 fi
   17547                 if test -z "$haveit"; then
   17548                   for x in $CPPFLAGS $INCBABELTRACE; do
   17549 
   17550   acl_save_prefix="$prefix"
   17551   prefix="$acl_final_prefix"
   17552   acl_save_exec_prefix="$exec_prefix"
   17553   exec_prefix="$acl_final_exec_prefix"
   17554   eval x=\"$x\"
   17555   exec_prefix="$acl_save_exec_prefix"
   17556   prefix="$acl_save_prefix"
   17557 
   17558                     if test "X$x" = "X-I$additional_includedir"; then
   17559                       haveit=yes
   17560                       break
   17561                     fi
   17562                   done
   17563                   if test -z "$haveit"; then
   17564                     if test -d "$additional_includedir"; then
   17565                                             INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
   17566                     fi
   17567                   fi
   17568                 fi
   17569               fi
   17570             fi
   17571                         if test -n "$found_la"; then
   17572                                                         save_libdir="$libdir"
   17573               case "$found_la" in
   17574                 */* | *\\*) . "$found_la" ;;
   17575                 *) . "./$found_la" ;;
   17576               esac
   17577               libdir="$save_libdir"
   17578                             for dep in $dependency_libs; do
   17579                 case "$dep" in
   17580                   -L*)
   17581                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   17582                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   17583                       haveit=
   17584                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   17585                         if test -n "$GCC"; then
   17586                           case $host_os in
   17587                             linux*) haveit=yes;;
   17588                           esac
   17589                         fi
   17590                       fi
   17591                       if test -z "$haveit"; then
   17592                         haveit=
   17593                         for x in $LDFLAGS $LIBBABELTRACE; do
   17594 
   17595   acl_save_prefix="$prefix"
   17596   prefix="$acl_final_prefix"
   17597   acl_save_exec_prefix="$exec_prefix"
   17598   exec_prefix="$acl_final_exec_prefix"
   17599   eval x=\"$x\"
   17600   exec_prefix="$acl_save_exec_prefix"
   17601   prefix="$acl_save_prefix"
   17602 
   17603                           if test "X$x" = "X-L$additional_libdir"; then
   17604                             haveit=yes
   17605                             break
   17606                           fi
   17607                         done
   17608                         if test -z "$haveit"; then
   17609                           if test -d "$additional_libdir"; then
   17610                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
   17611                           fi
   17612                         fi
   17613                         haveit=
   17614                         for x in $LDFLAGS $LTLIBBABELTRACE; do
   17615 
   17616   acl_save_prefix="$prefix"
   17617   prefix="$acl_final_prefix"
   17618   acl_save_exec_prefix="$exec_prefix"
   17619   exec_prefix="$acl_final_exec_prefix"
   17620   eval x=\"$x\"
   17621   exec_prefix="$acl_save_exec_prefix"
   17622   prefix="$acl_save_prefix"
   17623 
   17624                           if test "X$x" = "X-L$additional_libdir"; then
   17625                             haveit=yes
   17626                             break
   17627                           fi
   17628                         done
   17629                         if test -z "$haveit"; then
   17630                           if test -d "$additional_libdir"; then
   17631                                                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
   17632                           fi
   17633                         fi
   17634                       fi
   17635                     fi
   17636                     ;;
   17637                   -R*)
   17638                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   17639                     if test "$enable_rpath" != no; then
   17640                                                                   haveit=
   17641                       for x in $rpathdirs; do
   17642                         if test "X$x" = "X$dir"; then
   17643                           haveit=yes
   17644                           break
   17645                         fi
   17646                       done
   17647                       if test -z "$haveit"; then
   17648                         rpathdirs="$rpathdirs $dir"
   17649                       fi
   17650                                                                   haveit=
   17651                       for x in $ltrpathdirs; do
   17652                         if test "X$x" = "X$dir"; then
   17653                           haveit=yes
   17654                           break
   17655                         fi
   17656                       done
   17657                       if test -z "$haveit"; then
   17658                         ltrpathdirs="$ltrpathdirs $dir"
   17659                       fi
   17660                     fi
   17661                     ;;
   17662                   -l*)
   17663                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   17664                     ;;
   17665                   *.la)
   17666                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   17667                     ;;
   17668                   *)
   17669                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
   17670                     LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
   17671                     ;;
   17672                 esac
   17673               done
   17674             fi
   17675           else
   17676                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
   17677             LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
   17678           fi
   17679         fi
   17680       fi
   17681     done
   17682   done
   17683   if test "X$rpathdirs" != "X"; then
   17684     if test -n "$hardcode_libdir_separator"; then
   17685                         alldirs=
   17686       for found_dir in $rpathdirs; do
   17687         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   17688       done
   17689             acl_save_libdir="$libdir"
   17690       libdir="$alldirs"
   17691       eval flag=\"$hardcode_libdir_flag_spec\"
   17692       libdir="$acl_save_libdir"
   17693       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
   17694     else
   17695             for found_dir in $rpathdirs; do
   17696         acl_save_libdir="$libdir"
   17697         libdir="$found_dir"
   17698         eval flag=\"$hardcode_libdir_flag_spec\"
   17699         libdir="$acl_save_libdir"
   17700         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
   17701       done
   17702     fi
   17703   fi
   17704   if test "X$ltrpathdirs" != "X"; then
   17705             for found_dir in $ltrpathdirs; do
   17706       LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
   17707     done
   17708   fi
   17709 
   17710 
   17711         ac_save_CPPFLAGS="$CPPFLAGS"
   17712 
   17713   for element in $INCBABELTRACE; do
   17714     haveit=
   17715     for x in $CPPFLAGS; do
   17716 
   17717   acl_save_prefix="$prefix"
   17718   prefix="$acl_final_prefix"
   17719   acl_save_exec_prefix="$exec_prefix"
   17720   exec_prefix="$acl_final_exec_prefix"
   17721   eval x=\"$x\"
   17722   exec_prefix="$acl_save_exec_prefix"
   17723   prefix="$acl_save_prefix"
   17724 
   17725       if test "X$x" = "X$element"; then
   17726         haveit=yes
   17727         break
   17728       fi
   17729     done
   17730     if test -z "$haveit"; then
   17731       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   17732     fi
   17733   done
   17734 
   17735 
   17736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
   17737 $as_echo_n "checking for libbabeltrace... " >&6; }
   17738 if ${ac_cv_libbabeltrace+:} false; then :
   17739   $as_echo_n "(cached) " >&6
   17740 else
   17741 
   17742     ac_save_LIBS="$LIBS"
   17743     LIBS="$LIBS $LIBBABELTRACE"
   17744     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17745 /* end confdefs.h.  */
   17746 #include <babeltrace/babeltrace.h>
   17747 			 #include <babeltrace/ctf/events.h>
   17748 			 #include <babeltrace/ctf/iterator.h>
   17749 int
   17750 main ()
   17751 {
   17752 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
   17753 			struct bt_ctf_event *event = NULL;
   17754 			const struct bt_definition *scope;
   17755 
   17756 			pos->type = BT_SEEK_BEGIN;
   17757 			bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
   17758 			scope = bt_ctf_get_top_level_scope (event,
   17759 			      				   BT_STREAM_EVENT_HEADER);
   17760 		        bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
   17761 
   17762   ;
   17763   return 0;
   17764 }
   17765 _ACEOF
   17766 if ac_fn_c_try_link "$LINENO"; then :
   17767   ac_cv_libbabeltrace=yes
   17768 else
   17769   ac_cv_libbabeltrace=no
   17770 fi
   17771 rm -f core conftest.err conftest.$ac_objext \
   17772     conftest$ac_exeext conftest.$ac_ext
   17773     LIBS="$ac_save_LIBS"
   17774 
   17775 fi
   17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
   17777 $as_echo "$ac_cv_libbabeltrace" >&6; }
   17778   if test "$ac_cv_libbabeltrace" = yes; then
   17779     HAVE_LIBBABELTRACE=yes
   17780 
   17781 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
   17782 
   17783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
   17784 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
   17785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
   17786 $as_echo "$LIBBABELTRACE" >&6; }
   17787   else
   17788     HAVE_LIBBABELTRACE=no
   17789             CPPFLAGS="$ac_save_CPPFLAGS"
   17790     LIBBABELTRACE=
   17791     LTLIBBABELTRACE=
   17792   fi
   17793 
   17794 
   17795 
   17796 
   17797 
   17798 
   17799   CFLAGS=$saved_CFLAGS
   17800 
   17801   if test "$HAVE_LIBBABELTRACE" != yes; then
   17802      if test "$with_babeltrace" = yes; then
   17803        as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
   17804      else
   17805        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
   17806 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
   17807      fi
   17808   fi
   17809 fi
   17810 
   17811 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
   17812 # empty version.
   17813 
   17814 files=
   17815 links=
   17816 
   17817 rm -f nm.h
   17818 if test "${nativefile}" != ""; then
   17819     case "${nativefile}" in
   17820       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
   17821       * ) GDB_NM_FILE="${nativefile}"
   17822     esac
   17823     files="${files} ${GDB_NM_FILE}"
   17824     links="${links} nm.h"
   17825 
   17826 cat >>confdefs.h <<_ACEOF
   17827 #define GDB_NM_FILE "${GDB_NM_FILE}"
   17828 _ACEOF
   17829 
   17830 fi
   17831 
   17832 
   17833 for ac_prog in xsltproc
   17834 do
   17835   # Extract the first word of "$ac_prog", so it can be a program name with args.
   17836 set dummy $ac_prog; ac_word=$2
   17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17838 $as_echo_n "checking for $ac_word... " >&6; }
   17839 if ${ac_cv_path_XSLTPROC+:} false; then :
   17840   $as_echo_n "(cached) " >&6
   17841 else
   17842   case $XSLTPROC in
   17843   [\\/]* | ?:[\\/]*)
   17844   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   17845   ;;
   17846   *)
   17847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17848 for as_dir in $PATH
   17849 do
   17850   IFS=$as_save_IFS
   17851   test -z "$as_dir" && as_dir=.
   17852     for ac_exec_ext in '' $ac_executable_extensions; do
   17853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17854     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   17855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17856     break 2
   17857   fi
   17858 done
   17859   done
   17860 IFS=$as_save_IFS
   17861 
   17862   ;;
   17863 esac
   17864 fi
   17865 XSLTPROC=$ac_cv_path_XSLTPROC
   17866 if test -n "$XSLTPROC"; then
   17867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   17868 $as_echo "$XSLTPROC" >&6; }
   17869 else
   17870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17871 $as_echo "no" >&6; }
   17872 fi
   17873 
   17874 
   17875   test -n "$XSLTPROC" && break
   17876 done
   17877 test -n "$XSLTPROC" || XSLTPROC="missing"
   17878 
   17879 if test "x$USE_MAINTAINER_MODE" = xyes; then
   17880   if test "${XSLTPROC}" = missing; then
   17881     as_fn_error $? "unable to find xsltproc.  maintainer-mode requires xsltproc." "$LINENO" 5
   17882   fi
   17883 fi
   17884 
   17885 
   17886 ac_sources="$files"
   17887 ac_dests="$links"
   17888 while test -n "$ac_sources"; do
   17889   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
   17890   set $ac_sources; ac_source=$1; shift; ac_sources=$*
   17891   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
   17892 done
   17893 ac_config_links="$ac_config_links $ac_config_links_1"
   17894 
   17895 
   17896 
   17897 
   17898 
   17899 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
   17900 
   17901 
   17902 
   17903 # Check whether we will enable the inclusion of unit tests when
   17904 # compiling GDB.
   17905 #
   17906 # The default value of this option changes depending whether we're on
   17907 # development mode (in which case it's "true") or not (in which case
   17908 # it's "false").
   17909 # Check whether --enable-unit-tests was given.
   17910 if test "${enable_unit_tests+set}" = set; then :
   17911   enableval=$enable_unit_tests; case "${enableval}" in
   17912   yes)  enable_unittests=true  ;;
   17913   no)   enable_unittests=false ;;
   17914   *)    as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
   17915 esac
   17916 else
   17917   enable_unittests=$development
   17918 fi
   17919 
   17920 
   17921 if $enable_unittests; then
   17922 
   17923 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
   17924 
   17925 
   17926   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
   17927   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
   17928 
   17929 fi
   17930 
   17931 
   17932 
   17933   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
   17934   GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
   17935   if test "x$GDB_TRANSFORM_NAME" = x; then
   17936      GDB_TRANSFORM_NAME=gdb
   17937   fi
   17938 
   17939 
   17940 
   17941   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
   17942   GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
   17943   if test "x$GCORE_TRANSFORM_NAME" = x; then
   17944      GCORE_TRANSFORM_NAME=gcore
   17945   fi
   17946 
   17947 
   17948 ac_config_files="$ac_config_files gcore"
   17949 
   17950 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
   17951 
   17952 
   17953 cat >confcache <<\_ACEOF
   17954 # This file is a shell script that caches the results of configure
   17955 # tests run on this system so they can be shared between configure
   17956 # scripts and configure runs, see configure's option --config-cache.
   17957 # It is not useful on other systems.  If it contains results you don't
   17958 # want to keep, you may remove or edit it.
   17959 #
   17960 # config.status only pays attention to the cache file if you give it
   17961 # the --recheck option to rerun configure.
   17962 #
   17963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   17964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   17965 # following values.
   17966 
   17967 _ACEOF
   17968 
   17969 # The following way of writing the cache mishandles newlines in values,
   17970 # but we know of no workaround that is simple, portable, and efficient.
   17971 # So, we kill variables containing newlines.
   17972 # Ultrix sh set writes to stderr and can't be redirected directly,
   17973 # and sets the high bit in the cache file unless we assign to the vars.
   17974 (
   17975   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   17976     eval ac_val=\$$ac_var
   17977     case $ac_val in #(
   17978     *${as_nl}*)
   17979       case $ac_var in #(
   17980       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   17981 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   17982       esac
   17983       case $ac_var in #(
   17984       _ | IFS | as_nl) ;; #(
   17985       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   17986       *) { eval $ac_var=; unset $ac_var;} ;;
   17987       esac ;;
   17988     esac
   17989   done
   17990 
   17991   (set) 2>&1 |
   17992     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   17993     *${as_nl}ac_space=\ *)
   17994       # `set' does not quote correctly, so add quotes: double-quote
   17995       # substitution turns \\\\ into \\, and sed turns \\ into \.
   17996       sed -n \
   17997 	"s/'/'\\\\''/g;
   17998 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   17999       ;; #(
   18000     *)
   18001       # `set' quotes correctly as required by POSIX, so do not add quotes.
   18002       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   18003       ;;
   18004     esac |
   18005     sort
   18006 ) |
   18007   sed '
   18008      /^ac_cv_env_/b end
   18009      t clear
   18010      :clear
   18011      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   18012      t end
   18013      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   18014      :end' >>confcache
   18015 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   18016   if test -w "$cache_file"; then
   18017     if test "x$cache_file" != "x/dev/null"; then
   18018       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   18019 $as_echo "$as_me: updating cache $cache_file" >&6;}
   18020       if test ! -f "$cache_file" || test -h "$cache_file"; then
   18021 	cat confcache >"$cache_file"
   18022       else
   18023         case $cache_file in #(
   18024         */* | ?:*)
   18025 	  mv -f confcache "$cache_file"$$ &&
   18026 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   18027         *)
   18028 	  mv -f confcache "$cache_file" ;;
   18029 	esac
   18030       fi
   18031     fi
   18032   else
   18033     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   18034 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   18035   fi
   18036 fi
   18037 rm -f confcache
   18038 
   18039 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   18040 # Let make expand exec_prefix.
   18041 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   18042 
   18043 DEFS=-DHAVE_CONFIG_H
   18044 
   18045 ac_libobjs=
   18046 ac_ltlibobjs=
   18047 U=
   18048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   18049   # 1. Remove the extension, and $U if already installed.
   18050   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   18051   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   18052   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   18053   #    will be set to the directory where LIBOBJS objects are built.
   18054   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   18055   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   18056 done
   18057 LIBOBJS=$ac_libobjs
   18058 
   18059 LTLIBOBJS=$ac_ltlibobjs
   18060 
   18061 
   18062 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   18063   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
   18064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   18065 fi
   18066 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
   18067   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
   18068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   18069 fi
   18070 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
   18071   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
   18072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   18073 fi
   18074 
   18075 
   18076 : "${CONFIG_STATUS=./config.status}"
   18077 ac_write_fail=0
   18078 ac_clean_files_save=$ac_clean_files
   18079 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   18080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   18081 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   18082 as_write_fail=0
   18083 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   18084 #! $SHELL
   18085 # Generated by $as_me.
   18086 # Run this file to recreate the current configuration.
   18087 # Compiler output produced by configure, useful for debugging
   18088 # configure, is in config.log if it exists.
   18089 
   18090 debug=false
   18091 ac_cs_recheck=false
   18092 ac_cs_silent=false
   18093 
   18094 SHELL=\${CONFIG_SHELL-$SHELL}
   18095 export SHELL
   18096 _ASEOF
   18097 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   18098 ## -------------------- ##
   18099 ## M4sh Initialization. ##
   18100 ## -------------------- ##
   18101 
   18102 # Be more Bourne compatible
   18103 DUALCASE=1; export DUALCASE # for MKS sh
   18104 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   18105   emulate sh
   18106   NULLCMD=:
   18107   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   18108   # is contrary to our usage.  Disable this feature.
   18109   alias -g '${1+"$@"}'='"$@"'
   18110   setopt NO_GLOB_SUBST
   18111 else
   18112   case `(set -o) 2>/dev/null` in #(
   18113   *posix*) :
   18114     set -o posix ;; #(
   18115   *) :
   18116      ;;
   18117 esac
   18118 fi
   18119 
   18120 
   18121 as_nl='
   18122 '
   18123 export as_nl
   18124 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   18125 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   18126 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   18127 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   18128 # Prefer a ksh shell builtin over an external printf program on Solaris,
   18129 # but without wasting forks for bash or zsh.
   18130 if test -z "$BASH_VERSION$ZSH_VERSION" \
   18131     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   18132   as_echo='print -r --'
   18133   as_echo_n='print -rn --'
   18134 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   18135   as_echo='printf %s\n'
   18136   as_echo_n='printf %s'
   18137 else
   18138   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   18139     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   18140     as_echo_n='/usr/ucb/echo -n'
   18141   else
   18142     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   18143     as_echo_n_body='eval
   18144       arg=$1;
   18145       case $arg in #(
   18146       *"$as_nl"*)
   18147 	expr "X$arg" : "X\\(.*\\)$as_nl";
   18148 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   18149       esac;
   18150       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   18151     '
   18152     export as_echo_n_body
   18153     as_echo_n='sh -c $as_echo_n_body as_echo'
   18154   fi
   18155   export as_echo_body
   18156   as_echo='sh -c $as_echo_body as_echo'
   18157 fi
   18158 
   18159 # The user is always right.
   18160 if test "${PATH_SEPARATOR+set}" != set; then
   18161   PATH_SEPARATOR=:
   18162   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   18163     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   18164       PATH_SEPARATOR=';'
   18165   }
   18166 fi
   18167 
   18168 
   18169 # IFS
   18170 # We need space, tab and new line, in precisely that order.  Quoting is
   18171 # there to prevent editors from complaining about space-tab.
   18172 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   18173 # splitting by setting IFS to empty value.)
   18174 IFS=" ""	$as_nl"
   18175 
   18176 # Find who we are.  Look in the path if we contain no directory separator.
   18177 as_myself=
   18178 case $0 in #((
   18179   *[\\/]* ) as_myself=$0 ;;
   18180   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18181 for as_dir in $PATH
   18182 do
   18183   IFS=$as_save_IFS
   18184   test -z "$as_dir" && as_dir=.
   18185     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   18186   done
   18187 IFS=$as_save_IFS
   18188 
   18189      ;;
   18190 esac
   18191 # We did not find ourselves, most probably we were run as `sh COMMAND'
   18192 # in which case we are not to be found in the path.
   18193 if test "x$as_myself" = x; then
   18194   as_myself=$0
   18195 fi
   18196 if test ! -f "$as_myself"; then
   18197   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   18198   exit 1
   18199 fi
   18200 
   18201 # Unset variables that we do not need and which cause bugs (e.g. in
   18202 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   18203 # suppresses any "Segmentation fault" message there.  '((' could
   18204 # trigger a bug in pdksh 5.2.14.
   18205 for as_var in BASH_ENV ENV MAIL MAILPATH
   18206 do eval test x\${$as_var+set} = xset \
   18207   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   18208 done
   18209 PS1='$ '
   18210 PS2='> '
   18211 PS4='+ '
   18212 
   18213 # NLS nuisances.
   18214 LC_ALL=C
   18215 export LC_ALL
   18216 LANGUAGE=C
   18217 export LANGUAGE
   18218 
   18219 # CDPATH.
   18220 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   18221 
   18222 
   18223 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   18224 # ----------------------------------------
   18225 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   18226 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   18227 # script with STATUS, using 1 if that was 0.
   18228 as_fn_error ()
   18229 {
   18230   as_status=$1; test $as_status -eq 0 && as_status=1
   18231   if test "$4"; then
   18232     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   18233     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   18234   fi
   18235   $as_echo "$as_me: error: $2" >&2
   18236   as_fn_exit $as_status
   18237 } # as_fn_error
   18238 
   18239 
   18240 # as_fn_set_status STATUS
   18241 # -----------------------
   18242 # Set $? to STATUS, without forking.
   18243 as_fn_set_status ()
   18244 {
   18245   return $1
   18246 } # as_fn_set_status
   18247 
   18248 # as_fn_exit STATUS
   18249 # -----------------
   18250 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   18251 as_fn_exit ()
   18252 {
   18253   set +e
   18254   as_fn_set_status $1
   18255   exit $1
   18256 } # as_fn_exit
   18257 
   18258 # as_fn_unset VAR
   18259 # ---------------
   18260 # Portably unset VAR.
   18261 as_fn_unset ()
   18262 {
   18263   { eval $1=; unset $1;}
   18264 }
   18265 as_unset=as_fn_unset
   18266 # as_fn_append VAR VALUE
   18267 # ----------------------
   18268 # Append the text in VALUE to the end of the definition contained in VAR. Take
   18269 # advantage of any shell optimizations that allow amortized linear growth over
   18270 # repeated appends, instead of the typical quadratic growth present in naive
   18271 # implementations.
   18272 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   18273   eval 'as_fn_append ()
   18274   {
   18275     eval $1+=\$2
   18276   }'
   18277 else
   18278   as_fn_append ()
   18279   {
   18280     eval $1=\$$1\$2
   18281   }
   18282 fi # as_fn_append
   18283 
   18284 # as_fn_arith ARG...
   18285 # ------------------
   18286 # Perform arithmetic evaluation on the ARGs, and store the result in the
   18287 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   18288 # must be portable across $(()) and expr.
   18289 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   18290   eval 'as_fn_arith ()
   18291   {
   18292     as_val=$(( $* ))
   18293   }'
   18294 else
   18295   as_fn_arith ()
   18296   {
   18297     as_val=`expr "$@" || test $? -eq 1`
   18298   }
   18299 fi # as_fn_arith
   18300 
   18301 
   18302 if expr a : '\(a\)' >/dev/null 2>&1 &&
   18303    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   18304   as_expr=expr
   18305 else
   18306   as_expr=false
   18307 fi
   18308 
   18309 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   18310   as_basename=basename
   18311 else
   18312   as_basename=false
   18313 fi
   18314 
   18315 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   18316   as_dirname=dirname
   18317 else
   18318   as_dirname=false
   18319 fi
   18320 
   18321 as_me=`$as_basename -- "$0" ||
   18322 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   18323 	 X"$0" : 'X\(//\)$' \| \
   18324 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   18325 $as_echo X/"$0" |
   18326     sed '/^.*\/\([^/][^/]*\)\/*$/{
   18327 	    s//\1/
   18328 	    q
   18329 	  }
   18330 	  /^X\/\(\/\/\)$/{
   18331 	    s//\1/
   18332 	    q
   18333 	  }
   18334 	  /^X\/\(\/\).*/{
   18335 	    s//\1/
   18336 	    q
   18337 	  }
   18338 	  s/.*/./; q'`
   18339 
   18340 # Avoid depending upon Character Ranges.
   18341 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   18342 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   18343 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   18344 as_cr_digits='0123456789'
   18345 as_cr_alnum=$as_cr_Letters$as_cr_digits
   18346 
   18347 ECHO_C= ECHO_N= ECHO_T=
   18348 case `echo -n x` in #(((((
   18349 -n*)
   18350   case `echo 'xy\c'` in
   18351   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   18352   xy)  ECHO_C='\c';;
   18353   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   18354        ECHO_T='	';;
   18355   esac;;
   18356 *)
   18357   ECHO_N='-n';;
   18358 esac
   18359 
   18360 rm -f conf$$ conf$$.exe conf$$.file
   18361 if test -d conf$$.dir; then
   18362   rm -f conf$$.dir/conf$$.file
   18363 else
   18364   rm -f conf$$.dir
   18365   mkdir conf$$.dir 2>/dev/null
   18366 fi
   18367 if (echo >conf$$.file) 2>/dev/null; then
   18368   if ln -s conf$$.file conf$$ 2>/dev/null; then
   18369     as_ln_s='ln -s'
   18370     # ... but there are two gotchas:
   18371     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   18372     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   18373     # In both cases, we have to default to `cp -pR'.
   18374     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   18375       as_ln_s='cp -pR'
   18376   elif ln conf$$.file conf$$ 2>/dev/null; then
   18377     as_ln_s=ln
   18378   else
   18379     as_ln_s='cp -pR'
   18380   fi
   18381 else
   18382   as_ln_s='cp -pR'
   18383 fi
   18384 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   18385 rmdir conf$$.dir 2>/dev/null
   18386 
   18387 
   18388 # as_fn_mkdir_p
   18389 # -------------
   18390 # Create "$as_dir" as a directory, including parents if necessary.
   18391 as_fn_mkdir_p ()
   18392 {
   18393 
   18394   case $as_dir in #(
   18395   -*) as_dir=./$as_dir;;
   18396   esac
   18397   test -d "$as_dir" || eval $as_mkdir_p || {
   18398     as_dirs=
   18399     while :; do
   18400       case $as_dir in #(
   18401       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   18402       *) as_qdir=$as_dir;;
   18403       esac
   18404       as_dirs="'$as_qdir' $as_dirs"
   18405       as_dir=`$as_dirname -- "$as_dir" ||
   18406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   18407 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   18408 	 X"$as_dir" : 'X\(//\)$' \| \
   18409 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   18410 $as_echo X"$as_dir" |
   18411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   18412 	    s//\1/
   18413 	    q
   18414 	  }
   18415 	  /^X\(\/\/\)[^/].*/{
   18416 	    s//\1/
   18417 	    q
   18418 	  }
   18419 	  /^X\(\/\/\)$/{
   18420 	    s//\1/
   18421 	    q
   18422 	  }
   18423 	  /^X\(\/\).*/{
   18424 	    s//\1/
   18425 	    q
   18426 	  }
   18427 	  s/.*/./; q'`
   18428       test -d "$as_dir" && break
   18429     done
   18430     test -z "$as_dirs" || eval "mkdir $as_dirs"
   18431   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   18432 
   18433 
   18434 } # as_fn_mkdir_p
   18435 if mkdir -p . 2>/dev/null; then
   18436   as_mkdir_p='mkdir -p "$as_dir"'
   18437 else
   18438   test -d ./-p && rmdir ./-p
   18439   as_mkdir_p=false
   18440 fi
   18441 
   18442 
   18443 # as_fn_executable_p FILE
   18444 # -----------------------
   18445 # Test if FILE is an executable regular file.
   18446 as_fn_executable_p ()
   18447 {
   18448   test -f "$1" && test -x "$1"
   18449 } # as_fn_executable_p
   18450 as_test_x='test -x'
   18451 as_executable_p=as_fn_executable_p
   18452 
   18453 # Sed expression to map a string onto a valid CPP name.
   18454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   18455 
   18456 # Sed expression to map a string onto a valid variable name.
   18457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   18458 
   18459 
   18460 exec 6>&1
   18461 ## ----------------------------------- ##
   18462 ## Main body of $CONFIG_STATUS script. ##
   18463 ## ----------------------------------- ##
   18464 _ASEOF
   18465 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   18466 
   18467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18468 # Save the log message, to keep $0 and so on meaningful, and to
   18469 # report actual input values of CONFIG_FILES etc. instead of their
   18470 # values after options handling.
   18471 ac_log="
   18472 This file was extended by $as_me, which was
   18473 generated by GNU Autoconf 2.69.  Invocation command line was
   18474 
   18475   CONFIG_FILES    = $CONFIG_FILES
   18476   CONFIG_HEADERS  = $CONFIG_HEADERS
   18477   CONFIG_LINKS    = $CONFIG_LINKS
   18478   CONFIG_COMMANDS = $CONFIG_COMMANDS
   18479   $ $0 $@
   18480 
   18481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   18482 "
   18483 
   18484 _ACEOF
   18485 
   18486 case $ac_config_files in *"
   18487 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   18488 esac
   18489 
   18490 case $ac_config_headers in *"
   18491 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   18492 esac
   18493 
   18494 
   18495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18496 # Files that config.status was made for.
   18497 config_files="$ac_config_files"
   18498 config_headers="$ac_config_headers"
   18499 config_links="$ac_config_links"
   18500 config_commands="$ac_config_commands"
   18501 
   18502 _ACEOF
   18503 
   18504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18505 ac_cs_usage="\
   18506 \`$as_me' instantiates files and other configuration actions
   18507 from templates according to the current configuration.  Unless the files
   18508 and actions are specified as TAGs, all are instantiated by default.
   18509 
   18510 Usage: $0 [OPTION]... [TAG]...
   18511 
   18512   -h, --help       print this help, then exit
   18513   -V, --version    print version number and configuration settings, then exit
   18514       --config     print configuration, then exit
   18515   -q, --quiet, --silent
   18516                    do not print progress messages
   18517   -d, --debug      don't remove temporary files
   18518       --recheck    update $as_me by reconfiguring in the same conditions
   18519       --file=FILE[:TEMPLATE]
   18520                    instantiate the configuration file FILE
   18521       --header=FILE[:TEMPLATE]
   18522                    instantiate the configuration header FILE
   18523 
   18524 Configuration files:
   18525 $config_files
   18526 
   18527 Configuration headers:
   18528 $config_headers
   18529 
   18530 Configuration links:
   18531 $config_links
   18532 
   18533 Configuration commands:
   18534 $config_commands
   18535 
   18536 Report bugs to the package provider."
   18537 
   18538 _ACEOF
   18539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18540 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   18541 ac_cs_version="\\
   18542 config.status
   18543 configured by $0, generated by GNU Autoconf 2.69,
   18544   with options \\"\$ac_cs_config\\"
   18545 
   18546 Copyright (C) 2012 Free Software Foundation, Inc.
   18547 This config.status script is free software; the Free Software Foundation
   18548 gives unlimited permission to copy, distribute and modify it."
   18549 
   18550 ac_pwd='$ac_pwd'
   18551 srcdir='$srcdir'
   18552 INSTALL='$INSTALL'
   18553 AWK='$AWK'
   18554 test -n "\$AWK" || AWK=awk
   18555 _ACEOF
   18556 
   18557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18558 # The default lists apply if the user does not specify any file.
   18559 ac_need_defaults=:
   18560 while test $# != 0
   18561 do
   18562   case $1 in
   18563   --*=?*)
   18564     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   18565     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   18566     ac_shift=:
   18567     ;;
   18568   --*=)
   18569     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   18570     ac_optarg=
   18571     ac_shift=:
   18572     ;;
   18573   *)
   18574     ac_option=$1
   18575     ac_optarg=$2
   18576     ac_shift=shift
   18577     ;;
   18578   esac
   18579 
   18580   case $ac_option in
   18581   # Handling of the options.
   18582   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   18583     ac_cs_recheck=: ;;
   18584   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   18585     $as_echo "$ac_cs_version"; exit ;;
   18586   --config | --confi | --conf | --con | --co | --c )
   18587     $as_echo "$ac_cs_config"; exit ;;
   18588   --debug | --debu | --deb | --de | --d | -d )
   18589     debug=: ;;
   18590   --file | --fil | --fi | --f )
   18591     $ac_shift
   18592     case $ac_optarg in
   18593     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   18594     '') as_fn_error $? "missing file argument" ;;
   18595     esac
   18596     as_fn_append CONFIG_FILES " '$ac_optarg'"
   18597     ac_need_defaults=false;;
   18598   --header | --heade | --head | --hea )
   18599     $ac_shift
   18600     case $ac_optarg in
   18601     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   18602     esac
   18603     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   18604     ac_need_defaults=false;;
   18605   --he | --h)
   18606     # Conflict between --help and --header
   18607     as_fn_error $? "ambiguous option: \`$1'
   18608 Try \`$0 --help' for more information.";;
   18609   --help | --hel | -h )
   18610     $as_echo "$ac_cs_usage"; exit ;;
   18611   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   18612   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   18613     ac_cs_silent=: ;;
   18614 
   18615   # This is an error.
   18616   -*) as_fn_error $? "unrecognized option: \`$1'
   18617 Try \`$0 --help' for more information." ;;
   18618 
   18619   *) as_fn_append ac_config_targets " $1"
   18620      ac_need_defaults=false ;;
   18621 
   18622   esac
   18623   shift
   18624 done
   18625 
   18626 ac_configure_extra_args=
   18627 
   18628 if $ac_cs_silent; then
   18629   exec 6>/dev/null
   18630   ac_configure_extra_args="$ac_configure_extra_args --silent"
   18631 fi
   18632 
   18633 _ACEOF
   18634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18635 if \$ac_cs_recheck; then
   18636   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   18637   shift
   18638   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   18639   CONFIG_SHELL='$SHELL'
   18640   export CONFIG_SHELL
   18641   exec "\$@"
   18642 fi
   18643 
   18644 _ACEOF
   18645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18646 exec 5>>config.log
   18647 {
   18648   echo
   18649   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   18650 ## Running $as_me. ##
   18651 _ASBOX
   18652   $as_echo "$ac_log"
   18653 } >&5
   18654 
   18655 _ACEOF
   18656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18657 #
   18658 # INIT-COMMANDS
   18659 #
   18660 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
   18661 
   18662 _ACEOF
   18663 
   18664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18665 
   18666 # Handling of arguments.
   18667 for ac_config_target in $ac_config_targets
   18668 do
   18669   case $ac_config_target in
   18670     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
   18671     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
   18672     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
   18673     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
   18674     "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
   18675     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   18676     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
   18677     "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
   18678     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   18679     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
   18680 
   18681   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   18682   esac
   18683 done
   18684 
   18685 
   18686 # If the user did not use the arguments to specify the items to instantiate,
   18687 # then the envvar interface is used.  Set only those that are not.
   18688 # We use the long form for the default assignment because of an extremely
   18689 # bizarre bug on SunOS 4.1.3.
   18690 if $ac_need_defaults; then
   18691   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   18692   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   18693   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
   18694   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   18695 fi
   18696 
   18697 # Have a temporary directory for convenience.  Make it in the build tree
   18698 # simply because there is no reason against having it here, and in addition,
   18699 # creating and moving files from /tmp can sometimes cause problems.
   18700 # Hook for its removal unless debugging.
   18701 # Note that there is a small window in which the directory will not be cleaned:
   18702 # after its creation but before its name has been assigned to `$tmp'.
   18703 $debug ||
   18704 {
   18705   tmp= ac_tmp=
   18706   trap 'exit_status=$?
   18707   : "${ac_tmp:=$tmp}"
   18708   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   18709 ' 0
   18710   trap 'as_fn_exit 1' 1 2 13 15
   18711 }
   18712 # Create a (secure) tmp directory for tmp files.
   18713 
   18714 {
   18715   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   18716   test -d "$tmp"
   18717 }  ||
   18718 {
   18719   tmp=./conf$$-$RANDOM
   18720   (umask 077 && mkdir "$tmp")
   18721 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   18722 ac_tmp=$tmp
   18723 
   18724 # Set up the scripts for CONFIG_FILES section.
   18725 # No need to generate them if there are no CONFIG_FILES.
   18726 # This happens for instance with `./config.status config.h'.
   18727 if test -n "$CONFIG_FILES"; then
   18728 
   18729 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   18730   ac_cs_awk_getline=:
   18731   ac_cs_awk_pipe_init=
   18732   ac_cs_awk_read_file='
   18733       while ((getline aline < (F[key])) > 0)
   18734 	print(aline)
   18735       close(F[key])'
   18736   ac_cs_awk_pipe_fini=
   18737 else
   18738   ac_cs_awk_getline=false
   18739   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   18740   ac_cs_awk_read_file='
   18741       print "|#_!!_#|"
   18742       print "cat " F[key] " &&"
   18743       '$ac_cs_awk_pipe_init
   18744   # The final `:' finishes the AND list.
   18745   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   18746 fi
   18747 ac_cr=`echo X | tr X '\015'`
   18748 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   18749 # But we know of no other shell where ac_cr would be empty at this
   18750 # point, so we can use a bashism as a fallback.
   18751 if test "x$ac_cr" = x; then
   18752   eval ac_cr=\$\'\\r\'
   18753 fi
   18754 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   18755 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   18756   ac_cs_awk_cr='\\r'
   18757 else
   18758   ac_cs_awk_cr=$ac_cr
   18759 fi
   18760 
   18761 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   18762 _ACEOF
   18763 
   18764 # Create commands to substitute file output variables.
   18765 {
   18766   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   18767   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   18768   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   18769   echo "_ACAWK" &&
   18770   echo "_ACEOF"
   18771 } >conf$$files.sh &&
   18772 . ./conf$$files.sh ||
   18773   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   18774 rm -f conf$$files.sh
   18775 
   18776 {
   18777   echo "cat >conf$$subs.awk <<_ACEOF" &&
   18778   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   18779   echo "_ACEOF"
   18780 } >conf$$subs.sh ||
   18781   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   18782 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   18783 ac_delim='%!_!# '
   18784 for ac_last_try in false false false false false :; do
   18785   . ./conf$$subs.sh ||
   18786     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   18787 
   18788   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   18789   if test $ac_delim_n = $ac_delim_num; then
   18790     break
   18791   elif $ac_last_try; then
   18792     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   18793   else
   18794     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   18795   fi
   18796 done
   18797 rm -f conf$$subs.sh
   18798 
   18799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18800 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   18801 _ACEOF
   18802 sed -n '
   18803 h
   18804 s/^/S["/; s/!.*/"]=/
   18805 p
   18806 g
   18807 s/^[^!]*!//
   18808 :repl
   18809 t repl
   18810 s/'"$ac_delim"'$//
   18811 t delim
   18812 :nl
   18813 h
   18814 s/\(.\{148\}\)..*/\1/
   18815 t more1
   18816 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   18817 p
   18818 n
   18819 b repl
   18820 :more1
   18821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   18822 p
   18823 g
   18824 s/.\{148\}//
   18825 t nl
   18826 :delim
   18827 h
   18828 s/\(.\{148\}\)..*/\1/
   18829 t more2
   18830 s/["\\]/\\&/g; s/^/"/; s/$/"/
   18831 p
   18832 b
   18833 :more2
   18834 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   18835 p
   18836 g
   18837 s/.\{148\}//
   18838 t delim
   18839 ' <conf$$subs.awk | sed '
   18840 /^[^""]/{
   18841   N
   18842   s/\n//
   18843 }
   18844 ' >>$CONFIG_STATUS || ac_write_fail=1
   18845 rm -f conf$$subs.awk
   18846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18847 _ACAWK
   18848 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   18849   for (key in S) S_is_set[key] = 1
   18850   FS = ""
   18851   \$ac_cs_awk_pipe_init
   18852 }
   18853 {
   18854   line = $ 0
   18855   nfields = split(line, field, "@")
   18856   substed = 0
   18857   len = length(field[1])
   18858   for (i = 2; i < nfields; i++) {
   18859     key = field[i]
   18860     keylen = length(key)
   18861     if (S_is_set[key]) {
   18862       value = S[key]
   18863       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   18864       len += length(value) + length(field[++i])
   18865       substed = 1
   18866     } else
   18867       len += 1 + keylen
   18868   }
   18869   if (nfields == 3 && !substed) {
   18870     key = field[2]
   18871     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   18872       \$ac_cs_awk_read_file
   18873       next
   18874     }
   18875   }
   18876   print line
   18877 }
   18878 \$ac_cs_awk_pipe_fini
   18879 _ACAWK
   18880 _ACEOF
   18881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18882 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   18883   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   18884 else
   18885   cat
   18886 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   18887   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   18888 _ACEOF
   18889 
   18890 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   18891 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   18892 # trailing colons and then remove the whole line if VPATH becomes empty
   18893 # (actually we leave an empty line to preserve line numbers).
   18894 if test "x$srcdir" = x.; then
   18895   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   18896 h
   18897 s///
   18898 s/^/:/
   18899 s/[	 ]*$/:/
   18900 s/:\$(srcdir):/:/g
   18901 s/:\${srcdir}:/:/g
   18902 s/:@srcdir@:/:/g
   18903 s/^:*//
   18904 s/:*$//
   18905 x
   18906 s/\(=[	 ]*\).*/\1/
   18907 G
   18908 s/\n//
   18909 s/^[^=]*=[	 ]*$//
   18910 }'
   18911 fi
   18912 
   18913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18914 fi # test -n "$CONFIG_FILES"
   18915 
   18916 # Set up the scripts for CONFIG_HEADERS section.
   18917 # No need to generate them if there are no CONFIG_HEADERS.
   18918 # This happens for instance with `./config.status Makefile'.
   18919 if test -n "$CONFIG_HEADERS"; then
   18920 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   18921 BEGIN {
   18922 _ACEOF
   18923 
   18924 # Transform confdefs.h into an awk script `defines.awk', embedded as
   18925 # here-document in config.status, that substitutes the proper values into
   18926 # config.h.in to produce config.h.
   18927 
   18928 # Create a delimiter string that does not exist in confdefs.h, to ease
   18929 # handling of long lines.
   18930 ac_delim='%!_!# '
   18931 for ac_last_try in false false :; do
   18932   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   18933   if test -z "$ac_tt"; then
   18934     break
   18935   elif $ac_last_try; then
   18936     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   18937   else
   18938     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   18939   fi
   18940 done
   18941 
   18942 # For the awk script, D is an array of macro values keyed by name,
   18943 # likewise P contains macro parameters if any.  Preserve backslash
   18944 # newline sequences.
   18945 
   18946 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   18947 sed -n '
   18948 s/.\{148\}/&'"$ac_delim"'/g
   18949 t rset
   18950 :rset
   18951 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   18952 t def
   18953 d
   18954 :def
   18955 s/\\$//
   18956 t bsnl
   18957 s/["\\]/\\&/g
   18958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   18959 D["\1"]=" \3"/p
   18960 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   18961 d
   18962 :bsnl
   18963 s/["\\]/\\&/g
   18964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   18965 D["\1"]=" \3\\\\\\n"\\/p
   18966 t cont
   18967 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   18968 t cont
   18969 d
   18970 :cont
   18971 n
   18972 s/.\{148\}/&'"$ac_delim"'/g
   18973 t clear
   18974 :clear
   18975 s/\\$//
   18976 t bsnlc
   18977 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   18978 d
   18979 :bsnlc
   18980 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   18981 b cont
   18982 ' <confdefs.h | sed '
   18983 s/'"$ac_delim"'/"\\\
   18984 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   18985 
   18986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18987   for (key in D) D_is_set[key] = 1
   18988   FS = ""
   18989 }
   18990 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   18991   line = \$ 0
   18992   split(line, arg, " ")
   18993   if (arg[1] == "#") {
   18994     defundef = arg[2]
   18995     mac1 = arg[3]
   18996   } else {
   18997     defundef = substr(arg[1], 2)
   18998     mac1 = arg[2]
   18999   }
   19000   split(mac1, mac2, "(") #)
   19001   macro = mac2[1]
   19002   prefix = substr(line, 1, index(line, defundef) - 1)
   19003   if (D_is_set[macro]) {
   19004     # Preserve the white space surrounding the "#".
   19005     print prefix "define", macro P[macro] D[macro]
   19006     next
   19007   } else {
   19008     # Replace #undef with comments.  This is necessary, for example,
   19009     # in the case of _POSIX_SOURCE, which is predefined and required
   19010     # on some systems where configure will not decide to define it.
   19011     if (defundef == "undef") {
   19012       print "/*", prefix defundef, macro, "*/"
   19013       next
   19014     }
   19015   }
   19016 }
   19017 { print }
   19018 _ACAWK
   19019 _ACEOF
   19020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19021   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   19022 fi # test -n "$CONFIG_HEADERS"
   19023 
   19024 
   19025 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
   19026 shift
   19027 for ac_tag
   19028 do
   19029   case $ac_tag in
   19030   :[FHLC]) ac_mode=$ac_tag; continue;;
   19031   esac
   19032   case $ac_mode$ac_tag in
   19033   :[FHL]*:*);;
   19034   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   19035   :[FH]-) ac_tag=-:-;;
   19036   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   19037   esac
   19038   ac_save_IFS=$IFS
   19039   IFS=:
   19040   set x $ac_tag
   19041   IFS=$ac_save_IFS
   19042   shift
   19043   ac_file=$1
   19044   shift
   19045 
   19046   case $ac_mode in
   19047   :L) ac_source=$1;;
   19048   :[FH])
   19049     ac_file_inputs=
   19050     for ac_f
   19051     do
   19052       case $ac_f in
   19053       -) ac_f="$ac_tmp/stdin";;
   19054       *) # Look for the file first in the build tree, then in the source tree
   19055 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   19056 	 # because $ac_f cannot contain `:'.
   19057 	 test -f "$ac_f" ||
   19058 	   case $ac_f in
   19059 	   [\\/$]*) false;;
   19060 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   19061 	   esac ||
   19062 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   19063       esac
   19064       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   19065       as_fn_append ac_file_inputs " '$ac_f'"
   19066     done
   19067 
   19068     # Let's still pretend it is `configure' which instantiates (i.e., don't
   19069     # use $as_me), people would be surprised to read:
   19070     #    /* config.h.  Generated by config.status.  */
   19071     configure_input='Generated from '`
   19072 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   19073 	`' by configure.'
   19074     if test x"$ac_file" != x-; then
   19075       configure_input="$ac_file.  $configure_input"
   19076       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   19077 $as_echo "$as_me: creating $ac_file" >&6;}
   19078     fi
   19079     # Neutralize special characters interpreted by sed in replacement strings.
   19080     case $configure_input in #(
   19081     *\&* | *\|* | *\\* )
   19082        ac_sed_conf_input=`$as_echo "$configure_input" |
   19083        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   19084     *) ac_sed_conf_input=$configure_input;;
   19085     esac
   19086 
   19087     case $ac_tag in
   19088     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   19089       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   19090     esac
   19091     ;;
   19092   esac
   19093 
   19094   ac_dir=`$as_dirname -- "$ac_file" ||
   19095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   19096 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   19097 	 X"$ac_file" : 'X\(//\)$' \| \
   19098 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   19099 $as_echo X"$ac_file" |
   19100     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   19101 	    s//\1/
   19102 	    q
   19103 	  }
   19104 	  /^X\(\/\/\)[^/].*/{
   19105 	    s//\1/
   19106 	    q
   19107 	  }
   19108 	  /^X\(\/\/\)$/{
   19109 	    s//\1/
   19110 	    q
   19111 	  }
   19112 	  /^X\(\/\).*/{
   19113 	    s//\1/
   19114 	    q
   19115 	  }
   19116 	  s/.*/./; q'`
   19117   as_dir="$ac_dir"; as_fn_mkdir_p
   19118   ac_builddir=.
   19119 
   19120 case "$ac_dir" in
   19121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   19122 *)
   19123   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   19124   # A ".." for each directory in $ac_dir_suffix.
   19125   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   19126   case $ac_top_builddir_sub in
   19127   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   19128   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   19129   esac ;;
   19130 esac
   19131 ac_abs_top_builddir=$ac_pwd
   19132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   19133 # for backward compatibility:
   19134 ac_top_builddir=$ac_top_build_prefix
   19135 
   19136 case $srcdir in
   19137   .)  # We are building in place.
   19138     ac_srcdir=.
   19139     ac_top_srcdir=$ac_top_builddir_sub
   19140     ac_abs_top_srcdir=$ac_pwd ;;
   19141   [\\/]* | ?:[\\/]* )  # Absolute name.
   19142     ac_srcdir=$srcdir$ac_dir_suffix;
   19143     ac_top_srcdir=$srcdir
   19144     ac_abs_top_srcdir=$srcdir ;;
   19145   *) # Relative name.
   19146     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   19147     ac_top_srcdir=$ac_top_build_prefix$srcdir
   19148     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   19149 esac
   19150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   19151 
   19152 
   19153   case $ac_mode in
   19154   :F)
   19155   #
   19156   # CONFIG_FILE
   19157   #
   19158 
   19159   case $INSTALL in
   19160   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   19161   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   19162   esac
   19163 _ACEOF
   19164 
   19165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19166 # If the template does not know about datarootdir, expand it.
   19167 # FIXME: This hack should be removed a few years after 2.60.
   19168 ac_datarootdir_hack=; ac_datarootdir_seen=
   19169 ac_sed_dataroot='
   19170 /datarootdir/ {
   19171   p
   19172   q
   19173 }
   19174 /@datadir@/p
   19175 /@docdir@/p
   19176 /@infodir@/p
   19177 /@localedir@/p
   19178 /@mandir@/p'
   19179 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   19180 *datarootdir*) ac_datarootdir_seen=yes;;
   19181 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   19182   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   19183 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   19184 _ACEOF
   19185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   19186   ac_datarootdir_hack='
   19187   s&@datadir@&$datadir&g
   19188   s&@docdir@&$docdir&g
   19189   s&@infodir@&$infodir&g
   19190   s&@localedir@&$localedir&g
   19191   s&@mandir@&$mandir&g
   19192   s&\\\${datarootdir}&$datarootdir&g' ;;
   19193 esac
   19194 _ACEOF
   19195 
   19196 # Neutralize VPATH when `$srcdir' = `.'.
   19197 # Shell code in configure.ac might set extrasub.
   19198 # FIXME: do we really want to maintain this feature?
   19199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   19200 ac_sed_extra="$ac_vpsub
   19201 $extrasub
   19202 _ACEOF
   19203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   19204 :t
   19205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   19206 s|@configure_input@|$ac_sed_conf_input|;t t
   19207 s&@top_builddir@&$ac_top_builddir_sub&;t t
   19208 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   19209 s&@srcdir@&$ac_srcdir&;t t
   19210 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   19211 s&@top_srcdir@&$ac_top_srcdir&;t t
   19212 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   19213 s&@builddir@&$ac_builddir&;t t
   19214 s&@abs_builddir@&$ac_abs_builddir&;t t
   19215 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   19216 s&@INSTALL@&$ac_INSTALL&;t t
   19217 $ac_datarootdir_hack
   19218 "
   19219 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   19220 if $ac_cs_awk_getline; then
   19221   $AWK -f "$ac_tmp/subs.awk"
   19222 else
   19223   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   19224 fi \
   19225   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   19226 
   19227 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   19228   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   19229   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   19230       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   19231   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   19232 which seems to be undefined.  Please make sure it is defined" >&5
   19233 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   19234 which seems to be undefined.  Please make sure it is defined" >&2;}
   19235 
   19236   rm -f "$ac_tmp/stdin"
   19237   case $ac_file in
   19238   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   19239   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   19240   esac \
   19241   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   19242  ;;
   19243   :H)
   19244   #
   19245   # CONFIG_HEADER
   19246   #
   19247   if test x"$ac_file" != x-; then
   19248     {
   19249       $as_echo "/* $configure_input  */" \
   19250       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   19251     } >"$ac_tmp/config.h" \
   19252       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   19253     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   19254       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   19255 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   19256     else
   19257       rm -f "$ac_file"
   19258       mv "$ac_tmp/config.h" "$ac_file" \
   19259 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   19260     fi
   19261   else
   19262     $as_echo "/* $configure_input  */" \
   19263       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   19264       || as_fn_error $? "could not create -" "$LINENO" 5
   19265   fi
   19266  ;;
   19267   :L)
   19268   #
   19269   # CONFIG_LINK
   19270   #
   19271 
   19272   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
   19273     :
   19274   else
   19275     # Prefer the file from the source tree if names are identical.
   19276     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
   19277       ac_source=$srcdir/$ac_source
   19278     fi
   19279 
   19280     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
   19281 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
   19282 
   19283     if test ! -r "$ac_source"; then
   19284       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
   19285     fi
   19286     rm -f "$ac_file"
   19287 
   19288     # Try a relative symlink, then a hard link, then a copy.
   19289     case $ac_source in
   19290     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
   19291 	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
   19292     esac
   19293     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
   19294       ln "$ac_source" "$ac_file" 2>/dev/null ||
   19295       cp -p "$ac_source" "$ac_file" ||
   19296       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
   19297   fi
   19298  ;;
   19299   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   19300 $as_echo "$as_me: executing $ac_file commands" >&6;}
   19301  ;;
   19302   esac
   19303 
   19304 
   19305   case $ac_file$ac_mode in
   19306     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
   19307     "gcore":F) chmod +x gcore ;;
   19308     "Makefile":F)
   19309 case x$CONFIG_HEADERS in
   19310 xconfig.h:config.in)
   19311 echo > stamp-h ;;
   19312 esac
   19313  ;;
   19314     "gdb-gdb.gdb":F)
   19315 case x$CONFIG_HEADERS in
   19316 xconfig.h:config.in)
   19317 echo > stamp-h ;;
   19318 esac
   19319  ;;
   19320     "gdb-gdb.py":F)
   19321 case x$CONFIG_HEADERS in
   19322 xconfig.h:config.in)
   19323 echo > stamp-h ;;
   19324 esac
   19325  ;;
   19326     "doc/Makefile":F)
   19327 case x$CONFIG_HEADERS in
   19328 xconfig.h:config.in)
   19329 echo > stamp-h ;;
   19330 esac
   19331  ;;
   19332     "data-directory/Makefile":F)
   19333 case x$CONFIG_HEADERS in
   19334 xconfig.h:config.in)
   19335 echo > stamp-h ;;
   19336 esac
   19337  ;;
   19338 
   19339   esac
   19340 done # for ac_tag
   19341 
   19342 
   19343 as_fn_exit 0
   19344 _ACEOF
   19345 ac_clean_files=$ac_clean_files_save
   19346 
   19347 test $ac_write_fail = 0 ||
   19348   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   19349 
   19350 
   19351 # configure is writing to config.log, and then calls config.status.
   19352 # config.status does its own redirection, appending to config.log.
   19353 # Unfortunately, on DOS this fails, as config.log is still kept open
   19354 # by configure, so config.status won't be able to write to it; its
   19355 # output is simply discarded.  So we exec the FD to /dev/null,
   19356 # effectively closing config.log, so it can be properly (re)opened and
   19357 # appended to by config.status.  When coming back to configure, we
   19358 # need to make the FD available again.
   19359 if test "$no_create" != yes; then
   19360   ac_cs_success=:
   19361   ac_config_status_args=
   19362   test "$silent" = yes &&
   19363     ac_config_status_args="$ac_config_status_args --quiet"
   19364   exec 5>/dev/null
   19365   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   19366   exec 5>>config.log
   19367   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   19368   # would make configure fail if this is the last instruction.
   19369   $ac_cs_success || as_fn_exit 1
   19370 fi
   19371 
   19372 #
   19373 # CONFIG_SUBDIRS section.
   19374 #
   19375 if test "$no_recursion" != yes; then
   19376 
   19377   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
   19378   # so they do not pile up.
   19379   ac_sub_configure_args=
   19380   ac_prev=
   19381   eval "set x $ac_configure_args"
   19382   shift
   19383   for ac_arg
   19384   do
   19385     if test -n "$ac_prev"; then
   19386       ac_prev=
   19387       continue
   19388     fi
   19389     case $ac_arg in
   19390     -cache-file | --cache-file | --cache-fil | --cache-fi \
   19391     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   19392       ac_prev=cache_file ;;
   19393     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   19394     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   19395     | --c=*)
   19396       ;;
   19397     --config-cache | -C)
   19398       ;;
   19399     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   19400       ac_prev=srcdir ;;
   19401     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   19402       ;;
   19403     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   19404       ac_prev=prefix ;;
   19405     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   19406       ;;
   19407     --disable-option-checking)
   19408       ;;
   19409     *)
   19410       case $ac_arg in
   19411       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   19412       esac
   19413       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
   19414     esac
   19415   done
   19416 
   19417   # Always prepend --prefix to ensure using the same prefix
   19418   # in subdir configurations.
   19419   ac_arg="--prefix=$prefix"
   19420   case $ac_arg in
   19421   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   19422   esac
   19423   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
   19424 
   19425   # Pass --silent
   19426   if test "$silent" = yes; then
   19427     ac_sub_configure_args="--silent $ac_sub_configure_args"
   19428   fi
   19429 
   19430   # Always prepend --disable-option-checking to silence warnings, since
   19431   # different subdirs can have different --enable and --with options.
   19432   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
   19433 
   19434   ac_popdir=`pwd`
   19435   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
   19436 
   19437     # Do not complain, so a configure script can configure whichever
   19438     # parts of a large source tree are present.
   19439     test -d "$srcdir/$ac_dir" || continue
   19440 
   19441     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   19442     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
   19443     $as_echo "$ac_msg" >&6
   19444     as_dir="$ac_dir"; as_fn_mkdir_p
   19445     ac_builddir=.
   19446 
   19447 case "$ac_dir" in
   19448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   19449 *)
   19450   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   19451   # A ".." for each directory in $ac_dir_suffix.
   19452   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   19453   case $ac_top_builddir_sub in
   19454   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   19455   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   19456   esac ;;
   19457 esac
   19458 ac_abs_top_builddir=$ac_pwd
   19459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   19460 # for backward compatibility:
   19461 ac_top_builddir=$ac_top_build_prefix
   19462 
   19463 case $srcdir in
   19464   .)  # We are building in place.
   19465     ac_srcdir=.
   19466     ac_top_srcdir=$ac_top_builddir_sub
   19467     ac_abs_top_srcdir=$ac_pwd ;;
   19468   [\\/]* | ?:[\\/]* )  # Absolute name.
   19469     ac_srcdir=$srcdir$ac_dir_suffix;
   19470     ac_top_srcdir=$srcdir
   19471     ac_abs_top_srcdir=$srcdir ;;
   19472   *) # Relative name.
   19473     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   19474     ac_top_srcdir=$ac_top_build_prefix$srcdir
   19475     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   19476 esac
   19477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   19478 
   19479 
   19480     cd "$ac_dir"
   19481 
   19482     # Check for guested configure; otherwise get Cygnus style configure.
   19483     if test -f "$ac_srcdir/configure.gnu"; then
   19484       ac_sub_configure=$ac_srcdir/configure.gnu
   19485     elif test -f "$ac_srcdir/configure"; then
   19486       ac_sub_configure=$ac_srcdir/configure
   19487     elif test -f "$ac_srcdir/configure.in"; then
   19488       # This should be Cygnus configure.
   19489       ac_sub_configure=$ac_aux_dir/configure
   19490     else
   19491       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
   19492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
   19493       ac_sub_configure=
   19494     fi
   19495 
   19496     # The recursion is here.
   19497     if test -n "$ac_sub_configure"; then
   19498       # Make the cache file name correct relative to the subdirectory.
   19499       case $cache_file in
   19500       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   19501       *) # Relative name.
   19502 	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   19503       esac
   19504 
   19505       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
   19506 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   19507       # The eval makes quoting arguments work.
   19508       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   19509 	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   19510 	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
   19511     fi
   19512 
   19513     cd "$ac_popdir"
   19514   done
   19515 fi
   19516 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   19517   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   19518 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   19519 fi
   19520 
   19521